]> sourceware.org Git - glibc.git/blob - ChangeLog
780dd9f3fcea81649280a933a65b9dec925c1fb6
[glibc.git] / ChangeLog
1 2003-04-17 Ulrich Drepper <drepper@redhat.com>
2
3 * signal/sigrelse.c (sigrelse): Use sigdelset and not __sigdelset.
4 The signal number must be checked.
5 * signal/sighold.c (sighold): Use sigaddset and not __sigaddset.
6 The signal number must be checked [PR libc/5004].
7
8 * sysdeps/unix/sysv/linux/system.c: If compiled without threads
9 don't do anything fancy.
10
11 * sysdeps/generic/bits/libc-lock.h: Define
12 __rtld_lock_define_initialized_recursive.
13
14 * nss/getXXbyYY_r.c [USE_NSCD] (REENTRANT_NAME): Only retry
15 contacting nscd if NOT_USENSCD_NAME > 0.
16 * nss/nsswitch.c (__nss_disable_nscd): New function.
17 * nss/nsswitch.h: Declare it.
18 * nss/Versions [GLIBC_PRIVATE]: Export __nss_disable_nscd.
19 * nscd/nscd.c (main): Call __nss_disable_nscd.
20
21 2003-04-16 Ulrich Drepper <drepper@redhat.com>
22
23 * stdio-common/perror.c (perror): We don't need to set the offset
24 to _IO_pos_bad, this is how streams are initialized.
25
26 * locale/programs/ld-time.c (TESTARR_ELEM): Make i unsigned.
27 (time_output): If necessary, allocate new buffer for .name string if
28 padding is required.
29
30 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Check lengths
31 before copying. This might leave holes in the list. Adjust
32 pointers if necessary.
33 (netlink_receive): Allocate only one block.
34 (free_netlink_handle): Adjust appropriately.
35 (getifaddrs): Lots of cleanups.
36
37 * string/test-strncpy.c (do_one_test): Mark start and stop as
38 possibly unused.
39 * string/test-memchr.c: Likewise.
40 * string/test-memcmp.c: Likewise.
41 * string/test-memcpy.c: Likewise.
42 * string/test-memmove.c: Likewise.
43 * string/test-memset.c: Likewise.
44 * string/test-strcat.c: Likewise.
45 * string/test-strchr.c: Likewise.
46 * string/test-strcmp.c: Likewise.
47 * string/test-strcpy.c: Likewise.
48 * string/test-strlen.c: Likewise.
49 * string/test-strncmp.c: Likewise.
50 * string/test-strpbrk.c: Likewise.
51 * string/test-strrchr.c: Likewise.
52 * string/test-strspn.c: Likewise.
53
54 2003-04-15 Roland McGrath <roland@redhat.com>
55
56 * libio/fileops.c (_IO_file_close_it): Macro tweak to avoid warning.
57
58 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO]: Add decl for
59 INTUSE(__register_frame_info_bases).
60
61 2003-04-15 Ulrich Drepper <drepper@redhat.com>
62
63 * elf/elf.h: Define AT_SYSINFO_EH_FRAME.
64 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle
65 AT_SYSINFO_EH_FRAME. Adjust string width.
66 (_dl_show_auxv):Display AT_SYSINFO_EH_FRAME value.
67 * sysdeps/generic/ldsodefs.h [NEED_DL_SYSINFO] (struct rtld_global):
68 Add _dl_sysinfo_eh_frame field.
69 * elf/dl-support.c [NEED_DL_SYSINFO]: Define _dl_sysinfo_eh_frame.
70 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO] Define eh_obj
71 variable.
72 [NEED_DL_SYSINFO] (LIBC_START_MAIN): Call __register_frame_info_bases
73 if _dl_sysinfo_eh_frame is non-NULL.
74
75 * Makeconfig (gnulib): Add -lgcc_eh.
76
77 * config.h.in: Define HAVE_FORCED_UNWIND.
78
79 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
80
81 * sysdeps/powerpc/powerpc64/strcmp.S: Convert to full 64-bit.
82 * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
83
84 2003-04-15 Jakub Jelinek <jakub@redhat.com>
85
86 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Avoid
87 checking R_PPC_RELATIVE, R_PPC_NONE and whether relocation is
88 against local symbol in conflict processing.
89
90 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
91
92 * sysdeps/powerpc/bits/atomic.h
93 [__powerpc64] (__arch_compare_and_exchange_val_64_acq): Define.
94 [! __powerpc64] (__arch_compare_and_exchange_val_64_acq): Defined
95 as abort stub.
96 (__arch_compare_and_exchange_val_32_acq): Define.
97 (atomic_compare_and_exchange_val_acq): Define.
98
99 2003-04-15 Ulrich Drepper <drepper@redhat.com>
100
101 * include/atomic.h: Pretty printing.
102
103 2003-04-14 Ulrich Drepper <drepper@redhat.com>
104
105 * stdio-common/vfscanf.c: Add casts to avoid warnings.
106
107 2003-04-14 Jakub Jelinek <jakub@redhat.com>
108
109 * sysdeps/i386/i486/bits/atomic.h: Rename LOCK to LOCK_PREFIX.
110 * sysdeps/x86_64/bits/atomic.h: Likewise.
111
112 2003-04-14 Ulrich Drepper <drepper@redhat.com>
113
114 * sysdeps/unix/sysv/linux/i386/sysdep.h: Change PUSHARGS_1 and
115 POPARGS_1 to emit labels for the mov instructions.
116
117 2003-04-14 Jakub Jelinek <jakub@redhat.com>
118
119 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (ret_NOERRNO): Define.
120
121 2003-04-14 Roland McGrath <roland@redhat.com>
122
123 * sysdeps/generic/unwind-dw2.c (_Unwind_GetCFA): Add a cast to silence
124 compiler warning.
125
126 * sysdeps/generic/unwind-pe.h: Fix decl hacks broken in merge.
127
128 2003-04-14 Ulrich Drepper <drepper@redhat.com>
129
130 * string/strxfrm.c (STRXFRM): Terminate rulearr at correct
131 position. Reported by jreiser@BitWagon.com.
132
133 2003-04-13 Ulrich Drepper <drepper@redhat.com>
134
135 * sysdeps/generic/unwind-dw2-fde.c: Update from recent gcc version.
136 * sysdeps/generic/unwind-dw2-fde.h: Likewise.
137 * sysdeps/generic/unwind-dw2.c: Likewise.
138 * sysdeps/generic/unwind-pe.h: Likewise.
139
140 2003-04-13 Alexandre Oliva <aoliva@redhat.com>
141
142 * sysdeps/unix/sysv/linux/mips/profil-counter: New.
143 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Port to n32/n64.
144 * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: New.
145 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Port to n32/n64.
146 (mcontext_t): Make it match the 32-bit mips kernel in o32.
147 * sysdeps/unix/sysv/linux/mips/sys/user.h: Bring in constants from
148 the mips and mips64 headers.
149 (struct user): Port to n32/n64.
150
151 2003-04-12 Ulrich Drepper <drepper@redhat.com>
152
153 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add cast to
154 avoid warning.
155
156 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): If
157 __ASSUME_VSYSCALL is defined don't add restorer.
158 * sysdeps/unix/sysv/linux/kernel-features.h: Define
159 __ASSUME_VSYSCALL for 2.5.53.
160
161 2003-04-11 Ulrich Drepper <drepper@redhat.com>
162
163 * sysdeps/generic/libc-start.c: Cleanup MAIN_AUXVEC_ARG handling.
164 Remove HAVE_CANCELBUF code. Replace with code using the new
165 initializers for unwind-based cleanup handling.
166 * sysdeps/generic/unwind.h: Update from latest gcc version.
167 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define labels in a few
168 places to allow unwind data generation.
169 * sysdeps/i386/bits/setjmp.h: Allow file to be included multiple times.
170 * sysdeps/x86_64/bits/setjmp.h: Likewise.
171 * sysdeps/sh/bits/setjmp.h: Likewise.
172 * sysdeps/powerpc/bits/setjmp.h: Likewise.
173 * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: Likewise.
174 * sysdeps/alpha/bits/setjmp.h: Likewise.
175
176 2003-04-11 Roland McGrath <roland@redhat.com>
177
178 * csu/tst-empty.c: New file.
179 * csu/Makefile (tests, tests-static): Add it.
180
181 2003-04-11 Jakub Jelinek <jakub@redhat.com>
182
183 * string/test-strcmp.c (do_random_tests): Test whether return value
184 has been promoted to wordsize if the ABI requires caller to do so.
185 * string/test-strncmp.c (do_random_tests): Likewise.
186 * string/test-memcmp.c (do_random_tests): Likewise.
187
188 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Sign extend rRTN
189 before returning.
190
191 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
192 (__fe_nomask_env): Try prctl even if __ASSUME_NEW_PRCTL_SYSCALL
193 is not defined, but the prctl constants are.
194
195 * string/tester.c (test_strcmp): Fix a typo.
196
197 2003-04-09 Ulrich Drepper <drepper@redhat.com>
198
199 * sysdeps/alpha/fpu/bits/mathdef.h: Remove FLT_EVAL_METHOD definition.
200 * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
201
202 2003-04-08 Alexandre Oliva <aoliva@redhat.com>
203
204 * sysdeps/mips/sys/regdef.h (t4,t5,t6,t7): Renamed to t0..t3 on
205 NewABI.
206 (ta0, ta1, ta2, ta3): Defined to t4..t7 on o32, and a4..a7 on
207 NewABI.
208 * sysdeps/mips/mips64/memcpy.S: Adjust register naming
209 conventions.
210 * sysdeps/mips/mips64/memset.S: Likewise.
211 * sysdeps/unix/mips/sysdep.S (__syscall_error) [_LIBC_REENTRANT]:
212 Use t0 instead of t4 as temporary.
213
214 2003-04-07 Ulrich Drepper <drepper@redhat.com>
215
216 * elf/ldconfig.c (parse_conf): Ignore leading whitespace. Use
217 feof_unlocked instead of feof.
218 (add_dir): Ignore trailing whitespace.
219
220 2003-04-07 Jakub Jelinek <jakub@redhat.com>
221
222 * posix/bug-regex4.c (main): Cap RANGE and STOP arguments to
223 sum of SIZE1 and SIZE2 arguments.
224
225 2003-04-06 Ulrich Drepper <drepper@redhat.com>
226
227 * iconv/iconv_prog.c (process_block): Don't print message about
228 invalid input if the -c option is used.
229 (main): Correctly append IGNORE string for -c option.
230
231 2002-04-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
232
233 * sysdeps/sh/bits/atomic.h: Moved to ...
234 * sysdeps/unix/sysv/linux/sh/bits/atomic.h: ... here. Add comments.
235 (__arch_compare_and_exchange_val_*_acq): Add parens around macro
236 arguments.
237 (atomic_bit_set, atomic_bit_test_set): Likewise.
238 (atomic_exchange_and_add): Likewise. Don't evaluate VALUE argument
239 twice.
240 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
241
242 2003-04-06 Roland McGrath <roland@redhat.com>
243
244 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Rewrite register
245 restoration as done for setcontext yesterday.
246
247 2003-04-06 Jakub Jelinek <jakub@redhat.com>
248
249 * elf/rtld.c: Revert 2003-03-14 change.
250 * elf/dl-conflict.c (_dl_resolve_conflicts): Move
251 #if ! ELF_MACHINE_NO_RELA conditional into the routine.
252
253 2003-04-05 Ulrich Drepper <drepper@redhat.com>
254
255 * sunrpc/xdr.c (xdr_string): Catch nodesize == 0 [PR libc/4999].
256
257 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
258 Always initialize *signgamp before returning an error.
259
260 2003-04-05 Roland McGrath <roland@redhat.com>
261
262 * sysdeps/unix/sysv/linux/i386/setcontext.S: Rewrite to avoid writing
263 below the stack pointer even if switching to the same context we are
264 running right now.
265
266 2003-04-05 Ulrich Drepper <drepper@redhat.com>
267
268 * catgets/gencat.c (read_input_file): Make sure that \n is not
269 alone on the line before testing for continuation.
270
271 * math/test-tgmath.c (compile_test): Initialize c.
272
273 2003-04-05 Alexandre Oliva <aoliva@redhat.com>
274
275 * sysdeps/unix/sysv/linux/mips/mips64/n32/ftruncate64.c: New.
276 * sysdeps/unix/sysv/linux/mips/mips64/n32/truncate64.c: New.
277 * sysdeps/unix/sysv/linux/kernel-features.h: fcntl64 is available
278 on mips n32.
279 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Explain why
280 XSTAT_IS_XSTAT64 must not be used for mips n64. Use 64-bit data
281 structure on n32 as well.
282 * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use POSIX-compliant
283 data types on n32 and n64.
284
285 2003-04-05 Ulrich Drepper <drepper@redhat.com>
286
287 * libio/fileops.c (_IO_new_file_fopen): Don't free step data right
288 after getting them.
289
290 * malloc/thread-m.h [PTHREAD_MUTEX_INITIALIZER]: If
291 HAVE_register_atfork_malloc is defined use __register_atfork_malloc
292 instead of __register_atfork.
293
294 2003-04-05 Jakub Jelinek <jakub@redhat.com>
295
296 * stdio-common/reg-printf.c (__register_printf_function): Calloc
297 instead of malloc __printf_arginfo_table and __printf_function_table.
298 Reported by John Reiser <jreiser@BitWagon.com>.
299
300 2003-04-04 Steven Munroe <sjmunroe@us.ibm.com>
301
302 * sysdeps/powerpc/powerpc64/strchr.S: 64-bit optimizations.
303 * sysdeps/powerpc/powerpc64/strlen.S: 64-bit optimizations.
304
305 * sysdeps/powerpc/fpu/bits/mathdef.h (FLT_EVAL_METHOD): Undef before
306 defining.
307
308 2003-04-04 Alexandre Oliva <aoliva@redhat.com>
309
310 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock): Adjust
311 for n64 abi.
312
313 2003-04-03 Roland McGrath <roland@redhat.com>
314
315 * configure.in: Fix up use of compilation flags to match the build:
316 For .s files, $ASFLAGS;
317 For .S files, $CPPFLAGS $ASFLAGS;
318 For .c files, $CFLAGS $CPPFLAGS;
319 when linking, add $LDFLAGS.
320 * configure: Regenerated.
321
322 2003-04-03 Jakub Jelinek <jakub@redhat.com>
323
324 * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Reverse test
325 for atomic_compare_and_exchange_bool_acq failure.
326
327 2003-04-03 Ulrich Drepper <drepper@redhat.com>
328
329 * posix/unistd.h: Define _POSIX_VERSION, _POSIX2_VERSION,
330 _POSIX2_C_BIND, _POSIX2_C_DEV, _POSIX2_SW_DEV, and
331 _POSXI2_LOCALEDEF to 200112L. Remove _POSIX2_C_VERSION.
332 Remove declaration of pthread_atfork.
333
334 2003-04-02 Ulrich Drepper <drepper@redhat.com>
335
336 * locale/iso-639.def: Add many more languages from the current ISO 639.
337
338 * sysdeps/unix/sysv/linux/ipc_priv.h: Define IPCOP_semtimedop.
339 * sysdeps/generic/semtimedop.c: New file.
340 * sysdeps/unix/sysv/linux/i386/semtimedop.S: New file.
341 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add semtimedop.
342 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
343 * sysvipc/Makefile (routines): Add semtimedop.
344 * sysvipc/Versions [GLIBC_2.3.3] (glibc): Add semtimedop.
345 * sysvipc/sys/sem.h: Declare semtimedop.
346
347 2003-04-02 Daniel Jacobowitz <drow@mvista.com>
348
349 * configure.in: Check for __register_frame_info in both
350 -lgcc and -lgcc_eh.
351 * configure: Regenerated.
352
353 2003-04-01 Roland McGrath <roland@redhat.com>
354
355 * scripts/abilist.awk: Allow dots in soname suffix.
356
357 * scripts/abilist.awk (emit): Fix bailout condition.
358
359 2003-04-01 Jakub Jelinek <jakub@redhat.com>
360
361 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Use the
362 IA-64 version.
363
364 * elf/tls-macros.h [__ia64__] (TLS_IE, TLS_LD, TLS_GD): Add gp
365 register as input to asm.
366
367 2003-04-01 Jakub Jelinek <jakub@redhat.com>
368
369 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (sigevent_t): Fix a typo.
370
371 2003-04-01 Andreas Jaeger <aj@suse.de>
372
373 * configure.in: Output as/ld as name if version is too old.
374
375 2003-03-31 Daniel Jacobowitz <drow@mvista.com>
376
377 * configure.in: Don't require an installed C library in the test
378 for ".set" assembler support.
379
380 2003-03-31 Roland McGrath <roland@redhat.com>
381
382 * signal/tst-sigset.c: New file.
383 * signal/Makefile (tests): Add it.
384
385 2003-03-31 Ulrich Drepper <drepper@redhat.com>
386
387 * sysdeps/unix/sysv/linux/alpha/bits/signum.h (_NSIG): Define to 65.
388 * sysdeps/unix/sysv/linux/hppa/bits/signum.h (_NSIG): Likewise.
389 * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Likewise.
390 * sysdeps/unix/sysv/linux/bits/signum.h (_NSIG): Likewise.
391 (__SIGRTMAX): Adjust accordingly.
392 * sysdeps/gnu/siglist.c: If OLD2_SIGLIST_SIZE is defined define
393 second compatibility symbol set.
394 * sysdeps/unix/sysv/linux/siglist.h (OLD2_SIGLIST_SIZE): Define.
395
396 2003-03-31 Andreas Schwab <schwab@suse.de>
397
398 * sysdeps/m68k/m68020/bits/atomic.h (atomic_increment_and_test):
399 Define.
400 (atomic_decrement_and_test): Fix test.
401
402 2003-03-31 Jakub Jelinek <jakub@redhat.com>
403
404 * sysdeps/sparc/sparc32/bits/atomic.h: New file.
405 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: New file.
406 * sysdeps/sparc/sparc64/bits/atomic.h: New file.
407 * sysdeps/sparc/sparc32/atomicity.h: Removed.
408 * sysdeps/sparc/sparc32/sparcv9/atomicity.h: Removed.
409 * sysdeps/sparc/sparc64/atomicity.h: Removed.
410
411 2003-03-30 Roland McGrath <roland@redhat.com>
412
413 * scripts/abilist.awk: Grok .opd foo plus .text .foo as "foo F" alone.
414
415 * intl/po2test.sed: Anchor substitution regexps to fix last change.
416
417 2003-03-29 Paolo Bonzini <bonzini@gnu.org>
418
419 * intl/po2test.sed: Unify the transformations for msgid and msgstr
420 and remove a useless s/// command.
421
422 2003-03-27 David Mosberger <davidm@hpl.hp.com>
423
424 * sysdeps/ia64/dl-machine.h (RTLD_START): Wrap ".save rp, r0"
425 directive into empty .prologue region to ensure that call-chain
426 is terminated even for the first instruction.
427
428 * sysdeps/ia64/elf/start.S (_start): Use ".save rp, r0" idiom
429 to terminate call-chain right from the get-go.
430
431 * sysdeps/unix/sysv/linux/ia64/fork.S (fork): Remove unnecessary
432 stop bit between compare & branch.
433
434 2003-03-29 Ulrich Drepper <drepper@redhat.com>
435
436 * stdlib/strtod.c (INTERNAL): Recognize first digit after decimal
437 point correctly [PR libc/4993].
438
439 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Avoid
440 netlink_open calls if netlink is known to not be available.
441
442 2003-03-29 Alexandre Oliva <aoliva@redhat.com>
443
444 * configure.in: Add mips64* support.
445 * sysdeps/mips/bits/endian.h: Make it bi-endian.
446 * sysdeps/mips/mipsel/bits/endian.h: Removed.
447 * sysdeps/mips/mips64/n32/el/bits/endian.h: Removed.
448 * sysdeps/mips/mips64/n64/el/bits/endian.h: Removed.
449 * sysdeps/mips/mips32/Makefile (CC): Add -mabi=32.
450 * sysdeps/mips/mips64/n32/Makefile (CC): Add -mabi=n32.
451 * sysdeps/mips/mips64/n64/Makefile (CC): Add -mabi=64.
452 * sysdeps/mips/Implies: Moved wordsize-32 to...
453 * sysdeps/mips/mips32/Implies: New file.
454 * sysdeps/unix/mips/sysdep.h (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO,
455 ret_NOERRNO): New.
456 (ret, PSEUDO_END): Moved past END.
457 (PSEUDO): Moved to...
458 * sysdeps/unix/mips/mips32/sysdep.h: New file.
459 * sysdeps/unix/mips/mips64/n32/sysdep.h: Removed #undef PSEUDO.
460 * sysdeps/unix/mips/mips64/n64/sysdep.h: Likewise.
461 * sysdeps/unix/sysv/linux/mips/sysdep.h: Move to...
462 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: New file.
463 * sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: New file.
464
465 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start):
466 Re-introduce ENTRY.
467
468 2003-03-28 Thorsten Kukuk <kukuk@suse.de>
469
470 * sysdeps/unix/sysv/linux/ifaddrs.c: New file.
471 * inet/test-ifaddrs.c: Allow AF_PACKET.
472 * sysdeps/unix/sysv/linux/kernel-features.h: Add
473 __ASSUME_NETLINK_SUPPORT.
474
475 2003-03-28 Ulrich Drepper <drepper@redhat.com>
476
477 * elf/vismain.c (do_test): Comment out tests which fail in the moment.
478
479 2003-03-26 H.J. Lu <hjl@gnu.org>
480
481 * elf/vismod.h (getvarlocal1): Return const char **.
482 (getvarinmod1): Likewise.
483 (getvaritcpt1): Likewise.
484 (getvarlocal2): Likewise.
485 (getvarinmod2): Likewise.
486 (getvaritcpt2): Likewise.
487 (getvaritcpt3): Likewise.
488 * elf/vismain.c (do_test): Adjusted.
489 * elf/vismod1.c (getvarlocal1): Return address.
490 (getvarinmod1): Likewise.
491 (getvaritcpt1): Likewise.
492 * elf/vismod2.c (getvarlocal2): Likewise.
493 (getvarinmod2): Likewise.
494 (getvaritcpt2): Likewise.
495 * elf/vismod3.c (getvaritcpt3): Likewise.
496
497 2003-03-28 Roland McGrath <roland@redhat.com>
498
499 * elf/vismain.c (do_test): Print both addresses when they don't match.
500
501 * scripts/abilist.awk: If given -v filename_regexp and/or -v
502 libname_regexp when parsing names, then produce output only
503 for those matching the given regexps. In combine mode, save all
504 stanzas for a final sorting by stanza header at the end.
505 Emit a blank line between stanzas.
506
507 * scripts/abilist.awk: When given -v combine=1, do parse_names and
508 emit a single output stream with lib name in stanza header lines.
509
510 * scripts/abilist.awk: Emit A for all *ABS* regardless of type.
511
512 2003-03-27 Roland McGrath <roland@redhat.com>
513
514 * sysdeps/powerpc/bits/atomic.h [! __powerpc64__]
515 (__arch_atomic_decrement_if_positive_64): Fix bogus definition.
516
517 2003-03-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
518
519 * sysdeps/sh/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
520 Return old value. Make asm output reg constraint earlyclobber.
521 Renamed from...
522 (__arch_compare_and_exchange_8_acq): ... this.
523 (__arch_compare_and_exchange_val_16_acq):
524 Return old value. Make asm output reg constraint earlyclobber.
525 Renamed from...
526 (__arch_compare_and_exchange_16_acq): ... this.
527 (__arch_compare_and_exchange_val_32_acq):
528 Return old value. Make asm output reg constraint earlyclobber.
529 Renamed from...
530 (__arch_compare_and_exchange_32_acq): ... this.
531 (__arch_compare_and_exchange_val_64_acq):
532 Renamed from...
533 (__arch_compare_and_exchange_64_acq): ... this.
534 (atomic_exchange_and_add): Use local variables and
535 __arch_compare_and_exchange_val_64_acq.
536 (atomic_add): Likewise.
537 (atomic_add_negative, atomic_add_zero): Use local variables.
538
539 2003-03-28 Alexandre Oliva <aoliva@redhat.com>
540
541 * sysdeps/unix/mips/sysdep.S: Include sys/asm.h.
542
543 2003-03-27 Ulrich Drepper <drepper@redhat.com>
544
545 * Makefile: Remove libmd5crypt goal.
546
547 2003-03-25 Jakub Jelinek <jakub@redhat.com>
548
549 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Restore
550 special handling of relocations against local symbols.
551
552 2003-03-27 Steven Munroe <sjmunroe@us.ibm.com>
553
554 * sysdeps/powerpc/bits/atomic.h
555 (__arch_compare_and_exchange_bool_32_acq): Move to [!__powerpc64__].
556 [__powerpc64__] (__arch_compare_and_exchange_bool_32_acq):
557 Define PPC64 specific version.
558 [__powerpc64__] (__arch_compare_and_exchange_bool_64_acq):
559 Change (mem) constraint to "b".
560 [__powerpc64__] (__arch_atomic_exchange_and add_64):
561 Replace addi with add. Change (value) contraint to "r".
562 Change (mem) constraint to "b".
563 [__powerpc64__] (__arch_atomic_decrement_if_positive_64): New macro.
564 (__arch_atomic_exchange_32): Change (mem) constraint to "b".
565 (__arch_atomic_exchange_and_add_32): Change (mem) constraint to "b".
566 (__arch_atomic_decrement_if_positive_32): New macro.
567 (atomic_decrement_if_positive): Use __arch* macros.
568
569 2003-03-27 Jakub Jelinek <jakub@redhat.com>
570
571 * sysdeps/ia64/fpu/libm-test-ulps: Update.
572
573 2003-03-27 Roland McGrath <roland@redhat.com>
574
575 * scripts/rpm2dynsym.sh: New file.
576 * Makefile (distribute): Add it.
577
578 2003-03-27 David Mosberger <davidm@hpl.hp.com>
579
580 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Restore caller's
581 ar.unat before returning. Add missing .mem.offset directives
582 to ensure file gets assembled without warnings.
583 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
584
585 2003-03-27 Jakub Jelinek <jakub@redhat.com>
586
587 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf) <_SC_MONOTONIC_CLOCK>:
588 Return -1 instead of 0 if clock_getres failed.
589
590 2003-03-27 Roland McGrath <roland@redhat.com>
591
592 * scripts/abilist.awk: If variable `parse_names' is set, grok the file
593 header lines and write out foo.symlist files for each foo.so.NN listed.
594
595 * libio/libioP.h (_IO_wfile_jumps): Remove attribute_hidden.
596 This symbol is exported, and we don't want to hide it.
597 Add libc_hidden_proto instead.
598 (_IO_file_jumps): Add libc_hidden_proto.
599 * libio/wfileops.c (_IO_wfile_jumps): Add libc_hidden_data_def.
600 Remove INTVARDEF.
601 * libio/fileops.c (_IO_file_jumps): Likewise.
602 * libio/stdfiles.c: Don't use INTUSE on them.
603 * libio/iofdopen.c (_IO_new_fdopen): Likewise.
604 * libio/iofopen.c (__fopen_internal): Likewise.
605 * libio/freopen.c (freopen): Likewise.
606 * libio/freopen64.c (freopen64): Likewise.
607 * libio/iovdprintf.c (_IO_vdprintf): Likewise.
608
609 * Makerules (check-abi) [$(enable-check-abi) = warn]:
610 Ignore exit status from diff.
611 * configure.in (enable_check_abi): Document possible value "warn".
612 Change default to no for now.
613 * configure: Regenerated.
614
615 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Emit stub_warning
616 macro calls and a #include <stub-tag.h> at the end.
617 * Makerules ($(objpfx)stubs): Tweak sed commands.
618
619 * sysdeps/unix/sysv/linux/syscalls.list: Use - rather than EXTRA in
620 caller column for *xattr syscalls, since they are in sysdeps/generic.
621
622 * sysdeps/unix/sysv/linux/i386/setfsuid.c: setfsgid -> setfsuid
623 * sysdeps/unix/sysv/linux/i386/setfsgid.c: setfsuid -> setfsgid
624
625 2003-03-26 Roland McGrath <roland@redhat.com>
626
627 * Makerules (check-abi-config): Use /thread instead of /tls when
628 use-thread and not just use-tls is set.
629
630 * Makerules (update-abi): Put quotes around $(update-abi-config).
631
632 * elf/Makefile (check-abi): Depend on check-abi-ld.
633 (update-abi): Depend on update-abi-ld.
634
635 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
636
637 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Use INTERNAL_SYSCALL and
638 do not check for errors (unless testing for 32bit variant).
639 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
640
641 2003-03-27 Philip Blundell <philb@gnu.org>
642
643 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET_NOERRNO): Use
644 unconditional mov. Remove nop.
645
646 * sysdeps/unix/sysv/linux/kernel-features.h
647 (__ASSUME_VFORK_SYSCALL): Define for kernel 2.4 on arm.
648 * sysdeps/unix/sysv/linux/arm/vfork.S: Elide compatibility code
649 when __ASSUME_VFORK_SYSCALL is defined.
650 * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise for
651 __ASSUME_MMAP2_SYSCALL.
652 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise for
653 __ASSUME_REALTIME_SIGNALS.
654
655 2003-03-26 Ulrich Drepper <drepper@redhat.com>
656
657 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_COPY): Define to 2
658 only if DL_NO_COPY_RELOCS is not defined.
659 * sysdeps/ia64/dl-lookupcfg.h: Define DL_NO_COPY_RELOCS.
660
661 2003-03-26 Roland McGrath <roland@redhat.com>
662
663 * sysdeps/unix/make-syscalls.sh: When an undefined syscall has
664 SOURCE=-, append its symbol names to make variable unix-stub-syscalls.
665 * sysdeps/unix/Makefile [$(subdir) = misc] [unix-stub-syscalls]
666 (sysdep_routines): Add stub-syscalls.
667 ($(objpfx)stub-syscalls.c): New target.
668 (generated): Add stub-syscalls.c.
669
670 * tls.make.c: Also define use-tls according to USE_TLS macro.
671
672 2003-03-26 Ulrich Drepper <drepper@redhat.com>
673
674 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (struct siginfo): Avoid
675 no-op padding element.
676 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
677 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
678 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
679 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
680
681 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
682
683 * sysdeps/unix/sysv/linux/i386/getgroups.c: Fix the error
684 condition check for the return value of getgroups32.
685
686 2003-03-26 Jakub Jelinek <jakub@redhat.com>
687
688 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_NOERRNO):
689 Fix a typo.
690 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_NOERRNO,
691 PSEUDO_END_NOERRNO): Define.
692 * sysdeps/unix/sysdep.h (PSEUDO_END_NOERRNO): Fix a typo.
693 Define to PSEUDO_END.
694
695 2003-03-26 Ulrich Drepper <drepper@redhat.com>
696
697 * abilist/librt.abilist: Add new timer interfaces for 64-bit archs.
698
699 2003-03-25 Jiro SEKIBA <jir@yamato.ibm.com>
700
701 * iconvdata/euc-tw.c (from_euc_tw): Fix return value of TO_LOOP.
702 * iconvdata/bug-iconv4.c: New file.
703 * iconvdata/Makefile (tests): Add bug-iconv4.
704
705 2003-03-25 H.J. Lu <hjl@gnu.org>
706
707 * elf/dl-lookup.c (_dl_lookup_symbol): Avoid looking up protected
708 symbols twice.
709 (_dl_lookup_versioned_symbol): Likewise.
710
711 2003-03-26 Jakub Jelinek <jakub@redhat.com>
712
713 * csu/tst-atomic.c (do_test): Add some new
714 atomic_compare_and_exchange_val_acq, atomic_add_zero,
715 atomic_compare_and_exchange_bool_acq and atomic_add_negative tests.
716 * include/atomic.h (atomic_add_negative, atomic_add_zero):
717 Prefix local variable so that it doesn't clash with the one
718 in atomic_exchange_and_add.
719 * sysdeps/ia64/bits/atomic.h (atomic_exchange): Fix for long/void *
720 pointers.
721 (atomic_exchange_and_add): Implement using __sync_fetch_and_add_?i.
722 * sysdeps/powerpc/bits/atomic.h (atomic_exchange_and_add): Force
723 value into register.
724 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_64_acq):
725 Cast newval to long.
726 * sysdeps/x86_64/bits/atomic.h
727 (__arch_compare_and_exchange_val_64_acq): Cast newval and oldval to
728 long.
729 (atomic_exchange): Cast newvalue to long if sizeof == 8.
730 (atomic_exchange_and_add): Cast value to long if sizeof == 8.
731 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
732 (atomic_bit_set): Shift 1L up in all cases to shut up warnings.
733
734 2003-03-21 Martin Schwidefsky <schwidefskyde.ibm.com>
735
736 * sysdeps/s390/s390-32/backtrace.c (__backtrace): Remove high order
737 bit from backtrace addresses.
738
739 2003-03-21 Andreas Schwab <schwab@suse.de>
740
741 * sysdeps/unix/sysv/linux/i386/chown.c: Don't define any versioned
742 __chown symbols.
743
744 2003-03-25 Roland McGrath <roland@redhat.com>
745
746 * config.make.in (enable-check-abi): New variable from configure.
747 * configure.in (enable_check_abi): New substituted variable,
748 controlled by --{enable,disable}-check-abi (default yes).
749 * configure: Regenerated.
750 * Makerules [$(enable-check-abi) = yes] (tests): Put this condition
751 on check-abi dependency.
752
753 2003-03-26 Andreas Schwab <schwab@suse.de>
754
755 * sysdeps/m68k/m68020/bits/atomic.h: Fix typos.
756 * include/atomic.h: Likewise.
757
758 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Define ret_NOERRNO.
759
760 2003-03-25 Roland McGrath <roland@redhat.com>
761
762 * sysdeps/powerpc/bits/atomic.h (__arch_atomic_exchange_32): New macro.
763 (__arch_atomic_exchange_64): New macro.
764 (atomic_exchange): Use them.
765 (__arch_atomic_exchange_and_add_32): New macro.
766 (__arch_atomic_exchange_and_add_64): New macro.
767 (atomic_exchange_and_add): Use them.
768 Original patch from Steven Munroe <sjmunroe@us.ibm.com>.
769
770 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
771
772 * sysdeps/mips/sgidefs.h (_MIPS_ISA_MIPS32, _MIPS_ISA_MIPS64):
773 Define.
774 * sysdeps/mips/sys/asm.h: Test _MIPS_ISA against them on all
775 ISA tests.
776 (ALSZ, ALMASK, SZREG, REG_S, REG_L): Define based on ABI, not ISA.
777 (PTR_ADD, etc): Test _MIPS_SZPTR instead of _MIPS_SZLONG.
778 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
779 to decide whether to add padding.
780 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
781 to decide whether to add padding.
782 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h (struct
783 old_kernel_sigaction): Likewise.
784
785 2003-03-25 Ulrich Drepper <drepper@redhat.com>
786
787 * csu/tst-atomic.c: Adjust tests to what atomic_add_negative and
788 atomic_add_zero were supposed to do.
789 * include/atomic.h: Adjust atomic_add_negative and atomic_add_zero
790 to x86 behavior.
791
792 * sysdeps/generic/bits/typesizes.h (__TIMER_T_TYPE): Define as void*.
793 This matches the new timer implementation.
794 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__TIMER_T_TYPE):
795 Likewise.
796 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__TIMER_T_TYPE):
797 Likewise.
798 * sysdeps/unix/sysv/linux/bits/siginfo.h (struct siginfo): Adjust
799 timer info for what the kernel provides these days.
800 (struct sigevent): Add _tid field.
801 Define SIGEV_THREAD_ID.
802 Remove struct __pthread_attr_s forward declaration.
803 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Likewise.
804 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
805 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
806 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
807
808 * Versions.def (librt): Add GLIBC_2.3.3.
809
810 * abilist/libpthread.abilist: Update for nptl.
811
812 2003-03-24 Jon Grimm <jgrimm@us.ibm.com>
813
814 * inet/netinet/in.h: Add IPPROTO_SCTP.
815
816 2003-03-24 Ulrich Drepper <drepper@redhat.com>
817
818 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLET): Define.
819
820 2003-03-24 Philip Blundell <philb@gnu.org>
821
822 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL):
823 Remove a1 from clobber list.
824
825 2003-03-24 Ulrich Drepper <drepper@redhat.com>
826
827 * timezone/antarctica: Update from tzdata2003a.
828 * timezone/asia: Likewise.
829 * timezone/australasia: Likewise.
830 * timezone/europe: Likewise.
831 * timezone/iso3166.tab: Likewise.
832 * timezone/northamerica: Likewise.
833 * timezone/southamerica: Likewise.
834 * timezone/zone.tab: Likewise.
835
836 2003-03-24 Steven Munroe <sjmunroe@us.ibm.com>
837
838 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_END_NOERRNO): Fix typo.
839
840 2003-03-23 Ulrich Drepper <drepper@redhat.com>
841
842 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ret_NOERRNO): Avoid
843 unwanted expansion by definining to ret. Patch by Ian Wienand.
844
845 * sysdeps/unix/make-syscalls.sh: Recognize 'E' in first position of
846 the parameter description to denote no error checking. Generate
847 appropriate pseudo asm code.
848 * sysdeps/unix/syscalls.list: Mark getgid, getpid, getuid with 'E'.
849 * sysdeps/unix/sysv/linux/syscalls.list: Mark getegid, geteuid,
850 getpgrp, and getppid with 'E'.
851 * sysdeps/powerpc/powerpc32/sysdep.h: Define PSEUDO_NOERRNO,
852 PSEUDO_END_NOERRNO, and ret_NOERRNO.
853 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
854 * sysdeps/unix/sysdep.h: Likewise.
855 * sysdeps/unix/alpha/sysdep.h: Likewise.
856 * sysdeps/unix/sparc/sysdep.h: Likewise.
857 * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
858 * sysdeps/unix/sysv/linux/cris/sysdep.h: Likewise.
859 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
860 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
861 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
862 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
863 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
864 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
865 * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
866 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
867 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
868
869 2003-03-23 Roland McGrath <roland@redhat.com>
870
871 * Makeconfig (+includes): Don't use $(last-includes).
872
873 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
874
875 * sysdeps/unix/sysv/linux/configure.in: Update mips64 patterns.
876 * sysdeps/unix/sysv/linux/configure: Rebuilt.
877
878 2003-03-23 Jakub Jelinek <jakub@redhat.com>
879
880 * sysdeps/alpha/fpu/libm-test-ulps: Update.
881 * sysdeps/arm/libm-test-ulps: Update.
882 * sysdeps/hppa/fpu/libm-test-ulps: Update.
883 * sysdeps/ia64/fpu/libm-test-ulps: Update.
884 * sysdeps/mips/fpu/libm-test-ulps: Update.
885 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
886 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
887 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
888 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
889 * sysdeps/sh/sh4/fpu/libm-test-ulps: Update.
890 * sysdeps/s390/fpu/libm-test-ulps: Update.
891 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
892
893 2003-03-22 Roland McGrath <roland@redhat.com>
894
895 * include/atomic.h: Put parens around all macro arguments.
896 (__atomic_val_bysize, __atomic_bool_bysize): New macros.
897 (atomic_compare_and_exchange_val_acq): Use it.
898 (atomic_compare_and_exchange_bool_acq): Likewise.
899 (atomic_increment_and_test): Invert sense of test.
900 (atomic_decrement_and_test): Likewise.
901 * csu/tst-atomic.c: Update those tests to match.
902
903 2003-03-22 Jakub Jelinek <jakub@redhat.com>
904
905 * include/atomic.h (atomic_compare_and_exchange_val_acq): Add comment.
906 Don't define if __arch_compare_and_exchange_val_32_acq is not defined.
907 (atomic_compare_and_exchange_bool_acq): Add comment. Don't use
908 __oldval variable in the macro, since it might be macro argument.
909 (atomic_decrement_if_positive): Initialize __memp, remove setting
910 of non-existent variable.
911 (atomic_bit_test_set): Cast 1 to __typeof (*mem) before shifting.
912 * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Implement
913 using atomic_compare_and_exchange_val_acq.
914 (atomic_decrement_if_positive, atomic_bit_test_set): Define.
915 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
916 Renamed from...
917 (__arch_compare_and_exchange_bool_8_acq): ... this.
918 (__arch_compare_and_exchange_val_16_acq): Renamed from...
919 (__arch_compare_and_exchange_bool_16_acq): ... this.
920 (__arch_compare_and_exchange_val_32_acq): Return old value. Renamed
921 from...
922 (__arch_compare_and_exchange_bool_32_acq): ... this.
923 (__arch_compare_and_exchange_val_64_acq): Return old value. Renamed
924 from...
925 (__arch_compare_and_exchange_bool_64_acq): ... this.
926 (__arch_compare_and_exchange_val_32_acq): Use __typeof for local
927 variables types instead of assuming int.
928 Change prefix of local variables to __arch.
929 * sysdeps/generic/bits/atomic.h (arch_compare_and_exchange_acq):
930 Remove.
931 (atomic_compare_and_exchange_val_acq,
932 atomic_compare_and_exchange_bool_acq): Define.
933
934 * csu/tst-atomic.c: New test.
935 * csu/tst-atomic-long.c: New test.
936 * csu/Makefile (tests): Add tst-atomic and tst-atomic-long.
937
938 * malloc/memusagestat.c (main): Kill warning if uint64_t is ulong.
939
940 * sysdeps/s390/Versions: Add trailing newline.
941
942 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Kill warning
943 if INTERNAL_SYSCALL_ERROR_P doesn't use its first argument.
944
945 2003-03-22 Andreas Schwab <schwab@suse.de>
946
947 * sysdeps/m68k/fpu/libm-test-ulps: Update.
948
949 * sysdeps/m68k/m68020/bits/atomic.h: New file.
950 * sysdeps/m68k/m68020/atomicity.h: Removed.
951
952 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
953
954 * sysdeps/mips/elf/ldsodefs.h: Add mips-specific elf64 relocation
955 data structures and macros. Protect from multiple inclusion.
956
957 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Fix harmless
958 typo in #if test.
959
960 2003-03-21 Andreas Jaeger <aj@suse.de>
961
962 * sysdeps/i386/fpu/libm-test-ulps: Update.
963
964 * math/libm-test.inc (tgamma_test): Recompute some constants with
965 36 digits precision.
966 (lgamma_test): Likewise.
967 (ccos_test): Likewise.
968 (ccosh_test): Likewise.
969 (clog10_test): Likewise.
970 (csin_test): Likewise.
971 (csinh_test): Likewise.
972 (ctan_test): Likewise.
973 (ctanh_test): Likewise.
974
975 2003-03-19 Jakub Jelinek <jakub@redhat.com>
976
977 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Regenerated.
978
979 2003-03-21 Roland McGrath <roland@redhat.com>
980
981 * sysdeps/i386/i486/bits/atomic.h (atomic_bit_set): Use "ir"
982 constraint to permit non-constant BIT argument.
983 (atomic_bit_test_set): Likewise.
984 * sysdeps/x86_64/bits/atomic.h (atomic_bit_test_set): Likewise.
985 (atomic_bit_set): Likewise. Use 1UL in case that BIT might be >= 32.
986 For quadword case, use "i" constraint if __builtin_constant_p and < 32
987 or "r" constraint otherwise.
988
989 * configure.in: Move AC_PROG_CC and other program-finding before all
990 the version checks.
991 * configure: Regenerated.
992
993 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
994
995 * sysdeps/mips/mips64/memcpy.S: Fix porting bug that broke
996 unaligned copying of 8-15 bytes. From Chris Demetriou
997 <cgd@broadcom.com>. Fix label names.
998 * sysdeps/mips/mips64/memset.S: Fix label names. Make similar
999 change as to memcpy.S.
1000 * sysdeps/mips/memcpy.S: Formatting changes.
1001 * sysdeps/mips/memset.S: Likewise.
1002
1003 2003-03-21 Roland McGrath <roland@redhat.com>
1004
1005 * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add trailing semicolon.
1006
1007 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
1008
1009 * sysdeps/mips/mips64/memcpy.S, sysdeps/mips/mips64/memset.S: New.
1010 * sysdeps/mips/memcpy.S, sysdeps/mips/memset.S: Update comments.
1011
1012 2003-03-21 Roland McGrath <roland@redhat.com>
1013
1014 * sysdeps/i386/i486/bits/atomic.h
1015 (__arch_compare_and_exchange_val_64_acq): Rewrite abort-calling
1016 version of the macro to avoid compile-time warnings.
1017 [! __PIC__] (__arch_compare_and_exchange_64_acq): Rename to above.
1018 (atomic_exchange_and_add, atomic_add): Fix name and usage of it.
1019 (atomic_increment, atomic_decrement): Likewise.
1020
1021 2003-03-21 Ulrich Drepper <drepper@redhat.com>
1022
1023 * sysdeps/x86_64/bits/atomic.h: Don't use matching memory constraints.
1024 * sysdeps/i386/i486/bits/atomic.h: Likewise.
1025
1026 2003-03-21 Roland McGrath <roland@redhat.com>
1027
1028 * include/atomic.h (atomic_compare_and_exchange_bool_acq): Typo fix.
1029
1030 2003-03-20 Ulrich Drepper <drepper@redhat.com>
1031
1032 * include/atomic.h: Define atomic_compare_and_exchange_val_acq,
1033 atomic_compare_and_exchange_val_rel,
1034 atomic_compare_and_exchange_bool_acq, and
1035 atomic_compare_and_exchange_bool_rel instead of
1036 atomic_compare_and_exchange_acq and atomic_compare_and_exchange_rel.
1037 * sysdeps/i386/i486/bits/atomic.h: Define
1038 __arch_compare_and_exchange_val_*_acq instead of
1039 __arch_compare_and_exchange_*_acq.
1040 * sysdeps/x86_64/bits/atomic.h: Likewise.
1041 * sysdeps/ia64/bits/atomic.h: Define
1042 __arch_compare_and_exchange_bool_*_acq instead of
1043 __arch_compare_and_exchange_*_acq.
1044 * sysdeps/powerpc/bits/atomic.h: Likewise.
1045 * sysdeps/s390/bits/atomic.h: Likewise.
1046 * gmon/mcount.c: Adjust for new form of compare&exchange macros.
1047 * malloc/set-freeres.c: Likewise.
1048 * nscd/cache.c: Likewise.
1049 * stdlib/cxa_finalize.c: Likewise.
1050 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
1051
1052 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
1053
1054 * sysdeps/mips/bits/setjmp.h: n32 has only 6 call-saved fpregs.
1055 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Adjust.
1056 * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
1057
1058 * sysdeps/unix/sysv/linux/mips/pread.c: Don't break up offset
1059 into high and low halves on n64.
1060 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
1061 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
1062 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
1063
1064 2003-03-20 Ulrich Drepper <drepper@redhat.com>
1065
1066 * include/atomic.h (atomic_decrement_if_positive): Adjust for the
1067 correct atomic_compare_and_exchange_acq semantics.
1068
1069 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
1070
1071 * sysdeps/mips/ieee754.h: Remove excess #endif.
1072
1073 2003-03-20 Roland McGrath <roland@redhat.com>
1074
1075 * sysdeps/powerpc/bits/atomic.h (atomic_exchange): Remove unused
1076 variable. Remove superfluous memory clobber.
1077
1078 * include/atomic.h: Syntax braino fix.
1079
1080 * posix/tst-nice.c (do_test): Use %m formats instead of printing errno
1081 in decimal. Don't bail if niced at start. Just check that nice call
1082 bumps the total at all.
1083
1084 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
1085
1086 * sysdeps/mips/bits/setjmp.h: Store all N32 and N64 registers,
1087 including pc, gp, sp and fp, as long long.
1088 * sysdeps/mips/mips64/setjmp.S: Pass gp to __sigsetjmp_aux.
1089 * sysdeps/mips/mips64/setjmp_aux.c: Adjust type of arguments.
1090 Add gp argument, and set gp in the jmpbuf to it.
1091 * sysdeps/mips/setjmp_aux.c: Revert to o32-only.
1092
1093 2003-03-20 Ulrich Drepper <drepper@redhat.com>
1094
1095 * include/atomic.h: Define atomic_exchange and
1096 atomic_decrement_if_positive if not already defined. Add some
1097 __builtin_expect.
1098 * sysdeps/i386/i486/bits/atomic.h: Define atomic_exchange.
1099 * sysdeps/x86_64/bits/atomic.h: Likewise.
1100 * sysdeps/ia64/bits/atomic.h: Pretty printing. Define atomic_exchange.
1101 * sysdeps/powerpc/bits/atomic.h: Pretty printing. Define
1102 atomic_exchange, atomic_exchange_and_add, and
1103 atomic_decrement_if_positive
1104
1105 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
1106
1107 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: Sign-extend
1108 with a single instruction.
1109
1110 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Define
1111 properly for n64.
1112 (elf_machine_runtime_setup): Cast link_map pointer to Elf Addr
1113 type.
1114 (elf_machine_rel, elf_machine_rel_relative): Cast symidx to Elf
1115 Word before comparing with gotsym. Take reloc_addr argument as
1116 void*. Remove the code added for the compiler to drop any
1117 alignment assumptions.
1118
1119 2003-03-19 Ulrich Drepper <drepper@redhat.com>
1120
1121 * Makefile (distribute): Add include/atomic.h and bits/atomic.h.
1122 * include/atomic.h: New file.
1123 * sysdeps/i386/i486/bits/atomic.h: New file.
1124 * sysdeps/x86_64/bits/atomic.h: New file.
1125 * sysdeps/s390/bits/atomic.h: New file.
1126 * sysdeps/sh/bits/atomic.h: New file.
1127 * sysdeps/ia64/bits/atomic.h: New file.
1128 * sysdeps/powerpc/bits/atomic.h: New file.
1129 * sysdeps/generic/bits/atomic.h: New file.
1130 * sysdeps/i386/i486/atomicity.h: Removed.
1131 * sysdeps/x86_64/atomicity.h: Removed.
1132 * sysdeps/s390/s390-32/atomicity.h: Removed.
1133 * sysdeps/s390/s390-64/atomicity.h: Removed.
1134 * sysdeps/ia64/atomicity.h: Removed.
1135 * sysdeps/powerpc/powerpc32/atomicity.h: Removed.
1136 * sysdeps/powerpc/powerpc64/atomicity.h: Removed.
1137 * elf/dl-profile.c: Use atomic.h instead of atomicity.h. Adjust
1138 use of macros from atomicity.h to new names and semantics.
1139 * gmon_mcount.c: Likewise.
1140 * malloc/set-freeres.c: Likewise.
1141 * nscd/cache.c: Likewise.
1142 * stdlib/cxa_finalize.c: Likewise.
1143 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
1144
1145 2003-03-19 Alexandre Oliva <aoliva@redhat.com>
1146
1147 * sysdeps/mips/ieee754.h: New file, suitable to replace both
1148 ../ieee754/ieee754.h and ../ieee754/ldbl-128/ieee754.h, kept
1149 mips-specific for now.
1150
1151 2003-03-19 Ulrich Drepper <drepper@redhat.com>
1152
1153 * stdlib/strtod.c (INTERNAL): While eating trailing zeros handle
1154 hexdigits correctly. Reported by Fred Tydeman <tydeman@tybor.com>.
1155 * stdlib/tst-strtod.c: Add test for the bug.
1156
1157 * posix/tst-nice.c (do_test): Remove invalid of return value.
1158 Don't run test if initial level != 0.
1159
1160 2003-03-19 Amos Waterland <apw@us.ibm.com>
1161
1162 * posix/tst-nice.c: New file.
1163 * posix/Makefile (tests): Add tst-nice.
1164
1165 2003-03-18 Roland McGrath <roland@redhat.com>
1166
1167 * abilist: New directory of libfoo.abilist files maintained using
1168 scripts/merge-abilist.awk and "make update-abi" rules.
1169 * Makefile (distribute): Add abilist/*.abilist.
1170 * Makerules [$(build-shared) = yes] [$(subdir)] (tests):
1171 Depend on check-abi.
1172
1173 * configure.in: Move $critic_missing check after all AC_CHECK_PROG_VER.
1174 * configure: Regenerated.
1175
1176 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64): Fix name.
1177
1178 2003-03-18 Ulrich Drepper <drepper@redhat.com>
1179
1180 * sysdeps/posix/sysconf.c (__sysconf): Handle _SC_MONOTONIC_CLOCK
1181 correctly.
1182
1183 2003-03-18 Steven Munroe <sjmunroe@us.ibm.com>
1184
1185 * sysdeps/powerpc/powerpc64/memcpy.S: New file.
1186
1187 2003-03-18 Ulrich Drepper <drepper@redhat.com>
1188
1189 * Versions.def: Add GLIBC_2.3.3 for libpthread.
1190
1191 2003-03-17 Ulrich Drepper <drepper@redhat.com>
1192
1193 * sysdeps/generic/libc-start.c [!SHARED &&
1194 !LIBC_START_MAIN_AUXVEC_ARG]: Compute beginning of auxvec correctly.
1195
1196 2003-03-17 Roland McGrath <roland@redhat.com>
1197
1198 * include/ctype.h: Revert last change.
1199
1200 2003-03-17 Ulrich Drepper <drepper@redhat.com>
1201
1202 * argp/tst-argp1.c: Use test-skeleton.c.
1203 * locale/tst-C-locale.c: Likewise.
1204
1205 2003-03-17 Alexandre Oliva <aoliva@redhat.com>
1206
1207 * sysdeps/mips/mips64/Implies: Move wordsize-64 to...
1208 * sysdeps/mips/mips64/n64/Implies: New file.
1209 * sysdeps/mips/mips64/n64/Makefile: New file.
1210 * sysdeps/mips/mips64/n64/el/bits/endian.h: New file.
1211 * sysdeps/mips/mips64/n32/Implies: New file.
1212 * sysdeps/mips/mips64/n32/Makefile: New file.
1213 * sysdeps/mips/mips64/n32/el/bits/endian.h: New file.
1214 * sysdeps/unix/mips/mips64/n32/sysdep.h: New file.
1215 * sysdeps/unix/mips/mips64/n64/sysdep.h: New file.
1216 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: New file.
1217 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: New file.
1218 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: New file.
1219 * sysdeps/unix/sysv/linux/mips/mips64/ldconfig.h: New file.
1220 * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: New file.
1221 * sysdeps/unix/sysv/linux/mips/mips64/recv.c: New file.
1222 * sysdeps/unix/sysv/linux/mips/mips64/send.c: New file.
1223 * sysdeps/unix/sysv/linux/mips/mips64/syscall.S: New file.
1224 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: New file.
1225 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: New file.
1226 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: New file.
1227
1228 * sysdeps/unix/sysv/linux/configure.in (libc_cv_slibdir): Use
1229 lib64 for mips64/n64 and lib32 for mips64/n32.
1230 (ldd_rewrite_script): Needed for all mips64 configurations.
1231 * sysdeps/unix/sysv/linux/configure: Rebuilt.
1232 * sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed: New file.
1233 * sysdeps/unix/sysv/linux/mips/mips64/Dist: New file.
1234
1235 * sysdeps/mips/machine-gmon.h (MCOUNT): Define for N32 and N64 as
1236 well.
1237
1238 * sysdeps/unix/sysv/linux/mips/configure.in: New. Pre-process
1239 asm/unistd.h into asm-unistd.h.
1240 * sysdeps/unix/sysv/linux/mips/configure: Generated.
1241 * sysdeps/unix/sysv/linux/mips/Makefile: Do custom processing
1242 of syscall list.
1243 * sysdeps/unix/sysv/linux/mips/sys/syscall.h: New file.
1244 * sysdeps/unix/sysv/linux/mips/clone.S: Don't include
1245 asm/unistd.h.
1246
1247 * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: New file.
1248 * sysdeps/unix/sysv/linux/mips/ptrace.c: New file. Use long
1249 long type for registers on n32.
1250
1251 * sysdeps/mips/bits/wordsize.h: New file, appropriate for all
1252 3 ABIs.
1253 * sysdeps/mips/mips64/gmp-mparam.h: New file. Define
1254 BITS_PER_LONGINT to __WORDSIZE, to match all 3 ABIs.
1255 * sysdeps/mips/setjmp_aux.c (STRINGXP, REGS, PTRS): New macros.
1256 (__sigsetjmp_aux): Use them. Adjust for all 3 ABIs.
1257 * sysdeps/mips/elf/start.S: Adjust for all 3 ABIs.
1258 * sysdeps/unix/mips/brk.S: Likewise.
1259 * sysdeps/unix/mips/sysdep.S: Likewise.
1260 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
1261 * sysdeps/mips/bits/setjmp.h (__jmp_buf): Likewise.
1262 * sysdeps/mips/sys/ucontext.h: Likewise.
1263 * sysdeps/unix/sysv/linux/mips/sys/profcs.h: Likewise.
1264 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
1265 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
1266 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
1267 * sysdeps/mips/mips64/bsd-setjmp.S: Likewise.
1268 * sysdeps/mips/mips64/setjmp.S: Likewise.
1269 * sysdeps/mips/mips64/bits/setjmp.h: Deleted, obsolete.
1270 * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Use long long for
1271 64-bit types.
1272
1273 2003-03-16 Ulrich Drepper <drepper@redhat.com>
1274
1275 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Define tv here,
1276 not at function level.
1277 * sysdeps/unix/clock_gettime.c (HANDLE_REALTIME): Likewise.
1278
1279 2003-03-15 Roland McGrath <roland@redhat.com>
1280
1281 * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r): int -> size_t
1282 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
1283 * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Likewise.
1284 * nis/nis_table.c (__create_ib_request): Likewise.
1285
1286 * posix/fnmatch_loop.c: Add casts for signedness.
1287 * nss/nss_files/files-hosts.c: Likewise.
1288 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
1289 * gmon/gmon.c (write_call_graph): Use u_long for FROM_LEN.
1290 * nscd/nscd_getgr_r.c (nscd_getgr_r): Use nscd_ssize_t for CNT.
1291
1292 * configure.in (libc_cv_visibility_attribute): Use AC_TRY_COMMAND,
1293 get errors into the log file.
1294 (libc_cv_broken_visibility_attribute): Likewise.
1295 (libc_cv_broken_alias_attribute): Likewise.
1296 (libc_cv_asm_weak_directive): Likewise.
1297 (libc_cv_need_minus_P): Likewise.
1298 (libc_cv_dot_text): Likewise.
1299 (libc_cv_asm_global_directive): Likewise.
1300 (libc_cv_asm_type_prefix): Likewise.
1301 * configure: Regenerated.
1302
1303 * nscd/cache.c (cache_search): Give first arg type `request_type'.
1304 * nscd/nscd.h: Update decl.
1305
1306 * nscd/nscd_getpw_r.c (nscd_getpw_r): Add casts for signedness.
1307 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
1308 * elf/dl-close.c (_dl_close): Likewise.
1309 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): int -> size_t
1310 * io/fts.c (fts_build): Likewise.
1311 * elf/cache.c (add_to_cache): Likewise.
1312 * locale/programs/locarchive.c (show_archive_content): Likewise.
1313
1314 * posix/fnmatch.c (fnmatch): Tweak __builtin_expect use.
1315
1316 * include/ctype.h (__ctype_b_loc): Tweak type punning to make gcc 3.3
1317 happy.
1318 (__ctype_toupper_loc, __ctype_tolower_loc): Likewise.
1319
1320 2003-03-15 Ulrich Drepper <drepper@redhat.com>
1321
1322 * sysdeps/unix/sysv/linux/ia64/system.c: Use the generic Linux
1323 code for most parts.
1324
1325 2003-03-15 Roland McGrath <roland@redhat.com>
1326
1327 * sysdeps/unix/sysv/linux/i386/system.c: Moved to ...
1328 * sysdeps/unix/sysv/linux/system.c: ... here.
1329 (FORK): Don't #define if already #define'd.
1330 * sysdeps/unix/sysv/linux/s390/system.c: File removed.
1331 * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]:
1332 (__ASSUME_CLONE_THREAD_FLAGS): Define for kernel >= 2.5.64.
1333
1334 * dlfcn/tst-dlinfo.c: New file.
1335 * dlfcn/Makefile (tests): Add tst-dlinfo.
1336 ($(objpfx)tst-dlinfo): New target.
1337
1338 * dlfcn/dlinfo.c: New file.
1339 * dlfcn/Makefile (libdl-routines): Add it.
1340 * dlfcn/Versions (libdl: GLIBC_2.3.3): Add dlinfo.
1341 * dlfcn/dlfcn.h [__USE_GNU]: Declare dlinfo.
1342 [__USE_GNU] (RTLD_DI_*): New enum constants.
1343 [__USE_GNU] (Dl_serpath, Dl_serinfo): New types.
1344 * elf/dl-load.c (cache_rpath): New inline function.
1345 (_dl_map_object): Use it.
1346 (_dl_rtld_di_serinfo): New function.
1347 * sysdeps/generic/ldsodefs.h: Declare it.
1348 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
1349
1350 * sysdeps/powerpc/elf/libc-start.c (AUX_VECTOR_INIT): Define it.
1351 (LIBC_START_MAIN, LIBC_START_MAIN_AUXVEC_ARG, MAIN_AUXVEC_ARG)
1352 (INIT_MAIN_ARGS): Define, and #include <sysdeps/generic/libc-start.c>.
1353 (__libc_start_main): Just call the generic one for most of the work.
1354
1355 * sysdeps/generic/libc-start.c [LIBC_START_MAIN]: If defined, define a
1356 static function by that name instead of BP_SYM (__libc_start_main).
1357 [LIBC_START_MAIN_AUXVEC_ARG]: Take AUXVEC as argument.
1358 [MAIN_AUXVEC_ARG]: Pass 4th argument to MAIN.
1359 [INIT_MAIN_ARGS]: Give INIT the same args as MAIN.
1360
1361 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_PLATFORM_AUXV]:
1362 Use this macro for extra AT_* cases.
1363 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c (DL_PLATFORM_AUXV):
1364 New macro, guts from ...
1365 (__aux_init_cache): ... here, function removed.
1366 (DL_PLATFORM_INIT): Don't define this.
1367
1368 * sysdeps/powerpc/powerpc32/memset.S: Put __cache_line_size in bss.
1369 * sysdeps/powerpc/powerpc64/memset.S: Likewise.
1370
1371 * Versions.def (libthread_db): Add GLIBC_2.3.3 set.
1372
1373 2003-03-14 Roland McGrath <roland@redhat.com>
1374
1375 * dlfcn/dlerror.c (dlerror): If objname is "", don't put ": " after it.
1376
1377 2003-03-14 Jakub Jelinek <jakub@redhat.com>
1378
1379 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Fix a typo.
1380
1381 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
1382 sysdeps/posix/pause.c instead of sysdeps/unix/common/pause.c.
1383
1384 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
1385
1386 * sysdeps/mips/fpu/bits/mathdef.h: New.
1387 (__NO_LONG_DOUBLE_MATH): Define for o32.
1388
1389 * sysdeps/mips/sys/asm.h: Formatting changes.
1390 (PTR, PTRSIZE, PTRLOG): Adjust for all 3 ABIs.
1391 (CPADD): Define for all of them.
1392 (SETUP_GP, SETUP_GPX, SETUP_GPX_L, SAVE_GP, SETUP_GP64,
1393 SETUP_GPX64, SETUP_GPX64_L, RESTORE_GP64, USE_ALT_CP,
1394 NARGSAVE): Define per ABI spec.
1395 (END): Don't redefine.
1396 (LONG_SLL, LONG_SLLV, LONG_SRL, LONG_SRLV, LONG_SRA,
1397 LONG_SRAV): Remove duplicate definitions.
1398 (PTR_ADD, PTR_ADDI, PTR_ADDU, PTR_ADDIU, PTR_SUB, PTR_SUBI,
1399 PTR_SUBU, PTR_SUBIU, PTR_L, PTR_S, PTR_SLL, PTR_SLLV, PTR_SRL,
1400 PTR_SRLV, PTR_SRA, PTR_SRAV, PTR_SCALESHIFT): Define for n32.
1401 (PTR_LA): Define for all 3 ABIs.
1402
1403 * sysdeps/mips/dl-machine.h: Include sys/asm.h.
1404 (elf_machine_matches_host): Prevent linking of o32 and n32
1405 together.
1406 (elf_machine_dynamic): Document assumption on $gp.
1407 (STRINGXP, STRINGXV, STRINGV_): New macros.
1408 (elf_machine_load_address): Use them to stringize PTR_LA and
1409 PTR_SUBU.
1410 (ELF_DL_FRAME_SIZE, ELF_DL_SAVE_ARG_REGS,
1411 ELF_DL_RESTORE_ARG_REGS, IFABIO32): New macros used in...
1412 (_dl_runtime_resolve): Adjust it for all 3 ABIs.
1413 (__dl_runtime_resolve): Cast the symtab initializer to the
1414 right type.
1415 (RTLD_START): Use it. Adjust it for all 3 ABIs.
1416 (elf_machine_rel): Mark as always_inline in RTLD_BOOTSTRAP.
1417 Handle 64-bit R_MIPS_REL composite relocation and accept
1418 R_MIPS_64 relocations to shift addend size to 64 bits.
1419 Document assumption regarding local GOT entries. Document
1420 backward-compatibility departing from the ABI behavior in
1421 applying relocations that reference section symbols, no longer
1422 used. Support relocations to mis-aligned offsets.
1423 * sysdeps/mips/mips64/dl-machine.h: Deleted, obsolete.
1424
1425 * sysdeps/unix/sysv/linux/mips/readelflib.c: New file.
1426
1427 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h
1428 (_KERNEL_NSIG_BPW): Define in terms of _MIPS_SZLONG.
1429 * sysdeps/unix/sysv/linux/mips/sigaction.c: Define restore and
1430 restore_rt functions. Use them.
1431
1432 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
1433 .set mips2 on new abis.
1434
1435 2003-03-13 Ulrich Drepper <drepper@redhat.com>
1436
1437 * posix/getconf.c: Recognize POSIX2_SYMLINKS.
1438 * sysdeps/generic/bits/confname.h: Define _PC_2_SYMLINKS.
1439 * sysdeps/posix/fpathconf.c: Handle _PC_2_SYMLINKS.
1440 * sysdeps/posix/pathconf.c: Likewise.
1441 * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
1442 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
1443 * sysdeps/unix/sysv/linux/pathconf.h: Define statfs_symlinks.
1444
1445 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define some more magic
1446 words.
1447
1448 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
1449
1450 * include/gmp.h: Include/gmp-mparam.h.
1451 * stdlib/strtod.c: Include gmp-mparam.h before gmp.h and
1452 gmp-impl.h.
1453
1454 * elf/dl-conflict.c: Don't compile _dl_resolve_conflicts if
1455 ELF_MACHINE_NO_RELA is set.
1456 * elf/rtld.c (dl_main): No prelink support for REL-only.
1457
1458 * sysdeps/generic/ldconfig.h (FLAG_MIPS64_LIBN32,
1459 FLAG_MIPS64_LIBN64): Define.
1460 * elf/cache.c (print_entry): Handle mips64 n32 and n64.
1461
1462 * sysdeps/mips/memcpy.S: Map t0-3 to a4-7 on new abis.
1463 * sysdeps/mips/memset.S: Likewise.
1464 * sysdeps/mips/sys/regdef.h: Alias a4-7 or t0-3 to $8-11
1465 depending on the ABI.
1466
1467 * sysdeps/mips/atomicity.h (exchange_and_add, atomic_add):
1468 Don't .set mips2 on new abi.
1469 (compare_and_swap): Likewise. Support 64-bit longs on n64.
1470
1471 * stdlib/fpioconst.h: Include gmp.h with angle brackets.
1472
1473 2003-03-13 Roland McGrath <roland@redhat.com>
1474
1475 * elf/dl-load.c (_dl_map_object_from_fd): Bail if no PT_LOAD phdrs
1476 found. Reported by Alexandre Oliva <aoliva@redhat.com>.
1477
1478 2003-03-13 Alexandre Oliva <aoliva@redhat.com>
1479
1480 * stdio-common/_itoa.c (_itoa_base_table): Make 64-bit
1481 literals long long.
1482 * stdlib/fpioconst.c: Likewise.
1483 * stdlib/strtod.c: Likewise.
1484
1485 * sysdeps/mips/add_n.S: Use L macro for local labels.
1486 * sysdeps/mips/addmul_1.S: Likewise.
1487 * sysdeps/mips/lshift.S: Likewise.
1488 * sysdeps/mips/memcpy.S: Likewise.
1489 * sysdeps/mips/memset.S: Likewise.
1490 * sysdeps/mips/mul_1.S: Likewise.
1491 * sysdeps/mips/rshift.S: Likewise.
1492 * sysdeps/mips/sub_n.S: Likewise.
1493 * sysdeps/mips/submul_1.S: Likewise.
1494 * sysdeps/mips/mips64/add_n.S: Likewise.
1495 * sysdeps/mips/mips64/addmul_1.S: Likewise.
1496 * sysdeps/mips/mips64/lshift.S: Likewise.
1497 * sysdeps/mips/mips64/mul_1.S: Likewise.
1498 * sysdeps/mips/mips64/rshift.S: Likewise.
1499 * sysdeps/mips/mips64/sub_n.S: Likewise.
1500 * sysdeps/mips/mips64/submul_1.S: Likewise.
1501 * sysdeps/unix/mips/sysdep.h: Define L() according to ABI
1502 conventions. Define END as in sys/asm.h.
1503 * sysdeps/unix/mips/sysdep.S: Likewise.
1504 * sysdeps/unix/mips/wait.S: Likewise.
1505 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
1506
1507 * sysdeps/ieee754/dbl-64/dbl2mpn.c (__mpn_extract_double):
1508 Cast shifted values that may be too narrow to mp_limb_t.
1509 * sysdeps/ieee754/dbl-64/mpn2dbl.c (__mpn_construct_double):
1510 Likewise.
1511 * sysdeps/ieee754/flt-32/mpn2flt.c (__mpn_construct_float):
1512 Likewise.
1513 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c
1514 (__mpn_extract_long_double): Likewise.
1515 * sysdeps/ieee754/ldbl-128/mpn2ldbl.c
1516 (__mpn_construct_long_double): Likewise.
1517 * sysdeps/ieee754/ldbl-96/ldbl2mpn.c
1518 (__mpn_extract_long_double): Likewise.
1519 * sysdeps/ieee754/ldbl-96/mpn2ldbl.c
1520 (__mpn_construct_long_double): Likewise.
1521
1522 2003-03-13 Roland McGrath <roland@redhat.com>
1523
1524 * elf/Makefile ($(objpfx)librtld.mk): Tweak regexp so that one-line
1525 entries in the map file match too.
1526
1527 2003-03-13 Guido Guenther <agx@sigxcpu.org>
1528
1529 * sysdeps/unix/sysv/linux/mips/clone.S: introduce and use local
1530 label .Lthread_start since current binutils don't allow branches
1531 to globally visible symbols.
1532
1533 2003-03-13 Jakub Jelinek <jakub@redhat.com>
1534
1535 * sysdeps/unix/sysv/linux/ia64/sysdep.h (BREAK_INSN_1, BREAK_INSN,
1536 ASM_OUTARGS_0, ASM_OUTARGS_1, ASM_OUTARGS_2, ASM_OUTARGS_3,
1537 ASM_OUTARGS_4, ASM_OUTARGS_5, ASM_OUTARGS_6): Define.
1538 (INTERNAL_SYSCALL, INLINE_SYSCALL): Use it. Make syscall arguments
1539 clobbered by the syscall.
1540 (ASM_ARGS_1, ASM_ARGS_2, ASM_ARGS_3, ASM_ARGS_4, ASM_ARGS_5,
1541 ASM_ARGS_6): Change constraints from r to index of corresponding
1542 output register.
1543 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Swap
1544 ptid and ctid to match kernel.
1545 * sysdeps/unix/sysv/linux/ia64/system.c (FORK): Likewise.
1546
1547 2003-03-12 Steven Munroe <sjmunroe@us.ibm.com>
1548
1549 * sysdeps/powerpc/powerpc64/elf/configure.in: Remove
1550 AC_DEFINE(PI_STATIC_AND_HIDDEN). Not supported for PowerPC64.
1551 * sysdeps/powerpc/powerpc64/elf/configure: Regenerated.
1552
1553 2003-03-11 Roland McGrath <roland@redhat.com>
1554
1555 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
1556 Check SYM_MAP rather than SYM as definedness check.
1557 Handle R_PPC64_ADDR32, R_PPC64_ADDR30, and R_PPC64_REL64 relocs.
1558 Don't handle R_PPC64_REL24 reloc.
1559 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
1560
1561 * sysdeps/powerpc/powerpc64/dl-machine.h
1562 [USE_TLS] (elf_machine_type_class): Match all the TLS relocs in a
1563 block, so we cover all the TPREL16* flavors without 6 ||s.
1564 [USE_TLS] (elf_machine_tprel): New function.
1565 (elf_machine_rela) [USE_TLS]: Use elf_machine_tprel for TPREL64 reloc,
1566 and handle TPREL16 relocs too. Return rather than break for DTPREL64.
1567 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
1568
1569 2003-03-11 Ralf Baechle <ralf@linux-mips.org>
1570
1571 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start): Use jal
1572 instead of jalr to invoke subroutine so restoring the $gp register
1573 will work properly.
1574
1575 2003-03-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
1576
1577 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (__NR_pread64): Define
1578 to __NR_pread if not defined.
1579 (__NR_pwrite64): Define to __NR_pwrite if not defined.
1580
1581 2003-03-11 Jakub Jelinek <jakub@redhat.com>
1582
1583 * sysdeps/unix/sysv/linux/ia64/system.c: New file.
1584 * sysdeps/unix/sysv/linux/kernel-features.h
1585 (__ASSUME_CLONE_THREAD_FLAGS): Define for IA-64 and s390* with
1586 kernel >= 2.5.64.
1587
1588 2003-03-11 Jakub Jelinek <jakub@redhat.com>
1589
1590 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): If CNT == 1,
1591 allocate space even for the trailing '/'.
1592 Reported by John Reiser <jreiser@BitWagon.com>.
1593
1594 * sysdeps/unix/sysv/linux/ia64/sysdep.h (LOAD_ARGS_6, ASM_ARGS_6,
1595 ASM_CLOBBERS_6): Define.
1596 (ASM_CLOBBERS_5): Use ASM_CLOBBERS_6.
1597 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Reorder arguments
1598 to match IA-32 order.
1599 * sysdeps/unix/sysv/linux/i386/clone.S: Fix comment.
1600
1601 2003-03-10 Steven Munroe <sjmunroe@us.ibm.com>
1602
1603 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't clobber R7.
1604 Copy extra params for NPTL to registers used in clone syscall.
1605
1606 2003-03-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
1607
1608 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Correct system
1609 call names for pread and pwrite.
1610
1611 2003-03-10 Roland McGrath <roland@redhat.com>
1612
1613 * dlfcn/Makefile (libdl-routines): Add dladdr1.
1614 * dlfcn/dladdr1.c: New file.
1615 * dlfcn/dlfcn.h [__USE_GNU]: Declare dladdr1.
1616 [__USE_GNU] (RTLD_DL_SYMENT, RTLD_DL_LINKMAP): New enum constants.
1617 * elf/dl-addr.c (_dl_addr): Take new args, a struct link_map ** and
1618 a const ElfNN_Sym ** to fill in.
1619 * include/dlfcn.h: Update decl. Include <link.h>.
1620 * dlfcn/dladdr.c (dladdr): Update caller.
1621 * malloc/mtrace.c (tr_where): Likewise.
1622 * sysdeps/generic/elf/backtracesyms.c: Likewise.
1623 * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
1624 * dlfcn/Versions (libdl: GLIBC_2.3.3): New set, add dladdr1.
1625 * Versions.def (libdl): Define GLIBC_2.3.3 set.
1626
1627 * sysdeps/unix/make-syscalls.sh: Generate $(compile-syscall) for
1628 assembler command.
1629 * sysdeps/unix/Makefile (compile-syscall): New variable.
1630 Pass -g0 to compiler for assembling syscall stubs from stdin.
1631
1632 * sysdeps/i386/sysdep.h [HAVE_CPP_ASM_DEBUGINFO]
1633 (STABS_CURRENT_FILE, STABS_CURRENT_FILE1, STABS_FUN, STABS_FUN_END):
1634 Define these to do nothing.
1635
1636 * configure.in: New check for -g on .S files.
1637 * configure: Regenerated.
1638 * config.make.in (have-cpp-asm-debuginfo): New variable.
1639 * config.h.in (HAVE_CPP_ASM_DEBUGINFO): New #undef.
1640 * Makeconfig (ASFLAGS): New variable, if undefined and
1641 $(have-cpp-asm-debuginfo), take options matching -g% from $(CFLAGS).
1642 * Makerules (compile.S, COMPILE.S): Use $(ASFLAGS).
1643
1644 2003-03-09 Roland McGrath <roland@redhat.com>
1645
1646 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Take 3 new args
1647 used by NPTL on new kernels. From Paul Mackerras <paulus@samba.org>.
1648
1649 2003-03-09 Ulrich Drepper <drepper@redhat.com>
1650
1651 * po/fi.po: Update from translation team.
1652 * po/ca.po: Likewise.
1653 * po/da.po: Likewise.
1654
1655 2003-03-08 Ulrich Drepper <drepper@redhat.com>
1656
1657 * rt/tst-aio7.c (do_test): Change BYTES into a #define.
1658
1659 2003-03-07 Ulrich Drepper <drepper@redhat.com>
1660
1661 * rt/tst-aio7.c (do_test): Give BUFF permanent extent, too.
1662
1663 * sysdeps/powerpc/fpu/w_sqrt.c: Fix comment.
1664
1665 2003-03-07 Roland McGrath <roland@redhat.com>
1666
1667 * sysdeps/s390/s390-32/sysdep.h (L): Use .Lfoo instead of foo.
1668 * sysdeps/s390/s390-64/sysdep.h (L): Likewise.
1669
1670 2003-03-04 Guido Guenther <agx@sigxcpu.org>
1671
1672 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove unneeded
1673 stubs, we have INLINE_SYSCALL.
1674 * sysdeps/unix/sysv/linux/mips/bits/mman.h: Define MAP_POPULATE,
1675 MAP_NONBLOCK.
1676
1677 2003-03-06 Roland McGrath <roland@redhat.com>
1678
1679 * rt/tst-aio7.c (do_test): Revert last change. Instead, give CB1
1680 permanent extent and add a comment about testing its implicit teardown.
1681
1682 2003-03-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
1683
1684 * rt/tst-aio7.c (do_test): Cancel i/o on CB1 before it's out of scope.
1685
1686 2003-03-05 Ulrich Drepper <drepper@redhat.com>
1687
1688 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Fix
1689 reversed __builtin_expect expectation.
1690
1691 2003-03-05 Roland McGrath <roland@redhat.com>
1692
1693 * stdio-common/sscanf.c: Use prototype defn with ... syntax.
1694 * libio/swscanf.c: Likewise.
1695 * libio/swprintf.c: Likewise.
1696
1697 2003-03-04 Roland McGrath <roland@redhat.com>
1698
1699 * sysdeps/powerpc/powerpc64/dl-machine.h: Include <dl-tls.h>.
1700 (elf_machine_rela): Always use RESOLVE_MAP, needed for
1701 R_PPC64_JMP_SLOT as well as TLS cases.
1702 (BIT_INSERT): Move parenthesis where it ought to have been.
1703 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
1704
1705 * posix/confstr.c (confstr): Correct STRING_LEN values for
1706 _CS_GNU_LIBC_VERSION and _CS_GNU_LIBPTHREAD_VERSION, add missing
1707 break. Reported by Alexandre Julliard <julliard@winehq.com>.
1708
1709 2003-03-04 Jakub Jelinek <jakub@redhat.com>
1710
1711 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
1712
1713 2003-03-04 Ulrich Drepper <drepper@redhat.com>
1714
1715 * sysdeps/unix/sysv/linux/x86_64/clone.S: Add support for the new
1716 clone parameters.
1717
1718 * po/sv.po: Update from translation team.
1719
1720 2003-03-04 Andreas Jaeger <aj@suse.de>
1721 Ulrich Drepper <drepper@redhat.com>
1722
1723 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Fix comments.
1724
1725 2003-03-03 Ulrich Drepper <drepper@redhat.com>
1726
1727 * sysdeps/generic/dl-sysdep.h: Add double include protection.
1728
1729 * po/tr.po: Update from translation team.
1730
1731 * elf/dl-load.c (_dl_map_object_from_fd): Determine whether there
1732 are holes between the segments. Only call mprotect to set
1733 proection to PROT_NONE if there are some.
1734
1735 * elf/dl-load.c (struct filebuf): Actually use FILEBUF_SIZE.
1736 Update comment.
1737
1738 * include/sched.h (__clone2): Use ... instead of adding all the
1739 new parameters.
1740
1741 2003-03-03 Roland McGrath <roland@redhat.com>
1742
1743 * elf/dl-load.c (struct filebuf): Fix typo in last change.
1744
1745 * sysdeps/powerpc/powerpc32/elf/configure.in: Don't define
1746 PI_STATIC_AND_HIDDEN.
1747
1748 2003-03-03 Ian Wienand <ianw@gelato.unsw.edu.au>
1749
1750 * sysdeps/unix/sysv/linux/ia64/clone2.S: Update to take extra clone
1751 flags.
1752 * include/sched.h: Update clone2 prototype.
1753
1754 2003-03-03 Andreas Jaeger <aj@suse.de>
1755
1756 * math/tgmath.h (__TGMATH_UNARY_REAL_RET_ONLY): New definition.
1757 (llrint): Use it to correct return type.
1758 (lrint): Likewise.
1759 (lround): Likewise.
1760 (llround): Likewise.
1761
1762 2003-03-03 Ulrich Drepper <drepper@redhat.com>
1763
1764 * elf/dl-load.c (struct filebuf): For 64-bit platforms use 640
1765 byte filebuf size.
1766
1767 * libio/fileops.c (_IO_new_file_fopen): Close stillborn descriptor
1768 if ccs parameter isn't valid. Reported by Andreas Schwab.
1769
1770 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
1771
1772 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Add support
1773 for system call numbers > 255.
1774 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.h (DO_CALL,
1775 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
1776 INTERNAL_SYSCALL): Likewise.
1777 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
1778 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.h (DO_CALL,
1779 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
1780 INTERNAL_SYSCALL): Likewise.
1781
1782 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
1783
1784 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Don't free the dtv
1785 array if it is the initial dtv.
1786
1787 2003-03-03 Ulrich Drepper <drepper@redhat.com>
1788
1789 * po/es.po: Update from translation team.
1790 * po/fr.po: Likewise.
1791 * po/gl.po: Likewise.
1792 * po/sk.po: Likewise.
1793 * po/sv.po: Likewise.
1794
1795 * sysdeps/unix/sysv/linux/syscalls.list: Add remap_file_pages entry.
1796 * misc/sys/mman.h: Add prototype for remap_file_pages.
1797 * sysdeps/generic/remap_file_pages.c: New file.
1798 * misc/Makefile (routines): Add remap_file_pages.
1799 * misc/Versions [libc:GLIBC_2.3.3]: Add remap_file_pages.
1800
1801 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_POPULATE
1802 and MAP_NONBLOCK.
1803 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
1804 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise
1805 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
1806 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
1807 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
1808 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
1809 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
1810 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
1811
1812 2003-03-03 Roland McGrath <roland@redhat.com>
1813
1814 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Revert last change.
1815 * sysdeps/ia64/dl-machine.h: Likewise.
1816 * sysdeps/ia64/dl-symaddr.c (_dl_symbol_address): Remove const from
1817 argument type.
1818 * sysdeps/ia64/dl-lookupcfg.h: Update decl.
1819
1820 * sysdeps/wordsize-64/strtol_l.c (strtoll_l): Define as weak alias.
1821 * sysdeps/wordsize-64/strtoul_l.c (strtoull_l): Define as weak alias.
1822 * locale/Versions (libc: GLIBC_2.3): Move those to ...
1823 * sysdeps/wordsize-32/Versions (libc: GLIBC_2.3): ... here, new file.
1824 * sysdeps/wordsize-64/Versions (libc: GLIBC_2.3.3) Likewise.
1825 * Versions.def (libc): Add GLIBC_2.3.3 set.
1826
1827 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Add const to MAP arg.
1828 * sysdeps/ia64/dl-machine.h: Update decl.
1829
1830 2003-03-03 Andreas Jaeger <aj@suse.de>
1831
1832 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Add missing brace.
1833
1834 2003-03-02 Roland McGrath <roland@redhat.com>
1835
1836 * scripts/abilist.awk: Reject data items with apparent 0 size.
1837
1838 * scripts/merge-abilist.awk: Restore hack to elide pattern foo.*/bar
1839 after foo.* as if it were a duplicate.
1840
1841 * sysdeps/unix/sysv/linux/ia64/brk.S: Add .type and .size for __curbrk.
1842
1843 2003-03-02 Ulrich Drepper <drepper@redhat.com>
1844
1845 * elf/dl-load.c (struct filebuf): Reduce buf array to 512 bytes.
1846
1847 * sysdeps/generic/bits/time.h: Define CLOCK_MONOTONIC.
1848 * sysdeps/posix/clock_getres.c: Define code for CLOCK_REALTIME only
1849 if not already defined. Use SYSDEP_GETRES to allow other files to
1850 provide alternative implementations.
1851 * sysdeps/unix/sysv/linux/clock_getres.c: New file
1852 * sysdeps/unix/clock_gettime.c: Define code for CLOCK_REALTIME only
1853 if not already defined. Use SYSDEP_GETTIME to allow other files to
1854 provide alternative implementations.
1855 * sysdeps/unix/sysv/linux/clock_gettime.c: New file.
1856 * sysdeps/unix/clock_settime.c: Define code for CLOCK_REALTIME only
1857 if not already defined. Use SYSDEP_GETTIME to allow other files to
1858 provide alternative implementations.
1859 * sysdeps/unix/sysv/linux/clock_settime.c: New file.
1860 * sysdeps/unix/clock_nanosleep.c: Use SYSDEP_NANOSLEEP to allow
1861 other files to provide alternative implementations. Rearrange
1862 tests for invalid parameters.
1863 * sysdeps/unix/sysv/linux/clock_nanosleep.c: New file.
1864 * sysdeps/unix/sysv/linux/sysconf.c: New file.
1865 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1866 __ASSUME_POSIX_TIMERS for Linux 2.5.63 and up.
1867 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
1868 _POSIX_MONOTONIC_CLOCK.
1869
1870 2003-03-02 Roland McGrath <roland@redhat.com>
1871
1872 * scripts/merge-abilist.awk: More checks for bogus input.
1873 Uniquify duplicate config names.
1874
1875 * scripts/abilist.awk: Don't distinguish weak symbols in normal output.
1876
1877 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow): Renamed
1878 from dl_reloc_overflow, make global.
1879 (__process_machine_rela): Update callers.
1880 * sysdeps/powerpc/powerpc32/dl-machine.h: Declare _dl_reloc_overflow.
1881 Add attribute_hidden to __process_machine_rela decl.
1882 (elf_machine_type_class, elf_machine_rela): Handle 16-bit TLS relocs.
1883
1884 * sysdeps/generic/libc-start.c (__libc_start_main): Don't assign const
1885 variable.
1886
1887 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
1888 Don't use weak_extern for dl_rtld_map. Instead check only if [SHARED].
1889 (elf_machine_rela): Clean up.
1890
1891 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Clean up.
1892
1893 PowerPC TLS support contributed by Paul Mackerras <paulus@samba.org>.
1894 * sysdeps/powerpc/powerpc32/elf/configure.in: New file.
1895 * sysdeps/powerpc/powerpc32/elf/configure: New generated file.
1896 * elf/tls-macros.h [__powerpc__ && !__powerpc64__]
1897 (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Define them.
1898 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Support
1899 new relocs for TLS.
1900
1901 * sysdeps/powerpc/dl-tls.h (TLS_TP_OFFSET, TLS_DTV_OFFSET): Move these
1902 macros out of [SHARED].
1903 (TLS_TPREL_VALUE, TLS_DTPREL_VALUE): New macros.
1904
1905 * elf/elf.h: Define R_PPC_* relocs for TLS support.
1906 Clean up R_PPC64_* macro definition comments.
1907
1908 * configure.in: In "running configure fragment for" message,
1909 omit $srcdir from the name if we prepended it.
1910 * configure: Regenerated.
1911
1912 * elf/dl-reloc.c (allocate_static_tls): Fix calculations.
1913 From Jakub Jelinek <jakub@redhat.com>.
1914
1915 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Revert last change,
1916 which duplicated the O_DIRECT defn.
1917
1918 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
1919
1920 * stdlib/stdlib.h: Add missing __USE_BSD enclosure for BSD derived
1921 random functions.
1922
1923 2003-03-01 Andreas Schwab <schwab@suse.de>
1924
1925 * resolv/Makefile (tests): Don't depend on
1926 $(objpfx)mtrace-tst-leaks when cross compiling.
1927
1928 * sysdeps/m68k/dl-machine.h (_dl_start_user): Access
1929 __libc_stack_end through GOT since it is a global symbol.
1930
1931 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
1932
1933 * argp/argp.h: Fix a typo.
1934 Reported by H.S.Teoh <hsteoh@quickfur.ath.cx>.
1935
1936 * manual/terminal.texi: Fix cfmakeraw() definition from int to void.
1937
1938 2003-02-27 Pat Rankin <rankin@pactechdata.com>
1939
1940 * posix/regexec.c (proceed_next_node): Cast re_string_get_buffer to
1941 char *.
1942 (get_subexp): Likewise.
1943
1944 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
1945
1946 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DIRECT): Define.
1947
1948 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
1949
1950 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_DIRECT): Define.
1951
1952 2003-02-27 Roland McGrath <roland@redhat.com>
1953
1954 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Remove
1955 special case for dl_rtld_map in R_PPC64_RELATIVE; it's harmless to
1956 repeat it and avoids the test for the common case.
1957 Clean up and fix calculations for TLS relocs.
1958
1959 * sysdeps/powerpc/powerpc64/dl-tls.h: Moved to ...
1960 * sysdeps/powerpc/dl-tls.h: ... here.
1961 (TLS_TP_OFFSET): New macro.
1962
1963 * sunrpc/svc_udp.c (svcudp_recv): Add a cast to last change.
1964
1965 2003-02-27 Ulrich Drepper <drepper@redhat.com>
1966
1967 * sysdeps/i386/fpu/libm-test-ulps: Increase ULPs for yn due to
1968 code generation changes in recent gcc.
1969
1970 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
1971
1972 * sysdeps/powerpc/fpu/fpu_control.h (_FPU_GETCW, _FPU_SETCW):
1973 Rename argument to avoid symbol conflict.
1974
1975 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h
1976 [__USE_GNU] (O_DIRECT): New macro.
1977
1978 2003-02-24 David Mosberger <davidm@hpl.hp.com>
1979
1980 * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Fix
1981 unwind info.
1982
1983 2003-02-27 Ulrich Drepper <drepper@redhat.com>
1984
1985 * resolv/res_libc.c [USE___THREAD] (_res): Don't need the
1986 initializer anymore now that res_thread_freeres is more careful.
1987
1988 * sunrpc/svc_udp.c (svcudp_recv): Remove all control messages
1989 except the PKTINFO. Reset interface in PKTINFO.
1990 Patch by Neil Brown <neilb@cse.unsw.edu.au> [PR libc/4973].
1991
1992 2003-02-25 Steven Munroe <sjmunroe@us.ibm.com>
1993
1994 * elf/elf.h: Add new R_PPC64_* relocs for TLS.
1995 * elf/tls-macros.h [__powerpc64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
1996 Define.
1997 * sysdeps/powerpc/powerpc64/elf/configure.in: New file.
1998 * sysdeps/powerpc/powerpc64/elf/configure: New file (generated).
1999 * sysdeps/powerpc/powerpc64/dl-machine.h: Support new TLS relocs.
2000 * sysdeps/powerpc/powerpc64/dl-tls.h: New file.
2001
2002 * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
2003 Do DL_SYSDEP_OSCHECK here, matching 2002-12-01 change to generic file.
2004
2005 2003-02-25 Andreas Jaeger <aj@suse.de>
2006
2007 * manual/memory.texi (Malloc Tunable Parameters): Clarify
2008 behaviour of M_MMAP_THRESHOLD.
2009
2010 2003-02-25 Roland McGrath <roland@redhat.com>
2011
2012 * resolv/res_init.c (res_thread_freeres): Bail out if _res.nscount is
2013 zero, inidicating _res was not initialized yet.
2014
2015 2003-02-24 Ulrich Drepper <drepper@redhat.com>
2016
2017 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Remove EACCES
2018 test.
2019
2020 2003-02-24 Roland McGrath <roland@redhat.com>
2021
2022 * sysdeps/posix/pause.c: Add LIBC_CANCEL_HANDLED.
2023
2024 2003-02-23 Roland McGrath <roland@redhat.com>
2025
2026 * sysdeps/posix/pause.c: New file.
2027 * sysdeps/unix/common/pause.c: File removed.
2028
2029 2003-02-23 Ulrich Drepper <drepper@redhat.com>
2030
2031 * sysdeps/generic/bits/confname.h: Remove #ifs.
2032
2033 * posix/Makefile (CFLAGS-regex.c): Remove RE_ENABLE_I18N definition.
2034 * posix/regex_internal.h (RE_ENABLE_I18N): Pretty printing.
2035
2036 * resolv/res_libc.c [USE___THREAD] (_res): Initialize _vcsock
2037 element to -1.
2038
2039 2003-02-22 Ulrich Drepper <drepper@redhat.com>
2040
2041 * sysdeps/generic/dl-sysdep.c: Avoid warning.
2042
2043 2003-02-22 Roland McGrath <roland@redhat.com>
2044
2045 * resolv/tst-leaks.c: New file by Daniel Jacobowitz <drow@mvista.com>.
2046 * resolv/Makefile (tests): Add tst-leaks.
2047 ($(objpfx)tst-leaks): Depend on $(objpfx)libresolv.so.
2048 (tst-leaks-ENV): New variable.
2049 ($(objpfx)mtrace-tst-leaks): New target.
2050 (tests): Depend on it.
2051
2052 * include/libc-internal.h: Declare __libc_thread_freeres.
2053
2054 * Makerules: Fix last change to use $($(subdir)-version) when set.
2055
2056 * Makerules (install-lib-nosubdir): Depend on installed
2057 libfoo-X.Y.Z.so and libfoo.so.NN files so they are installed
2058 regardless of the libfoo.so target's dependencies.
2059
2060 * MakeTAGS (sub-make-vars): New variable, includes generating=t.
2061 Use that in $(MAKE) calls.
2062
2063 2003-02-22 Ulrich Drepper <drepper@redhat.com>
2064
2065 * catgets/gencat.c (read_input_file): Collision between
2066 auto-assigned numbers and user-defined nubmers is not fatal.
2067 Handle it.
2068 Patch by Michael M. Lampkin <michael.lampkin@ieee.org>.
2069 * catgets/Makefile: Add rules to run test2.msg test.
2070 * catgets/test2.msg: New file.
2071
2072 * catgets/gencat.c (main): Return 1 if messages have been printed.
2073
2074 * iconv/iconv_prog.c (main): Unify messages.
2075
2076 * stdlib/strtod.c (INTERNAL): Remove bogus clearing of second word
2077 when shifting retval.
2078 * stdlib/tst-strtod.c (main): Add strtold test case.
2079 Reported by Fred J. Tydeman <tydeman@tybor.com>.
2080
2081 2003-02-21 Roland McGrath <roland@redhat.com>
2082
2083 * malloc/thread-freeres.c: Conditionalize on _LIBC_REENTRANT.
2084 * sunrpc/rpc_thread.c: Likewise for text_set_element use.
2085 (__rpc_thread_destroy): Add it to __libc_subfreeres too.
2086
2087 * include/resolv.h: Add libc_hidden_proto for __res_nclose.
2088 * resolv/res_init.c (__res_nclose): Add libc_hidden_def.
2089 (res_thread_freeres): New function, on __libc_thread_subfreeres and
2090 __libc_subfreeres.
2091
2092 * malloc/Versions (libc: GLIBC_PRIVATE): Add __libc_thread_freeres.
2093 * malloc/thread-freeres.c: New file.
2094 * malloc/Makefile (aux): Add it.
2095 * sunrpc/Versions (libc: GLIBC_PRIVATE): Removed.
2096 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Put in special section
2097 "__libc_thread_freeres_fn" and add to __libc_thread_subfreeres set.
2098
2099 * sysdeps/unix/sysv/linux/i386/geteuid.c (__geteuid): Typo fix.
2100 * sysdeps/unix/sysv/linux/i386/getgid.c (__getgid): Typo fix.
2101
2102 2003-02-21 Roland McGrath <roland@frob.com>
2103
2104 * sysdeps/mach/hurd/opendir.c (__opendir): Use O_NONBLOCK in open.
2105
2106 * iconvdata/Makefile (tests): Add bug-iconv3 only if
2107 [$(have-thread-library) = yes].
2108
2109 2003-02-21 Ulrich Drepper <drepper@redhat.com>
2110
2111 * sysdeps/unix/sysv/linux/bits/signum.h (__SIGRTMAX): Define as _NSIG.
2112
2113 * sysdeps/unix/sysv/linux/i386/getuid.c: Use INTERNAL_SYSCALL and do
2114 not chechk for errors (unless testing for 32bit variant).
2115 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
2116 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
2117 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
2118
2119 2003-02-21 Jakub Jelinek <jakub@redhat.com>
2120
2121 * sysdeps/x86_64/dl-machine.h (elf_machine_rela) <R_X86_64_PC32>:
2122 Check for signed overflow, not unsigned.
2123
2124 * sysdeps/sparc/sparc64/elf/configure.in: New file.
2125 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (sysdep-CFLAGS):
2126 Use -fcall-used-g6, not -fcall-used-g7.
2127
2128 2003-02-21 Andreas Jaeger <aj@suse.de>
2129
2130 * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Fix setting of default
2131 mode.
2132
2133 * sysdeps/x86_64/fpu/fsetexcptflg.c (fesetexceptflag): Do not
2134 clear whole mxcsr but only exceptions.
2135
2136 2003-02-21 Roland McGrath <roland@redhat.com>
2137
2138 * Makerules: Filter $(install-lib-ldscripts) out of list of targets
2139 for libfoo.so that need $(make-link) rules.
2140
2141 2003-02-21 Roland McGrath <roland@frob.com>
2142
2143 * sysdeps/mach/hurd/bits/typesizes.h (__DEV_T_TYPE): Use __U32_TYPE
2144 to match existing struct stat layout in mig protocols.
2145
2146 2003-02-20 Ulrich Drepper <drepper@redhat.com>
2147
2148 * version.h (VERSION): Bump to 2.3.2.
2149
2150 * elf/Makefile (distribute): Add reldep9.c, tst-array1.exp,
2151 tst-array2.exp, tst-array4.exp, tst-array2dep.c, check-textrel.c,
2152 and dl-sysdep.h.
2153 * sysdeps/generic/Dist: Add sysdep-cancel.h.
2154 * sysdeps/powerpc/nofpu/Dist: Add soft-supp.h.
2155 * sysdeps/unix/Dist: Add s-proto-bp.S and s-proto-cancel.S.
2156 * sysdeps/unix/sysv/linux/Dist: Add pathconf.h.
2157 * sysdeps/unix/sysv/linux/i386/Dist: Add bp-thunk.h.
2158 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add fe_nomask.c and
2159 ucontext_i.h.
2160 * Makefile (distribute): Add include/stubs-prologue.h,
2161 include/gnu/stubs.h, scripts/merge-abilist.awk, and
2162 scripts/extract-abilist.awk.
2163
2164 2003-02-20 Roland McGrath <roland@redhat.com>
2165
2166 * math/Makefile (distribute): Don't add generated files.
2167
2168 2003-02-20 Ulrich Drepper <drepper@redhat.com>
2169
2170 * math/Makefile: Rearrange variable definitions slightly to get
2171 definition in the right order.
2172
2173 2003-02-20 Roland McGrath <roland@redhat.com>
2174
2175 * Makerules: Clean up conditional around include of tls.make.
2176 * Make-dist: Export generating=t to prevent using that.
2177 (+distinfo): Likewise for $(shell $(MAKE) ...) runs.
2178
2179 2003-02-20 Ulrich Drepper <drepper@redhat.com>
2180
2181 * inet/rcmd.c (rresvport_af): Avoid using invliad values. Wrap
2182 around in search if port IPPORT_RESERVED/2 has been test.
2183
2184 2002-02-20 Paolo Bonzini <bonzini@gnu.org>
2185
2186 * posix/regcomp.c: Remove inclusions.
2187 * posix/regexec.c: Likewise.
2188 * posix/regex_internal.c: Likewise.
2189 * posix/regex_internal.h: Add inclusions here.
2190 * posix/regex.c: Only include sys/types.h before regex.h. Include
2191 regex_internal.h here. Include regex_internal.c before regcomp.c
2192 and regexec.c (might expose more opportunities to the C compiler).
2193
2194 * posix/regcomp.c (parse_expression): Fix construct rejected by SGI CC.
2195
2196 * posix/regex_internal.h [!_LIBC] (__mempcpy): Fix typo.
2197 [!_LIBC] (__wcrtomb): New definition.
2198 [!_LIBC]: Conditionalize enabling of I18N on HAVE_WCSCOLL and
2199 HAVE_LOCALE_H as well.
2200
2201 2003-02-20 Ulrich Drepper <drepper@redhat.com>
2202
2203 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Remove obsolete
2204 patch to check for system call errors.
2205
2206 2002-07-24 Philip Blundell <philb@gnu.org>
2207
2208 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Yield ENODEV
2209 on unknown systems.
2210
2211 2003-02-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2212
2213 * sysdeps/powerpc/powerpc32/atomicity.h: Remove compiler workaround.
2214 * sysdeps/unix/sysv/linux/kernel-features.h
2215 (__ASSUME_NEW_PRCTL_SYSCALL): Defined for ppc32 too.
2216 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Use prctl
2217 if possible.
2218 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Avoid short
2219 interprocedure branches.
2220 * sysdeps/powerpc/soft-fp/Dist (sim-full.c, fenv_const.c): Move to...
2221 * sysdeps/powerpc/nofpu/Dist: ...here.
2222 * sysdeps/unix/sysv/linux/powerpc/Dist (fe_nomask.c): Move to...
2223 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
2224 * sysdeps/unix/sysv/linux/s390/s390-64/Dist (kernel_stat.h): Delete.
2225 * sysdeps/unix/sysv/linux/sparc/Dist (bits/utmpx.h): Delete.
2226 * sysdeps/unix/sysv/linux/x86_64/Dist (bits/utmpx.h): Delete.
2227
2228 2003-02-18 Alan Modra <amodra@bigpond.net.au>
2229
2230 * sysdeps/powerpc/powerpc32/sysdep.h (HIDDEN_JUMPTARGET): Redefine.
2231
2232 2003-02-20 Philip Blundell <philb@gnu.org>
2233
2234 * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Add
2235 missing arguments to INTERNAL_SYSCALL_ERROR_P and
2236 INTERNAL_SYSCALL_ERRNO.
2237
2238 2003-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
2239
2240 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__real_chown): Test
2241 for __ASSUME_32BITUIDS.
2242
2243 2003-02-20 Andreas Schwab <schwab@suse.de>
2244
2245 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Add MADV_* and
2246 POSIX_MADV_* constants.
2247
2248 2003-02-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2249
2250 * sysdeps/unix/sysv/linux/sh/pread.c: New file.
2251 * sysdeps/unix/sysv/linux/sh/pread64.c: New file.
2252 * sysdeps/unix/sysv/linux/sh/pwrite.c: New file.
2253 * sysdeps/unix/sysv/linux/sh/pwrite64.c: New file.
2254
2255 2003-02-19 Jiro Sekiba <jir@yamato.ibm.com>
2256
2257 * iconvdata/utf-16.c (gconv_end): Fix range of low surrogate.
2258
2259 2003-02-16 Roland McGrath <roland@redhat.com>
2260
2261 * signal/signal.h: Include <sys/ucontext.h>, not <ucontext.h>.
2262
2263 2003-02-19 Ulrich Drepper <drepper@redhat.com>
2264
2265 * stdlib/strtod.c (INTERNAL): Up the safety margin for cutting off
2266 decimal input digits.
2267 * stdlib/tst-strtod.c (main): Add test for strtof bug.
2268
2269 2003-02-18 Ulrich Drepper <drepper@redhat.com>
2270
2271 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Recognize
2272 invalid file descriptors and missing access permissions.
2273
2274 2003-02-17 Ulrich Drepper <drepper@redhat.com>
2275
2276 * nss/getXXbyYY_r.c (REENTRANT_NAME): Return 0 if no entry has
2277 been found.
2278
2279 * sysdeps/posix/sysconf.c (__sysconf): Test for LOGIN_NAME_MAX and
2280 TTY_NAME_MAX and not the _POSIX_* minimal value macros.
2281 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
2282 and LOGIN_NAME_MAX.
2283
2284 2003-02-17 Kevin B. Hendricks <kevin.hendricks@sympatico.ca>
2285 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2286
2287 * sysdeps/powerpc/elf/libc-start.c: Handle NONTLS_INIT_TP.
2288 * sysdeps/powerpc/powerpc32/__longjmp.S: Remove R2 handling.
2289 * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
2290 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
2291 * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
2292
2293 2003-02-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2294
2295 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Delete.
2296 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Delete.
2297 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Delete.
2298 * sysdeps/unix/sysv/linux/powerpc/pread.c: Delete.
2299 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Delete.
2300 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Delete.
2301
2302 * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: Move file...
2303 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: ...here.
2304 * sysdeps/unix/sysv/linux/powerpc/glob64.c: Move file...
2305 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
2306
2307 * sysdeps/unix/sysv/linux/tcgetattr.c: Use INLINE_SYSCALL.
2308 * sysdeps/unix/sysv/linux/tcsetattr.c: Likewise.
2309 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Delete.
2310 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Delete.
2311
2312 2003-02-14 Thorsten Kukuk <kukuk@suse.de>
2313
2314 * nss/getent.c (print_hosts): Print all IP addresses of one host.
2315
2316 2003-02-15 Roland McGrath <roland@frob.com>
2317
2318 * sysdeps/mach/hurd/tls.h: New file.
2319 * sysdeps/mach/hurd/i386/tls.h: New file.
2320
2321 * mach/errsystems.awk: Include <errno.h> in generated output.
2322
2323 * sysdeps/mach/Makefile (mach-before-compile rule): Pass generating=t,
2324 use target mach-before-compile instead of generated.
2325 (mach-before-compile): New target.
2326 * Makerules: Disable use of tls.make if $(generating) is set.
2327 * mach/Makefile: Include mach-syscalls.mk even if no_deps=t.
2328 * sysdeps/mach/hurd/Makefile: Make generated hurd headers depend on
2329 mach-shortcuts.h so mach/ generation happens before hurd/.
2330
2331 2003-02-14 Ulrich Drepper <drepper@redhat.com>
2332
2333 * sysdeps/i386/fpu/s_nextafterl.c: Decrement high word of mantissa
2334 of demorm correctly if low word is zero.
2335 Reported by Fred J. Tydeman <tydeman@tybor.com>.
2336 * math/libm-test.inc (nextafter_test): New test, but disabled due
2337 to gcc bug.
2338
2339 * sysdeps/generic/libc-start.c [HAVE_PTR_NTHREADS]: Decrement thread
2340 counter and only call __exit_thread if this is not the last thread.
2341
2342 2003-02-13 Jakub Jelinek <jakub@redhat.com>
2343
2344 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Add instead of
2345 subtracting map->l_tls_offset.
2346
2347 2003-02-12 Ulrich Drepper <drepper@redhat.com>
2348
2349 * sysdeps/generic/bits/confname.h: Define _CS_GNU_LIBC_VERSION and
2350 _CS_GNU_LIBPTHREAD_VERSION.
2351 * posix/conststr.c: Handle these new values.
2352 * posix/getconf.c: Likewise.
2353
2354 * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Fix
2355 masking of version index.
2356 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
2357
2358 2003-02-11 Ulrich Drepper <drepper@redhat.com>
2359
2360 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Compute alignment
2361 correctly. Reported by Thorsten Kukuk.
2362
2363 2003-02-10 Ulrich Drepper <drepper@redhat.com>
2364
2365 * elf/Makefile (check-textrel-CFLAGS): Pass _XOPEN_SOURCE and
2366 _BSD_SOURCE to compiler.
2367 * elf/check-textrel.c (SWAP): Add parenthesis to avoid warnings.
2368 Patches by Alan Modra.
2369
2370 2003-02-08 Ulrich Drepper <drepper@redhat.com>
2371
2372 * io/ftwtest.c: Get current working directory before and after the
2373 nftw call and make sure they match.
2374
2375 2003-02-08 Jim Meyering <jim@meyering.net>
2376
2377 * io/ftw.c (ftw_startup): When using FTW_CHDIR, always remember
2378 the current directory, not just when DIR contains a slash.
2379 Reported by Manoj Srivastava.
2380
2381 2003-02-07 Jim Meyering <jim@meyering.net>
2382
2383 * io/ftw.c: Add autoconf-recommended block of alloca-related code.
2384 Include autoconf-recommended block of dirent/NAMELEN-related
2385 definitions and includes. Use NAMELEN throughout, rather than
2386 _D_EXACT_NAMLEN.
2387 [_LIBC]: Define NAMELEN to _D_EXACT_NAMLEN.
2388 [!_LIBC] (__getcwd): Define to xgetcwd and declare xgetcwd.
2389 (stpcpy): Declare, if necessary.
2390 (mempcpy): Define, if necessary.
2391 [!_LIBC] (__stpcpy, __mempcpy): Define.
2392 [!_LIBC] (LXSTAT, XSTAT): Define.
2393 (lstat) [!LIBC && !LSTAT_FOLLOWS_SLASHED_SYMLINK]: Define to rpl_lstat.
2394 (find_object): Don't use c99-style struct initializer.
2395 Tweak wording in a couple comments.
2396
2397 2003-02-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2398
2399 * elf/tls-macros.h: Add non-PIC TLS macros and fix clobber list
2400 for SH.
2401 * sysdeps/unix/sysv/linux/sh/brk.c: Add SYSCALL_INST_PAD
2402 after the trapa instruction.
2403 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Add additional
2404 parameters.
2405 * sysdeps/unix/sysv/linux/sh/sh4/sysdep.h: New file.
2406 (NEED_SYSCALL_INST_PAD): Define.
2407 * sysdeps/unix/sysv/linux/sh/sys/user.h (start_thread): Undef to
2408 avoid to use definition for the kernel.
2409 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
2410 Save and restore the frame pointer.
2411 (SYSCALL_INST_PAD): Define.
2412 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
2413 (INTERNAL_SYSCALL): Make use of ERR parameter. Add SYSCALL_INST_PAD
2414 after trapa instruction.
2415 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
2416 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
2417
2418 2003-02-07 Jakub Jelinek <jakub@redhat.com>
2419
2420 * resolv/res_libc.c (_res): Ensure _res is not common symbol,
2421 so that it can have aliases.
2422 * inet/herrno.c (h_errno): Put it into .bss not .data section.
2423
2424 2003-02-07 Ulrich Drepper <drepper@redhat.com>
2425
2426 * elf/dl-runtime.c (fixup): Correct typo in version index computation.
2427 (profile_fixup): Likewise.
2428 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
2429
2430 2002-11-24 Robert Love <rml@tech9.net>
2431
2432 * posix/sched.h: Second parameter of sched_setaffinity and
2433 sched_getaffinity is `unsigned int', not `unsigned long'.
2434 * sysdeps/generic/sched_setaffinity.c: Likewise.
2435 * sysdeps/generic/sched_getaffinity.c: Likewise.
2436
2437 2003-02-05 Ulrich Drepper <drepper@redhat.com>
2438
2439 * debug/catchsegv.sh: Fix typo in error messsage.
2440 Reported by John Levon <levon@movementarian.org>.
2441
2442 * sysdeps/unix/sysv/linux/posix_fadvise.c: New file.
2443 * sysdeps/unix/sysv/linux/syscalls.list: Add posix_fadvise64 syscall.
2444 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
2445 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2446 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
2447 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2448 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2449
2450 * libio/putwc_u.c: Use _IO_putwc_unlocked, not _IO_putc_unlocked.
2451 Patch by Moritz Schulte <moritz@duesseldorf.ccc.de>.
2452
2453 2003-02-05 Jim Meyering <jim@meyering.net>
2454
2455 Fix a heap-corrupting bug.
2456 * io/ftw.c: Include <limits.h>.
2457 (PATH_MAX) [!defined PATH_MAX]: Define to 1024.
2458 (process_entry): Allocate enough space to hold the resulting
2459 file name. Don't presume that 2*dirbufsize is enough.
2460 (ftw_startup): Always use PATH_MAX to compute buffer size, now that
2461 it is guaranteed to be defined.
2462
2463 2003-02-04 Ulrich Drepper <drepper@redhat.com>
2464
2465 * iconvdata/Makefile: Add rules to build and run bug-iconv3.
2466 * iconvdata/bug-iconv3.c: New file.
2467
2468 2003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com>
2469
2470 * sysdeps/unix/sysv/linux/s390/system.c: New file.
2471
2472 2003-02-03 Jakub Jelinek <jakub@redhat.com>
2473
2474 * sysdeps/sparc/sparc32/elf/configure.in (BROKEN_SPARC_WDISP22): New
2475 check.
2476 * config.h.in (BROKEN_SPARC_WDISP22): Add.
2477
2478 2003-02-03 Ulrich Drepper <drepper@redhat.com>
2479
2480 * sysdeps/i386/i686/memmove.S: New file.
2481
2482 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
2483
2484 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c:
2485 Include kernel-features.h
2486 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
2487 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
2488 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
2489 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
2490
2491 2003-02-02 Jakub Jelinek <jakub@redhat.com>
2492
2493 * elf/tls-macros.h [sparc] (TLS_LD, TLS_GD): Add "cc" clobbers.
2494
2495 2003-01-25 Jim Meyering <jim@meyering.net>
2496
2497 * io/ftw.c (object_compare): Compare inode numbers before device
2498 numbers, since the former are much more likely to differ.
2499
2500 2003-02-01 Ulrich Drepper <drepper@redhat.com>
2501
2502 * time/tzfile.c (__tzfile_compute): Change return value type to
2503 void. Adjust return statements.
2504 * include/time.h (__tzfile_compute): Adjust prototype.
2505
2506 2003-02-01 Jim Meyering <jim@meyering.net>
2507
2508 * time/tzset.c (__tz_convert): Remove dead code; __tzfile_compute
2509 always returns 1.
2510
2511 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
2512
2513 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
2514 [!__ASSUME_NEW_PRCTL_SYSCALL]: Noop prctl syscall and set ENOSYS.
2515
2516 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
2517
2518 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
2519 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Generate ENOSYS stub.
2520 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
2521 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
2522 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
2523 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
2524 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
2525 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
2526
2527 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
2528
2529 * sysdeps/unix/sysv/linux/configure.in: Change arch_minimum_kernel
2530 back to 2.4.19 for powerpc64.
2531 * sysdeps/unix/sysv/linux/kernel-features.h
2532 (__ASSUME_NEW_PRCTL_SYSCALL): Define for powerpc64.
2533 (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Define for powerpc64.
2534
2535 2003-02-01 Ulrich Drepper <drepper@redhat.com>
2536
2537 * wcsmbs/wcscpy.c (wcscpy): Add alternative implementation for
2538 platforms with strange alignment requirements on wchar_t.
2539
2540 2003-01-31 Andreas Schwab <schwab@suse.de>
2541
2542 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove __GI_*
2543 aliases, already added by make-syscalls.sh.
2544 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2545 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
2546 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
2547 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2548 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2549 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2550 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
2551 * sysdeps/unix/inet/syscalls.list: Likewise.
2552 * sysdeps/unix/syscalls.list: Likewise.
2553
2554 2003-01-31 Andreas Schwab <schwab@suse.de>
2555
2556 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Don't define, not needed
2557 any more.
2558
2559 2003-01-30 Jakub Jelinek <jakub@redhat.com>
2560
2561 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Use lg,
2562 not l to load tls from stack.
2563
2564 2003-01-30 Roland McGrath <roland@redhat.com>
2565
2566 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Move check for
2567 null argument before all else.
2568 Reported by Martin Schwidefsky <schwidefsky@de.ibm.com>.
2569
2570 2003-01-30 Jakub Jelinek <jakub@redhat.com>
2571
2572 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_lazy_rel):
2573 Move to RESOLVE protected part of the header.
2574 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_lazy_rel):
2575 Likewise.
2576
2577 2003-01-30 Ulrich Drepper <drepper@redhat.com>
2578
2579 * stdio-common/Makefile (tests): Add bug15.
2580 (bug15-ENV): Define.
2581 * stdio-common/bug15.c: New file.
2582
2583 2002-10-07 Wolfram Gloger <wg@malloc.de>
2584
2585 * malloc/malloc.c (sYSMALLOc): Only check for breakage due
2586 to foreign sbrk()'s if arena is contiguous. Bug report from
2587 Bruno Haible <bruno@clisp.org>.
2588
2589 2003-01-30 Jakub Jelinek <jakub@redhat.com>
2590
2591 * sysdeps/s390/libc-tls.c: Include stdlib.h.
2592
2593 2003-01-30 Jakub Jelinek <jakub@redhat.com>
2594
2595 * stdio-common/vfprintf.c (vfprintf): Only subtract lowest 3 bits of
2596 ps.__count.
2597
2598 2003-01-30 Ulrich Drepper <drepper@redhat.com>
2599
2600 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Fix storing and
2601 restoring of %r6.
2602 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise. Use
2603 64-bit load.
2604 Patch by Martin Schwidefsky <schwidefsky@de.ibm.com>.
2605
2606 2003-01-30 Jakub Jelinek <jakub@redhat.com>
2607
2608 * elf/dl-reloc.c (CHECK_STATIC_TLS): Move _dl_signal_error...
2609 (allocate_static_tls): ...here. Add __attribute_noinline__.
2610 Don't return on failure.
2611 (_dl_reloc_bad_type): Add __attribute_noinline__.
2612 * elf/do-rel.h (elf_dynamic_do_rel): Add
2613 __attribute__((always_inline)).
2614 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
2615 elf_machine_rel_relative, elf_machine_rela_relative,
2616 elf_machine_lazy_rel): Add prototypes with
2617 __attribute__((always_inline)).
2618
2619 2003-01-29 David Mosberger <davidm@hpl.hp.com>
2620
2621 * elf/dl-support.c (_dl_aux_init): Handle AT_SYSINFO.
2622
2623 2003-01-29 Roland McGrath <roland@redhat.com>
2624
2625 * configure.in: Barf if configured in $srcdir.
2626
2627 2003-01-28 Steven Munroe <sjmunroe@us.ibm.com>
2628
2629 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
2630 (__fe_nomask_env): Change __prctl call to INTERNAL_SYSCALL.
2631
2632 2003-01-28 Martin Schwidefsky <schwidefsky@de.ibm.com>
2633
2634 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Reorder additional
2635 clone parameters to match the order used on ia32.
2636 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
2637
2638 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
2639
2640 * elf/elf.h: Add new s390 relocs.
2641 * elf/tls-macros.h: Add s390 versions.
2642 * sysdeps/s390/Versions [GLIBC_2.3] (ld): Export __tls_get_offset.
2643 * sysdeps/s390/dl-tls.h: New file.
2644 * sysdeps/s390/libc-tls.c: New file.
2645 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class): Add TLS
2646 relocs for class PLT.
2647 (elf_machine_rela): Handle TLS relocs.
2648 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
2649 * sysdeps/s390/s390-32/elf/configure.in: Add TLS check.
2650 * sysdeps/s390/s390-64/elf/configure.in: Likewise.
2651 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Add support for
2652 CLONE_CHILD_*TID flags.
2653 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
2654 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Use branch with 32
2655 bit offset.
2656 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
2657 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
2658 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
2659 Support USE___THREAD. Define RTLD_PRIVATE_ERRNO variant.
2660 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
2661 Likewise.
2662 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
2663 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER.
2664 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
2665 variants.
2666 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h:
2667 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER. Use
2668 direct branch to syscall_error for !PIC and PIC && !_LIBC_REENTRANT.
2669 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
2670 variants.
2671
2672 2003-01-28 Ulrich Drepper <drepper@redhat.com>
2673
2674 * sysdeps/unix/common/pause.c (do_pause): New function. Split
2675 from __libc_pause. Implement using sigsuspend.
2676 (__libc_pause): Call do_pause to do the real work.
2677
2678 * sysdeps/posix/sigpause.c (do_sigpause): Check range of
2679 sig_or_mask parameter is is_sig != 0.
2680
2681 2003-01-21 Philip Blundell <philb@gnu.org>
2682
2683 * sysdeps/unix/sysv/linux/bits/ioctls.h (SIOCSIFNAME): Define.
2684
2685 2003-01-27 Steven Munroe <sjmunroe@us.ibm.com>
2686
2687 * stdio-common/Makefile: Add bug14-ENV to set LOCPATH for make check.
2688
2689 2003-01-27 Ulrich Drepper <drepper@redhat.com>
2690
2691 * stdio-common/bug14.c: Use official name for the locale.
2692
2693 * stdio-common/vfprintf.c [USE_IN_LIBIO]: Use _IO_cleanup_region_start
2694 instead of __libc_cleanup_region_start and _IO_cleanup_region_end
2695 instead of __libc_cleanup_region_end.
2696
2697 * sysdeps/unix/sysv/linux/i386/system.c (CLEANUP_HANDLER): Pass 1
2698 as first parameter to __libc_cleanup_region_start.
2699
2700 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
2701 (__fe_nomask_env): Use __prctl not prctl.
2702 * sysdeps/unix/sysv/linux/syscalls.list: Add __prctl alias for
2703 prctl syscall.
2704
2705 * elf/dl-reloc.c (CHECK_STATIC_TLS): Improve error message.
2706
2707 * elf/dl-open.c (_dl_tls_static_size): Bump to 2048.
2708
2709 * elf/dl-reloc.c (allocate_static_tls): Avoid arithmetic
2710 wrap-around in test.
2711
2712 2003-01-26 Andreas Schwab <schwab@suse.de>
2713
2714 * sysdeps/wordsize-32/divdi3.c: Export the functions only as
2715 compatibility symbols. Remove INTDEF for __divdi3.
2716 * sysdeps/wordsize-32/lldiv.c: Don't use __divdi3_internal.
2717 * sysdeps/powerpc/powerpc32/divdi3.c: Remove.
2718 * sysdeps/powerpc/powerpc32/Makefile (CPPFLAGS-divdi3.c): Don't
2719 define.
2720 * sysdeps/powerpc/powerpc32/Dist: Remove divdi3.c.
2721
2722 2003-01-24 Jakub Jelinek <jakub@redhat.com>
2723
2724 * elf/tls-macros.h: Add SPARC 32-bit definitions.
2725 * sysdeps/sparc/sparc32/elf/configure.in: Add TLS check.
2726 * sysdeps/sparc/sparc32/dl-machine.h: Add dl_machine_h guards
2727 for the first half of the header. Include tls.h.
2728 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS
2729 relocs too.
2730 (elf_machine_rela): Handle TLS relocs.
2731 * sysdeps/sparc/dl-tls.h: New file.
2732
2733 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Add cancellation
2734 support.
2735
2736 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Use %g6 instead of %g7.
2737 * sysdeps/sparc/sparc32/memchr.S: Likewise.
2738 * sysdeps/sparc/sparc32/memcpy.S: Likewise.
2739 * sysdeps/sparc/sparc32/strcat.S: Likewise.
2740 * sysdeps/sparc/sparc32/strchr.S: Likewise.
2741 * sysdeps/sparc/sparc32/strcmp.S: Likewise.
2742 * sysdeps/sparc/sparc32/strcpy.S: Likewise.
2743 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
2744 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
2745 * sysdeps/sparc/sparc64/memcpy.S: Likewise.
2746 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
2747 * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
2748 * sysdeps/sparc/sparc64/strcat.S: Likewise.
2749 * sysdeps/sparc/sparc64/strchr.S: Likewise.
2750 * sysdeps/sparc/sparc64/strcmp.S: Likewise.
2751 * sysdeps/sparc/sparc64/strcpy.S: Likewise.
2752 * sysdeps/sparc/sparc64/strncmp.S: Likewise.
2753 * sysdeps/sparc/sparc64/strncpy.S: Likewise.
2754 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
2755 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
2756
2757 2003-01-24 Andreas Schwab <schwab@suse.de>
2758
2759 * elf/dl-close.c (_dl_close): Don't relocate DT_FINI_ARRAY
2760 elements, and process them backwards.
2761 * elf/Makefile ($(objpfx)tst-array4): New target.
2762 ($(objpfx)tst-array4.out): Likewise.
2763 (tests) [$(have-initfini-array) = yes]: Add tst-array4.
2764 * elf/tst-array4.c: New file.
2765 * elf/tst-array4.exp: Likewise.
2766
2767 2003-01-24 Steven Munroe <sjmunroe@us.ibm.com>
2768
2769 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: New file.
2770
2771 2003-01-27 Guido Guenther <agx@sigxcpu.org>
2772
2773 * sysdeps/unix/sysv/linux/mips/sysdep.h (SYSCALL_ERROR_LABEL): Define.
2774 * sysdeps/unix/sysv/linux/mips/pread.c: Add support for
2775 cancellation handling and handle both __NR_pread64 and __NR_pread.
2776 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
2777 * sysdeps/unix/sysv/linux/mips/pwrite.c: Add support for
2778 cancellation handling and handle both __NR_pwrite64 and __NR_pwrite.
2779 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
2780 * sysdeps/unix/mips/sysdep.S: Don't set errno in the _LIBC_REENTRANT
2781 case, use register names consistently.
2782
2783 2003-01-27 Wolfram Gloger <wg@malloc.de>
2784
2785 * malloc/hooks.c (mem2chunk_check): Check alignment of mem
2786 pointer, not of the computed chunk. Bug report from Carlos
2787 O'Donell <carlos@baldric.uwo.ca>.
2788
2789 2003-01-25 Andreas Schwab <schwab@suse.de>
2790
2791 * sysdeps/m68k/dl-machine.h (_dl_start_user): Use pc-relative
2792 addressing to save GOT entries.
2793
2794 2003-01-21 Jakub Jelinek <jakub@redhat.com>
2795
2796 * sysdeps/unix/alpha/sysdep.h (inline_syscall0,
2797 inline_syscall1, inline_syscall2, inline_syscall3,
2798 inline_syscall4, inline_syscall5, inline_syscall6): Add __volatile__.
2799 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INTERNAL_SYSCALL): Add
2800 __attribute__((unused)) to ChEcK.
2801
2802 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
2803
2804 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL):
2805 Fix inline assembler constraints.
2806 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL):
2807 Likewise.
2808
2809 * sysdeps/s390/s390-64/Makefile (pic-ccflag): Use -fpic instead of
2810 -fPIC.
2811
2812 2003-01-20 Segher Boessenkool <segher@koffie.nl>
2813
2814 * sysdeps/ieee754/dbl-64/sincos32.c (__mpcos): Really
2815 compute the cosine, not the sine, even if x > 0.8.
2816
2817 2003-01-19 Ulrich Drepper <drepper@redhat.com>
2818
2819 * nis/nss_nis/nis-spwd.c: Make _nss_nis_endspent an alias of
2820 _nss_nis_setspent. Work around the different prototypes.
2821 * nis/nss_nis/nis-rpc.c (internal_nis_setrpcent): Use
2822 internal_nis_endrpcent.
2823 (internal_nis_endrpcent): Change return type to void. Change callers.
2824 * nis/nss_nis/nis-pwd.c: Make _nss_nis_endpwent an alias of
2825 _nss_nis_setpwent. Work around the different prototypes.
2826 * nis/nss_nis/nis-proto.c (_nss_nis_endprotoent): Split out body
2827 of the function to...
2828 (internal_nis_endprotoent): ... here. New function.
2829 (internal_nis_setprotoent): Use internal_nis_endprotoent.
2830 * nis/nss_nis/nis-network.c: Make _nss_nis_endnetent an alias of
2831 _nss_nis_setnetent. Work around the different prototypes.
2832 * nis/nss_nis/nis-netgrp.c (_nss_nis_endnetgrent): Split out body
2833 of the function to...
2834 (internal_nis_endnetgrent): ... here. New function.
2835 (_nss_nis_setnetgrent): Use internal_nis_endnetgrent.
2836
2837 2003-01-19 Jim Meyering <jim@meyering.net>
2838
2839 * time/strftime.c: (widen): Merge nearly-identical definitions.
2840 (nl_get_alt_digit) [! defined my_strftime]: Define.
2841 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
2842 _nl_get_alt_digit and _nl_get_walt_digit.
2843
2844 2003-01-19 Ulrich Drepper <drepper@redhat.com>
2845
2846 * time/strftime.c (my_strftime): Handle very large width
2847 specifications for numeric values correctly. Improve checks for
2848 overflow.
2849 * time/Makefile (tests): Add tst-strftime.
2850 * time/tst-strftime.c: New file.
2851
2852 2003-01-18 Ulrich Drepper <drepper@redhat.com>
2853
2854 * nis/nss_nis/nis-hosts.c: Make _nss_nis_endhostent an alias of
2855 _nss_nis_sethostent. Work around the different prototypes.
2856 * nis/nss_nis/nis-grp.c: Make _nss_nis_endgrent an alias of
2857 _nss_nis_setgrent. Work around the different prototypes.
2858 * nis/nss_nis/nis-ethers.c (internal_nis_endetherent): New
2859 function. Split out from _nss_nis_endetherent.
2860 (internal_nis_setetherent): Use internal_nis_endetherent instead of
2861 duplicating the code.
2862 * nis/nss_nis/nis-alias.c: Make _nss_nss_nis_endaliasent an alias
2863 of _nss_nis_setaliasent.
2864 * nis/nss_nis/nis-service.c (internal_nis_setservent): Reuse
2865 internal_nis_endservent code, don't duplicate it.
2866
2867 * inet/rexec.c (rexec_af): Protect socket operations with
2868 TEMP_FAILURE_RETRY. Use writev instead of multiple write.
2869 * inet/rcmd.c (rcmd_af): Likewise.
2870
2871 2003-01-17 Roland McGrath <roland@redhat.com>
2872
2873 * math/libm-test.inc (sin_test, cos_test, sincos_test) [TEST_DOUBLE]:
2874 Add test of value 0.80190127184058835.
2875
2876 * elf/dl-open.c: Fix typo ifdef -> ifndef on _dl_tls_static_size defn.
2877
2878 2003-01-17 Richard Henderson <rth@redhat.com>
2879
2880 * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Add TLS
2881 relocs for class PLT.
2882 * sysdeps/alpha/libc-tls.c: New file.
2883 * sysdeps/unix/alpha/sysdep.S (EPILOGUE, GPSAVEREG): New.
2884 (LOADGP) [!PIC]: Rewrite to preserve caller's gp.
2885
2886 2003-01-17 Jakub Jelinek <jakub@redhat.com>
2887
2888 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Use
2889 __libc_lock_{,un}lock_recursive instead of __libc_lock_{,un}lock
2890 on _dl_static_lock.
2891
2892 2003-01-17 Andreas Jaeger <aj@suse.de>
2893
2894 * stdio-common/bug14.c: Include stdlib.h for exit prototype.
2895
2896 2003-01-16 Steven Munroe <sjmunroe@us.ibm.com>
2897
2898 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: New file.
2899 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: New file.
2900 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: New file.
2901 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: New file.
2902 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h: New file.
2903 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: New file.
2904 * sysdeps/unix/sysv/linux/configure.in: Minimum kernel for PPC64
2905 is 2.4.21.
2906
2907 2003-01-16 Ulrich Drepper <drepper@redhat.com>
2908
2909 * sysdeps/generic/glob.c (glob): Assume sysconf() always returns
2910 values != -1 for _LIBC. Use extend_alloca to reallocate alloca'ed
2911 buffers.
2912
2913 * sysdeps/generic/sysconf.c: Unconditionally implement
2914 _SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX.
2915 * sysdeps/posix/sysconf.c: Likewise.
2916
2917 2003-01-16 Jakub Jelinek <jakub@redhat.com>
2918
2919 * posix/regcomp.c (parse_bracket_exp): If build_charclass fails,
2920 set *err to the returned error, not to REG_ESPACE unconditionally.
2921 (build_word_op): Likewise.
2922 * posix/Makefile (tests): Add bug-regex16.
2923 * posix/bug-regex16.c: New test.
2924
2925 2003-01-16 Jakub Jelinek <jakub@redhat.com>
2926
2927 * elf/dl-load.c (_dl_map_object_from_fd): Use
2928 GL(dl_tls_dtv_slotinfo_list) != NULL to check whether TLS has
2929 been already initialized.
2930
2931 2003-01-15 Dmitry V. Levin <ldv@altlinux.org>
2932
2933 * sysdeps/unix/sysv/linux/ptsname.c: Fix typo in comment.
2934
2935 2003-01-16 Jakub Jelinek <jakub@redhat.com>
2936
2937 * posix/regcomp.c (re_compile_internal): If clearing buffer, clear
2938 allocated too. Reported by Al Viro <aviro@redhat.com>.
2939
2940 2003-01-16 Roland McGrath <roland@redhat.com>
2941
2942 Tweak merged .abilist file format to merge duplicate symbols in
2943 different sets into multi-version stanzas with new "| SET regexp..."
2944 header continuation lines.
2945 * scripts/merge-abilist.awk: Rewritten for new format.
2946 * scripts/extract-abilist.awk: Likewise.
2947
2948 2003-01-15 Ulrich Drepper <drepper@redhat.com>
2949
2950 * nscd/connections.c (nscd_run): Remove bogus return which isn't
2951 necessary with gcc 3.2+.
2952 (nscd_init): Don't use error() to print message, use dbg_log.
2953
2954 * iconv/gconv_simple.c (STORE_REST): Explicitly store the total
2955 expected size into state.
2956 (UNPACK_BYTES): Do the reverse.
2957 * iconv/loop.c: Use CLEAR_STATE if defined to clear __state element.
2958 * wcsmbs/tst-mbrtowc.c (utf8_test_1): Add test for the bug.
2959 Reported by Al Viro <aviro@redhat.com>.
2960
2961 * stdio-common/Makefile (tests): Add bug14.
2962 * stdio-common/bug14.c: New file.
2963
2964 * stdio-common/vfscanf.c: When recognizing multibyte characters in
2965 string reset the byte counter after mbrtowc reported it is not a
2966 partial character. Reported by Al Viro <aviro@redhat.com>.
2967
2968 2003-01-15 Steven Munroe <sjmunroe@us.ibm.com>
2969
2970 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Include
2971 sysdep-cancel.h, not sysdep.h.
2972
2973 2003-01-15 Ulrich Drepper <drepper@redhat.com>
2974
2975 * nscd/connections.c (nscd_run): Protect accept call with
2976 TEMP_FAILURE_RETRY.
2977
2978 2003-01-15 Andreas Schwab <schwab@suse.de>
2979
2980 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-bp.d.
2981 (common-generated): Add s-proto-bp.d.
2982 * sysdeps/unix/make-syscalls.sh: Use s-proto-bp.d for dependencies
2983 of bp thunks.
2984 * sysdeps/unix/s-proto-bp.S: New file.
2985 * sysdeps/generic/bp-thunks.h: Don't include <sys/vm86.h> here.
2986 Use <io/sys/sendfile.h> instead of <sys/sendfile.h>.
2987 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: New file.
2988
2989 2003-01-15 Roland McGrath <roland@redhat.com>
2990
2991 * Makerules: Use -include for tls.make, suppresses warning.
2992 Move gen-as-const-headers rules up so before-compile is set in time.
2993 (sed-remove-dotdot): Fix to work right for subdirs or top dir.
2994
2995 2003-01-15 Ulrich Drepper <drepper@redhat.com>
2996
2997 * nscd/nscd.c (main): Make code to close all file descriptors
2998 faster and more robust.
2999
3000 * nscd/nscd_getpw_r.c (nscd_getpw_r): Consolidate writing of the
3001 request with one writev call. Protect all read calls with
3002 TEMP_FAILURE_RETRY.
3003 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
3004 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
3005
3006 * nscd/hstcache.c: Use extend_alloca to reallocate alloca'd buffer.
3007 Protect writev calls with TEMP_FAILURE_RETRY.
3008 * nscd/grpcache.c: Likewise.
3009 * nscd/pwdcache.c: Likewise.
3010
3011 * nscd/hstcache.c (addhstbynamev6): Don't interpret hostname as
3012 IPv6 address in debug output.
3013
3014 2003-01-14 Roland McGrath <roland@redhat.com>
3015
3016 * Makerules (check-abi-%): Use two rules for $(common-objpfx) and
3017 $(objpfx) directories, and get rid of vpath directives. The previous
3018 arrangement resulted in files being written to the source directories
3019 when run in a clean build. Find all .abilist files in $(..)abilist/.
3020 (update-abi-%): Likewise.
3021 (generated): Don't add .symlist files, they'll be intermediates.
3022
3023 * sysdeps/generic/init-first.c: Add a comment.
3024
3025 * elf/Makefile ($(objpfx)ld.so): Pass -z defs in link.
3026
3027 * scripts/gen-as-const.awk: Grok lone "--" as a separator between
3028 #includes and expressions.
3029
3030 * scripts/merge-abilist.awk: Omit cpu-.*-os.*/modifier from merged
3031 config list when it already contains cpu-.*-os.* without / part.
3032
3033 * Makerules (sed-remove-dotdot): New variable.
3034 ($(common-objpfx)%.make): Use it. Depend on $(before-compile).
3035 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.
3036 (check-abi-config): New variable, append /tls or /notls to the tuple.
3037 (check-abi-%): Use that for -v config value.
3038 Find .abilist files in abilist/libfoo.abilist, not in subdir.
3039 * Rules: Move bits/stdio_lim.h generation rules to Makerules.
3040
3041 2003-01-14 Ulrich Drepper <drepper@redhat.com>
3042
3043 * manual/install.texi: Correct description of header preparation for
3044 Linux build. Patch by mhwood@Ameritech.Net [PR libc/4941].
3045
3046 2003-01-14 Guido Guenther <agx@sigxcpu.org>
3047
3048 * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_SYSCALL,
3049 INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
3050 INTERNAL_SYSCALL_ERROR_P, INLINE_SYSCALL): Define.
3051
3052 2003-01-14 Steven Munroe <sjmunroe@us.ibm.com>
3053
3054 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
3055 (INTERNAL_SYSCALL): Make use of ERR parameter.
3056 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
3057 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
3058 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
3059 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
3060
3061 2003-01-14 Ulrich Drepper <drepper@redhat.com>
3062
3063 * sunrpc/pm_getport.c (pmap_getport): Open TCP socket if protocol
3064 == IPPROTO_TCP.
3065 Patch by James Strandboge <jamie@tpptraining.com> [PR libc/4943].
3066
3067 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (_dl_x86_cap_flags):
3068 Fix entry for bit 31.
3069
3070 * iconvdata/Makefile: Add rules to build IBM866NAV.
3071 * iconvdata/ibm866nav.c: New file.
3072 * iconvdata/tst-tables.sh: Add IBM866NAV.
3073 * iconvdata/gconv-modules: Add entries for IBM866NAV.
3074
3075 2003-01-13 Ulrich Drepper <drepper@redhat.com>
3076
3077 * string/tester.c (test_strcpy): Use the previously #if 0'ed code
3078 to test void* parameters.
3079
3080 * sysdeps/i386/i486/bits/string.h (__STRING_SMALLL_GET16): Cast
3081 source pointer before dereferencing.
3082 (__STRING_SMALLL_GET32): Likewise.
3083 (__memset_gc): Add missing parenthesis around macro arguments.
3084 Patch by Denis Zaitsev <zzz@cd-club.ru>.
3085
3086 * sysdeps/i386/i486/bits/string.h (__strspn_cg): Tell the compiler
3087 that %eax is modified. Reported by Denis Zaitsev <zzz@cd-club.ru>.
3088
3089 2003-01-14 Jakub Jelinek <jakub@redhat.com>
3090
3091 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL): Undefined before
3092 defining.
3093
3094 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
3095
3096 * sysdeps/s390/s390-64/initfini.c: Avoid unterminated string literals.
3097 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (L): Don't define it
3098 here.
3099 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (L): Likewise.
3100
3101 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
3102
3103 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Move branch instructions
3104 from here...
3105 (PSEUDO): ... to here.
3106 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Move branch instruction
3107 from here...
3108 (PSEUDO): ... to here.
3109
3110 2003-01-13 Ulrich Drepper <drepper@redhat.com>
3111
3112 * locale/programs/charmap-dir.c (charmap_readdir): Use struct
3113 dirent64 instead of struct dirent for dirent. Call readdir64
3114 instead of readdir.
3115
3116 * locale/programs/locfile.c (siblings_uncached): Use struct
3117 dirent64 instead of struct dirent for other_dentry. Call
3118 readdir64 instead of readdir.
3119
3120 * elf/ldconfig.c (direntry): Change type to struct dirent64.
3121 (search_dir): Use readdir64 instead of readdir.
3122 Patch by Zhangfan Xing <xing@pacific.jpl.nasa.gov>.
3123
3124 2003-01-12 Roland McGrath <roland@redhat.com>
3125
3126 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use strtoul,
3127 not strtol. The former is usable in ld.so, the latter not.
3128
3129 * include/fcntl.h: Declare __libc_creat.
3130
3131 * sysdeps/mach/hurd/Makefile (libmachuser-link.so-no-z-defs,
3132 libhurduser-link.so-no-z-defs): New variables.
3133
3134 * malloc/malloc.c: Revert last change.
3135 * malloc/malloc.h (_int_*): Move these decls to ...
3136 * include/malloc.h: ... here. Add attribute_hidden.
3137 (_int_valloc): Declare it too.
3138
3139 2003-01-12 Ulrich Drepper <drepper@redhat.com>
3140
3141 * elf/dl-close.c (_dl_close): Fix typo, must be == not = in
3142 search for removed searchlist. Reported by Roland McGrath.
3143
3144 * io/ftwtest-sh: Add test for case of symlink to nonexisting file
3145 given as start file.
3146
3147 * io/ftw.c (ftw_startup): Use correct name in check for symlink
3148 without existing target. Patch by Jim Meyering.
3149
3150 * Makerules (build-shlib-helper): Don't use -z defs linker option
3151 if no-z-defs is defined either.
3152
3153 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
3154
3155 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Remove unused
3156 file.
3157
3158 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
3159
3160 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Add vfork.
3161 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3162
3163 2003-01-12 Ulrich Drepper <drepper@redhat.com>
3164
3165 * io/ftwtest-sh: Add test case for relative path with /. at the end.
3166
3167 2003-01-12 Jim Meyering <jim@meyering.net>
3168
3169 * io/ftw.c (ftw_startup): When trying to stat the starting directory,
3170 use the basename if we've already chdir'd into its parent directory.
3171
3172 2003-01-12 Ulrich Drepper <drepper@redhat.com>
3173
3174 * io/ftw.c (process_entry): Use relative path when using chdir()
3175 to change directory after call to ftw_dir.
3176 * io/ftwtest-sh: Add test for relative path argument to nftw()
3177 with FTW_CHDIR option.
3178
3179 2002-01-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3180
3181 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
3182 Define for powerpc.
3183 * sysdeps/unix/sysv/linux/powerpc/syscall.S: Take register alignment
3184 into account.
3185 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
3186 (INTERNAL_SYSCALL): Make use of ERR parameter.
3187 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
3188 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
3189 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
3190 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
3191
3192 2002-01-09 Richard Henderson <rth@redhat.com>
3193
3194 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Compute
3195 DTPREL64 and TPREL64 without loadbase applied.
3196
3197 2002-01-09 Richard Henderson <rth@redhat.com>
3198
3199 * sysdeps/unix/alpha/sysdep.S: Use correct definition of errno
3200 for NOT_IN_libc.
3201
3202 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Move inline syscall bits...
3203 * sysdeps/unix/alpha/sysdep.h: ... here.
3204 (PSEUDO_LOADGP): Remove.
3205 (PSEUDO_PROLOGUE): Load GP in non-pic case.
3206 (SYSCALL_ERROR_LABEL): New.
3207 (PSEUDO): Use it in error branch.
3208 (PSEUDO_END): Add $syscall_error label.
3209
3210 2003-01-12 Andreas Jaeger <aj@suse.de>
3211
3212 * math/bits/mathcalls.h: Round is a const function.
3213
3214 2003-01-11 Jim Meyering <jim@meyering.net>
3215
3216 * io/ftw.c [HAVE_CONFIG_H]: Include <config.h>.
3217 [HAVE_SYS_PARAM_H || _LIBC]: Guard inclusion of <sys/param.h>.
3218 Include <sys/stat.h>, not <include/sys/stat.h>, if !_LIBC.
3219 [!_LIBC] (__chdir, __closedir, __fchdir, __getcwd, __opendir): Define.
3220 [!_LIBC] (__readdir64, __tdestroy, __tfind, __tsearch): Define.
3221 [!_LIBC] (internal_function, dirent64, MAX): Define.
3222 (__set_errno): Define if not already defined.
3223 (open_dir_stream): When FTW_CHDIR is enabled, invoke opendir on
3224 the basename, not the entire file name.
3225 (process_entry): When FTW_CHDIR is enabled, invoke XSTAT or LXSTAT on
3226 the basename, not the entire file name.
3227
3228 2003-01-12 Ulrich Drepper <drepper@redhat.com>
3229
3230 * string/tester.c (test_strcpy): Disable last added strcpy until
3231 it is fixed.
3232
3233 2003-01-11 Philip Blundell <philb@gnu.org>
3234
3235 * sysdeps/unix/sysv/linux/arm/socket.S: Add cancellation support.
3236
3237 2003-01-11 Andreas Schwab <schwab@suse.de>
3238
3239 * Makerules: Add vpath for %.dynsym and %.so so that the
3240 implicit rule chaining for check-abi works.
3241
3242 2003-01-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3243
3244 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
3245 Add non-PIC case.
3246
3247 2003-01-11 Jakub Jelinek <jakub@redhat.com>
3248
3249 * elf/tls-macros.h [__ia64__] (__TLS_CALL_CLOBBERS): Define.
3250 [__ia64__] (TLS_LE, TLS_IE): Fix typos. Add ;; at start of asm if
3251 gp is used early.
3252 [__ia64__] (TLS_LD, TLS_GD): Likewise. Use __TLS_CALL_CLOBBERS.
3253 * elf/Makefile ($(objpfx)tst-tlsmod5.so, $(objpfx)tst-tlsmod6.so):
3254 Ensure libc.so in DT_NEEDED.
3255 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Move
3256 CHECK_STATIC_TLS before l_tls_offset use.
3257 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
3258 Likewise.
3259 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
3260 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage) [TLS_DTV_AT_TP]:
3261 Allocate TLS_PRE_TCB_SIZE bytes below result.
3262 (_dl_deallocate_tls) [TLS_DTV_AT_TP]: Adjust before freeing.
3263 * sysdeps/generic/libc-tls.c (__libc_setup_tls): If
3264 TLS_INIT_TP_EXPENSIVE is not defined, allocate even if no PT_TLS
3265 segment has been found. If TLS_DTV_AT_TP, allocate TLS_PRE_TCB_SIZE
3266 bytes below result and add tcb_offset to memsz.
3267 * sysdeps/ia64/dl-tls.h (__tls_get_addr): New prototype.
3268 * sysdeps/ia64/dl-machine.h: Include tls.h.
3269 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS relocs
3270 too.
3271 (elf_machine_rela): Assume if sym_map != NULL sym is non-NULL too.
3272 Handle R_IA64_DTPMOD*, R_IA64_DTPREL* and R_IA64_TPREL* relocations.
3273 * sysdeps/ia64/libc-tls.c: New file.
3274
3275 2003-01-10 Steven Munroe <sjmunroe@us.ibm.com>
3276
3277 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_RET): Add branch hit.
3278 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h (STAT_VER_LINUX):
3279 Fix type. Move definition out of #if.
3280 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ftruncate64.c: New file.
3281 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: New file.
3282 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: New file.
3283 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: New file.
3284 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: New file.
3285 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Add cancellation
3286 support.
3287 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Remove
3288 ftruncate64, pread64, pwrite64, truncate64 entries.
3289 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
3290 (INLINE_SYSCALL): New version that supports function call like
3291 syscalls. Add __builtin_expect.
3292 (LOADARGS_n): Add argument size safety checks.
3293 (INTERNAL_SYSCALL): New Macro.
3294 * sysdeps/unix/sysv/linux/powerpc/powerpc64/truncate64.c: New file.
3295 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [__PPC_ELF_H]: Avoid
3296 redefinition of elf_fpreg_t and elf_fpregset_t.
3297
3298 2003-01-12 Ulrich Drepper <drepper@redhat.com>
3299
3300 * elf/dl-close.c (_dl_close): Add several asserts. Correct and
3301 simplify test for unloading. If loader of a DSO is unloaded do not
3302 use its scope anymore. Fall back to own scope and adjust opencounts.
3303 Fix several comments.
3304 * elf/dl-deps.c (_dl_map_object_deps): Always allocate memory for
3305 the l_searchlist, not only for l_initfini.
3306
3307 * elf/dl-lookup.c (add_dependencies): Avoid creating relocation
3308 dependencies if objects cannot be removed. Remove object with the
3309 definition as not unloadable if necessary.
3310
3311 * elf/reldep6.c: Create relocation dependency before closing the first
3312 module.
3313
3314 2003-01-10 Guido Günther <agx@sigxcpu.org>
3315
3316 * sysdeps/unix/mips/fork.S: Add PSEUDO_END.
3317 * sysdeps/unix/mips/brk.S: Likewise.
3318 * sysdeps/unix/mips/pipe.S: Likewise.
3319
3320 2003-01-10 Andreas Schwab <schwab@suse.de>
3321
3322 * sysdeps/unix/sysv/linux/m68k/getsysstats.c: New file.
3323
3324 * sysdeps/unix/sysv/linux/m68k/vfork.S: Optimize for kernels which
3325 are known to have the vfork syscall.
3326
3327 * sysdeps/m68k/sysdep.h (JUMPTARGET): Undefine before defining it.
3328
3329 * sysdeps/unix/sysv/linux/kernel-features.h
3330 (__ASSUME_MMAP2_SYSCALL, __ASSUME_TRUNCATE64_SYSCALL)
3331 (__ASSUME_STAT64_SYSCALL, __ASSUME_FCNTL64)
3332 (__ASSUME_VFORK_SYSCALL): Define for m68k kernels >= 2.4.12.
3333
3334 2003-01-09 Jakub Jelinek <jakub@redhat.com>
3335
3336 * elf/Makefile: Add rules to build and run reldep9 test.
3337 * elf/reldep9.c: New file.
3338 * elf/reldep9mod1.c: New file.
3339 * elf/reldep9mod2.c: New file.
3340 * elf/reldep9mod3.c: New file.
3341
3342 2003-01-09 Jakub Jelinek <jakub@redhat.com>
3343
3344 * elf/Makefile: Add rules to build and run nodelete2 test.
3345 * elf/nodelete2.c: New file.
3346 * elf/nodel2mod1.c: New file.
3347 * elf/nodel2mod2.c: New file.
3348 * elf/nodel2mod3.c: New file.
3349
3350 2003-01-09 Jakub Jelinek <jakub@redhat.com>
3351
3352 * posix/test-vfork.c (noop): Add __attribute_noinline__.
3353 * sysdeps/generic/sysdep.h (JUMPTARGET): Define if not defined.
3354 * sysdeps/i386/sysdep.h (JUMPTARGET): Undefine JUMPTARGET before
3355 defining it.
3356 * sysdeps/powerpc/powerpc32/sysdep.h (JUMPTARGET): Likewise.
3357 * sysdeps/powerpc/powerpc64/sysdep.h (JUMPTARGET): Likewise.
3358 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Likewise.
3359 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Likewise.
3360 * sysdeps/x86_64/sysdep.h (JUMPTARGET): Likewise.
3361
3362 2003-01-09 Andreas Schwab <schwab@suse.de>
3363
3364 * sysdeps/m68k/fpu/libm-test-ulps: Regenerated.
3365
3366 2003-01-08 Ulrich Drepper <drepper@redhat.com>
3367
3368 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL,
3369 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
3370 argument.
3371 (INTERNAL_SYSCALL_DECL): Define.
3372
3373 2003-01-06 Jakub Jelinek <jakub@redhat.com>
3374
3375 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INTERNAL_SYSCALL,
3376 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
3377 argument.
3378 (INTERNAL_SYSCALL_DECL): Define.
3379 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
3380 * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
3381 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
3382 (INLINE_SYSCALL): Adjust.
3383 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
3384 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
3385 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
3386 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
3387 * elf/dl-misc.c (_dl_debug_vdprintf): Add INTERNAL_SYSCALL_DECL,
3388 add err argument to INTERNAL_SYSCALL* macros.
3389 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
3390 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Likewise.
3391 * sysdeps/unix/sysv/linux/m68k/brk.c (__brk): Likewise.
3392 * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
3393 Likewise.
3394 * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Likewise.
3395 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Use
3396 INLINE_SYSCALL instead of INTERNAL_SYSCALL and setting errno.
3397
3398 2003-01-07 Ulrich Drepper <drepper@redhat.com>
3399
3400 Unify symbols in user namespace exported by libc.so and libc.a.
3401 * argp/argp-fmtstream.c: Don't define argp_make_fmtstream,
3402 argp_fmtstream_free, and argp_fmtstream_printf.
3403 * argp/argp-fs-xinl.c: Don't define argp_fmtstream_putc,
3404 argp_fmtstream_puts, argp_fmtstream_write, argp_fmtstream_set_lmargin,
3405 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin, and
3406 argp_fmtstream_point.
3407 * gmon/gmon.c: Don't define write_profiling.
3408 * libio/genops.c: Don't define _cleanup.
3409
3410 * intl/explodename.c (_nl_find_language.c): Mark as static.
3411 * intl/loadinfo.h: Remove _nl_find_language prototype.
3412
3413 * libio/fileops.c (_IO_file_seekoff_maybe_mmap): Mark as static.
3414 * libio/libioP.h: Remove declaration.
3415
3416 * libio/iopopen.c (_IO_proc_jumps): Mark as static.
3417 * libio/libioP.h: Remove declaration.
3418
3419 * sysdeps/generic/unwind-dw2.c: Mark __frame_state_for with STATIC.
3420 * sysdeps/generic/framestate.c: Define STATIC before including
3421 unwind-dw2.c.
3422
3423 * time/Versions [GLIBC_2.3.2] (libc): Export strptime_l.
3424
3425 2003-01-06 Philip Blundell <philb@gnu.org>
3426
3427 * sysdeps/unix/arm/sysdep.S (syscall_error): Optimise a little.
3428 [__LIBC_REENTRANT]: Unify PIC and non-PIC cases.
3429
3430 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Remove .type
3431 directive.
3432 (PSEUDO_RET): Use SYSCALL_ERROR in place of __syscall_error.
3433 (SYSCALL_ERROR): New.
3434 (SYSCALL_ERROR_HANDLER) [NOT_IN_libc]: Provide local copy of error
3435 handling code.
3436 (INTERNAL_SYSCALL): Define.
3437 (INLINE_SYSCALL): Use it.
3438 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
3439 * sysdeps/unix/sysv/linux/arm/socket.S (__socket): Use
3440 SYSCALL_ERROR in place of __syscall_error.
3441
3442 2003-01-07 Jakub Jelinek <jakub@redhat.com>
3443
3444 * sysdeps/ia64/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
3445 __bswap_32, __bswap_64): Put x into temporary variable
3446 to avoid warnings.
3447 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
3448 (inline) functions.
3449 * sysdeps/s390/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
3450 __bswap_32, __bswap_64): Put x into temporary variable
3451 to avoid warnings.
3452 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
3453 (inline) functions.
3454 * sysdeps/i386/bits/byteswap.h [!__GNUC__] (__bswap_16, __bswap_32):
3455 Likewise.
3456
3457 2003-01-07 Jakub Jelinek <jakub@redhat.com>
3458
3459 * sysdeps/unix/sysv/linux/alpha/adjtime.c (ntp_adjtime): New weak
3460 alias.
3461
3462 2003-01-07 Jakub Jelinek <jakub@redhat.com>
3463
3464 * elf/rtld.c (_rtld_global): Remove _dl_dynamic_weak initializer.
3465 * elf/dl-support.c (_dl_dynamic_weak): Initialize to 0.
3466
3467 2003-01-07 Ulrich Drepper <drepper@redhat.com>
3468
3469 * math/libm-test.inc (significand_test): New function.
3470 (main): Call it.
3471
3472 2003-01-06 Roland McGrath <roland@redhat.com>
3473
3474 * sysdeps/i386/i486/bits/string.h (memset): Add parens around macro
3475 arguments.
3476 (memcpy, memrchr, strcpy, __stpcpy, strncpy, strcat): Likewise.
3477 (strcmp, strncat, strncmp, strchr, __strchrnul, strchrnul): Likewise.
3478 (index, strrchr, rindex, strcspn, strspn, strpbrk, strstr): Likewise.
3479
3480 * string/tester.c (test_strcpy): Add test with `void *' arguments.
3481
3482 2003-01-06 Ulrich Drepper <drepper@redhat.com>
3483
3484 * sysdeps/i386/fpu/s_significandl.c (__significandl): Really
3485 return significand and not the exponent.
3486 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
3487
3488 * elf/dl-misc.c (_dl_debug_vdprintf): Help PPC port by explicitly
3489 taking address of iov in INTERNAL_SYSCALL call. Patch by Franz Sirl.
3490
3491 * malloc/malloc.c: Mark all _int_* functions as static.
3492
3493 2003-01-06 Jakub Jelinek <jakub@redhat.com>
3494
3495 * sysdeps/unix/alpha/sysdep.h (PSEUDO): Use PSEUDO_PREPARE_ARGS.
3496 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add cancellation
3497 handling.
3498 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
3499
3500 2003-01-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3501
3502 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_RET): Add branch hint.
3503 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Add cancellation
3504 support.
3505 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Remove
3506 ftruncate64, truncate64, pread64 and pwrite64 entries.
3507 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
3508 (INLINE_SYSCALL): Add __builtin_expect.
3509 (LOADARGS_n): Add argument size safety checks.
3510 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: New file.
3511 * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: New file.
3512 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: New file.
3513 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: New file.
3514 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: New file.
3515 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: New file.
3516
3517 2003-01-06 Jakub Jelinek <jakub@redhat.com>
3518
3519 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Define.
3520 * sysdeps/generic/creat.c: Include sysdep-cancel.h.
3521 (LIBC_CANCEL_HANDLED): Add.
3522
3523 * sysdeps/unix/sysv/linux/alpha/sysdep.h
3524 (inline_syscall_r0_constraint): Rename to...
3525 (inline_syscall_r0_out_constraint): ... this. Add =.
3526 (inline_syscall[0-6]): Use inline_syscall_r0_out_constraint.
3527
3528 2003-01-06 Andreas Schwab <schwab@suse.de>
3529
3530 * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Make
3531 sure this is always inlined.
3532 (elf_machine_rela): Likewise.
3533
3534 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Increase inline limit.
3535
3536 2003-01-04 Roland McGrath <roland@redhat.com>
3537
3538 * Makeconfig (+mkdep): Add -MP flag.
3539 Suggested by Art Haas <ahaas@airmail.net>.
3540
3541 2003-01-05 Andreas Schwab <schwab@suse.de>
3542
3543 * sysdeps/m68k/Makefile (CFLAGS-.oS): Append -fPIC.
3544
3545 2003-01-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3546
3547 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Use
3548 SYSCALL_ERROR_HANDLER.
3549 * sysdeps/unix/sysv/linux/sh/pipe.S (__libc_pipe): Likewise.
3550 * sysdeps/unix/sysv/linux/sh/socket.S (__socket): Likewise.
3551 Add support for cancellation handling.
3552 * sysdeps/unix/sysv/linux/sh/syscall.S (__syscall): Use
3553 SYSCALL_ERROR_HANDLER.
3554 * sysdeps/unix/sysv/linux/sh/vfork.S (__vfork): Likewise.
3555 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Likewise.
3556 Add support for cancellation handling.
3557 (SYSCALL_ERROR_HANDLER): Define PIC variants.
3558
3559 2003-01-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3560
3561 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Mark
3562 __syscall_pread64 and __syscall_pwrite64 cancelable.
3563 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
3564 (INTERNAL_SYSCALL): New macro.
3565 (LOADARGS_0, LOADARGS_1): Fix.
3566
3567 2003-01-05 Ulrich Drepper <drepper@redhat.com>
3568
3569 * Makerules (build-shlip-helper): Unless told otherwise, add
3570 -Wl,-z,defs to linker command line.
3571 * rt/Makefile (librt.so): Link with ld.so.
3572 * dlfcn/Makefile (libdl.so): Likewise.
3573
3574 2003-01-05 Jakub Jelinek <jakub@redhat.com>
3575
3576 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Add support for
3577 cancellation handling.
3578 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
3579 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
3580
3581 2003-01-04 Ulrich Drepper <drepper@redhat.com>
3582
3583 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Correct
3584 order of parameters passed to kill.
3585
3586 2003-01-04 Andreas Schwab <schwab@suse.de>
3587
3588 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Add nanosecond fields.
3589
3590 2002-01-03 Paul Eggert <eggert@twinsun.com>
3591
3592 * malloc/obstack.h (__INT_TO_PTR) [__STDC__]: Cast result to
3593 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
3594 when compiling Bison 1.875's `bitset bset = obstack_alloc
3595 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
3596
3597 2003-01-04 Ulrich Drepper <drepper@redhat.com>
3598
3599 * sysdeps/posix/system.c (do_system): Minor optimizations. Remove
3600 unnecessary code.
3601 Correct reference counter in case SIGQUIT handler installation failed.
3602
3603 2003-01-03 Ulrich Drepper <drepper@redhat.com>
3604
3605 * include/libc-symbols.h [HAVE_WEAK_SYMBOLS] (_weak_extern):
3606 Define using _Pragma(weak ...).
3607
3608 2003-01-03 Andreas Jaeger <aj@suse.de>, Jakub Jelinek <jakub@redhat.com>
3609
3610 * resolv/res_libc.c: Provide declaration for __res_init_weak and
3611 reorder declarations.
3612
3613 2003-01-03 Art Haas <ahaas@airmail.net>
3614
3615 * localedata/tests-mbwc/dat_iswalnum.c: Convert GCC extension
3616 initializer syntax to C99.
3617 * localedata/tests-mbwc/dat_iswalpha.c: Likewise.
3618 * localedata/tests-mbwc/dat_iswcntrl.c: Likewise.
3619 * localedata/tests-mbwc/dat_iswctype.c: Likewise.
3620 * localedata/tests-mbwc/dat_iswdigit.c: Likewise.
3621 * localedata/tests-mbwc/dat_iswgraph.c: Likewise.
3622 * localedata/tests-mbwc/dat_iswlower.c: Likewise.
3623 * localedata/tests-mbwc/dat_iswprint.c: Likewise.
3624 * localedata/tests-mbwc/dat_iswpunct.c: Likewise.
3625 * localedata/tests-mbwc/dat_iswspace.c: Likewise.
3626 * localedata/tests-mbwc/dat_iswupper.c: Likewise.
3627 * localedata/tests-mbwc/dat_iswxdigit.c: Likewise.
3628 * localedata/tests-mbwc/dat_mblen.c: Likewise.
3629 * localedata/tests-mbwc/dat_mbrlen.c: Likewise.
3630 * localedata/tests-mbwc/dat_mbrtowc.c: Likewise.
3631 * localedata/tests-mbwc/dat_mbsrtowcs.c: Likewise.
3632 * localedata/tests-mbwc/dat_mbstowcs.c: Likewise.
3633 * localedata/tests-mbwc/dat_mbtowc.c: Likewise.
3634 * localedata/tests-mbwc/dat_strcoll.c: Likewise.
3635 * localedata/tests-mbwc/dat_strfmon.c: Likewise.
3636 * localedata/tests-mbwc/dat_strxfrm.c: Likewise.
3637 * localedata/tests-mbwc/dat_swscanf.c: Likewise.
3638 * localedata/tests-mbwc/dat_towctrans.c: Likewise.
3639 * localedata/tests-mbwc/dat_towlower.c: Likewise.
3640 * localedata/tests-mbwc/dat_towupper.c: Likewise.
3641 * localedata/tests-mbwc/dat_wcrtomb.c: Likewise.
3642 * localedata/tests-mbwc/dat_wcscat.c: Likewise.
3643 * localedata/tests-mbwc/dat_wcschr.c: Likewise.
3644 * localedata/tests-mbwc/dat_wcscmp.c: Likewise.
3645 * localedata/tests-mbwc/dat_wcscoll.c: Likewise.
3646 * localedata/tests-mbwc/dat_wcscpy.c: Likewise.
3647 * localedata/tests-mbwc/dat_wcscspn.c: Likewise.
3648 * localedata/tests-mbwc/dat_wcslen.c: Likewise.
3649 * localedata/tests-mbwc/dat_wcsncat.c: Likewise.
3650 * localedata/tests-mbwc/dat_wcsncmp.c: Likewise.
3651 * localedata/tests-mbwc/dat_wcsncpy.c: Likewise.
3652 * localedata/tests-mbwc/dat_wcspbrk.c: Likewise.
3653 * localedata/tests-mbwc/dat_wcsrtombs.c: Likewise.
3654 * localedata/tests-mbwc/dat_wcsspn.c: Likewise.
3655 * localedata/tests-mbwc/dat_wcsstr.c: Likewise.
3656 * localedata/tests-mbwc/dat_wcstod.c: Likewise.
3657 * localedata/tests-mbwc/dat_wcstok.c: Likewise.
3658 * localedata/tests-mbwc/dat_wcstombs.c: Likewise.
3659 * localedata/tests-mbwc/dat_wcswidth.c: Likewise.
3660 * localedata/tests-mbwc/dat_wcsxfrm.c: Likewise.
3661 * localedata/tests-mbwc/dat_wctob.c: Likewise.
3662 * localedata/tests-mbwc/dat_wctomb.c: Likewise.
3663 * localedata/tests-mbwc/dat_wctrans.c: Likewise.
3664 * localedata/tests-mbwc/dat_wctype.c: Likewise.
3665 * localedata/tests-mbwc/dat_wcwidth.c: Likewise.
3666
3667 2003-01-03 Richard Henderson <rth@redhat.com>
3668
3669 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall_r0_asm): New.
3670 (inline_syscall_r0_constraint): New.
3671 (inline_syscall[0-6]): Use them.
3672
3673 2003-01-03 Jakub Jelinek <jakub@redhat.com>
3674
3675 * sysdeps/generic/ldsodefs.h (_dl_allocate_tls, _dl_deallocate_tls):
3676 Add rtld_hidden_proto.
3677 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Add rtld_hidden_def.
3678 (_dl_allocate_tls): Likewise. Remove INTDEF.
3679
3680 2002-07-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3681
3682 * sysdeps/sh/memcpy.S: Optimize. Based on a patch by Toshiyasu
3683 Morita <toshiyasu.morita@hsa.hitachi.com>.
3684 * sysdeps/sh/memcpy.S: Likewise.
3685
3686 2003-01-02 Ulrich Drepper <drepper@redhat.com>
3687
3688 * sysdeps/pthread/aio_suspend.c (aio_suspend): Don't quite remove
3689 any, but unify the test.
3690
3691 2003-01-02 Jakub Jelinek <jakub@redhat.com>
3692
3693 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction,
3694 sigaction): Protect weak_alias and libc_hidden_weak with
3695 #ifndef LIBC_SIGACTION.
3696 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction,
3697 sigaction): Likewise.
3698 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction,
3699 sigaction): Likewise.
3700 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction,
3701 sigaction): Likewise.
3702 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction,
3703 sigaction): Likewise.
3704 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction,
3705 sigaction): Likewise.
3706 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction,
3707 sigaction): Likewise.
3708 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction,
3709 sigaction): Likewise. Remove SIGCANCEL handling here.
3710 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction, sigaction):
3711 Likewise.
3712
3713 2003-01-02 Art Haas <ahaas@airmail.net>
3714
3715 * login/tst-utmp.c: Convert GCC extension initializer syntax to C99.
3716
3717 2003-01-02 Ulrich Drepper <drepper@redhat.com>
3718
3719 * posix/getconf.c: Update copyright year.
3720 * nss/getent.c: Likewise.
3721 * nscd/nscd_nischeck.c: Likewise.
3722 * iconv/iconvconfig.c: Likewise.
3723 * iconv/iconv_prog.c: Likewise.
3724 * elf/ldconfig.c: Likewise.
3725 * catgets/gencat.c: Likewise.
3726 * csu/version.c: Likewise.
3727 * elf/ldd.bash.in: Likewise.
3728 * elf/sprof.c (print_version): Likewise.
3729 * locale/programs/locale.c: Likewise.
3730 * locale/programs/localedef.c: Likewise.
3731 * nscd/nscd.c (print_version): Likewise.
3732 * debug/xtrace.sh: Likewise.
3733 * malloc/memusage.sh: Likewise.
3734 * malloc/mtrace.pl: Likewise.
3735
3736 2003-01-01 Jakub Jelinek <jakub@redhat.com>
3737
3738 * io/sys/stat.h: Include time.h with __need_timespec even if
3739 __USE_MISC is defined but __USE_XOPEN is not.
3740
3741 2003-01-01 Andreas Jaeger <aj@suse.de>
3742
3743 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Use union
3744 type to avoid strict aliasing problem.
3745 (_nss_dns_gethostbyname2_r): Likewise.
3746 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
3747 (_nss_dns_getnetbyname_r): Likewise.
3748 * resolv/gethnamaddr.c (_gethtent): Likewise.
3749 (gethostbyname2): Likewise.
3750
3751 2002-12-31 Ulrich Drepper <drepper@redhat.com>
3752
3753 * string/string-inlines.c: Define __memcpy_g and __strchr_g macros
3754 to avoid using the exported symbols. Define aliases with the
3755 original names separately.
3756
3757 * include/time.h: Add libc_hidden_proto for __strftime_l.
3758 * include/wchar.h: Add libc_hidden_proto for __wcsftime_l.
3759 * time/strftime.c: Always use libc_hidden_def if _LIBC.
3760
3761 * libio/libioP.h: Add libc_hidden_proto for _IO_file_open.
3762 * libio/fileops.c: Add libc_hidden_def for _IO_file_open.
3763
3764 * malloc/mtrace.c: Add libc_hidden_proto and libc_hidden_def for
3765 tr_break.
3766
3767 * csu/Makefile (routines): Add dso_handle.
3768 * csu/dso_handle.c: New file.
3769
3770 2002-12-31 Roland McGrath <roland@redhat.com>
3771
3772 * Makerules (compile.S, COMPILE.S): Remove -DASSEMBLER here.
3773 Use $(S-CPPFLAGS) in place of $(asm-CPPFLAGS).
3774 (S-CPPFLAGS): Add -DASSEMBLER here instead.
3775 (generate-md5, +make-deps): Fix magic to get $(S-CPPFLAGS).
3776
3777 2002-12-31 Ulrich Drepper <drepper@redhat.com>
3778
3779 * malloc/thread-m.h [SHARED] (thread_atfork): Assume __dso_handle
3780 is available.
3781
3782 2002-12-31 Andreas Jaeger <aj@suse.de>
3783
3784 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Sync
3785 with Linux kernel.
3786 * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
3787 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Likewise.
3788 * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Likewise.
3789
3790 * sysdeps/unix/sysv/linux/kernel_stat.h
3791 (_HAVE_STAT_NSEC,_HAVE_STAT_NSEC64): New.
3792
3793 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Re-add
3794 __unused[1-3] since they're needed by some platforms. Handle
3795 _HAVE_STAT_NSEC and _HAVE_STAT_NSEC64.
3796
3797 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Add nsec resolution
3798 for structs stat and stat64.
3799 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
3800 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
3801 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
3802 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
3803
3804 * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
3805
3806 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
3807 nsec resolution changes.
3808 (xstat64_conv): Likewise.
3809 (xstat32_conv): Likewise.
3810
3811 * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
3812 struct kernel_stat.
3813
3814 * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
3815 structs stat and stat64.
3816
3817 * time/time.h (__timespec_defined): Define for __USE_MISC.
3818
3819 2002-12-31 Ulrich Drepper <drepper@redhat.com>
3820
3821 * include/signal.h: Add libc_hidden_proto for __libc_current_sigrtmin
3822 and __libc_current_sigrtmax.
3823
3824 2002-12-31 Jakub Jelinek <jakub@redhat.com>
3825
3826 * include/errno.h (__errno_location): Add prototype.
3827 Use libc_hidden_proto unconditionally.
3828 * include/netdb.h (__h_errno_location): Use libc_hidden_proto
3829 unconditionally.
3830 * include/resolv.h (__res_state): Likewise.
3831
3832 * hurd/errno-loc.c (__errno_location): Add libc_hidden_def.
3833 * include/sys/socket.h (accept): Add libc_hidden_proto.
3834 * include/errno.h (__errno_location): Likewise.
3835 * include/netdb.h (__h_errno_location): Likewise.
3836 * include/resolv.h (__res_state): Likewise.
3837 * include/unistd.h (__lseek): Likewise.
3838 * sysdeps/generic/errno-loc.c (__errno_location): Add libc_hidden_def.
3839 * sysdeps/generic/herrno-loc.c (__h_errno_location): Likewise.
3840 * sysdeps/generic/res-state.c (__res_state): Likewise.
3841 * sysdeps/generic/accept.c (accept): Likewise.
3842 * sysdeps/generic/lseek.c (__lseek): Likewise.
3843 * sysdeps/generic/allocrtsig.c (__libc_current_sigrtmin,
3844 __libc_current_sigrtmax): Likewise.
3845 * sysdeps/mach/hurd/accept.c (accept): Likewise.
3846 * sysdeps/mach/hurd/lseek.c (__lseek): Likewise.
3847 * sysdeps/unix/sysv/aix/accept.c (accept): Likewise.
3848 * sysdeps/unix/sysv/aix/lseek.c (__lseek): Likewise.
3849 * sysdeps/unix/sysv/linux/accept.S (accept): Likewise.
3850 * sysdeps/unix/inet/syscalls.list (__GI_accept): New alias to accept.
3851 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI_accept): Likewise.
3852 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI_accept): Likewise.
3853 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___lseek): New
3854 alias to llseek.
3855 (__GI_accept): New alias to accept.
3856 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI_accept): Likewise.
3857 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___lseek):
3858 New alias to llseek.
3859 (__GI_accept): New alias to accept.
3860 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__GI_accept):
3861 Likewise.
3862 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI_accept):
3863 Likewise.
3864 * sysdeps/unix/syscalls.list (__GI___lseek): New alias to lseek.
3865
3866 * sysdeps/alpha/setjmp.S : Use libc_hidden_def(name) instead of
3867 strong_alias (name, __GI_name).
3868 * sysdeps/arm/bsd-_setjmp.S : Likewise.
3869 * sysdeps/hppa/bsd-_setjmp.S : Likewise.
3870 * sysdeps/i386/bsd-_setjmp.S : Likewise.
3871 * sysdeps/mips/mips64/bsd-_setjmp.S : Likewise.
3872 * sysdeps/mips/bsd-_setjmp.S : Likewise.
3873 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S : Likewise.
3874 * sysdeps/powerpc/powerpc64/setjmp.S : Likewise.
3875 * sysdeps/s390/s390-32/elf/setjmp.S : Likewise.
3876 * sysdeps/s390/s390-32/bsd-_setjmp.S : Likewise.
3877 * sysdeps/s390/s390-64/elf/setjmp.S : Likewise.
3878 * sysdeps/s390/s390-64/bsd-_setjmp.S : Likewise.
3879 * sysdeps/sh/bsd-_setjmp.S : Likewise.
3880 * sysdeps/sparc/sparc32/setjmp.S : Likewise.
3881 * sysdeps/unix/arm/fork.S : Likewise.
3882 * sysdeps/unix/bsd/hp/m68k/vfork.S : Likewise.
3883 * sysdeps/unix/bsd/i386/vfork.S : Likewise.
3884 * sysdeps/unix/bsd/osf/alpha/fork.S : Likewise.
3885 * sysdeps/unix/bsd/sun/m68k/vfork.S : Likewise.
3886 * sysdeps/unix/bsd/ultrix4/mips/vfork.S : Likewise.
3887 * sysdeps/unix/bsd/vax/vfork.S : Likewise.
3888 * sysdeps/unix/i386/fork.S : Likewise.
3889 * sysdeps/unix/mips/fork.S : Likewise.
3890 * sysdeps/unix/sparc/fork.S : Likewise.
3891 * sysdeps/unix/sparc/vfork.S : Likewise.
3892 * sysdeps/unix/sysv/linux/arm/vfork.S : Likewise.
3893 * sysdeps/unix/sysv/linux/cris/vfork.S : Likewise.
3894 * sysdeps/unix/sysv/linux/i386/vfork.S : Likewise.
3895 * sysdeps/unix/sysv/linux/ia64/fork.S : Likewise.
3896 * sysdeps/unix/sysv/linux/ia64/setjmp.S : Likewise.
3897 * sysdeps/unix/sysv/linux/ia64/vfork.S : Likewise.
3898 * sysdeps/unix/sysv/linux/m68k/vfork.S : Likewise.
3899 * sysdeps/unix/sysv/linux/sh/vfork.S : Likewise.
3900 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S : Likewise.
3901 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S : Likewise.
3902 * sysdeps/unix/sysv/linux/sparc/fork.S : Likewise.
3903 * sysdeps/unix/sysv/linux/sparc/vfork.S : Likewise.
3904 * sysdeps/unix/sysv/linux/x86_64/vfork.S : Likewise.
3905 * sysdeps/unix/fork.S : Likewise.
3906 * sysdeps/vax/bsd-_setjmp.S : Likewise.
3907 * sysdeps/x86_64/bsd-_setjmp.S : Likewise.
3908
3909 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Guard against multiple
3910 inclusion.
3911
3912 2002-12-31 Ulrich Drepper <drepper@redhat.com>
3913
3914 * include/unistd.h: Add libc_hidden_proto for __fork and __vfork.
3915 * sysdeps/generic/fork.c: Add libc_hidden_def for __fork.
3916 * sysdeps/mach/hurd/fork.c: Likewise.
3917 * sysdeps/unix/sysv/aix/fork.c: Likewise.
3918 * sysdeps/unix/fork.S: Add __GI___fork alias.
3919 * sysdeps/unix/arm/fork.S: Likewise.
3920 * sysdeps/unix/bsd/osf/alpha/fork.S: Likewise.
3921 * sysdeps/unix/i386/fork.S: Likewise.
3922 * sysdeps/unix/mips/fork.S: Likewise.
3923 * sysdeps/unix/sparc/fork.S: Likewise.
3924 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
3925 * sysdeps/unix/sysv/linux/sparc/fork.S: Likewise.
3926 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3927 * sysdeps/generic/vfork.c: Add libc_hidden_def for __vfork.
3928 * sysdeps/unix/bsd/hp/m68k/vfork.S: Add __GI___vfork alias.
3929 * sysdeps/unix/bsd/i386/vfork.S: Likewise.
3930 * sysdeps/unix/bsd/sun/m68k/vfork.S: Likewise.
3931 * sysdeps/unix/bsd/ultrix4/mips/vfork.S: Likewise.
3932 * sysdeps/unix/bsd/vax/vfork.S: Likewise.
3933 * sysdeps/unix/sparc/vfork.S: Likewise.
3934 * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
3935 * sysdeps/unix/sysv/linux/cris/vfork.S: Likewise.
3936 * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
3937 * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
3938 * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
3939 * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
3940 * sysdeps/unix/sysv/linux/sparc/vfork.S: Likewise.
3941 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
3942
3943 * include/time.h: Add libc_hidden_proto for __nanosleep.
3944 * sysdeps/generic/nanosleep.c: Add libc_hidden_def for __nanosleep.
3945 * sysdeps/mach/nanosleep.c: Likewise.
3946 * sysdeps/unix/sysv/aix/nanosleep.c: Likewise.
3947 * sysdeps/unix/sysv/linux/syscalls.list: Add __GI___nanosleep alias.
3948
3949 * libio/libioP.h: Add libc_hidden_proto for _IO_list_lock,
3950 _IO_list_unlock, and _IO_list_resetlock.
3951 * libio/genops.c: Add libc_hidden_def for _IO_list_lock,
3952 _IO_list_unlock, and _IO_list_resetlock.
3953
3954 * libio/libioP.h: Add libc_hidden_proto for _IO_iter_begin,
3955 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
3956 * libio/genops.c: Add libc_hidden_def for _IO_iter_begin,
3957 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
3958
3959 * include/setjmp.h: Add libc_hidden_proto for __libc_longjmp.
3960 * sysdeps/generic/longjmp.c: Add libc_hidden_def for __longjmp.
3961 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
3962 __GI___longjmp alias.
3963
3964 * include/setjmp.h: Add libc_hidden_proto for _setjmp.
3965 * sysdeps/alpha/setjmp.S: Add __GI__setjmp alias.
3966 * sysdeps/arm/bsd-_setjmp.S: Likewise.
3967 * sysdeps/generic/bsd-_setjmp.c: Likewise.
3968 * sysdeps/hppa/bsd-_setjmp.S: Likewise.
3969 * sysdeps/i386/bsd-_setjmp.S: Likewise.
3970 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
3971 * sysdeps/mips/bsd-_setjmp.S: Likewise.
3972 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
3973 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
3974 * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
3975 * sysdeps/s390/s390-32/bsd-_setjmp.S: Likewise.
3976 * sysdeps/s390/s390-32/elf/setjmp.S: Likewise.
3977 * sysdeps/s390/s390-64/bsd-_setjmp.S: Likewise.
3978 * sysdeps/s390/s390-64/elf/setjmp.S: Likewise.
3979 * sysdeps/sh/bsd-_setjmp.S: Likewise.
3980 * sysdeps/sparc/sparc32/setjmp.S: Likewise.
3981 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
3982 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
3983 * sysdeps/vax/bsd-_setjmp.S: Likewise.
3984 * sysdeps/x86_64/bsd-_setjmp.S: Likewise.
3985
3986 2002-12-30 Ulrich Drepper <drepper@redhat.com>
3987
3988 * malloc/thread-m.h (thread_atfork): Define using __register_atfork.
3989
3990 2002-12-30 Roland McGrath <roland@redhat.com>
3991
3992 * Rules (generated): Target removed.
3993 * mach/Makefile (generated): Define it here instead.
3994
3995 * math/Makefile (generated): Add m_*l and m_*f variants too.
3996
3997 2002-12-30 Ulrich Drepper <drepper@redhat.com>
3998
3999 * elf/dl-close.c (_dl_close): Handle relocation dependencies among
4000 the to-be-deleted objects right away instead of later separately.
4001 The latter fails because the scope data structures of the DSO
4002 might already be gone.
4003
4004 * elf/Makefile: Add rules to build and run reldep8 test.
4005 * elf/reldep8.c: New file.
4006 * elf/reldep8mod1.c: New file.
4007 * elf/reldep8mod2.c: New file.
4008 * elf/reldep8mod3.c: New file.
4009 Contributed by Jakub Jelinek.
4010
4011 2002-12-24 GOTO Masanori <gotom@debian.or.jp>
4012
4013 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
4014 checking of return value ENOSYS from getdents64.
4015
4016 2002-12-28 Andreas Schwab <schwab@suse.de>
4017
4018 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-cancel.d.
4019 ($(common-objpfx)s-%.d): Generalized from
4020 $(common-objpfx)s-proto.d rule.
4021 (common-generated): Add s-proto-cancel.d.
4022 * sysdeps/unix/make-syscalls.sh: Use s-proto-cancel.d for
4023 cancellable syscalls.
4024 * sysdeps/unix/s-proto-cancel.S: New file.
4025
4026 2002-12-29 Roland McGrath <roland@redhat.com>
4027
4028 * resolv/res_libc.c: Move _res defn magic after res_init defn
4029 so _res macro is in effect for that code.
4030
4031 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Fix sed
4032 pattern for prepending $(..) so it doesn't affect $(foo).
4033
4034 * math/Makefile (generated): Add $(addsuffix .c .S,$(calls:s_%=m_%)).
4035
4036 2002-12-29 Jakub Jelinek <jakub@redhat.com>
4037
4038 * elf/cache.c (add_to_cache): Don't loop forever with 1ULL << 63 set
4039 in hwcap.
4040
4041 2002-12-28 Ulrich Drepper <drepper@redhat.com>
4042
4043 * misc/sys/cdefs.h (__attribute_deprecated__): New #define.
4044
4045 2002-12-28 Andreas Jaeger <aj@suse.de>
4046
4047 * sysdeps/generic/readelflib.c (process_elf_file): Cast value to
4048 avoid warning.
4049 * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
4050
4051 2002-12-27 Jakub Jelinek <jakub@redhat.com>
4052
4053 * inet/herrno.c (__h_errno_location): Remove.
4054 * inet/Makefile (routines): Add herrno-loc.
4055 * resolv/res_libc.c (__res_state): Remove.
4056 * resolv/Makefile (routines): Add res-state.
4057 * sysdeps/generic/herrno-loc.c: New file.
4058 * sysdeps/generic/res-state.c: New file.
4059
4060 2002-12-27 Jakub Jelinek <jakub@redhat.com>
4061
4062 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
4063 Only define if USE_DL_SYSINFO is defined.
4064
4065 2002-12-22 Jakub Jelinek <jakub@redhat.com>
4066
4067 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INLINE_SYSCALL,
4068 INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERROR):
4069 Define. Patch by Richard Henderson and Jes Sorensen.
4070 (PSEUDO): Remove unnecessary ;;.
4071 * elf/rtld.c (dl_main): Initialize TLS even if no PT_TLS segments
4072 are found unless TLS_INIT_TP_EXPENSIVE. Use NONTLS_INIT_TP.
4073 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Use NONTLS_INIT_TP
4074 if not initializing thread pointer.
4075 [!USE_TLS && NONTLS_INIT_TP] (__pthread_initialize_minimal): New.
4076 * sysdeps/generic/libc-start.c (__pthread_initialize_minimal): Don't
4077 make it weak also if NONTLS_INIT_TP.
4078 * sysdeps/unix/common/pause.c: Handle cancellation.
4079 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h [DONT_LOAD_G1]
4080 (LOADSYSCALL): Remove.
4081 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
4082 (SYSCALL_ERROR_HANDLER): Use it.
4083 (PSEUDO): Don't jump around error handler.
4084 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__libc_pipe): Don't
4085 jump around error handler.
4086 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S (syscall): Likewise.
4087 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Branch
4088 to __syscall_error_handler on failure.
4089 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [DONT_LOAD_G1]
4090 (LOADSYSCALL): Remove.
4091 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
4092 (SYSCALL_ERROR_HANDLER): Use it.
4093 (PSEUDO): Don't jump around error handler.
4094 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__libc_pipe): Don't
4095 jump around error handler.
4096 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S (syscall): Likewise.
4097 * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S (__socket): Branch
4098 to __syscall_error_handler on failure.
4099
4100 2002-12-27 Roland McGrath <roland@redhat.com>
4101
4102 * scripts/gen-as-const.awk: New file.
4103 * Makefile (distribute): Add it.
4104 * Makerules ($(common-objpfx)%.h %.h.d: %.sym): New pattern rule.
4105 (before-compile): Add $(gen-as-const-headers:%.sym=$(common-objpfx)%.h)
4106 to the list.
4107 (+depfiles): Add $(addprefix $(common-objpfx),$(gen-as-const-headers)).
4108
4109 2002-12-27 Andreas Schwab <schwab@suse.de>
4110
4111 * sysdeps/unix/sysv/linux/m68k/socket.S: Add cancellation support.
4112
4113 2002-12-27 Jakub Jelinek <jakub@redhat.com>
4114
4115 * malloc/arena.c (ptmalloc_init): Don't call next_env_entry if
4116 _environ is NULL.
4117
4118 2002-12-27 Andreas Schwab <schwab@suse.de>
4119
4120 * Makerules ($(common-objpfx)%.make): Filter through
4121 $(sed-remove-objpfx).
4122
4123 2002-12-23 Roland McGrath <roland@redhat.com>
4124
4125 * scripts/abilist.awk: Produce a more compact format, divided into
4126 stanzas for each version set, the set name listed only once.
4127 * scripts/extract-abilist.awk: New file.
4128 * scripts/merge-abilist.awk: New file.
4129 * Makerules (check-abi-%, update-abi-%): New pattern rules.
4130 (update-abi, check-abi): New targets.
4131 * Makefile (+subdir_targets): Add subdir_{check,update}-abi.
4132
4133 2002-12-19 Roland McGrath <roland@redhat.com>
4134
4135 * Makerules (%.symlist): Use LC_ALL=C when running awk script.
4136
4137 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Cast result of
4138 INTERNAL_SYSCALL.
4139
4140 2002-12-21 Andreas Schwab <schwab@suse.de>
4141
4142 * elf/check-textrel.c (handle_file): Swap p_type.
4143
4144 2002-12-21 Andreas Schwab <schwab@suse.de>
4145
4146 * sysdeps/unix/sysv/linux/m68k/sysdep.h (INTERNAL_SYSCALL): Define.
4147 (INLINE_SYSCALL): Use it.
4148 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
4149 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
4150
4151 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Use INTERNAL_SYSCALL.
4152 * sysdeps/unix/sysv/linux/m68k/brk.c: Likewise.
4153
4154 2002-12-20 Art Haas <ahaas@airmail.net>
4155
4156 * sysdeps/gnu/siglist.c: Convert GCC extension initializer
4157 syntax to C99.
4158
4159 2002-12-21 Philip Blundell <philb@gnu.org>
4160
4161 * sysdeps/arm/elf/start.S (_start): Optimise a little. Push stack
4162 top as seventh arg to __libc_start_main.
4163 Reported by paulnash@wildseed.com.
4164
4165 * sysdeps/unix/sysv/linux/arm/clone.S: Small optimisation.
4166
4167 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Elide
4168 compatibility cruft when new enough kernel is assumed.
4169
4170 2002-12-20 Jakub Jelinek <jakub@redhat.com>
4171
4172 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use INTERNAL_SYSCALL
4173 instead of INLINE_SYSCALL.
4174
4175 2002-12-20 Ulrich Drepper <drepper@redhat.com>
4176
4177 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Fix
4178 typo.
4179
4180 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Define SHM_HUGETLB.
4181 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
4182 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Likewise.
4183 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
4184 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
4185 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
4186 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
4187 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
4188 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
4189 Patch by William Lee Irwin <wli@holomorphy.com>.
4190
4191 2002-12-20 Andreas Schwab <schwab@suse.de>
4192
4193 * locale/programs/ld-measurement.c (measurement_output): Fix
4194 index calculation.
4195
4196 2002-12-20 Ulrich Drepper <drepper@redhat.com>
4197
4198 * include/libio.h [_IO_MTSAFE_IO && _IO_lock_inexpensive]:
4199 Redefine _IO_flockifle and _IO_funlockfile as inlines.
4200
4201 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): For TLS
4202 builds add "tls" in the search path.
4203 * elf/ldconfig.c (is_hwcap_platform): Also recognize "tls".
4204 (path_hwcap): Recognize "tls".
4205
4206 2002-12-19 Ulrich Drepper <drepper@redhat.com>
4207
4208 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Use
4209 __waitpid instead of waitpid.
4210
4211 * sysdeps/unix/sysv/linux/i386/_exit.S: Use ENTER_KERNEL instead of
4212 int $0x80.
4213 * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
4214 * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
4215 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
4216
4217 * sysdeps/unix/sysv/linux/i386/sysdep.h: Add support to use AT_SYSINFO
4218 information for system calls.
4219
4220 * sysdeps/generic/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO to 1 only
4221 for ld.so.
4222
4223 * elf/rtld.c (_dl_start) [USE___THREAD]: Define initdtv.
4224
4225 2002-12-19 Roland McGrath <roland@redhat.com>
4226
4227 * iconvdata/ibm856.h: Convert GCC extension initializer syntax to C99.
4228 * iconvdata/ibm922.h: Likewise.
4229 * iconvdata/ibm930.h: Likewise.
4230 * iconvdata/ibm932.h: Likewise.
4231 * iconvdata/ibm933.h: Likewise.
4232 * iconvdata/ibm935.h: Likewise.
4233 * iconvdata/ibm937.h: Likewise.
4234 * iconvdata/ibm939.h: Likewise.
4235 * iconvdata/ibm943.h: Likewise.
4236 * iconvdata/isiri-3342.h: Likewise.
4237
4238 2002-12-19 Ulrich Drepper <drepper@redhat.com>
4239
4240 * test-skeleton.c (main): Make sure correct value is seen as
4241 argv[0] after adjustment of argv, and argc.
4242
4243 * elf/rtld.c: Don't initialize _dl_dynamic_weak to 1 if
4244 RTLD_CORRECT_DYNAMIC_WEAK is defined.
4245
4246 2002-12-19 Jakub Jelinek <jakub@redhat.com>
4247
4248 * nscd/connections.c (nscd_run): Shut up warning.
4249 * tst-ungetc.c (assert): Undefined before redefining.
4250
4251 2002-12-19 Ulrich Drepper <drepper@redhat.com>
4252
4253 * posix/regex.c: Use __builtin_expect even outside glibc if gcc 3
4254 is used.
4255
4256 2002-12-17 Art Haas <ahaas@airmail.net>
4257
4258 * iconvdata/cp737.h: Convert GCC extension initializer syntax to C99.
4259 * iconvdata/cp775.h: Likewise.
4260 * iconvdata/ibm1046.h: Likewise.
4261 * iconvdata/ibm1124.h: Likewise.
4262 * iconvdata/ibm1129.h: Likewise.
4263 * iconvdata/ibm1132.h: Likewise.
4264 * iconvdata/ibm1133.h: Likewise.
4265 * iconvdata/ibm1160.h: Likewise.
4266 * iconvdata/ibm1161.h: Likewise.
4267 * iconvdata/ibm1162.h: Likewise.
4268 * iconvdata/ibm1163.h: Likewise.
4269 * iconvdata/ibm1164.h: Likewise.
4270
4271 2002-12-19 Ulrich Drepper <drepper@redhat.com>
4272
4273 * sysdeps/unix/sysv/linux/i386/system.c: Define FORK only if
4274 __ASSUME_CLONE_THREAD_FLAGS is defined.
4275 * sysdeps/unix/sysv/linux/kernel-features.h
4276 (__ASSUME_CLONE_THREAD_FLAGS): Define for x86 and kernel >= 2.5.50.
4277
4278 2002-12-18 Ulrich Drepper <drepper@redhat.com>
4279
4280 * sysdeps/unix/sysv/linux/i386/brk.c: Use INTERNAL_SYSCALL instead
4281 of asm.
4282 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
4283
4284 * elf/dl-support.c [NEED_DL_SYSINFO]: Define and initialize
4285 _dl_sysinfo.
4286 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
4287 code.
4288 * elf/rtld.c [DL_NEED_SYSINFO]: Initialize _dl_sysinfo element of
4289 _rtld_global.
4290 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
4291 code.
4292 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
4293 Check for AT_SYSINFO and set _dl_sysinfo appropriately.
4294 * sysdeps/generic/ldsodefs.h (struct rtld_global) [NEED_DL_SYSINFO]:
4295 Add _dl_sysinfo.
4296
4297 2002-12-18 Jakub Jelinek <jakub@redhat.com>
4298
4299 * misc/Versions [libc: GLIBC_2.3.1]: Move __libc_readv and
4300 __libc_writev to...
4301 [libc: GLIBC_PRIVATE]: ...here.
4302 * sysvipc/Versions [libc: GLIBC_2.3.1]: Move __libc_msgrcv and
4303 __libc_msgsnd to...
4304 [libc: GLIBC_PRIVATE]: ...here.
4305
4306 2002-12-18 Ulrich Drepper <drepper@redhat.com>
4307
4308 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define ENTER_KERNEL macro.
4309 Use it instead of directly int $0x80.
4310 * sysdeps/unix/sysv/linux/i386/brk.c: Use ENTER_KERNEL.
4311 * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
4312 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
4313 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
4314 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
4315 * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
4316
4317 2002-12-17 Ulrich Drepper <drepper@redhat.com>
4318
4319 * malloc/malloc.c (mALLOPt): Make sure malloc is initialized.
4320
4321 * elf/elf.h (AT_SYSINFO): New define.
4322 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add support for
4323 AT_SYSINFO.
4324
4325 2002-12-17 Jakub Jelinek <jakub@redhat.com>
4326
4327 * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgrcv, msgsnd):
4328 Make cancelable.
4329 * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgrcv, msgsnd):
4330 Likewise.
4331 * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgrcv, msgsnd):
4332 Likewise.
4333 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgrcv, msgsnd):
4334 Likewise.
4335 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgrcv, msgsnd):
4336 Likewise.
4337 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend): Likewise.
4338
4339 * malloc/thread-m.h (mutex_init, mutex_lock, mutex_trylock,
4340 mutex_unlock): If not building NPTL, use __libc_maybe_call2 if
4341 available, otherwise __libc_maybe_call.
4342 * sysdeps/unix/sysv/linux/x86_64/recv.c: Add support for
4343 cancellation handling.
4344 * sysdeps/unix/sysv/linux/x86_64/send.c: Likewise.
4345
4346 2002-12-17 Isamu Hasegawa <isamu@yamato.ibm.com>
4347
4348 * posix/regcomp.c (free_workarea_compile): Free the new member
4349 ORG_INDICES.
4350 (analyze): Initialize ORG_INDICES.
4351 (duplicate_node_closure): Search for a existing node, which is
4352 duplicated from the node ORG_DEST and satisfies the constraint
4353 CONSTRAINT. And use it to avoid inifimite loop.
4354 (search_duplicated_node): New function.
4355 (duplicate_node): Store the index of the original node.
4356 * posix/regex_internal.c (re_dfa_add_node): Realloc ORG_INDICES
4357 if needed.
4358 * posix/regex_internal.h (re_dfa_t): Add new members.
4359
4360 2002-12-17 Ulrich Drepper <drepper@redhat.com>
4361
4362 * stdio-common/tst-fdopen.c: Undefine assert before redefining it.
4363
4364 2002-12-16 Ulrich Drepper <drepper@redhat.com>
4365
4366 * sysdeps/posix/system.c (do_system): Add support for installation
4367 of cancellation handlers.
4368 * sysdeps/unix/sysv/linux/i386/system.c: New file.
4369
4370 * stdlib/Makefile (tests): Add tst-system.
4371 * stdlib/tst-system.c: New file.
4372
4373 * sysdeps/unix/sysv/linux/i386/socket.S [NEED_CANCELLATION &&
4374 CENABLE]: Don't lose content of %ebx.
4375
4376 2002-12-17 Jakub Jelinek <jakub@redhat.com>
4377
4378 * sysdeps/unix/sysv/linux/i386/socket.S: Use SINGLE_THREAD_P
4379 macro instead of comparing %gs:MULTIPLE_THREADS_OFFSET directly.
4380
4381 2002-12-16 Ulrich Drepper <drepper@redhat.com>
4382
4383 * sysdeps/posix/getaddrinfo.c (gaih_inet): If __nss_lookup_function
4384 fails to return a function pointer don't use it.
4385
4386 2002-12-16 Art Haas <ahaas@airmail.net>
4387
4388 * io/ftw.c: Convert GCC extension initializer syntax to C99.
4389 * iconvdata/iso-ir-165.c: Likewise.
4390 * iconvdata/jis0208.c: Likewise.
4391 * iconvdata/jis0212.c: Likewise.
4392
4393 2002-12-16 Ulrich Drepper <drepper@redhat.com>
4394
4395 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create,
4396 epoll_ctl, and epoll_wait.
4397 * sysdeps/unix/sysv/linux/Versions [libc: GLIBC_2.3.2]: Add
4398 epoll_create, epoll_ctl, and epoll_wait.
4399 * sysdeps/unix/sysv/linux/sys/epoll.h: New file. Written by
4400 Davide Libenzi <davidel@xmailserver.org>.
4401 * sysdeps/unix/sysv/linux/Dist: Add sys/epoll.h.
4402 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
4403 Add sys/epoll.h.
4404
4405 2002-12-16 Art Haas <ahaas@airmail.net>
4406
4407 * sysdeps/generic/bp-semctl.h: Convert GCC extension initializer
4408 syntax to C99
4409 * sysdeps/unix/sysv/aix/settimer.c: Likewise.
4410 * sysdeps/unix/sysv/aix/sleep.c: Likewise.
4411 * sysdeps/unix/sysv/aix/usleep.c: Likewise.
4412
4413 2002-12-16 Ulrich Drepper <drepper@redhat.com>
4414
4415 * stdio-common/Makefile (routines): Remove lockfile. Add
4416 flockfile, ftrylockfile, and funlockfile.
4417 * sysdeps/generic/lockfile.c: Removed. Each function has its own file.
4418 * sysdeps/generic/flockfile.c: New file.
4419 * sysdeps/generic/ftrylockfile.c: New file.
4420 * sysdeps/generic/funlockfile.c: New file.
4421
4422 2002-12-16 Jakub Jelinek <jakub@redhat.com>
4423
4424 * sysdeps/unix/sysv/linux/i386/socket.S: Use CENABLE and CDISABLE
4425 macros instead of doing the calls directly.
4426 * sysdeps/unix/make-syscalls.sh: Add ptw-*.$o target name to rules.
4427 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for ptw-%
4428 targets.
4429
4430 2002-12-16 Jakub Jelinek <jakub@redhat.com>
4431
4432 * sysdeps/i386/fpu/bits/mathinline.h: Backout last change.
4433 * sysdeps/ieee754/bits/nan.h: Likewise.
4434
4435 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__syscall_open,
4436 __syscall_wait4, __syscall_ioctl, __syscall_write): Add.
4437
4438 2002-12-16 Roland McGrath <roland@redhat.com>
4439
4440 * sunrpc/xdr_mem.c (xdrmem_inline): Fix argument type.
4441 * sunrpc/xdr_rec.c (xdrrec_inline): Likewise.
4442 * sunrpc/xdr_stdio.c (xdrstdio_inline): Likewise.
4443
4444 * sysdeps/unix/sysv/linux/syscalls.list: Add getpmsg, putpmsg.
4445 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove s_getpmsg,
4446 s_putpmsg.
4447 * sysdeps/unix/sysv/linux/i386/getpmsg.c: File removed.
4448 * sysdeps/unix/sysv/linux/i386/putpmsg.c: File removed.
4449 * sysdeps/unix/sysv/linux/m68k/getpmsg.c: File removed.
4450 * sysdeps/unix/sysv/linux/m68k/putpmsg.c: File removed.
4451 * sysdeps/unix/sysv/linux/mips/getpmsg.c: File removed.
4452 * sysdeps/unix/sysv/linux/mips/putpmsg.c: File removed.
4453 * sysdeps/unix/sysv/linux/powerpc/getpmsg.c: File removed.
4454 * sysdeps/unix/sysv/linux/powerpc/putpmsg.c: File removed.
4455
4456 2002-12-13 Paul Eggert <eggert@twinsun.com>
4457
4458 * sunrpc/rpc/xdr.h (struct XDR.xdr_ops.x_inline): 2nd arg
4459 is now u_int, not int.
4460 (struct XDR.x_handy): Now u_int, not int.
4461 * sunrpc/xdr_mem.c: Include <limits.h>.
4462 (xdrmem_getlong, xdrmem_putlong, xdrmem_getbytes, xdrmem_putbytes,
4463 xdrmem_inline, xdrmem_getint32, xdrmem_putint32):
4464 x_handy is now unsigned, not signed.
4465 Do not decrement x_handy if no change is made.
4466 (xdrmem_setpos): Check for int overflow.
4467 * sunrpc/xdr_sizeof.c (x_inline): 2nd arg is now unsigned.
4468 (xdr_sizeof): Remove cast that is now unnecessary, now that
4469 x_handy is unsigned.
4470
4471 2002-12-15 Art Haas <ahaas@airmail.net>
4472
4473 * iconv/gconv_conf.c: Convert GCC extension initializer syntax to C99.
4474 * iconvdata/gap.awk: Likewise.
4475 * iconvdata/gen-8bit-gap-1.sh: Likewise.
4476 * iconvdata/gen-8bit-gap.sh: Likewise.
4477 * locale/C-address.c: Likewise.
4478 * locale/C-collate.c: Likewise.
4479 * locale/C-ctype.c: Likewise.
4480 * locale/C-identification.c: Likewise.
4481 * locale/C-measurement.c: Likewise.
4482 * locale/C-messages.c: Likewise.
4483 * locale/C-monetary.c: Likewise.
4484 * locale/C-name.c: Likewise.
4485 * locale/C-numeric.c: Likewise.
4486 * locale/C-paper.c: Likewise.
4487 * locale/C-telephone.c: Likewise.
4488 * locale/C-time.c: Likewise.
4489 * nscd/connections.c: Likewise.
4490 * nscd/grpcache.c: Likewise.
4491 * nscd/hstcache.c: Likewise.
4492 * nscd/pwdcache.c: Likewise.
4493 * stdio-common/vfprintf.c: Likewise.
4494 * stdlib/random.c: Likewise.
4495 * sysdeps/generic/siglist.c: Likewise.
4496 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
4497 * sysdeps/ieee754/bits/nan.h: Likewise.
4498 * sysdeps/posix/sprofil.c: Likewise.
4499 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
4500 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
4501 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
4502
4503 2002-12-15 Roland McGrath <roland@redhat.com>
4504
4505 * sysdeps/unix/sysv/linux/readv.c (do_readv): Use prototype defn.
4506
4507 * sysdeps/unix/sysv/linux/wait.c: Don't include <nptl/pthreadP.h> or
4508 <tls.h> here, no need for it.
4509 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
4510
4511 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): Take ARG as void *
4512 parameter, not varargs parameter.
4513
4514 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_RESET): Evaluate the
4515 argument so it's not an unused variable.
4516
4517 * resolv/resolv.h (__p_key_syms, __p_cert_syms, __p_class_syms,
4518 __p_type_syms, __p_rcode_syms): Remove decls, never really intended
4519 for users.
4520
4521 * resolv/Versions (libresolv: GLIBC_2.3.2): New set, add __p_rcode.
4522
4523 2002-12-15 Ulrich Drepper <drepper@redhat.com>
4524
4525 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): This is the
4526 original __libc_fcntl code. Just renamed.
4527
4528 2002-12-15 Andreas Schwab <schwab@suse.de>
4529
4530 * sysdeps/unix/sysv/linux/m68k/clone.S: Make inline syscall to _exit.
4531
4532 2002-12-14 Olaf Hering <olh@suse.de>
4533
4534 * sysdeps/powerpc/bits/setjmp.h: Include <bits/wordsize.h>.
4535 * sysdeps/powerpc/powerpc64/setjmp.S: Fix typo in r18 load.
4536
4537 2002-12-15 Ulrich Drepper <drepper@redhat.com>
4538
4539 * sysdeps/unix/sysv/linux/libc_fatal.c: New file.
4540
4541 * sysdeps/generic/sysdep-cancel.h: Add dummy definitions for
4542 SINGLE_THREAD_P, LIBC_CANCEL_ASYNC, and LIBC_CANCEL_RESET.
4543
4544 * sysdeps/unix/sysv/linux/open64.c: New file.
4545
4546 * sysdeps/generic/pselect.c: Add support for cancellation handling.
4547 * sysdeps/posix/open64.c: Likewise.
4548 * sysdeps/posix/sigpause.c: Likewise.
4549 * sysdeps/posix/sigwait.c: Likewise.
4550 * sysdeps/posix/system.c: Likewise.
4551 * sysdeps/posix/waitid.c: Likewise.
4552 * sysdeps/unix/sysv/linux/accept.S: Likewise.
4553 * sysdeps/unix/sysv/linux/connect.S: Likewise.
4554 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
4555 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
4556 * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
4557 * sysdeps/unix/sysv/linux/poll.c: Likewise.
4558 * sysdeps/unix/sysv/linux/pread.c: Likewise.
4559 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
4560 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4561 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
4562 * sysdeps/unix/sysv/linux/readv.c: Likewise.
4563 * sysdeps/unix/sysv/linux/recv.S: Likewise.
4564 * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
4565 * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
4566 * sysdeps/unix/sysv/linux/send.S: Likewise.
4567 * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
4568 * sysdeps/unix/sysv/linux/sendto.S: Likewise.
4569 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
4570 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
4571 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
4572 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
4573 * sysdeps/unix/sysv/linux/tcdrain.c: Likewise.
4574 * sysdeps/unix/sysv/linux/wait.c: Likewise.
4575 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
4576 * sysdeps/unix/sysv/linux/writev.c: Likewise.
4577 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
4578 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
4579
4580 2002-12-14 Jakub Jelinek <jakub@redhat.com>
4581
4582 * sysdeps/generic/sysdep-cancel.h: New file.
4583 * sysdeps/unix/make-syscalls.sh: Handle C at start of args as
4584 cancelable syscall.
4585 * sysdeps/unix/inet/syscalls.list (accept, connect, recv, recvfrom,
4586 recvmsg, send, sendmsg, sendto): Make cancelable.
4587 * sysdeps/unix/mman/syscalls.list (msync): Likewise.
4588 * sysdeps/unix/sysv/linux/alpha/syscalls.list (llseek, pread,
4589 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
4590 sendto, osf_select): Likewise.
4591 * sysdeps/unix/sysv/linux/hppa/syscalls.list (accept, connect, recv,
4592 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
4593 * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek, pread,
4594 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
4595 sendto): Likewise.
4596 * sysdeps/unix/sysv/linux/mips/syscalls.list (accept, connect, recv,
4597 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
4598 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, pread,
4599 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
4600 sendto): Likewise.
4601 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (llseek, pread,
4602 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
4603 sendto, select): Likewise.
4604 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (llseek, pread,
4605 pwrite, accept, connect, recvfrom, recvmsg, sendmsg, sendto):
4606 Likewise.
4607 * sysdeps/unix/sysv/linux/syscalls.list (creat, nanosleep, pause,
4608 select, fcntl): Likewise.
4609 * sysdeps/unix/sysv/syscalls.list (pause, poll): Likewise.
4610 * sysdeps/unix/syscalls.list (close, fcntl, fsync, lseek, open,
4611 read, readv, select, sigsuspend, write, writev): Likewise.
4612
4613 2002-12-14 Jakub Jelinek <jakub@redhat.com>
4614
4615 * dirent/bug-readdir1.c: Include unistd.h.
4616
4617 2002-12-13 Jakub Jelinek <jakub@redhat.com>
4618
4619 * locale/programs/locale.c: Include locarchive.h.
4620 (ARCHIVE_NAME): Define.
4621 (write_archive_locales): New function.
4622 (write_locales): Use it. Ensure the same locale is not printed
4623 multiple times in verbose mode.
4624 Mode LC_IDENTIFICATION and LC_CTYPE printing into...
4625 (print_LC_IDENTIFICATION, print_LC_CTYPE): ... these helper
4626 functions.
4627 (struct nameent): New type.
4628 (nameentcmp): New function.
4629
4630 2002-12-14 Jakub Jelinek <jakub@redhat.com>
4631
4632 * posix/regex_internal.c (re_string_context_at): Guard wide char
4633 code with #ifdef RE_ENABLE_I18N.
4634
4635 2002-11-22 Paolo Bonzini <bonzini@gnu.org>
4636
4637 * posix/regcomp.c (regcomp): __re_compile_fastmap -> re_compile_fastmap
4638
4639 2002-12-13 Roland McGrath <roland@redhat.com>
4640
4641 * posix/bug-regex15.c: New file.
4642 * posix/Makefile (tests): Add it.
4643
4644 * test-skeleton.c (TEST_DATA_LIMIT): New macro, default to 64MB.
4645 (main): Set RLIMIT_DATA limit to TEST_DATA_LIMIT (or lower if need be).
4646
4647 2002-12-13 Ulrich Drepper <drepper@redhat.com>
4648
4649 * elf/dl-misc.c (_dl_debug_vdprintf): Don't depend on 5-digit PIDs.
4650
4651 * misc/syslog.c (log_cleanup): Don't use parameter in
4652 __libc_lock_unlock call, use syslog_lock directly. Adjust callers to
4653 pass NULL instead of a pointer to syslog_lock.
4654
4655 2002-12-12 Ulrich Drepper <drepper@redhat.com>
4656
4657 * iconvdata/Makefile: iconv-rules: Add definition to use gconv.map
4658 linker map for all iconv modules.
4659 (distribute): Add gconv.map.
4660 * iconvdata/gconv.map: New file.
4661
4662 * elf/Makefile: Also check all iconv modules for text relocations.
4663
4664 * stdlib/Makefile: Remove code to automatically import GMP.
4665
4666 * elf/Makefile (tests): Add rules to build and run check-textrel.
4667 * elf/check-textrel.c: New file.
4668
4669 * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Add .size
4670 directive.
4671
4672 2002-12-11 Jakub Jelinek <jakub@redhat.com>
4673
4674 * io/test-utime (main): If stnow.st[am]time is wrong, print it and
4675 not st.st[am]time.
4676
4677 2002-04-30 Bruno Haible <bruno@clisp.org>
4678
4679 * intl/loadmsgcat.c (_nl_init_domain_conv): Don't append //TRANSLIT to
4680 the encoding if it already has slashes.
4681 Reported by Perry Rapp <prapp@erols.com>.
4682
4683 2002-12-11 Roland McGrath <roland@redhat.com>
4684
4685 * csu/Makefile ($(objpfx)elf-init.oS): Remove target, braino.
4686 (CPPFLAGS-elf-init.oS, CFLAGS-elf-init.oS): New variables.
4687 Turn off PIC for compiling this file.
4688
4689 2002-12-11 Ulrich Drepper <drepper@redhat.com>
4690
4691 * malloc/thread-m.h: Remove thread_id type and MUTEX_INITIALIZER
4692 definitions. Not needed.
4693 [_LIBC]: Use definitions from libc-lock.h instead of referencing
4694 pthread routines directly.
4695 * malloc/arena.c (ptmalloc_unlock_all2): Don't add (void) to
4696 mutex_init calls.
4697 (arena_get2): Don't look at return value of mutex_lock.
4698
4699 2002-12-11 Roland McGrath <roland@redhat.com>
4700
4701 * csu/Makefile ($(objpfx)elf-init.oS): New target, just clone
4702 elf-init.o instead of compiling a PIC version.
4703
4704 2002-12-11 Bruno Haible <bruno@clisp.org>
4705
4706 * intl/gettext.h: Renamed to ...
4707 * intl/gmo.h: ... here.
4708 * intl/Makefile (distribute): Add gmo.h, remove gettext.h.
4709 * intl/gettextP.h: Update.
4710 * intl/loadmsgcat.c: Update.
4711
4712 * intl/gettextP.h (PARAMS): Make more portable.
4713 (attribute_hidden): Define as empty macro if not already defined.
4714 * intl/hash-string.h (PARAMS): Make more portable.
4715 * intl/loadinfo.h (PARAMS): Likewise.
4716 * intl/plural-exp.h (PARAMS): Likewise.
4717 (attribute_hidden): Move definition near the definition of
4718 internal_function.
4719
4720 * intl/gettextP.h (_nl_locale_name) [!_LIBC]: New declaration.
4721 * intl/plural-exp.h (plural_eval) [!_LIBC]: New declaration.
4722
4723 2002-07-13 Bruno Haible <bruno@clisp.org>
4724
4725 * intl/dcigettext.c (freea): New macro.
4726 (FREE_BLOCKS): Free also the registered blocks.
4727 (DCIGETTEXT): Free the 'search' variable.
4728 Reported by Andreas Fischer <a.fischer@asentics.de>.
4729
4730 2002-04-27 Bruno Haible <bruno@clisp.org>
4731
4732 * intl/gettextP.h [! _LIBC]: Use prefix libintl_ instead of suffix __.
4733 * intl/dcigettext.c: Likewise.
4734 * intl/dcgettext.c: Likewise.
4735 * intl/dgettext.c: Likewise.
4736 * intl/gettext.c: Likewise.
4737 * intl/dcngettext.c: Likewise.
4738 * intl/dngettext.c: Likewise.
4739 * intl/ngettext.c: Likewise.
4740 * intl/textdomain.c: Likewise.
4741 * intl/bindtextdom.c: Likewise.
4742 * intl/plural-exp.h: Likewise.
4743
4744 2002-01-02 Bruno Haible <bruno@clisp.org>
4745
4746 * intl/loadmsgcat.c (_nl_init_domain_conv): Use PARAMS in extern decl.
4747
4748 2001-04-30 Bruno Haible <bruno@clisp.org>
4749
4750 * intl/dcigettext.c (getuid, getgid, geteuid, getegid): Provide
4751 default macro definitions. Needed for mingw32.
4752
4753 2002-12-10 Ulrich Drepper <drepper@redhat.com>
4754
4755 * sysdeps/i386/bits/byteswap.h (__bswap_64): Apply
4756 __builtin_constant_p to macro parameter.
4757
4758 * sysdeps/generic/sigpause.c: Define all functions as weak.
4759 * sysdeps/posix/sigpause.c: Likewise.
4760
4761 * elf/tst-tls7.c (do_test): Adjustments for l_tls_modid being of
4762 type size_t.
4763
4764 2002-12-10 Jakub Jelinek <jakub@redhat.com>
4765
4766 * elf/tst-array1.c (preinit_array, init_array, fini_array):
4767 Explicitly align the array to sizeof (void *).
4768 * elf/tst-array2dep.c (init_array, fini_array): Likewise.
4769
4770 * include/libc-symbols.h: Fix a comment typo.
4771
4772 * sysdeps/unix/sysv/linux/alpha/select.S (__libc_select): New alias.
4773 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__libc_sigsuspend):
4774 Likewise.
4775 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__libc_sigsuspend):
4776 Likewise.
4777 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c
4778 (__libc_sigsuspend): Likewise.
4779 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c
4780 (__libc_sigsuspend): Likewise.
4781 * sysdeps/generic/creat.c (__libc_creat): Renamed from creat.
4782 (creat): New weak alias.
4783
4784 2002-12-10 Roland McGrath <roland@redhat.com>
4785
4786 * manual/libc-texinfo.sh: Emit @set ADD-ON for each ADD-ON that
4787 contributes a manual chapter.
4788 * manual/signal.texi (Process Signal Mask): Use @ifset linuxthreads
4789 around xref to it.
4790
4791 * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Refer to
4792 and move contents to ...
4793 (EXTRA_LD_ENVVARS_LINUX): ... this new macro. Add break for nonmatch.
4794 * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS): Use
4795 it instead of duplicating its contents.
4796 (EXTRA_LD_ENVVARS): Likewise. Add break for nonmatch.
4797
4798 2002-12-09 Jakub Jelinek <jakub@redhat.com>
4799
4800 * elf/dl-support.c (_dl_non_dynamic_init): Add DL_OSVERSION_INIT if
4801 defined.
4802 * sysdeps/unix/sysv/linux/dl-librecon.h (_dl_osversion_init): New
4803 function.
4804 (EXTRA_LD_ENVVARS): Use it.
4805 (DL_OSVERSION_INIT): Define.
4806 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Include linux
4807 dl-librecon.h.
4808 (EXTRA_LD_ENVVARS): Undef before defining. Use _dl_osversion_init.
4809
4810 2002-12-10 Ulrich Drepper <drepper@redhat.com>
4811
4812 * Versions.def: No new symbols in 2.3.1, but some new ones in 2.3.2.
4813
4814 * sysdeps/unix/closedir.c (__closedir): Remove __libc_lock_lock
4815 call. It is not allowed to destroy pthread mutexes which are
4816 still in use even though it is safe for our implementations. If
4817 somebody still uses the descriptor it is a bug.
4818
4819 2002-12-09 Richard Henderson <rth@redhat.com>
4820
4821 * csu/abi-note.S: Use .p2align, not .align.
4822
4823 2002-12-09 Ulrich Drepper <drepper@redhat.com>
4824
4825 * sysdeps/unix/sysv/linux/syscalls.list: Add __libc_creat and
4826 __libc_select aliases.
4827
4828 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Define __libc_sigwaitinfo
4829 alias.
4830
4831 * sysdeps/unix/sysv/linux/sigwait.c: Define __libc_sigwait alias.
4832
4833 * sysdeps/unix/sysv/linux/sigsuspend.c: Define __libc_sigsuspend alias.
4834
4835 * sysdeps/unix/sysv/linux/poll.c: Define __libc_poll alias.
4836
4837 * sysdeps/unix/syscalls.list: Define __libc_select alias.
4838
4839 * sysdeps/posix/waitid.c: Define __libc_waitid alias.
4840
4841 * sysdeps/posix/sigpause.c: Define __libc_sigpause and
4842 __libc___xpg_sigpause aliases.
4843
4844 * sysdeps/generic/pselect.c: Define __libc_pselect alias.
4845
4846 * misc/error.c: Remove use of USE_IN_LIBIO.
4847
4848 2002-12-08 Roland McGrath <roland@redhat.com>
4849
4850 * elf/Makefile (tests): Uncomment tst-array[123].
4851 * Makeconfig (CPPFLAGS-.oS): Add -DLIBC_NONSHARED=1.
4852 * csu/elf-init.c: New file.
4853 * csu/Makefile (routines, static-only-routines): Add elf-init.
4854 * sysdeps/alpha/elf/start.S: Use __libc_csu_init in place of _init
4855 and __libc_csu_fini in place of _fini.
4856 * sysdeps/arm/elf/start.S: Likewise.
4857 * sysdeps/cris/elf/start.S: Likewise.
4858 * sysdeps/hppa/elf/start.S: Likewise.
4859 * sysdeps/i386/elf/start.S: Likewise.
4860 * sysdeps/ia64/elf/start.S: Likewise.
4861 * sysdeps/m68k/elf/start.S: Likewise.
4862 * sysdeps/mach/hurd/powerpc/static-start.S: Likewise.
4863 * sysdeps/mips/elf/start.S: Likewise.
4864 * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
4865 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
4866 * sysdeps/s390/s390-32/elf/start.S: Likewise.
4867 * sysdeps/s390/s390-64/elf/start.S: Likewise.
4868 * sysdeps/sh/elf/start.S: Likewise.
4869 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
4870 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
4871 * sysdeps/x86_64/elf/start.S: Likewise.
4872
4873 * sysdeps/pthread/aio_notify.c (notify_func_wrapper): Take a malloc'd
4874 struct containing function ptr and value, free it.
4875 (__aio_notify_only): Allocate that and copy values from SIGEV into it.
4876 It's not safe to let the new thread use the SIGEV pointer.
4877
4878 2001-10-20 Paul Eggert <eggert@twinsun.com>
4879
4880 * misc/error.c (strerror_r): Do not declare unless [!_LIBC].
4881 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
4882 Use strerror_r that is only a macro, even if it is not a function.
4883 (strerror): Check for HAVE_DECL_STRERROR before declaring.
4884 (private_strerror): Use prototypes, not old-style function definition.
4885 (print_errno_message): New function.
4886 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
4887 char*-flavored one.
4888 (error_tail, error, error_at_line): Use it.
4889
4890 2002-12-07 Carlos O'Donell <carlos@baldric.uwo.ca>
4891
4892 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Added SHMLBA #define.
4893
4894 2002-12-08 Ulrich Drepper <drepper@redhat.com>
4895
4896 * scripts/output-format.sed: Fix bug in one of the s expressions
4897 which used / for one too many things.
4898
4899 * include/unistd.h: Declare __libc_close.
4900
4901 2002-12-07 Ulrich Drepper <drepper@redhat.com>
4902
4903 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_trylock): New define.
4904
4905 2002-12-07 Roland McGrath <roland@redhat.com>
4906
4907 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Reintroduce changes
4908 from 2002-12-06, but remove unnecessary memset call without removing
4909 necessary copy of initialization image.
4910
4911 * Makerules ($(common-objpfx)format.lds): New target.
4912 (common-generated): Add it.
4913 ($(inst_libdir)/libc.so): Depend on that, and cat it into the result.
4914 * scripts/output-format.sed: New file.
4915 * Makefile (distribute): Add it.
4916
4917 2002-12-07 Ulrich Drepper <drepper@redhat.com>
4918
4919 * sysdeps/generic/libc-tls.c: Include <sys/param.h>.
4920 Reported by Art Haas <ahaas@airmail.net>.
4921
4922 2002-12-07 Kenneth W. Chen <kenneth.w.chen@intel.com>
4923
4924 * sysdeps/ia64/strncpy.S (strncpy): Clear ar.ec. Fix .recovery4.
4925
4926 2002-12-07 Jakub Jelinek <jakub@redhat.com>
4927
4928 * string/test-strncpy.c (do_random_tests): Improve test coverage.
4929
4930 2002-12-06 Ulrich Drepper <drepper@redhat.com>
4931
4932 * test-skeleton.c (timeout_handler): Allow expected signal to be
4933 SIGALRM.
4934
4935 * wctype/wcfuncs.c: Add libc_hidden_def for iswalnum.
4936
4937 * sysdeps/posix/raise.c: Add libc_hidden_def for raise.
4938
4939 2002-12-07 Jakub Jelinek <jakub@redhat.com>
4940
4941 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [RTLD_PRIVATE_ERRNO]
4942 (SYSCALL_ERROR_HANDLER): Fix a pasto.
4943 Reported by Jeff Bailey <jbailey@nisa.net>.
4944
4945 2002-12-06 Ulrich Drepper <drepper@redhat.com>
4946
4947 * sysdeps/generic/libc-tls.c: Undo last patch.
4948
4949 * include/wctype.h: Define iswalnum with libc_hidden_proto.
4950
4951 * include/signal.h: Define raise with libc_hidden_proto.
4952
4953 * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Use __snprintf and
4954 __execve instead of snprintf and execve.
4955
4956 * sysdeps/x86_64/fpu/libm-test-ulps: Relax errors for float and double
4957 again a bit.
4958
4959 2002-12-06 Jakub Jelinek <jakub@redhat.com>
4960
4961 * posix/Makefile (annexc.out): Add -I../dir for all sorted-dirs.
4962 * posix/annexc.c (fmt, testfmt): Remove -D_LIBC.
4963
4964 2002-12-06 Ulrich Drepper <drepper@redhat.com>
4965
4966 * misc/syslog.c (log_cleanup): New function.
4967 (openlog): Use log_cleanup instead of __libc_mutex_unlock.
4968 (closelog): Likewise.
4969
4970 * elf/dl-close.c: Use __rtld_lock_* macros instead of __libc_lock_*.
4971 * elf/dl-iteratephdr.c: Likewise.
4972 * elf/dl-lookup.c: Likewise.
4973 * elf/dl-misc.c: Likewise.
4974 * elf/dl-open.c: Likewise.
4975 * elf/dl-support.c: Likewise.
4976 * elf/rtld.c: Likewise.
4977 * sysdeps/generic/ldsodefs.h: Likewise.
4978 * sysdeps/generic/bits/libc-lock.h: Define __rtld_lock_* macros.
4979 * sysdeps/mach/bits/libc-lock.h: Likewise.
4980 * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
4981
4982 2002-12-06 Roland McGrath <roland@redhat.com>
4983
4984 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Cope with zero ALIGN.
4985
4986 * malloc/hooks.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]
4987 (malloc_starter, memalign_starter, free_starter): Don't define these.
4988 * malloc/malloc.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]:
4989 Don't declare them either.
4990 * malloc/arena.c (ptmalloc_init) [_LIBC && USE_TLS]: Don't call
4991 __pthread_initialize, so no need to set hooks to *_starter.
4992 (ptmalloc_init_minimal): New function, broken out of ptmalloc_init.
4993 [_LIBC && SHARED && USE_TLS && !USE___THREAD]
4994 (__libc_malloc_pthread_startup): New function.
4995 * malloc/Versions (libc: GLIBC_PRIVATE): New set, add that function.
4996
4997 * malloc/hooks.c (memalign_starter): New function.
4998 * malloc/malloc.c: Declare it.
4999 * malloc/arena.c (save_memalign_hook): New variable.
5000 (ptmalloc_init): Set __memalign_hook to memalign_starter.
5001
5002 * elf/dl-minimal.c (free): Clear the memory.
5003 (calloc): Just call malloc, knowing all memory it returns is cleared.
5004
5005 * sysdeps/generic/dl-tls.c (allocate_dtv): Use calloc instead of
5006 malloc and memset; calloc can avoid the zeroing when redundant.
5007 (_dl_tls_setup): Likewise.
5008 * elf/dl-load.c (decompose_rpath): Likewise.
5009 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Comment out memset
5010 call, since memory from sbrk at startup is already zero.
5011
5012 * elf/rtld.c (_dl_start, dl_main): TLS_INIT_TP macro now returns an
5013 error string for failure, null for success. Update callers.
5014 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
5015 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
5016
5017 2002-12-05 Jakub Jelinek <jakub@redhat.com>
5018
5019 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Change
5020 args to i:iipi.
5021 (readahead): Change args to i:iii.
5022 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list (readahead):
5023 Change args to i:iii.
5024 * sysdeps/unix/sysv/linux/mips/syscalls.list (readahead): Change
5025 args to i:iiii.
5026
5027 2002-12-05 Roland McGrath <roland@redhat.com>
5028
5029 * stdlib/cxa_finalize.c (__cxa_finalize): When given a null argument,
5030 call all functions rather than none.
5031 Reported by Mark P. Mitchell <mark@codesourcery.com>.
5032
5033 2002-12-04 Roland McGrath <roland@redhat.com>
5034
5035 * locale/localeinfo.h [NL_CURRENT_INDIRECT]: Use attribute_tls_model_ie
5036 on _nl_current_LC_* variables.
5037
5038 2002-12-05 Ulrich Drepper <drepper@redhat.com>
5039
5040 * dirent/bug-readdir1.c (main): Don't call closedir, just close
5041 the file descriptor. This is testing what the bug report was about.
5042
5043 2002-12-04 Ulrich Drepper <drepper@redhat.com>
5044
5045 * po/be.po: New file.
5046
5047 * argp/Makefile (tests): Add tst-argp1.
5048
5049 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: (struct sigevent):
5050 Change type of _attribute to void*.
5051 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
5052 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
5053 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
5054 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
5055 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
5056
5057 2002-12-04 Roland McGrath <roland@redhat.com>
5058
5059 * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS]
5060 members to the end, so a libpthread compiled with !USE_TLS will still
5061 find other members properly.
5062
5063 * sysdeps/i386/i486/bits/string.h (__strcpy_g): Add dummy output
5064 operand for DEST memory. Fix dummy input operand to use SRC.
5065 Reported by Davin McCall <davmac@ozonline.com.au>.
5066
5067 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Account for TCB
5068 alignment when initializing the DTV entry.
5069
5070 * elf/dl-load.c (_dl_map_object_from_fd): If we hit a TLS segment
5071 when TLS has not been set up, try to set it up if we can.
5072 * elf/tst-tls4.c: Revert last change.
5073 * elf/tst-tls5.c: Likewise.
5074 * elf/tst-tls6.c: Likewise.
5075 * elf/tst-tls7.c: Likewise.
5076 * elf/tst-tls8.c: Likewise.
5077 * elf/tst-tls9.c: Likewise.
5078
5079 * sysdeps/generic/dl-tls.c [SHARED] (_dl_tls_setup): New function.
5080 * sysdeps/generic/ldsodefs.h: Declare it.
5081 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
5082 * sysdeps/generic/libc-tls.c (init_slotinfo): New static inline
5083 function, broken out of __libc_setup_tls.
5084 (init_static_tls): Likewise.
5085 (__libc_setup_tls): Call them.
5086 (_dl_tls_setup): New function, uses new subroutines.
5087
5088 * elf/dl-close.c (free_slotinfo): Make argument pointer to pointer.
5089 Clear the pointer when returning true.
5090 (libc_freeres_fn) [SHARED]: If GL(dl_initial_dtv) is null, free the
5091 first element of the slotinfo list too.
5092
5093 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Define only if
5094 [SHARED].
5095
5096 * sysdeps/generic/ldsodefs.h (_dl_next_tls_modid): Declare as hidden.
5097 (_dl_determine_tlsoffset): Likewise.
5098
5099 * elf/rtld.c (_dl_initial_error_catch_tsd): Renamed from
5100 startup_error_tsd, made global.
5101 (dl_main): Update initialization.
5102 * elf/dl-tsd.c: Likewise.
5103 * sysdeps/generic/ldsodefs.h: Declare it.
5104
5105 2002-12-03 Ulrich Drepper <drepper@redhat.com>
5106
5107 * manual/texinfo.tex: Update from latest upstream version.
5108
5109 2002-12-03 Roland McGrath <roland@redhat.com>
5110
5111 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Include static TLS
5112 area surplus in calculation for sbrk call.
5113
5114 * iconvdata/cp1125.c: New file.
5115 * iconvdata/Makefile (distribute): Add it.
5116 (modules): Add CP1125.
5117 (gen-8bit-gap-modules): Add cp1125.
5118 * iconvdata/gconv-modules: Add CP1125, alias RUSCII.
5119 * iconvdata/tst-tables.sh: Add CP1125 to the list to test.
5120
5121 2002-12-03 Andreas Jaeger <aj@suse.de>
5122
5123 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
5124
5125 2002-12-03 Ulrich Drepper <drepper@redhat.com>
5126
5127 * sysdeps/posix/system.c (do_system): Make signal handler
5128 installation thread safe.
5129
5130 2002-12-02 Roland McGrath <roland@redhat.com>
5131
5132 * sysdeps/unix/sysv/linux/alpha/syscalls.list (readahead): Change
5133 caller from EXTRA to -.
5134 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5135 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
5136 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5137
5138 2002-12-02 Carlos O'Donell <carlos@baldric.uwo.ca>
5139
5140 * sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both
5141 bits of RM are cleared.
5142
5143 2002-12-02 Roland McGrath <roland@redhat.com>
5144
5145 * elf/tst-tls4.c: Define an unused TLS variable here, so that no lazy
5146 TLS setup is required.
5147 * elf/tst-tls5.c: Likewise.
5148 * elf/tst-tls6.c: Likewise.
5149 * elf/tst-tls7.c: Likewise.
5150 * elf/tst-tls8.c: Likewise.
5151 * elf/tst-tls9.c: Likewise.
5152
5153 * elf/rtld.c (dl_main): Remove [! SHARED] conditional from
5154 `if (GL(dl_tls_max_dtv_idx) > 0)' tests for doing TLS setup.
5155 * elf/dl-close.c (libc_freeres_fn): Check GL(dl_tls_dtv_slotinfo_list)
5156 for being null before calling free_slotinfo.
5157 * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: For PT_TLS in
5158 dynamic loading, bail with error if GL(dl_tls_max_dtv_idx) is zero.
5159
5160 2002-11-30 Bruno Haible <bruno@clisp.org>
5161
5162 * iconv/gconv.h (__gconv_btowc_fct): New typedef.
5163 (struct __gconv_step): New field __btowc_fct.
5164 * wcsmbs/btowc.c (__btowc): Use the __btowc_fct shortcut if possible.
5165 * iconv/gconv_int.h (__BUILTIN_TRANSFORM): Renamed from
5166 __BUILTIN_TRANS.
5167 (__gconv_btwoc_ascii): New declaration.
5168 * iconv/gconv_simple.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
5169 (__gconv_btwoc_ascii): New function.
5170 * iconv/gconv_builtin.h: Add BtowcFct argument to all
5171 BUILTIN_TRANSFORMATION invocations.
5172 * iconv/gconv_conf.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
5173 * iconv/iconvconfig.c (BUILTIN_TRANSFORMATION): Likewise.
5174 * iconv/gconv_builtin.c (map): New field btowc_fct.
5175 (BUILTIN_TRANSFORMATION): Add BtowcFct argument. Use it to initialize
5176 btowc_fct field.
5177 (__gconv_get_builtin_trans): Initialize __btowc_fct field.
5178 * iconv/gconv_cache.c (find_module): Initialize __btowc_fct field.
5179 * iconv/gconv_db.c (gen_steps, increment_counter): Likewise.
5180 * wcsmbs/wcsmbsload.c (to_wc, to_mb): Likewise.
5181 * iconv/skeleton.c: Document STORE_REST and FROM_ONEBYTE.
5182 (gconv_init): Initialize __btowc_fct field.
5183 Undefine EXTRA_LOOP_ARGS and FROM_ONEBYTE at the end.
5184 * iconv/loop.c: Document ONEBYTE_BODY.
5185 (gconv_btowc, FROM_ONEBYTE): Define if ONEBYTE_BODY is defined.
5186 Undefine ONEBYTE_BODY at the end.
5187 * iconvdata/8bit-generic.c (ONEBYTE_BODY): New macro.
5188 * iconvdata/8bit-gap.c (NONNUL): New macro.
5189 (BODY for FROM_LOOP): Use it.
5190 (ONEBYTE_BODY): New macro.
5191 * iconvdata/isiri-3342.c (HAS_HOLES): Set to 1.
5192 (NONNUL): New macro.
5193 * iconvdata/ansi_x3.110.c (ONEBYTE_BODY): New macro.
5194 * iconvdata/armscii-8.c (ONEBYTE_BODY): New macro.
5195 * iconvdata/cp1255.c (ONEBYTE_BODY): New macro.
5196 * iconvdata/cp1258.c (ONEBYTE_BODY): New macro.
5197 * iconvdata/tcvn5712-1.c (ONEBYTE_BODY): New macro.
5198 * iconvdata/big5.c (ONEBYTE_BODY): New macro.
5199 * iconvdata/big5hkscs.c (ONEBYTE_BODY): New macro.
5200 * iconvdata/euc-cn.c (ONEBYTE_BODY): New macro.
5201 * iconvdata/euc-jp.c (ONEBYTE_BODY): New macro.
5202 * iconvdata/euc-jisx0213.c (ONEBYTE_BODY): New macro.
5203 * iconvdata/euc-kr.c (ONEBYTE_BODY): New macro.
5204 * iconvdata/euc-tw.c (ONEBYTE_BODY): New macro.
5205 * iconvdata/gbk.c (ONEBYTE_BODY): New macro.
5206 * iconvdata/gb18030.c (ONEBYTE_BODY): New macro.
5207 * iconvdata/ibm932.c: Include <stdbool.h>.
5208 (TRUE, FALSE): Remove macros.
5209 (BODY for FROM_LOOP): Remove unused variable rp1.
5210 (ONEBYTE_BODY): New macro.
5211 (BODY for TO_LOOP): Use bool.
5212 * iconvdata/ibm932.h (__ibm932sb_to_ucs4_idx): Remove array.
5213 * iconvdata/ibm943.c: Include <stdbool.h>.
5214 (TRUE, FALSE): Remove macros.
5215 (BODY for FROM_LOOP): Remove unused variable rp1.
5216 (ONEBYTE_BODY): New macro.
5217 (BODY for TO_LOOP): Use bool.
5218 * iconvdata/ibm943.h (__ibm943sb_to_ucs4_idx): Remove array.
5219 * iconvdata/iso8859-1.c (ONEBYTE_BODY): New macro.
5220 * iconvdata/iso_6937-2.c (ONEBYTE_BODY): New macro.
5221 * iconvdata/iso_6937.c (ONEBYTE_BODY): New macro.
5222 * iconvdata/johab.c (ONEBYTE_BODY): New macro.
5223 * iconvdata/sjis.c (ONEBYTE_BODY): New macro.
5224 * iconvdata/shift_jisx0213.c (ONEBYTE_BODY): New macro.
5225 * iconvdata/t.61.c (ONEBYTE_BODY): New macro.
5226 * iconvdata/uhc.c (ONEBYTE_BODY): New macro.
5227 * iconvdata/gbbig5.c: Tweak comment.
5228
5229 2002-12-02 Ulrich Drepper <drepper@redhat.com>
5230
5231 * po/fi.po: Update from translation team.
5232
5233 2002-12-01 Roland McGrath <roland@redhat.com>
5234
5235 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
5236 testing getdents64 return value.
5237
5238 * scripts/versions.awk: Don't pass -n flag to sort command.
5239
5240 * posix/bug-regex13.c: Include <string.h>.
5241
5242 * sysdeps/generic/libc-start.c (__libc_start_main): Do
5243 DL_SYSDEP_OSCHECK here.
5244 * sysdeps/unix/sysv/linux/init-first.c (init): Not here.
5245 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <fcntl.h>.
5246
5247 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Bail if
5248 argument TCBSIZE <= TLS_INIT_TCB_SIZE, not just if it's zero.
5249
5250 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Check l_tls_offset
5251 instead of l_type to decide whether to use TLS_DTV_UNALLOCATED.
5252
5253 * include/link.h: Comment typo fix.
5254
5255 2002-12-01 Roland McGrath <roland@frob.com>
5256
5257 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_FSYNC): Set to 200112L.
5258 (_POSIX_SPAWN, _POSIX_MAPPED_FILES, _POSIX_MEMLOCK_RANGE,
5259 _POSIX_MEMORY_PROTECTION): Likewise.
5260 (_POSIX_POLL, _POSIX_SELECT): Removed.
5261
5262 2002-11-28 Ulrich Drepper <drepper@redhat.com>
5263
5264 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
5265 require it to 200112L. Remove _POSIX_POLL and _POSIX_SELECT.
5266
5267 2002-11-28 Jakub Jelinek <jakub@redhat.com>
5268
5269 * sysdeps/unix/alpha/sysdep.S: Change defined(USE___THREAD) to
5270 USE___THREAD.
5271 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall*): Avoid
5272 "=v" constraints.
5273
5274 2002-11-28 Ulrich Drepper <drepper@redhat.com>
5275
5276 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Don't trash the CPU's
5277 branch prediction buffers by using unpaired call/ret.
5278
5279 2002-11-27 Ulrich Drepper <drepper@redhat.com>
5280
5281 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Fix typo in
5282 first parameters constraint string.
5283 (ASMFMT_3): Likewise. Patch by stefan.lauterbach@mincom.de.
5284
5285 2002-11-27 Isamu Hasegawa <isamu@yamato.ibm.com>
5286
5287 * posix/regcomp.c (parse_expression): Set the bit since the back
5288 reference is used in the regular expression.
5289 * posix/regex_internal.c (re_node_set_init_1): Make it clean in case
5290 of malloc failure.
5291 (re_node_set_init_copy): Likewise.
5292 * posix/regex_internal.h (state_array_t): New structure.
5293 (re_sub_match_last_t): Likewise.
5294 (re_sub_match_top_t): Likewise.
5295 (re_match_context_t): Add new members.
5296 (re_dfa_t): Likewise.
5297 * posix/regexec.c (re_search_internal): Invoke prune_impossible_nodes
5298 to check the matching is really correct, and retry if failed.
5299 Move the routin pruning the impossible nodes from here, ...
5300 (prune_impossible_nodes): To this function.
5301 (check_matching): Invoke check_subexp_matching_top, and replace
5302 redundant checking with transit_state_bkref invocation.
5303 (proceed_next_node): Replace strncmp with memcmp. Reported by
5304 Paolo Bonzini <bonzini@gnu.org>.
5305 (update_cur_sifted_state): Remove search_subexp invocation.
5306 (search_subexp): Remove this function.
5307 (check_dst_limits_calc_pos): Use search_cur_bkref_entry for
5308 optimization.
5309 (sift_states_bkref): Use search_cur_bkref_entry for optimization.
5310 Remove unused invocation of match_ctx_add_entry.
5311 (transit_state): Invoke check_subexp_matching_top.
5312 (check_subexp_matching_top): New function.
5313 (transit_state_bkref): Remove unused array.
5314 Merge transit_state_bkref_loop.
5315 (transit_state_bkref_loop): Use get_subexp instead of
5316 sift_states_backward. Use search_cur_bkref_entry for optimization.
5317 Merge this function to transit_state_bkref.
5318 (get_subexp): New function.
5319 (get_subexp_sub): Likewise.
5320 (find_subexp_node): Likewise.
5321 (check_arrival): Likewise.
5322 (check_arrival_expand_ecl): Likewise.
5323 (check_arrival_expand_ecl_sub): Likewise.
5324 (expand_bkref_cache): Likewise.
5325 (match_ctx_init): Initialize new members.
5326 (match_ctx_clean): New function.
5327 (match_ctx_free): Release new members.
5328 (match_ctx_free_subtops): New function.
5329 (match_ctx_add_entry): Fix indent.
5330 (search_cur_bkref_entry): New function.
5331 (match_ctx_add_subtop): Likewise.
5332 (match_ctx_add_sublast): Likewise.
5333
5334 2002-11-25 Ulrich Drepper <drepper@redhat.com>
5335
5336 * iconv/Makefile (tests): Remove tst-iconv4.c
5337 * iconv/tst-iconv4.c: Moved to...
5338 * iconvdata/tst-iconv4.c: ...here. New file.
5339 * iconvdata/Makefile (tests): Add tst-iconv4. Add dependencies.
5340
5341 2002-11-25 Roland McGrath <roland@redhat.com>
5342
5343 * inet/test-ifaddrs.c (main: addr_string): Handle null SA.
5344 Grok AF_LINK if defined.
5345 From Momchil Velikov <velco@fadata.bg>.
5346
5347 * sysdeps/gnu/ifaddrs.c (getifaddrs): If ioctl fails for netmask,
5348 brdaddr, or dstaddr, just set those pointers to null and don't fail.
5349 Reported by Momchil Velikov <velco@fadata.bg>.
5350
5351 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: If sa_len
5352 is > sizeof IFR->ifa_addr, advance past the whole longer length.
5353 (__ifreq): Count up NIFS that way too.
5354 Reported by Momchil Velikov <velco@fadata.bg>.
5355
5356 * sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>.
5357
5358 * sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>
5359 and <fpu_control.h>.
5360
5361 2002-11-24 Ulrich Drepper <drepper@redhat.com>
5362
5363 * elf/elf.h (EM_ST19): Fix typo.
5364
5365 2002-11-25 Jakub Jelinek <jakub@redhat.com>
5366
5367 * include/errno.h (__set_errno): Define as errno = val
5368 unconditionally.
5369
5370 2002-11-24 Roland McGrath <roland@redhat.com>
5371
5372 * sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.
5373 * sysdeps/posix/writev.c: Likewise.
5374 From Momchil Velikov <velco@fadata.bg>.
5375
5376 * elf/dl-error.c [! _LIBC_REENTRANT]: Use a static variable instead of
5377 calling *GL(dl_error_catch_tsd) for a thread-local location.
5378 * elf/rtld.c (startup_error_tsd): Conditionalize on [_LIBC_REENTRANT].
5379 (dl_main): Same for GL(dl_error_catch_tsd) initialization.
5380 * elf/dl-tsd.c: Conditionalize contents on [_LIBC_REENTRANT].
5381
5382 * libio/iofflush.c: Add libc_hidden_def.
5383 * libio/iofwrite.c: Likewise.
5384 * sysdeps/generic/sigtimedwait.c: Likewise.
5385 * sysdeps/generic/sigwaitinfo.c: Likewise.
5386 * sysdeps/posix/sigwait.c: Likewise.
5387 Reported by Momchil Velikov <velco@fadata.bg>.
5388
5389 * inet/inet_lnaof.c (inet_lnaof): Change return type to in_addr_t
5390 to match <arpa/inet.h> declaration.
5391 * inet/inet_netof.c (inet_netof): Likewise.
5392 * inet/inet_mkadr.c (inet_makeaddr): Likewise for argument types.
5393 Reported by Momchil Velikov <velco@fadata.bg>.
5394
5395 * configure.in: Skip AUTOCONF check under --without-cvs.
5396 * configure: Regenerated.
5397
5398 * posix/Makefile (headers): Add bits/pthreadtypes.h.
5399 * sysdeps/unix/sysv/linux/Makefile (sysdep_heaers): Don't add it here.
5400 * sysdeps/unix/sysv/linux/Dist: Remove it from the list.
5401
5402 2002-11-24 Andreas Schwab <schwab@suse.de>
5403
5404 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall
5405 with six arguments.
5406
5407 2002-11-19 Jim Meyering <jim@meyering.net>
5408
5409 * time/mktime.c (__mon_yday, __mktime_internal) [!_LIBC]: Declare
5410 as `static'.
5411 * time/strptime.c (__mon_yday) [!_LIBC]: Declare as `static'.
5412
5413 2002-11-23 Roland McGrath <roland@redhat.com>
5414
5415 * scripts/abilist.awk: Avoid strtonum function, not there in mawk.
5416 Just produce hex output for datum sizes.
5417
5418 * elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.
5419 Reported by Luca Barbieri <ldb@ldb.ods.org>.
5420
5421 2002-11-20 Steven Munroe <sjmunroe@us.ibm.com>
5422
5423 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds)
5424 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
5425 and __unused3 fields.
5426 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h (semid_ds)
5427 [__WORDSIZE == 32]: Only PPC32 requires __unused1
5428 and __unused2 fields.
5429 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (shmid_ds)
5430 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
5431 __unused3, and __unused4 fields.
5432
5433 * csu/gmon-start.c (__gmon_start__): Always use TEXT_START macro to
5434 obtain lowest address for profiling in __monstartup call.
5435
5436 2002-11-21 Roland McGrath <roland@redhat.com>
5437
5438 * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove redunant
5439 $(calls) $(calls:=f) $(long-c-$(long-double-fcts)).
5440
5441 * locale/localeinfo.h (struct locale_data): Revert last change.
5442
5443 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.
5444 From Ian Wienand <ianw@gelato.unsw.edu.au>.
5445
5446 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to
5447 __NR_pread64 if not defined.
5448 (__NR_pwrite): Define to __NR_pwrite64 if not defined.
5449 From Ian Wienand <ianw@gelato.unsw.edu.au>.
5450
5451 2002-11-21 Roland McGrath <roland@frob.com>
5452
5453 * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set
5454 __libc_multiple_libcs here. Call __setfpucw.
5455
5456 2002-11-21 Ulrich Drepper <drepper@redhat.com>
5457
5458 * elf/Makefile (tests): Don't run test-arrayX tests for now.
5459
5460 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags.
5461 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for
5462 CLONE_CHILD_*TID flags.
5463
5464 2002-11-20 Andreas Jaeger <aj@suse.de>
5465
5466 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
5467 We pass struct ucontext on x86-64.
5468 (GET_PC): Adjust.
5469 (GET_FRAME): Adjust.
5470 (GET_STACK): Adjust.
5471
5472 2002-11-20 Roland McGrath <roland@redhat.com>
5473
5474 * sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further
5475 conditionalize [! DO_VERSIONING] #error.
5476
5477 * scripts/abilist.awk: Grok function descriptor symbols.
5478
5479 * intl/tst-gettext.c (main): Check return values from setlocale.
5480 Add necessary unsetenv's to make LANG=existing-locale check work.
5481
5482 * intl/tst-gettext.sh: Use mkdir -p. Copy test files unconditionally,
5483 so aborted prior runs don't confuse things.
5484
5485 * locale/localeinfo.h (struct locale_data: union locale_data_value):
5486 Use uintptr_t instead of unsigned int for `word' member.
5487 (_NL_CURRENT_WORD): Cast to uint32_t.
5488
5489 * posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES
5490 value.
5491
5492 2002-11-20 Ulrich Drepper <drepper@redhat.com>
5493
5494 * elf/tls-macros.h: Add IA-64 definitions.
5495 Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
5496
5497 * iconv/Makefile (tests): Add tst-iconv4.
5498 * iconv/tst-iconv4.c: New file.
5499
5500 * iconv/gconv_simple.c (internal_ucs4le_loop_unaligned): Return
5501 __GCONV_EMPTY_INPUT only if input is really empty. Otherwise
5502 __GCONV_INCOMPLETE_INPUT.
5503 (ucs4le_internal_loop): Likewise.
5504 (ucs4le_internal_loop_unaligned): Likewise.
5505 * iconvdata/unicode.c (PREPARE_LOOP): Likewise.
5506 * iconvdata/utf-16.c (PREPARE_LOOP): Likewise.
5507 * iconvdata/utf-32.c (PREPARE_LOOP): Likewise.
5508
5509 * iconv/loop.c (LOOPFCT): First test for empty input then for full
5510 output buffer.
5511
5512 * inet/getnameinfo.c: Use extend_alloca where appropriate.
5513 * sysdeps/posix/getaddrinfo.c: Likewise.
5514
5515 * include/alloca.h (extend_alloca): New define. Based on stack
5516 direction it'll try to append to the previouls allocated buffer.
5517
5518 2002-11-07 Thorsten Kukuk <kukuk@suse.de>
5519
5520 * sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set,
5521 use the same service for AF_INET and AF_INET6.
5522
5523 2002-11-19 Ulrich Drepper <drepper@redhat.com>
5524
5525 * intl/localealias.c (read_alias_file): Use only about 400 bytes
5526 of stack space instead of 16k.
5527
5528 2002-11-18 Wolfram Gloger <wg@malloc.de>
5529
5530 * malloc/arena.c
5531 (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
5532 nothing if not initialized. Bug report from Marcus Brinkmann
5533 <Marcus.Brinkmann@ruhr-uni-bochum.de>.
5534
5535 2002-11-19 Roland McGrath <roland@redhat.com>
5536
5537 * posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and
5538 sched_setaffinity.
5539
5540 * configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
5541 `-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
5542 test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
5543 * configure: Regenerated.
5544
5545 2002-11-19 Ulrich Drepper <drepper@redhat.com>
5546
5547 * include/dlfcn.h: __libc_dlopen is now a macro calling
5548 __libc_dlopen_mode with the extra parameter RTLD_LAZY.
5549 (__libc_dlopen_mode): New prototype.
5550 * elf/dl-libc.c (__libc_dlopen_mode): Renamed from __libc_dlopen. Add
5551 new parameter. Store new parameter in mode field of structure passed
5552 to do_dlopen.
5553 (struct do_dlopen_args): Add new field mode.
5554 (do_dlopen): Pass mode from parameter structure to _dl_open.
5555
5556 2002-11-11 Randolf Chung <tausq@debian.org>
5557
5558 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
5559 (F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions.
5560 * sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.
5561
5562 * sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
5563
5564 * sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
5565 Set -mdisable-fpregs for this file.
5566
5567 2002-11-11 Carlos O'Donell <carlos@baldric.uwo.ca>
5568
5569 * sysdeps/unix/sysv/linux/configure.in:
5570 Make 2.4.19 minimum linux kernel for hppa, and add unwind symbols
5571 from gcc-3.0 era for backwards compatibility.
5572 * sysdeps/unix/sysv/linux/configure: Regenerate.
5573
5574 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
5575 Define mcontext_t as a sigcontext.
5576
5577 2002-11-18 Roland McGrath <roland@redhat.com>
5578
5579 * dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)).
5580 Free memory in `last_result' if it was used.
5581
5582 * resolv/nss_dns/dns-network.c (getanswer_r): In BYNAME case, search
5583 all aliases for one that matches the "<dotted-quad>.IN-ADDR.ARPA" form.
5584 Do the parsing inline instead of copying strings and calling
5585 inet_network, and properly skip all alias names not matching the form.
5586
5587 * manual/pattern.texi (Variable Substitution): Fix # and ## examples.
5588
5589 2002-11-17 Ulrich Drepper <drepper@redhat.com>
5590
5591 * manual/pattern.texi (Wordexp Example): Fix sample code.
5592
5593 * sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the
5594 childs stack which will be loaded into the %esi register.
5595
5596 2002-11-14 Paul Eggert <eggert@twinsun.com>
5597
5598 * resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
5599 overflow when skipping the question part and when unpacking aliases.
5600
5601 2002-11-15 Roland McGrath <roland@redhat.com>
5602
5603 * math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,
5604 s_finite, s_modf, s_scalbn, s_frexp, m_ldexp, s_signbit.
5605 Instead add $(calls:s_%=m_%) to get m_* versions of them all.
5606
5607 2002-11-15 Jakub Jelinek <jakub@redhat.com>
5608
5609 * sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
5610 * sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY.
5611
5612 2002-11-15 Roland McGrath <roland@redhat.com>
5613
5614 * math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
5615 * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc]
5616 from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep).
5617 (+make-include-of-dep): New canned sequence.
5618
5619 * stdlib/canonicalize.c (__realpath): Check for malloc failure.
5620 From Dmitry V. Levin <ldv@altlinux.org>.
5621
5622 2002-11-14 Roland McGrath <roland@redhat.com>
5623
5624 * sysdeps/generic/errno.c (__libc_errno): Remove alias.
5625 * inet/herrno.c (__libc_h_errno): Likewise.
5626 * resolv/res_libc.c (__libc_res): Likewise.
5627 [USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
5628 (__res_state) [! USE___THREAD]: Don't define as weak.
5629 * csu/Versions: Revert last change.
5630 * resolv/Versions: Revert last change.
5631
5632 * Makerules ($(common-objpfx)%.make): New pattern rule.
5633 * tls.make.c: New file.
5634 * Makefile (distribute): Add it.
5635
5636 * sysdeps/generic/errno.c [! USE___THREAD]
5637 [HAVE_ELF && SHARED && DO_VERSIONING] (errno, _errno): Declare these
5638 with compat_symbol so they are not link-time visible.
5639 [! USE___THREAD] (__libc_errno): New alias for errno.
5640 * csu/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
5641 Add __libc_errno here.
5642 * inet/herrno.c [USE___THREAD]: Use this conditional
5643 in place of [USE_TLS && HAVE___THREAD].
5644 [! USE___THREAD] [HAVE_ELF && SHARED && DO_VERSIONING]
5645 (h_errno, _h_errno): Declare these with compat_symbol so they are not
5646 link-time visible.
5647 [! USE___THREAD] (__libc_h_errno): New alias for h_errno.
5648 * resolv/res_libc.c [! USE___THREAD]
5649 [HAVE_ELF && SHARED && DO_VERSIONING] (_res): Likewise.
5650 (_res): Use __attribute__ ((section (".bss"))) so we can have an alias.
5651 (__libc_res): Define as alias for _res.
5652 * resolv/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
5653 Add __libc_h_errno and __libc_res here.
5654
5655 2002-11-14 Jakub Jelinek <jakub@redhat.com>
5656
5657 * csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now.
5658 * resolv/Versions (h_errno, _res): Likewise.
5659
5660 2002-11-14 Roland McGrath <roland@redhat.com>
5661
5662 * Makerules (%.dynsym): Remove $(objpfx) from target and dep.
5663 (%.symlist): Likewise.
5664
5665 2002-11-13 Roland McGrath <roland@redhat.com>
5666
5667 * scripts/abilist.awk: New file.
5668 * Makefile (distribute): Add it.
5669 * Makerules ($(objpfx)%.dynsym, $(objpfx)%.symlist): New rules.
5670 (tests): Depend on .symlist file for each $(install-lib.so-versioned).
5671 [$(subdir) = elf] (tests): Depend on libc.symlist.
5672 (generated, common-generated): Add those files.
5673
5674 * aclocal.m4 (LIBC_PROG_BINUTILS): Check for objdump, set OBJDUMP.
5675 * configure: Regenerated.
5676 * config.make.in (OBJDUMP): New variable, substituted by configure.
5677
5678 * malloc/mcheck.c (struct hdr): New members `block' and `magic2'.
5679 (mallochook, reallochook): Set them up.
5680 (checkhdr): Check HDR->magic2 value.
5681 (freehook): Reset HDR->magic2.
5682 (memalignhook): New static function.
5683 (old_memalign_hook): New static variable.
5684 (mcheck, reallochook): Set __memalign_hook to memalignhook.
5685
5686 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space
5687 for the new TCB.
5688
5689 2002-11-13 Andreas Jaeger <aj@suse.de>
5690
5691 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Check for visibility
5692 attribute.
5693 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
5694
5695 2002-11-11 Paul Eggert <eggert@twinsun.com>
5696
5697 * manual/crypt.texi (Cryptographic Functions): Mention that
5698 the MD5 one-way algorithm is compatible with BSD's.
5699
5700 2002-11-11 Isamu Hasegawa <isamu@yamato.ibm.com>
5701
5702 * posix/regex_internal.c (re_string_skip_chars): Also return the last
5703 wide character.
5704 (re_string_reconstruct): Calculate the context by itself when the
5705 offset points out of the valid range.
5706 (re_string_context_at): Use wide character when MB_CUR_MAX > 1.
5707 * posix/regex_internal.h (WIDE_NEWLINE_CHAR): New macro.
5708 (IS_WIDE_WORD_CHAR): New macro.
5709 (IS_WIDE_NEWLINE): New macro.
5710
5711 2002-11-12 Andreas Jaeger <aj@suse.de>
5712
5713 * sysdeps/x86_64/strchr.S: Don't use one register for two
5714 purposes, this fixes a bug noticed by test-strchr.c.
5715
5716 * sysdeps/x86_64/strcat.S: Fix algorithm to align source pointer
5717 correctly.
5718
5719 2002-11-12 Roland McGrath <roland@redhat.com>
5720
5721 * libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]
5722 (_G_IO_NO_BACKWARD_COMPAT): Define it.
5723
5724 * sysdeps/ia64/dl-fptr.c [_LIBC_REENTRANT]: Include <ia64intrin.h>
5725 instead of <pt-machine.h>.
5726 [_LIBC_REENTRANT] (lock, unlock): Use __sync_lock_* macros instead of
5727 testandset.
5728 From Ian Wienand <ianw@gelato.unsw.edu.au>.
5729
5730 2002-11-10 Roland McGrath <roland@redhat.com>
5731
5732 * libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos.
5733 Call fputs instead of fwprintf (simpler to follow in debugger).
5734
5735 * crypt/md5-crypt.c: Doc fix.
5736
5737 * sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at
5738 the beginning of generated target commands.
5739
5740 * csu/Makefile ($(objpfx)crti.o, $(objpfx)crtn.o): Add explicit
5741 dependencies for these in case implicit rule search skipped the
5742 nonexistent source directory.
5743 * sysdeps/gnu/Makefile ($(objpfx)errlist.d): Give this rule all the
5744 files with $(object-suffixes) as targets too.
5745 * Makerules [no_deps && objpfx] (before-compile): Add $(objpfx).
5746 and a target for it using $(make-target-directory).
5747
5748 * Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h.
5749
5750 2002-11-10 Roland McGrath <roland@frob.com>
5751
5752 * sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
5753 * sysdeps/generic/bits/pthreadtypes.h: ... here.
5754
5755 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Treat a struct flock with
5756 l_start == 0 and l_len == 1 as we do l_len == 0.
5757
5758 2002-11-10 Ulrich Drepper <drepper@redhat.com>
5759
5760 * po/da.po: Update from translation team.
5761
5762 2002-11-10 Roland McGrath <roland@redhat.com>
5763
5764 * config.make.in (includedir): New variable, substituted by configure.
5765 Reported missing by Jocelyn Fournier <joc@presence-pc.com>.
5766 * Makeconfig (includedir): Use $(prefix), not $(exec_prefix).
5767
5768 2002-11-10 Andreas Jaeger <aj@suse.de>
5769
5770 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (enum): Add
5771 REG_OLDMASK and REG_CR2 to synch with kernel header.
5772 (NGREG): Increase.
5773
5774 * nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict
5775 aliasing problem.
5776 * nss/getXXbyYY_r.c (INTERNAL): Likewise.
5777 * nss/getnssent_r.c (__nss_getent_r): Likewise.
5778 (__nss_setent): Likewise.
5779 (__nss_getent_r): Likewise.
5780 * inet/getnetgrent_r.c (innetgr): Likewise.
5781 (__internal_setnetgrent_reuse): Likewise.
5782 (internal_getnetgrent_r): Likewise.
5783 * inet/ether_hton.c (ether_hostton): Likewise.
5784 * inet/ether_ntoh.c (ether_ntohost): Likewise.
5785 * sunrpc/netname.c (netname2user): Likewise.
5786 * sunrpc/publickey.c (getpublickey): Likewise.
5787 (getsecretkey): Likewise.
5788
5789 2002-11-09 Marcus Brinkmann <marcus@gnu.org>
5790
5791 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
5792 error in range calculation.
5793
5794 2002-10-09 Jakub Jelinek <jakub@redhat.com>
5795
5796 * string/test-strspn.c (do_test): Ensure zero termination.
5797 * string/test-strpbrk.c (do_test): Likewise.
5798 * string/test-strncmp.c (stupid_strncmp): Use strnlen, not strlen.
5799 * string/test-strncpy.c (stupid_strncpy): Likewise.
5800 * string/test-stpncpy.c (stupid_stpncpy): Likewise.
5801
5802 2002-10-08 Roland McGrath <roland@redhat.com>
5803
5804 * string/test-string.h (test_init): Fill BUF1 and BUF2 with
5805 nonzero characters.
5806
5807 2002-09-22 H.J. Lu <hjl@gnu.org>
5808
5809 * sysdeps/unix/sysv/linux/mmap64.c (MMAP2_PAGE_SHIFT): Renamed
5810 from PAGE_SHIFT. Define if not defined. Check MMAP2_PAGE_SHIFT
5811 only if __NR_mmap2 is defined.
5812
5813 * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Moved to ...
5814 * sysdeps/unix/sysv/linux/mmap64.c: ... here.
5815 * sysdeps/unix/sysv/linux/hppa/mmap64.c: File removed.
5816 * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: FIle removed,
5817
5818 2002-11-08 Jakub Jelinek <jakub@redhat.com>
5819
5820 * posix/bug-regex13.c (tests): Add new test.
5821
5822 * string/test-strchr.c (stupid_strchr): New function.
5823 (do_random_tests): Make sure the string is zero terminated.
5824 * string/test-strpbrk.c (stupid_strpbrk): New function.
5825 (do_random_tests): Make sure the string is zero terminated.
5826 * string/test-strcmp.c (stupid_strcmp): New function.
5827 (do_random_tests): Make sure the strings are zero terminated.
5828 * string/test-strspn.c (stupid_strspn): New function.
5829 (simple_strspn): Rename rej argument to acc.
5830 (do_random_tests): Make sure the string is zero terminated.
5831 * string/test-strcspn.c (stupid_strcspn): New function.
5832 * string/test-strncpy.c (stupid_strncpy): New function.
5833 * string/test-stpncpy.c (stupid_stpncpy): New function.
5834 * string/test-strncmp.c (stupid_strncmp): New function.
5835 (do_random_tests): Make sure the strings are zero terminated.
5836 * string/test-string.h (impl_t): Change test into long.
5837 (IMPL): Add __attribute__((aligned (sizeof (void *)))).
5838
5839 2002-11-08 Roland McGrath <roland@redhat.com>
5840
5841 * sysdeps/ia64/elf/configure.in: Add TLS check.
5842 From Ian Wienand <ianw@cse.unsw.edu.au>.
5843 * sysdeps/ia64/elf/configure: Regenerated.
5844
5845 2002-11-07 Roland McGrath <roland@redhat.com>
5846
5847 * libio/fileops.c (_IO_new_file_overflow): Use INTUSE(_IO_do_write) in
5848 place of _IO_new_do_write.
5849 [_LIBC] (_IO_do_write): Define as macro for _IO_new_do_write and
5850 #undef before versioned_symbol use.
5851
5852 2002-11-07 Richard Henderson <rth@redhat.com>
5853
5854 * configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
5855 * configure: Regenerated.
5856 * config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef.
5857 * sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp.
5858 (RTLD_START): Likewise. Access _dl_skip_args, _rtld_local, and
5859 _dl_fini via gp-relative relocations.
5860 * sysdeps/alpha/fpu/e_sqrt.c: Use !samegp.
5861
5862 * elf/tls-macros.h: Add alpha versions.
5863 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle TLS relocs.
5864 * sysdeps/unix/alpha/sysdep.S: Support USE___THREAD.
5865 * sysdeps/unix/alpha/sysdep.h: Likewise. Add SYSCALL_ERROR_HANDLER.
5866 * sysdeps/unix/sysv/linux/alpha/brk.S: Use it.
5867 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
5868 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
5869 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
5870 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
5871 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
5872 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
5873 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Likewise.
5874 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
5875 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
5876 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
5877 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
5878 * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
5879 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
5880 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
5881
5882 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Re-include protect.
5883 Kill argument registers across the inline syscall.
5884
5885 * sysdeps/unix/sysv/linux/alpha/clone.S: Add user_tid and tls args.
5886
5887 * linuxthreads/sysdeps/alpha/tls.h: New file.
5888 * sysdeps/alpha/dl-tls.h: New file.
5889
5890 2002-10-29 David Mosberger <davidm@hpl.hp.com>
5891
5892 * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY]
5893 (gmon_initializer): New function.
5894 (.init prologue): If HAVE_INITFINI_ARRAY is true, don't call
5895 __gmon_start__ here. Call it from gmon_initializer() instead.
5896
5897 2002-03-12 H.J. Lu <hjl@gnu.org>
5898
5899 * elf/Makefile [$(have-initfini-array) = yes] (tests): Add tst-array1,
5900 tst-array2, and tst-array3.
5901 [$(have-initfini-array) = yes] (tests-static): Add tst-array3.
5902 [$(have-initfini-array) = yes] (modules-names): Add tst-array2dep.
5903 ($(objpfx)tst-array1.out): New target.
5904 ($(objpfx)tst-array2): Likewise.
5905 ($(objpfx)tst-array2.out): Likewise.
5906 ($(objpfx)tst-array3.out): Likewise.
5907 * elf/tst-array1.c: New file.
5908 * elf/tst-array1.exp: Likewise.
5909 * elf/tst-array2.c: Likewise.
5910 * elf/tst-array2dep.c: Likewise.
5911 * elf/tst-array2.exp: Likewise.
5912 * elf/tst-array3.c: Likewise.
5913
5914 2002-10-28 David Mosberger <davidm@hpl.hp.com>
5915
5916 * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order.
5917 Don't add L->l_addr to array entry values.
5918
5919 2002-11-07 Jakub Jelinek <jakub@redhat.com>
5920
5921 * string/test-string.h: New file.
5922 * string/test-strlen.c: New file.
5923 * string/test-string.h: New file.
5924 * string/test-strcmp.c: New file.
5925 * string/test-strchr.c: New file.
5926 * string/test-strrchr.c: New file.
5927 * string/test-strcpy.c: New file.
5928 * string/test-stpcpy.c: New file.
5929 * string/test-strncpy.c: New file.
5930 * string/test-stpncpy.c: New file.
5931 * string/test-strpbrk.c: New file.
5932 * string/test-strcspn.c: New file.
5933 * string/test-strspn.c: New file.
5934 * string/test-strcat.c: New file.
5935 * string/test-strncmp.c: New file.
5936 * string/test-memchr.c: New file.
5937 * string/test-memcmp.c: New file.
5938 * string/test-memset.c: New file.
5939 * string/test-memcpy.c: New file.
5940 * string/test-mempcpy.c: New file.
5941 * string/test-memmove.c: New file.
5942 * string/Makefile (strop-tests): New variable.
5943 (tests): Add strop-tests.
5944 (distribute): Add test-string.h.
5945
5946 2002-11-06 Ulrich Drepper <drepper@redhat.com>
5947
5948 * posix/regcomp.c: Use tabs instead of spaces.
5949 * posix/regexec.c: Likewise.
5950 * posix/regex_internal.h: Likewise.
5951
5952 * posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb.
5953
5954 2002-11-06 Jakub Jelinek <jakub@redhat.com>
5955
5956 * posix/regcomp.c (re_compile_pattern): Don't set regs_allocated
5957 here.
5958 (regcomp): Don't set can_be_null here.
5959 (re_comp): Clear whole re_comp_buf with the exception of fastmap.
5960 (re_compile_internal): Clear can_be_null, set regs_allocated.
5961
5962 * posix/regcomp.c (re_set_fastmap): New function.
5963 (re_compile_fastmap_iter): Use it. Remove redundant type ==
5964 COMPLEX_BRACKET check.
5965 * posix/regexec.c (re_search_internal): Optimize searching with
5966 fastmap. Call re_string_reconstruct even if match_first is
5967 smaller than raw_mbs_idx.
5968
5969 2002-11-06 Isamu Hasegawa <isamu@yamato.ibm.com>
5970
5971 * posix/regcomp (free_dfa_content): Use free_state.
5972 * posix/regex_internal.c (re_string_realloc_buffers): Don't edit
5973 pointers in case that realloc failed.
5974 (re_node_set_merge): Likewise.
5975 (register_state): Likewise.
5976 (create_newstate_common): Invoke memory release functions in case of
5977 error conditions.
5978 (create_ci_newstate): Likewise.
5979 (create_cd_newstate): Likewise.
5980 (free_state): New function.
5981 * posix/regexec.c (re_search_internal): Invoke memory release
5982 functions in case of error conditions.
5983 (sift_states_backward): Likewise.
5984 (merge_state_array): Likewise.
5985 (add_epsilon_src_nodes): Likewise.
5986 (sub_epsilon_src_nodes): Likewise.
5987 (search_subexp): Likewise.
5988 (sift_states_bkref): Likewise.
5989 (transit_state_sb): Likewise.
5990 (transit_state_mb): Likewise.
5991 (transit_state_bkref_loop): Likewise.
5992 (group_nodes_into_DFAstates): Likewise.
5993 (push_fail_stack): Don't edit pointers in case that realloc failed.
5994 (extend_buffers): Likewise.
5995 (match_ctx_add_entry): Likewise.
5996
5997 2002-11-06 Roland McGrath <roland@redhat.com>
5998
5999 * sysdeps/unix/sysv/linux/mips/configure.in: File removed.
6000 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
6001
6002 * configure.in: Add checks on as and ld for binutils 2.13 or later.
6003 * configure: Regenerated.
6004
6005 2002-11-06 Ulrich Drepper <drepper@redhat.com>
6006
6007 * posix/regcomp.c (regcomp): __re_compile_fastmap can never fail.
6008 If re_compile_internal failed free fastmap buffer.
6009 (free_dfa_content): Broken out of regfree function. Frees all dfa
6010 related data.
6011 (regfree): Add free_dfa_content.
6012 (re_compile_internal): If any of the called functions fails free
6013 all dfa related memory.
6014
6015 2002-11-05 Ulrich Drepper <drepper@redhat.com>
6016
6017 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent
6018 warnings from the kernel headers.
6019
6020 2002-11-05 Roland McGrath <roland@redhat.com>
6021
6022 * sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump.
6023 From Johannes Stezenbach <js@convergence.de>.
6024
6025 * sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
6026 #errlist-compat magic comment to give 123 as size.
6027 (libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ...
6028 (libc: GLIBC_2.2): ... here.
6029 (libc: GLIBC_2.3): Likewise.
6030
6031 2002-11-05 Ulrich Drepper <drepper@redhat.com>
6032
6033 * elf/dl-fini.c (_dl_fini): Correct the increment of l_opencount
6034 which happens at the beginning so that we can unload modules in
6035 __libc_freeres.
6036
6037 2002-11-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6038
6039 * sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only
6040 under [__USE_MISC || _ASM].
6041
6042 * elf/elf.h: Remove the obsolete SH TLS relocations.
6043
6044 2002-11-05 Ulrich Drepper <drepper@redhat.com>
6045
6046 * posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero.
6047
6048 2002-11-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6049
6050 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Handle
6051 __NR_pread64 and __NR_pwrite64.
6052 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
6053 * sysdeps/unix/sysv/linux/powerpc/pread.c: Remove __NR_pread64
6054 and __NR_pwrite64.
6055 Revert change to use INLINE_SYSCALL.
6056 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
6057 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
6058 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
6059 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Revert change to use
6060 INLINE_SYSCALL.
6061 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
6062
6063 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
6064 Update clobber list and add a comment about the syscall ABI.
6065
6066 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64,
6067 s_pwrite64, s_ftruncate, s_truncate): Re-add.
6068
6069 2002-11-05 Jakub Jelinek <jakub@redhat.com>
6070
6071 * iconv/gconv_dl.c (free_mem): Clear loaded.
6072 * locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's
6073 cleanup if any.
6074
6075 2002-11-05 Ulrich Drepper <drepper@redhat.com>
6076
6077 * sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>.
6078
6079 * libio/ioseekoff.c: Remove INTDEF. Define _IO_seekoff_unlocked. Same
6080 as old code without locking. _IO_seekoff calls this function after
6081 locking the stream.
6082 * libio/ioseekpos.c: Likewise for _IO_seekpos.
6083 * libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal
6084 prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked
6085 prototypes.
6086 * libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead
6087 of _IO_seekoff_internal.
6088 (_IO_rewind): Likewise.
6089 * libio/ioftell.c: Likewise.
6090 * libio/ftello.c: Likewise.
6091 * libio/ftello64.c: Likewise.
6092 * libio/iofgetpos.c: Likewise.
6093 * libio/iofgetpos64.c: Likewise.
6094 * libio/oldiofgetpos.c: Likewise.
6095 * libio/oldiofgetpos64.c: Likewise.
6096 * libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of
6097 _IO_seekpos_internal.
6098 * libio/iofsetpos64.c: Likewise.
6099 * libio/oldiofsetpos.c: Likewise.
6100 * libio/oldiofsetpos64.c: Likewise.
6101
6102 2002-11-04 Roland McGrath <roland@redhat.com>
6103
6104 * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
6105 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
6106 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
6107 * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
6108 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
6109 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
6110 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
6111 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
6112 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
6113 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
6114 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
6115 s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
6116 sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
6117 Remove these, no longer used.
6118
6119 2002-11-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6120
6121 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
6122 s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
6123 s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
6124 s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
6125 s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
6126 s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
6127 syscall stubs.
6128
6129 * sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
6130 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
6131 * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
6132 and __NR_pread.
6133 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
6134 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
6135 and __NR_pwrite.
6136 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
6137
6138 2002-11-03 Roland McGrath <roland@redhat.com>
6139
6140 * sysdeps/generic/ldsodefs.h (struct rtld_global): New member
6141 `_dl_tls_static_used'.
6142 * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
6143 (__libc_setup_tls): Initialize it. Let the initial value of
6144 _dl_tls_static_size indicate some surplus space in the computed value.
6145 * elf/dl-open.c (_dl_tls_static_size): New variable.
6146 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
6147 _dl_tls_static_used. Add some surplus space into _dl_tls_static_size.
6148 * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
6149 (CHECK_STATIC_TLS): Use it.
6150 * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
6151 closed objects occupied a trailing contiguous chunk of static TLS area.
6152
6153 2002-10-18 Bruno Haible <bruno@clisp.org>
6154
6155 * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
6156
6157 2002-11-04 Ulrich Drepper <drepper@redhat.com>
6158
6159 * libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and
6160 _wide_data->_IO_read_end if adjustment can be made in the current
6161 buffer.
6162
6163 * sysdeps/unix/sysv/linux/fexecve.c: New file.
6164
6165 * libio/bug-wfflush.c (do_test): Using fseek is not allowed when
6166 wide oriented streams are used.
6167
6168 * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
6169 service hasn't been used [PR libc/4744].
6170
6171 * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
6172 Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].
6173
6174 * manual/examples/dir.c: Don't include <stddef.h>.
6175 * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
6176 Reported by Frédéric Delanoy <delanoy_f@yahoo.com>.
6177
6178 2002-11-02 H.J. Lu <hjl@gnu.org>
6179
6180 * stdio-common/reg-printf.c: Include <stddef.h>.
6181
6182 2002-11-03 Ulrich Drepper <drepper@redhat.com>
6183
6184 * sysdeps/generic/libc-tls.c: Define _dl_tls_static_used.
6185
6186 * po/ca.po: Update from translation team.
6187 * po/es.po: Likewise.
6188
6189 * sysdeps/generic/segfault.c (catch_segfault): If HAVE_PROC_SELF
6190 is defined write out memory map.
6191 * sysdeps/unix/sysv/linux/segfault.c: New file.
6192
6193 2002-11-02 Roland McGrath <roland@redhat.com>
6194
6195 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use union type for
6196 pointers that can alias.
6197 Reported by Daniel Jacobowitz <drow@mvista.com>.
6198
6199 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: New file.
6200
6201 2002-11-02 Roland McGrath <roland@redhat.com>
6202
6203 * manual/filesys.texi (Reading/Closing Directory): Rewrite readdir_r
6204 description to be clearer and to say that *RESULT is set to ENTRY.
6205
6206 2002-10-30 Jakub Jelinek <jakub@redhat.com>
6207
6208 * posix/regexec.c (build_trtable): Alloca or malloc dests_node and
6209 dests_ch arrays together. Alloca or malloc dest_states,
6210 dest_states_word and dest_states_nl arrays together. Free memory on
6211 error exit.
6212
6213 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
6214
6215 * crypt/crypt_util.c (__init_des_r): Initialize current_salt
6216 and current_saltbits.
6217
6218 2002-11-02 Roland McGrath <roland@redhat.com>
6219
6220 * stdio-common/reg-printf.c: Include <stdlib.h>.
6221
6222 2002-11-02 H.J. Lu <hjl@gnu.org>
6223
6224 * sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set
6225 caller to EXTRA instead of execve.
6226
6227 2002-11-01 Roland McGrath <roland@redhat.com>
6228
6229 * sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional
6230 in place of [!(USE_TLS && HAVE___THREAD)].
6231 (__errno_location) [! USE___THREAD]: Define as strong, not weak.
6232
6233 2002-10-31 Roger Sayle <roger@eyesopen.com>
6234
6235 * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q):
6236 New macros.
6237 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
6238
6239 * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST
6240 without defining FP_ROUNDMODE.
6241
6242 2002-10-29 Jakub Jelinek <jakub@redhat.com>
6243
6244 * sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove.
6245 (__old_sys_siglist, __old_sys_sigabbrev): Use strong_alias and
6246 declare_symbol.
6247 * sysdeps/mach/hurd/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
6248 (OLD_SIGLIST_SIZE): Define.
6249 * sysdeps/unix/sysv/linux/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
6250 (OLD_SIGLIST_SIZE): Define.
6251 * sysdeps/unix/sysv/linux/arm/siglist.c: Remove.
6252
6253 2002-11-01 Jakub Jelinek <jakub@redhat.com>
6254
6255 * sysdeps/ia64/strncpy.S: Fix recovery code.
6256
6257 2002-10-30 Jakub Jelinek <jakub@redhat.com>
6258
6259 * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn):
6260 New macros.
6261 * elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove
6262 text_set_element.
6263 * elf/dl-libc.c (free_mem): Likewise.
6264 * iconv/gconv_conf.c (free_mem): Likewise.
6265 * iconv/gconv_db.c (free_mem): Likewise.
6266 * iconv/gconv_dl.c (free_mem): Likewise.
6267 * iconv/gconv_cache.c (free_mem): Likewise.
6268 * intl/finddomain.c (free_mem): Likewise.
6269 * intl/dcigettext.c (free_mem): Likewise.
6270 * locale/setlocale.c (free_mem): Likewise.
6271 * misc/fstab.c (fstab_free): Likewise.
6272 * nss/nsswitch.c (free_mem): Likewise.
6273 * posix/regcomp.c (free_mem): Likewise.
6274 * resolv/gai_misc.c (free_res): Likewise.
6275 * stdlib/fmtmsg.c (free_mem): Likewise.
6276 * sunrpc/clnt_perr.c (free_mem): Likewise.
6277 * sysdeps/generic/setenv.c (free_mem): Likewise.
6278 * sysdeps/unix/sysv/linux/shm_open.c (freeit): Likewise.
6279 * sysdeps/pthread/aio_misc.c (free_res): Likewise.
6280 * time/tzset.c (free_mem): Likewise.
6281 * malloc/mtrace.c (release_libc_mem): Add __libc_freeres_fn_section.
6282 * locale/loadarchive.c (_nl_archive_subfreeres): Likewise.
6283 * malloc/set-freeres.c (__libc_freeres): Likewise.
6284
6285 * login/getutent.c: Include stdlib.h instead of stddef.h.
6286 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
6287 (__getutent): Allocate buffer the first time it is run.
6288 * login/getutid.c: Include stdlib.h instead of stddef.h.
6289 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
6290 (__getutid): Allocate buffer the first time it is run.
6291 * login/getutline.c: Include stdlib.h instead of stddef.h.
6292 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
6293 (__getutline): Allocate buffer the first time it is run.
6294 * malloc/mtrace.c (malloc_trace_buffer): Change into char *.
6295 (mtrace): Allocate malloc_trace_buffer.
6296 * resolv/nsap_addr.c (inet_nsap_ntoa): Decrease size of tmpbuf.
6297 * resolv/ns_print.c (ns_sprintrrf): Decrease size of t.
6298 * string/strerror.c: Include libintl.h and errno.h.
6299 (buf): New variable.
6300 (strerror): Only allocate buffer if actually needed (unknown error).
6301 * time/tzfile.c (transitions): Add libc_freeres_ptr.
6302 (freeres): Remove.
6303
6304 2002-10-25 Jakub Jelinek <jakub@redhat.com>
6305
6306 * include/libc-symbols.h (libc_freeres_ptr): New macro.
6307 * malloc/set-freeres.c (__libc_freeres_ptrs): Define using
6308 symbol_set_define.
6309 (__libc_freeres): Free all pointers in that section.
6310 * Makerules (build-shlib): Add $(LDSEDCMD-$(@F:lib%.so=%).so) to sed
6311 commands when creating .lds script.
6312 (LDSEDCMD-c.so): New variable.
6313 * inet/rcmd.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
6314 (rcmd_af): Use strdup to allocate ahostbuf.
6315 * inet/rexec.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
6316 (rexec_af): Use strdup to allocate ahostbuf.
6317 * stdio-common/reg-printf.c (printf_funcs): Remove.
6318 (__printf_arginfo_table): Change into printf_arginfo_function **.
6319 Add libc_freeres_ptr.
6320 (__register_printf_function): Allocate __printf_arginfo_table
6321 and __printf_function_table the first time it is called.
6322 * stdio-common/printf-parse.h (__printf_arginfo_table): Change into
6323 printf_arginfo_function **.
6324 (parse_one_spec): Add __builtin_expect.
6325 * grp/fgetgrent.c (buffer): Add libc_freeres_ptr.
6326 (free_mem): Remove.
6327 * inet/getnetgrent.c (buffer): Add libc_freeres_ptr.
6328 (free_mem): Remove.
6329 * intl/localealias.c (libc_freeres_ptr): Define if !_LIBC.
6330 (string_space, map): Add libc_freeres_ptr.
6331 (free_mem): Remove.
6332 * misc/efgcvt.c (FCVT_BUFPTR): Add libc_freeres_ptr.
6333 (free_mem): Remove.
6334 * misc/mntent.c (getmntent_buffer): Add libc_freeres_ptr.
6335 (free_mem): Remove.
6336 * crypt/md5-crypt.c (libc_freeres_ptr): Define if !_LIBC.
6337 (buffer): Add libc_freeres_ptr.
6338 (free_mem): Remove for _LIBC.
6339 * nss/getXXbyYY.c (buffer): Add libc_freeres_ptr.
6340 (free_mem): Remove.
6341 * nss/getXXent.c (buffer): Add libc_freeres_ptr.
6342 (free_mem): Remove.
6343 * pwd/fgetpwent.c (buffer): Add libc_freeres_ptr.
6344 (free_mem): Remove.
6345 * resolv/res_hconf.c (ifaddrs): Add libc_freeres_ptr.
6346 (free_mem): Remove.
6347 * shadow/fgetspent.c (buffer): Add libc_freeres_ptr.
6348 (free_mem): Remove.
6349 * sysdeps/posix/ttyname.c (getttyname_name): Add libc_freeres_ptr.
6350 (free_mem): Remove.
6351 * sysdeps/unix/sysv/linux/getsysstats.c (mount_proc): Add
6352 libc_freeres_ptr.
6353 (free_mem): Remove.
6354 * sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add
6355 libc_freeres_ptr.
6356 (free_mem): Remove.
6357
6358 2002-10-30 Jakub Jelinek <jakub@redhat.com>
6359
6360 * malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias
6361 instead of duplicating the whole function in libc.
6362
6363 2002-10-31 Roland McGrath <roland@redhat.com>
6364
6365 * sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32):
6366 Renamed from __bswap_16 (typo fix). Reported by <dens@stl.sarov.ru>.
6367
6368 2002-10-30 Jakub Jelinek <jakub@redhat.com>
6369
6370 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each
6371 32bit-predefine when creating .new32 list and -U for each
6372 32bit-predefine when creating .new64 list.
6373 * sysdeps/unix/sysv/linux/x86_64/Makefile (32bit-predefine): New.
6374
6375 2002-10-29 Andreas Schwab <schwab@suse.de>
6376
6377 * sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not
6378 "testrtsig.h". Reported by Daniel Jacobowitz <dan@debian.org>.
6379
6380 2002-10-25 Roland McGrath <roland@redhat.com>
6381
6382 * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change.
6383 * sysdeps/unix/sysv/linux/configure: Regenerated.
6384
6385 * sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from
6386 _dl_starting_up decl.
6387
6388 2002-10-20 H.J. Lu <hjl@gnu.org>
6389
6390 * sysdeps/unix/sysv/linux/configure.in: Don't check
6391 /lib/modules/`uname -r`/build/include for kernel headers if
6392 cross compiling.
6393 * sysdeps/unix/sysv/linux/configure: Regenerated.
6394
6395 2002-10-25 Roland McGrath <roland@redhat.com>
6396
6397 * math/math.h (M_LOG2El): Correct the value.
6398 From Stephen L Moshier <steve@moshier.net>.
6399
6400 * sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED]
6401 conditional from __libc_multiple_libcs access. Remove kludge for weak
6402 symbol access with old compilers we no longer support.
6403 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
6404 * sysdeps/generic/libc-start.c (__libc_start_main): Likewise.
6405
6406 2002-10-25 Roland McGrath <roland@redhat.com>
6407
6408 * sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and
6409 implement SV_RESETHAND by translating it to SA_RESETHAND.
6410
6411 2002-10-23 Alexandre Oliva <aoliva@redhat.com>
6412
6413 * elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation
6414 type on ELF64 platforms.
6415
6416 2002-10-24 Ulrich Drepper <drepper@redhat.com>
6417
6418 * elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF.
6419
6420 * elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.
6421
6422 2002-10-24 Jakub Jelinek <jakub@redhat.com>
6423
6424 * elf/dl-misc.c: Include <sysdep.h>.
6425 (_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up.
6426
6427 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL,
6428 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
6429 (INLINE_SYSCALL): Use that.
6430 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL,
6431 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
6432 (INLINE_SYSCALL): Use that.
6433 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL,
6434 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
6435 (INLINE_SYSCALL): Use that.
6436 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Include
6437 dl-sysdep.h.
6438 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
6439 (__INTERNAL_SYSCALL_STRING): Define.
6440 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
6441 dl-sysdep.h.
6442 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
6443 (__INTERNAL_SYSCALL_STRING): Define.
6444 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL): Pass
6445 __SYSCALL_STRING to inline_syscall*.
6446 (INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
6447 New macros.
6448 (inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3,
6449 inline_syscall4, inline_syscall5, inline_syscall6): Add string
6450 argument.
6451
6452 2002-10-24 Roland McGrath <roland@redhat.com>
6453
6454 * sysdeps/generic/ldsodefs.h (_dl_starting_up): Declare it here.
6455 * sysdeps/unix/sysv/linux/init-first.c: Not here.
6456 * sysdeps/powerpc/elf/libc-start.c: Or here.
6457 * sysdeps/unix/sysv/aix/libc-start.c: Or here.
6458 * sysdeps/unix/sysv/aix/start-libc.c: Or here.
6459 * sysdeps/unix/sysv/aix/init-first.c: Or here.
6460 * sysdeps/generic/libc-start.c: Or here.
6461 * sysdeps/unix/sysv/linux/init-first.c (init): Protect _dl_starting_up
6462 access with [! SHARED].
6463 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
6464
6465 * libio/bug-wfflush.c: New file.
6466 * libio/Makefile (tests): Add bug-wfflush.
6467
6468 2002-10-23 Roland McGrath <roland@redhat.com>
6469
6470 * stdio-common/tst-fphex.c: New file.
6471 * stdio-common/Makefile (tests): Add tst-fphex.
6472 * sysdeps/generic/printf_fphex.c (__printf_fphex): Fix initialization
6473 of WNUMEND. Fix counting of decimal point in WIDTH. Print '0' pad
6474 chars always before the value digits.
6475 Reported by James Antill <james.antill@redhat.com>.
6476
6477 2002-10-24 Jakub Jelinek <jakub@redhat.com>
6478
6479 * posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.
6480 (free_mem): New function.
6481 * posix/Makefile (tests): Add bug-regex14. Add bug-regex14-mem
6482 if not cross compiling.
6483 (generated): Add bug-regex14-mem and bug-regex14.mtrace.
6484 (bug-regex14-ENV): Set.
6485 (bug-regex14-mem): New target.
6486 * posix/bug-regex14.c: New file.
6487
6488 2002-10-23 Roland McGrath <roland@redhat.com>
6489
6490 * elf/Makefile ($(objpfx)librtld.map): Use temporary file for output
6491 target, so we don't touch it when the link fails.
6492
6493 * libio/ftello.c (ftello): Use _IO_off64_t for type of POS.
6494 Check for the result overflowing off_t and fail with EOVERFLOW.
6495 * libio/ioftell.c (_IO_ftell): Likewise.
6496 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
6497
6498 * login/logwtmp.c (logwtmp): If sizeof ut_tv != sizeof struct timeval,
6499 use a temporary timeval on the stack for gettimeofday and copy it.
6500 * login/logout.c (logout): Likewise.
6501 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
6502
6503 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs):
6504 Use __SWORD_TYPE instead of int for member types.
6505 (struct statfs64): Likewise.
6506 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: New file.
6507 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: New file.
6508 * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: File removed.
6509 * sysdeps/unix/sysv/linux/sparc/bits/statfs.h: File removed.
6510 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: File removed.
6511
6512 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Moved to ...
6513 * sysdeps/unix/sysv/linux/bits/statvfs.h: ... here.
6514 (ST_NODIRATIME): Restore fixed value of 2048.
6515 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: File removed.
6516 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: File removed.
6517
6518 Rearranged <bits/types.h> definitions to reduce duplication.
6519 * sysdeps/generic/bits/types.h: Rewritten, using macros from
6520 <bits/wordsize.h> and new header <bits/typesizes.h>.
6521 * posix/Makefile (headers): Add bits/typesizes.h here.
6522 * sysdeps/generic/bits/typesizes.h: New file.
6523 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file.
6524 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file.
6525 * sysdeps/mach/hurd/bits/typesizes.h: New file.
6526 * sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed.
6527 * sysdeps/unix/sysv/linux/bits/types.h: File removed.
6528 * sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed.
6529 * sysdeps/unix/sysv/linux/mips/bits/types.h: File removed.
6530 * sysdeps/unix/sysv/linux/s390/bits/types.h: File removed.
6531 * sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed.
6532 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed.
6533 * posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include
6534 <bits/pthreadtypes.h> here, not in <bits/types.h>.
6535 * signal/signal.h: Likewise.
6536
6537 * streams/stropts.h: Include <bits/xtitypes.h>.
6538 * streams/Makefile (headers): Add bits/xtitypes.h here.
6539 * sysdeps/generic/bits/xtitypes.h: New file.
6540 * sysdeps/s390/bits/xtitypes.h: New file.
6541 * sysdeps/ia64/bits/xtitypes.h: New file.
6542 * sysdeps/x86_64/bits/xtitypes.h: New file.
6543
6544 * sysvipc/Makefile (headers): Add bits/ipctypes.h here.
6545 * sysdeps/generic/bits/ipctypes.h: New file.
6546 * sysdeps/mips/bits/ipctypes.h: New file.
6547 * sysdeps/gnu/bits/shm.h: Include <bits/ipctypes.h>.
6548 * sysdeps/gnu/bits/msq.h: Likewise.
6549 * sysvipc/sys/ipc.h: Likewise.
6550
6551 2002-10-22 Ulrich Drepper <drepper@redhat.com>
6552
6553 * elf/dl-load.c (struct filebuf): For buf element to have the
6554 alignment of ElfXX_Ehdr since this is what will be stored in it.
6555
6556 2002-10-22 Jakub Jelinek <jakub@redhat.com>
6557
6558 * locale/programs/locarchive.c (add_alias): Change locrec_offset arg
6559 into pointer to locrec_offset.
6560 (add_locale_to_archive): Adjust callers. Free normalized_name right
6561 before returning, not immediately after add_locale, pass it to
6562 add_alias if not NULL instead of name. Rename second normalized_name
6563 occurence to nnormalized_codeset_name.
6564
6565 * locale/programs/locarchive.c (enlarge_archive): Make sure
6566 string_size is always a multiple of 4.
6567 Reported by Andreas Schwab <schwab@suse.de>.
6568
6569 2002-10-21 Andreas Schwab <schwab@suse.de>
6570
6571 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set
6572 caller to EXTRA instead of execve, since the latter has a
6573 higher-priority implementation in linuxthreads.
6574
6575 2002-10-21 Roland McGrath <roland@redhat.com>
6576
6577 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static
6578 slotinfo list's len member to the proper size, not just 1.
6579 Initialize static_map.l_tls_initimage.
6580
6581 * elf/dl-open.c (dl_open_worker): Fix loop searching for
6582 dtv_slotinfo_list element containing new modules' l_tls_modid.
6583
6584 * elf/tst-tls9.c, elf/tst-tls9-static.c: New files.
6585 * elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files.
6586 * elf/Makefile (tests): Add tst-tls9.
6587 (tests-static): Add tst-tls9-static.
6588 (tst-tls9-static-ENV): New variable.
6589 ($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets.
6590
6591 * elf/dl-close.c (remove_slotinfo): Remove an assert; the number of
6592 modids used by partially loaded modules being closed can't be known.
6593
6594 2002-10-21 Isamu Hasegawa <isamu@yamato.ibm.com>
6595
6596 * posix/Makefile: Add a test case for the bug reported by Aharon
6597 Robbins <arnold@skeeve.com>.
6598 * posix/bug-regex13.c: New file.
6599 * posix/regcomp.c (peek_token_bracket): Skip the byte already read.
6600
6601 2002-10-21 Ulrich Drepper <drepper@redhat.com>
6602
6603 * csu/gmon-start.c: Pretty printing.
6604
6605 2002-10-19 Art Haas <ahaas@neosoft.com>
6606
6607 * configure.in: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS,
6608 add AC_HELP_STRING to all AC_ARG_WITH and AC_ARG_ENABLE macros,
6609 add autoconf quotes to the AC_CONFIG_AUX_DIR macro.
6610 * configure: Regenerated.
6611
6612 2002-10-19 Roland McGrath <roland@redhat.com>
6613
6614 * configure.in: Call AC_CONFIG_SUBDIRS with empty argument
6615 and then set $subdirs directly, because the new Autoconf breaks
6616 compatibility in every way imaginable and insists on whining
6617 about usage that worked since the dawn of time.
6618 * configure: Regenerated.
6619
6620 * configure: Regenerated (using Autoconf 2.54).
6621 * sysdeps/alpha/elf/configure: Likewise.
6622 * sysdeps/generic/configure: Likewise.
6623 * sysdeps/i386/elf/configure: Likewise.
6624 * sysdeps/ia64/elf/configure: Likewise.
6625 * sysdeps/mach/hurd/configure: Likewise.
6626 * sysdeps/mach/configure: Likewise.
6627 * sysdeps/unix/configure: Likewise.
6628 * sysdeps/unix/common/configure: Likewise.
6629 * sysdeps/unix/sysv/aix/configure: Likewise.
6630 * sysdeps/unix/sysv/linux/configure: Likewise.
6631 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
6632 * sysdeps/x86_64/elf/configure: Likewise.
6633
6634 * config.make.in: Nix completely-soft nonsense.
6635 * configure.in: Likewise. Under --without-fp, use nofpu subdirectory
6636 of machine directories instead of fpu subdirectory.
6637 * sysdeps/powerpc/soft-fp/Makefile: Remove cruft added in last change.
6638 * sysdeps/powerpc/nofpu/Makefile: Put it in this new file instead.
6639 * sysdeps/powerpc/soft-fp/sim-full.c: Moved to ...
6640 * sysdeps/powerpc/nofpu/sim-full.c: ... here.
6641 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: Moved to ...
6642 * sysdeps/powerpc/nofpu/fraiseexcpt.c: ... here.
6643 * sysdeps/powerpc/soft-fp/fegetexcept.c: Moved to ...
6644 * sysdeps/powerpc/nofpu/fegetexcept.c: ... here.
6645 * sysdeps/powerpc/soft-fp/fclrexcpt.c: Moved to ...
6646 * sysdeps/powerpc/nofpu/fclrexcpt.c: ... here.
6647 * sysdeps/powerpc/soft-fp/ftestexcept.c: Moved to ...
6648 * sysdeps/powerpc/nofpu/ftestexcept.c: ... here.
6649 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: Moved to ...
6650 * sysdeps/powerpc/nofpu/fgetexcptflg.c: ... here.
6651 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: Moved to ...
6652 * sysdeps/powerpc/nofpu/fsetexcptflg.c: ... here.
6653 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: Moved to ...
6654 * sysdeps/powerpc/nofpu/fedisblxcpt.c: ... here.
6655 * sysdeps/powerpc/soft-fp/feenablxcpt.c: Moved to ...
6656 * sysdeps/powerpc/nofpu/feenablxcpt.c: ... here.
6657 * sysdeps/powerpc/soft-fp/fegetenv.c: Moved to ...
6658 * sysdeps/powerpc/nofpu/fegetenv.c: ... here.
6659 * sysdeps/powerpc/soft-fp/fesetenv.c: Moved to ...
6660 * sysdeps/powerpc/nofpu/fesetenv.c: ... here.
6661 * sysdeps/powerpc/soft-fp/fegetround.c: Moved to ...
6662 * sysdeps/powerpc/nofpu/fegetround.c: ... here.
6663 * sysdeps/powerpc/soft-fp/fesetround.c: Moved to ...
6664 * sysdeps/powerpc/nofpu/fesetround.c: ... here.
6665 * sysdeps/powerpc/soft-fp/feupdateenv.c: Moved to ...
6666 * sysdeps/powerpc/nofpu/feupdateenv.c: ... here.
6667 * sysdeps/powerpc/soft-fp/feholdexcpt.c: Moved to ...
6668 * sysdeps/powerpc/nofpu/feholdexcpt.c: ... here.
6669 * sysdeps/powerpc/soft-fp/fenv_const.c: Moved to ...
6670 * sysdeps/powerpc/nofpu/fenv_const.c: ... here.
6671 * sysdeps/powerpc/soft-fp/libm-test-ulps: Moved to ...
6672 * sysdeps/powerpc/nofpu/libm-test-ulps: ... here.
6673 * sysdeps/powerpc/soft-fp/soft-supp.h: Moved to ...
6674 * sysdeps/powerpc/nofpu/soft-supp.h: ... here.
6675 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Moved to ...
6676 * sysdeps/powerpc/nofpu/Versions: ... here, new file.
6677
6678 2002-10-19 Bruno Haible <bruno@clisp.org>
6679
6680 * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file.
6681
6682 2002-10-18 Roland McGrath <roland@redhat.com>
6683
6684 * io/Makefile (routines): Add lchmod.
6685 * io/sys/stat.h [__USE_BSD] (lchmod): Declare it.
6686 * sysdeps/generic/lchmod.c: New file.
6687 * sysdeps/mach/hurd/lchmod.c: New file.
6688 * io/Versions (libc: GLIBC_2.3.2): New set, add lchmod.
6689
6690 2002-10-18 Art Haas <ahaas@neosoft.com>
6691
6692 * configure.in: Remove remaining AC_FD_CC macros, and replace
6693 AC_FD_MSG with AS_MESSAGE_FD.
6694
6695 2002-10-18 Roland McGrath <roland@redhat.com>
6696
6697 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix
6698 typos: VALUE -> FINALADDR.
6699
6700 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1)
6701 (inline_syscall_clobbers, inline_syscall0, inline_syscall1)
6702 (inline_syscall2, inline_syscall3, inline_syscall4, inline_syscall5)
6703 (inline_syscall6): Move these macros ...
6704 * sysdeps/unix/sysv/linux/alpha/sysdep.h: ... to here.
6705
6706 * configure.in (libc_link_dests, libc_link_sources): Remove these
6707 variables and the AC_LINK_FILES call.
6708
6709 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Fix last
6710 change to put new symbols here instead of in GLIBC_2.2.
6711 * sysdeps/powerpc/Subdirs: Move this file ...
6712 * sysdeps/powerpc/soft-fp/Subdirs: ... here.
6713
6714 2002-10-07 Roland McGrath <roland@redhat.com>
6715
6716 * sysdeps/generic/bits/time.h: Replaced with contents of the
6717 sysdeps/unix/sysv/linux/i386/bits/time.h file. All the following
6718 files were identical except for the absence of CLOCK_THREAD_CPUTIME_ID
6719 and CLOCK_PROCESS_CPUTIME_ID in .../linux/bits/time.h; adding these
6720 macros is ok even for architectures that don't now implement them.
6721 * sysdeps/mach/hurd/bits/time.h: File removed.
6722 * sysdeps/unix/sysv/linux/bits/time.h: File removed.
6723 * sysdeps/unix/sysv/linux/i386/bits/time.h: File removed.
6724 * sysdeps/unix/sysv/linux/ia64/bits/time.h: File removed.
6725 * sysdeps/unix/sysv/linux/sparc/bits/time.h: File removed.
6726 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: File removed.
6727
6728 2002-10-18 Jeff Bailey <jbailey@gnu.org>
6729
6730 * configure.in: Replace obsolete AC_OUTPUT syntax with
6731 AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio.
6732
6733 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for
6734 _AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE.
6735
6736 * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
6737 * sysdeps/alpha/elf/configure.in: Likewise.
6738 * sysdeps/i386/elf/configure.in: Likewise.
6739 * sysdeps/mach/hurd/configure.in: Likewise.
6740 * sysdeps/x86_64/elf/configure.in: Likewise.
6741
6742 * configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax.
6743
6744 * sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement.
6745 * sysdeps/generic/configure.in: Likewise.
6746 * sysdeps/i386/elf/configure.in: Likewise.
6747 * sysdeps/ia64/elf/configure.in: Likewise.
6748 * sysdeps/mach/configure.in: Likewise.
6749 * sysdeps/mach/hurd/configure.in: Likewise.
6750 * sysdeps/unix/configure.in: Likewise.
6751 * sysdeps/unix/common/configure.in: Likewise.
6752 * sysdeps/unix/sysv/aix/configure.in: Likewise.
6753 * sysdeps/unix/sysv/linux/configure.in: Likewise.
6754 * sysdeps/unix/sysv/linux/mips/configure.in: Likewise.
6755 * sysdeps/x86_64/elf/configure.in: Likewise.
6756
6757 * aclocal.m4: Use just the bits from AS_INIT that are needed for the
6758 GLIBC_PROVIDES. Use plain comment instead of HEADER-COMMENT so
6759 that it's obvious when extra autoconf machinery is being dragged in.
6760
6761 2002-10-18 Roland McGrath <roland@redhat.com>
6762
6763 * configure.in: Remove bogus echo included in
6764 2002-10-08 Aldy Hernandez <aldyh@redhat.com> change.
6765 * configure: Regenerated.
6766
6767 2002-10-18 Jakub Jelinek <jakub@redhat.com>
6768
6769 * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.
6770 (statfs_filesize_max): New function.
6771 * sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC,
6772 JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC,
6773 ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define.
6774 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use
6775 statfs_filesize_max.
6776 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
6777 * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed.
6778 * sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.
6779
6780 2002-10-17 Roland McGrath <roland@redhat.com>
6781
6782 * configure.in (MIG): Just AC_SUBST it here.
6783 * configure: Regenerated.
6784 * sysdeps/mach/configure.in (MIG): Do the AC_CHECK_TOOL here.
6785 Adding final - argument to all AC_CHECK_HEADER uses for .defs files.
6786 * sysdeps/mach/configure: Regenerated.
6787
6788 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE])
6789 and AC_PROVIDE([_AS_CR_PREPARE]).
6790
6791 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).
6792 Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]).
6793
6794 * elf/dl-support.c: Move _dl_tls_* variables to ...
6795 * sysdeps/generic/libc-tls.c: ... here.
6796
6797 * elf/dl-close.c (remove_slotinfo): Take new argument. If false,
6798 allow IDX to be one past the current last slotinfo entry.
6799 (_dl_close): Pass IMAP->l_init_called for that parameter.
6800
6801 2002-10-07 Andreas Schwab <schwab@suse.de>
6802
6803 * aclocal.m4: Fix for autoconf 2.53.
6804 * configure.in: Likewise. Require autoconf 2.53.
6805
6806 2002-10-08 Richard Henderson <rth@redhat.com>
6807
6808 * soft-fp/op-4.h: Handle carry correctly in
6809 __FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3,
6810 __FP_FRAC_SUB_4, __FP_FRAC_DEC_3, __FP_FRAC_DEC_4.
6811 * soft-fp/op-common.h: New macros _FP_DIV_MEAT_N_loop.
6812
6813 2002-10-08 Aldy Hernandez <aldyh@redhat.com>
6814
6815 * configure.in: Compute completely-soft.
6816 * config.make.in: Make completely-soft available to sub-makes.
6817 * sysdeps/powerpc/soft-fp/Makefile: Add gcc-single-routines and
6818 gcc-double-routines. Add sim-full.c. Add fenv_const and
6819 fe_nomask to libm-support.
6820 * sysdeps/powerpc/soft-fp/sim-full.c: New file.
6821 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: New file.
6822 * sysdeps/powerpc/soft-fp/fegetexcept.c: New file.
6823 * sysdeps/powerpc/soft-fp/fclrexcpt.c: New file.
6824 * sysdeps/powerpc/soft-fp/ftestexcept.c: New file.
6825 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: New file.
6826 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: New file.
6827 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: New file.
6828 * sysdeps/powerpc/soft-fp/feenablxcpt.c: New file.
6829 * sysdeps/powerpc/soft-fp/fegetenv.c: New file.
6830 * sysdeps/powerpc/soft-fp/fesetenv.c: New file.
6831 * sysdeps/powerpc/soft-fp/fegetround.c: New file.
6832 * sysdeps/powerpc/soft-fp/fesetround.c: New file.
6833 * sysdeps/powerpc/soft-fp/feupdateenv.c: New file.
6834 * sysdeps/powerpc/soft-fp/feholdexcpt.c: New file.
6835 * sysdeps/powerpc/soft-fp/fenv_const.c: New file.
6836 * sysdeps/powerpc/soft-fp/libm-test-ulps: New file.
6837 * sysdeps/powerpc/soft-fp/soft-supp.h: New file.
6838 * sysdeps/powerpc/soft-fp/Versions: Add libgcc soft-float
6839 symbols. Add __sim_disabled_exceptions, __sim_exceptions,
6840 __sim_round_mode.
6841 * sysdeps/powerpc/soft-float/Dist: Add sim-full.c, fenv_const.c.
6842 * sysdeps/powerpc/soft-float/sfp-machine.h: Define
6843 FP_HANDLE_EXCEPTIONS.
6844 Define FP_ROUNDMODE.
6845 Redefine FP_* macros to correspond to the FE_* bit positions.
6846 Define FP_DIV_MEAT_S to _FP_DIV_MEAT_1_loop.
6847 Define externs for __sim_exceptions, __sim_disabled_exceptions,
6848 __sim_round_mode, __simulate_exceptions.
6849 * sysdeps/powerpc/fpu/bits/fenv.h: Move file from here...
6850 * sysdeps/powerpc/bits/fenv.h: ...to here.
6851
6852 2002-10-06 Jakub Jelinek <jakub@redhat.com>
6853
6854 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
6855 Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time.
6856 Use __builtin_expect for R_PPC_ADDR24 overflow check. Fix
6857 R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use
6858 __builtin_expect.
6859
6860 2002-10-15 Jakub Jelinek <jakub@redhat.com>
6861
6862 * include/resolv.h (__libc_res_nquery, __libc_res_nsearch,
6863 __libc_res_nsend): New prototypes.
6864 * resolv/res_query.c (QUERYSIZE): Define.
6865 (__libc_res_nquery): Renamed from res_nquery. Added answerp
6866 argument. Allocate only QUERYSIZE bytes first, if res_nmkquery
6867 fails use MAXPACKET buffer. Call __libc_res_nsend instead of
6868 res_nsend, pass answerp.
6869 (res_nquery): Changed into wrapper around __libc_res_nquery.
6870 (__libc_res_nsearch): Renamed from res_nsearch. Added answerp
6871 argument. Call __libc_res_nquerydomain and __libc_res_nquery
6872 instead of the non-__libc_ variants, pass them answerp.
6873 (res_nsearch): Changed into wrapper around __libc_res_nsearch.
6874 (__libc_res_nquerydomain): Renamed from res_nquerydomain.
6875 Added answerp argument. Call __libc_res_nquery instead of
6876 res_nquery, pass answerp.
6877 (res_nquerydomain): Changed into wrapper around
6878 __libc_res_nquerydomain.
6879 * resolv/res_send.c: Include sys/ioctl.h.
6880 (MAXPACKET): Define.
6881 (send_vc): Change arguments. Reallocate answer buffer if it is
6882 too small.
6883 (send_dg): Likewise.
6884 (__libc_res_nsend): Renamed from res_nsend. Added ansp argument.
6885 Reallocate answer buffer if it is too small and hooks are in use.
6886 Adjust calls to send_vc and send_dg.
6887 (res_nsend): Changed into wrapper around __libc_res_nsend.
6888 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate
6889 just 1K answer buffer on the stack, use __libc_res_nsearch instead
6890 of res_nsearch.
6891 (_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery.
6892 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
6893 (_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch.
6894 * resolv/gethnamaddr.c (gethostbyname2): Likewise.
6895 (gethostbyaddr): Similarly with __libc_res_nquery.
6896 * resolv/Versions (libresolv): Export __libc_res_nquery and
6897 __libc_res_nsearch at GLIBC_PRIVATE.
6898
6899 2002-10-17 Roland McGrath <roland@redhat.com>
6900
6901 * configure.in: Grok --without-__thread and disable HAVE___THREAD.
6902 * configure: Regenerated.
6903
6904 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS
6905 before performing the reloc, not after.
6906 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
6907
6908 2002-10-17 Ulrich Drepper <drepper@redhat.com>
6909
6910 * locale/programs/locale.c (write_locales): Use 'm' flag in fopen call.
6911 * locale/programs/linereader.c (lr_open): Likewise.
6912 * locale/programs/charmap-dir.c (charmap_open): Likewise.
6913 * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
6914
6915 2002-10-17 Isamu Hasegawa <isamu@yamato.ibm.com>
6916
6917 * posix/bug-regex11.c: Add a test case for the bug reported by
6918 Paolo Bonzini <bonzini@gnu.org>.
6919 * posix/regexec.c (sift_states_bkref): Use correct destination of
6920 the back reference.
6921
6922 2002-10-17 Roland McGrath <roland@redhat.com>
6923
6924 * elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS.
6925 * elf/dl-reloc.c (_dl_relocate_object: CHECK_STATIC_TLS): New macro
6926 to signal error if an IE-model TLS reloc resolved to a dlopen'd module.
6927 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
6928 Call it after performing TPOFF relocs.
6929 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
6930 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
6931 * elf/dl-conflict.c (CHECK_STATIC_TLS): New macro (no-op).
6932
6933 * elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash
6934 when closing a partially-initialized object.
6935
6936 * elf/dl-load.c (_dl_map_object_from_fd) [! USE_TLS]: Call lose
6937 instead of _dl_fatal_printf when we see PT_TLS.
6938
6939 * Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F))
6940 instead of $(libof-$<).
6941
6942 2002-10-16 Roland McGrath <roland@redhat.com>
6943
6944 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed.
6945 instead of += to append, to be sure $(lib) gets expanded at defn time.
6946 (libof-$(cpp-src)): New variable, define this instead.
6947 * extra-lib.mk (cpp-srcs-left): Reduce duplication in include setup.
6948 (lib): Don't use override.
6949 (CPPFLAGS-$(lib)): New variable, put -D's here.
6950 * Makeconfig (CPPFLAGS): Use basename fn for CPPFLAGS-basename.
6951 Also add $(CPPFLAGS-LIB) before the file-specific flags, for each
6952 LIB found by $(libof-*) for basename, target, or source.
6953 * Makerules (CPPFLAGS-nonlib): New variable.
6954 * nscd/Makefile (lib): Set to nonlib when using cppflags-iterator.mk.
6955 * locale/Makefile (lib): Likewise.
6956 * sunrpc/Makefile (lib): Likewise.
6957
6958 * sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ...
6959 * sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here.
6960 * sysdeps/unix/sysv/linux/pathconf.h: New file.
6961 (statfs_link_max): New function, guts from fpathconf.c.
6962 * sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that.
6963 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
6964 * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten
6965 to use the linux/pathconf.c code by #include rather than duplication.
6966 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise.
6967
6968 2002-10-16 Jakub Jelinek <jakub@redhat.com>
6969
6970 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
6971 Use __libc_errno only for libc itself.
6972
6973 2002-10-16 Andreas Jaeger <aj@suse.de>
6974
6975 * sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access.
6976
6977 2002-10-16 Ulrich Drepper <drepper@redhat.com>
6978
6979 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
6980 Use __libc_errno only for libc itself.
6981
6982 2002-10-15 Roland McGrath <roland@redhat.com>
6983 Jakub Jelinek <jakub@redhat.com>
6984
6985 * sysdeps/unix/sysv/linux/Makefile
6986 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from
6987 sparc/Makefile to produce a bi-arch file as needed.
6988 That's now parameterized by the variable $(64bit-predefine).
6989 Use LC_ALL=C for `comm' commands in that rule.
6990 No longer conditional on [$(no_syscall_list_h)].
6991 * sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules.
6992 (64bit-predefine): New variable.
6993 * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
6994 * sysdeps/unix/sysv/linux/s390/Makefile: New file.
6995 * sysdeps/unix/sysv/linux/powerpc/Makefile
6996 (64bit-predefine): New variable.
6997
6998 2002-10-15 Roland McGrath <roland@redhat.com>
6999
7000 * sysdeps/unix/sysv/linux/Makefile
7001 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d)
7002
7003 * login/utmp-private.h: Declare __libc_utmp_lock.
7004 * sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once
7005 and call __libc_utmp_jump_table functions directly, instead of using
7006 __setutent et al.
7007
7008 * sysdeps/unix/sysv/linux/configure.in: Use case instead of if.
7009 * sysdeps/unix/sysv/linux/configure: Regenerated.
7010
7011 * sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>.
7012 (struct lastlog) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
7013 Use int32_t for ll_time.
7014 (struct utmp) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
7015 Use int32_t instead of long int for ut_session.
7016 Use an anonymous struct with 32-bit fields for ut_tv.
7017 * sysdeps/gnu/bits/utmpx.h: Include <bits/wordsize.h>.
7018 (struct utmpx) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: Do the same
7019 here as in utmp.h for `struct utmp'.
7020 * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: File removed.
7021 * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: File removed.
7022 * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: File removed.
7023 * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: File removed.
7024 * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: File removed.
7025 * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: File removed.
7026
7027 * sysdeps/unix/sysv/linux/bits/resource.h: Replaced with the contents
7028 of the sysdeps/unix/sysv/linux/i386/bits/resource.h file.
7029 All the following files were identical or equivalent to it.
7030 * sysdeps/unix/sysv/linux/i386/bits/resource.h: File removed.
7031 * sysdeps/unix/sysv/linux/arm/bits/resource.h: File removed.
7032 * sysdeps/unix/sysv/linux/cris/bits/resource.h: File removed.
7033 * sysdeps/unix/sysv/linux/hppa/bits/resource.h: File removed.
7034 * sysdeps/unix/sysv/linux/ia64/bits/resource.h: File removed.
7035 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: File removed.
7036 * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: File removed.
7037 * sysdeps/unix/sysv/linux/s390/bits/resource.h: File removed.
7038 * sysdeps/unix/sysv/linux/sh/bits/resource.h: File removed.
7039 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: File removed.
7040
7041 * sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t
7042 instead of int for msg_iovlen, instead of socklen_t for msg_controllen.
7043 Other than the previously incorrect sign of msg_iovlen, this is a
7044 no-op on 32-bit platforms. On 64-bit platforms it makes this header
7045 match their layouts as well, so the following are now identical to it.
7046 * sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed.
7047 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed.
7048 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed.
7049 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed.
7050 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed.
7051
7052 2002-10-15 Ulrich Drepper <drepper@redhat.com>
7053
7054 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
7055 Define for 2.4+ kernels.
7056
7057 * sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which
7058 are known to have the vfork syscall. Don't confuse the CPUs
7059 branch prediction unit by jumping to the return address.
7060
7061 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add
7062 support for reiserfs and xfs.
7063
7064 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for
7065 XFS link count.
7066 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC
7067 and XFS_LINK_MAX.
7068 Patch by Eric Sandeen <sandeen@sgi.com> [PR libc/4706].
7069
7070 2002-10-16 Jakub Jelinek <jakub@redhat.com>
7071
7072 * include/libc-symbols.h (attribute_tls_model_ie): Define.
7073 * include/errno.h (errno): Define to __libc_errno in libc.so.
7074 Add attribute_tls_model_ie.
7075 * include/netdb.h (h_errno): Define to __libc_h_errno in libc.so.
7076 Add attribute_tls_model_ie.
7077 * include/resolv.h (_res): Define to __libc_res in libc.so. Add
7078 attribute_tls_model_ie.
7079 * inet/herrno.c (__libc_h_errno): Add hidden alias to h_errno.
7080 (h_errno): Define.
7081 * resolv/res_libc.c (__libc_res): Add hidden alias to _res.
7082 (_res): Define.
7083 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_define): Add
7084 attribute_tls_model_ie.
7085 * sysdeps/generic/errno-loc.c (errno): Only undefine if not using
7086 __thread.
7087 * sysdeps/generic/errno.c (__libc_errno): Add hidden alias to errno.
7088 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use
7089 __libc_errno in USE___THREAD case.
7090 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
7091 Likewise.
7092 * configure.in (HAVE_TLS_MODEL_ATTRIBUTE): Check for
7093 __attribute__((tls_model (""))).
7094 * configure: Rebuilt.
7095 * config.h.in (HAVE_TLS_MODEL_ATTRIBUTE): Add.
7096
7097 2002-10-15 Ulrich Drepper <drepper@redhat.com>
7098
7099 * timezone/asia: Update from tzdata2002d.
7100 * timezone/australasia: Likewise.
7101 * timezone/iso3166.tab: Likewise.
7102 * timezone/southamerica: Likewise.
7103 * timezone/zone-tab: Likewise.
7104
7105 2002-10-15 Roland McGrath <roland@redhat.com>
7106
7107 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls) [TLS_TCB_AT_TP]:
7108 Adjust TCB pointer before calling free, so we get the whole block.
7109
7110 2002-10-14 Roland McGrath <roland@redhat.com>
7111
7112 * sysdeps/unix/sysv/linux/x86_64/sigaction.c
7113 [HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt
7114 extern using attribute_hidden instead of static, avoids warning.
7115
7116 2002-10-09 Jakub Jelinek <jakub@redhat.com>
7117
7118 * sysdeps/unix/sysv/linux/configure.in: Use */lib64 for s390x too.
7119 * sysdeps/unix/sysv/linux/configure: Rebuilt.
7120
7121 2002-10-14 Ulrich Drepper <drepper@redhat.com>
7122
7123 * po/sv.po: Update from translation team.
7124
7125 2002-10-12 H.J. Lu <hjl@gnu.org>
7126
7127 * sunrpc/thrsvc.c (PROCQUIT): New.
7128 (struct rpc_arg): New.
7129 (dispatch): Call exit (0) if request->rq_proc == PROCQUIT.
7130 (test_one_call): Take struct rpc_arg * instead of CLIENT *c.
7131 (thread_wrapper): Modified for struct rpc_arg * and call PROCQUIT.
7132 (main): Modified for struct rpc_arg *.
7133
7134 2002-10-14 Ulrich Drepper <drepper@redhat.com>
7135
7136 * dirent/scandir.c: Rearrange code a bit to reduce binary size.
7137
7138 2002-10-14 Jakub Jelinek <jakub@redhat.com>
7139
7140 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Include tls.h.
7141 (SYSCALL_ERROR_HANDLER): Use RTLD_PRIVATE_ERRNO sequence
7142 in ld.so even if __thread is supported.
7143
7144 2002-10-13 Jakub Jelinek <jakub@redhat.com>
7145
7146 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
7147 Add hack to prevent the compiler from clobbering the signal context.
7148 * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
7149 Likewise.
7150 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter):
7151 Likewise.
7152
7153 2002-10-14 Andreas Jaeger <aj@suse.de>
7154
7155 * sysdeps/mips/fpu/libm-test-ulps: Regenerated by
7156 Guido Guenther <agx@sigxcpu.org>.
7157
7158 2002-10-14 Ulrich Drepper <drepper@redhat.com>
7159
7160 * po/sk.po: Update from translation team.
7161
7162 2002-09-26 Roland McGrath <roland@redhat.com>
7163
7164 * elf/dl-load.c (_dl_dst_count, _dl_dst_substitute): Handle $LIB
7165 dynamic string tag.
7166 * elf/Makefile ($(objpfx)trusted-dirs.st): Make the output define
7167 DL_DST_LIB based on $(slibdir).
7168
7169 2002-10-13 Roland McGrath <roland@frob.com>
7170
7171 * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command.
7172
7173 * sysdeps/mach/hurd/getresuid.c: New file.
7174 * sysdeps/mach/hurd/getresgid.c: New file.
7175 * sysdeps/mach/hurd/setresuid.c: New file.
7176 * sysdeps/mach/hurd/setresgid.c: New file.
7177
7178 * posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
7179 setresgid): Declare them.
7180 * NEWS: Mention it.
7181 * include/unistd.h
7182 (__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
7183 add libc_hidden_proto.
7184 * posix/Versions (libc: GLIBC_2.3.2): New set. Add
7185 getresuid, getresgid, setresuid, setresgid here.
7186 * Versions.def (libc): Define GLIBC_2.3.2 set.
7187 * sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
7188 Add libc_hidden_def.
7189 * sysdeps/generic/getresgid.c (__getresgid): Likewise.
7190 * sysdeps/generic/setresgid.c: New file.
7191 * sysdeps/generic/setresuid.c: New file.
7192 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
7193 (sysdep_routines): Don't add getresuid and getresgid here.
7194 * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
7195 (sysdep_routines): Don't add setresuid and setresgid here.
7196 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
7197 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
7198 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
7199 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
7200 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
7201 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
7202 * posix/Makefile (routines): Add them all here instead.
7203 * sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
7204 __getresuid. Add libc_hidden_def for that, and weak alias to old name.
7205 * sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
7206 __getresgid. Add libc_hidden_def for that, and weak alias to old name.
7207 * sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
7208 [! __NR_setresuid]: Include generic file.
7209 * sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
7210 __setresgid. Add libc_hidden_def for that, and weak alias to old name.
7211 [! __NR_setresuid]: Include generic file.
7212 * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
7213 Caller is - now, not EXTRA.
7214 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
7215 (setresuid, setresgid, getresuid, getresgid): Likewise.
7216 * sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
7217 Add these calls here.
7218 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
7219 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
7220 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
7221 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
7222 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7223 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
7224 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
7225 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
7226 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
7227
7228 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
7229 (sysdep_routines): Add setfsuid and setfsgid here.
7230 * sysdeps/unix/sysv/linux/arm/Makefile: Not here.
7231 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
7232 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
7233 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
7234 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
7235 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
7236 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
7237 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
7238
7239 * hurd/errno.c: Renamed to ...
7240 * hurd/errno-loc.c: ... this.
7241 * hurd/Makefile (routines): errno -> errno-loc
7242
7243 2002-10-13 Ulrich Drepper <drepper@redhat.com>
7244
7245 * po/de.po: Update from translation team.
7246
7247 * MakeTAGS: Add -E flag to xgettext runs.
7248
7249 2002-10-12 Ulrich Drepper <drepper@redhat.com>
7250
7251 * po/fr.po: Update from translation team.
7252
7253 * sysdeps/posix/system.c: Remove support for old and buggy SCO systems.
7254 Optimize a bit for use in glibc.
7255
7256 2002-10-12 Roland McGrath <roland@redhat.com>
7257
7258 * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds.
7259 Some machines are slow. Guido Guenther <agx@sigxcpu.org> has one.
7260
7261 2002-10-12 Ulrich Drepper <drepper@redhat.com>
7262
7263 * po/sv.po: Update from translation team.
7264
7265 2002-10-11 Isamu Hasegawa <isamu@yamato.ibm.com>
7266
7267 * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling
7268 OP_CONTEXT_NODE.
7269 (regfree): Likewise.
7270 (create_initial_state): Likewise.
7271 (analyze): Remove the substitutions which became useless.
7272 (calc_first): Likewise.
7273 (calc_epsdest): Use edests of OP_BACK_REF in case that it has
7274 epsilon destination.
7275 (duplicate_node_closure): New function.
7276 (duplicate_node): Remove the handling OP_CONTEXT_NODE.
7277 (calc_inveclosure): Likewise.
7278 (calc_eclosure): Likewise.
7279 (calc_eclosure_iter): Invoke duplicate_node_closure instead of
7280 direct invocation of duplicate_node.
7281 (parse): Don't use comma operator in the return to avoid compiler
7282 warning.
7283 (parse_reg_exp): Likewise.
7284 (parse_branch): Likewise.
7285 (parse_expression): Likewise.
7286 (parse_sub_exp): Likewise.
7287 (parse_dup_op): Likewise.
7288 * posix/regex_internal.c (re_dfa_add_node): Remove the substitutions
7289 which became useless.
7290 (create_ci_newstate): Remove the handling OP_CONTEXT_NODE.
7291 (create_cd_newstate): Likewise.
7292 * posix/regex_internal.h (re_token_type_t): Remove the obsolete type.
7293 (re_token_t): Likewise.
7294 (re_dfa_t): Likewise.
7295 (re_node_set_remove): New macro.
7296 * posix/regexec.c (check_matching): Remove the handling
7297 OP_CONTEXT_NODE.
7298 (check_halt_node_context): Likewise.
7299 (proceed_next_node): Likewise.
7300 (pop_fail_stack): Fix the memory leak.
7301 (set_regs): Likewise.
7302 (free_fail_stack_return): New function.
7303 (sift_states_backward): Fix the memory leak. Remove the handling
7304 OP_CONTEXT_NODE.
7305 (update_cur_sifted_state): Append some if clause to avoid redundant
7306 call.
7307 (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a
7308 back reference.
7309 (check_dst_limits): Remove the handling OP_CONTEXT_NODE.
7310 (check_subexp_limits): Likewise.
7311 (search_subexp): Likewise.
7312 (sift_states_bkref): Likewise.
7313 (transit_state_mb): Likewise.
7314 (transit_state_bkref_loop): Likewise.
7315 (transit_state_bkref_loop): Likewise.
7316 (group_nodes_into_DFAstates): Likewise.
7317 (check_node_accept): Likewise.
7318 (sift_ctx_init): Add initializing.
7319
7320 2002-10-12 Ulrich Drepper <drepper@redhat.com>
7321
7322 * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use
7323 __builtin_expect.
7324
7325 2002-10-11 Ulrich Drepper <drepper@redhat.com>
7326
7327 * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
7328 duplicated variable c.
7329
7330 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
7331 if possible.
7332
7333 * sysdeps/unix/sysv/linux/i386/sysdep.h
7334 (INTERNAL_SYSCALL_ERROR_P): New define.
7335 (INTERNAL_SYSCALL_ERRNO): Likewise.
7336
7337 * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
7338 Add hack to prevent the compiler from clobbering the signal context.
7339
7340 2002-10-11 Roland McGrath <roland@redhat.com>
7341
7342 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
7343 Fix typos.
7344
7345 * sysdeps/generic/dl-lookupcfg.h: Include <tls.h>.
7346 * sysdeps/sh/dl-lookupcfg.h: File removed.
7347 * sysdeps/i386/dl-lookupcfg.h: File removed.
7348
7349 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
7350 missing labels and ; from last change.
7351
7352 * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
7353 number literals, so they are doubles instead of ints.
7354
7355 2002-10-09 Roland McGrath <roland@redhat.com>
7356
7357 * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
7358 changed from [USE_TLS && HAVE___THREAD].
7359
7360 * sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
7361 Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
7362 * sysdeps/x86_64/dl-machine.h
7363 (elf_machine_type_class, elf_machine_rela): Likewise.
7364 * sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
7365 Likewise.
7366
7367 * include/link.h (struct link_map): Remove member l_tls_tp_initialized.
7368 * elf/rtld.c (_dl_start_final, dl_main): Don't use it.
7369 (_dl_start): Conditionalize PT_TLS check on [USE___THREAD].
7370
7371 * sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
7372 instead of ___tls_get_addr.
7373 (___tls_get_addr_internal): Add attribute_hidden to decl.
7374
7375 * sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
7376 _dl_error_catch_tsd.
7377 * elf/rtld.c (startup_error_tsd): New function.
7378 (dl_main): Point _dl_error_catch_tsd at that.
7379 * elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
7380 use new function pointer instead.
7381 * elf/dl-tsd.c: New file.
7382 * elf/Makefile (routines): Add it.
7383
7384 2002-10-07 Roland McGrath <roland@redhat.com>
7385
7386 * elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
7387 writev if it's available. Otherwise if [RTLD_PRIVATE_ERRNO] then
7388 take _dl_load_lock around calling __writev.
7389
7390 * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
7391 (INLINE_SYSCALL): Use that.
7392
7393 * sysdeps/generic/dl-sysdep.h: New file.
7394 * sysdeps/mach/hurd/dl-sysdep.h: New file.
7395 * sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
7396 * include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
7397 [RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
7398 access it directly.
7399 * elf/dl-minimal.c (__errno_location): Removed.
7400 * sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
7401 Use GOTOFF access for errno.
7402 * sysdeps/unix/sysv/linux/i386/sysdep.h
7403 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
7404
7405 * sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
7406 Use PC-relative access for errno.
7407 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
7408 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
7409
7410 * include/tls.h: New file.
7411 (USE___THREAD): New macro.
7412 Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
7413 libc or libpthread.
7414 * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
7415 changed from [USE_TLS && HAVE___THREAD].
7416 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
7417 * sysdeps/unix/i386/sysdep.S: Likewise.
7418 * sysdeps/unix/x86_64/sysdep.S: Likewise.
7419 * include/errno.h: Likewise.
7420 * include/netdb.h: Likewise.
7421 * include/resolv.h: Likewise.
7422
7423 * sysdeps/generic/errno.c: New file.
7424 * csu/Makefile (aux): New variable, list errno.
7425 * sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
7426 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
7427 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
7428 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
7429 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
7430 * sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
7431 * sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
7432 * sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
7433 * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
7434 * sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
7435 * sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
7436 * sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
7437 * sysdeps/unix/alpha/sysdep.S: Likewise.
7438 * sysdeps/generic/start.c: Likewise.
7439 * sysdeps/unix/start.c: Likewise.
7440 * sysdeps/unix/arm/start.c: Likewise.
7441 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
7442 * sysdeps/unix/sparc/start.c: Likewise.
7443 * sysdeps/unix/sysv/irix4/start.c: Likewise.
7444 * sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.
7445
7446 * manual/search.texi (Tree Search Function, Hash Search Function):
7447 Mention search.h clearly.
7448
7449 2002-10-05 Roland McGrath <roland@redhat.com>
7450
7451 * elf/dl-fxstat64.c: File removed.
7452 * elf/dl-xstat64.c: File removed.
7453 * elf/Makefile (rtld-routines): Remove them.
7454 * sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
7455 Instead, use strong_alias instead of versioned_symbol in the
7456 !SHLIB_COMPAT case.
7457 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
7458 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
7459
7460 * include/shlib-compat.h
7461 (SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
7462 [! NOT_IN_libc] (IS_IN_libc): Define it.
7463 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
7464 * elf/Makefile (CPPFLAGS-.os): Likewise.
7465
7466 * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
7467 Return the status instead of calling exit.
7468
7469 * Makeconfig (CFLAGS): Prepend -std=gnu99.
7470 * Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
7471 Remove superfluous rm command, whose @ plus make bugs hid
7472 all these commands from the make output.
7473
7474 * include/stubs-prologue.h: New file. Give #error under #ifdef _LIBC.
7475 * Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
7476 Use that file's contents instead of literal echo's for the prologue.
7477 * include/features.h: Include <gnu/stubs.h> unconditionally.
7478 * include/gnu/stubs.h: New file.
7479
7480 2002-09-30 Roland McGrath <roland@redhat.com>
7481
7482 * elf/rtld-Rules: New file.
7483 * elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
7484 $(objpfx)rtld-libc.a): New targets.
7485 (generated): Add them.
7486 (reloc-link): Remove -o $@ from the variable.
7487 ($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
7488 (distribute): Add rtld-Rules.
7489 (CPPFLAGS-.os): Define this instead of CFLAGS-.os.
7490 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
7491 (common-mostlyclean, common-clean): Clean up rtld-* files.
7492 * sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.
7493
7494 2002-10-11 Roland McGrath <roland@redhat.com>
7495
7496 * sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in
7497 now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED.
7498
7499 * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
7500 proper set of no-op insn prefixes.
7501
7502 * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members.
7503
7504 2002-10-11 Ulrich Drepper <drepper@redhat.com>
7505
7506 * sysdeps/unix/sysv/linux/execve.c: Don't try calling
7507 __pthread_kill_other_threads_np.
7508
7509 * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls.
7510
7511 2002-10-08 Roland McGrath <roland@redhat.com>
7512
7513 * locale/newlocale.c (__newlocale): If setting all categories to "C",
7514 just return &_nl_C_locobj instead of copying it.
7515 * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj.
7516 * locale/duplocale.c (__duplocale): Likewise.
7517
7518 2002-10-07 Roland McGrath <roland@frob.com>
7519
7520 * config.h.in (HAVE_I386_SET_GDT): New #undef.
7521 * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt.
7522 * sysdeps/mach/configure: Regenerated.
7523
7524 2002-10-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7525
7526 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
7527 Add all necessary register outputs for syscall-clobbered registers.
7528
7529 2002-10-02 David Mosberger <davidm@hpl.hp.com>
7530
7531 * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for
7532 Itanium 2 (and Itanium).
7533 Fix unwind directives and make it fit in 80 columns.
7534 * sysdeps/ia64/memset.S: Likewise.
7535 * sysdeps/ia64/memcpy.S: Likewise.
7536 Move jump table to .rodata section.
7537
7538 2002-10-03 Roland McGrath <roland@frob.com>
7539
7540 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add
7541 clobbers to asm.
7542
7543 2002-10-10 Andreas Jaeger <aj@suse.de>
7544
7545 * sysdeps/x86_64/_mcount.S: Restore correct registers.
7546
7547 2002-10-10 Ulrich Drepper <drepper@redhat.com>
7548
7549 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect.
7550
7551 2002-10-09 Ulrich Drepper <drepper@redhat.com>
7552
7553 * sysdeps/generic/ldsodefs.h: Remove attribute_hidden from
7554 _dl_allocate_tls_init. Add rtld_hidden_proto.
7555 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add
7556 rtld_hidden_def.
7557 * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init.
7558
7559 * version.h (VERSION): Bump to 2.3.1.
7560
7561 * Make-dist: Add back one of the tar invocations removed before.
7562
7563 * stdlib/Makefile (distribute): Add allocalim.h.
7564
7565 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
7566 (__libc_tsd_address): Use correct variable name.
7567 Patch by Stefan Jones <stefan.jones@multigig.com>.
7568
7569 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;.
7570 Reported by edwardsg@sgi.com [PR libc/4678].
7571
7572 * Versions.def (libc): Add GLIBC_2.3.1.
7573 (libpthread): Add GLIBC_2.3.1.
7574
7575 * include/signal.h: Add libc_hidden_proto for __sigwait, __sigwaitinfo,
7576 and __sigtimedwait.
7577 * signal/Versions: Add __sigtimedwait, __sigwait, and __sigwaitinfo.
7578 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Add
7579 libc_hidden_def.
7580 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
7581 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
7582
7583 * include/sys/msg.h: Declare __libc_msgrcv and __libc_msgsnd.
7584 * sysdeps/unix/sysv/linux/msgrcv.c (__msgrcv): Rename to __libc_msgrcv
7585 and make old name an alias.
7586 * sysdeps/unix/sysv/linux/msgsnd.c (__msgsnd): Rename to __libc_msgsnd
7587 and make old name an alias.
7588 * sysvipc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_msgrcv and
7589 __libc_msgsnd.
7590
7591 * include/sys/uio.h: Declare __libc_readv and __libc_writev.
7592 * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and
7593 __libc_writev.
7594 * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make
7595 old name an alias.
7596 * sysdeps/posix/readv.c: Likewise
7597 * sysdeps/unix/sysv/aix/readv.c: Likewise.
7598 * sysdeps/unix/sysv/linux/readv.c: Likewise.
7599 * sysdeps/generic/writev.c (__writev): Rename to __libc_writev and make
7600 old name an alias.
7601 * sysdeps/posix/writev.c: Likewise
7602 * sysdeps/unix/sysv/aix/writev.c: Likewise.
7603 * sysdeps/unix/sysv/linux/writev.c: Likewise.
7604
7605 * include/sys/wait.h: Declare __waitid.
7606 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __waitid.
7607 * sysdeps/generic/waitid.c (waitid): Rename to __waitid and make old
7608 name an alias.
7609 * sysdeps/posix/waitid.c: Likewise.
7610 * sysdeps/unix/sysv/aix/waitid.c: Likewise.
7611
7612 * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall.
7613
7614 2002-10-07 Jakub Jelinek <jakub@redhat.com>
7615
7616 * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New
7617 prototypes.
7618 (__MAX_ALLOCA_CUTOFF): Define.
7619 Include allocalim.h.
7620 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
7621 _nss_dns_gethostbyaddr_r): Use alloca or malloc to allocate
7622 host_buffer depending on __libc_use_alloca.
7623 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
7624 _nss_dns_getnetbyaddr_r): Use alloca or malloc to allocate
7625 net_buffer depending on __libc_use_alloca.
7626 * resolv/res_query.c (res_nquery): Use alloca or malloc to allocate
7627 buf depending on __libc_use_alloca.
7628 * resolv/gethnamaddr.c (gethostbyname2, gethostbyaddr): Likewise.
7629 * stdio-common/vfprintf.c (vfprintf): Use __libc_use_alloca
7630 instead of hardcoded constants.
7631 Pass proper size argument to alloca and compute end for wide char
7632 version.
7633 * stdio-common/printf_fp.c (__printf_fp): Use __libc_use_alloca
7634 instead of hardcoded constants.
7635 * string/strcoll.c (strcoll): Likewise.
7636 * string/strxfrm.c (strxfrm): Likewise.
7637 * sysdeps/posix/readv.c (__readv): Likewise.
7638 * sysdeps/posix/writev.c (__writev): Likewise.
7639 * sysdeps/generic/allocalim.h: New file.
7640
7641 2002-10-08 Roland McGrath <roland@redhat.com>
7642
7643 * configure.in (aux_missing warning): Change "too old" to
7644 "incompatible versions", since for autoconf it's "too new" right now.
7645 * configure: Regenerated.
7646
7647 * configure.in (AUTOCONF): New check to set it. Set to "no" if the
7648 one found doesn't work on our configure.in.
7649 * configure: Regenerated.
7650 * config.make.in (AUTOCONF): New substituted variable.
7651 * Makefile (autoconf-it-cvs): New canned sequence, broken out of ...
7652 (autoconf-it): ... here, use that instead of defining conditionally.
7653 Use $(AUTOCONF) instead of literal autoconf.
7654 [$(AUTOCONF) != no] (configure, %/configure): Protect these rules
7655 with this condition.
7656 * Make-dist (autoconf-it, configure, %/configure): Copy those changes.
7657
7658 2002-10-08 Ulrich Drepper <drepper@redhat.com>
7659
7660 * Make-dist (dist): Cleanup a bit. We are not interested in the
7661 14 char filename limit anymore. Remove intermediate files and
7662 symlinks.
7663
7664 2002-10-05 Ulrich Drepper <drepper@redhat.com>
7665
7666 * po/sk.po: Update from translation team.
7667 * po/tr.po: Likewise.
7668 * po/gl.po: Likewise.
7669
7670 2002-10-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7671
7672 * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax.
7673
7674 2002-10-03 Ulrich Drepper <drepper@redhat.com>
7675
7676 * version.h (RELEASE): Change to stable.
7677
7678 2002-10-03 Jakub Jelinek <jakub@redhat.com>
7679
7680 * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit,
7681 __syscall_exit_group): New prototypes.
7682
7683 2002-10-03 Ulrich Drepper <drepper@redhat.com>
7684
7685 * glibc 2.3 released.
7686
7687
7688 See ChangeLog.13 for earlier changes.
This page took 0.353916 seconds and 4 git commands to generate.