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