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