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