1 2003-03-27 Ulrich Drepper <drepper@redhat.com>
3 * Makefile: Remove libmd5script goal.
5 2003-03-25 Jakub Jelinek <jakub@redhat.com>
7 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Restore
8 special handling of relocations against local symbols.
10 2003-03-27 Steven Munroe <sjmunroe@us.ibm.com>
12 * sysdeps/powerpc/bits/atomic.h
13 (__arch_compare_and_exchange_bool_32_acq): Move to [!__powerpc64__].
14 [__powerpc64__] (__arch_compare_and_exchange_bool_32_acq):
15 Define PPC64 specific version.
16 [__powerpc64__] (__arch_compare_and_exchange_bool_64_acq):
17 Change (mem) constraint to "b".
18 [__powerpc64__] (__arch_atomic_exchange_and add_64):
19 Replace addi with add. Change (value) contraint to "r".
20 Change (mem) constraint to "b".
21 [__powerpc64__] (__arch_atomic_decrement_if_positive_64): New macro.
22 (__arch_atomic_exchange_32): Change (mem) constraint to "b".
23 (__arch_atomic_exchange_and_add_32): Change (mem) constraint to "b".
24 (__arch_atomic_decrement_if_positive_32): New macro.
25 (atomic_decrement_if_positive): Use __arch* macros.
27 2003-03-27 Jakub Jelinek <jakub@redhat.com>
29 * sysdeps/ia64/fpu/libm-test-ulps: Update.
31 2003-03-27 Roland McGrath <roland@redhat.com>
33 * scripts/rpm2dynsym.sh: New file.
34 * Makefile (distribute): Add it.
36 2003-03-27 David Mosberger <davidm@hpl.hp.com>
38 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Restore caller's
39 ar.unat before returning. Add missing .mem.offset directives
40 to ensure file gets assembled without warnings.
41 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
43 2003-03-27 Jakub Jelinek <jakub@redhat.com>
45 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf) <_SC_MONOTONIC_CLOCK>:
46 Return -1 instead of 0 if clock_getres failed.
48 2003-03-27 Roland McGrath <roland@redhat.com>
50 * scripts/abilist.awk: If variable `parse_names' is set, grok the file
51 header lines and write out foo.symlist files for each foo.so.NN listed.
53 * libio/libioP.h (_IO_wfile_jumps): Remove attribute_hidden.
54 This symbol is exported, and we don't want to hide it.
55 Add libc_hidden_proto instead.
56 (_IO_file_jumps): Add libc_hidden_proto.
57 * libio/wfileops.c (_IO_wfile_jumps): Add libc_hidden_data_def.
59 * libio/fileops.c (_IO_file_jumps): Likewise.
60 * libio/stdfiles.c: Don't use INTUSE on them.
61 * libio/iofdopen.c (_IO_new_fdopen): Likewise.
62 * libio/iofopen.c (__fopen_internal): Likewise.
63 * libio/freopen.c (freopen): Likewise.
64 * libio/freopen64.c (freopen64): Likewise.
65 * libio/iovdprintf.c (_IO_vdprintf): Likewise.
67 * Makerules (check-abi) [$(enable-check-abi) = warn]:
68 Ignore exit status from diff.
69 * configure.in (enable_check_abi): Document possible value "warn".
70 Change default to no for now.
71 * configure: Regenerated.
73 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Emit stub_warning
74 macro calls and a #include <stub-tag.h> at the end.
75 * Makerules ($(objpfx)stubs): Tweak sed commands.
77 * sysdeps/unix/sysv/linux/syscalls.list: Use - rather than EXTRA in
78 caller column for *xattr syscalls, since they are in sysdeps/generic.
80 * sysdeps/unix/sysv/linux/i386/setfsuid.c: setfsgid -> setfsuid
81 * sysdeps/unix/sysv/linux/i386/setfsgid.c: setfsuid -> setfsgid
83 2003-03-26 Roland McGrath <roland@redhat.com>
85 * Makerules (check-abi-config): Use /thread instead of /tls when
86 use-thread and not just use-tls is set.
88 * Makerules (update-abi): Put quotes around $(update-abi-config).
90 * elf/Makefile (check-abi): Depend on check-abi-ld.
91 (update-abi): Depend on update-abi-ld.
93 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
95 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Use INTERNAL_SYSCALL and
96 do not check for errors (unless testing for 32bit variant).
97 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
99 2003-03-27 Philip Blundell <philb@gnu.org>
101 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET_NOERRNO): Use
102 unconditional mov. Remove nop.
104 * sysdeps/unix/sysv/linux/kernel-features.h
105 (__ASSUME_VFORK_SYSCALL): Define for kernel 2.4 on arm.
106 * sysdeps/unix/sysv/linux/arm/vfork.S: Elide compatibility code
107 when __ASSUME_VFORK_SYSCALL is defined.
108 * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise for
109 __ASSUME_MMAP2_SYSCALL.
110 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise for
111 __ASSUME_REALTIME_SIGNALS.
113 2003-03-26 Ulrich Drepper <drepper@redhat.com>
115 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_COPY): Define to 2
116 only if DL_NO_COPY_RELOCS is not defined.
117 * sysdeps/ia64/dl-lookupcfg.h: Define DL_NO_COPY_RELOCS.
119 2003-03-26 Roland McGrath <roland@redhat.com>
121 * sysdeps/unix/make-syscalls.sh: When an undefined syscall has
122 SOURCE=-, append its symbol names to make variable unix-stub-syscalls.
123 * sysdeps/unix/Makefile [$(subdir) = misc] [unix-stub-syscalls]
124 (sysdep_routines): Add stub-syscalls.
125 ($(objpfx)stub-syscalls.c): New target.
126 (generated): Add stub-syscalls.c.
128 * tls.make.c: Also define use-tls according to USE_TLS macro.
130 2003-03-26 Ulrich Drepper <drepper@redhat.com>
132 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (struct siginfo): Avoid
133 no-op padding element.
134 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
135 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
136 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
137 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
139 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
141 * sysdeps/unix/sysv/linux/i386/getgroups.c: Fix the error
142 condition check for the return value of getgroups32.
144 2003-03-26 Jakub Jelinek <jakub@redhat.com>
146 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_NOERRNO):
148 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_NOERRNO,
149 PSEUDO_END_NOERRNO): Define.
150 * sysdeps/unix/sysdep.h (PSEUDO_END_NOERRNO): Fix a typo.
151 Define to PSEUDO_END.
153 2003-03-26 Ulrich Drepper <drepper@redhat.com>
155 * abilist/librt.abilist: Add new timer interfaces for 64-bit archs.
157 2003-03-25 Jiro SEKIBA <jir@yamato.ibm.com>
159 * iconvdata/euc-tw.c (from_euc_tw): Fix return value of TO_LOOP.
160 * iconvdata/bug-iconv4.c: New file.
161 * iconvdata/Makefile (tests): Add bug-iconv4.
163 2003-03-25 H.J. Lu <hjl@gnu.org>
165 * elf/dl-lookup.c (_dl_lookup_symbol): Avoid looking up protected
167 (_dl_lookup_versioned_symbol): Likewise.
169 2003-03-26 Jakub Jelinek <jakub@redhat.com>
171 * csu/tst-atomic.c (do_test): Add some new
172 atomic_compare_and_exchange_val_acq, atomic_add_zero,
173 atomic_compare_and_exchange_bool_acq and atomic_add_negative tests.
174 * include/atomic.h (atomic_add_negative, atomic_add_zero):
175 Prefix local variable so that it doesn't clash with the one
176 in atomic_exchange_and_add.
177 * sysdeps/ia64/bits/atomic.h (atomic_exchange): Fix for long/void *
179 (atomic_exchange_and_add): Implement using __sync_fetch_and_add_?i.
180 * sysdeps/powerpc/bits/atomic.h (atomic_exchange_and_add): Force
182 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_64_acq):
184 * sysdeps/x86_64/bits/atomic.h
185 (__arch_compare_and_exchange_val_64_acq): Cast newval and oldval to
187 (atomic_exchange): Cast newvalue to long if sizeof == 8.
188 (atomic_exchange_and_add): Cast value to long if sizeof == 8.
189 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
190 (atomic_bit_set): Shift 1L up in all cases to shut up warnings.
192 2003-03-21 Martin Schwidefsky <schwidefskyde.ibm.com>
194 * sysdeps/s390/s390-32/backtrace.c (__backtrace): Remove high order
195 bit from backtrace addresses.
197 2003-03-21 Andreas Schwab <schwab@suse.de>
199 * sysdeps/unix/sysv/linux/i386/chown.c: Don't define any versioned
202 2003-03-25 Roland McGrath <roland@redhat.com>
204 * config.make.in (enable-check-abi): New variable from configure.
205 * configure.in (enable_check_abi): New substituted variable,
206 controlled by --{enable,disable}-check-abi (default yes).
207 * configure: Regenerated.
208 * Makerules [$(enable-check-abi) = yes] (tests): Put this condition
209 on check-abi dependency.
211 2003-03-26 Andreas Schwab <schwab@suse.de>
213 * sysdeps/m68k/m68020/bits/atomic.h: Fix typos.
214 * include/atomic.h: Likewise.
216 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Define ret_NOERRNO.
218 2003-03-25 Roland McGrath <roland@redhat.com>
220 * sysdeps/powerpc/bits/atomic.h (__arch_atomic_exchange_32): New macro.
221 (__arch_atomic_exchange_64): New macro.
222 (atomic_exchange): Use them.
223 (__arch_atomic_exchange_and_add_32): New macro.
224 (__arch_atomic_exchange_and_add_64): New macro.
225 (atomic_exchange_and_add): Use them.
226 Original patch from Steven Munroe <sjmunroe@us.ibm.com>.
228 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
230 * sysdeps/mips/sgidefs.h (_MIPS_ISA_MIPS32, _MIPS_ISA_MIPS64):
232 * sysdeps/mips/sys/asm.h: Test _MIPS_ISA against them on all
234 (ALSZ, ALMASK, SZREG, REG_S, REG_L): Define based on ABI, not ISA.
235 (PTR_ADD, etc): Test _MIPS_SZPTR instead of _MIPS_SZLONG.
236 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
237 to decide whether to add padding.
238 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
239 to decide whether to add padding.
240 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h (struct
241 old_kernel_sigaction): Likewise.
243 2003-03-25 Ulrich Drepper <drepper@redhat.com>
245 * csu/tst-atomic.c: Adjust tests to what atomic_add_negative and
246 atomic_add_zero were supposed to do.
247 * include/atomic.h: Adjust atomic_add_negative and atomic_add_zero
250 * sysdeps/generic/bits/typesizes.h (__TIMER_T_TYPE): Define as void*.
251 This matches the new timer implementation.
252 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__TIMER_T_TYPE):
254 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__TIMER_T_TYPE):
256 * sysdeps/unix/sysv/linux/bits/siginfo.h (struct siginfo): Adjust
257 timer info for what the kernel provides these days.
258 (struct sigevent): Add _tid field.
259 Define SIGEV_THREAD_ID.
260 Remove struct __pthread_attr_s forward declaration.
261 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Likewise.
262 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
263 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
264 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
266 * Versions.def (librt): Add GLIBC_2.3.3.
268 * abilist/libpthread.abilist: Update for nptl.
270 2003-03-24 Jon Grimm <jgrimm@us.ibm.com>
272 * inet/netinet/in.h: Add IPPROTO_SCTP.
274 2003-03-24 Ulrich Drepper <drepper@redhat.com>
276 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLET): Define.
278 2003-03-24 Philip Blundell <philb@gnu.org>
280 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL):
281 Remove a1 from clobber list.
283 2003-03-24 Ulrich Drepper <drepper@redhat.com>
285 * timezone/antarctica: Update from tzdata2003a.
286 * timezone/asia: Likewise.
287 * timezone/australasia: Likewise.
288 * timezone/europe: Likewise.
289 * timezone/iso3166.tab: Likewise.
290 * timezone/northamerica: Likewise.
291 * timezone/southamerica: Likewise.
292 * timezone/zone.tab: Likewise.
294 2003-03-24 Steven Munroe <sjmunroe@us.ibm.com>
296 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_END_NOERRNO): Fix typo.
298 2003-03-23 Ulrich Drepper <drepper@redhat.com>
300 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ret_NOERRNO): Avoid
301 unwanted expansion by definining to ret. Patch by Ian Wienand.
303 * sysdeps/unix/make-syscalls.sh: Recognize 'E' in first position of
304 the parameter description to denote no error checking. Generate
305 appropriate pseudo asm code.
306 * sysdeps/unix/syscalls.list: Mark getgid, getpid, getuid with 'E'.
307 * sysdeps/unix/sysv/linux/syscalls.list: Mark getegid, geteuid,
308 getpgrp, and getppid with 'E'.
309 * sysdeps/powerpc/powerpc32/sysdep.h: Define PSEUDO_NOERRNO,
310 PSEUDO_END_NOERRNO, and ret_NOERRNO.
311 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
312 * sysdeps/unix/sysdep.h: Likewise.
313 * sysdeps/unix/alpha/sysdep.h: Likewise.
314 * sysdeps/unix/sparc/sysdep.h: Likewise.
315 * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
316 * sysdeps/unix/sysv/linux/cris/sysdep.h: Likewise.
317 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
318 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
319 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
320 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
321 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
322 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
323 * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
324 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
325 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
327 2003-03-23 Roland McGrath <roland@redhat.com>
329 * Makeconfig (+includes): Don't use $(last-includes).
331 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
333 * sysdeps/unix/sysv/linux/configure.in: Update mips64 patterns.
334 * sysdeps/unix/sysv/linux/configure: Rebuilt.
336 2003-03-23 Jakub Jelinek <jakub@redhat.com>
338 * sysdeps/alpha/fpu/libm-test-ulps: Update.
339 * sysdeps/arm/libm-test-ulps: Update.
340 * sysdeps/hppa/fpu/libm-test-ulps: Update.
341 * sysdeps/ia64/fpu/libm-test-ulps: Update.
342 * sysdeps/mips/fpu/libm-test-ulps: Update.
343 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
344 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
345 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
346 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
347 * sysdeps/sh/sh4/fpu/libm-test-ulps: Update.
348 * sysdeps/s390/fpu/libm-test-ulps: Update.
349 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
351 2003-03-22 Roland McGrath <roland@redhat.com>
353 * include/atomic.h: Put parens around all macro arguments.
354 (__atomic_val_bysize, __atomic_bool_bysize): New macros.
355 (atomic_compare_and_exchange_val_acq): Use it.
356 (atomic_compare_and_exchange_bool_acq): Likewise.
357 (atomic_increment_and_test): Invert sense of test.
358 (atomic_decrement_and_test): Likewise.
359 * csu/tst-atomic.c: Update those tests to match.
361 2003-03-22 Jakub Jelinek <jakub@redhat.com>
363 * include/atomic.h (atomic_compare_and_exchange_val_acq): Add comment.
364 Don't define if __arch_compare_and_exchange_val_32_acq is not defined.
365 (atomic_compare_and_exchange_bool_acq): Add comment. Don't use
366 __oldval variable in the macro, since it might be macro argument.
367 (atomic_decrement_if_positive): Initialize __memp, remove setting
368 of non-existent variable.
369 (atomic_bit_test_set): Cast 1 to __typeof (*mem) before shifting.
370 * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Implement
371 using atomic_compare_and_exchange_val_acq.
372 (atomic_decrement_if_positive, atomic_bit_test_set): Define.
373 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
375 (__arch_compare_and_exchange_bool_8_acq): ... this.
376 (__arch_compare_and_exchange_val_16_acq): Renamed from...
377 (__arch_compare_and_exchange_bool_16_acq): ... this.
378 (__arch_compare_and_exchange_val_32_acq): Return old value. Renamed
380 (__arch_compare_and_exchange_bool_32_acq): ... this.
381 (__arch_compare_and_exchange_val_64_acq): Return old value. Renamed
383 (__arch_compare_and_exchange_bool_64_acq): ... this.
384 (__arch_compare_and_exchange_val_32_acq): Use __typeof for local
385 variables types instead of assuming int.
386 Change prefix of local variables to __arch.
387 * sysdeps/generic/bits/atomic.h (arch_compare_and_exchange_acq):
389 (atomic_compare_and_exchange_val_acq,
390 atomic_compare_and_exchange_bool_acq): Define.
392 * csu/tst-atomic.c: New test.
393 * csu/tst-atomic-long.c: New test.
394 * csu/Makefile (tests): Add tst-atomic and tst-atomic-long.
396 * malloc/memusagestat.c (main): Kill warning if uint64_t is ulong.
398 * sysdeps/s390/Versions: Add trailing newline.
400 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Kill warning
401 if INTERNAL_SYSCALL_ERROR_P doesn't use its first argument.
403 2003-03-22 Andreas Schwab <schwab@suse.de>
405 * sysdeps/m68k/fpu/libm-test-ulps: Update.
407 * sysdeps/m68k/m68020/bits/atomic.h: New file.
408 * sysdeps/m68k/m68020/atomicity.h: Removed.
410 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
412 * sysdeps/mips/elf/ldsodefs.h: Add mips-specific elf64 relocation
413 data structures and macros. Protect from multiple inclusion.
415 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Fix harmless
418 2003-03-21 Andreas Jaeger <aj@suse.de>
420 * sysdeps/i386/fpu/libm-test-ulps: Update.
422 * math/libm-test.inc (tgamma_test): Recompute some constants with
424 (lgamma_test): Likewise.
425 (ccos_test): Likewise.
426 (ccosh_test): Likewise.
427 (clog10_test): Likewise.
428 (csin_test): Likewise.
429 (csinh_test): Likewise.
430 (ctan_test): Likewise.
431 (ctanh_test): Likewise.
433 2003-03-19 Jakub Jelinek <jakub@redhat.com>
435 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Regenerated.
437 2003-03-21 Roland McGrath <roland@redhat.com>
439 * sysdeps/i386/i486/bits/atomic.h (atomic_bit_set): Use "ir"
440 constraint to permit non-constant BIT argument.
441 (atomic_bit_test_set): Likewise.
442 * sysdeps/x86_64/bits/atomic.h (atomic_bit_test_set): Likewise.
443 (atomic_bit_set): Likewise. Use 1UL in case that BIT might be >= 32.
444 For quadword case, use "i" constraint if __builtin_constant_p and < 32
445 or "r" constraint otherwise.
447 * configure.in: Move AC_PROG_CC and other program-finding before all
449 * configure: Regenerated.
451 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
453 * sysdeps/mips/mips64/memcpy.S: Fix porting bug that broke
454 unaligned copying of 8-15 bytes. From Chris Demetriou
455 <cgd@broadcom.com>. Fix label names.
456 * sysdeps/mips/mips64/memset.S: Fix label names. Make similar
457 change as to memcpy.S.
458 * sysdeps/mips/memcpy.S: Formatting changes.
459 * sysdeps/mips/memset.S: Likewise.
461 2003-03-21 Roland McGrath <roland@redhat.com>
463 * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add trailing semicolon.
465 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
467 * sysdeps/mips/mips64/memcpy.S, sysdeps/mips/mips64/memset.S: New.
468 * sysdeps/mips/memcpy.S, sysdeps/mips/memset.S: Update comments.
470 2003-03-21 Roland McGrath <roland@redhat.com>
472 * sysdeps/i386/i486/bits/atomic.h
473 (__arch_compare_and_exchange_val_64_acq): Rewrite abort-calling
474 version of the macro to avoid compile-time warnings.
475 [! __PIC__] (__arch_compare_and_exchange_64_acq): Rename to above.
476 (atomic_exchange_and_add, atomic_add): Fix name and usage of it.
477 (atomic_increment, atomic_decrement): Likewise.
479 2003-03-21 Ulrich Drepper <drepper@redhat.com>
481 * sysdeps/x86_64/bits/atomic.h: Don't use matching memory constraints.
482 * sysdeps/i386/i486/bits/atomic.h: Likewise.
484 2003-03-21 Roland McGrath <roland@redhat.com>
486 * include/atomic.h (atomic_compare_and_exchange_bool_acq): Typo fix.
488 2003-03-20 Ulrich Drepper <drepper@redhat.com>
490 * include/atomic.h: Define atomic_compare_and_exchange_val_acq,
491 atomic_compare_and_exchange_val_rel,
492 atomic_compare_and_exchange_bool_acq, and
493 atomic_compare_and_exchange_bool_rel instead of
494 atomic_compare_and_exchange_acq and atomic_compare_and_exchange_rel.
495 * sysdeps/i386/i486/bits/atomic.h: Define
496 __arch_compare_and_exchange_val_*_acq instead of
497 __arch_compare_and_exchange_*_acq.
498 * sysdeps/x86_64/bits/atomic.h: Likewise.
499 * sysdeps/ia64/bits/atomic.h: Define
500 __arch_compare_and_exchange_bool_*_acq instead of
501 __arch_compare_and_exchange_*_acq.
502 * sysdeps/powerpc/bits/atomic.h: Likewise.
503 * sysdeps/s390/bits/atomic.h: Likewise.
504 * gmon/mcount.c: Adjust for new form of compare&exchange macros.
505 * malloc/set-freeres.c: Likewise.
506 * nscd/cache.c: Likewise.
507 * stdlib/cxa_finalize.c: Likewise.
508 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
510 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
512 * sysdeps/mips/bits/setjmp.h: n32 has only 6 call-saved fpregs.
513 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Adjust.
514 * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
516 * sysdeps/unix/sysv/linux/mips/pread.c: Don't break up offset
517 into high and low halves on n64.
518 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
519 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
520 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
522 2003-03-20 Ulrich Drepper <drepper@redhat.com>
524 * include/atomic.h (atomic_decrement_if_positive): Adjust for the
525 correct atomic_compare_and_exchange_acq semantics.
527 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
529 * sysdeps/mips/ieee754.h: Remove excess #endif.
531 2003-03-20 Roland McGrath <roland@redhat.com>
533 * sysdeps/powerpc/bits/atomic.h (atomic_exchange): Remove unused
534 variable. Remove superfluous memory clobber.
536 * include/atomic.h: Syntax braino fix.
538 * posix/tst-nice.c (do_test): Use %m formats instead of printing errno
539 in decimal. Don't bail if niced at start. Just check that nice call
540 bumps the total at all.
542 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
544 * sysdeps/mips/bits/setjmp.h: Store all N32 and N64 registers,
545 including pc, gp, sp and fp, as long long.
546 * sysdeps/mips/mips64/setjmp.S: Pass gp to __sigsetjmp_aux.
547 * sysdeps/mips/mips64/setjmp_aux.c: Adjust type of arguments.
548 Add gp argument, and set gp in the jmpbuf to it.
549 * sysdeps/mips/setjmp_aux.c: Revert to o32-only.
551 2003-03-20 Ulrich Drepper <drepper@redhat.com>
553 * include/atomic.h: Define atomic_exchange and
554 atomic_decrement_if_positive if not already defined. Add some
556 * sysdeps/i386/i486/bits/atomic.h: Define atomic_exchange.
557 * sysdeps/x86_64/bits/atomic.h: Likewise.
558 * sysdeps/ia64/bits/atomic.h: Pretty printing. Define atomic_exchange.
559 * sysdeps/powerpc/bits/atomic.h: Pretty printing. Define
560 atomic_exchange, atomic_exchange_and_add, and
561 atomic_decrement_if_positive
563 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
565 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: Sign-extend
566 with a single instruction.
568 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Define
570 (elf_machine_runtime_setup): Cast link_map pointer to Elf Addr
572 (elf_machine_rel, elf_machine_rel_relative): Cast symidx to Elf
573 Word before comparing with gotsym. Take reloc_addr argument as
574 void*. Remove the code added for the compiler to drop any
575 alignment assumptions.
577 2003-03-19 Ulrich Drepper <drepper@redhat.com>
579 * Makefile (distribute): Add include/atomic.h and bits/atomic.h.
580 * include/atomic.h: New file.
581 * sysdeps/i386/i486/bits/atomic.h: New file.
582 * sysdeps/x86_64/bits/atomic.h: New file.
583 * sysdeps/s390/bits/atomic.h: New file.
584 * sysdeps/sh/bits/atomic.h: New file.
585 * sysdeps/ia64/bits/atomic.h: New file.
586 * sysdeps/powerpc/bits/atomic.h: New file.
587 * sysdeps/generic/bits/atomic.h: New file.
588 * sysdeps/i386/i486/atomicity.h: Removed.
589 * sysdeps/x86_64/atomicity.h: Removed.
590 * sysdeps/s390/s390-32/atomicity.h: Removed.
591 * sysdeps/s390/s390-64/atomicity.h: Removed.
592 * sysdeps/ia64/atomicity.h: Removed.
593 * sysdeps/powerpc/powerpc32/atomicity.h: Removed.
594 * sysdeps/powerpc/powerpc64/atomicity.h: Removed.
595 * elf/dl-profile.c: Use atomic.h instead of atomicity.h. Adjust
596 use of macros from atomicity.h to new names and semantics.
597 * gmon_mcount.c: Likewise.
598 * malloc/set-freeres.c: Likewise.
599 * nscd/cache.c: Likewise.
600 * stdlib/cxa_finalize.c: Likewise.
601 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
603 2003-03-19 Alexandre Oliva <aoliva@redhat.com>
605 * sysdeps/mips/ieee754.h: New file, suitable to replace both
606 ../ieee754/ieee754.h and ../ieee754/ldbl-128/ieee754.h, kept
607 mips-specific for now.
609 2003-03-19 Ulrich Drepper <drepper@redhat.com>
611 * stdlib/strtod.c (INTERNAL): While eating trailing zeros handle
612 hexdigits correctly. Reported by Fred Tydeman <tydeman@tybor.com>.
613 * stdlib/tst-strtod.c: Add test for the bug.
615 * posix/tst-nice.c (do_test): Remove invalid of return value.
616 Don't run test if initial level != 0.
618 2003-03-19 Amos Waterland <apw@us.ibm.com>
620 * posix/tst-nice.c: New file.
621 * posix/Makefile (tests): Add tst-nice.
623 2003-03-18 Roland McGrath <roland@redhat.com>
625 * abilist: New directory of libfoo.abilist files maintained using
626 scripts/merge-abilist.awk and "make update-abi" rules.
627 * Makefile (distribute): Add abilist/*.abilist.
628 * Makerules [$(build-shared) = yes] [$(subdir)] (tests):
631 * configure.in: Move $critic_missing check after all AC_CHECK_PROG_VER.
632 * configure: Regenerated.
634 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64): Fix name.
636 2003-03-18 Ulrich Drepper <drepper@redhat.com>
638 * sysdeps/posix/sysconf.c (__sysconf): Handle _SC_MONOTONIC_CLOCK
641 2003-03-18 Steven Munroe <sjmunroe@us.ibm.com>
643 * sysdeps/powerpc/powerpc64/memcpy.S: New file.
645 2003-03-18 Ulrich Drepper <drepper@redhat.com>
647 * Versions.def: Add GLIBC_2.3.3 for libpthread.
649 2003-03-17 Ulrich Drepper <drepper@redhat.com>
651 * sysdeps/generic/libc-start.c [!SHARED &&
652 !LIBC_START_MAIN_AUXVEC_ARG]: Compute beginning of auxvec correctly.
654 2003-03-17 Roland McGrath <roland@redhat.com>
656 * include/ctype.h: Revert last change.
658 2003-03-17 Ulrich Drepper <drepper@redhat.com>
660 * argp/tst-argp1.c: Use test-skeleton.c.
661 * locale/tst-C-locale.c: Likewise.
663 2003-03-17 Alexandre Oliva <aoliva@redhat.com>
665 * sysdeps/mips/mips64/Implies: Move wordsize-64 to...
666 * sysdeps/mips/mips64/n64/Implies: New file.
667 * sysdeps/mips/mips64/n64/Makefile: New file.
668 * sysdeps/mips/mips64/n64/el/bits/endian.h: New file.
669 * sysdeps/mips/mips64/n32/Implies: New file.
670 * sysdeps/mips/mips64/n32/Makefile: New file.
671 * sysdeps/mips/mips64/n32/el/bits/endian.h: New file.
672 * sysdeps/unix/mips/mips64/n32/sysdep.h: New file.
673 * sysdeps/unix/mips/mips64/n64/sysdep.h: New file.
674 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: New file.
675 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: New file.
676 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: New file.
677 * sysdeps/unix/sysv/linux/mips/mips64/ldconfig.h: New file.
678 * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: New file.
679 * sysdeps/unix/sysv/linux/mips/mips64/recv.c: New file.
680 * sysdeps/unix/sysv/linux/mips/mips64/send.c: New file.
681 * sysdeps/unix/sysv/linux/mips/mips64/syscall.S: New file.
682 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: New file.
683 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: New file.
684 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: New file.
686 * sysdeps/unix/sysv/linux/configure.in (libc_cv_slibdir): Use
687 lib64 for mips64/n64 and lib32 for mips64/n32.
688 (ldd_rewrite_script): Needed for all mips64 configurations.
689 * sysdeps/unix/sysv/linux/configure: Rebuilt.
690 * sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed: New file.
691 * sysdeps/unix/sysv/linux/mips/mips64/Dist: New file.
693 * sysdeps/mips/machine-gmon.h (MCOUNT): Define for N32 and N64 as
696 * sysdeps/unix/sysv/linux/mips/configure.in: New. Pre-process
697 asm/unistd.h into asm-unistd.h.
698 * sysdeps/unix/sysv/linux/mips/configure: Generated.
699 * sysdeps/unix/sysv/linux/mips/Makefile: Do custom processing
701 * sysdeps/unix/sysv/linux/mips/sys/syscall.h: New file.
702 * sysdeps/unix/sysv/linux/mips/clone.S: Don't include
705 * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: New file.
706 * sysdeps/unix/sysv/linux/mips/ptrace.c: New file. Use long
707 long type for registers on n32.
709 * sysdeps/mips/bits/wordsize.h: New file, appropriate for all
711 * sysdeps/mips/mips64/gmp-mparam.h: New file. Define
712 BITS_PER_LONGINT to __WORDSIZE, to match all 3 ABIs.
713 * sysdeps/mips/setjmp_aux.c (STRINGXP, REGS, PTRS): New macros.
714 (__sigsetjmp_aux): Use them. Adjust for all 3 ABIs.
715 * sysdeps/mips/elf/start.S: Adjust for all 3 ABIs.
716 * sysdeps/unix/mips/brk.S: Likewise.
717 * sysdeps/unix/mips/sysdep.S: Likewise.
718 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
719 * sysdeps/mips/bits/setjmp.h (__jmp_buf): Likewise.
720 * sysdeps/mips/sys/ucontext.h: Likewise.
721 * sysdeps/unix/sysv/linux/mips/sys/profcs.h: Likewise.
722 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
723 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
724 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
725 * sysdeps/mips/mips64/bsd-setjmp.S: Likewise.
726 * sysdeps/mips/mips64/setjmp.S: Likewise.
727 * sysdeps/mips/mips64/bits/setjmp.h: Deleted, obsolete.
728 * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Use long long for
731 2003-03-16 Ulrich Drepper <drepper@redhat.com>
733 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Define tv here,
734 not at function level.
735 * sysdeps/unix/clock_gettime.c (HANDLE_REALTIME): Likewise.
737 2003-03-15 Roland McGrath <roland@redhat.com>
739 * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r): int -> size_t
740 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
741 * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Likewise.
742 * nis/nis_table.c (__create_ib_request): Likewise.
744 * posix/fnmatch_loop.c: Add casts for signedness.
745 * nss/nss_files/files-hosts.c: Likewise.
746 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
747 * gmon/gmon.c (write_call_graph): Use u_long for FROM_LEN.
748 * nscd/nscd_getgr_r.c (nscd_getgr_r): Use nscd_ssize_t for CNT.
750 * configure.in (libc_cv_visibility_attribute): Use AC_TRY_COMMAND,
751 get errors into the log file.
752 (libc_cv_broken_visibility_attribute): Likewise.
753 (libc_cv_broken_alias_attribute): Likewise.
754 (libc_cv_asm_weak_directive): Likewise.
755 (libc_cv_need_minus_P): Likewise.
756 (libc_cv_dot_text): Likewise.
757 (libc_cv_asm_global_directive): Likewise.
758 (libc_cv_asm_type_prefix): Likewise.
759 * configure: Regenerated.
761 * nscd/cache.c (cache_search): Give first arg type `request_type'.
762 * nscd/nscd.h: Update decl.
764 * nscd/nscd_getpw_r.c (nscd_getpw_r): Add casts for signedness.
765 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
766 * elf/dl-close.c (_dl_close): Likewise.
767 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): int -> size_t
768 * io/fts.c (fts_build): Likewise.
769 * elf/cache.c (add_to_cache): Likewise.
770 * locale/programs/locarchive.c (show_archive_content): Likewise.
772 * posix/fnmatch.c (fnmatch): Tweak __builtin_expect use.
774 * include/ctype.h (__ctype_b_loc): Tweak type punning to make gcc 3.3
776 (__ctype_toupper_loc, __ctype_tolower_loc): Likewise.
778 2003-03-15 Ulrich Drepper <drepper@redhat.com>
780 * sysdeps/unix/sysv/linux/ia64/system.c: Use the generic Linux
783 2003-03-15 Roland McGrath <roland@redhat.com>
785 * sysdeps/unix/sysv/linux/i386/system.c: Moved to ...
786 * sysdeps/unix/sysv/linux/system.c: ... here.
787 (FORK): Don't #define if already #define'd.
788 * sysdeps/unix/sysv/linux/s390/system.c: File removed.
789 * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]:
790 (__ASSUME_CLONE_THREAD_FLAGS): Define for kernel >= 2.5.64.
792 * dlfcn/tst-dlinfo.c: New file.
793 * dlfcn/Makefile (tests): Add tst-dlinfo.
794 ($(objpfx)tst-dlinfo): New target.
796 * dlfcn/dlinfo.c: New file.
797 * dlfcn/Makefile (libdl-routines): Add it.
798 * dlfcn/Versions (libdl: GLIBC_2.3.3): Add dlinfo.
799 * dlfcn/dlfcn.h [__USE_GNU]: Declare dlinfo.
800 [__USE_GNU] (RTLD_DI_*): New enum constants.
801 [__USE_GNU] (Dl_serpath, Dl_serinfo): New types.
802 * elf/dl-load.c (cache_rpath): New inline function.
803 (_dl_map_object): Use it.
804 (_dl_rtld_di_serinfo): New function.
805 * sysdeps/generic/ldsodefs.h: Declare it.
806 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
808 * sysdeps/powerpc/elf/libc-start.c (AUX_VECTOR_INIT): Define it.
809 (LIBC_START_MAIN, LIBC_START_MAIN_AUXVEC_ARG, MAIN_AUXVEC_ARG)
810 (INIT_MAIN_ARGS): Define, and #include <sysdeps/generic/libc-start.c>.
811 (__libc_start_main): Just call the generic one for most of the work.
813 * sysdeps/generic/libc-start.c [LIBC_START_MAIN]: If defined, define a
814 static function by that name instead of BP_SYM (__libc_start_main).
815 [LIBC_START_MAIN_AUXVEC_ARG]: Take AUXVEC as argument.
816 [MAIN_AUXVEC_ARG]: Pass 4th argument to MAIN.
817 [INIT_MAIN_ARGS]: Give INIT the same args as MAIN.
819 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_PLATFORM_AUXV]:
820 Use this macro for extra AT_* cases.
821 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c (DL_PLATFORM_AUXV):
822 New macro, guts from ...
823 (__aux_init_cache): ... here, function removed.
824 (DL_PLATFORM_INIT): Don't define this.
826 * sysdeps/powerpc/powerpc32/memset.S: Put __cache_line_size in bss.
827 * sysdeps/powerpc/powerpc64/memset.S: Likewise.
829 * Versions.def (libthread_db): Add GLIBC_2.3.3 set.
831 2003-03-14 Roland McGrath <roland@redhat.com>
833 * dlfcn/dlerror.c (dlerror): If objname is "", don't put ": " after it.
835 2003-03-14 Jakub Jelinek <jakub@redhat.com>
837 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Fix a typo.
839 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
840 sysdeps/posix/pause.c instead of sysdeps/unix/common/pause.c.
842 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
844 * sysdeps/mips/fpu/bits/mathdef.h: New.
845 (__NO_LONG_DOUBLE_MATH): Define for o32.
847 * sysdeps/mips/sys/asm.h: Formatting changes.
848 (PTR, PTRSIZE, PTRLOG): Adjust for all 3 ABIs.
849 (CPADD): Define for all of them.
850 (SETUP_GP, SETUP_GPX, SETUP_GPX_L, SAVE_GP, SETUP_GP64,
851 SETUP_GPX64, SETUP_GPX64_L, RESTORE_GP64, USE_ALT_CP,
852 NARGSAVE): Define per ABI spec.
853 (END): Don't redefine.
854 (LONG_SLL, LONG_SLLV, LONG_SRL, LONG_SRLV, LONG_SRA,
855 LONG_SRAV): Remove duplicate definitions.
856 (PTR_ADD, PTR_ADDI, PTR_ADDU, PTR_ADDIU, PTR_SUB, PTR_SUBI,
857 PTR_SUBU, PTR_SUBIU, PTR_L, PTR_S, PTR_SLL, PTR_SLLV, PTR_SRL,
858 PTR_SRLV, PTR_SRA, PTR_SRAV, PTR_SCALESHIFT): Define for n32.
859 (PTR_LA): Define for all 3 ABIs.
861 * sysdeps/mips/dl-machine.h: Include sys/asm.h.
862 (elf_machine_matches_host): Prevent linking of o32 and n32
864 (elf_machine_dynamic): Document assumption on $gp.
865 (STRINGXP, STRINGXV, STRINGV_): New macros.
866 (elf_machine_load_address): Use them to stringize PTR_LA and
868 (ELF_DL_FRAME_SIZE, ELF_DL_SAVE_ARG_REGS,
869 ELF_DL_RESTORE_ARG_REGS, IFABIO32): New macros used in...
870 (_dl_runtime_resolve): Adjust it for all 3 ABIs.
871 (__dl_runtime_resolve): Cast the symtab initializer to the
873 (RTLD_START): Use it. Adjust it for all 3 ABIs.
874 (elf_machine_rel): Mark as always_inline in RTLD_BOOTSTRAP.
875 Handle 64-bit R_MIPS_REL composite relocation and accept
876 R_MIPS_64 relocations to shift addend size to 64 bits.
877 Document assumption regarding local GOT entries. Document
878 backward-compatibility departing from the ABI behavior in
879 applying relocations that reference section symbols, no longer
880 used. Support relocations to mis-aligned offsets.
881 * sysdeps/mips/mips64/dl-machine.h: Deleted, obsolete.
883 * sysdeps/unix/sysv/linux/mips/readelflib.c: New file.
885 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h
886 (_KERNEL_NSIG_BPW): Define in terms of _MIPS_SZLONG.
887 * sysdeps/unix/sysv/linux/mips/sigaction.c: Define restore and
888 restore_rt functions. Use them.
890 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
891 .set mips2 on new abis.
893 2003-03-13 Ulrich Drepper <drepper@redhat.com>
895 * posix/getconf.c: Recognize POSIX2_SYMLINKS.
896 * sysdeps/generic/bits/confname.h: Define _PC_2_SYMLINKS.
897 * sysdeps/posix/fpathconf.c: Handle _PC_2_SYMLINKS.
898 * sysdeps/posix/pathconf.c: Likewise.
899 * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
900 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
901 * sysdeps/unix/sysv/linux/pathconf.h: Define statfs_symlinks.
903 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define some more magic
906 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
908 * include/gmp.h: Include/gmp-mparam.h.
909 * stdlib/strtod.c: Include gmp-mparam.h before gmp.h and
912 * elf/dl-conflict.c: Don't compile _dl_resolve_conflicts if
913 ELF_MACHINE_NO_RELA is set.
914 * elf/rtld.c (dl_main): No prelink support for REL-only.
916 * sysdeps/generic/ldconfig.h (FLAG_MIPS64_LIBN32,
917 FLAG_MIPS64_LIBN64): Define.
918 * elf/cache.c (print_entry): Handle mips64 n32 and n64.
920 * sysdeps/mips/memcpy.S: Map t0-3 to a4-7 on new abis.
921 * sysdeps/mips/memset.S: Likewise.
922 * sysdeps/mips/sys/regdef.h: Alias a4-7 or t0-3 to $8-11
923 depending on the ABI.
925 * sysdeps/mips/atomicity.h (exchange_and_add, atomic_add):
926 Don't .set mips2 on new abi.
927 (compare_and_swap): Likewise. Support 64-bit longs on n64.
929 * stdlib/fpioconst.h: Include gmp.h with angle brackets.
931 2003-03-13 Roland McGrath <roland@redhat.com>
933 * elf/dl-load.c (_dl_map_object_from_fd): Bail if no PT_LOAD phdrs
934 found. Reported by Alexandre Oliva <aoliva@redhat.com>.
936 2003-03-13 Alexandre Oliva <aoliva@redhat.com>
938 * stdio-common/_itoa.c (_itoa_base_table): Make 64-bit
940 * stdlib/fpioconst.c: Likewise.
941 * stdlib/strtod.c: Likewise.
943 * sysdeps/mips/add_n.S: Use L macro for local labels.
944 * sysdeps/mips/addmul_1.S: Likewise.
945 * sysdeps/mips/lshift.S: Likewise.
946 * sysdeps/mips/memcpy.S: Likewise.
947 * sysdeps/mips/memset.S: Likewise.
948 * sysdeps/mips/mul_1.S: Likewise.
949 * sysdeps/mips/rshift.S: Likewise.
950 * sysdeps/mips/sub_n.S: Likewise.
951 * sysdeps/mips/submul_1.S: Likewise.
952 * sysdeps/mips/mips64/add_n.S: Likewise.
953 * sysdeps/mips/mips64/addmul_1.S: Likewise.
954 * sysdeps/mips/mips64/lshift.S: Likewise.
955 * sysdeps/mips/mips64/mul_1.S: Likewise.
956 * sysdeps/mips/mips64/rshift.S: Likewise.
957 * sysdeps/mips/mips64/sub_n.S: Likewise.
958 * sysdeps/mips/mips64/submul_1.S: Likewise.
959 * sysdeps/unix/mips/sysdep.h: Define L() according to ABI
960 conventions. Define END as in sys/asm.h.
961 * sysdeps/unix/mips/sysdep.S: Likewise.
962 * sysdeps/unix/mips/wait.S: Likewise.
963 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
965 * sysdeps/ieee754/dbl-64/dbl2mpn.c (__mpn_extract_double):
966 Cast shifted values that may be too narrow to mp_limb_t.
967 * sysdeps/ieee754/dbl-64/mpn2dbl.c (__mpn_construct_double):
969 * sysdeps/ieee754/flt-32/mpn2flt.c (__mpn_construct_float):
971 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c
972 (__mpn_extract_long_double): Likewise.
973 * sysdeps/ieee754/ldbl-128/mpn2ldbl.c
974 (__mpn_construct_long_double): Likewise.
975 * sysdeps/ieee754/ldbl-96/ldbl2mpn.c
976 (__mpn_extract_long_double): Likewise.
977 * sysdeps/ieee754/ldbl-96/mpn2ldbl.c
978 (__mpn_construct_long_double): Likewise.
980 2003-03-13 Roland McGrath <roland@redhat.com>
982 * elf/Makefile ($(objpfx)librtld.mk): Tweak regexp so that one-line
983 entries in the map file match too.
985 2003-03-13 Guido Guenther <agx@sigxcpu.org>
987 * sysdeps/unix/sysv/linux/mips/clone.S: introduce and use local
988 label .Lthread_start since current binutils don't allow branches
989 to globally visible symbols.
991 2003-03-13 Jakub Jelinek <jakub@redhat.com>
993 * sysdeps/unix/sysv/linux/ia64/sysdep.h (BREAK_INSN_1, BREAK_INSN,
994 ASM_OUTARGS_0, ASM_OUTARGS_1, ASM_OUTARGS_2, ASM_OUTARGS_3,
995 ASM_OUTARGS_4, ASM_OUTARGS_5, ASM_OUTARGS_6): Define.
996 (INTERNAL_SYSCALL, INLINE_SYSCALL): Use it. Make syscall arguments
997 clobbered by the syscall.
998 (ASM_ARGS_1, ASM_ARGS_2, ASM_ARGS_3, ASM_ARGS_4, ASM_ARGS_5,
999 ASM_ARGS_6): Change constraints from r to index of corresponding
1001 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Swap
1002 ptid and ctid to match kernel.
1003 * sysdeps/unix/sysv/linux/ia64/system.c (FORK): Likewise.
1005 2003-03-12 Steven Munroe <sjmunroe@us.ibm.com>
1007 * sysdeps/powerpc/powerpc64/elf/configure.in: Remove
1008 AC_DEFINE(PI_STATIC_AND_HIDDEN). Not supported for PowerPC64.
1009 * sysdeps/powerpc/powerpc64/elf/configure: Regenerated.
1011 2003-03-11 Roland McGrath <roland@redhat.com>
1013 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
1014 Check SYM_MAP rather than SYM as definedness check.
1015 Handle R_PPC64_ADDR32, R_PPC64_ADDR30, and R_PPC64_REL64 relocs.
1016 Don't handle R_PPC64_REL24 reloc.
1017 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
1019 * sysdeps/powerpc/powerpc64/dl-machine.h
1020 [USE_TLS] (elf_machine_type_class): Match all the TLS relocs in a
1021 block, so we cover all the TPREL16* flavors without 6 ||s.
1022 [USE_TLS] (elf_machine_tprel): New function.
1023 (elf_machine_rela) [USE_TLS]: Use elf_machine_tprel for TPREL64 reloc,
1024 and handle TPREL16 relocs too. Return rather than break for DTPREL64.
1025 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
1027 2003-03-11 Ralf Baechle <ralf@linux-mips.org>
1029 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start): Use jal
1030 instead of jalr to invoke subroutine so restoring the $gp register
1033 2003-03-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
1035 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (__NR_pread64): Define
1036 to __NR_pread if not defined.
1037 (__NR_pwrite64): Define to __NR_pwrite if not defined.
1039 2003-03-11 Jakub Jelinek <jakub@redhat.com>
1041 * sysdeps/unix/sysv/linux/ia64/system.c: New file.
1042 * sysdeps/unix/sysv/linux/kernel-features.h
1043 (__ASSUME_CLONE_THREAD_FLAGS): Define for IA-64 and s390* with
1046 2003-03-11 Jakub Jelinek <jakub@redhat.com>
1048 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): If CNT == 1,
1049 allocate space even for the trailing '/'.
1050 Reported by John Reiser <jreiser@BitWagon.com>.
1052 * sysdeps/unix/sysv/linux/ia64/sysdep.h (LOAD_ARGS_6, ASM_ARGS_6,
1053 ASM_CLOBBERS_6): Define.
1054 (ASM_CLOBBERS_5): Use ASM_CLOBBERS_6.
1055 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Reorder arguments
1056 to match IA-32 order.
1057 * sysdeps/unix/sysv/linux/i386/clone.S: Fix comment.
1059 2003-03-10 Steven Munroe <sjmunroe@us.ibm.com>
1061 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't clobber R7.
1062 Copy extra params for NPTL to registers used in clone syscall.
1064 2003-03-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
1066 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Correct system
1067 call names for pread and pwrite.
1069 2003-03-10 Roland McGrath <roland@redhat.com>
1071 * dlfcn/Makefile (libdl-routines): Add dladdr1.
1072 * dlfcn/dladdr1.c: New file.
1073 * dlfcn/dlfcn.h [__USE_GNU]: Declare dladdr1.
1074 [__USE_GNU] (RTLD_DL_SYMENT, RTLD_DL_LINKMAP): New enum constants.
1075 * elf/dl-addr.c (_dl_addr): Take new args, a struct link_map ** and
1076 a const ElfNN_Sym ** to fill in.
1077 * include/dlfcn.h: Update decl. Include <link.h>.
1078 * dlfcn/dladdr.c (dladdr): Update caller.
1079 * malloc/mtrace.c (tr_where): Likewise.
1080 * sysdeps/generic/elf/backtracesyms.c: Likewise.
1081 * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
1082 * dlfcn/Versions (libdl: GLIBC_2.3.3): New set, add dladdr1.
1083 * Versions.def (libdl): Define GLIBC_2.3.3 set.
1085 * sysdeps/unix/make-syscalls.sh: Generate $(compile-syscall) for
1087 * sysdeps/unix/Makefile (compile-syscall): New variable.
1088 Pass -g0 to compiler for assembling syscall stubs from stdin.
1090 * sysdeps/i386/sysdep.h [HAVE_CPP_ASM_DEBUGINFO]
1091 (STABS_CURRENT_FILE, STABS_CURRENT_FILE1, STABS_FUN, STABS_FUN_END):
1092 Define these to do nothing.
1094 * configure.in: New check for -g on .S files.
1095 * configure: Regenerated.
1096 * config.make.in (have-cpp-asm-debuginfo): New variable.
1097 * config.h.in (HAVE_CPP_ASM_DEBUGINFO): New #undef.
1098 * Makeconfig (ASFLAGS): New variable, if undefined and
1099 $(have-cpp-asm-debuginfo), take options matching -g% from $(CFLAGS).
1100 * Makerules (compile.S, COMPILE.S): Use $(ASFLAGS).
1102 2003-03-09 Roland McGrath <roland@redhat.com>
1104 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Take 3 new args
1105 used by NPTL on new kernels. From Paul Mackerras <paulus@samba.org>.
1107 2003-03-09 Ulrich Drepper <drepper@redhat.com>
1109 * po/fi.po: Update from translation team.
1110 * po/ca.po: Likewise.
1111 * po/da.po: Likewise.
1113 2003-03-08 Ulrich Drepper <drepper@redhat.com>
1115 * rt/tst-aio7.c (do_test): Change BYTES into a #define.
1117 2003-03-07 Ulrich Drepper <drepper@redhat.com>
1119 * rt/tst-aio7.c (do_test): Give BUFF permanent extent, too.
1121 * sysdeps/powerpc/fpu/w_sqrt.c: Fix comment.
1123 2003-03-07 Roland McGrath <roland@redhat.com>
1125 * sysdeps/s390/s390-32/sysdep.h (L): Use .Lfoo instead of foo.
1126 * sysdeps/s390/s390-64/sysdep.h (L): Likewise.
1128 2003-03-04 Guido Guenther <agx@sigxcpu.org>
1130 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove unneeded
1131 stubs, we have INLINE_SYSCALL.
1132 * sysdeps/unix/sysv/linux/mips/bits/mman.h: Define MAP_POPULATE,
1135 2003-03-06 Roland McGrath <roland@redhat.com>
1137 * rt/tst-aio7.c (do_test): Revert last change. Instead, give CB1
1138 permanent extent and add a comment about testing its implicit teardown.
1140 2003-03-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
1142 * rt/tst-aio7.c (do_test): Cancel i/o on CB1 before it's out of scope.
1144 2003-03-05 Ulrich Drepper <drepper@redhat.com>
1146 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Fix
1147 reversed __builtin_expect expectation.
1149 2003-03-05 Roland McGrath <roland@redhat.com>
1151 * stdio-common/sscanf.c: Use prototype defn with ... syntax.
1152 * libio/swscanf.c: Likewise.
1153 * libio/swprintf.c: Likewise.
1155 2003-03-04 Roland McGrath <roland@redhat.com>
1157 * sysdeps/powerpc/powerpc64/dl-machine.h: Include <dl-tls.h>.
1158 (elf_machine_rela): Always use RESOLVE_MAP, needed for
1159 R_PPC64_JMP_SLOT as well as TLS cases.
1160 (BIT_INSERT): Move parenthesis where it ought to have been.
1161 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
1163 * posix/confstr.c (confstr): Correct STRING_LEN values for
1164 _CS_GNU_LIBC_VERSION and _CS_GNU_LIBPTHREAD_VERSION, add missing
1165 break. Reported by Alexandre Julliard <julliard@winehq.com>.
1167 2003-03-04 Jakub Jelinek <jakub@redhat.com>
1169 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
1171 2003-03-04 Ulrich Drepper <drepper@redhat.com>
1173 * sysdeps/unix/sysv/linux/x86_64/clone.S: Add support for the new
1176 * po/sv.po: Update from translation team.
1178 2003-03-04 Andreas Jaeger <aj@suse.de>
1179 Ulrich Drepper <drepper@redhat.com>
1181 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Fix comments.
1183 2003-03-03 Ulrich Drepper <drepper@redhat.com>
1185 * sysdeps/generic/dl-sysdep.h: Add double include protection.
1187 * po/tr.po: Update from translation team.
1189 * elf/dl-load.c (_dl_map_object_from_fd): Determine whether there
1190 are holes between the segments. Only call mprotect to set
1191 proection to PROT_NONE if there are some.
1193 * elf/dl-load.c (struct filebuf): Actually use FILEBUF_SIZE.
1196 * include/sched.h (__clone2): Use ... instead of adding all the
1199 2003-03-03 Roland McGrath <roland@redhat.com>
1201 * elf/dl-load.c (struct filebuf): Fix typo in last change.
1203 * sysdeps/powerpc/powerpc32/elf/configure.in: Don't define
1204 PI_STATIC_AND_HIDDEN.
1206 2003-03-03 Ian Wienand <ianw@gelato.unsw.edu.au>
1208 * sysdeps/unix/sysv/linux/ia64/clone2.S: Update to take extra clone
1210 * include/sched.h: Update clone2 prototype.
1212 2003-03-03 Andreas Jaeger <aj@suse.de>
1214 * math/tgmath.h (__TGMATH_UNARY_REAL_RET_ONLY): New definition.
1215 (llrint): Use it to correct return type.
1218 (llround): Likewise.
1220 2003-03-03 Ulrich Drepper <drepper@redhat.com>
1222 * elf/dl-load.c (struct filebuf): For 64-bit platforms use 640
1225 * libio/fileops.c (_IO_new_file_fopen): Close stillborn descriptor
1226 if ccs parameter isn't valid. Reported by Andreas Schwab.
1228 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
1230 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Add support
1231 for system call numbers > 255.
1232 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.h (DO_CALL,
1233 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
1234 INTERNAL_SYSCALL): Likewise.
1235 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
1236 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.h (DO_CALL,
1237 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
1238 INTERNAL_SYSCALL): Likewise.
1240 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
1242 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Don't free the dtv
1243 array if it is the initial dtv.
1245 2003-03-03 Ulrich Drepper <drepper@redhat.com>
1247 * po/es.po: Update from translation team.
1248 * po/fr.po: Likewise.
1249 * po/gl.po: Likewise.
1250 * po/sk.po: Likewise.
1251 * po/sv.po: Likewise.
1253 * sysdeps/unix/sysv/linux/syscalls.list: Add remap_file_pages entry.
1254 * misc/sys/mman.h: Add prototype for remap_file_pages.
1255 * sysdeps/generic/remap_file_pages.c: New file.
1256 * misc/Makefile (routines): Add remap_file_pages.
1257 * misc/Versions [libc:GLIBC_2.3.3]: Add remap_file_pages.
1259 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_POPULATE
1261 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
1262 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise
1263 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
1264 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
1265 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
1266 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
1267 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
1268 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
1270 2003-03-03 Roland McGrath <roland@redhat.com>
1272 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Revert last change.
1273 * sysdeps/ia64/dl-machine.h: Likewise.
1274 * sysdeps/ia64/dl-symaddr.c (_dl_symbol_address): Remove const from
1276 * sysdeps/ia64/dl-lookupcfg.h: Update decl.
1278 * sysdeps/wordsize-64/strtol_l.c (strtoll_l): Define as weak alias.
1279 * sysdeps/wordsize-64/strtoul_l.c (strtoull_l): Define as weak alias.
1280 * locale/Versions (libc: GLIBC_2.3): Move those to ...
1281 * sysdeps/wordsize-32/Versions (libc: GLIBC_2.3): ... here, new file.
1282 * sysdeps/wordsize-64/Versions (libc: GLIBC_2.3.3) Likewise.
1283 * Versions.def (libc): Add GLIBC_2.3.3 set.
1285 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Add const to MAP arg.
1286 * sysdeps/ia64/dl-machine.h: Update decl.
1288 2003-03-03 Andreas Jaeger <aj@suse.de>
1290 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Add missing brace.
1292 2003-03-02 Roland McGrath <roland@redhat.com>
1294 * scripts/abilist.awk: Reject data items with apparent 0 size.
1296 * scripts/merge-abilist.awk: Restore hack to elide pattern foo.*/bar
1297 after foo.* as if it were a duplicate.
1299 * sysdeps/unix/sysv/linux/ia64/brk.S: Add .type and .size for __curbrk.
1301 2003-03-02 Ulrich Drepper <drepper@redhat.com>
1303 * elf/dl-load.c (struct filebuf): Reduce buf array to 512 bytes.
1305 * sysdeps/generic/bits/time.h: Define CLOCK_MONOTONIC.
1306 * sysdeps/posix/clock_getres.c: Define code for CLOCK_REALTIME only
1307 if not already defined. Use SYSDEP_GETRES to allow other files to
1308 provide alternative implementations.
1309 * sysdeps/unix/sysv/linux/clock_getres.c: New file
1310 * sysdeps/unix/clock_gettime.c: Define code for CLOCK_REALTIME only
1311 if not already defined. Use SYSDEP_GETTIME to allow other files to
1312 provide alternative implementations.
1313 * sysdeps/unix/sysv/linux/clock_gettime.c: New file.
1314 * sysdeps/unix/clock_settime.c: Define code for CLOCK_REALTIME only
1315 if not already defined. Use SYSDEP_GETTIME to allow other files to
1316 provide alternative implementations.
1317 * sysdeps/unix/sysv/linux/clock_settime.c: New file.
1318 * sysdeps/unix/clock_nanosleep.c: Use SYSDEP_NANOSLEEP to allow
1319 other files to provide alternative implementations. Rearrange
1320 tests for invalid parameters.
1321 * sysdeps/unix/sysv/linux/clock_nanosleep.c: New file.
1322 * sysdeps/unix/sysv/linux/sysconf.c: New file.
1323 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1324 __ASSUME_POSIX_TIMERS for Linux 2.5.63 and up.
1325 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
1326 _POSIX_MONOTONIC_CLOCK.
1328 2003-03-02 Roland McGrath <roland@redhat.com>
1330 * scripts/merge-abilist.awk: More checks for bogus input.
1331 Uniquify duplicate config names.
1333 * scripts/abilist.awk: Don't distinguish weak symbols in normal output.
1335 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow): Renamed
1336 from dl_reloc_overflow, make global.
1337 (__process_machine_rela): Update callers.
1338 * sysdeps/powerpc/powerpc32/dl-machine.h: Declare _dl_reloc_overflow.
1339 Add attribute_hidden to __process_machine_rela decl.
1340 (elf_machine_type_class, elf_machine_rela): Handle 16-bit TLS relocs.
1342 * sysdeps/generic/libc-start.c (__libc_start_main): Don't assign const
1345 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
1346 Don't use weak_extern for dl_rtld_map. Instead check only if [SHARED].
1347 (elf_machine_rela): Clean up.
1349 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Clean up.
1351 PowerPC TLS support contributed by Paul Mackerras <paulus@samba.org>.
1352 * sysdeps/powerpc/powerpc32/elf/configure.in: New file.
1353 * sysdeps/powerpc/powerpc32/elf/configure: New generated file.
1354 * elf/tls-macros.h [__powerpc__ && !__powerpc64__]
1355 (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Define them.
1356 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Support
1359 * sysdeps/powerpc/dl-tls.h (TLS_TP_OFFSET, TLS_DTV_OFFSET): Move these
1360 macros out of [SHARED].
1361 (TLS_TPREL_VALUE, TLS_DTPREL_VALUE): New macros.
1363 * elf/elf.h: Define R_PPC_* relocs for TLS support.
1364 Clean up R_PPC64_* macro definition comments.
1366 * configure.in: In "running configure fragment for" message,
1367 omit $srcdir from the name if we prepended it.
1368 * configure: Regenerated.
1370 * elf/dl-reloc.c (allocate_static_tls): Fix calculations.
1371 From Jakub Jelinek <jakub@redhat.com>.
1373 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Revert last change,
1374 which duplicated the O_DIRECT defn.
1376 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
1378 * stdlib/stdlib.h: Add missing __USE_BSD enclosure for BSD derived
1381 2003-03-01 Andreas Schwab <schwab@suse.de>
1383 * resolv/Makefile (tests): Don't depend on
1384 $(objpfx)mtrace-tst-leaks when cross compiling.
1386 * sysdeps/m68k/dl-machine.h (_dl_start_user): Access
1387 __libc_stack_end through GOT since it is a global symbol.
1389 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
1391 * argp/argp.h: Fix a typo.
1392 Reported by H.S.Teoh <hsteoh@quickfur.ath.cx>.
1394 * manual/terminal.texi: Fix cfmakeraw() definition from int to void.
1396 2003-02-27 Pat Rankin <rankin@pactechdata.com>
1398 * posix/regexec.c (proceed_next_node): Cast re_string_get_buffer to
1400 (get_subexp): Likewise.
1402 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
1404 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DIRECT): Define.
1406 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
1408 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_DIRECT): Define.
1410 2003-02-27 Roland McGrath <roland@redhat.com>
1412 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Remove
1413 special case for dl_rtld_map in R_PPC64_RELATIVE; it's harmless to
1414 repeat it and avoids the test for the common case.
1415 Clean up and fix calculations for TLS relocs.
1417 * sysdeps/powerpc/powerpc64/dl-tls.h: Moved to ...
1418 * sysdeps/powerpc/dl-tls.h: ... here.
1419 (TLS_TP_OFFSET): New macro.
1421 * sunrpc/svc_udp.c (svcudp_recv): Add a cast to last change.
1423 2003-02-27 Ulrich Drepper <drepper@redhat.com>
1425 * sysdeps/i386/fpu/libm-test-ulps: Increase ULPs for yn due to
1426 code generation changes in recent gcc.
1428 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
1430 * sysdeps/powerpc/fpu/fpu_control.h (_FPU_GETCW, _FPU_SETCW):
1431 Rename argument to avoid symbol conflict.
1433 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h
1434 [__USE_GNU] (O_DIRECT): New macro.
1436 2003-02-24 David Mosberger <davidm@hpl.hp.com>
1438 * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Fix
1441 2003-02-27 Ulrich Drepper <drepper@redhat.com>
1443 * resolv/res_libc.c [USE___THREAD] (_res): Don't need the
1444 initializer anymore now that res_thread_freeres is more careful.
1446 * sunrpc/svc_udp.c (svcudp_recv): Remove all control messages
1447 except the PKTINFO. Reset interface in PKTINFO.
1448 Patch by Neil Brown <neilb@cse.unsw.edu.au> [PR libc/4973].
1450 2003-02-25 Steven Munroe <sjmunroe@us.ibm.com>
1452 * elf/elf.h: Add new R_PPC64_* relocs for TLS.
1453 * elf/tls-macros.h [__powerpc64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
1455 * sysdeps/powerpc/powerpc64/elf/configure.in: New file.
1456 * sysdeps/powerpc/powerpc64/elf/configure: New file (generated).
1457 * sysdeps/powerpc/powerpc64/dl-machine.h: Support new TLS relocs.
1458 * sysdeps/powerpc/powerpc64/dl-tls.h: New file.
1460 * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
1461 Do DL_SYSDEP_OSCHECK here, matching 2002-12-01 change to generic file.
1463 2003-02-25 Andreas Jaeger <aj@suse.de>
1465 * manual/memory.texi (Malloc Tunable Parameters): Clarify
1466 behaviour of M_MMAP_THRESHOLD.
1468 2003-02-25 Roland McGrath <roland@redhat.com>
1470 * resolv/res_init.c (res_thread_freeres): Bail out if _res.nscount is
1471 zero, inidicating _res was not initialized yet.
1473 2003-02-24 Ulrich Drepper <drepper@redhat.com>
1475 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Remove EACCES
1478 2003-02-24 Roland McGrath <roland@redhat.com>
1480 * sysdeps/posix/pause.c: Add LIBC_CANCEL_HANDLED.
1482 2003-02-23 Roland McGrath <roland@redhat.com>
1484 * sysdeps/posix/pause.c: New file.
1485 * sysdeps/unix/common/pause.c: File removed.
1487 2003-02-23 Ulrich Drepper <drepper@redhat.com>
1489 * sysdeps/generic/bits/confname.h: Remove #ifs.
1491 * posix/Makefile (CFLAGS-regex.c): Remove RE_ENABLE_I18N definition.
1492 * posix/regex_internal.h (RE_ENABLE_I18N): Pretty printing.
1494 * resolv/res_libc.c [USE___THREAD] (_res): Initialize _vcsock
1497 2003-02-22 Ulrich Drepper <drepper@redhat.com>
1499 * sysdeps/generic/dl-sysdep.c: Avoid warning.
1501 2003-02-22 Roland McGrath <roland@redhat.com>
1503 * resolv/tst-leaks.c: New file by Daniel Jacobowitz <drow@mvista.com>.
1504 * resolv/Makefile (tests): Add tst-leaks.
1505 ($(objpfx)tst-leaks): Depend on $(objpfx)libresolv.so.
1506 (tst-leaks-ENV): New variable.
1507 ($(objpfx)mtrace-tst-leaks): New target.
1508 (tests): Depend on it.
1510 * include/libc-internal.h: Declare __libc_thread_freeres.
1512 * Makerules: Fix last change to use $($(subdir)-version) when set.
1514 * Makerules (install-lib-nosubdir): Depend on installed
1515 libfoo-X.Y.Z.so and libfoo.so.NN files so they are installed
1516 regardless of the libfoo.so target's dependencies.
1518 * MakeTAGS (sub-make-vars): New variable, includes generating=t.
1519 Use that in $(MAKE) calls.
1521 2003-02-22 Ulrich Drepper <drepper@redhat.com>
1523 * catgets/gencat.c (read_input_file): Collision between
1524 auto-assigned numbers and user-defined nubmers is not fatal.
1526 Patch by Michael M. Lampkin <michael.lampkin@ieee.org>.
1527 * catgets/Makefile: Add rules to run test2.msg test.
1528 * catgets/test2.msg: New file.
1530 * catgets/gencat.c (main): Return 1 if messages have been printed.
1532 * iconv/iconv_prog.c (main): Unify messages.
1534 * stdlib/strtod.c (INTERNAL): Remove bogus clearing of second word
1535 when shifting retval.
1536 * stdlib/tst-strtod.c (main): Add strtold test case.
1537 Reported by Fred J. Tydeman <tydeman@tybor.com>.
1539 2003-02-21 Roland McGrath <roland@redhat.com>
1541 * malloc/thread-freeres.c: Conditionalize on _LIBC_REENTRANT.
1542 * sunrpc/rpc_thread.c: Likewise for text_set_element use.
1543 (__rpc_thread_destroy): Add it to __libc_subfreeres too.
1545 * include/resolv.h: Add libc_hidden_proto for __res_nclose.
1546 * resolv/res_init.c (__res_nclose): Add libc_hidden_def.
1547 (res_thread_freeres): New function, on __libc_thread_subfreeres and
1550 * malloc/Versions (libc: GLIBC_PRIVATE): Add __libc_thread_freeres.
1551 * malloc/thread-freeres.c: New file.
1552 * malloc/Makefile (aux): Add it.
1553 * sunrpc/Versions (libc: GLIBC_PRIVATE): Removed.
1554 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Put in special section
1555 "__libc_thread_freeres_fn" and add to __libc_thread_subfreeres set.
1557 * sysdeps/unix/sysv/linux/i386/geteuid.c (__geteuid): Typo fix.
1558 * sysdeps/unix/sysv/linux/i386/getgid.c (__getgid): Typo fix.
1560 2003-02-21 Roland McGrath <roland@frob.com>
1562 * sysdeps/mach/hurd/opendir.c (__opendir): Use O_NONBLOCK in open.
1564 * iconvdata/Makefile (tests): Add bug-iconv3 only if
1565 [$(have-thread-library) = yes].
1567 2003-02-21 Ulrich Drepper <drepper@redhat.com>
1569 * sysdeps/unix/sysv/linux/bits/signum.h (__SIGRTMAX): Define as _NSIG.
1571 * sysdeps/unix/sysv/linux/i386/getuid.c: Use INTERNAL_SYSCALL and do
1572 not chechk for errors (unless testing for 32bit variant).
1573 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
1574 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
1575 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
1577 2003-02-21 Jakub Jelinek <jakub@redhat.com>
1579 * sysdeps/x86_64/dl-machine.h (elf_machine_rela) <R_X86_64_PC32>:
1580 Check for signed overflow, not unsigned.
1582 * sysdeps/sparc/sparc64/elf/configure.in: New file.
1583 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (sysdep-CFLAGS):
1584 Use -fcall-used-g6, not -fcall-used-g7.
1586 2003-02-21 Andreas Jaeger <aj@suse.de>
1588 * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Fix setting of default
1591 * sysdeps/x86_64/fpu/fsetexcptflg.c (fesetexceptflag): Do not
1592 clear whole mxcsr but only exceptions.
1594 2003-02-21 Roland McGrath <roland@redhat.com>
1596 * Makerules: Filter $(install-lib-ldscripts) out of list of targets
1597 for libfoo.so that need $(make-link) rules.
1599 2003-02-21 Roland McGrath <roland@frob.com>
1601 * sysdeps/mach/hurd/bits/typesizes.h (__DEV_T_TYPE): Use __U32_TYPE
1602 to match existing struct stat layout in mig protocols.
1604 2003-02-20 Ulrich Drepper <drepper@redhat.com>
1606 * version.h (VERSION): Bump to 2.3.2.
1608 * elf/Makefile (distribute): Add reldep9.c, tst-array1.exp,
1609 tst-array2.exp, tst-array4.exp, tst-array2dep.c, check-textrel.c,
1611 * sysdeps/generic/Dist: Add sysdep-cancel.h.
1612 * sysdeps/powerpc/nofpu/Dist: Add soft-supp.h.
1613 * sysdeps/unix/Dist: Add s-proto-bp.S and s-proto-cancel.S.
1614 * sysdeps/unix/sysv/linux/Dist: Add pathconf.h.
1615 * sysdeps/unix/sysv/linux/i386/Dist: Add bp-thunk.h.
1616 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add fe_nomask.c and
1618 * Makefile (distribute): Add include/stubs-prologue.h,
1619 include/gnu/stubs.h, scripts/merge-abilist.awk, and
1620 scripts/extract-abilist.awk.
1622 2003-02-20 Roland McGrath <roland@redhat.com>
1624 * math/Makefile (distribute): Don't add generated files.
1626 2003-02-20 Ulrich Drepper <drepper@redhat.com>
1628 * math/Makefile: Rearrange variable definitions slightly to get
1629 definition in the right order.
1631 2003-02-20 Roland McGrath <roland@redhat.com>
1633 * Makerules: Clean up conditional around include of tls.make.
1634 * Make-dist: Export generating=t to prevent using that.
1635 (+distinfo): Likewise for $(shell $(MAKE) ...) runs.
1637 2003-02-20 Ulrich Drepper <drepper@redhat.com>
1639 * inet/rcmd.c (rresvport_af): Avoid using invliad values. Wrap
1640 around in search if port IPPORT_RESERVED/2 has been test.
1642 2002-02-20 Paolo Bonzini <bonzini@gnu.org>
1644 * posix/regcomp.c: Remove inclusions.
1645 * posix/regexec.c: Likewise.
1646 * posix/regex_internal.c: Likewise.
1647 * posix/regex_internal.h: Add inclusions here.
1648 * posix/regex.c: Only include sys/types.h before regex.h. Include
1649 regex_internal.h here. Include regex_internal.c before regcomp.c
1650 and regexec.c (might expose more opportunities to the C compiler).
1652 * posix/regcomp.c (parse_expression): Fix construct rejected by SGI CC.
1654 * posix/regex_internal.h [!_LIBC] (__mempcpy): Fix typo.
1655 [!_LIBC] (__wcrtomb): New definition.
1656 [!_LIBC]: Conditionalize enabling of I18N on HAVE_WCSCOLL and
1657 HAVE_LOCALE_H as well.
1659 2003-02-20 Ulrich Drepper <drepper@redhat.com>
1661 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Remove obsolete
1662 patch to check for system call errors.
1664 2002-07-24 Philip Blundell <philb@gnu.org>
1666 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Yield ENODEV
1669 2003-02-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1671 * sysdeps/powerpc/powerpc32/atomicity.h: Remove compiler workaround.
1672 * sysdeps/unix/sysv/linux/kernel-features.h
1673 (__ASSUME_NEW_PRCTL_SYSCALL): Defined for ppc32 too.
1674 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Use prctl
1676 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Avoid short
1677 interprocedure branches.
1678 * sysdeps/powerpc/soft-fp/Dist (sim-full.c, fenv_const.c): Move to...
1679 * sysdeps/powerpc/nofpu/Dist: ...here.
1680 * sysdeps/unix/sysv/linux/powerpc/Dist (fe_nomask.c): Move to...
1681 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
1682 * sysdeps/unix/sysv/linux/s390/s390-64/Dist (kernel_stat.h): Delete.
1683 * sysdeps/unix/sysv/linux/sparc/Dist (bits/utmpx.h): Delete.
1684 * sysdeps/unix/sysv/linux/x86_64/Dist (bits/utmpx.h): Delete.
1686 2003-02-18 Alan Modra <amodra@bigpond.net.au>
1688 * sysdeps/powerpc/powerpc32/sysdep.h (HIDDEN_JUMPTARGET): Redefine.
1690 2003-02-20 Philip Blundell <philb@gnu.org>
1692 * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Add
1693 missing arguments to INTERNAL_SYSCALL_ERROR_P and
1694 INTERNAL_SYSCALL_ERRNO.
1696 2003-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
1698 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__real_chown): Test
1699 for __ASSUME_32BITUIDS.
1701 2003-02-20 Andreas Schwab <schwab@suse.de>
1703 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Add MADV_* and
1704 POSIX_MADV_* constants.
1706 2003-02-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1708 * sysdeps/unix/sysv/linux/sh/pread.c: New file.
1709 * sysdeps/unix/sysv/linux/sh/pread64.c: New file.
1710 * sysdeps/unix/sysv/linux/sh/pwrite.c: New file.
1711 * sysdeps/unix/sysv/linux/sh/pwrite64.c: New file.
1713 2003-02-19 Jiro Sekiba <jir@yamato.ibm.com>
1715 * iconvdata/utf-16.c (gconv_end): Fix range of low surrogate.
1717 2003-02-16 Roland McGrath <roland@redhat.com>
1719 * signal/signal.h: Include <sys/ucontext.h>, not <ucontext.h>.
1721 2003-02-19 Ulrich Drepper <drepper@redhat.com>
1723 * stdlib/strtod.c (INTERNAL): Up the safety margin for cutting off
1724 decimal input digits.
1725 * stdlib/tst-strtod.c (main): Add test for strtof bug.
1727 2003-02-18 Ulrich Drepper <drepper@redhat.com>
1729 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Recognize
1730 invalid file descriptors and missing access permissions.
1732 2003-02-17 Ulrich Drepper <drepper@redhat.com>
1734 * nss/getXXbyYY_r.c (REENTRANT_NAME): Return 0 if no entry has
1737 * sysdeps/posix/sysconf.c (__sysconf): Test for LOGIN_NAME_MAX and
1738 TTY_NAME_MAX and not the _POSIX_* minimal value macros.
1739 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
1742 2003-02-17 Kevin B. Hendricks <kevin.hendricks@sympatico.ca>
1743 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1745 * sysdeps/powerpc/elf/libc-start.c: Handle NONTLS_INIT_TP.
1746 * sysdeps/powerpc/powerpc32/__longjmp.S: Remove R2 handling.
1747 * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
1748 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
1749 * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
1751 2003-02-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1753 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Delete.
1754 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Delete.
1755 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Delete.
1756 * sysdeps/unix/sysv/linux/powerpc/pread.c: Delete.
1757 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Delete.
1758 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Delete.
1760 * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: Move file...
1761 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: ...here.
1762 * sysdeps/unix/sysv/linux/powerpc/glob64.c: Move file...
1763 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
1765 * sysdeps/unix/sysv/linux/tcgetattr.c: Use INLINE_SYSCALL.
1766 * sysdeps/unix/sysv/linux/tcsetattr.c: Likewise.
1767 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Delete.
1768 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Delete.
1770 2003-02-14 Thorsten Kukuk <kukuk@suse.de>
1772 * nss/getent.c (print_hosts): Print all IP addresses of one host.
1774 2003-02-15 Roland McGrath <roland@frob.com>
1776 * sysdeps/mach/hurd/tls.h: New file.
1777 * sysdeps/mach/hurd/i386/tls.h: New file.
1779 * mach/errsystems.awk: Include <errno.h> in generated output.
1781 * sysdeps/mach/Makefile (mach-before-compile rule): Pass generating=t,
1782 use target mach-before-compile instead of generated.
1783 (mach-before-compile): New target.
1784 * Makerules: Disable use of tls.make if $(generating) is set.
1785 * mach/Makefile: Include mach-syscalls.mk even if no_deps=t.
1786 * sysdeps/mach/hurd/Makefile: Make generated hurd headers depend on
1787 mach-shortcuts.h so mach/ generation happens before hurd/.
1789 2003-02-14 Ulrich Drepper <drepper@redhat.com>
1791 * sysdeps/i386/fpu/s_nextafterl.c: Decrement high word of mantissa
1792 of demorm correctly if low word is zero.
1793 Reported by Fred J. Tydeman <tydeman@tybor.com>.
1794 * math/libm-test.inc (nextafter_test): New test, but disabled due
1797 * sysdeps/generic/libc-start.c [HAVE_PTR_NTHREADS]: Decrement thread
1798 counter and only call __exit_thread if this is not the last thread.
1800 2003-02-13 Jakub Jelinek <jakub@redhat.com>
1802 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Add instead of
1803 subtracting map->l_tls_offset.
1805 2003-02-12 Ulrich Drepper <drepper@redhat.com>
1807 * sysdeps/generic/bits/confname.h: Define _CS_GNU_LIBC_VERSION and
1808 _CS_GNU_LIBPTHREAD_VERSION.
1809 * posix/conststr.c: Handle these new values.
1810 * posix/getconf.c: Likewise.
1812 * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Fix
1813 masking of version index.
1814 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
1816 2003-02-11 Ulrich Drepper <drepper@redhat.com>
1818 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Compute alignment
1819 correctly. Reported by Thorsten Kukuk.
1821 2003-02-10 Ulrich Drepper <drepper@redhat.com>
1823 * elf/Makefile (check-textrel-CFLAGS): Pass _XOPEN_SOURCE and
1824 _BSD_SOURCE to compiler.
1825 * elf/check-textrel.c (SWAP): Add parenthesis to avoid warnings.
1826 Patches by Alan Modra.
1828 2003-02-08 Ulrich Drepper <drepper@redhat.com>
1830 * io/ftwtest.c: Get current working directory before and after the
1831 nftw call and make sure they match.
1833 2003-02-08 Jim Meyering <jim@meyering.net>
1835 * io/ftw.c (ftw_startup): When using FTW_CHDIR, always remember
1836 the current directory, not just when DIR contains a slash.
1837 Reported by Manoj Srivastava.
1839 2003-02-07 Jim Meyering <jim@meyering.net>
1841 * io/ftw.c: Add autoconf-recommended block of alloca-related code.
1842 Include autoconf-recommended block of dirent/NAMELEN-related
1843 definitions and includes. Use NAMELEN throughout, rather than
1845 [_LIBC]: Define NAMELEN to _D_EXACT_NAMLEN.
1846 [!_LIBC] (__getcwd): Define to xgetcwd and declare xgetcwd.
1847 (stpcpy): Declare, if necessary.
1848 (mempcpy): Define, if necessary.
1849 [!_LIBC] (__stpcpy, __mempcpy): Define.
1850 [!_LIBC] (LXSTAT, XSTAT): Define.
1851 (lstat) [!LIBC && !LSTAT_FOLLOWS_SLASHED_SYMLINK]: Define to rpl_lstat.
1852 (find_object): Don't use c99-style struct initializer.
1853 Tweak wording in a couple comments.
1855 2003-02-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1857 * elf/tls-macros.h: Add non-PIC TLS macros and fix clobber list
1859 * sysdeps/unix/sysv/linux/sh/brk.c: Add SYSCALL_INST_PAD
1860 after the trapa instruction.
1861 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Add additional
1863 * sysdeps/unix/sysv/linux/sh/sh4/sysdep.h: New file.
1864 (NEED_SYSCALL_INST_PAD): Define.
1865 * sysdeps/unix/sysv/linux/sh/sys/user.h (start_thread): Undef to
1866 avoid to use definition for the kernel.
1867 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
1868 Save and restore the frame pointer.
1869 (SYSCALL_INST_PAD): Define.
1870 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
1871 (INTERNAL_SYSCALL): Make use of ERR parameter. Add SYSCALL_INST_PAD
1872 after trapa instruction.
1873 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
1874 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
1876 2003-02-07 Jakub Jelinek <jakub@redhat.com>
1878 * resolv/res_libc.c (_res): Ensure _res is not common symbol,
1879 so that it can have aliases.
1880 * inet/herrno.c (h_errno): Put it into .bss not .data section.
1882 2003-02-07 Ulrich Drepper <drepper@redhat.com>
1884 * elf/dl-runtime.c (fixup): Correct typo in version index computation.
1885 (profile_fixup): Likewise.
1886 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
1888 2002-11-24 Robert Love <rml@tech9.net>
1890 * posix/sched.h: Second parameter of sched_setaffinity and
1891 sched_getaffinity is `unsigned int', not `unsigned long'.
1892 * sysdeps/generic/sched_setaffinity.c: Likewise.
1893 * sysdeps/generic/sched_getaffinity.c: Likewise.
1895 2003-02-05 Ulrich Drepper <drepper@redhat.com>
1897 * debug/catchsegv.sh: Fix typo in error messsage.
1898 Reported by John Levon <levon@movementarian.org>.
1900 * sysdeps/unix/sysv/linux/posix_fadvise.c: New file.
1901 * sysdeps/unix/sysv/linux/syscalls.list: Add posix_fadvise64 syscall.
1902 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
1903 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1904 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
1905 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
1906 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1908 * libio/putwc_u.c: Use _IO_putwc_unlocked, not _IO_putc_unlocked.
1909 Patch by Moritz Schulte <moritz@duesseldorf.ccc.de>.
1911 2003-02-05 Jim Meyering <jim@meyering.net>
1913 Fix a heap-corrupting bug.
1914 * io/ftw.c: Include <limits.h>.
1915 (PATH_MAX) [!defined PATH_MAX]: Define to 1024.
1916 (process_entry): Allocate enough space to hold the resulting
1917 file name. Don't presume that 2*dirbufsize is enough.
1918 (ftw_startup): Always use PATH_MAX to compute buffer size, now that
1919 it is guaranteed to be defined.
1921 2003-02-04 Ulrich Drepper <drepper@redhat.com>
1923 * iconvdata/Makefile: Add rules to build and run bug-iconv3.
1924 * iconvdata/bug-iconv3.c: New file.
1926 2003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com>
1928 * sysdeps/unix/sysv/linux/s390/system.c: New file.
1930 2003-02-03 Jakub Jelinek <jakub@redhat.com>
1932 * sysdeps/sparc/sparc32/elf/configure.in (BROKEN_SPARC_WDISP22): New
1934 * config.h.in (BROKEN_SPARC_WDISP22): Add.
1936 2003-02-03 Ulrich Drepper <drepper@redhat.com>
1938 * sysdeps/i386/i686/memmove.S: New file.
1940 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
1942 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c:
1943 Include kernel-features.h
1944 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
1945 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
1946 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
1947 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
1949 2003-02-02 Jakub Jelinek <jakub@redhat.com>
1951 * elf/tls-macros.h [sparc] (TLS_LD, TLS_GD): Add "cc" clobbers.
1953 2003-01-25 Jim Meyering <jim@meyering.net>
1955 * io/ftw.c (object_compare): Compare inode numbers before device
1956 numbers, since the former are much more likely to differ.
1958 2003-02-01 Ulrich Drepper <drepper@redhat.com>
1960 * time/tzfile.c (__tzfile_compute): Change return value type to
1961 void. Adjust return statements.
1962 * include/time.h (__tzfile_compute): Adjust prototype.
1964 2003-02-01 Jim Meyering <jim@meyering.net>
1966 * time/tzset.c (__tz_convert): Remove dead code; __tzfile_compute
1969 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
1971 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
1972 [!__ASSUME_NEW_PRCTL_SYSCALL]: Noop prctl syscall and set ENOSYS.
1974 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
1976 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
1977 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Generate ENOSYS stub.
1978 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
1979 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
1980 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
1981 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
1982 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
1983 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
1985 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
1987 * sysdeps/unix/sysv/linux/configure.in: Change arch_minimum_kernel
1988 back to 2.4.19 for powerpc64.
1989 * sysdeps/unix/sysv/linux/kernel-features.h
1990 (__ASSUME_NEW_PRCTL_SYSCALL): Define for powerpc64.
1991 (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Define for powerpc64.
1993 2003-02-01 Ulrich Drepper <drepper@redhat.com>
1995 * wcsmbs/wcscpy.c (wcscpy): Add alternative implementation for
1996 platforms with strange alignment requirements on wchar_t.
1998 2003-01-31 Andreas Schwab <schwab@suse.de>
2000 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove __GI_*
2001 aliases, already added by make-syscalls.sh.
2002 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2003 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
2004 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
2005 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2006 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2007 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2008 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
2009 * sysdeps/unix/inet/syscalls.list: Likewise.
2010 * sysdeps/unix/syscalls.list: Likewise.
2012 2003-01-31 Andreas Schwab <schwab@suse.de>
2014 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Don't define, not needed
2017 2003-01-30 Jakub Jelinek <jakub@redhat.com>
2019 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Use lg,
2020 not l to load tls from stack.
2022 2003-01-30 Roland McGrath <roland@redhat.com>
2024 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Move check for
2025 null argument before all else.
2026 Reported by Martin Schwidefsky <schwidefsky@de.ibm.com>.
2028 2003-01-30 Jakub Jelinek <jakub@redhat.com>
2030 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_lazy_rel):
2031 Move to RESOLVE protected part of the header.
2032 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_lazy_rel):
2035 2003-01-30 Ulrich Drepper <drepper@redhat.com>
2037 * stdio-common/Makefile (tests): Add bug15.
2038 (bug15-ENV): Define.
2039 * stdio-common/bug15.c: New file.
2041 2002-10-07 Wolfram Gloger <wg@malloc.de>
2043 * malloc/malloc.c (sYSMALLOc): Only check for breakage due
2044 to foreign sbrk()'s if arena is contiguous. Bug report from
2045 Bruno Haible <bruno@clisp.org>.
2047 2003-01-30 Jakub Jelinek <jakub@redhat.com>
2049 * sysdeps/s390/libc-tls.c: Include stdlib.h.
2051 2003-01-30 Jakub Jelinek <jakub@redhat.com>
2053 * stdio-common/vfprintf.c (vfprintf): Only subtract lowest 3 bits of
2056 2003-01-30 Ulrich Drepper <drepper@redhat.com>
2058 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Fix storing and
2060 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise. Use
2062 Patch by Martin Schwidefsky <schwidefsky@de.ibm.com>.
2064 2003-01-30 Jakub Jelinek <jakub@redhat.com>
2066 * elf/dl-reloc.c (CHECK_STATIC_TLS): Move _dl_signal_error...
2067 (allocate_static_tls): ...here. Add __attribute_noinline__.
2068 Don't return on failure.
2069 (_dl_reloc_bad_type): Add __attribute_noinline__.
2070 * elf/do-rel.h (elf_dynamic_do_rel): Add
2071 __attribute__((always_inline)).
2072 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
2073 elf_machine_rel_relative, elf_machine_rela_relative,
2074 elf_machine_lazy_rel): Add prototypes with
2075 __attribute__((always_inline)).
2077 2003-01-29 David Mosberger <davidm@hpl.hp.com>
2079 * elf/dl-support.c (_dl_aux_init): Handle AT_SYSINFO.
2081 2003-01-29 Roland McGrath <roland@redhat.com>
2083 * configure.in: Barf if configured in $srcdir.
2085 2003-01-28 Steven Munroe <sjmunroe@us.ibm.com>
2087 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
2088 (__fe_nomask_env): Change __prctl call to INTERNAL_SYSCALL.
2090 2003-01-28 Martin Schwidefsky <schwidefsky@de.ibm.com>
2092 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Reorder additional
2093 clone parameters to match the order used on ia32.
2094 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
2096 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
2098 * elf/elf.h: Add new s390 relocs.
2099 * elf/tls-macros.h: Add s390 versions.
2100 * sysdeps/s390/Versions [GLIBC_2.3] (ld): Export __tls_get_offset.
2101 * sysdeps/s390/dl-tls.h: New file.
2102 * sysdeps/s390/libc-tls.c: New file.
2103 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class): Add TLS
2104 relocs for class PLT.
2105 (elf_machine_rela): Handle TLS relocs.
2106 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
2107 * sysdeps/s390/s390-32/elf/configure.in: Add TLS check.
2108 * sysdeps/s390/s390-64/elf/configure.in: Likewise.
2109 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Add support for
2110 CLONE_CHILD_*TID flags.
2111 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
2112 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Use branch with 32
2114 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
2115 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
2116 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
2117 Support USE___THREAD. Define RTLD_PRIVATE_ERRNO variant.
2118 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
2120 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
2121 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER.
2122 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
2124 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h:
2125 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER. Use
2126 direct branch to syscall_error for !PIC and PIC && !_LIBC_REENTRANT.
2127 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
2130 2003-01-28 Ulrich Drepper <drepper@redhat.com>
2132 * sysdeps/unix/common/pause.c (do_pause): New function. Split
2133 from __libc_pause. Implement using sigsuspend.
2134 (__libc_pause): Call do_pause to do the real work.
2136 * sysdeps/posix/sigpause.c (do_sigpause): Check range of
2137 sig_or_mask parameter is is_sig != 0.
2139 2003-01-21 Philip Blundell <philb@gnu.org>
2141 * sysdeps/unix/sysv/linux/bits/ioctls.h (SIOCSIFNAME): Define.
2143 2003-01-27 Steven Munroe <sjmunroe@us.ibm.com>
2145 * stdio-common/Makefile: Add bug14-ENV to set LOCPATH for make check.
2147 2003-01-27 Ulrich Drepper <drepper@redhat.com>
2149 * stdio-common/bug14.c: Use official name for the locale.
2151 * stdio-common/vfprintf.c [USE_IN_LIBIO]: Use _IO_cleanup_region_start
2152 instead of __libc_cleanup_region_start and _IO_cleanup_region_end
2153 instead of __libc_cleanup_region_end.
2155 * sysdeps/unix/sysv/linux/i386/system.c (CLEANUP_HANDLER): Pass 1
2156 as first parameter to __libc_cleanup_region_start.
2158 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
2159 (__fe_nomask_env): Use __prctl not prctl.
2160 * sysdeps/unix/sysv/linux/syscalls.list: Add __prctl alias for
2163 * elf/dl-reloc.c (CHECK_STATIC_TLS): Improve error message.
2165 * elf/dl-open.c (_dl_tls_static_size): Bump to 2048.
2167 * elf/dl-reloc.c (allocate_static_tls): Avoid arithmetic
2168 wrap-around in test.
2170 2003-01-26 Andreas Schwab <schwab@suse.de>
2172 * sysdeps/wordsize-32/divdi3.c: Export the functions only as
2173 compatibility symbols. Remove INTDEF for __divdi3.
2174 * sysdeps/wordsize-32/lldiv.c: Don't use __divdi3_internal.
2175 * sysdeps/powerpc/powerpc32/divdi3.c: Remove.
2176 * sysdeps/powerpc/powerpc32/Makefile (CPPFLAGS-divdi3.c): Don't
2178 * sysdeps/powerpc/powerpc32/Dist: Remove divdi3.c.
2180 2003-01-24 Jakub Jelinek <jakub@redhat.com>
2182 * elf/tls-macros.h: Add SPARC 32-bit definitions.
2183 * sysdeps/sparc/sparc32/elf/configure.in: Add TLS check.
2184 * sysdeps/sparc/sparc32/dl-machine.h: Add dl_machine_h guards
2185 for the first half of the header. Include tls.h.
2186 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS
2188 (elf_machine_rela): Handle TLS relocs.
2189 * sysdeps/sparc/dl-tls.h: New file.
2191 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Add cancellation
2194 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Use %g6 instead of %g7.
2195 * sysdeps/sparc/sparc32/memchr.S: Likewise.
2196 * sysdeps/sparc/sparc32/memcpy.S: Likewise.
2197 * sysdeps/sparc/sparc32/strcat.S: Likewise.
2198 * sysdeps/sparc/sparc32/strchr.S: Likewise.
2199 * sysdeps/sparc/sparc32/strcmp.S: Likewise.
2200 * sysdeps/sparc/sparc32/strcpy.S: Likewise.
2201 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
2202 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
2203 * sysdeps/sparc/sparc64/memcpy.S: Likewise.
2204 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
2205 * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
2206 * sysdeps/sparc/sparc64/strcat.S: Likewise.
2207 * sysdeps/sparc/sparc64/strchr.S: Likewise.
2208 * sysdeps/sparc/sparc64/strcmp.S: Likewise.
2209 * sysdeps/sparc/sparc64/strcpy.S: Likewise.
2210 * sysdeps/sparc/sparc64/strncmp.S: Likewise.
2211 * sysdeps/sparc/sparc64/strncpy.S: Likewise.
2212 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
2213 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
2215 2003-01-24 Andreas Schwab <schwab@suse.de>
2217 * elf/dl-close.c (_dl_close): Don't relocate DT_FINI_ARRAY
2218 elements, and process them backwards.
2219 * elf/Makefile ($(objpfx)tst-array4): New target.
2220 ($(objpfx)tst-array4.out): Likewise.
2221 (tests) [$(have-initfini-array) = yes]: Add tst-array4.
2222 * elf/tst-array4.c: New file.
2223 * elf/tst-array4.exp: Likewise.
2225 2003-01-24 Steven Munroe <sjmunroe@us.ibm.com>
2227 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: New file.
2229 2003-01-27 Guido Guenther <agx@sigxcpu.org>
2231 * sysdeps/unix/sysv/linux/mips/sysdep.h (SYSCALL_ERROR_LABEL): Define.
2232 * sysdeps/unix/sysv/linux/mips/pread.c: Add support for
2233 cancellation handling and handle both __NR_pread64 and __NR_pread.
2234 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
2235 * sysdeps/unix/sysv/linux/mips/pwrite.c: Add support for
2236 cancellation handling and handle both __NR_pwrite64 and __NR_pwrite.
2237 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
2238 * sysdeps/unix/mips/sysdep.S: Don't set errno in the _LIBC_REENTRANT
2239 case, use register names consistently.
2241 2003-01-27 Wolfram Gloger <wg@malloc.de>
2243 * malloc/hooks.c (mem2chunk_check): Check alignment of mem
2244 pointer, not of the computed chunk. Bug report from Carlos
2245 O'Donell <carlos@baldric.uwo.ca>.
2247 2003-01-25 Andreas Schwab <schwab@suse.de>
2249 * sysdeps/m68k/dl-machine.h (_dl_start_user): Use pc-relative
2250 addressing to save GOT entries.
2252 2003-01-21 Jakub Jelinek <jakub@redhat.com>
2254 * sysdeps/unix/alpha/sysdep.h (inline_syscall0,
2255 inline_syscall1, inline_syscall2, inline_syscall3,
2256 inline_syscall4, inline_syscall5, inline_syscall6): Add __volatile__.
2257 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INTERNAL_SYSCALL): Add
2258 __attribute__((unused)) to ChEcK.
2260 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
2262 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL):
2263 Fix inline assembler constraints.
2264 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL):
2267 * sysdeps/s390/s390-64/Makefile (pic-ccflag): Use -fpic instead of
2270 2003-01-20 Segher Boessenkool <segher@koffie.nl>
2272 * sysdeps/ieee754/dbl-64/sincos32.c (__mpcos): Really
2273 compute the cosine, not the sine, even if x > 0.8.
2275 2003-01-19 Ulrich Drepper <drepper@redhat.com>
2277 * nis/nss_nis/nis-spwd.c: Make _nss_nis_endspent an alias of
2278 _nss_nis_setspent. Work around the different prototypes.
2279 * nis/nss_nis/nis-rpc.c (internal_nis_setrpcent): Use
2280 internal_nis_endrpcent.
2281 (internal_nis_endrpcent): Change return type to void. Change callers.
2282 * nis/nss_nis/nis-pwd.c: Make _nss_nis_endpwent an alias of
2283 _nss_nis_setpwent. Work around the different prototypes.
2284 * nis/nss_nis/nis-proto.c (_nss_nis_endprotoent): Split out body
2285 of the function to...
2286 (internal_nis_endprotoent): ... here. New function.
2287 (internal_nis_setprotoent): Use internal_nis_endprotoent.
2288 * nis/nss_nis/nis-network.c: Make _nss_nis_endnetent an alias of
2289 _nss_nis_setnetent. Work around the different prototypes.
2290 * nis/nss_nis/nis-netgrp.c (_nss_nis_endnetgrent): Split out body
2291 of the function to...
2292 (internal_nis_endnetgrent): ... here. New function.
2293 (_nss_nis_setnetgrent): Use internal_nis_endnetgrent.
2295 2003-01-19 Jim Meyering <jim@meyering.net>
2297 * time/strftime.c: (widen): Merge nearly-identical definitions.
2298 (nl_get_alt_digit) [! defined my_strftime]: Define.
2299 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
2300 _nl_get_alt_digit and _nl_get_walt_digit.
2302 2003-01-19 Ulrich Drepper <drepper@redhat.com>
2304 * time/strftime.c (my_strftime): Handle very large width
2305 specifications for numeric values correctly. Improve checks for
2307 * time/Makefile (tests): Add tst-strftime.
2308 * time/tst-strftime.c: New file.
2310 2003-01-18 Ulrich Drepper <drepper@redhat.com>
2312 * nis/nss_nis/nis-hosts.c: Make _nss_nis_endhostent an alias of
2313 _nss_nis_sethostent. Work around the different prototypes.
2314 * nis/nss_nis/nis-grp.c: Make _nss_nis_endgrent an alias of
2315 _nss_nis_setgrent. Work around the different prototypes.
2316 * nis/nss_nis/nis-ethers.c (internal_nis_endetherent): New
2317 function. Split out from _nss_nis_endetherent.
2318 (internal_nis_setetherent): Use internal_nis_endetherent instead of
2319 duplicating the code.
2320 * nis/nss_nis/nis-alias.c: Make _nss_nss_nis_endaliasent an alias
2321 of _nss_nis_setaliasent.
2322 * nis/nss_nis/nis-service.c (internal_nis_setservent): Reuse
2323 internal_nis_endservent code, don't duplicate it.
2325 * inet/rexec.c (rexec_af): Protect socket operations with
2326 TEMP_FAILURE_RETRY. Use writev instead of multiple write.
2327 * inet/rcmd.c (rcmd_af): Likewise.
2329 2003-01-17 Roland McGrath <roland@redhat.com>
2331 * math/libm-test.inc (sin_test, cos_test, sincos_test) [TEST_DOUBLE]:
2332 Add test of value 0.80190127184058835.
2334 * elf/dl-open.c: Fix typo ifdef -> ifndef on _dl_tls_static_size defn.
2336 2003-01-17 Richard Henderson <rth@redhat.com>
2338 * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Add TLS
2339 relocs for class PLT.
2340 * sysdeps/alpha/libc-tls.c: New file.
2341 * sysdeps/unix/alpha/sysdep.S (EPILOGUE, GPSAVEREG): New.
2342 (LOADGP) [!PIC]: Rewrite to preserve caller's gp.
2344 2003-01-17 Jakub Jelinek <jakub@redhat.com>
2346 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Use
2347 __libc_lock_{,un}lock_recursive instead of __libc_lock_{,un}lock
2350 2003-01-17 Andreas Jaeger <aj@suse.de>
2352 * stdio-common/bug14.c: Include stdlib.h for exit prototype.
2354 2003-01-16 Steven Munroe <sjmunroe@us.ibm.com>
2356 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: New file.
2357 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: New file.
2358 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: New file.
2359 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: New file.
2360 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h: New file.
2361 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: New file.
2362 * sysdeps/unix/sysv/linux/configure.in: Minimum kernel for PPC64
2365 2003-01-16 Ulrich Drepper <drepper@redhat.com>
2367 * sysdeps/generic/glob.c (glob): Assume sysconf() always returns
2368 values != -1 for _LIBC. Use extend_alloca to reallocate alloca'ed
2371 * sysdeps/generic/sysconf.c: Unconditionally implement
2372 _SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX.
2373 * sysdeps/posix/sysconf.c: Likewise.
2375 2003-01-16 Jakub Jelinek <jakub@redhat.com>
2377 * posix/regcomp.c (parse_bracket_exp): If build_charclass fails,
2378 set *err to the returned error, not to REG_ESPACE unconditionally.
2379 (build_word_op): Likewise.
2380 * posix/Makefile (tests): Add bug-regex16.
2381 * posix/bug-regex16.c: New test.
2383 2003-01-16 Jakub Jelinek <jakub@redhat.com>
2385 * elf/dl-load.c (_dl_map_object_from_fd): Use
2386 GL(dl_tls_dtv_slotinfo_list) != NULL to check whether TLS has
2387 been already initialized.
2389 2003-01-15 Dmitry V. Levin <ldv@altlinux.org>
2391 * sysdeps/unix/sysv/linux/ptsname.c: Fix typo in comment.
2393 2003-01-16 Jakub Jelinek <jakub@redhat.com>
2395 * posix/regcomp.c (re_compile_internal): If clearing buffer, clear
2396 allocated too. Reported by Al Viro <aviro@redhat.com>.
2398 2003-01-16 Roland McGrath <roland@redhat.com>
2400 Tweak merged .abilist file format to merge duplicate symbols in
2401 different sets into multi-version stanzas with new "| SET regexp..."
2402 header continuation lines.
2403 * scripts/merge-abilist.awk: Rewritten for new format.
2404 * scripts/extract-abilist.awk: Likewise.
2406 2003-01-15 Ulrich Drepper <drepper@redhat.com>
2408 * nscd/connections.c (nscd_run): Remove bogus return which isn't
2409 necessary with gcc 3.2+.
2410 (nscd_init): Don't use error() to print message, use dbg_log.
2412 * iconv/gconv_simple.c (STORE_REST): Explicitly store the total
2413 expected size into state.
2414 (UNPACK_BYTES): Do the reverse.
2415 * iconv/loop.c: Use CLEAR_STATE if defined to clear __state element.
2416 * wcsmbs/tst-mbrtowc.c (utf8_test_1): Add test for the bug.
2417 Reported by Al Viro <aviro@redhat.com>.
2419 * stdio-common/Makefile (tests): Add bug14.
2420 * stdio-common/bug14.c: New file.
2422 * stdio-common/vfscanf.c: When recognizing multibyte characters in
2423 string reset the byte counter after mbrtowc reported it is not a
2424 partial character. Reported by Al Viro <aviro@redhat.com>.
2426 2003-01-15 Steven Munroe <sjmunroe@us.ibm.com>
2428 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Include
2429 sysdep-cancel.h, not sysdep.h.
2431 2003-01-15 Ulrich Drepper <drepper@redhat.com>
2433 * nscd/connections.c (nscd_run): Protect accept call with
2436 2003-01-15 Andreas Schwab <schwab@suse.de>
2438 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-bp.d.
2439 (common-generated): Add s-proto-bp.d.
2440 * sysdeps/unix/make-syscalls.sh: Use s-proto-bp.d for dependencies
2442 * sysdeps/unix/s-proto-bp.S: New file.
2443 * sysdeps/generic/bp-thunks.h: Don't include <sys/vm86.h> here.
2444 Use <io/sys/sendfile.h> instead of <sys/sendfile.h>.
2445 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: New file.
2447 2003-01-15 Roland McGrath <roland@redhat.com>
2449 * Makerules: Use -include for tls.make, suppresses warning.
2450 Move gen-as-const-headers rules up so before-compile is set in time.
2451 (sed-remove-dotdot): Fix to work right for subdirs or top dir.
2453 2003-01-15 Ulrich Drepper <drepper@redhat.com>
2455 * nscd/nscd.c (main): Make code to close all file descriptors
2456 faster and more robust.
2458 * nscd/nscd_getpw_r.c (nscd_getpw_r): Consolidate writing of the
2459 request with one writev call. Protect all read calls with
2461 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
2462 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
2464 * nscd/hstcache.c: Use extend_alloca to reallocate alloca'd buffer.
2465 Protect writev calls with TEMP_FAILURE_RETRY.
2466 * nscd/grpcache.c: Likewise.
2467 * nscd/pwdcache.c: Likewise.
2469 * nscd/hstcache.c (addhstbynamev6): Don't interpret hostname as
2470 IPv6 address in debug output.
2472 2003-01-14 Roland McGrath <roland@redhat.com>
2474 * Makerules (check-abi-%): Use two rules for $(common-objpfx) and
2475 $(objpfx) directories, and get rid of vpath directives. The previous
2476 arrangement resulted in files being written to the source directories
2477 when run in a clean build. Find all .abilist files in $(..)abilist/.
2478 (update-abi-%): Likewise.
2479 (generated): Don't add .symlist files, they'll be intermediates.
2481 * sysdeps/generic/init-first.c: Add a comment.
2483 * elf/Makefile ($(objpfx)ld.so): Pass -z defs in link.
2485 * scripts/gen-as-const.awk: Grok lone "--" as a separator between
2486 #includes and expressions.
2488 * scripts/merge-abilist.awk: Omit cpu-.*-os.*/modifier from merged
2489 config list when it already contains cpu-.*-os.* without / part.
2491 * Makerules (sed-remove-dotdot): New variable.
2492 ($(common-objpfx)%.make): Use it. Depend on $(before-compile).
2493 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.
2494 (check-abi-config): New variable, append /tls or /notls to the tuple.
2495 (check-abi-%): Use that for -v config value.
2496 Find .abilist files in abilist/libfoo.abilist, not in subdir.
2497 * Rules: Move bits/stdio_lim.h generation rules to Makerules.
2499 2003-01-14 Ulrich Drepper <drepper@redhat.com>
2501 * manual/install.texi: Correct description of header preparation for
2502 Linux build. Patch by mhwood@Ameritech.Net [PR libc/4941].
2504 2003-01-14 Guido Guenther <agx@sigxcpu.org>
2506 * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_SYSCALL,
2507 INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
2508 INTERNAL_SYSCALL_ERROR_P, INLINE_SYSCALL): Define.
2510 2003-01-14 Steven Munroe <sjmunroe@us.ibm.com>
2512 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
2513 (INTERNAL_SYSCALL): Make use of ERR parameter.
2514 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
2515 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
2516 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
2517 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
2519 2003-01-14 Ulrich Drepper <drepper@redhat.com>
2521 * sunrpc/pm_getport.c (pmap_getport): Open TCP socket if protocol
2523 Patch by James Strandboge <jamie@tpptraining.com> [PR libc/4943].
2525 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (_dl_x86_cap_flags):
2526 Fix entry for bit 31.
2528 * iconvdata/Makefile: Add rules to build IBM866NAV.
2529 * iconvdata/ibm866nav.c: New file.
2530 * iconvdata/tst-tables.sh: Add IBM866NAV.
2531 * iconvdata/gconv-modules: Add entries for IBM866NAV.
2533 2003-01-13 Ulrich Drepper <drepper@redhat.com>
2535 * string/tester.c (test_strcpy): Use the previously #if 0'ed code
2536 to test void* parameters.
2538 * sysdeps/i386/i486/bits/string.h (__STRING_SMALLL_GET16): Cast
2539 source pointer before dereferencing.
2540 (__STRING_SMALLL_GET32): Likewise.
2541 (__memset_gc): Add missing parenthesis around macro arguments.
2542 Patch by Denis Zaitsev <zzz@cd-club.ru>.
2544 * sysdeps/i386/i486/bits/string.h (__strspn_cg): Tell the compiler
2545 that %eax is modified. Reported by Denis Zaitsev <zzz@cd-club.ru>.
2547 2003-01-14 Jakub Jelinek <jakub@redhat.com>
2549 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL): Undefined before
2552 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
2554 * sysdeps/s390/s390-64/initfini.c: Avoid unterminated string literals.
2555 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (L): Don't define it
2557 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (L): Likewise.
2559 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
2561 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Move branch instructions
2563 (PSEUDO): ... to here.
2564 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Move branch instruction
2566 (PSEUDO): ... to here.
2568 2003-01-13 Ulrich Drepper <drepper@redhat.com>
2570 * locale/programs/charmap-dir.c (charmap_readdir): Use struct
2571 dirent64 instead of struct dirent for dirent. Call readdir64
2574 * locale/programs/locfile.c (siblings_uncached): Use struct
2575 dirent64 instead of struct dirent for other_dentry. Call
2576 readdir64 instead of readdir.
2578 * elf/ldconfig.c (direntry): Change type to struct dirent64.
2579 (search_dir): Use readdir64 instead of readdir.
2580 Patch by Zhangfan Xing <xing@pacific.jpl.nasa.gov>.
2582 2003-01-12 Roland McGrath <roland@redhat.com>
2584 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use strtoul,
2585 not strtol. The former is usable in ld.so, the latter not.
2587 * include/fcntl.h: Declare __libc_creat.
2589 * sysdeps/mach/hurd/Makefile (libmachuser-link.so-no-z-defs,
2590 libhurduser-link.so-no-z-defs): New variables.
2592 * malloc/malloc.c: Revert last change.
2593 * malloc/malloc.h (_int_*): Move these decls to ...
2594 * include/malloc.h: ... here. Add attribute_hidden.
2595 (_int_valloc): Declare it too.
2597 2003-01-12 Ulrich Drepper <drepper@redhat.com>
2599 * elf/dl-close.c (_dl_close): Fix typo, must be == not = in
2600 search for removed searchlist. Reported by Roland McGrath.
2602 * io/ftwtest-sh: Add test for case of symlink to nonexisting file
2603 given as start file.
2605 * io/ftw.c (ftw_startup): Use correct name in check for symlink
2606 without existing target. Patch by Jim Meyering.
2608 * Makerules (build-shlib-helper): Don't use -z defs linker option
2609 if no-z-defs is defined either.
2611 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
2613 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Remove unused
2616 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
2618 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Add vfork.
2619 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2621 2003-01-12 Ulrich Drepper <drepper@redhat.com>
2623 * io/ftwtest-sh: Add test case for relative path with /. at the end.
2625 2003-01-12 Jim Meyering <jim@meyering.net>
2627 * io/ftw.c (ftw_startup): When trying to stat the starting directory,
2628 use the basename if we've already chdir'd into its parent directory.
2630 2003-01-12 Ulrich Drepper <drepper@redhat.com>
2632 * io/ftw.c (process_entry): Use relative path when using chdir()
2633 to change directory after call to ftw_dir.
2634 * io/ftwtest-sh: Add test for relative path argument to nftw()
2635 with FTW_CHDIR option.
2637 2002-01-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2639 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
2641 * sysdeps/unix/sysv/linux/powerpc/syscall.S: Take register alignment
2643 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
2644 (INTERNAL_SYSCALL): Make use of ERR parameter.
2645 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
2646 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
2647 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
2648 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
2650 2002-01-09 Richard Henderson <rth@redhat.com>
2652 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Compute
2653 DTPREL64 and TPREL64 without loadbase applied.
2655 2002-01-09 Richard Henderson <rth@redhat.com>
2657 * sysdeps/unix/alpha/sysdep.S: Use correct definition of errno
2660 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Move inline syscall bits...
2661 * sysdeps/unix/alpha/sysdep.h: ... here.
2662 (PSEUDO_LOADGP): Remove.
2663 (PSEUDO_PROLOGUE): Load GP in non-pic case.
2664 (SYSCALL_ERROR_LABEL): New.
2665 (PSEUDO): Use it in error branch.
2666 (PSEUDO_END): Add $syscall_error label.
2668 2003-01-12 Andreas Jaeger <aj@suse.de>
2670 * math/bits/mathcalls.h: Round is a const function.
2672 2003-01-11 Jim Meyering <jim@meyering.net>
2674 * io/ftw.c [HAVE_CONFIG_H]: Include <config.h>.
2675 [HAVE_SYS_PARAM_H || _LIBC]: Guard inclusion of <sys/param.h>.
2676 Include <sys/stat.h>, not <include/sys/stat.h>, if !_LIBC.
2677 [!_LIBC] (__chdir, __closedir, __fchdir, __getcwd, __opendir): Define.
2678 [!_LIBC] (__readdir64, __tdestroy, __tfind, __tsearch): Define.
2679 [!_LIBC] (internal_function, dirent64, MAX): Define.
2680 (__set_errno): Define if not already defined.
2681 (open_dir_stream): When FTW_CHDIR is enabled, invoke opendir on
2682 the basename, not the entire file name.
2683 (process_entry): When FTW_CHDIR is enabled, invoke XSTAT or LXSTAT on
2684 the basename, not the entire file name.
2686 2003-01-12 Ulrich Drepper <drepper@redhat.com>
2688 * string/tester.c (test_strcpy): Disable last added strcpy until
2691 2003-01-11 Philip Blundell <philb@gnu.org>
2693 * sysdeps/unix/sysv/linux/arm/socket.S: Add cancellation support.
2695 2003-01-11 Andreas Schwab <schwab@suse.de>
2697 * Makerules: Add vpath for %.dynsym and %.so so that the
2698 implicit rule chaining for check-abi works.
2700 2003-01-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2702 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
2705 2003-01-11 Jakub Jelinek <jakub@redhat.com>
2707 * elf/tls-macros.h [__ia64__] (__TLS_CALL_CLOBBERS): Define.
2708 [__ia64__] (TLS_LE, TLS_IE): Fix typos. Add ;; at start of asm if
2710 [__ia64__] (TLS_LD, TLS_GD): Likewise. Use __TLS_CALL_CLOBBERS.
2711 * elf/Makefile ($(objpfx)tst-tlsmod5.so, $(objpfx)tst-tlsmod6.so):
2712 Ensure libc.so in DT_NEEDED.
2713 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Move
2714 CHECK_STATIC_TLS before l_tls_offset use.
2715 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
2717 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
2718 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage) [TLS_DTV_AT_TP]:
2719 Allocate TLS_PRE_TCB_SIZE bytes below result.
2720 (_dl_deallocate_tls) [TLS_DTV_AT_TP]: Adjust before freeing.
2721 * sysdeps/generic/libc-tls.c (__libc_setup_tls): If
2722 TLS_INIT_TP_EXPENSIVE is not defined, allocate even if no PT_TLS
2723 segment has been found. If TLS_DTV_AT_TP, allocate TLS_PRE_TCB_SIZE
2724 bytes below result and add tcb_offset to memsz.
2725 * sysdeps/ia64/dl-tls.h (__tls_get_addr): New prototype.
2726 * sysdeps/ia64/dl-machine.h: Include tls.h.
2727 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS relocs
2729 (elf_machine_rela): Assume if sym_map != NULL sym is non-NULL too.
2730 Handle R_IA64_DTPMOD*, R_IA64_DTPREL* and R_IA64_TPREL* relocations.
2731 * sysdeps/ia64/libc-tls.c: New file.
2733 2003-01-10 Steven Munroe <sjmunroe@us.ibm.com>
2735 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_RET): Add branch hit.
2736 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h (STAT_VER_LINUX):
2737 Fix type. Move definition out of #if.
2738 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ftruncate64.c: New file.
2739 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: New file.
2740 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: New file.
2741 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: New file.
2742 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: New file.
2743 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Add cancellation
2745 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Remove
2746 ftruncate64, pread64, pwrite64, truncate64 entries.
2747 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
2748 (INLINE_SYSCALL): New version that supports function call like
2749 syscalls. Add __builtin_expect.
2750 (LOADARGS_n): Add argument size safety checks.
2751 (INTERNAL_SYSCALL): New Macro.
2752 * sysdeps/unix/sysv/linux/powerpc/powerpc64/truncate64.c: New file.
2753 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [__PPC_ELF_H]: Avoid
2754 redefinition of elf_fpreg_t and elf_fpregset_t.
2756 2003-01-12 Ulrich Drepper <drepper@redhat.com>
2758 * elf/dl-close.c (_dl_close): Add several asserts. Correct and
2759 simplify test for unloading. If loader of a DSO is unloaded do not
2760 use its scope anymore. Fall back to own scope and adjust opencounts.
2761 Fix several comments.
2762 * elf/dl-deps.c (_dl_map_object_deps): Always allocate memory for
2763 the l_searchlist, not only for l_initfini.
2765 * elf/dl-lookup.c (add_dependencies): Avoid creating relocation
2766 dependencies if objects cannot be removed. Remove object with the
2767 definition as not unloadable if necessary.
2769 * elf/reldep6.c: Create relocation dependency before closing the first
2772 2003-01-10 Guido Günther <agx@sigxcpu.org>
2774 * sysdeps/unix/mips/fork.S: Add PSEUDO_END.
2775 * sysdeps/unix/mips/brk.S: Likewise.
2776 * sysdeps/unix/mips/pipe.S: Likewise.
2778 2003-01-10 Andreas Schwab <schwab@suse.de>
2780 * sysdeps/unix/sysv/linux/m68k/getsysstats.c: New file.
2782 * sysdeps/unix/sysv/linux/m68k/vfork.S: Optimize for kernels which
2783 are known to have the vfork syscall.
2785 * sysdeps/m68k/sysdep.h (JUMPTARGET): Undefine before defining it.
2787 * sysdeps/unix/sysv/linux/kernel-features.h
2788 (__ASSUME_MMAP2_SYSCALL, __ASSUME_TRUNCATE64_SYSCALL)
2789 (__ASSUME_STAT64_SYSCALL, __ASSUME_FCNTL64)
2790 (__ASSUME_VFORK_SYSCALL): Define for m68k kernels >= 2.4.12.
2792 2003-01-09 Jakub Jelinek <jakub@redhat.com>
2794 * elf/Makefile: Add rules to build and run reldep9 test.
2795 * elf/reldep9.c: New file.
2796 * elf/reldep9mod1.c: New file.
2797 * elf/reldep9mod2.c: New file.
2798 * elf/reldep9mod3.c: New file.
2800 2003-01-09 Jakub Jelinek <jakub@redhat.com>
2802 * elf/Makefile: Add rules to build and run nodelete2 test.
2803 * elf/nodelete2.c: New file.
2804 * elf/nodel2mod1.c: New file.
2805 * elf/nodel2mod2.c: New file.
2806 * elf/nodel2mod3.c: New file.
2808 2003-01-09 Jakub Jelinek <jakub@redhat.com>
2810 * posix/test-vfork.c (noop): Add __attribute_noinline__.
2811 * sysdeps/generic/sysdep.h (JUMPTARGET): Define if not defined.
2812 * sysdeps/i386/sysdep.h (JUMPTARGET): Undefine JUMPTARGET before
2814 * sysdeps/powerpc/powerpc32/sysdep.h (JUMPTARGET): Likewise.
2815 * sysdeps/powerpc/powerpc64/sysdep.h (JUMPTARGET): Likewise.
2816 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Likewise.
2817 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Likewise.
2818 * sysdeps/x86_64/sysdep.h (JUMPTARGET): Likewise.
2820 2003-01-09 Andreas Schwab <schwab@suse.de>
2822 * sysdeps/m68k/fpu/libm-test-ulps: Regenerated.
2824 2003-01-08 Ulrich Drepper <drepper@redhat.com>
2826 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL,
2827 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
2829 (INTERNAL_SYSCALL_DECL): Define.
2831 2003-01-06 Jakub Jelinek <jakub@redhat.com>
2833 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INTERNAL_SYSCALL,
2834 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
2836 (INTERNAL_SYSCALL_DECL): Define.
2837 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
2838 * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
2839 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
2840 (INLINE_SYSCALL): Adjust.
2841 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
2842 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
2843 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
2844 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
2845 * elf/dl-misc.c (_dl_debug_vdprintf): Add INTERNAL_SYSCALL_DECL,
2846 add err argument to INTERNAL_SYSCALL* macros.
2847 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
2848 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Likewise.
2849 * sysdeps/unix/sysv/linux/m68k/brk.c (__brk): Likewise.
2850 * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
2852 * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Likewise.
2853 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Use
2854 INLINE_SYSCALL instead of INTERNAL_SYSCALL and setting errno.
2856 2003-01-07 Ulrich Drepper <drepper@redhat.com>
2858 Unify symbols in user namespace exported by libc.so and libc.a.
2859 * argp/argp-fmtstream.c: Don't define argp_make_fmtstream,
2860 argp_fmtstream_free, and argp_fmtstream_printf.
2861 * argp/argp-fs-xinl.c: Don't define argp_fmtstream_putc,
2862 argp_fmtstream_puts, argp_fmtstream_write, argp_fmtstream_set_lmargin,
2863 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin, and
2864 argp_fmtstream_point.
2865 * gmon/gmon.c: Don't define write_profiling.
2866 * libio/genops.c: Don't define _cleanup.
2868 * intl/explodename.c (_nl_find_language.c): Mark as static.
2869 * intl/loadinfo.h: Remove _nl_find_language prototype.
2871 * libio/fileops.c (_IO_file_seekoff_maybe_mmap): Mark as static.
2872 * libio/libioP.h: Remove declaration.
2874 * libio/iopopen.c (_IO_proc_jumps): Mark as static.
2875 * libio/libioP.h: Remove declaration.
2877 * sysdeps/generic/unwind-dw2.c: Mark __frame_state_for with STATIC.
2878 * sysdeps/generic/framestate.c: Define STATIC before including
2881 * time/Versions [GLIBC_2.3.2] (libc): Export strptime_l.
2883 2003-01-06 Philip Blundell <philb@gnu.org>
2885 * sysdeps/unix/arm/sysdep.S (syscall_error): Optimise a little.
2886 [__LIBC_REENTRANT]: Unify PIC and non-PIC cases.
2888 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Remove .type
2890 (PSEUDO_RET): Use SYSCALL_ERROR in place of __syscall_error.
2891 (SYSCALL_ERROR): New.
2892 (SYSCALL_ERROR_HANDLER) [NOT_IN_libc]: Provide local copy of error
2894 (INTERNAL_SYSCALL): Define.
2895 (INLINE_SYSCALL): Use it.
2896 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
2897 * sysdeps/unix/sysv/linux/arm/socket.S (__socket): Use
2898 SYSCALL_ERROR in place of __syscall_error.
2900 2003-01-07 Jakub Jelinek <jakub@redhat.com>
2902 * sysdeps/ia64/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
2903 __bswap_32, __bswap_64): Put x into temporary variable
2905 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
2907 * sysdeps/s390/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
2908 __bswap_32, __bswap_64): Put x into temporary variable
2910 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
2912 * sysdeps/i386/bits/byteswap.h [!__GNUC__] (__bswap_16, __bswap_32):
2915 2003-01-07 Jakub Jelinek <jakub@redhat.com>
2917 * sysdeps/unix/sysv/linux/alpha/adjtime.c (ntp_adjtime): New weak
2920 2003-01-07 Jakub Jelinek <jakub@redhat.com>
2922 * elf/rtld.c (_rtld_global): Remove _dl_dynamic_weak initializer.
2923 * elf/dl-support.c (_dl_dynamic_weak): Initialize to 0.
2925 2003-01-07 Ulrich Drepper <drepper@redhat.com>
2927 * math/libm-test.inc (significand_test): New function.
2930 2003-01-06 Roland McGrath <roland@redhat.com>
2932 * sysdeps/i386/i486/bits/string.h (memset): Add parens around macro
2934 (memcpy, memrchr, strcpy, __stpcpy, strncpy, strcat): Likewise.
2935 (strcmp, strncat, strncmp, strchr, __strchrnul, strchrnul): Likewise.
2936 (index, strrchr, rindex, strcspn, strspn, strpbrk, strstr): Likewise.
2938 * string/tester.c (test_strcpy): Add test with `void *' arguments.
2940 2003-01-06 Ulrich Drepper <drepper@redhat.com>
2942 * sysdeps/i386/fpu/s_significandl.c (__significandl): Really
2943 return significand and not the exponent.
2944 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
2946 * elf/dl-misc.c (_dl_debug_vdprintf): Help PPC port by explicitly
2947 taking address of iov in INTERNAL_SYSCALL call. Patch by Franz Sirl.
2949 * malloc/malloc.c: Mark all _int_* functions as static.
2951 2003-01-06 Jakub Jelinek <jakub@redhat.com>
2953 * sysdeps/unix/alpha/sysdep.h (PSEUDO): Use PSEUDO_PREPARE_ARGS.
2954 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add cancellation
2956 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
2958 2003-01-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2960 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_RET): Add branch hint.
2961 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Add cancellation
2963 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Remove
2964 ftruncate64, truncate64, pread64 and pwrite64 entries.
2965 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
2966 (INLINE_SYSCALL): Add __builtin_expect.
2967 (LOADARGS_n): Add argument size safety checks.
2968 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: New file.
2969 * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: New file.
2970 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: New file.
2971 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: New file.
2972 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: New file.
2973 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: New file.
2975 2003-01-06 Jakub Jelinek <jakub@redhat.com>
2977 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Define.
2978 * sysdeps/generic/creat.c: Include sysdep-cancel.h.
2979 (LIBC_CANCEL_HANDLED): Add.
2981 * sysdeps/unix/sysv/linux/alpha/sysdep.h
2982 (inline_syscall_r0_constraint): Rename to...
2983 (inline_syscall_r0_out_constraint): ... this. Add =.
2984 (inline_syscall[0-6]): Use inline_syscall_r0_out_constraint.
2986 2003-01-06 Andreas Schwab <schwab@suse.de>
2988 * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Make
2989 sure this is always inlined.
2990 (elf_machine_rela): Likewise.
2992 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Increase inline limit.
2994 2003-01-04 Roland McGrath <roland@redhat.com>
2996 * Makeconfig (+mkdep): Add -MP flag.
2997 Suggested by Art Haas <ahaas@airmail.net>.
2999 2003-01-05 Andreas Schwab <schwab@suse.de>
3001 * sysdeps/m68k/Makefile (CFLAGS-.oS): Append -fPIC.
3003 2003-01-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3005 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Use
3006 SYSCALL_ERROR_HANDLER.
3007 * sysdeps/unix/sysv/linux/sh/pipe.S (__libc_pipe): Likewise.
3008 * sysdeps/unix/sysv/linux/sh/socket.S (__socket): Likewise.
3009 Add support for cancellation handling.
3010 * sysdeps/unix/sysv/linux/sh/syscall.S (__syscall): Use
3011 SYSCALL_ERROR_HANDLER.
3012 * sysdeps/unix/sysv/linux/sh/vfork.S (__vfork): Likewise.
3013 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Likewise.
3014 Add support for cancellation handling.
3015 (SYSCALL_ERROR_HANDLER): Define PIC variants.
3017 2003-01-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3019 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Mark
3020 __syscall_pread64 and __syscall_pwrite64 cancelable.
3021 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
3022 (INTERNAL_SYSCALL): New macro.
3023 (LOADARGS_0, LOADARGS_1): Fix.
3025 2003-01-05 Ulrich Drepper <drepper@redhat.com>
3027 * Makerules (build-shlip-helper): Unless told otherwise, add
3028 -Wl,-z,defs to linker command line.
3029 * rt/Makefile (librt.so): Link with ld.so.
3030 * dlfcn/Makefile (libdl.so): Likewise.
3032 2003-01-05 Jakub Jelinek <jakub@redhat.com>
3034 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Add support for
3035 cancellation handling.
3036 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
3037 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
3039 2003-01-04 Ulrich Drepper <drepper@redhat.com>
3041 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Correct
3042 order of parameters passed to kill.
3044 2003-01-04 Andreas Schwab <schwab@suse.de>
3046 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Add nanosecond fields.
3048 2002-01-03 Paul Eggert <eggert@twinsun.com>
3050 * malloc/obstack.h (__INT_TO_PTR) [__STDC__]: Cast result to
3051 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
3052 when compiling Bison 1.875's `bitset bset = obstack_alloc
3053 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
3055 2003-01-04 Ulrich Drepper <drepper@redhat.com>
3057 * sysdeps/posix/system.c (do_system): Minor optimizations. Remove
3059 Correct reference counter in case SIGQUIT handler installation failed.
3061 2003-01-03 Ulrich Drepper <drepper@redhat.com>
3063 * include/libc-symbols.h [HAVE_WEAK_SYMBOLS] (_weak_extern):
3064 Define using _Pragma(weak ...).
3066 2003-01-03 Andreas Jaeger <aj@suse.de>, Jakub Jelinek <jakub@redhat.com>
3068 * resolv/res_libc.c: Provide declaration for __res_init_weak and
3069 reorder declarations.
3071 2003-01-03 Art Haas <ahaas@airmail.net>
3073 * localedata/tests-mbwc/dat_iswalnum.c: Convert GCC extension
3074 initializer syntax to C99.
3075 * localedata/tests-mbwc/dat_iswalpha.c: Likewise.
3076 * localedata/tests-mbwc/dat_iswcntrl.c: Likewise.
3077 * localedata/tests-mbwc/dat_iswctype.c: Likewise.
3078 * localedata/tests-mbwc/dat_iswdigit.c: Likewise.
3079 * localedata/tests-mbwc/dat_iswgraph.c: Likewise.
3080 * localedata/tests-mbwc/dat_iswlower.c: Likewise.
3081 * localedata/tests-mbwc/dat_iswprint.c: Likewise.
3082 * localedata/tests-mbwc/dat_iswpunct.c: Likewise.
3083 * localedata/tests-mbwc/dat_iswspace.c: Likewise.
3084 * localedata/tests-mbwc/dat_iswupper.c: Likewise.
3085 * localedata/tests-mbwc/dat_iswxdigit.c: Likewise.
3086 * localedata/tests-mbwc/dat_mblen.c: Likewise.
3087 * localedata/tests-mbwc/dat_mbrlen.c: Likewise.
3088 * localedata/tests-mbwc/dat_mbrtowc.c: Likewise.
3089 * localedata/tests-mbwc/dat_mbsrtowcs.c: Likewise.
3090 * localedata/tests-mbwc/dat_mbstowcs.c: Likewise.
3091 * localedata/tests-mbwc/dat_mbtowc.c: Likewise.
3092 * localedata/tests-mbwc/dat_strcoll.c: Likewise.
3093 * localedata/tests-mbwc/dat_strfmon.c: Likewise.
3094 * localedata/tests-mbwc/dat_strxfrm.c: Likewise.
3095 * localedata/tests-mbwc/dat_swscanf.c: Likewise.
3096 * localedata/tests-mbwc/dat_towctrans.c: Likewise.
3097 * localedata/tests-mbwc/dat_towlower.c: Likewise.
3098 * localedata/tests-mbwc/dat_towupper.c: Likewise.
3099 * localedata/tests-mbwc/dat_wcrtomb.c: Likewise.
3100 * localedata/tests-mbwc/dat_wcscat.c: Likewise.
3101 * localedata/tests-mbwc/dat_wcschr.c: Likewise.
3102 * localedata/tests-mbwc/dat_wcscmp.c: Likewise.
3103 * localedata/tests-mbwc/dat_wcscoll.c: Likewise.
3104 * localedata/tests-mbwc/dat_wcscpy.c: Likewise.
3105 * localedata/tests-mbwc/dat_wcscspn.c: Likewise.
3106 * localedata/tests-mbwc/dat_wcslen.c: Likewise.
3107 * localedata/tests-mbwc/dat_wcsncat.c: Likewise.
3108 * localedata/tests-mbwc/dat_wcsncmp.c: Likewise.
3109 * localedata/tests-mbwc/dat_wcsncpy.c: Likewise.
3110 * localedata/tests-mbwc/dat_wcspbrk.c: Likewise.
3111 * localedata/tests-mbwc/dat_wcsrtombs.c: Likewise.
3112 * localedata/tests-mbwc/dat_wcsspn.c: Likewise.
3113 * localedata/tests-mbwc/dat_wcsstr.c: Likewise.
3114 * localedata/tests-mbwc/dat_wcstod.c: Likewise.
3115 * localedata/tests-mbwc/dat_wcstok.c: Likewise.
3116 * localedata/tests-mbwc/dat_wcstombs.c: Likewise.
3117 * localedata/tests-mbwc/dat_wcswidth.c: Likewise.
3118 * localedata/tests-mbwc/dat_wcsxfrm.c: Likewise.
3119 * localedata/tests-mbwc/dat_wctob.c: Likewise.
3120 * localedata/tests-mbwc/dat_wctomb.c: Likewise.
3121 * localedata/tests-mbwc/dat_wctrans.c: Likewise.
3122 * localedata/tests-mbwc/dat_wctype.c: Likewise.
3123 * localedata/tests-mbwc/dat_wcwidth.c: Likewise.
3125 2003-01-03 Richard Henderson <rth@redhat.com>
3127 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall_r0_asm): New.
3128 (inline_syscall_r0_constraint): New.
3129 (inline_syscall[0-6]): Use them.
3131 2003-01-03 Jakub Jelinek <jakub@redhat.com>
3133 * sysdeps/generic/ldsodefs.h (_dl_allocate_tls, _dl_deallocate_tls):
3134 Add rtld_hidden_proto.
3135 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Add rtld_hidden_def.
3136 (_dl_allocate_tls): Likewise. Remove INTDEF.
3138 2002-07-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3140 * sysdeps/sh/memcpy.S: Optimize. Based on a patch by Toshiyasu
3141 Morita <toshiyasu.morita@hsa.hitachi.com>.
3142 * sysdeps/sh/memcpy.S: Likewise.
3144 2003-01-02 Ulrich Drepper <drepper@redhat.com>
3146 * sysdeps/pthread/aio_suspend.c (aio_suspend): Don't quite remove
3147 any, but unify the test.
3149 2003-01-02 Jakub Jelinek <jakub@redhat.com>
3151 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction,
3152 sigaction): Protect weak_alias and libc_hidden_weak with
3153 #ifndef LIBC_SIGACTION.
3154 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction,
3155 sigaction): Likewise.
3156 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction,
3157 sigaction): Likewise.
3158 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction,
3159 sigaction): Likewise.
3160 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction,
3161 sigaction): Likewise.
3162 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction,
3163 sigaction): Likewise.
3164 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction,
3165 sigaction): Likewise.
3166 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction,
3167 sigaction): Likewise. Remove SIGCANCEL handling here.
3168 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction, sigaction):
3171 2003-01-02 Art Haas <ahaas@airmail.net>
3173 * login/tst-utmp.c: Convert GCC extension initializer syntax to C99.
3175 2003-01-02 Ulrich Drepper <drepper@redhat.com>
3177 * posix/getconf.c: Update copyright year.
3178 * nss/getent.c: Likewise.
3179 * nscd/nscd_nischeck.c: Likewise.
3180 * iconv/iconvconfig.c: Likewise.
3181 * iconv/iconv_prog.c: Likewise.
3182 * elf/ldconfig.c: Likewise.
3183 * catgets/gencat.c: Likewise.
3184 * csu/version.c: Likewise.
3185 * elf/ldd.bash.in: Likewise.
3186 * elf/sprof.c (print_version): Likewise.
3187 * locale/programs/locale.c: Likewise.
3188 * locale/programs/localedef.c: Likewise.
3189 * nscd/nscd.c (print_version): Likewise.
3190 * debug/xtrace.sh: Likewise.
3191 * malloc/memusage.sh: Likewise.
3192 * malloc/mtrace.pl: Likewise.
3194 2003-01-01 Jakub Jelinek <jakub@redhat.com>
3196 * io/sys/stat.h: Include time.h with __need_timespec even if
3197 __USE_MISC is defined but __USE_XOPEN is not.
3199 2003-01-01 Andreas Jaeger <aj@suse.de>
3201 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Use union
3202 type to avoid strict aliasing problem.
3203 (_nss_dns_gethostbyname2_r): Likewise.
3204 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
3205 (_nss_dns_getnetbyname_r): Likewise.
3206 * resolv/gethnamaddr.c (_gethtent): Likewise.
3207 (gethostbyname2): Likewise.
3209 2002-12-31 Ulrich Drepper <drepper@redhat.com>
3211 * string/string-inlines.c: Define __memcpy_g and __strchr_g macros
3212 to avoid using the exported symbols. Define aliases with the
3213 original names separately.
3215 * include/time.h: Add libc_hidden_proto for __strftime_l.
3216 * include/wchar.h: Add libc_hidden_proto for __wcsftime_l.
3217 * time/strftime.c: Always use libc_hidden_def if _LIBC.
3219 * libio/libioP.h: Add libc_hidden_proto for _IO_file_open.
3220 * libio/fileops.c: Add libc_hidden_def for _IO_file_open.
3222 * malloc/mtrace.c: Add libc_hidden_proto and libc_hidden_def for
3225 * csu/Makefile (routines): Add dso_handle.
3226 * csu/dso_handle.c: New file.
3228 2002-12-31 Roland McGrath <roland@redhat.com>
3230 * Makerules (compile.S, COMPILE.S): Remove -DASSEMBLER here.
3231 Use $(S-CPPFLAGS) in place of $(asm-CPPFLAGS).
3232 (S-CPPFLAGS): Add -DASSEMBLER here instead.
3233 (generate-md5, +make-deps): Fix magic to get $(S-CPPFLAGS).
3235 2002-12-31 Ulrich Drepper <drepper@redhat.com>
3237 * malloc/thread-m.h [SHARED] (thread_atfork): Assume __dso_handle
3240 2002-12-31 Andreas Jaeger <aj@suse.de>
3242 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Sync
3244 * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
3245 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Likewise.
3246 * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Likewise.
3248 * sysdeps/unix/sysv/linux/kernel_stat.h
3249 (_HAVE_STAT_NSEC,_HAVE_STAT_NSEC64): New.
3251 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Re-add
3252 __unused[1-3] since they're needed by some platforms. Handle
3253 _HAVE_STAT_NSEC and _HAVE_STAT_NSEC64.
3255 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Add nsec resolution
3256 for structs stat and stat64.
3257 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
3258 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
3259 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
3260 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
3262 * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
3264 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
3265 nsec resolution changes.
3266 (xstat64_conv): Likewise.
3267 (xstat32_conv): Likewise.
3269 * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
3272 * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
3273 structs stat and stat64.
3275 * time/time.h (__timespec_defined): Define for __USE_MISC.
3277 2002-12-31 Ulrich Drepper <drepper@redhat.com>
3279 * include/signal.h: Add libc_hidden_proto for __libc_current_sigrtmin
3280 and __libc_current_sigrtmax.
3282 2002-12-31 Jakub Jelinek <jakub@redhat.com>
3284 * include/errno.h (__errno_location): Add prototype.
3285 Use libc_hidden_proto unconditionally.
3286 * include/netdb.h (__h_errno_location): Use libc_hidden_proto
3288 * include/resolv.h (__res_state): Likewise.
3290 * hurd/errno-loc.c (__errno_location): Add libc_hidden_def.
3291 * include/sys/socket.h (accept): Add libc_hidden_proto.
3292 * include/errno.h (__errno_location): Likewise.
3293 * include/netdb.h (__h_errno_location): Likewise.
3294 * include/resolv.h (__res_state): Likewise.
3295 * include/unistd.h (__lseek): Likewise.
3296 * sysdeps/generic/errno-loc.c (__errno_location): Add libc_hidden_def.
3297 * sysdeps/generic/herrno-loc.c (__h_errno_location): Likewise.
3298 * sysdeps/generic/res-state.c (__res_state): Likewise.
3299 * sysdeps/generic/accept.c (accept): Likewise.
3300 * sysdeps/generic/lseek.c (__lseek): Likewise.
3301 * sysdeps/generic/allocrtsig.c (__libc_current_sigrtmin,
3302 __libc_current_sigrtmax): Likewise.
3303 * sysdeps/mach/hurd/accept.c (accept): Likewise.
3304 * sysdeps/mach/hurd/lseek.c (__lseek): Likewise.
3305 * sysdeps/unix/sysv/aix/accept.c (accept): Likewise.
3306 * sysdeps/unix/sysv/aix/lseek.c (__lseek): Likewise.
3307 * sysdeps/unix/sysv/linux/accept.S (accept): Likewise.
3308 * sysdeps/unix/inet/syscalls.list (__GI_accept): New alias to accept.
3309 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI_accept): Likewise.
3310 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI_accept): Likewise.
3311 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___lseek): New
3313 (__GI_accept): New alias to accept.
3314 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI_accept): Likewise.
3315 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___lseek):
3316 New alias to llseek.
3317 (__GI_accept): New alias to accept.
3318 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__GI_accept):
3320 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI_accept):
3322 * sysdeps/unix/syscalls.list (__GI___lseek): New alias to lseek.
3324 * sysdeps/alpha/setjmp.S : Use libc_hidden_def(name) instead of
3325 strong_alias (name, __GI_name).
3326 * sysdeps/arm/bsd-_setjmp.S : Likewise.
3327 * sysdeps/hppa/bsd-_setjmp.S : Likewise.
3328 * sysdeps/i386/bsd-_setjmp.S : Likewise.
3329 * sysdeps/mips/mips64/bsd-_setjmp.S : Likewise.
3330 * sysdeps/mips/bsd-_setjmp.S : Likewise.
3331 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S : Likewise.
3332 * sysdeps/powerpc/powerpc64/setjmp.S : Likewise.
3333 * sysdeps/s390/s390-32/elf/setjmp.S : Likewise.
3334 * sysdeps/s390/s390-32/bsd-_setjmp.S : Likewise.
3335 * sysdeps/s390/s390-64/elf/setjmp.S : Likewise.
3336 * sysdeps/s390/s390-64/bsd-_setjmp.S : Likewise.
3337 * sysdeps/sh/bsd-_setjmp.S : Likewise.
3338 * sysdeps/sparc/sparc32/setjmp.S : Likewise.
3339 * sysdeps/unix/arm/fork.S : Likewise.
3340 * sysdeps/unix/bsd/hp/m68k/vfork.S : Likewise.
3341 * sysdeps/unix/bsd/i386/vfork.S : Likewise.
3342 * sysdeps/unix/bsd/osf/alpha/fork.S : Likewise.
3343 * sysdeps/unix/bsd/sun/m68k/vfork.S : Likewise.
3344 * sysdeps/unix/bsd/ultrix4/mips/vfork.S : Likewise.
3345 * sysdeps/unix/bsd/vax/vfork.S : Likewise.
3346 * sysdeps/unix/i386/fork.S : Likewise.
3347 * sysdeps/unix/mips/fork.S : Likewise.
3348 * sysdeps/unix/sparc/fork.S : Likewise.
3349 * sysdeps/unix/sparc/vfork.S : Likewise.
3350 * sysdeps/unix/sysv/linux/arm/vfork.S : Likewise.
3351 * sysdeps/unix/sysv/linux/cris/vfork.S : Likewise.
3352 * sysdeps/unix/sysv/linux/i386/vfork.S : Likewise.
3353 * sysdeps/unix/sysv/linux/ia64/fork.S : Likewise.
3354 * sysdeps/unix/sysv/linux/ia64/setjmp.S : Likewise.
3355 * sysdeps/unix/sysv/linux/ia64/vfork.S : Likewise.
3356 * sysdeps/unix/sysv/linux/m68k/vfork.S : Likewise.
3357 * sysdeps/unix/sysv/linux/sh/vfork.S : Likewise.
3358 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S : Likewise.
3359 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S : Likewise.
3360 * sysdeps/unix/sysv/linux/sparc/fork.S : Likewise.
3361 * sysdeps/unix/sysv/linux/sparc/vfork.S : Likewise.
3362 * sysdeps/unix/sysv/linux/x86_64/vfork.S : Likewise.
3363 * sysdeps/unix/fork.S : Likewise.
3364 * sysdeps/vax/bsd-_setjmp.S : Likewise.
3365 * sysdeps/x86_64/bsd-_setjmp.S : Likewise.
3367 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Guard against multiple
3370 2002-12-31 Ulrich Drepper <drepper@redhat.com>
3372 * include/unistd.h: Add libc_hidden_proto for __fork and __vfork.
3373 * sysdeps/generic/fork.c: Add libc_hidden_def for __fork.
3374 * sysdeps/mach/hurd/fork.c: Likewise.
3375 * sysdeps/unix/sysv/aix/fork.c: Likewise.
3376 * sysdeps/unix/fork.S: Add __GI___fork alias.
3377 * sysdeps/unix/arm/fork.S: Likewise.
3378 * sysdeps/unix/bsd/osf/alpha/fork.S: Likewise.
3379 * sysdeps/unix/i386/fork.S: Likewise.
3380 * sysdeps/unix/mips/fork.S: Likewise.
3381 * sysdeps/unix/sparc/fork.S: Likewise.
3382 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
3383 * sysdeps/unix/sysv/linux/sparc/fork.S: Likewise.
3384 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3385 * sysdeps/generic/vfork.c: Add libc_hidden_def for __vfork.
3386 * sysdeps/unix/bsd/hp/m68k/vfork.S: Add __GI___vfork alias.
3387 * sysdeps/unix/bsd/i386/vfork.S: Likewise.
3388 * sysdeps/unix/bsd/sun/m68k/vfork.S: Likewise.
3389 * sysdeps/unix/bsd/ultrix4/mips/vfork.S: Likewise.
3390 * sysdeps/unix/bsd/vax/vfork.S: Likewise.
3391 * sysdeps/unix/sparc/vfork.S: Likewise.
3392 * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
3393 * sysdeps/unix/sysv/linux/cris/vfork.S: Likewise.
3394 * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
3395 * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
3396 * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
3397 * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
3398 * sysdeps/unix/sysv/linux/sparc/vfork.S: Likewise.
3399 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
3401 * include/time.h: Add libc_hidden_proto for __nanosleep.
3402 * sysdeps/generic/nanosleep.c: Add libc_hidden_def for __nanosleep.
3403 * sysdeps/mach/nanosleep.c: Likewise.
3404 * sysdeps/unix/sysv/aix/nanosleep.c: Likewise.
3405 * sysdeps/unix/sysv/linux/syscalls.list: Add __GI___nanosleep alias.
3407 * libio/libioP.h: Add libc_hidden_proto for _IO_list_lock,
3408 _IO_list_unlock, and _IO_list_resetlock.
3409 * libio/genops.c: Add libc_hidden_def for _IO_list_lock,
3410 _IO_list_unlock, and _IO_list_resetlock.
3412 * libio/libioP.h: Add libc_hidden_proto for _IO_iter_begin,
3413 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
3414 * libio/genops.c: Add libc_hidden_def for _IO_iter_begin,
3415 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
3417 * include/setjmp.h: Add libc_hidden_proto for __libc_longjmp.
3418 * sysdeps/generic/longjmp.c: Add libc_hidden_def for __longjmp.
3419 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
3420 __GI___longjmp alias.
3422 * include/setjmp.h: Add libc_hidden_proto for _setjmp.
3423 * sysdeps/alpha/setjmp.S: Add __GI__setjmp alias.
3424 * sysdeps/arm/bsd-_setjmp.S: Likewise.
3425 * sysdeps/generic/bsd-_setjmp.c: Likewise.
3426 * sysdeps/hppa/bsd-_setjmp.S: Likewise.
3427 * sysdeps/i386/bsd-_setjmp.S: Likewise.
3428 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
3429 * sysdeps/mips/bsd-_setjmp.S: Likewise.
3430 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
3431 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
3432 * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
3433 * sysdeps/s390/s390-32/bsd-_setjmp.S: Likewise.
3434 * sysdeps/s390/s390-32/elf/setjmp.S: Likewise.
3435 * sysdeps/s390/s390-64/bsd-_setjmp.S: Likewise.
3436 * sysdeps/s390/s390-64/elf/setjmp.S: Likewise.
3437 * sysdeps/sh/bsd-_setjmp.S: Likewise.
3438 * sysdeps/sparc/sparc32/setjmp.S: Likewise.
3439 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
3440 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
3441 * sysdeps/vax/bsd-_setjmp.S: Likewise.
3442 * sysdeps/x86_64/bsd-_setjmp.S: Likewise.
3444 2002-12-30 Ulrich Drepper <drepper@redhat.com>
3446 * malloc/thread-m.h (thread_atfork): Define using __register_atfork.
3448 2002-12-30 Roland McGrath <roland@redhat.com>
3450 * Rules (generated): Target removed.
3451 * mach/Makefile (generated): Define it here instead.
3453 * math/Makefile (generated): Add m_*l and m_*f variants too.
3455 2002-12-30 Ulrich Drepper <drepper@redhat.com>
3457 * elf/dl-close.c (_dl_close): Handle relocation dependencies among
3458 the to-be-deleted objects right away instead of later separately.
3459 The latter fails because the scope data structures of the DSO
3460 might already be gone.
3462 * elf/Makefile: Add rules to build and run reldep8 test.
3463 * elf/reldep8.c: New file.
3464 * elf/reldep8mod1.c: New file.
3465 * elf/reldep8mod2.c: New file.
3466 * elf/reldep8mod3.c: New file.
3467 Contributed by Jakub Jelinek.
3469 2002-12-24 GOTO Masanori <gotom@debian.or.jp>
3471 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
3472 checking of return value ENOSYS from getdents64.
3474 2002-12-28 Andreas Schwab <schwab@suse.de>
3476 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-cancel.d.
3477 ($(common-objpfx)s-%.d): Generalized from
3478 $(common-objpfx)s-proto.d rule.
3479 (common-generated): Add s-proto-cancel.d.
3480 * sysdeps/unix/make-syscalls.sh: Use s-proto-cancel.d for
3481 cancellable syscalls.
3482 * sysdeps/unix/s-proto-cancel.S: New file.
3484 2002-12-29 Roland McGrath <roland@redhat.com>
3486 * resolv/res_libc.c: Move _res defn magic after res_init defn
3487 so _res macro is in effect for that code.
3489 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Fix sed
3490 pattern for prepending $(..) so it doesn't affect $(foo).
3492 * math/Makefile (generated): Add $(addsuffix .c .S,$(calls:s_%=m_%)).
3494 2002-12-29 Jakub Jelinek <jakub@redhat.com>
3496 * elf/cache.c (add_to_cache): Don't loop forever with 1ULL << 63 set
3499 2002-12-28 Ulrich Drepper <drepper@redhat.com>
3501 * misc/sys/cdefs.h (__attribute_deprecated__): New #define.
3503 2002-12-28 Andreas Jaeger <aj@suse.de>
3505 * sysdeps/generic/readelflib.c (process_elf_file): Cast value to
3507 * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
3509 2002-12-27 Jakub Jelinek <jakub@redhat.com>
3511 * inet/herrno.c (__h_errno_location): Remove.
3512 * inet/Makefile (routines): Add herrno-loc.
3513 * resolv/res_libc.c (__res_state): Remove.
3514 * resolv/Makefile (routines): Add res-state.
3515 * sysdeps/generic/herrno-loc.c: New file.
3516 * sysdeps/generic/res-state.c: New file.
3518 2002-12-27 Jakub Jelinek <jakub@redhat.com>
3520 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
3521 Only define if USE_DL_SYSINFO is defined.
3523 2002-12-22 Jakub Jelinek <jakub@redhat.com>
3525 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INLINE_SYSCALL,
3526 INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERROR):
3527 Define. Patch by Richard Henderson and Jes Sorensen.
3528 (PSEUDO): Remove unnecessary ;;.
3529 * elf/rtld.c (dl_main): Initialize TLS even if no PT_TLS segments
3530 are found unless TLS_INIT_TP_EXPENSIVE. Use NONTLS_INIT_TP.
3531 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Use NONTLS_INIT_TP
3532 if not initializing thread pointer.
3533 [!USE_TLS && NONTLS_INIT_TP] (__pthread_initialize_minimal): New.
3534 * sysdeps/generic/libc-start.c (__pthread_initialize_minimal): Don't
3535 make it weak also if NONTLS_INIT_TP.
3536 * sysdeps/unix/common/pause.c: Handle cancellation.
3537 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h [DONT_LOAD_G1]
3538 (LOADSYSCALL): Remove.
3539 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
3540 (SYSCALL_ERROR_HANDLER): Use it.
3541 (PSEUDO): Don't jump around error handler.
3542 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__libc_pipe): Don't
3543 jump around error handler.
3544 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S (syscall): Likewise.
3545 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Branch
3546 to __syscall_error_handler on failure.
3547 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [DONT_LOAD_G1]
3548 (LOADSYSCALL): Remove.
3549 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
3550 (SYSCALL_ERROR_HANDLER): Use it.
3551 (PSEUDO): Don't jump around error handler.
3552 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__libc_pipe): Don't
3553 jump around error handler.
3554 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S (syscall): Likewise.
3555 * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S (__socket): Branch
3556 to __syscall_error_handler on failure.
3558 2002-12-27 Roland McGrath <roland@redhat.com>
3560 * scripts/gen-as-const.awk: New file.
3561 * Makefile (distribute): Add it.
3562 * Makerules ($(common-objpfx)%.h %.h.d: %.sym): New pattern rule.
3563 (before-compile): Add $(gen-as-const-headers:%.sym=$(common-objpfx)%.h)
3565 (+depfiles): Add $(addprefix $(common-objpfx),$(gen-as-const-headers)).
3567 2002-12-27 Andreas Schwab <schwab@suse.de>
3569 * sysdeps/unix/sysv/linux/m68k/socket.S: Add cancellation support.
3571 2002-12-27 Jakub Jelinek <jakub@redhat.com>
3573 * malloc/arena.c (ptmalloc_init): Don't call next_env_entry if
3576 2002-12-27 Andreas Schwab <schwab@suse.de>
3578 * Makerules ($(common-objpfx)%.make): Filter through
3579 $(sed-remove-objpfx).
3581 2002-12-23 Roland McGrath <roland@redhat.com>
3583 * scripts/abilist.awk: Produce a more compact format, divided into
3584 stanzas for each version set, the set name listed only once.
3585 * scripts/extract-abilist.awk: New file.
3586 * scripts/merge-abilist.awk: New file.
3587 * Makerules (check-abi-%, update-abi-%): New pattern rules.
3588 (update-abi, check-abi): New targets.
3589 * Makefile (+subdir_targets): Add subdir_{check,update}-abi.
3591 2002-12-19 Roland McGrath <roland@redhat.com>
3593 * Makerules (%.symlist): Use LC_ALL=C when running awk script.
3595 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Cast result of
3598 2002-12-21 Andreas Schwab <schwab@suse.de>
3600 * elf/check-textrel.c (handle_file): Swap p_type.
3602 2002-12-21 Andreas Schwab <schwab@suse.de>
3604 * sysdeps/unix/sysv/linux/m68k/sysdep.h (INTERNAL_SYSCALL): Define.
3605 (INLINE_SYSCALL): Use it.
3606 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
3607 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
3609 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Use INTERNAL_SYSCALL.
3610 * sysdeps/unix/sysv/linux/m68k/brk.c: Likewise.
3612 2002-12-20 Art Haas <ahaas@airmail.net>
3614 * sysdeps/gnu/siglist.c: Convert GCC extension initializer
3617 2002-12-21 Philip Blundell <philb@gnu.org>
3619 * sysdeps/arm/elf/start.S (_start): Optimise a little. Push stack
3620 top as seventh arg to __libc_start_main.
3621 Reported by paulnash@wildseed.com.
3623 * sysdeps/unix/sysv/linux/arm/clone.S: Small optimisation.
3625 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Elide
3626 compatibility cruft when new enough kernel is assumed.
3628 2002-12-20 Jakub Jelinek <jakub@redhat.com>
3630 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use INTERNAL_SYSCALL
3631 instead of INLINE_SYSCALL.
3633 2002-12-20 Ulrich Drepper <drepper@redhat.com>
3635 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Fix
3638 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Define SHM_HUGETLB.
3639 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
3640 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Likewise.
3641 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
3642 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
3643 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
3644 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
3645 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
3646 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
3647 Patch by William Lee Irwin <wli@holomorphy.com>.
3649 2002-12-20 Andreas Schwab <schwab@suse.de>
3651 * locale/programs/ld-measurement.c (measurement_output): Fix
3654 2002-12-20 Ulrich Drepper <drepper@redhat.com>
3656 * include/libio.h [_IO_MTSAFE_IO && _IO_lock_inexpensive]:
3657 Redefine _IO_flockifle and _IO_funlockfile as inlines.
3659 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): For TLS
3660 builds add "tls" in the search path.
3661 * elf/ldconfig.c (is_hwcap_platform): Also recognize "tls".
3662 (path_hwcap): Recognize "tls".
3664 2002-12-19 Ulrich Drepper <drepper@redhat.com>
3666 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Use
3667 __waitpid instead of waitpid.
3669 * sysdeps/unix/sysv/linux/i386/_exit.S: Use ENTER_KERNEL instead of
3671 * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
3672 * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
3673 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
3675 * sysdeps/unix/sysv/linux/i386/sysdep.h: Add support to use AT_SYSINFO
3676 information for system calls.
3678 * sysdeps/generic/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO to 1 only
3681 * elf/rtld.c (_dl_start) [USE___THREAD]: Define initdtv.
3683 2002-12-19 Roland McGrath <roland@redhat.com>
3685 * iconvdata/ibm856.h: Convert GCC extension initializer syntax to C99.
3686 * iconvdata/ibm922.h: Likewise.
3687 * iconvdata/ibm930.h: Likewise.
3688 * iconvdata/ibm932.h: Likewise.
3689 * iconvdata/ibm933.h: Likewise.
3690 * iconvdata/ibm935.h: Likewise.
3691 * iconvdata/ibm937.h: Likewise.
3692 * iconvdata/ibm939.h: Likewise.
3693 * iconvdata/ibm943.h: Likewise.
3694 * iconvdata/isiri-3342.h: Likewise.
3696 2002-12-19 Ulrich Drepper <drepper@redhat.com>
3698 * test-skeleton.c (main): Make sure correct value is seen as
3699 argv[0] after adjustment of argv, and argc.
3701 * elf/rtld.c: Don't initialize _dl_dynamic_weak to 1 if
3702 RTLD_CORRECT_DYNAMIC_WEAK is defined.
3704 2002-12-19 Jakub Jelinek <jakub@redhat.com>
3706 * nscd/connections.c (nscd_run): Shut up warning.
3707 * tst-ungetc.c (assert): Undefined before redefining.
3709 2002-12-19 Ulrich Drepper <drepper@redhat.com>
3711 * posix/regex.c: Use __builtin_expect even outside glibc if gcc 3
3714 2002-12-17 Art Haas <ahaas@airmail.net>
3716 * iconvdata/cp737.h: Convert GCC extension initializer syntax to C99.
3717 * iconvdata/cp775.h: Likewise.
3718 * iconvdata/ibm1046.h: Likewise.
3719 * iconvdata/ibm1124.h: Likewise.
3720 * iconvdata/ibm1129.h: Likewise.
3721 * iconvdata/ibm1132.h: Likewise.
3722 * iconvdata/ibm1133.h: Likewise.
3723 * iconvdata/ibm1160.h: Likewise.
3724 * iconvdata/ibm1161.h: Likewise.
3725 * iconvdata/ibm1162.h: Likewise.
3726 * iconvdata/ibm1163.h: Likewise.
3727 * iconvdata/ibm1164.h: Likewise.
3729 2002-12-19 Ulrich Drepper <drepper@redhat.com>
3731 * sysdeps/unix/sysv/linux/i386/system.c: Define FORK only if
3732 __ASSUME_CLONE_THREAD_FLAGS is defined.
3733 * sysdeps/unix/sysv/linux/kernel-features.h
3734 (__ASSUME_CLONE_THREAD_FLAGS): Define for x86 and kernel >= 2.5.50.
3736 2002-12-18 Ulrich Drepper <drepper@redhat.com>
3738 * sysdeps/unix/sysv/linux/i386/brk.c: Use INTERNAL_SYSCALL instead
3740 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
3742 * elf/dl-support.c [NEED_DL_SYSINFO]: Define and initialize
3744 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
3746 * elf/rtld.c [DL_NEED_SYSINFO]: Initialize _dl_sysinfo element of
3748 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
3750 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
3751 Check for AT_SYSINFO and set _dl_sysinfo appropriately.
3752 * sysdeps/generic/ldsodefs.h (struct rtld_global) [NEED_DL_SYSINFO]:
3755 2002-12-18 Jakub Jelinek <jakub@redhat.com>
3757 * misc/Versions [libc: GLIBC_2.3.1]: Move __libc_readv and
3759 [libc: GLIBC_PRIVATE]: ...here.
3760 * sysvipc/Versions [libc: GLIBC_2.3.1]: Move __libc_msgrcv and
3762 [libc: GLIBC_PRIVATE]: ...here.
3764 2002-12-18 Ulrich Drepper <drepper@redhat.com>
3766 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define ENTER_KERNEL macro.
3767 Use it instead of directly int $0x80.
3768 * sysdeps/unix/sysv/linux/i386/brk.c: Use ENTER_KERNEL.
3769 * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
3770 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
3771 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
3772 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
3773 * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
3775 2002-12-17 Ulrich Drepper <drepper@redhat.com>
3777 * malloc/malloc.c (mALLOPt): Make sure malloc is initialized.
3779 * elf/elf.h (AT_SYSINFO): New define.
3780 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add support for
3783 2002-12-17 Jakub Jelinek <jakub@redhat.com>
3785 * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgrcv, msgsnd):
3787 * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgrcv, msgsnd):
3789 * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgrcv, msgsnd):
3791 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgrcv, msgsnd):
3793 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgrcv, msgsnd):
3795 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend): Likewise.
3797 * malloc/thread-m.h (mutex_init, mutex_lock, mutex_trylock,
3798 mutex_unlock): If not building NPTL, use __libc_maybe_call2 if
3799 available, otherwise __libc_maybe_call.
3800 * sysdeps/unix/sysv/linux/x86_64/recv.c: Add support for
3801 cancellation handling.
3802 * sysdeps/unix/sysv/linux/x86_64/send.c: Likewise.
3804 2002-12-17 Isamu Hasegawa <isamu@yamato.ibm.com>
3806 * posix/regcomp.c (free_workarea_compile): Free the new member
3808 (analyze): Initialize ORG_INDICES.
3809 (duplicate_node_closure): Search for a existing node, which is
3810 duplicated from the node ORG_DEST and satisfies the constraint
3811 CONSTRAINT. And use it to avoid inifimite loop.
3812 (search_duplicated_node): New function.
3813 (duplicate_node): Store the index of the original node.
3814 * posix/regex_internal.c (re_dfa_add_node): Realloc ORG_INDICES
3816 * posix/regex_internal.h (re_dfa_t): Add new members.
3818 2002-12-17 Ulrich Drepper <drepper@redhat.com>
3820 * stdio-common/tst-fdopen.c: Undefine assert before redefining it.
3822 2002-12-16 Ulrich Drepper <drepper@redhat.com>
3824 * sysdeps/posix/system.c (do_system): Add support for installation
3825 of cancellation handlers.
3826 * sysdeps/unix/sysv/linux/i386/system.c: New file.
3828 * stdlib/Makefile (tests): Add tst-system.
3829 * stdlib/tst-system.c: New file.
3831 * sysdeps/unix/sysv/linux/i386/socket.S [NEED_CANCELLATION &&
3832 CENABLE]: Don't lose content of %ebx.
3834 2002-12-17 Jakub Jelinek <jakub@redhat.com>
3836 * sysdeps/unix/sysv/linux/i386/socket.S: Use SINGLE_THREAD_P
3837 macro instead of comparing %gs:MULTIPLE_THREADS_OFFSET directly.
3839 2002-12-16 Ulrich Drepper <drepper@redhat.com>
3841 * sysdeps/posix/getaddrinfo.c (gaih_inet): If __nss_lookup_function
3842 fails to return a function pointer don't use it.
3844 2002-12-16 Art Haas <ahaas@airmail.net>
3846 * io/ftw.c: Convert GCC extension initializer syntax to C99.
3847 * iconvdata/iso-ir-165.c: Likewise.
3848 * iconvdata/jis0208.c: Likewise.
3849 * iconvdata/jis0212.c: Likewise.
3851 2002-12-16 Ulrich Drepper <drepper@redhat.com>
3853 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create,
3854 epoll_ctl, and epoll_wait.
3855 * sysdeps/unix/sysv/linux/Versions [libc: GLIBC_2.3.2]: Add
3856 epoll_create, epoll_ctl, and epoll_wait.
3857 * sysdeps/unix/sysv/linux/sys/epoll.h: New file. Written by
3858 Davide Libenzi <davidel@xmailserver.org>.
3859 * sysdeps/unix/sysv/linux/Dist: Add sys/epoll.h.
3860 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
3863 2002-12-16 Art Haas <ahaas@airmail.net>
3865 * sysdeps/generic/bp-semctl.h: Convert GCC extension initializer
3867 * sysdeps/unix/sysv/aix/settimer.c: Likewise.
3868 * sysdeps/unix/sysv/aix/sleep.c: Likewise.
3869 * sysdeps/unix/sysv/aix/usleep.c: Likewise.
3871 2002-12-16 Ulrich Drepper <drepper@redhat.com>
3873 * stdio-common/Makefile (routines): Remove lockfile. Add
3874 flockfile, ftrylockfile, and funlockfile.
3875 * sysdeps/generic/lockfile.c: Removed. Each function has its own file.
3876 * sysdeps/generic/flockfile.c: New file.
3877 * sysdeps/generic/ftrylockfile.c: New file.
3878 * sysdeps/generic/funlockfile.c: New file.
3880 2002-12-16 Jakub Jelinek <jakub@redhat.com>
3882 * sysdeps/unix/sysv/linux/i386/socket.S: Use CENABLE and CDISABLE
3883 macros instead of doing the calls directly.
3884 * sysdeps/unix/make-syscalls.sh: Add ptw-*.$o target name to rules.
3885 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for ptw-%
3888 2002-12-16 Jakub Jelinek <jakub@redhat.com>
3890 * sysdeps/i386/fpu/bits/mathinline.h: Backout last change.
3891 * sysdeps/ieee754/bits/nan.h: Likewise.
3893 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__syscall_open,
3894 __syscall_wait4, __syscall_ioctl, __syscall_write): Add.
3896 2002-12-16 Roland McGrath <roland@redhat.com>
3898 * sunrpc/xdr_mem.c (xdrmem_inline): Fix argument type.
3899 * sunrpc/xdr_rec.c (xdrrec_inline): Likewise.
3900 * sunrpc/xdr_stdio.c (xdrstdio_inline): Likewise.
3902 * sysdeps/unix/sysv/linux/syscalls.list: Add getpmsg, putpmsg.
3903 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove s_getpmsg,
3905 * sysdeps/unix/sysv/linux/i386/getpmsg.c: File removed.
3906 * sysdeps/unix/sysv/linux/i386/putpmsg.c: File removed.
3907 * sysdeps/unix/sysv/linux/m68k/getpmsg.c: File removed.
3908 * sysdeps/unix/sysv/linux/m68k/putpmsg.c: File removed.
3909 * sysdeps/unix/sysv/linux/mips/getpmsg.c: File removed.
3910 * sysdeps/unix/sysv/linux/mips/putpmsg.c: File removed.
3911 * sysdeps/unix/sysv/linux/powerpc/getpmsg.c: File removed.
3912 * sysdeps/unix/sysv/linux/powerpc/putpmsg.c: File removed.
3914 2002-12-13 Paul Eggert <eggert@twinsun.com>
3916 * sunrpc/rpc/xdr.h (struct XDR.xdr_ops.x_inline): 2nd arg
3917 is now u_int, not int.
3918 (struct XDR.x_handy): Now u_int, not int.
3919 * sunrpc/xdr_mem.c: Include <limits.h>.
3920 (xdrmem_getlong, xdrmem_putlong, xdrmem_getbytes, xdrmem_putbytes,
3921 xdrmem_inline, xdrmem_getint32, xdrmem_putint32):
3922 x_handy is now unsigned, not signed.
3923 Do not decrement x_handy if no change is made.
3924 (xdrmem_setpos): Check for int overflow.
3925 * sunrpc/xdr_sizeof.c (x_inline): 2nd arg is now unsigned.
3926 (xdr_sizeof): Remove cast that is now unnecessary, now that
3927 x_handy is unsigned.
3929 2002-12-15 Art Haas <ahaas@airmail.net>
3931 * iconv/gconv_conf.c: Convert GCC extension initializer syntax to C99.
3932 * iconvdata/gap.awk: Likewise.
3933 * iconvdata/gen-8bit-gap-1.sh: Likewise.
3934 * iconvdata/gen-8bit-gap.sh: Likewise.
3935 * locale/C-address.c: Likewise.
3936 * locale/C-collate.c: Likewise.
3937 * locale/C-ctype.c: Likewise.
3938 * locale/C-identification.c: Likewise.
3939 * locale/C-measurement.c: Likewise.
3940 * locale/C-messages.c: Likewise.
3941 * locale/C-monetary.c: Likewise.
3942 * locale/C-name.c: Likewise.
3943 * locale/C-numeric.c: Likewise.
3944 * locale/C-paper.c: Likewise.
3945 * locale/C-telephone.c: Likewise.
3946 * locale/C-time.c: Likewise.
3947 * nscd/connections.c: Likewise.
3948 * nscd/grpcache.c: Likewise.
3949 * nscd/hstcache.c: Likewise.
3950 * nscd/pwdcache.c: Likewise.
3951 * stdio-common/vfprintf.c: Likewise.
3952 * stdlib/random.c: Likewise.
3953 * sysdeps/generic/siglist.c: Likewise.
3954 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
3955 * sysdeps/ieee754/bits/nan.h: Likewise.
3956 * sysdeps/posix/sprofil.c: Likewise.
3957 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
3958 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
3959 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
3961 2002-12-15 Roland McGrath <roland@redhat.com>
3963 * sysdeps/unix/sysv/linux/readv.c (do_readv): Use prototype defn.
3965 * sysdeps/unix/sysv/linux/wait.c: Don't include <nptl/pthreadP.h> or
3966 <tls.h> here, no need for it.
3967 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
3969 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): Take ARG as void *
3970 parameter, not varargs parameter.
3972 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_RESET): Evaluate the
3973 argument so it's not an unused variable.
3975 * resolv/resolv.h (__p_key_syms, __p_cert_syms, __p_class_syms,
3976 __p_type_syms, __p_rcode_syms): Remove decls, never really intended
3979 * resolv/Versions (libresolv: GLIBC_2.3.2): New set, add __p_rcode.
3981 2002-12-15 Ulrich Drepper <drepper@redhat.com>
3983 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): This is the
3984 original __libc_fcntl code. Just renamed.
3986 2002-12-15 Andreas Schwab <schwab@suse.de>
3988 * sysdeps/unix/sysv/linux/m68k/clone.S: Make inline syscall to _exit.
3990 2002-12-14 Olaf Hering <olh@suse.de>
3992 * sysdeps/powerpc/bits/setjmp.h: Include <bits/wordsize.h>.
3993 * sysdeps/powerpc/powerpc64/setjmp.S: Fix typo in r18 load.
3995 2002-12-15 Ulrich Drepper <drepper@redhat.com>
3997 * sysdeps/unix/sysv/linux/libc_fatal.c: New file.
3999 * sysdeps/generic/sysdep-cancel.h: Add dummy definitions for
4000 SINGLE_THREAD_P, LIBC_CANCEL_ASYNC, and LIBC_CANCEL_RESET.
4002 * sysdeps/unix/sysv/linux/open64.c: New file.
4004 * sysdeps/generic/pselect.c: Add support for cancellation handling.
4005 * sysdeps/posix/open64.c: Likewise.
4006 * sysdeps/posix/sigpause.c: Likewise.
4007 * sysdeps/posix/sigwait.c: Likewise.
4008 * sysdeps/posix/system.c: Likewise.
4009 * sysdeps/posix/waitid.c: Likewise.
4010 * sysdeps/unix/sysv/linux/accept.S: Likewise.
4011 * sysdeps/unix/sysv/linux/connect.S: Likewise.
4012 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
4013 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
4014 * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
4015 * sysdeps/unix/sysv/linux/poll.c: Likewise.
4016 * sysdeps/unix/sysv/linux/pread.c: Likewise.
4017 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
4018 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4019 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
4020 * sysdeps/unix/sysv/linux/readv.c: Likewise.
4021 * sysdeps/unix/sysv/linux/recv.S: Likewise.
4022 * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
4023 * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
4024 * sysdeps/unix/sysv/linux/send.S: Likewise.
4025 * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
4026 * sysdeps/unix/sysv/linux/sendto.S: Likewise.
4027 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
4028 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
4029 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
4030 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
4031 * sysdeps/unix/sysv/linux/tcdrain.c: Likewise.
4032 * sysdeps/unix/sysv/linux/wait.c: Likewise.
4033 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
4034 * sysdeps/unix/sysv/linux/writev.c: Likewise.
4035 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
4036 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
4038 2002-12-14 Jakub Jelinek <jakub@redhat.com>
4040 * sysdeps/generic/sysdep-cancel.h: New file.
4041 * sysdeps/unix/make-syscalls.sh: Handle C at start of args as
4043 * sysdeps/unix/inet/syscalls.list (accept, connect, recv, recvfrom,
4044 recvmsg, send, sendmsg, sendto): Make cancelable.
4045 * sysdeps/unix/mman/syscalls.list (msync): Likewise.
4046 * sysdeps/unix/sysv/linux/alpha/syscalls.list (llseek, pread,
4047 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
4048 sendto, osf_select): Likewise.
4049 * sysdeps/unix/sysv/linux/hppa/syscalls.list (accept, connect, recv,
4050 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
4051 * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek, pread,
4052 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
4054 * sysdeps/unix/sysv/linux/mips/syscalls.list (accept, connect, recv,
4055 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
4056 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, pread,
4057 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
4059 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (llseek, pread,
4060 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
4061 sendto, select): Likewise.
4062 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (llseek, pread,
4063 pwrite, accept, connect, recvfrom, recvmsg, sendmsg, sendto):
4065 * sysdeps/unix/sysv/linux/syscalls.list (creat, nanosleep, pause,
4066 select, fcntl): Likewise.
4067 * sysdeps/unix/sysv/syscalls.list (pause, poll): Likewise.
4068 * sysdeps/unix/syscalls.list (close, fcntl, fsync, lseek, open,
4069 read, readv, select, sigsuspend, write, writev): Likewise.
4071 2002-12-14 Jakub Jelinek <jakub@redhat.com>
4073 * dirent/bug-readdir1.c: Include unistd.h.
4075 2002-12-13 Jakub Jelinek <jakub@redhat.com>
4077 * locale/programs/locale.c: Include locarchive.h.
4078 (ARCHIVE_NAME): Define.
4079 (write_archive_locales): New function.
4080 (write_locales): Use it. Ensure the same locale is not printed
4081 multiple times in verbose mode.
4082 Mode LC_IDENTIFICATION and LC_CTYPE printing into...
4083 (print_LC_IDENTIFICATION, print_LC_CTYPE): ... these helper
4085 (struct nameent): New type.
4086 (nameentcmp): New function.
4088 2002-12-14 Jakub Jelinek <jakub@redhat.com>
4090 * posix/regex_internal.c (re_string_context_at): Guard wide char
4091 code with #ifdef RE_ENABLE_I18N.
4093 2002-11-22 Paolo Bonzini <bonzini@gnu.org>
4095 * posix/regcomp.c (regcomp): __re_compile_fastmap -> re_compile_fastmap
4097 2002-12-13 Roland McGrath <roland@redhat.com>
4099 * posix/bug-regex15.c: New file.
4100 * posix/Makefile (tests): Add it.
4102 * test-skeleton.c (TEST_DATA_LIMIT): New macro, default to 64MB.
4103 (main): Set RLIMIT_DATA limit to TEST_DATA_LIMIT (or lower if need be).
4105 2002-12-13 Ulrich Drepper <drepper@redhat.com>
4107 * elf/dl-misc.c (_dl_debug_vdprintf): Don't depend on 5-digit PIDs.
4109 * misc/syslog.c (log_cleanup): Don't use parameter in
4110 __libc_lock_unlock call, use syslog_lock directly. Adjust callers to
4111 pass NULL instead of a pointer to syslog_lock.
4113 2002-12-12 Ulrich Drepper <drepper@redhat.com>
4115 * iconvdata/Makefile: iconv-rules: Add definition to use gconv.map
4116 linker map for all iconv modules.
4117 (distribute): Add gconv.map.
4118 * iconvdata/gconv.map: New file.
4120 * elf/Makefile: Also check all iconv modules for text relocations.
4122 * stdlib/Makefile: Remove code to automatically import GMP.
4124 * elf/Makefile (tests): Add rules to build and run check-textrel.
4125 * elf/check-textrel.c: New file.
4127 * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Add .size
4130 2002-12-11 Jakub Jelinek <jakub@redhat.com>
4132 * io/test-utime (main): If stnow.st[am]time is wrong, print it and
4135 2002-04-30 Bruno Haible <bruno@clisp.org>
4137 * intl/loadmsgcat.c (_nl_init_domain_conv): Don't append //TRANSLIT to
4138 the encoding if it already has slashes.
4139 Reported by Perry Rapp <prapp@erols.com>.
4141 2002-12-11 Roland McGrath <roland@redhat.com>
4143 * csu/Makefile ($(objpfx)elf-init.oS): Remove target, braino.
4144 (CPPFLAGS-elf-init.oS, CFLAGS-elf-init.oS): New variables.
4145 Turn off PIC for compiling this file.
4147 2002-12-11 Ulrich Drepper <drepper@redhat.com>
4149 * malloc/thread-m.h: Remove thread_id type and MUTEX_INITIALIZER
4150 definitions. Not needed.
4151 [_LIBC]: Use definitions from libc-lock.h instead of referencing
4152 pthread routines directly.
4153 * malloc/arena.c (ptmalloc_unlock_all2): Don't add (void) to
4155 (arena_get2): Don't look at return value of mutex_lock.
4157 2002-12-11 Roland McGrath <roland@redhat.com>
4159 * csu/Makefile ($(objpfx)elf-init.oS): New target, just clone
4160 elf-init.o instead of compiling a PIC version.
4162 2002-12-11 Bruno Haible <bruno@clisp.org>
4164 * intl/gettext.h: Renamed to ...
4165 * intl/gmo.h: ... here.
4166 * intl/Makefile (distribute): Add gmo.h, remove gettext.h.
4167 * intl/gettextP.h: Update.
4168 * intl/loadmsgcat.c: Update.
4170 * intl/gettextP.h (PARAMS): Make more portable.
4171 (attribute_hidden): Define as empty macro if not already defined.
4172 * intl/hash-string.h (PARAMS): Make more portable.
4173 * intl/loadinfo.h (PARAMS): Likewise.
4174 * intl/plural-exp.h (PARAMS): Likewise.
4175 (attribute_hidden): Move definition near the definition of
4178 * intl/gettextP.h (_nl_locale_name) [!_LIBC]: New declaration.
4179 * intl/plural-exp.h (plural_eval) [!_LIBC]: New declaration.
4181 2002-07-13 Bruno Haible <bruno@clisp.org>
4183 * intl/dcigettext.c (freea): New macro.
4184 (FREE_BLOCKS): Free also the registered blocks.
4185 (DCIGETTEXT): Free the 'search' variable.
4186 Reported by Andreas Fischer <a.fischer@asentics.de>.
4188 2002-04-27 Bruno Haible <bruno@clisp.org>
4190 * intl/gettextP.h [! _LIBC]: Use prefix libintl_ instead of suffix __.
4191 * intl/dcigettext.c: Likewise.
4192 * intl/dcgettext.c: Likewise.
4193 * intl/dgettext.c: Likewise.
4194 * intl/gettext.c: Likewise.
4195 * intl/dcngettext.c: Likewise.
4196 * intl/dngettext.c: Likewise.
4197 * intl/ngettext.c: Likewise.
4198 * intl/textdomain.c: Likewise.
4199 * intl/bindtextdom.c: Likewise.
4200 * intl/plural-exp.h: Likewise.
4202 2002-01-02 Bruno Haible <bruno@clisp.org>
4204 * intl/loadmsgcat.c (_nl_init_domain_conv): Use PARAMS in extern decl.
4206 2001-04-30 Bruno Haible <bruno@clisp.org>
4208 * intl/dcigettext.c (getuid, getgid, geteuid, getegid): Provide
4209 default macro definitions. Needed for mingw32.
4211 2002-12-10 Ulrich Drepper <drepper@redhat.com>
4213 * sysdeps/i386/bits/byteswap.h (__bswap_64): Apply
4214 __builtin_constant_p to macro parameter.
4216 * sysdeps/generic/sigpause.c: Define all functions as weak.
4217 * sysdeps/posix/sigpause.c: Likewise.
4219 * elf/tst-tls7.c (do_test): Adjustments for l_tls_modid being of
4222 2002-12-10 Jakub Jelinek <jakub@redhat.com>
4224 * elf/tst-array1.c (preinit_array, init_array, fini_array):
4225 Explicitly align the array to sizeof (void *).
4226 * elf/tst-array2dep.c (init_array, fini_array): Likewise.
4228 * include/libc-symbols.h: Fix a comment typo.
4230 * sysdeps/unix/sysv/linux/alpha/select.S (__libc_select): New alias.
4231 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__libc_sigsuspend):
4233 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__libc_sigsuspend):
4235 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c
4236 (__libc_sigsuspend): Likewise.
4237 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c
4238 (__libc_sigsuspend): Likewise.
4239 * sysdeps/generic/creat.c (__libc_creat): Renamed from creat.
4240 (creat): New weak alias.
4242 2002-12-10 Roland McGrath <roland@redhat.com>
4244 * manual/libc-texinfo.sh: Emit @set ADD-ON for each ADD-ON that
4245 contributes a manual chapter.
4246 * manual/signal.texi (Process Signal Mask): Use @ifset linuxthreads
4249 * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Refer to
4250 and move contents to ...
4251 (EXTRA_LD_ENVVARS_LINUX): ... this new macro. Add break for nonmatch.
4252 * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS): Use
4253 it instead of duplicating its contents.
4254 (EXTRA_LD_ENVVARS): Likewise. Add break for nonmatch.
4256 2002-12-09 Jakub Jelinek <jakub@redhat.com>
4258 * elf/dl-support.c (_dl_non_dynamic_init): Add DL_OSVERSION_INIT if
4260 * sysdeps/unix/sysv/linux/dl-librecon.h (_dl_osversion_init): New
4262 (EXTRA_LD_ENVVARS): Use it.
4263 (DL_OSVERSION_INIT): Define.
4264 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Include linux
4266 (EXTRA_LD_ENVVARS): Undef before defining. Use _dl_osversion_init.
4268 2002-12-10 Ulrich Drepper <drepper@redhat.com>
4270 * Versions.def: No new symbols in 2.3.1, but some new ones in 2.3.2.
4272 * sysdeps/unix/closedir.c (__closedir): Remove __libc_lock_lock
4273 call. It is not allowed to destroy pthread mutexes which are
4274 still in use even though it is safe for our implementations. If
4275 somebody still uses the descriptor it is a bug.
4277 2002-12-09 Richard Henderson <rth@redhat.com>
4279 * csu/abi-note.S: Use .p2align, not .align.
4281 2002-12-09 Ulrich Drepper <drepper@redhat.com>
4283 * sysdeps/unix/sysv/linux/syscalls.list: Add __libc_creat and
4284 __libc_select aliases.
4286 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Define __libc_sigwaitinfo
4289 * sysdeps/unix/sysv/linux/sigwait.c: Define __libc_sigwait alias.
4291 * sysdeps/unix/sysv/linux/sigsuspend.c: Define __libc_sigsuspend alias.
4293 * sysdeps/unix/sysv/linux/poll.c: Define __libc_poll alias.
4295 * sysdeps/unix/syscalls.list: Define __libc_select alias.
4297 * sysdeps/posix/waitid.c: Define __libc_waitid alias.
4299 * sysdeps/posix/sigpause.c: Define __libc_sigpause and
4300 __libc___xpg_sigpause aliases.
4302 * sysdeps/generic/pselect.c: Define __libc_pselect alias.
4304 * misc/error.c: Remove use of USE_IN_LIBIO.
4306 2002-12-08 Roland McGrath <roland@redhat.com>
4308 * elf/Makefile (tests): Uncomment tst-array[123].
4309 * Makeconfig (CPPFLAGS-.oS): Add -DLIBC_NONSHARED=1.
4310 * csu/elf-init.c: New file.
4311 * csu/Makefile (routines, static-only-routines): Add elf-init.
4312 * sysdeps/alpha/elf/start.S: Use __libc_csu_init in place of _init
4313 and __libc_csu_fini in place of _fini.
4314 * sysdeps/arm/elf/start.S: Likewise.
4315 * sysdeps/cris/elf/start.S: Likewise.
4316 * sysdeps/hppa/elf/start.S: Likewise.
4317 * sysdeps/i386/elf/start.S: Likewise.
4318 * sysdeps/ia64/elf/start.S: Likewise.
4319 * sysdeps/m68k/elf/start.S: Likewise.
4320 * sysdeps/mach/hurd/powerpc/static-start.S: Likewise.
4321 * sysdeps/mips/elf/start.S: Likewise.
4322 * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
4323 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
4324 * sysdeps/s390/s390-32/elf/start.S: Likewise.
4325 * sysdeps/s390/s390-64/elf/start.S: Likewise.
4326 * sysdeps/sh/elf/start.S: Likewise.
4327 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
4328 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
4329 * sysdeps/x86_64/elf/start.S: Likewise.
4331 * sysdeps/pthread/aio_notify.c (notify_func_wrapper): Take a malloc'd
4332 struct containing function ptr and value, free it.
4333 (__aio_notify_only): Allocate that and copy values from SIGEV into it.
4334 It's not safe to let the new thread use the SIGEV pointer.
4336 2001-10-20 Paul Eggert <eggert@twinsun.com>
4338 * misc/error.c (strerror_r): Do not declare unless [!_LIBC].
4339 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
4340 Use strerror_r that is only a macro, even if it is not a function.
4341 (strerror): Check for HAVE_DECL_STRERROR before declaring.
4342 (private_strerror): Use prototypes, not old-style function definition.
4343 (print_errno_message): New function.
4344 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
4346 (error_tail, error, error_at_line): Use it.
4348 2002-12-07 Carlos O'Donell <carlos@baldric.uwo.ca>
4350 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Added SHMLBA #define.
4352 2002-12-08 Ulrich Drepper <drepper@redhat.com>
4354 * scripts/output-format.sed: Fix bug in one of the s expressions
4355 which used / for one too many things.
4357 * include/unistd.h: Declare __libc_close.
4359 2002-12-07 Ulrich Drepper <drepper@redhat.com>
4361 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_trylock): New define.
4363 2002-12-07 Roland McGrath <roland@redhat.com>
4365 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Reintroduce changes
4366 from 2002-12-06, but remove unnecessary memset call without removing
4367 necessary copy of initialization image.
4369 * Makerules ($(common-objpfx)format.lds): New target.
4370 (common-generated): Add it.
4371 ($(inst_libdir)/libc.so): Depend on that, and cat it into the result.
4372 * scripts/output-format.sed: New file.
4373 * Makefile (distribute): Add it.
4375 2002-12-07 Ulrich Drepper <drepper@redhat.com>
4377 * sysdeps/generic/libc-tls.c: Include <sys/param.h>.
4378 Reported by Art Haas <ahaas@airmail.net>.
4380 2002-12-07 Kenneth W. Chen <kenneth.w.chen@intel.com>
4382 * sysdeps/ia64/strncpy.S (strncpy): Clear ar.ec. Fix .recovery4.
4384 2002-12-07 Jakub Jelinek <jakub@redhat.com>
4386 * string/test-strncpy.c (do_random_tests): Improve test coverage.
4388 2002-12-06 Ulrich Drepper <drepper@redhat.com>
4390 * test-skeleton.c (timeout_handler): Allow expected signal to be
4393 * wctype/wcfuncs.c: Add libc_hidden_def for iswalnum.
4395 * sysdeps/posix/raise.c: Add libc_hidden_def for raise.
4397 2002-12-07 Jakub Jelinek <jakub@redhat.com>
4399 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [RTLD_PRIVATE_ERRNO]
4400 (SYSCALL_ERROR_HANDLER): Fix a pasto.
4401 Reported by Jeff Bailey <jbailey@nisa.net>.
4403 2002-12-06 Ulrich Drepper <drepper@redhat.com>
4405 * sysdeps/generic/libc-tls.c: Undo last patch.
4407 * include/wctype.h: Define iswalnum with libc_hidden_proto.
4409 * include/signal.h: Define raise with libc_hidden_proto.
4411 * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Use __snprintf and
4412 __execve instead of snprintf and execve.
4414 * sysdeps/x86_64/fpu/libm-test-ulps: Relax errors for float and double
4417 2002-12-06 Jakub Jelinek <jakub@redhat.com>
4419 * posix/Makefile (annexc.out): Add -I../dir for all sorted-dirs.
4420 * posix/annexc.c (fmt, testfmt): Remove -D_LIBC.
4422 2002-12-06 Ulrich Drepper <drepper@redhat.com>
4424 * misc/syslog.c (log_cleanup): New function.
4425 (openlog): Use log_cleanup instead of __libc_mutex_unlock.
4426 (closelog): Likewise.
4428 * elf/dl-close.c: Use __rtld_lock_* macros instead of __libc_lock_*.
4429 * elf/dl-iteratephdr.c: Likewise.
4430 * elf/dl-lookup.c: Likewise.
4431 * elf/dl-misc.c: Likewise.
4432 * elf/dl-open.c: Likewise.
4433 * elf/dl-support.c: Likewise.
4434 * elf/rtld.c: Likewise.
4435 * sysdeps/generic/ldsodefs.h: Likewise.
4436 * sysdeps/generic/bits/libc-lock.h: Define __rtld_lock_* macros.
4437 * sysdeps/mach/bits/libc-lock.h: Likewise.
4438 * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
4440 2002-12-06 Roland McGrath <roland@redhat.com>
4442 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Cope with zero ALIGN.
4444 * malloc/hooks.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]
4445 (malloc_starter, memalign_starter, free_starter): Don't define these.
4446 * malloc/malloc.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]:
4447 Don't declare them either.
4448 * malloc/arena.c (ptmalloc_init) [_LIBC && USE_TLS]: Don't call
4449 __pthread_initialize, so no need to set hooks to *_starter.
4450 (ptmalloc_init_minimal): New function, broken out of ptmalloc_init.
4451 [_LIBC && SHARED && USE_TLS && !USE___THREAD]
4452 (__libc_malloc_pthread_startup): New function.
4453 * malloc/Versions (libc: GLIBC_PRIVATE): New set, add that function.
4455 * malloc/hooks.c (memalign_starter): New function.
4456 * malloc/malloc.c: Declare it.
4457 * malloc/arena.c (save_memalign_hook): New variable.
4458 (ptmalloc_init): Set __memalign_hook to memalign_starter.
4460 * elf/dl-minimal.c (free): Clear the memory.
4461 (calloc): Just call malloc, knowing all memory it returns is cleared.
4463 * sysdeps/generic/dl-tls.c (allocate_dtv): Use calloc instead of
4464 malloc and memset; calloc can avoid the zeroing when redundant.
4465 (_dl_tls_setup): Likewise.
4466 * elf/dl-load.c (decompose_rpath): Likewise.
4467 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Comment out memset
4468 call, since memory from sbrk at startup is already zero.
4470 * elf/rtld.c (_dl_start, dl_main): TLS_INIT_TP macro now returns an
4471 error string for failure, null for success. Update callers.
4472 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
4473 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
4475 2002-12-05 Jakub Jelinek <jakub@redhat.com>
4477 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Change
4479 (readahead): Change args to i:iii.
4480 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list (readahead):
4481 Change args to i:iii.
4482 * sysdeps/unix/sysv/linux/mips/syscalls.list (readahead): Change
4485 2002-12-05 Roland McGrath <roland@redhat.com>
4487 * stdlib/cxa_finalize.c (__cxa_finalize): When given a null argument,
4488 call all functions rather than none.
4489 Reported by Mark P. Mitchell <mark@codesourcery.com>.
4491 2002-12-04 Roland McGrath <roland@redhat.com>
4493 * locale/localeinfo.h [NL_CURRENT_INDIRECT]: Use attribute_tls_model_ie
4494 on _nl_current_LC_* variables.
4496 2002-12-05 Ulrich Drepper <drepper@redhat.com>
4498 * dirent/bug-readdir1.c (main): Don't call closedir, just close
4499 the file descriptor. This is testing what the bug report was about.
4501 2002-12-04 Ulrich Drepper <drepper@redhat.com>
4503 * po/be.po: New file.
4505 * argp/Makefile (tests): Add tst-argp1.
4507 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: (struct sigevent):
4508 Change type of _attribute to void*.
4509 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
4510 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
4511 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
4512 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
4513 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
4515 2002-12-04 Roland McGrath <roland@redhat.com>
4517 * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS]
4518 members to the end, so a libpthread compiled with !USE_TLS will still
4519 find other members properly.
4521 * sysdeps/i386/i486/bits/string.h (__strcpy_g): Add dummy output
4522 operand for DEST memory. Fix dummy input operand to use SRC.
4523 Reported by Davin McCall <davmac@ozonline.com.au>.
4525 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Account for TCB
4526 alignment when initializing the DTV entry.
4528 * elf/dl-load.c (_dl_map_object_from_fd): If we hit a TLS segment
4529 when TLS has not been set up, try to set it up if we can.
4530 * elf/tst-tls4.c: Revert last change.
4531 * elf/tst-tls5.c: Likewise.
4532 * elf/tst-tls6.c: Likewise.
4533 * elf/tst-tls7.c: Likewise.
4534 * elf/tst-tls8.c: Likewise.
4535 * elf/tst-tls9.c: Likewise.
4537 * sysdeps/generic/dl-tls.c [SHARED] (_dl_tls_setup): New function.
4538 * sysdeps/generic/ldsodefs.h: Declare it.
4539 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
4540 * sysdeps/generic/libc-tls.c (init_slotinfo): New static inline
4541 function, broken out of __libc_setup_tls.
4542 (init_static_tls): Likewise.
4543 (__libc_setup_tls): Call them.
4544 (_dl_tls_setup): New function, uses new subroutines.
4546 * elf/dl-close.c (free_slotinfo): Make argument pointer to pointer.
4547 Clear the pointer when returning true.
4548 (libc_freeres_fn) [SHARED]: If GL(dl_initial_dtv) is null, free the
4549 first element of the slotinfo list too.
4551 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Define only if
4554 * sysdeps/generic/ldsodefs.h (_dl_next_tls_modid): Declare as hidden.
4555 (_dl_determine_tlsoffset): Likewise.
4557 * elf/rtld.c (_dl_initial_error_catch_tsd): Renamed from
4558 startup_error_tsd, made global.
4559 (dl_main): Update initialization.
4560 * elf/dl-tsd.c: Likewise.
4561 * sysdeps/generic/ldsodefs.h: Declare it.
4563 2002-12-03 Ulrich Drepper <drepper@redhat.com>
4565 * manual/texinfo.tex: Update from latest upstream version.
4567 2002-12-03 Roland McGrath <roland@redhat.com>
4569 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Include static TLS
4570 area surplus in calculation for sbrk call.
4572 * iconvdata/cp1125.c: New file.
4573 * iconvdata/Makefile (distribute): Add it.
4574 (modules): Add CP1125.
4575 (gen-8bit-gap-modules): Add cp1125.
4576 * iconvdata/gconv-modules: Add CP1125, alias RUSCII.
4577 * iconvdata/tst-tables.sh: Add CP1125 to the list to test.
4579 2002-12-03 Andreas Jaeger <aj@suse.de>
4581 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
4583 2002-12-03 Ulrich Drepper <drepper@redhat.com>
4585 * sysdeps/posix/system.c (do_system): Make signal handler
4586 installation thread safe.
4588 2002-12-02 Roland McGrath <roland@redhat.com>
4590 * sysdeps/unix/sysv/linux/alpha/syscalls.list (readahead): Change
4591 caller from EXTRA to -.
4592 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4593 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
4594 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4596 2002-12-02 Carlos O'Donell <carlos@baldric.uwo.ca>
4598 * sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both
4599 bits of RM are cleared.
4601 2002-12-02 Roland McGrath <roland@redhat.com>
4603 * elf/tst-tls4.c: Define an unused TLS variable here, so that no lazy
4604 TLS setup is required.
4605 * elf/tst-tls5.c: Likewise.
4606 * elf/tst-tls6.c: Likewise.
4607 * elf/tst-tls7.c: Likewise.
4608 * elf/tst-tls8.c: Likewise.
4609 * elf/tst-tls9.c: Likewise.
4611 * elf/rtld.c (dl_main): Remove [! SHARED] conditional from
4612 `if (GL(dl_tls_max_dtv_idx) > 0)' tests for doing TLS setup.
4613 * elf/dl-close.c (libc_freeres_fn): Check GL(dl_tls_dtv_slotinfo_list)
4614 for being null before calling free_slotinfo.
4615 * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: For PT_TLS in
4616 dynamic loading, bail with error if GL(dl_tls_max_dtv_idx) is zero.
4618 2002-11-30 Bruno Haible <bruno@clisp.org>
4620 * iconv/gconv.h (__gconv_btowc_fct): New typedef.
4621 (struct __gconv_step): New field __btowc_fct.
4622 * wcsmbs/btowc.c (__btowc): Use the __btowc_fct shortcut if possible.
4623 * iconv/gconv_int.h (__BUILTIN_TRANSFORM): Renamed from
4625 (__gconv_btwoc_ascii): New declaration.
4626 * iconv/gconv_simple.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
4627 (__gconv_btwoc_ascii): New function.
4628 * iconv/gconv_builtin.h: Add BtowcFct argument to all
4629 BUILTIN_TRANSFORMATION invocations.
4630 * iconv/gconv_conf.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
4631 * iconv/iconvconfig.c (BUILTIN_TRANSFORMATION): Likewise.
4632 * iconv/gconv_builtin.c (map): New field btowc_fct.
4633 (BUILTIN_TRANSFORMATION): Add BtowcFct argument. Use it to initialize
4635 (__gconv_get_builtin_trans): Initialize __btowc_fct field.
4636 * iconv/gconv_cache.c (find_module): Initialize __btowc_fct field.
4637 * iconv/gconv_db.c (gen_steps, increment_counter): Likewise.
4638 * wcsmbs/wcsmbsload.c (to_wc, to_mb): Likewise.
4639 * iconv/skeleton.c: Document STORE_REST and FROM_ONEBYTE.
4640 (gconv_init): Initialize __btowc_fct field.
4641 Undefine EXTRA_LOOP_ARGS and FROM_ONEBYTE at the end.
4642 * iconv/loop.c: Document ONEBYTE_BODY.
4643 (gconv_btowc, FROM_ONEBYTE): Define if ONEBYTE_BODY is defined.
4644 Undefine ONEBYTE_BODY at the end.
4645 * iconvdata/8bit-generic.c (ONEBYTE_BODY): New macro.
4646 * iconvdata/8bit-gap.c (NONNUL): New macro.
4647 (BODY for FROM_LOOP): Use it.
4648 (ONEBYTE_BODY): New macro.
4649 * iconvdata/isiri-3342.c (HAS_HOLES): Set to 1.
4650 (NONNUL): New macro.
4651 * iconvdata/ansi_x3.110.c (ONEBYTE_BODY): New macro.
4652 * iconvdata/armscii-8.c (ONEBYTE_BODY): New macro.
4653 * iconvdata/cp1255.c (ONEBYTE_BODY): New macro.
4654 * iconvdata/cp1258.c (ONEBYTE_BODY): New macro.
4655 * iconvdata/tcvn5712-1.c (ONEBYTE_BODY): New macro.
4656 * iconvdata/big5.c (ONEBYTE_BODY): New macro.
4657 * iconvdata/big5hkscs.c (ONEBYTE_BODY): New macro.
4658 * iconvdata/euc-cn.c (ONEBYTE_BODY): New macro.
4659 * iconvdata/euc-jp.c (ONEBYTE_BODY): New macro.
4660 * iconvdata/euc-jisx0213.c (ONEBYTE_BODY): New macro.
4661 * iconvdata/euc-kr.c (ONEBYTE_BODY): New macro.
4662 * iconvdata/euc-tw.c (ONEBYTE_BODY): New macro.
4663 * iconvdata/gbk.c (ONEBYTE_BODY): New macro.
4664 * iconvdata/gb18030.c (ONEBYTE_BODY): New macro.
4665 * iconvdata/ibm932.c: Include <stdbool.h>.
4666 (TRUE, FALSE): Remove macros.
4667 (BODY for FROM_LOOP): Remove unused variable rp1.
4668 (ONEBYTE_BODY): New macro.
4669 (BODY for TO_LOOP): Use bool.
4670 * iconvdata/ibm932.h (__ibm932sb_to_ucs4_idx): Remove array.
4671 * iconvdata/ibm943.c: Include <stdbool.h>.
4672 (TRUE, FALSE): Remove macros.
4673 (BODY for FROM_LOOP): Remove unused variable rp1.
4674 (ONEBYTE_BODY): New macro.
4675 (BODY for TO_LOOP): Use bool.
4676 * iconvdata/ibm943.h (__ibm943sb_to_ucs4_idx): Remove array.
4677 * iconvdata/iso8859-1.c (ONEBYTE_BODY): New macro.
4678 * iconvdata/iso_6937-2.c (ONEBYTE_BODY): New macro.
4679 * iconvdata/iso_6937.c (ONEBYTE_BODY): New macro.
4680 * iconvdata/johab.c (ONEBYTE_BODY): New macro.
4681 * iconvdata/sjis.c (ONEBYTE_BODY): New macro.
4682 * iconvdata/shift_jisx0213.c (ONEBYTE_BODY): New macro.
4683 * iconvdata/t.61.c (ONEBYTE_BODY): New macro.
4684 * iconvdata/uhc.c (ONEBYTE_BODY): New macro.
4685 * iconvdata/gbbig5.c: Tweak comment.
4687 2002-12-02 Ulrich Drepper <drepper@redhat.com>
4689 * po/fi.po: Update from translation team.
4691 2002-12-01 Roland McGrath <roland@redhat.com>
4693 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
4694 testing getdents64 return value.
4696 * scripts/versions.awk: Don't pass -n flag to sort command.
4698 * posix/bug-regex13.c: Include <string.h>.
4700 * sysdeps/generic/libc-start.c (__libc_start_main): Do
4701 DL_SYSDEP_OSCHECK here.
4702 * sysdeps/unix/sysv/linux/init-first.c (init): Not here.
4703 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <fcntl.h>.
4705 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Bail if
4706 argument TCBSIZE <= TLS_INIT_TCB_SIZE, not just if it's zero.
4708 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Check l_tls_offset
4709 instead of l_type to decide whether to use TLS_DTV_UNALLOCATED.
4711 * include/link.h: Comment typo fix.
4713 2002-12-01 Roland McGrath <roland@frob.com>
4715 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_FSYNC): Set to 200112L.
4716 (_POSIX_SPAWN, _POSIX_MAPPED_FILES, _POSIX_MEMLOCK_RANGE,
4717 _POSIX_MEMORY_PROTECTION): Likewise.
4718 (_POSIX_POLL, _POSIX_SELECT): Removed.
4720 2002-11-28 Ulrich Drepper <drepper@redhat.com>
4722 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
4723 require it to 200112L. Remove _POSIX_POLL and _POSIX_SELECT.
4725 2002-11-28 Jakub Jelinek <jakub@redhat.com>
4727 * sysdeps/unix/alpha/sysdep.S: Change defined(USE___THREAD) to
4729 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall*): Avoid
4732 2002-11-28 Ulrich Drepper <drepper@redhat.com>
4734 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Don't trash the CPU's
4735 branch prediction buffers by using unpaired call/ret.
4737 2002-11-27 Ulrich Drepper <drepper@redhat.com>
4739 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Fix typo in
4740 first parameters constraint string.
4741 (ASMFMT_3): Likewise. Patch by stefan.lauterbach@mincom.de.
4743 2002-11-27 Isamu Hasegawa <isamu@yamato.ibm.com>
4745 * posix/regcomp.c (parse_expression): Set the bit since the back
4746 reference is used in the regular expression.
4747 * posix/regex_internal.c (re_node_set_init_1): Make it clean in case
4749 (re_node_set_init_copy): Likewise.
4750 * posix/regex_internal.h (state_array_t): New structure.
4751 (re_sub_match_last_t): Likewise.
4752 (re_sub_match_top_t): Likewise.
4753 (re_match_context_t): Add new members.
4754 (re_dfa_t): Likewise.
4755 * posix/regexec.c (re_search_internal): Invoke prune_impossible_nodes
4756 to check the matching is really correct, and retry if failed.
4757 Move the routin pruning the impossible nodes from here, ...
4758 (prune_impossible_nodes): To this function.
4759 (check_matching): Invoke check_subexp_matching_top, and replace
4760 redundant checking with transit_state_bkref invocation.
4761 (proceed_next_node): Replace strncmp with memcmp. Reported by
4762 Paolo Bonzini <bonzini@gnu.org>.
4763 (update_cur_sifted_state): Remove search_subexp invocation.
4764 (search_subexp): Remove this function.
4765 (check_dst_limits_calc_pos): Use search_cur_bkref_entry for
4767 (sift_states_bkref): Use search_cur_bkref_entry for optimization.
4768 Remove unused invocation of match_ctx_add_entry.
4769 (transit_state): Invoke check_subexp_matching_top.
4770 (check_subexp_matching_top): New function.
4771 (transit_state_bkref): Remove unused array.
4772 Merge transit_state_bkref_loop.
4773 (transit_state_bkref_loop): Use get_subexp instead of
4774 sift_states_backward. Use search_cur_bkref_entry for optimization.
4775 Merge this function to transit_state_bkref.
4776 (get_subexp): New function.
4777 (get_subexp_sub): Likewise.
4778 (find_subexp_node): Likewise.
4779 (check_arrival): Likewise.
4780 (check_arrival_expand_ecl): Likewise.
4781 (check_arrival_expand_ecl_sub): Likewise.
4782 (expand_bkref_cache): Likewise.
4783 (match_ctx_init): Initialize new members.
4784 (match_ctx_clean): New function.
4785 (match_ctx_free): Release new members.
4786 (match_ctx_free_subtops): New function.
4787 (match_ctx_add_entry): Fix indent.
4788 (search_cur_bkref_entry): New function.
4789 (match_ctx_add_subtop): Likewise.
4790 (match_ctx_add_sublast): Likewise.
4792 2002-11-25 Ulrich Drepper <drepper@redhat.com>
4794 * iconv/Makefile (tests): Remove tst-iconv4.c
4795 * iconv/tst-iconv4.c: Moved to...
4796 * iconvdata/tst-iconv4.c: ...here. New file.
4797 * iconvdata/Makefile (tests): Add tst-iconv4. Add dependencies.
4799 2002-11-25 Roland McGrath <roland@redhat.com>
4801 * inet/test-ifaddrs.c (main: addr_string): Handle null SA.
4802 Grok AF_LINK if defined.
4803 From Momchil Velikov <velco@fadata.bg>.
4805 * sysdeps/gnu/ifaddrs.c (getifaddrs): If ioctl fails for netmask,
4806 brdaddr, or dstaddr, just set those pointers to null and don't fail.
4807 Reported by Momchil Velikov <velco@fadata.bg>.
4809 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: If sa_len
4810 is > sizeof IFR->ifa_addr, advance past the whole longer length.
4811 (__ifreq): Count up NIFS that way too.
4812 Reported by Momchil Velikov <velco@fadata.bg>.
4814 * sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>.
4816 * sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>
4817 and <fpu_control.h>.
4819 2002-11-24 Ulrich Drepper <drepper@redhat.com>
4821 * elf/elf.h (EM_ST19): Fix typo.
4823 2002-11-25 Jakub Jelinek <jakub@redhat.com>
4825 * include/errno.h (__set_errno): Define as errno = val
4828 2002-11-24 Roland McGrath <roland@redhat.com>
4830 * sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.
4831 * sysdeps/posix/writev.c: Likewise.
4832 From Momchil Velikov <velco@fadata.bg>.
4834 * elf/dl-error.c [! _LIBC_REENTRANT]: Use a static variable instead of
4835 calling *GL(dl_error_catch_tsd) for a thread-local location.
4836 * elf/rtld.c (startup_error_tsd): Conditionalize on [_LIBC_REENTRANT].
4837 (dl_main): Same for GL(dl_error_catch_tsd) initialization.
4838 * elf/dl-tsd.c: Conditionalize contents on [_LIBC_REENTRANT].
4840 * libio/iofflush.c: Add libc_hidden_def.
4841 * libio/iofwrite.c: Likewise.
4842 * sysdeps/generic/sigtimedwait.c: Likewise.
4843 * sysdeps/generic/sigwaitinfo.c: Likewise.
4844 * sysdeps/posix/sigwait.c: Likewise.
4845 Reported by Momchil Velikov <velco@fadata.bg>.
4847 * inet/inet_lnaof.c (inet_lnaof): Change return type to in_addr_t
4848 to match <arpa/inet.h> declaration.
4849 * inet/inet_netof.c (inet_netof): Likewise.
4850 * inet/inet_mkadr.c (inet_makeaddr): Likewise for argument types.
4851 Reported by Momchil Velikov <velco@fadata.bg>.
4853 * configure.in: Skip AUTOCONF check under --without-cvs.
4854 * configure: Regenerated.
4856 * posix/Makefile (headers): Add bits/pthreadtypes.h.
4857 * sysdeps/unix/sysv/linux/Makefile (sysdep_heaers): Don't add it here.
4858 * sysdeps/unix/sysv/linux/Dist: Remove it from the list.
4860 2002-11-24 Andreas Schwab <schwab@suse.de>
4862 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall
4865 2002-11-19 Jim Meyering <jim@meyering.net>
4867 * time/mktime.c (__mon_yday, __mktime_internal) [!_LIBC]: Declare
4869 * time/strptime.c (__mon_yday) [!_LIBC]: Declare as `static'.
4871 2002-11-23 Roland McGrath <roland@redhat.com>
4873 * scripts/abilist.awk: Avoid strtonum function, not there in mawk.
4874 Just produce hex output for datum sizes.
4876 * elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.
4877 Reported by Luca Barbieri <ldb@ldb.ods.org>.
4879 2002-11-20 Steven Munroe <sjmunroe@us.ibm.com>
4881 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds)
4882 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
4883 and __unused3 fields.
4884 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h (semid_ds)
4885 [__WORDSIZE == 32]: Only PPC32 requires __unused1
4886 and __unused2 fields.
4887 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (shmid_ds)
4888 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
4889 __unused3, and __unused4 fields.
4891 * csu/gmon-start.c (__gmon_start__): Always use TEXT_START macro to
4892 obtain lowest address for profiling in __monstartup call.
4894 2002-11-21 Roland McGrath <roland@redhat.com>
4896 * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove redunant
4897 $(calls) $(calls:=f) $(long-c-$(long-double-fcts)).
4899 * locale/localeinfo.h (struct locale_data): Revert last change.
4901 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.
4902 From Ian Wienand <ianw@gelato.unsw.edu.au>.
4904 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to
4905 __NR_pread64 if not defined.
4906 (__NR_pwrite): Define to __NR_pwrite64 if not defined.
4907 From Ian Wienand <ianw@gelato.unsw.edu.au>.
4909 2002-11-21 Roland McGrath <roland@frob.com>
4911 * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set
4912 __libc_multiple_libcs here. Call __setfpucw.
4914 2002-11-21 Ulrich Drepper <drepper@redhat.com>
4916 * elf/Makefile (tests): Don't run test-arrayX tests for now.
4918 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags.
4919 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for
4920 CLONE_CHILD_*TID flags.
4922 2002-11-20 Andreas Jaeger <aj@suse.de>
4924 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
4925 We pass struct ucontext on x86-64.
4927 (GET_FRAME): Adjust.
4928 (GET_STACK): Adjust.
4930 2002-11-20 Roland McGrath <roland@redhat.com>
4932 * sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further
4933 conditionalize [! DO_VERSIONING] #error.
4935 * scripts/abilist.awk: Grok function descriptor symbols.
4937 * intl/tst-gettext.c (main): Check return values from setlocale.
4938 Add necessary unsetenv's to make LANG=existing-locale check work.
4940 * intl/tst-gettext.sh: Use mkdir -p. Copy test files unconditionally,
4941 so aborted prior runs don't confuse things.
4943 * locale/localeinfo.h (struct locale_data: union locale_data_value):
4944 Use uintptr_t instead of unsigned int for `word' member.
4945 (_NL_CURRENT_WORD): Cast to uint32_t.
4947 * posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES
4950 2002-11-20 Ulrich Drepper <drepper@redhat.com>
4952 * elf/tls-macros.h: Add IA-64 definitions.
4953 Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
4955 * iconv/Makefile (tests): Add tst-iconv4.
4956 * iconv/tst-iconv4.c: New file.
4958 * iconv/gconv_simple.c (internal_ucs4le_loop_unaligned): Return
4959 __GCONV_EMPTY_INPUT only if input is really empty. Otherwise
4960 __GCONV_INCOMPLETE_INPUT.
4961 (ucs4le_internal_loop): Likewise.
4962 (ucs4le_internal_loop_unaligned): Likewise.
4963 * iconvdata/unicode.c (PREPARE_LOOP): Likewise.
4964 * iconvdata/utf-16.c (PREPARE_LOOP): Likewise.
4965 * iconvdata/utf-32.c (PREPARE_LOOP): Likewise.
4967 * iconv/loop.c (LOOPFCT): First test for empty input then for full
4970 * inet/getnameinfo.c: Use extend_alloca where appropriate.
4971 * sysdeps/posix/getaddrinfo.c: Likewise.
4973 * include/alloca.h (extend_alloca): New define. Based on stack
4974 direction it'll try to append to the previouls allocated buffer.
4976 2002-11-07 Thorsten Kukuk <kukuk@suse.de>
4978 * sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set,
4979 use the same service for AF_INET and AF_INET6.
4981 2002-11-19 Ulrich Drepper <drepper@redhat.com>
4983 * intl/localealias.c (read_alias_file): Use only about 400 bytes
4984 of stack space instead of 16k.
4986 2002-11-18 Wolfram Gloger <wg@malloc.de>
4989 (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
4990 nothing if not initialized. Bug report from Marcus Brinkmann
4991 <Marcus.Brinkmann@ruhr-uni-bochum.de>.
4993 2002-11-19 Roland McGrath <roland@redhat.com>
4995 * posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and
4998 * configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
4999 `-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
5000 test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
5001 * configure: Regenerated.
5003 2002-11-19 Ulrich Drepper <drepper@redhat.com>
5005 * include/dlfcn.h: __libc_dlopen is now a macro calling
5006 __libc_dlopen_mode with the extra parameter RTLD_LAZY.
5007 (__libc_dlopen_mode): New prototype.
5008 * elf/dl-libc.c (__libc_dlopen_mode): Renamed from __libc_dlopen. Add
5009 new parameter. Store new parameter in mode field of structure passed
5011 (struct do_dlopen_args): Add new field mode.
5012 (do_dlopen): Pass mode from parameter structure to _dl_open.
5014 2002-11-11 Randolf Chung <tausq@debian.org>
5016 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
5017 (F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions.
5018 * sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.
5020 * sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
5022 * sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
5023 Set -mdisable-fpregs for this file.
5025 2002-11-11 Carlos O'Donell <carlos@baldric.uwo.ca>
5027 * sysdeps/unix/sysv/linux/configure.in:
5028 Make 2.4.19 minimum linux kernel for hppa, and add unwind symbols
5029 from gcc-3.0 era for backwards compatibility.
5030 * sysdeps/unix/sysv/linux/configure: Regenerate.
5032 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
5033 Define mcontext_t as a sigcontext.
5035 2002-11-18 Roland McGrath <roland@redhat.com>
5037 * dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)).
5038 Free memory in `last_result' if it was used.
5040 * resolv/nss_dns/dns-network.c (getanswer_r): In BYNAME case, search
5041 all aliases for one that matches the "<dotted-quad>.IN-ADDR.ARPA" form.
5042 Do the parsing inline instead of copying strings and calling
5043 inet_network, and properly skip all alias names not matching the form.
5045 * manual/pattern.texi (Variable Substitution): Fix # and ## examples.
5047 2002-11-17 Ulrich Drepper <drepper@redhat.com>
5049 * manual/pattern.texi (Wordexp Example): Fix sample code.
5051 * sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the
5052 childs stack which will be loaded into the %esi register.
5054 2002-11-14 Paul Eggert <eggert@twinsun.com>
5056 * resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
5057 overflow when skipping the question part and when unpacking aliases.
5059 2002-11-15 Roland McGrath <roland@redhat.com>
5061 * math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,
5062 s_finite, s_modf, s_scalbn, s_frexp, m_ldexp, s_signbit.
5063 Instead add $(calls:s_%=m_%) to get m_* versions of them all.
5065 2002-11-15 Jakub Jelinek <jakub@redhat.com>
5067 * sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
5068 * sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY.
5070 2002-11-15 Roland McGrath <roland@redhat.com>
5072 * math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
5073 * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc]
5074 from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep).
5075 (+make-include-of-dep): New canned sequence.
5077 * stdlib/canonicalize.c (__realpath): Check for malloc failure.
5078 From Dmitry V. Levin <ldv@altlinux.org>.
5080 2002-11-14 Roland McGrath <roland@redhat.com>
5082 * sysdeps/generic/errno.c (__libc_errno): Remove alias.
5083 * inet/herrno.c (__libc_h_errno): Likewise.
5084 * resolv/res_libc.c (__libc_res): Likewise.
5085 [USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
5086 (__res_state) [! USE___THREAD]: Don't define as weak.
5087 * csu/Versions: Revert last change.
5088 * resolv/Versions: Revert last change.
5090 * Makerules ($(common-objpfx)%.make): New pattern rule.
5091 * tls.make.c: New file.
5092 * Makefile (distribute): Add it.
5094 * sysdeps/generic/errno.c [! USE___THREAD]
5095 [HAVE_ELF && SHARED && DO_VERSIONING] (errno, _errno): Declare these
5096 with compat_symbol so they are not link-time visible.
5097 [! USE___THREAD] (__libc_errno): New alias for errno.
5098 * csu/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
5099 Add __libc_errno here.
5100 * inet/herrno.c [USE___THREAD]: Use this conditional
5101 in place of [USE_TLS && HAVE___THREAD].
5102 [! USE___THREAD] [HAVE_ELF && SHARED && DO_VERSIONING]
5103 (h_errno, _h_errno): Declare these with compat_symbol so they are not
5105 [! USE___THREAD] (__libc_h_errno): New alias for h_errno.
5106 * resolv/res_libc.c [! USE___THREAD]
5107 [HAVE_ELF && SHARED && DO_VERSIONING] (_res): Likewise.
5108 (_res): Use __attribute__ ((section (".bss"))) so we can have an alias.
5109 (__libc_res): Define as alias for _res.
5110 * resolv/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
5111 Add __libc_h_errno and __libc_res here.
5113 2002-11-14 Jakub Jelinek <jakub@redhat.com>
5115 * csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now.
5116 * resolv/Versions (h_errno, _res): Likewise.
5118 2002-11-14 Roland McGrath <roland@redhat.com>
5120 * Makerules (%.dynsym): Remove $(objpfx) from target and dep.
5121 (%.symlist): Likewise.
5123 2002-11-13 Roland McGrath <roland@redhat.com>
5125 * scripts/abilist.awk: New file.
5126 * Makefile (distribute): Add it.
5127 * Makerules ($(objpfx)%.dynsym, $(objpfx)%.symlist): New rules.
5128 (tests): Depend on .symlist file for each $(install-lib.so-versioned).
5129 [$(subdir) = elf] (tests): Depend on libc.symlist.
5130 (generated, common-generated): Add those files.
5132 * aclocal.m4 (LIBC_PROG_BINUTILS): Check for objdump, set OBJDUMP.
5133 * configure: Regenerated.
5134 * config.make.in (OBJDUMP): New variable, substituted by configure.
5136 * malloc/mcheck.c (struct hdr): New members `block' and `magic2'.
5137 (mallochook, reallochook): Set them up.
5138 (checkhdr): Check HDR->magic2 value.
5139 (freehook): Reset HDR->magic2.
5140 (memalignhook): New static function.
5141 (old_memalign_hook): New static variable.
5142 (mcheck, reallochook): Set __memalign_hook to memalignhook.
5144 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space
5147 2002-11-13 Andreas Jaeger <aj@suse.de>
5149 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Check for visibility
5151 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
5153 2002-11-11 Paul Eggert <eggert@twinsun.com>
5155 * manual/crypt.texi (Cryptographic Functions): Mention that
5156 the MD5 one-way algorithm is compatible with BSD's.
5158 2002-11-11 Isamu Hasegawa <isamu@yamato.ibm.com>
5160 * posix/regex_internal.c (re_string_skip_chars): Also return the last
5162 (re_string_reconstruct): Calculate the context by itself when the
5163 offset points out of the valid range.
5164 (re_string_context_at): Use wide character when MB_CUR_MAX > 1.
5165 * posix/regex_internal.h (WIDE_NEWLINE_CHAR): New macro.
5166 (IS_WIDE_WORD_CHAR): New macro.
5167 (IS_WIDE_NEWLINE): New macro.
5169 2002-11-12 Andreas Jaeger <aj@suse.de>
5171 * sysdeps/x86_64/strchr.S: Don't use one register for two
5172 purposes, this fixes a bug noticed by test-strchr.c.
5174 * sysdeps/x86_64/strcat.S: Fix algorithm to align source pointer
5177 2002-11-12 Roland McGrath <roland@redhat.com>
5179 * libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]
5180 (_G_IO_NO_BACKWARD_COMPAT): Define it.
5182 * sysdeps/ia64/dl-fptr.c [_LIBC_REENTRANT]: Include <ia64intrin.h>
5183 instead of <pt-machine.h>.
5184 [_LIBC_REENTRANT] (lock, unlock): Use __sync_lock_* macros instead of
5186 From Ian Wienand <ianw@gelato.unsw.edu.au>.
5188 2002-11-10 Roland McGrath <roland@redhat.com>
5190 * libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos.
5191 Call fputs instead of fwprintf (simpler to follow in debugger).
5193 * crypt/md5-crypt.c: Doc fix.
5195 * sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at
5196 the beginning of generated target commands.
5198 * csu/Makefile ($(objpfx)crti.o, $(objpfx)crtn.o): Add explicit
5199 dependencies for these in case implicit rule search skipped the
5200 nonexistent source directory.
5201 * sysdeps/gnu/Makefile ($(objpfx)errlist.d): Give this rule all the
5202 files with $(object-suffixes) as targets too.
5203 * Makerules [no_deps && objpfx] (before-compile): Add $(objpfx).
5204 and a target for it using $(make-target-directory).
5206 * Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h.
5208 2002-11-10 Roland McGrath <roland@frob.com>
5210 * sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
5211 * sysdeps/generic/bits/pthreadtypes.h: ... here.
5213 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Treat a struct flock with
5214 l_start == 0 and l_len == 1 as we do l_len == 0.
5216 2002-11-10 Ulrich Drepper <drepper@redhat.com>
5218 * po/da.po: Update from translation team.
5220 2002-11-10 Roland McGrath <roland@redhat.com>
5222 * config.make.in (includedir): New variable, substituted by configure.
5223 Reported missing by Jocelyn Fournier <joc@presence-pc.com>.
5224 * Makeconfig (includedir): Use $(prefix), not $(exec_prefix).
5226 2002-11-10 Andreas Jaeger <aj@suse.de>
5228 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (enum): Add
5229 REG_OLDMASK and REG_CR2 to synch with kernel header.
5232 * nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict
5234 * nss/getXXbyYY_r.c (INTERNAL): Likewise.
5235 * nss/getnssent_r.c (__nss_getent_r): Likewise.
5236 (__nss_setent): Likewise.
5237 (__nss_getent_r): Likewise.
5238 * inet/getnetgrent_r.c (innetgr): Likewise.
5239 (__internal_setnetgrent_reuse): Likewise.
5240 (internal_getnetgrent_r): Likewise.
5241 * inet/ether_hton.c (ether_hostton): Likewise.
5242 * inet/ether_ntoh.c (ether_ntohost): Likewise.
5243 * sunrpc/netname.c (netname2user): Likewise.
5244 * sunrpc/publickey.c (getpublickey): Likewise.
5245 (getsecretkey): Likewise.
5247 2002-11-09 Marcus Brinkmann <marcus@gnu.org>
5249 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
5250 error in range calculation.
5252 2002-10-09 Jakub Jelinek <jakub@redhat.com>
5254 * string/test-strspn.c (do_test): Ensure zero termination.
5255 * string/test-strpbrk.c (do_test): Likewise.
5256 * string/test-strncmp.c (stupid_strncmp): Use strnlen, not strlen.
5257 * string/test-strncpy.c (stupid_strncpy): Likewise.
5258 * string/test-stpncpy.c (stupid_stpncpy): Likewise.
5260 2002-10-08 Roland McGrath <roland@redhat.com>
5262 * string/test-string.h (test_init): Fill BUF1 and BUF2 with
5265 2002-09-22 H.J. Lu <hjl@gnu.org>
5267 * sysdeps/unix/sysv/linux/mmap64.c (MMAP2_PAGE_SHIFT): Renamed
5268 from PAGE_SHIFT. Define if not defined. Check MMAP2_PAGE_SHIFT
5269 only if __NR_mmap2 is defined.
5271 * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Moved to ...
5272 * sysdeps/unix/sysv/linux/mmap64.c: ... here.
5273 * sysdeps/unix/sysv/linux/hppa/mmap64.c: File removed.
5274 * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: FIle removed,
5276 2002-11-08 Jakub Jelinek <jakub@redhat.com>
5278 * posix/bug-regex13.c (tests): Add new test.
5280 * string/test-strchr.c (stupid_strchr): New function.
5281 (do_random_tests): Make sure the string is zero terminated.
5282 * string/test-strpbrk.c (stupid_strpbrk): New function.
5283 (do_random_tests): Make sure the string is zero terminated.
5284 * string/test-strcmp.c (stupid_strcmp): New function.
5285 (do_random_tests): Make sure the strings are zero terminated.
5286 * string/test-strspn.c (stupid_strspn): New function.
5287 (simple_strspn): Rename rej argument to acc.
5288 (do_random_tests): Make sure the string is zero terminated.
5289 * string/test-strcspn.c (stupid_strcspn): New function.
5290 * string/test-strncpy.c (stupid_strncpy): New function.
5291 * string/test-stpncpy.c (stupid_stpncpy): New function.
5292 * string/test-strncmp.c (stupid_strncmp): New function.
5293 (do_random_tests): Make sure the strings are zero terminated.
5294 * string/test-string.h (impl_t): Change test into long.
5295 (IMPL): Add __attribute__((aligned (sizeof (void *)))).
5297 2002-11-08 Roland McGrath <roland@redhat.com>
5299 * sysdeps/ia64/elf/configure.in: Add TLS check.
5300 From Ian Wienand <ianw@cse.unsw.edu.au>.
5301 * sysdeps/ia64/elf/configure: Regenerated.
5303 2002-11-07 Roland McGrath <roland@redhat.com>
5305 * libio/fileops.c (_IO_new_file_overflow): Use INTUSE(_IO_do_write) in
5306 place of _IO_new_do_write.
5307 [_LIBC] (_IO_do_write): Define as macro for _IO_new_do_write and
5308 #undef before versioned_symbol use.
5310 2002-11-07 Richard Henderson <rth@redhat.com>
5312 * configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
5313 * configure: Regenerated.
5314 * config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef.
5315 * sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp.
5316 (RTLD_START): Likewise. Access _dl_skip_args, _rtld_local, and
5317 _dl_fini via gp-relative relocations.
5318 * sysdeps/alpha/fpu/e_sqrt.c: Use !samegp.
5320 * elf/tls-macros.h: Add alpha versions.
5321 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle TLS relocs.
5322 * sysdeps/unix/alpha/sysdep.S: Support USE___THREAD.
5323 * sysdeps/unix/alpha/sysdep.h: Likewise. Add SYSCALL_ERROR_HANDLER.
5324 * sysdeps/unix/sysv/linux/alpha/brk.S: Use it.
5325 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
5326 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
5327 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
5328 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
5329 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
5330 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
5331 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Likewise.
5332 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
5333 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
5334 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
5335 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
5336 * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
5337 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
5338 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
5340 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Re-include protect.
5341 Kill argument registers across the inline syscall.
5343 * sysdeps/unix/sysv/linux/alpha/clone.S: Add user_tid and tls args.
5345 * linuxthreads/sysdeps/alpha/tls.h: New file.
5346 * sysdeps/alpha/dl-tls.h: New file.
5348 2002-10-29 David Mosberger <davidm@hpl.hp.com>
5350 * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY]
5351 (gmon_initializer): New function.
5352 (.init prologue): If HAVE_INITFINI_ARRAY is true, don't call
5353 __gmon_start__ here. Call it from gmon_initializer() instead.
5355 2002-03-12 H.J. Lu <hjl@gnu.org>
5357 * elf/Makefile [$(have-initfini-array) = yes] (tests): Add tst-array1,
5358 tst-array2, and tst-array3.
5359 [$(have-initfini-array) = yes] (tests-static): Add tst-array3.
5360 [$(have-initfini-array) = yes] (modules-names): Add tst-array2dep.
5361 ($(objpfx)tst-array1.out): New target.
5362 ($(objpfx)tst-array2): Likewise.
5363 ($(objpfx)tst-array2.out): Likewise.
5364 ($(objpfx)tst-array3.out): Likewise.
5365 * elf/tst-array1.c: New file.
5366 * elf/tst-array1.exp: Likewise.
5367 * elf/tst-array2.c: Likewise.
5368 * elf/tst-array2dep.c: Likewise.
5369 * elf/tst-array2.exp: Likewise.
5370 * elf/tst-array3.c: Likewise.
5372 2002-10-28 David Mosberger <davidm@hpl.hp.com>
5374 * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order.
5375 Don't add L->l_addr to array entry values.
5377 2002-11-07 Jakub Jelinek <jakub@redhat.com>
5379 * string/test-string.h: New file.
5380 * string/test-strlen.c: New file.
5381 * string/test-string.h: New file.
5382 * string/test-strcmp.c: New file.
5383 * string/test-strchr.c: New file.
5384 * string/test-strrchr.c: New file.
5385 * string/test-strcpy.c: New file.
5386 * string/test-stpcpy.c: New file.
5387 * string/test-strncpy.c: New file.
5388 * string/test-stpncpy.c: New file.
5389 * string/test-strpbrk.c: New file.
5390 * string/test-strcspn.c: New file.
5391 * string/test-strspn.c: New file.
5392 * string/test-strcat.c: New file.
5393 * string/test-strncmp.c: New file.
5394 * string/test-memchr.c: New file.
5395 * string/test-memcmp.c: New file.
5396 * string/test-memset.c: New file.
5397 * string/test-memcpy.c: New file.
5398 * string/test-mempcpy.c: New file.
5399 * string/test-memmove.c: New file.
5400 * string/Makefile (strop-tests): New variable.
5401 (tests): Add strop-tests.
5402 (distribute): Add test-string.h.
5404 2002-11-06 Ulrich Drepper <drepper@redhat.com>
5406 * posix/regcomp.c: Use tabs instead of spaces.
5407 * posix/regexec.c: Likewise.
5408 * posix/regex_internal.h: Likewise.
5410 * posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb.
5412 2002-11-06 Jakub Jelinek <jakub@redhat.com>
5414 * posix/regcomp.c (re_compile_pattern): Don't set regs_allocated
5416 (regcomp): Don't set can_be_null here.
5417 (re_comp): Clear whole re_comp_buf with the exception of fastmap.
5418 (re_compile_internal): Clear can_be_null, set regs_allocated.
5420 * posix/regcomp.c (re_set_fastmap): New function.
5421 (re_compile_fastmap_iter): Use it. Remove redundant type ==
5422 COMPLEX_BRACKET check.
5423 * posix/regexec.c (re_search_internal): Optimize searching with
5424 fastmap. Call re_string_reconstruct even if match_first is
5425 smaller than raw_mbs_idx.
5427 2002-11-06 Isamu Hasegawa <isamu@yamato.ibm.com>
5429 * posix/regcomp (free_dfa_content): Use free_state.
5430 * posix/regex_internal.c (re_string_realloc_buffers): Don't edit
5431 pointers in case that realloc failed.
5432 (re_node_set_merge): Likewise.
5433 (register_state): Likewise.
5434 (create_newstate_common): Invoke memory release functions in case of
5436 (create_ci_newstate): Likewise.
5437 (create_cd_newstate): Likewise.
5438 (free_state): New function.
5439 * posix/regexec.c (re_search_internal): Invoke memory release
5440 functions in case of error conditions.
5441 (sift_states_backward): Likewise.
5442 (merge_state_array): Likewise.
5443 (add_epsilon_src_nodes): Likewise.
5444 (sub_epsilon_src_nodes): Likewise.
5445 (search_subexp): Likewise.
5446 (sift_states_bkref): Likewise.
5447 (transit_state_sb): Likewise.
5448 (transit_state_mb): Likewise.
5449 (transit_state_bkref_loop): Likewise.
5450 (group_nodes_into_DFAstates): Likewise.
5451 (push_fail_stack): Don't edit pointers in case that realloc failed.
5452 (extend_buffers): Likewise.
5453 (match_ctx_add_entry): Likewise.
5455 2002-11-06 Roland McGrath <roland@redhat.com>
5457 * sysdeps/unix/sysv/linux/mips/configure.in: File removed.
5458 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
5460 * configure.in: Add checks on as and ld for binutils 2.13 or later.
5461 * configure: Regenerated.
5463 2002-11-06 Ulrich Drepper <drepper@redhat.com>
5465 * posix/regcomp.c (regcomp): __re_compile_fastmap can never fail.
5466 If re_compile_internal failed free fastmap buffer.
5467 (free_dfa_content): Broken out of regfree function. Frees all dfa
5469 (regfree): Add free_dfa_content.
5470 (re_compile_internal): If any of the called functions fails free
5471 all dfa related memory.
5473 2002-11-05 Ulrich Drepper <drepper@redhat.com>
5475 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent
5476 warnings from the kernel headers.
5478 2002-11-05 Roland McGrath <roland@redhat.com>
5480 * sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump.
5481 From Johannes Stezenbach <js@convergence.de>.
5483 * sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
5484 #errlist-compat magic comment to give 123 as size.
5485 (libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ...
5486 (libc: GLIBC_2.2): ... here.
5487 (libc: GLIBC_2.3): Likewise.
5489 2002-11-05 Ulrich Drepper <drepper@redhat.com>
5491 * elf/dl-fini.c (_dl_fini): Correct the increment of l_opencount
5492 which happens at the beginning so that we can unload modules in
5495 2002-11-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5497 * sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only
5498 under [__USE_MISC || _ASM].
5500 * elf/elf.h: Remove the obsolete SH TLS relocations.
5502 2002-11-05 Ulrich Drepper <drepper@redhat.com>
5504 * posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero.
5506 2002-11-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5508 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Handle
5509 __NR_pread64 and __NR_pwrite64.
5510 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
5511 * sysdeps/unix/sysv/linux/powerpc/pread.c: Remove __NR_pread64
5513 Revert change to use INLINE_SYSCALL.
5514 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
5515 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
5516 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
5517 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Revert change to use
5519 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
5521 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
5522 Update clobber list and add a comment about the syscall ABI.
5524 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64,
5525 s_pwrite64, s_ftruncate, s_truncate): Re-add.
5527 2002-11-05 Jakub Jelinek <jakub@redhat.com>
5529 * iconv/gconv_dl.c (free_mem): Clear loaded.
5530 * locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's
5533 2002-11-05 Ulrich Drepper <drepper@redhat.com>
5535 * sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>.
5537 * libio/ioseekoff.c: Remove INTDEF. Define _IO_seekoff_unlocked. Same
5538 as old code without locking. _IO_seekoff calls this function after
5540 * libio/ioseekpos.c: Likewise for _IO_seekpos.
5541 * libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal
5542 prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked
5544 * libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead
5545 of _IO_seekoff_internal.
5546 (_IO_rewind): Likewise.
5547 * libio/ioftell.c: Likewise.
5548 * libio/ftello.c: Likewise.
5549 * libio/ftello64.c: Likewise.
5550 * libio/iofgetpos.c: Likewise.
5551 * libio/iofgetpos64.c: Likewise.
5552 * libio/oldiofgetpos.c: Likewise.
5553 * libio/oldiofgetpos64.c: Likewise.
5554 * libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of
5555 _IO_seekpos_internal.
5556 * libio/iofsetpos64.c: Likewise.
5557 * libio/oldiofsetpos.c: Likewise.
5558 * libio/oldiofsetpos64.c: Likewise.
5560 2002-11-04 Roland McGrath <roland@redhat.com>
5562 * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
5563 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
5564 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
5565 * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
5566 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
5567 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
5568 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
5569 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
5570 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
5571 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
5572 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
5573 s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
5574 sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
5575 Remove these, no longer used.
5577 2002-11-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5579 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
5580 s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
5581 s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
5582 s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
5583 s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
5584 s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
5587 * sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
5588 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
5589 * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
5591 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
5592 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
5594 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
5596 2002-11-03 Roland McGrath <roland@redhat.com>
5598 * sysdeps/generic/ldsodefs.h (struct rtld_global): New member
5599 `_dl_tls_static_used'.
5600 * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
5601 (__libc_setup_tls): Initialize it. Let the initial value of
5602 _dl_tls_static_size indicate some surplus space in the computed value.
5603 * elf/dl-open.c (_dl_tls_static_size): New variable.
5604 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
5605 _dl_tls_static_used. Add some surplus space into _dl_tls_static_size.
5606 * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
5607 (CHECK_STATIC_TLS): Use it.
5608 * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
5609 closed objects occupied a trailing contiguous chunk of static TLS area.
5611 2002-10-18 Bruno Haible <bruno@clisp.org>
5613 * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
5615 2002-11-04 Ulrich Drepper <drepper@redhat.com>
5617 * libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and
5618 _wide_data->_IO_read_end if adjustment can be made in the current
5621 * sysdeps/unix/sysv/linux/fexecve.c: New file.
5623 * libio/bug-wfflush.c (do_test): Using fseek is not allowed when
5624 wide oriented streams are used.
5626 * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
5627 service hasn't been used [PR libc/4744].
5629 * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
5630 Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].
5632 * manual/examples/dir.c: Don't include <stddef.h>.
5633 * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
5634 Reported by Frédéric Delanoy <delanoy_f@yahoo.com>.
5636 2002-11-02 H.J. Lu <hjl@gnu.org>
5638 * stdio-common/reg-printf.c: Include <stddef.h>.
5640 2002-11-03 Ulrich Drepper <drepper@redhat.com>
5642 * sysdeps/generic/libc-tls.c: Define _dl_tls_static_used.
5644 * po/ca.po: Update from translation team.
5645 * po/es.po: Likewise.
5647 * sysdeps/generic/segfault.c (catch_segfault): If HAVE_PROC_SELF
5648 is defined write out memory map.
5649 * sysdeps/unix/sysv/linux/segfault.c: New file.
5651 2002-11-02 Roland McGrath <roland@redhat.com>
5653 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use union type for
5654 pointers that can alias.
5655 Reported by Daniel Jacobowitz <drow@mvista.com>.
5657 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: New file.
5659 2002-11-02 Roland McGrath <roland@redhat.com>
5661 * manual/filesys.texi (Reading/Closing Directory): Rewrite readdir_r
5662 description to be clearer and to say that *RESULT is set to ENTRY.
5664 2002-10-30 Jakub Jelinek <jakub@redhat.com>
5666 * posix/regexec.c (build_trtable): Alloca or malloc dests_node and
5667 dests_ch arrays together. Alloca or malloc dest_states,
5668 dest_states_word and dest_states_nl arrays together. Free memory on
5671 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
5673 * crypt/crypt_util.c (__init_des_r): Initialize current_salt
5674 and current_saltbits.
5676 2002-11-02 Roland McGrath <roland@redhat.com>
5678 * stdio-common/reg-printf.c: Include <stdlib.h>.
5680 2002-11-02 H.J. Lu <hjl@gnu.org>
5682 * sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set
5683 caller to EXTRA instead of execve.
5685 2002-11-01 Roland McGrath <roland@redhat.com>
5687 * sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional
5688 in place of [!(USE_TLS && HAVE___THREAD)].
5689 (__errno_location) [! USE___THREAD]: Define as strong, not weak.
5691 2002-10-31 Roger Sayle <roger@eyesopen.com>
5693 * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q):
5695 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
5697 * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST
5698 without defining FP_ROUNDMODE.
5700 2002-10-29 Jakub Jelinek <jakub@redhat.com>
5702 * sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove.
5703 (__old_sys_siglist, __old_sys_sigabbrev): Use strong_alias and
5705 * sysdeps/mach/hurd/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
5706 (OLD_SIGLIST_SIZE): Define.
5707 * sysdeps/unix/sysv/linux/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
5708 (OLD_SIGLIST_SIZE): Define.
5709 * sysdeps/unix/sysv/linux/arm/siglist.c: Remove.
5711 2002-11-01 Jakub Jelinek <jakub@redhat.com>
5713 * sysdeps/ia64/strncpy.S: Fix recovery code.
5715 2002-10-30 Jakub Jelinek <jakub@redhat.com>
5717 * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn):
5719 * elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove
5721 * elf/dl-libc.c (free_mem): Likewise.
5722 * iconv/gconv_conf.c (free_mem): Likewise.
5723 * iconv/gconv_db.c (free_mem): Likewise.
5724 * iconv/gconv_dl.c (free_mem): Likewise.
5725 * iconv/gconv_cache.c (free_mem): Likewise.
5726 * intl/finddomain.c (free_mem): Likewise.
5727 * intl/dcigettext.c (free_mem): Likewise.
5728 * locale/setlocale.c (free_mem): Likewise.
5729 * misc/fstab.c (fstab_free): Likewise.
5730 * nss/nsswitch.c (free_mem): Likewise.
5731 * posix/regcomp.c (free_mem): Likewise.
5732 * resolv/gai_misc.c (free_res): Likewise.
5733 * stdlib/fmtmsg.c (free_mem): Likewise.
5734 * sunrpc/clnt_perr.c (free_mem): Likewise.
5735 * sysdeps/generic/setenv.c (free_mem): Likewise.
5736 * sysdeps/unix/sysv/linux/shm_open.c (freeit): Likewise.
5737 * sysdeps/pthread/aio_misc.c (free_res): Likewise.
5738 * time/tzset.c (free_mem): Likewise.
5739 * malloc/mtrace.c (release_libc_mem): Add __libc_freeres_fn_section.
5740 * locale/loadarchive.c (_nl_archive_subfreeres): Likewise.
5741 * malloc/set-freeres.c (__libc_freeres): Likewise.
5743 * login/getutent.c: Include stdlib.h instead of stddef.h.
5744 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
5745 (__getutent): Allocate buffer the first time it is run.
5746 * login/getutid.c: Include stdlib.h instead of stddef.h.
5747 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
5748 (__getutid): Allocate buffer the first time it is run.
5749 * login/getutline.c: Include stdlib.h instead of stddef.h.
5750 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
5751 (__getutline): Allocate buffer the first time it is run.
5752 * malloc/mtrace.c (malloc_trace_buffer): Change into char *.
5753 (mtrace): Allocate malloc_trace_buffer.
5754 * resolv/nsap_addr.c (inet_nsap_ntoa): Decrease size of tmpbuf.
5755 * resolv/ns_print.c (ns_sprintrrf): Decrease size of t.
5756 * string/strerror.c: Include libintl.h and errno.h.
5757 (buf): New variable.
5758 (strerror): Only allocate buffer if actually needed (unknown error).
5759 * time/tzfile.c (transitions): Add libc_freeres_ptr.
5762 2002-10-25 Jakub Jelinek <jakub@redhat.com>
5764 * include/libc-symbols.h (libc_freeres_ptr): New macro.
5765 * malloc/set-freeres.c (__libc_freeres_ptrs): Define using
5767 (__libc_freeres): Free all pointers in that section.
5768 * Makerules (build-shlib): Add $(LDSEDCMD-$(@F:lib%.so=%).so) to sed
5769 commands when creating .lds script.
5770 (LDSEDCMD-c.so): New variable.
5771 * inet/rcmd.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
5772 (rcmd_af): Use strdup to allocate ahostbuf.
5773 * inet/rexec.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
5774 (rexec_af): Use strdup to allocate ahostbuf.
5775 * stdio-common/reg-printf.c (printf_funcs): Remove.
5776 (__printf_arginfo_table): Change into printf_arginfo_function **.
5777 Add libc_freeres_ptr.
5778 (__register_printf_function): Allocate __printf_arginfo_table
5779 and __printf_function_table the first time it is called.
5780 * stdio-common/printf-parse.h (__printf_arginfo_table): Change into
5781 printf_arginfo_function **.
5782 (parse_one_spec): Add __builtin_expect.
5783 * grp/fgetgrent.c (buffer): Add libc_freeres_ptr.
5785 * inet/getnetgrent.c (buffer): Add libc_freeres_ptr.
5787 * intl/localealias.c (libc_freeres_ptr): Define if !_LIBC.
5788 (string_space, map): Add libc_freeres_ptr.
5790 * misc/efgcvt.c (FCVT_BUFPTR): Add libc_freeres_ptr.
5792 * misc/mntent.c (getmntent_buffer): Add libc_freeres_ptr.
5794 * crypt/md5-crypt.c (libc_freeres_ptr): Define if !_LIBC.
5795 (buffer): Add libc_freeres_ptr.
5796 (free_mem): Remove for _LIBC.
5797 * nss/getXXbyYY.c (buffer): Add libc_freeres_ptr.
5799 * nss/getXXent.c (buffer): Add libc_freeres_ptr.
5801 * pwd/fgetpwent.c (buffer): Add libc_freeres_ptr.
5803 * resolv/res_hconf.c (ifaddrs): Add libc_freeres_ptr.
5805 * shadow/fgetspent.c (buffer): Add libc_freeres_ptr.
5807 * sysdeps/posix/ttyname.c (getttyname_name): Add libc_freeres_ptr.
5809 * sysdeps/unix/sysv/linux/getsysstats.c (mount_proc): Add
5812 * sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add
5816 2002-10-30 Jakub Jelinek <jakub@redhat.com>
5818 * malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias
5819 instead of duplicating the whole function in libc.
5821 2002-10-31 Roland McGrath <roland@redhat.com>
5823 * sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32):
5824 Renamed from __bswap_16 (typo fix). Reported by <dens@stl.sarov.ru>.
5826 2002-10-30 Jakub Jelinek <jakub@redhat.com>
5828 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each
5829 32bit-predefine when creating .new32 list and -U for each
5830 32bit-predefine when creating .new64 list.
5831 * sysdeps/unix/sysv/linux/x86_64/Makefile (32bit-predefine): New.
5833 2002-10-29 Andreas Schwab <schwab@suse.de>
5835 * sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not
5836 "testrtsig.h". Reported by Daniel Jacobowitz <dan@debian.org>.
5838 2002-10-25 Roland McGrath <roland@redhat.com>
5840 * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change.
5841 * sysdeps/unix/sysv/linux/configure: Regenerated.
5843 * sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from
5844 _dl_starting_up decl.
5846 2002-10-20 H.J. Lu <hjl@gnu.org>
5848 * sysdeps/unix/sysv/linux/configure.in: Don't check
5849 /lib/modules/`uname -r`/build/include for kernel headers if
5851 * sysdeps/unix/sysv/linux/configure: Regenerated.
5853 2002-10-25 Roland McGrath <roland@redhat.com>
5855 * math/math.h (M_LOG2El): Correct the value.
5856 From Stephen L Moshier <steve@moshier.net>.
5858 * sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED]
5859 conditional from __libc_multiple_libcs access. Remove kludge for weak
5860 symbol access with old compilers we no longer support.
5861 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
5862 * sysdeps/generic/libc-start.c (__libc_start_main): Likewise.
5864 2002-10-25 Roland McGrath <roland@redhat.com>
5866 * sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and
5867 implement SV_RESETHAND by translating it to SA_RESETHAND.
5869 2002-10-23 Alexandre Oliva <aoliva@redhat.com>
5871 * elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation
5872 type on ELF64 platforms.
5874 2002-10-24 Ulrich Drepper <drepper@redhat.com>
5876 * elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF.
5878 * elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.
5880 2002-10-24 Jakub Jelinek <jakub@redhat.com>
5882 * elf/dl-misc.c: Include <sysdep.h>.
5883 (_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up.
5885 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL,
5886 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
5887 (INLINE_SYSCALL): Use that.
5888 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL,
5889 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
5890 (INLINE_SYSCALL): Use that.
5891 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL,
5892 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
5893 (INLINE_SYSCALL): Use that.
5894 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Include
5896 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
5897 (__INTERNAL_SYSCALL_STRING): Define.
5898 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
5900 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
5901 (__INTERNAL_SYSCALL_STRING): Define.
5902 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL): Pass
5903 __SYSCALL_STRING to inline_syscall*.
5904 (INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
5906 (inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3,
5907 inline_syscall4, inline_syscall5, inline_syscall6): Add string
5910 2002-10-24 Roland McGrath <roland@redhat.com>
5912 * sysdeps/generic/ldsodefs.h (_dl_starting_up): Declare it here.
5913 * sysdeps/unix/sysv/linux/init-first.c: Not here.
5914 * sysdeps/powerpc/elf/libc-start.c: Or here.
5915 * sysdeps/unix/sysv/aix/libc-start.c: Or here.
5916 * sysdeps/unix/sysv/aix/start-libc.c: Or here.
5917 * sysdeps/unix/sysv/aix/init-first.c: Or here.
5918 * sysdeps/generic/libc-start.c: Or here.
5919 * sysdeps/unix/sysv/linux/init-first.c (init): Protect _dl_starting_up
5920 access with [! SHARED].
5921 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
5923 * libio/bug-wfflush.c: New file.
5924 * libio/Makefile (tests): Add bug-wfflush.
5926 2002-10-23 Roland McGrath <roland@redhat.com>
5928 * stdio-common/tst-fphex.c: New file.
5929 * stdio-common/Makefile (tests): Add tst-fphex.
5930 * sysdeps/generic/printf_fphex.c (__printf_fphex): Fix initialization
5931 of WNUMEND. Fix counting of decimal point in WIDTH. Print '0' pad
5932 chars always before the value digits.
5933 Reported by James Antill <james.antill@redhat.com>.
5935 2002-10-24 Jakub Jelinek <jakub@redhat.com>
5937 * posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.
5938 (free_mem): New function.
5939 * posix/Makefile (tests): Add bug-regex14. Add bug-regex14-mem
5940 if not cross compiling.
5941 (generated): Add bug-regex14-mem and bug-regex14.mtrace.
5942 (bug-regex14-ENV): Set.
5943 (bug-regex14-mem): New target.
5944 * posix/bug-regex14.c: New file.
5946 2002-10-23 Roland McGrath <roland@redhat.com>
5948 * elf/Makefile ($(objpfx)librtld.map): Use temporary file for output
5949 target, so we don't touch it when the link fails.
5951 * libio/ftello.c (ftello): Use _IO_off64_t for type of POS.
5952 Check for the result overflowing off_t and fail with EOVERFLOW.
5953 * libio/ioftell.c (_IO_ftell): Likewise.
5954 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
5956 * login/logwtmp.c (logwtmp): If sizeof ut_tv != sizeof struct timeval,
5957 use a temporary timeval on the stack for gettimeofday and copy it.
5958 * login/logout.c (logout): Likewise.
5959 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
5961 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs):
5962 Use __SWORD_TYPE instead of int for member types.
5963 (struct statfs64): Likewise.
5964 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: New file.
5965 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: New file.
5966 * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: File removed.
5967 * sysdeps/unix/sysv/linux/sparc/bits/statfs.h: File removed.
5968 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: File removed.
5970 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Moved to ...
5971 * sysdeps/unix/sysv/linux/bits/statvfs.h: ... here.
5972 (ST_NODIRATIME): Restore fixed value of 2048.
5973 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: File removed.
5974 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: File removed.
5976 Rearranged <bits/types.h> definitions to reduce duplication.
5977 * sysdeps/generic/bits/types.h: Rewritten, using macros from
5978 <bits/wordsize.h> and new header <bits/typesizes.h>.
5979 * posix/Makefile (headers): Add bits/typesizes.h here.
5980 * sysdeps/generic/bits/typesizes.h: New file.
5981 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file.
5982 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file.
5983 * sysdeps/mach/hurd/bits/typesizes.h: New file.
5984 * sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed.
5985 * sysdeps/unix/sysv/linux/bits/types.h: File removed.
5986 * sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed.
5987 * sysdeps/unix/sysv/linux/mips/bits/types.h: File removed.
5988 * sysdeps/unix/sysv/linux/s390/bits/types.h: File removed.
5989 * sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed.
5990 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed.
5991 * posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include
5992 <bits/pthreadtypes.h> here, not in <bits/types.h>.
5993 * signal/signal.h: Likewise.
5995 * streams/stropts.h: Include <bits/xtitypes.h>.
5996 * streams/Makefile (headers): Add bits/xtitypes.h here.
5997 * sysdeps/generic/bits/xtitypes.h: New file.
5998 * sysdeps/s390/bits/xtitypes.h: New file.
5999 * sysdeps/ia64/bits/xtitypes.h: New file.
6000 * sysdeps/x86_64/bits/xtitypes.h: New file.
6002 * sysvipc/Makefile (headers): Add bits/ipctypes.h here.
6003 * sysdeps/generic/bits/ipctypes.h: New file.
6004 * sysdeps/mips/bits/ipctypes.h: New file.
6005 * sysdeps/gnu/bits/shm.h: Include <bits/ipctypes.h>.
6006 * sysdeps/gnu/bits/msq.h: Likewise.
6007 * sysvipc/sys/ipc.h: Likewise.
6009 2002-10-22 Ulrich Drepper <drepper@redhat.com>
6011 * elf/dl-load.c (struct filebuf): For buf element to have the
6012 alignment of ElfXX_Ehdr since this is what will be stored in it.
6014 2002-10-22 Jakub Jelinek <jakub@redhat.com>
6016 * locale/programs/locarchive.c (add_alias): Change locrec_offset arg
6017 into pointer to locrec_offset.
6018 (add_locale_to_archive): Adjust callers. Free normalized_name right
6019 before returning, not immediately after add_locale, pass it to
6020 add_alias if not NULL instead of name. Rename second normalized_name
6021 occurence to nnormalized_codeset_name.
6023 * locale/programs/locarchive.c (enlarge_archive): Make sure
6024 string_size is always a multiple of 4.
6025 Reported by Andreas Schwab <schwab@suse.de>.
6027 2002-10-21 Andreas Schwab <schwab@suse.de>
6029 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set
6030 caller to EXTRA instead of execve, since the latter has a
6031 higher-priority implementation in linuxthreads.
6033 2002-10-21 Roland McGrath <roland@redhat.com>
6035 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static
6036 slotinfo list's len member to the proper size, not just 1.
6037 Initialize static_map.l_tls_initimage.
6039 * elf/dl-open.c (dl_open_worker): Fix loop searching for
6040 dtv_slotinfo_list element containing new modules' l_tls_modid.
6042 * elf/tst-tls9.c, elf/tst-tls9-static.c: New files.
6043 * elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files.
6044 * elf/Makefile (tests): Add tst-tls9.
6045 (tests-static): Add tst-tls9-static.
6046 (tst-tls9-static-ENV): New variable.
6047 ($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets.
6049 * elf/dl-close.c (remove_slotinfo): Remove an assert; the number of
6050 modids used by partially loaded modules being closed can't be known.
6052 2002-10-21 Isamu Hasegawa <isamu@yamato.ibm.com>
6054 * posix/Makefile: Add a test case for the bug reported by Aharon
6055 Robbins <arnold@skeeve.com>.
6056 * posix/bug-regex13.c: New file.
6057 * posix/regcomp.c (peek_token_bracket): Skip the byte already read.
6059 2002-10-21 Ulrich Drepper <drepper@redhat.com>
6061 * csu/gmon-start.c: Pretty printing.
6063 2002-10-19 Art Haas <ahaas@neosoft.com>
6065 * configure.in: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS,
6066 add AC_HELP_STRING to all AC_ARG_WITH and AC_ARG_ENABLE macros,
6067 add autoconf quotes to the AC_CONFIG_AUX_DIR macro.
6068 * configure: Regenerated.
6070 2002-10-19 Roland McGrath <roland@redhat.com>
6072 * configure.in: Call AC_CONFIG_SUBDIRS with empty argument
6073 and then set $subdirs directly, because the new Autoconf breaks
6074 compatibility in every way imaginable and insists on whining
6075 about usage that worked since the dawn of time.
6076 * configure: Regenerated.
6078 * configure: Regenerated (using Autoconf 2.54).
6079 * sysdeps/alpha/elf/configure: Likewise.
6080 * sysdeps/generic/configure: Likewise.
6081 * sysdeps/i386/elf/configure: Likewise.
6082 * sysdeps/ia64/elf/configure: Likewise.
6083 * sysdeps/mach/hurd/configure: Likewise.
6084 * sysdeps/mach/configure: Likewise.
6085 * sysdeps/unix/configure: Likewise.
6086 * sysdeps/unix/common/configure: Likewise.
6087 * sysdeps/unix/sysv/aix/configure: Likewise.
6088 * sysdeps/unix/sysv/linux/configure: Likewise.
6089 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
6090 * sysdeps/x86_64/elf/configure: Likewise.
6092 * config.make.in: Nix completely-soft nonsense.
6093 * configure.in: Likewise. Under --without-fp, use nofpu subdirectory
6094 of machine directories instead of fpu subdirectory.
6095 * sysdeps/powerpc/soft-fp/Makefile: Remove cruft added in last change.
6096 * sysdeps/powerpc/nofpu/Makefile: Put it in this new file instead.
6097 * sysdeps/powerpc/soft-fp/sim-full.c: Moved to ...
6098 * sysdeps/powerpc/nofpu/sim-full.c: ... here.
6099 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: Moved to ...
6100 * sysdeps/powerpc/nofpu/fraiseexcpt.c: ... here.
6101 * sysdeps/powerpc/soft-fp/fegetexcept.c: Moved to ...
6102 * sysdeps/powerpc/nofpu/fegetexcept.c: ... here.
6103 * sysdeps/powerpc/soft-fp/fclrexcpt.c: Moved to ...
6104 * sysdeps/powerpc/nofpu/fclrexcpt.c: ... here.
6105 * sysdeps/powerpc/soft-fp/ftestexcept.c: Moved to ...
6106 * sysdeps/powerpc/nofpu/ftestexcept.c: ... here.
6107 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: Moved to ...
6108 * sysdeps/powerpc/nofpu/fgetexcptflg.c: ... here.
6109 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: Moved to ...
6110 * sysdeps/powerpc/nofpu/fsetexcptflg.c: ... here.
6111 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: Moved to ...
6112 * sysdeps/powerpc/nofpu/fedisblxcpt.c: ... here.
6113 * sysdeps/powerpc/soft-fp/feenablxcpt.c: Moved to ...
6114 * sysdeps/powerpc/nofpu/feenablxcpt.c: ... here.
6115 * sysdeps/powerpc/soft-fp/fegetenv.c: Moved to ...
6116 * sysdeps/powerpc/nofpu/fegetenv.c: ... here.
6117 * sysdeps/powerpc/soft-fp/fesetenv.c: Moved to ...
6118 * sysdeps/powerpc/nofpu/fesetenv.c: ... here.
6119 * sysdeps/powerpc/soft-fp/fegetround.c: Moved to ...
6120 * sysdeps/powerpc/nofpu/fegetround.c: ... here.
6121 * sysdeps/powerpc/soft-fp/fesetround.c: Moved to ...
6122 * sysdeps/powerpc/nofpu/fesetround.c: ... here.
6123 * sysdeps/powerpc/soft-fp/feupdateenv.c: Moved to ...
6124 * sysdeps/powerpc/nofpu/feupdateenv.c: ... here.
6125 * sysdeps/powerpc/soft-fp/feholdexcpt.c: Moved to ...
6126 * sysdeps/powerpc/nofpu/feholdexcpt.c: ... here.
6127 * sysdeps/powerpc/soft-fp/fenv_const.c: Moved to ...
6128 * sysdeps/powerpc/nofpu/fenv_const.c: ... here.
6129 * sysdeps/powerpc/soft-fp/libm-test-ulps: Moved to ...
6130 * sysdeps/powerpc/nofpu/libm-test-ulps: ... here.
6131 * sysdeps/powerpc/soft-fp/soft-supp.h: Moved to ...
6132 * sysdeps/powerpc/nofpu/soft-supp.h: ... here.
6133 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Moved to ...
6134 * sysdeps/powerpc/nofpu/Versions: ... here, new file.
6136 2002-10-19 Bruno Haible <bruno@clisp.org>
6138 * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file.
6140 2002-10-18 Roland McGrath <roland@redhat.com>
6142 * io/Makefile (routines): Add lchmod.
6143 * io/sys/stat.h [__USE_BSD] (lchmod): Declare it.
6144 * sysdeps/generic/lchmod.c: New file.
6145 * sysdeps/mach/hurd/lchmod.c: New file.
6146 * io/Versions (libc: GLIBC_2.3.2): New set, add lchmod.
6148 2002-10-18 Art Haas <ahaas@neosoft.com>
6150 * configure.in: Remove remaining AC_FD_CC macros, and replace
6151 AC_FD_MSG with AS_MESSAGE_FD.
6153 2002-10-18 Roland McGrath <roland@redhat.com>
6155 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix
6156 typos: VALUE -> FINALADDR.
6158 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1)
6159 (inline_syscall_clobbers, inline_syscall0, inline_syscall1)
6160 (inline_syscall2, inline_syscall3, inline_syscall4, inline_syscall5)
6161 (inline_syscall6): Move these macros ...
6162 * sysdeps/unix/sysv/linux/alpha/sysdep.h: ... to here.
6164 * configure.in (libc_link_dests, libc_link_sources): Remove these
6165 variables and the AC_LINK_FILES call.
6167 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Fix last
6168 change to put new symbols here instead of in GLIBC_2.2.
6169 * sysdeps/powerpc/Subdirs: Move this file ...
6170 * sysdeps/powerpc/soft-fp/Subdirs: ... here.
6172 2002-10-07 Roland McGrath <roland@redhat.com>
6174 * sysdeps/generic/bits/time.h: Replaced with contents of the
6175 sysdeps/unix/sysv/linux/i386/bits/time.h file. All the following
6176 files were identical except for the absence of CLOCK_THREAD_CPUTIME_ID
6177 and CLOCK_PROCESS_CPUTIME_ID in .../linux/bits/time.h; adding these
6178 macros is ok even for architectures that don't now implement them.
6179 * sysdeps/mach/hurd/bits/time.h: File removed.
6180 * sysdeps/unix/sysv/linux/bits/time.h: File removed.
6181 * sysdeps/unix/sysv/linux/i386/bits/time.h: File removed.
6182 * sysdeps/unix/sysv/linux/ia64/bits/time.h: File removed.
6183 * sysdeps/unix/sysv/linux/sparc/bits/time.h: File removed.
6184 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: File removed.
6186 2002-10-18 Jeff Bailey <jbailey@gnu.org>
6188 * configure.in: Replace obsolete AC_OUTPUT syntax with
6189 AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio.
6191 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for
6192 _AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE.
6194 * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
6195 * sysdeps/alpha/elf/configure.in: Likewise.
6196 * sysdeps/i386/elf/configure.in: Likewise.
6197 * sysdeps/mach/hurd/configure.in: Likewise.
6198 * sysdeps/x86_64/elf/configure.in: Likewise.
6200 * configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax.
6202 * sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement.
6203 * sysdeps/generic/configure.in: Likewise.
6204 * sysdeps/i386/elf/configure.in: Likewise.
6205 * sysdeps/ia64/elf/configure.in: Likewise.
6206 * sysdeps/mach/configure.in: Likewise.
6207 * sysdeps/mach/hurd/configure.in: Likewise.
6208 * sysdeps/unix/configure.in: Likewise.
6209 * sysdeps/unix/common/configure.in: Likewise.
6210 * sysdeps/unix/sysv/aix/configure.in: Likewise.
6211 * sysdeps/unix/sysv/linux/configure.in: Likewise.
6212 * sysdeps/unix/sysv/linux/mips/configure.in: Likewise.
6213 * sysdeps/x86_64/elf/configure.in: Likewise.
6215 * aclocal.m4: Use just the bits from AS_INIT that are needed for the
6216 GLIBC_PROVIDES. Use plain comment instead of HEADER-COMMENT so
6217 that it's obvious when extra autoconf machinery is being dragged in.
6219 2002-10-18 Roland McGrath <roland@redhat.com>
6221 * configure.in: Remove bogus echo included in
6222 2002-10-08 Aldy Hernandez <aldyh@redhat.com> change.
6223 * configure: Regenerated.
6225 2002-10-18 Jakub Jelinek <jakub@redhat.com>
6227 * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.
6228 (statfs_filesize_max): New function.
6229 * sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC,
6230 JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC,
6231 ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define.
6232 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use
6233 statfs_filesize_max.
6234 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
6235 * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed.
6236 * sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.
6238 2002-10-17 Roland McGrath <roland@redhat.com>
6240 * configure.in (MIG): Just AC_SUBST it here.
6241 * configure: Regenerated.
6242 * sysdeps/mach/configure.in (MIG): Do the AC_CHECK_TOOL here.
6243 Adding final - argument to all AC_CHECK_HEADER uses for .defs files.
6244 * sysdeps/mach/configure: Regenerated.
6246 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE])
6247 and AC_PROVIDE([_AS_CR_PREPARE]).
6249 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).
6250 Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]).
6252 * elf/dl-support.c: Move _dl_tls_* variables to ...
6253 * sysdeps/generic/libc-tls.c: ... here.
6255 * elf/dl-close.c (remove_slotinfo): Take new argument. If false,
6256 allow IDX to be one past the current last slotinfo entry.
6257 (_dl_close): Pass IMAP->l_init_called for that parameter.
6259 2002-10-07 Andreas Schwab <schwab@suse.de>
6261 * aclocal.m4: Fix for autoconf 2.53.
6262 * configure.in: Likewise. Require autoconf 2.53.
6264 2002-10-08 Richard Henderson <rth@redhat.com>
6266 * soft-fp/op-4.h: Handle carry correctly in
6267 __FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3,
6268 __FP_FRAC_SUB_4, __FP_FRAC_DEC_3, __FP_FRAC_DEC_4.
6269 * soft-fp/op-common.h: New macros _FP_DIV_MEAT_N_loop.
6271 2002-10-08 Aldy Hernandez <aldyh@redhat.com>
6273 * configure.in: Compute completely-soft.
6274 * config.make.in: Make completely-soft available to sub-makes.
6275 * sysdeps/powerpc/soft-fp/Makefile: Add gcc-single-routines and
6276 gcc-double-routines. Add sim-full.c. Add fenv_const and
6277 fe_nomask to libm-support.
6278 * sysdeps/powerpc/soft-fp/sim-full.c: New file.
6279 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: New file.
6280 * sysdeps/powerpc/soft-fp/fegetexcept.c: New file.
6281 * sysdeps/powerpc/soft-fp/fclrexcpt.c: New file.
6282 * sysdeps/powerpc/soft-fp/ftestexcept.c: New file.
6283 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: New file.
6284 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: New file.
6285 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: New file.
6286 * sysdeps/powerpc/soft-fp/feenablxcpt.c: New file.
6287 * sysdeps/powerpc/soft-fp/fegetenv.c: New file.
6288 * sysdeps/powerpc/soft-fp/fesetenv.c: New file.
6289 * sysdeps/powerpc/soft-fp/fegetround.c: New file.
6290 * sysdeps/powerpc/soft-fp/fesetround.c: New file.
6291 * sysdeps/powerpc/soft-fp/feupdateenv.c: New file.
6292 * sysdeps/powerpc/soft-fp/feholdexcpt.c: New file.
6293 * sysdeps/powerpc/soft-fp/fenv_const.c: New file.
6294 * sysdeps/powerpc/soft-fp/libm-test-ulps: New file.
6295 * sysdeps/powerpc/soft-fp/soft-supp.h: New file.
6296 * sysdeps/powerpc/soft-fp/Versions: Add libgcc soft-float
6297 symbols. Add __sim_disabled_exceptions, __sim_exceptions,
6299 * sysdeps/powerpc/soft-float/Dist: Add sim-full.c, fenv_const.c.
6300 * sysdeps/powerpc/soft-float/sfp-machine.h: Define
6301 FP_HANDLE_EXCEPTIONS.
6302 Define FP_ROUNDMODE.
6303 Redefine FP_* macros to correspond to the FE_* bit positions.
6304 Define FP_DIV_MEAT_S to _FP_DIV_MEAT_1_loop.
6305 Define externs for __sim_exceptions, __sim_disabled_exceptions,
6306 __sim_round_mode, __simulate_exceptions.
6307 * sysdeps/powerpc/fpu/bits/fenv.h: Move file from here...
6308 * sysdeps/powerpc/bits/fenv.h: ...to here.
6310 2002-10-06 Jakub Jelinek <jakub@redhat.com>
6312 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
6313 Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time.
6314 Use __builtin_expect for R_PPC_ADDR24 overflow check. Fix
6315 R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use
6318 2002-10-15 Jakub Jelinek <jakub@redhat.com>
6320 * include/resolv.h (__libc_res_nquery, __libc_res_nsearch,
6321 __libc_res_nsend): New prototypes.
6322 * resolv/res_query.c (QUERYSIZE): Define.
6323 (__libc_res_nquery): Renamed from res_nquery. Added answerp
6324 argument. Allocate only QUERYSIZE bytes first, if res_nmkquery
6325 fails use MAXPACKET buffer. Call __libc_res_nsend instead of
6326 res_nsend, pass answerp.
6327 (res_nquery): Changed into wrapper around __libc_res_nquery.
6328 (__libc_res_nsearch): Renamed from res_nsearch. Added answerp
6329 argument. Call __libc_res_nquerydomain and __libc_res_nquery
6330 instead of the non-__libc_ variants, pass them answerp.
6331 (res_nsearch): Changed into wrapper around __libc_res_nsearch.
6332 (__libc_res_nquerydomain): Renamed from res_nquerydomain.
6333 Added answerp argument. Call __libc_res_nquery instead of
6334 res_nquery, pass answerp.
6335 (res_nquerydomain): Changed into wrapper around
6336 __libc_res_nquerydomain.
6337 * resolv/res_send.c: Include sys/ioctl.h.
6338 (MAXPACKET): Define.
6339 (send_vc): Change arguments. Reallocate answer buffer if it is
6341 (send_dg): Likewise.
6342 (__libc_res_nsend): Renamed from res_nsend. Added ansp argument.
6343 Reallocate answer buffer if it is too small and hooks are in use.
6344 Adjust calls to send_vc and send_dg.
6345 (res_nsend): Changed into wrapper around __libc_res_nsend.
6346 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate
6347 just 1K answer buffer on the stack, use __libc_res_nsearch instead
6349 (_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery.
6350 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
6351 (_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch.
6352 * resolv/gethnamaddr.c (gethostbyname2): Likewise.
6353 (gethostbyaddr): Similarly with __libc_res_nquery.
6354 * resolv/Versions (libresolv): Export __libc_res_nquery and
6355 __libc_res_nsearch at GLIBC_PRIVATE.
6357 2002-10-17 Roland McGrath <roland@redhat.com>
6359 * configure.in: Grok --without-__thread and disable HAVE___THREAD.
6360 * configure: Regenerated.
6362 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS
6363 before performing the reloc, not after.
6364 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
6366 2002-10-17 Ulrich Drepper <drepper@redhat.com>
6368 * locale/programs/locale.c (write_locales): Use 'm' flag in fopen call.
6369 * locale/programs/linereader.c (lr_open): Likewise.
6370 * locale/programs/charmap-dir.c (charmap_open): Likewise.
6371 * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
6373 2002-10-17 Isamu Hasegawa <isamu@yamato.ibm.com>
6375 * posix/bug-regex11.c: Add a test case for the bug reported by
6376 Paolo Bonzini <bonzini@gnu.org>.
6377 * posix/regexec.c (sift_states_bkref): Use correct destination of
6380 2002-10-17 Roland McGrath <roland@redhat.com>
6382 * elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS.
6383 * elf/dl-reloc.c (_dl_relocate_object: CHECK_STATIC_TLS): New macro
6384 to signal error if an IE-model TLS reloc resolved to a dlopen'd module.
6385 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
6386 Call it after performing TPOFF relocs.
6387 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
6388 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
6389 * elf/dl-conflict.c (CHECK_STATIC_TLS): New macro (no-op).
6391 * elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash
6392 when closing a partially-initialized object.
6394 * elf/dl-load.c (_dl_map_object_from_fd) [! USE_TLS]: Call lose
6395 instead of _dl_fatal_printf when we see PT_TLS.
6397 * Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F))
6398 instead of $(libof-$<).
6400 2002-10-16 Roland McGrath <roland@redhat.com>
6402 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed.
6403 instead of += to append, to be sure $(lib) gets expanded at defn time.
6404 (libof-$(cpp-src)): New variable, define this instead.
6405 * extra-lib.mk (cpp-srcs-left): Reduce duplication in include setup.
6406 (lib): Don't use override.
6407 (CPPFLAGS-$(lib)): New variable, put -D's here.
6408 * Makeconfig (CPPFLAGS): Use basename fn for CPPFLAGS-basename.
6409 Also add $(CPPFLAGS-LIB) before the file-specific flags, for each
6410 LIB found by $(libof-*) for basename, target, or source.
6411 * Makerules (CPPFLAGS-nonlib): New variable.
6412 * nscd/Makefile (lib): Set to nonlib when using cppflags-iterator.mk.
6413 * locale/Makefile (lib): Likewise.
6414 * sunrpc/Makefile (lib): Likewise.
6416 * sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ...
6417 * sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here.
6418 * sysdeps/unix/sysv/linux/pathconf.h: New file.
6419 (statfs_link_max): New function, guts from fpathconf.c.
6420 * sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that.
6421 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
6422 * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten
6423 to use the linux/pathconf.c code by #include rather than duplication.
6424 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise.
6426 2002-10-16 Jakub Jelinek <jakub@redhat.com>
6428 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
6429 Use __libc_errno only for libc itself.
6431 2002-10-16 Andreas Jaeger <aj@suse.de>
6433 * sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access.
6435 2002-10-16 Ulrich Drepper <drepper@redhat.com>
6437 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
6438 Use __libc_errno only for libc itself.
6440 2002-10-15 Roland McGrath <roland@redhat.com>
6441 Jakub Jelinek <jakub@redhat.com>
6443 * sysdeps/unix/sysv/linux/Makefile
6444 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from
6445 sparc/Makefile to produce a bi-arch file as needed.
6446 That's now parameterized by the variable $(64bit-predefine).
6447 Use LC_ALL=C for `comm' commands in that rule.
6448 No longer conditional on [$(no_syscall_list_h)].
6449 * sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules.
6450 (64bit-predefine): New variable.
6451 * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
6452 * sysdeps/unix/sysv/linux/s390/Makefile: New file.
6453 * sysdeps/unix/sysv/linux/powerpc/Makefile
6454 (64bit-predefine): New variable.
6456 2002-10-15 Roland McGrath <roland@redhat.com>
6458 * sysdeps/unix/sysv/linux/Makefile
6459 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d)
6461 * login/utmp-private.h: Declare __libc_utmp_lock.
6462 * sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once
6463 and call __libc_utmp_jump_table functions directly, instead of using
6466 * sysdeps/unix/sysv/linux/configure.in: Use case instead of if.
6467 * sysdeps/unix/sysv/linux/configure: Regenerated.
6469 * sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>.
6470 (struct lastlog) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
6471 Use int32_t for ll_time.
6472 (struct utmp) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
6473 Use int32_t instead of long int for ut_session.
6474 Use an anonymous struct with 32-bit fields for ut_tv.
6475 * sysdeps/gnu/bits/utmpx.h: Include <bits/wordsize.h>.
6476 (struct utmpx) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: Do the same
6477 here as in utmp.h for `struct utmp'.
6478 * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: File removed.
6479 * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: File removed.
6480 * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: File removed.
6481 * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: File removed.
6482 * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: File removed.
6483 * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: File removed.
6485 * sysdeps/unix/sysv/linux/bits/resource.h: Replaced with the contents
6486 of the sysdeps/unix/sysv/linux/i386/bits/resource.h file.
6487 All the following files were identical or equivalent to it.
6488 * sysdeps/unix/sysv/linux/i386/bits/resource.h: File removed.
6489 * sysdeps/unix/sysv/linux/arm/bits/resource.h: File removed.
6490 * sysdeps/unix/sysv/linux/cris/bits/resource.h: File removed.
6491 * sysdeps/unix/sysv/linux/hppa/bits/resource.h: File removed.
6492 * sysdeps/unix/sysv/linux/ia64/bits/resource.h: File removed.
6493 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: File removed.
6494 * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: File removed.
6495 * sysdeps/unix/sysv/linux/s390/bits/resource.h: File removed.
6496 * sysdeps/unix/sysv/linux/sh/bits/resource.h: File removed.
6497 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: File removed.
6499 * sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t
6500 instead of int for msg_iovlen, instead of socklen_t for msg_controllen.
6501 Other than the previously incorrect sign of msg_iovlen, this is a
6502 no-op on 32-bit platforms. On 64-bit platforms it makes this header
6503 match their layouts as well, so the following are now identical to it.
6504 * sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed.
6505 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed.
6506 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed.
6507 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed.
6508 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed.
6510 2002-10-15 Ulrich Drepper <drepper@redhat.com>
6512 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
6513 Define for 2.4+ kernels.
6515 * sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which
6516 are known to have the vfork syscall. Don't confuse the CPUs
6517 branch prediction unit by jumping to the return address.
6519 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add
6520 support for reiserfs and xfs.
6522 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for
6524 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC
6526 Patch by Eric Sandeen <sandeen@sgi.com> [PR libc/4706].
6528 2002-10-16 Jakub Jelinek <jakub@redhat.com>
6530 * include/libc-symbols.h (attribute_tls_model_ie): Define.
6531 * include/errno.h (errno): Define to __libc_errno in libc.so.
6532 Add attribute_tls_model_ie.
6533 * include/netdb.h (h_errno): Define to __libc_h_errno in libc.so.
6534 Add attribute_tls_model_ie.
6535 * include/resolv.h (_res): Define to __libc_res in libc.so. Add
6536 attribute_tls_model_ie.
6537 * inet/herrno.c (__libc_h_errno): Add hidden alias to h_errno.
6539 * resolv/res_libc.c (__libc_res): Add hidden alias to _res.
6541 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_define): Add
6542 attribute_tls_model_ie.
6543 * sysdeps/generic/errno-loc.c (errno): Only undefine if not using
6545 * sysdeps/generic/errno.c (__libc_errno): Add hidden alias to errno.
6546 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use
6547 __libc_errno in USE___THREAD case.
6548 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
6550 * configure.in (HAVE_TLS_MODEL_ATTRIBUTE): Check for
6551 __attribute__((tls_model (""))).
6552 * configure: Rebuilt.
6553 * config.h.in (HAVE_TLS_MODEL_ATTRIBUTE): Add.
6555 2002-10-15 Ulrich Drepper <drepper@redhat.com>
6557 * timezone/asia: Update from tzdata2002d.
6558 * timezone/australasia: Likewise.
6559 * timezone/iso3166.tab: Likewise.
6560 * timezone/southamerica: Likewise.
6561 * timezone/zone-tab: Likewise.
6563 2002-10-15 Roland McGrath <roland@redhat.com>
6565 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls) [TLS_TCB_AT_TP]:
6566 Adjust TCB pointer before calling free, so we get the whole block.
6568 2002-10-14 Roland McGrath <roland@redhat.com>
6570 * sysdeps/unix/sysv/linux/x86_64/sigaction.c
6571 [HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt
6572 extern using attribute_hidden instead of static, avoids warning.
6574 2002-10-09 Jakub Jelinek <jakub@redhat.com>
6576 * sysdeps/unix/sysv/linux/configure.in: Use */lib64 for s390x too.
6577 * sysdeps/unix/sysv/linux/configure: Rebuilt.
6579 2002-10-14 Ulrich Drepper <drepper@redhat.com>
6581 * po/sv.po: Update from translation team.
6583 2002-10-12 H.J. Lu <hjl@gnu.org>
6585 * sunrpc/thrsvc.c (PROCQUIT): New.
6586 (struct rpc_arg): New.
6587 (dispatch): Call exit (0) if request->rq_proc == PROCQUIT.
6588 (test_one_call): Take struct rpc_arg * instead of CLIENT *c.
6589 (thread_wrapper): Modified for struct rpc_arg * and call PROCQUIT.
6590 (main): Modified for struct rpc_arg *.
6592 2002-10-14 Ulrich Drepper <drepper@redhat.com>
6594 * dirent/scandir.c: Rearrange code a bit to reduce binary size.
6596 2002-10-14 Jakub Jelinek <jakub@redhat.com>
6598 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Include tls.h.
6599 (SYSCALL_ERROR_HANDLER): Use RTLD_PRIVATE_ERRNO sequence
6600 in ld.so even if __thread is supported.
6602 2002-10-13 Jakub Jelinek <jakub@redhat.com>
6604 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
6605 Add hack to prevent the compiler from clobbering the signal context.
6606 * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
6608 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter):
6611 2002-10-14 Andreas Jaeger <aj@suse.de>
6613 * sysdeps/mips/fpu/libm-test-ulps: Regenerated by
6614 Guido Guenther <agx@sigxcpu.org>.
6616 2002-10-14 Ulrich Drepper <drepper@redhat.com>
6618 * po/sk.po: Update from translation team.
6620 2002-09-26 Roland McGrath <roland@redhat.com>
6622 * elf/dl-load.c (_dl_dst_count, _dl_dst_substitute): Handle $LIB
6624 * elf/Makefile ($(objpfx)trusted-dirs.st): Make the output define
6625 DL_DST_LIB based on $(slibdir).
6627 2002-10-13 Roland McGrath <roland@frob.com>
6629 * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command.
6631 * sysdeps/mach/hurd/getresuid.c: New file.
6632 * sysdeps/mach/hurd/getresgid.c: New file.
6633 * sysdeps/mach/hurd/setresuid.c: New file.
6634 * sysdeps/mach/hurd/setresgid.c: New file.
6636 * posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
6637 setresgid): Declare them.
6640 (__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
6641 add libc_hidden_proto.
6642 * posix/Versions (libc: GLIBC_2.3.2): New set. Add
6643 getresuid, getresgid, setresuid, setresgid here.
6644 * Versions.def (libc): Define GLIBC_2.3.2 set.
6645 * sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
6646 Add libc_hidden_def.
6647 * sysdeps/generic/getresgid.c (__getresgid): Likewise.
6648 * sysdeps/generic/setresgid.c: New file.
6649 * sysdeps/generic/setresuid.c: New file.
6650 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6651 (sysdep_routines): Don't add getresuid and getresgid here.
6652 * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
6653 (sysdep_routines): Don't add setresuid and setresgid here.
6654 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
6655 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
6656 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
6657 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
6658 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
6659 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
6660 * posix/Makefile (routines): Add them all here instead.
6661 * sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
6662 __getresuid. Add libc_hidden_def for that, and weak alias to old name.
6663 * sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
6664 __getresgid. Add libc_hidden_def for that, and weak alias to old name.
6665 * sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
6666 [! __NR_setresuid]: Include generic file.
6667 * sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
6668 __setresgid. Add libc_hidden_def for that, and weak alias to old name.
6669 [! __NR_setresuid]: Include generic file.
6670 * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
6671 Caller is - now, not EXTRA.
6672 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
6673 (setresuid, setresgid, getresuid, getresgid): Likewise.
6674 * sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
6675 Add these calls here.
6676 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
6677 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6678 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6679 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6680 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6681 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
6682 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
6683 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
6684 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6686 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6687 (sysdep_routines): Add setfsuid and setfsgid here.
6688 * sysdeps/unix/sysv/linux/arm/Makefile: Not here.
6689 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
6690 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
6691 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
6692 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
6693 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
6694 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
6695 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
6697 * hurd/errno.c: Renamed to ...
6698 * hurd/errno-loc.c: ... this.
6699 * hurd/Makefile (routines): errno -> errno-loc
6701 2002-10-13 Ulrich Drepper <drepper@redhat.com>
6703 * po/de.po: Update from translation team.
6705 * MakeTAGS: Add -E flag to xgettext runs.
6707 2002-10-12 Ulrich Drepper <drepper@redhat.com>
6709 * po/fr.po: Update from translation team.
6711 * sysdeps/posix/system.c: Remove support for old and buggy SCO systems.
6712 Optimize a bit for use in glibc.
6714 2002-10-12 Roland McGrath <roland@redhat.com>
6716 * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds.
6717 Some machines are slow. Guido Guenther <agx@sigxcpu.org> has one.
6719 2002-10-12 Ulrich Drepper <drepper@redhat.com>
6721 * po/sv.po: Update from translation team.
6723 2002-10-11 Isamu Hasegawa <isamu@yamato.ibm.com>
6725 * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling
6727 (regfree): Likewise.
6728 (create_initial_state): Likewise.
6729 (analyze): Remove the substitutions which became useless.
6730 (calc_first): Likewise.
6731 (calc_epsdest): Use edests of OP_BACK_REF in case that it has
6732 epsilon destination.
6733 (duplicate_node_closure): New function.
6734 (duplicate_node): Remove the handling OP_CONTEXT_NODE.
6735 (calc_inveclosure): Likewise.
6736 (calc_eclosure): Likewise.
6737 (calc_eclosure_iter): Invoke duplicate_node_closure instead of
6738 direct invocation of duplicate_node.
6739 (parse): Don't use comma operator in the return to avoid compiler
6741 (parse_reg_exp): Likewise.
6742 (parse_branch): Likewise.
6743 (parse_expression): Likewise.
6744 (parse_sub_exp): Likewise.
6745 (parse_dup_op): Likewise.
6746 * posix/regex_internal.c (re_dfa_add_node): Remove the substitutions
6747 which became useless.
6748 (create_ci_newstate): Remove the handling OP_CONTEXT_NODE.
6749 (create_cd_newstate): Likewise.
6750 * posix/regex_internal.h (re_token_type_t): Remove the obsolete type.
6751 (re_token_t): Likewise.
6752 (re_dfa_t): Likewise.
6753 (re_node_set_remove): New macro.
6754 * posix/regexec.c (check_matching): Remove the handling
6756 (check_halt_node_context): Likewise.
6757 (proceed_next_node): Likewise.
6758 (pop_fail_stack): Fix the memory leak.
6759 (set_regs): Likewise.
6760 (free_fail_stack_return): New function.
6761 (sift_states_backward): Fix the memory leak. Remove the handling
6763 (update_cur_sifted_state): Append some if clause to avoid redundant
6765 (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a
6767 (check_dst_limits): Remove the handling OP_CONTEXT_NODE.
6768 (check_subexp_limits): Likewise.
6769 (search_subexp): Likewise.
6770 (sift_states_bkref): Likewise.
6771 (transit_state_mb): Likewise.
6772 (transit_state_bkref_loop): Likewise.
6773 (transit_state_bkref_loop): Likewise.
6774 (group_nodes_into_DFAstates): Likewise.
6775 (check_node_accept): Likewise.
6776 (sift_ctx_init): Add initializing.
6778 2002-10-12 Ulrich Drepper <drepper@redhat.com>
6780 * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use
6783 2002-10-11 Ulrich Drepper <drepper@redhat.com>
6785 * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
6786 duplicated variable c.
6788 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
6791 * sysdeps/unix/sysv/linux/i386/sysdep.h
6792 (INTERNAL_SYSCALL_ERROR_P): New define.
6793 (INTERNAL_SYSCALL_ERRNO): Likewise.
6795 * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
6796 Add hack to prevent the compiler from clobbering the signal context.
6798 2002-10-11 Roland McGrath <roland@redhat.com>
6800 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
6803 * sysdeps/generic/dl-lookupcfg.h: Include <tls.h>.
6804 * sysdeps/sh/dl-lookupcfg.h: File removed.
6805 * sysdeps/i386/dl-lookupcfg.h: File removed.
6807 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
6808 missing labels and ; from last change.
6810 * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
6811 number literals, so they are doubles instead of ints.
6813 2002-10-09 Roland McGrath <roland@redhat.com>
6815 * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
6816 changed from [USE_TLS && HAVE___THREAD].
6818 * sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
6819 Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
6820 * sysdeps/x86_64/dl-machine.h
6821 (elf_machine_type_class, elf_machine_rela): Likewise.
6822 * sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
6825 * include/link.h (struct link_map): Remove member l_tls_tp_initialized.
6826 * elf/rtld.c (_dl_start_final, dl_main): Don't use it.
6827 (_dl_start): Conditionalize PT_TLS check on [USE___THREAD].
6829 * sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
6830 instead of ___tls_get_addr.
6831 (___tls_get_addr_internal): Add attribute_hidden to decl.
6833 * sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
6834 _dl_error_catch_tsd.
6835 * elf/rtld.c (startup_error_tsd): New function.
6836 (dl_main): Point _dl_error_catch_tsd at that.
6837 * elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
6838 use new function pointer instead.
6839 * elf/dl-tsd.c: New file.
6840 * elf/Makefile (routines): Add it.
6842 2002-10-07 Roland McGrath <roland@redhat.com>
6844 * elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
6845 writev if it's available. Otherwise if [RTLD_PRIVATE_ERRNO] then
6846 take _dl_load_lock around calling __writev.
6848 * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
6849 (INLINE_SYSCALL): Use that.
6851 * sysdeps/generic/dl-sysdep.h: New file.
6852 * sysdeps/mach/hurd/dl-sysdep.h: New file.
6853 * sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
6854 * include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
6855 [RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
6857 * elf/dl-minimal.c (__errno_location): Removed.
6858 * sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
6859 Use GOTOFF access for errno.
6860 * sysdeps/unix/sysv/linux/i386/sysdep.h
6861 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
6863 * sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
6864 Use PC-relative access for errno.
6865 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
6866 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
6868 * include/tls.h: New file.
6869 (USE___THREAD): New macro.
6870 Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
6872 * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
6873 changed from [USE_TLS && HAVE___THREAD].
6874 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
6875 * sysdeps/unix/i386/sysdep.S: Likewise.
6876 * sysdeps/unix/x86_64/sysdep.S: Likewise.
6877 * include/errno.h: Likewise.
6878 * include/netdb.h: Likewise.
6879 * include/resolv.h: Likewise.
6881 * sysdeps/generic/errno.c: New file.
6882 * csu/Makefile (aux): New variable, list errno.
6883 * sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
6884 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
6885 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
6886 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
6887 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
6888 * sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
6889 * sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
6890 * sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
6891 * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
6892 * sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
6893 * sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
6894 * sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
6895 * sysdeps/unix/alpha/sysdep.S: Likewise.
6896 * sysdeps/generic/start.c: Likewise.
6897 * sysdeps/unix/start.c: Likewise.
6898 * sysdeps/unix/arm/start.c: Likewise.
6899 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
6900 * sysdeps/unix/sparc/start.c: Likewise.
6901 * sysdeps/unix/sysv/irix4/start.c: Likewise.
6902 * sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.
6904 * manual/search.texi (Tree Search Function, Hash Search Function):
6905 Mention search.h clearly.
6907 2002-10-05 Roland McGrath <roland@redhat.com>
6909 * elf/dl-fxstat64.c: File removed.
6910 * elf/dl-xstat64.c: File removed.
6911 * elf/Makefile (rtld-routines): Remove them.
6912 * sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
6913 Instead, use strong_alias instead of versioned_symbol in the
6915 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
6916 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
6918 * include/shlib-compat.h
6919 (SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
6920 [! NOT_IN_libc] (IS_IN_libc): Define it.
6921 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
6922 * elf/Makefile (CPPFLAGS-.os): Likewise.
6924 * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
6925 Return the status instead of calling exit.
6927 * Makeconfig (CFLAGS): Prepend -std=gnu99.
6928 * Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
6929 Remove superfluous rm command, whose @ plus make bugs hid
6930 all these commands from the make output.
6932 * include/stubs-prologue.h: New file. Give #error under #ifdef _LIBC.
6933 * Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
6934 Use that file's contents instead of literal echo's for the prologue.
6935 * include/features.h: Include <gnu/stubs.h> unconditionally.
6936 * include/gnu/stubs.h: New file.
6938 2002-09-30 Roland McGrath <roland@redhat.com>
6940 * elf/rtld-Rules: New file.
6941 * elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
6942 $(objpfx)rtld-libc.a): New targets.
6943 (generated): Add them.
6944 (reloc-link): Remove -o $@ from the variable.
6945 ($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
6946 (distribute): Add rtld-Rules.
6947 (CPPFLAGS-.os): Define this instead of CFLAGS-.os.
6948 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
6949 (common-mostlyclean, common-clean): Clean up rtld-* files.
6950 * sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.
6952 2002-10-11 Roland McGrath <roland@redhat.com>
6954 * sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in
6955 now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED.
6957 * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
6958 proper set of no-op insn prefixes.
6960 * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members.
6962 2002-10-11 Ulrich Drepper <drepper@redhat.com>
6964 * sysdeps/unix/sysv/linux/execve.c: Don't try calling
6965 __pthread_kill_other_threads_np.
6967 * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls.
6969 2002-10-08 Roland McGrath <roland@redhat.com>
6971 * locale/newlocale.c (__newlocale): If setting all categories to "C",
6972 just return &_nl_C_locobj instead of copying it.
6973 * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj.
6974 * locale/duplocale.c (__duplocale): Likewise.
6976 2002-10-07 Roland McGrath <roland@frob.com>
6978 * config.h.in (HAVE_I386_SET_GDT): New #undef.
6979 * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt.
6980 * sysdeps/mach/configure: Regenerated.
6982 2002-10-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6984 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
6985 Add all necessary register outputs for syscall-clobbered registers.
6987 2002-10-02 David Mosberger <davidm@hpl.hp.com>
6989 * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for
6990 Itanium 2 (and Itanium).
6991 Fix unwind directives and make it fit in 80 columns.
6992 * sysdeps/ia64/memset.S: Likewise.
6993 * sysdeps/ia64/memcpy.S: Likewise.
6994 Move jump table to .rodata section.
6996 2002-10-03 Roland McGrath <roland@frob.com>
6998 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add
7001 2002-10-10 Andreas Jaeger <aj@suse.de>
7003 * sysdeps/x86_64/_mcount.S: Restore correct registers.
7005 2002-10-10 Ulrich Drepper <drepper@redhat.com>
7007 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect.
7009 2002-10-09 Ulrich Drepper <drepper@redhat.com>
7011 * sysdeps/generic/ldsodefs.h: Remove attribute_hidden from
7012 _dl_allocate_tls_init. Add rtld_hidden_proto.
7013 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add
7015 * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init.
7017 * version.h (VERSION): Bump to 2.3.1.
7019 * Make-dist: Add back one of the tar invocations removed before.
7021 * stdlib/Makefile (distribute): Add allocalim.h.
7023 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
7024 (__libc_tsd_address): Use correct variable name.
7025 Patch by Stefan Jones <stefan.jones@multigig.com>.
7027 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;.
7028 Reported by edwardsg@sgi.com [PR libc/4678].
7030 * Versions.def (libc): Add GLIBC_2.3.1.
7031 (libpthread): Add GLIBC_2.3.1.
7033 * include/signal.h: Add libc_hidden_proto for __sigwait, __sigwaitinfo,
7035 * signal/Versions: Add __sigtimedwait, __sigwait, and __sigwaitinfo.
7036 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Add
7038 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
7039 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
7041 * include/sys/msg.h: Declare __libc_msgrcv and __libc_msgsnd.
7042 * sysdeps/unix/sysv/linux/msgrcv.c (__msgrcv): Rename to __libc_msgrcv
7043 and make old name an alias.
7044 * sysdeps/unix/sysv/linux/msgsnd.c (__msgsnd): Rename to __libc_msgsnd
7045 and make old name an alias.
7046 * sysvipc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_msgrcv and
7049 * include/sys/uio.h: Declare __libc_readv and __libc_writev.
7050 * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and
7052 * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make
7054 * sysdeps/posix/readv.c: Likewise
7055 * sysdeps/unix/sysv/aix/readv.c: Likewise.
7056 * sysdeps/unix/sysv/linux/readv.c: Likewise.
7057 * sysdeps/generic/writev.c (__writev): Rename to __libc_writev and make
7059 * sysdeps/posix/writev.c: Likewise
7060 * sysdeps/unix/sysv/aix/writev.c: Likewise.
7061 * sysdeps/unix/sysv/linux/writev.c: Likewise.
7063 * include/sys/wait.h: Declare __waitid.
7064 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __waitid.
7065 * sysdeps/generic/waitid.c (waitid): Rename to __waitid and make old
7067 * sysdeps/posix/waitid.c: Likewise.
7068 * sysdeps/unix/sysv/aix/waitid.c: Likewise.
7070 * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall.
7072 2002-10-07 Jakub Jelinek <jakub@redhat.com>
7074 * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New
7076 (__MAX_ALLOCA_CUTOFF): Define.
7077 Include allocalim.h.
7078 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
7079 _nss_dns_gethostbyaddr_r): Use alloca or malloc to allocate
7080 host_buffer depending on __libc_use_alloca.
7081 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
7082 _nss_dns_getnetbyaddr_r): Use alloca or malloc to allocate
7083 net_buffer depending on __libc_use_alloca.
7084 * resolv/res_query.c (res_nquery): Use alloca or malloc to allocate
7085 buf depending on __libc_use_alloca.
7086 * resolv/gethnamaddr.c (gethostbyname2, gethostbyaddr): Likewise.
7087 * stdio-common/vfprintf.c (vfprintf): Use __libc_use_alloca
7088 instead of hardcoded constants.
7089 Pass proper size argument to alloca and compute end for wide char
7091 * stdio-common/printf_fp.c (__printf_fp): Use __libc_use_alloca
7092 instead of hardcoded constants.
7093 * string/strcoll.c (strcoll): Likewise.
7094 * string/strxfrm.c (strxfrm): Likewise.
7095 * sysdeps/posix/readv.c (__readv): Likewise.
7096 * sysdeps/posix/writev.c (__writev): Likewise.
7097 * sysdeps/generic/allocalim.h: New file.
7099 2002-10-08 Roland McGrath <roland@redhat.com>
7101 * configure.in (aux_missing warning): Change "too old" to
7102 "incompatible versions", since for autoconf it's "too new" right now.
7103 * configure: Regenerated.
7105 * configure.in (AUTOCONF): New check to set it. Set to "no" if the
7106 one found doesn't work on our configure.in.
7107 * configure: Regenerated.
7108 * config.make.in (AUTOCONF): New substituted variable.
7109 * Makefile (autoconf-it-cvs): New canned sequence, broken out of ...
7110 (autoconf-it): ... here, use that instead of defining conditionally.
7111 Use $(AUTOCONF) instead of literal autoconf.
7112 [$(AUTOCONF) != no] (configure, %/configure): Protect these rules
7113 with this condition.
7114 * Make-dist (autoconf-it, configure, %/configure): Copy those changes.
7116 2002-10-08 Ulrich Drepper <drepper@redhat.com>
7118 * Make-dist (dist): Cleanup a bit. We are not interested in the
7119 14 char filename limit anymore. Remove intermediate files and
7122 2002-10-05 Ulrich Drepper <drepper@redhat.com>
7124 * po/sk.po: Update from translation team.
7125 * po/tr.po: Likewise.
7126 * po/gl.po: Likewise.
7128 2002-10-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7130 * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax.
7132 2002-10-03 Ulrich Drepper <drepper@redhat.com>
7134 * version.h (RELEASE): Change to stable.
7136 2002-10-03 Jakub Jelinek <jakub@redhat.com>
7138 * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit,
7139 __syscall_exit_group): New prototypes.
7141 2002-10-03 Ulrich Drepper <drepper@redhat.com>
7143 * glibc 2.3 released.
7146 See ChangeLog.13 for earlier changes.