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