1 2002-09-20 Ulrich Drepper <drepper@redhat.com>
3 * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Avoid
4 locking when using mount tab file.
5 * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
6 * sysdeps/unix/sysv/linux/statvfs.c: Include <stdio_ext.h>.
7 * sysdeps/unix/sysv/linux/fstatvfs.c: Likewise.
9 * elf/dl-init.c (_dl_init): Fix test of the size of the
10 preinit_array section.
11 (call_init): Optimize access to DT_INIT_ARRAY entry a bit.
12 Reported by Brian Cabral <cabral@ikuni.com>.
14 2002-09-20 Steven Munroe <sjmunroe@us.ibm.com>
16 * sysdeps/powerpc/sysdep.h: Remove powerpc32 specific macros.
17 * sysdeps/powerpc/powerpc32/sysdep.h: New file. Define powerpc32
18 specific macros copied from sysdeps/powerpc/sysdep.h.
19 * sysdeps/powerpc/powerpc64/sysdep.h: New file. Define powerpc64
21 * sysdeps/unix/powerpc/sysdep.h: Include <bits/wordsize.h>.
22 [__WORDSIZE==64]: Include sysdeps/powerpc/powerpc64/sysdep.h.
23 [!__WORDSIZE==64]: Include sysdeps/powerpc/powerpc32/sysdep.h.
25 2002-09-19 Bruno Haible <bruno@clisp.org>
27 * intl/dcigettext.c (DCIGETTEXT): Restore errno only right before
30 2002-09-17 Bruno Haible <bruno@clisp.org>
32 * sysdeps/generic/utmp-equal.h: New file, extracted from utmp_file.c.
33 * sysdeps/generic/utmp_file.c (setutent_file): Invalidate last_entry
34 also on platforms with !HAVE_UT_TYPE.
35 (proc_utmp_eq): Remove function.
36 (internal_getut_r, pututline_file): Call __utmp_equal instead.
38 2002-09-20 Bruno Haible <bruno@clisp.org>
40 * abi-tags: Add support for FreeBSD with ABI OS value 3.
41 * elf/cache.c (print_entry): Support the GNU/FreeBSD ABI tag.
43 2002-09-20 Roland McGrath <roland@redhat.com>
45 * sysdeps/generic/gmp-mparam.h: Include <bits/wordsize.h>.
46 (BITS_PER_MP_LIMB, BYTES_PER_MP_LIMB, BITS_PER_LONGINT): Define in
48 * sysdeps/x86_64/gmp-mparam.h: File removed.
49 * sysdeps/sparc/gmp-mparam.h: File removed.
50 * sysdeps/mips/mips64/gmp-mparam.h: File removed.
51 * sysdeps/ia64/gmp-mparam.h: File removed.
52 * sysdeps/alpha/gmp-mparam.h: File removed.
54 2002-09-20 Steven Munroe <sjmunroe@us.ibm.com>
56 * sysdeps/powerpc/elf/libc-start.c: Use long in place of int for argc
57 load, so as to work on both 32-bit and 64-bit. Remove unnecessary
58 casts. Align __libc_stack_end to 8 bytes.
60 2002-09-20 Roland McGrath <roland@redhat.com>
62 * sysdeps/powerpc/fpu/s_lrint.c: Use strong_alias/weak_alias macros
63 instead of asm for lrintf, __lrintf aliases.
65 * sysdeps/powerpc/fpu/s_lrint.c (__lrint): Change union long array to
66 int array for 32-/64-bit compatibility.
67 From Steven Munroe <sjmunroe@us.ibm.com>.
69 2002-09-17 Bruno Haible <bruno@clisp.org>
71 * sysdeps/generic/ifreq.h (__if_nextreq): New function.
72 * sysdeps/unix/sysv/linux/ifreq.h (__if_nextreq): New function.
73 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): New function.
74 * sysdeps/gnu/ifaddrs.c (getifaddrs): Use __if_nextreq
75 for iterating through the list of interfaces.
76 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Likewise.
78 2002-09-20 Roland McGrath <roland@redhat.com>
80 * sysdeps/unix/grantpt.c (pts_name): Set errno when __ptsname_r fails.
81 Reported by Bruno Haible <bruno@clisp.org>.
83 * sysdeps/unix/bsd/bsd4.4/isatty.c: New file.
85 * sysdeps/unix/bsd/isatty.c (__isatty): Don't save and restore errno.
86 * sysdeps/unix/bsd/ptsname.c (__ptsname_r): Return errno value from
87 isatty unmodified. Reported by Bruno Haible <bruno@clisp.org>.
89 2002-09-20 Steven Munroe <sjmunroe@us.ibm.com>
91 * sysdeps/powerpc/bits/setjmp.h [__WORDSIZE]: Add 64-bit jmpbuf.
92 * sysdeps/powerpc/bits/wordsize.h: New file.
93 * sysdeps/powerpc/fpu/bits/mathinline.h (lrint, lrintf): Change long
94 array to int array for 32-/64-bit compatibility.
96 2002-09-20 Roland McGrath <roland@redhat.com>
98 * login/programs/utmpdump.c: Don't include <error.h>, <errno.h>.
100 * sysdeps/generic/utimes.c (__utimes): Don't check TVP for null.
101 Reported by Bruno Haible <bruno@clisp.org>.
103 * sysdeps/generic/ifreq.h (__ifreq): Compute termination condition
104 before doubling RQ_LEN.
105 * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
106 Reported by Bruno Haible <bruno@clisp.org>.
108 2002-09-18 Bruno Haible <bruno@clisp.org>
110 * login/logout.c (logout): Don't assume ut_time has the same size as
112 * login/logwtmp.c (logwtmp): Likewise.
114 * sysdeps/pthread/configure: New file, moved here from
115 linuxthreads/sysdeps/unix/sysv/linux/configure.
117 2002-09-19 Ulrich Drepper <drepper@redhat.com>
119 * sysdeps/unix/sysv/linux/_exit.c: Include <errno.h>.
120 (_exit): Don't use ABORT_INSTRUCTION if it is not defined.
121 Reported by Glen Nakamura <glen@imodulo.com>.
123 2002-09-19 Neal H. Walfield <neal@cs.uml.edu>
125 * sysdeps/mach/hurd/fork.c (__fork): Do not free the signal
126 thread's sigstate data structure if it has been allocated.
128 2002-09-19 Roland McGrath <roland@redhat.com>
130 * include/libc-symbols.h [HAVE_ASM_SET_DIRECTIVE]
131 [! HAVE_ASM_GLOBAL_DOT_NAME] (__hidden_dot_def1): Fix typo'd name.
133 2002-09-18 Ulrich Drepper <drepper@redhat.com>
135 * version.h (VERSION): Bump to 2.2.94.
137 * sysdeps/powerpc/fpu/Dist: Move fprrest.S and fprsave.S to...
138 * sysdeps/powerpc/powerpc32/fpu/Dist: ...here. New file.
139 * sysdeps/unix/sysv/linux/powerpc/Dist: Move kernel_stat.h to...
140 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
142 * sysdeps/i386/Makefile: Remove obsolete db2 rules.
144 * sysdeps/unix/sysv/linux/Makefile: Add exit-thread.S.
146 * sysdeps/unix/sysv/linux/powerpc/Dist: Add ldd-rewrite.sh.
148 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: New file.
150 2002-09-19 Jakub Jelinek <jakub@redhat.com>
152 * sysdeps/wordsize-32/Makefile: New file.
153 * sysdeps/arm/Makefile: Removed.
154 * sysdeps/i386/Makefile (sysdep_routines, shared-only-routines):
155 Don't add divdi3 here.
156 * sysdeps/m68k/Makefile: Likewise.
157 * sysdeps/powerpc/powerpc32/Makefile: Likewise.
158 * sysdeps/sh/Makefile: Likewise.
159 * sysdeps/s390/s390-32/Makefile: Likewise.
161 2002-09-18 Roland McGrath <roland@redhat.com>
163 * locale/lc-ctype.c (_nl_postload_ctype): Add compat_symbol decls for
164 the __ctype_* compat symbols, so the relocs generated bind to the
165 right versioned global symbol in the shared object.
167 * elf/do-rel.h (elf_dynamic_do_rel): Mask off 0x8000 bit (hidden flag)
168 from the value taken from the DT_VERSYM table.
169 * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
170 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Likewise.
171 (RESOLVE_GOTSYM): Likewise.
173 * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
175 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
176 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
177 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
178 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
179 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
180 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
181 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
182 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
184 2002-09-18 Ulrich Drepper <drepper@redhat.com>
186 * include/signal.h: Add libc_hidden_proto for __libc_sigaction.
188 * sysdeps/unix/sysv/linux/sigaction.c: If SIGCANCEL is defined
189 define sigaction and __sigaction as wrappers around
190 __libc_sigaction which rejects changing SIGCANCEL.
191 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
193 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for SETTLS and
196 * signal/allocrtsig.c: Move to...
197 * sysdeps/generic/allocrtsig.c: ...here. New file.
199 2002-09-17 Jakub Jelinek <jakub@redhat.com>
201 * elf/dl-lookup.c (_dl_debug_bindings): Print TLS lookups always.
203 * elf/elf.h (R_386_TLS_TPOFF, R_386_TLS_IE, R_386_TLS_GOTIE,
204 R_386_TLS_LE): Define.
205 (R_386_TLS_IE_32, R_386_TLS_LE_32, R_386_TLS_TPOFF32): Update
207 * sysdeps/i386/dl-machine.h (elf_machine_type_class): Return
208 ELF_RTYPE_CLASS_PLT for R_386_TLS_TPOFF.
209 (elf_machine_rel): Handle R_386_TLS_TPOFF.
210 (elf_machine_rela): Likewise.
211 Remove unnecessary RTLD_BOOTSTRAP #ifdefs.
213 2002-09-17 Roland McGrath <roland@redhat.com>
215 * malloc/Makefile ($(objpfx)memusagestat.o: sysincludes): Define
216 file-specific variable override so it compiles properly when using
219 2002-09-17 Steven Munroe <sjmunroe@us.ibm.com>
221 Ported to PowerPC64 running Linux.
222 * sysdeps/powerpc/powerpc64/Dist: New file.
223 * sysdeps/powerpc/powerpc64/Implies: New file.
224 * sysdeps/powerpc/powerpc64/Makefile: New file.
225 * sysdeps/powerpc/powerpc64/__longjmp.S: New file.
226 * sysdeps/powerpc/powerpc64/atomicity.h: New file.
227 * sysdeps/powerpc/powerpc64/backtrace.c: New file.
228 * sysdeps/powerpc/powerpc64/bp-asm.h: New file.
229 * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: New file.
230 * sysdeps/powerpc/powerpc64/bsd-setjmp.S: New file.
231 * sysdeps/powerpc/powerpc64/dl-dtprocnum.h: New file.
232 * sysdeps/powerpc/powerpc64/dl-lookupcfg.h: New file.
233 * sysdeps/powerpc/powerpc64/dl-machine.c: New file.
234 * sysdeps/powerpc/powerpc64/dl-machine.h: New file.
235 * sysdeps/powerpc/powerpc64/memset.S: New file.
236 * sysdeps/powerpc/powerpc64/ppc-mcount.S: New file.
237 * sysdeps/powerpc/powerpc64/register-dump.h: New file.
238 * sysdeps/powerpc/powerpc64/setjmp.S: New file.
239 * sysdeps/powerpc/powerpc64/stpcpy.S: New file.
240 * sysdeps/powerpc/powerpc64/strchr.S: New file.
241 * sysdeps/powerpc/powerpc64/strcmp.S: New file.
242 * sysdeps/powerpc/powerpc64/strcpy.S: New file.
243 * sysdeps/powerpc/powerpc64/strlen.S: New file.
244 * sysdeps/powerpc/powerpc64/elf/bzero.S: New file.
245 * sysdeps/powerpc/powerpc64/elf/start.S: New file.
246 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: New file.
247 * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: New file.
248 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: New File.
249 * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: New file.
250 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: New file.
251 * sysdeps/unix/sysv/linux/powerpc/powerpc64/glob64.c: New file.
252 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: New file.
253 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: New file.
254 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: New file.
256 * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME]
257 (C_SYMBOL_DOT_NAME): Insure that C_SYMBOL_DOT_NAME works for
258 various gcc versions. Dot names required for powerpc64.
259 [HAVE_ASM_GLOBAL_DOT_NAME] (_weak_extern): Add .weakext '.'ed symbol.
260 [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias): Add .global
261 C_SYMBOL_DOT_NAME(alias).
262 [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): New macro. Same as
263 original strong_alias macro.
264 [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Add .weakext/.weak
265 C_SYMBOL_DOT_NAME(alias).
266 [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Add .symver '.'ed name.
267 [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Add .symver
269 Add comments on libc_hidden_data_def and libc_hidden_data_weak usage.
270 [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_def1): New macro. Generate
271 .global C_SYMBOL_DOT_NAME(alias). Otherwise an empty macro.
272 (hidden_def): Append hidden_dot_def1 macro to definition.
273 (hidden_ver): Append hidden_dot_def1 macro to definition.
274 (hidden_data_def): New macro. Same as original hidden_def macro.
275 (hidden_data_ver): New macro. Same as original hidden_ver macro.
276 [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_weak1): New macro. Generate
277 .weakext C_SYMBOL_DOT_NAME(alias). Otherwise an empty macro.
278 (hidden_weak): Append hidden_dot_weak1 macro to definition.
279 (hidden_data_weak): New macro. Same as original hidden_weak macro.
280 [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Define as .__GI_name.
281 Otherwise defined as __GI_name.
282 (libc_hidden_data_def): New macro. Use hidden_data_def.
283 (libc_hidden_data_weak): New macro. Use hidden_data_weak.
284 (libc_hidden_data_ver): New macro. Use hidden_data_ver.
285 (rtld_hidden_data_def): New macro. Use hidden_data_def.
286 (rtld_hidden_data_weak): New macro. Use hidden_data_weak.
287 (rtld_hidden_data_ver): New macro. Use hidden_data_ver.
288 (libm_hidden_data_def): New macro. Use hidden_data_def.
289 (libm_hidden_data_weak): New macro. Use hidden_data_weak.
290 (libm_hidden_data_ver): New macro. Use hidden_data_ver.
291 * inet/in6_addr.c: Replace libc_hidden_def with libc_hidden_data_def.
293 2002-09-17 Ulrich Drepper <drepper@redhat.com>
295 * include/libc-symbols.h: Change *hidden_proto macros to accept
296 option parameters and pass those to the attribute definition.
297 * include/unistd.h (_exit): Add __noreturn__ to libc_hidden_proto call.
299 * include/unistd.h: Declare __libc_pause.
301 * include/sys/socket.h: Declare __libc_send, __libc_recv,
302 __libc_sendto, __libc_sendmsg, __libc_recvmsg, and __libc_accept.
304 * include/unistd.h: Declare __libc_fork.
306 2002-09-17 Roland McGrath <roland@redhat.com>
308 * sunrpc/xcrypt.c (passwd2des_internal): Renamed fom passwd2des.
309 (passwd2des): Define it as an alias.
310 (xencrypt, xdecrypt): Call passwd2des_internal instead of passwd2des.
312 2002-09-12 Bruno Haible <bruno@clisp.org>
314 * include/sys/sysctl.h (__sysctl): Add libc_hidden_proto.
315 * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Add libc_hidden_def.
317 * include/rpc/xdr.h (xdrstdio_create): Add libc_hidden_proto.
318 * sunrpc/xdr_stdio.c (xdrstdio_create): Add libc_hidden_def.
320 2002-09-05 Steven Munroe <sjmunroe@us.ibm.com>
322 * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc64__]
323 (__ASSUME_TRUNCATE64_SYSCALL, __ASSUME_STAT64_SYSCALL, __ASSUME_IPC64,
324 __ASSUME_FCNTL64, __ASSUME_MMAP2_SYSCALL): Don't define these.
325 PowerPC64 does not have separate 64-bit syscalls.
327 2002-09-16 Roland McGrath <roland@redhat.com>
329 * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Add a cast.
331 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
334 * elf/rtld.c [HP_TIMING_NONAVAIL]: Fix last change for this case.
336 * include/unistd.h: Uncomment libc_hidden_proto for _exit.
337 * sysdeps/mach/hurd/_exit.c: Add libc_hidden_def.
338 * sysdeps/generic/_exit.c: Likewise.
340 2002-09-12 Jakub Jelinek <jakub@redhat.com>
342 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Regenerate.
344 * elf/rtld.c (struct dl_start_final_info): New.
345 (_dl_start_final): Change second argument to struct
346 dl_start_final_info *. Set start_time from info.
347 (_dl_start): Remove bootstrap_map variable, add info.
348 Define bootstrap_map as macro. If not DONT_USE_BOOTSTRAP_MAP,
349 store HP_TIMING_NOW result into info.start_time.
351 2002-09-16 Andreas Jaeger <aj@suse.de>
353 * sysdeps/unix/sysv/linux/_exit.c: Add libc_hidden_def and weak_alias
355 * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
357 2002-09-15 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
359 * sysdeps/powerpc/abort-instr.h: New file.
361 2002-09-14 Ulrich Drepper <drepper@redhat.com>
363 * sysdeps/generic/libc-start.c (__libc_start_main): Remove bogus
366 * test-skeleton.c (main): Provide more information in case waitpid
369 * include/unistd.h: Declare __exit_thread.
370 * sysdeps/generic/libc-start.c (__libc_start_main): Remove dummy_addr.
371 Wrap call to main in setjmp if HAVE_CANCELBUF is defined.
372 * sysdeps/unix/sysv/linux/exit-thread.S: New file.
373 * sysdeps/unix/sysv/linux/_exit.c: New file.
374 * sysdeps/unix/sysv/linux/i386/_exit.S: New file.
375 * sysdeps/unix/sysv/linux/Makefile [subdir==posix] (sysdep_routines):
378 * configure.in: Add dl_iterate_phdr to test using -nostdlib.
380 2002-09-12 Jakub Jelinek <jakub@redhat.com>
382 * sysdeps/i386/dl-machine.h (elf_machine_rel)
383 (case R_386_TLS_DTPMOD32): Don't use addend.
384 [case R_386_TLS_TPOFF32]: Remove redundant SYM_MAP != NULL check.
385 (elf_machine_rela): Add support for TLS relocs.
387 2002-09-14 Roland McGrath <roland@redhat.com>
389 * Makefile (manual/%): Add this pattern target to the iconvdata/% rule.
391 2002-07-29 Steven Munroe <sjmunroe@us.ibm.com>
393 * stdlib/longlong.h [_ARCH_PPC && W_TYPE_SIZE!=32]: Add powerpc64
394 specific asm macros for multiple percision integer math.
396 2002-06-04 Steven Munroe <sjmunroe@us.ibm.com>
398 * sysdeps/generic/ldconfig.h (FLAG_POWERPC_LIB64) New macro.
399 * elf/cache.c (print_entry): Add case for FLAG_POWERPC_LIB64.
400 Remove per-machine conditionals for FLAG_* cases.
401 * sysdeps/unix/sysv/linux/powerpc/ldconfig.h: New file.
402 * sysdeps/unix/sysv/linux/powerpc/readelflib.c: New file.
403 * sysdeps/unix/sysv/linux/powerpc/powerpc64/dl-cache.h: New file.
405 2002-09-10 Alan Modra <amodra@bigpond.net.au>
407 * csu/gmon-start.c [!TEXT_START]: Define TEXT_START if not already
409 (__gmon_start__) [!ENTRY_POINT_DECL]: Use TEXT_START macro to obtain
410 lowest address for profiling in __monstartup call.
411 * sysdeps/powerpc/powerpc64/elf/entry.h: New file.
413 2002-09-14 Roland McGrath <roland@redhat.com>
415 * sysdeps/unix/sysv/linux/pread.c: __NR_pread64 may be defined
416 instead of __NR_pread.
417 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
418 * sysdeps/unix/sysv/linux/pwrite.c: __NR_pwrite64 may be defined
419 instead of __NR_pwrite.
420 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
422 2002-09-13 Roland McGrath <roland@redhat.com>
424 * manual/libc.texinfo: @ifinfo -> @ifnottex around copyright notice.
426 2002-09-13 Andreas Jaeger <aj@suse.de>
428 * sysdeps/unix/sysv/linux/mips/syscalls.list: Add readahead
429 syscall. Patch by Guido Guenther <agx@sigxcpu.org>.
431 2002-09-12 Ulrich Drepper <drepper@redhat.com>
433 * elf/elf.h: Correct DT_LOOS and DT_HIOS values.
435 2002-09-10 Ulrich Drepper <drepper@redhat.com>
437 * sysdeps/powerpc/fpu/s_isnan.c: #undef __isnanf and isnanf after
440 2002-09-12 Roland McGrath <roland@redhat.com>
442 * elf/rtld.c (_dl_start_final): Move _begin, _end decls outside the fn.
443 (_dl_start) [DONT_USE_BOOTSTRAP_MAP]: Use &_begin instead of l_addr to
446 * elf/rtld.c (dl_main) [USE_TLS]: Adjust l_tls_initimage of main
447 executable if needed, in case it's actually a shared object.
449 2002-09-11 Roland McGrath <roland@redhat.com>
451 * elf/dl-load.c (_dl_map_object_from_fd): Use l_addr instead of
452 l_map_start to adjust l_tls_initimage.
454 * nss/getnssent_r.c (__nss_getent_r): Use EAGAIN instead of errno
455 when using h_errno and it's not set to NETDB_INTERNAL.
456 * nss/getXXbyYY_r.c [NEED_H_ERRNO]: Likewise.
458 * Makefile ($(common-objpfx)testrun.sh): New target.
459 (others): Depend on it.
460 (postclean-generated): Append it.
462 * nss/bug-erange.c: New file.
463 * nss/Makefile (tests): Add it.
465 * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Return errno
466 instead of always EAGAIN when status is NSS_STATUS_TRYAGAIN.
468 * sysdeps/generic/dl-environ.c (unsetenv): Redo last fix without
469 strncmp, keeps the code smaller for a non-performance-critical case.
471 * sysdeps/generic/dl-environ.c (unsetenv): Rewritten using strncmp,
472 no longer wrongly matches arbitrary prefixes of NAME.
473 Reported by Jakub Jelinek <jakub@redhat.com>.
475 2002-09-11 Jakub Jelinek <jakub@redhat.com>
477 * posix/bug-regex11.c (tests): New array.
478 (main): Rewritten to run more different tests.
480 2002-09-10 Roland McGrath <roland@redhat.com>
482 * nscd/Makefile (CPPFLAGS-nscd, CPPFLAGS-nscd_conf, CPPFLAGS-dbg_log)
483 (CPPFLAGS-connections, CPPFLAGS-hstcache): Variables removed.
484 Instead, catch all of $(nscd-modules) via cppflags-iterator.mk.
486 * sysdeps/powerpc/fpu/s_isnan.c: Do macro hackery on __GI___isnanf as
487 well so we don't get it declared by include/math.h's hidden_proto.
488 Then do hidden_proto for __isnanf locally so hidden_def works right.
490 * posix/bug-regex5.c (main): Use `union locale_data_value' rather than
491 a cast to turn nl_langinfo return value into an integer.
493 2002-09-10 Isamu Hasegawa <isamu@yamato.ibm.com>
495 * posix/regexec.c (build_trtable): Fix the destination of
496 newline to prevent wrong states from overwriting.
497 Append break statements to optimization.
499 2002-09-10 Isamu Hasegawa <isamu@yamato.ibm.com>
501 * posix/regcomp.c: Wrap #include wchar.h and wctype.h in #if.
502 (build_range_exp): Add castings to strlen invocations.
503 (build_collating_symbol): Restore the type of characters from "char"
504 to "unsigned char", and supplement castings.
505 (build_collating_symbol): Likewise.
506 (build_equiv_class): Likewise.
507 (build_charclass): Likewise.
508 (seek_collating_symbol_entry): Likewise.
509 (parse_bracket_exp): Likewise.
510 (build_word_op): Supplement a casting.
511 * posix/regex_internal.c: Wrap #include wchar.h and wctype.h in #if.
512 (re_string_allocate): Fix castings.
513 (re_string_construct): Likewise.
514 (re_string_construct_common): Likewise.
515 (re_string_realloc_buffers): Likewise.
516 (build_wcs_buffer): Likewise.
517 (build_wcs_upper_buffer): Likewise.
518 (re_string_skip_chars): Likewise.
519 (re_string_reconstruct): Likewise.
520 * posix/regex_internal.h: Restore the type of characters in
521 re_string_t and bracket_elem_t from "char" to "unsigned char".
522 (re_string_elem_size_at): Fix castings.
523 * posix/regexec.c: Wrap #include wchar.h and wctype.h in #if.
524 (transit_state_bkref_loop): Restore the type of characters from
525 "char" to "unsigned char", and append a cast to "char*" pointer in
527 (check_node_accept_bytes): Likewise.
528 (find_collation_sequence_value): Likewise.
530 2002-09-10 Hartvig Ekner <hartvige@mips.com>
532 * sysdeps/mips/memcpy.S: New file.
533 * sysdeps/mips/memset.S: New file.
534 * sysdeps/mips/fpu/e_sqrt.c: New file.
535 * sysdeps/mips/fpu/e_sqrtf.c: New file.
537 * fpu/fclrexcpt.c: Cleaned up the FPU exception stuff - was not
538 functional before. Also removed all SHLIB_COMPAT stuff.
539 * fpu/fegetenv.c: Likewise.
540 * fpu/fesetenv.c:: Likewise.
541 * fpu/feupdateenv.c: Likewise.
542 * fpu/fgetexcptflg.c: Likewise.
543 * fpu/fraiseexcpt.c: Likewise.
545 * sysdeps/mips/fpu/fsetexcptflg.c: New file.
547 2002-09-09 Jakub Jelinek <jakub@redhat.com>
549 * include/math.h (__finite_internal, __finitef_internal,
550 __finitel_internal, __isinf_internal, __isnan_internal): Remove.
552 (__finite, __isinf, __isnan, __finitef, __isinff, __isnanf, __finitel,
553 __isinfl, __isnanl): Add hidden_proto.
554 (__fpclassify, __fpclassifyf, __fpclassifyl, __expm1l): Add
556 * math/Makefile (libm-calls): Add s_isinf and s_isnan.
557 * stdio-common/printf_fp.c (__printf_fp): Remove INTUSE from
559 * stdio-common/printf_size.c (printf_size): Likewise.
560 * sysdeps/generic/printf_fphex.c (__printf_fphex): Likewise.
561 * sysdeps/generic/s_ldexp.c (__ldexp): Likewise.
562 * sysdeps/generic/s_ldexpf.c (__ldexpf): Likewise.
563 * sysdeps/generic/s_ldexpl.c (__ldexpl): Likewise.
564 * sysdeps/generic/s_expm1l.c (__expm1l): Add libm_hidden_def.
565 * sysdeps/i386/fpu/s_finite.S (__finite_internal): Remove alias.
566 (__finite): Add hidden_def.
567 * sysdeps/i386/fpu/s_finitef.S (__finitef_internal): Remove alias.
568 (__finitef): Add hidden_def.
569 * sysdeps/i386/fpu/s_finitel.S (__finitel_internal): Remove alias.
570 (__finitel): Add hidden_def.
571 * sysdeps/i386/fpu/s_isinfl.c (__isinfl): Remove INTDEF. Add
573 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
574 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Add
576 * sysdeps/i386/fpu/s_expm1l.S (__expm1l): Likewise.
577 * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Remove INTDEF. Add
579 * sysdeps/ieee754/dbl-64/s_isinf.c (__isinf): Likewise.
580 (__isinfl): Remove INTDEF.
581 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Remove INTDEF. Add
583 (__isnanl): Remove INTDEF.
584 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Add
586 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Use __sin and __cos
587 instead of sin and cos.
588 * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Remove INTDEF.
590 * sysdeps/ieee754/flt-32/s_isinff.c (__isinff): Likewise.
591 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
592 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Add
594 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Remove INTDEF.
596 * sysdeps/ieee754/ldbl-128/s_isinfl.c (__isinfl): Likewise.
597 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
598 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl): Add
600 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add
602 * sysdeps/ieee754/ldbl-96/s_finitel.c (__finitel): Remove INTDEF.
604 * sysdeps/ieee754/ldbl-96/s_isinfl.c (__isinfl): Likewise.
605 * sysdeps/ieee754/ldbl-96/s_isnanl.c (__isnanl): Likewise.
606 * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c (__fpclassifyl): Add
608 * sysdeps/ia64/fpu/s_finite.S (__finite_internal, __finitef_internal,
609 __finitel_internal): Remove aliases.
610 (__finite, __finitef, __finitel): Add hidden_def.
611 * sysdeps/ia64/fpu/s_isnan.S (__isnan_internal, __isnanf_internal,
612 __isnanl_internal): Remove aliases.
613 (__isnan, __isnanf, __isnanl): Add hidden_def.
614 * sysdeps/ia64/fpu/s_isinf.S (__isinf_internal, __isinff_internal,
615 __isinfl_internal): Remove aliases.
616 (__isinf, __isinff, __isinfl): Add hidden_def.
617 * sysdeps/ia64/fpu/s_fpclassify.S (__fpclassify, __fpclassifyf,
618 __fpclassifyl): Add libm_hidden_def.
619 * sysdeps/ia64/fpu/s_expm1l.S (__expm1l): Likewise.
620 * sysdeps/m68k/s_isinfl.c (__isinfl): Remove INTDEF. Add hidden_def.
621 * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Remove.
622 (hidden_defx): Define and use.
623 * sysdeps/m68k/fpu/s_fpclassifyl.c (__fpclassifyl): Add
625 * sysdeps/m68k/fpu/s_expm1l.c (__expm1l): Likewise.
626 * sysdeps/m68k/s_isnanl.c (__isnanl): Add hidden_def.
627 * sysdeps/powerpc/fpu/s_isnan.c (__isnan, __isnanf, __isnanl):
629 (__isnan, __isnanf): Add hidden_def.
630 * sysdeps/x86_64/fpu/s_finitel.S (__finitel_internal): Remove alias.
631 (__finitel): Add libm_hidden_def.
632 * sysdeps/x86_64/fpu/s_expm1l.S (__expm1l): Likewise.
634 * include/fenv.h (feraiseexcept, fesetenv): Add libm_hidden_proto.
635 * sysdeps/alpha/fpu/fesetenv.c (fesetenv): Add libm_hidden_ver.
636 * sysdeps/alpha/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
637 * sysdeps/arm/fpu/fesetenv.c (fesetenv): Likewise.
638 * sysdeps/arm/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
639 * sysdeps/generic/fesetenv.c (fesetenv): Likewise.
640 * sysdeps/generic/fraiseexcpt.c (feraiseexcept): Likewise.
641 * sysdeps/i386/fpu/fesetenv.c (fesetenv): Likewise.
642 * sysdeps/i386/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
643 * sysdeps/m68k/fpu/fesetenv.c (fesetenv): Likewise.
644 * sysdeps/m68k/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
645 * sysdeps/mips/fpu/fesetenv.c (fesetenv): Likewise.
646 * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
647 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Likewise.
648 * sysdeps/powerpc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
649 * sysdeps/sparc/fpu/fesetenv.c (fesetenv): Likewise.
650 * sysdeps/sparc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
651 * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Add libm_hidden_def.
652 * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
653 * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Likewise.
654 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
655 * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
656 * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
657 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
658 * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
659 * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Likewise.
660 * sysdeps/x86_64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
662 2002-09-09 Steven Munroe <sjmunroe@us.ibm.com>
664 * elf/elf.h: Add powerpc64 specific elf relocation and dynamic types.
666 2002-09-09 Jakub Jelinek <jakub@redhat.com>
668 * elf/dl-error.c (_dl_signal_cerror): Don't print anything if only
669 LD_DEBUG=statistics or LD_TRACE_PRELINKING.
671 2002-09-09 Ulrich Drepper <drepper@redhat.com>
673 * string/stratcliff.c: Some more strncpy tests.
674 Patch by Daniel Jacobowitz <drow@mvista.com>.
676 2002-09-08 Roland McGrath <roland@redhat.com>
678 * resolv/resolv.h: Include <sys/types.h> for u_long even in
679 the [__need_res_state] case.
680 Reported by Bruno Haible <bruno@clisp.org>.
682 2002-09-04 Bruno Haible <bruno@clisp.org>
684 * sysdeps/generic/bits/ustat.h: Comment fix.
685 * io/sys/sendfile.h: Comment fix.
686 * sysdeps/posix/pread.c: Comment fix.
687 * sysdeps/posix/pread64.c: Comment fix.
688 * sysdeps/posix/pwrite.c: Comment fix.
689 * sysdeps/posix/pwrite64.c: Comment fix.
691 2002-09-06 Roland McGrath <roland@redhat.com>
693 * posix/sys/utsname.h (_UTSNAME_SYSNAME_LENGTH): New macro, defined
694 to _UTSNAME_LENGTH if not already defined by <bits/utsname.h>.
695 (_UTSNAME_RELEASE_LENGTH, _UTSNAME_VERSION_LENGTH): Likewise.
696 (_UTSNAME_MACHINE_LENGTH): Likewise.
697 (struct utsname): Use new macros instead of _UTSNAME_LENGTH.
699 2002-09-06 Ulrich Drepper <drepper@redhat.com>
701 * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Correct
702 test for filesystem type name of mount points.
704 * include/errno.h: Use errno definition with __thread for now only
707 * test-skeleton.c (main): Improve error message for unexpected
710 2002-09-05 Roland McGrath <roland@redhat.com>
712 * ctype/ctype-info.c: Renamed __ctype_old_* symbols to __ctype_*.
713 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
715 2002-09-05 Jakub Jelinek <jakub@redhat.com>
717 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Unlock and return in
720 2002-09-04 Bruno Haible <bruno@clisp.org>
722 * sysdeps/unix/sysv/linux/sigset-cvt-mask.h (sigset_set_old_mask,
723 sigset_get_old_mask): Turn into inline functions.
724 * sysdeps/unix/sysv/aix/sigset-cvt-mask.h (sigset_set_old_mask,
725 sigset_get_old_mask): Likewise.
726 * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h (sigset_set_old_mask,
727 sigset_get_old_mask): Likewise.
728 * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Declutter
731 * elf/readlib.c (process_file): Conditionalize check for QMAGIC.
733 * sysdeps/generic/_strerror.c (_sys_errlist, _sys_nerr): Remove
735 (__strerror_r): Use _sys_errlist_internal instead of _sys_errlist,
736 _sys_nerr_internal instead of _sys_nerr.
738 * nscd/connections.c (handle_request): Declare CALLER inside #if.
740 2002-07-29 Steven Munroe <sjmunroe@us.ibm.com>
742 * sysdeps/powerpc/__longjmp.S: Moved to...
743 * sysdeps/powerpc/powerpc32/__longjmp.S: ...here.
744 * sysdeps/powerpc/add_n.S: Moved to...
745 * sysdeps/powerpc/powerpc32/add_n.S: ...here.
746 * sysdeps/powerpc/addmul_1.S: Moved to...
747 * sysdeps/powerpc/powerpc32/addmul_1.S: ...here.
748 * sysdeps/powerpc/atomicity.h: Moved to...
749 * sysdeps/powerpc/powerpc32/atomicity.h: ...here.
750 * sysdeps/powerpc/backtrace.c: Moved to...
751 * sysdeps/powerpc/powerpc32/backtrace.c: ...here.
752 * sysdeps/powerpc/bp-asm.h: Moved to...
753 * sysdeps/powerpc/powerpc32/bp-asm.h: ...here.
754 * sysdeps/powerpc/bsd-_setjmp.S: Moved to...
755 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: ...here.
756 * sysdeps/powerpc/bsd-setjmp.S: Moved to...
757 * sysdeps/powerpc/powerpc32/bsd-setjmp.S: ...here.
758 * sysdeps/powerpc/dl-machine.c: Moved to...
759 * sysdeps/powerpc/powerpc32/dl-machine.c: ...here.
760 * sysdeps/powerpc/dl-machine.h: Moved to...
761 * sysdeps/powerpc/powerpc32/dl-machine.h: ...here.
762 * sysdeps/powerpc/dl-start.S: Moved to...
763 * sysdeps/powerpc/powerpc32/dl-start.S: ...here.
764 * sysdeps/powerpc/gprrest0.S: Moved to...
765 * sysdeps/powerpc/powerpc32/gprrest0.S: ...here.
766 * sysdeps/powerpc/gprrest1.S: Moved to...
767 * sysdeps/powerpc/powerpc32/gprrest1.S: ...here.
768 * sysdeps/powerpc/gprsave0.S: Moved to...
769 * sysdeps/powerpc/powerpc32/gprsave0.S: ...here.
770 * sysdeps/powerpc/gprsave1.S: Moved to...
771 * sysdeps/powerpc/powerpc32/gprsave1.S: ...here.
772 * sysdeps/powerpc/lshift.S: Moved to...
773 * sysdeps/powerpc/powerpc32/lshift.S: ...here.
774 * sysdeps/powerpc/memset.S: Moved to...
775 * sysdeps/powerpc/powerpc32/memset.S: ...here.
776 * sysdeps/powerpc/mul_1.S: Moved to...
777 * sysdeps/powerpc/powerpc32/mul_1.S: ...here.
778 * sysdeps/powerpc/ppc-mcount.S: Moved to...
779 * sysdeps/powerpc/powerpc32/ppc-mcount.S: ...here.
780 * sysdeps/powerpc/register-dump.h: Moved to...
781 * sysdeps/powerpc/powerpc32/register-dump.h: ...here.
782 * sysdeps/powerpc/rshift.S: Moved to...
783 * sysdeps/powerpc/powerpc32/rshift.S: ...here.
784 * sysdeps/powerpc/setjmp.S: Moved to...
785 * sysdeps/powerpc/powerpc32/setjmp.S: ...here.
786 * sysdeps/powerpc/stpcpy.S: Moved to...
787 * sysdeps/powerpc/powerpc32/stpcpy.S: ...here.
788 * sysdeps/powerpc/strchr.S: Moved to...
789 * sysdeps/powerpc/powerpc32/strchr.S: ...here.
790 * sysdeps/powerpc/strcmp.S: Moved to...
791 * sysdeps/powerpc/powerpc32/strcmp.S: ...here.
792 * sysdeps/powerpc/strcpy.S: Moved to...
793 * sysdeps/powerpc/powerpc32/strcpy.S: ...here.
794 * sysdeps/powerpc/strlen.S: Moved to...
795 * sysdeps/powerpc/powerpc32/strlen.S: ...here.
796 * sysdeps/powerpc/sub_n.S: Moved to...
797 * sysdeps/powerpc/powerpc32/sub_n.S: ...here.
798 * sysdeps/powerpc/submul_1.S: Moved to...
799 * sysdeps/powerpc/powerpc32/submul_1.S: ...here.
800 * sysdeps/powerpc/elf/bzero.S: Moved to...
801 * sysdeps/powerpc/powerpc32/elf/bzero.S: ...here.
802 * sysdeps/powerpc/elf/start.S: Moved to...
803 * sysdeps/powerpc/powerpc32/elf/start.S: ...here.
804 * sysdeps/powerpc/fpu/__longjmp.S: Moved to...
805 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: ...here.
806 * sysdeps/powerpc/fpu/fprrest.S: Moved to...
807 * sysdeps/powerpc/powerpc32/fpu/fprrest.S: ...here.
808 * sysdeps/powerpc/fpu/fprsave.S: Moved to...
809 * sysdeps/powerpc/powerpc32/fpu/fprsave.S: ...here.
810 * sysdeps/powerpc/fpu/setjmp.S: Moved to...
811 * sysdeps/powerpc/powerpc32/fpu/setjmp.S: ...here.
812 * sysdeps/powerpc/fpu/s_copysign.S: Moved to...
813 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: ...here.
814 * sysdeps/powerpc/fpu/s_copysignf.S: Moved to...
815 * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: ...here.
816 * sysdeps/unix/sysv/linux/powerpc/brk.S: Moved to...
817 * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: ...here.
818 * sysdeps/unix/sysv/linux/powerpc/clone.S: Moved to...
819 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: ...here.
820 * sysdeps/unix/sysv/linux/powerpc/glob64.c: Moved to...
821 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
822 * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h: Moved to...
823 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: ...here.
824 * sysdeps/unix/sysv/linux/powerpc/socket.S: Moved to...
825 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: ...here.
826 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Moved to...
827 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: ...here.
828 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Moved to...
829 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: ...here.
830 Support PowerPC64. Separate powerpc into powerpc/powerpc32 and
833 2002-07-29 Steven Munroe <sjmunroe@us.ibm.com>
835 * FAQ.in: Add powerpc64 to supported targets list. Also state the
836 minimum gcc version is 3.2
837 * README: Add powerpc64 to supported targets list.
838 * configure.in: Change machine=powerpc to machine=powerpc/powerpc32.
839 Add powerpc64 and machine=powerpc/powerpc64.
840 (HAVE_ASM_GLOBAL_DOT_NAME): Define if linux*powerpc/powerpc64*.
841 * shlib-versions: Set DEFAULT version to 2.2.5 for powerpc64.
842 * sysdeps/powerpc/Dist: Remove dl-machine.c, dl-start.S, ppc-mcount.S,
843 gprsave1.S, gprsave0.S, gprrest1.S, and gprrest0.S.
844 * sysdeps/powerpc/powerpc32/Dist: New file.
845 * sysdeps/powerpc/Implies: Remove wordsize-32 and powerpc/soft-fp.
846 * sysdeps/powerpc/powerpc32/Implies: New file.
847 * sysdeps/powerpc/Makefile(cflags): Remove powerpc32 specific cflags.
848 ($(with-fp) = no): Move test to powerpc32/Makefile.
849 ($(subdir) = misc): Move to powerpc32/Makefile.
850 ($(build-shared) = yes): Move to powerpc32/Makefile.
851 ($(subdir) = csu): Move to powerpc32/Makefile.
852 (sysdep-rtld-routines): Remove dl-start. Moved these bits to ...
853 * sysdeps/powerpc/powerpc32/Makefile: New file.
854 * sysdeps/powerpc/Versions: Remove libgcc functions.
855 * sysdeps/powerpc/powerpc32/Versions: New file.
856 * sysdeps/powerpc/fpu/Makefile: Remove fprsave and fprrest.
857 * sysdeps/powerpc/powerpc32/fpu/Makefile: New file.
858 * sysdeps/unix/sysv/linux/configure.in (powerpc*):
859 Set arch_minimum_kernel=2.4.19 for powerpc/powerpc64. Also set
860 libc_cv_gcc_unwind_find_fde=yes only if !powerpc/powerpc64.
861 ($machine): Add powerpc/powerpc64 to if ... | for
862 libc_cv_slibdir=/libc64.
863 (powerpc*): Set ldd_rewrite_script.
864 * sysdeps/unix/sysv/linux/powerpc/ldd-rewrite.sed: New file.
865 * sysdeps/unix/sysv/linux/powerpc/Dist: Remove clone.S.
866 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: New file.
868 * sysdeps/unix/sysv/linux/powerpc/Makefile: Remove oldgetrlimit64.
869 * sysdeps/unix/sysv/linux/powerpc/Versions: Remove GLIBC_2.0
870 functions. Remove GLIBC_2.2 functions except getrlimit and
871 setrlimit. Moved them to ...
872 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: New file.
874 2002-09-04 Ulrich Drepper <drepper@redhat.com>
876 * libio/tst-atime.c: Include <errno.h>.
877 (do_test): Only perform fstatvfs check if ST_NOATIME is defined.
879 2002-09-03 Isamu Hasegawa <isamu@yamato.ibm.com>
881 * posix/regcomp.c (regcomp): Append "__restrict" modifier to avoid
882 warnings of some compilers.
883 (build_collating_symbol): Change the type of characters from
884 "unsigned char" to "char", and append a cast to "char*" pointer in
886 (build_collating_symbol): Likewise.
887 (build_equiv_class): Likewise.
888 (build_charclass): Likewise.
889 (re_compile_pattern): Remove incorrect cast.
890 (re_compile_fastmap_iter): Change the type of characters from
891 "unsigned char" to "char", and append a cast to "char*" pointer
893 (parse_bracket_exp): Likewise.
894 * posix/regex_internal.c (re_string_construct_common): Likewise.
895 (re_string_allocate): Likewise.
896 (re_string_construct): Likewise.
897 (re_string_realloc_buffers): Likewise.
898 (build_wcs_buffer): Likewise.
899 (re_string_reconstruct): Likewise.
900 * posix/regex_internal.h: Change the type of characters in
901 re_string_t and bracket_elem_t from "unsigned char" to "char".
902 * posix/regexec.c (regexec): Append "__restrict" modifier to avoid
903 warnings of some compilers.
904 (transit_state_bkref_loop): Change the type of characters from
905 "unsigned char" to "char", and append a cast to "char*" pointer in
907 (check_node_accept_bytes): Likewise.
908 (find_collation_sequence_value): Likewise.
910 2002-09-04 Roland McGrath <roland@redhat.com>
912 * resolv/nss_dns/dns-network.c (MAXPACKET): Increase minimum value
913 from 1024 to 65536, to avoid buffer overrun.
915 2002-09-03 Gerhard Tonn <ton@de.ibm.com>
917 * sysdeps/s390/s390/fpu/libm-test-ulps: Regenerate.
919 2002-09-04 Ulrich Drepper <drepper@redhat.com>
921 * libio/tst-atime.c (do_test): Make sure noatime flag isn't set
924 2002-09-04 Jakub Jelinek <jakub@redhat.com>
926 * posix/bug-regex11.c: New test.
927 * posix/Makefile (tests): Add bug-regex11.
929 2002-09-03 Jakub Jelinek <jakub@redhat.com>
931 * locale/tst-C_locale.c (run_test): Pass LC_ALL_MASK not LC_ALL to
934 2002-09-02 Roland McGrath <roland@redhat.com>
936 * sysdeps/powerpc/elf/libc-start.c [! SHARED]: Call
937 __pthread_initialize_minimal and __libc_check_standard_fds to
938 match the generic version.
940 * sysdeps/unix/sysv/linux/shmat.c (shmat): Add a cast to avoid a
941 warning when INLINE_SYSCALL macro uses the __syscall_ipc function.
943 * locale/localeconv.c (__localeconv): Cast -1 to char to avoid
944 warnings on platorms where char is unsigned.
946 2002-09-02 Ulrich Drepper <drepper@redhat.com>
948 * version.h (VERSION): Bump to 2.2.93.
950 * sysdeps/unix/sysv/linux/x86_64/Dist: Add __start_context.S.
952 2002-09-02 Jakub Jelinek <jakub@redhat.com>
954 * elf/rtld.c (dl_main): If prelinking succeeded, mark all objects
957 2002-09-02 Jack Howarth <howarth@bromo.msbb.uc.edu>
959 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
961 2002-09-02 Jakub Jelinek <jakub@redhat.com>
963 * locale/localeinfo.h (struct locale_data): Add private.ctype.
964 * wcsmbs/wcsmbsload.h (__wcsmbs_gconv_fcts, __wcsmbs_last_locale,
965 __wcsmbs_to_wc, update_conversion_ptrs): Removed.
966 (__wcsmbs_gconv_fcts_c, _nl_C_LC_CTYPE): New externs.
967 (__wcsmbs_load_conv): Remove const from argument.
968 (_nl_cleanup_ctype): New proto.
969 (get_gconv_fcts): New function.
970 * wcsmbs/wcsmbsload.c (__wcsmbs_last_locale): Removed.
971 (__wcsmbs_to_wc): Rename back to...
973 (__wcsmbs_gconv_fcts): Rename to...
974 (__wcsmbs_gconv_fcts_c): ... this. Make const. Use to_wc.
976 (__libc_setlocale_lock): New extern.
977 (__wcsmbs_load_conv): Remove const from argument.
978 Initialize new_category->private.ctype instead of a global
980 (__wcsmbs_clone_conv): Use get_gconv_fcts instead of
981 update_function_ptrs. No locking is necessary.
982 (_nl_cleanup_ctype): New function.
983 * wcsmbs/btowc.c (__btowc): Use get_gconv_fcts instead of
984 update_function_ptrs and a global __wcsmbs_gconv_fcts variable.
985 * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
986 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
987 * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
988 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
989 * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
990 * wcsmbs/wctob.c (wctob): Likewise.
991 * stdlib/mblen.c (mblen): Likewise.
992 * stdlib/mbtowc.c (mbtowc): Likewise.
993 * stdlib/wctomb.c (wctomb): Likewise.
994 * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
995 Remove calls to wcsmbs_get_towc_func and wcsmbs_free_funcs.
996 * wcsmbs/mbsrtowcs_l.c (wcsmbs_get_towc_func, wcsmbs_free_funcs):
999 2002-09-02 Roland McGrath <roland@frob.com>
1001 * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Add __fxstat64.
1003 2002-09-01 Roland McGrath <roland@redhat.com>
1005 * ctype/ctype.h (__ctype_b, __ctype_toupper, __ctype_tolower):
1006 Variable declarations removed.
1007 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Declare
1008 these functions to replace them.
1009 (__isctype, tolower, toupper, _tolower, _toupper): Use those accessor
1010 functions plus an indirection rather than the old global variables.
1011 * include/ctype.h (__isctype, tolower, _tolower, toupper, _toupper):
1013 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): New extern
1015 * ctype/ctype-info.c: Revert last reversion back the other way.
1016 Define tsd vars CTYPE_B, CTYPE_TOLOWER, CTYPE_TOUPPER.
1017 Define real function versions of include/ctype.h inlines here.
1018 * ctype/Versions (libc: GLIBC_2.3): Add __ctype_b_loc,
1019 __ctype_tolower_loc, __ctype_toupper_loc.
1020 * locale/lc-ctype.c: Revert last reversion back the other way.
1021 (_nl_postload_ctype): If current thread uses the global locale,
1022 update its tsd vars.
1023 * locale/uselocale.c (__uselocale): Update tsd vars from new locale.
1024 * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add CTYPE_B,
1025 CTYPE_TOLOWER, CTYPE_TOUPPER.
1027 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_address): New macro.
1028 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_address): Renamed
1029 from __libc_tsd_threadvar_location.
1030 (__libc_tsd_set, __libc_tsd_get): Update uses.
1032 2002-09-01 Ulrich Drepper <drepper@redhat.com>
1034 * ctype/ctype.h: Undo the patch before the last one. Put back the
1035 macro definitions for the standard functions to access the
1036 classification and mapping arrays.
1037 * include/ctype.h: Partly revert last patch. Move the macro
1038 definitions for the exported functions back to the public header.
1039 #undef all the macros defined here before redefining.
1040 * ctype/ctype-info.c: Revert last patch.
1041 * locale/lc-ctype.c: Revert last patch.
1043 * ctype/Makefile (routines): Add isctype.
1044 * ctype/Versions (libc): Export isctype and __isctype for GLIBC_2.3.
1045 * ctype/ctype.h: Add declaration of isctype.
1046 * include/ctype.h: Declare __isctype.
1047 * ctype/isctype.c: New file.
1049 2002-09-01 Roland McGrath <roland@redhat.com>
1051 * sysdeps/generic/libc-tls.c (__pthread_initialize_minimal): Pass
1052 TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN instead of 0, 1.
1054 * include/getopt.h: Include <features.h> before <posix/getopt.h>.
1056 * locale/findlocale.c (_nl_remove_locale): Don't search in
1057 _nl_locale_file_list if DATA->alloc is ld_archive.
1058 Use _nl_unload_locale to do the rest of the work.
1060 * locale/loadarchive.c (_nl_load_locale_from_archive): Set usage_count
1061 of new structure to UNDELETABLE.
1063 * wctype/wctype.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower,
1064 iswgraph, iswprint, iswpunct, iswspace, iswupper, iswxdigit, iswblank,
1065 towlower, towupper): Macros removed.
1066 * ctype/ctype.h (__tobody): Put parens around macro argument.
1067 (__isctype): Macro removed.
1068 (__ctype_b, __ctype_tolower, __ctype_toupper): Decls removed.
1069 (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1070 ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1071 tolower, toupper): Macros and inlines removed.
1072 * include/ctype.h [! NOT_IN_libc]
1073 (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1074 ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1075 tolower, toupper): Define here instead, using _NL_CURRENT.
1076 * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Define as macros
1078 * ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Likewise.
1079 * ctype/ctype-info.c (__ctype_b, __ctype_tolower, __ctype_toupper):
1080 Renamed these to __ctype_old_*. Define old names only for SHLIB_COMPAT.
1081 (__ctype32_b, __ctype32_tolower, __ctype32_toupper): Likewise.
1082 (__ctype32_wctrans, __ctype32_wctrans, __ctype32_width): Removed.
1083 * locale/lc-ctype.c (_nl_postload_ctype): Use renamed variables,
1084 conditional on SHLIB_COMPAT. Don't set removed variables at all.
1085 * wctype/wcfuncs.c: Use _NL_CURRENT instead of those globals.
1086 * wcsmbs/wcwidth.h (internal_wcwidth): Likewise.
1087 * resolv/res_init.c [RESOLVSORT] (sort_mask): Renamed sort_mask_chars.
1088 (ISSORTMASK): Update use.
1089 * intl/localealias.c [__GNUC__]: #undef alloca before #define.
1090 * nss/nss_files/files-XXX.c (last_use): Rename `none' to `nouse'.
1091 (_nss_files_getENTNAME_r): Likewise.
1092 * nss/nss_files/files-alias.c (last_use, _nss_files_getaliasent_r):
1095 * Makerules (all-nonlib): Renamed from all-tests.
1096 Include $(others) here too.
1097 * locale/Makefile (CPPFLAGS-locale, CPPFLAGS-localedef,
1098 CPPFLAGS-ld-ctype, CPPFLAGS-ld-time, CPPFLAGS-ld-numeric,
1099 CPPFLAGS-ld-monetary, CPPFLAGS-ld-collate, CPPFLAGS-ld-identification,
1100 CPPFLAGS-charmap, CPPFLAGS-locarchive, CPPFLAGS-linereader,
1101 CPPFLAGS-charmap-dir): Variables removed. Instead, catch all
1102 the program modules via cppflags-iterator.mk.
1103 * sunrpc/Makefile (CPPFLAGS-rpc_main): Variable removed.
1104 Instead, catch all rpcgen-objs via cppflags-iterator.mk.
1106 2002-08-31 Roland McGrath <roland@redhat.com>
1108 * posix/tst-getconf.sh: If no third arg, work with static linking.
1110 * locale/categories.def (LC_TIME): No more _nl_postload_time.
1112 * locale/setlocale.c (_nl_category_postload): Use weak refs only under
1113 [_NL_CURRENT_INDIRECT].
1115 2002-08-31 Ulrich Drepper <drepper@redhat.com>
1117 * time/tst-ftime_l.c (main): Also test strftime with uselocale.
1119 2002-08-31 Roland McGrath <roland@redhat.com>
1121 * locale/newlocale.c (__newlocale): Don't use strdup for names.
1122 Instead, make the single allocation of the structure larger to hold
1124 * locale/duplocale.c (__duplocale): Don't strdup names individually.
1125 Instead, calculate size for a single allocation and copy into it.
1126 * locale/freelocale.c (__freelocale): Don't free names individually.
1128 * locale/newlocale.c (__newlocale): Don't leak old data or names.
1130 * locale/xlocale.h (__locale_struct): Move __names member last,
1131 for binary compatibility.
1133 * locale/duplocale.c (__duplocale): Free names from the right array.
1135 * locale/uselocale.c (__uselocale): Return previous locale when
1138 * locale/newlocale.c: Commit changes from 2002-08-30
1139 batch where I failed to commit this file:
1140 (__newlocale): Fill in __names array.
1142 2002-08-31 Ulrich Drepper <drepper@redhat.com>
1144 * sysdeps/gnu/Makefile: Only depend on Versions.v.i for
1145 errlist-compat.c if versioning==yes.
1147 2002-08-31 Andreas Jaeger <aj@suse.de>
1149 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Declare
1150 external functions with hidden attribute.
1151 (elf_machine_rela): Optimize.
1153 * sysdeps/x86_64/memset.S: New file.
1154 * sysdeps/x86_64/bzero.S: New file.
1155 * sysdeps/x86_64/stpcpy.S: New file.
1156 * sysdeps/x86_64/strcat.S: New file.
1157 * sysdeps/x86_64/strchr.S: New file.
1158 * sysdeps/x86_64/strcpy.S: New file.
1159 * sysdeps/x86_64/strcspn.S: New file.
1160 * sysdeps/x86_64/strlen.S: New file.
1161 * sysdeps/x86_64/strpbrk.S: New file.
1162 * sysdeps/x86_64/strspn.S: New file.
1163 * sysdeps/x86_64/strcmp.S: New file.
1164 * sysdeps/x86_64/strtok_r.S: New file.
1165 * sysdeps/x86_64/strtok.S: New file.
1166 * sysdeps/x86_64/memcpy.S: New file.
1167 * sysdeps/x86_64/mempcpy.S: New file.
1169 * sysdeps/x86_64/fpu/s_copysign.S: Fix algorithm.
1171 * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for double tests.
1173 2002-08-31 Ulrich Drepper <drepper@redhat.com>
1175 * stdio-common/Makefile (generated): Add errlist-compat.c.
1177 * locale/Makefile (extra-objs): Add $(localedef-aux:=.o).
1179 * locale/localeinfo.h: Pretty printing.
1181 * stdio-common/vfprintf.c (vfprintf): Remove duplicate ifs in
1182 form_number handling.
1184 2002-08-31 Andreas Jaeger <aj@suse.de>
1186 * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for float and long
1189 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_routines): Add
1192 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: New file.
1194 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: New file.
1196 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: Add defines for
1197 registers used for passing args.
1199 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Save and restore
1200 all needed registers.
1202 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Restore all
1205 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Save all needed
1208 2002-08-30 Ulrich Drepper <drepper@redhat.com>
1210 * elf/dynamic-link.h (elf_get_dynamic_info): Mark with
1211 always_inline attribute.
1213 2002-08-30 Roland McGrath <roland@redhat.com>
1215 * stdlib/tst-setcontext.c (main): If makecontext does nothing,
1216 presume it's the stub and bail without error.
1218 * nss/getnssent_r.c (__nss_getent_r): Return ENOENT if status is
1219 neither SUCCESS nor TRYAGAIN (see 2002-08-25 change [PR libc/4259]).
1221 * nss/getnssent_r.c (__nss_getent_r): Set *H_ERRNOP, not global one.
1223 * sysdeps/x86_64/hp-timing.h (HP_TIMING_NOW, HP_TIMING_ACCUM): New
1224 macros replace the i686 versions for 64-bit mode.
1226 * locale/duplocale.c: Include <string.h>.
1228 * intl/dcigettext.c (DCIGETTEXT) [_LIBC]: Check for bogus CATEGORY.
1229 [_LIBC] (category_to_name): Don't define the function. Instead
1230 define a macro using _nl_category_names.
1232 * locale/xlocale.h (struct __locale_struct): New member `__names'.
1233 * locale/xlocale.c (_nl_C_locobj): Update initializer.
1234 * locale/global-locale.c (_nl_global_locale): Likewise.
1235 * locale/duplocale.c (__duplocale): strdup __names elements.
1236 * locale/freelocale.c (__freelocale): Free __names elements.
1237 * locale/localename.c (_nl_current_names): Variable removed.
1238 (__current_locale_name): Use _NL_CURRENT_LOCALE->__names instead.
1239 * locale/localeinfo.h (_nl_current_names): Removed decl.
1240 * locale/setlocale.c: Use _nl_global_locale->__names in place of
1241 _nl_current_names throughout.
1243 * locale/setlocale.c (setlocale): strdup -> __strdup (not ISO C).
1245 * sysdeps/gnu/errlist-compat.awk: Emit link_warnings for sys_errlist
1246 and sys_nerr in the output file.
1248 * sunrpc/Makefile (rpcgen-cmd): Pass CPP in rpcgen's environment.
1249 * scripts/cpp: Just use the environment variable.
1251 * libio/tst-mmap-setvbuf.c (main): Use 'm' fopen flag.
1252 * libio/tst-mmap-offend.c (do_test): Likewise.
1253 * libio/tst-mmap-fflushsync.c (do_test): Likewise.
1254 * libio/tst-mmap-eofsync.c (do_test): Likewise.
1255 * libio/tst-mmap2-eofsync.c (do_test): Likewise.
1257 * locale/localename.c: If the current locale is the global locale, use
1258 _nl_current_names; otherwise use the locale object.
1260 2002-08-29 Ulrich Drepper <drepper@redhat.com>
1262 * libio/fileops.c (_IO_new_file_fopen): Recognize new mode specifier
1263 'm' to enable mmap I/O.
1264 * libio/libio.h (_IO_FILE): Rename _blksize field to _flags2. The
1265 former wasn't used (anymore?).
1266 (_IO_FLAGS2_MMAP): New define.
1267 * libio/genops.c (_IO_no_init): Initialize _flags2 field.
1268 * libio/iofopen.c (__fopen_maybe_mmap): Use mmap callbacks only if
1269 _IO_FLAGS2_MMAP bit is set.
1270 * libio/iofdopen.c (_IO_new_fdopen): Recognize 'm' mode specifier.
1271 Enable mmap-using mode only if 'm' was set.
1273 2002-08-29 Roland McGrath <roland@frob.com>
1275 * sysdeps/mach/hurd/bits/local_lim.h (NAME_MAX): New macro.
1277 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup: doinit):
1278 Change argument type from int to intptr_t.
1280 * locale/global-locale.c (__libc_tsd_LOCALE_data): Conditionalize the
1281 initializer on [! _HURD_THREADVAR_H] (bad kludge).
1282 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize
1283 _HURD_THREADVAR_LOCALE slot to &_nl_global_locale.
1284 * hurd/hurdsig.c (_hurdsig_init): Likewise. Zero other slots.
1286 * sysdeps/mach/_strerror.c (__strerror_r): Add libc_hidden_def.
1288 * sysdeps/mach/hurd/pwrite64.c: No libc_hidden_def (__libc_pwrite64).
1290 * sysdeps/mach/hurd/dl-sysdep.c (__GI_abort): Define alias for abort.
1292 * include/assert.h (__assert_perror_fail): Declare it, do hidden_proto.
1293 * assert/assert-perr.c: Add libc_hidden_def.
1294 * elf/dl-minimal.c [! NDEBUG] (__assert_perror_fail): New function.
1296 * sysdeps/gnu/errlist-compat.awk: Don't fail if there are no versions
1298 * sysdeps/gnu/Versions: File removed. Moved all #errlist-compat
1299 sys_errlist stuff to ...
1300 * sysdeps/unix/sysv/linux/Versions: ... here.
1302 * mach/mach.h: Include <features.h>.
1304 2002-08-29 Roland McGrath <roland@redhat.com>
1306 * elf/dl-runtime.c (IN_DL_RUNTIME): Define this macro first thing.
1307 * sysdeps/i386/dl-machine.h: Only declare fixup, profile_fixup and
1308 define ELF_MACHINE_RUNTIME_TRAMPOLINE under #ifdef IN_DL_RUNTIME.
1310 * sysdeps/generic/readelflib.c (process_elf_file): Fix typo.
1312 * iconv/gconv_int.h: Include <stdlib.h> for alloca decl.
1313 (norm_add_slashes): alloca -> __alloca
1315 2002-08-29 Jakub Jelinek <jakub@redhat.com>
1317 * stdio-common/vfprintf.c (vfprintf): Add builtin_expect for
1318 string_malloced, it is unlikely to be set.
1319 Only call free with non-NULL workspace.
1320 * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Use
1321 -mcpu=ultrasparc, not only tune for it.
1322 (ASFLAGS*): Set unconditionally.
1324 * sysdeps/generic/readelflib.c (process_elf_file): Make LOADADDR
1325 ElfW(Addr). Don't mask upper 32-bits and lower 12 bits off from
1326 p_vaddr/p_offset when computing LOADADDR.
1328 2002-08-29 Ulrich Drepper <drepper@redhat.com>
1330 * version.h (VERSION): Bump to 2.2.92.
1332 * time/Makefile (tst-ftime_l-ENV): New variable.
1334 * iconvdata/ibm870.c: All bytes are now used, no holes anymore.
1336 * localedata/charmaps/IBM870: Add correct mapping for <U017E>,
1337 <U017A>, <U017D> and <U0179>. Add missing mappings.
1338 Patch by Antonin Kopecky <akopecky@tajmac-zps.cz>.
1340 * gmon/sys/gmon.h (ARCDENSITY): Bump to 3.
1341 Define ARCINDEX. Bump MAXARCS to 1 << 20.
1342 (struct tostruct): Use ACRINDEX as type for link field.
1343 (statuc gmonparam): Likewise for froms.
1344 * gmon/gmon.c (__monstartup): Use currect cast for assignments to
1346 (write_call_graph): Use correct type for from_index and to_index.
1347 * gmon/mcount.c: Use correct types for frompcindex and toindex
1349 Patches by Dan Kegel <dank@kegel.com>.
1351 * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix code to determine
1354 * time/strptime.c (ISSPACE): New #define. Use isspace or
1355 __isspace_l. Replace calls to isspace.
1356 (match_string): Define variant for USE_IN_EXTENDED_LOCALE_MODEL.
1358 2002-08-29 Roland McGrath <roland@redhat.com>
1360 * string/tst-strxfrm.c: Remove __ from function names.
1362 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1364 * include/wchar.h: Declare __mbsrtowcs_l.
1365 * wcsmbs/Makefile (routines): Add mbsrtowcs_l.
1366 * wcsmbs/mbsrtowcs.c: Add support for compilation with
1367 USE_IN_EXTENDED_LOCALE_MODEL.
1368 * wcsmbs/mbsrtowcs_l: New file.
1369 * wcsmbs/wcsmbsload.c (__wcsmbs_to_wc): Renamed from to_wc. Don't
1370 define as static. Change all uses.
1371 (__wcsmbs_getfct): Renamed from getfct. Don't define as static.
1373 * wcsmbs/wcsmbsload.h: Declare __wcsmbs_to_wc and __wcsmbs_getfct.
1374 * time/strftime.c: When translating for the extended locale model
1375 use the _l functions.
1376 * time/Makefile (tests): Add tst-ftime_l.
1377 * time/tst-ftime_l.c: New file.
1379 2002-08-28 Roland McGrath <roland@redhat.com>
1381 * locale/findlocale.c [NL_CURRENT_INDIRECT] (_nl_C): New variable.
1382 * locale/setlocale.c (setlocale) [NL_CURRENT_INDIRECT]: Null return
1383 from _nl_find_locale ok if for _nl_C_name.
1385 * locale/nl_langinfo.c [NL_CURRENT_INDIRECT]: Use a categories.def
1386 iterator to refer to each category's _nl_current_LC_FOO symbol, so
1387 we know they are all linked in.
1389 * NEWS: Added 2.2.6 text from 2.2 branch version.
1391 * time/strptime.c (strptime_internal): Remove spurious const.
1393 * locale/lc-time.c (_nl_init_era_entries, _nl_get_era_entry,
1394 _nl_select_era_entry): Moved to ...
1395 * time/era.c: ... here, new file.
1396 (_nl_init_era_entries, _nl_get_era_entry, _nl_select_era_entry):
1397 Add internal_function to definitions. Take an additional argument
1398 giving the `struct locale_data *' to use.
1399 * locale/lc-time.c (_get_alt_digit, _nl_get_walt_digit,
1400 _nl_parse_alt_digit): Moved to ...
1401 * time/alt_digit.c: ... here, new file.
1402 * time/lc-time-cleanup.c: New file.
1403 * locale/lc-time.c (_nl_postload_time, free_mem): Functions removed.
1404 * locale/localeinfo.h (_nl_postload_time): Remove decl.
1405 (_nl_cleanup_time): Declare it.
1406 (_nl_get_era_entry, _nl_select_era_entry): Update decls.
1407 (_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit): Likewise.
1408 * time/Makefile (aux): New variable: era, alt_digit, lc-time-cleanup.
1409 * time/strftime.c: Pass locale data to helper functions.
1410 * time/strptime.c: Likewise.
1412 * locale/localeinfo.h (struct locale_data): New member `private'
1413 * locale/loadlocale.c (_nl_intern_locale_data): Initialize it.
1414 (_nl_unload_locale): Call LOCALE->private.cleanup if it is set.
1415 * locale/C-collate.c: Update initializer.
1416 * locale/C-identification.c: Likewise.
1417 * locale/C-measurement.c: Likewise.
1418 * locale/C-telephone.c: Likewise.
1419 * locale/C-address.c: Likewise.
1420 * locale/C-name.c: Likewise.
1421 * locale/C-paper.c: Likewise.
1422 * locale/C-time.c: Likewise.
1423 * locale/C-numeric.c: Likewise.
1424 * locale/C-monetary.c: Likewise.
1425 * locale/C-messages.c : Likewise.
1426 * locale/C-ctype.c: Likewise.
1428 * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL] (_NL_CURRENT_WORD):
1431 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1433 * sysdeps/generic/ldsodefs.h (__rtld_global_attribute__): Define.
1434 (_rtld_global): Use it.
1436 * sysdeps/gnu/Dist: Remove errlist-compat.c.
1437 * sysdeps/gnu/Makefile (errlist-compat.c): Build this file in the
1438 object directory. Pass all Versions files to the awk script.
1439 * sysdeps/gnu/errlist-compat.c: Removed.
1440 * sysdeps/gnu/errlist.awk: Use #errlist-compat comments from the
1441 first Versions file in the search path which has them.
1442 Allow multiple errlist symbol versions to have the same count of
1444 * sysdeps/gnu/errlist-compat.awk: Include <errlist-compat.c> instead
1445 of "errlist-compat.c".
1446 * sysdeps/gnu/errlist.c: Regenerated.
1447 * sysdeps/unix/sysv/linux/mips/Versions (libc): Add #errlist-compat
1448 comments at GLIBC_2.0, GLIBC_2.1 and GLIBC_2.3.
1449 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
1450 (librt): Add aio_cancel and aio_cancel64 as GLIBC_2.3.
1451 * sysdeps/unix/sysv/linux/hppa/Versions: Likewise.
1452 * sysdeps/unix/sysv/linux/sparc/Versions: New file.
1453 * sysdeps/unix/sysv/linux/alpha/bits/errno.h: New file.
1454 * sysdeps/unix/sysv/linux/hppa/bits/errno.h (ECANCELED): Define to
1455 ECANCELLED if not defined by kernel headers.
1456 * sysdeps/unix/sysv/linux/bits/errno.h: Don't redefine ECANCELED if
1457 already defined by kernel headers.
1458 * sysdeps/unix/sysv/linux/sparc/bits/errno.h: New file.
1459 * sysdeps/pthread/aio_cancel.c: Don't include aio.h and its
1460 aio_cancel64 renaming hack nor provide weak_alias if aio_cancel
1462 * Versions.def (GLIBC_2.3) [librt]: Add.
1464 * sysdeps/unix/sysv/linux/alpha/pipe.S: New file.
1466 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1468 * include/libc-symbols.h [!__ASSEMBLER__] (declare_symbol_1): Add
1469 missing comma to .type directive.
1471 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1473 * sysdeps/ia64/elf/configure.in (PI_STATIC_AND_HIDDEN): Define
1475 * sysdeps/alpha/elf/configure.in (libc_cv_alpha_hidden_gprel): New
1477 (PI_STATIC_AND_HIDDEN): Define if check succeeded.
1479 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1481 * locale/loadarchive.c (_nl_load_locale_from_archive): Add fd >= 0
1482 check to close_and_out close. Replace return NULL statements where
1483 fd might be >= 0 with goto close_and_out. Close the file descriptor
1484 when it is no longer needed.
1486 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1488 * sysdeps/s390/s390-64/dl-machine.h: Avoid unescaped newlines in
1490 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1491 * sysdeps/arm/dl-machine.h: Likewise.
1492 * sysdeps/cris/dl-machine.h: Likewise.
1493 * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
1494 * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
1496 2002-08-28 Roland McGrath <roland@redhat.com>
1498 * Makeconfig (default_cflags): Revert unintended change.
1500 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1502 * version.h (VERSION): Bump to 2.2.91.
1504 * configure.in: Disable TLS support by default for now.
1506 * sysdeps/i386/fpu/libm-test-ulps: Adjust ulp for yn for float.
1508 * sysdeps/generic/strtol.c (strtol): Add some more casts to avoid
1511 * stdlib/strtod.c (STRTOF): Correct type in cast of last patch.
1513 * stdlib/fmtmsg.c (fmtmsg): Use correct test for failure of
1514 fprintf/fwprintf calls.
1516 2002-08-28 Roland McGrath <roland@redhat.com>
1518 * Makeconfig (run-program-prefix): Fix bogus use of $(findstring ...)
1519 to use $(filter ...) instead. Same bug fixed in aix conditionals.
1521 * locale/setlocale.c: Declare postload functions weak.
1523 * elf/tst-tls1-static.c: New file.
1524 * elf/tst-tls2-static.c: New file.
1525 * elf/Makefile ($(tests-static):%=$(objfpx)%.o): Remove rule.
1527 Make uselocale support static linking.
1528 * locale/xlocale.c: Revert changes putting _nl_global_locale here.
1529 This file again just defines _nl_C_locobj.
1530 (_nl_C_locobj): Use a categories.def iterator in the initializer.
1531 * locale/global-locale.c: New file. Define _nl_global_locale here,
1532 using all weak references in the initializer.
1533 * locale/Makefile (aux): Add global-locale.
1534 * locale/localeinfo.h (_nl_global_locale, _NL_CURRENT_LOCALE): Make
1535 these unconditional, along with the tsd decl.
1536 [!SHARED && HAVE___THREAD && HAVE_WEAK_SYMBOLS] (NL_CURRENT_INDIRECT):
1537 Define it under these conditions.
1538 [NL_CURRENT_INDIRECT]: Test this instead of [! SHARED].
1539 Don't declare _nl_current. Declare _nl_current_LC_FOO as
1540 `extern __thread struct locale_data *const *'.
1541 [NL_CURRENT_INDIRECT]
1542 (_NL_CURRENT_DATA, _NL_CURRENT, _NL_CURRENT_WSTR): Add indirection.
1543 [NL_CURRENT_INDIRECT] (_NL_CURRENT_DEFINE): Rewritten. Define
1544 the thread variable _nl_current_LC_FOO and also a special absolute
1545 symbol _nl_current_LC_FOO_used.
1546 * locale/uselocale.c (__uselocale) [NL_CURRENT_INDIRECT]:
1547 Set each _nl_current_LC_FOO symbol to point into the new locale,
1548 using weak references to test if _nl_current_LC_FOO_used was linked in.
1549 * locale/setlocale.c [! SHARED]: Replace this conditional ...
1550 [NL_CURRENT_INDIRECT]: ... with this one.
1551 (_nl_current, _nl_C): Variables removed.
1552 [NL_CURRENT_INDIRECT] (_nl_current_used): New variable, table of
1553 weak references to _nl_current_LC_FOO_used.
1554 [NL_CURRENT_INDIRECT] (CATEGORY_USED): Define using that table.
1555 (free_category): New function, broken out of ...
1556 (free_mem): ... here. Call that.
1557 (free_mem) [NL_CURRENT_INDIRECT]: Use a categories.def iterator
1560 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Don't check for
1561 PT_LOAD program headers and don't try to relocate PT_TLS's p_vaddr;
1562 it is already absolute.
1564 * elf/Makefile (tests): List tst-tls1 and tst-tls2 unconditionally.
1565 [$(build-static) = yes] (tests): Add tst-tls1-static, tst-tls2-static.
1566 [$(build-static) = yes] (tests-static): New variable.
1567 ($(tests-static):%=$(objfpx)%.o)): New static pattern rule.
1569 2002-08-26 Christoph Hellwig <hch@lst.de>
1571 * sysdeps/unix/sysv/linux/sys/personality.h: Remark origin, fix
1572 formating braindamage, add missing PER_HPUX and PER_OSF1 values.
1574 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1576 * sysdeps/x86_64/Dist: Add _mcount.S and bits/link.h.
1578 * sysdeps/s390/Dist: Add bits/link.h.
1580 * sysdeps/sh/Dist: New file.
1582 * sysdeps/ia64/Dist: Add ia64libgcc.S.
1584 * sysdeps/wordsize-32/Dist: New file.
1586 * sysdeps/unix/sysv/linux/alpha/Dist: Add dl-brk.S.
1587 * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
1588 * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
1590 * sysdeps/unix/sysv/linux/Dist: Add dl-brk.c, dl-sbrk.c, and
1593 * sysdeps/unix/Dist: Add i386/dl-brk.S, mips/dl-brk.S, and
1596 * sysdeps/unix/bsd/Dist: Add vax/dl-brk.S.
1598 * sysdeps/unix/bsd/sun/Dist: New file.
1600 * sysdeps/unix/bsd/osf/Dist: New file.
1602 * sysdeps/unix/bsd/hp/Dist: New file.
1604 * sysdeps/unix/arm/Dist: New file.
1606 * sysdeps/powerpc/Dist: Add divdi3.c and libgcc-compat.S.
1608 * sysdeps/mach/hurd/Dist: Add set-init.c.
1610 * sysdeps/i386/Dist: Add bits/link.h.
1612 * sysdeps/gnu/Dist: Add errlist-compat.c errlist-compat.awk.
1614 * sysdeps/generic/Dist: Add dl-brk.c and dl-sbrk.c.
1616 * locale/Makefile (distribute): Add hashval.h.
1618 * iconvdata/Makefile (distribute): Add tcvn5712-1.c and armscii-8.c.
1620 * sysdeps/unix/sysv/linux/Dist: Remove errlist.h.
1622 * misc/sys/cdefs.h: Define __BEGIN_NAMESPACE_STD, __END_NAMESPACE_STD,
1623 __USING_NAMESPACE_STD, __BEGIN_NAMESPACE_C99, __END_NAMESPACE_C99, and
1624 __USING_NAMESPACE_C99 depending on _GLIBCPP_USE_NAMESPACES.
1625 * ctype/ctype.h: Prepare headers for use in ISO C++ compliant
1627 * libio/stdio.h: Likewise.
1628 * locale/locale.h: Likewise.
1629 * math/math.h: Likewise.
1630 * math/bits/mathcalls.h: Likewise.
1631 * setjmp/setjmp.h: Likewise.
1632 * signal/signal.h: Likewise.
1633 * stdlib/stdlib.h: Likewise.
1634 * string/string.h: Likewise.
1635 * time/time.h: Likewise.
1636 * wcsmbs/wchar.h: Likewise.
1637 * wctype/wctype.h: Likewise.
1639 2002-08-28 Roland McGrath <roland@redhat.com>
1641 * locale/tst-C-locale.c (run_test): Remove __ from function names.
1643 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1644 Roland McGrath <roland@redhat.com>
1646 * locale/hashval.h (compute_hashval): Use prototype defn.
1647 (hashval_t): New macro, defined to unsigned long int
1648 if not already defined.
1649 (compute_hashval): Return hashval_t instead of unsigned long int.
1650 * locale/loadarchive.c (hashval_t): New macro.
1651 * locale/programs/locarchive.c: Include hashval.h directly instead
1653 (compute_hashval, hashval_t): Define these macros first.
1654 (insert_name): Use archive_hashval instead of compute_hashval.
1655 (add_locale, delete_locales_from_archive): Likewise.
1657 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1659 * locale/programs/locarchive.c (insert_name): Suppress warnings about
1660 hash collisions if be_quiet.
1662 2002-08-27 Roland McGrath <roland@redhat.com>
1664 * locale/locale.h (__newlocale, __duplocale, __freelocale,
1665 __uselocale): Don't declare these any more.
1666 * include/locale.h (__uselocale): Declare here instead, using __typeof.
1668 * sysdeps/unix/readdir.c: If getdents fails with ENOENT, restore errno
1669 and treat it as an EOF return.
1670 * sysdeps/unix/readdir_r.c: Likewise.
1672 * sysdeps/gnu/errlist-compat.awk: Include <bits/wordsize.h> in output.
1673 From Alexandre Oliva <aoliva@redhat.com>.
1674 * sysdeps/gnu/errlist-compat.c: Regenerated.
1676 2002-08-27 Brian Youmans <3diff@gnu.org>
1678 * sysdeps/ieee754/flt-32/e_asinf.c: Modified copying permission
1679 wording at request of copyright holder Stephen Moshier.
1680 * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
1681 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
1682 * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
1683 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
1684 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
1685 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
1686 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
1687 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
1688 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
1689 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
1690 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
1691 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
1692 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
1693 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
1695 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1697 * ctype/ctype.h (isascii_l, toascii_l): Define to __*_l counterparts.
1698 * ctype/ctype-extn.c (isblank_l): Add weak alias.
1699 * sysdeps/generic/strtol_l.c (strtol_l): Likewise.
1700 * sysdeps/generic/strtoll_l.c (strtoll_l): Likewise.
1701 * sysdeps/generic/strtoul_l.c (strtoul_l): Likewise.
1702 * sysdeps/generic/strtoull_l.c (strtoull_l): Likewise.
1703 * wctype/iswctype_l.c (iswctype_l): Likewise.
1705 2002-08-27 Roland McGrath <roland@redhat.com>
1707 * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: No libc_hidden_def.
1709 * ctype/ctype.h (__exctype_l): Don't declare __ name.
1710 * stdlib/stdlib.h: Don't declare __*_l names.
1711 * include/stdlib.h: Declare them here instead.
1712 * include/string.h: Don't declare __*_l names.
1713 * string/string.h: Declare them here instead.
1714 * time/time.h: Don't declare __*_l names.
1715 * include/time.h: Declare them here instead.
1716 * wcsmbs/wchar.h: Don't declare __*_l names.
1717 * include/wchar.h: Declare them here instead.
1718 * wctype/wctype.h: Declare iswalnum_l, not __iswalnum_l.
1719 Don't declare __*_l names.
1720 * include/wctype.h: Declare them here instead.
1721 * stdlib/monetary.h: Declare strfmon_l, not __strfmon_l.
1722 * stdlib/strfmon_l.c (strfmon_l): Define as weak alias.
1723 * locale/langinfo.h: Don't declare __nl_langinfo_l.
1724 * include/langinfo.h: Declare it here with __typeof.
1726 * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strptime_l
1727 instead, taking an extra __locale_t argument.
1728 * time/Makefile (routines): Add strptime_l.
1729 * time/time.h (__strptime_l, strptime_l): Declare them.
1730 * time/strptime_l.c: New file.
1732 * time/time.h (__strftime_l, strftime_l): Declare them.
1733 * wcsmbs/wchar.h (__wcsftime_l, wcsftime_l): Declare them.
1734 * time/strftime_l.c: New file.
1735 * time/wcsftime_l.c: New file.
1736 * time/Makefile (routines): Add strftime_l, wcsftime_l.
1737 * time/Versions (libc: GLIBC_2.3): Add __strftime_l, __wcsftime_l,
1738 strftime_l, wcsftime_l.
1739 * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strftime_l
1740 or __wcsftime_l instead, taking an extra __locale_t argument.
1742 * locale/Versions (libc: GLIBC_PRIVATE): Move __uselocale to ...
1743 (libc: GLIBC_2.3): ... here.
1745 2002-08-27 Ulrich Drepper <drepper@redhat.com>
1747 * stdio-common/Makefile: Fix typo in stdio_lim.h installation rule.
1749 * Makefile (distribute): Add LICENSES.
1751 * sysdeps/unix/sysv/linux/x86_64/Dist: Add ucontext_i.h and
1754 * sysdeps/unix/sysv/linux/s390/Dist: Add new/route.h.
1756 * sysdeps/unix/sysv/linux/ia64/Dist: Add dl-brk.S and sys/user.h.
1758 * sysdeps/unix/sysv/linux/mips/Dist: Add sys/user.h.
1760 * sysdeps/unix/sysv/linux/Dist: Add readahead.c.
1762 * sysdeps/mach/hurd/alpha/Dist: New file.
1764 * sysdeps/arm/Dist: Add bits/link.h.
1766 * sunrpc/Makefile: Distribute thrsvc.
1768 * stdio-common/Makefile: Remove more left-overs from old stdio.
1770 * include/linewrap.h: Removed.
1772 * libio/bug-mmap-fflush.c: Rewrite to not touch source directory.
1774 * intl/Makefile (distribute): Add plural-eval.c.
1776 2002-08-27 Roland McGrath <roland@redhat.com>
1778 * manual/sysinfo.texi (Mount Information): Correct file name to macro
1779 assocations for _PATH_MNTTAB, MNTTAB, _PATH_MOUNTED, MOUNTED.
1780 Say mtab is in either /var/run or /etc.
1782 2002-08-26 Roland McGrath <roland@redhat.com>
1784 * manual/errno.texi (Error Codes): Added ECANCELED (118 for Hurd).
1785 * sysdeps/mach/hurd/bits/errno.h: Regenerated.
1787 * sysdeps/gnu/Versions: New file.
1788 * sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.1): Remove
1789 _sys_errlist; sys_errlist; _sys_nerr; sys_nerr; from here.
1790 * sysdeps/gnu/Makefile ($(..)sysdeps/gnu/errlist-compat.c): New target.
1791 ($(objpfx)errlist.d): Depend on $(..)sysdeps/gnu/errlist-compat.c.
1792 * sysdeps/gnu/errlist.awk: Make output define _sys_errlist_internal
1793 and _sys_nerr_internal instead of anything else. Make it include
1794 "errlist-compat.c" if [!NOT_IN_libc && !ERRLIST_NO_COMPAT].
1795 Make it emit some asm magic if [EMIT_ERR_MAX].
1796 * sysdeps/gnu/errlist.c: Regenerated.
1797 * sysdeps/gnu/errlist-compat.awk: New file.
1798 * sysdeps/gnu/errlist-compat.c: New file (generated).
1799 * sysdeps/mach/hurd/errlist.c (ERRLIST_NO_COMPAT): New macro.
1800 (_sys_errlist_internal): Define this as a macro for _hurd_errlist.
1801 (_sys_nerr_internal): Define this is a macro for _hurd_nerr.
1802 (SYS_ERRLIST, SYS_NERR): Macros removed.
1803 (sys_nerr, _sys_nerr): Remove these weak aliases.
1804 * sysdeps/unix/sysv/linux/errlist.c: File removed.
1805 * sysdeps/unix/sysv/linux/errlist.h: File removed.
1806 * sysdeps/unix/sysv/linux/arm/errlist.c: File removed.
1808 * include/libc-symbols.h (declare_symbol): New macro.
1809 * config.h.in (ASM_TYPE_DIRECTIVE_PREFIX): New #undef.
1810 * configure.in: New check to define it.
1811 * configure: Regenerated.
1813 2002-08-27 Ulrich Drepper <drepper@redhat.com>
1815 * stdio-common/Makefile (headers): Remove bits/stdio_lim.h. This
1816 file isn't distributed. Add special rules to install bits/stdio_lim.h.
1818 * Make-dist: Remove traces of old stdio.
1819 * Makeconfig: Likewise.
1821 * locale/Makefile (localedef-aux): New variable. Only md5
1822 assigned to it. These files are not ddistributed in this directory.
1824 * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
1825 * sysdeps/unix/sysv/linux/s390/s390-64/Dist: Remove sys/procfs.h.
1826 * sysdeps/unix/sysv/linux/s390/s390-32/Dist: Likewise.
1828 * sysdeps/unix/sysv/linux/Dist: Remove sys/sendfile.h.
1830 * nss/getXXbyYY_r.c (REENTRANT_NAME): If no service is available
1831 set h_errno to NO_RECOVERY [PR libc/4360].
1833 2002-08-26 Ulrich Drepper <drepper@redhat.com>
1835 * libio/Makefile (tests): Add bug-fopena+.
1836 * libio/bug-fopena+.c: New file.
1837 * libio/fileops.c (_IO_file_open): Only set file pointer to end of the
1838 file for _IO_IS_APPENDING if file isn't opened for reading, too.
1840 * stdio-common/tst-swprintf.c (main): Add casts to avoid warnings.
1842 * locale/xlocale.c: Fix the last change. The variable still has
1844 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
1845 (__libc_tsd_set): Add _data prefix to variable name.
1847 2002-08-26 Roland McGrath <roland@redhat.com>
1849 * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Replace
1850 macro with inline function.
1851 (sigset_get_old_mask): Likewise.
1852 * sysdeps/posix/sigblock.c (__sigblock): Update callers.
1853 * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
1854 * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1855 * sysdeps/posix/sigvec.c (__sigvec, sigvec_wrapper_handler): Likewise.
1856 * sysdeps/unix/sysv/aix/sigset-cvt-mask.h
1857 (sigset_set_old_mask, sigset_get_old_mask): Make these macros return
1859 * sysdeps/unix/sysv/linux/sigset-cvt-mask.h: Likewise.
1860 * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h: Likewise.
1862 2002-07-06 Bruno Haible <bruno@clisp.org>
1864 * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask,
1865 sigset_get_old_mask): Make it work with larger sigset_t.
1866 * sysdeps/posix/sigblock.c (__sigblock): Use those macros.
1867 * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
1868 * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1870 2002-08-26 Roland McGrath <roland@redhat.com>
1872 * time/sys/time.h [__USE_BSD] (lutimes, futimes): Declare them.
1873 * manual/filesys.texi (File Times): Document lutimes and futimes.
1874 * misc/Makefile (routines): Add them.
1875 * misc/Versions (libc: GLIBC_2.3): Likewise.
1876 * sysdeps/generic/lutimes.c: New file.
1877 * sysdeps/generic/futimes.c: New file.
1878 * sysdeps/mach/hurd/lutimes.c: New file.
1879 * sysdeps/mach/hurd/futimes.c: New file.
1881 * manual/filesys.texi (File Times): Add explicit note about null
1882 pointer argument to utimes.
1884 2002-08-26 Roland McGrath <roland@frob.com>
1886 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Add missing semicolon.
1887 (__ifreq): Add a cast. Remove an unused variable.
1889 * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
1890 _HURD_THREADVAR_LOCALE.
1892 2002-08-26 Jakub Jelinek <jakub@redhat.com>
1894 * posix/regexec.c (re_search_stub): Return correct match length
1896 * posix/bug-regex10.c: New test.
1897 * posix/Makefile (tests): Add bug-regex10.
1899 2002-08-26 Brian Youmans <3diff@gnu.org>
1901 * COPYING.LIB: Replaced with fresh copy from
1902 ftp://ftp.gnu.org/gnu/Licenses/COPYING.LIB-2.1;
1903 suggested copying permission notice now says version 2.1 instead
1906 * crypt/crypt.c: Changed copying permission notice to Lesser GPL
1908 * crypt/crypt_util.c: Likewise.
1909 * crypt/ufc.c: Likewise.
1910 * elf/dl-conflict.c: Likewise.
1911 * elf/dl-iteratephdr.c: Likewise.
1912 * iconv/iconvconfig.h: Likewise.
1913 * malloc/arena.c: Likewise.
1914 * malloc/hooks.c: Likewise.
1915 * malloc/malloc.c: Likewise.
1916 * posix/glob/Makefile.ami: Likewise.
1917 * posix/glob/Makefile.in: Likewise.
1918 * stdlib/gmp-impl.h: Likewise.
1919 * stdlib/gmp.h: Likewise.
1920 * sysdeps/generic/dl-iteratephdr-static.c: Likewise.
1921 * sysdeps/generic/strnlen.c: Likewise.
1922 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
1923 * sysdeps/mach/hurd/recvmsg.c: Likewise.
1924 * sysdeps/mach/hurd/sendmsg.c: Likewise.
1925 * sysdeps/mach/hurd/spawni.c: Likewise.
1926 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
1927 * sysdeps/mach/powerpc/sysdep.h: Likewise.
1928 * sysdeps/mach/powerpc/thread_state.h: Likewise.
1929 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
1930 * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: Likewise.
1931 * sysdeps/x86_64/gmp-mparam.h: Likewise.
1933 * sysdeps/ieee754/dbl-64/MathLib.h: Corrected version number in
1934 Lesser GPL copying permission notice from 2 to 2.1.
1935 * sysdeps/ieee754/dbl-64/asincos.tbl: Likewise.
1936 * sysdeps/ieee754/dbl-64/atnat.h: Likewise.
1937 * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
1938 * sysdeps/ieee754/dbl-64/branred.c: Likewise.
1939 * sysdeps/ieee754/dbl-64/branred.h: Likewise.
1940 * sysdeps/ieee754/dbl-64/dla.h: Likewise.
1941 * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
1942 * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
1943 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
1944 * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
1945 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
1946 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
1947 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
1948 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
1949 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
1950 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
1951 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
1952 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
1953 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
1954 * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
1955 * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
1956 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
1957 * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
1958 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
1959 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
1960 * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
1961 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
1962 * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
1963 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
1964 * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
1965 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
1966 * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
1967 * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
1968 * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
1969 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
1970 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
1971 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1972 * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
1973 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
1974 * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
1975 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
1976 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
1977 * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
1978 * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
1979 * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
1980 * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
1981 * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
1982 * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
1983 * sysdeps/ieee754/dbl-64/upow.h: Likewise.
1984 * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
1985 * sysdeps/ieee754/dbl-64/urem.h: Likewise.
1986 * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
1987 * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
1988 * sysdeps/ieee754/dbl-64/utan.h: Likewise.
1989 * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
1991 * sysdeps/ieee754/flt-32/e_asinf.c: Added copyright notice for Stephen
1992 Moshier and Lesser GPL copying permission notice, per license from
1994 * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
1995 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
1996 * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
1997 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
1998 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
1999 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
2000 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
2001 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
2002 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
2003 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2004 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
2005 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
2006 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
2007 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
2009 * sysdeps/ieee754/ldbl-128/e_j0l.c: Added Lesser GPL copying permission
2010 notice, per license from copyright holder Stephen Moshier.
2011 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2012 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
2013 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
2014 * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
2015 * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
2016 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
2017 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
2018 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
2019 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
2021 2002-08-26 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2023 * sysdeps/sh/Makefile (sysdeps_routines): Add divdi3 in csu dir.
2024 (shared-only-routines): Likewise.
2026 2002-08-26 Roland McGrath <roland@redhat.com>
2028 * locale/programs/ld-ctype.c (ctype_read): When given a repertoire
2029 name of "", store a null pointer instead.
2031 * configure.in (elf): Set to yes for freebsd*, netbsd*.
2032 * configure: Regenerated.
2034 * locale/xlocale.c [! (USE_TLS && HAVE___THREAD)] (__libc_tsd_LOCALE):
2035 Initialize this instead of __libc_tsd_LOCALE_data.
2037 * sysdeps/unix/grantpt.c (pts_name): Convert ENOTTY return from
2038 ptsname_r to EINVAL.
2040 * sysdeps/generic/ptsname.c (__ptsname_r): Return ENOSYS instead of 0.
2042 * rt/Makefile: Revert last change, it was inappropriate to presume aio
2043 implementations depend on pthreads.
2044 * rt/tst-aio.c (do_test): Exit happy if first failure is ENOSYS.
2045 * rt/tst-aio64.c (do_test): Likewise.
2046 * rt/tst-aio2.c (do_test): Likewise.
2047 * rt/tst-aio3.c (do_test): Likewise.
2048 * rt/tst-aio4.c (do_test): Likewise.
2049 * rt/tst-aio5.c (do_test): Likewise.
2050 * rt/tst-aio6.c (do_test): Likewise.
2051 * rt/tst-aio7.c (do_test): Likewise.
2053 * sysdeps/generic/bits/libc-lock.h (__libc_setspecific): Use a cast to
2054 void so as to avoid compiler warnings.
2056 * libio/oldstdfiles.c [! _IO_MTSAFE_IO] (DEF_STDFILE): Don't define
2057 _IO_wide_data_FD, which is never used here.
2060 [! _IO_MTSAFE_IO] (fread_unlocked): Add libc_hidden_ver defn.
2061 * libio/iofputs.c [! _IO_MTSAFE_IO] (fputs_unlocked): Likewise.
2062 * libio/iofgets.c [! _IO_MTSAFE_IO] (fgets_unlocked): Likewise.
2064 * include/resolv.h [! _LIBC_REENTRANT] (_res): #undef it before decl.
2065 * include/netdb.h [! _LIBC_REENTRANT] (h_errno): Declare normal extern.
2067 * misc/syslog.c (openlog): Conditionalize locking on [_LIBC_REENTRANT].
2068 (closelog): Likewise.
2070 2002-07-06 Bruno Haible <bruno@clisp.org>
2072 * sysdeps/alpha/fpu/fpu_control.h: Comment fix.
2074 * sysdeps/unix/sysv/linux/alpha/pipe.S: Moved to ...
2075 * sysdeps/unix/alpha/pipe.S: ... here.
2076 * sysdeps/unix/bsd/osf/alpha/pipe.S: File removed.
2078 * sysdeps/unix/i386/brk.S: Rename local label to '.Lhere' in ELF.
2080 * sysdeps/unix/i386/brk.S: Add PSEUDO_END invocation.
2081 * sysdeps/unix/i386/fork.S: Likewise.
2082 * sysdeps/unix/i386/pipe.S: Likewise.
2083 * sysdeps/unix/i386/wait.S: Likewise.
2085 * sysdeps/unix/fork.S: Fix PSEUDO_END argument.
2086 * sysdeps/unix/arm/fork.S: Likewise.
2088 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Swap DO_CALL
2090 (DO_CALL): Swap argument order.
2091 * sysdeps/unix/sysv/linux/hppa/sysdep.h (PSEUDO): Swap DO_CALL
2093 (DO_CALL): Swap argument order.
2094 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Swap DO_CALL
2096 (DO_CALL): Swap argument order.
2097 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO): Swap DO_CALL
2099 (DO_CALL): Swap argument order.
2100 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO): Swap DO_CALL
2102 (DO_CALL): Swap argument order.
2103 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Swap DO_CALL
2105 (DO_CALL): Swap argument order.
2106 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Swap DO_CALL
2108 (DO_CALL): Swap argument order.
2110 * sysdeps/i386/sysdep.h (PSEUDO): Fix syntax error.
2111 (L): Define right for ELF.
2112 * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Remove definition.
2113 Now defined in sysdeps/i386/sysdep.h.
2115 * sysdeps/posix/readv.c: Ansify function definition.
2116 * sysdeps/posix/writev.c: Likewise.
2118 * stdio-common/tst-fseek.c (main): Don't assume that off_t and size_t
2119 have the same size. Avoid direct cast from size_t to off_t.
2121 * login/tst-utmp.c (simulate_login): Don't leave garbage after the
2122 nul byte in entry[n].ut_user.
2123 (simulate_logout): Likewise.
2125 * login/programs/utmpdump.c (print_entry): Test _HAVE_UT_TYPE,
2126 _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST, instead of assuming the
2127 existence of corresponding members of 'struct utmp'.
2128 * login/tst-utmp.c: Trivialize the test if testing 'struct utmp' and
2131 * sysdeps/unix/opendir.c (__opendir): If st_blksize is 0 or too small,
2132 allocate a buffer of at least BUFSIZ bytes, not just of
2133 sizeof (struct dirent).
2135 * sysdeps/generic/glob.c: Include <limits.h>.
2136 (NAME_MAX): Define a fallback.
2137 (glob_in_dir): Allocate enough room for a 'struct dirent64' on the
2139 * posix/tst-dir.c: Include <stddef.h>, for offsetof.
2140 (main): Allocate enough room for a 'struct dirent64' on the stack.
2141 * posix/tst-gnuglob.c (my_DIR): Allocate enough room for a
2144 * sysdeps/unix/sysv/linux/init-first.c: Don't include
2147 * inet/htontest.c: Include <sys/types.h>.
2149 * sysdeps/generic/sys/sysinfo.h: Surround with __{BEGIN,END}_DECLS.
2151 * include/sys/sysctl.h: Comment fix.
2153 * elf/rtld.c (_rtld_global) [! _LIBC_REENTRANT]: Don't initialize
2155 * libio/fileno.c (fileno_unlocked): Define regardless of _IO_MTSAFE_IO.
2157 * sysdeps/unix/bsd/bsd4.4/syscalls.list (__sigaltstack): New alias.
2159 * sysdeps/unix/inet/syscalls.list (__connect_internal): New alias.
2160 (__getpeername): New alias.
2161 (__getsockname): New alias.
2162 (__socket): New alias.
2164 * sysdeps/unix/common/syscalls.list (getpgid): Remove.
2166 * sysdeps/unix/syscalls.list (__chown_internal): New alias.
2167 (__fcntl_internal): New alias.
2168 (__profil): New alias.
2170 2002-08-26 Ulrich Drepper <drepper@redhat.com>
2172 * nscd/hstcache.c (cache_addhst): Add new parameter saying whether
2173 entry was for getaddr* lookup or not. Add only matching cache
2174 entry. Change all callers [PR libc/4317].
2176 * libio/wfileops.c (_IO_wfile_seekoff): Set fp->_offset after
2177 finding the read position [PR libc/4265].
2178 * libio/Makefile (tests): Add bug-rewind2.
2179 * libio/bug-rewind2.c: New file.
2181 * libio/bug-rewind.c: Fix creation of temp file.
2183 2002-08-25 Ulrich Drepper <drepper@redhat.com>
2185 * nss/getXXbyYY_r.c (REENTRANT_NAME): Return ENOENT if status is
2186 neither SUCCESS nor TRYAGAIN [PR libc/4259].
2187 * nss/nss_files/files-XXX.c (internal_getent): Don't set *errnop
2188 to ENOENT if no entry is found.
2189 * nis/nss_compat/compat-grp.c: Don't set errno in case of lookup
2191 * nis/nss_compat/compat-initgroups.c: Likewise.
2192 * nis/nss_compat/compat-pwd.c: Likewise.
2193 * nis/nss_compat/compat-spwd.c: Likewise.
2194 * nis/nss_nis/nis-alias.c: Likewise.
2195 * nis/nss_nis/nis-ethers.c: Likewise.
2196 * nis/nss_nis/nis-grp.c: Likewise.
2197 * nis/nss_nis/nis-hosts.c: Likewise.
2198 * nis/nss_nis/nis-initgroups.c: Likewise.
2199 * nis/nss_nis/nis-netgrp.c: Likewise.
2200 * nis/nss_nis/nis-network.c: Likewise.
2201 * nis/nss_nis/nis-proto.c: Likewise.
2202 * nis/nss_nis/nis-publickey.c: Likewise.
2203 * nis/nss_nis/nis-pwd.c: Likewise.
2204 * nis/nss_nis/nis-rpc.c: Likewise.
2205 * nis/nss_nis/nis-service.c: Likewise.
2206 * nis/nss_nis/nis-spwd.c: Likewise.
2207 * resolv/nss_dns/dns-host.c: Likewise.
2208 * resolv/nss_dns/dns-network.c: Likewise.
2209 * nis/nss_nisplus/nisplus-alias.c: Save errno around NIS calls.
2210 * nis/nss_nisplus/nisplus-ethers.c: Likewise.
2211 * nis/nss_nisplus/nisplus-grp.c: Likewise.
2212 * nis/nss_nisplus/nisplus-hosts.c: Likewise.
2213 * nis/nss_nisplus/nisplus-network.c: Likewise.
2214 * nis/nss_nisplus/nisplus-proto.c: Likewise.
2215 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
2216 * nis/nss_nisplus/nisplus-rpc.c: Likewise.
2217 * nis/nss_nisplus/nisplus-service.c: Likewise.
2218 * nis/nss_nisplus/nisplus-spwd.c: Likewise.
2219 * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Preserve errno value.
2220 * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
2221 * hesiod/nss_hesiod/hesiod-grp.c (lookup): Likewise.
2222 * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
2224 * sysdeps/unix/sysv/linux/i386/sigaction.c: Avoid warnings by
2225 declaring __restore and __restore_rt as hidden (if possible).
2227 2002-08-25 Roland McGrath <roland@redhat.com>
2229 * manual/llio.texi (Access Modes): Fix typos in O_READ/O_WRITE defns.
2231 * sysdeps/generic/utmp_file.c (LOCK_FILE): Check for error from fcntl.
2232 (getutent_r_file, internal_getut_r): Updated all callers.
2233 (getutline_r_file, pututline_file, updwtmp_file): Likewise.
2235 2002-08-25 Ulrich Drepper <drepper@redhat.com>
2237 * locale/programs/locale.c: Don't print aliases for non-existing
2238 locales for 'locale -a'.
2239 Patch by Noah Levitt <nlevitt@columbia.edu> [PR libc/4166].
2241 2002-07-19 H.J. Lu <hjl@gnu.org>
2243 * sysdeps/unix/sysv/linux/mips/bits/msq.h: New file.
2245 2002-07-16 H.J. Lu <hjl@gnu.org>
2247 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2249 * sysdeps/unix/sysv/linux/sys/personality.h: New file.
2251 2002-08-25 Ulrich Drepper <drepper@redhat.com>
2253 * elf/tst-tlsmod1.c (in_dso): Make sure the TLS variable access is
2254 not moved ahead of the fputs call.
2255 * elf/tst-tlsmod2.c (in_dso): Likewise.
2256 * elf/tst-tlsmod3.c (in_dso2): Likewise.
2257 * elf/tst-tlsmod4.c (in_dso): Likewise.
2259 2002-08-25 Andreas Schwab <schwab@suse.de>
2261 * elf/dl-reloc.c (_dl_reloc_bad_type): Nul-terminate message.
2263 2002-08-25 Roland McGrath <roland@redhat.com>
2265 * sysdeps/generic/utmp_file.c (UNLOCK_FILE): Clear alarm before
2266 resetting handler, to avoid the possibility of a spurious SIGALRM
2267 delivered to the user's handler.
2268 Reported by Amit D. Chaudhary <amitc@brocade.com>,
2270 * misc/Makefile (CFLAGS-init-misc.c): Variable removed. It served to
2271 set -fkeep-inline-functions, which is not needed for the current file.
2273 * sysdeps/generic/ldsodefs.h: Add attribute_hidden to *_internal decls.
2274 (_dl_setup_hash): Add attribute_hidden.
2275 (_dl_sysdep_start, _dl_sysdep_start_cleanup): Likewise.
2276 (_dl_sysdep_read_whole_file, _dl_dprintf): Likewise.
2277 (_dl_new_object, _dl_map_object_deps): Likewise.
2278 (_dl_map_object_deps_internal): Remove decl.
2279 * elf/rtld.c (__mempcpy, _exit): Redeclare locally as hidden.
2281 * sysdeps/i386/dl-machine.h [PI_STATIC_AND_HIDDEN
2282 && HAVE_VISIBILITY_ATTRIBUTE && HAVE_HIDDEN
2283 && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]
2284 (elf_machine_dynamic, elf_machine_load_address): Rewritten without asm,
2285 instead relying on the compiler to produce only GOTOFF variable refs.
2287 2002-08-25 Ulrich Drepper <drepper@redhat.com>
2289 * elf/dl-load.c: Fix typo in comment. Add a few more __builtin_expect.
2291 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Define as static
2292 inline to avoid defining it in every file which includes this header.
2294 * elf/rtld.c: Also test for HAVE_VISIBILITY_ATTRIBUTE before
2295 defining DONT_USE_BOOTSTRAP_MAP.
2297 * libio/tst-freopen.c (main): Use correct formats for __LINE__.
2298 * libio/tst-mmap-setvbuf.c (main): Likewise.
2299 * libio/tst-widetext.c (main): Likewise.
2301 * libio/tst-mmap-eofsync.c (do_test): Use correct format in error
2303 * libio/tst-mmap-fflushsync.c (do_test): Likewise.
2304 * libio/tst-mmap2-eofsync.c (do_test): Likewise.
2306 * sysdeps/i386/elf/configure.in: Unconditionally define
2307 PI_STATIC_AND_HIDDEN.
2308 * elf/rtld.c (DONT_USE_BOOTSTRAP_MAP): Define only if
2309 PI_STATIC_AND_HIDDEN is defined as well.
2310 * config.h.in: Add PI_STATIC_AND_HIDDEN entry.
2312 2002-08-24 Ulrich Drepper <drepper@redhat.com>
2314 * sysdeps/ia64/bzero.S: Define __bzero as well.
2316 * locale/programs/charmap.c (charmap_new_char): Don't use
2317 ULONG_MAX as maximum UCS4 value.
2319 * sysdeps/unix/sysv/linux/ia64/sys/user.h: New file.
2321 * sysdeps/generic/strtol.c: We don't need the isascii test in glibc.
2323 * malloc/hooks.c (public_sET_STATe): use size_t as type for i.
2324 * malloc/malloc.c (mALLINFo): Likewise.
2326 * libio/wstrops.c (_IO_wstr_pbackfail): Use WEOF in comparison.
2328 * libio/wfileops.c (_IO_wfile_overflow): Use EOF not WEOF when
2329 examining result of _IO_do_flush call.
2331 * stdio-common/vfprintf.c (vfprintf): Use correct type in va_arg.
2332 Use prec not spec when sizing buffers.
2334 * catgets/open_catalog.c (__open_catalog): Add casts to avoid warnings.
2335 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
2336 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
2337 * stdio-common/vfscanf.c (inchar): Likewise.
2338 * misc/efgcvt_r.c (fcvt_r): Likewise.
2339 * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
2340 * elf/readlib.c (process_file): Likewise.
2341 * elf/sprof.c (load_profdata): Likewise.
2342 * sysdeps/ia64/hp-timing.h (HP_TIMING_PRINT): Likewise.
2343 * locale/programs/linereader.c (get_toplvl_escape): Likewise.
2344 * locale/programs/charmap.c (charmap_read): Likewise.
2345 * libio/fileops.c: Likewise.
2346 * libio/fmemopen.c: Likewise.
2347 * stdlib/strtod.c: Likewise.
2348 * elf/dl-load.c: Likewise.
2349 * iconv/iconvconfig.c: Likewise.
2350 * iconv/iconv_prog.c (process_block): Likewise.
2351 * elf/rtld.c (dl_main): Likewise.
2353 * sysdeps/unix/sysv/linux/ia64/Makefile: Define _ASM_IA64_CURRENT_H
2354 macro to calm down the compiler.
2356 * iconv/gconv_cache.c (__gconv_load_cache): Add cast to avoid warning.
2358 * sysdeps/ia64/elf/initfini.c: Don't use newlines embedded in string.
2360 * sysdeps/unix/sysv/linux/i386/sysdep.S: Update comment regarding
2361 placement of errno definition.
2362 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
2363 * sysdeps/unix/sysv/linux/mips/sysdep.S: Likewise.
2364 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
2365 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
2366 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
2368 * resolv/nss_dns/dns-host.c (MAXPACKET): Increase minimum value
2369 from 1024 to 65536, to avoid buffer overrun.
2371 2002-08-16 Paul Eggert <eggert@twinsun.com>
2373 * resolv/gethnamaddr.c (MAXPACKET): Increase minimum value
2374 from 1024 to 65536, to avoid buffer overrun.
2375 * resolv/res_query.c (MAXPACKET): Likewise.
2377 2002-08-24 Andreas Jaeger <aj@suse.de>
2379 * sysdeps/unix/sysv/linux/i386/Versions: Remove *xattr syscalls.
2381 2002-08-23 Ulrich Drepper <drepper@redhat.com>
2383 * sysdeps/ieee754/dbl-64/e_pow.c (log1): Define and initialize
2386 * sysdeps/ieee754/dbl-64/upow.h: Remove definition of two52.
2387 Patch by Simon Gee <simong@agile.tv>.
2389 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf):
2390 Prefer reading /proc/stat since it is more uniform across
2393 * manual/texinfo.tex: Update to latest official version.
2395 * sysvipc/sys/shm.h: Remove SHMLBA definition.
2396 * sysdeps/generic/bits/shm.h: Define SHMLBA here.
2397 * sysdeps/gnu/bits/shm.h: Likewise.
2398 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2399 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2400 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
2401 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2402 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2403 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2404 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2405 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Define SHMLBA to 2^20
2406 since this is what the kernel says.
2408 * misc/sys/xattr.h: Include <sys/types.h> instead of <stddef.h>
2409 since ssize_t is needed as well. Replace const with __const.
2411 2002-08-23 Roland McGrath <roland@redhat.com>
2413 * malloc/hooks.c (__malloc_initialize_hook, __free_hook,
2414 __malloc_hook, __realloc_hook, __memalign_hook,
2415 __after_morecore_hook): Variable definitions moved to ...
2416 * malloc/malloc.c: ... here, so as to be before all references.
2418 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Add a dummy
2419 global variable reference in an unused asm parameter, to ensure the
2420 compiler has set up the GOT register before we use it.
2422 * malloc/hooks.c: Move variable definitions ahead of uses.
2423 * libio/fileops.c: Move versioned_symbol defns ahead of _IO_jump_t
2424 initializers that make reference to variables they define.
2426 2002-08-23 Andreas Jaeger <aj@suse.de>
2428 * locale/loadarchive.c: Include <stdlib.h> for prototypes of
2429 alloca, free, qsort.
2431 * dlfcn/bug-dlsym1-lib1.c (foo): Add prototype to avoid warning.
2433 * sysdeps/ieee754/flt-32/e_jnf.c: Remove unused variable.
2434 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2436 * misc/sys/xattr.h: New file, contributed by Christoph Hellwig
2438 * sysdeps/generic/fgetxattr.c: New file.
2439 * sysdeps/generic/flistxattr.c: New file.
2440 * sysdeps/generic/fremovexattr.c: New file.
2441 * sysdeps/generic/fsetxattr.c: New file.
2442 * sysdeps/generic/getxattr.c: New file.
2443 * sysdeps/generic/listxattr.c: New file.
2444 * sysdeps/generic/lgetxattr.c: New file.
2445 * sysdeps/generic/llistxattr.c: New file.
2446 * sysdeps/generic/lremovexattr.c: New file.
2447 * sysdeps/generic/lsetxattr.c: New file.
2448 * sysdeps/generic/removexattr.c: New file.
2449 * sysdeps/generic/setxattr.c: New file.
2450 * misc/Makefile (headers): Add sys/xattr.h.
2451 (routines): Add *xattr calls.
2452 * misc/Versions: Add *xattr calls with version 2.3.
2453 * sysdeps/unix/sysv/linux/m68k/Versions: Remove *xattr syscalls.
2454 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2455 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2456 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2457 * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2458 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2459 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2460 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2462 2002-08-22 Steven Munroe <sjmunroe@us.ibm.com>
2464 * sysdeps/powerpc/elf/libc-start.c
2465 (__cache_line_size): Declare.
2466 (__aux_init_cache): New function.
2467 (__libc_start_main): Change type of `auxvec' parameter to
2468 `ElfW(auxv_t) *'. Correct walking of aux vector. Call
2470 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
2471 (__cache_line_size): Declare.
2472 (__aux_init_cache): New function.
2473 (DL_PLATFORM_INIT): Define.
2474 * sysdeps/powerpc/memset.S: Define __cache_line_size and use its
2475 value to select the correct stride for dcbz.
2477 2002-08-22 Andreas Jaeger <aj@suse.de>
2479 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments of
2482 2002-08-22 Roland McGrath <roland@redhat.com>
2484 * locale/loadarchive.c (_nl_load_locale_from_archive): Check max file
2485 position indicated by locrectab against file bounds before rounding to
2486 page size. In mapping loop, always set TO before breaking out of
2487 contiguous range coalescing loop.
2489 * locale/loadarchive.c (_nl_load_locale_from_archive): Use MAP_PRIVATE
2490 (or MAP_COPY if available) instead of MAP_SHARED.
2492 * scripts/firstversions.awk: When encountering a version newer than
2493 the specified earliest version, be sure to emit the specified earliest
2494 version first if any renaming of an older version to that has been.
2496 2002-08-21 Roland McGrath <roland@redhat.com>
2498 * configure.in: Make GCC version check require 3.[2-9]* and no others.
2499 * manual/install.texi (Tools for Compilation): Say 3.2 is required.
2500 (Configuring and compiling): Don't mention older GCC versions any more.
2501 * INSTALL: Regenerated.
2503 * manual/install.texi (Configuring and compiling, Installation,
2504 Running make install, Linux): Linux -> GNU/Linux where appropriate.
2506 * elf/rtld.c (_dl_start_final): Move defn before _dl_start so it can
2507 be inlined. Declare it with always_inline if [DONT_USE_BOOTSTRAP_MAP]
2508 and with noinline otherwise. Remove hack alloca use to prevent
2509 inlining, we can ask for it explicitly nowadays.
2511 * dlfcn/bug-dlsym1.c: New file.
2512 * dlfcn/bug-dlsym1-lib1.c, dlfcn/bug-dlsym1-lib2.c: New files.
2513 * dlfcn/Makefile (distribute): Add them.
2514 (tests): Add bug-dlsym1 here.
2515 (modules-names): Add bug-dlsym1-lib1 and bug-dlsym1-lib2 here.
2516 ($(objpfx)bug-dlsym1, $(objpfx)bug-dlsym1.out): New targets.
2517 ($(objpfx)bug-dlsym1-lib1.so, $(objpfx)bug-dlsym1-lib2.so): Likewise.
2519 2002-08-21 Ulrich Drepper <drepper@redhat.com>
2521 * elf/rtld.c (start_time): New global variable. Moved from _dl_start.
2522 (DONT_USE_BOOTSTRAP_MAP): Define if we can use non-exported symbols
2524 (_dl_start): Don't use local bootstrap_map variable if
2525 DONT_USE_BOOTSTRAP_MAP is defined. Use GL(dl_rtld_map). Don't
2526 pass bootstrap_map to _dl_start_final in this case either. Don't
2527 pass start_time to _dl_start_final ever.
2528 (_dl_start_final): Don't copy bootstrap_map if DONT_USE_BOOTSTRAP_MAP.
2530 * elf/dl-deps.c (_dl_map_object_deps): Revert patch from 2002-05-28.
2531 This cripples the scope lists necessary to search for symbols in
2532 dependencies which are not in the global scope.
2534 * include/setjmp.h (__libc_longjmp): Add declaration.
2536 2002-08-21 Andreas Jaeger <aj@suse.de>
2538 * sysdeps/x86_64/_mcount.S: Fix assembler.
2540 * sysdeps/unix/sysv/linux/x86_64/Makefile: Generate bits/syscall.h
2541 with biarch support.
2543 2002-08-21 Andreas Jaeger <aj@suse.de>
2545 * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Fix it.
2547 * sysdeps/x86_64/Makefile (sysdep_routines): Add _mcount.
2549 * sysdeps/x86_64/machine-gmon.h: New file.
2550 * sysdeps/x86_64/_mcount.S: New file.
2552 2002-08-20 Ulrich Drepper <drepper@redhat.com>
2554 * elf/rtld.c (_dl_start): Pass zero to TLS_INIT_TP. Set
2555 bootstrap_map.l_tls_tp_initialized to 1 if TLS_INIT_TP was called.
2556 (_dl_start_final): Copy l_tls_tp_initialized to GL(dl_rtld_map).
2557 (dl_main): If HAVE___THREAD is not defined pass l_tls_tp_initialized
2558 to TL_INIT_TP. Otherwise pass 1.
2559 * include/link.h (struct link_map): Add l_tls_tp_initialized.
2560 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass 0 to TL_INIT_TP.
2562 2002-08-15 Jakub Jelinek <jakub@redhat.com>
2564 * locale/programs/localedef.c (add_to_readlist): Error about
2565 circular dependencies only if the locale in question hasn't
2567 * locale/programs/linereader.c (get_string): Pass LC_CTYPE not
2568 CTYPE_LOCALE to load_locale.
2569 * locale/programs/locfile.c (locfile_read): Don't include
2570 unneeded but available locales in locale_mask.
2572 * locale/programs/locarchive.c (enlarge_archive): If quiet, don't
2573 print any messages about enlarging archive.
2575 2002-08-20 Brian Youmans <3diff@gnu.org>
2577 * manual/contrib.texi: Removed licenses, added acknowledgements
2578 for contributions by Intel, IBM, Craig Metz.
2579 * LICENSES: New file, contains the text of all non-FSF licenses in the
2580 distribution that require putting the notice in the accompanying
2582 * README.template, README: Mention LICENSES.
2584 * sysdeps/mach/hurd/net/if_ppp.h: Replaced CMU license with a
2585 new one modelled on the modern BSD license, per recent letter
2586 of permission from CMU.
2587 * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
2589 * sysdeps/ieee754/dbl-64/MathLib.h: Changed the copyright holder
2590 from IBM to FSF, per the recent Software Letter. Changed the
2591 distribution terms from GPL to LGPL.
2593 * sysdeps/ieee754/dbl-64/asincos.tbl: Added FSF copyright and
2594 copying permission notice (Lesser GPL), per recent IBM Software Letter.
2595 * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
2596 * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
2597 * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
2598 * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
2599 * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
2600 * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
2601 * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
2602 * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
2604 * sysdeps/ieee754/dbl-64/atnat.h: Changed the copyright holder
2605 from IBM to FSF, per the recent Software Letter. Corrected the
2606 text of the copying permission notice to say Lesser GPL instead
2607 of GPL in warranty disclaimer paragraph.
2608 * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
2609 * sysdeps/ieee754/dbl-64/branred.h: Likewise.
2610 * sysdeps/ieee754/dbl-64/dla.h: Likewise.
2611 * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
2612 * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
2613 * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
2614 * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
2615 * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
2616 * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
2617 * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
2618 * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
2619 * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
2620 * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
2621 * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
2622 * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
2623 * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
2624 * sysdeps/ieee754/dbl-64/upow.h: Likewise.
2625 * sysdeps/ieee754/dbl-64/urem.h: Likewise.
2626 * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
2627 * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
2628 * sysdeps/ieee754/dbl-64/utan.h: Likewise.
2630 * sysdeps/ieee754/dbl-64/branred.c: Corrected the text of the copying
2631 permission notice to say Lesser GPL instead of GPL in warranty
2632 disclaimer paragraph.
2633 * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2634 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2635 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2636 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2637 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2638 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2639 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2640 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2641 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2642 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2643 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2644 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2645 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2646 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2647 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2648 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2649 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2650 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2651 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2652 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2653 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2654 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2655 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
2657 2002-08-20 Roland McGrath <roland@redhat.com>
2659 Fix ABI compatibility with libc compiled with old tools on powerpc.
2660 Changes contributed by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2661 and Jack Howarth <howarth@bromo.med.uc.edu>.
2662 * sysdeps/powerpc/Makefile [$(have-protected) = yes]
2663 (CPPFLAGS-divdi3.c, CPPFLAGS-libgcc-compat.S): New variables,
2664 pass -DHAVE_DOT_HIDDEN for these files.
2665 * sysdeps/powerpc/Versions (libc: GLIBC_2.0): Added __floatdidf,
2667 * sysdeps/powerpc/divdi3.c: New file.
2668 * sysdeps/powerpc/libgcc-compat.S: New file, replacement for ...
2669 * sysdeps/powerpc/libgcc-compat.c: ... this, file removed.
2671 2002-08-20 Jakub Jelinek <jakub@redhat.com>
2673 * locale/loadarchive.c (_nl_load_locale_from_archive): Handle
2674 partially overlapping mappings. Remove unneeded (char *) casts.
2675 Never allow duplication of ranges in mapped areas.
2677 2002-08-20 Roland McGrath <roland@redhat.com>
2679 * elf/Makefile ($(objpfx)ld.so): Separate commands in rule so errors
2680 can be detected by make. Reported by H.J. Lu <hjl@gnu.org>.
2682 2002-08-20 Ulrich Drepper <drepper@redhat.com>
2684 * include/unistd.h: Don't hide _exit.
2686 * elf/rtld.c (_dl_start): Pass extra argument 1 to TLS_INIT_TP.
2687 (dl_main): Pass extra argument 0 to TLS_INIT_TP.
2688 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass extra
2689 argument 1 to TLS_INIT_TP.
2690 * sysdeps/generic/tls.h (TLS_INIT_TP): Describe new parameter.
2692 * sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit.
2694 * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_tls_static_info.
2695 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Move dtv
2696 memory allocation to...
2697 (allocate_dtv): ...here. New function.
2698 (_dl_allocate_tls): Change to take parameter. If parameter is non-NULL
2699 call allocate_dtv instead of _dl_allocate_tls_storage.
2700 (_dl_deallocate_tls): New parameter. Deallocate TCB only if true.
2701 (_dl_get_tls_static_info): New function.
2702 * sysdeps/generic/ldsodefs.h: Adjust prototypes of _dl_allocate_tls
2703 and _dl_deallocate_tls. Add prototype for _dl_get_tls_static_info.
2705 2002-08-19 Ulrich Drepper <drepper@redhat.com>
2707 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return
2708 immediately if result == NULL.
2710 2002-08-16 Jakub Jelinek <jakub@redhat.com>
2712 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
2714 2002-08-18 Roland McGrath <roland@frob.com>
2716 * sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split
2717 instead of __file_name_split.
2718 * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
2720 * sysdeps/mach/hurd/dl-sysdep.c
2721 [HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
2722 [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
2724 2002-08-16 Jakub Jelinek <jakub@redhat.com>
2726 * locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
2727 in change before last: MAX -> MIN.
2729 2002-08-15 Roland McGrath <roland@redhat.com>
2731 * libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF
2732 if seek would go past it.
2733 (mmap_remap_check): If file position is at or past EOF after check,
2734 leave read pointers at EOF and don't seek.
2736 * libio/tst-mmap-offend.c: New file.
2737 * libio/Makefile (tests): Add it.
2739 * locale/loadarchive.c (_nl_load_locale_from_archive): Store strdup of
2740 the name as passed, rather than the name in the archive dictionary.
2742 2002-08-15 Ulrich Drepper <drepper@redhat.com>
2744 * csu/Makefile: Define elide-routines.os not static-only-routines.
2746 * include/sched.h (__clone): Add varargs at the end.
2748 * elf/rtld.c (_dl_start): Allow TLS_INIT_TP to fail, and stop in that
2750 (TLS_INIT_HELPER): If defined, use it.
2751 * sysdeps/generic/libc-tls.c (TLS_INIT_HELPER): Likewise.
2753 2002-08-15 Roland McGrath <roland@redhat.com>
2755 * elf/dl-load.c (lose): Remove [!SHARED] conditional from null check
2756 on L->l_prev; it can happen under rtld --verify too.
2758 * locale/loadarchive.c (_nl_load_locale_from_archive): Don't read the
2759 header separately, just map an initial window of 2MB from the file
2760 and remap if that is not large enough to cover the whole header.
2762 2002-08-15 Andreas Jaeger <aj@suse.de>
2764 * sysdeps/unix/sysv/linux/m68k/Versions: Add *xattr syscalls with
2766 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2767 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2768 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2769 * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2770 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2771 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2772 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2773 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
2774 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
2775 Patch by Andreas Gruenbacher <agruen@suse.de>.
2777 * sysdeps/unix/sysv/linux/syscalls.list: Add *xattr syscalls.
2779 2002-08-14 Roland McGrath <roland@redhat.com>
2781 * locale/locarchive.h (struct locale_category_data): Give this name to
2782 the type of locale_data_t's elements.
2783 * locale/programs/locarchive.c (cmpcategorysize): New static function.
2784 (add_locale): Use that to sort the categories by size and put all
2785 those that fit into two pages into the LC_ALL block, instead of
2786 hard-coding it to do everything but LC_CTYPE and LC_COLLATE.
2787 (show_archive_content): Detect categories inside LC_ALL block
2788 directly, instead of hard-coding.
2789 (oldlocrecentcmp): Compare just on file locations used.
2791 2002-08-14 Jakub Jelinek <jakub@redhat.com>
2793 * locale/programs/locarchive.c (struct oldlocrecent): New type.
2794 (oldlocrecentcmp): New function.
2795 (enlarge_archive): Re-add locales in the order they were added
2797 (add_locale): Put all the small locale files together, if the small
2798 locale file block would occupy less pages if page size aligned, align
2800 (show_archive_content): Adjust for locale archives optimized for speed.
2802 2002-08-14 Roland McGrath <roland@frob.com>
2804 * configure.in: Use "MISSING" as not-found value for MIG.
2805 * sysdeps/mach/configure.in: Fatal if mig not found.
2806 * configure, sysdeps/mach/configure: Regenerated.
2808 2002-08-13 Jakub Jelinek <jakub@redhat.com>
2810 * locale/loadarchive.c (archfname): Add missing slash.
2812 * sysdeps/generic/strtold.c (__strtold_internal): Add libc_hidden_def.
2813 * wcsmbs/wcstold.c (__wcstold_internal): Add libc_hidden_def.
2815 2002-08-12 Roland McGrath <roland@redhat.com>
2817 * include/sys/wait.h (__waitpid): Add libc_hidden_proto.
2818 * sysdeps/unix/sysv/sco3.2.4/waitpid.S: Add libc_hidden_def.
2819 * sysdeps/unix/sysv/sysv4/waitpid.c: Add libc_hidden_weak.
2820 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
2821 * sysdeps/unix/sysv/aix/waitpid.c: Likewise.
2822 * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
2823 * sysdeps/generic/waitpid.c: Likewise.
2825 * include/net/if.h: New file. Use libc_hidden_proto
2826 for if_nametoindex and if_indextoname.
2827 * sysdeps/generic/if_index.c: Add libc_hidden_def.
2828 * sysdeps/mach/hurd/if_index.c: Likewise.
2829 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
2831 * include/grp.h (setgroups): Add libc_hidden_proto.
2832 * sysdeps/generic/setgroups.c: Add libc_hidden_def.
2833 * sysdeps/mach/hurd/setgroups.c: Likewise.
2834 * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
2835 * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
2837 2002-08-13 Jakub Jelinek <jakub@redhat.com>
2839 * include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
2840 * sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
2841 * sysdeps/generic/setegid.c (setegid): Likewise.
2842 * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
2843 * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
2844 * sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
2845 * sysdeps/unix/bsd/setegid.c (setegid): Likewise.
2846 * sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
2847 * sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
2848 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
2849 * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
2850 * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
2851 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
2852 * sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
2853 * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
2854 Remove fallback if __ASSUME_SETRESUID_SYSCALL.
2856 * include/sys/stat.h (__fxstat_internal, __fxstat64_internal,
2857 __lxstat_internal, __lxstat64_internal): Remove.
2858 (__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64):
2860 * sysdeps/generic/fxstat.c (__fxstat): Add hidden_def.
2861 Remove INTDEF where present, remove #undef at the beginning.
2862 * sysdeps/generic/fxstat64.c (__fxstat64): Likewise.
2863 * sysdeps/generic/lxstat.c (__lxstat): Likewise.
2864 * sysdeps/generic/lxstat64.c (__lxstat64): Likewise.
2865 * sysdeps/generic/xstat.c (__xstat): Likewise.
2866 * sysdeps/generic/xstat64.c (__xstat64): Likewise.
2867 * sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise.
2868 * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
2869 * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
2870 * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
2871 * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
2872 * sysdeps/mach/hurd/xstat.c (__xstat): Likewise.
2873 * sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise.
2874 * sysdeps/unix/fxstat.c (__fxstat): Likewise.
2875 * sysdeps/unix/common/lxstat.c (__lxstat): Likewise.
2876 * sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise.
2877 * sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise.
2878 * sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise.
2879 * sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise.
2880 * sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise.
2881 * sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise.
2882 * sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise.
2883 * sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise.
2884 * sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise.
2885 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise.
2886 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise.
2887 * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise.
2888 * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
2889 * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
2890 * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
2891 * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
2892 * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
2893 * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
2894 * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise.
2895 * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
2896 * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
2897 * sysdeps/unix/xstat.c (__xstat): Likewise.
2899 * include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto.
2900 * sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def.
2901 * sysdeps/generic/fstatvfs.c (fstatvfs): Likewise.
2902 * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
2903 * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise.
2904 * sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise.
2905 * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise.
2907 * include/unistd.h (tcgetpgrp): Add libc_hidden_proto.
2908 * include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise.
2909 * sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def.
2910 * sysdeps/generic/tcsetattr.c (tcsetattr): Likewise.
2911 * sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise.
2912 * sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise.
2913 * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise.
2914 * sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed):
2916 * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
2917 * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
2918 * sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise.
2919 * sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise.
2920 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
2921 * sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise.
2922 * sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise.
2923 * sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise.
2925 * include/string.h (strcoll): Add libc_hidden_proto.
2926 * string/strcoll.c (strcoll): Add libc_hidden_def.
2928 * misc/err.c (vwarn): Fix pasto in libc_hidden_def.
2930 2002-08-11 Philip Blundell <philb@gnu.org>
2932 * sysdeps/arm/Makefile: New file.
2934 2002-08-08 Jakub Jelinek <jakub@redhat.com>
2936 * posix/regcomp.c (parse_reg_exp): If '|' is immediately followed
2937 by another '|', end of regex or enclosing ')', clear branch.
2938 * posix/bug-regex9.c: New test.
2939 * posix/Makefile (tests): Add bug-regex9.
2941 2002-08-12 Roland McGrath <roland@redhat.com>
2943 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop
2944 start count condition, use TOTAL instead of variable that was never
2945 set. Fix outer loop termination condition to TOTAL >= after update.
2947 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize
2948 dl_tls_static_align and dl_tls_static_nelem.
2950 2002-08-11 Roland McGrath <roland@redhat.com>
2952 * elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
2953 of the TLS macros, otherwise the compiler might not have initialized
2954 the PIC register yet when we use the PLT via asm.
2955 * elf/tst-tlsmod3.c (in_dso2): Likewise.
2956 * elf/tst-tlsmod2.c (in_dso): Likewise.
2958 * sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!).
2960 * sysdeps/i386/bits/byteswap.h (__bswap_16, __bswap_32, __bswap_64):
2961 Evaluate argument exactly once. Remove __volatile__ from asm's.
2963 * include/unistd.h: Use libc_hidden_proto for getdomainname
2965 * sysdeps/generic/getdomain.c: Add libc_hidden_def.
2966 * sysdeps/mach/hurd/getdomain.c: Likewise.
2967 * sysdeps/unix/getlogin_r.c: Likewise.
2968 * sysdeps/mach/hurd/getlogin_r.c: Likewise.
2969 * sysdeps/generic/getlogin_r.c: Likewise.
2971 * include/rpc/auth_des.h: Use libc_hidden_proto for rtime.
2972 * sunrpc/rtime.c: Add libc_hidden_def.
2974 * include/string.h: Use libc_hidden_proto for basename.
2975 * string/basename.c [_LIBC]: Add libc_hidden_def.
2977 * sysdeps/unix/sysv/linux/opensock.c (__opensock): socket -> __socket.
2979 * locale/loadarchive.c: munmap -> __munmap throughout.
2981 * include/netdb.h: Use libc_hidden_proto for gai_strerror.
2982 * sysdeps/posix/gai_strerror.c: Add libc_hidden_def.
2983 * sysdeps/generic/gai_strerror.c: Likewise.
2985 * include/sys/errno.h: New file.
2987 * include/signal.h: No libc_hidden_proto for raise,
2988 __libc_current_sigrtmin, __libc_current_sigrtmax.
2989 These need to be overridden by linuxthreads.
2990 * sysdeps/posix/raise.c: Reverted.
2991 * sysdeps/generic/raise.c: Reverted.
2992 * signal/allocrtsig.c: Reverted.
2994 * locale/loadarchive.c (LOCALEDIR): Remove debugging defn. Oops.
2996 2002-08-10 Roland McGrath <roland@redhat.com>
2998 * locale/loadarchive.c (_nl_archive_subfreeres): New function.
2999 * locale/localeinfo.h: Declare it.
3000 * locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the
3001 current locale if it's not in the file list.
3002 Call _nl_archive_subfreeres.
3004 2002-08-10 Andreas Jaeger <aj@suse.de>
3006 * sysdeps/i386/strchr.S: Add comment.
3008 2002-08-10 Roland McGrath <roland@redhat.com>
3010 * include/wchar.h (putwc): Use libc_hidden_proto.
3011 * include/stdio.h (dprintf, fprintf, vfprintf, sprintf,
3012 sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise.
3013 * stdio-common/dprintf.c: Add libc_hidden_def.
3014 * stdio-common/fprintf.c: Likewise.
3015 * stdio-common/sprintf.c: Likewise.
3016 * stdio-common/sscanf.c: Likewise.
3017 * libio/iofwrite.c: Likewise.
3018 * libio/memstream.c: Likewise.
3019 * libio/putwc.c: Likewise.
3020 * stdio-common/perror.c: Likewise.
3021 * sysdeps/posix/remove.c: Likewise.
3022 * sysdeps/generic/remove.c: Likewise.
3023 * libio/rewind.c: Likewise. Use <stdio.h> instead of "stdio.h".
3024 * stdio-common/vfprintf.c: Add libc_hidden_def. Include <stdio.h>.
3026 2002-08-09 Jakub Jelinek <jakub@redhat.com>
3028 * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
3029 towlower, towupper): Add prototypes here too. Add libc_hidden_proto.
3030 * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
3031 towlower, towupper): Add libc_hidden_weak.
3033 * include/bits/dlfcn.h: New file.
3034 * elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def.
3036 * include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
3037 * include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
3038 * include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
3039 * include/pwd.h (_nss_files_parse_pwent): Likewise.
3040 * include/shadow.h (_nss_files_parse_spent): Likewise.
3041 * include/netdb.h (_nss_files_parse_protoent,
3042 _nss_files_parse_servent, _nss_files_parse_netent): Likewise.
3043 * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
3044 (LINE_PARSER): Use it.
3045 * nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
3046 * nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.
3048 * libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT
3051 * manual/debug.texi (%MENU%): Remove trailing dot.
3052 Reported by <hayastan132@hotmail.com>.
3054 * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek
3057 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek):
3060 2002-08-09 Roland McGrath <roland@redhat.com>
3062 * locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale
3063 name to find codeset name (if any) and normalize it. If the
3064 normalized name differs, look up only that in the archive.
3065 * locale/programs/locarchive.c (add_locale_to_archive): If the name
3066 contains a codeset, normalize the codeset store only the normalized
3067 name in the archive. If not, add an alias containing the locale's
3068 normalized codeset name. Apply codeset name normalization when
3069 matching entries in the alias file.
3071 * locale/programs/locarchive.c (delete_locales_from_archive): Don't
3072 decrement HEAD->namehash_used here.
3073 (add_locale): Only need to insert name string when name_offset != 0.
3075 * locale/programs/localedef.c (options): Add -A/--alias-file.
3076 (alias_file): New variable.
3077 (parse_opt): Grok -A, set that.
3078 * locale/programs/localedef.h: Declare it.
3080 * locale/locarchive.h (struct locrecent): Add `refs' member.
3081 * locale/programs/locarchive.c (insert_name): New function, broken out
3083 (add_locale_to_archive): ... here. Call that.
3084 (add_alias): New function.
3085 (add_locale): New static function, add_locale_to_archive renamed.
3086 (add_locale_to_archive): Call that and use add_alias to add an alias
3087 for the name with codeset if the given name lacks it.
3088 (enlarge_archive): Call add_locale instead of add_locale_to_archive.
3090 * locale/Makefile (routines): Add loadarchive.
3091 * locale/loadarchive.c: New file, started from code by Ulrich Drepper.
3092 (_nl_load_locale_from_archive): New function.
3093 * locale/localeinfo.h: Declare it.
3094 * locale/findlocale.c (_nl_find_locale): If using default locale path,
3095 try _nl_load_locale_from_archive first.
3097 * locale/loadlocale.c (_nl_intern_locale_data): New function,
3098 broken out of _nl_load_locale.
3099 (_nl_load_locale): Call that.
3100 * locale/localeinfo.h: Declare it.
3101 (struct locale_data): Replace member `mmaped' with `alloc', an enum.
3102 (struct locale_data): Remove unused member `options'.
3103 * locale/findlocale.c (_nl_remove_locale): Update uses.
3104 * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3105 * locale/C-collate.c: Update initializer.
3106 * locale/C-identification.c: Likewise.
3107 * locale/C-measurement.c: Likewise.
3108 * locale/C-telephone.c: Likewise.
3109 * locale/C-address.c: Likewise.
3110 * locale/C-name.c: Likewise.
3111 * locale/C-paper.c: Likewise.
3112 * locale/C-time.c: Likewise.
3113 * locale/C-numeric.c: Likewise.
3114 * locale/C-monetary.c: Likewise.
3115 * locale/C-messages.c : Likewise.
3116 * locale/C-ctype.c: Likewise.
3118 * locale/hashval.h [! LONGBITS]: Include <limits.h> here and
3119 use CHAR_BIT instead of BITSPERBYTE.
3121 * locale/localeinfo.h (_nl_find_locale, _nl_load_locale,
3122 _nl_unload_locale): Add `internal_function attribute_hidden' to decls.
3123 * locale/findlocale.c (_nl_find_locale): Add internal_function to defn.
3124 (_nl_remove_locale): Likewise.
3125 * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3127 * locale/findlocale.c (_nl_default_locale_path): New variable.
3128 (_nl_find_locale): If LOCALE_PATH is null, default to that.
3129 * locale/localeinfo.h: Declare it.
3130 * locale/setlocale.c (setlocale): Use _nl_default_locale_path
3131 in place of LOCALEDIR. If no LOCPATH, pass null to _nl_find_locale.
3132 * locale/newlocale.c (__newlocale): Likewise.
3134 * misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses.
3135 * inet/rexec.c (rexec_af): Add libc_hidden_def.
3136 * sysdeps/generic/morecore.c: Likewise.
3137 * signal/allocrtsig.c (__libc_current_sigrtmin): Likewise.
3138 (__libc_current_sigrtmax): Likewise.
3140 2002-08-08 Roland McGrath <roland@redhat.com>
3142 * locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
3143 * catgets/open_catalog.c (__open_catalog): Likewise.
3145 * locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed
3146 from typo INITIAL_NUM_NANES.
3147 (create_archive): Update use.
3149 2002-08-08 Ulrich Drepper <drepper@redhat.com>
3151 * sysdeps/unix/sysv/linux/sigwait.c: New file.
3153 2002-08-08 Roland McGrath <roland@frob.com>
3155 * resolv/netdb.h: Don't declare h_errno as a plain global any more.
3157 2002-08-08 Jakub Jelinek <jakub@redhat.com>
3159 * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
3160 else and undefine after including wcstol_l.c.
3161 * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.
3163 2002-08-08 Ulrich Drepper <drepper@redhat.com>
3165 * gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available.
3167 2002-08-08 Alexandre Oliva <aoliva@redhat.com>
3169 * configure.in: Make the test for broken_alias_attribute stricter.
3171 2002-05-24 Robert Love <rml@tech9.net>
3173 * posix/Makefile (routines): Add sched_getaffinity and
3175 * posix/sched.h: Add declarations for sched_getaffinity and
3177 * sysdeps/generic/sched_getaffinity.c: New file.
3178 * sysdeps/generic/sched_setaffinity.c: New file.
3179 * sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and
3182 2002-08-06 Andreas Schwab <schwab@suse.de>
3184 * sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes.
3186 2002-08-07 Ulrich Drepper <drepper@redhat.com>
3188 * elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error
3191 * stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special.
3192 It is known to be defined.
3194 * include/string.h: Define index and rindex only if _ISOMAC is not
3197 * elf/rtld.c: Include <errno.h>.
3198 * sysdeps/generic/libc-tls.c: Likewise.
3200 2002-08-07 Roland McGrath <roland@redhat.com>
3202 * resolv/res_debug.c (latlon2ul): Add const to argument type, and use
3204 (precsize_aton): Likewise.
3206 * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
3207 the static symbols added in the last change (doofus is me).
3209 * locale/newlocale.c (__newlocale): Use a bit mask instead of a second
3210 loop to notice missing categories in a composite name.
3212 * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
3213 LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
3214 LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
3215 LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.
3217 2002-08-07 Ulrich Drepper <drepper@redhat.com>
3219 * malloc/tst-calloc.c: Add tests for one or both parameters being zero.
3221 2002-08-07 Roland McGrath <roland@redhat.com>
3223 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
3224 unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
3225 Reported by Jakub Jelinek <jakub@redhat.com>.
3227 2002-08-07 Jakub Jelinek <jakub@redhat.com>
3229 * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
3232 2002-08-06 Roland McGrath <roland@redhat.com>
3234 * include/getopt.h: Put private decls inside [_GETOPT_H].
3235 Use libc_hidden_proto for getopt_long, getopt_long_only.
3236 * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
3237 Add libc_hidden_def.
3239 * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
3240 Define as a macro for __dl_iterate_phdr.
3242 * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
3243 made static. Add __ name as a strong alias.
3244 (internal_endnetgrent): Likewise.
3245 (internal_getnetgrent_r): Likewise.
3247 * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
3249 * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
3250 * ctype/ctype.h [__USE_GNU]: Add declarations and macros for
3251 all *_l functions with no __ prefix.
3252 * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
3253 * ctype/ctype_l.c: Likewise.
3254 * locale/nl_langinfo.c: Likewise.
3255 * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
3256 * stdlib/stdlib.h [__USE_GNU]: Likewise.
3257 * wcsmbs/wchar.h [__USE_GNU]: Likewise.
3258 * wctype/wctype.h [__USE_GNU]: Likewise.
3259 * string/strcoll_l.c (strcoll_l): Define as weak alias.
3260 * string/strxfrm_l.c (strxfrm_l): Define as weak alias.
3261 * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
3262 * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
3263 * stdlib/strtod_l.c (strtod_l): Define as weak alias.
3264 * stdlib/strtof_l.c (strtof_l): Define as weak alias.
3265 * stdlib/strtold_l.c (strtold_l): Define as weak alias.
3266 * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
3267 (__wcscasecmp_l): Add libc_hidden_def.
3268 * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
3269 (__wcsncasecmp_l): Add libc_hidden_def.
3270 * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
3271 * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
3272 * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
3273 * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
3274 * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
3275 * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
3276 * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
3277 * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
3278 * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
3279 * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
3280 * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
3281 * wctype/wctrans_l.c (wctrans_l) Define as weak alias.
3282 * wctype/towctrans_l.c (towctrans_l) Define as weak alias.
3283 * wctype/wctype_l.c (wctype_l) Define as weak alias.
3285 2002-08-05 Roland McGrath <roland@redhat.com>
3287 * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
3288 netname2user, host2netname, user2netname, key_gendes.
3289 * sunrpc/netname.c: Add libc_hidden_def.
3290 * sunrpc/key_call.c: Likewise.
3292 * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
3294 * inet/getnameinfo.c: Add libc_hidden_def.
3295 * sysdeps/generic/getaddrinfo.c: Likewise.
3296 * sysdeps/posix/getaddrinfo.c: Likewise.
3298 * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
3299 * wcsmbs/wmemchr.c: Add libc_hidden_def.
3300 * wcsmbs/wmemset.c: Add libc_hidden_def.
3302 * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
3303 (index, rindex): Define as macros for strchr, strrchr.
3305 * string/envz.c (envz_strip): index -> strchr
3307 * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
3308 * sunrpc/rpc_prot.c: Add libc_hidden_def.
3310 * include/wchar.h: Use libc_hidden_proto for mbrtowc.
3311 * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
3313 * include/stdlib.h: Use libc_hidden_proto for wctomb.
3314 * stdlib/wctomb.c: Add libc_hidden_def.
3316 * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
3317 rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
3318 * resolv/herror.c: Likewise.
3319 * inet/rcmd.c: Add libc_hidden_def.
3320 * inet/ruserpass.c: Likewise.
3321 * inet/getnetgrent_r.c: Likewise.
3323 * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
3324 svc_unregister, remove *_internal decls. Use libc_hidden_proto
3325 for svcerr_auth, svcerr_noprog, svcerr_progvers.
3326 * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
3328 (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
3329 * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.
3331 * sysdeps/posix/system.c (do_system): New function, guts broken out of
3333 (__libc_system): Call it, putting just the line == NULL test here.
3335 * include/libc-symbols.h (__hidden_proto): Add extern keywords so
3336 variables work right.
3338 * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
3339 * elf/dl-close.c (_dl_close): Likewise.
3341 * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
3342 in6addr_any, in6addr_loopback. Remove decls for
3343 bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
3344 * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
3345 * sunrpc/svc_tcp.c (svctcp_create): Likewise.
3346 * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
3347 * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
3348 * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
3349 * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
3351 * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
3353 * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
3355 * inet/ether_aton_r.c: Add libc_hidden_def.
3356 * inet/ether_ntoa_r.c: Likewise.
3358 * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
3360 * sunrpc/svc.c: Add libc_hidden_def.
3361 * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
3362 pmap_set, pmap_unset.
3363 * sunrpc/pmap_clnt.c: Add libc_hidden_def.
3364 * sunrpc/pm_getport.c: Likewise.
3365 * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
3366 * sunrpc/publickey.c: Add libc_hidden_def.
3368 2002-08-05 Ulrich Drepper <drepper@redhat.com>
3370 * elf/rtld.c (_dl_start): Don't use memset. Use same tricks as for
3371 the other memset call in this function.
3373 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
3374 at correct index. Clear BSS region now that memalign is used.
3376 2002-08-05 Roland McGrath <roland@redhat.com>
3378 * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
3379 * sysdeps/generic/uname.c: Add libc_hidden_def.
3380 * sysdeps/mach/hurd/uname.c: Likewise.
3382 2002-08-05 Jakub Jelinek <jakub@redhat.com>
3384 * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
3385 wcspbrk): Add libc_hidden_proto.
3386 * time/strftime.c (my_strftime): Add libc_hidden_def.
3387 (strftime): Remove libc_hidden_def.
3388 * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
3389 * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
3390 * wcsmbs/wcsspn.c (wcsspn): Likewise.
3391 * wcsmbs/wcscmp.c (wcscmp): Likewise.
3392 * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
3393 * wcsmbs/wcscoll.c (wcscoll): Likewise.
3395 * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
3396 __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3397 __rpc_thread_createerr): Add libc_hidden_proto.
3398 * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
3399 __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3400 __rpc_thread_createerr): Add libc_hidden_def.
3402 * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
3403 clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
3404 * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
3405 clnt_perror, clnt_sperror): Add libc_hidden_def.
3406 * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
3408 * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
3410 * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
3411 * sunrpc/des_soft.c (des_setparity): Likewise.
3413 * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
3414 Add libc_hidden_proto.
3415 * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
3416 Add libc_hidden_def.
3418 2002-08-05 Roland McGrath <roland@redhat.com>
3420 * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
3421 `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
3422 * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
3423 * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
3424 dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
3425 old data, abandoning the original memory allocated by rtld at startup,
3426 instead of calling realloc normally.
3428 2002-08-05 Ulrich Drepper <drepper@redhat.com>
3430 * po/fr.po: Update from translation team.
3432 2002-08-04 Roland McGrath <roland@redhat.com>
3434 * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
3435 then generate a dummy module under the given name, obeying the
3436 normal rules for the "caller" field.
3438 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
3439 actually iterate over the elements. Fix typo p_type -> p_vaddr.
3441 * include/pthread.h: Don't declare __pthread_initialize_minimal as
3442 weak here; we declare it weak or strong in the one place we use it.
3443 * sysdeps/generic/libc-start.c: ... which is here.
3444 Don't make the decl weak if [USE_TLS], since static programs need TLS
3445 setup even when single-threaded.
3447 * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
3449 * elf/Makefile (test-srcs): Add $(modules-names) to it.
3450 (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
3451 CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
3452 all these variables.
3454 2002-08-04 Ulrich Drepper <drepper@redhat.com>
3456 * include/stdio.h: Don't define macro magic to redirect function
3457 calls if _ISOMAC is defined.
3459 * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
3462 2002-08-04 Roland McGrath <roland@redhat.com>
3464 * stdlib/lrand48_r.c: Add libc_hidden_def.
3466 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
3467 TCB with __libc_memalign instead of mmap.
3468 (_dl_deallocate_tls): Free it with free instead of munmap.
3470 * Makerules (cpp-srcs-left): When setting this to run
3471 cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
3472 words. Combine the two loops into one on the concatenated list,
3473 including those as well as $(test-srcs).
3475 * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
3476 since we align here with optimally minimal waste anyway.
3477 (malloc): Just call that.
3479 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
3482 * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
3483 to compute memory location for l_tls_initimage.
3484 * elf/rtld.c (_dl_start): Likewise.
3485 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
3487 * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
3488 because the .d file is generated in the non-shared case and
3489 so fails to catch them otherwise.
3491 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
3492 split out of _dl_allocate_tls.
3493 (_dl_allocate_tls_init): Likewise.
3494 (_dl_allocate_tls): Call those.
3495 * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
3496 * elf/rtld.c (dl_main): Call them separately instead of calling
3497 _dl_allocate_tls. Delay _dl_allocate_tls_init until after relocation
3498 is finished, so that the initializer data has been relocated before we
3499 copy it into the main thread's TLS block.
3501 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
3502 loop conditions, prevented the last used module from being initialized.
3504 2002-08-04 Jakub Jelinek <jakub@redhat.com>
3506 * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
3507 if glob resp. globfree are not macros.
3508 * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
3509 * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
3510 Add libc_hidden_ver.
3511 * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
3513 * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
3514 instead of libc_hidden_weak.
3515 * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
3516 libc_hidden_ver instead of libc_hidden_def.
3517 * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
3518 libc_hidden_ver instead of libc_hidden_def.
3519 (wcstoll, wcstoq): Remove libc_hidden_weak.
3520 * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
3522 * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
3524 * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
3526 * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
3529 2002-08-04 Ulrich Drepper <drepper@redhat.com>
3531 * stdio-common/psignal.c: Declare _sys_siglist_internal. Use USEINT
3532 to access _sys_siglist.
3533 * string/strsignal.c: Likewise.
3534 * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
3535 * sysdeps/gnu/siglist.c: Likewise.
3536 * sysdeps/unix/siglist.c: Likewise.
3537 * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
3539 * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
3541 * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
3543 * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
3545 * intl/bindtextdom.c: Use _nl_default_dirname_internal.
3547 * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
3548 * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
3549 * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
3551 * include/time.h: Add libc_hidden_proto for __gmtime_r.
3552 * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
3554 * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
3555 and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
3556 and __gconv_get_cache respectively.
3557 * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
3558 defined static. Change all users.
3559 (__gconv_get_cache): New function.
3560 * iconv/gconv_db.c (__gconv_get_modules_db): New function.
3561 (__gconv_get_alias_db): New function.
3562 * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
3563 (__conv_modules_db): Likewise.
3564 Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
3565 and __gconv_get_alias_db.
3566 * iconv/iconv_prog.c: Use the new functions instead of accessing the
3569 * include/stdlib.h: Add prototype and libc_hidden_proto for
3571 * sysdeps/generic/morecore.c: Include <stdlib.h>.
3573 * malloc/obstack.c: Remove fputs macro.
3575 * malloc/mtrace.c: Remove fopen macro.
3577 2002-08-04 Jakub Jelinek <jakub@redhat.com>
3579 * manual/debug.texi: Fix spelling to programmatically.
3580 Reported by <hayastan132@hotmail.com>.
3582 2002-08-04 Ulrich Drepper <drepper@redhat.com>
3584 * include/libio.h: Add libc_hidden_proto for __uflow.
3585 * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
3586 fgetpos to _IO_* names.
3587 Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
3588 fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
3589 * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
3590 putwc_unlocked, vswscanf.
3591 * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
3592 * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
3593 * libio/fseek.c: Likewise.
3594 * libio/fmemopen.c: Include "libioP.h". Call _IO_fopencookie and
3596 * libio/genops.c (__uflow): Add libc_hidden_def.
3597 * libio/iofflush_u.c (fflush_unlocked): Likewise.
3598 * libio/iofgets_u.c (fgets_unlocked): Likewise.
3599 * libio/iofputs_u.c (fputs_unlocked): Likewise.
3600 * libio/iofputws_u.c (fputws_unlocked): Likewise.
3601 * libio/iofread_u.c (fread_unlocked): Likewise.
3602 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
3603 * libio/iovswscanf.c (vswscanf): Likewise.
3604 * libio/putwc_u.c (putwc_unlocked): Likewise.
3605 * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
3606 * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
3607 * malloc/mtrace.c: Likewise.
3609 * sunrpc/clnt_perr.c: Remove fputs macro.
3610 * sunrpc/svc_simple.c: Likewise.
3611 * sunrpc/svc_tcp.c: Likewise.
3612 * sunrpc/svc_udp.c: Likewise.
3613 * sunrpc/xdr_rec.c: Likewise.
3614 * sunrpc/xdr_ref.c: Likewise.
3616 * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
3617 iconv_prog, linereader, and charmap-dir.
3618 * locale/Makefile: Likewise for locale and charmap-dir.
3619 * malloc/Makefile: Likewise for memusagestat.
3620 * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
3621 * sunrpc/Makefile: Likewise for rpc_main.
3622 * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
3623 * timezone/Makefile: Likewise for zic.
3625 * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
3627 * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
3628 * elf/dl-close.c (_dl_close): Add libc_hidden_def.
3629 * elf/dl-open.c (_dl_open): Add libc_hidden_def.
3630 * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
3633 * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
3635 * libio/genops.c (__underflow): Add libc_hidden_def.
3636 * libio/wgenops.c (__wuflow): Likewise.
3637 (__wunderflow): Likewise.
3639 * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
3640 * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
3642 * include/stdio.h: Add libc_hidden_proto for __vfscanf.
3643 * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
3645 * include/string.h: Add libc_hidden_proto for __strverscmp.
3646 * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
3648 * include/unistd.h: Add libc_hidden_proto for __sysconf.
3649 * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
3650 * sysdeps/posix/sysconf.c: Likewise.
3651 * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
3652 * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
3654 * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
3655 __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
3656 __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
3657 __iswxdigit_l, __towlower_l, __towupper_l.
3658 * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
3659 * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
3661 * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
3662 * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
3663 * sysdeps/mach/hurd/xmknod.c: Likewise.
3664 * sysdeps/unix/xmknod.c: Likewise.
3665 * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
3666 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
3667 * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
3669 * sunrpc/svc.c: Add missing INTUSE for _authenticate.
3671 2002-08-03 Roland McGrath <roland@redhat.com>
3673 * include/sys/resource.h: Use libc_hidden_proto for getpriority,
3675 * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
3676 * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
3677 * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
3678 * sysdeps/mach/hurd/setpriority.c: Likewise.
3679 * sysdeps/mach/hurd/getpriority.c: Likewise.
3680 * sysdeps/generic/setpriority.c: Likewise.
3681 * sysdeps/generic/getpriority.c: Likewise.
3683 * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
3684 * malloc/mcheck.c: Add libc_hidden_def.
3686 * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
3687 * misc/hsearch_r.c: Add libc_hidden_def.
3689 * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
3690 * posix/fnmatch.c: Add libc_hidden_weak.
3692 * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
3693 execl, execle, execlp, execvp, getpid, getsid.
3694 * sysdeps/generic/alarm.c: Add libc_hidden_def.
3695 * sysdeps/unix/alarm.c: Likewise.
3696 * posix/confstr.c: Likewise.
3697 * posix/execvp.c: Likewise.
3698 * posix/execlp.c: Likewise.
3699 * posix/execle.c: Likewise.
3700 * posix/execl.c: Likewise.
3701 * sysdeps/generic/getsid.c: Likewise.
3702 * sysdeps/mach/hurd/getsid.c: Likewise.
3703 * sysdeps/generic/getpid.c: Add libc_hidden_weak.
3704 * sysdeps/mach/hurd/getpid.c: Likewise.
3706 * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
3707 qecvt_r, qfcvt_r, lrand48_r.
3708 * misc/efgcvt_r.c: Add libc_hidden_def.
3710 * include/wordexp.h: Use libc_hidden_proto for wordfree.
3711 * sysdeps/generic/wordexp.c: Add libc_hidden_def.
3713 * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
3714 * locale/nl_langinfo.c: Add libc_hidden_def.
3716 * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
3717 * sysdeps/generic/glob.c: Add libc_hidden_def.
3718 * sysdeps/generic/glob64.c: Likewise.
3719 * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
3721 * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
3723 * elf/Makefile (CFLAGS-vismod2.c): New variable.
3725 * locale/setlocale.c (_nl_current_names): Variable moved ...
3726 * locale/localename.c (_nl_current_names): ... here, new file.
3727 Make it global, with attribute_hidden.
3728 * locale/localeinfo.h: Declare it.
3729 * locale/Makefile (aux): Add localename.
3730 * locale/localename.c (__current_locale_name): New function.
3731 * include/locale.h (__current_locale_name): Declare it.
3732 * intl/dcigettext.c (guess_category_value): Use that instead of
3735 * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
3736 [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
3737 [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
3738 * locale/newlocale.c: Add alias to __ name.
3739 * locale/duplocale.c: Likewise.
3740 * locale/freelocale.c: Likewise.
3741 * locale/uselocale.c: New file.
3742 * locale/Makefile (routines): Add it.
3743 * locale/Versions (libc: GLIBC_2.3): New set.
3744 Add newlocale, duplocale, freelocale, uselocale.
3745 (libc: GLIBC_PRIVATE): Add __uselocale.
3747 * locale/localeinfo.h [SHARED]
3748 (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
3749 (_NL_CURRENT_DATA): Define using that.
3750 (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
3751 (_NL_CURRENT_DEFINE): Define to empty.
3752 [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
3753 conditionalized on this.
3754 * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
3755 taking initializer of _nl_C_locobj.
3756 [SHARED] (_nl_global_locale): New variable, using that initializer.
3757 (_nl_C_locobj): Use new macro for initialzier.
3758 * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
3759 [! SHARED] (CATEGORY_USED): New macro.
3760 [SHARED] (CATEGORY_USED, _nl_C): New macros.
3761 (setdata, setlocale): Use that macro instead of examining _nl_current.
3762 (setdata): Set the slot in _nl_global_locale.
3763 Conditionalize setting of _nl_current on [! SHARED].
3764 * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
3765 declaration as an extern.
3766 * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
3768 * include/locale.h: Use libc_hidden_proto for setlocale.
3769 * locale/setlocale.c: Add libc_hidden_def.
3771 * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
3773 * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
3774 * misc/hsearch_r.c: Add libc_hidden_def.
3775 * misc/lsearch.c: Likewise.
3777 * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
3779 * misc/getttyent.c: Add libc_hidden_def.
3781 * include/mcheck.h: Use libc_hidden_proto for mcheck.
3782 * malloc/mcheck.c: Add libc_hidden_def.
3784 * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
3785 * include/argz.h: Use libc_hidden_proto for argz_delete.
3786 * string/argz-delete.c: Add libc_hidden_def.
3787 * string/envz.c: Likewise. Use <envz.h>, not "envz.h".
3789 * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
3790 HIDDEN_JUMPTARGET for _exit.
3791 * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
3792 * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
3793 * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
3794 * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
3796 * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
3797 [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
3798 [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
3799 * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
3801 * include/stdlib.h: Use libc_hidden_proto for abort,
3802 __strtof_internal, __strtod_internal, __strtold_internal,
3803 __strtol_internal, __strtoll_internal, __strtoul_internal,
3804 __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
3805 __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
3806 __strtoul_l_internal, __strtoull_l_internal.
3807 * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
3808 __wcstod_internal, __wcstold_internal, __wcstol_internal,
3809 __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
3810 ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
3811 ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
3813 * sysdeps/generic/abort.c: Add libc_hidden_def.
3814 * stdlib/strtod.c: Likewise.
3815 * sysdeps/generic/strtol.c: Likewise.
3816 * sysdeps/wordsize-64/strtol.c: Likewise.
3817 * sysdeps/wordsize-64/wcstol.c: Likewise.
3818 * sysdeps/wordsize-64/wcstol_l.c: Likewise.
3820 * include/stdlib.h: Use libc_hidden_proto for qsort.
3821 * stdlib/msort.c: Add libc_hidden_def.
3823 * include/utime.h: Use libc_hidden_proto for utime.
3824 * sysdeps/generic/utime.c: Add libc_hidden_def.
3825 * sysdeps/unix/utime.c: Likewise.
3827 * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
3828 * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
3829 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
3830 * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
3831 * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
3833 * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
3834 sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
3835 and __libc_current_sigrtmax.
3836 * signal/sigismem.c: Add libc_hidden_def.
3837 * signal/sigfillset.c: Likewise.
3838 * signal/sigempty.c: Likewise.
3839 * sysdeps/generic/sigpause.c (__sigpause): Likewise.
3840 * sysdeps/posix/sigpause.c (__sigpause): Likewise.
3841 * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
3842 * sysdeps/posix/raise.c: Likewise.
3843 * sysdeps/generic/raise.c: Likewise.
3845 2002-08-03 Ulrich Drepper <drepper@redhat.com>
3847 * include/string.h: Use libc_hidden_proto for __stpcpy.
3848 * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
3849 * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
3850 * sysdeps/generic/stpcpy.c: Likewise.
3851 * sysdeps/i386/stpcpy.S: Likewise.
3852 * sysdeps/i386/i586/stpcpy.S: Likewise.
3853 * sysdeps/powerpc/stpcpy.S: Likewise.
3854 * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
3855 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
3857 * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
3858 __strncasecmp_l, __strdup, __strndup, __strerror_r.
3859 * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
3861 * string/strdup.c (__strdup): Likewise.
3862 * string/strndup.c (__strndup): Likewise.
3863 * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
3864 * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
3866 2002-08-03 Jakub Jelinek <jakub@redhat.com>
3868 * include/libio.h: New file.
3869 * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
3870 * libio/iolibio.h: #include <libio.h>, not "libio.h".
3871 * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
3872 * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
3873 * sysdeps/unix/common/syscalls.list: Likewise.
3874 * sysdeps/unix/inet/syscalls.list: Likewise.
3875 * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
3876 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
3877 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3878 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3879 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
3880 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
3881 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
3882 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3883 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3884 * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
3885 * sysdeps/unix/syscalls.list: Likewise.
3887 2002-08-03 Jakub Jelinek <jakub@redhat.com>
3888 Ulrich Drepper <drepper@redhat.com>
3890 * malloc/malloc.c (public_cALLOc): Only divide if at least one of
3891 the arguments is big enough to cause an overflow.
3893 2002-08-03 Ulrich Drepper <drepper@redhat.com>
3895 * assert/assert.c: Use hidden_def not INTDEF.
3897 2002-08-03 Jakub Jelinek <jakub@redhat.com>
3899 * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
3902 2002-08-03 Roland McGrath <roland@redhat.com>
3904 * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
3905 * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
3907 * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
3908 * misc/syslog.c: Add libc_hidden_def.
3909 * misc/err.c: Likewise.
3910 * stdlib/exit.c: Likewise.
3911 * stdlib/bsearch.c: Likewise.
3912 * sysdeps/generic/getenv.c: Likewise.
3914 * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
3916 * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
3917 libc_hidden_weak for every system call symbol defined.
3919 * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
3920 timelocal, localtime, strftime.
3921 * time/asctime.c: Add libc_hidden_def.
3922 * time/mktime.c: Likewise.
3923 * time/localtime.c: Likewise.
3924 * time/strftime.c: Likewise.
3925 * time/strptime.c: Likewise.
3926 * sysdeps/generic/time.c: Likewise.
3927 * sysdeps/unix/time.c: Likewise.
3928 * sysdeps/unix/sysv/i386/time.S: Likewise.
3929 * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
3931 * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
3932 inet_makeaddr, inet_netof, inet_addr, __inet_addr.
3933 * resolv/inet_ntop.c: Likewise.
3934 * resolv/inet_pton.c: Likewise.
3935 * inet/inet_mkadr.c: Add libc_hidden_def.
3936 * inet/inet_netof.c: Likewise.
3937 * resolv/inet_addr.c: Likewise.
3939 * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
3940 clauses from conditionals for now. Will have to be fixed later
3941 for older compilers.
3943 * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
3945 2002-08-02 Ulrich Drepper <drepper@redhat.com>
3947 * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
3948 broken alias attribute handling.
3949 * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
3951 2002-08-02 Roland McGrath <roland@frob.com>
3953 * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
3954 since it sets the variables we use in a -D switch.
3956 2002-08-02 Roland McGrath <roland@redhat.com>
3958 * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
3959 On 32-bit platforms they are the same; on 64-bit platforms ssize_t
3960 matches long int, not int.
3962 * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
3963 * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
3964 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
3965 * wctype/wctrans.c (wctrans): Likewise.
3966 * wctype/wctype.c (__wctype): Likewise.
3967 * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
3969 2002-08-02 Ulrich Drepper <drepper@redhat.com>
3971 * assert/assert.c (__assert_fail): Fix typo in comment.
3973 * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
3974 * sunrpc/rpc_thread.c: Define it without static.
3975 * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
3977 2002-08-02 Jakub Jelinek <jakub@redhat.com>
3979 * assert/assert.c (__assert_fail): Remove undef.
3980 Replace INTDEF with libc_hidden_def.
3981 * assert/__assert.c (__assert): Remove INTUSE.
3982 * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
3984 * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
3985 hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
3986 libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
3987 rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
3988 libm_hiden_ver): Define.
3989 * include/assert.h (__assert_fail_internal): Remove.
3990 (__assert_fail): Add prototype. Add hidden_proto.
3991 * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
3993 * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
3994 (__mbrtowc, __mbrlen): Use libc_hidden_proto. Remove macros.
3995 * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
3996 Add libc_hidden_proto.
3997 * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
3998 __fcntl): Add libc_hidden_proto. Remove macros.
3999 (__open_internal, __fcntl_internal): Remove.
4000 * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
4001 * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
4002 * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
4004 * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
4006 * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
4007 Add libc_hidden_def.
4008 * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
4009 * sysdeps/generic/open.c (__open): Remove undef.
4010 Add libc_hidden_def. Remove INTDEF.
4011 * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
4012 Add libc_hidden_def.
4013 * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
4014 * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
4015 * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
4016 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
4017 (__fcntl): Remove INTDEF2. Add libc_hidden_weak.
4018 (__libc_fcntl): Add libc_hidden_def.
4019 * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
4020 (__open): Remove INTDEF2. Add libc_hidden_weak.
4021 (__libc_open): Add libc_hidden_def.
4022 * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
4023 * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
4024 * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
4025 Add libc_hidden_def.
4026 * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
4027 Add libc_hidden_def.
4028 * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
4030 (__fcntl): Remove INTDEF2. Add libc_hidden_weak.
4031 (__libc_fcntl): Add libc_hidden_def.
4032 * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
4033 __getpgid_internal, __chown_internal): Remove.
4034 (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
4035 __GI___sched_setscheduler, __GI___select, __GI___setpgid,
4037 * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
4038 __getpid_internal, __open_internal, __write_internal): Remove.
4039 (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
4040 __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
4041 __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
4042 __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
4043 * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
4044 Replace INTDEF with libc_hidden_def.
4045 * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
4046 * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
4047 * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
4048 * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
4049 * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
4050 Add libc_hidden_proto.
4051 * include/sys/poll.h (__poll): Add libc_hidden_proto.
4052 * include/sys/select.h (__select): Likewise.
4053 * include/sys/socket.h (__send): Likewise.
4054 * include/sys/statfs.h (__statfs): Likewise.
4055 * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
4056 __getpid, __getpgid, __setpgid, __close, __read, __write,
4057 __getpagesize, __sbrk): Likewise.
4058 (__chown_internal, __dup2_internal, __getpid_internal,
4059 __getpgid_internal, __close_internal, __write_internal,
4060 __getpagesize_internal): Remove.
4061 (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
4063 * include/printf.h (__printf_fp): Add libc_hidden_proto.
4064 * include/sched.h (__sched_setscheduler): Likewise.
4065 * include/resolv.h (__res_ninit, __res_randomid): Likewise.
4066 * include/stdlib.h (__secure_getenv): Likewise.
4067 * include/signal.h (__sigaction, __sigsuspend): Likewise.
4068 * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
4069 * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
4070 * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
4071 * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
4072 * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
4073 * inet/getproto_r.c (NSS_attribute_hidden): Remove.
4074 * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
4075 * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
4076 * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
4077 * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
4078 * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
4079 * inet/getservent_r.c (NSS_attribute_hidden): Remove.
4080 * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
4081 * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
4082 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
4083 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
4084 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
4085 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
4086 * libio/genops.c (__overflow): Add libc_hidden_def.
4087 * libio/iovdprintf.c: Remove libio.h include.
4088 * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
4089 libc_hidden_weak): Define to nothing if not defined.
4090 (__overflow, __woverflow): Add libc_hidden_proto.
4091 * libio/wgenops.c (__woverflow): Add libc_hidden_def.
4092 * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
4093 (DB_LOOKUP_FCT): Add libc_hidden_proto.
4094 * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
4095 (DB_LOOKUP_FCT): Add libc_hidden_proto.
4096 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
4097 and libc_hidden_def.
4098 * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
4099 * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
4100 (__getpgid): Add libc_hidden_proto.
4101 (__bsd_getpgrp): Remove INTUSE.
4102 * resolv/res_init.c (__res_ninit, __res_randomid): Add
4104 * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
4105 * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
4106 * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
4107 * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
4108 * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
4109 * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
4110 __rpc_thread_createerr): Add libc_hidden_def.
4111 * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
4113 * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
4114 * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
4115 * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
4116 * sysdeps/generic/chown.c (__chown): Likewise.
4117 * sysdeps/generic/close.c (__close): Likewise.
4118 * sysdeps/generic/dup2.c (__dup2): Likewise.
4119 * sysdeps/generic/pipe.c (__pipe): Likewise.
4120 * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
4121 * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
4122 * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
4123 * sysdeps/generic/read.c (__libc_read): Likewise.
4124 (__read): Add libc_hidden_weak.
4125 * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
4126 * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
4127 * sysdeps/generic/select.c (__select): Likewise.
4128 * sysdeps/generic/send.c (__send): Likewise.
4129 * sysdeps/generic/setpgid.c (__setpgid): Likewise.
4130 * sysdeps/generic/sigaction.c (__sigaction): Likewise.
4131 * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
4132 * sysdeps/generic/statfs.c (__statfs): Likewise.
4133 * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
4134 * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
4135 * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
4136 Remove undef and INTDEF.
4137 * sysdeps/generic/getpgid.c (__getpgid): Likewise.
4138 * sysdeps/generic/getpid.c (__getpid): Likewise.
4139 * sysdeps/generic/write.c (__libc_write): Likewise.
4140 (__write): Add libc_hidden_weak. Remove undef and INTDEF.
4141 * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
4142 * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
4143 * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
4144 * sysdeps/mach/hurd/chown.c (__chown): Likewise. Remove INTDEF.
4145 * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
4146 Remove undef and INTDEF.
4147 * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
4148 * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
4149 * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
4150 * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
4151 * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
4152 (__write): Add libc_hidden_weak. Remove undef and INTDEF.
4153 * sysdeps/mach/hurd/pipe.c: Include unistd.h.
4154 (__pipe): Add libc_hidden_def.
4155 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
4157 * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
4158 * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
4159 * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
4160 (__read): Add libc_hidden_weak.
4161 * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
4162 (__libc_pwrite64): Add libc_hidden_def.
4163 * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
4164 * sysdeps/mach/hurd/select.c (__select): Likewise.
4165 * sysdeps/mach/hurd/send.c (__send): Likewise.
4166 * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
4167 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
4168 * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
4169 * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
4170 * sysdeps/posix/dup2.c: Likewise.
4171 Remove undef and INTDEF.
4172 * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
4173 * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
4174 (__pwrite64): Add libc_hidden_weak.
4175 * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
4176 * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
4177 * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
4178 * sysdeps/standalone/close.c (__close): Likewise.
4179 * sysdeps/standalone/write.c (__libc_write): Likewise.
4180 (__write): Add libc_hidden_weak.
4181 * sysdeps/standalone/read.c (__read): Likewise.
4182 (__libc_read): Add libc_hidden_def.
4183 * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
4184 * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
4185 * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
4186 * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
4187 * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
4188 * sysdeps/unix/bsd/poll.c (__poll): Likewise.
4189 * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
4190 * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
4191 * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
4192 __GI___sigaction): Add.
4193 * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
4194 * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
4195 * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
4196 * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
4197 * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
4198 __GI___setpgid): Add.
4199 * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
4200 Remove undef and INTDEF.
4201 * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
4202 * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
4203 * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
4204 * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
4205 * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
4206 * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
4207 * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
4208 * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
4209 * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
4210 * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
4211 * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
4212 * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
4213 * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
4214 * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
4215 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
4216 __GI___statfs, __GI___send): Add.
4217 * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
4218 libc_hidden_ver resp. libc_hidden_def.
4219 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
4221 * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
4222 Likewise. Remove undef and INTDEF.
4223 * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
4224 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
4225 __GI___statfs, __GI___send): Add.
4226 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
4228 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
4230 * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
4231 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
4232 libc_hidden_ver resp. libc_hidden_def.
4233 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
4235 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
4236 Add libc_hidden_weak.
4237 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
4238 Add libc_hidden_def.
4239 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
4240 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
4242 * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
4243 resp. libc_hidden_def.
4244 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
4246 * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise. Remove
4248 * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
4249 Likewise. Remove undef.
4250 * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
4252 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
4253 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
4255 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
4257 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
4258 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
4259 Likewise. Remove undef and INTDEF.
4260 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
4262 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
4264 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
4266 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
4267 (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
4268 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
4270 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
4271 Add libc_hidden_def.
4272 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
4273 __GI___statfs): Add.
4274 * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
4276 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
4277 * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
4278 Remove undef and INTDEF.
4279 * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
4280 * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
4282 * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
4283 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
4285 * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
4287 * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
4288 * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
4289 * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
4291 * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
4292 libc_hidden_def. Remove undef and INTDEF.
4293 * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
4294 * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
4296 * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
4297 * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
4298 * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
4299 * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
4300 Remove undef and INTDEF.
4301 * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
4302 broken visibility attribute handling.
4303 * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
4305 2002-08-02 Ulrich Drepper <drepper@redhat.com>
4307 * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
4308 Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
4310 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
4313 2002-06-29 Todd Fries <todd@openbsd.org>
4315 * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
4317 2002-08-02 Jakub Jelinek <jakub@redhat.com>
4319 * include/errno.h: Don't include tls.h if _ISOMAC is defined.
4321 2002-07-30 Roland McGrath <roland@redhat.com>
4323 * resolv/resolv.h (_res): Define macro unconditionally.
4324 [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
4325 * include/resolv.h: ... here.
4326 [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
4327 as a __thread variable.
4328 * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
4329 a __thread variable instead of a global.
4330 * resolv/res_data.c [_LIBC]: Don't #undef _res.
4332 * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
4335 * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
4337 * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
4338 decls of memset and memcpy.
4340 * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
4341 * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
4343 * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
4345 * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
4346 (__libc_tsd_define): Define using __thread.
4348 * sunrpc/rpc_thread.c: Use __libc_tsd_define.
4349 (__rpc_thread_variables): Use __libc_tsd_get.
4350 (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
4351 __rpc_thread_variables, which might allocate what we're about to free.
4353 * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
4354 thread-local variable.
4355 * resolv/netdb.h (h_errno): Define macro unconditionally.
4356 [_LIBC] (__set_h_errno): Macro moved to ...
4357 * include/netdb.h: ... here.
4358 [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
4359 [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
4360 [! _LIBC_REENTRANT]: #undef h_errno here.
4362 * include/errno.h: Protect from multiple inclusion.
4364 * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
4365 before defining them, since Linux's <linux/posix_types.h> might have
4368 2002-08-02 Jakub Jelinek <jakub@redhat.com>
4370 * malloc/malloc.c (public_cALLOc): Check for overflow on
4372 * sunrpc/xdr_array.c (xdr_array): Likewise.
4373 * sunrpc/rpc/types.h (mem_free): Add comment.
4374 Patch by Solar Designer <solar@openwall.com>.
4376 2002-08-02 Jakub Jelinek <jakub@redhat.com>
4378 * sysdeps/unix/sysv/linux/kernel-features.h
4379 (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
4381 2002-08-01 Roland McGrath <roland@redhat.com>
4383 * libio/fileops.c (_IO_file_sync_mmap): New function.
4384 (_IO_file_jumps_mmap): Use it.
4385 (_IO_file_underflow_mmap): Rewritten. If after EOF or fflush,
4386 repeat the stat check and resize the mapped buffer as necessary.
4388 2002-07-31 Roland McGrath <roland@redhat.com>
4390 * libio/fileops.c (decide_maybe_mmap): New static function.
4391 Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
4392 mmap the file contents. Then switch the jump tables to the mmap
4393 tables if it worked, or the vanilla file tables if not.
4394 (_IO_file_underflow_maybe_mmap): New function.
4395 (_IO_file_seekoff_maybe_mmap): New function.
4396 (_IO_file_xsgetn_maybe_mmap): New function.
4397 (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
4398 * libio/libioP.h: Declare those.
4399 * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
4400 (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
4401 * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
4402 If the stream is read-only, set its jump tables to those new ones.
4403 * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
4404 jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
4405 We need the tables set before _IO_file_attach.
4407 * libio/tst-mmap-eofsync.c: New file.
4408 * libio/tst-mmap-fflushsync.c: New file.
4409 * libio/bug-mmap-fflush.c: New file.
4410 * libio/tst-mmap2-eofsync.c: New file.
4411 * libio/Makefile (tests): Add them.
4413 * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
4414 _IO_file_underflow_mmap fails, it already set the appropriate bit.
4416 2002-07-31 Jeff Bailey <jbailey@gnu.org>
4418 * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
4419 Declarations moved to <bits/sys_errlist.h>. Include that file.
4420 * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
4421 * sysdeps/generic/bits/sys_errlist.h: New file. This does *not*
4422 declare sys_errlist and sys_nerr.
4423 * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file. Does
4424 provide declarations.
4426 2002-07-31 Roland McGrath <roland@redhat.com>
4428 * elf/rtld.c (dl_main): Fix typo in error message.
4430 2002-07-31 Roland McGrath <roland@frob.com>
4432 * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
4433 __xstat -> __xstat64, __lseek -> __libc_lseek64. Completes 2002-06-09
4434 sysdeps/mach/hurd/dl-sysdep.c change.
4436 2002-07-28 Ulrich Drepper <drepper@redhat.com>
4438 * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
4439 -r`/build/include for kernel headers.
4441 * po/fi.po: New file.
4443 2002-07-15 Alexandre Oliva <aoliva@redhat.com>
4445 * configure.in (static_nss): Set to `yes' if --disable-shared.
4447 2002-07-23 Bruno Haible <bruno@clisp.org>
4449 * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
4452 2002-07-25 Jakub Jelinek <jakub@redhat.com>
4454 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
4455 * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
4458 2002-07-25 Jakub Jelinek <jakub@redhat.com>
4460 * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
4463 2002-07-21 Bruno Haible <bruno@clisp.org>
4465 * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
4466 * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
4467 sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
4468 trans_sysdep_tab_offset.
4469 (struct sysdep_segment): New type.
4470 (struct sysdep_string): New type.
4471 (SEGMENTS_END): New macro.
4472 * intl/gettextP.h (struct sysdep_string_desc): New type.
4473 (struct loaded_domain): New fields malloced, n_sysdep_strings,
4474 orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
4475 orig_tab, trans_tab, hash_tab to const pointers because they point
4476 into read-only memory.
4477 * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
4478 (PRI*): Define fallback values.
4479 (get_sysdep_segment_value): New function.
4480 (_nl_load_domain): Distinguish major and minor revision parts. Add
4481 support for minor revision 1 with system dependent strings.
4482 (_nl_unload_domain): Also free the 'malloced' field.
4483 * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
4484 now done in loadmsgcat.c. Add support for system dependent strings.
4486 2002-07-16 Stepan Kasal <kasal@math.cas.cz>
4488 * posix/bug-regex7.c: New file.
4489 * posix/bug-regex8.c: New file.
4490 * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
4492 2002-07-16 Stepan Kasal <kasal@math.cas.cz>
4494 * posix/bug-regex4.c (main): Fix typos.
4495 * posix/bug-regex6.c (main): Likewise.
4497 2002-07-27 Ulrich Drepper <drepper@redhat.com>
4499 * posix/bug-regex6.c (main): Fix warnings.
4501 * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
4503 * iconv/iconv_prog.c (main): Improve error message for the cases
4504 where -t and/or -f parameter are missing.
4506 2002-07-10 Stepan Kasal <kasal@math.cas.cz>
4508 * posix/regexec.c (re_match): Reorganize to remove duplicate code.
4509 (re_search): Likewise.
4510 (re_match_2): Likewise.
4511 (re_search_2): Likewise.
4512 (re_search_stub): New function.
4513 (re_search_2_stub): New function.
4514 * regcomp.c (re_compile_pattern): Typo in a comment fixed.
4516 2002-07-10 Isamu Hasegawa <isamu@yamato.ibm.com>
4518 * posix/regex_internal.h: Add new member STOP to struct re_string_t.
4519 (re_string_eoi): Use STOP instead of LEN.
4520 * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
4521 (re_string_construct): Likewise.
4522 (re_string_reconstruct): Adjust pstr->stop like pstr->len.
4523 * posix/regexec.c (re_search_internal): Add a new argument STOP
4524 so that it can handle the argument STOP of re_search_2 and re_match_2
4526 (regexec): Adapt to new I/F of re_search_internal.
4527 (re_search_stub): Likewise.
4529 2002-07-25 Ulrich Drepper <drepper@redhat.com>
4531 * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
4533 * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
4535 * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
4536 * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
4539 * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
4540 * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
4541 * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
4542 alias for adjtimex syscall.
4544 * elf/dl-minimal.c: Define __assert_fail_internal.
4545 * assert/assert.c: Likewise.
4546 * include/assert.h: Define __assert_file macro if !SHARED and not
4549 * iconv/Makefile: Define NOT_IN_libc for objects in standalone
4551 * locale/Makefile: Likewise.
4552 * nscd/Makefile: Likewise.
4553 * catgets/Makefile: Likewise.
4555 2002-07-24 Ulrich Drepper <drepper@redhat.com>
4557 * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
4558 compute current position.
4560 * stdio-common/tst-fseek.c (main): Improve error messages.
4562 * libio/tst-freopen.c (main): Remove unused variable.
4564 * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
4565 succesful seek call. Simplify error checking.
4567 2002-07-25 Jakub Jelinek <jakub@redhat.com>
4569 * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
4570 * sysdeps/ia64/fpu/libm_support.h: Likewise.
4572 2002-07-19 Roland McGrath <roland@frob.com>
4574 * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
4575 __libc_enable_secure is set.
4577 2002-07-24 Roland McGrath <roland@frob.com>
4579 Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
4580 This implementation supports only IPv4.
4581 * inet/ifaddrs.h: New file.
4582 * sysdeps/generic/ifaddrs.c: New file.
4583 * sysdeps/gnu/ifaddrs.c: New file.
4584 * inet/test-ifaddrs.c: New file.
4585 * inet/Makefile (routines): Add ifaddrs.
4586 (headers): Add ifaddrs.h here.
4587 (tests): Add test-ifaddrs.
4588 * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
4590 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
4591 socket call to get an AF_INET socket, instead of using __opensock.
4592 The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
4594 * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
4595 if not -1 use it instead of calling __opensock.
4596 * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
4597 * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
4598 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
4600 * sysdeps/mach/hurd/ifreq.h: New file.
4601 * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
4602 * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
4603 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
4605 * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
4606 which gets moved around. Calculate size of mmap'd buffer instead.
4608 2002-07-24 Philip Blundell <philb@gnu.org>
4610 * sysdeps/unix/arm/brk.S: Improve schedule.
4611 * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
4612 efficient instruction.
4613 (__socket): Optimize return sequence.
4615 2002-07-24 Ulrich Drepper <drepper@redhat.com>
4617 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
4618 sockets on old kernels.
4620 2002-07-22 Philip Blundell <philb@gnu.org>
4622 * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
4623 definiton of _old_sys_nerr. Define _old_sys_errlist as strong
4626 2002-07-24 Ulrich Drepper <drepper@redhat.com>
4628 * locale/hashval.h: Make more self-contained by defining LONG_BITS.
4629 * locale/programs/simple-hash.c: Remove LONG_BITS definition.
4631 * locale/programs/locarchive.c (add_locale_to_archive): Correct
4632 test to detect duplicate locales.
4634 * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
4635 position would be before beginning of file.
4636 (_IO_file_seekoff_mmap): Likewise.
4637 * libio/Makefile (tests): Add bug-fseek.
4638 * libio/bug-fseek.c: New file.
4640 * intl/explodename.c: Remove support for CEN-style locale variables.
4641 It was never used and shouldn't be since it's not portable.
4642 * intl/finddomain.c: Likewise.
4643 * intl/l10nflist.c: Likewise.
4644 * intl/loadinfo.h: Likewise.
4645 * locale/findlocale.c: Likewise.
4647 2002-07-24 Roland McGrath <roland@frob.com>
4649 * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
4650 position, calculate it to take into account an active pushback buffer.
4652 * libio/Makefile (tests): Add bug-ungetc.
4653 * libio/bug-ungetc.c: New file.
4655 2002-07-23 Ulrich Drepper <drepper@redhat.com>
4657 * sysdeps/generic/libc-tls.c: New file.
4658 * csu/Makefile (routines): Add libc-tls.
4659 (static-only-routines): Add libc-tls.
4660 * elf/dl-support.c (_dl_phdr): New variable.
4661 (_dl_phnum): New variable.
4662 (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
4663 * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
4664 for !SHARED. First look through auxiliary vector. If TLS always
4665 call __pthread_initialize_minimal.
4667 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
4668 in mmap call is never zero.
4670 2002-07-23 Andreas Jaeger <aj@suse.de>
4672 * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
4673 * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
4675 2002-07-22 Ulrich Drepper <drepper@redhat.com>
4677 * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
4678 creation and removal of the temp file.
4680 * libio/bug-rewind.c: Use test skeleton. Use create_temp_file for
4682 * test-skeleton.c (create_temp_file): New function.
4684 2002-07-22 Andreas Jaeger <aj@suse.de>
4686 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
4689 2002-07-21 Roland McGrath <roland@frob.com>
4691 * wcsmbs/Makefile (strtox-CFLAGS): New variable,
4692 put -I../include before -I../stdlib so we get the right errno.h et al.
4693 (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
4694 (CFLAGS-wcstof.c): Likewise.
4695 (CFLAGS-wcstold.c): Likewise.
4696 (CFLAGS-wcstod_l.c): Likewise.
4697 (CFLAGS-wcstof_l.c): Likewise.
4698 (CFLAGS-wcstold_l.c): Likewise.
4700 2002-07-19 Roland McGrath <roland@frob.com>
4702 * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
4704 2002-07-20 Ulrich Drepper <drepper@redhat.com>
4706 * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
4707 __ASSUME_AT_XID is defined.
4708 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
4710 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
4711 of AT_UID, AT_EUID, AT_GID, and AT_EGID.
4713 * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
4714 (CFLAGS-wcstof.c): Likewise.
4715 (CFLAGS-wcstold.c): Likewise.
4716 (CFLAGS-wcstod_l.c): Likewise.
4717 (CFLAGS-wcstof_l.c): Likewise.
4718 (CFLAGS-wcstold_l.c): Likewise.
4720 2002-07-18 Jakub Jelinek <jakub@redhat.com>
4722 * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
4723 __priority_which_t): Always typedef to int for C++.
4725 2002-07-19 Ulrich Drepper <drepper@redhat.com>
4727 * configure.in: Add test for __thread support in compiler.
4728 * config.h.in: Add HAVE___THREAD.
4729 * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
4730 * include/sys/errno.h: Moved to...
4731 * stdlib/sys/errno.h: ...here. New file.
4732 * stdlib/errno.h: New file. Moved from...
4733 * include/errno.h: ...here. Changed into an internal header defining
4734 libc-local things like __set_errno.
4735 * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
4737 * elf/dl-minimal.c: Include <tls.h>. Define errno as thread-local
4738 variable if USE_TLS && HAVE___THREAD. Don't define __errno_location
4740 * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
4742 (_dl_start_final): ...here. Add code to initialize tls elements from
4744 * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
4745 if USE_TLS && HAVE___THREAD.
4746 * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
4747 * sysdeps/mach/hurd/bits/errno.h: Likewise.
4748 * sysdeps/standalone/arm/bits/errno.h: Likewise.
4749 * sysdeps/standalone/bits/errno.h: Likewise.
4750 * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
4751 * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
4752 * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
4753 * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
4754 * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
4755 * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
4756 * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
4757 * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
4758 use GL(dl_rtld_map), use map parameter.
4759 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
4760 * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
4761 USE_TLS && HAVE___THREAD.
4762 * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
4763 definitions. If USE_TLS && HAVE___THREAD store errooor value using
4765 * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
4767 * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
4768 * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
4769 * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
4770 * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
4771 * sysdeps/unix/sysv/linux/readv.c: Likewise.
4772 * sysdeps/unix/sysv/linux/writev.c: Likewise.
4774 2002-07-17 Ulrich Drepper <drepper@redhat.com>
4776 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
4777 MS_INVALIDATE values.
4779 2002-07-17 Andreas Schwab <schwab@suse.de>
4780 Ulrich Drepper <drepper@redhat.com>
4782 * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
4783 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4784 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4785 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4787 2002-07-01 H.J. Lu <hjl@gnu.org>
4789 * elf/circleload1.c (load_dso): Call "circlemod1" and check
4792 * elf/circlemod1.c (circlemod1): Return int.
4793 * elf/circlemod2.c (circlemod2): Likewise.
4794 * elf/circlemod2a.c (circlemod2): Likewise.
4795 * elf/circlemod3.c (circlemod3): Likewise.
4796 (circlemod3a): A new function.
4798 2002-07-16 Ulrich Drepper <drepper@redhat.com>
4800 * catgets/tst-catgets.c (main): Don't expect results for
4801 untranslated messages.
4803 * glibcbug.in: Fix little typo. Remove STDIO.
4805 * config.h.in: Fail if __FAST_MATH__ is defined.
4806 * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
4807 (CPPFLAGS-test-idouble.c): Likewise.
4808 (CPPFLAGS-test-ildouble.c): Likewise.
4810 2002-07-15 Ulrich Drepper <drepper@redhat.com>
4812 * intl/tst-gettext.sh: Pass -f option to msgfmt.
4813 * intl/tst-gettext.c: Correctly handle untranslated messages in
4816 * po/de.po: Update from translation team.
4818 2002-07-02 H.J. Lu <hjl@gnu.org>
4820 * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>. Always
4822 * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
4824 * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
4827 2002-07-15 Ulrich Drepper <drepper@redhat.com>
4829 * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
4830 TLS fail if USE_TLS is not defined.
4832 * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
4833 and adjust state for seek position. [PR libc/4070]
4834 * libio/Makefile (tests): Add bug-rewind.
4835 * libio/bug-rewind.c: New file.
4837 2002-07-12 Philip Blundell <philb@gnu.org>
4839 * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
4840 (__backtrace): Use it.
4841 * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define. [PR libc/2632]
4843 2002-07-12 Philip Blundell <philb@gnu.org>
4845 * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
4846 R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
4847 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
4848 (elf_machine_rela): Remove unused variable.
4850 * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
4851 (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
4854 2002-07-12 Ulrich Drepper <drepper@redhat.com>
4856 * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
4858 2002-07-14 Andreas Jaeger <aj@suse.de>
4860 * sysdeps/x86_64/bits/link.h: Add biarch support.
4862 2002-07-13 Andreas Jaeger <aj@suse.de>
4864 * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
4865 Use correct indices.
4866 Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
4868 2002-07-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
4870 * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
4871 * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
4872 * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
4873 * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
4874 * sysdeps/s390/s390-32/bits/link.h: Remove.
4875 * sysdeps/s390/s390-64/bits/link.h: Remove.
4876 * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
4877 * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
4878 * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
4879 * sysdeps/s390/bits/wordsize.h: New file.
4880 * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
4882 * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
4883 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
4884 * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
4885 * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
4886 * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
4887 * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
4888 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
4889 * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
4890 * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
4891 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
4892 * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
4893 * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
4895 * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
4896 * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
4897 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
4898 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
4899 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
4900 * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
4901 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
4903 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
4904 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
4906 * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
4907 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
4908 * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
4910 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
4911 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
4912 * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
4913 * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
4914 * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
4915 * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
4916 * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
4917 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
4919 * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
4920 * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
4921 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
4923 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
4924 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
4926 2002-07-11 Ulrich Drepper <drepper@redhat.com>
4928 * Versions.def (libc): Add GLIBC_2.3.
4929 * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
4930 * stdlib/canonicalize.c: Add compatibility version for realpath
4931 and make new code available in GLIBC_2.3.
4933 2002-07-06 Bruno Haible <bruno@clisp.org>
4935 * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
4937 2002-07-11 Ulrich Drepper <drepper@redhat.com>
4939 * resolv/res_hconf.c (_res_hconf_init): Move code into new
4940 function do_init. Use __libc_once.
4941 (do_init): New function.
4943 * iconvdata/iso8859-11.h: Removed.
4944 * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
4945 (distribute): Remove iso8859-11.h.
4946 * iconvdata/tst-tables.sh: Add ISO-8859-11.
4948 * stdio-common/vfscanf.c (inchar): Restore errno from previous
4949 underflow operation if c == (W)EOF.
4951 2002-07-03 Jakub Jelinek <jakub@redhat.com>
4953 * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
4954 non-zero, adjust exponent.
4955 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
4956 Remove NO_LONG_DOUBLE aliases.
4957 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
4958 * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
4959 (__log1pl): Raise divide by zero and invalid exceptions when needed.
4960 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
4962 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
4963 Fix BITS_PER_MP_LIMB 32 extraction.
4964 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
4965 exceptions for qNaNs.
4966 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
4967 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
4968 Raise exceptions when needed. Don't recurse unnecessarily.
4969 Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
4970 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
4971 exceptions for qNaNs.
4972 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
4973 to fix *quo return value sign.
4974 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
4976 * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
4978 2002-07-01 Jakub Jelinek <jakub@redhat.com>
4980 * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
4981 * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
4984 2002-07-10 Ulrich Drepper <drepper@redhat.com>
4986 * malloc/hooks.c (realloc_check): If mremap succeeds actually use
4989 * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
4990 output parameter. Reported by Denis Zaitsev <zzz@cd-club.ru>.
4992 * Versions.def (libthread_db): Add GLIBC_2.3.
4994 2002-07-09 Jakub Jelinek <jakub@redhat.com>
4996 * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
4997 new stream if possible.
4998 * libio/freopen64.c (freopen64): Likewise.
4999 * libio/Makefile (tests): Add tst-freopen.
5000 * libio/tst-freopen.c: New file.
5002 2002-07-03 Jakub Jelinek <jakub@redhat.com>
5004 * libio/stdio.h (obstack_printf): Add format attribute.
5005 (obstack_vprintf): Likewise.
5007 2002-07-04 Jakub Jelinek <jakub@redhat.com>
5009 * posix/regex_internal.h (re_token_t): Shrink the structure to 8
5010 resp. 16 bytes on 32-bit resp. 64-bit platforms.
5011 (re_charset_t, re_string_t): Reorder structure members for 64-bit
5014 2002-07-04 Jakub Jelinek <jakub@redhat.com>
5016 * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
5017 (init_dfa): ...here.
5019 2002-07-05 Isamu Hasegawa <isamu@yamato.ibm.com>
5021 * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
5022 OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
5023 nodes in parse trees.
5024 (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
5025 and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
5026 (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
5027 nodes which can epsilon transit.
5028 * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
5029 to IS_EPSILON_NODE macro.
5030 * posix/regexec.c (update_regs): New function to update registers
5031 by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
5032 (proceed_next_node): Use the entities of the nodes to determine
5033 whether the node can transit to.
5034 (set_regs): Use update_regs function to update registers.
5036 2002-07-03 Jakub Jelinek <jakub@redhat.com>
5038 * posix/bug-regex4.c (main): Remove duplicate setlocale.
5039 * posix/bug-regex6.c: New file.
5040 * posix/Makefile (tests): Add bug-regex6.
5041 (bug-regex6-ENV): Set LOCPATH.
5043 2002-07-10 Ulrich Drepper <drepper@redhat.com>
5045 * Versions.def [libpthread]: Add GLIBC_2.2.6.
5046 * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
5048 2002-07-06 Bruno Haible <bruno@clisp.org>
5050 * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
5052 2002-07-06 Bruno Haible <bruno@clisp.org>
5054 * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
5057 * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
5059 * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
5061 * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
5063 * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
5065 * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
5066 * sysdeps/generic/bits/ustat.h: Likewise.
5068 * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
5070 2002-07-08 Andreas Jaeger <aj@suse.de>
5072 * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
5074 2002-07-08 Andreas Jaeger <aj@suse.de>
5076 * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
5078 2002-07-06 Andreas Jaeger <aj@suse.de>
5080 * sysdeps/x86_64/fpu/bits/mathinline.h: New file.
5081 * sysdeps/x86_64/fpu/s_copysign.S: New file.
5082 * sysdeps/x86_64/fpu/s_copysignf.S: New file.
5083 * sysdeps/x86_64/fpu/s_copysignl.S: New file.
5084 * sysdeps/x86_64/fpu/s_finitel.S: New file.
5085 * sysdeps/x86_64/fpu/s_fmax.S: New file.
5086 * sysdeps/x86_64/fpu/s_fmaxf.S: New file.
5087 * sysdeps/x86_64/fpu/s_fmaxl.S: New file.
5088 * sysdeps/x86_64/fpu/s_fmin.S: New file.
5089 * sysdeps/x86_64/fpu/s_fminf.S: New file.
5090 * sysdeps/x86_64/fpu/s_fminl.S: New file.
5092 2002-06-05 Brian Youmans <3diff@gnu.org>
5094 * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
5095 * sysdeps/ia64/fpu/e_acosf.S: Likewise.
5096 * sysdeps/ia64/fpu/e_acosl.S: Likewise.
5097 * sysdeps/ia64/fpu/e_asin.S: Likewise.
5098 * sysdeps/ia64/fpu/e_asinf.S: Likewise.
5099 * sysdeps/ia64/fpu/e_asinl.S: Likewise.
5100 * sysdeps/ia64/fpu/e_atan2.S: Likewise.
5101 * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
5102 * sysdeps/ia64/fpu/e_cosh.S: Likewise.
5103 * sysdeps/ia64/fpu/e_coshf.S: Likewise.
5104 * sysdeps/ia64/fpu/e_coshl.S: Likewise.
5105 * sysdeps/ia64/fpu/e_exp.S: Likewise.
5106 * sysdeps/ia64/fpu/e_expf.S: Likewise.
5107 * sysdeps/ia64/fpu/e_fmod.S: Likewise.
5108 * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
5109 * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
5110 * sysdeps/ia64/fpu/e_hypot.S: Likewise.
5111 * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
5112 * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
5113 * sysdeps/ia64/fpu/e_log.S: Likewise.
5114 * sysdeps/ia64/fpu/e_logf.S: Likewise.
5115 * sysdeps/ia64/fpu/e_pow.S: Likewise.
5116 * sysdeps/ia64/fpu/e_powf.S: Likewise.
5117 * sysdeps/ia64/fpu/e_powl.S: Likewise.
5118 * sysdeps/ia64/fpu/e_remainder.S: Likewise.
5119 * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
5120 * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
5121 * sysdeps/ia64/fpu/e_scalb.S: Likewise.
5122 * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
5123 * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
5124 * sysdeps/ia64/fpu/e_sinh.S: Likewise.
5125 * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
5126 * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
5127 * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
5128 * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
5129 * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
5130 * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
5131 * sysdeps/ia64/fpu/libm_error.c: Likewise.
5132 * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
5133 * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
5134 * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
5135 * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
5136 * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
5137 * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
5138 * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
5139 * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
5140 * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
5141 * sysdeps/ia64/fpu/s_log1p.S: Likewise.
5142 * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
5143 * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
5144 * sysdeps/ia64/fpu/s_logb.S: Likewise.
5145 * sysdeps/ia64/fpu/s_logbf.S: Likewise.
5146 * sysdeps/ia64/fpu/s_logbl.S: Likewise.
5147 * sysdeps/ia64/fpu/s_modf.S: Likewise.
5148 * sysdeps/ia64/fpu/s_modff.S: Likewise.
5149 * sysdeps/ia64/fpu/s_modfl.S: Likewise.
5150 * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
5151 * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
5152 * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
5153 * sysdeps/ia64/fpu/s_rint.S: Likewise.
5154 * sysdeps/ia64/fpu/s_rintf.S: Likewise.
5155 * sysdeps/ia64/fpu/s_rintl.S: Likewise.
5156 * sysdeps/ia64/fpu/s_round.S: Likewise.
5157 * sysdeps/ia64/fpu/s_roundf.S: Likewise.
5158 * sysdeps/ia64/fpu/s_roundl.S: Likewise.
5159 * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
5160 * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
5161 * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
5162 * sysdeps/ia64/fpu/s_significand.S: Likewise.
5163 * sysdeps/ia64/fpu/s_significandf.S: Likewise.
5164 * sysdeps/ia64/fpu/s_significandl.S: Likewise.
5165 * sysdeps/ia64/fpu/s_tan.S: Likewise.
5166 * sysdeps/ia64/fpu/s_tanf.S: Likewise.
5167 * sysdeps/ia64/fpu/s_tanl.S: Likewise.
5168 * sysdeps/ia64/fpu/s_trunc.S: Likewise.
5169 * sysdeps/ia64/fpu/s_truncf.S: Likewise.
5170 * sysdeps/ia64/fpu/s_truncl.S: Likewise.
5171 * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
5172 reflect IBM donation of math library to FSF
5173 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5174 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
5175 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5176 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5177 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5178 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5179 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
5180 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
5181 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5182 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
5183 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
5184 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
5185 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
5186 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
5187 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
5188 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
5189 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5190 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
5191 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5192 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
5193 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
5194 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
5195 * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
5196 * sysdeps/vax/__longjmp.c: Likewise.
5197 * sysdeps/vax/setjmp.c: Likewise.
5198 * libio/filedoalloc.c: Fixed BSD copying permission notice to
5199 remove advertising clause
5200 * sysdeps/vax/htonl.s: Likewise.
5201 * sysdeps/vax/htons.s: Likewise.
5202 * libio/wfiledoalloc.c: Likewise.
5203 * stdlib/random.c: Likewise.
5204 * stdlib/random_r.c: Likewise.
5205 * sysdeps/mach/sys/reboot.h: Likewise.
5206 * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
5207 * sysdeps/posix/getaddrinfo.c: Likewise.
5208 * sunrpc/des_impl.c: Updated license permission notice to Lesser
5209 GPL and corrected pointer to point to the correct license.
5211 2002-07-04 Andreas Jaeger <aj@suse.de>
5213 * scripts/config.guess: New upstream version.
5214 * scripts/config.sub: Likewise.
5216 2002-07-02 Andreas Schwab <schwab@suse.de>
5218 * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
5219 in parallel to bumping up the buffer pointer.
5221 2002-07-01 Jakub Jelinek <jakub@redhat.com>
5223 * math/libm-test.inc (acos_test): Add missing L suffix for
5225 (cpow_test): Likewise.
5226 * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
5227 error for acos (0.0625).
5229 2002-06-30 Ulrich Drepper <drepper@redhat.com>
5231 * locale/iso-639.def: Add entry for Ganda.
5232 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
5234 (address_finish): Handle entries with two letter ISO 639 code.
5236 * iconvdata/Makefile: Recreate gconv-modules.cache file in target
5237 directory if it existed before.
5238 * iconv/iconvconfig.c: Implement --prefix option.
5240 * math/libm-test.inc (cexp_test): Add missing L suffix for
5241 expected result. Reported by Stephen L Moshier <steve@moshier.net>.
5242 * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
5245 2002-05-29 H.J. Lu <hjl@gnu.org>
5247 * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
5250 2002-05-28 H.J. Lu <hjl@gnu.org>
5252 * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
5253 are not dlopened on the dependency list of a dlopened object.
5255 2002-06-30 Ulrich Drepper <drepper@redhat.com>
5257 * elf/dl-lookup.c (add_dependency): It is not necessary to add
5258 dependencies if they are created between objects which are created
5259 while processing RTLD_NOW for objects loaded as part of the same
5262 2002-06-14 H.J. Lu <hjl@gnu.org>
5264 * elf/Makefile (tests): Add circleload1.
5265 (modules-names): Add circlemod1, circlemod2, circlemod3,
5266 circlemod1a, circlemod2a and circlemod3a.
5267 ($(objpfx)circleload1): New target.
5268 ($(objpfx)circleload1.out): Likewise.
5269 ($(objpfx)circlemod1.so): Likewise.
5270 ($(objpfx)circlemod2.so): Likewise.
5271 ($(objpfx)circlemod1a.so): Likewise.
5272 ($(objpfx)circlemod2a.so): Likewise.
5273 * elf/circleload1.c: New file.
5274 * elf/circlemod1.c: New file.
5275 * elf/circlemod1a.c: New file.
5276 * elf/circlemod2.c: New file.
5277 * elf/circlemod2a.c: New file.
5278 * elf/circlemod3.c: New file.
5279 * elf/circlemod3a.c: New file.
5281 2002-06-18 Amos Waterland <apw@us.ibm.com>
5283 * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
5285 * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
5286 add check for fd not open for writing.
5288 * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
5289 completed element(s) and do not suspend thread if so. Patch
5290 heavily modified by drepper.
5292 * rt/tst-aio7.c: New file. Regression test for problems which the
5293 above three changes fix.
5294 * rt/Makefile (tests): Add tst-aio7.
5296 2002-06-29 Ulrich Drepper <drepper@redhat.com>
5298 * rt/tst-aio6.c: Fix comment.
5300 * catgets/gencat.c (read_input_file): Handle more than one slash
5301 at end of line correctly [PR libc/3926].
5302 Based on a patch by Steven Kim <steven.kim@peregrine.com>.
5304 * catgets/sample.SJIS: Add test case for above bug.
5305 * catgets/test-gencat.c: Adjust test code.
5306 * catgets/test-gencat.sh: Adjust expected results.
5308 * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
5309 to skip relative relocations.
5310 Patch by Geoff Keating <geoffk@redhat.com>.
5312 2002-05-26 Bruno Haible <bruno@clisp.org>
5314 * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
5315 (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
5316 All callers changed.
5317 * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
5318 STANDARD_FROM_LOOP_ERR_HANDLER.
5319 (utf8_internal_loop): Likewise.
5320 (ucs2_internal_loop): Likewise.
5321 (internal_ucs2_loop): Perform error handling like in
5322 STANDARD_FROM_LOOP_ERR_HANDLER.
5323 * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
5324 in STANDARD_FROM_LOOP_ERR_HANDLER.
5325 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5327 * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
5328 in STANDARD_FROM_LOOP_ERR_HANDLER.
5329 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5331 * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
5332 in STANDARD_FROM_LOOP_ERR_HANDLER.
5333 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5335 * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
5336 STANDARD_FROM_LOOP_ERR_HANDLER.
5337 * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
5338 * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
5339 * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
5340 * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
5341 * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
5342 * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
5343 * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
5344 * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
5345 * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
5346 * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
5347 * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
5348 * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
5349 * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
5350 * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
5351 * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
5352 * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
5353 * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
5354 * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
5355 * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
5356 * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
5357 * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
5358 * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
5359 * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
5360 * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5361 * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
5362 * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
5363 * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
5364 * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
5365 * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise. When ignoring
5366 an error, still set result = __GCONV_ILLEGAL_INPUT.
5367 (BODY for TO_LOOP): Likewise.
5368 * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
5369 STANDARD_FROM_LOOP_ERR_HANDLER.
5370 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5371 * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
5372 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5374 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5375 * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
5376 STANDARD_FROM_LOOP_ERR_HANDLER.
5377 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5378 * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
5379 STANDARD_FROM_LOOP_ERR_HANDLER.
5380 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5381 * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
5382 STANDARD_FROM_LOOP_ERR_HANDLER.
5383 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5384 * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
5385 STANDARD_FROM_LOOP_ERR_HANDLER.
5386 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5387 * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
5388 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5390 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5391 * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
5392 * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
5393 * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
5395 2002-06-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5397 * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
5398 labels in assembler instructions.
5400 2002-06-25 Ulrich Drepper <drepper@redhat.com>
5402 * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
5403 not enough content is available.
5404 * libio/tst-eof.c: New file.
5405 * libio/Makefile (tests): Add tst-eof.
5407 * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
5409 * libio/tst-atime.c: New file.
5410 * libio/Makefile (tests): Add tst-atime.
5412 * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
5413 handling of overly long words.
5415 2002-06-25 Andreas Jaeger <aj@suse.de>
5417 * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
5418 to not use 32-bit pc relative relocations.
5419 (elf_machine_dynamic): Likewise.
5421 2002-06-21 Ulrich Drepper <drepper@redhat.com>
5423 * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
5424 (__GETDENTS): Check for failed getdents64 syscall.
5425 * dirent/Makefile (tests): Add bug-readdir1.
5426 * dirent/bug-readdir1.c: New file.
5428 2002-06-17 Jakub Jelinek <jakub@redhat.com>
5430 * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
5432 * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
5433 code. Print TLS modid and offset for modules containing PT_TLS
5436 2002-06-09 Jakub Jelinek <jakub@redhat.com>
5438 * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5439 * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5440 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5441 * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5443 2002-06-07 Jakub Jelinek <jakub@redhat.com>
5445 * nss/getXXbyYY_r.c (NEW, NEW1): Define.
5446 (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
5447 (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
5448 * nss/getXXent_r.c (NEW, NEW1): Define.
5449 (NEW (REENTRANT_GETNAME)): Strong alias to
5450 INTERNAL (REENTRANT_GETNAME).
5451 (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
5453 2002-06-21 Ulrich Drepper <drepper@redhat.com>
5455 * libio/fileops.c (_IO_file_setbuf_mmap): New function.
5456 (_IO_file_jumps_mmap): Use it.
5457 * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
5458 * libio/libioP.h: Remove _IO_wdefault_setbuf and
5459 _IO_wdefault_setbuf_internal prorotypes. Add _IO_file_setbuf_mmap
5461 * libio/wfileops.c (_IO_wfile_setbuf): Removed.
5462 (_IO_wfile_jumps_mmap): Don't use it anymore.
5463 * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
5464 * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
5465 _IO_wdefault_setbuf.
5466 * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
5467 * libio/wstrops.c (_IO_wstr_jumps): Likewise.
5468 * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
5470 2002-06-05 Jakub Jelinek <jakub@redhat.com>
5472 * libio/Makefile (tests): Add tst-mmap-setvbuf.
5473 * libio/tst-mmap-setvbuf.c: New test.
5475 2002-06-21 Andreas Jaeger <aj@suse.de>
5477 * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
5479 2002-06-18 Jakub Jelinek <jakub@redhat.com>
5481 * include/unistd.h (__fork_internal): Remove.
5482 (__fork): Don't define to __fork_internal.
5483 * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
5484 * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
5485 * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
5486 * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
5487 * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
5489 2002-06-20 Ulrich Drepper <drepper@redhat.com>
5491 * po/hr.po: New file.
5493 2002-06-11 Wolfram Gloger <wg@malloc.de>
5495 * malloc/malloc.c: Fix error path when new_heap() returns NULL.
5496 Reported by Michael Meissner <meissner@redhat.com>.
5498 2002-06-20 Ulrich Drepper <drepper@redhat.com>
5500 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
5501 Patch by Hans Boehm <hans_boehm@hp.com>.
5503 2002-06-20 Andreas Jaeger <aj@suse.de>
5505 * math/libm-test.inc: Use exact values as input parameters,
5506 compute output parameters with 36 digits for 128-bit long doubles.
5507 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
5508 * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
5509 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
5511 2002-06-13 Stephen L Moshier <steve@moshier.net>
5513 * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
5514 argument or result is subnormal.
5516 2002-06-19 Ulrich Drepper <drepper@redhat.com>
5518 * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
5520 * sysdeps/i386/fpu/s_remquof.S: Likewise.
5521 * sysdeps/i386/fpu/s_remquol.S: Likewise.
5523 * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
5525 2002-06-17 David Mosberger <davidm@hpl.hp.com>
5527 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
5528 typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
5529 Reported by Peter A. Buhr.
5531 2002-06-15 Roland McGrath <roland@frob.com>
5533 * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
5536 * sysdeps/mach/hurd/getcwd.c
5537 (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
5539 * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
5540 * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
5542 * sysdeps/alpha/divrem.h: Use local label instead of global one for
5543 jump to local subroutine.
5545 2002-06-14 Roland McGrath <roland@frob.com>
5547 * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
5548 * sysdeps/mach/hurd/Makeconfig: ... here.
5550 2002-06-13 Andreas Schwab <schwab@suse.de>
5552 * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
5553 * sysdeps/m68k/fpu/s_finitef.c: Likewise.
5554 * sysdeps/m68k/fpu/s_finitel.c: Likewise.
5556 2002-06-13 Roland McGrath <roland@frob.com>
5558 * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
5559 * hurd/hurdstartup.c (_hurd_startup): Likewise.
5560 Use intptr_t instead of int for argc in stack layout.
5561 * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
5562 (_dl_init_first): Likewise.
5563 (_hurd_stack_setup): Likewise.
5564 (init1): Add a cast.
5565 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
5567 * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
5568 argument to pfinet_siocgifconf RPC.
5570 2002-06-13 Andreas Schwab <schwab@suse.de>
5572 * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
5575 2002-06-12 Roland McGrath <roland@frob.com>
5577 * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
5579 [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
5580 [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
5582 2002-06-11 Roland McGrath <roland@frob.com>
5584 * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
5585 file on [!RTLD_STAT64].
5586 * sysdeps/mach/hurd/fxstat64.c: Likewise.
5588 * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
5589 (__fdopen): Use INTUSE.
5590 * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
5592 * stdio-common/tmpfile64.c: File removed.
5593 * sysdeps/generic/tmpfile64.c: New file.
5594 * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
5595 if not already defined.
5596 (tmpfile): Use it in place of __GT_FILE.
5598 * include/unistd.h: Declare __chown_internal.
5600 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
5601 * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
5603 2002-06-09 Roland McGrath <roland@frob.com>
5605 Update to new Hurd RPC interfaces supporting 64-bit file sizes.
5606 * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
5607 value of HURD_INTERFACE_VERSION >= 20020609.
5608 * sysdeps/mach/hurd/configure: Regenerated.
5609 * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
5610 * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
5611 convert a struct stat64 into a struct stat and return 0 or -1
5612 with errno set to EOVERFLOW.
5613 * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
5614 for struct statfs64 to struct statfs.
5615 * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
5616 * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
5617 * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
5618 * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
5619 * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
5620 * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
5621 * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
5622 * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
5623 * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
5624 * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
5625 * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
5626 * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
5627 * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
5628 * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
5629 * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
5630 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
5631 * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
5632 * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
5633 * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
5634 * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
5635 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
5636 Use struct stat64 for io_stat argument.
5637 * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
5638 * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
5640 * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
5641 * hurd/fd-write.c (_hurd_fd_write): Likewise.
5642 * hurd/hurd/fd.h: Update decls.
5643 * sysdeps/mach/hurd/getcwd.c
5644 (_hurd_canonicalize_directory_name_internal): Use ino64_t
5645 and struct dirent64.
5646 * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
5647 (__xstat): Renamed to __xstat64, use struct stat64 for argument.
5648 (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
5649 (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
5651 2002-06-08 Roland McGrath <roland@frob.com>
5653 * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
5654 instead of unsigned long int for __allocation and __size members.
5656 2002-06-09 Jakub Jelinek <jakub@redhat.com>
5658 * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5659 * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5660 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5661 * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5663 2002-06-07 Roland McGrath <roland@frob.com>
5665 * sysdeps/mach/hurd/bits/environments.h: File removed.
5667 2002-06-07 Jakub Jelinek <jakub@redhat.com>
5669 * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
5670 * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
5671 * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
5672 * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
5673 * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
5674 (sendfile64): Likewise.
5675 * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
5676 * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
5677 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
5679 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
5681 * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
5684 2002-06-04 Bruno Haible <bruno@clisp.org>
5686 * sysdeps/cris/stackinfo.h: New file.
5688 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
5689 to an integer type before performing bit operations on it.
5691 2002-06-05 Roland McGrath <roland@frob.com>
5693 * sysdeps/generic/sendfile.c: Include <errno.h>.
5694 * sysdeps/generic/sendfile64.c: Likewise.
5696 * io/Makefile (routines): Add sendfile and sendfile64.
5697 (headers): Add sys/sendfile.h to the list.
5698 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
5699 * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
5700 * io/sys/sendfile.h: ... here.
5701 * sysdeps/generic/sendfile.c: New file.
5702 * sysdeps/generic/sendfile64.c: New file.
5704 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
5705 Move sendfile, sendfile64 to ...
5706 * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
5707 * sysdeps/mach/hurd/sendfile.c: New file.
5708 * sysdeps/mach/hurd/sendfile64.c: New file.
5710 * sysdeps/mach/nanosleep.c: New file.
5712 2002-06-04 Roland McGrath <roland@frob.com>
5714 * sysdeps/alpha/elf/configure.in: New file. Check for TLS support.
5715 * sysdeps/alpha/elf/configure: New file (generated).
5717 2002-06-02 Roland McGrath <roland@frob.com>
5719 * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
5721 2002-06-01 Roland McGrath <roland@frob.com>
5723 * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
5724 i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
5726 2002-05-19 Ulrich Drepper <drepper@redhat.com>
5728 * resolv/resolv.h (struct __res_state): Remove unused nstimes.
5730 * resolv/res_init.c (__res_vinit): Initialize nsmap array.
5731 Remove nstimes setting.
5732 (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
5733 * resolv/res_send.c (res_nsend): Don't close unconditionally if
5734 there is mix of IPv6 and IPv4 nameservers.
5735 Use nsmap array to find free slots and preserve nameserver ordering.
5738 2002-05-30 Ulrich Drepper <drepper@redhat.com>
5740 * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
5741 use this header with LFS.
5743 * po/sk.po: Update from translation team.
5745 2002-05-28 Andreas Schwab <schwab@suse.de>
5747 * sysdeps/generic/readelflib.c (process_elf_file): Give correct
5748 message when finding object of wrong class.
5750 2002-05-28 Jakub Jelinek <jakub@redhat.com>
5752 * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
5753 Patch by <radu@netsoft.ro>.
5755 2002-05-30 Ulrich Drepper <drepper@redhat.com>
5757 * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
5759 * sysdeps/unix/sysv/linux/readahead.c: New file.
5760 * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
5761 * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
5762 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
5763 Add sendfile64 alias to sendfile syscall.
5764 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5765 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
5766 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5767 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
5770 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
5771 special section for PIC register loading.
5772 * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
5774 * config.h.in: Define HAVE_HIDDEN.
5775 * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
5777 * elf/elf.h: Correct Alpha TLS relocations according to last spec.
5779 2002-05-28 Roland McGrath <roland@frob.com>
5781 * sysdeps/mach/alpha/setfpucw.c: New file.
5783 2002-05-26 Roland McGrath <roland@frob.com>
5785 * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
5786 Use integer_t instead of int for IOC_VOID case.
5788 2002-05-27 Alexandre Oliva <aoliva@redhat.com>
5790 * configure.in (DO_STATIC_NSS): Define if --disable-shared.
5792 2002-05-26 Bruno Haible <bruno@clisp.org>
5794 * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
5795 end of the ISO-8859-7 from idx table.
5797 2002-05-27 Ulrich Drepper <drepper@redhat.com>
5799 * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
5801 2002-05-24 David S. Miller <davem@redhat.com>
5803 * string/bits/string2.h (memset): Do not try to optimize when
5804 not _STRING_ARCH_unaligned if GCC will do the right thing.
5806 2002-05-21 Isamu Hasegawa <isamu@yamato.ibm.com>
5808 * posix/regex.c: Define `inline' as a macro into nothing for the
5809 compilers which lack the keyword.
5810 * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
5811 for the compatibility of gawk.
5812 * posix/regcomp.c: Add fake implementation of isblank() for the
5813 environments which lack the function.
5814 Don't use free_charset() in case of non-i18n envs.
5815 (build_range_exp): Don't use i18n related code in case of non-i18n
5817 (build_collating_symbol): Likewise.
5818 (build_equiv_class): Likewise.
5819 (build_charclass): Likewise.
5820 (re_compile_fastmap_iter): Likewise.
5821 (parse_bracket_exp): Likewise.
5822 (build_word_op): Likewise.
5823 (regfree): Don't use free_charset() in case of non-i18n envs.
5824 * posix/regex_internal.h: Remove COMPLEX_BRACKET from
5825 re_token_type_t in case of non-i18n envs.
5826 Don't define re_charset_t in case of non-i18n envs.
5827 Change the type of wcs of re_string_t from wchar_t to wint_t,
5828 since we store also WEOF.
5829 * posix/regex_internal.c: (re_string_realloc_buffers): Change
5830 the type of wcs of re_string_t from wchar_t to wint_t.
5831 (re_string_reconstruct): Likewise.
5832 (create_ci_newstate): Don't use i18n related code in case of
5834 (create_cd_newstate): Likewise.
5836 2002-05-24 Ulrich Drepper <drepper@redhat.com>
5838 * iconv/loop.c: Fix typo.
5840 2002-05-23 Jakub Jelinek <jakub@redhat.com>
5842 * inet/ether_line.c (ether_line): Fix a typo causing only
5843 lower 4 bits of each ethernet address byte being assigned.
5844 Don't modify what line points to.
5845 * inet/tst-ether_aton.c (main): Add ether_line tests.
5847 2002-05-23 Marcus Brinkmann <marcus@gnu.org>
5849 * manual/filesys.texi: Don't make readlink example leak memory
5850 when readlink fails.
5852 2002-05-20 Ulrich Drepper <drepper@redhat.com>
5854 * iconv/loop.c: Fix condition for defining unaligned loop. Add
5855 some more security checks.
5857 2002-05-17 David S. Miller <davem@redhat.com>
5859 * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
5861 2002-05-16 David S. Miller <davem@redhat.com>
5863 * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
5864 (elf_machine_dynamic): Use it to force PIC register to be loaded.
5865 (elf_machine_load_address): Likewise.
5866 * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
5868 * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
5869 is unaligned, do not forget to fully initialize %g1 magic value.
5871 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
5872 register definitions and provide 32-bit variants of structures
5873 during 64-bit builds.
5875 * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
5876 * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
5877 * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
5878 * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
5879 _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
5880 (_FP_FROM_INT): Perform right shifts on unsigned integer type.
5881 Do not clear implicit one bit here, it must be done post-rounding.
5882 Only pad to the left using left shift if value uses less than the
5883 available fractional bits.
5885 2002-05-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5887 * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
5888 instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
5889 (shared-only-routines): Likewise.
5890 * sysdeps/powerpc/libgcc-compat.c: New file.
5891 * sysdeps/wordsize-32/cmpdi2.c: Removed.
5892 * sysdeps/wordsize-32/fixdfdi.c: Removed.
5893 * sysdeps/wordsize-32/fixsfdi.c: Removed.
5894 * sysdeps/wordsize-32/shdi3.c: Removed.
5896 2002-05-16 Bruno Haible <bruno@clisp.org>
5898 * MakeTAGS (libc.pot): Don't sort the output.
5899 * po/header.pot: Update to match xgettext 0.11 output.
5901 2002-05-16 Bruno Haible <bruno@clisp.org>
5903 * MakeTAGS (subdirs): Remove duplicates.
5905 2002-05-19 Ulrich Drepper <drepper@redhat.com>
5907 * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
5908 definiton of _old_sys_nerr. Define _old_sys_errlist as strong
5911 2002-05-19 Andreas Jaeger <aj@suse.de>
5913 * sysdeps/unix/sysv/linux/configure.in: Warn against an
5914 installation in /usr/local.
5916 2002-05-16 Bruno Haible <bruno@clisp.org>
5918 * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
5919 string as argument of #error.
5921 2002-05-15 Ulrich Drepper <drepper@redhat.com>
5923 * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
5924 don't define static. Remove old __realpath function. TC1 of
5925 POSIX 2001 will allow the second parameter to be NULL.
5926 * stdlib/test-canon.c: Comment out test for NULL as second
5927 parameter of realpath.
5929 * time/offtime.c (__offtime): Set errno if overflow is detected.
5931 * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
5932 * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
5935 * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
5938 2002-05-15 Roland McGrath <roland@frob.com>
5940 * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
5942 2002-05-12 Bruno Haible <bruno@clisp.org>
5944 * iconvdata/testdata/EUC-JISX0213: New file.
5945 * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
5946 * iconvdata/testdata/SHIFT_JISX0213: New file.
5947 * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
5948 * iconvdata/testdata/ISO-2022-JP-3: New file.
5949 * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
5950 * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
5951 * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
5952 contains comments indicating precomposed characters.
5954 2002-04-21 Bruno Haible <bruno@clisp.org>
5956 * iconvdata/iso-2022-jp-3.c: New file.
5957 * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
5958 * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
5959 (LDFLAGS-ISO-2022-JP-3.so): New variable.
5960 (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
5961 (distribute): Add iso-2022-jp-3.c.
5963 2002-05-12 Bruno Haible <bruno@clisp.org>
5965 * iconvdata/tst-table-to.c (main): Restore handling of
5966 transliterations, broken by last patch.
5968 2002-05-12 Bruno Haible <bruno@clisp.org>
5970 * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
5972 2002-05-12 Bruno Haible <bruno@clisp.org>
5974 * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
5975 when there is not enough room in the output buffer.
5976 * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5978 2002-04-20 Bruno Haible <bruno@clisp.org>
5980 * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
5982 (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
5983 Also make this macro work if FROM_DIRECTION evaluates to 0.
5984 (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
5985 (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
5986 of consume_incomplete.
5987 * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
5988 instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
5990 * iconvdata/cp1258.c: Likewise.
5991 * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
5992 instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
5994 * iconvdata/ibm933.c: Likewise.
5995 * iconvdata/ibm935.c: Likewise.
5996 * iconvdata/ibm937.c: Likewise.
5997 * iconvdata/ibm939.c: Likewise.
5998 * iconvdata/iso-2022-cn.c: Define
5999 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6000 {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
6001 * iconvdata/iso-2022-cn-ext.c: Likewise.
6002 * iconvdata/iso-2022-jp.c: Define
6003 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6004 {MIN,MAX}_NEEDED_{FROM,TO}.
6005 * iconvdata/tcvn5712-1.c: Define
6006 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6007 {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
6008 * iconvdata/euc-jisx0213.c: Define
6009 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6010 {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
6011 * iconvdata/shift_jisx0213.c: Likewise.
6013 2002-05-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6015 * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
6016 shdi3, fixdfdi, fixsfdi in csu dir.
6017 (shared-only-routines): Likewise.
6018 * sysdeps/wordsize-32/cmpdi2.c: New file.
6019 * sysdeps/wordsize-32/shdi3.c: New file.
6020 * sysdeps/wordsize-32/fixdfdi.c: New file.
6021 * sysdeps/wordsize-32/fixsfdi.c: New file.
6022 * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
6023 __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
6024 __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
6026 * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
6027 Only use va_arg if the argument will be used [PR libc/3259].
6029 2002-05-06 Michael A. Schmidt <mmaass@us.ibm.com>
6031 * catgets/catgets.c (catopen): Free buffer if internal catalog
6034 2002-05-14 Ulrich Drepper <drepper@redhat.com>
6036 * debug/xtrace.sh: Make more robust. For realtime tracking use
6037 non-buffering methods.
6038 * debug/pcprofiledump.c: Implement -u option.
6039 Patch by Roger Luethi <rl@hellgate.ch>.
6041 2002-05-11 Jakub Jelinek <jakub@redhat.com>
6043 * include/netinet/in.h (bindresvport_internal): Add prototype.
6044 * include/rpc/auth.h (authunix_create_internal,
6045 authunix_create_default_internal, authnone_create_internal,
6046 authdes_pk_create_internal): Add prototypes.
6047 * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
6048 clntudp_create_internal, clntudp_bufcreate_internal,
6049 clntunix_create_internal): Add prototypes.
6050 * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
6051 svc_getreq_internal, svc_getreq_common_internal,
6052 svc_getreqset_internal, svc_getreq_poll_internal,
6053 svc_register_internal, svc_unregister_internal,
6054 svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
6055 * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
6056 * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
6057 __setsockopt, __getsockname, __bind, __listen): Add prototypes.
6058 * inet/rexec.c (rexec_af): Use __listen and __getsockname.
6059 * inet/rcmd.c (rcmd_af): Use __listen.
6060 (rresvport_af): Use __bind.
6061 * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
6062 authunix_create, authunix_create_default, authnone_create,
6063 authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
6064 clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
6065 svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
6066 svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
6067 _authenticate, add INTDEF after such function definitions.
6068 Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
6069 __setsockopt, __getsockname instead of non-__ variants.
6070 * sunrpc/pmap_rmt.c: Likewise.
6071 * sunrpc/rtime.c: Likewise.
6072 * sunrpc/svc_udp.c: Likewise.
6073 * sunrpc/clnt_unix.c: Likewise.
6074 * sunrpc/svc_unix.c: Likewise.
6075 * sunrpc/bindrsvprt.c: Likewise.
6076 * sunrpc/svc_tcp.c: Likewise.
6077 * sunrpc/auth_none.c: Likewise.
6078 * sunrpc/clnt_raw.c: Likewise.
6079 * sunrpc/clnt_tcp.c: Likewise.
6080 * sunrpc/auth_unix.c: Likewise.
6081 * sunrpc/key_call.c: Likewise.
6082 * sunrpc/clnt_gen.c: Likewise.
6083 * sunrpc/pm_getmaps.c: Likewise.
6084 * sunrpc/clnt_simp.c: Likewise.
6085 * sunrpc/pmap_clnt.c: Likewise.
6086 * sunrpc/svc_run.c: Likewise.
6087 * sunrpc/svc.c: Likewise.
6088 * sunrpc/svc_simple.c: Likewise.
6089 * sunrpc/pm_getport.c: Likewise.
6090 * sunrpc/auth_des.c: Likewise.
6091 * sunrpc/svc_auth.c: Likewise.
6092 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
6093 __register_frame_info_table_bases, __deregister_frame_info_bases):
6095 (__register_frame_info_bases_internal,
6096 __register_frame_info_table_bases_internal,
6097 __deregister_frame_info_bases_internal): Add prototypes.
6098 (__register_frame_info, __register_frame): Use INTUSE in call to
6099 __register_frame_info_bases.
6100 (__register_frame_info_table): Similarly.
6101 (__deregister_frame_info, __deregister_frame): Similarly.
6102 * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
6103 sendto as weak alias.
6104 * sysdeps/mach/hurd/sendto.c: Likewise.
6105 * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
6106 recvfrom as weak alias.
6107 * sysdeps/mach/hurd/recvfrom.c: Likewise.
6108 * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
6109 * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
6110 recvmsg as weak alias.
6111 * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
6112 * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
6113 sendmsg as weak alias.
6114 * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
6115 * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
6116 setsockopt, add setsockopt as weak alias.
6117 * sysdeps/mach/hurd/setsockopt.c: Likewise.
6118 * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
6120 * sysdeps/mach/hurd/bind.c: Likewise.
6121 * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
6123 * sysdeps/mach/hurd/listen.c: Likewise.
6124 * sysdeps/generic/getsockname.c (__getsockname): Renamed from
6125 getsockname, add getsockname as weak alias.
6126 * sysdeps/mach/hurd/getsockname.c: Likewise.
6127 * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
6128 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
6129 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
6130 * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
6131 __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
6132 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
6134 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6135 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6136 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6137 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6138 * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
6139 * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
6140 * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
6141 * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
6142 * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
6143 * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
6144 * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
6145 * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
6147 2002-05-10 Jakub Jelinek <jakub@redhat.com>
6149 * locale/programs/localedef.h (show_archive_content): Add verbose
6151 * locale/programs/localedef.c (main): Adjust caller.
6152 * locale/programs/locarchive.c (struct nameent, struct dataent): New
6154 (nameentcmp, dataentcmp): New functions.
6156 (show_archive_content): Print verbose listing with --list-archive -v.
6158 2002-05-14 Ulrich Drepper <drepper@redhat.com>
6160 * locale/programs/locarchive.c (open_archive): Take extra argument
6161 readonly. If true open file with O_RDONLY and don't create the
6162 archive if it doesn't exist.
6164 (close_archive): Don't do anything if fd element is -1.
6165 * locale/programs/localedef.h (open_archive): Adjust prototype.
6166 * locale/programs/locfile.c (write_all_categories): Adjust open_archive
6169 * malloc/malloc.c (__posix_memalign): Correct check for size of
6170 alignment value [PR libc/3444].
6172 * include/stdio.h: Remove references to old stdio implementation.
6174 * libio/Makefile (bug-ungetwc2-ENV): Define.
6176 2002-05-13 Roland McGrath <roland@frob.com>
6178 * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
6180 * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
6182 2002-05-13 Marcus Brinkmann <marcus@gnu.org>
6184 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
6185 Allocate three, not two, more than LEN when appending '/.'.
6186 * sysdeps/mach/hurd/chroot.c (chroot): Likewise. Don't check
6187 if NAME ends with '/.' if it is shorter than 2 chars.
6189 2002-05-12 Roland McGrath <roland@frob.com>
6191 * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
6192 files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
6194 * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
6195 file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
6197 2002-05-10 Jakub Jelinek <jakub@redhat.com>
6199 * sysdeps/ia64/Makefile: Remove extra endif.
6200 * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
6202 2002-05-10 Andreas Schwab <schwab@suse.de>
6204 * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
6206 2002-05-09 Andreas Jaeger <aj@suse.de>
6208 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New file.
6209 * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
6210 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
6212 * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
6213 * sysdeps/wordsize-64/glob.c: ...here.
6214 * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
6215 * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
6216 * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
6218 2002-05-08 Roland McGrath <roland@frob.com>
6220 * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
6221 O_NOTRANS flag in "." lookup.
6223 2002-05-05 Ulrich Drepper <drepper@redhat.com>
6225 * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
6227 2002-05-04 Ulrich Drepper <drepper@redhat.com>
6229 * locale/duplocale.c (__duplocale): Update special members only
6230 when allocation succeeded.
6232 2002-05-03 Roland McGrath <roland@frob.com>
6234 * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
6235 we can only build libc.so.0.3(GLIBC_2.2.6) now.
6237 2002-05-02 Jakub Jelinek <jakub@redhat.com>
6239 * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
6240 * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
6241 __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
6242 * sysdeps/ia64/ia64libgcc.S: New file.
6244 2002-05-02 Ulrich Drepper <drepper@redhat.com>
6246 * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
6248 * malloc/memusage.c: Distinguish anonymous mmap.
6250 2002-05-01 Roland McGrath <roland@frob.com>
6252 * sysdeps/mach/hurd/close.c: #undef __close before function defn,
6253 and use INTDEF on it.
6254 * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
6256 * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
6258 * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
6260 2002-05-01 Ulrich Drepper <drepper@redhat.com>
6262 * malloc/memusage.c: Add support for tracking mmap & friends.
6263 * malloc/memusage.sh: Implement -m/--mmap option.
6265 2002-04-30 Jakub Jelinek <jakub@redhat.com>
6267 * locale/programs/locarchive.c (create_archive): Add archivefname
6268 argument, create fname from it.
6269 (enlarge_archive): Honour output_prefix.
6270 (open_archive): Likewise.
6272 2002-04-30 Jakub Jelinek <jakub@redhat.com>
6274 * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
6275 too many stpcpy macros.
6277 2002-04-26 Bruno Haible <bruno@clisp.org>
6279 * locale/programs/ld-collate.c (collate_read): Cast first argument
6282 2002-04-26 Bruno Haible <bruno@clisp.org>
6284 * include/libintl.h (__ngettext, __dngettext, __dcngettext,
6285 __dcngettext_internal): New declarations.
6286 (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
6287 attribute declarations.
6289 2002-04-30 Roland McGrath <roland@frob.com>
6291 Removed old GNU stdio implementation; GNU libio is now the only option.
6292 * configure.in: Removed --enable-libio option and @stdio@ subst var.
6293 Define USE_IN_LIBIO unconditionally.
6294 * configure: Regenerated.
6295 * Makeconfig (stdio): Set to libio by default.
6296 * config.make.in (stdio): Variable removed.
6297 * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
6298 * sysdeps/unix/sysv/linux/configure: Regenerated.
6299 * sysdeps/mach/hurd/configure.in: Don't test $stdio.
6300 * sysdeps/mach/hurd/configure: Regenerated.
6301 * stdio/.cvsignore: File removed.
6302 * stdio/Makefile: File removed.
6303 * stdio/Versions: File removed.
6304 * stdio/__fbufsize.c: File removed.
6305 * stdio/__flbf.c: File removed.
6306 * stdio/__fpending.c: File removed.
6307 * stdio/__fpurge.c: File removed.
6308 * stdio/__freadable.c: File removed.
6309 * stdio/__freading.c: File removed.
6310 * stdio/__fsetlocking.c: File removed.
6311 * stdio/__fwritable.c: File removed.
6312 * stdio/__fwriting.c: File removed.
6313 * stdio/clearerr.c: File removed.
6314 * stdio/fclose.c: File removed.
6315 * stdio/fcloseall.c: File removed.
6316 * stdio/feof.c: File removed.
6317 * stdio/ferror.c: File removed.
6318 * stdio/fflush.c: File removed.
6319 * stdio/fgetc.c: File removed.
6320 * stdio/fgetpos.c: File removed.
6321 * stdio/fgets.c: File removed.
6322 * stdio/fileno.c: File removed.
6323 * stdio/fmemopen.c: File removed.
6324 * stdio/fopen.c: File removed.
6325 * stdio/fopncook.c: File removed.
6326 * stdio/fputc.c: File removed.
6327 * stdio/fputs.c: File removed.
6328 * stdio/fread.c: File removed.
6329 * stdio/freopen.c: File removed.
6330 * stdio/fseek.c: File removed.
6331 * stdio/fsetpos.c: File removed.
6332 * stdio/ftell.c: File removed.
6333 * stdio/fwrite.c: File removed.
6334 * stdio/getc.c: File removed.
6335 * stdio/getchar.c: File removed.
6336 * stdio/getdelim.c: File removed.
6337 * stdio/gets.c: File removed.
6338 * stdio/glue.c: File removed.
6339 * stdio/internals.c: File removed.
6340 * stdio/linewrap.c: File removed.
6341 * stdio/linewrap.h: File removed.
6342 * stdio/memstream.c: File removed.
6343 * stdio/newstream.c: File removed.
6344 * stdio/obstream.c: File removed.
6345 * stdio/putc.c: File removed.
6346 * stdio/putchar.c: File removed.
6347 * stdio/puts.c: File removed.
6348 * stdio/rewind.c: File removed.
6349 * stdio/setbuf.c: File removed.
6350 * stdio/setbuffer.c: File removed.
6351 * stdio/setlinebuf.c: File removed.
6352 * stdio/setvbuf.c: File removed.
6353 * stdio/stdio.h: File removed.
6354 * stdio/ungetc.c: File removed.
6355 * stdio/vasprintf.c: File removed.
6356 * stdio/vscanf.c: File removed.
6357 * stdio/vsnprintf.c: File removed.
6358 * stdio/vsprintf.c: File removed.
6359 * stdio/vsscanf.c: File removed.
6360 * sysdeps/generic/defs.c: File removed.
6361 * sysdeps/generic/fdopen.c: File removed.
6362 * sysdeps/generic/pipestream.c: File removed.
6363 * sysdeps/generic/stdio_init.c: File removed.
6364 * sysdeps/generic/sysd-stdio.c: File removed.
6365 * sysdeps/generic/vdprintf.c: File removed.
6366 * sysdeps/mach/hurd/defs.c: File removed.
6367 * sysdeps/mach/hurd/fdopen.c: File removed.
6368 * sysdeps/mach/hurd/pipestream.c: File removed.
6369 * sysdeps/mach/hurd/stdio_init.c: File removed.
6370 * sysdeps/mach/hurd/sysd-stdio.c: File removed.
6371 * sysdeps/mach/hurd/vdprintf.c: File removed.
6372 * sysdeps/posix/defs.c: File removed.
6373 * sysdeps/posix/fdopen.c: File removed.
6374 * sysdeps/posix/pipestream.c: File removed.
6375 * sysdeps/posix/stdio_init.c: File removed.
6376 * sysdeps/posix/vdprintf.c: File removed.
6377 * sysdeps/unix/pipestream.c: File removed.
6378 * sysdeps/unix/sysv/sysd-stdio.c: File removed.
6379 * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
6380 * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
6382 2002-04-29 Roland McGrath <roland@frob.com>
6384 * include/libc-symbols.h (link_warning): Use `unused' attribute.
6386 2002-04-28 Ulrich Drepper <drepper@redhat.com>
6388 * sysdeps/generic/tls.h: Describe what must be defined.
6390 * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
6391 glob_in_dir [PR libc/3385].
6392 * posix/globtest.sh: Add test case.
6394 * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
6397 2002-04-27 Ulrich Drepper <drepper@redhat.com>
6399 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
6400 _internal symbol handling.
6401 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6403 2002-04-26 Ulrich Drepper <drepper@redhat.com>
6405 * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
6406 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
6408 2002-04-26 Isamu Hasegawa <isamu@yamato.ibm.com>
6410 * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
6411 not _LIBC and RE_ENABLE_I18N.
6412 (build_range_exp): Implement for not _LIBC.
6413 (build_collating_symbol): Likewise.
6414 (parse_bracket_exp): Unify redundant error handlings.
6415 Don't erase mbcset for non matching list in multibyte envs.
6416 (build_word_op): Add '_' to matching list for \w operator.
6417 * posix/regex_internal.c (re_string_construct): Invoke
6418 build_upper_buffer in case of not RE_ENABLE_I18N.
6419 (re_string_reconstruct): Don't touch cur_state in case of not
6421 * posix/regex_internal.h (attribute_hidden): New macro in case of
6423 (re_charset_t): Define range_starts/ends in case of not _LIBC.
6424 * posix/regexec.c (sift_states_iter_mb): Hide in case of not
6426 (transit_state_mb): Likewise.
6427 (check_node_accept_bytes): Implement the code evaluating range
6428 expression in case of not _LIBC.
6429 (find_collation_sequence_value): Hide in case of not _LIBC.
6431 2002-04-26 Jakub Jelinek <jakub@redhat.com>
6433 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
6435 (__old_semctl, __new_semctl): Only use va_arg if the argument will
6438 2002-04-26 Ulrich Drepper <drepper@redhat.com>
6440 * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
6442 * sysdeps/ia64/strncpy.S: Fix recovery code.
6443 Patch by David Mosberger <davidm@hpl.hp.com>.
6445 2002-04-24 Ulrich Drepper <drepper@redhat.com>
6447 * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
6450 2002-04-14 Bruno Haible <bruno@clisp.org>
6452 * posix/regex.c (re_max_failures): Add back symbol for binary
6455 2002-04-22 Isamu Hasegawa <isamu@yamato.ibm.com>
6457 * posix/regcomp.c (re_compile_internal): Adapt it to new interface
6458 of buffer building functions.
6459 * posix/regex_internal.c (re_string_allocate): New function.
6460 (re_string_realloc_buffers): New function.
6461 (re_string_skip_chars): New function.
6462 (re_string_reconstruct): New function.
6463 (re_string_construct): Adapt it to new interface of buffer building
6465 (re_string_construct_common): Likewise.
6466 (build_wcs_buffer): Likewise.
6467 (build_wcs_upper_buffer): Likewise.
6468 (build_upper_buffer): Likewise.
6469 (re_string_translate_buffer): Likewise.
6470 (re_string_context_at): Adapt it to variable length buffers.
6471 * posix/regex_internal.h (re_string_t): Add new fields to handle
6472 variable length buffers.
6473 (re_match_context_t): Likewise.
6474 * posix/regexec.c (re_search_internal): Adapt it to new interface
6475 of re_string_t and re_match_context_t.
6476 (acquire_init_state_context): Likewise.
6477 (check_matching): Likewise.
6478 (check_halt_state_context): Likewise.
6479 (proceed_next_node): Likewise.
6480 (set_regs): Likewise.
6481 (sift_states_backward): Likewise.
6482 (clean_state_log_if_need): Likewise.
6483 (sift_states_iter_mb): Likewise.
6484 (sift_states_iter_bkref): Likewise.
6485 (add_epsilon_backreference): Likewise.
6486 (transit_state): Likewise.
6487 (transit_state_sb): Likewise.
6488 (transit_state_mb): Likewise.
6489 (transit_state_bkref): Likewise.
6490 (transit_state_bkref_loop): Likewise.
6491 (check_node_accept): Likewise.
6492 (match_ctx_init): Likewise.
6493 (extend_buffers): New function.
6495 2002-04-21 Bruno Haible <bruno@clisp.org>
6497 * iconvdata/tst-table.sh: For the second check, use the truncated
6498 GB18030 charmap table, like for the first check.
6500 2002-04-24 Ulrich Drepper <drepper@redhat.com>
6502 * elf/dl-load.c (open_verify): Correct __lseek parameters.
6503 Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
6505 2002-04-23 H.J. Lu <hjl@gnu.org>
6507 * include/math.h (isfinite): Fix a typo.
6509 2002-04-24 Ulrich Drepper <drepper@redhat.com>
6511 * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
6512 which is created by the test suite.
6514 2002-04-20 Bruno Haible <bruno@clisp.org>
6516 * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
6517 (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
6519 2002-04-20 Bruno Haible <bruno@clisp.org>
6521 * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
6522 to avoid gcc warning.
6524 2002-04-20 Bruno Haible <bruno@clisp.org>
6526 * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
6527 of data->__statep->__count.
6529 2002-04-20 Bruno Haible <bruno@clisp.org>
6531 * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
6533 * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
6535 2002-04-24 Roland McGrath <roland@frob.com>
6537 * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
6538 use END macro instead of our own .end directive.
6539 Use `callsys' insn mnemonic instead of `call_pal'.
6541 * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
6543 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
6544 macro; we need this for Hurd.
6546 Log entry was missing for 2002/03/24 commit of rev 1.8,
6547 goes with 2002-03-17 changes.
6548 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
6549 (sysdep_routines): Append ioperm here.
6550 (sysdep_headers): Append sys/io.h here.
6552 2002-04-23 Roland McGrath <roland@frob.com>
6554 * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
6555 * sysdeps/mach/hurd/sendto.c: Likewise.
6556 * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
6557 * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
6558 * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
6560 2002-04-22 Roland McGrath <roland@frob.com>
6562 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
6563 failure from i386_io_perm_* RPCs to ENOSYS.
6565 2002-04-22 Andreas Jaeger <aj@suse.de>
6567 * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
6569 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
6571 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
6572 register instead of destroying %rbx.
6574 2002-04-21 Ulrich Drepper <drepper@redhat.com>
6576 * string/string.h: Declare strerror_r also for XPG6.
6578 2002-04-19 Roland McGrath <roland@frob.com>
6580 * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
6582 2002-04-20 Ulrich Drepper <drepper@redhat.com>
6584 * Makefile: Add handling of xtests and xcheck targets.
6585 * MakeTAGS: Likewise.
6586 * Makeconfig: Likewise.
6587 * Makerules: Likewise.
6589 * manual/Makefile: Likewise.
6590 * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
6591 * sunrpc/thrsvc.c: New file. By Zack Weinberg.
6593 2002-04-11 Zack Weinberg <zack@codesourcery.com>
6595 * include/rpc/rpc.h (struct rpc_thread_variables): Remove
6597 * sunrpc/auth_none.c: Include bits/libc-lock.h.
6598 Delete #ifdef _RPC_THREAD_SAFE_ block.
6599 (authnone_private): Make a struct, not a pointer to struct.
6600 (authnone_private_guard): New once-control variable.
6601 (authnone_create_once): New function, split out of
6602 authnone_create. No need to allocate memory.
6603 (authnone_create): Just call authnone_create_once via
6604 __libc_once, then return &authnone_private->no_client.
6605 (authnone_marshal): Access private data via CLIENT argument,
6606 not authnone_private pointer.
6607 Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
6608 * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
6611 2002-04-12 H.J. Lu <hjl@gnu.org>
6613 * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
6615 2002-04-18 Bruno Haible <bruno@clisp.org>
6617 * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
6618 FROM_DIRECTION): Make the FROM direction stateless.
6619 * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
6620 FROM_DIRECTION): Likewise.
6622 2002-04-15 Bruno Haible <bruno@clisp.org>
6624 * iconvdata/JISX0213.TXT: New file.
6625 * iconvdata/jisx0213.h: New file.
6626 * iconvdata/jisx0213.c: New file.
6627 * iconvdata/euc-jisx0213.c: New file.
6628 * iconvdata/shift_jisx0213.c: New file.
6629 * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
6630 * iconvdata/EUC-JISX0213.precomposed: New file.
6631 * iconvdata/SHIFT_JISX0213.precomposed: New file.
6632 * iconvdata/SHIFT_JISX0213.irreversible: New file.
6633 * iconvdata/tst-table-to.c (main): Make it work for encodings for
6634 which the "to" direction is stateful.
6635 * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
6636 * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
6638 (libJISX0213-routines): New variable.
6639 (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
6640 (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
6641 (LDFLAGS-libJISX0213.so): New variable.
6642 (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
6643 SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
6644 jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
6646 2002-04-15 Bruno Haible <bruno@clisp.org>
6648 * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
6649 uint32_t. Update to Unicode 3.2.
6650 (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
6651 (BODY for TO_LOOP): Handle the ASCII range specially.
6652 * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
6653 * iconvdata/testdata/BIG5HKSCS: Remove a character.
6654 * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
6656 2002-04-15 Bruno Haible <bruno@clisp.org>
6658 * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
6659 __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
6661 2002-04-15 Bruno Haible <bruno@clisp.org>
6663 * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
6664 (ucs4_to_cns11643): Update.
6665 * iconvdata/cns11643.c: Update to Unicode 3.2.
6666 (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
6667 __cns11643_from_ucs4p2_tab): Regenerated.
6668 (__cns11643_from_ucs4p2c_tab): New array.
6669 * iconvdata/cvs11643l1.c: Update comments.
6670 * iconvdata/EUC-TW.irreversible: Remove two entries.
6672 2002-04-15 Bruno Haible <bruno@clisp.org>
6674 * locale/C-translit.h.in: Update to Unicode 3.2.
6675 Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
6676 <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
6678 2002-04-15 Bruno Haible <bruno@clisp.org>
6680 * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
6681 (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
6683 2002-04-15 Bruno Haible <bruno@clisp.org>
6685 * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
6686 invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
6687 always one byte, not 0 bytes in some cases and 2 bytes in others.
6689 * iconvdata/tst-table-from.c (main): Correct the usage message.
6691 2002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
6693 * posix/regcomp.c (parse_expression): Fix incorrect error code.
6694 (parse_dup_op): Fix error handling like "a{}".
6695 (parse_bracket_exp): Add error handling.
6696 (fetch_number): Add error handling for "a{<very_large_number>}".
6698 2002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
6700 * posix/regcomp.c (parse_bracket_symbol): Add error handling
6701 in case that the symbol name is too long.
6702 (build_charclass): Handle [:lower:]/[:uppper:] correctly
6703 in case of REG_ICASE.
6705 2002-04-19 Andreas Jaeger <aj@suse.de>
6707 * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
6708 <hartvige@mips.com>.
6710 2002-04-15 H.J. Lu <hjl@gnu.org>
6712 * include/math.h (__finitel_internal): Declare only if
6713 __NO_LONG_DOUBLE_MATH is not defined.
6714 (__isinfl_internal): Likewise.
6715 (__isnanl_internal): Likewise.
6717 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
6718 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6719 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6720 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
6721 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6722 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6723 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6725 * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
6728 * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
6729 * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
6731 2002-04-15 Bruno Haible <bruno@clisp.org>
6733 * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
6734 (BODY for TO_LOOP): Likewise.
6735 * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
6736 * iconvdata/tst-table.sh: Add support for encodings which contain
6737 precomposed Unicode characters, known to the iconv converter in both
6738 directions but not listed in the charmap.
6739 * iconvdata/IBM856.irreversible: New file.
6740 * iconvdata/IBM922.irreversible: New file.
6741 * iconvdata/IBM1132.irreversible: New file.
6742 * iconvdata/IBM1133.irreversible: New file.
6743 * iconvdata/IBM1160.irreversible: New file.
6744 * iconvdata/IBM1161.irreversible: New file.
6745 * iconvdata/IBM1163.irreversible: New file.
6746 * iconvdata/IBM1164.irreversible: New file.
6747 * iconvdata/ARMSCII-8.irreversible: New file.
6748 * iconvdata/TCVN5712-1.precomposed: New file.
6749 * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
6750 IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
6751 ARMSCII-8, TCVN5712-1.
6752 * iconvdata/Makefile (distribute): Add IBM856.irreversible,
6753 IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
6754 IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
6755 IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
6757 2002-04-17 Jakub Jelinek <jakub@redhat.com>
6759 * time/tst-mktime.c: Include <stdlib.h>. Use %d, not %ld format
6760 for EVENING69. Include offsets in TZ environment variable.
6762 2002-04-18 Ulrich Drepper <drepper@redhat.com>
6764 * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
6765 avoid compiler warnings.
6767 * locale/programs/localedef.c (main): Always call
6768 construct_output_path.
6770 * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
6772 * locale/programs/locfile.c (to_archive): New variable. To collect
6773 data which has to be added to the locale archive.
6774 (write_all_categories): Take new third parameter with locale name.
6775 Unless no_archive flag set add new locale data to the archive
6776 (write_locale_data): Unless no-archive flag set store generated data
6777 in to_archive data structure instead of generation output file.
6778 Add new parameter with locale category index.
6779 * locale/programs/locfile.h: Add new parameters in declaractions of
6780 write_all_categories and write_locale_data.
6781 * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
6782 --add-to-archive, and --delete-from-archive options. Pass extra
6783 parameter to write_all_categories.
6784 * locale/programs/localedef.h: Add prototypes for functions in
6786 * locale/locarchive.h: New file.
6787 * locale/programs/locarchive.c: New file.
6788 * locale/Makefile (distribute): Add programs/locarchive.c and
6790 (localedef-modules): Add md5 and locarchive.
6791 Add vpath to crypt subdir for md5.c.
6793 * locale/programs/ld-address.c: Pass locale category ID as new second
6794 parameter to write_locale_data.
6795 * locale/programs/ld-collate.c: Likewise.
6796 * locale/programs/ld-ctype.c: Likewise.
6797 * locale/programs/ld-identification.c: Likewise.
6798 * locale/programs/ld-measurement.c: Likewise.
6799 * locale/programs/ld-messages.c: Likewise.
6800 * locale/programs/ld-monetary.c: Likewise.
6801 * locale/programs/ld-name.c: Likewise.
6802 * locale/programs/ld-numeric.c: Likewise.
6803 * locale/programs/ld-paper.c: Likewise.
6804 * locale/programs/ld-telephone.c: Likewise.
6805 * locale/programs/ld-time.c: Likewise.
6807 * locale/simple-hash.c: Move compute_hashval function from here...
6808 * locale/hashval.h: ...to here. New file.
6809 * locale/simple-hash.h: Add prototype for compute_hashval.
6811 * include/libintl.h: Minor cleanups.
6813 2002-04-16 Ulrich Drepper <drepper@redhat.com>
6815 * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
6817 2002-04-15 Ulrich Drepper <drepper@redhat.com>
6819 * include/sys/stat.h: Fix typo. Patch by HJ Lu.
6821 2002-04-14 Bruno Haible <bruno@clisp.org>
6823 * locale/programs/charmap.c (charmap_read): Don't access result if
6826 2002-02-17 Andreas Schwab <schwab@suse.de>
6828 * elf/reldep7.c: New file.
6829 * elf/reldep7mod1.c: New file.
6830 * elf/reldep7mod2.c: New file.
6831 * elf/Makefile: Add rules to build and run reldep7.
6833 2002-04-14 Jakub Jelinek <jakub@redhat.com>
6835 * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
6836 the end of the function. Pass original flags to recursive call if
6837 add_dependency failed.
6838 (_dl_lookup_versioned_symbol): Likewise.
6840 2002-04-13 Jakub Jelinek <jakub@redhat.com>
6842 * time/mktime.c (__mktime_internal): If year is 69, don't bail out
6843 early, but check whether it overflowed afterwards.
6844 * time/tst-mktime.c (main): Add new tests.
6846 2002-04-14 Ulrich Drepper <drepper@redhat.com>
6848 * debug/xtrace.sh: Fix program name in help message.
6849 Patch by Roger Luethi <rl@hellgate.ch>.
6851 * include/sys/stat.h: Add prototypes for __lxstat_internal and
6852 __lxstat64_internal. Add macros __lxstat and __lxstat64 if not
6854 * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
6855 * sysdeps/mach/hurd/lxstat.c: Likewise.
6856 * sysdeps/unix/common/lxstat.c: Likewise.
6857 * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
6858 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
6859 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
6860 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6861 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
6862 * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
6863 * sysdeps/mach/hurd/lxstat64.c: Likewise.
6864 * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
6865 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
6867 * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
6868 prototypes. Add __mbrlen and __mbrtowc macros.
6869 * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
6870 * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
6872 * include/unistd.h: Add prototype for __write_internal and add
6873 __libc_write macro is SHARED.
6874 * sysdeps/generic/write.c: Use INTDEF for __write.
6875 * sysdeps/mach/hurd/write.c: Likewise.
6876 * sysdeps/unix/sysv/aix/write.c: Likewise.
6877 * sysdeps/unix/syscalls.list: Add __libc_write alias.
6879 * assert/assert.c: Replace STR_N_SIZE with something usable in
6881 * assert/assert-perr.c: Likewise.
6883 * include/sys/socket.h: Declare __libc_sa_len_internal and define
6884 SA_LEN macro to use it if not NOT_IN_libc.
6885 * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
6887 * include/fcntl.h: Declare __open_internal and define __open and
6888 __libc_open macros if not NOT_IN_libc.
6889 * sysdeps/generic/open.c: Use INTDEF for __open.
6890 * sysdeps/mach/hurd/open.c: Likewise.
6891 * sysdeps/unix/sysv/aix/open.c: Likewise.
6892 * sysdeps/unix/syscalls.list: Add __open_internal alias.
6894 * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
6897 * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
6898 * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
6899 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
6900 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
6902 * include/wctype.h: Declare __iswalpha_l_internal,
6903 __iswdigit_l_internal, __iswspace_l_internal,
6904 __iswxdigit_l_internal, and __iswctype_internal. Define
6905 __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
6906 __iswxdigit_l macros if not NOT_IN_libc.
6907 * wctype/iswctype.c: Use INTDEF for __iswctype.
6908 * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
6910 * include/math.h: Declare __isinf_internal, __isinfl_internal,
6911 __isnan_internal, and __isnanl_internal.
6912 * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
6913 __isnan, and __isnanl.
6914 * stdio-common/printf_size.c: Likewise.
6915 * sysdeps/generic/printf_fphex.c: Likewise.
6916 * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
6917 * sysdeps/i386/fpu/s_isnanl.c: Likewise.
6918 * sysdeps/ia64/fpu/s_isinf.S: Likewise.
6919 * sysdeps/ia64/fpu/s_isnan.S: Likewise.
6920 * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
6921 * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
6922 * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
6923 * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
6924 * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
6925 * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
6926 * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
6927 * sysdeps/m68k/s_isinfl.c: Likewise.
6928 * sysdeps/m68k/fpu/s_isinf.c: Likewise.
6929 * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
6931 * include/sys/time.h: Declare __gettimeofday_internal and define
6932 __gettimeofday macro if not NOT_IN_libc.
6933 * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
6934 * sysdeps/mach/gettimeofday.c: Likewise.
6935 * sysdeps/posix/gettimeofday.c: Likewise.
6936 * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
6937 * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
6938 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
6939 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
6941 * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
6942 and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
6943 Remove __lstat and __fstat inline functions.
6944 * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
6945 * sysdeps/mach/hurd/fxstat.c: Likewise.
6946 * sysdeps/unix/fxstat.c: Likewise.
6947 * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
6948 * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
6949 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
6950 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
6951 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
6952 * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
6953 * sysdeps/mach/hurd/fxstat64.c: Likewise.
6954 * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
6955 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
6957 * include/unistd.h: Declare __getpid_internal and define
6958 __getpid macro if not NOT_IN_libc.
6959 * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
6960 * sysdeps/generic/getpid.c: Likewise.
6961 * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
6962 * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
6964 * include/unistd.h: Declare __getpgid_internal and define
6965 __getpgid macro if not NOT_IN_libc.
6966 * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
6967 * sysdeps/mach/hurd/getpgid.c: Likewise.
6968 * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
6969 * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
6970 * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
6971 * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
6973 * include/unistd.h: Declare __getpagesize_internal and define
6974 __getpagesize macro if not NOT_IN_libc.
6975 * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
6977 * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
6978 * sysdeps/mach/getpagesize.c: Likewise.
6979 * sysdeps/posix/getpagesize.c: Likewise.
6980 * sysdeps/unix/getpagesize.c: Likewise.
6981 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
6982 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
6983 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
6984 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
6986 2002-04-13 Andreas Jaeger <aj@suse.de>
6988 * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
6989 as clobber to reduce register pressure.
6990 (__strpbrk_cg): Likewise.
6991 (__mempcpy_by4): Likewise.
6992 (__strstr_cg): Likewise.
6993 Add prototype for __memrchr.
6995 2002-04-13 Andreas Schwab <schwab@suse.de>
6997 * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
6998 * sysdeps/m68k/fpu/s_finitef.c: Likewise.
6999 * sysdeps/m68k/fpu/s_finitel.c: Likewise.
7001 2002-04-13 Ulrich Drepper <drepper@redhat.com>
7003 * elf/do-lookup.h [!VERSIONED]: Add new parameter flags. Use it to
7004 check whether the caller prefers getting the most recent version of
7005 a symbol of the earliest version.
7006 * elf/dl-lookup.c: Adjust all callers of do_lookup. Change
7007 _dl_do_lookup to also take the new parameter and pass it on.
7008 Change 'explicit' parameter of _dl_lookup_symbol and
7009 _dl_lookup_versioned_symbol to flags. Adjust tests.
7010 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
7011 * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
7012 _dl_lookup_versioned_symbol.
7013 * elf/dl-reloc.c: Likewise.
7014 * elf/dl-runtime.c: Likewise.
7015 * elf/dl-sym.c: Likewise.
7016 * sysdeps/mips/dl-machine.h: Likewise.
7018 2002-04-11 Jakub Jelinek <jakub@redhat.com>
7020 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
7022 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
7024 2002-04-10 Andreas Jaeger <aj@suse.de>
7026 * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
7028 * include/argz.h: Remove extra char from last patch.
7030 2002-04-09 Ulrich Drepper <drepper@redhat.com>
7032 * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
7033 * sysdeps/unix/sysv/aix/chown.c: Likewise.
7034 * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
7035 * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
7036 * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
7037 * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
7039 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
7041 * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
7042 * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
7043 * intl/ngettext.c: Likewise.
7045 * include/sys/socket.h: Declare __connect_internal and define
7046 __connect macro if not NOT_IN_libc.
7047 * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
7048 * sysdeps/unix/sysv/aix/connect.c: Likewise.
7049 * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
7051 * include/unistd.h: Declare __close_internal and define __close macro
7053 * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
7054 WJUMP3): Add extra parenthesis to avoid expanding element names with
7055 macors like __close.
7056 * sysdeps/unix/syscalls.list: Add __close_internal alias.
7058 * include/unistd.h: Declare __dup2_internal and define __dup2 macro
7060 * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
7061 * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
7062 * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
7064 * include/unistd.h: Declare __fork_internal and define __fork macro
7066 * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
7067 * sysdeps/unix/sysv/aix/fork.c: Likewise.
7068 * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
7070 * include/stdio_ext.h: Declare __fsetlocking_internal and define
7071 __fsetlocking macro to use it if not NOT_IN_libc.
7072 * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
7074 * libio/__fbufsize.c: Correct copyright.
7075 * libio/__flbf.c: Likewise.
7076 * libio/__fpending.c: Likewise.
7077 * libio/__fpurge.c: Likewise.
7078 * libio/__freadable.c: Likewise.
7079 * libio/__freading.c: Likewise.
7080 * libio/__fsetlocking.c: Likewise.
7081 * libio/__fwritable.c: Likewise.
7082 * libio/__fwriting.c: Likewise.
7084 * include/stdio.h: Declare __asprintf_internal and define __asprintf
7085 macro to use it if not NOT_IN_libc.
7086 * stdio-common/asprintf.c: Use INTDEF for __asprintf.
7088 * include/mntent.h: Declare __setmntent_internal,
7089 __getmntent_r_internal, __endmntent_internal. Define __setmntent,
7090 __getmntent_r, and __endmntent macros to use these functions if not
7092 * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
7095 * include/math.h: Declare __finite_internal, __finitef_internal, and
7096 __finitel_internal. Redefine isfinite macro if in libc or libm using
7098 * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
7099 * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
7100 * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
7101 * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
7102 * sysdeps/i386/fpu/s_finitef.S: Likewise.
7103 * sysdeps/i386/fpu/s_finitel.S: Likewise.
7104 * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
7105 * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
7106 * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
7107 * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
7109 * include/fcntl.h: Declare __fcntl_internal. Define __fcntl macro
7110 to use this function if not NOT_IN_libc.
7111 * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
7112 * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
7113 * sysdeps/mach/hurd/fcntl.c: Likewise.
7114 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
7115 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
7117 * include/argz.h: Declare __argz_count_internal and
7118 __argz_stringify_internal.
7119 * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
7121 * string/argz-count.c: Use INTDEF for __argz_count.
7122 * string/argz-stringify.c: Use INTDEF for __argz_stringify.
7124 * include/stdlib.h: Declare __cxa_atexit_internal and define
7125 __cxa_atexit macro if not NOT_IN_libc.
7126 * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
7127 * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
7129 * assert/assert.c: Use INTDEF for __assert_fail.
7130 * assert/__assert.c: Use INTUSE for call to __assert_fail.
7131 * include/assert.h: Declare __assert_fail_internal.
7133 * extra-lib.mk: Mark assignment to lib with override.
7135 2002-04-08 Ulrich Drepper <drepper@redhat.com>
7137 * Makerules: Use cppflags-iterator.mk to add defines for all test
7140 2002-04-08 kaz Kojima <kkojima@rr.iij4u.or.jp>
7142 * elf/elf.h: Define R_SH_TLS_xxx macros.
7143 * elf/rtld.c: Remove an extra parenthesis.
7144 * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
7146 * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
7147 * sysdeps/sh/dl-lookupcfg.h: New file.
7148 * sysdeps/sh/dl-tls.h: New file.
7149 * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
7150 ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
7151 (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
7152 R_SH_TLS_TPOFF32 relocations.
7154 2002-04-08 Ulrich Drepper <drepper@redhat.com>
7156 * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
7158 * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
7159 * include/stdlib.h: Likewise.
7161 2002-04-08 Jakub Jelinek <jakub@redhat.com>
7163 * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
7164 instead of _RTLD_LOCAL.
7165 * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
7166 * include/unistd.h: Likewise.
7167 * sysdeps/generic/ldsodefs.h: Likewise.
7169 * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
7170 if in libc or ld.so.
7172 2002-04-08 Andreas Jaeger <aj@suse.de>
7174 * elf/cache.c (print_entry): Support x86-64.
7176 2002-04-08 Ulrich Drepper <drepper@redhat.com>
7178 * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
7179 with one accessing the locale data structures directly.
7180 * stdio-common/printf-prs.c: Include localeinfo.h for new
7181 MB_CUR_MAX definition.
7183 * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
7184 is the name of the source file without extension.
7185 * Makefile (distribute): Add cppflags-iterator.mk.
7186 * cppflags-iterator.mk: New file.
7187 * extra-lib.mk: For the sources of the library run
7188 cppflags-iterator.mk.
7190 * include/libintl.h: Declare __dcgettext_internal and
7191 _libc_intl_domainname_internal. Define __dcgettext using these
7192 two symbols if used in libc itself.
7193 * argp/argp-help.c: Define dgettext using __dcgettext_internal and
7194 _libc_intl_domainname_internal.
7195 * argp/argp-parse.c: Likewise.
7196 * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
7197 * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
7198 * intl/gettext.c: Likewise.
7199 * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
7201 * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
7203 * posix/regex_internal.c (gettext): Likewise.
7205 2002-04-08 Andreas Jaeger <aj@suse.de>
7207 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
7209 * sysdeps/x86_64/fpu/s_llrint.S: New file.
7210 * sysdeps/x86_64/fpu/s_llrintf.S: New file.
7211 * sysdeps/x86_64/fpu/s_llrintl.S: New file.
7212 * sysdeps/x86_64/fpu/s_lrint.S: New file.
7213 * sysdeps/x86_64/fpu/s_lrintf.S: New file.
7214 * sysdeps/x86_64/fpu/s_lrintl.S: New file.
7216 2002-04-08 Roland McGrath <roland@frob.com>
7218 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
7219 widening __hurd_fail value.
7221 2002-04-07 Roland McGrath <roland@frob.com>
7223 * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
7224 <mach/machine/alpha_instruction.h>.
7225 (_hurd_setup_sighandler): Take proper arguments for current decls.
7226 Update code to use _hurdsig_catch_fault.
7227 Use `callsys' instruction instead of `call_pal'.
7228 * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
7230 * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
7231 (ALIGN, at, AT, fp): New macros.
7233 2002-04-06 Roland McGrath <roland@frob.com>
7235 * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
7237 * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
7238 (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
7240 * sysdeps/mach/hurd/bind.c: Use prototype definition.
7241 * sysdeps/mach/hurd/connect.c: Likewise.
7242 * sysdeps/mach/hurd/getsockopt.c: Likewise.
7243 * sysdeps/mach/hurd/setsockopt.c: Likewise.
7245 * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
7248 * hurd/catch-exc.c: Use integer_t instead of int.
7249 * hurd/hurdfault.c: Likewise.
7251 * sysdeps/mach/hurd/alpha/exc2signal.c
7252 (_hurd_exception2signal): Rewritten.
7253 * sysdeps/mach/hurd/alpha/longjmp-ts.c
7254 (_hurd_longjmp_thread_state): Rewritten.
7256 2002-04-07 Ulrich Drepper <drepper@redhat.com>
7258 * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
7259 DB_LOOKUP_FCT prototype.
7260 * nss/getXXent_r.c: Likewise.
7261 * inet/getaliasent_r.c: Define NSS_attribute_hidden.
7262 * inet/getaliasname_r.c: Likewise.
7263 * inet/getnetbyad_r.c: Likewise.
7264 * inet/getnetbynm_r.c: Likewise.
7265 * inet/getnetent_r.c: Likewise.
7266 * inet/getproto_r.c: Likewise.
7267 * inet/getprtent_r.c: Likewise.
7268 * inet/getprtname_r.c: Likewise.
7269 * inet/getrpcbyname_r.c: Likewise.
7270 * inet/getrpcbynumber_r.c: Likewise.
7271 * inet/getrpcent_r.c: Likewise.
7272 * inet/getservent_r.c: Likewise.
7273 * inet/getsrvbynm_r.c: Likewise.
7274 * inet/getsrvbypt_r.c: Likewise.
7275 * shadow/getspent_r.c: Likewise.
7276 * shadow/getspnam_r.c: Likewise.
7278 * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
7280 * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
7281 Use i686-friendly PIC code.
7282 * sysdeps/i386/elf/setjmp.S: Likewise.
7284 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
7286 * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
7288 * elf/Versions: Remove it here.
7290 2002-04-06 Ulrich Drepper <drepper@redhat.com>
7292 * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
7293 direction. Reported by H . J . Lu <hjl@lucon.org>.
7295 2002-04-05 Ulrich Drepper <drepper@redhat.com>
7297 * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
7298 test just before the test runs.
7299 * intl/tst-translit.sh: Likewise.
7300 * intl/tst-codeset.sh: Likewise.
7302 * timezone/zic.c: Update from tzcode2002c.
7303 * timezone/asia: Update from tzdata2002c.
7304 * timezone/backward: Likewise.
7305 * timezone/europe: Likewise.
7306 * timezone/northamerica: Likewise.
7307 * timezone/northamerica: Likewise.
7308 * timezone/northamerica: Likewise.
7309 * timezone/southamerica: Likewise.
7310 * timezone/zone.tab: Likewise.
7312 2002-03-23 Jakub Jelinek <jakub@redhat.com>
7314 * sysdeps/generic/brk.c (__curbrk): Declare.
7315 * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
7316 * sysdeps/generic/dl-sbrk.c: Likewise.
7317 * sysdeps/unix/arm/dl-brk.S: New file.
7318 * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
7319 * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
7320 * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
7321 * sysdeps/unix/bsd/vax/dl-brk.S: New file.
7322 * sysdeps/unix/i386/dl-brk.S: New file.
7323 * sysdeps/unix/mips/dl-brk.S: New file.
7324 * sysdeps/unix/sparc/dl-brk.S: New file.
7325 * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
7326 * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
7327 * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
7328 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
7330 2002-04-03 Andreas Schwab <schwab@suse.de>
7332 * Makefile (headers): Add gnu/lib-names.h here instead of
7334 ($(inst_includedir)/gnu/lib-names.h): Remove explicit
7336 (install-headers): Add dependency on install-headers-nosubdir.
7337 * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
7338 instead of install-others.
7339 ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
7342 2002-04-05 Ulrich Drepper <drepper@redhat.com>
7344 * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
7345 Reported by Sam Roberts <sroberts@uniserve.com>.
7347 2002-04-03 Jakub Jelinek <jakub@redhat.com>
7349 * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
7350 l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
7351 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7352 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7354 2002-04-03 David Mosberger <davidm@hpl.hp.com>
7356 * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
7357 (RTLD_START): Ditto.
7358 (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
7359 dependency violation.
7361 2002-04-05 Jakub Jelinek <jakub@redhat.com>
7363 * time/mktime.c (__mktime_internal): Move check for year < 70 below
7364 all variable declarations.
7366 2002-04-04 Andreas Schwab <schwab@suse.de>
7368 * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
7370 2002-04-04 Andreas Jaeger <aj@suse.de>
7372 * sysdeps/x86_64/fpu/e_sqrt.c: New file.
7373 * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
7375 * sysdeps/x86_64/fpu/s_fabs.c: New file.
7376 * sysdeps/x86_64/fpu/s_fabsf.c: New file.
7377 * sysdeps/x86_64/fpu/s_fabsl.c: New file.
7379 * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
7381 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
7383 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
7384 * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
7386 * configure.in: Handle all mips entries the same.
7388 * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
7389 * sysdeps/mips/mips3/*: Likewise.
7390 * sysdeps/mips/p40/bits/endian.h: Likewise.
7392 2002-04-04 Ulrich Drepper <drepper@redhat.com>
7394 * misc/dirname.c (dirname): Ignore trailing slashes at end of
7395 non-null result [PR libc/2600].
7397 * misc/tst-dirname.c: Add more tests.
7399 2002-04-03 Ulrich Drepper <drepper@redhat.com>
7401 * locale/programs/charmap.c (charmap_read): If the charmap doesn't
7402 define a code_set_name provide one based on the filename.
7404 * malloc/hooks.c: Define weak_variable correctly for _LIBC.
7406 2001-12-28 Andreas Jaeger <aj@suse.de>
7408 * time/mktime.c (__mktime_internal): Check for year < 70
7411 2002-04-03 Andreas Jaeger <aj@suse.de>
7413 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
7415 Reported by Andi Kleen <ak@suse.de>.
7417 2002-04-03 Ulrich Drepper <drepper@redhat.com>
7419 * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
7420 * sysdeps/generic/w_lgammaf.c: Likewise.
7421 * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
7423 * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
7424 Adjust for new output format of the backtrace functions.
7426 * misc/syslog.c (vsyslog): Only use cleanup handler if
7427 _LIBC_REENTRANT is defined [PR libc/2924].
7429 * libio/Makefile (tests): Add bug-ungetwc2.
7430 * libio/bug-ungetwc2.c: New file.
7432 * manual/install.texi: Typographical and grammatical cleanup.
7433 Patch by Dennis Grace <dgrace@us.ibm.com>.
7435 * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
7436 parameter if mtflag. Patch by <jeongyun@innovay.com>.
7438 * sunrpc/rpc_svcout.c (printif): Remove third parameter. It was
7439 always "&". Adjust callers.
7440 Add "_" prefix to several generated definitions.
7441 Patch by paul@serice.net [PR libc/3158].
7443 2002-04-02 Ulrich Drepper <drepper@redhat.com>
7445 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
7446 size of _dl_arm_cap_flags.
7447 Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
7449 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
7452 2002-03-22 H.J. Lu <hjl@gnu.org>
7454 * scripts/firstversions.awk: Check the first version.
7456 2002-04-02 Ulrich Drepper <drepper@redhat.com>
7458 * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
7459 dependencies must be stable to work correctly.
7460 Reported by martin.lubich@datacon.at.
7462 * libio/bug-ungetwc1.c: New file.
7463 * libio/Makefile (tests): Add bug-ungetwc1.
7465 * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
7466 if stream was last used for writing.
7468 * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
7469 number [PR libc/3111].
7471 * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
7473 * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
7475 2002-04-02 Jakub Jelinek <jakub@redhat.com>
7477 * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
7478 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
7479 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
7480 * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
7481 * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
7483 2002-03-30 Jakub Jelinek <jakub@redhat.com>
7485 * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
7488 2002-03-29 Jakub Jelinek <jakub@redhat.com>
7490 * sysdeps/i386/fpu/s_fabs.S: New file.
7491 * sysdeps/i386/fpu/s_fabsf.S: New file.
7492 * sysdeps/i386/fpu/s_fabsl.S: New file.
7493 * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
7494 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
7495 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
7497 2002-04-02 Ulrich Drepper <drepper@redhat.com>
7499 * rt/tst-shm.c (do_test): Add one more test for size of shared
7502 2002-03-29 Wolfram Gloger <wg@malloc.de>
7504 * malloc/malloc.c: Add short description and prototypes for
7505 malloc_get_state, malloc_set_state and posix_memalign, for
7506 consistency and to avoid warnings with -Wstrict-prototypes.
7507 Reported by Andreas Jaeger <aj@suse.de>.
7509 2002-04-02 Ulrich Drepper <drepper@redhat.com>
7511 * po/gl.po: Update from translation team.
7513 2002-03-31 Roland McGrath <roland@frob.com>
7515 * hurd/hurdselect.c (_hurd_select): Fix
7516 MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
7517 Use a union rather than casts to compare mach_msg_type_t as int.
7519 2002-03-25 Roland McGrath <roland@frob.com>
7521 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
7522 check off the end of NAME when it's shorter than 2 chars.
7523 Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
7525 2002-03-17 Roland McGrath <roland@frob.com>
7527 * sysdeps/mach/hurd/i386/sys/io.h: New file.
7528 * sysdeps/mach/hurd/i386/ioperm.c: New file.
7529 * sysdeps/mach/hurd/i386/Dist: Add them.
7530 * sysdeps/mach/hurd/i386/Versions
7531 (libc: GLIBC_2.2.6): New set, add ioperm.
7532 * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
7533 (mach_interface_list): Check for mach_i386.defs.
7534 * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
7535 * sysdeps/mach/configure: Regenerated.
7537 2002-03-22 Ulrich Drepper <drepper@redhat.com>
7539 * po/fr.po: Update from translation team.
7541 2002-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
7543 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
7544 getpriority from syscalls list.
7546 2002-03-28 Andreas Jaeger <aj@suse.de>
7548 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
7549 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
7550 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
7551 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
7553 2002-03-27 Andreas Jaeger <aj@suse.de>
7555 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7556 sigcontext): Follow further kernel change.
7558 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
7561 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
7562 Change for struct sigcontext change.
7564 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7565 Follow changes in struct sigcontext.
7567 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
7568 sysycall, use wrapper instead.
7570 2002-03-26 Andreas Jaeger <aj@suse.de>
7572 * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
7573 read and write accesses as detailed as possible.
7574 (__memcpy_by2): Likewise.
7575 (__memcpy_g): Likewise.
7576 (memmove): Likewise.
7578 (__memset_ccn_by4): Likewise.
7579 (__memset_ccn_by2): Likewise.
7580 (__memset_gcn_by4): Likewise.
7581 (__memset_gcn_by2): Likewise.
7583 (__memrchr): Likewise.
7584 (rawmemchr): Likewise.
7585 (__strlen_g): Likewise.
7586 (__strcpy_g): Likewise.
7587 (__mempcpy_by4): Likewise.
7588 (__mempcpy_by2): Likewise.
7589 (__mempcpy_byn): Likewise.
7590 (__stpcpy_g): Likewise.
7591 (__strncpy_by4): Likewise.
7592 (__strncpy_by2): Likewise.
7593 (__strncpy_byn): Likewise.
7594 (__strncpy_gg): Likewise.
7595 (__strcat_c): Likewise.
7596 (__strcat_g): Likewise.
7597 (__strncat_g): Likewise.
7598 (__strcmp_gg): Likewise.
7599 (__strncmp_g): Likewise.
7600 (__strchr_c): Likewise.
7601 (__strchr_g): Likewise.
7602 (__strchrnul_c): Likewise.
7603 (__strchrnul_g): Likewise.
7604 (__strrchr_c): Likewise.
7605 (__strrchr_g): Likewise.
7606 (__strrchr_c): Likewise.
7607 (__strrchr_g): Likewise.
7608 (__strcspn_c1): Likewise.
7609 (__strcspn_cg): Likewise.
7610 (__strcspn_g): Likewise.
7611 (__strcspn_g): Likewise.
7612 (__strspn_c1): Likewise.
7613 (__strspn_cg): Likewise.
7614 (__strspn_g): Likewise.
7615 (__strspn_g): Likewise.
7616 (__strpbrk_cg): Likewise.
7617 (__strpbrk_g): Likewise.
7618 (__strstr_cg): Likewise.
7619 (__strstr_g): Likewise.
7621 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo. Reported by
7622 Michal Ludvig <mludvig@suse.cz>.
7624 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
7625 compatibilty, adjust for kernel changes.
7627 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7628 sigcontext): Adjust for kernel changes.
7630 2002-03-25 Andreas Jaeger <aj@suse.de>
7632 * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
7634 Reported by Artur Zaprzala <zybi@talex.com.pl>.
7636 2002-03-24 Andreas Jaeger <aj@suse.de>
7638 * manual/memory.texi (Aligned Memory Blocks): Fix typo.
7640 * stdio-common/tst-fdopen.c (main): Remove unused variable.
7642 * iconv/tst-iconv3.c (main): Use correct printf strings.
7644 2002-03-18 Roland McGrath <roland@frob.com>
7646 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
7647 (CMGROUP_MAX): New macro.
7649 2002-03-23 Roland McGrath <roland@frob.com>
7651 * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
7652 * sysdeps/posix/shm_unlink.c: Likewise.
7654 2002-03-22 Roland McGrath <roland@frob.com>
7656 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
7657 * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
7658 under --enable-libio.
7659 * sysdeps/mach/hurd/configure: Regenerated.
7661 2002-03-23 Roland McGrath <roland@frob.com>
7663 * sysdeps/mach/hurd/i386/Makefile
7664 (sysdep_routines, shared-only-routines): Don't add framestate,
7665 reverting 2001-10-02 change.
7666 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
7667 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
7668 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
7669 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
7670 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
7671 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
7672 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
7673 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
7674 * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
7675 Do it here instead, only if [$(unwind-find-fde) = yes].
7677 2002-03-23 Andreas Jaeger <aj@suse.de>
7679 * signal/signal.h: Fix typo. Patch by Steve Kemp
7680 <skx@tardis.ed.ac.uk>.
7682 2002-03-22 Andreas Jaeger <aj@suse.de>
7684 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
7687 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7688 _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
7689 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7690 user_fpregs_struct): Rename fwd.
7692 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7693 Follow sigcontext changes.
7695 2002-03-22 Andreas Jaeger <aj@suse.de>
7697 * sysdeps/mips/bits/nan.h: New file. Copy from generic one with
7698 changes for NaNs on MIPS.
7699 Patch by Hartvig Ekner <hartvige@mips.com>.
7701 2002-03-21 Ulrich Drepper <drepper@redhat.com>
7703 * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
7704 Use realloc if too large.
7705 (addgrbyid): Likewise.
7706 * nscd/hstcache.c (addhstbyname): Likewise.
7707 (addhstbyaddr): Likewise.
7708 (addhstbynamev6): Likewise.
7709 (addhstbyaddrv6): Likewise.
7710 * nscd/pwdcache.c (addpwbyname): Likewise.
7711 (addpwbyuid): Likewise.
7713 2002-03-21 Andreas Jaeger <aj@suse.de>
7715 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7716 _fpstate): Add separate struct for x86-64.
7718 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7719 user_fpregs_struct): Change member names to follow kernel.
7721 2002-03-20 Ulrich Drepper <drepper@redhat.com>
7723 * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
7724 Correctly close the UDP connection right away [PR libc/3120].
7726 2002-03-20 Andreas Jaeger <aj@suse.de>
7728 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7729 user_fpregs_struct): Fix for changed kernel struct.
7730 (struct user_regs_struct): Likewise.
7731 (struct user): Likewise.
7732 Add 32-bit x86 compatibility.
7734 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
7736 2002-03-19 Andreas Jaeger <aj@suse.de>
7738 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
7740 2002-03-18 Andreas Jaeger <aj@suse.de>
7742 * iconvdata/Makefile: Only run tests when shared libs are
7745 2002-03-17 Andreas Jaeger <aj@suse.de>
7747 * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
7749 * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
7751 * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
7754 * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New macro.
7755 (CAUSE_SHIFT): New macro.
7756 Patch by Hartvig Ekner <hartvige@mips.com>.
7758 * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
7759 * sysdeps/generic/unwind-pe.h: Likewise.
7761 * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
7764 * libio/stdio.c (AL2): Define variant when visibility attribute is
7767 * include/libc-symbols.h (_INTVARDEF): Define variant when
7768 visibility attribute is not supported.
7770 2002-03-16 Ulrich Drepper <drepper@redhat.com>
7772 * po/fr.po: Update from translation team.
7774 2002-02-25 Bruno Haible <bruno@clisp.org>
7776 * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
7778 2002-03-15 Ulrich Drepper <drepper@redhat.com>
7780 * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
7781 buffers if _IO_file_attach failed.
7783 * libio/fileops.c (_IO_file_open): Close file descriptor if
7784 _IO_SEEKOFF call failed.
7786 2002-03-15 H.J. Lu <hjl@gnu.org>
7787 Ulrich Drepper <drepper@redhat.com>
7789 * configure.in: Check for availability of
7790 init_array/fini_array/preinit_array handling in binutils.
7791 * config.h.in (HAVE_INITFINI_ARRAY): New macro.
7792 * config.make.in (have-initfini-array): New variable.
7794 2002-03-15 Ulrich Drepper <drepper@redhat.com>
7796 * stdio-common/tst-printf.c (main): Comment out one test which
7797 checked the compiler's ability to fold floating-point constants
7798 but not really printf.
7799 (rfg3): Make s const.
7800 * stdio-common/tst-printf.sh: Adjust for removed test.
7802 * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
7803 internal function. Adjust for internal_function calling convention.
7804 * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
7805 as internal_function.
7807 * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
7810 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
7811 declaration and definition.
7812 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
7814 * nss/getXXent_r.c: Likewise.
7815 * nss/nsswitch.h (db_lookup_function): Add internal_function to
7818 * include/time.h: Declare __localtime_r as hidden.
7820 * include/aliases.h: Declare __getaliasent_r as hidden.
7821 * include/grp.h: Declare __getgrent_r as hidden.
7822 * include/netdb.h: Declare __gethostent_r, __getnetent_r,
7823 __getservent_r, and __getprotoent_r as hidden.
7824 * include/pwd.h: Declare __getpwent_r as hidden.
7825 * include/shadow.h: Declare __getspent_r as hidden.
7826 * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
7828 * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
7829 and __gconv_transliterate as hidden.
7830 Add internal_function to __gconv_get_path declaration.
7831 * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
7832 definition. Add attribute_hidden to __gconv_read_conf definition.
7834 2002-03-14 Ulrich Drepper <drepper@redhat.com>
7836 * elf/rtld.c: Declare _environ as hidden.
7837 * sysdeps/generic/dl-environ.c: Likewise.
7838 * sysdeps/generic/dl-sysdep.c: Likewise.
7840 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
7841 _dl_mcount_internal as hidden.
7843 * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
7844 * sysdeps/generic/dl-brk.c: New file.
7845 * sysdeps/generic/dl-sbrk.c: New file.
7846 * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
7847 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
7849 * elf/dl-minimal.c (malloc): Declare _end as hidden.
7850 (__errno_location): New function. Declare errno as hidden.
7851 * elf/rtld.c (_dl_argc): Define as hidden.
7852 (_dl_skip_args): Define as hidden.
7853 (_begin, _end): Declare as hidden.
7854 * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
7855 * sysdeps/generic/entry.h (_start): Declare as hidden.
7856 * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
7857 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
7858 _dl_runtime_resolve and _dl_runtime_profile as hidden.
7859 (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
7861 2002-03-14 Roland McGrath <roland@frob.com>
7863 * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
7865 * Makeconfig (%.v.i, %.v): New implicit rules.
7866 (preprocess-versions): Variable removed.
7867 ($(common-objpfx)shlib-versions.v.i): New target giving just the
7868 shlib-versions input files as dependencies.
7869 ($(common-objpfx)soversions.i): Depend on that instead of the input
7870 files. Use it as input instead of using a pipeline.
7871 (postclean-generated): Append soversions.i, shlib-versions.v, and
7872 shlib-versions.v.i here.
7873 * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
7874 the Versions.def input files as dependencies.
7875 ($(common-objpfx)Versions.v.i): Likewise for Versions files.
7876 ($(common-objpfx)Versions.all): Depend on that instead of the input
7877 files. Use it as input instead of using a pipeline.
7878 ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
7879 (postclean-generated): Append those .v and .v.i files here.
7881 2002-03-14 Jakub Jelinek <jakub@redhat.com>
7883 * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
7884 * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
7887 2002-03-14 Jakub Jelinek <jakub@redhat.com>
7889 * sysdeps/generic/mp_clz_tab.c: New file.
7890 * sysdeps/i386/mp_clz_tab.c: New file.
7891 * sysdeps/hppa/mp_clz_tab.c: New file.
7892 * sysdeps/powerpc/mp_clz_tab.c: New file.
7893 * stdlib/Makefile (aux): Revert last patch.
7894 * math/Makefile (gmp-objs): Likewise.
7896 2002-03-13 Paul Eggert <eggert@twinsun.com>
7898 * time/strftime.c: Comment fixes for references to obsolescent
7899 standards, In most cases the simplest fix is to remove the
7900 confusing comments. Cross-referencing all the standards properly
7901 is a bit of a pain, and it should be enough to put that info in
7902 the documentation as I did in my recent time.texi patch.
7904 2002-03-13 Paul Eggert <eggert@twinsun.com>
7906 * manual/time.texi (Formatting Calendar Time):
7907 ISO C99 also specifies the E and O modifiers.
7908 %P is a GNU extension, and is not in ISO C99.
7909 Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
7910 %T is also in ISO C99.
7911 The RFC 822 example is not valid in arbitrary locales.
7912 Reword the POSIX.2 wording slightly, to make it a bit clearer
7913 that POSIX.2 formats are also supported by later POSIX versions.
7914 If a format was introduced in ISO C99 it is also required by
7917 2002-03-13 Ulrich Drepper <drepper@redhat.com>
7919 * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
7920 _sys_nerr_internal with INTVARDEF2.
7921 * include/libc-symbols.h (INTVARDEF2): New macro.
7922 * include/stdio.h (_sys_errlist_internal): Declare as hidden.
7923 (_sys_nerr_internal): Library.
7925 * sysdeps/posix/signal.c (_sigintr): Define as hidden.
7926 * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
7928 * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
7930 2002-03-13 Wolfram Gloger <wg@malloc.de>
7932 * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
7934 2002-03-02 Andreas Schwab <schwab@suse.de>
7936 * stdio-common/vfprintf.c (process_arg): Fix decimal format with
7937 'h' flag and positional arg.
7938 * stdio-common/tst-printf.c (rfg3): New function to test
7939 positional arguments.
7940 (main): Fix some warnings.
7942 2002-03-13 Jakub Jelinek <jakub@redhat.com>
7944 * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
7945 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
7947 2002-03-13 Ulrich Drepper <drepper@redhat.com>
7949 * grp/initgroups.c (__nss_group_data): Declare as hidden.
7951 * include/locale.h (_nl_C_locobj): Declare as hidden.
7953 * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
7954 * time/strptime.c (_nl_C_LC_TIME): Likewise.
7956 * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
7958 * include/sys/gmon.h: Declare _gmonparam as hidden.
7960 * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
7961 (__ctype32_wctrans): Likewise.
7962 (__ctype32_width): Likewise.
7964 * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
7967 * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
7969 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Define as
7970 hidden. Change all users of these variables.
7972 * posix/regex_internal.h (__re_error_msgid): Renamed from
7973 re_error_msgid. Declare as hidden.
7974 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Declare as
7977 * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
7978 (__printf_function_table): Likewise.
7979 * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
7981 (__printf_function_table): Likewise.
7983 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
7984 __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
7986 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
7987 * nss/nsswitch.c: Declare _nss_*_database as hidden.
7989 * stdlib/wctomb.c (__no_r_state): Declare as hidden.
7990 * stdlib/mbtowc.c (__no_r_state): Define as hidden.
7992 2002-03-12 Ulrich Drepper <drepper@redhat.com>
7994 * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
7995 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
7996 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
7997 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
7998 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
7999 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
8000 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
8001 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
8002 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
8003 _nl_C_LC_CTYPE_width: Declare as hidden.
8004 * include/locale.h: Declare _nl_locale_file_list.
8005 * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
8006 * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
8007 * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
8008 * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
8009 * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
8010 * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
8011 * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
8012 * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
8013 * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
8014 * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
8015 * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
8016 * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
8017 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
8018 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
8019 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
8020 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
8021 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
8022 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
8023 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
8024 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
8025 _nl_C_LC_CTYPE_width, and as hidden.
8026 * locale/findlocale.c: Declare _nl_C as hidden.
8027 * locale/newlocale.c: Likewise.
8028 * locale/setlocale.c: Define _nl_C as hidden. Remove declaration of
8029 _nl_locale_file_list.
8030 * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
8031 _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
8032 Define _nl_C_locobj as hidden.
8034 * malloc/mtrace.c (_mtrace_file): Define as hidden.
8035 (_mtrace_line): Likewise.
8037 * include/time.h: Declare __mon_yday as hidden.
8038 * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
8040 * libio/libioP.h: Declare __libio_codecvt as hidden.
8041 * libio/fileops.c: Declare __libio_translit as hidden.
8042 * libio/iofwide.c: Define __libio_translit as hidden.
8044 * login/getutent_r.c: Define __libc_utmp_lock as hidden.
8045 * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
8046 * login/getutline_r.c: Likewise.
8047 * login/utmpname.c: Likewise.
8049 * login/utmp-private.h: Declare __libc_utmp_file_functions,
8050 __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
8051 __libc_utmp_file_name as hidden.
8053 * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
8054 * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
8055 * locale/freelocale.c: Likewise.
8056 * locale/lc-time.c: Likewise.
8058 * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
8059 (__libc_ptyname2): Likewise.
8060 * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
8062 (__libc_ptyname2): Likewise.
8064 * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
8065 * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
8066 * sysdeps/generic/init-first.c: Likewise.
8067 * sysdeps/i386/init-first.c: Likewise.
8068 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
8069 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8070 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8071 * sysdeps/sh/init-first.c: Likewise.
8072 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8073 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8075 * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
8076 (_itowa_upper_digits): Likewise.
8078 * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
8079 * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
8082 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
8083 _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
8084 _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
8085 _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
8087 * gmon/gmon.c (__bb_head): Define as hidden.
8088 * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
8090 * argp/argp-parse.c (_argp_hang): Define as static.
8092 * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
8093 handling in latest compilers.
8095 * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
8097 * libio/fileops.c (_IO_file_jumps): Likewise.
8098 * libio/stdfiles.c (_IO_list_all): Likewise.
8099 * libio/wfileops.c (_IO_wfile_jumps): Likewise.
8101 * malloc/malloc.h: Move __libc_malloc_initialized declaration to
8103 * include/malloc.h: Add __libc_malloc_initialized declaration
8104 here. Mark variable hidden.
8105 * malloc/malloc.c: Include <malloc.h> not "malloc.h".
8107 * elf/dl-open.c (__libc_argc): Declare as hidden.
8108 (__libc_argv): Likewise.
8109 * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
8110 (__libc_argv): Likewise.
8111 * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
8112 __libc_argv as hidden.
8113 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8114 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8115 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8116 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8118 * include/stdlib.h (__libc_drand48_data): Declare as hidden.
8119 * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
8120 * stdlib/erand48.c: Likewise.
8121 * stdlib/jrand48.c: Likewise.
8122 * stdlib/lcong48.c: Likewise.
8123 * stdlib/lrand48.c: Likewise.
8124 * stdlib/mrand48.c: Likewise.
8125 * stdlib/nrand48.c: Likewise.
8126 * stdlib/seed48.c: Likewise.
8127 * stdlib/srand48.c: Likewise.
8129 * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
8130 (_itoa_lower_digits_internal): New declaration.
8131 (_itoa_upper_digits_internal): New declaration.
8132 (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
8133 * stdio-common.h (_itoa_lower_digits_internal): New declaration.
8134 (_itoa_upper_digits_internal): New declaration.
8135 (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
8137 * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
8138 * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
8140 * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
8141 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
8143 * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
8144 (_itowa_lower_digits): Likewise.
8145 (_itowa_upper_digits): Likewise.
8146 * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
8147 (_itowa_upper_digits): Likewise.
8149 * intl/plural-exp.h (attribute_hidden): Define as empty macro if
8150 not already defined.
8151 (GERMANIC_PLURAL): Declare as hidden.
8153 * posix/getopt.c (__getopt_initialized): Declare as hidden.
8154 (attribute_hidden): Define as empty macro if not already defined.
8156 * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
8157 (__gconv_max_path_elem_len): Likewise.
8158 (__gconv_path_envvar): Likewise.
8160 * math/Makefile (gmp-objs): Remove mp_clz_tab.
8161 * stdlib/Makefile (aux): Remove mp_clz_tab.
8162 * stdlib/mp_clz_tab.c: Removed. Not needed anywhere.
8164 * stdlib/exit.h (__exit_funcs): Declare as hidden.
8166 * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
8168 * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
8169 _nl_category_names, _nl_category_name_sizes, _nl_current,
8170 _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
8172 * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
8173 (_nl_current_default_domain): Likewise
8174 (_nl_state_lock): Likewise.
8175 * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
8176 (_nl_current_default_domain): Likewise
8177 (_nl_state_lock): Likewise.
8178 * intl/bindtextdom.c (_nl_state_lock): Likewise.
8180 * stdlib/fpioconst.h (__tens): Add attribute_hidden.
8181 (_fpioconst_pow10): Likewise.
8183 * include/time.h (_tmbuf): Add attribute_hidden.
8185 * time/tzset.c (tzstring_list): Define as static.
8187 * include/time.h: Add attribute_hidden to __tzname_cur_max and
8188 __use_tzfile declaration.
8190 * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
8191 and __wcsmbs_last_locale declaration.
8193 2002-02-25 Paul Eggert <eggert@twinsun.com>
8195 * timezone/Makefile (tzbases): Move systemv from here...
8196 (tzlinks): to here, since the entries in systemv were all changed
8197 from Zone to Link lines in tz-2001a. Bug reported (and patch
8198 tested) by Peter Breitenlohner.
8200 2002-03-07 Jakub Jelinek <jakub@redhat.com>
8202 * time/tst-posixtz.c (tests): Add new tests.
8203 (main): Test whether tzset() sets daylight properly.
8205 2002-03-06 Jakub Jelinek <jakub@redhat.com>
8207 * time/tzset.c (tz_compute): Move __daylight, __tzname and
8208 __tzname_cur_max setting...
8209 (tzset_internal): ...here.
8211 2002-03-06 Jakub Jelinek <jakub@redhat.com>
8213 * time/tzset.c (compute_change): Don't return any value.
8214 (tz_compute): Likewise. Don't handle southern hemisphere here.
8215 (__tz_convert): But here.
8217 2002-03-11 Ulrich Drepper <drepper@redhat.com>
8219 * manual/examples/mkfsock.c: Include <string.h> as well.
8220 Patch by Alain De Carolis <alaind@wseurope.com>.
8222 2002-03-06 Isamu Hasegawa <isamu@yamato.ibm.com>
8224 * posix/regexec.c (re_match): Fix incorrect register sizes.
8225 (re_search): Likewise.
8227 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
8229 * posix/regcomp.c (regfree): Remove a disused condition.
8230 * posix/regex_internal.c (re_acquire_state): Likewise.
8231 (re_acquire_state_context): Likewise.
8232 (register_state): Remove a redundant malloc invocation.
8233 * posix/regex_internal.h: (re_state_table_entry): Simplify
8236 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
8238 * posix/regcomp.c (regcomp): Add __builtin_expect to error
8239 handling conditions.
8240 (regerror): Likewise.
8241 (regfree): Likewise.
8242 (re_compile_internal): Likewise.
8243 (init_dfa): Likewise.
8244 (init_word_char): Likewise.
8245 (create_initial_state): Likewise.
8246 (analyze): Likewise.
8247 (analyze_tree): Likewise.
8248 (duplicate_node): Likewise.
8249 (calc_eclosure): Likewise.
8250 (calc_eclosure_iter): Likewise.
8252 (parse_reg_exp): Likewise.
8253 (parse_branch): Likewise.
8254 (parse_expression): Likewise.
8255 (parse_subexp): Likewise.
8256 (parse_dup_op): Likewise.
8257 (parse_bracket_exp): Likewise.
8258 (build_equiv_class): Likewise.
8259 (build_charclass): Likewise.
8260 (build_word_op): Likewise.
8261 (fetch_number): Likewise.
8262 (create_tree): Likewise.
8263 (duplicate_tree): Likewise.
8264 * posix/regex.c (BE): New macro.
8265 * posix/regexec.c (re_match): Add __builtin_expect to error
8266 handling conditions.
8267 (re_match_2): Likewise.
8268 (re_search): Likewise.
8269 (re_search_internal): Likewise.
8270 (check_matching): Likewise.
8271 (proceed_next_node): Likewise.
8272 (set_regs): Likewise.
8273 (sift_states_backward): Likewise.
8274 (add_epsilon_backreference): Likewise.
8275 (transit_state): Likewise.
8276 (transit_state_sb): Likewise.
8277 (transit_state_mb): Likewise.
8278 (transit_state_bkref): Likewise.
8279 (transit_state_bkref_loop): Likewise.
8280 (build_trtable): Likewise.
8281 (group_nodes_into_DFAstates): Likewise.
8282 (match_ctx_init): Likewise.
8283 (match_ctx_add_entry): Likewise.
8284 * posix/regex_internal.c (re_string_construct): Add __builtin_expect
8285 to error handling conditions.
8286 (re_string_construct_toupper): Likewise.
8287 (build_wcs_buffer): Likewise.
8288 (build_wcs_upper_buffer): Likewise.
8289 (build_upper_buffer): Likewise.
8290 (re_string_translate_buffer): Likewise.
8291 (re_node_set_alloc): Likewise.
8292 (re_node_set_init_1): Likewise.
8293 (re_node_set_init_2): Likewise.
8294 (re_node_set_init_copy): Likewise.
8295 (re_node_set_intersect): Likewise.
8296 (re_node_set_init_union): Likewise.
8297 (re_node_set_merge): Likewise.
8298 (re_node_set_insert): Likewise.
8299 (re_dfa_add_node): Likewise.
8300 (re_acquire_state): Likewise.
8301 (re_acquire_state_context): Likewise.
8302 (create_new_state_common): Likewise.
8303 (register_state): Likewise.
8304 (create_ci_new_state): Likewise.
8305 (create_cd_new_state): Likewise.
8306 (re_string_context_at): Remove redundant condition.
8308 2002-01-16 Roger Sayle <roger@eyesopen.com>
8310 * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
8312 * sysdeps/i386/i586/strlen.S: Fix typo in comment.
8314 2002-03-11 Jakub Jelinek <jakub@redhat.com>
8316 * sysdeps/i386/elf/configure.in: Fix comment.
8318 * sysdeps/sparc/sparc64/configure.in: New file.
8319 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
8320 if .dynamic comes before .got.
8321 * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
8323 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
8324 HP_TIMING_ACCUM): Fix typos.
8326 2002-03-11 Ulrich Drepper <drepper@redhat.com>
8328 * string/strfry.c: Add some more randomness to the seed.
8329 Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
8331 * po/es.po: Update from translation team.
8332 * po/fr.po: Likewise.
8334 * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
8336 * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
8337 when determining type of format.
8338 Patch by James Antill <james@anqd.org> [PR libc/2787].
8340 2002-03-04 Jakub Jelinek <jakub@redhat.com>
8342 * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
8344 2002-03-11 Roland McGrath <roland@frob.com>
8346 * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
8348 * Versions.def (libc): Add GLIBC_2.2.6.
8349 * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
8350 * sysdeps/mach/hurd/errnos.awk: In generated macro, use
8351 __errno_location instead of __hurd_errno_location, and don't inline it.
8352 * sysdeps/mach/hurd/bits/errno.h: Regenerated.
8353 * hurd/errno.c: New file.
8354 * hurd/Makefile (routines): Add errno.
8356 2002-03-11 Ulrich Drepper <drepper@redhat.com>
8358 * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
8359 ridiculously large widths and precisions [PR libc/3026].
8361 2002-03-11 Andreas Jaeger <aj@suse.de>
8363 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
8365 Patch by Susanne Oberhauser <froh@SuSE.de>.
8367 2002-03-11 Ulrich Drepper <drepper@redhat.com>
8369 * inet/rexec.c (ahostbuf): Define as static.
8371 * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
8372 (__ctype32_wctrans): Likewise.
8373 * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
8374 * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
8375 (__ctype32_wctrans): Likewise.
8376 (__ctype32_width): Likewise.
8378 * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
8379 They were never exported anyway.
8381 * gmon/gmon.c (_gmonparam): Add attribute_hidden.
8382 * gmon/sys/gmon.h: Remove declaration of _gmonparam. It wasn't
8384 * include/sys/gmon.h: Declare _gmonparam.
8386 * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
8387 symbols for getdents64. They were never exported.
8389 2002-03-09 Roland McGrath <roland@frob.com>
8391 * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
8392 Reported by Jon Arney <jarney1@cox.net>.
8394 2002-02-23 Roland McGrath <roland@frob.com>
8396 * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
8398 (__hurd_errno_location): Function removed.
8400 2002-03-06 Andreas Jaeger <aj@suse.de>
8402 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
8405 2002-03-04 Andreas Jaeger <aj@suse.de>
8407 * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New file.
8409 * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
8412 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New file.
8414 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New file.
8416 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New file.
8418 * sysdeps/x86_64/bits/setjmp.h: New file.
8420 * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New file.
8422 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New file.
8424 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
8426 * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
8427 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
8429 2002-02-28 Bo Thorsen <bo@suse.de>
8431 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
8434 2002-03-03 Andreas Jaeger <aj@suse.de>
8436 * sysdeps/x86_64/bits/wordsize.h: New file.
8438 * elf/nodlopenmod2.c: Provide prototype to avoid warning.
8439 * elf/tst-tlsmod1.c: Likewise.
8441 * posix/regcomp.c: Get regex.h from include dir for internal
8444 * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
8445 to libc-internal.h and include it.
8446 * include/libc-internal.h: Add __init_misc.
8448 * misc/init-misc.c: Include libc-internal.h for prototypes.
8450 * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
8452 * misc/error.c [_LIBC]: Include libioP.h for prototype of
8455 2002-03-03 Ulrich Drepper <drepper@redhat.com>
8457 * posix/regcomp.c: Compatibility changes to allow using the code
8460 2002-02-28 Hartvig Ekner <hartvige@mips.com>
8462 * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
8465 2002-03-02 Ulrich Drepper <drepper@redhat.com>
8467 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
8468 of .str elements in the returned data structure.
8470 * elf/elf.h: Add Alpha TLS bits.
8472 2002-02-28 Jakub Jelinek <jakub@redhat.com>
8474 * sysdeps/unix/sysv/linux/nice.c: New file.
8476 2002-03-01 Ulrich Drepper <drepper@redhat.com>
8478 * elf/Makefile (dl-routines): Add dl-origin.
8479 (elide-routines.os): Add dl-origin.
8480 * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
8481 * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
8483 * include/libc-symbols.c: Define attribute_hidden depending on
8484 HAVE_VISIBILITY_ATTRIBUTE. Add definition of INTVARDEF.
8486 * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
8487 * elf/dl-load.c: Likewise.
8488 * elf/rtld.c: Likewise.
8489 * include/unistd.h: Declare __libc_enable_secure_internal.
8490 * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
8491 Use INTUSE with __libc_enable_secure.
8492 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
8494 * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
8495 * elf/dl-error.c: Likewise,
8496 * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
8498 * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
8499 * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
8500 function definition. Use INTDEF with _dl_get_origin.
8501 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
8503 * elf/dl-init.c: Use INTUSE with _dl_starting_up.
8504 * elf/rtld.c: Likewise. Use INTVARDEF for _dl_starting_up.
8506 * elf/dl-profile.c: Use INTDEF for _dl_mcount.
8507 * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
8508 * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
8510 * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
8511 * elf/dl-deps.c: Likewise.
8512 * elf/dl-error.c: Likewise.
8513 * elf/dl-fini.c: Likewise.
8514 * elf/dl-init.c: Likewise.
8515 * elf/dl-load.c: Likewise.
8516 * elf/dl-lookup.c: Likewise.
8517 * elf/dl-reloc.c: Likewise.
8518 * elf/dl-version.c: Likewise.
8519 * elf/do-lookup.h: Likewise.
8520 * sysdeps/arm/dl-machine.h: Likewise.
8521 * sysdeps/cris/dl-machine.h: Likewise.
8522 * sysdeps/hppa/dl-machine.h: Likewise.
8523 * sysdeps/i386/dl-machine.h: Likewise.
8524 * sysdeps/m68k/dl-machine.h: Likewise.
8525 * sysdeps/powerpc/dl-machine.h: Likewise.
8526 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8527 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8528 * sysdeps/sh/dl-machine.h: Likewise.
8529 * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
8530 * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
8531 * sysdeps/x86_64/dl-machine.h: Likewise.
8532 * elf/rtld.c: Use INTDEF for _dl_argv. Use rtld_progrname instead of
8533 _dl_argv[0]. Use INTUSE with _dl_argv.
8534 * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
8535 * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
8537 2002-02-28 Jakub Jelinek <jakub@redhat.com>
8539 * elf/rtld.c (_rtld_global): Remove .protected.
8540 (_rtld_local): Strong alias to _rtld_global.
8541 * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
8543 * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
8544 _rtld_local instead of _rtld_global.
8545 (_rtld_local): Add hidden extern, possibly in .sdata section.
8546 * configure.in: Add tests for visibility attribute and .sdata.
8547 * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
8548 * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
8549 * sysdeps/arm/dl-machine.h: Likewise.
8550 * sysdeps/generic/ldsodefs.h: Likewise.
8551 * sysdeps/hppa/dl-machine.h: Likewise.
8552 * sysdeps/cris/dl-machine.h: Likewise.
8553 * sysdeps/i386/dl-machine.h: Likewise.
8554 * sysdeps/ia64/dl-machine.h: Likewise.
8555 * sysdeps/m68k/dl-machine.h: Likewise.
8556 * sysdeps/mips/mips64/dl-machine.h: Likewise.
8557 * sysdeps/mips/dl-machine.h: Likewise.
8558 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8559 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8560 * sysdeps/sh/dl-machine.h: Likewise.
8561 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8562 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8563 * sysdeps/x86_64/dl-machine.h: Likewise.
8565 2002-02-28 Ulrich Drepper <drepper@redhat.com>
8567 * login/login.c (login): Always initialize ut_line field
8570 2002-02-28 Jakub Jelinek <jakub@redhat.com>
8572 * sysdeps/i386/Makefile (sysdep_routines): Add
8574 (shared-only-routines): Likewise.
8575 * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
8576 (shared-only-routines): Likewise.
8577 * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
8578 (shared-only-routines): Likewise.
8579 * sysdeps/wordsize-32/divdi3.c: New file.
8581 2002-02-28 Ulrich Drepper <drepper@redhat.com>
8583 * locale/iso-4217.def: Remove obsolete currencies for countries
8586 2002-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
8588 * posix/regcomp.c (regcomp): Remove a redundant condition.
8589 (init_word_char): Add a check on malloc failure.
8590 (create_initial_state): Likewise.
8591 (duplicate_node): Likewise.
8592 (calc_eclosure): Likewise.
8593 (calc_eclosure_iter): Likewise.
8594 (parse_expression): Likewise.
8595 (parse_bracket_exp): Remove unnecessary malloc invocations.
8596 (build_equiv_class): Likewise.
8597 (build_charclass): Likewise.
8598 * posix/regex_internal.c (re_node_set_intersect): Add a check
8600 (re_node_set_add_intersect): Likewise.
8601 (re_node_set_merge): Likewise.
8602 (re_acquire_state): Likewise.
8603 (re_acquire_state_context): Likewise.
8604 (create_newstate_common): Likewise.
8605 (register_state): Likewise.
8606 (create_ci_newstate): Likewise.
8607 (create_cd_newstate): Likewise.
8608 * posix/regex_internal.h: Fix prototypes of re_acquire_state
8609 and re_acquire_state_context.
8610 * posix/regexec.c (regexec): Suit it to the error handling of
8612 (re_match): Likewise.
8613 (re_search): Likewise.
8614 (re_search_internal): Add a check on malloc failure.
8615 (acquire_init_state_context): Likewise.
8616 (check_matching): Likewise.
8617 (proceed_next_node): Likewise.
8618 (set_regs): Likewise.
8619 (sift_states_backward): Likewise.
8620 (sift_states_iter_bkref): Likewise.
8621 (add_epsilon_backreference): Likewise.
8622 (transit_state): Likewise.
8623 (transit_state_sb): Likewise.
8624 (transit_state_mb): Likewise.
8625 (transit_state_bkref_loop): Likewise.
8626 (build_trtable): Likewise.
8627 (group_nodes_into_DFAstates): Likewise.
8628 (match_ctx_init): Likewise.
8629 (match_ctx_add_entry): Likewise.
8631 2002-02-27 Ulrich Drepper <drepper@redhat.com>
8633 * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
8634 l_libname if profiling is enabled [PR libc/2916].
8636 * sysdeps/ia64/dl-tls.h: New file.
8638 2002-02-27 Jakub Jelinek <jakub@redhat.com>
8640 * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
8641 Work around an Alpha gas bug.
8643 2002-02-27 Ulrich Drepper <drepper@redhat.com>
8645 * catgets/open_catalog.c (__open_catalog): Fix typo in code which
8646 uses read to load the catalog.
8647 Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
8649 2002-02-26 Ulrich Drepper <drepper@redhat.com>
8651 * posix/Makefile (distribute): Add regcomp.c, regexec.c,
8652 regex_internal.c, and regex_internal.h.
8653 (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
8654 * posix/regex.c: Complete rewrite.
8655 * posix/regexec.c: New file.
8656 * posix/regcomp.c: New file.
8657 * posix/regex_internal.c: New file.
8658 * posix/regex_internal.h: New file.
8659 * posix/regex.h (RE_ICASE): New macro.
8660 Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
8662 * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
8663 ungetwc. It's a macro.
8664 * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
8666 Reported by Jason Merrill <jason@redhat.com>.
8668 2002-02-25 Jakub Jelinek <jakub@redhat.com>
8670 * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
8671 position to fp->_offset if it is set.
8672 * stdio-common/Makefile (tests): Add tst-fdopen.
8673 * stdio-common/tst-fdopen.c: New test.
8675 2002-02-25 Jakub Jelinek <jakub@redhat.com>
8677 * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
8678 * stdio-common/tst-ungetc.c (main): Add another test.
8680 2002-02-25 Ulrich Drepper <drepper@redhat.com>
8682 * assert/assert-perr.c: Use INTUSE to reference functions and variables
8683 inside libc itself. Use INTDEF and INTDEF2 to define appropriate
8684 aliases. Add prototypes for the new aliases.
8685 * assert/assert.c: Likewise.
8686 * include/libc-symbols.h: Likewise.
8687 * include/stdio.h: Likewise.
8688 * include/netinet/in.h: Likewise.
8689 * include/rpc/auth.h: Likewise.
8690 * include/rpc/auth_unix.h: Likewise.
8691 * include/rpc/key_prot.h: Likewise.
8692 * include/rpc/pmap_prot.h: Likewise.
8693 * include/rpc/pmap_rmt.h: Likewise.
8694 * include/rpc/rpc_msg.h: Likewise.
8695 * include/rpc/xdr.h: Likewise.
8696 * inet/gethstbyad_r.c: Likewise.
8697 * inet/gethstbynm2_r.c: Likewise.
8698 * inet/gethstbynm_r.c: Likewise.
8699 * inet/gethstent_r.c: Likewise.
8700 * inet/in6_addr.c: Likewise.
8701 * libio/__fpurge.c: Likewise.
8702 * libio/filedoalloc.c: Likewise.
8703 * libio/fileops.c: Likewise.
8704 * libio/ftello.c: Likewise.
8705 * libio/ftello64.c: Likewise.
8706 * libio/genops.c: Likewise.
8707 * libio/iofclose.c: Likewise.
8708 * libio/iofdopen.c: Likewise.
8709 * libio/iofflush.c: Likewise.
8710 * libio/iofflush_u.c: Likewise.
8711 * libio/iofgetpos.c: Likewise.
8712 * libio/iofgetpos64.c: Likewise.
8713 * libio/iofgets.c: Likewise.
8714 * libio/iofgets_u.c: Likewise.
8715 * libio/iofopen.c: Likewise.
8716 * libio/iofopncook.c: Likewise.
8717 * libio/iofputs.c: Likewise.
8718 * libio/iofread.c: Likewise.
8719 * libio/iofread_u.c: Likewise.
8720 * libio/iofsetpos.c: Likewise.
8721 * libio/iofsetpos64.c: Likewise.
8722 * libio/ioftell.c: Likewise.
8723 * libio/iofwrite.c: Likewise.
8724 * libio/iogetline.c: Likewise.
8725 * libio/iogets.c: Likewise.
8726 * libio/iogetwline.c: Likewise.
8727 * libio/iolibio.h: Likewise.
8728 * libio/iopadn.c: Likewise.
8729 * libio/iopopen.c: Likewise.
8730 * libio/ioseekoff.c: Likewise.
8731 * libio/ioseekpos.c: Likewise.
8732 * libio/iosetbuffer.c: Likewise.
8733 * libio/iosetvbuf.c: Likewise.
8734 * libio/ioungetc.c: Likewise.
8735 * libio/ioungetwc.c: Likewise.
8736 * libio/iovdprintf.c: Likewise.
8737 * libio/iovsprintf.c: Likewise.
8738 * libio/iovsscanf.c: Likewise.
8739 * libio/libioP.h: Likewise.
8740 * libio/memstream.c: Likewise.
8741 * libio/obprintf.c: Likewise.
8742 * libio/oldfileops.c: Likewise.
8743 * libio/oldiofclose.c: Likewise.
8744 * libio/oldiofdopen.c: Likewise.
8745 * libio/oldiofgetpos.c: Likewise.
8746 * libio/oldiofgetpos64.c: Likewise.
8747 * libio/oldiofopen.c: Likewise.
8748 * libio/oldiofsetpos.c: Likewise.
8749 * libio/oldiofsetpos64.c: Likewise.
8750 * libio/oldiopopen.c: Likewise.
8751 * libio/oldstdfiles.c: Likewise.
8752 * libio/putc.c: Likewise.
8753 * libio/setbuf.c: Likewise.
8754 * libio/setlinebuf.c: Likewise.
8755 * libio/stdfiles.c: Likewise.
8756 * libio/stdio.c: Likewise.
8757 * libio/strops.c: Likewise.
8758 * libio/vasprintf.c: Likewise.
8759 * libio/vscanf.c: Likewise.
8760 * libio/vsnprintf.c: Likewise.
8761 * libio/vswprintf.c: Likewise.
8762 * libio/wfiledoalloc.c: Likewise.
8763 * libio/wfileops.c: Likewise.
8764 * libio/wgenops.c: Likewise.
8765 * libio/wstrops.c: Likewise.
8766 * malloc/mtrace.c: Likewise.
8767 * misc/error.c: Likewise.
8768 * misc/syslog.c: Likewise.
8769 * nss/getXXbyYY_r.c: Likewise.
8770 * nss/getXXent_r.c: Likewise.
8771 * nss/hosts-lookup.c: Likewise.
8772 * stdio-common/getw.c
8773 * stdio-common/printf-prs.c: Likewise.
8774 * stdio-common/printf_fp.c: Likewise.
8775 * stdio-common/printf_size.c: Likewise.
8776 * stdio-common/putw.c: Likewise.
8777 * stdio-common/scanf.c: Likewise.
8778 * stdio-common/sprintf.c: Likewise.
8779 * stdio-common/tmpfile64.c: Likewise.
8780 * stdio-common/vfprintf.c: Likewise.
8781 * stdio-common/vfscanf.c: Likewise.
8782 * stdlib/strfmon.c: Likewise.
8783 * sunrpc/auth_des.c: Likewise.
8784 * sunrpc/auth_none.c: Likewise.
8785 * sunrpc/auth_unix.c: Likewise.
8786 * sunrpc/authdes_prot.c: Likewise.
8787 * sunrpc/authuxprot.c: Likewise.
8788 * sunrpc/clnt_perr.c: Likewise.
8789 * sunrpc/clnt_raw.c: Likewise.
8790 * sunrpc/clnt_tcp.c: Likewise.
8791 * sunrpc/clnt_udp.c: Likewise.
8792 * sunrpc/clnt_unix.c: Likewise.
8793 * sunrpc/key_call.c: Likewise.
8794 * sunrpc/key_prot.c: Likewise.
8795 * sunrpc/openchild.c: Likewise.
8796 * sunrpc/pm_getmaps.c: Likewise.
8797 * sunrpc/pm_getport.c: Likewise.
8798 * sunrpc/pmap_clnt.c: Likewise.
8799 * sunrpc/pmap_prot.c: Likewise.
8800 * sunrpc/pmap_prot2.c: Likewise.
8801 * sunrpc/pmap_rmt.c: Likewise.
8802 * sunrpc/rpc_cmsg.c: Likewise.
8803 * sunrpc/rpc_prot.c: Likewise.
8804 * sunrpc/svc_authux.c: Likewise.
8805 * sunrpc/svc_raw.c: Likewise.
8806 * sunrpc/svc_simple.c: Likewise.
8807 * sunrpc/svc_tcp.c: Likewise.
8808 * sunrpc/svc_udp.c: Likewise.
8809 * sunrpc/svc_unix.c: Likewise.
8810 * sunrpc/xdr.c: Likewise.
8811 * sunrpc/xdr_array.c: Likewise.
8812 * sunrpc/xdr_mem.c: Likewise.
8813 * sunrpc/xdr_rec.c: Likewise.
8814 * sunrpc/xdr_ref.c: Likewise.
8815 * sunrpc/xdr_stdio.c: Likewise.
8816 * sysdeps/generic/_strerror.c: Likewise.
8817 * sysdeps/generic/printf_fphex.c: Likewise.
8818 * sysdeps/generic/tmpfile.c: Likewise.
8819 * sysdeps/gnu/errlist.awk: Likewise.
8820 * sysdeps/gnu/errlist.c: Likewise.
8822 * libio/Makefile (routines): Remove iosprint.
8823 * libio/iosprintf.c: Removed
8826 2002-02-24 Ulrich Drepper <drepper@redhat.com>
8828 * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
8829 non_dynamic_init and exported now.
8830 * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
8831 * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
8833 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
8834 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8835 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8837 2002-02-23 Ulrich Drepper <drepper@redhat.com>
8839 * elf/dl-close.c (free_slotinfo): Check for end of list and return
8842 * locale/iso-639.def: Add language codes for Walloon.
8844 * elf/dl-fini.c (_dl_fini): Print some final statistics on the
8845 total number of relocations performed.
8847 * elf/sprof.c (load_profdata): If do_test provide information as
8848 to why loading failed.
8849 * elf/dl-profile.c (_dl_start_profile): Initialize all of
8852 * csu/set-init.c: Moved to...
8853 * sysdeps/mach/hurd/set-init.c: ...here. New file.
8854 * csu/Makefile: Don't compile set-init.
8855 * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
8856 * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
8858 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8859 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8860 * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
8862 * misc/init-misc.c: Always export __init_misc. Don't define hooks for
8865 2002-02-22 Ulrich Drepper <drepper@redhat.com>
8867 * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
8868 * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
8869 * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
8870 (_dl_deallocate_tls): New function.
8871 * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
8874 2002-02-21 Jakub Jelinek <jakub@redhat.com>
8876 * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
8877 * stdio-common/tst-fseek.c (main): Add test for this.
8879 2002-02-19 Ulrich Drepper <drepper@redhat.com.>
8881 * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
8883 2002-02-19 Jakub Jelinek <jakub@redhat.com>
8885 * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
8886 pointer before dereferencing.
8888 2002-02-18 Roland McGrath <roland@frob.com>
8890 * sysdeps/mach/hurd/times.c: Fix typo in last change.
8892 * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
8893 Use task_policy in place of task_priority.
8895 * sysdeps/generic/bits/mman.h
8896 (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
8897 * sysdeps/mach/msync.c: New file.
8899 * sysdeps/mach/powerpc/syscall.S: New file.
8901 * mach/msg.c [MACH_MSG_OVERWRITE]
8902 (__mach_msg_trap, __mach_msg_overwrite): New functions.
8903 * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
8905 * sysdeps/mach/configure.in: Check for clock.defs to put into
8906 mach_interface_list.
8907 * sysdeps/mach/configure: Regenerated.
8909 * mach/Makefile (mach-machine): New variable, set from $(base-machine).
8910 ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
8911 ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
8912 Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
8913 (mach-shortcuts): Add device_read_overwrite_request,
8914 device_read_overwrite, vm_read_overwrite, thread_switch.
8916 * configure.in (base_machine): Set to $machine by default.
8917 * configure: Regenerated.
8919 * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
8920 or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
8921 * sysdeps/mach/configure: Regenerated.
8922 * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
8924 * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
8926 * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
8928 * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
8929 Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
8931 2002-02-17 Roland McGrath <roland@frob.com>
8933 * sysdeps/mach/hurd/times.c
8934 [NO_CREATION_TIME] (startup_time): New static variable.
8935 [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
8936 (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
8937 creation_time from task_basic_info.
8938 (__times): Use __gettimeofday instead of __host_get_time.
8940 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
8941 Use untyped Mach IPC message format.
8943 * hurd/catch-exc.c: Include <assert.h>, missing from last change.
8945 * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
8946 _S_catch_exception_raise_state_identity,
8947 _hurdsig_fault_catch_exception_raise_state,
8948 _hurdsig_fault_catch_exception_raise_state_identity.
8950 * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
8952 * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
8953 __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
8955 * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
8956 `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
8958 * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
8959 (fmh, unfmh): Define these functions only #if FMH. Otherwise define
8960 them as no-op macros.
8961 [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
8962 (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
8964 * sysdeps/powerpc/dl-machine.h
8965 (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
8967 * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
8968 Use untyped Mach IPC message format.
8970 * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
8971 Handle untyped Mach IPC message formats.
8973 * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
8974 Expect different argument conventions when this is defined.
8975 [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
8976 [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
8977 * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
8978 [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
8979 for OSF Mach variant.
8980 (faulted): Use mig_reply_error_t for REPLY.
8981 (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
8982 in __thread_set_exception_ports call.
8983 (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
8984 __mach_port_set_attributes in place of __mach_port_set_qlimit.
8986 * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
8987 before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
8988 on Darwin, which includes bogons.
8990 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
8991 variable LOADBASE so it's not declared when it's not used.
8993 2002-02-16 Roland McGrath <roland@frob.com>
8995 * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
8996 to use BI.creation_time.
8998 * mach/Machrules (MIG): Add -x c to CPP value passed down.
9000 * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
9001 * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
9002 * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
9003 host_page_size instead of vm_statistics.
9005 * sysdeps/mach/Makefile (mach-before-compile): Don't include
9006 mach_interface.h here, since not all variants use that name.
9008 * sysdeps/mach/configure.in: Add some checks for Mach headers
9009 to ensure a sane installation.
9010 (mach_interface_list): Define this variable by checking for .defs
9011 files found in various variants.
9012 * configure.in (mach_interface_list): AC_SUBST this.
9013 * config.make.in (mach-interface-list): New substituted variable.
9014 * mach/Makefile (user-interfaces): Define this using the value
9015 of $(mach-interface-list) instead of mach, mach4.
9016 Updated other references to mach_interface to use it as well.
9018 * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
9020 * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
9021 mig_reply_error_t for OSF Mach variant.
9023 * mach/Makefile (routines): Remove bootprivport.
9024 * mach/bootprivport.c: File removed. It has never been used.
9026 * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
9027 Grok the OSF flavor of message format.
9028 (mach_msg_destroy_port): For MAKE_SEND and
9029 MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
9030 no-senders notification.
9032 2002-02-06 Roland McGrath <roland@frob.com>
9034 * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
9035 to here if 2.0 compatibility enabled ...
9036 (libc: GLIBC_2.1.3): ... from here.
9038 2002-02-15 Ulrich Drepper <drepper@redhat.com>
9040 * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
9042 * elf/dl-close.c (_dl_close): Likewise.
9044 2002-02-14 Ulrich Drepper <drepper@redhat.com>
9046 * elf/Makefile: Add rules to build and run tst-tls8.
9047 * elf/tst-tls8.c: New file.
9048 * elf/tst-tlsmod4.c: New file.
9050 * stdlib/test-a64l.c (tests): Add more test cases.
9052 * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
9053 Reported by Walter Harms <WHarms@bfs.de>.
9055 2002-02-11 Jes Sorensen <jes@trained-monkey.org>
9057 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
9058 definitions for struct sigcontext.
9059 Suggested by David Mosberger-Tang.
9061 2002-02-13 Ulrich Drepper <drepper@redhat.com>
9063 * elf/dl-close.c (remove_slotinfo): New function. Handles everything
9064 for removing reference of module in slotinfo list.
9065 (_dl_close): Use remove_slotinfo.
9066 * sysdeps/generic/dl-tls.c: General pretty printing.
9067 (oom): Define only if SHARED.
9068 (_dl_next_tls_modid): Correct starting point for the case we assume
9069 there is a gap. Add missing instruction grouping (doh!). Correct
9070 tests for reaching maximum index.
9071 * elf/Makefile: Add rules to build and run tst-tls7.
9072 * elf/tst-tls7.c: New file.
9073 * elf/tst-tlsmod3.c: New file.
9075 * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
9077 * elf/tst-tlsmod2.c: Likewise.
9079 * elf/dl-close.c (_dl_close): When closing an object using TLS
9080 either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
9081 true. Increment dl_tls_generation only if we closed any TLS-using
9083 * elf/tst-tls6.c: New file.
9084 * elf/Makefile: Add rules to build and run tst-tls6.
9086 * po/da.po: Update from translation team.
9088 * locale/categories.def: Fix typo [PR libc/2948].
9089 * po/Makefile (BROKEN_LINGUAS): Works with current gettext
9091 * locale/iso-4217.def: Update from official version [PR libc/2950].
9092 * glibcbug.in: Honor TMPDIR [PR libc/2951].
9093 * locale/programs/ld-collate.c (collate_finish): Bail out with a
9094 message if input is too confusion instead of using assert.
9095 (collate_read): Don't crash on unknown symbol [PR libc/2952].
9096 Patches by Alastair McKinstry <alastair@pdd.3com.com>.
9098 * elf/tst-tls1.c: Move #include "tls-macros.h" inside #ifdef USE_TLS.
9099 * elf/tst-tls2.c: Likewise.
9100 * elf/tst-tls3.c: Likewise.
9102 2002-02-13 Jakub Jelinek <jakub@redhat.com>
9104 * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
9106 2002-02-13 Ulrich Drepper <drepper@redhat.com>
9108 * elf/dl-open.c (dl_open_worker): Only bump the generation counter
9109 if this is really necessary.
9111 * elf/dl-close.c (_dl_close): Implement freeing entries in the
9113 (free_mem): Free memory for the slotinfo array if possible.
9115 2002-02-12 Andreas Schwab <schwab@suse.de>
9117 * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
9119 2002-02-12 Ulrich Drepper <drepper@redhat.com>
9121 * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
9123 (oom): New function.
9124 (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
9125 (_dl_determine_tlsoffset): Likewise.
9126 (_dl_allocate_tls): Likewise.
9127 (__TLS_GET_ADDR): Define if not already defined.
9128 (_dl_tls_symaddr): New function.
9129 (allocate_and_init): New function.
9130 (__tls_get_addr): Actually implement handling of generation counter
9131 and deferred allocation.
9132 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
9133 add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9135 Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
9136 Declare _dl_tls_symaddr.
9137 * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
9139 * include/link.h (struct link_map): Remove l_tls_nextimage and
9141 * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
9142 instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
9143 (_dl_vsym): Likewise.
9144 * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
9146 (dl_main): Allow PT_TLS be present for empty segment. Remove
9147 nextimage list handling. Instead add all modules using TLS to
9148 dl_tls_dtv_slotinfo_list.
9149 * elf/dl-open.c (dl_open_worker): After successfully loading all
9150 objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
9151 * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
9152 empty segment don't do anything. Remove handling of initimage list.
9153 * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
9154 (GLIBC_PRIVATE): Add _dl_tls_symaddr.
9155 * elf/dl-minimal.c: Define __libc_memalign.
9156 * elf/dl-support.c: Remove _dl_initimage_list. Add
9157 _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9159 * include/stdlib.h: Declare __libc_memalign.
9161 * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
9162 * elf/tst-tls4.c: New file.
9163 * elf/tst-tls5.c: New file.
9164 * elf/tst-tlsmod2.c: New file.
9166 * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
9168 * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
9170 * elf/tst-tls1.c: Use test-skeleton.c.
9171 * elf/tst-tls2.c: Likewise.
9172 * elf/tst-tls3.c: Likewise.
9174 * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
9176 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
9178 * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
9180 2002-02-10 Ulrich Drepper <drepper@redhat.com>
9182 * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
9184 * elf/tst-tls3.c: New file.
9185 * elf/tst-tlsmod1.c: New file.
9186 * elf/Makefile: Add rules to build and run tst-tls3.
9188 * sysdeps/i386/dl-machine.h: Include <tls.h>.
9189 (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
9192 * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
9194 * po/fr.po: Update from translation team.
9196 * elf/tls-macros.h: Add alternative macros for use in PIC.
9198 * elf/dl-lookup.c: Include <tls.h>.
9199 * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
9201 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
9202 required by passing pointer to last element of the list.
9204 * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
9205 l_tls_initimage to a place where it actually is performed.
9207 * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
9208 after globfree() calls.
9210 * elf/dl-deps.c (struct openaux_args): Add open_mode element.
9211 (openaux): Pass open_mode as new last argument to _dl_map_object.
9212 (_dl_map_object_deps): Add new argument open_mode. Initialize
9213 open_mode element of args variable with it.
9214 * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
9215 _dl_map_object_deps.
9216 * elf/rtld.c (dl_main): Add zero as last parameter to
9217 _dl_map_object_deps call.
9218 * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
9219 * elf/nodlopen2.c: New file.
9220 * elf/nodlopenmod2.c: New file.
9221 * elf/Makefile: Add rules to build and run nodlopen2.
9223 * elf/tst-tls1.c: Move TLS helper macros to...
9224 * elf/tls-macros.h: ...here. New file.
9225 * elf/tst-tls2.c: New file.
9226 * elf/Makefile (tests): Add tst-tls2.
9227 (distribute): Add tls-macros.h.
9229 * po/sv.po: Update from translation team.
9231 * elf/tst-tls1.c (main): Add complete set of tests. Split
9232 architecture specific definitions from the actual test code.
9234 * po/tr.po: Update from translation team.
9236 2002-02-09 Ulrich Drepper <drepper@redhat.com>
9238 * elf/Makefile (tests): Add tst-tls1.
9239 * elf/tst-tls1.c: New file.
9241 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
9242 alignment of TCB for now.
9244 * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
9245 initialization image for the application itself.
9247 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
9248 loop to initialize TLS block.
9250 2002-02-08 Richard Henderson <rth@redhat.com>
9252 * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
9253 _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
9255 * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
9257 2002-02-09 Jakub Jelinek <jakub@redhat.com>
9259 * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
9261 2002-02-08 Ulrich Drepper <drepper@redhat.com>
9263 * po/ca.po: Update from translation team.
9264 * po/sk.po: Likewise.
9266 * elf/rtld.c (_dl_start_final): Install DTV explicitly.
9267 (dl_main): Move dtv/static TLS handling before relocation.
9268 Unconditionally call _dl_tlsoffset. Call _dl_allocate_tls and
9269 TLS_INIT_TP to allocate and install the dtv/static TLS block.
9270 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
9271 so far uses TLS initialize GL(dl_tls_static_size) and
9272 GL(dl_tls_static_align) to account for the TCB.
9273 (_dl_allocate_tls): New function.
9274 * sysdeps/generic/ldsodefs.h (rtld_global): Add
9275 _dl_initial_dtv_malloced.
9277 * configure.in: Test for __builtin_memset more realistically.
9279 * csu/version.c (banner): If TLS support is available say so.
9281 2002-02-04 H.J. Lu <hjl@gnu.org>
9283 * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
9285 (__dl_runtime_resolve): Likewise.
9287 * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
9290 2001-11-15 H.J. Lu <hjl@gnu.org>
9292 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
9293 <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
9295 * sysdeps/unix/sysv/linux/mips/sys/user.h: New file.
9297 2002-02-07 H.J. Lu <hjl@gnu.org>
9299 * sysdeps/mips/atomicity.h (compare_and_swap): Remove
9301 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
9304 2002-02-07 Ulrich Drepper <drepper@redhat.com>
9306 * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
9308 * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
9309 ___tls_get_addr_internal.
9310 (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
9312 * po/ko.po: Update from translation team.
9314 2002-02-07 Jakub Jelinek <jakub@redhat.com>
9316 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
9317 attribute, change __pad{1,2} type to unsigned int.
9318 (struct stat64): Remove packed attribute.
9320 2002-02-07 Ulrich Drepper <drepper@redhat.com>
9322 * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
9324 2002-02-07 Andreas Schwab <schwab@suse.de>
9326 * configure.in: Fix check for -zcombreloc.
9328 2002-02-06 H.J. Lu <hjl@gnu.org>
9330 * config.h.in (HAVE_BUILTIN_MEMSET): New macro.
9331 * configure.in: Check if __builtin_memset really works.
9332 * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
9333 __GNUC_PREREQ (2, 96) before using __builtin_memset.
9335 2002-02-06 Jakub Jelinek <jakub@redhat.com>
9337 * io/bug-ftw3.c (main): Don't try the test if root.
9339 2002-02-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
9341 * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
9343 * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
9344 Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
9345 * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
9347 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
9348 a weak alias for __clone.
9349 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
9350 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
9351 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
9352 * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
9353 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
9354 a weak alias for __mmap64.
9356 2002-02-05 H.J. Lu <hjl@gnu.org>
9358 * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
9359 (atomic_add): Likewise.
9360 (compare_and_swap): Likewise.
9361 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
9363 2002-02-07 Ulrich Drepper <drepper@redhat.com>
9365 * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
9367 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
9368 alignment of the TCB and store total size and alignment of static
9369 TLS block in _dl_tls_static_size and _dl_tls_static_align.
9370 tls_index is a typedef.
9371 * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
9372 _dl_tls_static_align.
9373 * sysdeps/i386/dl-tls.h: tls_index is a typedef.
9374 * elf/dl-support.c: Define _dl_tls_static_size and
9375 _dl_tls_static_align.
9377 2002-02-06 Ulrich Drepper <drepper@redhat.com>
9379 * configure.in: Add --without-tls option.
9380 * sysdeps/i386/elf/configure.in: Don't check for TLS support if
9381 --without-tls is given.
9383 * sysdeps/generic/dl-tls.c: Include <tls.h>.
9385 * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
9387 2002-02-06 Roland McGrath <roland@frob.com>
9389 * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
9390 * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
9392 * scripts/versions.awk: Improve error message for missing version.
9393 Each version inherits from the last one only if they have the same
9394 nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
9395 but not GLIBC_x and FOO_y.
9397 * scripts/firstversions.awk: Handle libraries that don't have each
9398 particular version named in the third column of shlib-versions.
9400 * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
9402 2002-02-06 Ulrich Drepper <drepper@redhat.com>
9404 * Versions.def [ld]: Add GLIBC_2.3.
9405 * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
9406 * elf/Makefile (dl-routines): Add dl-tls.
9407 (distribute): Add dl-tls.h.
9408 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9409 _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9410 Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
9411 * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
9412 along with the other info in the link map. Change queueing of init
9413 images for double linked list. Use _dl_next_tls_modid to compute
9415 * elf/rtld.c (_dl_start_final): Store alignment requirement
9416 along with the other info in rtld map and executable map.
9417 (dl_main): Add ld.so to the init image list if necessary. Compute
9418 final module ID with _dl_next_tls_modid.
9419 * include/link.h (struct link_map): Add l_tls_previmage and
9421 * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9422 * sysdeps/i386/elf/Versions: New file.
9423 * sysdeps/generic/dl-tls.c: New file.
9424 * sysdeps/generic/dl-tls.h: New file.
9425 * sysdeps/i386/dl-tls.h: New file.
9427 2002-02-06 Roland McGrath <roland@frob.com>
9429 * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
9430 * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
9432 2002-01-05 Roland McGrath <roland@frob.com>
9434 * sysdeps/mach/configure.in: New file.
9435 * sysdeps/mach/configure: New generated file.
9437 * mach/Makefile (user-interfaces): Remove default_pager_helper.
9438 It has never been used by anything.
9440 2002-02-06 H.J. Lu <hjl@gnu.org>
9442 * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
9445 2002-02-06 Ulrich Drepper <drepper@redhat.com>
9447 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
9448 attribute((packed)) to counter stupid people misusing gcc options.
9449 (struct stat64): Likewise.
9451 2002-02-05 Ulrich Drepper <drepper@redhat.com>
9453 * elf/rtld.c (dl_main): Correct indentation. Use bool as type for
9454 the variables which are used as booleans.
9456 2002-02-06 Andreas Jaeger <aj@suse.de>
9458 * include/libc-symbols.h (INTUSE): Renamed from INT.
9459 * elf/dl-deps.c: Change users.
9460 * sysdeps/generic/dl-sysdep.c: Likewise.
9461 * sysdeps/generic/dl-cache.c: Likewise.
9462 * elf/dl-reloc.c: Likewise.
9463 * elf/rtld.c: Likewise.
9464 * elf/dl-version.c: Likewise.
9465 * elf/dl-load.c: Likewise.
9466 * elf/dl-dst.h: Likewise.
9467 * elf/dl-init.c: Likewise.
9468 * elf/dl-error.c: Likewise.
9469 * elf/dl-fini.c: Likewise.
9470 * elf/dl-runtime.c: Likewise.
9471 * elf/do-lookup.h: Likewise.
9473 * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
9475 * stdio-common/_itowa.h: Likewise.
9477 2002-02-05 Ulrich Drepper <drepper@redhat.com>
9479 * elf/dl-minimal.c: Define _itoa_lower_digits.
9481 * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
9484 * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
9485 loading modules with the DF_STATIC_TLS flag set.
9486 * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
9488 * include/link.h (struct link_map): Add l_flags field.
9489 * elf/elf.h (DF_STATIC_TLS): New definition.
9491 * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
9492 * dlfcn/bug-dlopen1.c: New file. By Bruno Haible.
9494 * elf/rtld.c (process_dl_debug): Correct printing help message.
9495 * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
9498 * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
9499 definition and pass &errno in use of this variable.
9500 Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
9502 2002-02-04 Andreas Schwab <schwab@suse.de>
9504 * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
9505 * locale/programs/charmap-dir.c: Wrap calls that output messages
9506 with WITH_CUR_LOCALE. Include "localedef.h" first.
9507 * locale/programs/charmap.c: Likewise.
9508 * locale/programs/ld-address.c: Likewise.
9509 * locale/programs/ld-collate.c: Likewise.
9510 * locale/programs/ld-ctype.c: Likewise.
9511 * locale/programs/ld-identification.c: Likewise.
9512 * locale/programs/ld-measurement.c: Likewise.
9513 * locale/programs/ld-messages.c: Likewise.
9514 * locale/programs/ld-monetary.c: Likewise.
9515 * locale/programs/ld-name.c: Likewise.
9516 * locale/programs/ld-numeric.c: Likewise.
9517 * locale/programs/ld-paper.c: Likewise.
9518 * locale/programs/ld-telephone.c: Likewise.
9519 * locale/programs/ld-time.c: Likewise.
9520 * locale/programs/linereader.c: Likewise.
9521 * locale/programs/linereader.h: Likewise.
9522 * locale/programs/localedef.c: Likewise.
9523 * locale/programs/locfile.c: Likewise.
9524 * locale/programs/repertoire.c: Likewise.
9526 2002-02-05 Ulrich Drepper <drepper@redhat.com>
9528 * elf/rtld.c (_dl_start_final): Determine load address to locate
9529 ehdr with GL(dl_rtld_map).l_map_start.
9531 * po/ca.po: Update from translation team.
9533 * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
9534 * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
9536 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
9538 * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
9540 2002-02-04 Ulrich Drepper <drepper@redhat.com>
9542 * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
9543 * include/link.h (struct link_map): Add various members for TLS
9545 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9546 _rtld_tlsoffset, add _dl_initimage_list.
9547 * sysdeps/i386/dl-lookupcfg.h: New file.
9548 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
9549 TLS relocation. When using TLS we now use RESOLVE_MAP.
9550 (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
9553 * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
9556 * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
9557 thread-pointer as soon as possible.
9558 * sysdeps/generic/ldsodefs.h: Include <tls.h>. Define first TLS
9559 elements in rtld_global.
9560 * sysdeps/generic/tls.h: New file.
9561 * elf/Makefile (distribute): Add tls.h.
9562 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
9563 relocations. Not complete yet.
9565 * resolv/resolv.h: Allow user to define __need_res_state and only
9566 define __res_start structure then.
9567 * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
9569 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
9570 dl_cpuclock_offset initialization to _dl_start_final.
9571 (_dl_show_auxv): Avoid unnecessary sign extension.
9572 * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
9574 2002-02-03 Ulrich Drepper <drepper@redhat.com>
9576 * config.h.in: Add HAVE_TLS_SUPPORT.
9577 * sysdeps/i386/elf/configure.in: New file.
9579 2002-02-03 Andreas Schwab <schwab@suse.de>
9581 * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
9582 * sysdeps/posix/writev.c: Use ssize_t for bytes_written. Fix comment.
9584 2002-02-03 Thorsten Kukuk <kukuk@suse.de>
9586 * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
9587 alloca if the memory reqirements are too high.
9589 2002-02-03 Ulrich Drepper <drepper@redhat.com>
9591 * elf/dl-load.c (decompose_rpath): Avoid using strstr.
9592 * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
9593 the former is available anyway and speed isn't important here.
9594 * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
9595 * elf/dl-version.c (match_symbol): Likewise.
9596 (_dl_check_map_versions): Likewise.
9597 * elf/rtld.c (process_envvars): Likewise.
9598 (print_statistics): Likewise.
9599 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
9600 * elf/dl-minimal.c (_itoa): Always define it. Make it work for all
9601 bases. Add assert to catch uses of unimplemented features.
9602 (__strsep): Add assert to catch uses of unimplemented features.
9603 * elf/dl-object.c (_dl_new_object): Don't use rawmemchr. Use strchr
9604 and avoid inline optimization.
9605 * elf/rtld.c (process_envvars): Likewise.
9606 * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
9607 * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
9608 * elf/rtld.c (dl_main): Avoid strsep inline optimization.
9610 2002-02-02 Ulrich Drepper <drepper@redhat.com>
9612 * stdio-common/_itoa.h: Minor simplifications of the code.
9613 * stdio-common/_itoa.c: Likewise.
9615 * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
9616 instead of _dl_printf for debugging info output.
9618 * manual/examples/mkfsock.c (make_named_socket): Make sure name is
9619 always NUL-terminated. Patch by Chris D. Sloan <cds@cs.hmc.edu>.
9621 2002-02-01 H.J. Lu <hjl@gnu.org>
9623 * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
9624 (atomic_add): Likewise.
9625 (compare_and_swap): Return 0 only when failed to compare. Use
9628 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
9631 2002-02-03 kaz Kojima <kkojima@rr.iij4u.or.jp>
9633 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
9635 2002-02-02 Ulrich Drepper <drepper@redhat.com>
9637 * elf/dl-minimal.c (__strsep): New minimal implementation.
9639 2002-02-02 Paul Eggert <eggert@twinsun.com>
9641 * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
9642 (__mktime_internal): If no tm_isdst is requested, prefer solutions
9643 with tm_isdst > 0 when the requested time falls within a
9644 spring-forward gap [PR libc/2894].
9646 2002-02-03 Andreas Schwab <schwab@suse.de>
9648 * stdio-common/tst-rndseek.c: Increase timeout.
9650 2002-02-02 Ulrich Drepper <drepper@redhat.com>
9652 Change ld.so to not use functions which are exported. One cannot
9653 interpose them anyway. Use INT() to mark uses, INTDEF() to mark
9655 * include/libc-symbols.h: Define INT and INTDEF.
9656 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
9657 _dl_signal_error_internal, _dl_map_object_internal,
9658 _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
9659 _dl_lookup_versioned_symbol_internal,
9660 _dl_relocate_object_internal, _dl_debug_state_internal,
9661 _dl_start_profile_internal, and _dl_unload_cache_internal.
9662 * include/dlfcn.h: Declare _dl_catch_error_internal.
9663 * elf/rtld.c: Use INT for calls to any of the *_internal functions
9664 above. Add INTDEF to function definitions.
9665 * elf/dl-debug.c: Likewise.
9666 * elf/dl-deps.c: Likewise.
9667 * elf/dl-dst.h: Likewise.
9668 * elf/dl-error.c: Likewise.
9669 * elf/dl-fini.c: Likewise.
9670 * elf/dl-init.c: Likewise.
9671 * elf/dl-load.c: Likewise.
9672 * elf/dl-lookup.c: Likewise.
9673 * elf/dl-misc.c: Likewise.
9674 * elf/dl-open.c: Likewise.
9675 * elf/dl-profile.c: Likewise.
9676 * elf/dl-reloc.c: Likewise.
9677 * elf/dl-runtime.c: Likewise.
9678 * elf/dl-version.c: Likewise.
9679 * elf/do-lookup.h: Likewise.
9680 * sysdeps/generic/dl-cache.c: Likewise.
9681 * sysdeps/generic/dl-sysdep.c: Likewise.
9682 * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
9683 instead of _dl_init.
9684 * sysdeps/arm/dl-machine.h: Likewise.
9685 * sysdeps/cris/dl-machine.h: Likewise.
9686 * sysdeps/hppa/dl-machine.h: Likewise.
9687 * sysdeps/i386/dl-machine.h: Likewise.
9688 * sysdeps/ia64/dl-machine.h: Likewise.
9689 * sysdeps/m68k/dl-machine.h: Likewise.
9690 * sysdeps/mips/dl-machine.h: Likewise.
9691 * sysdeps/mips/mips64/dl-machine.h: Likewise.
9692 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9693 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9694 * sysdeps/sh/dl-machine.h: Likewise.
9695 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9696 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9697 * sysdeps/x86_64/dl-machine.h: Likewise.
9698 * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
9700 * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
9701 and _dl_debug_initialize.
9703 * elf/dl-object.c (_dl_new_object): Avoid using strrchr. We have
9705 * elf/rtld.c (dl_main): Avoid strrchr.
9706 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
9707 result of readlink. Search from the back for '/'.
9709 * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
9710 strncpy if possible.
9712 * sysdeps/generic/dl-environ.c (unsetenv): Optimize. Don't use
9714 * elf/dl-load.c (is_dst): Optimize. Don't call strncmp twice.
9715 * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
9716 strspn, and strcspn.
9717 (process_envvars): Don't use strcspn.
9719 * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
9720 (_dl_dst_substitute): Likewise.
9722 2002-02-01 Ulrich Drepper <drepper@redhat.com>
9724 * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
9725 code which is never used when relocating ld.so itself.
9727 * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
9728 starting ld.so itself. Move l_addr variable initialization closer
9730 (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
9732 2002-02-01 Jakub Jelinek <jakub@redhat.com>
9734 * Versions.def (libc): Add GLIBC_PRIVATE.
9735 (libdb, libnss_db, libdb1): Remove.
9736 (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
9737 libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
9738 (libpthread): Add GLIBC_PRIVATE.
9739 (libresolv): Likewise, remove GLIBC_2.1.
9740 (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
9741 GLIBC_2.2.3, GLIBC_2.3.
9742 * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
9743 * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
9744 _dl_sym, _dl_vsym): Likewise.
9745 (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
9746 _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
9747 _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
9748 _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
9749 _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
9750 _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
9751 _dl_relocate_object, _dl_signal_error, _dl_start_profile,
9752 _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
9754 (_dl_object_relocation_scope): Remove.
9755 * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
9756 * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
9757 __gconv_cache): Move to GLIBC_PRIVATE.
9758 * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
9759 __internal_setnetgrent): Likewise.
9760 * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
9761 __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
9762 * locale/Versions (__collate_element_hash, __collate_element_strings,
9763 __collate_symbol_classes, __collate_symbol_hash,
9764 __collate_symbol_strings, _nl_current_LC_COLLATE,
9765 _nl_current_LC_CTYPE): Likewise.
9766 * misc/Versions (__libc_fsync, __libc_msync): Likewise.
9767 * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
9768 (libnss_nis, libnss_nisplus): Likewise.
9769 * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
9770 _nss_files_parse_spent): Move to GLIBC_PRIVATE.
9771 (libnss_files): Move all symbols to GLIBC_PRIVATE.
9772 * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
9773 __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
9774 __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
9775 * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
9776 __ns_get16, __ns_samename): Likewise.
9777 (libnss_dns): Move all symbols to GLIBC_PRIVATE.
9778 * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
9780 * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
9781 __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
9782 __libc_connect): Likewise.
9783 * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
9785 * stdlib/Versions (__libc_system): Likewise.
9786 * sunrpc/Versions (__rpc_thread_destroy): Likewise.
9787 * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
9788 * sysdeps/ia64/fpu/Versions: Likewise.
9789 * sysdeps/ia64/Versions: Likewise.
9790 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
9791 * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
9793 * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
9794 * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
9795 __libc_sigaction): Likewise.
9796 * termios/Versions (__libc_tcdrain): Likewise.
9798 * misc/sys/cdefs (__attribute_noinline__): Define.
9799 * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
9800 __attribute_noinline__.
9802 * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
9803 * elf/dl-xstat64.c: New file.
9804 * elf/dl-fxstat64.c: New file.
9805 * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
9806 don't export __fxstat64 at multiple versions.
9807 * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
9808 * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
9810 2002-01-18 Isamu Hasegawa <isamu@yamato.ibm.com>
9812 * locale/program/ld-collate.c (collate_finish): Assign a wide
9813 char collation sequence value to multi character collating
9814 elements, and avoid over writing by non-character elements.
9816 2002-02-01 Ulrich Drepper <drepper@redhat.com>
9818 * elf/Makefile (distribute): Add dl-procinfo.c.
9819 * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
9820 * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
9822 2002-02-01 Jakub Jelinek <jakub@redhat.com>
9824 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
9826 * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
9827 _rtld_global struct.
9828 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
9829 * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
9830 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9831 * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
9832 * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
9833 _dl_fpu_control_set): Remove unused externs.
9834 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
9835 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
9836 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
9837 related variables in _rtld_global struct.
9838 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
9839 * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
9842 2002-02-01 Ulrich Drepper <drepper@redhat.com>
9844 * sysdeps/generic/dl-procinfo.c: New file.
9846 2002-02-01 Andreas Schwab <schwab@suse.de>
9848 * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
9850 2002-02-01 Ulrich Drepper <drepper@redhat.com>
9852 * elf/rtld.c (_dl_start): Mark as internal_function.
9853 * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
9855 (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
9856 General pretty printing.
9858 2002-01-31 Ulrich Drepper <drepper@redhat.com>
9860 * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
9861 * elf/dl-reloc.c: Pretty printing.
9862 * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
9863 procinfo-related variables in rtld_global struct.
9864 * elf/dl-support.c: Likewise.
9865 * elf/rtld.c: Likewise.
9866 * sysdeps/i386/i686/Makefile: Likewise.
9867 * sysdeps/i386/i686/hp-timing.c: Likewise.
9868 * sysdeps/i386/i686/hp-timing.h: Likewise.
9869 * sysdeps/ia64/Makefile: Likewise.
9870 * sysdeps/ia64/hp-timing.c: Likewise.
9871 * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
9872 * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
9873 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
9874 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
9875 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
9876 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
9877 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
9878 * sysdeps/x86_64/Makefile: Likewise.
9880 * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
9881 _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
9882 _dl_debug_fd to rtld_global.
9883 * elf/Versions: Likewise.
9884 * elf/dl-close.c: Likewise.
9885 * elf/dl-iteratephdr.c: Likewise.
9886 * elf/dl-lookup.c: Likewise.
9887 * elf/dl-misc.c: Likewise.
9888 * elf/dl-open.c: Likewise.
9889 * elf/dl-support.c: Likewise.
9890 * elf/do-lookup.h: Likewise.
9891 * elf/rtld.c: Likewise.
9892 * sysdeps/generic/dl-cache.c: Likewise.
9893 * sysdeps/generic/dl-sysdep.c: Likewise.
9894 * sysdeps/ia64/Versions: Likewise.
9895 * sysdeps/unix/clock_gettime.c: Likewise.
9896 * sysdeps/unix/clock_settime.c: Likewise.
9897 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
9898 * sysdeps/sparc/Versions: Removed.
9899 * sysdeps/i386/i686/Versions : Removed.
9900 * sysdeps/x86_64/Versions: Removed.
9901 * configure.in: Define HAVE_PROTECTED if .protected is available.
9902 * config.h.in: Add entry for HAVE_PROTECTED.
9904 2002-01-31 Jakub Jelinek <jakub@redhat.com.
9906 * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
9907 code in struct _rtld_global. Export this struct, remove all
9908 exports for the signal variables.
9909 * sysdeps/arm/dl-machine: Likewise.
9910 * sysdeps/generic/dl-origin: Likewise.
9911 * sysdeps/generic/dl-sysdep: Likewise.
9912 * sysdeps/generic/dl-cache: Likewise.
9913 * sysdeps/hppa/dl-fptr: Likewise.
9914 * sysdeps/hppa/dl-machine: Likewise.
9915 * sysdeps/cris/dl-machine: Likewise.
9916 * sysdeps/i386/dl-machine: Likewise.
9917 * sysdeps/ia64/dl-machine: Likewise.
9918 * sysdeps/m68k/dl-machine: Likewise.
9919 * sysdeps/mach/hurd/dl-sysdep: Likewise.
9920 * sysdeps/mips/mips64/dl-machine: Likewise.
9921 * sysdeps/mips/dl-machine: Likewise.
9922 * sysdeps/powerpc/elf/libc-start: Likewise.
9923 * sysdeps/powerpc/dl-machine: Likewise.
9924 * sysdeps/powerpc/dl-start: Likewise.
9925 * sysdeps/sparc/sparc32/dl-machine: Likewise.
9926 * sysdeps/sparc/sparc64/dl-machine: Likewise.
9927 * sysdeps/sh/dl-machine: Likewise.
9928 * sysdeps/s390/s390-32/dl-machine: Likewise.
9929 * sysdeps/s390/s390-64/dl-machine: Likewise.
9930 * sysdeps/unix/sysv/aix/libc-start: Likewise.
9931 * sysdeps/unix/sysv/aix/start-libc: Likewise.
9932 * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
9933 * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
9934 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
9935 * sysdeps/x86_64/dl-machine: Likewise.
9937 2002-01-31 Ulrich Drepper <drepper@redhat.com>
9939 * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
9942 2002-01-31 Andreas Schwab <schwab@suse.de>
9944 * sysdeps/posix/readv.c: Check for ssize_t overflow.
9946 2002-01-31 Andreas Schwab <schwab@suse.de>
9948 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
9949 reference to _dl_pagesize.
9951 2002-01-30 Ulrich Drepper <drepper@redhat.com>
9953 * Versions.def [ld]: Add GLIBC_2.3.
9954 * elf/dl-addr.c: Move global variables for SHARED code in struct
9955 _rtld_global. Export this struct, remove all exports for the
9957 * elf/dl-close.c: Likewise.
9958 * elf/dl-conflict.c: Likewise.
9959 * elf/dl-debug.c: Likewise.
9960 * elf/dl-deps.c: Likewise.
9961 * elf/dl-dst.h: Likewise.
9962 * elf/dl-error.c: Likewise.
9963 * elf/dl-fini.c: Likewise.
9964 * elf/dl-init.c: Likewise.
9965 * elf/dl-iteratephdr.c: Likewise.
9966 * elf/dl-libc.c: Likewise.
9967 * elf/dl-load.c: Likewise.
9968 * elf/dl-lookup.c: Likewise.
9969 * elf/dl-minimal.c: Likewise.
9970 * elf/dl-object.c: Likewise.
9971 * elf/dl-open.c: Likewise.
9972 * elf/dl-profile.c: Likewise.
9973 * elf/dl-profstub.c: Likewise.
9974 * elf/dl-reloc.c: Likewise.
9975 * elf/dl-runtime.c: Likewise.
9976 * elf/dl-support.c: Likewise.
9977 * elf/dl-sym.c: Likewise.
9978 * elf/dl-version.c: Likewise.
9979 * elf/do-lookup.h: Likewise.
9980 * elf/do-rel.h: Likewise.
9981 * elf/dynamic-link.h: Likewise.
9982 * elf/rtld.c: Likewise.
9983 * sysdeps/generic/dl-cache.c: Likewise.
9984 * sysdeps/generic/dl-sysdep.c: Likewise.
9985 * sysdeps/generic/ldsodefs.h: Likewise.
9986 * sysdeps/generic/libc-start.c: Likewise.
9987 * sysdeps/i386/dl-machine.h: Likewise.
9988 * sysdeps/ia64/dl-fptr.c: Likewise.
9989 * sysdeps/ia64/dl-machine.h: Likewise.
9990 * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
9991 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
9992 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
9993 * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
9994 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
9995 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
9996 * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
9997 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
9999 2002-01-29 Ulrich Drepper <drepper@redhat.com>
10001 * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
10003 (DL_STATIC_FUNCTION_ADDRESS): Likewise.
10005 * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
10007 * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
10009 * elf/rtld.c (_dl_start): Use __builtin_memset if available.
10011 2002-01-29 Ben Collins <bcollins@debian.org>
10013 * string/bits/string2.h (__mempcpy): Protect size arg for
10014 addition when using __builtin_memcpy.
10016 2002-01-29 Ulrich Drepper <drepper@redhat.com>
10018 * stdlib/Makefile (tests): Add tst-qsort.
10019 * stdlib/tst-qsort.c: New file. Written by Paul Eggert.
10021 * manual/signal.texi (Process Signal Mask): Document that
10022 pthread_sigmask, not sigprocmask, must be used in MT programs.
10023 Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
10025 * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
10027 * misc/Makefile (tests): Add tst-hsearch.
10028 * misc/tst-hsearch.c: New file.
10030 2002-01-18 Wolfram Gloger <wg@malloc.de>
10032 * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
10033 * malloc/malloc.h: Likewise.
10034 * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
10035 * malloc/arena.c: New file.
10036 * malloc/hooks.c: New file.
10037 * malloc/tst-mallocstate.c: New file.
10038 * malloc/Makefile: Add new testcase tst-mallocstate.
10039 Add arena.c and hooks.c to distribute. Fix commented CPPFLAGS.
10041 2002-01-28 Ulrich Drepper <drepper@redhat.com>
10043 * stdlib/msort.c: Remove last patch. The optimization violates the
10044 same rule which qsort.c had problems with.
10046 2002-01-27 Paul Eggert <eggert@twinsun.com>
10048 * stdlib/qsort.c (_quicksort): Do not apply the comparison function
10049 to a pivot element that lies outside the array to be sorted, as
10050 ISO C99 requires that the comparison function be called only with
10051 addresses of array elements [PR libc/2880].
10053 2002-01-28 Ulrich Drepper <drepper@redhat.com>
10055 * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
10056 for SHARED code. Reported by Ben Collins <bcollins@debian.org>.
10058 * timezone/asia: Update from tzdata2002b.
10059 * timezone/australasia: Likewise.
10060 * timezone/backward: Likewise.
10061 * timezone/europe: Likewise.
10062 * timezone/leapseconds: Likewise.
10063 * timezone/iso3166.tab: Likewise.
10064 * timezone/zone.tab: Likewise.
10066 2002-01-23 Richard Henderson <rth@redhat.com>
10068 * sysdeps/alpha/Makefile (pic-ccflag): New variable.
10070 2002-01-28 Ulrich Drepper <drepper@redhat.com>
10072 * string/strxfrm.c: Allocate one more byte for rulearr and clear
10073 this element [PR libc/2855].
10075 * string/strcoll.c: Handle zero-length arguments specially
10078 2002-01-23 Jakub Jelinek <jakub@redhat.com>
10080 * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
10081 __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
10082 short lengths and constant src.
10083 (strcpy): Don't optimize for gcc 3.0+.
10084 (__stpcpy): For gcc 3.0+, don't use
10085 __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
10086 for short string literal src.
10088 2002-01-23 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
10090 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
10093 2001-01-22 Paul Eggert <eggert@twinsun.com>
10095 * manual/llio.texi (Linked Channels, Cleaning Streams):
10096 Make it clearer that a just-opened input stream might need cleaning.
10098 2002-01-21 H.J. Lu <hjl@gnu.org>
10100 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
10101 Don't use label at end of compound statement.
10103 2002-01-28 Stephen L Moshier <moshier@mediaone.net>
10105 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
10106 Remove test for negative integer arg; sin_pi does it correctly.
10108 2002-01-20 Ulrich Drepper <drepper@redhat.com>
10110 * nscd/Makefile (distribute): Filter out xmalloc.c.
10112 2002-01-19 Ulrich Drepper <drepper@redhat.com>
10114 * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
10115 Set offset if read end wasn't the buffer end.
10116 (_IO_file_seekoff_mmap): New function.
10117 (_IO_file_xsgetn_mmap): New function.
10118 (_IO_file_jumps_mmap): Use the two new functions.
10119 * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
10121 * libio/libioP.h: Declare _IO_file_seekoff_mmap and
10122 _IO_file_underflow_mmap.
10123 * libio/iofopen.c: Don't position file descriptor at end of file.
10124 * libio/tst-widetext.c: Improve error messages.
10125 * stdio-common/tst-rndseek.c: Likewise.
10127 2002-01-18 Ulrich Drepper <drepper@redhat.com>
10129 * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
10130 end of enum for !_GNU_SOURCE.
10131 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
10132 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
10133 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
10134 * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
10135 values unless _GNU_SOURCE.
10137 * iconvdata/tcvn5712-1.c: Minor cleanups.
10139 2002-01-18 Andreas Schwab <schwab@suse.de>
10141 * sysdeps/unix/sysv/linux/configure.in
10142 (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
10144 2002-01-16 Roger Sayle <roger@eyesopen.com>
10146 * stdlib/msort.c (msort_with_tmp): Replace implementation with
10147 more efficient "Towers of Hanoi" mergesort.
10148 (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
10149 for generic, sizeof(int) and sizeof(long) variants respectively.
10151 2002-01-17 Ulrich Drepper <drepper@redhat.com>
10153 * manual/syslog.texi (openlog): Describe possible problems with
10155 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10157 * nscd/nscd.c (drop_privileges): Removed. Adjust caller.
10158 * nscd/connections.c (begin_drop_privileges): New function.
10159 (finish_drop_privileges): New function.
10160 (nscd_init): Call the new functions which also install all groups
10161 for the server user.
10162 * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
10163 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10165 2002-01-17 H.J. Lu <hjl@gnu.org>
10167 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
10168 `const' from `got'.
10170 2002-01-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
10172 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
10173 instructions for pointer operations.
10174 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
10176 2002-01-17 Andreas Jaeger <aj@suse.de>
10178 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
10179 __uint128_t build-in.
10181 * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
10182 PowerPC, sync with 2.2 branch.
10184 2002-01-16 Ulrich Drepper <drepper@redhat.com>
10186 * posix/getconf.c: Update copyright year.
10187 * nss/getent.c: Likewise.
10188 * nscd/nscd_nischeck.c: Likewise.
10189 * iconv/iconvconfig.c: Likewise.
10190 * iconv/iconv_prog.c: Likewise.
10191 * elf/ldconfig.c: Likewise.
10192 * catgets/gencat.c: Likewise.
10193 * csu/version.c: Likewise.
10194 * elf/ldd.bash.in: Likewise.
10195 * elf/sprof.c (print_version): Likewise.
10196 * locale/programs/locale.c: Likewise.
10197 * locale/programs/localedef.c: Likewise.
10198 * nscd/nscd.c (print_version): Likewise.
10199 * debug/xtrace.sh: Likewise.
10200 * malloc/memusage.sh: Likewise.
10201 * malloc/mtrace.pl: Likewise.
10203 2002-01-16 Andreas Schwab <schwab@suse.de>
10205 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
10206 reliably remove "-ia64" from rtld name.
10208 2002-01-16 Ulrich Drepper <drepper@redhat.com>
10210 * iconvdata/gb18030.c: Bug fixes and support for more characters.
10211 Patch by Yu Shao <yshao@redhat.com>.
10213 2002-01-16 Martin Schwidefsky <schwidefsky@de.ibm.com>
10215 * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
10216 * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
10217 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
10219 2002-01-14 Martin Schwidefsky <schwidefsky@de.ibm.com>
10221 * sysdeps/s390/fpu/libm-test-ulps: Update.
10223 2002-01-11 Ulrich Drepper <drepper@redhat.com>
10225 * elf/elf.h: Update x86 relocations.
10227 2002-01-10 Ulrich Drepper <drepper@redhat.com>
10229 * locale/programs/charmap.c (new_width): Check whether byte
10230 sequences for both ends of range have the same length.
10232 2002-01-09 Jakub Jelinek <jakub@redhat.com>
10234 * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
10236 2002-01-09 Jakub Jelinek <jakub@redhat.com>
10238 * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
10240 (__full_ieee754_sqrt): Add __attribute_used__.
10242 2002-01-10 Ulrich Drepper <drepper@redhat.com>
10244 * sysdeps/generic/group_member.c (__group_member): Also check
10245 groups[0] [PR libc/2781].
10247 2002-01-08 Ulrich Drepper <drepper@redhat.com>
10249 * Makefile (distribute): Add scripts/cpp.
10250 * elf/Makefile (distribute): Add reldep6mod[01234].c,
10251 unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
10252 unwind-dw2-fde.h, and dwarf2.h.
10253 * sysdeps/unix/bsd/bsd4.4/Dist: New file.
10254 * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
10255 * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
10256 * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
10258 2002-01-07 Roland McGrath <roland@frob.com>
10260 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
10261 volatile on type of ARGC so the compiler doesn't get clever.
10263 2002-01-07 Andreas Jaeger <aj@suse.de>
10265 * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
10266 * sysdeps/i386/bits/byteswap.h: Likewise.
10267 * sysdeps/ia64/bits/byteswap.h: Likewise.
10268 * sysdeps/m68k/bits/byteswap.h: Likewise.
10269 * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
10270 * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
10272 2002-01-02 Bruno Haible <bruno@clisp.org>
10274 * intl/plural.y: Fix %expect count.
10276 2002-01-03 Jakub Jelinek <jakub@redhat.com>
10278 * elf/Makefile (routines, shared-only-routines): Add
10279 unwind-dw2-fde-glibc instead of unwind-dw2-fde.
10280 * elf/elf.h (PT_GNU_EH_FRAME): Define.
10281 * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
10282 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
10283 Optimize if .eh_frame section contains no FDEs.
10284 (__register_frame, __deregister_frame_info_bases,
10285 __deregister_frame): Likewise.
10286 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
10287 DW_CFA_restore handling.
10289 2002-01-07 Stephen L Moshier <moshier@mediaone.net>
10291 * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
10293 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
10294 for x < 0.25 and restore original range reduction method.
10295 (__ieee754_lgammal_r): Make sure signgam is set before returning.
10297 2002-01-07 Ulrich Drepper <drepper@redhat.com>
10299 * libio/fileops.c (_IO_file_underflow_mmap): New function.
10300 (_IO_file_close_mmap): New function.
10301 (_IO_file_jumps_mmap): New variable.
10302 * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
10303 trying to convert rest of byte buffer.
10304 (_IO_wfile_underflow_mmap): New function.
10305 (_IO_wfile_jumps_mmap): New variable.
10306 * libio/iofopen.c (__fopen_maybe_mmap): New function.
10307 (__fopen_internal): New function. Split out from _IO_new_fopen.
10308 (_IO_new_fopen): Call __fopen_internal.
10309 * libio/iofopen64.c: Just call __fopen_internal.
10310 * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
10312 * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
10313 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
10314 _IO_file_close_mmap.
10316 * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
10317 * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
10319 * stdio-common/Makefile (tests): Add tst-rndseek.
10320 * stdio-common/tst-rndseek.c: New file.
10322 2002-01-05 Roland McGrath <roland@frob.com>
10324 * config.h.in (HAVE_MIG_RETCODE): New #undef.
10325 * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
10326 swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
10327 * sysdeps/mach/hurd/configure: Regenerated.
10329 2002-01-03 Ulrich Drepper <drepper@redhat.com>
10331 * elf/elf.h: Add more TLS definitions.
10333 2002-01-02 Ulrich Drepper <drepper@redhat.com>
10335 * include/features.h (__GLIBC_MINOR__): Bump to 3.
10337 2002-01-02 Roland McGrath <roland@frob.com>
10339 * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
10340 __sigisemptyset. Don't use MASK uninitialized.
10342 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
10343 * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
10344 * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
10345 __sigdelset, __sigaddset, __sigorset.
10347 * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
10348 * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
10350 * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
10351 _hurd_ports is null.
10353 * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
10354 for old CMU and new OSF Mach interface flavors.
10355 * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
10356 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10358 * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
10360 * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
10361 Pass extra arguments to task_create for OSF variant.
10362 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10364 * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
10365 conditional on [HAVE_AUX_VECTOR].
10367 * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
10368 mach_msg_timeout_t as type of final argument.
10370 * hurd/privports.c (__get_privileged_ports):
10371 Change host_priv_t to mach_port_t in argument type.
10372 * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
10375 * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
10376 multiple inclusion. Inhibit #error under [_SYS_UCONTEXT_H].
10377 * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
10378 * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
10379 * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
10380 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
10382 2002-01-01 Roland McGrath <roland@frob.com>
10384 * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
10386 2002-01-01 Ulrich Drepper <drepper@redhat.com>
10388 * include/stdlib.h: Define inlines for the _l variants of the strto*
10391 2002-01-01 Roland McGrath <roland@frob.com>
10393 * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
10395 * mach/Machrules (MIG): Set CPP as well as CC.
10397 2001-12-31 Ulrich Drepper <drepper@redhat.com>
10399 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
10400 locale to parse /proc/loadavg [PR libc/2760].
10402 2001-12-31 Jakub Jelinek <jakub@redhat.com>
10404 * elf/dl-conflict.c: Include sys/param.h.
10405 (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
10406 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
10408 (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
10409 literals to avoid warnings.
10411 2001-12-31 Andreas Jaeger <aj@suse.de>
10413 * configure.in: Don't check for gsed since we do not use it anywhere.
10415 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
10417 * io/fts.c: Update from BSD to fix memory leaks.
10419 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
10421 * crypt/md5-crypt.c: Realloc error handling memory leak fix.
10422 * elf/chroot_canon.c: Likewise.
10423 * elf/dl-object.c: Likewise.
10424 * iconv/iconv_charmap.c: Likewise.
10425 * iconv/iconv_prog.c: Likewise.
10426 * libio/iogetdelim.c: Likewise.
10427 * locale/lc-time.c: Likewise.
10428 * stdlib/canonicalize.c: Likewise.
10429 * sunrpc/svc.c: Likewise.
10430 * sysdeps/generic/glob.c: Likewise.
10432 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
10434 * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
10435 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
10436 remove high order bit from the program counter.
10437 * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
10439 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
10441 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
10442 unnecessary code and add missing reloc types.
10443 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
10444 case for reloc type R_390_NONE.
10446 2001-12-28 Andreas Jaeger <aj@suse.de>
10448 * io/bug-ftw3.c: Include string.h for prototypes.
10450 * crypt/md5test.c (main): Remove unused variable.
10452 * dlfcn/modstatic.c: Add prototype to avoid warning.
10454 2001-12-26 Roland McGrath <roland@frob.com>
10456 * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
10457 check only (SS->pending & MASK) for the signal to return.
10458 From Jeroen Dekkers <jeroen@dekkers.cx>.
10460 2001-12-22 Roland McGrath <roland@frob.com>
10462 * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
10463 Use preprocessor #if conditionals instead of `if' to avoid
10464 warnings about divide by zero in dead code.
10466 * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
10467 _hurd_port_init, and __hurd_self_sigstate.
10469 * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
10471 2001-12-21 Andreas Jaeger <aj@suse.de>
10473 * elf/dblloadmod1.c: Add prototype to avoid warning.
10474 * elf/dblloadmod2.c: Likewise.
10475 * elf/dblloadmod3.c: Likewise.
10476 * elf/reldepmod5.c: Likewise.
10477 * elf/reldepmod6.c: Likewise.
10479 * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
10480 for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
10481 used on all architectures.
10483 * sunrpc/svc_tcp.c: Add noreturn attribute for
10484 svctcp_rendezvous_abort.
10485 * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
10487 * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
10490 2001-12-19 Jakub Jelinek <jakub@redhat.com>
10492 * manual/llio.texi (aio_fsync): Fix a typo.
10493 Patch by Tammy Fox <tfox@redhat.com>.
10495 2001-12-18 Jakub Jelinek <jakub@redhat.com>
10497 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
10498 stack bias from child stack pointer before passing it to clone syscall.
10500 2001-12-18 Ulrich Drepper <drepper@redhat.com>
10502 * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
10504 * sysdeps/generic/sysconf.c (__sysconf): Likewise.
10505 Reported by Thorsten Kukuk <kukuk@suse.de>.
10507 * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
10510 * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
10512 2001-12-18 Thorsten Kukuk <kukuk@suse.de>
10514 * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
10515 conforming: return EBADF if file descriptor is invalid and EINVAL
10516 if file descriptor is no valid tty.
10517 * login/tst-grantpt.c: New file.
10518 * login/Makefile (tests): Add tst-grantpt.
10520 2001-12-17 Ulrich Drepper <drepper@redhat.com>
10522 * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
10523 different than implemented in last patch.
10524 * io/bug-ftw3.c: Adjust test for changed handling of
10525 inaccessibility of toplevel dir.
10527 2001-12-16 Roland McGrath <roland@frob.com>
10529 * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
10530 * grp/initgroups.c (internal_getgrouplist): Likewise.
10532 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
10533 `default:' to silence new GCC warning.
10534 Rewrite cast of lvalue to silence new GCC warning.
10536 * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
10538 * sysdeps/mach/hurd/spawni.c: New file, by me with a
10539 couple fixes by Neal H Walfield <neal@cs.uml.edu>.
10541 2001-12-14 Ulrich Drepper <drepper@redhat.com>
10543 * sysdeps/generic/strstr.c (strstr): Update. New optimized version.
10544 Patch by Stephen R. van den Berg.
10546 * crypt/md5.h: Define md5_uintptr.
10548 2001-12-13 Ulrich Drepper <drepper@redhat.com>
10550 * libio/tst_swprintf.c (main): Add test for string argument with
10552 * stdio-common/Makefile (tests): Add tst-sprintf.
10553 * stdio-common/tst-sprintf.c: New file.
10555 2001-12-13 Andreas Schwab <schwab@suse.de>
10557 * stdio-common/vfprintf.c (process_string_arg): Correctly handle
10558 zero precision with wide character string format.
10560 2001-12-13 Thorsten Kukuk <kukuk@suse.de>
10562 * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
10563 but have a user supplied buffer, return the empty buffer, not NULL.
10565 2001-12-13 Ulrich Drepper <drepper@redhat.com>
10567 * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
10568 Patch by Eric Sharkey <sharkey@netrics.com>.
10570 * crypt/md5test.c (main): Add test for multiple calls to
10571 __md5_process_bytes to itererate over input string.
10573 2001-12-12 Ulrich Drepper <drepper@redhat.com>
10575 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
10576 from __nis_findfastest. Take timeout value from parameter.
10577 (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
10578 * nis/nis_intern.h: Define parameters controlling __nis_findfastest
10579 [PR libc/2520]. Patch by Alexander Belopolsky <alexb@rentec.com>.
10581 2001-12-12 Andreas Jaeger <aj@suse.de>
10583 * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
10584 combreloc test so that it works in this case.
10586 * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
10588 2001-12-12 NIIBE Yutaka <gniibe@m17n.org>
10590 * sysdeps/sh/Makefile: New file.
10591 * sysdeps/sh/_mcount.S: New file.
10592 * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
10593 * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
10595 2001-12-11 Ulrich Drepper <drepper@redhat.com>
10597 * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
10598 limitation [PR libc/2564].
10600 2001-12-11 Jakub Jelinek <jakub@redhat.com>
10602 * elf/Makefile (dl-routines): Add conflict.
10603 (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
10604 (ld.so): Add _begin local symbol.
10605 * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
10607 * elf/dl-deps.c (_dl_build_local_scope): New function.
10608 (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
10610 * elf/do-rel.h (VALIDX): Define.
10611 (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
10612 lazy binding for RELA. If DT_GNU_PRELINKED, DT_RELACOUNT relocations
10614 * elf/dl-conflict.c: New file.
10615 * elf/dl-lookup.c (_dl_debug_bindings): New function.
10616 (_dl_lookup_symbol): Use _dl_debug_bindings. Reference_name is always
10618 (_dl_lookup_symbol_skip): Likewise.
10619 (_dl_lookup_versioned_symbol): Likewise.
10620 (_dl_lookup_versioned_symbol_skip): Likewise.
10621 * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
10622 define to ElfW(Rel).
10623 * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
10624 tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
10626 Don't adjust address dynamic tags if l_addr is 0.
10627 * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
10628 (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
10629 (VALIDX, ADDRIDX): Define.
10630 (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
10631 (dl_main): Print library list for LD_TRACE_PRELINKING.
10632 If prelinking information can be used, skip relocating libraries and
10633 call _dl_resolve_conflicts instead.
10634 (process_envvars): Handle LD_TRACE_PRELINKING envvar.
10635 * elf/dl-load.c (_dl_map_object): Don't create fake libs
10636 if LD_TRACE_PRELINKING.
10637 * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
10639 * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
10640 (DL_DEBUG_PRELINK): Define.
10641 (_dl_resolve_conflicts): Add prototype.
10643 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
10644 .plt for prelinked libraries where prelinking info cannot be used.
10645 (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
10646 section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
10647 * sysdeps/arm/bits/link.h: New file.
10648 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
10649 content of .got[1].
10650 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
10651 (ELF_MACHINE_PLT_REL): Define.
10652 (elf_machine_rela, elf_machine_rela_relative): New functions.
10653 (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
10654 of adjusting it if prelinked and prelinking cannot be used.
10655 * sysdeps/i386/bits/link.h: New file.
10656 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
10657 content of .got[1].
10658 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
10659 (ELF_MACHINE_PLT_REL): Define.
10660 (elf_machine_rela, elf_machine_rela_relative): New functions.
10661 (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
10662 of adjusting it if prelinked and prelinking cannot be used.
10663 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
10664 conflicts, skip finaladdr computation. Use RESOLVE_CONFLICT_FIND_MAP
10665 to find out map for R_PPC_JMP_SLOT relocs.
10666 * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
10667 (OPCODE_BA): Define.
10668 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
10669 libraries where prelinking info cannot be used.
10670 (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
10671 (elf_machine_fixup_plt): Call sparc_fixup_plt.
10672 (elf_machine_rela): Set value to 0 if relocating conflicts.
10673 Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
10674 * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
10675 (sparc64_fixup_plt): Fix a typo.
10676 (elf_machine_rela): Set value to 0 if relocating conflicts.
10677 Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
10678 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
10679 libraries where prelinking info cannot be used.
10680 * sysdeps/sh/bits/link.h: New file.
10681 * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
10682 content of .got[1].
10683 (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
10684 of adjusting it if prelinked and prelinking cannot be used.
10685 * sysdeps/s390/s390-32/bits/link.h: New file.
10686 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
10687 Save original content of .got[1].
10688 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
10689 of adjusting it if prelinked and prelinking cannot be used.
10690 * sysdeps/s390/s390-64/bits/link.h: New file.
10691 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
10692 Save original content of .got[1].
10693 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
10694 of adjusting it if prelinked and prelinking cannot be used.
10695 * sysdeps/x86_64/bits/link.h: New file.
10696 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
10697 Save original content of .got[1].
10698 (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
10699 of adjusting it if prelinked and prelinking cannot be used.
10701 2001-12-11 Ulrich Drepper <drepper@redhat.com>
10703 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
10704 where appropriate instead of numbers. Little optimizations.
10706 2001-12-10 Roland McGrath <roland@frob.com>
10708 * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
10711 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
10712 set to GLIBC_2.2.5, not GLIBC_2.2.4.
10714 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
10715 Fix conditionals so this is set by default for stdio and not for libio.
10716 * sysdeps/mach/hurd/configure: Regenerated.
10718 2001-12-10 Thorsten Kukuk <kukuk@suse.de>
10720 * io/ftw.c (ftw_startup): Check, if the path is search and readable.
10722 2001-12-10 Ulrich Drepper <drepper@redhat.com>
10724 * io/Makefile (tests): Add bug-ftw3.
10725 * io/bug-ftw3.c: New file.
10727 * sysdeps/generic/glob.c (glob): Return only pattern if nothing
10728 matches and GLOB_NOCHECK is set.
10729 * posix/globtest.sh: Correct expected result for NOCHECK test.
10731 * po/ca.po: Update from translation team.
10733 2001-12-09 Ulrich Drepper <drepper@redhat.com>
10735 Implement transliteration of characters in strings of the locale
10737 * locale/programs/linereader.c: Adjust for additional parameter to
10739 (get_string): If character <Uxxxx> is not found try to transliterate
10741 * locale/programs/ld-ctype.c: Adjust for additional parameter to
10742 lr_token. Add const to charmap parameter of all functions.
10743 (find_translit, find_translit2): New functions.
10744 * locale/programs/charmap.c: Adjust for additional parameter to
10746 * locale/programs/repertoire.c: Likewise.
10747 * locale/programs/linereader.h: Likewise.
10748 * locale/programs/ld-address.c: Likewise. Add const to charmap
10749 parameter of all functions.
10750 * locale/programs/ld-collate.c: Likewise.
10751 * locale/programs/ld-identification.c: Likewise.
10752 * locale/programs/ld-measurement.c: Likewise.
10753 * locale/programs/ld-messages.c: Likewise.
10754 * locale/programs/ld-monetary.c: Likewise.
10755 * locale/programs/ld-name.c: Likewise.
10756 * locale/programs/ld-numeric.c: Likewise.
10757 * locale/programs/ld-paper.c: Likewise.
10758 * locale/programs/ld-paper.c: Likewise.
10759 * locale/programs/ld-telephone.c: Likewise.
10760 * locale/programs/ld-time.c: Likewise.
10761 * locale/programs/locfile.c: Likewise.
10762 * locale/programs/localedef.c: Likewise.
10763 * locale/programs/localedef.h: Likewise.
10764 * locale/programs/locfile.h: Likewise. Add declaration for
10766 * locale/programs/simple-hash.c: Add const to first parameter of
10767 find_entry, iterate_table, and lookup.
10768 * locale/programs/simple-hash.h: Likewise.
10769 * locale/localeinfo.h: Don't define __LC_LAST here. Include <locale.h>
10771 * include/locale.h: Define __LC_LAST.
10772 * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
10774 2001-12-07 Geoff Keating <geoffk@redhat.com>
10776 * sysdeps/powerpc/Dist: Update for recent FP changes.
10777 * sysdeps/powerpc/fpu/Dist: Likewise.
10779 2001-12-07 Andreas Schwab <schwab@suse.de>
10781 * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
10783 2001-12-06 Geoff Keating <geoffk@redhat.com>
10785 * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
10786 save/restore functions here.
10787 (libm-support): Don't define these functions here.
10788 * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
10790 * sysdeps/powerpc/fe_nomask.c: Move to...
10791 * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
10792 * sysdeps/powerpc/fprrest.S: Move to...
10793 * sysdeps/powerpc/fpu/fprrest.S: ... here.
10794 * sysdeps/powerpc/fprsave.S: Move to...
10795 * sysdeps/powerpc/fpu/fprsave.S: ... here.
10797 2001-12-06 Ulrich Drepper <drepper@redhat.com>
10799 * sysdeps/unix/sysv/linux/opensock.c: New file.
10801 2001-12-06 Geoff Keating <geoffk@redhat.com>
10803 * config.make.in (with-fp): Define from configure.
10804 * configure.in: Substitute with_fp.
10805 * configure: Regenerate.
10806 * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
10807 specified, and don't change FPU environment.
10809 2001-12-06 Ulrich Drepper <drepper@redhat.com>
10811 * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
10812 * assert/assert.c: Check result of __asprintf call and don't use
10813 string if it failed.
10814 * assert/assert-perr.c: Likewise.
10815 * inet/rcmd.c: Likewise.
10816 * locale/programs/localedef.c (main): Check result of
10817 construct_output_path and exit if it failed.
10818 (construct_output_path): Check result of asprintf and mkdir calls and
10819 fail if they failed.
10820 * posix/getopt.c: Check result of __asprintf calls and fail if
10822 Patch by Dmitry V. Levin <ldv@alt-linux.org>.
10824 2001-12-05 Ulrich Drepper <drepper@redhat.com>
10826 * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
10828 * sysdeps/generic/strncase.c: Likewise.
10829 * string/tester.c: Add tests for strcasecmp and strncasecmp.
10831 2001-12-05 Geoff Keating <geoffk@redhat.com>
10833 * scripts/cpp: Test the exit status from 'type', not 'awk'.
10835 * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
10836 * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
10837 * sysdeps/powerpc/setjmp.S: Don't save FP registers.
10838 * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
10839 * sysdeps/powerpc/fclrexcpt.c: Move to...
10840 * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
10841 * sysdeps/powerpc/fpu_control.h: Move to...
10842 * sysdeps/powerpc/fpu/fpu_control.h: ... here.
10844 2001-12-05 Ulrich Drepper <drepper@redhat.com>
10846 * iconvdata/ibm1129.h: Remove duplicate mappings.
10847 * iconvdata/ibm937.c: Handle overflow errors. Handle new tables.
10848 * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
10849 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10851 * timezone/zic.c: Fix handling of turnaround times.
10852 Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
10854 2001-12-02 Moshe Olshansky <OLSHANSK@il.ibm.com>
10856 * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
10859 2001-12-05 Ulrich Drepper <drepper@redhat.com>
10861 * posix/regex.c: For use outside glibc defined bounded pointer
10862 macros here. Patch by Jim Meyering <jim@meyering.net>.
10864 * iconvdata/Makefile (modules): Add TCVN5712-1.
10865 * iconvdata/TESTS: Add TCVN5712-1.
10866 * iconvdata/gconv-modules: Likewise.
10867 * iconvdata/tcvn5712-1.c: New file.
10868 * iconvdata/testdata/TCVN-5712: New file.
10869 * iconvdata/testdata/TCVN-5712..UTF8: New file.
10871 2001-12-04 Ulrich Drepper <drepper@redhat.com>
10873 * iconvdata/cp1258.c: Optimize conversion from UCS4.
10875 2001-12-02 Roland McGrath <roland@frob.com>
10877 * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
10879 * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
10880 Reported by Jeff Bailey <jbailey@nisa.net>.
10882 * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
10883 Reported by Jeff Bailey <jbailey@nisa.net>.
10885 * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
10886 * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
10887 Reported by Jeff Bailey <jbailey@nisa.net>.
10889 2001-12-01 Roland McGrath <roland@frob.com>
10891 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
10892 missing backslash in test arguments.
10893 * sysdeps/mach/hurd/configure: Regenerated.
10895 2001-11-26 Roland McGrath <roland@frob.com>
10897 * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
10898 Reported by John Tobey <jtobey@john-edwin-tobey.org>.
10900 2001-11-30 Ulrich Drepper <drepper@redhat.com>
10902 * iconvdata/Makefile (modules): Add ARMSCII-8.
10903 * iconvdata/gconv-modules: Add entries for ARMSCII-8.
10904 * iconvdata/armscii-8.c: New file.
10906 2001-11-29 Jakub Jelinek <jakub@redhat.com>
10908 * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
10909 don't match, fix {{a,b},c} globbing, clean up.
10910 Patch by Flavio Veloso <flaviovs@magnux.com>.
10911 * posix/globtest.sh: Add new tests.
10913 2001-11-29 Andreas Jaeger <aj@suse.de>
10915 * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
10916 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
10918 * sysdeps/generic/abort.c: Include libioP.h for
10919 _IO_flush_all_lockp prototype.
10921 2001-11-29 Ulrich Drepper <drepper@redhat.com>
10923 * posix/regex.h: Define __restrict_arr correctly.
10925 2001-11-28 Ulrich Drepper <drepper@redhat.com>
10927 * iconvdata/ibm1163.c: New file.
10928 * iconvdata/ibm1163.h: New file.
10929 * iconvdata/ibm1164.c: New file.
10930 * iconvdata/ibm1164.h: New file.
10931 * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
10932 * iconvdata/Makefile: Likewise.
10933 * iconvdata/testdata/IBM1163: New file.
10934 * iconvdata/testdata/IBM1163..UTF8: New file.
10935 * iconvdata/testdata/IBM1164: New file.
10936 * iconvdata/testdata/IBM1164..UTF8: New file.
10937 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10939 * iconvdata/ibm1046.h: Optimize. Remove duplicate mappings.
10940 * iconvdata/ibm1124.h: Likewise.
10941 * iconvdata/ibm1132.h: Likewise.
10942 * iconvdata/ibm1133.h: Likewise.
10943 * iconvdata/ibm1160.h: Likewise.
10944 * iconvdata/ibm1161.h: Likewise.
10945 * iconvdata/ibm1162.h: Likewise.
10946 * iconvdata/ibm856.h: Likewise.
10947 * iconvdata/ibm922.h: Likewise.
10948 * iconvdata/ibm930.h: Likewise.
10949 * iconvdata/ibm932.h: Likewise.
10950 * iconvdata/ibm933.h: Likewise.
10951 * iconvdata/ibm935.h: Likewise.
10952 * iconvdata/ibm937.h: Likewise.
10953 * iconvdata/ibm939.h: Likewise.
10954 * iconvdata/ibm943.h: Likewise.
10955 * iconvdata/ibm930.c: Pretty printing.
10956 * iconvdata/ibm937.c: Avoid access accross array boundary.
10958 * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
10959 the current locale's codeset.
10960 * iconv/iconv_open.c (iconv_open): Don't strip out everything for
10961 empty input string.
10962 * iconv/iconv_prog.c: Pass empty strings as default value for to-
10963 and from-charset. Don't determine locale's charset here.
10965 * libio/genops.c (_IO_flush_all_lockp): New function. The same code
10966 as the old _IO_flush_all but lock only if parameter is nonzero.
10967 (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
10968 * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
10969 * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
10970 if libio is used [PR libc/2575].
10972 2001-11-28 Jakub Jelinek <jakub@redhat.com>
10974 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
10975 __signbitl): Only define for ISO C99.
10977 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
10979 * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
10980 herrnop to NETDB_INTERNAL if we run out of buffer space.
10982 2001-11-28 Ulrich Drepper <drepper@redhat.com>
10984 * nss/nss_files/files-XXX.c (internal_getent): Correct input
10985 overflow test for platforms with signed char.
10986 Reported by Andrew Haley <aph@cambridge.redhat.com>.
10988 2001-11-28 Bruno Haible <bruno@clisp.org>
10990 * locale/programs/simple-hash.c (lookup_2): Remove function.
10991 (insert_entry_2): Call lookup instead of lookup_2.
10993 2001-03-04 Bruno Haible <bruno@clisp.org>
10995 * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
10997 2001-10-31 Bruno Haible <bruno@clisp.org>
10999 * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
11001 2001-03-21 Bruno Haible <bruno@clisp.org>
11003 * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
11004 chokes on empty macro arguments.
11005 * intl/plural.y: Add #pragma for alloca on AIX 3.
11007 2001-11-27 Ulrich Drepper <drepper@redhat.com>
11009 * intl/dcigettext.c (guess_category_value): Only implement for
11010 glibc. Otherwise rely on function _nl_locale_name which isn't
11011 present in the glibc sources.
11013 2001-09-24 Bruno Haible <bruno@clisp.org>
11015 * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
11016 transliteration when building on a glibc system but outside glibc.
11018 2001-09-22 Bruno Haible <bruno@clisp.org>
11020 * intl/plural-eval.c: New file, extracted from dcigettext.c.
11021 * intl/dcigettext.c (plural_eval): Remove function, moved to
11022 intl/plural-eval.c.
11023 (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
11024 Include plural-eval.c.
11026 2001-09-22 Bruno Haible <bruno@clisp.org>
11028 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
11029 don't start with a digit; nplurals must be positive.
11031 2001-09-02 Bruno Haible <bruno@clisp.org>
11033 * intl/plural-exp.h: New file, extracted from gettextP.h.
11034 * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
11035 * intl/gettextP.h (struct expression, struct parse_args,
11036 __gettext_free_exp, __gettextparse): Move to plural-exp.h.
11037 * intl/loadmsgcat.c: Include plural-exp.h.
11038 (PLURAL_PARSE): Move macro to plural-exp.h.
11039 (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
11041 (_nl_load_domain): Move plural handling code to plural-exp.c. Call
11042 EXTRACT_PLURAL_EXPRESSION.
11043 (_nl_unload_domain): Update.
11044 * intl/dcigettext.c: Include plural-exp.h.
11045 * intl/plural.y: Include plural-exp.h, not gettextP.h.
11046 (FREE_EXPRESSION): Move macro to plural-exp.h.
11047 * intl/Makefile (routines): Add plural-exp.
11048 (distribute): Add plural-exp.h.
11050 2001-07-28 Bruno Haible <bruno@clisp.org>
11052 * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
11053 isdigit, tolower argument to 'unsigned char'.
11054 * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
11056 * intl/localealias.c (read_alias_file): Cast isspace argument to
11059 2001-10-20 Bruno Haible <bruno@clisp.org>
11061 Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
11063 * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
11064 with the variable 'index' in plural_lookup.
11065 * intl/l10nflist.c (strchr): Likewise.
11066 * intl/localealias.c (strchr): Likewise.
11068 Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
11069 * intl/bindtextdom.c: Likewise.
11070 * intl/dcigettext.c: Likewise.
11071 * intl/dgettext.c: Likewise.
11072 * intl/dngettext.c: Likewise.
11073 * intl/explodename.c: Likewise.
11074 * intl/finddomain.c: Likewise.
11075 * intl/gettext.c: Likewise.
11076 * intl/l10nflist.c: Likewise.
11077 * intl/loadmsgcat.c: Likewise.
11078 * intl/localealias.c: Likewise.
11079 * intl/ngettext.c: Likewise.
11080 * intl/textdomain.c: Likewise.
11081 * intl/gettext.h: Assume <limits.h> exists.
11083 2001-11-27 Ulrich Drepper <drepper@redhat.com>
11085 * stdio-common/Makefile (tests): Add scanf11.
11086 * stdio-common/scanf11.c: New file.
11088 2001-11-26 Ulrich Drepper <drepper@redhat.com>
11090 * version.h (RELEASE): Define as development.
11091 (VERSION): Set to 2.2.90.
11093 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
11095 * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
11096 * nis/nss_nis/nis-grp.c: Likewise.
11097 * nis/nss_nisplus/nisplus-grp.c: Likewise.
11099 * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
11100 * nis/nss_nis/nis-pwd.c: Likewise.
11101 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
11103 * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
11104 * nis/nss_nisplus/nisplus-parser.c: Likewise.
11105 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
11107 * nscd/grpcache.c: Use strtoul instead of atol.
11108 * nscd/pwdcache.c: Likewise.
11109 * nss/getent.c: Likewise.
11111 2001-11-27 Paul Eggert <eggert@twinsun.com>
11113 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
11114 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
11116 2001-11-19 Bruno Haible <bruno@clisp.org>
11118 * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
11120 (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
11121 improves the quality of the hash function, especially for short
11124 2001-11-26 Ulrich Drepper <drepper@redhat.com>
11126 * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
11127 are found call conv_error and not input_error [PR libc/2669].
11129 * math/bits/mathcalls.h: Mark ceil and floor as const.
11130 Reported by David Mosberger.
11132 2001-11-21 Jim Meyering <meyering@lucent.com>
11134 * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
11135 Define to be __-prefixed.
11136 Remove unnecessary duplication in `#ifdef _LIBC' blocks.
11138 2001-11-26 Andreas Jaeger <aj@suse.de>
11140 * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
11143 2001-11-26 Stephen L Moshier <moshier@mediaone.net>
11145 * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
11148 * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
11149 unused variables. Fix threshold for returning 1.0.
11151 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
11154 * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
11155 remove unused variables.
11157 * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
11159 * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
11160 include local math header files.
11162 2001-11-22 Andreas Jaeger <aj@suse.de>
11164 * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
11167 2001-11-21 Andreas Jaeger <aj@suse.de>
11169 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
11171 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
11174 2001-11-15 Andreas Jaeger <aj@suse.de>
11176 * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
11177 compilers that support it.
11179 * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
11180 * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
11181 * stdlib/stdlib.h: Likewise.
11183 2001-11-17 Ulrich Drepper <drepper@redhat.com>
11185 * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
11186 statement with gotos.
11187 Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
11189 2001-11-16 Stephen L Moshier <moshier@mediaone.net>
11191 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
11193 2001-11-15 Ulrich Drepper <drepper@redhat.com>
11195 * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
11197 2001-10-02 Jakub Jelinek <jakub@redhat.com>
11198 H.J. Lu <hjl@gnu.org>
11200 * Versions.def (libc): Add GCC_3.0.
11201 * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
11202 if gcc supports this flag.
11203 (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
11204 (gcc3): Allow glibc to be compiled with gcc 3.x.
11205 * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
11206 * config.make.in (static-libgcc, unwind-find-fde): Add.
11207 * Makerules (build-shlib-helper, build-module-helper): Use it.
11208 * scripts/versions.awk: Make sure GLIBC_ versions come first.
11209 * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
11211 (_fini): Call __deregister_frame_info_bases if
11212 __register_frame_info_bases was used to register.
11213 * elf/Versions (__register_frame_info, __deregister_frame_info): Add
11215 (__register_frame_info_bases, __register_frame_info_table_bases,
11216 __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
11217 * elf/Makefile (routines): Add unwind-dw2-fde.
11218 (shared-only-routines): Add unwind-dw2-fde.
11219 * sysdeps/alpha/gccframe.h: New file.
11220 * sysdeps/arm/gccframe.h: New file.
11221 * sysdeps/generic/framestate.c: New file.
11222 * sysdeps/generic/dwarf2.h: New file.
11223 * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
11224 * sysdeps/generic/unwind-dw2-fde.c: New file.
11225 * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
11226 * sysdeps/generic/unwind-dw2-fde.h: New file.
11227 * sysdeps/generic/unwind-dw2.c: New file.
11228 * sysdeps/generic/unwind-pe.h: New file.
11229 * sysdeps/generic/unwind.h: New file.
11230 * sysdeps/hppa/gccframe.h: New file.
11231 * sysdeps/i386/gccframe.h: New file.
11232 * sysdeps/m68k/gccframe.h: New file.
11233 * sysdeps/mips/gccframe.h: New file.
11234 * sysdeps/powerpc/gccframe.h: New file.
11235 * sysdeps/s390/gccframe.h: New file.
11236 * sysdeps/sh/gccframe.h: New file.
11237 * sysdeps/sparc/gccframe.h: New file.
11238 * sysdeps/vax/gccframe.h: New file.
11239 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
11240 Set on all architectures except ia64.
11241 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
11243 * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
11244 __deregister_frame_info): Move to elf/Versions.
11245 * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
11246 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
11247 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
11248 * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
11249 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
11250 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
11251 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
11252 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
11253 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
11254 * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
11255 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
11256 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
11257 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
11258 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
11259 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
11260 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
11261 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
11262 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
11264 2001-11-15 Jeff Law <law@redhat.com>
11266 * posix/regex.c (uintptr_t): Do not provide a definition if the
11267 system provided one.
11269 2001-11-13 Roland McGrath <roland@frob.com>
11271 * stdio-common/tmpfile.c: Moved to ...
11272 * sysdeps/generic/tmpfile.c: ... here.
11273 * sysdeps/mach/hurd/tmpfile.c: New file.
11275 * hurd/fopenport.c (__fopenport): Renamed from fopenport.
11276 [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
11277 (fopenport): Define as weak alias.
11279 * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
11280 * libio/libioP.h: ... to here.
11282 2001-11-12 Ulrich Drepper <drepper@redhat.com>
11284 * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
11285 program header twice. Construct list with the needed information.
11287 2001-11-10 Ulrich Drepper <drepper@redhat.com>
11289 * po/ca.po: Update from translation team.
11291 * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
11292 _dl_pf_to_prot. Use arithmetic operation using PF_TO_PROT macro.
11293 * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
11294 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11296 2001-11-10 Andreas Jaeger <aj@suse.de>
11298 * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
11299 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11300 Contributed by Stephen L Moshier <moshier@mediaone.net>.
11302 2001-11-09 Ulrich Drepper <drepper@redhat.com>
11304 * elf/dl-minimal.c (realloc): Handle NULL for first parameter
11306 * elf/dl-load.c (is_dst): New function.
11307 (_dl_dst_count): Use is_dst to check for DST variable.
11308 (_dl_dst_substitute): Likewise.
11310 2001-11-09 Roland McGrath <roland@frob.com>
11312 Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
11313 * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
11314 * sysdeps/mach/hurd/powerpc/init-first.c: New file.
11315 * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
11316 * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
11317 * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
11318 * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
11319 * sysdeps/mach/hurd/powerpc/static-start.S: New file.
11320 * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
11321 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
11322 * sysdeps/mach/hurd/powerpc/Dist: New file.
11324 * hurd/privports.c (__get_privileged_ports):
11325 Only contact the proc server if necessary for this call.
11326 Suggested by Neal H Walfield <neal@cs.uml.edu>.
11327 Check error return for mach_port_mod_refs.
11329 2001-11-09 Andreas Schwab <schwab@suse.de>
11331 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
11333 2001-11-09 Ulrich Drepper <drepper@redhat.com>
11335 * elf/dl-load.c (lose): Remove some unnecessary code. The new
11336 object is always the last in the list.
11337 (_dl_map_object_from_fd): Delete code to remove from object list
11338 when DF_1_NOOPEN is seen. This is done in lose.
11340 2001-11-08 Ulrich Drepper <drepper@redhat.com>
11342 * elf/dl-object.c (_dl_new_object): Various small optimizations.
11344 2001-11-07 Ulrich Drepper <drepper@redhat.com>
11346 * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
11347 HWCAP_CHECK macro code.
11349 * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
11350 Now returns MAP_FAILED on error.
11351 * elf/rtld.c: Adjust caller.
11352 * sysdeps/generic/dl-cache.c: Likewise.
11353 * sysdeps/generic/ldsodefs.h: Adjust description.
11355 * elf/dl-version.c (match_symbol): Optimize error handling for size.
11356 (_dl_check_map_versions): Likewise.
11358 2001-11-06 Ulrich Drepper <drepper@redhat.com>
11360 * elf/dl-load.c (_dl_map_object_from_fd): Don't call
11361 _dl_signal_error directly, always use lose. Set fd to -1 after
11363 (lose): Don't call close if fd == -1.
11365 2001-11-07 Kaoru Fukui <k_fukui@highway.ne.jp>
11367 * manual/charset.texi: Fix typo @w[ISO 6937] to @w{ISO 6937}.
11368 Also fix typo @code {mbsinit} to @code{mbsinit}.
11370 2001-11-06 Ulrich Drepper <drepper@redhat.com>
11372 * elf/dl-profile.c: Replace state variable with simple flag named
11373 running. Remove commented-out code.
11375 * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
11376 (_dl_init_paths): Likewise.
11377 (_dl_map_object_from_fd): Likewise.
11378 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11380 2001-11-06 Roland McGrath <roland@frob.com>
11382 * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
11383 instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
11385 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
11386 sysdeps/powerpc/elf/sysdep.h.
11387 Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
11389 2001-11-05 Ulrich Drepper <drepper@redhat.com>
11391 * elf/rtld.c (process_dl_debug): Rewritten. Optimized for size not
11393 (process_envvars): Some more optimizations.
11394 * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
11396 * elf/elf.h: Add dynamic tag definitions for prelinking.
11398 * elf/rtld.c (process_envvars): Avoid using array of string pointers.
11399 Rewrite code to remove environment varables for SUID binaries.
11400 Small optimization in LD_PROFILE handling.
11401 * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
11403 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
11405 * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
11407 * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
11408 strings. Change type of second parameter.
11409 * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
11412 * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
11414 2001-11-04 Joseph S. Myers <jsm28@cam.ac.uk>
11416 * manual/string.texi: Fix typos.
11417 * manual/examples/argp-ex2.c: Likewise.
11419 2001-11-05 Roland McGrath <roland@frob.com>
11421 * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
11422 the more-specific unix/sysv/linux/powerpc file and breaks everything.
11423 * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
11424 ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
11425 PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
11426 here, put under [__ELF__].
11428 2001-11-05 Ulrich Drepper <drepper@redhat.com>
11430 * manual/charset.texi: Extensive editing work.
11431 * manual/nss.texi: Likewise.
11432 Changes by Dennis Grace <dgrace@us.ibm.com>.
11434 2001-11-04 Roland McGrath <roland@frob.com>
11436 * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
11437 parameter to dir_mkfile.
11439 2001-11-02 Jakub Jelinek <jakub@redhat.com>
11441 * string/bits/string2.h (__strndup): If n is smaller than len, set
11443 * string/tester.c (test_strndup): New function.
11446 2001-11-01 Ulrich Drepper <drepper@redhat.com>
11448 * sunrpc/rpc_main.c: Optimize variable definitions a bit.
11450 * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
11451 * scripts/cpp: New file.
11453 * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
11454 for rtld_search_dirs content. Minor optimizations.
11456 2001-10-31 Ulrich Drepper <drepper@redhat.com>
11458 * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
11459 avoiding unnecessary duplication.
11461 2001-10-31 Jakub Jelinek <jakub@redhat.com>
11463 * elf/dl-load.c (_dl_map_object): If library was found using
11464 LD_LIBRARY_PATH, don't try RUNPATH list.
11466 2001-10-31 Martin Schwidefsky <schwidefsky@de.ibm.com>
11468 * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
11469 Correct second argument of register_dump call.
11470 * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
11473 2001-10-31 Ulrich Drepper <drepper@redhat.com>
11475 * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
11477 * iconvdata/TESTS: Likewise.
11478 * iconvdata/gconv-modules: Likewise.
11479 * iconvdata/ibm1132.c: New file.
11480 * iconvdata/ibm1132.h: New file.
11481 * iconvdata/ibm1133.c: New file.
11482 * iconvdata/ibm1133.h: New file.
11483 * iconvdata/ibm1162.c: New file.
11484 * iconvdata/ibm1162.h: New file.
11485 * iconvdata/testdata/IBM1132: New file.
11486 * iconvdata/testdata/IBM1132..UTF8: New file.
11487 * iconvdata/testdata/IBM1133: New file.
11488 * iconvdata/testdata/IBM1133..UTF8: New file.
11489 * iconvdata/testdata/IBM1162: New file.
11490 * iconvdata/testdata/IBM1162..UTF8: New file.
11491 Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
11493 * string/string.h: Fix typo in comment.
11494 * wcsmbs/wchar.h: Likewise.
11496 2001-10-30 Joseph S. Myers <jsm28@cam.ac.uk>
11498 * manual/getopt.texi (getopt_long, getopt_long_only): Include
11499 const in type of longopts parameter.
11501 2001-10-29 Andreas Jaeger <aj@suse.de>
11503 * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
11505 2001-10-29 Kevin Ryde <user42@zip.com.au>
11507 * manual/stdio.texi (Integer Conversions): Corrections to sample printf
11508 output, clarify `#' behaviour on 0.
11509 (Floating-Point Conversions): Clarify that %g only uses %e when
11510 the exponent would be greater than 1.
11512 2001-10-28 Roland McGrath <roland@frob.com>
11514 Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
11515 * sysdeps/mach/powerpc/machine-sp.h: New file.
11516 * sysdeps/mach/powerpc/sysdep.h: New file.
11517 * sysdeps/mach/powerpc/thread_state.h: New file.
11519 * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
11520 * sysdeps/mach/hurd/Makefile: ... to here. For the time being, we can
11521 expect to need the same thing on every platform.
11523 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
11524 * sysdeps/generic/sys/ucontext.h: ... to replace this one.
11526 * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
11527 ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
11528 DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
11529 Move all these assembly-related definitions to ...
11530 * sysdeps/powerpc/elf/sysdep.h: ... this new file.
11532 * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
11533 by Peter Bruin <pjbruin@dds.nl>.
11535 * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
11536 packing results for a `poll' call.
11538 2001-10-26 Ulrich Drepper <drepper@redhat.com>
11540 * posix/fnmatch_loop.c: Recognize - at end of bracket expression
11542 * posix/tst-fnmatch.input: Add tests for - at beginning and end of
11543 bracket expression.
11545 * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
11547 * string/tst-strxfrm.c (test): Also test __strxfrm_l.
11549 2001-10-24 H.J. Lu <hjl@gnu.org>
11551 * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
11552 Use __BEGIN_DECLS/__END_DECLS around prototypes.
11553 * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
11555 2001-10-21 Jim Meyering <meyering@lucent.com>
11557 * malloc/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
11558 this code would end up calling gettext even in packages built
11559 with --disable-nls.
11560 * posix/getopt.c (_): Likewise.
11561 * posix/regex.c (_): Likewise.
11563 2001-10-26 Ulrich Drepper <drepper@redhat.com>
11565 * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
11566 lookup not ip6.int.
11567 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
11568 Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
11570 2001-10-19 Jakub Jelinek <jakub@redhat.com>
11572 * misc/sys/cdefs.h (__attribute_used__): Define.
11573 * elf/rtld.c (_dl_start): Add __attribute_used__.
11574 * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
11576 2001-10-25 Andreas Schwab <schwab@suse.de>
11578 * stdlib/a64l.c: Expect least significant digit first.
11579 * stdlib/l64a.c: Produce least significant digit first.
11580 * stdlib/Makefile (tests): Add test-a64l.
11581 * stdlib/test-a64l.c: New file.
11582 Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
11584 2001-10-21 Ulrich Drepper <drepper@redhat.com>
11586 * po/sk.po: Update from translation team.
11588 2001-10-18 Ulrich Drepper <drepper@redhat.com>
11590 * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
11592 2001-10-18 Andreas Schwab <schwab@suse.de>
11594 * math/libm-test.inc (print_ulps): Print ulp values rounded to
11596 (print_function_ulps): Likewise.
11597 (print_complex_function_ulps): Likewise.
11598 (print_max_error): Likewise.
11599 (print_complex_max_error): Likewise. Handle ignore_max_ulp.
11601 2001-10-16 Andreas Schwab <schwab@suse.de>
11603 * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
11606 * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
11607 BSD_SETJMP or BSD__SETJMP is defined, resp.
11608 * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
11609 a tail call to __sigsetjmp that would require extending the
11611 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
11612 * sysdeps/m68k/bsd-setjmp.S: Deleted.
11613 * sysdeps/m68k/bsd-_setjmp.S: Deleted.
11614 Reported by Jes Sorensen <jes@trained-monkey.org>.
11616 2001-10-16 Andreas Jaeger <aj@suse.de>
11618 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
11619 parentheses. Reported by David Byron <dbyron@porto.coactive.com>,
11620 close PR libc/2589.
11622 2001-10-15 Ulrich Drepper <drepper@redhat.com>
11624 * po/ca.po: New file. Contributed by the translation team.
11626 2001-10-15 Ralf Baechle <ralf@gnu.org>
11628 * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
11629 a varargs prototype. Remove dependency from kernel header files.
11631 * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
11632 __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
11634 2001-10-14 Ulrich Drepper <drepper@redhat.com>
11636 * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
11637 to generate hexadecimal identifier.
11638 Patch by Jungshik Shin <jungshik.shin@yale.edu>.
11640 2001-10-09 Stephen L Moshier <moshier@mediaone.net>
11642 * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
11644 2001-10-14 Ulrich Drepper <drepper@redhat.com>
11646 * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
11647 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
11648 Contributed by Stephen L Moshier <moshier@mediaone.net>.
11650 * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
11651 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11652 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
11653 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
11654 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
11655 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
11657 * timezone/africa: Update from tzdata2001d.
11658 * timezone/asia: Likewise.
11659 * timezone/australasia: Likewise.
11660 * timezone/backward: Likewise.
11661 * timezone/europe: Likewise.
11662 * timezone/leapseconds: Likewise.
11663 * timezone/northamerica: Likewise.
11664 * timezone/southamerica: Likewise.
11665 * timezone/zone.tab: Likewise.
11667 2001-10-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
11669 * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
11670 * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
11672 2001-10-12 Ulrich Drepper <drepper@redhat.com>
11674 * elf/elf.h (PT_TLS): New definition.
11676 2001-10-10 Jeff Bailey <jbailey@nisa.net>
11678 * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
11681 2001-10-07 Roland McGrath <roland@frob.com>
11683 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
11685 2001-10-10 Ulrich Drepper <drepper@redhat.com>
11687 * elf/elf.h: Add more ELFOSABI_* constants.
11689 2001-10-04 Ben Collins <bcollins@debian.org>
11691 * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
11692 decleration of __need_wchar_t.
11694 2001-10-03 Jakub Jelinek <jakub@redhat.com>
11696 * string/bits/string2.h (__strsep_g): Add prototype.
11697 (__strsep): Use it.
11698 * string/Versions (__strsep): Remove.
11699 * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
11701 2001-10-07 Ulrich Drepper <drepper@redhat.com>
11703 * manua/llio.texi: Clarify file references added by mmap.
11704 Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
11706 2001-09-29 Jes Sorensen <jes@trained-monkey.org>
11708 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
11709 Add sc_loadrs and sc_rbs_bas to match current kernel.
11711 2001-09-27 Jakub Jelinek <jakub@redhat.com>
11713 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
11715 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
11717 2001-09-27 Jakub Jelinek <jakub@redhat.com>
11719 * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
11720 object has been bumped because of relocation dependency, avoid
11721 duplicates in l_scope.
11722 (show_scope): Fix typos.
11723 * elf/Makefile: Add rules to build and run reldep6.
11724 * elf/reldep6.c: New file.
11725 * elf/reldep6mod0.c: New file.
11726 * elf/reldep6mod1.c: New file.
11727 * elf/reldep6mod2.c: New file.
11728 * elf/reldep6mod3.c: New file.
11729 * elf/reldep6mod4.c: New file.
11731 2001-09-26 Jakub Jelinek <jakub@redhat.com>
11733 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
11735 (sparc64_fixup_plt): Moved from elf_machine_fixup_plt. Optimize
11736 near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
11737 for non-lazy binding. Fix .plt[32768+] handling.
11738 (elf_machine_plt_value): Don't add addend.
11739 (elf_machine_rela): Call sparc64_fixup_plt instead of
11740 elf_machine_fixup_plt.
11741 (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
11742 dynamic linker at 0xfffff800XXXXXXXX.
11744 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
11746 2001-09-28 Ulrich Drepper <drepper@redhat.com>
11748 * elf/elf.h: Define SHF_GROUP and SHF_TLS.
11750 2001-09-25 Jakub Jelinek <jakub@redhat.com>
11752 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
11753 declare __cmsg_data field if its size would be bigger than 0.
11754 (CMSG_DATA): Adjust accordingly.
11755 * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
11756 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
11757 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
11758 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
11759 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11760 * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
11761 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11763 2001-09-25 Ulrich Drepper <drepper@redhat.com>
11765 * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
11766 * iconvdata/testdata/IBM1160: New file.
11767 * iconvdata/testdata/IBM1160..UTF8: New file.
11768 * iconvdata/testdata/IBM1161: New file.
11769 * iconvdata/testdata/IBM1161..UTF8: New file.
11770 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11772 2001-09-24 Ulrich Drepper <drepper@redhat.com>
11774 * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
11775 UL_SETFSIZE computations better.
11777 * rt/Makefile: Remove use of filter for librt again.
11779 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
11780 UL_SETFSIZE computations better.
11782 * string/Versions: Export __strsep for GLIBC_2.2.5.
11783 * string/bits/string2.h: Define all __STRING_INLINE functions if
11784 _FORCE_INLINES is defined.
11785 Use int instead of char of parameter types.
11786 (__strsep): Don't use __strsep_g. Don't define it.
11787 (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
11788 * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
11790 (__stpcpy_a_small): Renamed from __stpcpy_small.
11791 (__strcspn_c1): Don't define if _FORCE_INLINES.
11792 (__strspn_c1): Likewise.
11794 2001-09-22 Ben Collins <bcollins@debian.org>
11796 * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
11797 _UNIX98_SOURCE is defined too. Matches generic/bits/sigaction.h.
11798 * sysdeps/ia64/bits/sigaction.h: Likewise.
11799 * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
11801 2001-09-24 Andrew Haley <aph@cambridge.redhat.com>
11803 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
11805 2001-09-24 Jakub Jelinek <jakub@redhat.com>
11807 * elf/dl-open.c (dl_open_worker): Update l_scope_max.
11809 2001-09-24 Ulrich Drepper <drepper@redhat.com>
11811 * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
11813 2001-09-20 H.J. Lu <hjl@gnu.org>
11815 * include/dlfcn.h (__RTLD_SPROF): New definiton.
11816 * elf/dl-open.c (dl_open_worker): Return immediately after loading
11818 * elf/sprof.c (main): Default to the filename if soname doesn't exist.
11819 (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
11821 2001-09-20 H.J. Lu <hjl@gnu.org>
11823 * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
11826 2001-09-22 Ulrich Drepper <drepper@redhat.com>
11828 * nss/getent.c: Accept -s parameter to overwrite rules in
11829 nsswitch.conf. Patch by Nalin Dahyabhai <nalin@redhat.com>.
11831 * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
11832 with as many ".0" as necessary to form a complete address
11833 inet_network understands.
11835 * nss/getent.c: Various cleanups. Use simpler and fewer function
11838 2001-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
11840 * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
11842 * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
11844 2001-09-22 Ulrich Drepper <drepper@redhat.com>
11846 * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
11848 * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
11849 * iconvdata/ibm1160.c: New file.
11850 * iconvdata/ibm1160.h: New file.
11851 * iconvdata/ibm1161.c: New file.
11852 * iconvdata/ibm1161.h: New file.
11853 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11855 2001-09-19 Jakub Jelinek <jakub@redhat.com>
11857 * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
11858 difference between base address and first PT_LOAD's virtual address,
11859 not the base address.
11861 2001-09-11 Tom Rix <trix@redhat.com>
11863 * sysdeps/unix/sysv/aix/init-first.c (init): Use USE_NONONPTION_FLAG
11864 ifdef for __getopt_clean_environment.
11865 * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
11867 2001-09-22 Andreas Jaeger <aj@suse.de>
11869 * elf/reldep4.c (main): Add proper prototype to fix warning.
11871 * elf/reldep5.c (main): Remove unused variable.
11873 * math/math_private.h: Add prototypes.
11875 2001-09-21 Andreas Jaeger <aj@suse.de>
11877 * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
11878 * sysdeps/x86_64/Dist: New file.
11879 * sysdeps/x86_64/soft-fp/Dist: New file.
11881 * sysdeps/gnu/Dist: Remove eval.c.
11883 2001-09-20 Ulrich Drepper <drepper@redhat.com>
11885 * malloc/memusage.c (realloc): Don't count already allocated
11886 memory in the sums.
11887 (me): Always use dlsym() to find the real implementations.
11889 * malloc/memusage.sh: Make -n option actually do something.
11891 2001-09-20 Andreas Jaeger <aj@suse.de>
11893 * elf/elf.h (R_390_NUM): Correct value.
11895 * Versions.def: Add missing versions 2.2.3 for libthread_db and
11898 * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
11899 for x86-64, install x86-64 into */lib64.
11901 * shlib-versions: Add x86-64.
11903 * elf/elf.h: Add x86-64 relocations.
11905 2001-09-19 Ulrich Drepper <drepper@redhat.com>
11907 * po/fr.po: Update from translation team.
11909 2001-09-19 Andreas Jaeger <aj@suse.de>
11911 * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
11912 * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
11913 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
11914 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
11915 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
11916 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
11917 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
11918 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
11919 * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
11920 * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
11921 * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
11922 * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
11923 * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
11924 * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
11925 * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
11926 * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
11927 * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
11928 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
11929 * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
11930 * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
11931 * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
11932 * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
11933 * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
11934 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
11935 * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
11936 * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
11937 * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
11938 * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
11939 * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
11940 * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
11941 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
11942 * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
11943 * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
11944 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
11945 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
11946 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
11947 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
11948 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
11949 * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
11950 * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
11951 * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
11952 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
11953 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
11954 * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
11955 * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
11956 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
11957 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
11958 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
11959 * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
11960 * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
11961 * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
11962 * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
11963 * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
11964 * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
11965 * sysdeps/unix/x86_64/sysdep.S: New file.
11966 * sysdeps/unix/x86_64/sysdep.h: New file.
11967 * sysdeps/x86_64/Implies: New file.
11968 * sysdeps/x86_64/Makefile: New file.
11969 * sysdeps/x86_64/Versions: New file.
11970 * sysdeps/x86_64/__longjmp.S: New file.
11971 * sysdeps/x86_64/abort-instr.h: New file.
11972 * sysdeps/x86_64/atomicity.h: New file.
11973 * sysdeps/x86_64/bits/endian.h: New file.
11974 * sysdeps/x86_64/bits/setjmp.h: New file.
11975 * sysdeps/x86_64/bits/string.h: New file.
11976 * sysdeps/x86_64/bp-asm.h: New file.
11977 * sysdeps/x86_64/bsd-_setjmp.S: New file.
11978 * sysdeps/x86_64/bsd-setjmp.S: New file.
11979 * sysdeps/x86_64/dl-machine.h: New file.
11980 * sysdeps/x86_64/elf/initfini.c: New file.
11981 * sysdeps/x86_64/elf/start.S: New file.
11982 * sysdeps/x86_64/ffs.c: New file.
11983 * sysdeps/x86_64/ffsll.c: New file.
11984 * sysdeps/x86_64/fpu/bits/fenv.h: New file.
11985 * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
11986 * sysdeps/x86_64/fpu/e_acosl.c: New file.
11987 * sysdeps/x86_64/fpu/e_atan2l.c: New file.
11988 * sysdeps/x86_64/fpu/e_exp2l.S: New file.
11989 * sysdeps/x86_64/fpu/e_expl.c: New file.
11990 * sysdeps/x86_64/fpu/e_fmodl.S: New file.
11991 * sysdeps/x86_64/fpu/e_log10l.S: New file.
11992 * sysdeps/x86_64/fpu/e_log2l.S: New file.
11993 * sysdeps/x86_64/fpu/e_logl.S: New file.
11994 * sysdeps/x86_64/fpu/e_powl.S: New file.
11995 * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
11996 * sysdeps/x86_64/fpu/e_scalbl.S: New file.
11997 * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
11998 * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
11999 * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
12000 * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
12001 * sysdeps/x86_64/fpu/fegetenv.c: New file.
12002 * sysdeps/x86_64/fpu/fegetexcept.c: New file.
12003 * sysdeps/x86_64/fpu/fegetround.c: New file.
12004 * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
12005 * sysdeps/x86_64/fpu/fesetenv.c: New file.
12006 * sysdeps/x86_64/fpu/fesetround.c: New file.
12007 * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
12008 * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
12009 * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
12010 * sysdeps/x86_64/fpu/ftestexcept.c: New file.
12011 * sysdeps/x86_64/fpu/libm-test-ulps: New file.
12012 * sysdeps/x86_64/fpu/math_ldbl.h: New file.
12013 * sysdeps/x86_64/fpu/printf_fphex.c: New file.
12014 * sysdeps/x86_64/fpu/s_atanl.c: New file.
12015 * sysdeps/x86_64/fpu/s_cosl.S: New file.
12016 * sysdeps/x86_64/fpu/s_expm1l.S: New file.
12017 * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
12018 * sysdeps/x86_64/fpu/s_isinfl.c: New file.
12019 * sysdeps/x86_64/fpu/s_isnanl.c: New file.
12020 * sysdeps/x86_64/fpu/s_log1pl.S: New file.
12021 * sysdeps/x86_64/fpu/s_logbl.c: New file.
12022 * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
12023 * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
12024 * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
12025 * sysdeps/x86_64/fpu/s_rintl.c: New file.
12026 * sysdeps/x86_64/fpu/s_significandl.c: New file.
12027 * sysdeps/x86_64/fpu/s_sincosl.S: New file.
12028 * sysdeps/x86_64/fpu/s_sinl.S: New file.
12029 * sysdeps/x86_64/fpu/s_tanl.S: New file.
12030 * sysdeps/x86_64/gmp-mparam.h: New file.
12031 * sysdeps/x86_64/hp-timing.c: New file.
12032 * sysdeps/x86_64/hp-timing.h: New file.
12033 * sysdeps/x86_64/htonl.S: New file.
12034 * sysdeps/x86_64/memusage.h: New file.
12035 * sysdeps/x86_64/setjmp.S: New file.
12036 * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
12037 * sysdeps/x86_64/stackinfo.h: New file.
12038 * sysdeps/x86_64/sysdep.h: New file.
12039 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
12041 * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
12044 2001-09-18 Ulrich Drepper <drepper@redhat.com>
12046 * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
12047 Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
12049 2001-09-18 Andreas Schwab <schwab@suse.de>
12051 * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
12052 list, now that l_scope is a pointer.
12054 * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
12057 2001-09-18 kaz Kojima <kkojima@rr.iij4u.or.jp>
12059 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
12060 (elf_machine_rela_relative): Add a missing declaration.
12062 2001-09-18 Jakub Jelinek <jakub@redhat.com>
12064 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
12065 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
12066 * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
12067 ldd-rewrite scripts.
12069 2001-09-18 Ulrich Drepper <drepper@redhat.com>
12071 * elf/ldd.bash.in: Update copyright message.
12073 2001-09-17 H.J. Lu <hjl@gnu.org>
12075 * hurd/hurdmalloc.c (bcopy): Removed.
12076 (realloc): Replace bcopy with memcpy.
12077 * hurd/path-lookup.c (file_name_path_scan): Likewise.
12078 * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
12079 * sunrpc/rpcinfo.c (pmapdump): Likewise.
12081 * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
12082 (gethostbyaddr): Likewise.
12083 * sunrpc/rpcinfo.c (get_inet_address): Likewise.
12085 2001-09-18 Ulrich Drepper <drepper@redhat.com>
12087 * sysdeps/gnu/eval.c: Removed.
12089 2001-09-18 Andreas Jaeger <aj@suse.de>
12091 * sysdeps/i386/fpu/s_logbl.S: Move to ...
12092 * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
12094 * sysdeps/i386/fpu/s_rintl.S: Move to ...
12095 * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
12097 * sysdeps/i386/fpu/s_significandl.S: Move to ...
12098 * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
12100 2001-09-16 Ulrich Drepper <drepper@redhat.com>
12102 * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
12105 2001-09-14 H.J. Lu <hjl@gnu.org>
12107 * sysdeps/mips/fpu/libm-test-ulps: Updated.
12109 2001-09-14 Ulrich Drepper <drepper@redhat.com>
12111 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
12112 Patch by Florian La Roche <laroche@redhat.com>.
12114 * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
12116 * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
12119 2001-09-14 Andreas Schwab <schwab@suse.de>
12121 * posix/execl.c: Fix last argument of memcpy. Reported by Brian
12122 Sumner <bls@sgi.com>.
12123 * posix/execlp.c: Likewise.
12125 2001-09-13 Jakub Jelinek <jakub@redhat.com>
12127 * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
12128 is already found earlier in the search scope.
12130 2001-09-12 Jakub Jelinek <jakub@redhat.com>
12132 * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
12135 2001-09-13 Ulrich Drepper <drepper@redhat.com>
12137 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
12139 2001-09-12 Ulrich Drepper <drepper@redhat.com>
12141 * config.h.in: Enforce optimization to be used.
12142 * Makeconfig (preprocess-versions): Define ASSEMBLER.
12143 * stdlib/Makefile (isomac-CFLAGS): Define to -O.
12144 * posix/Makefile (annexc-CFLAGS): Define to -O.
12145 * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
12147 2001-09-11 Ulrich Drepper <drepper@redhat.com>
12149 * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
12150 Patch by Stephan Kulow.
12152 2001-09-08 Ben Collins <bcollins@debian.org>
12154 * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
12155 usage of RESOLVE() (r_type, not reloc->r_type).
12157 2001-09-08 Ulrich Drepper <drepper@redhat.com>
12159 * elf/dl-object.c: Avoid allocating extra memory block for name.
12160 * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
12161 allocated separately.
12162 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
12164 2001-09-08 H.J. Lu <hjl@gnu.org>
12166 * po/zh_TW.po: Fix a typo.
12168 2001-09-07 Tom Rix <trix@redhat.com>
12170 * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
12172 2001-08-26 Tom Rix <trix@redhat.com>
12174 * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
12175 command line options.
12176 * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
12177 * sysdeps/unix/sysv/aix/start.c: Removed.
12178 * sysdeps/unix/sysv/aix/start-libc.c: New file.
12179 * sysdeps/unix/sysv/aix/init-first.c: New file.
12180 * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
12182 2001-09-08 Ben Collins <bcollins@debian.org>
12184 * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
12185 * sysdeps/generic/dl-machine.h: Likewise.
12186 * sysdeps/hppa/dl-fptr.c: Likewise.
12187 * sysdeps/ia64/dl-fptr.c: Likewise.
12188 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
12189 * sysdeps/mips/dl-machine.h: Likewise.
12190 * sysdeps/mips/mips64/dl-machine.h: Likewise.
12191 * sysdeps/powerpc/dl-machine.c: Likewise.
12193 2001-09-07 Ben Collins <bcollins@debian.org>
12195 * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
12197 * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
12199 2001-09-08 Ulrich Drepper <drepper@redhat.com>
12201 * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
12202 dependencies if necessary.
12204 * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
12205 loaded directly) determine length if l_initfini list by iterating
12206 over its elements. Minor optimizations.
12207 * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
12208 for dependency objects.
12209 If object was already loaded check whether any of the dependencies
12210 is already on the relocation dependency list. If yes, remove the
12211 latter. Minor optimizations.
12212 * elf/dl-lookup.c (add_dependency): Add check for self reference of
12213 maps here. Search l_initfini list only if the object was loaded
12214 directly and not only as a dependency.
12215 (_dl_lookup_symbol): Add relocation dependency also if object
12216 is not in global scope. Remove test for self-reference here.
12217 (_dl_lookup_versioned_symbol): Likewise.
12218 * elf/dl-object (_dl_new_object): Cleanup. Initialize dont_free
12219 element of first name record.
12220 * elf/loadtest.c: Add some more test to recognize early if an object
12222 * elf/Makefile: Add rules to build and run reldep5.
12223 * elf/reldep5.c: New file.
12224 * elf/reldepmod5.c: New file.
12225 * elf/reldepmod6.c: New file.
12227 * elf/reldep2.c: Fix typo.
12229 2001-09-07 Ulrich Drepper <drepper@redhat.com>
12231 * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
12232 elements. Change l_scope to be a pointer only.
12233 * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
12234 * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
12235 here add searchlist of newly open file to the dependency's scope.
12236 * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
12237 only searchlist from its scope. Free own scope array if necessary.
12238 * elf/Makefile (tests): Add dblload and dblunload now.
12240 2001-09-06 Andreas Jaeger <aj@suse.de>
12242 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
12245 2001-09-05 Ulrich Drepper <drepper@redhat.com>
12247 * elf/Makefile: Add rules to build new tests. Don't run them yet since
12249 * elf/dblload.c: New file.
12250 * elf/dblloadmod1.c: New file.
12251 * elf/dblloadmod2.c: New file.
12252 * elf/dblloadmod3.c: New file.
12253 * elf/dblunload.c: New file.
12255 2001-09-04 Richard Henderson <rth@redhat.com>
12257 * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
12258 (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
12260 2001-09-04 Ulrich Drepper <drepper@redhat.com>
12262 Correct very misleading message for error in failed runtime relocation.
12263 * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
12264 place of the error.
12265 (_dl_signal_cerror): Likewise.
12266 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
12267 * elf/dl-close.c: Likewise.
12268 * elf/dl-deps.c: Likewise.
12269 * elf/dl-load.c: Likewise.
12270 * elf/dl-lookup.c: Likewise.
12271 * elf/dl-open.c: Likewise.
12272 * elf/dl-reloc.c: Likewise.
12273 * elf/dl-sym.c: Likewise.
12274 * elf/dl-version.c: Likewise.
12275 * sysdeps/generic/dl-sysdep.c: Likewise.
12277 2001-09-04 Jakub Jelinek <jakub@redhat.com>
12279 * iconv/strtab.c (strtabinit): Initialize null Strent.
12280 (newstring): Move len == 0 handling...
12281 (strtabadd): ...here.
12282 If len == 1, return null Strent.
12283 When inserting a suffix of an existing string, check if
12284 it is not equal to some suffix already recorded.
12285 Copy left and right members over if adding longer string.
12287 2001-09-04 Jakub Jelinek <jakub@redhat.com>
12289 * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
12291 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
12292 (__syscall_gethostname): Add prototype.
12294 2001-09-04 Ulrich Drepper <drepper@redhat.com>
12296 * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
12298 2001-09-02 Ulrich Drepper <drepper@redhat.com>
12300 * elf/rtld.c (dl_main): Increment l_opencount for main binary.
12302 2001-08-27 Roland McGrath <roland@frob.com>
12304 * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
12305 short, copy that much into NAME anyway before returning error.
12307 2001-09-01 Richard Henderson <rth@redhat.com>
12309 * sysdeps/alpha/elf/Dist: Remove file.
12310 * sysdeps/alpha/elf/Makefile: Remove file.
12311 * sysdeps/alpha/elf/crtbegin.S: Remove file.
12312 * sysdeps/alpha/elf/crtend.S: Remove file.
12313 * sysdeps/alpha/elf/initfini.c: New file.
12315 2001-09-01 Mark Kettenis <kettenis@gnu.org>
12317 * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
12318 * iconv/tst-iconv3.c: Likewise.
12320 2001-09-01 Jakub Jelinek <jakub@redhat.com>
12322 * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
12324 2001-09-01 Ulrich Drepper <drepper@redhat.com>
12326 * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
12328 * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
12329 * iconv/iconv_prog.c (insert_cache): New function.
12330 (print_known_names): If cache is used call insert_cache to use the
12331 information from the cache [PR libc/2509].
12333 2001-08-31 Ulrich Drepper <drepper@redhat.com>
12335 * time/strptime.c (strptime_internal): Recognize 'l' format and
12336 handle it like 'I' for symmetry with strftime.
12338 2001-08-31 Richard Henderson <rth@redhat.com>
12340 * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
12341 (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
12342 * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
12343 (print_statistics): Make scalar unsigned long long.
12344 * sysdeps/alpha/hp-timing.h: New file.
12346 2001-08-31 Jakub Jelinek <jakub@redhat.com>
12348 * stdio-common/perror.c (perror): Save errno early, pass it
12349 down to perror_internal.
12350 (perror_internal): Add errnum argument.
12352 2001-08-31 Jakub Jelinek <jakub@redhat.com>
12354 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
12355 Don't add old memory content for R_ALPHA_REFQUAD.
12357 2001-08-30 Ulrich Drepper <drepper@redhat.com>
12359 * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
12362 * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
12363 instead of open, __close instead of close, __getpagesize instead
12366 * string/argz-stringify.c (__argz_stringify): Use __strnlen
12367 instead of strnlen.
12368 * include/string.h (strndupa): Redefine here to use __strnlen
12369 instead of strnlen.
12370 * string/strndup.c (__strndup): Use __strnlen not strnlen.
12372 * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
12375 2001-08-30 Jakub Jelinek <jakub@redhat.com>
12377 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
12378 R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
12379 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
12380 * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
12381 * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
12382 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
12383 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
12385 2001-08-30 Ulrich Drepper <drepper@redhat.com>
12387 * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
12389 2001-08-30 Andreas Jaeger <aj@suse.de>
12391 * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
12392 contributed Stephen L Moshier.
12394 2001-08-30 Jakub Jelinek <jakub@redhat.com>
12396 * sunrpc/etc.rpc (sgi_fam): Add.
12398 2001-08-30 Ulrich Drepper <drepper@redhat.com>
12400 * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
12402 2001-08-29 Ulrich Drepper <drepper@redhat.com>
12404 * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
12405 first is from a previous call.
12406 Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
12408 2001-08-29 Andreas Schwab <schwab@suse.de>
12410 * sysdeps/ia64/fpu/libm-test-ulps: Updated.
12412 2001-08-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
12414 * config.make.in (INSTALL_SCRIPT): Define.
12415 * Makeconfig (INSTALL_SCRIPT): Define.
12416 * Makerules (do-install-script): New macro to install scripts using
12418 (install-bin-script): New rule to install scripts with
12420 (install-bin-script-nosubdir): New rule.
12421 (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
12422 (distinfo-vars): Add $(install-bin-script).
12423 * Rules (others): Likewise.
12424 * Makefile (glibcbug): Install with install-bin-script.
12425 * debug/Makefile (xtrace): Likewise.
12426 (catchsegv): Likewise.
12427 * elf/Makefile (ldd): Likewise.
12428 * malloc/Makefile (mtrace): Likewise.
12429 * timezone/Makefile (tzselect): Likewise.
12431 2001-08-29 H.J. Lu <hjl@gnu.org>
12433 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
12434 ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
12435 _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
12437 2001-08-29 Andreas Schwab <schwab@suse.de>
12439 * sysdeps/m68k/fpu/libm-test-ulps: Updated.
12441 2001-08-28 H.J. Lu <hjl@gnu.org>
12443 * Makeconfig (combreloc-LDFLAGS): New variable.
12444 Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
12445 * config.make.in (have-z-combreloc): New variable.
12446 * configure.in: Substitute libc_cv_z_combreloc.
12448 2001-08-29 Ulrich Drepper <drepper@redhat.com>
12450 * po/sv.po: Update from translation team.
12451 * po/fr.po: Likewise.
12452 * po/da.po: Likewise.
12454 2001-08-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
12456 * Makerules: Fix a typo: MD% -> MD5.
12458 2001-08-28 Ulrich Drepper <drepper@redhat.com>
12460 * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
12461 Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
12463 2001-08-28 Andreas Jaeger <aj@suse.de>
12465 * manual/libc-texinfo.sh: Add entry about free manuals.
12467 * manual/contrib.texi (Contributors): Fix cross reference.
12469 * manual/libc.texinfo (Copying): Include freemanuals.
12471 * manual/Makefile (appendices): Add freemanuals.
12473 * manual/freemanuals.texi: New file.
12474 Patch by Brian Youmans <3diff@gnu.org>.
12476 * manual/libm-err-tab.pl: Pretty print more platforms, print a
12479 * manual/math.texi (Errors in Math Functions): Fix grammar, start
12480 table on separate page.
12481 Patch by Brian Youmans <3diff@gnu.org>.
12483 2001-08-27 Ulrich Drepper <drepper@redhat.com>
12485 * misc/syslog.c (vsyslog): Try a bit harder to use syslogd. If
12486 the connection went down after we first used it try to connect
12487 again and resend the message before printing to the console.
12488 Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
12490 2001-08-27 Jakub Jelinek <jakub@redhat.com>
12492 * string/tst-strlen.c (main): Test strnlen (, -1) too.
12493 * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
12496 2001-08-27 Ulrich Drepper <drepper@redhat.com>
12498 * iconv/strtab.c (searchstring): Use correct length for comparison.
12499 (strtabadd): Account total size correct if new string has old string as
12502 2001-08-27 Jakub Jelinek <jakub@redhat.com>
12504 * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
12506 2001-08-27 Andreas Jaeger <aj@suse.de>
12508 * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
12510 * math/libm-test.inc (j0_test): Add extra tests.
12511 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
12512 not x, in Hankel approximation.
12513 Patches by Stephen L Moshier.
12515 2001-08-26 Ulrich Drepper <drepper@redhat.com>
12517 * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
12520 * configure.in: Fix test for .rela.dyn section.
12522 * elf/dl-runtime.c: Update calls to _dl_lookup_*.
12524 2001-08-26 Jakub Jelinek <jakub@redhat.com>
12526 * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
12527 instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
12528 Pass type_class to _dl_lookup_*.
12529 * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
12530 Pass around just type_class instead of noexec, noplt pair.
12531 (_dl_lookup_versioned_symbol): Likewise.
12532 (_dl_lookup_symbol_skip): Pass around just type_class instead of
12533 noexec, noplt pair.
12534 (_dl_lookup_versioned_symbol_skip): Likewise.
12535 (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
12536 * elf/do-lookup.h (do_lookup): Likewise.
12537 * include/link.h (struct link_map): Replace noexec and noplt fields
12538 in l_lookup_cache with type_class field.
12539 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
12540 ELF_RTYPE_CLASS_COPY): Define.
12541 Adjust prototypes for _dl_lookup_symbol and
12542 _dl_lookup_versioned_symbol.
12543 * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
12544 elf_machine_lookup_noexec_p): Remove.
12545 (elf_machine_type_class): Define.
12546 * sysdeps/arm/dl-machine.h: Likewise.
12547 * sysdeps/hppa/dl-machine.h: Likewise.
12548 * sysdeps/cris/dl-machine.h: Likewise.
12549 * sysdeps/i386/dl-machine.h: Likewise.
12550 * sysdeps/ia64/dl-machine.h: Likewise.
12551 * sysdeps/m68k/dl-machine.h: Likewise.
12552 * sysdeps/mips/mips64/dl-machine.h: Likewise.
12553 * sysdeps/mips/dl-machine.h: Likewise.
12554 * sysdeps/powerpc/dl-machine.h: Likewise.
12555 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12556 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12557 * sysdeps/sh/dl-machine.h: Likewise.
12558 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12559 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12561 2001-08-26 Ulrich Drepper <drepper@redhat.com>
12563 * manual/message.texi (Advanced gettext functions): Change
12564 description of plural forms for Slovak.
12565 Reported by Marcel Telka <marcel@telka.sk>.
12567 * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
12568 %z. Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
12570 2001-08-26 Jakub Jelinek <jakub@redhat.com>
12572 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
12573 typo. Patch by Florian La Roche <laroche@redhat.com>.
12575 2001-08-26 Ulrich Drepper <drepper@redhat.com>
12577 * include/link.h (struct link_map): Add l_lookup_cache element.
12578 * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
12579 (RESOLVE_MAP): Likewise.
12580 (_dl_relocate_object): Remove cache initialization.
12581 * elf/dl-lookup.c: Rip out cache handling code.
12582 * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
12585 * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
12586 remove some __builtin_expect.
12587 (_dl_lookup_versioned_symbol): Likewise.
12589 * config.h.in: Add HAVE_Z_COMBRELOC.
12590 * configure.in: Add test for -z combreloc.
12592 * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
12593 optimizations. Use HAVE_Z_COMBRELOC to avoid generaton of
12594 R_386_RELATIVE handling for ld.so startup. Reduce RTLD_BOOTSTRAP
12595 case to almost no code.
12597 2001-08-25 Ulrich Drepper <drepper@redhat.com>
12599 * po/tr.po: Update from translation team.
12601 2001-08-24 Andreas Jaeger <aj@suse.de>
12603 * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
12606 2001-08-24 Ulrich Drepper <drepper@redhat.com>
12608 * elf/rtld.c (print_statistics): Printf % after percent values.
12609 * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
12611 * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
12612 don't have to compute the hash value and initialize current_value.
12613 Move reference_name variable to where it is needed.
12614 (_dl_lookup_versioned_symbol): Likewise.
12616 2001-08-24 Roland McGrath <roland@frob.com>
12618 * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
12619 Just test that strerror returns non-null for a few errno codes.
12621 2001-08-23 Roland McGrath <roland@frob.com>
12623 * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
12624 _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
12626 * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
12628 * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
12631 2001-08-24 Ulrich Drepper <drepper@redhat.com>
12633 * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
12636 * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
12637 startup. Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
12639 * elf/rtld.c: Include <sys/param.h>.
12640 * elf/dl-reloc.c: Likewise.
12642 2001-08-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
12644 * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
12645 empty to prevent junk from being generated.
12646 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
12648 2001-08-24 Jakub Jelinek <jakub@redhat.com>
12650 * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
12651 records. Rename endrel to relative, initialize it to r, and use it
12652 in elf_machine_rel_relative calls. Point r after relative relocs.
12654 2001-08-24 Ulrich Drepper <drepper@redhat.com>
12656 * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
12659 2001-08-24 Jakub Jelinek <jakub@redhat.com>
12661 * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
12662 necessary. Undefine newly defined macros at the end.
12663 * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
12664 Rename from elf_machine_rel_relative.
12665 * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
12666 * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
12667 * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
12668 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
12670 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
12672 * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
12673 Fix argument types.
12674 * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
12675 Fix argument types.
12676 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
12677 Likewise. Fix argument types.
12678 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
12679 Likewise. Fix argument types.
12680 * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
12681 Fix argument types.
12682 * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
12683 ElfW(Rel) in argument.
12684 * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
12687 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
12689 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
12691 2001-08-24 Andreas Jaeger <aj@suse.de>
12693 * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
12694 Stephen L Moshier <moshier@mediaone.net>.
12696 2001-08-24 Ulrich Drepper <drepper@redhat.com>
12698 * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
12699 first if RELCOUNT is set.
12701 * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
12702 call elf_machine_rel for the last DT_RELCOUNT relocations but instead
12703 elf_machine_rel_relative.
12704 * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
12705 Minor optimizations.
12706 * sysdeps/arm/dl-machine.h: Likewise.
12707 * sysdeps/cris/dl-machine.h: Likewise.
12708 * sysdeps/hppa/dl-machine.h: Likewise.
12709 * sysdeps/i386/dl-machine.h: Likewise.
12710 * sysdeps/ia64/dl-machine.h: Likewise.
12711 * sysdeps/m68k/dl-machine.h: Likewise.
12712 * sysdeps/mips/dl-machine.h: Likewise.
12713 * sysdeps/powerpc/dl-machine.h: Likewise.
12714 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12715 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12716 * sysdeps/sh/dl-machine.h: Likewise.
12717 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12718 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12720 2001-08-23 Roland McGrath <roland@frob.com>
12722 * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
12724 * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
12725 sysdeps/mach version. Implement counting ("recursive") mutexes
12726 on top of cthreads mutexes.
12727 * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
12729 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
12730 _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
12731 (__libc_cleanup_region_start, __libc_cleanup_region_end,
12732 __libc_clean_end): Define these to call the cleanup function after
12733 normal exit when they're supposed to.
12735 * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
12736 Take new first arg DOIT, a boolean saying whether to really install
12737 any cleanup handler.
12738 (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
12739 (__libc_cleanup_end): Likewise.
12740 * sysdeps/generic/bits/libc-lock.h: Same changes.
12741 * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
12742 * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
12743 * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
12745 * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
12746 * sysdeps/generic/bits/stdio-lock.h
12747 (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
12749 2001-08-23 Jakub Jelinek <jakub@redhat.com>
12751 * elf/ldconfig.c (search_dir): Remove stale symlinks.
12753 2001-08-23 Jakub Jelinek <jakub@redhat.com>
12755 * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New
12757 (_dl_lookup_symbol): Lookup relocations in cache and store successfull
12759 (_dl_lookup_versioned_symbol): Likewise.
12760 * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
12762 * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
12763 * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
12764 (lookup_cache, lookup_cache_versioned): Add declarations.
12766 2001-08-23 Ulrich Drepper <drepper@redhat.com>
12768 * stdlib/tst-random.c (main): Swap parameters in fail call.
12769 Patch by Pete Bevin <pete@petebevin.com>.
12771 2001-08-23 Jakub Jelinek <jakub@redhat.com>
12773 * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
12775 2001-08-23 Ulrich Drepper <drepper@redhat.com>
12777 * malloc/obstack.c: Indent preprocessor directives.
12778 Patch by Jim Meyering <meyering@ascend.com>.
12780 * po/ja.po: Update from translation team.
12782 2001-08-23 Roland McGrath <roland@frob.com>
12784 * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
12786 * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
12787 Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
12789 2001-08-22 Roland McGrath <roland@frob.com>
12791 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
12792 __libc_lock_define_recursive.
12793 * elf/dl-open.c: Don't declare it here any more.
12794 * elf/dl-close.c: Likewise.
12795 * elf/dl-lookup.c: Likewise.
12796 * elf/dl-iteratephdr.c: Likewise.
12797 * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
12798 __libc_lock_unlock_recursive.
12799 * elf/dl-close.c (_dl_close): Likewise
12800 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
12801 * elf/dl-open.c (_dl_open): Likewise
12803 * sysdeps/generic/bits/libc-lock.h
12804 (__libc_lock_define_recursive): New macro.
12805 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
12806 (_IO_lock_lock): Use __libc_lock_lock_recursive.
12807 (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
12809 * conform/conformtest.pl (checknamespace): Sort the output list.
12811 * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
12812 (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
12813 definitions conditional on [__USE_XOPEN].
12815 * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
12816 these unconditionally, not only use [__USE_BSD], so as to match
12817 the sysdeps/unix/sysv/linux files.
12819 2001-08-22 Ulrich Drepper <drepper@redhat.com>
12821 * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
12824 * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
12827 2001-08-22 Roland McGrath <roland@frob.com>
12829 * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
12830 conditionalization of sa_handler/sa_sigaction member types to
12831 match the sysdeps/unix/sysv/linux file.
12833 2001-08-22 Ulrich Drepper <drepper@redhat.com>
12835 * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
12836 symbol sizes a bit better.
12838 * sysdeps/ia64/strncpy.S: Complete rewrite.
12839 Contributed by Jakub Jelinek <jakub@redhat.com>.
12841 * string/stratcliff.c (main): Add strncpy test.
12843 2001-08-22 Roland McGrath <roland@frob.com>
12845 * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
12846 and don't declare unsetenv or _environ directly.
12847 (unsetenv): Return int, not void. Use __environ instead of _environ.
12849 2001-08-01 Mark Kettenis <kettenis@gnu.org>
12851 * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
12852 * sysdeps/unix/bsd/bsd4.4/Versions: New file.
12853 * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
12854 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
12855 test for cmsg struct size.
12857 2001-04-23 Paul Eggert <eggert@twinsun.com>
12859 * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
12860 Rename __argc to ___argc in prototypes to avoid compatibility
12861 problems with systems that reserve the identifier "__argc".
12862 Similarly for __argv.
12864 2001-08-21 Roland McGrath <roland@frob.com>
12866 * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
12868 * mach/Makefile (tests): Removed.
12869 * mach/hello.c: File removed.
12871 2001-08-22 Ulrich Drepper <drepper@redhat.com>
12873 * po/sv.po: Update from translation team.
12875 * stdio-common/vfscanf.c: Fix handling of %l[].
12876 Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
12878 * libio/Makefile (tests): Add tst-sscanf.
12879 * libio/tst-sscanf.c: New file.
12881 * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
12882 * malloc/mtrace.c (tr_where): dli_sname always points to a
12883 non-empty string if != NULL.
12884 Reported by Tim Janik <timj@gtk.org>.
12886 2001-08-22 Jakub Jelinek <jakub@redhat.com>
12888 * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
12889 buf. Free resources on failure.
12890 * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
12891 (makefd_xprt): Likewise.
12892 * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
12893 * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
12894 * sunrpc/auth_unix.c (authunix_create): Likewise.
12896 2001-08-21 Jakub Jelinek <jakub@redhat.com>
12898 * string/strnlen.c: Remove.
12899 * sysdeps/generic/strnlen.c: New file.
12900 * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
12902 2001-08-21 Roland McGrath <roland@frob.com>
12904 * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
12905 as a macro, not an extern inline function.
12907 * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
12908 * Versions.def (libc): Add GLIBC_2.2.5 set.
12909 * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
12910 (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
12912 2001-08-20 Roland McGrath <roland@frob.com>
12914 * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
12915 (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
12917 2001-08-21 Ulrich Drepper <drepper@redhat.com>
12919 * string/bits/string2.h: Remove strnlen optimization here.
12920 * sysdeps/i386/i486/bits/string.h: Add it here.
12922 2001-08-21 Wolfram Gloger <wg@malloc.de>
12924 * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
12926 2001-08-21 Ulrich Drepper <drepper@redhat.com>
12928 * po/gl.po: Update from translation team.
12930 2001-08-20 Ulrich Drepper <drepper@redhat.com>
12932 * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
12933 * misc/err.c (convert_and_print): Likewise.
12935 * malloc/obstack.c (print_and_abort): Use fprintf instead of two
12938 2001-08-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
12940 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
12941 change of the gregset_t type.
12942 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
12944 2001-08-20 kaz Kojima <kkojima@rr.iij4u.or.jp>
12946 * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
12948 2001-08-20 Ulrich Drepper <drepper@redhat.com>
12950 * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
12952 * string/strnlen.c: Fix the implementation. We cannot use memchr.
12954 2001-08-18 Mark Kettenis <kettenis@gnu.org>
12956 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
12957 before calling the cthreads initialization code.
12959 2001-08-20 Ulrich Drepper <drepper@redhat.com>
12961 * argp/argp-help.c: Fix two problems introduced in last change.
12963 * include/dirent.h: Include <dirstream.h> first.
12965 2001-08-19 Ulrich Drepper <drepper@redhat.com>
12967 * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
12969 * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
12970 * sunrpc/xdr_rec.c: Likewise.
12971 * sunrpc/xdr_mem.c: Likewise.
12972 * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
12973 * sunrpc/rpc_cmsg.c: Likewise.
12974 * sunrpc/getrpcport.c (getrpcport): Likewise.
12975 * sunrpc/clnt_simp.c (callrpc): Likewise.
12976 * sunrpc/clnt_gen.c (clnt_create): Likewise.
12977 * string/envz.c: Likewise.
12979 * po/ko.po: Update from translation team.
12981 * argp/argp-help.c: Handle wide oriented stderr stream.
12983 2001-08-18 Ulrich Drepper <drepper@redhat.com>
12985 * sysdeps/generic/strtol.c: Little optimizations. Add some
12988 * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
12990 * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
12991 * wcsmbs/wcwidth.c (wcwdith): Likewise.
12992 * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
12994 * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
12996 * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
12998 * time/time.h (struct timespec): Use __time_t for tv_sec element.
13000 * sysdeps/generic/inttypes.h: Define __wchar_t. Use it instead of
13001 wchar_t for function declarations and defintions.
13003 * misc/sys/select.h: Define __need_time_t before including <time.h>.
13004 Define suseconds_t if it hasn't happened yet.
13006 * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
13008 * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
13010 * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
13013 * conform/data/stddef.h-data: Remove wint_t.
13015 * conform/conformtest.pl: Change namespace test to take #undef
13016 lines into account.
13018 * conform/data/netinet/in.h-data: Fix typo in allow-header line.
13020 * conform/data/sys/socket.h-data: Add sockatmark.
13022 2001-08-17 Ulrich Drepper <drepper@redhat.com>
13024 * io/fts.c: Update from recent BSD source.
13026 2001-08-17 Roland McGrath <roland@frob.com>
13028 * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
13029 * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
13032 2001-08-17 Ulrich Drepper <drepper@redhat.com>
13034 * locale/duplocale.c (__duplocale): Also initialize the special
13035 __ctype_* elements.
13037 * conform/data/netdb.h-data: Adjust gai_strerror return type.
13039 2001-08-17 Andreas Jaeger <aj@suse.de>
13041 * misc/getpass.c: Include wchar.h for prototypes.
13042 * malloc/obstack.c: Likewise.
13044 2001-08-17 Ulrich Drepper <drepper@redhat.com>
13046 * sunrpc/svc_simple.c (universal): Use __write instead of write.
13048 * wcsmbs/wcscoll.c: Also define __wcscoll.
13049 * include/wchar.h: Declare __wcscoll.
13051 * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
13052 * libio/vwprintf.c: Likewise.
13053 * libio/wprintf.c: Likewise.
13055 * iconv/gconv_cache.c: Use __munmap instead of munmap.
13057 2001-08-16 Ulrich Drepper <drepper@redhat.com>
13059 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
13060 instead of mbrtowc.
13061 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
13062 wcslen, and __wcscoll instead of wcscoll.
13064 * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
13066 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
13067 __getuid instead of getuid.
13069 * stdio-common/perror.c (perror): Use __close instead of close.
13070 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
13071 * libio/freopen.c (freopen): Likewise.
13072 * libio/freopen64.c (freopen64): Likewise.
13074 * libio/tst-ungetwc2.c (main): Define str const.
13076 * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
13077 * libio/fwprintf.c: Also define __fwprintf.
13078 * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
13079 * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
13080 * assert/assert-perr.c: Likewise.
13081 * assert/assert.c: Likewise.
13082 * gmon/gmon.c: Likewise.
13083 * inet/rcmd.c: Likewise.
13084 * malloc/obstack.c: Likewise.
13085 * misc/err.c: Likewise.
13086 * misc/error.c: Likewise.
13087 * misc/getpass.c: Likewise.
13088 * posix/getopt.c: Likewise.
13089 * resolv/res_hconf.c: Likewise.
13090 * stdio-common/perror.c: Likewise.
13091 * stdio-common/psignal.c: Likewise.
13092 * stdlib/fmtmsg.c: Likewise.
13093 * sunrpc/auth_unix.c: Likewise.
13094 * sunrpc/clnt_perr.c: Likewise.
13095 * sunrpc/clnt_tcp.c: Likewise.
13096 * sunrpc/clnt_udp.c: Likewise.
13097 * sunrpc/clnt_unix.c: Likewise.
13098 * sunrpc/svc_simple.c: Likewise.
13099 * sunrpc/svc_tcp.c: Likewise.
13100 * sunrpc/svc_udp.c: Likewise.
13101 * sunrpc/svc_unix.c: Likewise.
13102 * sunrpc/xdr.c: Likewise.
13103 * sunrpc/xdr_array.c: Likewise.
13104 * sunrpc/xdr_rec.c: Likewise.
13105 * sunrpc/xdr_ref.c: Likewise.
13106 * sysdeps/generic/wordexp.c: Likewise.
13108 * po/it.po: Update from translation team.
13110 * misc/err.c: Handle wide oriented stderr stream.
13112 2001-08-14 Tom Rix <trix@redhat.com>
13114 * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
13115 * iconv/Makefile: Fix gconv_cache.c CFLAGS.
13117 2001-08-13 Tom Rix <trix@redhat.com>
13119 * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
13120 * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
13123 2001-08-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
13125 * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
13126 Store the access registers to the ucontext structure.
13127 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
13130 * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
13131 Load the access registers from the ucontext structure.
13132 * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
13135 * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
13136 offsets to the new ucontext layout.
13137 * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
13139 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
13140 of the ucontext structure.
13141 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
13143 2001-08-15 Ulrich Drepper <drepper@redhat.com>
13145 * misc/error.c (error): Handle wide oriented stderr stream correctly.
13146 (error_at_line): Likewise.
13148 * stdio-common/perror.c (perror): Implement according to standard.
13149 The stream orientation must not be changed if the stream was not
13150 oriented before the call.
13151 * stdio-common/Makefile (tests): Add tst-perror.
13152 * stdio-common/tst-perror.c: New file.
13155 See ChangeLog.12 for earlier changes.