]> sourceware.org Git - glibc.git/blame - ChangeLog
Update.
[glibc.git] / ChangeLog
CommitLineData
ef4d5b32
UD
12003-04-17 Ulrich Drepper <drepper@redhat.com>
2
9e9f1f15
UD
3 * sysdeps/unix/sysv/linux/system.c: If compiled without threads
4 don't do anything fancy.
5
6 * sysdeps/generic/bits/libc-lock.h: Define
7 __rtld_lock_define_initialized_recursive.
8
ef4d5b32
UD
9 * nss/getXXbyYY_r.c [USE_NSCD] (REENTRANT_NAME): Only retry
10 contacting nscd if NOT_USENSCD_NAME > 0.
11 * nss/nsswitch.c (__nss_disable_nscd): New function.
12 * nss/nsswitch.h: Declare it.
13 * nss/Versions [GLIBC_PRIVATE]: Export __nss_disable_nscd.
14 * nscd/nscd.c (main): Call __nss_disable_nscd.
15
81641068
UD
162003-04-16 Ulrich Drepper <drepper@redhat.com>
17
a4de3776
UD
18 * stdio-common/perror.c (perror): We don't need to set the offset
19 to _IO_pos_bad, this is how streams are initialized.
20
86d27307
UD
21 * locale/programs/ld-time.c (TESTARR_ELEM): Make i unsigned.
22 (time_output): If necessary, allocate new buffer for .name string if
23 padding is required.
24
31dfab9e
UD
25 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Check lengths
26 before copying. This might leave holes in the list. Adjust
27 pointers if necessary.
28 (netlink_receive): Allocate only one block.
29 (free_netlink_handle): Adjust appropriately.
30 (getifaddrs): Lots of cleanups.
31
1dd42dfc 32 * string/test-strncpy.c (do_one_test): Mark start and stop as
81641068
UD
33 possibly unused.
34
4ab6f47c
RM
352003-04-15 Roland McGrath <roland@redhat.com>
36
37 * libio/fileops.c (_IO_file_close_it): Macro tweak to avoid warning.
38
39 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO]: Add decl for
40 INTUSE(__register_frame_info_bases).
41
162434a6
UD
422003-04-15 Ulrich Drepper <drepper@redhat.com>
43
44 * elf/elf.h: Define AT_SYSINFO_EH_FRAME.
45 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle
dce3db56 46 AT_SYSINFO_EH_FRAME. Adjust string width.
162434a6
UD
47 (_dl_show_auxv):Display AT_SYSINFO_EH_FRAME value.
48 * sysdeps/generic/ldsodefs.h [NEED_DL_SYSINFO] (struct rtld_global):
49 Add _dl_sysinfo_eh_frame field.
50 * elf/dl-support.c [NEED_DL_SYSINFO]: Define _dl_sysinfo_eh_frame.
51 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO] Define eh_obj
52 variable.
53 [NEED_DL_SYSINFO] (LIBC_START_MAIN): Call __register_frame_info_bases
54 if _dl_sysinfo_eh_frame is non-NULL.
55
56 * Makeconfig (gnulib): Add -lgcc_eh.
57
58 * config.h.in: Define HAVE_FORCED_UNWIND.
59
482eb33c
UD
602003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
61
62 * sysdeps/powerpc/powerpc64/strcmp.S: Convert to full 64-bit.
63 * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
64
aa3f2410
UD
652003-04-15 Jakub Jelinek <jakub@redhat.com>
66
67 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Avoid
68 checking R_PPC_RELATIVE, R_PPC_NONE and whether relocation is
69 against local symbol in conflict processing.
70
6087c485
UD
712003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
72
73 * sysdeps/powerpc/bits/atomic.h
74 [__powerpc64] (__arch_compare_and_exchange_val_64_acq): Define.
75 [! __powerpc64] (__arch_compare_and_exchange_val_64_acq): Defined
76 as abort stub.
77 (__arch_compare_and_exchange_val_32_acq): Define.
78 (atomic_compare_and_exchange_val_acq): Define.
79
a1b5424f
UD
802003-04-15 Ulrich Drepper <drepper@redhat.com>
81
82 * include/atomic.h: Pretty printing.
83
52a7f7c0
UD
842003-04-14 Ulrich Drepper <drepper@redhat.com>
85
86 * stdio-common/vfscanf.c: Add casts to avoid warnings.
87
bd4f43b4
UD
882003-04-14 Jakub Jelinek <jakub@redhat.com>
89
90 * sysdeps/i386/i486/bits/atomic.h: Rename LOCK to LOCK_PREFIX.
91 * sysdeps/x86_64/bits/atomic.h: Likewise.
92
932003-04-14 Ulrich Drepper <drepper@redhat.com>
94
95 * sysdeps/unix/sysv/linux/i386/sysdep.h: Change PUSHARGS_1 and
96 POPARGS_1 to emit labels for the mov instructions.
97
982003-04-14 Jakub Jelinek <jakub@redhat.com>
99
100 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (ret_NOERRNO): Define.
101
8133a3fd
RM
1022003-04-14 Roland McGrath <roland@redhat.com>
103
104 * sysdeps/generic/unwind-dw2.c (_Unwind_GetCFA): Add a cast to silence
105 compiler warning.
106
107 * sysdeps/generic/unwind-pe.h: Fix decl hacks broken in merge.
108
39a46c42
UD
1092003-04-14 Ulrich Drepper <drepper@redhat.com>
110
111 * string/strxfrm.c (STRXFRM): Terminate rulearr at correct
112 position. Reported by jreiser@BitWagon.com.
113
a1fb9649
UD
1142003-04-13 Ulrich Drepper <drepper@redhat.com>
115
116 * sysdeps/generic/unwind-dw2-fde.c: Update from recent gcc version.
117 * sysdeps/generic/unwind-dw2-fde.h: Likewise.
118 * sysdeps/generic/unwind-dw2.c: Likewise.
119 * sysdeps/generic/unwind-pe.h: Likewise.
120
6a1aff69
AO
1212003-04-13 Alexandre Oliva <aoliva@redhat.com>
122
123 * sysdeps/unix/sysv/linux/mips/profil-counter: New.
124 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Port to n32/n64.
125 * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: New.
126 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Port to n32/n64.
127 (mcontext_t): Make it match the 32-bit mips kernel in o32.
128 * sysdeps/unix/sysv/linux/mips/sys/user.h: Bring in constants from
129 the mips and mips64 headers.
130 (struct user): Port to n32/n64.
131
7cc1894c
UD
1322003-04-12 Ulrich Drepper <drepper@redhat.com>
133
134 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add cast to
135 avoid warning.
136
137 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): If
138 __ASSUME_VSYSCALL is defined don't add restorer.
139 * sysdeps/unix/sysv/linux/kernel-features.h: Define
140 __ASSUME_VSYSCALL for 2.5.53.
141
09d65ff3
UD
1422003-04-11 Ulrich Drepper <drepper@redhat.com>
143
144 * sysdeps/generic/libc-start.c: Cleanup MAIN_AUXVEC_ARG handling.
145 Remove HAVE_CANCELBUF code. Replace with code using the new
146 initializers for unwind-based cleanup handling.
147 * sysdeps/generic/unwind.h: Update from latest gcc version.
148 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define labels in a few
149 places to allow unwind data generation.
150 * sysdeps/i386/bits/setjmp.h: Allow file to be included multiple times.
151 * sysdeps/x86_64/bits/setjmp.h: Likewise.
152 * sysdeps/sh/bits/setjmp.h: Likewise.
153 * sysdeps/powerpc/bits/setjmp.h: Likewise.
154 * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: Likewise.
155 * sysdeps/alpha/bits/setjmp.h: Likewise.
156
0dc44b51
RM
1572003-04-11 Roland McGrath <roland@redhat.com>
158
159 * csu/tst-empty.c: New file.
160 * csu/Makefile (tests, tests-static): Add it.
161
52a5e975
RM
1622003-04-11 Jakub Jelinek <jakub@redhat.com>
163
9fb0cae8
RM
164 * string/test-strcmp.c (do_random_tests): Test whether return value
165 has been promoted to wordsize if the ABI requires caller to do so.
166 * string/test-strncmp.c (do_random_tests): Likewise.
167 * string/test-memcmp.c (do_random_tests): Likewise.
168
169 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Sign extend rRTN
170 before returning.
171
b35fce97
RM
172 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
173 (__fe_nomask_env): Try prctl even if __ASSUME_NEW_PRCTL_SYSCALL
174 is not defined, but the prctl constants are.
175
52a5e975
RM
176 * string/tester.c (test_strcmp): Fix a typo.
177
539f1d28
UD
1782003-04-09 Ulrich Drepper <drepper@redhat.com>
179
180 * sysdeps/alpha/fpu/bits/mathdef.h: Remove FLT_EVAL_METHOD definition.
181 * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
182
c9efbeda
AO
1832003-04-08 Alexandre Oliva <aoliva@redhat.com>
184
185 * sysdeps/mips/sys/regdef.h (t4,t5,t6,t7): Renamed to t0..t3 on
186 NewABI.
187 (ta0, ta1, ta2, ta3): Defined to t4..t7 on o32, and a4..a7 on
188 NewABI.
189 * sysdeps/mips/mips64/memcpy.S: Adjust register naming
190 conventions.
191 * sysdeps/mips/mips64/memset.S: Likewise.
192 * sysdeps/unix/mips/sysdep.S (__syscall_error) [_LIBC_REENTRANT]:
193 Use t0 instead of t4 as temporary.
194
cb4d04cd
UD
1952003-04-07 Ulrich Drepper <drepper@redhat.com>
196
197 * elf/ldconfig.c (parse_conf): Ignore leading whitespace. Use
198 feof_unlocked instead of feof.
199 (add_dir): Ignore trailing whitespace.
200
0a7cfefb
RM
2012003-04-07 Jakub Jelinek <jakub@redhat.com>
202
203 * posix/bug-regex4.c (main): Cap RANGE and STOP arguments to
204 sum of SIZE1 and SIZE2 arguments.
205
e8b0d4a1
UD
2062003-04-06 Ulrich Drepper <drepper@redhat.com>
207
208 * iconv/iconv_prog.c (process_block): Don't print message about
209 invalid input if the -c option is used.
210 (main): Correctly append IGNORE string for -c option.
211
e87d07a0
RM
2122002-04-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
213
214 * sysdeps/sh/bits/atomic.h: Moved to ...
215 * sysdeps/unix/sysv/linux/sh/bits/atomic.h: ... here. Add comments.
216 (__arch_compare_and_exchange_val_*_acq): Add parens around macro
e8b0d4a1 217 arguments.
e87d07a0
RM
218 (atomic_bit_set, atomic_bit_test_set): Likewise.
219 (atomic_exchange_and_add): Likewise. Don't evaluate VALUE argument
220 twice.
221 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
222
24ff6479
RM
2232003-04-06 Roland McGrath <roland@redhat.com>
224
225 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Rewrite register
226 restoration as done for setcontext yesterday.
227
efedd9cf
UD
2282003-04-06 Jakub Jelinek <jakub@redhat.com>
229
230 * elf/rtld.c: Revert 2003-03-14 change.
231 * elf/dl-conflict.c (_dl_resolve_conflicts): Move
232 #if ! ELF_MACHINE_NO_RELA conditional into the routine.
233
abefbc51
UD
2342003-04-05 Ulrich Drepper <drepper@redhat.com>
235
a9f17952
UD
236 * sunrpc/xdr.c (xdr_string): Catch nodesize == 0 [PR libc/4999].
237
abefbc51
UD
238 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
239 Always initialize *signgamp before returning an error.
240
a5392bed
UD
2412003-04-05 Roland McGrath <roland@redhat.com>
242
243 * sysdeps/unix/sysv/linux/i386/setcontext.S: Rewrite to avoid writing
244 below the stack pointer even if switching to the same context we are
245 running right now.
246
ee6bf14d
UD
2472003-04-05 Ulrich Drepper <drepper@redhat.com>
248
a5392bed
UD
249 * catgets/gencat.c (read_input_file): Make sure that \n is not
250 alone on the line before testing for continuation.
251
252 * math/test-tgmath.c (compile_test): Initialize c.
ee6bf14d 253
743f1874
AO
2542003-04-05 Alexandre Oliva <aoliva@redhat.com>
255
256 * sysdeps/unix/sysv/linux/mips/mips64/n32/ftruncate64.c: New.
257 * sysdeps/unix/sysv/linux/mips/mips64/n32/truncate64.c: New.
258 * sysdeps/unix/sysv/linux/kernel-features.h: fcntl64 is available
259 on mips n32.
ee6bf14d 260 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Explain why
743f1874
AO
261 XSTAT_IS_XSTAT64 must not be used for mips n64. Use 64-bit data
262 structure on n32 as well.
263 * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use POSIX-compliant
264 data types on n32 and n64.
265
54e0138f
UD
2662003-04-05 Ulrich Drepper <drepper@redhat.com>
267
b4068b0a
UD
268 * libio/fileops.c (_IO_new_file_fopen): Don't free step data right
269 after getting them.
270
54e0138f
UD
271 * malloc/thread-m.h [PTHREAD_MUTEX_INITIALIZER]: If
272 HAVE_register_atfork_malloc is defined use __register_atfork_malloc
273 instead of __register_atfork.
274
d0f534e9
RM
2752003-04-05 Jakub Jelinek <jakub@redhat.com>
276
277 * stdio-common/reg-printf.c (__register_printf_function): Calloc
278 instead of malloc __printf_arginfo_table and __printf_function_table.
279 Reported by John Reiser <jreiser@BitWagon.com>.
280
beb03cee
RM
2812003-04-04 Steven Munroe <sjmunroe@us.ibm.com>
282
283 * sysdeps/powerpc/powerpc64/strchr.S: 64-bit optimizations.
284 * sysdeps/powerpc/powerpc64/strlen.S: 64-bit optimizations.
285
286 * sysdeps/powerpc/fpu/bits/mathdef.h (FLT_EVAL_METHOD): Undef before
287 defining.
288
26b54a6b
AO
2892003-04-04 Alexandre Oliva <aoliva@redhat.com>
290
291 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock): Adjust
292 for n64 abi.
293
ff084b87
RM
2942003-04-03 Roland McGrath <roland@redhat.com>
295
296 * configure.in: Fix up use of compilation flags to match the build:
297 For .s files, $ASFLAGS;
298 For .S files, $CPPFLAGS $ASFLAGS;
299 For .c files, $CFLAGS $CPPFLAGS;
300 when linking, add $LDFLAGS.
301 * configure: Regenerated.
302
dd59050d
UD
3032003-04-03 Jakub Jelinek <jakub@redhat.com>
304
305 * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Reverse test
306 for atomic_compare_and_exchange_bool_acq failure.
307
148bb057
UD
3082003-04-03 Ulrich Drepper <drepper@redhat.com>
309
310 * posix/unistd.h: Define _POSIX_VERSION, _POSIX2_VERSION,
311 _POSIX2_C_BIND, _POSIX2_C_DEV, _POSIX2_SW_DEV, and
312 _POSXI2_LOCALEDEF to 200112L. Remove _POSIX2_C_VERSION.
313 Remove declaration of pthread_atfork.
314
d903678a
UD
3152003-04-02 Ulrich Drepper <drepper@redhat.com>
316
fab07ed6
UD
317 * locale/iso-639.def: Add many more languages from the current ISO 639.
318
d903678a
UD
319 * sysdeps/unix/sysv/linux/ipc_priv.h: Define IPCOP_semtimedop.
320 * sysdeps/generic/semtimedop.c: New file.
321 * sysdeps/unix/sysv/linux/i386/semtimedop.S: New file.
322 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add semtimedop.
323 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
324 * sysvipc/Makefile (routines): Add semtimedop.
325 * sysvipc/Versions [GLIBC_2.3.3] (glibc): Add semtimedop.
326 * sysvipc/sys/sem.h: Declare semtimedop.
327
42607429
RM
3282003-04-02 Daniel Jacobowitz <drow@mvista.com>
329
330 * configure.in: Check for __register_frame_info in both
331 -lgcc and -lgcc_eh.
332 * configure: Regenerated.
333
a95ced3e
RM
3342003-04-01 Roland McGrath <roland@redhat.com>
335
336 * scripts/abilist.awk: Allow dots in soname suffix.
337
338 * scripts/abilist.awk (emit): Fix bailout condition.
339
fbb7fc75
UD
3402003-04-01 Jakub Jelinek <jakub@redhat.com>
341
9a197dcc
RM
342 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Use the
343 IA-64 version.
344
fbb7fc75
UD
345 * elf/tls-macros.h [__ia64__] (TLS_IE, TLS_LD, TLS_GD): Add gp
346 register as input to asm.
347
4b1a1328
UD
3482003-04-01 Jakub Jelinek <jakub@redhat.com>
349
350 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (sigevent_t): Fix a typo.
351
73588175
AJ
3522003-04-01 Andreas Jaeger <aj@suse.de>
353
354 * configure.in: Output as/ld as name if version is too old.
355
640f0119
RM
3562003-03-31 Daniel Jacobowitz <drow@mvista.com>
357
358 * configure.in: Don't require an installed C library in the test
359 for ".set" assembler support.
640f0119
RM
360
3612003-03-31 Roland McGrath <roland@redhat.com>
362
363 * signal/tst-sigset.c: New file.
364 * signal/Makefile (tests): Add it.
365
582b54aa
UD
3662003-03-31 Ulrich Drepper <drepper@redhat.com>
367
368 * sysdeps/unix/sysv/linux/alpha/bits/signum.h (_NSIG): Define to 65.
369 * sysdeps/unix/sysv/linux/hppa/bits/signum.h (_NSIG): Likewise.
370 * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Likewise.
371 * sysdeps/unix/sysv/linux/bits/signum.h (_NSIG): Likewise.
372 (__SIGRTMAX): Adjust accordingly.
373 * sysdeps/gnu/siglist.c: If OLD2_SIGLIST_SIZE is defined define
374 second compatibility symbol set.
375 * sysdeps/unix/sysv/linux/siglist.h (OLD2_SIGLIST_SIZE): Define.
376
0c2601fa
AS
3772003-03-31 Andreas Schwab <schwab@suse.de>
378
379 * sysdeps/m68k/m68020/bits/atomic.h (atomic_increment_and_test):
380 Define.
381 (atomic_decrement_and_test): Fix test.
382
0a9d1b3b
RM
3832003-03-31 Jakub Jelinek <jakub@redhat.com>
384
385 * sysdeps/sparc/sparc32/bits/atomic.h: New file.
386 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: New file.
387 * sysdeps/sparc/sparc64/bits/atomic.h: New file.
388 * sysdeps/sparc/sparc32/atomicity.h: Removed.
389 * sysdeps/sparc/sparc32/sparcv9/atomicity.h: Removed.
390 * sysdeps/sparc/sparc64/atomicity.h: Removed.
391
9ec8bbb1
RM
3922003-03-30 Roland McGrath <roland@redhat.com>
393
d692f3f8
RM
394 * scripts/abilist.awk: Grok .opd foo plus .text .foo as "foo F" alone.
395
9ec8bbb1
RM
396 * intl/po2test.sed: Anchor substitution regexps to fix last change.
397
f8278d5d
RM
3982003-03-29 Paolo Bonzini <bonzini@gnu.org>
399
582b54aa
UD
400 * intl/po2test.sed: Unify the transformations for msgid and msgstr
401 and remove a useless s/// command.
f8278d5d 402
266227ab
UD
4032003-03-27 David Mosberger <davidm@hpl.hp.com>
404
405 * sysdeps/ia64/dl-machine.h (RTLD_START): Wrap ".save rp, r0"
406 directive into empty .prologue region to ensure that call-chain
407 is terminated even for the first instruction.
408
409 * sysdeps/ia64/elf/start.S (_start): Use ".save rp, r0" idiom
410 to terminate call-chain right from the get-go.
411
412 * sysdeps/unix/sysv/linux/ia64/fork.S (fork): Remove unnecessary
413 stop bit between compare & branch.
414
ea473bad
UD
4152003-03-29 Ulrich Drepper <drepper@redhat.com>
416
d8592d04
UD
417 * stdlib/strtod.c (INTERNAL): Recognize first digit after decimal
418 point correctly [PR libc/4993].
419
ea473bad
UD
420 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Avoid
421 netlink_open calls if netlink is known to not be available.
422
c7da3ff8
AO
4232003-03-29 Alexandre Oliva <aoliva@redhat.com>
424
e077d10d 425 * configure.in: Add mips64* support.
e077d10d
AO
426 * sysdeps/mips/bits/endian.h: Make it bi-endian.
427 * sysdeps/mips/mipsel/bits/endian.h: Removed.
428 * sysdeps/mips/mips64/n32/el/bits/endian.h: Removed.
429 * sysdeps/mips/mips64/n64/el/bits/endian.h: Removed.
430 * sysdeps/mips/mips32/Makefile (CC): Add -mabi=32.
431 * sysdeps/mips/mips64/n32/Makefile (CC): Add -mabi=n32.
432 * sysdeps/mips/mips64/n64/Makefile (CC): Add -mabi=64.
433 * sysdeps/mips/Implies: Moved wordsize-32 to...
434 * sysdeps/mips/mips32/Implies: New file.
435 * sysdeps/unix/mips/sysdep.h (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO,
436 ret_NOERRNO): New.
437 (ret, PSEUDO_END): Moved past END.
438 (PSEUDO): Moved to...
439 * sysdeps/unix/mips/mips32/sysdep.h: New file.
440 * sysdeps/unix/mips/mips64/n32/sysdep.h: Removed #undef PSEUDO.
441 * sysdeps/unix/mips/mips64/n64/sysdep.h: Likewise.
442 * sysdeps/unix/sysv/linux/mips/sysdep.h: Move to...
443 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: New file.
444 * sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: New file.
445
c7da3ff8
AO
446 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start):
447 Re-introduce ENTRY.
448
e0c09a43
UD
4492003-03-28 Thorsten Kukuk <kukuk@suse.de>
450
451 * sysdeps/unix/sysv/linux/ifaddrs.c: New file.
452 * inet/test-ifaddrs.c: Allow AF_PACKET.
453 * sysdeps/unix/sysv/linux/kernel-features.h: Add
454 __ASSUME_NETLINK_SUPPORT.
455
129422e1
UD
4562003-03-28 Ulrich Drepper <drepper@redhat.com>
457
458 * elf/vismain.c (do_test): Comment out tests which fail in the moment.
459
5972c58b
RM
4602003-03-26 H.J. Lu <hjl@gnu.org>
461
462 * elf/vismod.h (getvarlocal1): Return const char **.
463 (getvarinmod1): Likewise.
464 (getvaritcpt1): Likewise.
465 (getvarlocal2): Likewise.
466 (getvarinmod2): Likewise.
467 (getvaritcpt2): Likewise.
468 (getvaritcpt3): Likewise.
469 * elf/vismain.c (do_test): Adjusted.
470 * elf/vismod1.c (getvarlocal1): Return address.
471 (getvarinmod1): Likewise.
472 (getvaritcpt1): Likewise.
473 * elf/vismod2.c (getvarlocal2): Likewise.
474 (getvarinmod2): Likewise.
475 (getvaritcpt2): Likewise.
476 * elf/vismod3.c (getvaritcpt3): Likewise.
477
7e30918b
RM
4782003-03-28 Roland McGrath <roland@redhat.com>
479
5972c58b
RM
480 * elf/vismain.c (do_test): Print both addresses when they don't match.
481
f0248ca5
RM
482 * scripts/abilist.awk: If given -v filename_regexp and/or -v
483 libname_regexp when parsing names, then produce output only
484 for those matching the given regexps. In combine mode, save all
485 stanzas for a final sorting by stanza header at the end.
486 Emit a blank line between stanzas.
487
7e30918b
RM
488 * scripts/abilist.awk: When given -v combine=1, do parse_names and
489 emit a single output stream with lib name in stanza header lines.
490
491 * scripts/abilist.awk: Emit A for all *ABS* regardless of type.
492
c6acf1e3
RM
4932003-03-27 Roland McGrath <roland@redhat.com>
494
495 * sysdeps/powerpc/bits/atomic.h [! __powerpc64__]
496 (__arch_atomic_decrement_if_positive_64): Fix bogus definition.
497
dd731d53
UD
4982003-03-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
499
500 * sysdeps/sh/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
501 Return old value. Make asm output reg constraint earlyclobber.
502 Renamed from...
503 (__arch_compare_and_exchange_8_acq): ... this.
504 (__arch_compare_and_exchange_val_16_acq):
505 Return old value. Make asm output reg constraint earlyclobber.
506 Renamed from...
507 (__arch_compare_and_exchange_16_acq): ... this.
508 (__arch_compare_and_exchange_val_32_acq):
509 Return old value. Make asm output reg constraint earlyclobber.
510 Renamed from...
511 (__arch_compare_and_exchange_32_acq): ... this.
512 (__arch_compare_and_exchange_val_64_acq):
513 Renamed from...
514 (__arch_compare_and_exchange_64_acq): ... this.
515 (atomic_exchange_and_add): Use local variables and
516 __arch_compare_and_exchange_val_64_acq.
517 (atomic_add): Likewise.
518 (atomic_add_negative, atomic_add_zero): Use local variables.
519
d270cb11
AO
5202003-03-28 Alexandre Oliva <aoliva@redhat.com>
521
3e60b5f2
AO
522 * sysdeps/unix/mips/sysdep.S: Include sys/asm.h.
523
a854f531
UD
5242003-03-27 Ulrich Drepper <drepper@redhat.com>
525
dd731d53 526 * Makefile: Remove libmd5crypt goal.
a854f531 527
41bc895a
RM
5282003-03-25 Jakub Jelinek <jakub@redhat.com>
529
530 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Restore
531 special handling of relocations against local symbols.
532
3171ae99
UD
5332003-03-27 Steven Munroe <sjmunroe@us.ibm.com>
534
535 * sysdeps/powerpc/bits/atomic.h
536 (__arch_compare_and_exchange_bool_32_acq): Move to [!__powerpc64__].
537 [__powerpc64__] (__arch_compare_and_exchange_bool_32_acq):
538 Define PPC64 specific version.
539 [__powerpc64__] (__arch_compare_and_exchange_bool_64_acq):
540 Change (mem) constraint to "b".
541 [__powerpc64__] (__arch_atomic_exchange_and add_64):
542 Replace addi with add. Change (value) contraint to "r".
543 Change (mem) constraint to "b".
544 [__powerpc64__] (__arch_atomic_decrement_if_positive_64): New macro.
545 (__arch_atomic_exchange_32): Change (mem) constraint to "b".
546 (__arch_atomic_exchange_and_add_32): Change (mem) constraint to "b".
547 (__arch_atomic_decrement_if_positive_32): New macro.
548 (atomic_decrement_if_positive): Use __arch* macros.
549
d5527b17
UD
5502003-03-27 Jakub Jelinek <jakub@redhat.com>
551
552 * sysdeps/ia64/fpu/libm-test-ulps: Update.
553
c7356b6d
RM
5542003-03-27 Roland McGrath <roland@redhat.com>
555
556 * scripts/rpm2dynsym.sh: New file.
557 * Makefile (distribute): Add it.
558
28cf3058
UD
5592003-03-27 David Mosberger <davidm@hpl.hp.com>
560
561 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Restore caller's
562 ar.unat before returning. Add missing .mem.offset directives
563 to ensure file gets assembled without warnings.
564 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
565
0d5420ec
UD
5662003-03-27 Jakub Jelinek <jakub@redhat.com>
567
568 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf) <_SC_MONOTONIC_CLOCK>:
569 Return -1 instead of 0 if clock_getres failed.
570
fd54683c
RM
5712003-03-27 Roland McGrath <roland@redhat.com>
572
15a686af
RM
573 * scripts/abilist.awk: If variable `parse_names' is set, grok the file
574 header lines and write out foo.symlist files for each foo.so.NN listed.
575
576 * libio/libioP.h (_IO_wfile_jumps): Remove attribute_hidden.
577 This symbol is exported, and we don't want to hide it.
578 Add libc_hidden_proto instead.
579 (_IO_file_jumps): Add libc_hidden_proto.
580 * libio/wfileops.c (_IO_wfile_jumps): Add libc_hidden_data_def.
581 Remove INTVARDEF.
582 * libio/fileops.c (_IO_file_jumps): Likewise.
583 * libio/stdfiles.c: Don't use INTUSE on them.
584 * libio/iofdopen.c (_IO_new_fdopen): Likewise.
585 * libio/iofopen.c (__fopen_internal): Likewise.
586 * libio/freopen.c (freopen): Likewise.
587 * libio/freopen64.c (freopen64): Likewise.
588 * libio/iovdprintf.c (_IO_vdprintf): Likewise.
589
fd54683c
RM
590 * Makerules (check-abi) [$(enable-check-abi) = warn]:
591 Ignore exit status from diff.
592 * configure.in (enable_check_abi): Document possible value "warn".
593 Change default to no for now.
594 * configure: Regenerated.
595
596 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Emit stub_warning
597 macro calls and a #include <stub-tag.h> at the end.
598 * Makerules ($(objpfx)stubs): Tweak sed commands.
599
600 * sysdeps/unix/sysv/linux/syscalls.list: Use - rather than EXTRA in
601 caller column for *xattr syscalls, since they are in sysdeps/generic.
602
603 * sysdeps/unix/sysv/linux/i386/setfsuid.c: setfsgid -> setfsuid
604 * sysdeps/unix/sysv/linux/i386/setfsgid.c: setfsuid -> setfsgid
605
6062003-03-26 Roland McGrath <roland@redhat.com>
607
608 * Makerules (check-abi-config): Use /thread instead of /tls when
609 use-thread and not just use-tls is set.
610
611 * Makerules (update-abi): Put quotes around $(update-abi-config).
612
613 * elf/Makefile (check-abi): Depend on check-abi-ld.
614 (update-abi): Depend on update-abi-ld.
615
85763515
UD
6162003-03-26 GOTO Masanori <gotom@debian.or.jp>
617
618 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Use INTERNAL_SYSCALL and
619 do not check for errors (unless testing for 32bit variant).
620 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
621
312472fc
RM
6222003-03-27 Philip Blundell <philb@gnu.org>
623
624 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET_NOERRNO): Use
625 unconditional mov. Remove nop.
626
627 * sysdeps/unix/sysv/linux/kernel-features.h
628 (__ASSUME_VFORK_SYSCALL): Define for kernel 2.4 on arm.
629 * sysdeps/unix/sysv/linux/arm/vfork.S: Elide compatibility code
630 when __ASSUME_VFORK_SYSCALL is defined.
631 * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise for
632 __ASSUME_MMAP2_SYSCALL.
633 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise for
634 __ASSUME_REALTIME_SIGNALS.
635
18ef464b
UD
6362003-03-26 Ulrich Drepper <drepper@redhat.com>
637
638 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_COPY): Define to 2
639 only if DL_NO_COPY_RELOCS is not defined.
640 * sysdeps/ia64/dl-lookupcfg.h: Define DL_NO_COPY_RELOCS.
641
04676765
RM
6422003-03-26 Roland McGrath <roland@redhat.com>
643
644 * sysdeps/unix/make-syscalls.sh: When an undefined syscall has
645 SOURCE=-, append its symbol names to make variable unix-stub-syscalls.
646 * sysdeps/unix/Makefile [$(subdir) = misc] [unix-stub-syscalls]
647 (sysdep_routines): Add stub-syscalls.
648 ($(objpfx)stub-syscalls.c): New target.
649 (generated): Add stub-syscalls.c.
650
651 * tls.make.c: Also define use-tls according to USE_TLS macro.
652
11d52c31
UD
6532003-03-26 Ulrich Drepper <drepper@redhat.com>
654
655 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (struct siginfo): Avoid
656 no-op padding element.
657 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
658 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
659 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
660 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
661
6622003-03-26 GOTO Masanori <gotom@debian.or.jp>
663
664 * sysdeps/unix/sysv/linux/i386/getgroups.c: Fix the error
665 condition check for the return value of getgroups32.
666
6672003-03-26 Jakub Jelinek <jakub@redhat.com>
668
669 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_NOERRNO):
670 Fix a typo.
671 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_NOERRNO,
672 PSEUDO_END_NOERRNO): Define.
673 * sysdeps/unix/sysdep.h (PSEUDO_END_NOERRNO): Fix a typo.
674 Define to PSEUDO_END.
675
f064e4c5
UD
6762003-03-26 Ulrich Drepper <drepper@redhat.com>
677
678 * abilist/librt.abilist: Add new timer interfaces for 64-bit archs.
679
bdb6126c
UD
6802003-03-25 Jiro SEKIBA <jir@yamato.ibm.com>
681
682 * iconvdata/euc-tw.c (from_euc_tw): Fix return value of TO_LOOP.
683 * iconvdata/bug-iconv4.c: New file.
684 * iconvdata/Makefile (tests): Add bug-iconv4.
685
697119d6
UD
6862003-03-25 H.J. Lu <hjl@gnu.org>
687
688 * elf/dl-lookup.c (_dl_lookup_symbol): Avoid looking up protected
689 symbols twice.
690 (_dl_lookup_versioned_symbol): Likewise.
691
859e708f
RM
6922003-03-26 Jakub Jelinek <jakub@redhat.com>
693
694 * csu/tst-atomic.c (do_test): Add some new
695 atomic_compare_and_exchange_val_acq, atomic_add_zero,
696 atomic_compare_and_exchange_bool_acq and atomic_add_negative tests.
697 * include/atomic.h (atomic_add_negative, atomic_add_zero):
698 Prefix local variable so that it doesn't clash with the one
699 in atomic_exchange_and_add.
700 * sysdeps/ia64/bits/atomic.h (atomic_exchange): Fix for long/void *
701 pointers.
702 (atomic_exchange_and_add): Implement using __sync_fetch_and_add_?i.
703 * sysdeps/powerpc/bits/atomic.h (atomic_exchange_and_add): Force
704 value into register.
705 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_64_acq):
706 Cast newval to long.
707 * sysdeps/x86_64/bits/atomic.h
708 (__arch_compare_and_exchange_val_64_acq): Cast newval and oldval to
709 long.
710 (atomic_exchange): Cast newvalue to long if sizeof == 8.
711 (atomic_exchange_and_add): Cast value to long if sizeof == 8.
712 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
713 (atomic_bit_set): Shift 1L up in all cases to shut up warnings.
714
dd410d4d
RM
7152003-03-21 Martin Schwidefsky <schwidefskyde.ibm.com>
716
717 * sysdeps/s390/s390-32/backtrace.c (__backtrace): Remove high order
718 bit from backtrace addresses.
719
7202003-03-21 Andreas Schwab <schwab@suse.de>
721
722 * sysdeps/unix/sysv/linux/i386/chown.c: Don't define any versioned
723 __chown symbols.
724
6a1c6a1f
RM
7252003-03-25 Roland McGrath <roland@redhat.com>
726
727 * config.make.in (enable-check-abi): New variable from configure.
728 * configure.in (enable_check_abi): New substituted variable,
729 controlled by --{enable,disable}-check-abi (default yes).
730 * configure: Regenerated.
731 * Makerules [$(enable-check-abi) = yes] (tests): Put this condition
732 on check-abi dependency.
733
fb0216dd
AS
7342003-03-26 Andreas Schwab <schwab@suse.de>
735
9fdf211e
AS
736 * sysdeps/m68k/m68020/bits/atomic.h: Fix typos.
737 * include/atomic.h: Likewise.
738
fb0216dd
AS
739 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Define ret_NOERRNO.
740
7456156f
RM
7412003-03-25 Roland McGrath <roland@redhat.com>
742
743 * sysdeps/powerpc/bits/atomic.h (__arch_atomic_exchange_32): New macro.
744 (__arch_atomic_exchange_64): New macro.
745 (atomic_exchange): Use them.
746 (__arch_atomic_exchange_and_add_32): New macro.
747 (__arch_atomic_exchange_and_add_64): New macro.
748 (atomic_exchange_and_add): Use them.
749 Original patch from Steven Munroe <sjmunroe@us.ibm.com>.
750
1b12060c
AO
7512003-03-25 Alexandre Oliva <aoliva@redhat.com>
752
753 * sysdeps/mips/sgidefs.h (_MIPS_ISA_MIPS32, _MIPS_ISA_MIPS64):
754 Define.
755 * sysdeps/mips/sys/asm.h: Test _MIPS_ISA against them on all
756 ISA tests.
757 (ALSZ, ALMASK, SZREG, REG_S, REG_L): Define based on ABI, not ISA.
758 (PTR_ADD, etc): Test _MIPS_SZPTR instead of _MIPS_SZLONG.
759 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
760 to decide whether to add padding.
761 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
762 to decide whether to add padding.
763 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h (struct
764 old_kernel_sigaction): Likewise.
765
09402f5b
UD
7662003-03-25 Ulrich Drepper <drepper@redhat.com>
767
768 * csu/tst-atomic.c: Adjust tests to what atomic_add_negative and
769 atomic_add_zero were supposed to do.
770 * include/atomic.h: Adjust atomic_add_negative and atomic_add_zero
771 to x86 behavior.
772
773 * sysdeps/generic/bits/typesizes.h (__TIMER_T_TYPE): Define as void*.
774 This matches the new timer implementation.
bacb0296
UD
775 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__TIMER_T_TYPE):
776 Likewise.
777 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__TIMER_T_TYPE):
778 Likewise.
09402f5b
UD
779 * sysdeps/unix/sysv/linux/bits/siginfo.h (struct siginfo): Adjust
780 timer info for what the kernel provides these days.
781 (struct sigevent): Add _tid field.
782 Define SIGEV_THREAD_ID.
42374865
UD
783 Remove struct __pthread_attr_s forward declaration.
784 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Likewise.
785 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
786 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
787 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
09402f5b
UD
788
789 * Versions.def (librt): Add GLIBC_2.3.3.
790
791 * abilist/libpthread.abilist: Update for nptl.
792
5e826ab5
UD
7932003-03-24 Jon Grimm <jgrimm@us.ibm.com>
794
795 * inet/netinet/in.h: Add IPPROTO_SCTP.
796
7972003-03-24 Ulrich Drepper <drepper@redhat.com>
798
799 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLET): Define.
800
c6289757
UD
8012003-03-24 Philip Blundell <philb@gnu.org>
802
803 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL):
804 Remove a1 from clobber list.
805
8062003-03-24 Ulrich Drepper <drepper@redhat.com>
807
808 * timezone/antarctica: Update from tzdata2003a.
809 * timezone/asia: Likewise.
810 * timezone/australasia: Likewise.
811 * timezone/europe: Likewise.
812 * timezone/iso3166.tab: Likewise.
813 * timezone/northamerica: Likewise.
814 * timezone/southamerica: Likewise.
815 * timezone/zone.tab: Likewise.
816
8172003-03-24 Steven Munroe <sjmunroe@us.ibm.com>
818
819 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_END_NOERRNO): Fix typo.
820
9eb88290
UD
8212003-03-23 Ulrich Drepper <drepper@redhat.com>
822
6ea5c103
UD
823 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ret_NOERRNO): Avoid
824 unwanted expansion by definining to ret. Patch by Ian Wienand.
825
9eb88290
UD
826 * sysdeps/unix/make-syscalls.sh: Recognize 'E' in first position of
827 the parameter description to denote no error checking. Generate
828 appropriate pseudo asm code.
829 * sysdeps/unix/syscalls.list: Mark getgid, getpid, getuid with 'E'.
830 * sysdeps/unix/sysv/linux/syscalls.list: Mark getegid, geteuid,
831 getpgrp, and getppid with 'E'.
832 * sysdeps/powerpc/powerpc32/sysdep.h: Define PSEUDO_NOERRNO,
833 PSEUDO_END_NOERRNO, and ret_NOERRNO.
834 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
835 * sysdeps/unix/sysdep.h: Likewise.
836 * sysdeps/unix/alpha/sysdep.h: Likewise.
837 * sysdeps/unix/sparc/sysdep.h: Likewise.
838 * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
839 * sysdeps/unix/sysv/linux/cris/sysdep.h: Likewise.
840 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
841 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
842 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
843 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
844 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
845 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
846 * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
847 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
848 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
849
3045a1fe
RM
8502003-03-23 Roland McGrath <roland@redhat.com>
851
852 * Makeconfig (+includes): Don't use $(last-includes).
853
ad551664
AO
8542003-03-22 Alexandre Oliva <aoliva@redhat.com>
855
856 * sysdeps/unix/sysv/linux/configure.in: Update mips64 patterns.
857 * sysdeps/unix/sysv/linux/configure: Rebuilt.
858
f92abad6
RM
8592003-03-23 Jakub Jelinek <jakub@redhat.com>
860
861 * sysdeps/alpha/fpu/libm-test-ulps: Update.
862 * sysdeps/arm/libm-test-ulps: Update.
863 * sysdeps/hppa/fpu/libm-test-ulps: Update.
864 * sysdeps/ia64/fpu/libm-test-ulps: Update.
865 * sysdeps/mips/fpu/libm-test-ulps: Update.
866 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
867 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
868 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
869 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
870 * sysdeps/sh/sh4/fpu/libm-test-ulps: Update.
871 * sysdeps/s390/fpu/libm-test-ulps: Update.
872 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
873
d15851ec
RM
8742003-03-22 Roland McGrath <roland@redhat.com>
875
fe4610b3
RM
876 * include/atomic.h: Put parens around all macro arguments.
877 (__atomic_val_bysize, __atomic_bool_bysize): New macros.
878 (atomic_compare_and_exchange_val_acq): Use it.
879 (atomic_compare_and_exchange_bool_acq): Likewise.
880 (atomic_increment_and_test): Invert sense of test.
881 (atomic_decrement_and_test): Likewise.
882 * csu/tst-atomic.c: Update those tests to match.
d15851ec
RM
883
8842003-03-22 Jakub Jelinek <jakub@redhat.com>
885
886 * include/atomic.h (atomic_compare_and_exchange_val_acq): Add comment.
887 Don't define if __arch_compare_and_exchange_val_32_acq is not defined.
888 (atomic_compare_and_exchange_bool_acq): Add comment. Don't use
889 __oldval variable in the macro, since it might be macro argument.
890 (atomic_decrement_if_positive): Initialize __memp, remove setting
891 of non-existent variable.
892 (atomic_bit_test_set): Cast 1 to __typeof (*mem) before shifting.
893 * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Implement
894 using atomic_compare_and_exchange_val_acq.
895 (atomic_decrement_if_positive, atomic_bit_test_set): Define.
896 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
897 Renamed from...
898 (__arch_compare_and_exchange_bool_8_acq): ... this.
899 (__arch_compare_and_exchange_val_16_acq): Renamed from...
900 (__arch_compare_and_exchange_bool_16_acq): ... this.
901 (__arch_compare_and_exchange_val_32_acq): Return old value. Renamed
902 from...
903 (__arch_compare_and_exchange_bool_32_acq): ... this.
904 (__arch_compare_and_exchange_val_64_acq): Return old value. Renamed
905 from...
906 (__arch_compare_and_exchange_bool_64_acq): ... this.
907 (__arch_compare_and_exchange_val_32_acq): Use __typeof for local
908 variables types instead of assuming int.
909 Change prefix of local variables to __arch.
910 * sysdeps/generic/bits/atomic.h (arch_compare_and_exchange_acq):
911 Remove.
912 (atomic_compare_and_exchange_val_acq,
913 atomic_compare_and_exchange_bool_acq): Define.
914
915 * csu/tst-atomic.c: New test.
916 * csu/tst-atomic-long.c: New test.
917 * csu/Makefile (tests): Add tst-atomic and tst-atomic-long.
918
919 * malloc/memusagestat.c (main): Kill warning if uint64_t is ulong.
920
921 * sysdeps/s390/Versions: Add trailing newline.
922
923 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Kill warning
924 if INTERNAL_SYSCALL_ERROR_P doesn't use its first argument.
925
faa58057
AS
9262003-03-22 Andreas Schwab <schwab@suse.de>
927
01e694fc
AS
928 * sysdeps/m68k/fpu/libm-test-ulps: Update.
929
faa58057
AS
930 * sysdeps/m68k/m68020/bits/atomic.h: New file.
931 * sysdeps/m68k/m68020/atomicity.h: Removed.
932
039f839c
AO
9332003-03-22 Alexandre Oliva <aoliva@redhat.com>
934
dda8854a
AO
935 * sysdeps/mips/elf/ldsodefs.h: Add mips-specific elf64 relocation
936 data structures and macros. Protect from multiple inclusion.
937
039f839c
AO
938 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Fix harmless
939 typo in #if test.
940
34f8ef1b
AJ
9412003-03-21 Andreas Jaeger <aj@suse.de>
942
943 * sysdeps/i386/fpu/libm-test-ulps: Update.
944
945 * math/libm-test.inc (tgamma_test): Recompute some constants with
946 36 digits precision.
947 (lgamma_test): Likewise.
948 (ccos_test): Likewise.
949 (ccosh_test): Likewise.
950 (clog10_test): Likewise.
951 (csin_test): Likewise.
952 (csinh_test): Likewise.
953 (ctan_test): Likewise.
954 (ctanh_test): Likewise.
955
9562003-03-19 Jakub Jelinek <jakub@redhat.com>
957
958 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Regenerated.
959
4baa087a
RM
9602003-03-21 Roland McGrath <roland@redhat.com>
961
962 * sysdeps/i386/i486/bits/atomic.h (atomic_bit_set): Use "ir"
963 constraint to permit non-constant BIT argument.
964 (atomic_bit_test_set): Likewise.
965 * sysdeps/x86_64/bits/atomic.h (atomic_bit_test_set): Likewise.
966 (atomic_bit_set): Likewise. Use 1UL in case that BIT might be >= 32.
967 For quadword case, use "i" constraint if __builtin_constant_p and < 32
968 or "r" constraint otherwise.
969
970 * configure.in: Move AC_PROG_CC and other program-finding before all
971 the version checks.
972 * configure: Regenerated.
973
8f9fb000
AO
9742003-03-21 Alexandre Oliva <aoliva@redhat.com>
975
976 * sysdeps/mips/mips64/memcpy.S: Fix porting bug that broke
977 unaligned copying of 8-15 bytes. From Chris Demetriou
978 <cgd@broadcom.com>. Fix label names.
979 * sysdeps/mips/mips64/memset.S: Fix label names. Make similar
980 change as to memcpy.S.
981 * sysdeps/mips/memcpy.S: Formatting changes.
982 * sysdeps/mips/memset.S: Likewise.
983
88b3f3ed
RM
9842003-03-21 Roland McGrath <roland@redhat.com>
985
986 * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add trailing semicolon.
987
ee7b7036
AO
9882003-03-21 Alexandre Oliva <aoliva@redhat.com>
989
990 * sysdeps/mips/mips64/memcpy.S, sysdeps/mips/mips64/memset.S: New.
991 * sysdeps/mips/memcpy.S, sysdeps/mips/memset.S: Update comments.
992
a60581ad
RM
9932003-03-21 Roland McGrath <roland@redhat.com>
994
995 * sysdeps/i386/i486/bits/atomic.h
996 (__arch_compare_and_exchange_val_64_acq): Rewrite abort-calling
997 version of the macro to avoid compile-time warnings.
998 [! __PIC__] (__arch_compare_and_exchange_64_acq): Rename to above.
a60581ad
RM
999 (atomic_exchange_and_add, atomic_add): Fix name and usage of it.
1000 (atomic_increment, atomic_decrement): Likewise.
1001
4541b483
UD
10022003-03-21 Ulrich Drepper <drepper@redhat.com>
1003
1004 * sysdeps/x86_64/bits/atomic.h: Don't use matching memory constraints.
1005 * sysdeps/i386/i486/bits/atomic.h: Likewise.
1006
2923c644
RM
10072003-03-21 Roland McGrath <roland@redhat.com>
1008
1009 * include/atomic.h (atomic_compare_and_exchange_bool_acq): Typo fix.
1010
9f07eae2
UD
10112003-03-20 Ulrich Drepper <drepper@redhat.com>
1012
1013 * include/atomic.h: Define atomic_compare_and_exchange_val_acq,
1014 atomic_compare_and_exchange_val_rel,
1015 atomic_compare_and_exchange_bool_acq, and
1016 atomic_compare_and_exchange_bool_rel instead of
1017 atomic_compare_and_exchange_acq and atomic_compare_and_exchange_rel.
1018 * sysdeps/i386/i486/bits/atomic.h: Define
1019 __arch_compare_and_exchange_val_*_acq instead of
1020 __arch_compare_and_exchange_*_acq.
1021 * sysdeps/x86_64/bits/atomic.h: Likewise.
1022 * sysdeps/ia64/bits/atomic.h: Define
1023 __arch_compare_and_exchange_bool_*_acq instead of
1024 __arch_compare_and_exchange_*_acq.
1025 * sysdeps/powerpc/bits/atomic.h: Likewise.
1026 * sysdeps/s390/bits/atomic.h: Likewise.
1027 * gmon/mcount.c: Adjust for new form of compare&exchange macros.
1028 * malloc/set-freeres.c: Likewise.
1029 * nscd/cache.c: Likewise.
1030 * stdlib/cxa_finalize.c: Likewise.
1031 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
1032
4b5e1c5f
AO
10332003-03-20 Alexandre Oliva <aoliva@redhat.com>
1034
d20152e1
AO
1035 * sysdeps/mips/bits/setjmp.h: n32 has only 6 call-saved fpregs.
1036 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Adjust.
1037 * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
1038
4b5e1c5f
AO
1039 * sysdeps/unix/sysv/linux/mips/pread.c: Don't break up offset
1040 into high and low halves on n64.
1041 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
1042 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
1043 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
1044
6848aba6
UD
10452003-03-20 Ulrich Drepper <drepper@redhat.com>
1046
1047 * include/atomic.h (atomic_decrement_if_positive): Adjust for the
1048 correct atomic_compare_and_exchange_acq semantics.
1049
f1f8a9ec
AO
10502003-03-20 Alexandre Oliva <aoliva@redhat.com>
1051
1052 * sysdeps/mips/ieee754.h: Remove excess #endif.
1053
2ff16e04
RM
10542003-03-20 Roland McGrath <roland@redhat.com>
1055
1056 * sysdeps/powerpc/bits/atomic.h (atomic_exchange): Remove unused
1057 variable. Remove superfluous memory clobber.
1058
1059 * include/atomic.h: Syntax braino fix.
1060
1061 * posix/tst-nice.c (do_test): Use %m formats instead of printing errno
1062 in decimal. Don't bail if niced at start. Just check that nice call
1063 bumps the total at all.
1064
53fcb885
AO
10652003-03-20 Alexandre Oliva <aoliva@redhat.com>
1066
1067 * sysdeps/mips/bits/setjmp.h: Store all N32 and N64 registers,
1068 including pc, gp, sp and fp, as long long.
1069 * sysdeps/mips/mips64/setjmp.S: Pass gp to __sigsetjmp_aux.
1070 * sysdeps/mips/mips64/setjmp_aux.c: Adjust type of arguments.
1071 Add gp argument, and set gp in the jmpbuf to it.
1072 * sysdeps/mips/setjmp_aux.c: Revert to o32-only.
1073
f79466a8
UD
10742003-03-20 Ulrich Drepper <drepper@redhat.com>
1075
1076 * include/atomic.h: Define atomic_exchange and
1077 atomic_decrement_if_positive if not already defined. Add some
1078 __builtin_expect.
1079 * sysdeps/i386/i486/bits/atomic.h: Define atomic_exchange.
1080 * sysdeps/x86_64/bits/atomic.h: Likewise.
1081 * sysdeps/ia64/bits/atomic.h: Pretty printing. Define atomic_exchange.
1082 * sysdeps/powerpc/bits/atomic.h: Pretty printing. Define
1083 atomic_exchange, atomic_exchange_and_add, and
1084 atomic_decrement_if_positive
1085
50449bed
AO
10862003-03-20 Alexandre Oliva <aoliva@redhat.com>
1087
bfd49d55
AO
1088 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: Sign-extend
1089 with a single instruction.
1090
50449bed
AO
1091 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Define
1092 properly for n64.
1093 (elf_machine_runtime_setup): Cast link_map pointer to Elf Addr
1094 type.
1095 (elf_machine_rel, elf_machine_rel_relative): Cast symidx to Elf
1096 Word before comparing with gotsym. Take reloc_addr argument as
1097 void*. Remove the code added for the compiler to drop any
1098 alignment assumptions.
1099
4009bf40
UD
11002003-03-19 Ulrich Drepper <drepper@redhat.com>
1101
1102 * Makefile (distribute): Add include/atomic.h and bits/atomic.h.
1103 * include/atomic.h: New file.
1104 * sysdeps/i386/i486/bits/atomic.h: New file.
1105 * sysdeps/x86_64/bits/atomic.h: New file.
1106 * sysdeps/s390/bits/atomic.h: New file.
1107 * sysdeps/sh/bits/atomic.h: New file.
1108 * sysdeps/ia64/bits/atomic.h: New file.
1109 * sysdeps/powerpc/bits/atomic.h: New file.
1110 * sysdeps/generic/bits/atomic.h: New file.
1111 * sysdeps/i386/i486/atomicity.h: Removed.
1112 * sysdeps/x86_64/atomicity.h: Removed.
1113 * sysdeps/s390/s390-32/atomicity.h: Removed.
1114 * sysdeps/s390/s390-64/atomicity.h: Removed.
1115 * sysdeps/ia64/atomicity.h: Removed.
1116 * sysdeps/powerpc/powerpc32/atomicity.h: Removed.
1117 * sysdeps/powerpc/powerpc64/atomicity.h: Removed.
1118 * elf/dl-profile.c: Use atomic.h instead of atomicity.h. Adjust
1119 use of macros from atomicity.h to new names and semantics.
1120 * gmon_mcount.c: Likewise.
1121 * malloc/set-freeres.c: Likewise.
1122 * nscd/cache.c: Likewise.
1123 * stdlib/cxa_finalize.c: Likewise.
1124 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
1125
ce3a4adf
AO
11262003-03-19 Alexandre Oliva <aoliva@redhat.com>
1127
4009bf40 1128 * sysdeps/mips/ieee754.h: New file, suitable to replace both
ce3a4adf
AO
1129 ../ieee754/ieee754.h and ../ieee754/ldbl-128/ieee754.h, kept
1130 mips-specific for now.
1131
8c937b84
UD
11322003-03-19 Ulrich Drepper <drepper@redhat.com>
1133
4009bf40 1134 * stdlib/strtod.c (INTERNAL): While eating trailing zeros handle
85b5767c
UD
1135 hexdigits correctly. Reported by Fred Tydeman <tydeman@tybor.com>.
1136 * stdlib/tst-strtod.c: Add test for the bug.
1137
8c937b84
UD
1138 * posix/tst-nice.c (do_test): Remove invalid of return value.
1139 Don't run test if initial level != 0.
1140
cb8ed941
UD
11412003-03-19 Amos Waterland <apw@us.ibm.com>
1142
1143 * posix/tst-nice.c: New file.
1144 * posix/Makefile (tests): Add tst-nice.
1145
32a448ed
RM
11462003-03-18 Roland McGrath <roland@redhat.com>
1147
94659495
RM
1148 * abilist: New directory of libfoo.abilist files maintained using
1149 scripts/merge-abilist.awk and "make update-abi" rules.
1150 * Makefile (distribute): Add abilist/*.abilist.
1151 * Makerules [$(build-shared) = yes] [$(subdir)] (tests):
1152 Depend on check-abi.
1153
32a448ed
RM
1154 * configure.in: Move $critic_missing check after all AC_CHECK_PROG_VER.
1155 * configure: Regenerated.
1156
1157 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64): Fix name.
1158
dacb2bad
UD
11592003-03-18 Ulrich Drepper <drepper@redhat.com>
1160
1161 * sysdeps/posix/sysconf.c (__sysconf): Handle _SC_MONOTONIC_CLOCK
1162 correctly.
1163
a14b373c
UD
11642003-03-18 Steven Munroe <sjmunroe@us.ibm.com>
1165
1166 * sysdeps/powerpc/powerpc64/memcpy.S: New file.
1167
d5cb8389
UD
11682003-03-18 Ulrich Drepper <drepper@redhat.com>
1169
1170 * Versions.def: Add GLIBC_2.3.3 for libpthread.
1171
97026947
UD
11722003-03-17 Ulrich Drepper <drepper@redhat.com>
1173
1174 * sysdeps/generic/libc-start.c [!SHARED &&
1175 !LIBC_START_MAIN_AUXVEC_ARG]: Compute beginning of auxvec correctly.
1176
98054a05
RM
11772003-03-17 Roland McGrath <roland@redhat.com>
1178
1179 * include/ctype.h: Revert last change.
1180
0a8d8004
UD
11812003-03-17 Ulrich Drepper <drepper@redhat.com>
1182
1183 * argp/tst-argp1.c: Use test-skeleton.c.
1184 * locale/tst-C-locale.c: Likewise.
1185
c27d6848
AO
11862003-03-17 Alexandre Oliva <aoliva@redhat.com>
1187
5a0e429d
AO
1188 * sysdeps/mips/mips64/Implies: Move wordsize-64 to...
1189 * sysdeps/mips/mips64/n64/Implies: New file.
1190 * sysdeps/mips/mips64/n64/Makefile: New file.
1191 * sysdeps/mips/mips64/n64/el/bits/endian.h: New file.
1192 * sysdeps/mips/mips64/n32/Implies: New file.
1193 * sysdeps/mips/mips64/n32/Makefile: New file.
1194 * sysdeps/mips/mips64/n32/el/bits/endian.h: New file.
1195 * sysdeps/unix/mips/mips64/n32/sysdep.h: New file.
1196 * sysdeps/unix/mips/mips64/n64/sysdep.h: New file.
1197 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: New file.
1198 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: New file.
1199 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: New file.
1200 * sysdeps/unix/sysv/linux/mips/mips64/ldconfig.h: New file.
1201 * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: New file.
1202 * sysdeps/unix/sysv/linux/mips/mips64/recv.c: New file.
1203 * sysdeps/unix/sysv/linux/mips/mips64/send.c: New file.
1204 * sysdeps/unix/sysv/linux/mips/mips64/syscall.S: New file.
1205 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: New file.
1206 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: New file.
1207 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: New file.
1208
fc32835a
AO
1209 * sysdeps/unix/sysv/linux/configure.in (libc_cv_slibdir): Use
1210 lib64 for mips64/n64 and lib32 for mips64/n32.
1211 (ldd_rewrite_script): Needed for all mips64 configurations.
1212 * sysdeps/unix/sysv/linux/configure: Rebuilt.
1213 * sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed: New file.
1214 * sysdeps/unix/sysv/linux/mips/mips64/Dist: New file.
1215
c3b519b7
AO
1216 * sysdeps/mips/machine-gmon.h (MCOUNT): Define for N32 and N64 as
1217 well.
1218
c27d6848
AO
1219 * sysdeps/unix/sysv/linux/mips/configure.in: New. Pre-process
1220 asm/unistd.h into asm-unistd.h.
1221 * sysdeps/unix/sysv/linux/mips/configure: Generated.
1222 * sysdeps/unix/sysv/linux/mips/Makefile: Do custom processing
1223 of syscall list.
1224 * sysdeps/unix/sysv/linux/mips/sys/syscall.h: New file.
1225 * sysdeps/unix/sysv/linux/mips/clone.S: Don't include
1226 asm/unistd.h.
1227
935af0f2
AO
1228 * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: New file.
1229 * sysdeps/unix/sysv/linux/mips/ptrace.c: New file. Use long
1230 long type for registers on n32.
1231
4947b4b2
AO
1232 * sysdeps/mips/bits/wordsize.h: New file, appropriate for all
1233 3 ABIs.
1234 * sysdeps/mips/mips64/gmp-mparam.h: New file. Define
1235 BITS_PER_LONGINT to __WORDSIZE, to match all 3 ABIs.
1236 * sysdeps/mips/setjmp_aux.c (STRINGXP, REGS, PTRS): New macros.
1237 (__sigsetjmp_aux): Use them. Adjust for all 3 ABIs.
1238 * sysdeps/mips/elf/start.S: Adjust for all 3 ABIs.
1239 * sysdeps/unix/mips/brk.S: Likewise.
1240 * sysdeps/unix/mips/sysdep.S: Likewise.
1241 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
1242 * sysdeps/mips/bits/setjmp.h (__jmp_buf): Likewise.
1243 * sysdeps/mips/sys/ucontext.h: Likewise.
1244 * sysdeps/unix/sysv/linux/mips/sys/profcs.h: Likewise.
1245 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
1246 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
1247 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
1248 * sysdeps/mips/mips64/bsd-setjmp.S: Likewise.
1249 * sysdeps/mips/mips64/setjmp.S: Likewise.
1250 * sysdeps/mips/mips64/bits/setjmp.h: Deleted, obsolete.
1251 * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Use long long for
1252 64-bit types.
1253
b6e2f87a
UD
12542003-03-16 Ulrich Drepper <drepper@redhat.com>
1255
1256 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Define tv here,
1257 not at function level.
1258 * sysdeps/unix/clock_gettime.c (HANDLE_REALTIME): Likewise.
1259
638bb1f3
RM
12602003-03-15 Roland McGrath <roland@redhat.com>
1261
8112cc70
RM
1262 * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r): int -> size_t
1263 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
1264 * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Likewise.
1265 * nis/nis_table.c (__create_ib_request): Likewise.
1266
eb64f8cb 1267 * posix/fnmatch_loop.c: Add casts for signedness.
addc92bd 1268 * nss/nss_files/files-hosts.c: Likewise.
eb64f8cb
RM
1269 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
1270 * gmon/gmon.c (write_call_graph): Use u_long for FROM_LEN.
1271 * nscd/nscd_getgr_r.c (nscd_getgr_r): Use nscd_ssize_t for CNT.
1272
385cce41
RM
1273 * configure.in (libc_cv_visibility_attribute): Use AC_TRY_COMMAND,
1274 get errors into the log file.
1275 (libc_cv_broken_visibility_attribute): Likewise.
1276 (libc_cv_broken_alias_attribute): Likewise.
1277 (libc_cv_asm_weak_directive): Likewise.
1278 (libc_cv_need_minus_P): Likewise.
1279 (libc_cv_dot_text): Likewise.
1280 (libc_cv_asm_global_directive): Likewise.
1281 (libc_cv_asm_type_prefix): Likewise.
1282 * configure: Regenerated.
1283
638bb1f3
RM
1284 * nscd/cache.c (cache_search): Give first arg type `request_type'.
1285 * nscd/nscd.h: Update decl.
1286
1287 * nscd/nscd_getpw_r.c (nscd_getpw_r): Add casts for signedness.
1288 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
1289 * elf/dl-close.c (_dl_close): Likewise.
1290 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): int -> size_t
1291 * io/fts.c (fts_build): Likewise.
1292 * elf/cache.c (add_to_cache): Likewise.
1293 * locale/programs/locarchive.c (show_archive_content): Likewise.
1294
1295 * posix/fnmatch.c (fnmatch): Tweak __builtin_expect use.
1296
1297 * include/ctype.h (__ctype_b_loc): Tweak type punning to make gcc 3.3
1298 happy.
1299 (__ctype_toupper_loc, __ctype_tolower_loc): Likewise.
1300
c04dad40
UD
13012003-03-15 Ulrich Drepper <drepper@redhat.com>
1302
1303 * sysdeps/unix/sysv/linux/ia64/system.c: Use the generic Linux
1304 code for most parts.
1305
124dcac8
RM
13062003-03-15 Roland McGrath <roland@redhat.com>
1307
7eecc0c2
RM
1308 * sysdeps/unix/sysv/linux/i386/system.c: Moved to ...
1309 * sysdeps/unix/sysv/linux/system.c: ... here.
1310 (FORK): Don't #define if already #define'd.
1311 * sysdeps/unix/sysv/linux/s390/system.c: File removed.
1312 * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]:
1313 (__ASSUME_CLONE_THREAD_FLAGS): Define for kernel >= 2.5.64.
1314
45e4762c
RM
1315 * dlfcn/tst-dlinfo.c: New file.
1316 * dlfcn/Makefile (tests): Add tst-dlinfo.
1317 ($(objpfx)tst-dlinfo): New target.
1318
1319 * dlfcn/dlinfo.c: New file.
1320 * dlfcn/Makefile (libdl-routines): Add it.
1321 * dlfcn/Versions (libdl: GLIBC_2.3.3): Add dlinfo.
1322 * dlfcn/dlfcn.h [__USE_GNU]: Declare dlinfo.
1323 [__USE_GNU] (RTLD_DI_*): New enum constants.
1324 [__USE_GNU] (Dl_serpath, Dl_serinfo): New types.
1325 * elf/dl-load.c (cache_rpath): New inline function.
1326 (_dl_map_object): Use it.
1327 (_dl_rtld_di_serinfo): New function.
1328 * sysdeps/generic/ldsodefs.h: Declare it.
1329 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
1330
124dcac8
RM
1331 * sysdeps/powerpc/elf/libc-start.c (AUX_VECTOR_INIT): Define it.
1332 (LIBC_START_MAIN, LIBC_START_MAIN_AUXVEC_ARG, MAIN_AUXVEC_ARG)
1333 (INIT_MAIN_ARGS): Define, and #include <sysdeps/generic/libc-start.c>.
1334 (__libc_start_main): Just call the generic one for most of the work.
1335
1336 * sysdeps/generic/libc-start.c [LIBC_START_MAIN]: If defined, define a
1337 static function by that name instead of BP_SYM (__libc_start_main).
1338 [LIBC_START_MAIN_AUXVEC_ARG]: Take AUXVEC as argument.
1339 [MAIN_AUXVEC_ARG]: Pass 4th argument to MAIN.
1340 [INIT_MAIN_ARGS]: Give INIT the same args as MAIN.
1341
1342 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_PLATFORM_AUXV]:
1343 Use this macro for extra AT_* cases.
1344 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c (DL_PLATFORM_AUXV):
1345 New macro, guts from ...
1346 (__aux_init_cache): ... here, function removed.
1347 (DL_PLATFORM_INIT): Don't define this.
1348
1349 * sysdeps/powerpc/powerpc32/memset.S: Put __cache_line_size in bss.
1350 * sysdeps/powerpc/powerpc64/memset.S: Likewise.
1351
e993ec9a 1352 * Versions.def (libthread_db): Add GLIBC_2.3.3 set.
124dcac8 1353
39d8c1a2
RM
13542003-03-14 Roland McGrath <roland@redhat.com>
1355
1356 * dlfcn/dlerror.c (dlerror): If objname is "", don't put ": " after it.
1357
c58859ce
RM
13582003-03-14 Jakub Jelinek <jakub@redhat.com>
1359
1360 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Fix a typo.
1361
1362 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
1363 sysdeps/posix/pause.c instead of sysdeps/unix/common/pause.c.
1364
44bc0afb
AO
13652003-03-14 Alexandre Oliva <aoliva@redhat.com>
1366
882dda66
AO
1367 * sysdeps/mips/fpu/bits/mathdef.h: New.
1368 (__NO_LONG_DOUBLE_MATH): Define for o32.
1369
4abdb6ca
AO
1370 * sysdeps/mips/sys/asm.h: Formatting changes.
1371 (PTR, PTRSIZE, PTRLOG): Adjust for all 3 ABIs.
1372 (CPADD): Define for all of them.
1373 (SETUP_GP, SETUP_GPX, SETUP_GPX_L, SAVE_GP, SETUP_GP64,
1374 SETUP_GPX64, SETUP_GPX64_L, RESTORE_GP64, USE_ALT_CP,
1375 NARGSAVE): Define per ABI spec.
1376 (END): Don't redefine.
1377 (LONG_SLL, LONG_SLLV, LONG_SRL, LONG_SRLV, LONG_SRA,
1378 LONG_SRAV): Remove duplicate definitions.
1379 (PTR_ADD, PTR_ADDI, PTR_ADDU, PTR_ADDIU, PTR_SUB, PTR_SUBI,
1380 PTR_SUBU, PTR_SUBIU, PTR_L, PTR_S, PTR_SLL, PTR_SLLV, PTR_SRL,
1381 PTR_SRLV, PTR_SRA, PTR_SRAV, PTR_SCALESHIFT): Define for n32.
1382 (PTR_LA): Define for all 3 ABIs.
1383
365eccdb
AO
1384 * sysdeps/mips/dl-machine.h: Include sys/asm.h.
1385 (elf_machine_matches_host): Prevent linking of o32 and n32
1386 together.
1387 (elf_machine_dynamic): Document assumption on $gp.
1388 (STRINGXP, STRINGXV, STRINGV_): New macros.
1389 (elf_machine_load_address): Use them to stringize PTR_LA and
1390 PTR_SUBU.
1391 (ELF_DL_FRAME_SIZE, ELF_DL_SAVE_ARG_REGS,
1392 ELF_DL_RESTORE_ARG_REGS, IFABIO32): New macros used in...
1393 (_dl_runtime_resolve): Adjust it for all 3 ABIs.
1394 (__dl_runtime_resolve): Cast the symtab initializer to the
1395 right type.
1396 (RTLD_START): Use it. Adjust it for all 3 ABIs.
1397 (elf_machine_rel): Mark as always_inline in RTLD_BOOTSTRAP.
1398 Handle 64-bit R_MIPS_REL composite relocation and accept
1399 R_MIPS_64 relocations to shift addend size to 64 bits.
1400 Document assumption regarding local GOT entries. Document
1401 backward-compatibility departing from the ABI behavior in
1402 applying relocations that reference section symbols, no longer
1403 used. Support relocations to mis-aligned offsets.
1404 * sysdeps/mips/mips64/dl-machine.h: Deleted, obsolete.
1405
d4c803f8
AO
1406 * sysdeps/unix/sysv/linux/mips/readelflib.c: New file.
1407
84c63a76
AO
1408 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h
1409 (_KERNEL_NSIG_BPW): Define in terms of _MIPS_SZLONG.
1410 * sysdeps/unix/sysv/linux/mips/sigaction.c: Define restore and
1411 restore_rt functions. Use them.
1412
44bc0afb
AO
1413 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
1414 .set mips2 on new abis.
1415
564cd8b6
UD
14162003-03-13 Ulrich Drepper <drepper@redhat.com>
1417
1418 * posix/getconf.c: Recognize POSIX2_SYMLINKS.
1419 * sysdeps/generic/bits/confname.h: Define _PC_2_SYMLINKS.
1420 * sysdeps/posix/fpathconf.c: Handle _PC_2_SYMLINKS.
1421 * sysdeps/posix/pathconf.c: Likewise.
1422 * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
1423 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
1424 * sysdeps/unix/sysv/linux/pathconf.h: Define statfs_symlinks.
1425
1426 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define some more magic
1427 words.
1428
3be9dc8e
AO
14292003-03-14 Alexandre Oliva <aoliva@redhat.com>
1430
1431 * include/gmp.h: Include/gmp-mparam.h.
1432 * stdlib/strtod.c: Include gmp-mparam.h before gmp.h and
1433 gmp-impl.h.
1434
a77dcecf
AO
1435 * elf/dl-conflict.c: Don't compile _dl_resolve_conflicts if
1436 ELF_MACHINE_NO_RELA is set.
1437 * elf/rtld.c (dl_main): No prelink support for REL-only.
1438
b5bac573
AO
1439 * sysdeps/generic/ldconfig.h (FLAG_MIPS64_LIBN32,
1440 FLAG_MIPS64_LIBN64): Define.
1441 * elf/cache.c (print_entry): Handle mips64 n32 and n64.
1442
5ace1393
AO
1443 * sysdeps/mips/memcpy.S: Map t0-3 to a4-7 on new abis.
1444 * sysdeps/mips/memset.S: Likewise.
1445 * sysdeps/mips/sys/regdef.h: Alias a4-7 or t0-3 to $8-11
1446 depending on the ABI.
1447
1b12a2cb
AO
1448 * sysdeps/mips/atomicity.h (exchange_and_add, atomic_add):
1449 Don't .set mips2 on new abi.
1450 (compare_and_swap): Likewise. Support 64-bit longs on n64.
1451
264befa8
AO
1452 * stdlib/fpioconst.h: Include gmp.h with angle brackets.
1453
d8a5edc2
RM
14542003-03-13 Roland McGrath <roland@redhat.com>
1455
1456 * elf/dl-load.c (_dl_map_object_from_fd): Bail if no PT_LOAD phdrs
1457 found. Reported by Alexandre Oliva <aoliva@redhat.com>.
1458
14592003-03-13 Alexandre Oliva <aoliva@redhat.com>
1460
1461 * stdio-common/_itoa.c (_itoa_base_table): Make 64-bit
1462 literals long long.
1463 * stdlib/fpioconst.c: Likewise.
1464 * stdlib/strtod.c: Likewise.
1465
1466 * sysdeps/mips/add_n.S: Use L macro for local labels.
1467 * sysdeps/mips/addmul_1.S: Likewise.
1468 * sysdeps/mips/lshift.S: Likewise.
1469 * sysdeps/mips/memcpy.S: Likewise.
1470 * sysdeps/mips/memset.S: Likewise.
1471 * sysdeps/mips/mul_1.S: Likewise.
1472 * sysdeps/mips/rshift.S: Likewise.
1473 * sysdeps/mips/sub_n.S: Likewise.
1474 * sysdeps/mips/submul_1.S: Likewise.
1475 * sysdeps/mips/mips64/add_n.S: Likewise.
1476 * sysdeps/mips/mips64/addmul_1.S: Likewise.
1477 * sysdeps/mips/mips64/lshift.S: Likewise.
1478 * sysdeps/mips/mips64/mul_1.S: Likewise.
1479 * sysdeps/mips/mips64/rshift.S: Likewise.
1480 * sysdeps/mips/mips64/sub_n.S: Likewise.
1481 * sysdeps/mips/mips64/submul_1.S: Likewise.
1482 * sysdeps/unix/mips/sysdep.h: Define L() according to ABI
1483 conventions. Define END as in sys/asm.h.
1484 * sysdeps/unix/mips/sysdep.S: Likewise.
1485 * sysdeps/unix/mips/wait.S: Likewise.
1486 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
1487
1488 * sysdeps/ieee754/dbl-64/dbl2mpn.c (__mpn_extract_double):
1489 Cast shifted values that may be too narrow to mp_limb_t.
1490 * sysdeps/ieee754/dbl-64/mpn2dbl.c (__mpn_construct_double):
1491 Likewise.
1492 * sysdeps/ieee754/flt-32/mpn2flt.c (__mpn_construct_float):
1493 Likewise.
1494 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c
1495 (__mpn_extract_long_double): Likewise.
1496 * sysdeps/ieee754/ldbl-128/mpn2ldbl.c
1497 (__mpn_construct_long_double): Likewise.
1498 * sysdeps/ieee754/ldbl-96/ldbl2mpn.c
1499 (__mpn_extract_long_double): Likewise.
1500 * sysdeps/ieee754/ldbl-96/mpn2ldbl.c
1501 (__mpn_construct_long_double): Likewise.
1502
6461e577
RM
15032003-03-13 Roland McGrath <roland@redhat.com>
1504
1505 * elf/Makefile ($(objpfx)librtld.mk): Tweak regexp so that one-line
1506 entries in the map file match too.
1507
6fde8d53
AJ
15082003-03-13 Guido Guenther <agx@sigxcpu.org>
1509
1510 * sysdeps/unix/sysv/linux/mips/clone.S: introduce and use local
1511 label .Lthread_start since current binutils don't allow branches
1512 to globally visible symbols.
1513
b5ec5617
UD
15142003-03-13 Jakub Jelinek <jakub@redhat.com>
1515
1516 * sysdeps/unix/sysv/linux/ia64/sysdep.h (BREAK_INSN_1, BREAK_INSN,
1517 ASM_OUTARGS_0, ASM_OUTARGS_1, ASM_OUTARGS_2, ASM_OUTARGS_3,
1518 ASM_OUTARGS_4, ASM_OUTARGS_5, ASM_OUTARGS_6): Define.
1519 (INTERNAL_SYSCALL, INLINE_SYSCALL): Use it. Make syscall arguments
1520 clobbered by the syscall.
1521 (ASM_ARGS_1, ASM_ARGS_2, ASM_ARGS_3, ASM_ARGS_4, ASM_ARGS_5,
1522 ASM_ARGS_6): Change constraints from r to index of corresponding
1523 output register.
1524 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Swap
1525 ptid and ctid to match kernel.
1526 * sysdeps/unix/sysv/linux/ia64/system.c (FORK): Likewise.
1527
3cd69852
RM
15282003-03-12 Steven Munroe <sjmunroe@us.ibm.com>
1529
b5ec5617 1530 * sysdeps/powerpc/powerpc64/elf/configure.in: Remove
3cd69852 1531 AC_DEFINE(PI_STATIC_AND_HIDDEN). Not supported for PowerPC64.
b5ec5617 1532 * sysdeps/powerpc/powerpc64/elf/configure: Regenerated.
3cd69852 1533
d63609a7
RM
15342003-03-11 Roland McGrath <roland@redhat.com>
1535
1536 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
1537 Check SYM_MAP rather than SYM as definedness check.
1538 Handle R_PPC64_ADDR32, R_PPC64_ADDR30, and R_PPC64_REL64 relocs.
1539 Don't handle R_PPC64_REL24 reloc.
1540 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
1541
1542 * sysdeps/powerpc/powerpc64/dl-machine.h
1543 [USE_TLS] (elf_machine_type_class): Match all the TLS relocs in a
1544 block, so we cover all the TPREL16* flavors without 6 ||s.
1545 [USE_TLS] (elf_machine_tprel): New function.
1546 (elf_machine_rela) [USE_TLS]: Use elf_machine_tprel for TPREL64 reloc,
1547 and handle TPREL16 relocs too. Return rather than break for DTPREL64.
1548 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
1549
b874af99
UD
15502003-03-11 Ralf Baechle <ralf@linux-mips.org>
1551
1552 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start): Use jal
1553 instead of jalr to invoke subroutine so restoring the $gp register
1554 will work properly.
1555
6c477888
UD
15562003-03-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
1557
1558 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (__NR_pread64): Define
1559 to __NR_pread if not defined.
1560 (__NR_pwrite64): Define to __NR_pwrite if not defined.
1561
f006d3a0
UD
15622003-03-11 Jakub Jelinek <jakub@redhat.com>
1563
1564 * sysdeps/unix/sysv/linux/ia64/system.c: New file.
1565 * sysdeps/unix/sysv/linux/kernel-features.h
1566 (__ASSUME_CLONE_THREAD_FLAGS): Define for IA-64 and s390* with
1567 kernel >= 2.5.64.
1568
b33e6163
RM
15692003-03-11 Jakub Jelinek <jakub@redhat.com>
1570
1571 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): If CNT == 1,
1572 allocate space even for the trailing '/'.
1573 Reported by John Reiser <jreiser@BitWagon.com>.
1574
1575 * sysdeps/unix/sysv/linux/ia64/sysdep.h (LOAD_ARGS_6, ASM_ARGS_6,
1576 ASM_CLOBBERS_6): Define.
1577 (ASM_CLOBBERS_5): Use ASM_CLOBBERS_6.
1578 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Reorder arguments
1579 to match IA-32 order.
1580 * sysdeps/unix/sysv/linux/i386/clone.S: Fix comment.
1581
19afbd2c
RM
15822003-03-10 Steven Munroe <sjmunroe@us.ibm.com>
1583
f006d3a0 1584 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't clobber R7.
19afbd2c
RM
1585 Copy extra params for NPTL to registers used in clone syscall.
1586
ce2290cb
RM
15872003-03-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
1588
1589 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Correct system
1590 call names for pread and pwrite.
1591
e48f9638
RM
15922003-03-10 Roland McGrath <roland@redhat.com>
1593
d38c777e
RM
1594 * dlfcn/Makefile (libdl-routines): Add dladdr1.
1595 * dlfcn/dladdr1.c: New file.
1596 * dlfcn/dlfcn.h [__USE_GNU]: Declare dladdr1.
1597 [__USE_GNU] (RTLD_DL_SYMENT, RTLD_DL_LINKMAP): New enum constants.
1598 * elf/dl-addr.c (_dl_addr): Take new args, a struct link_map ** and
1599 a const ElfNN_Sym ** to fill in.
1600 * include/dlfcn.h: Update decl. Include <link.h>.
1601 * dlfcn/dladdr.c (dladdr): Update caller.
1602 * malloc/mtrace.c (tr_where): Likewise.
1603 * sysdeps/generic/elf/backtracesyms.c: Likewise.
1604 * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
1605 * dlfcn/Versions (libdl: GLIBC_2.3.3): New set, add dladdr1.
1606 * Versions.def (libdl): Define GLIBC_2.3.3 set.
1607
e48f9638
RM
1608 * sysdeps/unix/make-syscalls.sh: Generate $(compile-syscall) for
1609 assembler command.
1610 * sysdeps/unix/Makefile (compile-syscall): New variable.
1611 Pass -g0 to compiler for assembling syscall stubs from stdin.
1612
1613 * sysdeps/i386/sysdep.h [HAVE_CPP_ASM_DEBUGINFO]
1614 (STABS_CURRENT_FILE, STABS_CURRENT_FILE1, STABS_FUN, STABS_FUN_END):
1615 Define these to do nothing.
1616
1617 * configure.in: New check for -g on .S files.
1618 * configure: Regenerated.
1619 * config.make.in (have-cpp-asm-debuginfo): New variable.
1620 * config.h.in (HAVE_CPP_ASM_DEBUGINFO): New #undef.
1621 * Makeconfig (ASFLAGS): New variable, if undefined and
1622 $(have-cpp-asm-debuginfo), take options matching -g% from $(CFLAGS).
1623 * Makerules (compile.S, COMPILE.S): Use $(ASFLAGS).
1624
fcc60e3b
RM
16252003-03-09 Roland McGrath <roland@redhat.com>
1626
1627 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Take 3 new args
1628 used by NPTL on new kernels. From Paul Mackerras <paulus@samba.org>.
1629
e51838c8
UD
16302003-03-09 Ulrich Drepper <drepper@redhat.com>
1631
1632 * po/fi.po: Update from translation team.
8049ef78 1633 * po/ca.po: Likewise.
c37cae9e 1634 * po/da.po: Likewise.
e51838c8 1635
05ae97d8
UD
16362003-03-08 Ulrich Drepper <drepper@redhat.com>
1637
1638 * rt/tst-aio7.c (do_test): Change BYTES into a #define.
1639
b6b9ee9b
UD
16402003-03-07 Ulrich Drepper <drepper@redhat.com>
1641
fcc60e3b 1642 * rt/tst-aio7.c (do_test): Give BUFF permanent extent, too.
35457070 1643
b6b9ee9b
UD
1644 * sysdeps/powerpc/fpu/w_sqrt.c: Fix comment.
1645
6326c93c
RM
16462003-03-07 Roland McGrath <roland@redhat.com>
1647
1648 * sysdeps/s390/s390-32/sysdep.h (L): Use .Lfoo instead of foo.
1649 * sysdeps/s390/s390-64/sysdep.h (L): Likewise.
1650
2090a1d0
AJ
16512003-03-04 Guido Guenther <agx@sigxcpu.org>
1652
1653 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove unneeded
1654 stubs, we have INLINE_SYSCALL.
1655 * sysdeps/unix/sysv/linux/mips/bits/mman.h: Define MAP_POPULATE,
1656 MAP_NONBLOCK.
1657
696efd11
RM
16582003-03-06 Roland McGrath <roland@redhat.com>
1659
1660 * rt/tst-aio7.c (do_test): Revert last change. Instead, give CB1
1661 permanent extent and add a comment about testing its implicit teardown.
1662
f1a56a2b
RM
16632003-03-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
1664
1665 * rt/tst-aio7.c (do_test): Cancel i/o on CB1 before it's out of scope.
1666
49400d0e
UD
16672003-03-05 Ulrich Drepper <drepper@redhat.com>
1668
1669 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Fix
1670 reversed __builtin_expect expectation.
1671
5fc728a2
RM
16722003-03-05 Roland McGrath <roland@redhat.com>
1673
1674 * stdio-common/sscanf.c: Use prototype defn with ... syntax.
1675 * libio/swscanf.c: Likewise.
1676 * libio/swprintf.c: Likewise.
1677
510793fd
RM
16782003-03-04 Roland McGrath <roland@redhat.com>
1679
790eed83
RM
1680 * sysdeps/powerpc/powerpc64/dl-machine.h: Include <dl-tls.h>.
1681 (elf_machine_rela): Always use RESOLVE_MAP, needed for
1682 R_PPC64_JMP_SLOT as well as TLS cases.
1683 (BIT_INSERT): Move parenthesis where it ought to have been.
1684 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
1685
510793fd
RM
1686 * posix/confstr.c (confstr): Correct STRING_LEN values for
1687 _CS_GNU_LIBC_VERSION and _CS_GNU_LIBPTHREAD_VERSION, add missing
1688 break. Reported by Alexandre Julliard <julliard@winehq.com>.
1689
0de28d5c
UD
16902003-03-04 Jakub Jelinek <jakub@redhat.com>
1691
1692 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
1693
269e8af7
UD
16942003-03-04 Ulrich Drepper <drepper@redhat.com>
1695
e2b80a58
UD
1696 * sysdeps/unix/sysv/linux/x86_64/clone.S: Add support for the new
1697 clone parameters.
1698
269e8af7
UD
1699 * po/sv.po: Update from translation team.
1700
330a187b 17012003-03-04 Andreas Jaeger <aj@suse.de>
269e8af7 1702 Ulrich Drepper <drepper@redhat.com>
330a187b
AJ
1703
1704 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Fix comments.
1705
4f6f0a8f
UD
17062003-03-03 Ulrich Drepper <drepper@redhat.com>
1707
cc775edf
UD
1708 * sysdeps/generic/dl-sysdep.h: Add double include protection.
1709
75081542
UD
1710 * po/tr.po: Update from translation team.
1711
6fffb9a2
UD
1712 * elf/dl-load.c (_dl_map_object_from_fd): Determine whether there
1713 are holes between the segments. Only call mprotect to set
1714 proection to PROT_NONE if there are some.
1715
1716 * elf/dl-load.c (struct filebuf): Actually use FILEBUF_SIZE.
1717 Update comment.
1718
4f6f0a8f
UD
1719 * include/sched.h (__clone2): Use ... instead of adding all the
1720 new parameters.
1721
ce78b460
RM
17222003-03-03 Roland McGrath <roland@redhat.com>
1723
868b9d6a
RM
1724 * elf/dl-load.c (struct filebuf): Fix typo in last change.
1725
ce78b460
RM
1726 * sysdeps/powerpc/powerpc32/elf/configure.in: Don't define
1727 PI_STATIC_AND_HIDDEN.
ce78b460 1728
625f22fc
UD
17292003-03-03 Ian Wienand <ianw@gelato.unsw.edu.au>
1730
1731 * sysdeps/unix/sysv/linux/ia64/clone2.S: Update to take extra clone
1732 flags.
1733 * include/sched.h: Update clone2 prototype.
1734
71502ebe
UD
17352003-03-03 Andreas Jaeger <aj@suse.de>
1736
1737 * math/tgmath.h (__TGMATH_UNARY_REAL_RET_ONLY): New definition.
1738 (llrint): Use it to correct return type.
1739 (lrint): Likewise.
1740 (lround): Likewise.
1741 (llround): Likewise.
1742
d15a8404
UD
17432003-03-03 Ulrich Drepper <drepper@redhat.com>
1744
ca97fb53
UD
1745 * elf/dl-load.c (struct filebuf): For 64-bit platforms use 640
1746 byte filebuf size.
1747
1739d268
UD
1748 * libio/fileops.c (_IO_new_file_fopen): Close stillborn descriptor
1749 if ccs parameter isn't valid. Reported by Andreas Schwab.
1750
17512003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
1752
1753 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Add support
1754 for system call numbers > 255.
1755 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.h (DO_CALL,
1756 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
1757 INTERNAL_SYSCALL): Likewise.
1758 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
1759 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.h (DO_CALL,
1760 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
1761 INTERNAL_SYSCALL): Likewise.
1762
17632003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
1764
1765 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Don't free the dtv
1766 array if it is the initial dtv.
1767
17682003-03-03 Ulrich Drepper <drepper@redhat.com>
1769
1770 * po/es.po: Update from translation team.
1771 * po/fr.po: Likewise.
71502ebe 1772 * po/gl.po: Likewise.
1739d268
UD
1773 * po/sk.po: Likewise.
1774 * po/sv.po: Likewise.
1775
d15a8404
UD
1776 * sysdeps/unix/sysv/linux/syscalls.list: Add remap_file_pages entry.
1777 * misc/sys/mman.h: Add prototype for remap_file_pages.
1778 * sysdeps/generic/remap_file_pages.c: New file.
3c531a87 1779 * misc/Makefile (routines): Add remap_file_pages.
a05be180 1780 * misc/Versions [libc:GLIBC_2.3.3]: Add remap_file_pages.
d15a8404
UD
1781
1782 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_POPULATE
1783 and MAP_NONBLOCK.
1784 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
1785 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise
1786 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
1787 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
1788 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
1789 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
1790 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
1791 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
1792
ea6a015b
RM
17932003-03-03 Roland McGrath <roland@redhat.com>
1794
a49f5762
RM
1795 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Revert last change.
1796 * sysdeps/ia64/dl-machine.h: Likewise.
1797 * sysdeps/ia64/dl-symaddr.c (_dl_symbol_address): Remove const from
1798 argument type.
1799 * sysdeps/ia64/dl-lookupcfg.h: Update decl.
1800
1801 * sysdeps/wordsize-64/strtol_l.c (strtoll_l): Define as weak alias.
1802 * sysdeps/wordsize-64/strtoul_l.c (strtoull_l): Define as weak alias.
1803 * locale/Versions (libc: GLIBC_2.3): Move those to ...
1804 * sysdeps/wordsize-32/Versions (libc: GLIBC_2.3): ... here, new file.
1805 * sysdeps/wordsize-64/Versions (libc: GLIBC_2.3.3) Likewise.
1806 * Versions.def (libc): Add GLIBC_2.3.3 set.
1807
ea6a015b
RM
1808 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Add const to MAP arg.
1809 * sysdeps/ia64/dl-machine.h: Update decl.
1810
62584540
AJ
18112003-03-03 Andreas Jaeger <aj@suse.de>
1812
d15a8404 1813 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Add missing brace.
62584540 1814
78c3fb45
RM
18152003-03-02 Roland McGrath <roland@redhat.com>
1816
1817 * scripts/abilist.awk: Reject data items with apparent 0 size.
1818
1819 * scripts/merge-abilist.awk: Restore hack to elide pattern foo.*/bar
1820 after foo.* as if it were a duplicate.
1821
1822 * sysdeps/unix/sysv/linux/ia64/brk.S: Add .type and .size for __curbrk.
1823
885bafa1
UD
18242003-03-02 Ulrich Drepper <drepper@redhat.com>
1825
1be3d664
UD
1826 * elf/dl-load.c (struct filebuf): Reduce buf array to 512 bytes.
1827
885bafa1
UD
1828 * sysdeps/generic/bits/time.h: Define CLOCK_MONOTONIC.
1829 * sysdeps/posix/clock_getres.c: Define code for CLOCK_REALTIME only
1830 if not already defined. Use SYSDEP_GETRES to allow other files to
1831 provide alternative implementations.
1832 * sysdeps/unix/sysv/linux/clock_getres.c: New file
1833 * sysdeps/unix/clock_gettime.c: Define code for CLOCK_REALTIME only
1834 if not already defined. Use SYSDEP_GETTIME to allow other files to
1835 provide alternative implementations.
1836 * sysdeps/unix/sysv/linux/clock_gettime.c: New file.
1837 * sysdeps/unix/clock_settime.c: Define code for CLOCK_REALTIME only
1838 if not already defined. Use SYSDEP_GETTIME to allow other files to
1839 provide alternative implementations.
1840 * sysdeps/unix/sysv/linux/clock_settime.c: New file.
1841 * sysdeps/unix/clock_nanosleep.c: Use SYSDEP_NANOSLEEP to allow
1842 other files to provide alternative implementations. Rearrange
1843 tests for invalid parameters.
1844 * sysdeps/unix/sysv/linux/clock_nanosleep.c: New file.
1845 * sysdeps/unix/sysv/linux/sysconf.c: New file.
1846 * sysdeps/unix/sysv/linux/kernel-features.h: Define
78c3fb45 1847 __ASSUME_POSIX_TIMERS for Linux 2.5.63 and up.
885bafa1
UD
1848 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
1849 _POSIX_MONOTONIC_CLOCK.
1850
bb0ddc2f
RM
18512003-03-02 Roland McGrath <roland@redhat.com>
1852
8f3846a9
RM
1853 * scripts/merge-abilist.awk: More checks for bogus input.
1854 Uniquify duplicate config names.
1855
1856 * scripts/abilist.awk: Don't distinguish weak symbols in normal output.
1857
7551556f
RM
1858 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow): Renamed
1859 from dl_reloc_overflow, make global.
1860 (__process_machine_rela): Update callers.
1861 * sysdeps/powerpc/powerpc32/dl-machine.h: Declare _dl_reloc_overflow.
1862 Add attribute_hidden to __process_machine_rela decl.
1863 (elf_machine_type_class, elf_machine_rela): Handle 16-bit TLS relocs.
1864
3a601d31
RM
1865 * sysdeps/generic/libc-start.c (__libc_start_main): Don't assign const
1866 variable.
1867
bb0ddc2f
RM
1868 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
1869 Don't use weak_extern for dl_rtld_map. Instead check only if [SHARED].
1870 (elf_machine_rela): Clean up.
1871
1872 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Clean up.
1873
1874 PowerPC TLS support contributed by Paul Mackerras <paulus@samba.org>.
1875 * sysdeps/powerpc/powerpc32/elf/configure.in: New file.
1876 * sysdeps/powerpc/powerpc32/elf/configure: New generated file.
1877 * elf/tls-macros.h [__powerpc__ && !__powerpc64__]
1878 (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Define them.
1879 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Support
1880 new relocs for TLS.
1881
1882 * sysdeps/powerpc/dl-tls.h (TLS_TP_OFFSET, TLS_DTV_OFFSET): Move these
1883 macros out of [SHARED].
1884 (TLS_TPREL_VALUE, TLS_DTPREL_VALUE): New macros.
1885
1886 * elf/elf.h: Define R_PPC_* relocs for TLS support.
1887 Clean up R_PPC64_* macro definition comments.
7ed33cba 1888
d1149385
RM
1889 * configure.in: In "running configure fragment for" message,
1890 omit $srcdir from the name if we prepended it.
1891 * configure: Regenerated.
1892
7ed33cba
RM
1893 * elf/dl-reloc.c (allocate_static_tls): Fix calculations.
1894 From Jakub Jelinek <jakub@redhat.com>.
1895
1896 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Revert last change,
1897 which duplicated the O_DIRECT defn.
1898
18992003-03-01 GOTO Masanori <gotom@debian.or.jp>
1900
1901 * stdlib/stdlib.h: Add missing __USE_BSD enclosure for BSD derived
1902 random functions.
1903
4191f43d
AS
19042003-03-01 Andreas Schwab <schwab@suse.de>
1905
7ed33cba
RM
1906 * resolv/Makefile (tests): Don't depend on
1907 $(objpfx)mtrace-tst-leaks when cross compiling.
1908
4191f43d
AS
1909 * sysdeps/m68k/dl-machine.h (_dl_start_user): Access
1910 __libc_stack_end through GOT since it is a global symbol.
1911
85c54a32
UD
19122003-03-01 GOTO Masanori <gotom@debian.or.jp>
1913
1914 * argp/argp.h: Fix a typo.
1915 Reported by H.S.Teoh <hsteoh@quickfur.ath.cx>.
1916
1917 * manual/terminal.texi: Fix cfmakeraw() definition from int to void.
1918
19192003-02-27 Pat Rankin <rankin@pactechdata.com>
1920
1921 * posix/regexec.c (proceed_next_node): Cast re_string_get_buffer to
1922 char *.
1923 (get_subexp): Likewise.
1924
a6861e64
UD
19252003-03-01 GOTO Masanori <gotom@debian.or.jp>
1926
1927 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DIRECT): Define.
1928
19292003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
1930
1931 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_DIRECT): Define.
1932
a6963e69
RM
19332003-02-27 Roland McGrath <roland@redhat.com>
1934
1935 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Remove
1936 special case for dl_rtld_map in R_PPC64_RELATIVE; it's harmless to
1937 repeat it and avoids the test for the common case.
1938 Clean up and fix calculations for TLS relocs.
1939
1940 * sysdeps/powerpc/powerpc64/dl-tls.h: Moved to ...
1941 * sysdeps/powerpc/dl-tls.h: ... here.
1942 (TLS_TP_OFFSET): New macro.
1943
1944 * sunrpc/svc_udp.c (svcudp_recv): Add a cast to last change.
1945
427f5fa1
UD
19462003-02-27 Ulrich Drepper <drepper@redhat.com>
1947
1948 * sysdeps/i386/fpu/libm-test-ulps: Increase ULPs for yn due to
1949 code generation changes in recent gcc.
1950
73a061bb
RM
19512003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
1952
1953 * sysdeps/powerpc/fpu/fpu_control.h (_FPU_GETCW, _FPU_SETCW):
1954 Rename argument to avoid symbol conflict.
1955
1956 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h
1957 [__USE_GNU] (O_DIRECT): New macro.
1958
d2637c70
UD
19592003-02-24 David Mosberger <davidm@hpl.hp.com>
1960
1961 * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Fix
1962 unwind info.
1963
d148ed25
UD
19642003-02-27 Ulrich Drepper <drepper@redhat.com>
1965
e361e438
UD
1966 * resolv/res_libc.c [USE___THREAD] (_res): Don't need the
1967 initializer anymore now that res_thread_freeres is more careful.
1968
d148ed25
UD
1969 * sunrpc/svc_udp.c (svcudp_recv): Remove all control messages
1970 except the PKTINFO. Reset interface in PKTINFO.
dbf6131c 1971 Patch by Neil Brown <neilb@cse.unsw.edu.au> [PR libc/4973].
d148ed25 1972
fec41719
RM
19732003-02-25 Steven Munroe <sjmunroe@us.ibm.com>
1974
d148ed25
UD
1975 * elf/elf.h: Add new R_PPC64_* relocs for TLS.
1976 * elf/tls-macros.h [__powerpc64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
1977 Define.
fec41719
RM
1978 * sysdeps/powerpc/powerpc64/elf/configure.in: New file.
1979 * sysdeps/powerpc/powerpc64/elf/configure: New file (generated).
afafddab
RM
1980 * sysdeps/powerpc/powerpc64/dl-machine.h: Support new TLS relocs.
1981 * sysdeps/powerpc/powerpc64/dl-tls.h: New file.
fec41719 1982
d148ed25 1983 * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
fec41719
RM
1984 Do DL_SYSDEP_OSCHECK here, matching 2002-12-01 change to generic file.
1985
56ce76ea
AJ
19862003-02-25 Andreas Jaeger <aj@suse.de>
1987
1988 * manual/memory.texi (Malloc Tunable Parameters): Clarify
1989 behaviour of M_MMAP_THRESHOLD.
1990
724fad20
RM
19912003-02-25 Roland McGrath <roland@redhat.com>
1992
1993 * resolv/res_init.c (res_thread_freeres): Bail out if _res.nscount is
1994 zero, inidicating _res was not initialized yet.
1995
80d80779
UD
19962003-02-24 Ulrich Drepper <drepper@redhat.com>
1997
1998 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Remove EACCES
1999 test.
2000
81b47a8b
RM
20012003-02-24 Roland McGrath <roland@redhat.com>
2002
2003 * sysdeps/posix/pause.c: Add LIBC_CANCEL_HANDLED.
2004
de217051
RM
20052003-02-23 Roland McGrath <roland@redhat.com>
2006
2007 * sysdeps/posix/pause.c: New file.
2008 * sysdeps/unix/common/pause.c: File removed.
2009
fd1a0d0c
UD
20102003-02-23 Ulrich Drepper <drepper@redhat.com>
2011
cdd8e46f
UD
2012 * sysdeps/generic/bits/confname.h: Remove #ifs.
2013
5a6bbb41
UD
2014 * posix/Makefile (CFLAGS-regex.c): Remove RE_ENABLE_I18N definition.
2015 * posix/regex_internal.h (RE_ENABLE_I18N): Pretty printing.
2016
fd1a0d0c
UD
2017 * resolv/res_libc.c [USE___THREAD] (_res): Initialize _vcsock
2018 element to -1.
2019
249062b0
UD
20202003-02-22 Ulrich Drepper <drepper@redhat.com>
2021
2022 * sysdeps/generic/dl-sysdep.c: Avoid warning.
2023
92cc462c
RM
20242003-02-22 Roland McGrath <roland@redhat.com>
2025
ce84ab61
RM
2026 * resolv/tst-leaks.c: New file by Daniel Jacobowitz <drow@mvista.com>.
2027 * resolv/Makefile (tests): Add tst-leaks.
2028 ($(objpfx)tst-leaks): Depend on $(objpfx)libresolv.so.
2029 (tst-leaks-ENV): New variable.
2030 ($(objpfx)mtrace-tst-leaks): New target.
2031 (tests): Depend on it.
2032
d2d442a5
RM
2033 * include/libc-internal.h: Declare __libc_thread_freeres.
2034
7a0c303e
RM
2035 * Makerules: Fix last change to use $($(subdir)-version) when set.
2036
cc8bfce9
RM
2037 * Makerules (install-lib-nosubdir): Depend on installed
2038 libfoo-X.Y.Z.so and libfoo.so.NN files so they are installed
2039 regardless of the libfoo.so target's dependencies.
2040
92cc462c
RM
2041 * MakeTAGS (sub-make-vars): New variable, includes generating=t.
2042 Use that in $(MAKE) calls.
2043
e57f9f75
UD
20442003-02-22 Ulrich Drepper <drepper@redhat.com>
2045
819c56e7
UD
2046 * catgets/gencat.c (read_input_file): Collision between
2047 auto-assigned numbers and user-defined nubmers is not fatal.
2048 Handle it.
2049 Patch by Michael M. Lampkin <michael.lampkin@ieee.org>.
c780aa21
UD
2050 * catgets/Makefile: Add rules to run test2.msg test.
2051 * catgets/test2.msg: New file.
819c56e7
UD
2052
2053 * catgets/gencat.c (main): Return 1 if messages have been printed.
2054
757f9fcb
UD
2055 * iconv/iconv_prog.c (main): Unify messages.
2056
e57f9f75
UD
2057 * stdlib/strtod.c (INTERNAL): Remove bogus clearing of second word
2058 when shifting retval.
2059 * stdlib/tst-strtod.c (main): Add strtold test case.
2060 Reported by Fred J. Tydeman <tydeman@tybor.com>.
2061
e8783fd5
RM
20622003-02-21 Roland McGrath <roland@redhat.com>
2063
2a3d906e
RM
2064 * malloc/thread-freeres.c: Conditionalize on _LIBC_REENTRANT.
2065 * sunrpc/rpc_thread.c: Likewise for text_set_element use.
2066 (__rpc_thread_destroy): Add it to __libc_subfreeres too.
2067
2068 * include/resolv.h: Add libc_hidden_proto for __res_nclose.
2069 * resolv/res_init.c (__res_nclose): Add libc_hidden_def.
2070 (res_thread_freeres): New function, on __libc_thread_subfreeres and
2071 __libc_subfreeres.
2072
2073 * malloc/Versions (libc: GLIBC_PRIVATE): Add __libc_thread_freeres.
e8783fd5
RM
2074 * malloc/thread-freeres.c: New file.
2075 * malloc/Makefile (aux): Add it.
2a3d906e 2076 * sunrpc/Versions (libc: GLIBC_PRIVATE): Removed.
e8783fd5
RM
2077 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Put in special section
2078 "__libc_thread_freeres_fn" and add to __libc_thread_subfreeres set.
2079
2080 * sysdeps/unix/sysv/linux/i386/geteuid.c (__geteuid): Typo fix.
2081 * sysdeps/unix/sysv/linux/i386/getgid.c (__getgid): Typo fix.
2082
20832003-02-21 Roland McGrath <roland@frob.com>
2084
2085 * sysdeps/mach/hurd/opendir.c (__opendir): Use O_NONBLOCK in open.
2086
2087 * iconvdata/Makefile (tests): Add bug-iconv3 only if
2088 [$(have-thread-library) = yes].
2089
1c848253
UD
20902003-02-21 Ulrich Drepper <drepper@redhat.com>
2091
9c03686d
UD
2092 * sysdeps/unix/sysv/linux/bits/signum.h (__SIGRTMAX): Define as _NSIG.
2093
1c848253
UD
2094 * sysdeps/unix/sysv/linux/i386/getuid.c: Use INTERNAL_SYSCALL and do
2095 not chechk for errors (unless testing for 32bit variant).
2096 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
2097 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
2098 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
2099
6f50cb00
UD
21002003-02-21 Jakub Jelinek <jakub@redhat.com>
2101
2102 * sysdeps/x86_64/dl-machine.h (elf_machine_rela) <R_X86_64_PC32>:
2103 Check for signed overflow, not unsigned.
2104
cef0a48d
UD
2105 * sysdeps/sparc/sparc64/elf/configure.in: New file.
2106 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (sysdep-CFLAGS):
2107 Use -fcall-used-g6, not -fcall-used-g7.
2108
dd3608b9
AJ
21092003-02-21 Andreas Jaeger <aj@suse.de>
2110
2111 * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Fix setting of default
2112 mode.
2113
2114 * sysdeps/x86_64/fpu/fsetexcptflg.c (fesetexceptflag): Do not
2115 clear whole mxcsr but only exceptions.
2116
59fed0e2
RM
21172003-02-21 Roland McGrath <roland@redhat.com>
2118
2119 * Makerules: Filter $(install-lib-ldscripts) out of list of targets
2120 for libfoo.so that need $(make-link) rules.
2121
36f0ccda
RM
21222003-02-21 Roland McGrath <roland@frob.com>
2123
2124 * sysdeps/mach/hurd/bits/typesizes.h (__DEV_T_TYPE): Use __U32_TYPE
2125 to match existing struct stat layout in mig protocols.
2126
ec503662
UD
21272003-02-20 Ulrich Drepper <drepper@redhat.com>
2128
2129 * version.h (VERSION): Bump to 2.3.2.
2130
2131 * elf/Makefile (distribute): Add reldep9.c, tst-array1.exp,
2132 tst-array2.exp, tst-array4.exp, tst-array2dep.c, check-textrel.c,
2133 and dl-sysdep.h.
2134 * sysdeps/generic/Dist: Add sysdep-cancel.h.
2135 * sysdeps/powerpc/nofpu/Dist: Add soft-supp.h.
2136 * sysdeps/unix/Dist: Add s-proto-bp.S and s-proto-cancel.S.
2137 * sysdeps/unix/sysv/linux/Dist: Add pathconf.h.
2138 * sysdeps/unix/sysv/linux/i386/Dist: Add bp-thunk.h.
2139 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add fe_nomask.c and
2140 ucontext_i.h.
2141 * Makefile (distribute): Add include/stubs-prologue.h,
2142 include/gnu/stubs.h, scripts/merge-abilist.awk, and
2143 scripts/extract-abilist.awk.
2144
af57745c
RM
21452003-02-20 Roland McGrath <roland@redhat.com>
2146
2147 * math/Makefile (distribute): Don't add generated files.
2148
6314208a
UD
21492003-02-20 Ulrich Drepper <drepper@redhat.com>
2150
6314208a
UD
2151 * math/Makefile: Rearrange variable definitions slightly to get
2152 definition in the right order.
2153
ab10a294
RM
21542003-02-20 Roland McGrath <roland@redhat.com>
2155
2156 * Makerules: Clean up conditional around include of tls.make.
2157 * Make-dist: Export generating=t to prevent using that.
2158 (+distinfo): Likewise for $(shell $(MAKE) ...) runs.
2159
54e1cabc
UD
21602003-02-20 Ulrich Drepper <drepper@redhat.com>
2161
2162 * inet/rcmd.c (rresvport_af): Avoid using invliad values. Wrap
2163 around in search if port IPPORT_RESERVED/2 has been test.
2164
ec503662 21652002-02-20 Paolo Bonzini <bonzini@gnu.org>
54e1cabc
UD
2166
2167 * posix/regcomp.c: Remove inclusions.
2168 * posix/regexec.c: Likewise.
2169 * posix/regex_internal.c: Likewise.
2170 * posix/regex_internal.h: Add inclusions here.
2171 * posix/regex.c: Only include sys/types.h before regex.h. Include
2172 regex_internal.h here. Include regex_internal.c before regcomp.c
2173 and regexec.c (might expose more opportunities to the C compiler).
2174
2175 * posix/regcomp.c (parse_expression): Fix construct rejected by SGI CC.
2176
2177 * posix/regex_internal.h [!_LIBC] (__mempcpy): Fix typo.
2178 [!_LIBC] (__wcrtomb): New definition.
2179 [!_LIBC]: Conditionalize enabling of I18N on HAVE_WCSCOLL and
2180 HAVE_LOCALE_H as well.
2181
6eb74f33
UD
21822003-02-20 Ulrich Drepper <drepper@redhat.com>
2183
2184 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Remove obsolete
2185 patch to check for system call errors.
2186
05856976
UD
21872002-07-24 Philip Blundell <philb@gnu.org>
2188
2189 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Yield ENODEV
2190 on unknown systems.
2191
21922003-02-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2193
2194 * sysdeps/powerpc/powerpc32/atomicity.h: Remove compiler workaround.
2195 * sysdeps/unix/sysv/linux/kernel-features.h
2196 (__ASSUME_NEW_PRCTL_SYSCALL): Defined for ppc32 too.
2197 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Use prctl
2198 if possible.
2199 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Avoid short
2200 interprocedure branches.
2201 * sysdeps/powerpc/soft-fp/Dist (sim-full.c, fenv_const.c): Move to...
2202 * sysdeps/powerpc/nofpu/Dist: ...here.
2203 * sysdeps/unix/sysv/linux/powerpc/Dist (fe_nomask.c): Move to...
2204 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
2205 * sysdeps/unix/sysv/linux/s390/s390-64/Dist (kernel_stat.h): Delete.
2206 * sysdeps/unix/sysv/linux/sparc/Dist (bits/utmpx.h): Delete.
2207 * sysdeps/unix/sysv/linux/x86_64/Dist (bits/utmpx.h): Delete.
2208
a592f998
UD
22092003-02-18 Alan Modra <amodra@bigpond.net.au>
2210
2211 * sysdeps/powerpc/powerpc32/sysdep.h (HIDDEN_JUMPTARGET): Redefine.
2212
44ed664b
UD
22132003-02-20 Philip Blundell <philb@gnu.org>
2214
2215 * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Add
2216 missing arguments to INTERNAL_SYSCALL_ERROR_P and
2217 INTERNAL_SYSCALL_ERRNO.
2218
ffdcfcb0
UD
22192003-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
2220
2221 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__real_chown): Test
2222 for __ASSUME_32BITUIDS.
2223
4b2ed419
AS
22242003-02-20 Andreas Schwab <schwab@suse.de>
2225
2226 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Add MADV_* and
2227 POSIX_MADV_* constants.
2228
01b28852
UD
22292003-02-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2230
2231 * sysdeps/unix/sysv/linux/sh/pread.c: New file.
2232 * sysdeps/unix/sysv/linux/sh/pread64.c: New file.
2233 * sysdeps/unix/sysv/linux/sh/pwrite.c: New file.
2234 * sysdeps/unix/sysv/linux/sh/pwrite64.c: New file.
2235
a70e514b
UD
22362003-02-19 Jiro Sekiba <jir@yamato.ibm.com>
2237
2238 * iconvdata/utf-16.c (gconv_end): Fix range of low surrogate.
2239
ade67411
RM
22402003-02-16 Roland McGrath <roland@redhat.com>
2241
2242 * signal/signal.h: Include <sys/ucontext.h>, not <ucontext.h>.
2243
1c524710
UD
22442003-02-19 Ulrich Drepper <drepper@redhat.com>
2245
01b28852 2246 * stdlib/strtod.c (INTERNAL): Up the safety margin for cutting off
1c524710 2247 decimal input digits.
b5f7b119 2248 * stdlib/tst-strtod.c (main): Add test for strtof bug.
1c524710 2249
2f7dc594
UD
22502003-02-18 Ulrich Drepper <drepper@redhat.com>
2251
2252 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Recognize
2253 invalid file descriptors and missing access permissions.
2254
46d7e2ba
UD
22552003-02-17 Ulrich Drepper <drepper@redhat.com>
2256
8bd3f184 2257 * nss/getXXbyYY_r.c (REENTRANT_NAME): Return 0 if no entry has
2cfe49db
UD
2258 been found.
2259
46d7e2ba
UD
2260 * sysdeps/posix/sysconf.c (__sysconf): Test for LOGIN_NAME_MAX and
2261 TTY_NAME_MAX and not the _POSIX_* minimal value macros.
2262 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
2263 and LOGIN_NAME_MAX.
2264
b2740a3b
UD
22652003-02-17 Kevin B. Hendricks <kevin.hendricks@sympatico.ca>
2266 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2267
2268 * sysdeps/powerpc/elf/libc-start.c: Handle NONTLS_INIT_TP.
2269 * sysdeps/powerpc/powerpc32/__longjmp.S: Remove R2 handling.
2270 * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
2271 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
2272 * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
2273
81b50572
UD
22742003-02-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2275
2276 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Delete.
2277 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Delete.
2278 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Delete.
2279 * sysdeps/unix/sysv/linux/powerpc/pread.c: Delete.
2280 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Delete.
2281 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Delete.
2282
2283 * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: Move file...
2284 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: ...here.
2285 * sysdeps/unix/sysv/linux/powerpc/glob64.c: Move file...
2286 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
2287
2288 * sysdeps/unix/sysv/linux/tcgetattr.c: Use INLINE_SYSCALL.
2289 * sysdeps/unix/sysv/linux/tcsetattr.c: Likewise.
2290 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Delete.
2291 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Delete.
2292
fdcd8f9c
UD
22932003-02-14 Thorsten Kukuk <kukuk@suse.de>
2294
2295 * nss/getent.c (print_hosts): Print all IP addresses of one host.
2296
7125d3cf
RM
22972003-02-15 Roland McGrath <roland@frob.com>
2298
8321ef15
RM
2299 * sysdeps/mach/hurd/tls.h: New file.
2300 * sysdeps/mach/hurd/i386/tls.h: New file.
2301
b0104b6f
RM
2302 * mach/errsystems.awk: Include <errno.h> in generated output.
2303
7125d3cf
RM
2304 * sysdeps/mach/Makefile (mach-before-compile rule): Pass generating=t,
2305 use target mach-before-compile instead of generated.
2306 (mach-before-compile): New target.
2307 * Makerules: Disable use of tls.make if $(generating) is set.
2308 * mach/Makefile: Include mach-syscalls.mk even if no_deps=t.
2309 * sysdeps/mach/hurd/Makefile: Make generated hurd headers depend on
2310 mach-shortcuts.h so mach/ generation happens before hurd/.
2311
47202270
UD
23122003-02-14 Ulrich Drepper <drepper@redhat.com>
2313
a439bb2f
UD
2314 * sysdeps/i386/fpu/s_nextafterl.c: Decrement high word of mantissa
2315 of demorm correctly if low word is zero.
2316 Reported by Fred J. Tydeman <tydeman@tybor.com>.
757de559
UD
2317 * math/libm-test.inc (nextafter_test): New test, but disabled due
2318 to gcc bug.
a439bb2f 2319
47202270
UD
2320 * sysdeps/generic/libc-start.c [HAVE_PTR_NTHREADS]: Decrement thread
2321 counter and only call __exit_thread if this is not the last thread.
2322
dac0f772
UD
23232003-02-13 Jakub Jelinek <jakub@redhat.com>
2324
2325 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Add instead of
2326 subtracting map->l_tls_offset.
2327
7437cbd1
UD
23282003-02-12 Ulrich Drepper <drepper@redhat.com>
2329
2067577c
UD
2330 * sysdeps/generic/bits/confname.h: Define _CS_GNU_LIBC_VERSION and
2331 _CS_GNU_LIBPTHREAD_VERSION.
2332 * posix/conststr.c: Handle these new values.
2333 * posix/getconf.c: Likewise.
2334
7437cbd1
UD
2335 * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Fix
2336 masking of version index.
2337 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
2338
969c9da7
UD
23392003-02-11 Ulrich Drepper <drepper@redhat.com>
2340
2341 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Compute alignment
2342 correctly. Reported by Thorsten Kukuk.
2343
e5ffa64a
UD
23442003-02-10 Ulrich Drepper <drepper@redhat.com>
2345
2346 * elf/Makefile (check-textrel-CFLAGS): Pass _XOPEN_SOURCE and
2347 _BSD_SOURCE to compiler.
2348 * elf/check-textrel.c (SWAP): Add parenthesis to avoid warnings.
2349 Patches by Alan Modra.
2350
34c86f42
UD
23512003-02-08 Ulrich Drepper <drepper@redhat.com>
2352
2353 * io/ftwtest.c: Get current working directory before and after the
2354 nftw call and make sure they match.
2355
23562003-02-08 Jim Meyering <jim@meyering.net>
2357
2067577c 2358 * io/ftw.c (ftw_startup): When using FTW_CHDIR, always remember
34c86f42
UD
2359 the current directory, not just when DIR contains a slash.
2360 Reported by Manoj Srivastava.
2361
ae9ecd08
UD
23622003-02-07 Jim Meyering <jim@meyering.net>
2363
2364 * io/ftw.c: Add autoconf-recommended block of alloca-related code.
2365 Include autoconf-recommended block of dirent/NAMELEN-related
2366 definitions and includes. Use NAMELEN throughout, rather than
2367 _D_EXACT_NAMLEN.
2368 [_LIBC]: Define NAMELEN to _D_EXACT_NAMLEN.
2369 [!_LIBC] (__getcwd): Define to xgetcwd and declare xgetcwd.
2370 (stpcpy): Declare, if necessary.
2371 (mempcpy): Define, if necessary.
2372 [!_LIBC] (__stpcpy, __mempcpy): Define.
2373 [!_LIBC] (LXSTAT, XSTAT): Define.
2374 (lstat) [!LIBC && !LSTAT_FOLLOWS_SLASHED_SYMLINK]: Define to rpl_lstat.
2375 (find_object): Don't use c99-style struct initializer.
2376 Tweak wording in a couple comments.
2377
2a051a7d
UD
23782003-02-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2379
2380 * elf/tls-macros.h: Add non-PIC TLS macros and fix clobber list
2381 for SH.
2382 * sysdeps/unix/sysv/linux/sh/brk.c: Add SYSCALL_INST_PAD
2383 after the trapa instruction.
2384 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Add additional
2385 parameters.
2386 * sysdeps/unix/sysv/linux/sh/sh4/sysdep.h: New file.
2387 (NEED_SYSCALL_INST_PAD): Define.
2388 * sysdeps/unix/sysv/linux/sh/sys/user.h (start_thread): Undef to
2389 avoid to use definition for the kernel.
2390 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
2391 Save and restore the frame pointer.
2392 (SYSCALL_INST_PAD): Define.
2393 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
2394 (INTERNAL_SYSCALL): Make use of ERR parameter. Add SYSCALL_INST_PAD
2395 after trapa instruction.
2396 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
2397 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
2398
1f503475
UD
23992003-02-07 Jakub Jelinek <jakub@redhat.com>
2400
2401 * resolv/res_libc.c (_res): Ensure _res is not common symbol,
2402 so that it can have aliases.
2403 * inet/herrno.c (h_errno): Put it into .bss not .data section.
2404
eecc378c
UD
24052003-02-07 Ulrich Drepper <drepper@redhat.com>
2406
2407 * elf/dl-runtime.c (fixup): Correct typo in version index computation.
2408 (profile_fixup): Likewise.
1f503475 2409 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
eecc378c 2410
ce96c93d
UD
24112002-11-24 Robert Love <rml@tech9.net>
2412
2413 * posix/sched.h: Second parameter of sched_setaffinity and
2414 sched_getaffinity is `unsigned int', not `unsigned long'.
2415 * sysdeps/generic/sched_setaffinity.c: Likewise.
2416 * sysdeps/generic/sched_getaffinity.c: Likewise.
2417
e0f86659
UD
24182003-02-05 Ulrich Drepper <drepper@redhat.com>
2419
432cf458 2420 * debug/catchsegv.sh: Fix typo in error messsage.
ce96c93d 2421 Reported by John Levon <levon@movementarian.org>.
432cf458 2422
5cd09cd6
UD
2423 * sysdeps/unix/sysv/linux/posix_fadvise.c: New file.
2424 * sysdeps/unix/sysv/linux/syscalls.list: Add posix_fadvise64 syscall.
2425 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
2426 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2427 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
2428 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2429 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2430
e0f86659
UD
2431 * libio/putwc_u.c: Use _IO_putwc_unlocked, not _IO_putc_unlocked.
2432 Patch by Moritz Schulte <moritz@duesseldorf.ccc.de>.
2433
5049f197
UD
24342003-02-05 Jim Meyering <jim@meyering.net>
2435
2436 Fix a heap-corrupting bug.
2437 * io/ftw.c: Include <limits.h>.
2438 (PATH_MAX) [!defined PATH_MAX]: Define to 1024.
2439 (process_entry): Allocate enough space to hold the resulting
2440 file name. Don't presume that 2*dirbufsize is enough.
2441 (ftw_startup): Always use PATH_MAX to compute buffer size, now that
2442 it is guaranteed to be defined.
2443
6f1cff95
UD
24442003-02-04 Ulrich Drepper <drepper@redhat.com>
2445
2446 * iconvdata/Makefile: Add rules to build and run bug-iconv3.
2447 * iconvdata/bug-iconv3.c: New file.
2448
b33b0d0d
UD
24492003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com>
2450
2451 * sysdeps/unix/sysv/linux/s390/system.c: New file.
2452
6900ded2
UD
24532003-02-03 Jakub Jelinek <jakub@redhat.com>
2454
2455 * sysdeps/sparc/sparc32/elf/configure.in (BROKEN_SPARC_WDISP22): New
2456 check.
2457 * config.h.in (BROKEN_SPARC_WDISP22): Add.
2458
663684b2
UD
24592003-02-03 Ulrich Drepper <drepper@redhat.com>
2460
2461 * sysdeps/i386/i686/memmove.S: New file.
2462
3e4fc359
UD
24632003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
2464
2465 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c:
2466 Include kernel-features.h
2467 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
2468 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
2469 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
2470 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
2471
75dec09e
UD
24722003-02-02 Jakub Jelinek <jakub@redhat.com>
2473
2474 * elf/tls-macros.h [sparc] (TLS_LD, TLS_GD): Add "cc" clobbers.
2475
78e88510
UD
24762003-01-25 Jim Meyering <jim@meyering.net>
2477
2478 * io/ftw.c (object_compare): Compare inode numbers before device
2479 numbers, since the former are much more likely to differ.
2480
38e68573
UD
24812003-02-01 Ulrich Drepper <drepper@redhat.com>
2482
2483 * time/tzfile.c (__tzfile_compute): Change return value type to
2484 void. Adjust return statements.
2485 * include/time.h (__tzfile_compute): Adjust prototype.
2486
24872003-02-01 Jim Meyering <jim@meyering.net>
2488
2489 * time/tzset.c (__tz_convert): Remove dead code; __tzfile_compute
2490 always returns 1.
2491
24922003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
2493
2494 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
2495 [!__ASSUME_NEW_PRCTL_SYSCALL]: Noop prctl syscall and set ENOSYS.
2496
24972003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
2498
2499 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
2500 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Generate ENOSYS stub.
2501 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
2502 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
2503 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
2504 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
2505 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
2506 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
2507
25082003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
2509
2510 * sysdeps/unix/sysv/linux/configure.in: Change arch_minimum_kernel
2511 back to 2.4.19 for powerpc64.
2512 * sysdeps/unix/sysv/linux/kernel-features.h
2513 (__ASSUME_NEW_PRCTL_SYSCALL): Define for powerpc64.
2514 (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Define for powerpc64.
2515
25162003-02-01 Ulrich Drepper <drepper@redhat.com>
2517
2518 * wcsmbs/wcscpy.c (wcscpy): Add alternative implementation for
2519 platforms with strange alignment requirements on wchar_t.
2520
b67fcc1e
UD
25212003-01-31 Andreas Schwab <schwab@suse.de>
2522
2523 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove __GI_*
2524 aliases, already added by make-syscalls.sh.
2525 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2526 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
2527 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
2528 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2529 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2530 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2531 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
2532 * sysdeps/unix/inet/syscalls.list: Likewise.
2533 * sysdeps/unix/syscalls.list: Likewise.
2534
fb784fd5
AS
25352003-01-31 Andreas Schwab <schwab@suse.de>
2536
2537 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Don't define, not needed
2538 any more.
2539
c4c1336c
UD
25402003-01-30 Jakub Jelinek <jakub@redhat.com>
2541
2542 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Use lg,
2543 not l to load tls from stack.
2544
d6f5e721
RM
25452003-01-30 Roland McGrath <roland@redhat.com>
2546
2547 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Move check for
2548 null argument before all else.
2549 Reported by Martin Schwidefsky <schwidefsky@de.ibm.com>.
2550
7ba7c829
UD
25512003-01-30 Jakub Jelinek <jakub@redhat.com>
2552
2553 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_lazy_rel):
2554 Move to RESOLVE protected part of the header.
2555 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_lazy_rel):
2556 Likewise.
2557
25582003-01-30 Ulrich Drepper <drepper@redhat.com>
2559
2560 * stdio-common/Makefile (tests): Add bug15.
2561 (bug15-ENV): Define.
2562 * stdio-common/bug15.c: New file.
2563
886d5973
UD
25642002-10-07 Wolfram Gloger <wg@malloc.de>
2565
2566 * malloc/malloc.c (sYSMALLOc): Only check for breakage due
2567 to foreign sbrk()'s if arena is contiguous. Bug report from
2568 Bruno Haible <bruno@clisp.org>.
2569
25702003-01-30 Jakub Jelinek <jakub@redhat.com>
2571
2572 * sysdeps/s390/libc-tls.c: Include stdlib.h.
2573
25742003-01-30 Jakub Jelinek <jakub@redhat.com>
2575
2576 * stdio-common/vfprintf.c (vfprintf): Only subtract lowest 3 bits of
2577 ps.__count.
2578
25792003-01-30 Ulrich Drepper <drepper@redhat.com>
2580
2581 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Fix storing and
2582 restoring of %r6.
2583 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise. Use
2584 64-bit load.
2585 Patch by Martin Schwidefsky <schwidefsky@de.ibm.com>.
2586
25872003-01-30 Jakub Jelinek <jakub@redhat.com>
2588
2589 * elf/dl-reloc.c (CHECK_STATIC_TLS): Move _dl_signal_error...
2590 (allocate_static_tls): ...here. Add __attribute_noinline__.
2591 Don't return on failure.
2592 (_dl_reloc_bad_type): Add __attribute_noinline__.
2593 * elf/do-rel.h (elf_dynamic_do_rel): Add
2594 __attribute__((always_inline)).
2595 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
2596 elf_machine_rel_relative, elf_machine_rela_relative,
2597 elf_machine_lazy_rel): Add prototypes with
2598 __attribute__((always_inline)).
2599
26002003-01-29 David Mosberger <davidm@hpl.hp.com>
2601
2602 * elf/dl-support.c (_dl_aux_init): Handle AT_SYSINFO.
2603
871afd6b
RM
26042003-01-29 Roland McGrath <roland@redhat.com>
2605
2606 * configure.in: Barf if configured in $srcdir.
871afd6b 2607
1e49399d
UD
26082003-01-28 Steven Munroe <sjmunroe@us.ibm.com>
2609
2610 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
1e2f8718 2611 (__fe_nomask_env): Change __prctl call to INTERNAL_SYSCALL.
1e49399d 2612
db34912e
UD
26132003-01-28 Martin Schwidefsky <schwidefsky@de.ibm.com>
2614
2615 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Reorder additional
2616 clone parameters to match the order used on ia32.
2617 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
2618
e6ebd2e4
UD
26192003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
2620
2621 * elf/elf.h: Add new s390 relocs.
2622 * elf/tls-macros.h: Add s390 versions.
2623 * sysdeps/s390/Versions [GLIBC_2.3] (ld): Export __tls_get_offset.
2624 * sysdeps/s390/dl-tls.h: New file.
2625 * sysdeps/s390/libc-tls.c: New file.
2626 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class): Add TLS
2627 relocs for class PLT.
2628 (elf_machine_rela): Handle TLS relocs.
2629 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
2630 * sysdeps/s390/s390-32/elf/configure.in: Add TLS check.
2631 * sysdeps/s390/s390-64/elf/configure.in: Likewise.
2632 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Add support for
2633 CLONE_CHILD_*TID flags.
2634 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
2635 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Use branch with 32
2636 bit offset.
2637 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
2638 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
2639 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
2640 Support USE___THREAD. Define RTLD_PRIVATE_ERRNO variant.
2641 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
2642 Likewise.
2643 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
2644 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER.
2645 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
2646 variants.
2647 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h:
2648 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER. Use
2649 direct branch to syscall_error for !PIC and PIC && !_LIBC_REENTRANT.
2650 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
2651 variants.
2652
772e3426
UD
26532003-01-28 Ulrich Drepper <drepper@redhat.com>
2654
2655 * sysdeps/unix/common/pause.c (do_pause): New function. Split
2656 from __libc_pause. Implement using sigsuspend.
2657 (__libc_pause): Call do_pause to do the real work.
2658
2659 * sysdeps/posix/sigpause.c (do_sigpause): Check range of
2660 sig_or_mask parameter is is_sig != 0.
2661
0566b130
UD
26622003-01-21 Philip Blundell <philb@gnu.org>
2663
2664 * sysdeps/unix/sysv/linux/bits/ioctls.h (SIOCSIFNAME): Define.
2665
a15698cb
UD
26662003-01-27 Steven Munroe <sjmunroe@us.ibm.com>
2667
2668 * stdio-common/Makefile: Add bug14-ENV to set LOCPATH for make check.
2669
b7e033f7
UD
26702003-01-27 Ulrich Drepper <drepper@redhat.com>
2671
e6fb8846
UD
2672 * stdio-common/bug14.c: Use official name for the locale.
2673
1fc46908
UD
2674 * stdio-common/vfprintf.c [USE_IN_LIBIO]: Use _IO_cleanup_region_start
2675 instead of __libc_cleanup_region_start and _IO_cleanup_region_end
2676 instead of __libc_cleanup_region_end.
2677
2678 * sysdeps/unix/sysv/linux/i386/system.c (CLEANUP_HANDLER): Pass 1
2679 as first parameter to __libc_cleanup_region_start.
2680
68ff8426
UD
2681 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
2682 (__fe_nomask_env): Use __prctl not prctl.
2683 * sysdeps/unix/sysv/linux/syscalls.list: Add __prctl alias for
2684 prctl syscall.
2685
809cd222
UD
2686 * elf/dl-reloc.c (CHECK_STATIC_TLS): Improve error message.
2687
2688 * elf/dl-open.c (_dl_tls_static_size): Bump to 2048.
2689
b7e033f7
UD
2690 * elf/dl-reloc.c (allocate_static_tls): Avoid arithmetic
2691 wrap-around in test.
2692
62f29da7
UD
26932003-01-26 Andreas Schwab <schwab@suse.de>
2694
2695 * sysdeps/wordsize-32/divdi3.c: Export the functions only as
2696 compatibility symbols. Remove INTDEF for __divdi3.
2697 * sysdeps/wordsize-32/lldiv.c: Don't use __divdi3_internal.
2698 * sysdeps/powerpc/powerpc32/divdi3.c: Remove.
2699 * sysdeps/powerpc/powerpc32/Makefile (CPPFLAGS-divdi3.c): Don't
2700 define.
2701 * sysdeps/powerpc/powerpc32/Dist: Remove divdi3.c.
2702
27032003-01-24 Jakub Jelinek <jakub@redhat.com>
2704
2705 * elf/tls-macros.h: Add SPARC 32-bit definitions.
2706 * sysdeps/sparc/sparc32/elf/configure.in: Add TLS check.
2707 * sysdeps/sparc/sparc32/dl-machine.h: Add dl_machine_h guards
2708 for the first half of the header. Include tls.h.
2709 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS
2710 relocs too.
2711 (elf_machine_rela): Handle TLS relocs.
2712 * sysdeps/sparc/dl-tls.h: New file.
2713
2714 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Add cancellation
2715 support.
2716
2717 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Use %g6 instead of %g7.
2718 * sysdeps/sparc/sparc32/memchr.S: Likewise.
2719 * sysdeps/sparc/sparc32/memcpy.S: Likewise.
2720 * sysdeps/sparc/sparc32/strcat.S: Likewise.
2721 * sysdeps/sparc/sparc32/strchr.S: Likewise.
2722 * sysdeps/sparc/sparc32/strcmp.S: Likewise.
2723 * sysdeps/sparc/sparc32/strcpy.S: Likewise.
2724 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
2725 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
2726 * sysdeps/sparc/sparc64/memcpy.S: Likewise.
2727 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
2728 * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
2729 * sysdeps/sparc/sparc64/strcat.S: Likewise.
2730 * sysdeps/sparc/sparc64/strchr.S: Likewise.
2731 * sysdeps/sparc/sparc64/strcmp.S: Likewise.
2732 * sysdeps/sparc/sparc64/strcpy.S: Likewise.
2733 * sysdeps/sparc/sparc64/strncmp.S: Likewise.
2734 * sysdeps/sparc/sparc64/strncpy.S: Likewise.
2735 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
2736 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
2737
27382003-01-24 Andreas Schwab <schwab@suse.de>
2739
2740 * elf/dl-close.c (_dl_close): Don't relocate DT_FINI_ARRAY
2741 elements, and process them backwards.
2742 * elf/Makefile ($(objpfx)tst-array4): New target.
2743 ($(objpfx)tst-array4.out): Likewise.
2744 (tests) [$(have-initfini-array) = yes]: Add tst-array4.
2745 * elf/tst-array4.c: New file.
2746 * elf/tst-array4.exp: Likewise.
2747
27482003-01-24 Steven Munroe <sjmunroe@us.ibm.com>
2749
2750 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: New file.
2751
27522003-01-27 Guido Guenther <agx@sigxcpu.org>
2753
2754 * sysdeps/unix/sysv/linux/mips/sysdep.h (SYSCALL_ERROR_LABEL): Define.
2755 * sysdeps/unix/sysv/linux/mips/pread.c: Add support for
2756 cancellation handling and handle both __NR_pread64 and __NR_pread.
2757 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
2758 * sysdeps/unix/sysv/linux/mips/pwrite.c: Add support for
2759 cancellation handling and handle both __NR_pwrite64 and __NR_pwrite.
2760 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
2761 * sysdeps/unix/mips/sysdep.S: Don't set errno in the _LIBC_REENTRANT
2762 case, use register names consistently.
2763
27642003-01-27 Wolfram Gloger <wg@malloc.de>
2765
2766 * malloc/hooks.c (mem2chunk_check): Check alignment of mem
2767 pointer, not of the computed chunk. Bug report from Carlos
2768 O'Donell <carlos@baldric.uwo.ca>.
2769
251c0f71
AS
27702003-01-25 Andreas Schwab <schwab@suse.de>
2771
2772 * sysdeps/m68k/dl-machine.h (_dl_start_user): Use pc-relative
2773 addressing to save GOT entries.
2774
86dfa4eb
RM
27752003-01-21 Jakub Jelinek <jakub@redhat.com>
2776
2777 * sysdeps/unix/alpha/sysdep.h (inline_syscall0,
2778 inline_syscall1, inline_syscall2, inline_syscall3,
2779 inline_syscall4, inline_syscall5, inline_syscall6): Add __volatile__.
2780 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INTERNAL_SYSCALL): Add
2781 __attribute__((unused)) to ChEcK.
2782
d5b6c817
UD
27832003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
2784
2785 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL):
2786 Fix inline assembler constraints.
2787 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL):
2788 Likewise.
2789
2790 * sysdeps/s390/s390-64/Makefile (pic-ccflag): Use -fpic instead of
2791 -fPIC.
2792
83c9a671
RM
27932003-01-20 Segher Boessenkool <segher@koffie.nl>
2794
2795 * sysdeps/ieee754/dbl-64/sincos32.c (__mpcos): Really
2796 compute the cosine, not the sine, even if x > 0.8.
2797
b677d674
UD
27982003-01-19 Ulrich Drepper <drepper@redhat.com>
2799
2800 * nis/nss_nis/nis-spwd.c: Make _nss_nis_endspent an alias of
2801 _nss_nis_setspent. Work around the different prototypes.
2802 * nis/nss_nis/nis-rpc.c (internal_nis_setrpcent): Use
2803 internal_nis_endrpcent.
2804 (internal_nis_endrpcent): Change return type to void. Change callers.
2805 * nis/nss_nis/nis-pwd.c: Make _nss_nis_endpwent an alias of
2806 _nss_nis_setpwent. Work around the different prototypes.
2807 * nis/nss_nis/nis-proto.c (_nss_nis_endprotoent): Split out body
2808 of the function to...
2809 (internal_nis_endprotoent): ... here. New function.
2810 (internal_nis_setprotoent): Use internal_nis_endprotoent.
2811 * nis/nss_nis/nis-network.c: Make _nss_nis_endnetent an alias of
2812 _nss_nis_setnetent. Work around the different prototypes.
2813 * nis/nss_nis/nis-netgrp.c (_nss_nis_endnetgrent): Split out body
2814 of the function to...
2815 (internal_nis_endnetgrent): ... here. New function.
2816 (_nss_nis_setnetgrent): Use internal_nis_endnetgrent.
2817
978bd143
UD
28182003-01-19 Jim Meyering <jim@meyering.net>
2819
2820 * time/strftime.c: (widen): Merge nearly-identical definitions.
2821 (nl_get_alt_digit) [! defined my_strftime]: Define.
2822 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
2823 _nl_get_alt_digit and _nl_get_walt_digit.
2824
b1a173f7
UD
28252003-01-19 Ulrich Drepper <drepper@redhat.com>
2826
2827 * time/strftime.c (my_strftime): Handle very large width
2828 specifications for numeric values correctly. Improve checks for
2829 overflow.
2830 * time/Makefile (tests): Add tst-strftime.
2831 * time/tst-strftime.c: New file.
2832
039c1b75
UD
28332003-01-18 Ulrich Drepper <drepper@redhat.com>
2834
6675b191
UD
2835 * nis/nss_nis/nis-hosts.c: Make _nss_nis_endhostent an alias of
2836 _nss_nis_sethostent. Work around the different prototypes.
2837 * nis/nss_nis/nis-grp.c: Make _nss_nis_endgrent an alias of
2838 _nss_nis_setgrent. Work around the different prototypes.
2839 * nis/nss_nis/nis-ethers.c (internal_nis_endetherent): New
2840 function. Split out from _nss_nis_endetherent.
2841 (internal_nis_setetherent): Use internal_nis_endetherent instead of
2842 duplicating the code.
2843 * nis/nss_nis/nis-alias.c: Make _nss_nss_nis_endaliasent an alias
2844 of _nss_nis_setaliasent.
2845 * nis/nss_nis/nis-service.c (internal_nis_setservent): Reuse
2846 internal_nis_endservent code, don't duplicate it.
2847
039c1b75
UD
2848 * inet/rexec.c (rexec_af): Protect socket operations with
2849 TEMP_FAILURE_RETRY. Use writev instead of multiple write.
2850 * inet/rcmd.c (rcmd_af): Likewise.
2851
62431425
RM
28522003-01-17 Roland McGrath <roland@redhat.com>
2853
d32e4346
RM
2854 * math/libm-test.inc (sin_test, cos_test, sincos_test) [TEST_DOUBLE]:
2855 Add test of value 0.80190127184058835.
2856
62431425
RM
2857 * elf/dl-open.c: Fix typo ifdef -> ifndef on _dl_tls_static_size defn.
2858
0f0b7994
UD
28592003-01-17 Richard Henderson <rth@redhat.com>
2860
2861 * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Add TLS
2862 relocs for class PLT.
2863 * sysdeps/alpha/libc-tls.c: New file.
2864 * sysdeps/unix/alpha/sysdep.S (EPILOGUE, GPSAVEREG): New.
2865 (LOADGP) [!PIC]: Rewrite to preserve caller's gp.
2866
28672003-01-17 Jakub Jelinek <jakub@redhat.com>
2868
2869 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Use
2870 __libc_lock_{,un}lock_recursive instead of __libc_lock_{,un}lock
2871 on _dl_static_lock.
2872
1d4ff70e
AJ
28732003-01-17 Andreas Jaeger <aj@suse.de>
2874
2875 * stdio-common/bug14.c: Include stdlib.h for exit prototype.
2876
609b4783
UD
28772003-01-16 Steven Munroe <sjmunroe@us.ibm.com>
2878
2879 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: New file.
2880 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: New file.
2881 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: New file.
2882 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: New file.
2883 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h: New file.
2884 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: New file.
2885 * sysdeps/unix/sysv/linux/configure.in: Minimum kernel for PPC64
2886 is 2.4.21.
2887
28882003-01-16 Ulrich Drepper <drepper@redhat.com>
2889
2890 * sysdeps/generic/glob.c (glob): Assume sysconf() always returns
2891 values != -1 for _LIBC. Use extend_alloca to reallocate alloca'ed
2892 buffers.
2893
2894 * sysdeps/generic/sysconf.c: Unconditionally implement
2895 _SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX.
2896 * sysdeps/posix/sysconf.c: Likewise.
2897
7b7b9e70
UD
28982003-01-16 Jakub Jelinek <jakub@redhat.com>
2899
2900 * posix/regcomp.c (parse_bracket_exp): If build_charclass fails,
2901 set *err to the returned error, not to REG_ESPACE unconditionally.
2902 (build_word_op): Likewise.
2903 * posix/Makefile (tests): Add bug-regex16.
2904 * posix/bug-regex16.c: New test.
2905
850dcfca
UD
29062003-01-16 Jakub Jelinek <jakub@redhat.com>
2907
2908 * elf/dl-load.c (_dl_map_object_from_fd): Use
2909 GL(dl_tls_dtv_slotinfo_list) != NULL to check whether TLS has
2910 been already initialized.
2911
a1f8ec97
UD
29122003-01-15 Dmitry V. Levin <ldv@altlinux.org>
2913
2914 * sysdeps/unix/sysv/linux/ptsname.c: Fix typo in comment.
2915
f811dbdc
UD
29162003-01-16 Jakub Jelinek <jakub@redhat.com>
2917
2918 * posix/regcomp.c (re_compile_internal): If clearing buffer, clear
2919 allocated too. Reported by Al Viro <aviro@redhat.com>.
2920
4dd98447
RM
29212003-01-16 Roland McGrath <roland@redhat.com>
2922
2923 Tweak merged .abilist file format to merge duplicate symbols in
2924 different sets into multi-version stanzas with new "| SET regexp..."
2925 header continuation lines.
2926 * scripts/merge-abilist.awk: Rewritten for new format.
2927 * scripts/extract-abilist.awk: Likewise.
2928
0f740059
UD
29292003-01-15 Ulrich Drepper <drepper@redhat.com>
2930
e09edf23
UD
2931 * nscd/connections.c (nscd_run): Remove bogus return which isn't
2932 necessary with gcc 3.2+.
2933 (nscd_init): Don't use error() to print message, use dbg_log.
2934
ea31b613
UD
2935 * iconv/gconv_simple.c (STORE_REST): Explicitly store the total
2936 expected size into state.
2937 (UNPACK_BYTES): Do the reverse.
41f112ad 2938 * iconv/loop.c: Use CLEAR_STATE if defined to clear __state element.
ea31b613
UD
2939 * wcsmbs/tst-mbrtowc.c (utf8_test_1): Add test for the bug.
2940 Reported by Al Viro <aviro@redhat.com>.
2941
a1a2fec1
UD
2942 * stdio-common/Makefile (tests): Add bug14.
2943 * stdio-common/bug14.c: New file.
2944
0f740059
UD
2945 * stdio-common/vfscanf.c: When recognizing multibyte characters in
2946 string reset the byte counter after mbrtowc reported it is not a
2947 partial character. Reported by Al Viro <aviro@redhat.com>.
2948
c16abc04
UD
29492003-01-15 Steven Munroe <sjmunroe@us.ibm.com>
2950
2951 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Include
2952 sysdep-cancel.h, not sysdep.h.
2953
29542003-01-15 Ulrich Drepper <drepper@redhat.com>
2955
2956 * nscd/connections.c (nscd_run): Protect accept call with
2957 TEMP_FAILURE_RETRY.
2958
c841fa22
AS
29592003-01-15 Andreas Schwab <schwab@suse.de>
2960
2961 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-bp.d.
2962 (common-generated): Add s-proto-bp.d.
2963 * sysdeps/unix/make-syscalls.sh: Use s-proto-bp.d for dependencies
2964 of bp thunks.
2965 * sysdeps/unix/s-proto-bp.S: New file.
2966 * sysdeps/generic/bp-thunks.h: Don't include <sys/vm86.h> here.
2967 Use <io/sys/sendfile.h> instead of <sys/sendfile.h>.
2968 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: New file.
2969
73917724
RM
29702003-01-15 Roland McGrath <roland@redhat.com>
2971
2972 * Makerules: Use -include for tls.make, suppresses warning.
2973 Move gen-as-const-headers rules up so before-compile is set in time.
2974 (sed-remove-dotdot): Fix to work right for subdirs or top dir.
2975
c9f24336
UD
29762003-01-15 Ulrich Drepper <drepper@redhat.com>
2977
d4397629
UD
2978 * nscd/nscd.c (main): Make code to close all file descriptors
2979 faster and more robust.
2980
9caf4f1c
UD
2981 * nscd/nscd_getpw_r.c (nscd_getpw_r): Consolidate writing of the
2982 request with one writev call. Protect all read calls with
2983 TEMP_FAILURE_RETRY.
2984 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
2985 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
2986
2987 * nscd/hstcache.c: Use extend_alloca to reallocate alloca'd buffer.
2988 Protect writev calls with TEMP_FAILURE_RETRY.
2989 * nscd/grpcache.c: Likewise.
2990 * nscd/pwdcache.c: Likewise.
2991
c9f24336
UD
2992 * nscd/hstcache.c (addhstbynamev6): Don't interpret hostname as
2993 IPv6 address in debug output.
2994
9ae10332
RM
29952003-01-14 Roland McGrath <roland@redhat.com>
2996
2997 * Makerules (check-abi-%): Use two rules for $(common-objpfx) and
2998 $(objpfx) directories, and get rid of vpath directives. The previous
2999 arrangement resulted in files being written to the source directories
3000 when run in a clean build. Find all .abilist files in $(..)abilist/.
3001 (update-abi-%): Likewise.
3002 (generated): Don't add .symlist files, they'll be intermediates.
3003
3004 * sysdeps/generic/init-first.c: Add a comment.
3005
3006 * elf/Makefile ($(objpfx)ld.so): Pass -z defs in link.
3007
3008 * scripts/gen-as-const.awk: Grok lone "--" as a separator between
3009 #includes and expressions.
3010
3011 * scripts/merge-abilist.awk: Omit cpu-.*-os.*/modifier from merged
3012 config list when it already contains cpu-.*-os.* without / part.
3013
3014 * Makerules (sed-remove-dotdot): New variable.
3015 ($(common-objpfx)%.make): Use it. Depend on $(before-compile).
3016 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.
3017 (check-abi-config): New variable, append /tls or /notls to the tuple.
3018 (check-abi-%): Use that for -v config value.
3019 Find .abilist files in abilist/libfoo.abilist, not in subdir.
3020 * Rules: Move bits/stdio_lim.h generation rules to Makerules.
3021
a8d87c92
UD
30222003-01-14 Ulrich Drepper <drepper@redhat.com>
3023
3024 * manual/install.texi: Correct description of header preparation for
3025 Linux build. Patch by mhwood@Ameritech.Net [PR libc/4941].
3026
574b892e
UD
30272003-01-14 Guido Guenther <agx@sigxcpu.org>
3028
3029 * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_SYSCALL,
3030 INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
3031 INTERNAL_SYSCALL_ERROR_P, INLINE_SYSCALL): Define.
3032
30332003-01-14 Steven Munroe <sjmunroe@us.ibm.com>
3034
3035 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
3036 (INTERNAL_SYSCALL): Make use of ERR parameter.
3037 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
3038 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
3039 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
3040 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
3041
2c255347
UD
30422003-01-14 Ulrich Drepper <drepper@redhat.com>
3043
086311a9
UD
3044 * sunrpc/pm_getport.c (pmap_getport): Open TCP socket if protocol
3045 == IPPROTO_TCP.
3046 Patch by James Strandboge <jamie@tpptraining.com> [PR libc/4943].
3047
2f279b14
UD
3048 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (_dl_x86_cap_flags):
3049 Fix entry for bit 31.
3050
2c255347
UD
3051 * iconvdata/Makefile: Add rules to build IBM866NAV.
3052 * iconvdata/ibm866nav.c: New file.
3053 * iconvdata/tst-tables.sh: Add IBM866NAV.
3054 * iconvdata/gconv-modules: Add entries for IBM866NAV.
3055
642eb2a2
UD
30562003-01-13 Ulrich Drepper <drepper@redhat.com>
3057
3058 * string/tester.c (test_strcpy): Use the previously #if 0'ed code
3059 to test void* parameters.
3060
3061 * sysdeps/i386/i486/bits/string.h (__STRING_SMALLL_GET16): Cast
3062 source pointer before dereferencing.
3063 (__STRING_SMALLL_GET32): Likewise.
3064 (__memset_gc): Add missing parenthesis around macro arguments.
574b892e 3065 Patch by Denis Zaitsev <zzz@cd-club.ru>.
642eb2a2
UD
3066
3067 * sysdeps/i386/i486/bits/string.h (__strspn_cg): Tell the compiler
574b892e 3068 that %eax is modified. Reported by Denis Zaitsev <zzz@cd-club.ru>.
642eb2a2 3069
115bb61d
UD
30702003-01-14 Jakub Jelinek <jakub@redhat.com>
3071
3072 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL): Undefined before
3073 defining.
3074
30752003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
3076
3077 * sysdeps/s390/s390-64/initfini.c: Avoid unterminated string literals.
3078 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (L): Don't define it
3079 here.
3080 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (L): Likewise.
3081
30822003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
3083
3084 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Move branch instructions
3085 from here...
3086 (PSEUDO): ... to here.
3087 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Move branch instruction
3088 from here...
3089 (PSEUDO): ... to here.
3090
9ef0a840
UD
30912003-01-13 Ulrich Drepper <drepper@redhat.com>
3092
3093 * locale/programs/charmap-dir.c (charmap_readdir): Use struct
3094 dirent64 instead of struct dirent for dirent. Call readdir64
3095 instead of readdir.
3096
3097 * locale/programs/locfile.c (siblings_uncached): Use struct
3098 dirent64 instead of struct dirent for other_dentry. Call
3099 readdir64 instead of readdir.
3100
3101 * elf/ldconfig.c (direntry): Change type to struct dirent64.
3102 (search_dir): Use readdir64 instead of readdir.
3103 Patch by Zhangfan Xing <xing@pacific.jpl.nasa.gov>.
3104
f1c5213d
RM
31052003-01-12 Roland McGrath <roland@redhat.com>
3106
c01ec9c7
RM
3107 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use strtoul,
3108 not strtol. The former is usable in ld.so, the latter not.
3109
f1c5213d
RM
3110 * include/fcntl.h: Declare __libc_creat.
3111
3112 * sysdeps/mach/hurd/Makefile (libmachuser-link.so-no-z-defs,
3113 libhurduser-link.so-no-z-defs): New variables.
3114
3115 * malloc/malloc.c: Revert last change.
3116 * malloc/malloc.h (_int_*): Move these decls to ...
3117 * include/malloc.h: ... here. Add attribute_hidden.
3118 (_int_valloc): Declare it too.
3119
73398a44
UD
31202003-01-12 Ulrich Drepper <drepper@redhat.com>
3121
115bb61d 3122 * elf/dl-close.c (_dl_close): Fix typo, must be == not = in
1376cd8c
UD
3123 search for removed searchlist. Reported by Roland McGrath.
3124
40212ce0
UD
3125 * io/ftwtest-sh: Add test for case of symlink to nonexisting file
3126 given as start file.
3127
3128 * io/ftw.c (ftw_startup): Use correct name in check for symlink
3129 without existing target. Patch by Jim Meyering.
3130
73398a44
UD
3131 * Makerules (build-shlib-helper): Don't use -z defs linker option
3132 if no-z-defs is defined either.
3133
31342003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
3135
3136 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Remove unused
3137 file.
3138
31392003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
3140
3141 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Add vfork.
3142 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3143
b2608c22
UD
31442003-01-12 Ulrich Drepper <drepper@redhat.com>
3145
3146 * io/ftwtest-sh: Add test case for relative path with /. at the end.
3147
31482003-01-12 Jim Meyering <jim@meyering.net>
3149
3150 * io/ftw.c (ftw_startup): When trying to stat the starting directory,
3151 use the basename if we've already chdir'd into its parent directory.
3152
a5ce5fcf
UD
31532003-01-12 Ulrich Drepper <drepper@redhat.com>
3154
3155 * io/ftw.c (process_entry): Use relative path when using chdir()
b2608c22 3156 to change directory after call to ftw_dir.
a5ce5fcf
UD
3157 * io/ftwtest-sh: Add test for relative path argument to nftw()
3158 with FTW_CHDIR option.
3159
b398ae3c
UD
31602002-01-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3161
3162 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
3163 Define for powerpc.
3164 * sysdeps/unix/sysv/linux/powerpc/syscall.S: Take register alignment
3165 into account.
3166 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
3167 (INTERNAL_SYSCALL): Make use of ERR parameter.
3168 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
3169 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
3170 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
3171 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
3172
31732002-01-09 Richard Henderson <rth@redhat.com>
3174
3175 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Compute
3176 DTPREL64 and TPREL64 without loadbase applied.
3177
31782002-01-09 Richard Henderson <rth@redhat.com>
3179
3180 * sysdeps/unix/alpha/sysdep.S: Use correct definition of errno
3181 for NOT_IN_libc.
3182
3183 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Move inline syscall bits...
3184 * sysdeps/unix/alpha/sysdep.h: ... here.
3185 (PSEUDO_LOADGP): Remove.
3186 (PSEUDO_PROLOGUE): Load GP in non-pic case.
3187 (SYSCALL_ERROR_LABEL): New.
3188 (PSEUDO): Use it in error branch.
3189 (PSEUDO_END): Add $syscall_error label.
3190
1f8613a6
AJ
31912003-01-12 Andreas Jaeger <aj@suse.de>
3192
3193 * math/bits/mathcalls.h: Round is a const function.
3194
aff4519d
UD
31952003-01-11 Jim Meyering <jim@meyering.net>
3196
3197 * io/ftw.c [HAVE_CONFIG_H]: Include <config.h>.
3198 [HAVE_SYS_PARAM_H || _LIBC]: Guard inclusion of <sys/param.h>.
3199 Include <sys/stat.h>, not <include/sys/stat.h>, if !_LIBC.
3200 [!_LIBC] (__chdir, __closedir, __fchdir, __getcwd, __opendir): Define.
3201 [!_LIBC] (__readdir64, __tdestroy, __tfind, __tsearch): Define.
3202 [!_LIBC] (internal_function, dirent64, MAX): Define.
3203 (__set_errno): Define if not already defined.
3204 (open_dir_stream): When FTW_CHDIR is enabled, invoke opendir on
3205 the basename, not the entire file name.
3206 (process_entry): When FTW_CHDIR is enabled, invoke XSTAT or LXSTAT on
3207 the basename, not the entire file name.
3208
32092003-01-12 Ulrich Drepper <drepper@redhat.com>
3210
3211 * string/tester.c (test_strcpy): Disable last added strcpy until
3212 it is fixed.
3213
32142003-01-11 Philip Blundell <philb@gnu.org>
3215
3216 * sysdeps/unix/sysv/linux/arm/socket.S: Add cancellation support.
3217
32182003-01-11 Andreas Schwab <schwab@suse.de>
3219
3220 * Makerules: Add vpath for %.dynsym and %.so so that the
3221 implicit rule chaining for check-abi works.
3222
32232003-01-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3224
3225 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
3226 Add non-PIC case.
3227
32282003-01-11 Jakub Jelinek <jakub@redhat.com>
3229
3230 * elf/tls-macros.h [__ia64__] (__TLS_CALL_CLOBBERS): Define.
3231 [__ia64__] (TLS_LE, TLS_IE): Fix typos. Add ;; at start of asm if
3232 gp is used early.
3233 [__ia64__] (TLS_LD, TLS_GD): Likewise. Use __TLS_CALL_CLOBBERS.
3234 * elf/Makefile ($(objpfx)tst-tlsmod5.so, $(objpfx)tst-tlsmod6.so):
3235 Ensure libc.so in DT_NEEDED.
3236 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Move
3237 CHECK_STATIC_TLS before l_tls_offset use.
3238 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
3239 Likewise.
3240 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
3241 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage) [TLS_DTV_AT_TP]:
3242 Allocate TLS_PRE_TCB_SIZE bytes below result.
3243 (_dl_deallocate_tls) [TLS_DTV_AT_TP]: Adjust before freeing.
3244 * sysdeps/generic/libc-tls.c (__libc_setup_tls): If
3245 TLS_INIT_TP_EXPENSIVE is not defined, allocate even if no PT_TLS
3246 segment has been found. If TLS_DTV_AT_TP, allocate TLS_PRE_TCB_SIZE
3247 bytes below result and add tcb_offset to memsz.
3248 * sysdeps/ia64/dl-tls.h (__tls_get_addr): New prototype.
3249 * sysdeps/ia64/dl-machine.h: Include tls.h.
3250 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS relocs
3251 too.
3252 (elf_machine_rela): Assume if sym_map != NULL sym is non-NULL too.
3253 Handle R_IA64_DTPMOD*, R_IA64_DTPREL* and R_IA64_TPREL* relocations.
3254 * sysdeps/ia64/libc-tls.c: New file.
3255
32562003-01-10 Steven Munroe <sjmunroe@us.ibm.com>
3257
3258 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_RET): Add branch hit.
3259 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h (STAT_VER_LINUX):
3260 Fix type. Move definition out of #if.
3261 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ftruncate64.c: New file.
3262 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: New file.
3263 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: New file.
3264 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: New file.
3265 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: New file.
3266 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Add cancellation
3267 support.
3268 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Remove
3269 ftruncate64, pread64, pwrite64, truncate64 entries.
3270 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
3271 (INLINE_SYSCALL): New version that supports function call like
3272 syscalls. Add __builtin_expect.
3273 (LOADARGS_n): Add argument size safety checks.
3274 (INTERNAL_SYSCALL): New Macro.
3275 * sysdeps/unix/sysv/linux/powerpc/powerpc64/truncate64.c: New file.
3276 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [__PPC_ELF_H]: Avoid
3277 redefinition of elf_fpreg_t and elf_fpregset_t.
3278
32792003-01-12 Ulrich Drepper <drepper@redhat.com>
3280
3281 * elf/dl-close.c (_dl_close): Add several asserts. Correct and
3282 simplify test for unloading. If loader of a DSO is unloaded do not
3283 use its scope anymore. Fall back to own scope and adjust opencounts.
3284 Fix several comments.
3285 * elf/dl-deps.c (_dl_map_object_deps): Always allocate memory for
3286 the l_searchlist, not only for l_initfini.
3287
3288 * elf/dl-lookup.c (add_dependencies): Avoid creating relocation
3289 dependencies if objects cannot be removed. Remove object with the
3290 definition as not unloadable if necessary.
3291
3292 * elf/reldep6.c: Create relocation dependency before closing the first
3293 module.
3294
3295