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