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