]> sourceware.org Git - glibc.git/blame - ChangeLog
(tests): Add tst-tsd4.
[glibc.git] / ChangeLog
CommitLineData
fbb7fc75
UD
12003-04-01 Jakub Jelinek <jakub@redhat.com>
2
9a197dcc
RM
3 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Use the
4 IA-64 version.
5
fbb7fc75
UD
6 * elf/tls-macros.h [__ia64__] (TLS_IE, TLS_LD, TLS_GD): Add gp
7 register as input to asm.
8
4b1a1328
UD
92003-04-01 Jakub Jelinek <jakub@redhat.com>
10
11 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (sigevent_t): Fix a typo.
12
73588175
AJ
132003-04-01 Andreas Jaeger <aj@suse.de>
14
15 * configure.in: Output as/ld as name if version is too old.
16
640f0119
RM
172003-03-31 Daniel Jacobowitz <drow@mvista.com>
18
19 * configure.in: Don't require an installed C library in the test
20 for ".set" assembler support.
640f0119
RM
21
222003-03-31 Roland McGrath <roland@redhat.com>
23
24 * signal/tst-sigset.c: New file.
25 * signal/Makefile (tests): Add it.
26
582b54aa
UD
272003-03-31 Ulrich Drepper <drepper@redhat.com>
28
29 * sysdeps/unix/sysv/linux/alpha/bits/signum.h (_NSIG): Define to 65.
30 * sysdeps/unix/sysv/linux/hppa/bits/signum.h (_NSIG): Likewise.
31 * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Likewise.
32 * sysdeps/unix/sysv/linux/bits/signum.h (_NSIG): Likewise.
33 (__SIGRTMAX): Adjust accordingly.
34 * sysdeps/gnu/siglist.c: If OLD2_SIGLIST_SIZE is defined define
35 second compatibility symbol set.
36 * sysdeps/unix/sysv/linux/siglist.h (OLD2_SIGLIST_SIZE): Define.
37
0c2601fa
AS
382003-03-31 Andreas Schwab <schwab@suse.de>
39
40 * sysdeps/m68k/m68020/bits/atomic.h (atomic_increment_and_test):
41 Define.
42 (atomic_decrement_and_test): Fix test.
43
0a9d1b3b
RM
442003-03-31 Jakub Jelinek <jakub@redhat.com>
45
46 * sysdeps/sparc/sparc32/bits/atomic.h: New file.
47 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: New file.
48 * sysdeps/sparc/sparc64/bits/atomic.h: New file.
49 * sysdeps/sparc/sparc32/atomicity.h: Removed.
50 * sysdeps/sparc/sparc32/sparcv9/atomicity.h: Removed.
51 * sysdeps/sparc/sparc64/atomicity.h: Removed.
52
9ec8bbb1
RM
532003-03-30 Roland McGrath <roland@redhat.com>
54
d692f3f8
RM
55 * scripts/abilist.awk: Grok .opd foo plus .text .foo as "foo F" alone.
56
9ec8bbb1
RM
57 * intl/po2test.sed: Anchor substitution regexps to fix last change.
58
f8278d5d
RM
592003-03-29 Paolo Bonzini <bonzini@gnu.org>
60
582b54aa
UD
61 * intl/po2test.sed: Unify the transformations for msgid and msgstr
62 and remove a useless s/// command.
f8278d5d 63
266227ab
UD
642003-03-27 David Mosberger <davidm@hpl.hp.com>
65
66 * sysdeps/ia64/dl-machine.h (RTLD_START): Wrap ".save rp, r0"
67 directive into empty .prologue region to ensure that call-chain
68 is terminated even for the first instruction.
69
70 * sysdeps/ia64/elf/start.S (_start): Use ".save rp, r0" idiom
71 to terminate call-chain right from the get-go.
72
73 * sysdeps/unix/sysv/linux/ia64/fork.S (fork): Remove unnecessary
74 stop bit between compare & branch.
75
ea473bad
UD
762003-03-29 Ulrich Drepper <drepper@redhat.com>
77
d8592d04
UD
78 * stdlib/strtod.c (INTERNAL): Recognize first digit after decimal
79 point correctly [PR libc/4993].
80
ea473bad
UD
81 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Avoid
82 netlink_open calls if netlink is known to not be available.
83
c7da3ff8
AO
842003-03-29 Alexandre Oliva <aoliva@redhat.com>
85
e077d10d 86 * configure.in: Add mips64* support.
e077d10d
AO
87 * sysdeps/mips/bits/endian.h: Make it bi-endian.
88 * sysdeps/mips/mipsel/bits/endian.h: Removed.
89 * sysdeps/mips/mips64/n32/el/bits/endian.h: Removed.
90 * sysdeps/mips/mips64/n64/el/bits/endian.h: Removed.
91 * sysdeps/mips/mips32/Makefile (CC): Add -mabi=32.
92 * sysdeps/mips/mips64/n32/Makefile (CC): Add -mabi=n32.
93 * sysdeps/mips/mips64/n64/Makefile (CC): Add -mabi=64.
94 * sysdeps/mips/Implies: Moved wordsize-32 to...
95 * sysdeps/mips/mips32/Implies: New file.
96 * sysdeps/unix/mips/sysdep.h (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO,
97 ret_NOERRNO): New.
98 (ret, PSEUDO_END): Moved past END.
99 (PSEUDO): Moved to...
100 * sysdeps/unix/mips/mips32/sysdep.h: New file.
101 * sysdeps/unix/mips/mips64/n32/sysdep.h: Removed #undef PSEUDO.
102 * sysdeps/unix/mips/mips64/n64/sysdep.h: Likewise.
103 * sysdeps/unix/sysv/linux/mips/sysdep.h: Move to...
104 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: New file.
105 * sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: New file.
106
c7da3ff8
AO
107 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start):
108 Re-introduce ENTRY.
109
e0c09a43
UD
1102003-03-28 Thorsten Kukuk <kukuk@suse.de>
111
112 * sysdeps/unix/sysv/linux/ifaddrs.c: New file.
113 * inet/test-ifaddrs.c: Allow AF_PACKET.
114 * sysdeps/unix/sysv/linux/kernel-features.h: Add
115 __ASSUME_NETLINK_SUPPORT.
116
129422e1
UD
1172003-03-28 Ulrich Drepper <drepper@redhat.com>
118
119 * elf/vismain.c (do_test): Comment out tests which fail in the moment.
120
5972c58b
RM
1212003-03-26 H.J. Lu <hjl@gnu.org>
122
123 * elf/vismod.h (getvarlocal1): Return const char **.
124 (getvarinmod1): Likewise.
125 (getvaritcpt1): Likewise.
126 (getvarlocal2): Likewise.
127 (getvarinmod2): Likewise.
128 (getvaritcpt2): Likewise.
129 (getvaritcpt3): Likewise.
130 * elf/vismain.c (do_test): Adjusted.
131 * elf/vismod1.c (getvarlocal1): Return address.
132 (getvarinmod1): Likewise.
133 (getvaritcpt1): Likewise.
134 * elf/vismod2.c (getvarlocal2): Likewise.
135 (getvarinmod2): Likewise.
136 (getvaritcpt2): Likewise.
137 * elf/vismod3.c (getvaritcpt3): Likewise.
138
7e30918b
RM
1392003-03-28 Roland McGrath <roland@redhat.com>
140
5972c58b
RM
141 * elf/vismain.c (do_test): Print both addresses when they don't match.
142
f0248ca5
RM
143 * scripts/abilist.awk: If given -v filename_regexp and/or -v
144 libname_regexp when parsing names, then produce output only
145 for those matching the given regexps. In combine mode, save all
146 stanzas for a final sorting by stanza header at the end.
147 Emit a blank line between stanzas.
148
7e30918b
RM
149 * scripts/abilist.awk: When given -v combine=1, do parse_names and
150 emit a single output stream with lib name in stanza header lines.
151
152 * scripts/abilist.awk: Emit A for all *ABS* regardless of type.
153
c6acf1e3
RM
1542003-03-27 Roland McGrath <roland@redhat.com>
155
156 * sysdeps/powerpc/bits/atomic.h [! __powerpc64__]
157 (__arch_atomic_decrement_if_positive_64): Fix bogus definition.
158
dd731d53
UD
1592003-03-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
160
161 * sysdeps/sh/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
162 Return old value. Make asm output reg constraint earlyclobber.
163 Renamed from...
164 (__arch_compare_and_exchange_8_acq): ... this.
165 (__arch_compare_and_exchange_val_16_acq):
166 Return old value. Make asm output reg constraint earlyclobber.
167 Renamed from...
168 (__arch_compare_and_exchange_16_acq): ... this.
169 (__arch_compare_and_exchange_val_32_acq):
170 Return old value. Make asm output reg constraint earlyclobber.
171 Renamed from...
172 (__arch_compare_and_exchange_32_acq): ... this.
173 (__arch_compare_and_exchange_val_64_acq):
174 Renamed from...
175 (__arch_compare_and_exchange_64_acq): ... this.
176 (atomic_exchange_and_add): Use local variables and
177 __arch_compare_and_exchange_val_64_acq.
178 (atomic_add): Likewise.
179 (atomic_add_negative, atomic_add_zero): Use local variables.
180
d270cb11
AO
1812003-03-28 Alexandre Oliva <aoliva@redhat.com>
182
3e60b5f2
AO
183 * sysdeps/unix/mips/sysdep.S: Include sys/asm.h.
184
a854f531
UD
1852003-03-27 Ulrich Drepper <drepper@redhat.com>
186
dd731d53 187 * Makefile: Remove libmd5crypt goal.
a854f531 188
41bc895a
RM
1892003-03-25 Jakub Jelinek <jakub@redhat.com>
190
191 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Restore
192 special handling of relocations against local symbols.
193
3171ae99
UD
1942003-03-27 Steven Munroe <sjmunroe@us.ibm.com>
195
196 * sysdeps/powerpc/bits/atomic.h
197 (__arch_compare_and_exchange_bool_32_acq): Move to [!__powerpc64__].
198 [__powerpc64__] (__arch_compare_and_exchange_bool_32_acq):
199 Define PPC64 specific version.
200 [__powerpc64__] (__arch_compare_and_exchange_bool_64_acq):
201 Change (mem) constraint to "b".
202 [__powerpc64__] (__arch_atomic_exchange_and add_64):
203 Replace addi with add. Change (value) contraint to "r".
204 Change (mem) constraint to "b".
205 [__powerpc64__] (__arch_atomic_decrement_if_positive_64): New macro.
206 (__arch_atomic_exchange_32): Change (mem) constraint to "b".
207 (__arch_atomic_exchange_and_add_32): Change (mem) constraint to "b".
208 (__arch_atomic_decrement_if_positive_32): New macro.
209 (atomic_decrement_if_positive): Use __arch* macros.
210
d5527b17
UD
2112003-03-27 Jakub Jelinek <jakub@redhat.com>
212
213 * sysdeps/ia64/fpu/libm-test-ulps: Update.
214
c7356b6d
RM
2152003-03-27 Roland McGrath <roland@redhat.com>
216
217 * scripts/rpm2dynsym.sh: New file.
218 * Makefile (distribute): Add it.
219
28cf3058
UD
2202003-03-27 David Mosberger <davidm@hpl.hp.com>
221
222 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Restore caller's
223 ar.unat before returning. Add missing .mem.offset directives
224 to ensure file gets assembled without warnings.
225 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
226
0d5420ec
UD
2272003-03-27 Jakub Jelinek <jakub@redhat.com>
228
229 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf) <_SC_MONOTONIC_CLOCK>:
230 Return -1 instead of 0 if clock_getres failed.
231
fd54683c
RM
2322003-03-27 Roland McGrath <roland@redhat.com>
233
15a686af
RM
234 * scripts/abilist.awk: If variable `parse_names' is set, grok the file
235 header lines and write out foo.symlist files for each foo.so.NN listed.
236
237 * libio/libioP.h (_IO_wfile_jumps): Remove attribute_hidden.
238 This symbol is exported, and we don't want to hide it.
239 Add libc_hidden_proto instead.
240 (_IO_file_jumps): Add libc_hidden_proto.
241 * libio/wfileops.c (_IO_wfile_jumps): Add libc_hidden_data_def.
242 Remove INTVARDEF.
243 * libio/fileops.c (_IO_file_jumps): Likewise.
244 * libio/stdfiles.c: Don't use INTUSE on them.
245 * libio/iofdopen.c (_IO_new_fdopen): Likewise.
246 * libio/iofopen.c (__fopen_internal): Likewise.
247 * libio/freopen.c (freopen): Likewise.
248 * libio/freopen64.c (freopen64): Likewise.
249 * libio/iovdprintf.c (_IO_vdprintf): Likewise.
250
fd54683c
RM
251 * Makerules (check-abi) [$(enable-check-abi) = warn]:
252 Ignore exit status from diff.
253 * configure.in (enable_check_abi): Document possible value "warn".
254 Change default to no for now.
255 * configure: Regenerated.
256
257 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Emit stub_warning
258 macro calls and a #include <stub-tag.h> at the end.
259 * Makerules ($(objpfx)stubs): Tweak sed commands.
260
261 * sysdeps/unix/sysv/linux/syscalls.list: Use - rather than EXTRA in
262 caller column for *xattr syscalls, since they are in sysdeps/generic.
263
264 * sysdeps/unix/sysv/linux/i386/setfsuid.c: setfsgid -> setfsuid
265 * sysdeps/unix/sysv/linux/i386/setfsgid.c: setfsuid -> setfsgid
266
2672003-03-26 Roland McGrath <roland@redhat.com>
268
269 * Makerules (check-abi-config): Use /thread instead of /tls when
270 use-thread and not just use-tls is set.
271
272 * Makerules (update-abi): Put quotes around $(update-abi-config).
273
274 * elf/Makefile (check-abi): Depend on check-abi-ld.
275 (update-abi): Depend on update-abi-ld.
276
85763515
UD
2772003-03-26 GOTO Masanori <gotom@debian.or.jp>
278
279 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Use INTERNAL_SYSCALL and
280 do not check for errors (unless testing for 32bit variant).
281 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
282
312472fc
RM
2832003-03-27 Philip Blundell <philb@gnu.org>
284
285 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET_NOERRNO): Use
286 unconditional mov. Remove nop.
287
288 * sysdeps/unix/sysv/linux/kernel-features.h
289 (__ASSUME_VFORK_SYSCALL): Define for kernel 2.4 on arm.
290 * sysdeps/unix/sysv/linux/arm/vfork.S: Elide compatibility code
291 when __ASSUME_VFORK_SYSCALL is defined.
292 * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise for
293 __ASSUME_MMAP2_SYSCALL.
294 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise for
295 __ASSUME_REALTIME_SIGNALS.
296
18ef464b
UD
2972003-03-26 Ulrich Drepper <drepper@redhat.com>
298
299 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_COPY): Define to 2
300 only if DL_NO_COPY_RELOCS is not defined.
301 * sysdeps/ia64/dl-lookupcfg.h: Define DL_NO_COPY_RELOCS.
302
04676765
RM
3032003-03-26 Roland McGrath <roland@redhat.com>
304
305 * sysdeps/unix/make-syscalls.sh: When an undefined syscall has
306 SOURCE=-, append its symbol names to make variable unix-stub-syscalls.
307 * sysdeps/unix/Makefile [$(subdir) = misc] [unix-stub-syscalls]
308 (sysdep_routines): Add stub-syscalls.
309 ($(objpfx)stub-syscalls.c): New target.
310 (generated): Add stub-syscalls.c.
311
312 * tls.make.c: Also define use-tls according to USE_TLS macro.
313
11d52c31
UD
3142003-03-26 Ulrich Drepper <drepper@redhat.com>
315
316 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (struct siginfo): Avoid
317 no-op padding element.
318 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
319 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
320 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
321 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
322
3232003-03-26 GOTO Masanori <gotom@debian.or.jp>
324
325 * sysdeps/unix/sysv/linux/i386/getgroups.c: Fix the error
326 condition check for the return value of getgroups32.
327
3282003-03-26 Jakub Jelinek <jakub@redhat.com>
329
330 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_NOERRNO):
331 Fix a typo.
332 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_NOERRNO,
333 PSEUDO_END_NOERRNO): Define.
334 * sysdeps/unix/sysdep.h (PSEUDO_END_NOERRNO): Fix a typo.
335 Define to PSEUDO_END.
336
f064e4c5
UD
3372003-03-26 Ulrich Drepper <drepper@redhat.com>
338
339 * abilist/librt.abilist: Add new timer interfaces for 64-bit archs.
340
bdb6126c
UD
3412003-03-25 Jiro SEKIBA <jir@yamato.ibm.com>
342
343 * iconvdata/euc-tw.c (from_euc_tw): Fix return value of TO_LOOP.
344 * iconvdata/bug-iconv4.c: New file.
345 * iconvdata/Makefile (tests): Add bug-iconv4.
346
697119d6
UD
3472003-03-25 H.J. Lu <hjl@gnu.org>
348
349 * elf/dl-lookup.c (_dl_lookup_symbol): Avoid looking up protected
350 symbols twice.
351 (_dl_lookup_versioned_symbol): Likewise.
352
859e708f
RM
3532003-03-26 Jakub Jelinek <jakub@redhat.com>
354
355 * csu/tst-atomic.c (do_test): Add some new
356 atomic_compare_and_exchange_val_acq, atomic_add_zero,
357 atomic_compare_and_exchange_bool_acq and atomic_add_negative tests.
358 * include/atomic.h (atomic_add_negative, atomic_add_zero):
359 Prefix local variable so that it doesn't clash with the one
360 in atomic_exchange_and_add.
361 * sysdeps/ia64/bits/atomic.h (atomic_exchange): Fix for long/void *
362 pointers.
363 (atomic_exchange_and_add): Implement using __sync_fetch_and_add_?i.
364 * sysdeps/powerpc/bits/atomic.h (atomic_exchange_and_add): Force
365 value into register.
366 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_64_acq):
367 Cast newval to long.
368 * sysdeps/x86_64/bits/atomic.h
369 (__arch_compare_and_exchange_val_64_acq): Cast newval and oldval to
370 long.
371 (atomic_exchange): Cast newvalue to long if sizeof == 8.
372 (atomic_exchange_and_add): Cast value to long if sizeof == 8.
373 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
374 (atomic_bit_set): Shift 1L up in all cases to shut up warnings.
375
dd410d4d
RM
3762003-03-21 Martin Schwidefsky <schwidefskyde.ibm.com>
377
378 * sysdeps/s390/s390-32/backtrace.c (__backtrace): Remove high order
379 bit from backtrace addresses.
380
3812003-03-21 Andreas Schwab <schwab@suse.de>
382
383 * sysdeps/unix/sysv/linux/i386/chown.c: Don't define any versioned
384 __chown symbols.
385
6a1c6a1f
RM
3862003-03-25 Roland McGrath <roland@redhat.com>
387
388 * config.make.in (enable-check-abi): New variable from configure.
389 * configure.in (enable_check_abi): New substituted variable,
390 controlled by --{enable,disable}-check-abi (default yes).
391 * configure: Regenerated.
392 * Makerules [$(enable-check-abi) = yes] (tests): Put this condition
393 on check-abi dependency.
394
fb0216dd
AS
3952003-03-26 Andreas Schwab <schwab@suse.de>
396
9fdf211e
AS
397 * sysdeps/m68k/m68020/bits/atomic.h: Fix typos.
398 * include/atomic.h: Likewise.
399
fb0216dd
AS
400 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Define ret_NOERRNO.
401
7456156f
RM
4022003-03-25 Roland McGrath <roland@redhat.com>
403
404 * sysdeps/powerpc/bits/atomic.h (__arch_atomic_exchange_32): New macro.
405 (__arch_atomic_exchange_64): New macro.
406 (atomic_exchange): Use them.
407 (__arch_atomic_exchange_and_add_32): New macro.
408 (__arch_atomic_exchange_and_add_64): New macro.
409 (atomic_exchange_and_add): Use them.
410 Original patch from Steven Munroe <sjmunroe@us.ibm.com>.
411
1b12060c
AO
4122003-03-25 Alexandre Oliva <aoliva@redhat.com>
413
414 * sysdeps/mips/sgidefs.h (_MIPS_ISA_MIPS32, _MIPS_ISA_MIPS64):
415 Define.
416 * sysdeps/mips/sys/asm.h: Test _MIPS_ISA against them on all
417 ISA tests.
418 (ALSZ, ALMASK, SZREG, REG_S, REG_L): Define based on ABI, not ISA.
419 (PTR_ADD, etc): Test _MIPS_SZPTR instead of _MIPS_SZLONG.
420 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
421 to decide whether to add padding.
422 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
423 to decide whether to add padding.
424 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h (struct
425 old_kernel_sigaction): Likewise.
426
09402f5b
UD
4272003-03-25 Ulrich Drepper <drepper@redhat.com>
428
429 * csu/tst-atomic.c: Adjust tests to what atomic_add_negative and
430 atomic_add_zero were supposed to do.
431 * include/atomic.h: Adjust atomic_add_negative and atomic_add_zero
432 to x86 behavior.
433
434 * sysdeps/generic/bits/typesizes.h (__TIMER_T_TYPE): Define as void*.
435 This matches the new timer implementation.
bacb0296
UD
436 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__TIMER_T_TYPE):
437 Likewise.
438 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__TIMER_T_TYPE):
439 Likewise.
09402f5b
UD
440 * sysdeps/unix/sysv/linux/bits/siginfo.h (struct siginfo): Adjust
441 timer info for what the kernel provides these days.
442 (struct sigevent): Add _tid field.
443 Define SIGEV_THREAD_ID.
42374865
UD
444 Remove struct __pthread_attr_s forward declaration.
445 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Likewise.
446 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
447 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
448 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
09402f5b
UD
449
450 * Versions.def (librt): Add GLIBC_2.3.3.
451
452 * abilist/libpthread.abilist: Update for nptl.
453
5e826ab5
UD
4542003-03-24 Jon Grimm <jgrimm@us.ibm.com>
455
456 * inet/netinet/in.h: Add IPPROTO_SCTP.
457
4582003-03-24 Ulrich Drepper <drepper@redhat.com>
459
460 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLET): Define.
461
c6289757
UD
4622003-03-24 Philip Blundell <philb@gnu.org>
463
464 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL):
465 Remove a1 from clobber list.
466
4672003-03-24 Ulrich Drepper <drepper@redhat.com>
468
469 * timezone/antarctica: Update from tzdata2003a.
470 * timezone/asia: Likewise.
471 * timezone/australasia: Likewise.
472 * timezone/europe: Likewise.
473 * timezone/iso3166.tab: Likewise.
474 * timezone/northamerica: Likewise.
475 * timezone/southamerica: Likewise.
476 * timezone/zone.tab: Likewise.
477
4782003-03-24 Steven Munroe <sjmunroe@us.ibm.com>
479
480 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_END_NOERRNO): Fix typo.
481
9eb88290
UD
4822003-03-23 Ulrich Drepper <drepper@redhat.com>
483
6ea5c103
UD
484 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ret_NOERRNO): Avoid
485 unwanted expansion by definining to ret. Patch by Ian Wienand.
486
9eb88290
UD
487 * sysdeps/unix/make-syscalls.sh: Recognize 'E' in first position of
488 the parameter description to denote no error checking. Generate
489 appropriate pseudo asm code.
490 * sysdeps/unix/syscalls.list: Mark getgid, getpid, getuid with 'E'.
491 * sysdeps/unix/sysv/linux/syscalls.list: Mark getegid, geteuid,
492 getpgrp, and getppid with 'E'.
493 * sysdeps/powerpc/powerpc32/sysdep.h: Define PSEUDO_NOERRNO,
494 PSEUDO_END_NOERRNO, and ret_NOERRNO.
495 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
496 * sysdeps/unix/sysdep.h: Likewise.
497 * sysdeps/unix/alpha/sysdep.h: Likewise.
498 * sysdeps/unix/sparc/sysdep.h: Likewise.
499 * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
500 * sysdeps/unix/sysv/linux/cris/sysdep.h: Likewise.
501 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
502 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
503 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
504 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
505 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
506 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
507 * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
508 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
509 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
510
3045a1fe
RM
5112003-03-23 Roland McGrath <roland@redhat.com>
512
513 * Makeconfig (+includes): Don't use $(last-includes).
514
ad551664
AO
5152003-03-22 Alexandre Oliva <aoliva@redhat.com>
516
517 * sysdeps/unix/sysv/linux/configure.in: Update mips64 patterns.
518 * sysdeps/unix/sysv/linux/configure: Rebuilt.
519
f92abad6
RM
5202003-03-23 Jakub Jelinek <jakub@redhat.com>
521
522 * sysdeps/alpha/fpu/libm-test-ulps: Update.
523 * sysdeps/arm/libm-test-ulps: Update.
524 * sysdeps/hppa/fpu/libm-test-ulps: Update.
525 * sysdeps/ia64/fpu/libm-test-ulps: Update.
526 * sysdeps/mips/fpu/libm-test-ulps: Update.
527 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
528 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
529 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
530 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
531 * sysdeps/sh/sh4/fpu/libm-test-ulps: Update.
532 * sysdeps/s390/fpu/libm-test-ulps: Update.
533 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
534
d15851ec
RM
5352003-03-22 Roland McGrath <roland@redhat.com>
536
fe4610b3
RM
537 * include/atomic.h: Put parens around all macro arguments.
538 (__atomic_val_bysize, __atomic_bool_bysize): New macros.
539 (atomic_compare_and_exchange_val_acq): Use it.
540 (atomic_compare_and_exchange_bool_acq): Likewise.
541 (atomic_increment_and_test): Invert sense of test.
542 (atomic_decrement_and_test): Likewise.
543 * csu/tst-atomic.c: Update those tests to match.
d15851ec
RM
544
5452003-03-22 Jakub Jelinek <jakub@redhat.com>
546
547 * include/atomic.h (atomic_compare_and_exchange_val_acq): Add comment.
548 Don't define if __arch_compare_and_exchange_val_32_acq is not defined.
549 (atomic_compare_and_exchange_bool_acq): Add comment. Don't use
550 __oldval variable in the macro, since it might be macro argument.
551 (atomic_decrement_if_positive): Initialize __memp, remove setting
552 of non-existent variable.
553 (atomic_bit_test_set): Cast 1 to __typeof (*mem) before shifting.
554 * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Implement
555 using atomic_compare_and_exchange_val_acq.
556 (atomic_decrement_if_positive, atomic_bit_test_set): Define.
557 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
558 Renamed from...
559 (__arch_compare_and_exchange_bool_8_acq): ... this.
560 (__arch_compare_and_exchange_val_16_acq): Renamed from...
561 (__arch_compare_and_exchange_bool_16_acq): ... this.
562 (__arch_compare_and_exchange_val_32_acq): Return old value. Renamed
563 from...
564 (__arch_compare_and_exchange_bool_32_acq): ... this.
565 (__arch_compare_and_exchange_val_64_acq): Return old value. Renamed
566 from...
567 (__arch_compare_and_exchange_bool_64_acq): ... this.
568 (__arch_compare_and_exchange_val_32_acq): Use __typeof for local
569 variables types instead of assuming int.
570 Change prefix of local variables to __arch.
571 * sysdeps/generic/bits/atomic.h (arch_compare_and_exchange_acq):
572 Remove.
573 (atomic_compare_and_exchange_val_acq,
574 atomic_compare_and_exchange_bool_acq): Define.
575
576 * csu/tst-atomic.c: New test.
577 * csu/tst-atomic-long.c: New test.
578 * csu/Makefile (tests): Add tst-atomic and tst-atomic-long.
579
580 * malloc/memusagestat.c (main): Kill warning if uint64_t is ulong.
581
582 * sysdeps/s390/Versions: Add trailing newline.
583
584 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Kill warning
585 if INTERNAL_SYSCALL_ERROR_P doesn't use its first argument.
586
faa58057
AS
5872003-03-22 Andreas Schwab <schwab@suse.de>
588
01e694fc
AS
589 * sysdeps/m68k/fpu/libm-test-ulps: Update.
590
faa58057
AS
591 * sysdeps/m68k/m68020/bits/atomic.h: New file.
592 * sysdeps/m68k/m68020/atomicity.h: Removed.
593
039f839c
AO
5942003-03-22 Alexandre Oliva <aoliva@redhat.com>
595
dda8854a
AO
596 * sysdeps/mips/elf/ldsodefs.h: Add mips-specific elf64 relocation
597 data structures and macros. Protect from multiple inclusion.
598
039f839c
AO
599 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Fix harmless
600 typo in #if test.
601
34f8ef1b
AJ
6022003-03-21 Andreas Jaeger <aj@suse.de>
603
604 * sysdeps/i386/fpu/libm-test-ulps: Update.
605
606 * math/libm-test.inc (tgamma_test): Recompute some constants with
607 36 digits precision.
608 (lgamma_test): Likewise.
609 (ccos_test): Likewise.
610 (ccosh_test): Likewise.
611 (clog10_test): Likewise.
612 (csin_test): Likewise.
613 (csinh_test): Likewise.
614 (ctan_test): Likewise.
615 (ctanh_test): Likewise.
616
6172003-03-19 Jakub Jelinek <jakub@redhat.com>
618
619 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Regenerated.
620
4baa087a
RM
6212003-03-21 Roland McGrath <roland@redhat.com>
622
623 * sysdeps/i386/i486/bits/atomic.h (atomic_bit_set): Use "ir"
624 constraint to permit non-constant BIT argument.
625 (atomic_bit_test_set): Likewise.
626 * sysdeps/x86_64/bits/atomic.h (atomic_bit_test_set): Likewise.
627 (atomic_bit_set): Likewise. Use 1UL in case that BIT might be >= 32.
628 For quadword case, use "i" constraint if __builtin_constant_p and < 32
629 or "r" constraint otherwise.
630
631 * configure.in: Move AC_PROG_CC and other program-finding before all
632 the version checks.
633 * configure: Regenerated.
634
8f9fb000
AO
6352003-03-21 Alexandre Oliva <aoliva@redhat.com>
636
637 * sysdeps/mips/mips64/memcpy.S: Fix porting bug that broke
638 unaligned copying of 8-15 bytes. From Chris Demetriou
639 <cgd@broadcom.com>. Fix label names.
640 * sysdeps/mips/mips64/memset.S: Fix label names. Make similar
641 change as to memcpy.S.
642 * sysdeps/mips/memcpy.S: Formatting changes.
643 * sysdeps/mips/memset.S: Likewise.
644
88b3f3ed
RM
6452003-03-21 Roland McGrath <roland@redhat.com>
646
647 * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add trailing semicolon.
648
ee7b7036
AO
6492003-03-21 Alexandre Oliva <aoliva@redhat.com>
650
651 * sysdeps/mips/mips64/memcpy.S, sysdeps/mips/mips64/memset.S: New.
652 * sysdeps/mips/memcpy.S, sysdeps/mips/memset.S: Update comments.
653
a60581ad
RM
6542003-03-21 Roland McGrath <roland@redhat.com>
655
656 * sysdeps/i386/i486/bits/atomic.h
657 (__arch_compare_and_exchange_val_64_acq): Rewrite abort-calling
658 version of the macro to avoid compile-time warnings.
659 [! __PIC__] (__arch_compare_and_exchange_64_acq): Rename to above.
a60581ad
RM
660 (atomic_exchange_and_add, atomic_add): Fix name and usage of it.
661 (atomic_increment, atomic_decrement): Likewise.
662
4541b483
UD
6632003-03-21 Ulrich Drepper <drepper@redhat.com>
664
665 * sysdeps/x86_64/bits/atomic.h: Don't use matching memory constraints.
666 * sysdeps/i386/i486/bits/atomic.h: Likewise.
667
2923c644
RM
6682003-03-21 Roland McGrath <roland@redhat.com>
669
670 * include/atomic.h (atomic_compare_and_exchange_bool_acq): Typo fix.
671
9f07eae2
UD
6722003-03-20 Ulrich Drepper <drepper@redhat.com>
673
674 * include/atomic.h: Define atomic_compare_and_exchange_val_acq,
675 atomic_compare_and_exchange_val_rel,
676 atomic_compare_and_exchange_bool_acq, and
677 atomic_compare_and_exchange_bool_rel instead of
678 atomic_compare_and_exchange_acq and atomic_compare_and_exchange_rel.
679 * sysdeps/i386/i486/bits/atomic.h: Define
680 __arch_compare_and_exchange_val_*_acq instead of
681 __arch_compare_and_exchange_*_acq.
682 * sysdeps/x86_64/bits/atomic.h: Likewise.
683 * sysdeps/ia64/bits/atomic.h: Define
684 __arch_compare_and_exchange_bool_*_acq instead of
685 __arch_compare_and_exchange_*_acq.
686 * sysdeps/powerpc/bits/atomic.h: Likewise.
687 * sysdeps/s390/bits/atomic.h: Likewise.
688 * gmon/mcount.c: Adjust for new form of compare&exchange macros.
689 * malloc/set-freeres.c: Likewise.
690 * nscd/cache.c: Likewise.
691 * stdlib/cxa_finalize.c: Likewise.
692 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
693
4b5e1c5f
AO
6942003-03-20 Alexandre Oliva <aoliva@redhat.com>
695
d20152e1
AO
696 * sysdeps/mips/bits/setjmp.h: n32 has only 6 call-saved fpregs.
697 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Adjust.
698 * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
699
4b5e1c5f
AO
700 * sysdeps/unix/sysv/linux/mips/pread.c: Don't break up offset
701 into high and low halves on n64.
702 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
703 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
704 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
705
6848aba6
UD
7062003-03-20 Ulrich Drepper <drepper@redhat.com>
707
708 * include/atomic.h (atomic_decrement_if_positive): Adjust for the
709 correct atomic_compare_and_exchange_acq semantics.
710
f1f8a9ec
AO
7112003-03-20 Alexandre Oliva <aoliva@redhat.com>
712
713 * sysdeps/mips/ieee754.h: Remove excess #endif.
714
2ff16e04
RM
7152003-03-20 Roland McGrath <roland@redhat.com>
716
717 * sysdeps/powerpc/bits/atomic.h (atomic_exchange): Remove unused
718 variable. Remove superfluous memory clobber.
719
720 * include/atomic.h: Syntax braino fix.
721
722 * posix/tst-nice.c (do_test): Use %m formats instead of printing errno
723 in decimal. Don't bail if niced at start. Just check that nice call
724 bumps the total at all.
725
53fcb885
AO
7262003-03-20 Alexandre Oliva <aoliva@redhat.com>
727
728 * sysdeps/mips/bits/setjmp.h: Store all N32 and N64 registers,
729 including pc, gp, sp and fp, as long long.
730 * sysdeps/mips/mips64/setjmp.S: Pass gp to __sigsetjmp_aux.
731 * sysdeps/mips/mips64/setjmp_aux.c: Adjust type of arguments.
732 Add gp argument, and set gp in the jmpbuf to it.
733 * sysdeps/mips/setjmp_aux.c: Revert to o32-only.
734
f79466a8
UD
7352003-03-20 Ulrich Drepper <drepper@redhat.com>
736
737 * include/atomic.h: Define atomic_exchange and
738 atomic_decrement_if_positive if not already defined. Add some
739 __builtin_expect.
740 * sysdeps/i386/i486/bits/atomic.h: Define atomic_exchange.
741 * sysdeps/x86_64/bits/atomic.h: Likewise.
742 * sysdeps/ia64/bits/atomic.h: Pretty printing. Define atomic_exchange.
743 * sysdeps/powerpc/bits/atomic.h: Pretty printing. Define
744 atomic_exchange, atomic_exchange_and_add, and
745 atomic_decrement_if_positive
746
50449bed
AO
7472003-03-20 Alexandre Oliva <aoliva@redhat.com>
748
bfd49d55
AO
749 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: Sign-extend
750 with a single instruction.
751
50449bed
AO
752 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Define
753 properly for n64.
754 (elf_machine_runtime_setup): Cast link_map pointer to Elf Addr
755 type.
756 (elf_machine_rel, elf_machine_rel_relative): Cast symidx to Elf
757 Word before comparing with gotsym. Take reloc_addr argument as
758 void*. Remove the code added for the compiler to drop any
759 alignment assumptions.
760
4009bf40
UD
7612003-03-19 Ulrich Drepper <drepper@redhat.com>
762
763 * Makefile (distribute): Add include/atomic.h and bits/atomic.h.
764 * include/atomic.h: New file.
765 * sysdeps/i386/i486/bits/atomic.h: New file.
766 * sysdeps/x86_64/bits/atomic.h: New file.
767 * sysdeps/s390/bits/atomic.h: New file.
768 * sysdeps/sh/bits/atomic.h: New file.
769 * sysdeps/ia64/bits/atomic.h: New file.
770 * sysdeps/powerpc/bits/atomic.h: New file.
771 * sysdeps/generic/bits/atomic.h: New file.
772 * sysdeps/i386/i486/atomicity.h: Removed.
773 * sysdeps/x86_64/atomicity.h: Removed.
774 * sysdeps/s390/s390-32/atomicity.h: Removed.
775 * sysdeps/s390/s390-64/atomicity.h: Removed.
776 * sysdeps/ia64/atomicity.h: Removed.
777 * sysdeps/powerpc/powerpc32/atomicity.h: Removed.
778 * sysdeps/powerpc/powerpc64/atomicity.h: Removed.
779 * elf/dl-profile.c: Use atomic.h instead of atomicity.h. Adjust
780 use of macros from atomicity.h to new names and semantics.
781 * gmon_mcount.c: Likewise.
782 * malloc/set-freeres.c: Likewise.
783 * nscd/cache.c: Likewise.
784 * stdlib/cxa_finalize.c: Likewise.
785 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
786
ce3a4adf
AO
7872003-03-19 Alexandre Oliva <aoliva@redhat.com>
788
4009bf40 789 * sysdeps/mips/ieee754.h: New file, suitable to replace both
ce3a4adf
AO
790 ../ieee754/ieee754.h and ../ieee754/ldbl-128/ieee754.h, kept
791 mips-specific for now.
792
8c937b84
UD
7932003-03-19 Ulrich Drepper <drepper@redhat.com>
794
4009bf40 795 * stdlib/strtod.c (INTERNAL): While eating trailing zeros handle
85b5767c
UD
796 hexdigits correctly. Reported by Fred Tydeman <tydeman@tybor.com>.
797 * stdlib/tst-strtod.c: Add test for the bug.
798
8c937b84
UD
799 * posix/tst-nice.c (do_test): Remove invalid of return value.
800 Don't run test if initial level != 0.
801
cb8ed941
UD
8022003-03-19 Amos Waterland <apw@us.ibm.com>
803
804 * posix/tst-nice.c: New file.
805 * posix/Makefile (tests): Add tst-nice.
806
32a448ed
RM
8072003-03-18 Roland McGrath <roland@redhat.com>
808
94659495
RM
809 * abilist: New directory of libfoo.abilist files maintained using
810 scripts/merge-abilist.awk and "make update-abi" rules.
811 * Makefile (distribute): Add abilist/*.abilist.
812 * Makerules [$(build-shared) = yes] [$(subdir)] (tests):
813 Depend on check-abi.
814
32a448ed
RM
815 * configure.in: Move $critic_missing check after all AC_CHECK_PROG_VER.
816 * configure: Regenerated.
817
818 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64): Fix name.
819
dacb2bad
UD
8202003-03-18 Ulrich Drepper <drepper@redhat.com>
821
822 * sysdeps/posix/sysconf.c (__sysconf): Handle _SC_MONOTONIC_CLOCK
823 correctly.
824
a14b373c
UD
8252003-03-18 Steven Munroe <sjmunroe@us.ibm.com>
826
827 * sysdeps/powerpc/powerpc64/memcpy.S: New file.
828
d5cb8389
UD
8292003-03-18 Ulrich Drepper <drepper@redhat.com>
830
831 * Versions.def: Add GLIBC_2.3.3 for libpthread.
832
97026947
UD
8332003-03-17 Ulrich Drepper <drepper@redhat.com>
834
835 * sysdeps/generic/libc-start.c [!SHARED &&
836 !LIBC_START_MAIN_AUXVEC_ARG]: Compute beginning of auxvec correctly.
837
98054a05
RM
8382003-03-17 Roland McGrath <roland@redhat.com>
839
840 * include/ctype.h: Revert last change.
841
0a8d8004
UD
8422003-03-17 Ulrich Drepper <drepper@redhat.com>
843
844 * argp/tst-argp1.c: Use test-skeleton.c.
845 * locale/tst-C-locale.c: Likewise.
846
c27d6848
AO
8472003-03-17 Alexandre Oliva <aoliva@redhat.com>
848
5a0e429d
AO
849 * sysdeps/mips/mips64/Implies: Move wordsize-64 to...
850 * sysdeps/mips/mips64/n64/Implies: New file.
851 * sysdeps/mips/mips64/n64/Makefile: New file.
852 * sysdeps/mips/mips64/n64/el/bits/endian.h: New file.
853 * sysdeps/mips/mips64/n32/Implies: New file.
854 * sysdeps/mips/mips64/n32/Makefile: New file.
855 * sysdeps/mips/mips64/n32/el/bits/endian.h: New file.
856 * sysdeps/unix/mips/mips64/n32/sysdep.h: New file.
857 * sysdeps/unix/mips/mips64/n64/sysdep.h: New file.
858 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: New file.
859 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: New file.
860 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: New file.
861 * sysdeps/unix/sysv/linux/mips/mips64/ldconfig.h: New file.
862 * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: New file.
863 * sysdeps/unix/sysv/linux/mips/mips64/recv.c: New file.
864 * sysdeps/unix/sysv/linux/mips/mips64/send.c: New file.
865 * sysdeps/unix/sysv/linux/mips/mips64/syscall.S: New file.
866 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: New file.
867 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: New file.
868 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: New file.
869
fc32835a
AO
870 * sysdeps/unix/sysv/linux/configure.in (libc_cv_slibdir): Use
871 lib64 for mips64/n64 and lib32 for mips64/n32.
872 (ldd_rewrite_script): Needed for all mips64 configurations.
873 * sysdeps/unix/sysv/linux/configure: Rebuilt.
874 * sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed: New file.
875 * sysdeps/unix/sysv/linux/mips/mips64/Dist: New file.
876
c3b519b7
AO
877 * sysdeps/mips/machine-gmon.h (MCOUNT): Define for N32 and N64 as
878 well.
879
c27d6848
AO
880 * sysdeps/unix/sysv/linux/mips/configure.in: New. Pre-process
881 asm/unistd.h into asm-unistd.h.
882 * sysdeps/unix/sysv/linux/mips/configure: Generated.
883 * sysdeps/unix/sysv/linux/mips/Makefile: Do custom processing
884 of syscall list.
885 * sysdeps/unix/sysv/linux/mips/sys/syscall.h: New file.
886 * sysdeps/unix/sysv/linux/mips/clone.S: Don't include
887 asm/unistd.h.
888
935af0f2
AO
889 * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: New file.
890 * sysdeps/unix/sysv/linux/mips/ptrace.c: New file. Use long
891 long type for registers on n32.
892
4947b4b2
AO
893 * sysdeps/mips/bits/wordsize.h: New file, appropriate for all
894 3 ABIs.
895 * sysdeps/mips/mips64/gmp-mparam.h: New file. Define
896 BITS_PER_LONGINT to __WORDSIZE, to match all 3 ABIs.
897 * sysdeps/mips/setjmp_aux.c (STRINGXP, REGS, PTRS): New macros.
898 (__sigsetjmp_aux): Use them. Adjust for all 3 ABIs.
899 * sysdeps/mips/elf/start.S: Adjust for all 3 ABIs.
900 * sysdeps/unix/mips/brk.S: Likewise.
901 * sysdeps/unix/mips/sysdep.S: Likewise.
902 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
903 * sysdeps/mips/bits/setjmp.h (__jmp_buf): Likewise.
904 * sysdeps/mips/sys/ucontext.h: Likewise.
905 * sysdeps/unix/sysv/linux/mips/sys/profcs.h: Likewise.
906 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
907 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
908 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
909 * sysdeps/mips/mips64/bsd-setjmp.S: Likewise.
910 * sysdeps/mips/mips64/setjmp.S: Likewise.
911 * sysdeps/mips/mips64/bits/setjmp.h: Deleted, obsolete.
912 * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Use long long for
913 64-bit types.
914
b6e2f87a
UD
9152003-03-16 Ulrich Drepper <drepper@redhat.com>
916
917 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Define tv here,
918 not at function level.
919 * sysdeps/unix/clock_gettime.c (HANDLE_REALTIME): Likewise.
920
638bb1f3
RM
9212003-03-15 Roland McGrath <roland@redhat.com>
922
8112cc70
RM
923 * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r): int -> size_t
924 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
925 * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Likewise.
926 * nis/nis_table.c (__create_ib_request): Likewise.
927
eb64f8cb 928 * posix/fnmatch_loop.c: Add casts for signedness.
addc92bd 929 * nss/nss_files/files-hosts.c: Likewise.
eb64f8cb
RM
930 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
931 * gmon/gmon.c (write_call_graph): Use u_long for FROM_LEN.
932 * nscd/nscd_getgr_r.c (nscd_getgr_r): Use nscd_ssize_t for CNT.
933
385cce41
RM
934 * configure.in (libc_cv_visibility_attribute): Use AC_TRY_COMMAND,
935 get errors into the log file.
936 (libc_cv_broken_visibility_attribute): Likewise.
937 (libc_cv_broken_alias_attribute): Likewise.
938 (libc_cv_asm_weak_directive): Likewise.
939 (libc_cv_need_minus_P): Likewise.
940 (libc_cv_dot_text): Likewise.
941 (libc_cv_asm_global_directive): Likewise.
942 (libc_cv_asm_type_prefix): Likewise.
943 * configure: Regenerated.
944
638bb1f3
RM
945 * nscd/cache.c (cache_search): Give first arg type `request_type'.
946 * nscd/nscd.h: Update decl.
947
948 * nscd/nscd_getpw_r.c (nscd_getpw_r): Add casts for signedness.
949 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
950 * elf/dl-close.c (_dl_close): Likewise.
951 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): int -> size_t
952 * io/fts.c (fts_build): Likewise.
953 * elf/cache.c (add_to_cache): Likewise.
954 * locale/programs/locarchive.c (show_archive_content): Likewise.
955
956 * posix/fnmatch.c (fnmatch): Tweak __builtin_expect use.
957
958 * include/ctype.h (__ctype_b_loc): Tweak type punning to make gcc 3.3
959 happy.
960 (__ctype_toupper_loc, __ctype_tolower_loc): Likewise.
961
c04dad40
UD
9622003-03-15 Ulrich Drepper <drepper@redhat.com>
963
964 * sysdeps/unix/sysv/linux/ia64/system.c: Use the generic Linux
965 code for most parts.
966
124dcac8
RM
9672003-03-15 Roland McGrath <roland@redhat.com>
968
7eecc0c2
RM
969 * sysdeps/unix/sysv/linux/i386/system.c: Moved to ...
970 * sysdeps/unix/sysv/linux/system.c: ... here.
971 (FORK): Don't #define if already #define'd.
972 * sysdeps/unix/sysv/linux/s390/system.c: File removed.
973 * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]:
974 (__ASSUME_CLONE_THREAD_FLAGS): Define for kernel >= 2.5.64.
975
45e4762c
RM
976 * dlfcn/tst-dlinfo.c: New file.
977 * dlfcn/Makefile (tests): Add tst-dlinfo.
978 ($(objpfx)tst-dlinfo): New target.
979
980 * dlfcn/dlinfo.c: New file.
981 * dlfcn/Makefile (libdl-routines): Add it.
982 * dlfcn/Versions (libdl: GLIBC_2.3.3): Add dlinfo.
983 * dlfcn/dlfcn.h [__USE_GNU]: Declare dlinfo.
984 [__USE_GNU] (RTLD_DI_*): New enum constants.
985 [__USE_GNU] (Dl_serpath, Dl_serinfo): New types.
986 * elf/dl-load.c (cache_rpath): New inline function.
987 (_dl_map_object): Use it.
988 (_dl_rtld_di_serinfo): New function.
989 * sysdeps/generic/ldsodefs.h: Declare it.
990 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
991
124dcac8
RM
992 * sysdeps/powerpc/elf/libc-start.c (AUX_VECTOR_INIT): Define it.
993 (LIBC_START_MAIN, LIBC_START_MAIN_AUXVEC_ARG, MAIN_AUXVEC_ARG)
994 (INIT_MAIN_ARGS): Define, and #include <sysdeps/generic/libc-start.c>.
995 (__libc_start_main): Just call the generic one for most of the work.
996
997 * sysdeps/generic/libc-start.c [LIBC_START_MAIN]: If defined, define a
998 static function by that name instead of BP_SYM (__libc_start_main).
999 [LIBC_START_MAIN_AUXVEC_ARG]: Take AUXVEC as argument.
1000 [MAIN_AUXVEC_ARG]: Pass 4th argument to MAIN.
1001 [INIT_MAIN_ARGS]: Give INIT the same args as MAIN.
1002
1003 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_PLATFORM_AUXV]:
1004 Use this macro for extra AT_* cases.
1005 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c (DL_PLATFORM_AUXV):
1006 New macro, guts from ...
1007 (__aux_init_cache): ... here, function removed.
1008 (DL_PLATFORM_INIT): Don't define this.
1009
1010 * sysdeps/powerpc/powerpc32/memset.S: Put __cache_line_size in bss.
1011 * sysdeps/powerpc/powerpc64/memset.S: Likewise.
1012
e993ec9a 1013 * Versions.def (libthread_db): Add GLIBC_2.3.3 set.
124dcac8 1014
39d8c1a2
RM
10152003-03-14 Roland McGrath <roland@redhat.com>
1016
1017 * dlfcn/dlerror.c (dlerror): If objname is "", don't put ": " after it.
1018
c58859ce
RM
10192003-03-14 Jakub Jelinek <jakub@redhat.com>
1020
1021 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Fix a typo.
1022
1023 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
1024 sysdeps/posix/pause.c instead of sysdeps/unix/common/pause.c.
1025
44bc0afb
AO
10262003-03-14 Alexandre Oliva <aoliva@redhat.com>
1027
882dda66
AO
1028 * sysdeps/mips/fpu/bits/mathdef.h: New.
1029 (__NO_LONG_DOUBLE_MATH): Define for o32.
1030
4abdb6ca
AO
1031 * sysdeps/mips/sys/asm.h: Formatting changes.
1032 (PTR, PTRSIZE, PTRLOG): Adjust for all 3 ABIs.
1033 (CPADD): Define for all of them.
1034 (SETUP_GP, SETUP_GPX, SETUP_GPX_L, SAVE_GP, SETUP_GP64,
1035 SETUP_GPX64, SETUP_GPX64_L, RESTORE_GP64, USE_ALT_CP,
1036 NARGSAVE): Define per ABI spec.
1037 (END): Don't redefine.
1038 (LONG_SLL, LONG_SLLV, LONG_SRL, LONG_SRLV, LONG_SRA,
1039 LONG_SRAV): Remove duplicate definitions.
1040 (PTR_ADD, PTR_ADDI, PTR_ADDU, PTR_ADDIU, PTR_SUB, PTR_SUBI,
1041 PTR_SUBU, PTR_SUBIU, PTR_L, PTR_S, PTR_SLL, PTR_SLLV, PTR_SRL,
1042 PTR_SRLV, PTR_SRA, PTR_SRAV, PTR_SCALESHIFT): Define for n32.
1043 (PTR_LA): Define for all 3 ABIs.
1044
365eccdb
AO
1045 * sysdeps/mips/dl-machine.h: Include sys/asm.h.
1046 (elf_machine_matches_host): Prevent linking of o32 and n32
1047 together.
1048 (elf_machine_dynamic): Document assumption on $gp.
1049 (STRINGXP, STRINGXV, STRINGV_): New macros.
1050 (elf_machine_load_address): Use them to stringize PTR_LA and
1051 PTR_SUBU.
1052 (ELF_DL_FRAME_SIZE, ELF_DL_SAVE_ARG_REGS,
1053 ELF_DL_RESTORE_ARG_REGS, IFABIO32): New macros used in...
1054 (_dl_runtime_resolve): Adjust it for all 3 ABIs.
1055 (__dl_runtime_resolve): Cast the symtab initializer to the
1056 right type.
1057 (RTLD_START): Use it. Adjust it for all 3 ABIs.
1058 (elf_machine_rel): Mark as always_inline in RTLD_BOOTSTRAP.
1059 Handle 64-bit R_MIPS_REL composite relocation and accept
1060 R_MIPS_64 relocations to shift addend size to 64 bits.
1061 Document assumption regarding local GOT entries. Document
1062 backward-compatibility departing from the ABI behavior in
1063 applying relocations that reference section symbols, no longer
1064 used. Support relocations to mis-aligned offsets.
1065 * sysdeps/mips/mips64/dl-machine.h: Deleted, obsolete.
1066
d4c803f8
AO
1067 * sysdeps/unix/sysv/linux/mips/readelflib.c: New file.
1068
84c63a76
AO
1069 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h
1070 (_KERNEL_NSIG_BPW): Define in terms of _MIPS_SZLONG.
1071 * sysdeps/unix/sysv/linux/mips/sigaction.c: Define restore and
1072 restore_rt functions. Use them.
1073
44bc0afb
AO
1074 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
1075 .set mips2 on new abis.
1076
564cd8b6
UD
10772003-03-13 Ulrich Drepper <drepper@redhat.com>
1078
1079 * posix/getconf.c: Recognize POSIX2_SYMLINKS.
1080 * sysdeps/generic/bits/confname.h: Define _PC_2_SYMLINKS.
1081 * sysdeps/posix/fpathconf.c: Handle _PC_2_SYMLINKS.
1082 * sysdeps/posix/pathconf.c: Likewise.
1083 * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
1084 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
1085 * sysdeps/unix/sysv/linux/pathconf.h: Define statfs_symlinks.
1086
1087 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define some more magic
1088 words.
1089
3be9dc8e
AO
10902003-03-14 Alexandre Oliva <aoliva@redhat.com>
1091
1092 * include/gmp.h: Include/gmp-mparam.h.
1093 * stdlib/strtod.c: Include gmp-mparam.h before gmp.h and
1094 gmp-impl.h.
1095
a77dcecf
AO
1096 * elf/dl-conflict.c: Don't compile _dl_resolve_conflicts if
1097 ELF_MACHINE_NO_RELA is set.
1098 * elf/rtld.c (dl_main): No prelink support for REL-only.
1099
b5bac573
AO
1100 * sysdeps/generic/ldconfig.h (FLAG_MIPS64_LIBN32,
1101 FLAG_MIPS64_LIBN64): Define.
1102 * elf/cache.c (print_entry): Handle mips64 n32 and n64.
1103
5ace1393
AO
1104 * sysdeps/mips/memcpy.S: Map t0-3 to a4-7 on new abis.
1105 * sysdeps/mips/memset.S: Likewise.
1106 * sysdeps/mips/sys/regdef.h: Alias a4-7 or t0-3 to $8-11
1107 depending on the ABI.
1108
1b12a2cb
AO
1109 * sysdeps/mips/atomicity.h (exchange_and_add, atomic_add):
1110 Don't .set mips2 on new abi.
1111 (compare_and_swap): Likewise. Support 64-bit longs on n64.
1112
264befa8
AO
1113 * stdlib/fpioconst.h: Include gmp.h with angle brackets.
1114
d8a5edc2
RM
11152003-03-13 Roland McGrath <roland@redhat.com>
1116
1117 * elf/dl-load.c (_dl_map_object_from_fd): Bail if no PT_LOAD phdrs
1118 found. Reported by Alexandre Oliva <aoliva@redhat.com>.
1119
11202003-03-13 Alexandre Oliva <aoliva@redhat.com>
1121
1122 * stdio-common/_itoa.c (_itoa_base_table): Make 64-bit
1123 literals long long.
1124 * stdlib/fpioconst.c: Likewise.
1125 * stdlib/strtod.c: Likewise.
1126
1127 * sysdeps/mips/add_n.S: Use L macro for local labels.
1128 * sysdeps/mips/addmul_1.S: Likewise.
1129 * sysdeps/mips/lshift.S: Likewise.
1130 * sysdeps/mips/memcpy.S: Likewise.
1131 * sysdeps/mips/memset.S: Likewise.
1132 * sysdeps/mips/mul_1.S: Likewise.
1133 * sysdeps/mips/rshift.S: Likewise.
1134 * sysdeps/mips/sub_n.S: Likewise.
1135 * sysdeps/mips/submul_1.S: Likewise.
1136 * sysdeps/mips/mips64/add_n.S: Likewise.
1137 * sysdeps/mips/mips64/addmul_1.S: Likewise.
1138 * sysdeps/mips/mips64/lshift.S: Likewise.
1139 * sysdeps/mips/mips64/mul_1.S: Likewise.
1140 * sysdeps/mips/mips64/rshift.S: Likewise.
1141 * sysdeps/mips/mips64/sub_n.S: Likewise.
1142 * sysdeps/mips/mips64/submul_1.S: Likewise.
1143 * sysdeps/unix/mips/sysdep.h: Define L() according to ABI
1144 conventions. Define END as in sys/asm.h.
1145 * sysdeps/unix/mips/sysdep.S: Likewise.
1146 * sysdeps/unix/mips/wait.S: Likewise.
1147 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
1148
1149 * sysdeps/ieee754/dbl-64/dbl2mpn.c (__mpn_extract_double):
1150 Cast shifted values that may be too narrow to mp_limb_t.
1151 * sysdeps/ieee754/dbl-64/mpn2dbl.c (__mpn_construct_double):
1152 Likewise.
1153 * sysdeps/ieee754/flt-32/mpn2flt.c (__mpn_construct_float):
1154 Likewise.
1155 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c
1156 (__mpn_extract_long_double): Likewise.
1157 * sysdeps/ieee754/ldbl-128/mpn2ldbl.c
1158 (__mpn_construct_long_double): Likewise.
1159 * sysdeps/ieee754/ldbl-96/ldbl2mpn.c
1160 (__mpn_extract_long_double): Likewise.
1161 * sysdeps/ieee754/ldbl-96/mpn2ldbl.c
1162 (__mpn_construct_long_double): Likewise.
1163
6461e577
RM
11642003-03-13 Roland McGrath <roland@redhat.com>
1165
1166 * elf/Makefile ($(objpfx)librtld.mk): Tweak regexp so that one-line
1167 entries in the map file match too.
1168
6fde8d53
AJ
11692003-03-13 Guido Guenther <agx@sigxcpu.org>
1170
1171 * sysdeps/unix/sysv/linux/mips/clone.S: introduce and use local
1172 label .Lthread_start since current binutils don't allow branches
1173 to globally visible symbols.
1174
b5ec5617
UD
11752003-03-13 Jakub Jelinek <jakub@redhat.com>
1176
1177 * sysdeps/unix/sysv/linux/ia64/sysdep.h (BREAK_INSN_1, BREAK_INSN,
1178 ASM_OUTARGS_0, ASM_OUTARGS_1, ASM_OUTARGS_2, ASM_OUTARGS_3,
1179 ASM_OUTARGS_4, ASM_OUTARGS_5, ASM_OUTARGS_6): Define.
1180 (INTERNAL_SYSCALL, INLINE_SYSCALL): Use it. Make syscall arguments
1181 clobbered by the syscall.
1182 (ASM_ARGS_1, ASM_ARGS_2, ASM_ARGS_3, ASM_ARGS_4, ASM_ARGS_5,
1183 ASM_ARGS_6): Change constraints from r to index of corresponding
1184 output register.
1185 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Swap
1186 ptid and ctid to match kernel.
1187 * sysdeps/unix/sysv/linux/ia64/system.c (FORK): Likewise.
1188
3cd69852
RM
11892003-03-12 Steven Munroe <sjmunroe@us.ibm.com>
1190
b5ec5617 1191 * sysdeps/powerpc/powerpc64/elf/configure.in: Remove
3cd69852 1192 AC_DEFINE(PI_STATIC_AND_HIDDEN). Not supported for PowerPC64.
b5ec5617 1193 * sysdeps/powerpc/powerpc64/elf/configure: Regenerated.
3cd69852 1194
d63609a7
RM
11952003-03-11 Roland McGrath <roland@redhat.com>
1196
1197 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
1198 Check SYM_MAP rather than SYM as definedness check.
1199 Handle R_PPC64_ADDR32, R_PPC64_ADDR30, and R_PPC64_REL64 relocs.
1200 Don't handle R_PPC64_REL24 reloc.
1201 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
1202
1203 * sysdeps/powerpc/powerpc64/dl-machine.h
1204 [USE_TLS] (elf_machine_type_class): Match all the TLS relocs in a
1205 block, so we cover all the TPREL16* flavors without 6 ||s.
1206 [USE_TLS] (elf_machine_tprel): New function.
1207 (elf_machine_rela) [USE_TLS]: Use elf_machine_tprel for TPREL64 reloc,
1208 and handle TPREL16 relocs too. Return rather than break for DTPREL64.
1209 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
1210
b874af99
UD
12112003-03-11 Ralf Baechle <ralf@linux-mips.org>
1212
1213 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start): Use jal
1214 instead of jalr to invoke subroutine so restoring the $gp register
1215 will work properly.
1216
6c477888
UD
12172003-03-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
1218
1219 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (__NR_pread64): Define
1220 to __NR_pread if not defined.
1221 (__NR_pwrite64): Define to __NR_pwrite if not defined.
1222
f006d3a0
UD
12232003-03-11 Jakub Jelinek <jakub@redhat.com>
1224
1225 * sysdeps/unix/sysv/linux/ia64/system.c: New file.
1226 * sysdeps/unix/sysv/linux/kernel-features.h
1227 (__ASSUME_CLONE_THREAD_FLAGS): Define for IA-64 and s390* with
1228 kernel >= 2.5.64.
1229
b33e6163
RM
12302003-03-11 Jakub Jelinek <jakub@redhat.com>
1231
1232 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): If CNT == 1,
1233 allocate space even for the trailing '/'.
1234 Reported by John Reiser <jreiser@BitWagon.com>.
1235
1236 * sysdeps/unix/sysv/linux/ia64/sysdep.h (LOAD_ARGS_6, ASM_ARGS_6,
1237 ASM_CLOBBERS_6): Define.
1238 (ASM_CLOBBERS_5): Use ASM_CLOBBERS_6.
1239 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Reorder arguments
1240 to match IA-32 order.
1241 * sysdeps/unix/sysv/linux/i386/clone.S: Fix comment.
1242
19afbd2c
RM
12432003-03-10 Steven Munroe <sjmunroe@us.ibm.com>
1244
f006d3a0 1245 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't clobber R7.
19afbd2c
RM
1246 Copy extra params for NPTL to registers used in clone syscall.
1247
ce2290cb
RM
12482003-03-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
1249
1250 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Correct system
1251 call names for pread and pwrite.
1252
e48f9638
RM
12532003-03-10 Roland McGrath <roland@redhat.com>
1254
d38c777e
RM
1255 * dlfcn/Makefile (libdl-routines): Add dladdr1.
1256 * dlfcn/dladdr1.c: New file.
1257 * dlfcn/dlfcn.h [__USE_GNU]: Declare dladdr1.
1258 [__USE_GNU] (RTLD_DL_SYMENT, RTLD_DL_LINKMAP): New enum constants.
1259 * elf/dl-addr.c (_dl_addr): Take new args, a struct link_map ** and
1260 a const ElfNN_Sym ** to fill in.
1261 * include/dlfcn.h: Update decl. Include <link.h>.
1262 * dlfcn/dladdr.c (dladdr): Update caller.
1263 * malloc/mtrace.c (tr_where): Likewise.
1264 * sysdeps/generic/elf/backtracesyms.c: Likewise.
1265 * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
1266 * dlfcn/Versions (libdl: GLIBC_2.3.3): New set, add dladdr1.
1267 * Versions.def (libdl): Define GLIBC_2.3.3 set.
1268
e48f9638
RM
1269 * sysdeps/unix/make-syscalls.sh: Generate $(compile-syscall) for
1270 assembler command.
1271 * sysdeps/unix/Makefile (compile-syscall): New variable.
1272 Pass -g0 to compiler for assembling syscall stubs from stdin.
1273
1274 * sysdeps/i386/sysdep.h [HAVE_CPP_ASM_DEBUGINFO]
1275 (STABS_CURRENT_FILE, STABS_CURRENT_FILE1, STABS_FUN, STABS_FUN_END):
1276 Define these to do nothing.
1277
1278 * configure.in: New check for -g on .S files.
1279 * configure: Regenerated.
1280 * config.make.in (have-cpp-asm-debuginfo): New variable.
1281 * config.h.in (HAVE_CPP_ASM_DEBUGINFO): New #undef.
1282 * Makeconfig (ASFLAGS): New variable, if undefined and
1283 $(have-cpp-asm-debuginfo), take options matching -g% from $(CFLAGS).
1284 * Makerules (compile.S, COMPILE.S): Use $(ASFLAGS).
1285
fcc60e3b
RM
12862003-03-09 Roland McGrath <roland@redhat.com>
1287
1288 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Take 3 new args
1289 used by NPTL on new kernels. From Paul Mackerras <paulus@samba.org>.
1290
e51838c8
UD
12912003-03-09 Ulrich Drepper <drepper@redhat.com>
1292
1293 * po/fi.po: Update from translation team.
8049ef78 1294 * po/ca.po: Likewise.
c37cae9e 1295 * po/da.po: Likewise.
e51838c8 1296
05ae97d8
UD
12972003-03-08 Ulrich Drepper <drepper@redhat.com>
1298
1299 * rt/tst-aio7.c (do_test): Change BYTES into a #define.
1300
b6b9ee9b
UD
13012003-03-07 Ulrich Drepper <drepper@redhat.com>
1302
fcc60e3b 1303 * rt/tst-aio7.c (do_test): Give BUFF permanent extent, too.
35457070 1304
b6b9ee9b
UD
1305 * sysdeps/powerpc/fpu/w_sqrt.c: Fix comment.
1306
6326c93c
RM
13072003-03-07 Roland McGrath <roland@redhat.com>
1308
1309 * sysdeps/s390/s390-32/sysdep.h (L): Use .Lfoo instead of foo.
1310 * sysdeps/s390/s390-64/sysdep.h (L): Likewise.
1311
2090a1d0
AJ
13122003-03-04 Guido Guenther <agx@sigxcpu.org>
1313
1314 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove unneeded
1315 stubs, we have INLINE_SYSCALL.
1316 * sysdeps/unix/sysv/linux/mips/bits/mman.h: Define MAP_POPULATE,
1317 MAP_NONBLOCK.
1318
696efd11
RM
13192003-03-06 Roland McGrath <roland@redhat.com>
1320
1321 * rt/tst-aio7.c (do_test): Revert last change. Instead, give CB1
1322 permanent extent and add a comment about testing its implicit teardown.
1323
f1a56a2b
RM
13242003-03-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
1325
1326 * rt/tst-aio7.c (do_test): Cancel i/o on CB1 before it's out of scope.
1327
49400d0e
UD
13282003-03-05 Ulrich Drepper <drepper@redhat.com>
1329
1330 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Fix
1331 reversed __builtin_expect expectation.
1332
5fc728a2
RM
13332003-03-05 Roland McGrath <roland@redhat.com>
1334
1335 * stdio-common/sscanf.c: Use prototype defn with ... syntax.
1336 * libio/swscanf.c: Likewise.
1337 * libio/swprintf.c: Likewise.
1338
510793fd
RM
13392003-03-04 Roland McGrath <roland@redhat.com>
1340
790eed83
RM
1341 * sysdeps/powerpc/powerpc64/dl-machine.h: Include <dl-tls.h>.
1342 (elf_machine_rela): Always use RESOLVE_MAP, needed for
1343 R_PPC64_JMP_SLOT as well as TLS cases.
1344 (BIT_INSERT): Move parenthesis where it ought to have been.
1345 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
1346
510793fd
RM
1347 * posix/confstr.c (confstr): Correct STRING_LEN values for
1348 _CS_GNU_LIBC_VERSION and _CS_GNU_LIBPTHREAD_VERSION, add missing
1349 break. Reported by Alexandre Julliard <julliard@winehq.com>.
1350
0de28d5c
UD
13512003-03-04 Jakub Jelinek <jakub@redhat.com>
1352
1353 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
1354
269e8af7
UD
13552003-03-04 Ulrich Drepper <drepper@redhat.com>
1356
e2b80a58
UD
1357 * sysdeps/unix/sysv/linux/x86_64/clone.S: Add support for the new
1358 clone parameters.
1359
269e8af7
UD
1360 * po/sv.po: Update from translation team.
1361
330a187b 13622003-03-04 Andreas Jaeger <aj@suse.de>
269e8af7 1363 Ulrich Drepper <drepper@redhat.com>
330a187b
AJ
1364
1365 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Fix comments.
1366
4f6f0a8f
UD
13672003-03-03 Ulrich Drepper <drepper@redhat.com>
1368
cc775edf
UD
1369 * sysdeps/generic/dl-sysdep.h: Add double include protection.
1370
75081542
UD
1371 * po/tr.po: Update from translation team.
1372
6fffb9a2
UD
1373 * elf/dl-load.c (_dl_map_object_from_fd): Determine whether there
1374 are holes between the segments. Only call mprotect to set
1375 proection to PROT_NONE if there are some.
1376
1377 * elf/dl-load.c (struct filebuf): Actually use FILEBUF_SIZE.
1378 Update comment.
1379
4f6f0a8f
UD
1380 * include/sched.h (__clone2): Use ... instead of adding all the
1381 new parameters.
1382
ce78b460
RM
13832003-03-03 Roland McGrath <roland@redhat.com>
1384
868b9d6a
RM
1385 * elf/dl-load.c (struct filebuf): Fix typo in last change.
1386
ce78b460
RM
1387 * sysdeps/powerpc/powerpc32/elf/configure.in: Don't define
1388 PI_STATIC_AND_HIDDEN.
ce78b460 1389
625f22fc
UD
13902003-03-03 Ian Wienand <ianw@gelato.unsw.edu.au>
1391
1392 * sysdeps/unix/sysv/linux/ia64/clone2.S: Update to take extra clone
1393 flags.
1394 * include/sched.h: Update clone2 prototype.
1395
71502ebe
UD
13962003-03-03 Andreas Jaeger <aj@suse.de>
1397
1398 * math/tgmath.h (__TGMATH_UNARY_REAL_RET_ONLY): New definition.
1399 (llrint): Use it to correct return type.
1400 (lrint): Likewise.
1401 (lround): Likewise.
1402 (llround): Likewise.
1403
d15a8404
UD
14042003-03-03 Ulrich Drepper <drepper@redhat.com>
1405
ca97fb53
UD
1406 * elf/dl-load.c (struct filebuf): For 64-bit platforms use 640
1407 byte filebuf size.
1408
1739d268
UD
1409 * libio/fileops.c (_IO_new_file_fopen): Close stillborn descriptor
1410 if ccs parameter isn't valid. Reported by Andreas Schwab.
1411
14122003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
1413
1414 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Add support
1415 for system call numbers > 255.
1416 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.h (DO_CALL,
1417 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
1418 INTERNAL_SYSCALL): Likewise.
1419 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
1420 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.h (DO_CALL,
1421 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
1422 INTERNAL_SYSCALL): Likewise.
1423
14242003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
1425
1426 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Don't free the dtv
1427 array if it is the initial dtv.
1428
14292003-03-03 Ulrich Drepper <drepper@redhat.com>
1430
1431 * po/es.po: Update from translation team.
1432 * po/fr.po: Likewise.
71502ebe 1433 * po/gl.po: Likewise.
1739d268
UD
1434 * po/sk.po: Likewise.
1435 * po/sv.po: Likewise.
1436
d15a8404
UD
1437 * sysdeps/unix/sysv/linux/syscalls.list: Add remap_file_pages entry.
1438 * misc/sys/mman.h: Add prototype for remap_file_pages.
1439 * sysdeps/generic/remap_file_pages.c: New file.
3c531a87 1440 * misc/Makefile (routines): Add remap_file_pages.
a05be180 1441 * misc/Versions [libc:GLIBC_2.3.3]: Add remap_file_pages.
d15a8404
UD
1442
1443 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_POPULATE
1444 and MAP_NONBLOCK.
1445 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
1446 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise
1447 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
1448 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
1449 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
1450 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
1451 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
1452 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
1453
ea6a015b
RM
14542003-03-03 Roland McGrath <roland@redhat.com>
1455
a49f5762
RM
1456 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Revert last change.
1457 * sysdeps/ia64/dl-machine.h: Likewise.
1458 * sysdeps/ia64/dl-symaddr.c (_dl_symbol_address): Remove const from
1459 argument type.
1460 * sysdeps/ia64/dl-lookupcfg.h: Update decl.
1461
1462 * sysdeps/wordsize-64/strtol_l.c (strtoll_l): Define as weak alias.
1463 * sysdeps/wordsize-64/strtoul_l.c (strtoull_l): Define as weak alias.
1464 * locale/Versions (libc: GLIBC_2.3): Move those to ...
1465 * sysdeps/wordsize-32/Versions (libc: GLIBC_2.3): ... here, new file.
1466 * sysdeps/wordsize-64/Versions (libc: GLIBC_2.3.3) Likewise.
1467 * Versions.def (libc): Add GLIBC_2.3.3 set.
1468
ea6a015b
RM
1469 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Add const to MAP arg.
1470 * sysdeps/ia64/dl-machine.h: Update decl.
1471
62584540
AJ
14722003-03-03 Andreas Jaeger <aj@suse.de>
1473
d15a8404 1474 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Add missing brace.
62584540 1475
78c3fb45
RM
14762003-03-02 Roland McGrath <roland@redhat.com>
1477
1478 * scripts/abilist.awk: Reject data items with apparent 0 size.
1479
1480 * scripts/merge-abilist.awk: Restore hack to elide pattern foo.*/bar
1481 after foo.* as if it were a duplicate.
1482
1483 * sysdeps/unix/sysv/linux/ia64/brk.S: Add .type and .size for __curbrk.
1484
885bafa1
UD
14852003-03-02 Ulrich Drepper <drepper@redhat.com>
1486
1be3d664
UD
1487 * elf/dl-load.c (struct filebuf): Reduce buf array to 512 bytes.
1488
885bafa1
UD
1489 * sysdeps/generic/bits/time.h: Define CLOCK_MONOTONIC.
1490 * sysdeps/posix/clock_getres.c: Define code for CLOCK_REALTIME only
1491 if not already defined. Use SYSDEP_GETRES to allow other files to
1492 provide alternative implementations.
1493 * sysdeps/unix/sysv/linux/clock_getres.c: New file
1494 * sysdeps/unix/clock_gettime.c: Define code for CLOCK_REALTIME only
1495 if not already defined. Use SYSDEP_GETTIME to allow other files to
1496 provide alternative implementations.
1497 * sysdeps/unix/sysv/linux/clock_gettime.c: New file.
1498 * sysdeps/unix/clock_settime.c: Define code for CLOCK_REALTIME only
1499 if not already defined. Use SYSDEP_GETTIME to allow other files to
1500 provide alternative implementations.
1501 * sysdeps/unix/sysv/linux/clock_settime.c: New file.
1502 * sysdeps/unix/clock_nanosleep.c: Use SYSDEP_NANOSLEEP to allow
1503 other files to provide alternative implementations. Rearrange
1504 tests for invalid parameters.
1505 * sysdeps/unix/sysv/linux/clock_nanosleep.c: New file.
1506 * sysdeps/unix/sysv/linux/sysconf.c: New file.
1507 * sysdeps/unix/sysv/linux/kernel-features.h: Define
78c3fb45 1508 __ASSUME_POSIX_TIMERS for Linux 2.5.63 and up.
885bafa1
UD
1509 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
1510 _POSIX_MONOTONIC_CLOCK.
1511
bb0ddc2f
RM
15122003-03-02 Roland McGrath <roland@redhat.com>
1513
8f3846a9
RM
1514 * scripts/merge-abilist.awk: More checks for bogus input.
1515 Uniquify duplicate config names.
1516
1517 * scripts/abilist.awk: Don't distinguish weak symbols in normal output.
1518
7551556f
RM
1519 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow): Renamed
1520 from dl_reloc_overflow, make global.
1521 (__process_machine_rela): Update callers.
1522 * sysdeps/powerpc/powerpc32/dl-machine.h: Declare _dl_reloc_overflow.
1523 Add attribute_hidden to __process_machine_rela decl.
1524 (elf_machine_type_class, elf_machine_rela): Handle 16-bit TLS relocs.
1525
3a601d31
RM
1526 * sysdeps/generic/libc-start.c (__libc_start_main): Don't assign const
1527 variable.
1528
bb0ddc2f
RM
1529 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
1530 Don't use weak_extern for dl_rtld_map. Instead check only if [SHARED].
1531 (elf_machine_rela): Clean up.
1532
1533 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Clean up.
1534
1535 PowerPC TLS support contributed by Paul Mackerras <paulus@samba.org>.
1536 * sysdeps/powerpc/powerpc32/elf/configure.in: New file.
1537 * sysdeps/powerpc/powerpc32/elf/configure: New generated file.
1538 * elf/tls-macros.h [__powerpc__ && !__powerpc64__]
1539 (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Define them.
1540 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Support
1541 new relocs for TLS.
1542
1543 * sysdeps/powerpc/dl-tls.h (TLS_TP_OFFSET, TLS_DTV_OFFSET): Move these
1544 macros out of [SHARED].
1545 (TLS_TPREL_VALUE, TLS_DTPREL_VALUE): New macros.
1546
1547 * elf/elf.h: Define R_PPC_* relocs for TLS support.
1548 Clean up R_PPC64_* macro definition comments.
7ed33cba 1549
d1149385
RM
1550 * configure.in: In "running configure fragment for" message,
1551 omit $srcdir from the name if we prepended it.
1552 * configure: Regenerated.
1553
7ed33cba
RM
1554 * elf/dl-reloc.c (allocate_static_tls): Fix calculations.
1555 From Jakub Jelinek <jakub@redhat.com>.
1556
1557 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Revert last change,
1558 which duplicated the O_DIRECT defn.
1559
15602003-03-01 GOTO Masanori <gotom@debian.or.jp>
1561
1562 * stdlib/stdlib.h: Add missing __USE_BSD enclosure for BSD derived
1563 random functions.
1564
4191f43d
AS
15652003-03-01 Andreas Schwab <schwab@suse.de>
1566
7ed33cba
RM
1567 * resolv/Makefile (tests): Don't depend on
1568 $(objpfx)mtrace-tst-leaks when cross compiling.
1569
4191f43d
AS
1570 * sysdeps/m68k/dl-machine.h (_dl_start_user): Access
1571 __libc_stack_end through GOT since it is a global symbol.
1572
85c54a32
UD
15732003-03-01 GOTO Masanori <gotom@debian.or.jp>
1574
1575 * argp/argp.h: Fix a typo.
1576 Reported by H.S.Teoh <hsteoh@quickfur.ath.cx>.
1577
1578 * manual/terminal.texi: Fix cfmakeraw() definition from int to void.
1579
15802003-02-27 Pat Rankin <rankin@pactechdata.com>
1581
1582 * posix/regexec.c (proceed_next_node): Cast re_string_get_buffer to
1583 char *.
1584 (get_subexp): Likewise.
1585
a6861e64
UD
15862003-03-01 GOTO Masanori <gotom@debian.or.jp>
1587
1588 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DIRECT): Define.
1589
15902003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
1591
1592 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_DIRECT): Define.
1593
a6963e69
RM
15942003-02-27 Roland McGrath <roland@redhat.com>
1595
1596 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Remove
1597 special case for dl_rtld_map in R_PPC64_RELATIVE; it's harmless to
1598 repeat it and avoids the test for the common case.
1599 Clean up and fix calculations for TLS relocs.
1600
1601 * sysdeps/powerpc/powerpc64/dl-tls.h: Moved to ...
1602 * sysdeps/powerpc/dl-tls.h: ... here.
1603 (TLS_TP_OFFSET): New macro.
1604
1605 * sunrpc/svc_udp.c (svcudp_recv): Add a cast to last change.
1606
427f5fa1
UD
16072003-02-27 Ulrich Drepper <drepper@redhat.com>
1608
1609 * sysdeps/i386/fpu/libm-test-ulps: Increase ULPs for yn due to
1610 code generation changes in recent gcc.
1611
73a061bb
RM
16122003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
1613
1614 * sysdeps/powerpc/fpu/fpu_control.h (_FPU_GETCW, _FPU_SETCW):
1615 Rename argument to avoid symbol conflict.
1616
1617 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h
1618 [__USE_GNU] (O_DIRECT): New macro.
1619
d2637c70
UD
16202003-02-24 David Mosberger <davidm@hpl.hp.com>
1621
1622 * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Fix
1623 unwind info.
1624
d148ed25
UD
16252003-02-27 Ulrich Drepper <drepper@redhat.com>
1626
e361e438
UD
1627 * resolv/res_libc.c [USE___THREAD] (_res): Don't need the
1628 initializer anymore now that res_thread_freeres is more careful.
1629
d148ed25
UD
1630 * sunrpc/svc_udp.c (svcudp_recv): Remove all control messages
1631 except the PKTINFO. Reset interface in PKTINFO.
dbf6131c 1632 Patch by Neil Brown <neilb@cse.unsw.edu.au> [PR libc/4973].
d148ed25 1633
fec41719
RM
16342003-02-25 Steven Munroe <sjmunroe@us.ibm.com>
1635
d148ed25
UD
1636 * elf/elf.h: Add new R_PPC64_* relocs for TLS.
1637 * elf/tls-macros.h [__powerpc64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
1638 Define.
fec41719
RM
1639 * sysdeps/powerpc/powerpc64/elf/configure.in: New file.
1640 * sysdeps/powerpc/powerpc64/elf/configure: New file (generated).
afafddab
RM
1641 * sysdeps/powerpc/powerpc64/dl-machine.h: Support new TLS relocs.
1642 * sysdeps/powerpc/powerpc64/dl-tls.h: New file.
fec41719 1643
d148ed25 1644 * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
fec41719
RM
1645 Do DL_SYSDEP_OSCHECK here, matching 2002-12-01 change to generic file.
1646
56ce76ea
AJ
16472003-02-25 Andreas Jaeger <aj@suse.de>
1648
1649 * manual/memory.texi (Malloc Tunable Parameters): Clarify
1650 behaviour of M_MMAP_THRESHOLD.
1651
724fad20
RM
16522003-02-25 Roland McGrath <roland@redhat.com>
1653
1654 * resolv/res_init.c (res_thread_freeres): Bail out if _res.nscount is
1655 zero, inidicating _res was not initialized yet.
1656
80d80779
UD
16572003-02-24 Ulrich Drepper <drepper@redhat.com>
1658
1659 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Remove EACCES
1660 test.
1661
81b47a8b
RM
16622003-02-24 Roland McGrath <roland@redhat.com>
1663
1664 * sysdeps/posix/pause.c: Add LIBC_CANCEL_HANDLED.
1665
de217051
RM
16662003-02-23 Roland McGrath <roland@redhat.com>
1667
1668 * sysdeps/posix/pause.c: New file.
1669 * sysdeps/unix/common/pause.c: File removed.
1670
fd1a0d0c
UD
16712003-02-23 Ulrich Drepper <drepper@redhat.com>
1672
cdd8e46f
UD
1673 * sysdeps/generic/bits/confname.h: Remove #ifs.
1674
5a6bbb41
UD
1675 * posix/Makefile (CFLAGS-regex.c): Remove RE_ENABLE_I18N definition.
1676 * posix/regex_internal.h (RE_ENABLE_I18N): Pretty printing.
1677
fd1a0d0c
UD
1678 * resolv/res_libc.c [USE___THREAD] (_res): Initialize _vcsock
1679 element to -1.
1680
249062b0
UD
16812003-02-22 Ulrich Drepper <drepper@redhat.com>
1682
1683 * sysdeps/generic/dl-sysdep.c: Avoid warning.
1684
92cc462c
RM
16852003-02-22 Roland McGrath <roland@redhat.com>
1686
ce84ab61
RM
1687 * resolv/tst-leaks.c: New file by Daniel Jacobowitz <drow@mvista.com>.
1688 * resolv/Makefile (tests): Add tst-leaks.
1689 ($(objpfx)tst-leaks): Depend on $(objpfx)libresolv.so.
1690 (tst-leaks-ENV): New variable.
1691 ($(objpfx)mtrace-tst-leaks): New target.
1692 (tests): Depend on it.
1693
d2d442a5
RM
1694 * include/libc-internal.h: Declare __libc_thread_freeres.
1695
7a0c303e
RM
1696 * Makerules: Fix last change to use $($(subdir)-version) when set.
1697
cc8bfce9
RM
1698 * Makerules (install-lib-nosubdir): Depend on installed
1699 libfoo-X.Y.Z.so and libfoo.so.NN files so they are installed
1700 regardless of the libfoo.so target's dependencies.
1701
92cc462c
RM
1702 * MakeTAGS (sub-make-vars): New variable, includes generating=t.
1703 Use that in $(MAKE) calls.
1704
e57f9f75
UD
17052003-02-22 Ulrich Drepper <drepper@redhat.com>
1706
819c56e7
UD
1707 * catgets/gencat.c (read_input_file): Collision between
1708 auto-assigned numbers and user-defined nubmers is not fatal.
1709 Handle it.
1710 Patch by Michael M. Lampkin <michael.lampkin@ieee.org>.
c780aa21
UD
1711 * catgets/Makefile: Add rules to run test2.msg test.
1712 * catgets/test2.msg: New file.
819c56e7
UD
1713
1714 * catgets/gencat.c (main): Return 1 if messages have been printed.
1715
757f9fcb
UD
1716 * iconv/iconv_prog.c (main): Unify messages.
1717
e57f9f75
UD
1718 * stdlib/strtod.c (INTERNAL): Remove bogus clearing of second word
1719 when shifting retval.
1720 * stdlib/tst-strtod.c (main): Add strtold test case.
1721 Reported by Fred J. Tydeman <tydeman@tybor.com>.
1722
e8783fd5
RM
17232003-02-21 Roland McGrath <roland@redhat.com>
1724
2a3d906e
RM
1725 * malloc/thread-freeres.c: Conditionalize on _LIBC_REENTRANT.
1726 * sunrpc/rpc_thread.c: Likewise for text_set_element use.
1727 (__rpc_thread_destroy): Add it to __libc_subfreeres too.
1728
1729 * include/resolv.h: Add libc_hidden_proto for __res_nclose.
1730 * resolv/res_init.c (__res_nclose): Add libc_hidden_def.
1731 (res_thread_freeres): New function, on __libc_thread_subfreeres and
1732 __libc_subfreeres.
1733
1734 * malloc/Versions (libc: GLIBC_PRIVATE): Add __libc_thread_freeres.
e8783fd5
RM
1735 * malloc/thread-freeres.c: New file.
1736 * malloc/Makefile (aux): Add it.
2a3d906e 1737 * sunrpc/Versions (libc: GLIBC_PRIVATE): Removed.
e8783fd5
RM
1738 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Put in special section
1739 "__libc_thread_freeres_fn" and add to __libc_thread_subfreeres set.
1740
1741 * sysdeps/unix/sysv/linux/i386/geteuid.c (__geteuid): Typo fix.
1742 * sysdeps/unix/sysv/linux/i386/getgid.c (__getgid): Typo fix.
1743
17442003-02-21 Roland McGrath <roland@frob.com>
1745
1746 * sysdeps/mach/hurd/opendir.c (__opendir): Use O_NONBLOCK in open.
1747
1748 * iconvdata/Makefile (tests): Add bug-iconv3 only if
1749 [$(have-thread-library) = yes].
1750
1c848253
UD
17512003-02-21 Ulrich Drepper <drepper@redhat.com>
1752
9c03686d
UD
1753 * sysdeps/unix/sysv/linux/bits/signum.h (__SIGRTMAX): Define as _NSIG.
1754
1c848253
UD
1755 * sysdeps/unix/sysv/linux/i386/getuid.c: Use INTERNAL_SYSCALL and do
1756 not chechk for errors (unless testing for 32bit variant).
1757 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
1758 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
1759 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
1760
6f50cb00
UD
17612003-02-21 Jakub Jelinek <jakub@redhat.com>
1762
1763 * sysdeps/x86_64/dl-machine.h (elf_machine_rela) <R_X86_64_PC32>:
1764 Check for signed overflow, not unsigned.
1765
cef0a48d
UD
1766 * sysdeps/sparc/sparc64/elf/configure.in: New file.
1767 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (sysdep-CFLAGS):
1768 Use -fcall-used-g6, not -fcall-used-g7.
1769
dd3608b9
AJ
17702003-02-21 Andreas Jaeger <aj@suse.de>
1771
1772 * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Fix setting of default
1773 mode.
1774
1775 * sysdeps/x86_64/fpu/fsetexcptflg.c (fesetexceptflag): Do not
1776 clear whole mxcsr but only exceptions.
1777
59fed0e2
RM
17782003-02-21 Roland McGrath <roland@redhat.com>
1779
1780 * Makerules: Filter $(install-lib-ldscripts) out of list of targets
1781 for libfoo.so that need $(make-link) rules.
1782
36f0ccda
RM
17832003-02-21 Roland McGrath <roland@frob.com>
1784
1785 * sysdeps/mach/hurd/bits/typesizes.h (__DEV_T_TYPE): Use __U32_TYPE
1786 to match existing struct stat layout in mig protocols.
1787
ec503662
UD
17882003-02-20 Ulrich Drepper <drepper@redhat.com>
1789
1790 * version.h (VERSION): Bump to 2.3.2.
1791
1792 * elf/Makefile (distribute): Add reldep9.c, tst-array1.exp,
1793 tst-array2.exp, tst-array4.exp, tst-array2dep.c, check-textrel.c,
1794 and dl-sysdep.h.
1795 * sysdeps/generic/Dist: Add sysdep-cancel.h.
1796 * sysdeps/powerpc/nofpu/Dist: Add soft-supp.h.
1797 * sysdeps/unix/Dist: Add s-proto-bp.S and s-proto-cancel.S.
1798 * sysdeps/unix/sysv/linux/Dist: Add pathconf.h.
1799 * sysdeps/unix/sysv/linux/i386/Dist: Add bp-thunk.h.
1800 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add fe_nomask.c and
1801 ucontext_i.h.
1802 * Makefile (distribute): Add include/stubs-prologue.h,
1803 include/gnu/stubs.h, scripts/merge-abilist.awk, and
1804 scripts/extract-abilist.awk.
1805
af57745c
RM
18062003-02-20 Roland McGrath <roland@redhat.com>
1807
1808 * math/Makefile (distribute): Don't add generated files.
1809
6314208a
UD
18102003-02-20 Ulrich Drepper <drepper@redhat.com>
1811
6314208a
UD
1812 * math/Makefile: Rearrange variable definitions slightly to get
1813 definition in the right order.
1814
ab10a294
RM
18152003-02-20 Roland McGrath <roland@redhat.com>
1816
1817 * Makerules: Clean up conditional around include of tls.make.
1818 * Make-dist: Export generating=t to prevent using that.
1819 (+distinfo): Likewise for $(shell $(MAKE) ...) runs.
1820
54e1cabc
UD
18212003-02-20 Ulrich Drepper <drepper@redhat.com>
1822
1823 * inet/rcmd.c (rresvport_af): Avoid using invliad values. Wrap
1824 around in search if port IPPORT_RESERVED/2 has been test.
1825
ec503662 18262002-02-20 Paolo Bonzini <bonzini@gnu.org>
54e1cabc
UD
1827
1828 * posix/regcomp.c: Remove inclusions.
1829 * posix/regexec.c: Likewise.
1830 * posix/regex_internal.c: Likewise.
1831 * posix/regex_internal.h: Add inclusions here.
1832 * posix/regex.c: Only include sys/types.h before regex.h. Include
1833 regex_internal.h here. Include regex_internal.c before regcomp.c
1834 and regexec.c (might expose more opportunities to the C compiler).
1835
1836 * posix/regcomp.c (parse_expression): Fix construct rejected by SGI CC.
1837
1838 * posix/regex_internal.h [!_LIBC] (__mempcpy): Fix typo.
1839 [!_LIBC] (__wcrtomb): New definition.
1840 [!_LIBC]: Conditionalize enabling of I18N on HAVE_WCSCOLL and
1841 HAVE_LOCALE_H as well.
1842
6eb74f33
UD
18432003-02-20 Ulrich Drepper <drepper@redhat.com>
1844
1845 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Remove obsolete
1846 patch to check for system call errors.
1847
05856976
UD
18482002-07-24 Philip Blundell <philb@gnu.org>
1849
1850 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Yield ENODEV
1851 on unknown systems.
1852
18532003-02-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1854
1855 * sysdeps/powerpc/powerpc32/atomicity.h: Remove compiler workaround.
1856 * sysdeps/unix/sysv/linux/kernel-features.h
1857 (__ASSUME_NEW_PRCTL_SYSCALL): Defined for ppc32 too.
1858 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Use prctl
1859 if possible.
1860 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Avoid short
1861 interprocedure branches.
1862 * sysdeps/powerpc/soft-fp/Dist (sim-full.c, fenv_const.c): Move to...
1863 * sysdeps/powerpc/nofpu/Dist: ...here.
1864 * sysdeps/unix/sysv/linux/powerpc/Dist (fe_nomask.c): Move to...
1865 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
1866 * sysdeps/unix/sysv/linux/s390/s390-64/Dist (kernel_stat.h): Delete.
1867 * sysdeps/unix/sysv/linux/sparc/Dist (bits/utmpx.h): Delete.
1868 * sysdeps/unix/sysv/linux/x86_64/Dist (bits/utmpx.h): Delete.
1869
a592f998
UD
18702003-02-18 Alan Modra <amodra@bigpond.net.au>
1871
1872 * sysdeps/powerpc/powerpc32/sysdep.h (HIDDEN_JUMPTARGET): Redefine.
1873
44ed664b
UD
18742003-02-20 Philip Blundell <philb@gnu.org>
1875
1876 * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Add
1877 missing arguments to INTERNAL_SYSCALL_ERROR_P and
1878 INTERNAL_SYSCALL_ERRNO.
1879
ffdcfcb0
UD
18802003-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
1881
1882 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__real_chown): Test
1883 for __ASSUME_32BITUIDS.
1884
4b2ed419
AS
18852003-02-20 Andreas Schwab <schwab@suse.de>
1886
1887 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Add MADV_* and
1888 POSIX_MADV_* constants.
1889
01b28852
UD
18902003-02-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1891
1892 * sysdeps/unix/sysv/linux/sh/pread.c: New file.
1893 * sysdeps/unix/sysv/linux/sh/pread64.c: New file.
1894 * sysdeps/unix/sysv/linux/sh/pwrite.c: New file.
1895 * sysdeps/unix/sysv/linux/sh/pwrite64.c: New file.
1896
a70e514b
UD
18972003-02-19 Jiro Sekiba <jir@yamato.ibm.com>
1898
1899 * iconvdata/utf-16.c (gconv_end): Fix range of low surrogate.
1900
ade67411
RM
19012003-02-16 Roland McGrath <roland@redhat.com>
1902
1903 * signal/signal.h: Include <sys/ucontext.h>, not <ucontext.h>.
1904
1c524710
UD
19052003-02-19 Ulrich Drepper <drepper@redhat.com>
1906
01b28852 1907 * stdlib/strtod.c (INTERNAL): Up the safety margin for cutting off
1c524710 1908 decimal input digits.
b5f7b119 1909 * stdlib/tst-strtod.c (main): Add test for strtof bug.
1c524710 1910
2f7dc594
UD
19112003-02-18 Ulrich Drepper <drepper@redhat.com>
1912
1913 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Recognize
1914 invalid file descriptors and missing access permissions.
1915
46d7e2ba
UD
19162003-02-17 Ulrich Drepper <drepper@redhat.com>
1917
8bd3f184 1918 * nss/getXXbyYY_r.c (REENTRANT_NAME): Return 0 if no entry has
2cfe49db
UD
1919 been found.
1920
46d7e2ba
UD
1921 * sysdeps/posix/sysconf.c (__sysconf): Test for LOGIN_NAME_MAX and
1922 TTY_NAME_MAX and not the _POSIX_* minimal value macros.
1923 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
1924 and LOGIN_NAME_MAX.
1925
b2740a3b
UD
19262003-02-17 Kevin B. Hendricks <kevin.hendricks@sympatico.ca>
1927 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1928
1929 * sysdeps/powerpc/elf/libc-start.c: Handle NONTLS_INIT_TP.
1930 * sysdeps/powerpc/powerpc32/__longjmp.S: Remove R2 handling.
1931 * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
1932 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
1933 * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
1934
81b50572
UD
19352003-02-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1936
1937 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Delete.
1938 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Delete.
1939 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Delete.
1940 * sysdeps/unix/sysv/linux/powerpc/pread.c: Delete.
1941 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Delete.
1942 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Delete.
1943
1944 * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: Move file...
1945 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: ...here.
1946 * sysdeps/unix/sysv/linux/powerpc/glob64.c: Move file...
1947 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
1948
1949 * sysdeps/unix/sysv/linux/tcgetattr.c: Use INLINE_SYSCALL.
1950 * sysdeps/unix/sysv/linux/tcsetattr.c: Likewise.
1951 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Delete.
1952 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Delete.
1953
fdcd8f9c
UD
19542003-02-14 Thorsten Kukuk <kukuk@suse.de>
1955
1956 * nss/getent.c (print_hosts): Print all IP addresses of one host.
1957
7125d3cf
RM
19582003-02-15 Roland McGrath <roland@frob.com>
1959
8321ef15
RM
1960 * sysdeps/mach/hurd/tls.h: New file.
1961 * sysdeps/mach/hurd/i386/tls.h: New file.
1962
b0104b6f
RM
1963 * mach/errsystems.awk: Include <errno.h> in generated output.
1964
7125d3cf
RM
1965 * sysdeps/mach/Makefile (mach-before-compile rule): Pass generating=t,
1966 use target mach-before-compile instead of generated.
1967 (mach-before-compile): New target.
1968 * Makerules: Disable use of tls.make if $(generating) is set.
1969 * mach/Makefile: Include mach-syscalls.mk even if no_deps=t.
1970 * sysdeps/mach/hurd/Makefile: Make generated hurd headers depend on
1971 mach-shortcuts.h so mach/ generation happens before hurd/.
1972
47202270
UD
19732003-02-14 Ulrich Drepper <drepper@redhat.com>
1974
a439bb2f
UD
1975 * sysdeps/i386/fpu/s_nextafterl.c: Decrement high word of mantissa
1976 of demorm correctly if low word is zero.
1977 Reported by Fred J. Tydeman <tydeman@tybor.com>.
757de559
UD
1978 * math/libm-test.inc (nextafter_test): New test, but disabled due
1979 to gcc bug.
a439bb2f 1980
47202270
UD
1981 * sysdeps/generic/libc-start.c [HAVE_PTR_NTHREADS]: Decrement thread
1982 counter and only call __exit_thread if this is not the last thread.
1983
dac0f772
UD
19842003-02-13 Jakub Jelinek <jakub@redhat.com>
1985
1986 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Add instead of
1987 subtracting map->l_tls_offset.
1988
7437cbd1
UD
19892003-02-12 Ulrich Drepper <drepper@redhat.com>
1990
2067577c
UD
1991 * sysdeps/generic/bits/confname.h: Define _CS_GNU_LIBC_VERSION and
1992 _CS_GNU_LIBPTHREAD_VERSION.
1993 * posix/conststr.c: Handle these new values.
1994 * posix/getconf.c: Likewise.
1995
7437cbd1
UD
1996 * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Fix
1997 masking of version index.
1998 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
1999
969c9da7
UD
20002003-02-11 Ulrich Drepper <drepper@redhat.com>
2001
2002 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Compute alignment
2003 correctly. Reported by Thorsten Kukuk.
2004
e5ffa64a
UD
20052003-02-10 Ulrich Drepper <drepper@redhat.com>
2006
2007 * elf/Makefile (check-textrel-CFLAGS): Pass _XOPEN_SOURCE and
2008 _BSD_SOURCE to compiler.
2009 * elf/check-textrel.c (SWAP): Add parenthesis to avoid warnings.
2010 Patches by Alan Modra.
2011
34c86f42
UD
20122003-02-08 Ulrich Drepper <drepper@redhat.com>
2013
2014 * io/ftwtest.c: Get current working directory before and after the
2015 nftw call and make sure they match.
2016
20172003-02-08 Jim Meyering <jim@meyering.net>
2018
2067577c 2019 * io/ftw.c (ftw_startup): When using FTW_CHDIR, always remember
34c86f42
UD
2020 the current directory, not just when DIR contains a slash.
2021 Reported by Manoj Srivastava.
2022
ae9ecd08
UD
20232003-02-07 Jim Meyering <jim@meyering.net>
2024
2025 * io/ftw.c: Add autoconf-recommended block of alloca-related code.
2026 Include autoconf-recommended block of dirent/NAMELEN-related
2027 definitions and includes. Use NAMELEN throughout, rather than
2028 _D_EXACT_NAMLEN.
2029 [_LIBC]: Define NAMELEN to _D_EXACT_NAMLEN.
2030 [!_LIBC] (__getcwd): Define to xgetcwd and declare xgetcwd.
2031 (stpcpy): Declare, if necessary.
2032 (mempcpy): Define, if necessary.
2033 [!_LIBC] (__stpcpy, __mempcpy): Define.
2034 [!_LIBC] (LXSTAT, XSTAT): Define.
2035 (lstat) [!LIBC && !LSTAT_FOLLOWS_SLASHED_SYMLINK]: Define to rpl_lstat.
2036 (find_object): Don't use c99-style struct initializer.
2037 Tweak wording in a couple comments.
2038
2a051a7d
UD
20392003-02-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2040
2041 * elf/tls-macros.h: Add non-PIC TLS macros and fix clobber list
2042 for SH.
2043 * sysdeps/unix/sysv/linux/sh/brk.c: Add SYSCALL_INST_PAD
2044 after the trapa instruction.
2045 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Add additional
2046 parameters.
2047 * sysdeps/unix/sysv/linux/sh/sh4/sysdep.h: New file.
2048 (NEED_SYSCALL_INST_PAD): Define.
2049 * sysdeps/unix/sysv/linux/sh/sys/user.h (start_thread): Undef to
2050 avoid to use definition for the kernel.
2051 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
2052 Save and restore the frame pointer.
2053 (SYSCALL_INST_PAD): Define.
2054 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
2055 (INTERNAL_SYSCALL): Make use of ERR parameter. Add SYSCALL_INST_PAD
2056 after trapa instruction.
2057 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
2058 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
2059
1f503475
UD
20602003-02-07 Jakub Jelinek <jakub@redhat.com>
2061
2062 * resolv/res_libc.c (_res): Ensure _res is not common symbol,
2063 so that it can have aliases.
2064 * inet/herrno.c (h_errno): Put it into .bss not .data section.
2065
eecc378c
UD
20662003-02-07 Ulrich Drepper <drepper@redhat.com>
2067
2068 * elf/dl-runtime.c (fixup): Correct typo in version index computation.
2069 (profile_fixup): Likewise.
1f503475 2070 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
eecc378c 2071
ce96c93d
UD
20722002-11-24 Robert Love <rml@tech9.net>
2073
2074 * posix/sched.h: Second parameter of sched_setaffinity and
2075 sched_getaffinity is `unsigned int', not `unsigned long'.
2076 * sysdeps/generic/sched_setaffinity.c: Likewise.
2077 * sysdeps/generic/sched_getaffinity.c: Likewise.
2078
e0f86659
UD
20792003-02-05 Ulrich Drepper <drepper@redhat.com>
2080
432cf458 2081 * debug/catchsegv.sh: Fix typo in error messsage.
ce96c93d 2082 Reported by John Levon <levon@movementarian.org>.
432cf458 2083
5cd09cd6
UD
2084 * sysdeps/unix/sysv/linux/posix_fadvise.c: New file.
2085 * sysdeps/unix/sysv/linux/syscalls.list: Add posix_fadvise64 syscall.
2086 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
2087 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2088 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
2089 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2090 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2091
e0f86659
UD
2092 * libio/putwc_u.c: Use _IO_putwc_unlocked, not _IO_putc_unlocked.
2093 Patch by Moritz Schulte <moritz@duesseldorf.ccc.de>.
2094
5049f197
UD
20952003-02-05 Jim Meyering <jim@meyering.net>
2096
2097 Fix a heap-corrupting bug.
2098 * io/ftw.c: Include <limits.h>.
2099 (PATH_MAX) [!defined PATH_MAX]: Define to 1024.
2100 (process_entry): Allocate enough space to hold the resulting
2101 file name. Don't presume that 2*dirbufsize is enough.
2102 (ftw_startup): Always use PATH_MAX to compute buffer size, now that
2103 it is guaranteed to be defined.
2104
6f1cff95
UD
21052003-02-04 Ulrich Drepper <drepper@redhat.com>
2106
2107 * iconvdata/Makefile: Add rules to build and run bug-iconv3.
2108 * iconvdata/bug-iconv3.c: New file.
2109
b33b0d0d
UD
21102003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com>
2111
2112 * sysdeps/unix/sysv/linux/s390/system.c: New file.
2113
6900ded2
UD
21142003-02-03 Jakub Jelinek <jakub@redhat.com>
2115
2116 * sysdeps/sparc/sparc32/elf/configure.in (BROKEN_SPARC_WDISP22): New
2117 check.
2118 * config.h.in (BROKEN_SPARC_WDISP22): Add.
2119
663684b2
UD
21202003-02-03 Ulrich Drepper <drepper@redhat.com>
2121
2122 * sysdeps/i386/i686/memmove.S: New file.
2123
3e4fc359
UD
21242003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
2125
2126 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c:
2127 Include kernel-features.h
2128 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
2129 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
2130 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
2131 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
2132
75dec09e
UD
21332003-02-02 Jakub Jelinek <jakub@redhat.com>
2134
2135 * elf/tls-macros.h [sparc] (TLS_LD, TLS_GD): Add "cc" clobbers.
2136
78e88510
UD
21372003-01-25 Jim Meyering <jim@meyering.net>
2138
2139 * io/ftw.c (object_compare): Compare inode numbers before device
2140 numbers, since the former are much more likely to differ.
2141
38e68573
UD
21422003-02-01 Ulrich Drepper <drepper@redhat.com>
2143
2144 * time/tzfile.c (__tzfile_compute): Change return value type to
2145 void. Adjust return statements.
2146 * include/time.h (__tzfile_compute): Adjust prototype.
2147
21482003-02-01 Jim Meyering <jim@meyering.net>
2149
2150 * time/tzset.c (__tz_convert): Remove dead code; __tzfile_compute
2151 always returns 1.
2152
21532003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
2154
2155 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
2156 [!__ASSUME_NEW_PRCTL_SYSCALL]: Noop prctl syscall and set ENOSYS.
2157
21582003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
2159
2160 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
2161 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Generate ENOSYS stub.
2162 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
2163 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
2164 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
2165 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
2166 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
2167 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
2168
21692003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
2170
2171 * sysdeps/unix/sysv/linux/configure.in: Change arch_minimum_kernel
2172 back to 2.4.19 for powerpc64.
2173 * sysdeps/unix/sysv/linux/kernel-features.h
2174 (__ASSUME_NEW_PRCTL_SYSCALL): Define for powerpc64.
2175 (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Define for powerpc64.
2176
21772003-02-01 Ulrich Drepper <drepper@redhat.com>
2178
2179 * wcsmbs/wcscpy.c (wcscpy): Add alternative implementation for
2180 platforms with strange alignment requirements on wchar_t.
2181
b67fcc1e
UD
21822003-01-31 Andreas Schwab <schwab@suse.de>
2183
2184 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove __GI_*
2185 aliases, already added by make-syscalls.sh.
2186 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2187 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
2188 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
2189 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2190 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2191 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2192 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
2193 * sysdeps/unix/inet/syscalls.list: Likewise.
2194 * sysdeps/unix/syscalls.list: Likewise.
2195
fb784fd5
AS
21962003-01-31 Andreas Schwab <schwab@suse.de>
2197
2198 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Don't define, not needed
2199 any more.
2200
c4c1336c
UD
22012003-01-30 Jakub Jelinek <jakub@redhat.com>
2202
2203 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Use lg,
2204 not l to load tls from stack.
2205
d6f5e721
RM
22062003-01-30 Roland McGrath <roland@redhat.com>
2207
2208 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Move check for
2209 null argument before all else.
2210 Reported by Martin Schwidefsky <schwidefsky@de.ibm.com>.
2211
7ba7c829
UD
22122003-01-30 Jakub Jelinek <jakub@redhat.com>
2213
2214 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_lazy_rel):
2215 Move to RESOLVE protected part of the header.
2216 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_lazy_rel):
2217 Likewise.
2218
22192003-01-30 Ulrich Drepper <drepper@redhat.com>
2220
2221 * stdio-common/Makefile (tests): Add bug15.
2222 (bug15-ENV): Define.
2223 * stdio-common/bug15.c: New file.
2224
886d5973
UD
22252002-10-07 Wolfram Gloger <wg@malloc.de>
2226
2227 * malloc/malloc.c (sYSMALLOc): Only check for breakage due
2228 to foreign sbrk()'s if arena is contiguous. Bug report from
2229 Bruno Haible <bruno@clisp.org>.
2230
22312003-01-30 Jakub Jelinek <jakub@redhat.com>
2232
2233 * sysdeps/s390/libc-tls.c: Include stdlib.h.
2234
22352003-01-30 Jakub Jelinek <jakub@redhat.com>
2236
2237 * stdio-common/vfprintf.c (vfprintf): Only subtract lowest 3 bits of
2238 ps.__count.
2239
22402003-01-30 Ulrich Drepper <drepper@redhat.com>
2241
2242 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Fix storing and
2243 restoring of %r6.
2244 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise. Use
2245 64-bit load.
2246 Patch by Martin Schwidefsky <schwidefsky@de.ibm.com>.
2247
22482003-01-30 Jakub Jelinek <jakub@redhat.com>
2249
2250 * elf/dl-reloc.c (CHECK_STATIC_TLS): Move _dl_signal_error...
2251 (allocate_static_tls): ...here. Add __attribute_noinline__.
2252 Don't return on failure.
2253 (_dl_reloc_bad_type): Add __attribute_noinline__.
2254 * elf/do-rel.h (elf_dynamic_do_rel): Add
2255 __attribute__((always_inline)).
2256 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
2257 elf_machine_rel_relative, elf_machine_rela_relative,
2258 elf_machine_lazy_rel): Add prototypes with
2259 __attribute__((always_inline)).
2260
22612003-01-29 David Mosberger <davidm@hpl.hp.com>
2262
2263 * elf/dl-support.c (_dl_aux_init): Handle AT_SYSINFO.
2264
871afd6b
RM
22652003-01-29 Roland McGrath <roland@redhat.com>
2266
2267 * configure.in: Barf if configured in $srcdir.
871afd6b 2268
1e49399d
UD
22692003-01-28 Steven Munroe <sjmunroe@us.ibm.com>
2270
2271 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
1e2f8718 2272 (__fe_nomask_env): Change __prctl call to INTERNAL_SYSCALL.
1e49399d 2273
db34912e
UD
22742003-01-28 Martin Schwidefsky <schwidefsky@de.ibm.com>
2275
2276 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Reorder additional
2277 clone parameters to match the order used on ia32.
2278 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
2279
e6ebd2e4
UD
22802003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
2281
2282 * elf/elf.h: Add new s390 relocs.
2283 * elf/tls-macros.h: Add s390 versions.
2284 * sysdeps/s390/Versions [GLIBC_2.3] (ld): Export __tls_get_offset.
2285 * sysdeps/s390/dl-tls.h: New file.
2286 * sysdeps/s390/libc-tls.c: New file.
2287 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class): Add TLS
2288 relocs for class PLT.
2289 (elf_machine_rela): Handle TLS relocs.
2290 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
2291 * sysdeps/s390/s390-32/elf/configure.in: Add TLS check.
2292 * sysdeps/s390/s390-64/elf/configure.in: Likewise.
2293 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Add support for
2294 CLONE_CHILD_*TID flags.
2295 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
2296 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Use branch with 32
2297 bit offset.
2298 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
2299 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
2300 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
2301 Support USE___THREAD. Define RTLD_PRIVATE_ERRNO variant.
2302 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
2303 Likewise.
2304 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
2305 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER.
2306 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
2307 variants.
2308 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h:
2309 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER. Use
2310 direct branch to syscall_error for !PIC and PIC && !_LIBC_REENTRANT.
2311 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
2312 variants.
2313
772e3426
UD
23142003-01-28 Ulrich Drepper <drepper@redhat.com>
2315
2316 * sysdeps/unix/common/pause.c (do_pause): New function. Split
2317 from __libc_pause. Implement using sigsuspend.
2318 (__libc_pause): Call do_pause to do the real work.
2319
2320 * sysdeps/posix/sigpause.c (do_sigpause): Check range of
2321 sig_or_mask parameter is is_sig != 0.
2322
0566b130
UD
23232003-01-21 Philip Blundell <philb@gnu.org>
2324
2325 * sysdeps/unix/sysv/linux/bits/ioctls.h (SIOCSIFNAME): Define.
2326
a15698cb
UD
23272003-01-27 Steven Munroe <sjmunroe@us.ibm.com>
2328
2329 * stdio-common/Makefile: Add bug14-ENV to set LOCPATH for make check.
2330
b7e033f7
UD
23312003-01-27 Ulrich Drepper <drepper@redhat.com>
2332
e6fb8846
UD
2333 * stdio-common/bug14.c: Use official name for the locale.
2334
1fc46908
UD
2335 * stdio-common/vfprintf.c [USE_IN_LIBIO]: Use _IO_cleanup_region_start
2336 instead of __libc_cleanup_region_start and _IO_cleanup_region_end
2337 instead of __libc_cleanup_region_end.
2338
2339 * sysdeps/unix/sysv/linux/i386/system.c (CLEANUP_HANDLER): Pass 1
2340 as first parameter to __libc_cleanup_region_start.
2341
68ff8426
UD
2342 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
2343 (__fe_nomask_env): Use __prctl not prctl.
2344 * sysdeps/unix/sysv/linux/syscalls.list: Add __prctl alias for
2345 prctl syscall.
2346
809cd222
UD
2347 * elf/dl-reloc.c (CHECK_STATIC_TLS): Improve error message.
2348
2349 * elf/dl-open.c (_dl_tls_static_size): Bump to 2048.
2350
b7e033f7
UD
2351 * elf/dl-reloc.c (allocate_static_tls): Avoid arithmetic
2352 wrap-around in test.
2353
62f29da7
UD
23542003-01-26 Andreas Schwab <schwab@suse.de>
2355
2356 * sysdeps/wordsize-32/divdi3.c: Export the functions only as
2357 compatibility symbols. Remove INTDEF for __divdi3.
2358 * sysdeps/wordsize-32/lldiv.c: Don't use __divdi3_internal.
2359 * sysdeps/powerpc/powerpc32/divdi3.c: Remove.
2360 * sysdeps/powerpc/powerpc32/Makefile (CPPFLAGS-divdi3.c): Don't
2361 define.
2362 * sysdeps/powerpc/powerpc32/Dist: Remove divdi3.c.
2363
23642003-01-24 Jakub Jelinek <jakub@redhat.com>
2365
2366 * elf/tls-macros.h: Add SPARC 32-bit definitions.
2367 * sysdeps/sparc/sparc32/elf/configure.in: Add TLS check.
2368 * sysdeps/sparc/sparc32/dl-machine.h: Add dl_machine_h guards
2369 for the first half of the header. Include tls.h.
2370 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS
2371 relocs too.
2372 (elf_machine_rela): Handle TLS relocs.
2373 * sysdeps/sparc/dl-tls.h: New file.
2374
2375 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Add cancellation
2376 support.
2377
2378 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Use %g6 instead of %g7.
2379 * sysdeps/sparc/sparc32/memchr.S: Likewise.
2380 * sysdeps/sparc/sparc32/memcpy.S: Likewise.
2381 * sysdeps/sparc/sparc32/strcat.S: Likewise.
2382 * sysdeps/sparc/sparc32/strchr.S: Likewise.
2383 * sysdeps/sparc/sparc32/strcmp.S: Likewise.
2384 * sysdeps/sparc/sparc32/strcpy.S: Likewise.
2385 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
2386 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
2387 * sysdeps/sparc/sparc64/memcpy.S: Likewise.
2388 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
2389 * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
2390 * sysdeps/sparc/sparc64/strcat.S: Likewise.
2391 * sysdeps/sparc/sparc64/strchr.S: Likewise.
2392 * sysdeps/sparc/sparc64/strcmp.S: Likewise.
2393 * sysdeps/sparc/sparc64/strcpy.S: Likewise.
2394 * sysdeps/sparc/sparc64/strncmp.S: Likewise.
2395 * sysdeps/sparc/sparc64/strncpy.S: Likewise.
2396 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
2397 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
2398
23992003-01-24 Andreas Schwab <schwab@suse.de>
2400
2401 * elf/dl-close.c (_dl_close): Don't relocate DT_FINI_ARRAY
2402 elements, and process them backwards.
2403 * elf/Makefile ($(objpfx)tst-array4): New target.
2404 ($(objpfx)tst-array4.out): Likewise.
2405 (tests) [$(have-initfini-array) = yes]: Add tst-array4.
2406 * elf/tst-array4.c: New file.
2407 * elf/tst-array4.exp: Likewise.
2408
24092003-01-24 Steven Munroe <sjmunroe@us.ibm.com>
2410
2411 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: New file.
2412
24132003-01-27 Guido Guenther <agx@sigxcpu.org>
2414
2415 * sysdeps/unix/sysv/linux/mips/sysdep.h (SYSCALL_ERROR_LABEL): Define.
2416 * sysdeps/unix/sysv/linux/mips/pread.c: Add support for
2417 cancellation handling and handle both __NR_pread64 and __NR_pread.
2418 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
2419 * sysdeps/unix/sysv/linux/mips/pwrite.c: Add support for
2420 cancellation handling and handle both __NR_pwrite64 and __NR_pwrite.
2421 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
2422 * sysdeps/unix/mips/sysdep.S: Don't set errno in the _LIBC_REENTRANT
2423 case, use register names consistently.
2424
24252003-01-27 Wolfram Gloger <wg@malloc.de>
2426
2427 * malloc/hooks.c (mem2chunk_check): Check alignment of mem
2428 pointer, not of the computed chunk. Bug report from Carlos
2429 O'Donell <carlos@baldric.uwo.ca>.
2430
251c0f71
AS
24312003-01-25 Andreas Schwab <schwab@suse.de>
2432
2433 * sysdeps/m68k/dl-machine.h (_dl_start_user): Use pc-relative
2434 addressing to save GOT entries.
2435
86dfa4eb
RM
24362003-01-21 Jakub Jelinek <jakub@redhat.com>
2437
2438 * sysdeps/unix/alpha/sysdep.h (inline_syscall0,
2439 inline_syscall1, inline_syscall2, inline_syscall3,
2440 inline_syscall4, inline_syscall5, inline_syscall6): Add __volatile__.
2441 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INTERNAL_SYSCALL): Add
2442 __attribute__((unused)) to ChEcK.
2443
d5b6c817
UD
24442003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
2445
2446 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL):
2447 Fix inline assembler constraints.
2448 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL):
2449 Likewise.
2450
2451 * sysdeps/s390/s390-64/Makefile (pic-ccflag): Use -fpic instead of
2452 -fPIC.
2453
83c9a671
RM
24542003-01-20 Segher Boessenkool <segher@koffie.nl>
2455
2456 * sysdeps/ieee754/dbl-64/sincos32.c (__mpcos): Really
2457 compute the cosine, not the sine, even if x > 0.8.
2458
b677d674
UD
24592003-01-19 Ulrich Drepper <drepper@redhat.com>
2460
2461 * nis/nss_nis/nis-spwd.c: Make _nss_nis_endspent an alias of
2462 _nss_nis_setspent. Work around the different prototypes.
2463 * nis/nss_nis/nis-rpc.c (internal_nis_setrpcent): Use
2464 internal_nis_endrpcent.
2465 (internal_nis_endrpcent): Change return type to void. Change callers.
2466 * nis/nss_nis/nis-pwd.c: Make _nss_nis_endpwent an alias of
2467 _nss_nis_setpwent. Work around the different prototypes.
2468 * nis/nss_nis/nis-proto.c (_nss_nis_endprotoent): Split out body
2469 of the function to...
2470 (internal_nis_endprotoent): ... here. New function.
2471 (internal_nis_setprotoent): Use internal_nis_endprotoent.
2472 * nis/nss_nis/nis-network.c: Make _nss_nis_endnetent an alias of
2473 _nss_nis_setnetent. Work around the different prototypes.
2474 * nis/nss_nis/nis-netgrp.c (_nss_nis_endnetgrent): Split out body
2475 of the function to...
2476 (internal_nis_endnetgrent): ... here. New function.
2477 (_nss_nis_setnetgrent): Use internal_nis_endnetgrent.
2478
978bd143
UD
24792003-01-19 Jim Meyering <jim@meyering.net>
2480
2481 * time/strftime.c: (widen): Merge nearly-identical definitions.
2482 (nl_get_alt_digit) [! defined my_strftime]: Define.
2483 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
2484 _nl_get_alt_digit and _nl_get_walt_digit.
2485
b1a173f7
UD
24862003-01-19 Ulrich Drepper <drepper@redhat.com>
2487
2488 * time/strftime.c (my_strftime): Handle very large width
2489 specifications for numeric values correctly. Improve checks for
2490 overflow.
2491 * time/Makefile (tests): Add tst-strftime.
2492 * time/tst-strftime.c: New file.
2493
039c1b75
UD
24942003-01-18 Ulrich Drepper <drepper@redhat.com>
2495
6675b191
UD
2496 * nis/nss_nis/nis-hosts.c: Make _nss_nis_endhostent an alias of
2497 _nss_nis_sethostent. Work around the different prototypes.
2498 * nis/nss_nis/nis-grp.c: Make _nss_nis_endgrent an alias of
2499 _nss_nis_setgrent. Work around the different prototypes.
2500 * nis/nss_nis/nis-ethers.c (internal_nis_endetherent): New
2501 function. Split out from _nss_nis_endetherent.
2502 (internal_nis_setetherent): Use internal_nis_endetherent instead of
2503 duplicating the code.
2504 * nis/nss_nis/nis-alias.c: Make _nss_nss_nis_endaliasent an alias
2505 of _nss_nis_setaliasent.
2506 * nis/nss_nis/nis-service.c (internal_nis_setservent): Reuse
2507 internal_nis_endservent code, don't duplicate it.
2508
039c1b75
UD
2509 * inet/rexec.c (rexec_af): Protect socket operations with
2510 TEMP_FAILURE_RETRY. Use writev instead of multiple write.
2511 * inet/rcmd.c (rcmd_af): Likewise.
2512
62431425
RM
25132003-01-17 Roland McGrath <roland@redhat.com>
2514
d32e4346
RM
2515 * math/libm-test.inc (sin_test, cos_test, sincos_test) [TEST_DOUBLE]:
2516 Add test of value 0.80190127184058835.
2517
62431425
RM
2518 * elf/dl-open.c: Fix typo ifdef -> ifndef on _dl_tls_static_size defn.
2519
0f0b7994
UD
25202003-01-17 Richard Henderson <rth@redhat.com>
2521
2522 * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Add TLS
2523 relocs for class PLT.
2524 * sysdeps/alpha/libc-tls.c: New file.
2525 * sysdeps/unix/alpha/sysdep.S (EPILOGUE, GPSAVEREG): New.
2526 (LOADGP) [!PIC]: Rewrite to preserve caller's gp.
2527
25282003-01-17 Jakub Jelinek <jakub@redhat.com>
2529
2530 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Use
2531 __libc_lock_{,un}lock_recursive instead of __libc_lock_{,un}lock
2532 on _dl_static_lock.
2533
1d4ff70e
AJ
25342003-01-17 Andreas Jaeger <aj@suse.de>
2535
2536 * stdio-common/bug14.c: Include stdlib.h for exit prototype.
2537
609b4783
UD
25382003-01-16 Steven Munroe <sjmunroe@us.ibm.com>
2539
2540 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: New file.
2541 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: New file.
2542 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: New file.
2543 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: New file.
2544 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h: New file.
2545 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: New file.
2546 * sysdeps/unix/sysv/linux/configure.in: Minimum kernel for PPC64
2547 is 2.4.21.
2548
25492003-01-16 Ulrich Drepper <drepper@redhat.com>
2550
2551 * sysdeps/generic/glob.c (glob): Assume sysconf() always returns
2552 values != -1 for _LIBC. Use extend_alloca to reallocate alloca'ed
2553 buffers.
2554
2555 * sysdeps/generic/sysconf.c: Unconditionally implement
2556 _SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX.
2557 * sysdeps/posix/sysconf.c: Likewise.
2558
7b7b9e70
UD
25592003-01-16 Jakub Jelinek <jakub@redhat.com>
2560
2561 * posix/regcomp.c (parse_bracket_exp): If build_charclass fails,
2562 set *err to the returned error, not to REG_ESPACE unconditionally.
2563 (build_word_op): Likewise.
2564 * posix/Makefile (tests): Add bug-regex16.
2565 * posix/bug-regex16.c: New test.
2566
850dcfca
UD
25672003-01-16 Jakub Jelinek <jakub@redhat.com>
2568
2569 * elf/dl-load.c (_dl_map_object_from_fd): Use
2570 GL(dl_tls_dtv_slotinfo_list) != NULL to check whether TLS has
2571 been already initialized.
2572
a1f8ec97
UD
25732003-01-15 Dmitry V. Levin <ldv@altlinux.org>
2574
2575 * sysdeps/unix/sysv/linux/ptsname.c: Fix typo in comment.
2576
f811dbdc
UD
25772003-01-16 Jakub Jelinek <jakub@redhat.com>
2578
2579 * posix/regcomp.c (re_compile_internal): If clearing buffer, clear
2580 allocated too. Reported by Al Viro <aviro@redhat.com>.
2581
4dd98447
RM
25822003-01-16 Roland McGrath <roland@redhat.com>
2583
2584 Tweak merged .abilist file format to merge duplicate symbols in
2585 different sets into multi-version stanzas with new "| SET regexp..."
2586 header continuation lines.
2587 * scripts/merge-abilist.awk: Rewritten for new format.
2588 * scripts/extract-abilist.awk: Likewise.
2589
0f740059
UD
25902003-01-15 Ulrich Drepper <drepper@redhat.com>
2591
e09edf23
UD
2592 * nscd/connections.c (nscd_run): Remove bogus return which isn't
2593 necessary with gcc 3.2+.
2594 (nscd_init): Don't use error() to print message, use dbg_log.
2595
ea31b613
UD
2596 * iconv/gconv_simple.c (STORE_REST): Explicitly store the total
2597 expected size into state.
2598 (UNPACK_BYTES): Do the reverse.
41f112ad 2599 * iconv/loop.c: Use CLEAR_STATE if defined to clear __state element.
ea31b613
UD
2600 * wcsmbs/tst-mbrtowc.c (utf8_test_1): Add test for the bug.
2601 Reported by Al Viro <aviro@redhat.com>.
2602
a1a2fec1
UD
2603 * stdio-common/Makefile (tests): Add bug14.
2604 * stdio-common/bug14.c: New file.
2605
0f740059
UD
2606 * stdio-common/vfscanf.c: When recognizing multibyte characters in
2607 string reset the byte counter after mbrtowc reported it is not a
2608 partial character. Reported by Al Viro <aviro@redhat.com>.
2609
c16abc04
UD
26102003-01-15 Steven Munroe <sjmunroe@us.ibm.com>
2611
2612 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Include
2613 sysdep-cancel.h, not sysdep.h.
2614
26152003-01-15 Ulrich Drepper <drepper@redhat.com>
2616
2617 * nscd/connections.c (nscd_run): Protect accept call with
2618 TEMP_FAILURE_RETRY.
2619
c841fa22
AS
26202003-01-15 Andreas Schwab <schwab@suse.de>
2621
2622 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-bp.d.
2623 (common-generated): Add s-proto-bp.d.
2624 * sysdeps/unix/make-syscalls.sh: Use s-proto-bp.d for dependencies
2625 of bp thunks.
2626 * sysdeps/unix/s-proto-bp.S: New file.
2627 * sysdeps/generic/bp-thunks.h: Don't include <sys/vm86.h> here.
2628 Use <io/sys/sendfile.h> instead of <sys/sendfile.h>.
2629 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: New file.
2630
73917724
RM
26312003-01-15 Roland McGrath <roland@redhat.com>
2632
2633 * Makerules: Use -include for tls.make, suppresses warning.
2634 Move gen-as-const-headers rules up so before-compile is set in time.
2635 (sed-remove-dotdot): Fix to work right for subdirs or top dir.
2636
c9f24336
UD
26372003-01-15 Ulrich Drepper <drepper@redhat.com>
2638
d4397629
UD
2639 * nscd/nscd.c (main): Make code to close all file descriptors
2640 faster and more robust.
2641
9caf4f1c
UD
2642 * nscd/nscd_getpw_r.c (nscd_getpw_r): Consolidate writing of the
2643 request with one writev call. Protect all read calls with
2644 TEMP_FAILURE_RETRY.
2645 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
2646 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
2647
2648 * nscd/hstcache.c: Use extend_alloca to reallocate alloca'd buffer.
2649 Protect writev calls with TEMP_FAILURE_RETRY.
2650 * nscd/grpcache.c: Likewise.
2651 * nscd/pwdcache.c: Likewise.
2652
c9f24336
UD
2653 * nscd/hstcache.c (addhstbynamev6): Don't interpret hostname as
2654 IPv6 address in debug output.
2655
9ae10332
RM
26562003-01-14 Roland McGrath <roland@redhat.com>
2657
2658 * Makerules (check-abi-%): Use two rules for $(common-objpfx) and
2659 $(objpfx) directories, and get rid of vpath directives. The previous
2660 arrangement resulted in files being written to the source directories
2661 when run in a clean build. Find all .abilist files in $(..)abilist/.
2662 (update-abi-%): Likewise.
2663 (generated): Don't add .symlist files, they'll be intermediates.
2664
2665 * sysdeps/generic/init-first.c: Add a comment.
2666
2667 * elf/Makefile ($(objpfx)ld.so): Pass -z defs in link.
2668
2669 * scripts/gen-as-const.awk: Grok lone "--" as a separator between
2670 #includes and expressions.
2671
2672 * scripts/merge-abilist.awk: Omit cpu-.*-os.*/modifier from merged
2673 config list when it already contains cpu-.*-os.* without / part.
2674
2675 * Makerules (sed-remove-dotdot): New variable.
2676 ($(common-objpfx)%.make): Use it. Depend on $(before-compile).
2677 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.
2678 (check-abi-config): New variable, append /tls or /notls to the tuple.
2679 (check-abi-%): Use that for -v config value.
2680 Find .abilist files in abilist/libfoo.abilist, not in subdir.
2681 * Rules: Move bits/stdio_lim.h generation rules to Makerules.
2682
a8d87c92
UD
26832003-01-14 Ulrich Drepper <drepper@redhat.com>
2684
2685 * manual/install.texi: Correct description of header preparation for
2686 Linux build. Patch by mhwood@Ameritech.Net [PR libc/4941].
2687
574b892e
UD
26882003-01-14 Guido Guenther <agx@sigxcpu.org>
2689
2690 * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_SYSCALL,
2691 INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
2692 INTERNAL_SYSCALL_ERROR_P, INLINE_SYSCALL): Define.
2693
26942003-01-14 Steven Munroe <sjmunroe@us.ibm.com>
2695
2696 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
2697 (INTERNAL_SYSCALL): Make use of ERR parameter.
2698 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
2699 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
2700 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
2701 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
2702
2c255347
UD
27032003-01-14 Ulrich Drepper <drepper@redhat.com>
2704
086311a9
UD
2705 * sunrpc/pm_getport.c (pmap_getport): Open TCP socket if protocol
2706 == IPPROTO_TCP.
2707 Patch by James Strandboge <jamie@tpptraining.com> [PR libc/4943].
2708
2f279b14
UD
2709 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (_dl_x86_cap_flags):
2710 Fix entry for bit 31.
2711
2c255347
UD
2712 * iconvdata/Makefile: Add rules to build IBM866NAV.
2713 * iconvdata/ibm866nav.c: New file.
2714 * iconvdata/tst-tables.sh: Add IBM866NAV.
2715 * iconvdata/gconv-modules: Add entries for IBM866NAV.
2716
642eb2a2
UD
27172003-01-13 Ulrich Drepper <drepper@redhat.com>
2718
2719 * string/tester.c (test_strcpy): Use the previously #if 0'ed code
2720 to test void* parameters.
2721
2722 * sysdeps/i386/i486/bits/string.h (__STRING_SMALLL_GET16): Cast
2723 source pointer before dereferencing.
2724 (__STRING_SMALLL_GET32): Likewise.
2725 (__memset_gc): Add missing parenthesis around macro arguments.
574b892e 2726 Patch by Denis Zaitsev <zzz@cd-club.ru>.
642eb2a2
UD
2727
2728 * sysdeps/i386/i486/bits/string.h (__strspn_cg): Tell the compiler
574b892e 2729 that %eax is modified. Reported by Denis Zaitsev <zzz@cd-club.ru>.
642eb2a2 2730
115bb61d
UD
27312003-01-14 Jakub Jelinek <jakub@redhat.com>
2732
2733 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL): Undefined before
2734 defining.
2735
27362003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
2737
2738 * sysdeps/s390/s390-64/initfini.c: Avoid unterminated string literals.
2739 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (L): Don't define it
2740 here.
2741 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (L): Likewise.
2742
27432003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
2744
2745 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Move branch instructions
2746 from here...
2747 (PSEUDO): ... to here.
2748 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Move branch instruction
2749 from here...
2750 (PSEUDO): ... to here.
2751
9ef0a840
UD
27522003-01-13 Ulrich Drepper <drepper@redhat.com>
2753
2754 * locale/programs/charmap-dir.c (charmap_readdir): Use struct
2755 dirent64 instead of struct dirent for dirent. Call readdir64
2756 instead of readdir.
2757
2758 * locale/programs/locfile.c (siblings_uncached): Use struct
2759 dirent64 instead of struct dirent for other_dentry. Call
2760 readdir64 instead of readdir.
2761
2762 * elf/ldconfig.c (direntry): Change type to struct dirent64.
2763 (search_dir): Use readdir64 instead of readdir.
2764 Patch by Zhangfan Xing <xing@pacific.jpl.nasa.gov>.
2765
f1c5213d
RM
27662003-01-12 Roland McGrath <roland@redhat.com>
2767
c01ec9c7
RM
2768 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use strtoul,
2769 not strtol. The former is usable in ld.so, the latter not.
2770
f1c5213d
RM
2771 * include/fcntl.h: Declare __libc_creat.
2772
2773 * sysdeps/mach/hurd/Makefile (libmachuser-link.so-no-z-defs,
2774 libhurduser-link.so-no-z-defs): New variables.
2775
2776 * malloc/malloc.c: Revert last change.
2777 * malloc/malloc.h (_int_*): Move these decls to ...
2778 * include/malloc.h: ... here. Add attribute_hidden.
2779 (_int_valloc): Declare it too.
2780
73398a44
UD
27812003-01-12 Ulrich Drepper <drepper@redhat.com>
2782
115bb61d 2783 * elf/dl-close.c (_dl_close): Fix typo, must be == not = in
1376cd8c
UD
2784 search for removed searchlist. Reported by Roland McGrath.
2785
40212ce0
UD
2786 * io/ftwtest-sh: Add test for case of symlink to nonexisting file
2787 given as start file.
2788
2789 * io/ftw.c (ftw_startup): Use correct name in check for symlink
2790 without existing target. Patch by Jim Meyering.
2791
73398a44
UD
2792 * Makerules (build-shlib-helper): Don't use -z defs linker option
2793 if no-z-defs is defined either.
2794
27952003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
2796
2797 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Remove unused
2798 file.
2799
28002003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
2801
2802 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Add vfork.
2803 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2804
b2608c22
UD
28052003-01-12 Ulrich Drepper <drepper@redhat.com>
2806
2807 * io/ftwtest-sh: Add test case for relative path with /. at the end.
2808
28092003-01-12 Jim Meyering <jim@meyering.net>
2810
2811 * io/ftw.c (ftw_startup): When trying to stat the starting directory,
2812 use the basename if we've already chdir'd into its parent directory.
2813
a5ce5fcf
UD
28142003-01-12 Ulrich Drepper <drepper@redhat.com>
2815
2816 * io/ftw.c (process_entry): Use relative path when using chdir()
b2608c22 2817 to change directory after call to ftw_dir.
a5ce5fcf
UD
2818 * io/ftwtest-sh: Add test for relative path argument to nftw()
2819 with FTW_CHDIR option.
2820
b398ae3c
UD
28212002-01-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2822
2823 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
2824 Define for powerpc.
2825 * sysdeps/unix/sysv/linux/powerpc/syscall.S: Take register alignment
2826 into account.
2827 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
2828 (INTERNAL_SYSCALL): Make use of ERR parameter.
2829 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
2830 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
2831 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
2832 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
2833
28342002-01-09 Richard Henderson <rth@redhat.com>
2835
2836 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Compute
2837 DTPREL64 and TPREL64 without loadbase applied.
2838
28392002-01-09 Richard Henderson <rth@redhat.com>
2840
2841 * sysdeps/unix/alpha/sysdep.S: Use correct definition of errno
2842 for NOT_IN_libc.
2843
2844 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Move inline syscall bits...
2845 * sysdeps/unix/alpha/sysdep.h: ... here.
2846 (PSEUDO_LOADGP): Remove.
2847 (PSEUDO_PROLOGUE): Load GP in non-pic case.
2848 (SYSCALL_ERROR_LABEL): New.
2849 (PSEUDO): Use it in error branch.
2850 (PSEUDO_END): Add $syscall_error label.
2851
1f8613a6
AJ
28522003-01-12 Andreas Jaeger <aj@suse.de>
2853
2854 * math/bits/mathcalls.h: Round is a const function.
2855
aff4519d
UD
28562003-01-11 Jim Meyering <jim@meyering.net>
2857
2858 * io/ftw.c [HAVE_CONFIG_H]: Include <config.h>.
2859 [HAVE_SYS_PARAM_H || _LIBC]: Guard inclusion of <sys/param.h>.
2860 Include <sys/stat.h>, not <include/sys/stat.h>, if !_LIBC.
2861 [!_LIBC] (__chdir, __closedir, __fchdir, __getcwd, __opendir): Define.
2862 [!_LIBC] (__readdir64, __tdestroy, __tfind, __tsearch): Define.
2863 [!_LIBC] (internal_function, dirent64, MAX): Define.
2864 (__set_errno): Define if not already defined.
2865 (open_dir_stream): When FTW_CHDIR is enabled, invoke opendir on
2866 the basename, not the entire file name.
2867 (process_entry): When FTW_CHDIR is enabled, invoke XSTAT or LXSTAT on
2868 the basename, not the entire file name.
2869
28702003-01-12 Ulrich Drepper <drepper@redhat.com>
2871
2872 * string/tester.c (test_strcpy): Disable last added strcpy until
2873 it is fixed.
2874
28752003-01-11 Philip Blundell <philb@gnu.org>
2876
2877 * sysdeps/unix/sysv/linux/arm/socket.S: Add cancellation support.
2878
28792003-01-11 Andreas Schwab <schwab@suse.de>
2880
2881 * Makerules: Add vpath for %.dynsym and %.so so that the
2882 implicit rule chaining for check-abi works.
2883
28842003-01-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2885
2886 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
2887 Add non-PIC case.
2888
28892003-01-11 Jakub Jelinek <jakub@redhat.com>
2890
2891 * elf/tls-macros.h [__ia64__] (__TLS_CALL_CLOBBERS): Define.
2892 [__ia64__] (TLS_LE, TLS_IE): Fix typos. Add ;; at start of asm if
2893 gp is used early.
2894 [__ia64__] (TLS_LD, TLS_GD): Likewise. Use __TLS_CALL_CLOBBERS.
2895 * elf/Makefile ($(objpfx)tst-tlsmod5.so, $(objpfx)tst-tlsmod6.so):
2896 Ensure libc.so in DT_NEEDED.
2897 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Move
2898 CHECK_STATIC_TLS before l_tls_offset use.
2899 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
2900 Likewise.
2901 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
2902 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage) [TLS_DTV_AT_TP]:
2903 Allocate TLS_PRE_TCB_SIZE bytes below result.
2904 (_dl_deallocate_tls) [TLS_DTV_AT_TP]: Adjust before freeing.
2905 * sysdeps/generic/libc-tls.c (__libc_setup_tls): If
2906 TLS_INIT_TP_EXPENSIVE is not defined, allocate even if no PT_TLS
2907 segment has been found. If TLS_DTV_AT_TP, allocate TLS_PRE_TCB_SIZE
2908 bytes below result and add tcb_offset to memsz.
2909 * sysdeps/ia64/dl-tls.h (__tls_get_addr): New prototype.
2910 * sysdeps/ia64/dl-machine.h: Include tls.h.
2911 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS relocs
2912 too.
2913 (elf_machine_rela): Assume if sym_map != NULL sym is non-NULL too.
2914 Handle R_IA64_DTPMOD*, R_IA64_DTPREL* and R_IA64_TPREL* relocations.
2915 * sysdeps/ia64/libc-tls.c: New file.
2916
29172003-01-10 Steven Munroe <sjmunroe@us.ibm.com>
2918
2919 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_RET): Add branch hit.
2920 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h (STAT_VER_LINUX):
2921 Fix type. Move definition out of #if.
2922 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ftruncate64.c: New file.
2923 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: New file.
2924 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: New file.
2925 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: New file.
2926 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: New file.
2927 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Add cancellation
2928 support.
2929 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Remove
2930 ftruncate64, pread64, pwrite64, truncate64 entries.
2931 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
2932 (INLINE_SYSCALL): New version that supports function call like
2933 syscalls. Add __builtin_expect.
2934 (LOADARGS_n): Add argument size safety checks.
2935 (INTERNAL_SYSCALL): New Macro.
2936 * sysdeps/unix/sysv/linux/powerpc/powerpc64/truncate64.c: New file.
2937 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [__PPC_ELF_H]: Avoid
2938 redefinition of elf_fpreg_t and elf_fpregset_t.
2939
29402003-01-12 Ulrich Drepper <drepper@redhat.com>
2941
2942 * elf/dl-close.c (_dl_close): Add several asserts. Correct and
2943 simplify test for unloading. If loader of a DSO is unloaded do not
2944 use its scope anymore. Fall back to own scope and adjust opencounts.
2945 Fix several comments.
2946 * elf/dl-deps.c (_dl_map_object_deps): Always allocate memory for
2947 the l_searchlist, not only for l_initfini.
2948
2949 * elf/dl-lookup.c (add_dependencies): Avoid creating relocation
2950 dependencies if objects cannot be removed. Remove object with the
2951 definition as not unloadable if necessary.
2952
2953 * elf/reldep6.c: Create relocation dependency before closing the first
2954 module.
2955
2956