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