]> sourceware.org Git - glibc.git/blob - ChangeLog
Update.
[glibc.git] / ChangeLog
1 2003-03-23 Ulrich Drepper <drepper@redhat.com>
2
3 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ret_NOERRNO): Avoid
4 unwanted expansion by definining to ret. Patch by Ian Wienand.
5
6 * sysdeps/unix/make-syscalls.sh: Recognize 'E' in first position of
7 the parameter description to denote no error checking. Generate
8 appropriate pseudo asm code.
9 * sysdeps/unix/syscalls.list: Mark getgid, getpid, getuid with 'E'.
10 * sysdeps/unix/sysv/linux/syscalls.list: Mark getegid, geteuid,
11 getpgrp, and getppid with 'E'.
12 * sysdeps/powerpc/powerpc32/sysdep.h: Define PSEUDO_NOERRNO,
13 PSEUDO_END_NOERRNO, and ret_NOERRNO.
14 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
15 * sysdeps/unix/sysdep.h: Likewise.
16 * sysdeps/unix/alpha/sysdep.h: Likewise.
17 * sysdeps/unix/sparc/sysdep.h: Likewise.
18 * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
19 * sysdeps/unix/sysv/linux/cris/sysdep.h: Likewise.
20 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
21 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
22 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
23 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
24 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
25 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
26 * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
27 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
28 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
29
30 2003-03-23 Roland McGrath <roland@redhat.com>
31
32 * Makeconfig (+includes): Don't use $(last-includes).
33
34 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
35
36 * sysdeps/unix/sysv/linux/configure.in: Update mips64 patterns.
37 * sysdeps/unix/sysv/linux/configure: Rebuilt.
38
39 2003-03-23 Jakub Jelinek <jakub@redhat.com>
40
41 * sysdeps/alpha/fpu/libm-test-ulps: Update.
42 * sysdeps/arm/libm-test-ulps: Update.
43 * sysdeps/hppa/fpu/libm-test-ulps: Update.
44 * sysdeps/ia64/fpu/libm-test-ulps: Update.
45 * sysdeps/mips/fpu/libm-test-ulps: Update.
46 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
47 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
49 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
50 * sysdeps/sh/sh4/fpu/libm-test-ulps: Update.
51 * sysdeps/s390/fpu/libm-test-ulps: Update.
52 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
53
54 2003-03-22 Roland McGrath <roland@redhat.com>
55
56 * include/atomic.h: Put parens around all macro arguments.
57 (__atomic_val_bysize, __atomic_bool_bysize): New macros.
58 (atomic_compare_and_exchange_val_acq): Use it.
59 (atomic_compare_and_exchange_bool_acq): Likewise.
60 (atomic_increment_and_test): Invert sense of test.
61 (atomic_decrement_and_test): Likewise.
62 * csu/tst-atomic.c: Update those tests to match.
63
64 2003-03-22 Jakub Jelinek <jakub@redhat.com>
65
66 * include/atomic.h (atomic_compare_and_exchange_val_acq): Add comment.
67 Don't define if __arch_compare_and_exchange_val_32_acq is not defined.
68 (atomic_compare_and_exchange_bool_acq): Add comment. Don't use
69 __oldval variable in the macro, since it might be macro argument.
70 (atomic_decrement_if_positive): Initialize __memp, remove setting
71 of non-existent variable.
72 (atomic_bit_test_set): Cast 1 to __typeof (*mem) before shifting.
73 * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Implement
74 using atomic_compare_and_exchange_val_acq.
75 (atomic_decrement_if_positive, atomic_bit_test_set): Define.
76 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
77 Renamed from...
78 (__arch_compare_and_exchange_bool_8_acq): ... this.
79 (__arch_compare_and_exchange_val_16_acq): Renamed from...
80 (__arch_compare_and_exchange_bool_16_acq): ... this.
81 (__arch_compare_and_exchange_val_32_acq): Return old value. Renamed
82 from...
83 (__arch_compare_and_exchange_bool_32_acq): ... this.
84 (__arch_compare_and_exchange_val_64_acq): Return old value. Renamed
85 from...
86 (__arch_compare_and_exchange_bool_64_acq): ... this.
87 (__arch_compare_and_exchange_val_32_acq): Use __typeof for local
88 variables types instead of assuming int.
89 Change prefix of local variables to __arch.
90 * sysdeps/generic/bits/atomic.h (arch_compare_and_exchange_acq):
91 Remove.
92 (atomic_compare_and_exchange_val_acq,
93 atomic_compare_and_exchange_bool_acq): Define.
94
95 * csu/tst-atomic.c: New test.
96 * csu/tst-atomic-long.c: New test.
97 * csu/Makefile (tests): Add tst-atomic and tst-atomic-long.
98
99 * malloc/memusagestat.c (main): Kill warning if uint64_t is ulong.
100
101 * sysdeps/s390/Versions: Add trailing newline.
102
103 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Kill warning
104 if INTERNAL_SYSCALL_ERROR_P doesn't use its first argument.
105
106 2003-03-22 Andreas Schwab <schwab@suse.de>
107
108 * sysdeps/m68k/fpu/libm-test-ulps: Update.
109
110 * sysdeps/m68k/m68020/bits/atomic.h: New file.
111 * sysdeps/m68k/m68020/atomicity.h: Removed.
112
113 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
114
115 * sysdeps/mips/elf/ldsodefs.h: Add mips-specific elf64 relocation
116 data structures and macros. Protect from multiple inclusion.
117
118 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Fix harmless
119 typo in #if test.
120
121 2003-03-21 Andreas Jaeger <aj@suse.de>
122
123 * sysdeps/i386/fpu/libm-test-ulps: Update.
124
125 * math/libm-test.inc (tgamma_test): Recompute some constants with
126 36 digits precision.
127 (lgamma_test): Likewise.
128 (ccos_test): Likewise.
129 (ccosh_test): Likewise.
130 (clog10_test): Likewise.
131 (csin_test): Likewise.
132 (csinh_test): Likewise.
133 (ctan_test): Likewise.
134 (ctanh_test): Likewise.
135
136 2003-03-19 Jakub Jelinek <jakub@redhat.com>
137
138 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Regenerated.
139
140 2003-03-21 Roland McGrath <roland@redhat.com>
141
142 * sysdeps/i386/i486/bits/atomic.h (atomic_bit_set): Use "ir"
143 constraint to permit non-constant BIT argument.
144 (atomic_bit_test_set): Likewise.
145 * sysdeps/x86_64/bits/atomic.h (atomic_bit_test_set): Likewise.
146 (atomic_bit_set): Likewise. Use 1UL in case that BIT might be >= 32.
147 For quadword case, use "i" constraint if __builtin_constant_p and < 32
148 or "r" constraint otherwise.
149
150 * configure.in: Move AC_PROG_CC and other program-finding before all
151 the version checks.
152 * configure: Regenerated.
153
154 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
155
156 * sysdeps/mips/mips64/memcpy.S: Fix porting bug that broke
157 unaligned copying of 8-15 bytes. From Chris Demetriou
158 <cgd@broadcom.com>. Fix label names.
159 * sysdeps/mips/mips64/memset.S: Fix label names. Make similar
160 change as to memcpy.S.
161 * sysdeps/mips/memcpy.S: Formatting changes.
162 * sysdeps/mips/memset.S: Likewise.
163
164 2003-03-21 Roland McGrath <roland@redhat.com>
165
166 * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add trailing semicolon.
167
168 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
169
170 * sysdeps/mips/mips64/memcpy.S, sysdeps/mips/mips64/memset.S: New.
171 * sysdeps/mips/memcpy.S, sysdeps/mips/memset.S: Update comments.
172
173 2003-03-21 Roland McGrath <roland@redhat.com>
174
175 * sysdeps/i386/i486/bits/atomic.h
176 (__arch_compare_and_exchange_val_64_acq): Rewrite abort-calling
177 version of the macro to avoid compile-time warnings.
178 [! __PIC__] (__arch_compare_and_exchange_64_acq): Rename to above.
179 (atomic_exchange_and_add, atomic_add): Fix name and usage of it.
180 (atomic_increment, atomic_decrement): Likewise.
181
182 2003-03-21 Ulrich Drepper <drepper@redhat.com>
183
184 * sysdeps/x86_64/bits/atomic.h: Don't use matching memory constraints.
185 * sysdeps/i386/i486/bits/atomic.h: Likewise.
186
187 2003-03-21 Roland McGrath <roland@redhat.com>
188
189 * include/atomic.h (atomic_compare_and_exchange_bool_acq): Typo fix.
190
191 2003-03-20 Ulrich Drepper <drepper@redhat.com>
192
193 * include/atomic.h: Define atomic_compare_and_exchange_val_acq,
194 atomic_compare_and_exchange_val_rel,
195 atomic_compare_and_exchange_bool_acq, and
196 atomic_compare_and_exchange_bool_rel instead of
197 atomic_compare_and_exchange_acq and atomic_compare_and_exchange_rel.
198 * sysdeps/i386/i486/bits/atomic.h: Define
199 __arch_compare_and_exchange_val_*_acq instead of
200 __arch_compare_and_exchange_*_acq.
201 * sysdeps/x86_64/bits/atomic.h: Likewise.
202 * sysdeps/ia64/bits/atomic.h: Define
203 __arch_compare_and_exchange_bool_*_acq instead of
204 __arch_compare_and_exchange_*_acq.
205 * sysdeps/powerpc/bits/atomic.h: Likewise.
206 * sysdeps/s390/bits/atomic.h: Likewise.
207 * gmon/mcount.c: Adjust for new form of compare&exchange macros.
208 * malloc/set-freeres.c: Likewise.
209 * nscd/cache.c: Likewise.
210 * stdlib/cxa_finalize.c: Likewise.
211 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
212
213 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
214
215 * sysdeps/mips/bits/setjmp.h: n32 has only 6 call-saved fpregs.
216 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Adjust.
217 * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
218
219 * sysdeps/unix/sysv/linux/mips/pread.c: Don't break up offset
220 into high and low halves on n64.
221 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
222 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
223 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
224
225 2003-03-20 Ulrich Drepper <drepper@redhat.com>
226
227 * include/atomic.h (atomic_decrement_if_positive): Adjust for the
228 correct atomic_compare_and_exchange_acq semantics.
229
230 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
231
232 * sysdeps/mips/ieee754.h: Remove excess #endif.
233
234 2003-03-20 Roland McGrath <roland@redhat.com>
235
236 * sysdeps/powerpc/bits/atomic.h (atomic_exchange): Remove unused
237 variable. Remove superfluous memory clobber.
238
239 * include/atomic.h: Syntax braino fix.
240
241 * posix/tst-nice.c (do_test): Use %m formats instead of printing errno
242 in decimal. Don't bail if niced at start. Just check that nice call
243 bumps the total at all.
244
245 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
246
247 * sysdeps/mips/bits/setjmp.h: Store all N32 and N64 registers,
248 including pc, gp, sp and fp, as long long.
249 * sysdeps/mips/mips64/setjmp.S: Pass gp to __sigsetjmp_aux.
250 * sysdeps/mips/mips64/setjmp_aux.c: Adjust type of arguments.
251 Add gp argument, and set gp in the jmpbuf to it.
252 * sysdeps/mips/setjmp_aux.c: Revert to o32-only.
253
254 2003-03-20 Ulrich Drepper <drepper@redhat.com>
255
256 * include/atomic.h: Define atomic_exchange and
257 atomic_decrement_if_positive if not already defined. Add some
258 __builtin_expect.
259 * sysdeps/i386/i486/bits/atomic.h: Define atomic_exchange.
260 * sysdeps/x86_64/bits/atomic.h: Likewise.
261 * sysdeps/ia64/bits/atomic.h: Pretty printing. Define atomic_exchange.
262 * sysdeps/powerpc/bits/atomic.h: Pretty printing. Define
263 atomic_exchange, atomic_exchange_and_add, and
264 atomic_decrement_if_positive
265
266 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
267
268 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: Sign-extend
269 with a single instruction.
270
271 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Define
272 properly for n64.
273 (elf_machine_runtime_setup): Cast link_map pointer to Elf Addr
274 type.
275 (elf_machine_rel, elf_machine_rel_relative): Cast symidx to Elf
276 Word before comparing with gotsym. Take reloc_addr argument as
277 void*. Remove the code added for the compiler to drop any
278 alignment assumptions.
279
280 2003-03-19 Ulrich Drepper <drepper@redhat.com>
281
282 * Makefile (distribute): Add include/atomic.h and bits/atomic.h.
283 * include/atomic.h: New file.
284 * sysdeps/i386/i486/bits/atomic.h: New file.
285 * sysdeps/x86_64/bits/atomic.h: New file.
286 * sysdeps/s390/bits/atomic.h: New file.
287 * sysdeps/sh/bits/atomic.h: New file.
288 * sysdeps/ia64/bits/atomic.h: New file.
289 * sysdeps/powerpc/bits/atomic.h: New file.
290 * sysdeps/generic/bits/atomic.h: New file.
291 * sysdeps/i386/i486/atomicity.h: Removed.
292 * sysdeps/x86_64/atomicity.h: Removed.
293 * sysdeps/s390/s390-32/atomicity.h: Removed.
294 * sysdeps/s390/s390-64/atomicity.h: Removed.
295 * sysdeps/ia64/atomicity.h: Removed.
296 * sysdeps/powerpc/powerpc32/atomicity.h: Removed.
297 * sysdeps/powerpc/powerpc64/atomicity.h: Removed.
298 * elf/dl-profile.c: Use atomic.h instead of atomicity.h. Adjust
299 use of macros from atomicity.h to new names and semantics.
300 * gmon_mcount.c: Likewise.
301 * malloc/set-freeres.c: Likewise.
302 * nscd/cache.c: Likewise.
303 * stdlib/cxa_finalize.c: Likewise.
304 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
305
306 2003-03-19 Alexandre Oliva <aoliva@redhat.com>
307
308 * sysdeps/mips/ieee754.h: New file, suitable to replace both
309 ../ieee754/ieee754.h and ../ieee754/ldbl-128/ieee754.h, kept
310 mips-specific for now.
311
312 2003-03-19 Ulrich Drepper <drepper@redhat.com>
313
314 * stdlib/strtod.c (INTERNAL): While eating trailing zeros handle
315 hexdigits correctly. Reported by Fred Tydeman <tydeman@tybor.com>.
316 * stdlib/tst-strtod.c: Add test for the bug.
317
318 * posix/tst-nice.c (do_test): Remove invalid of return value.
319 Don't run test if initial level != 0.
320
321 2003-03-19 Amos Waterland <apw@us.ibm.com>
322
323 * posix/tst-nice.c: New file.
324 * posix/Makefile (tests): Add tst-nice.
325
326 2003-03-18 Roland McGrath <roland@redhat.com>
327
328 * abilist: New directory of libfoo.abilist files maintained using
329 scripts/merge-abilist.awk and "make update-abi" rules.
330 * Makefile (distribute): Add abilist/*.abilist.
331 * Makerules [$(build-shared) = yes] [$(subdir)] (tests):
332 Depend on check-abi.
333
334 * configure.in: Move $critic_missing check after all AC_CHECK_PROG_VER.
335 * configure: Regenerated.
336
337 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64): Fix name.
338
339 2003-03-18 Ulrich Drepper <drepper@redhat.com>
340
341 * sysdeps/posix/sysconf.c (__sysconf): Handle _SC_MONOTONIC_CLOCK
342 correctly.
343
344 2003-03-18 Steven Munroe <sjmunroe@us.ibm.com>
345
346 * sysdeps/powerpc/powerpc64/memcpy.S: New file.
347
348 2003-03-18 Ulrich Drepper <drepper@redhat.com>
349
350 * Versions.def: Add GLIBC_2.3.3 for libpthread.
351
352 2003-03-17 Ulrich Drepper <drepper@redhat.com>
353
354 * sysdeps/generic/libc-start.c [!SHARED &&
355 !LIBC_START_MAIN_AUXVEC_ARG]: Compute beginning of auxvec correctly.
356
357 2003-03-17 Roland McGrath <roland@redhat.com>
358
359 * include/ctype.h: Revert last change.
360
361 2003-03-17 Ulrich Drepper <drepper@redhat.com>
362
363 * argp/tst-argp1.c: Use test-skeleton.c.
364 * locale/tst-C-locale.c: Likewise.
365
366 2003-03-17 Alexandre Oliva <aoliva@redhat.com>
367
368 * sysdeps/mips/mips64/Implies: Move wordsize-64 to...
369 * sysdeps/mips/mips64/n64/Implies: New file.
370 * sysdeps/mips/mips64/n64/Makefile: New file.
371 * sysdeps/mips/mips64/n64/el/bits/endian.h: New file.
372 * sysdeps/mips/mips64/n32/Implies: New file.
373 * sysdeps/mips/mips64/n32/Makefile: New file.
374 * sysdeps/mips/mips64/n32/el/bits/endian.h: New file.
375 * sysdeps/unix/mips/mips64/n32/sysdep.h: New file.
376 * sysdeps/unix/mips/mips64/n64/sysdep.h: New file.
377 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: New file.
378 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: New file.
379 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: New file.
380 * sysdeps/unix/sysv/linux/mips/mips64/ldconfig.h: New file.
381 * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: New file.
382 * sysdeps/unix/sysv/linux/mips/mips64/recv.c: New file.
383 * sysdeps/unix/sysv/linux/mips/mips64/send.c: New file.
384 * sysdeps/unix/sysv/linux/mips/mips64/syscall.S: New file.
385 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: New file.
386 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: New file.
387 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: New file.
388
389 * sysdeps/unix/sysv/linux/configure.in (libc_cv_slibdir): Use
390 lib64 for mips64/n64 and lib32 for mips64/n32.
391 (ldd_rewrite_script): Needed for all mips64 configurations.
392 * sysdeps/unix/sysv/linux/configure: Rebuilt.
393 * sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed: New file.
394 * sysdeps/unix/sysv/linux/mips/mips64/Dist: New file.
395
396 * sysdeps/mips/machine-gmon.h (MCOUNT): Define for N32 and N64 as
397 well.
398
399 * sysdeps/unix/sysv/linux/mips/configure.in: New. Pre-process
400 asm/unistd.h into asm-unistd.h.
401 * sysdeps/unix/sysv/linux/mips/configure: Generated.
402 * sysdeps/unix/sysv/linux/mips/Makefile: Do custom processing
403 of syscall list.
404 * sysdeps/unix/sysv/linux/mips/sys/syscall.h: New file.
405 * sysdeps/unix/sysv/linux/mips/clone.S: Don't include
406 asm/unistd.h.
407
408 * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: New file.
409 * sysdeps/unix/sysv/linux/mips/ptrace.c: New file. Use long
410 long type for registers on n32.
411
412 * sysdeps/mips/bits/wordsize.h: New file, appropriate for all
413 3 ABIs.
414 * sysdeps/mips/mips64/gmp-mparam.h: New file. Define
415 BITS_PER_LONGINT to __WORDSIZE, to match all 3 ABIs.
416 * sysdeps/mips/setjmp_aux.c (STRINGXP, REGS, PTRS): New macros.
417 (__sigsetjmp_aux): Use them. Adjust for all 3 ABIs.
418 * sysdeps/mips/elf/start.S: Adjust for all 3 ABIs.
419 * sysdeps/unix/mips/brk.S: Likewise.
420 * sysdeps/unix/mips/sysdep.S: Likewise.
421 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
422 * sysdeps/mips/bits/setjmp.h (__jmp_buf): Likewise.
423 * sysdeps/mips/sys/ucontext.h: Likewise.
424 * sysdeps/unix/sysv/linux/mips/sys/profcs.h: Likewise.
425 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
426 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
427 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
428 * sysdeps/mips/mips64/bsd-setjmp.S: Likewise.
429 * sysdeps/mips/mips64/setjmp.S: Likewise.
430 * sysdeps/mips/mips64/bits/setjmp.h: Deleted, obsolete.
431 * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Use long long for
432 64-bit types.
433
434 2003-03-16 Ulrich Drepper <drepper@redhat.com>
435
436 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Define tv here,
437 not at function level.
438 * sysdeps/unix/clock_gettime.c (HANDLE_REALTIME): Likewise.
439
440 2003-03-15 Roland McGrath <roland@redhat.com>
441
442 * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r): int -> size_t
443 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
444 * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Likewise.
445 * nis/nis_table.c (__create_ib_request): Likewise.
446
447 * posix/fnmatch_loop.c: Add casts for signedness.
448 * nss/nss_files/files-hosts.c: Likewise.
449 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
450 * gmon/gmon.c (write_call_graph): Use u_long for FROM_LEN.
451 * nscd/nscd_getgr_r.c (nscd_getgr_r): Use nscd_ssize_t for CNT.
452
453 * configure.in (libc_cv_visibility_attribute): Use AC_TRY_COMMAND,
454 get errors into the log file.
455 (libc_cv_broken_visibility_attribute): Likewise.
456 (libc_cv_broken_alias_attribute): Likewise.
457 (libc_cv_asm_weak_directive): Likewise.
458 (libc_cv_need_minus_P): Likewise.
459 (libc_cv_dot_text): Likewise.
460 (libc_cv_asm_global_directive): Likewise.
461 (libc_cv_asm_type_prefix): Likewise.
462 * configure: Regenerated.
463
464 * nscd/cache.c (cache_search): Give first arg type `request_type'.
465 * nscd/nscd.h: Update decl.
466
467 * nscd/nscd_getpw_r.c (nscd_getpw_r): Add casts for signedness.
468 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
469 * elf/dl-close.c (_dl_close): Likewise.
470 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): int -> size_t
471 * io/fts.c (fts_build): Likewise.
472 * elf/cache.c (add_to_cache): Likewise.
473 * locale/programs/locarchive.c (show_archive_content): Likewise.
474
475 * posix/fnmatch.c (fnmatch): Tweak __builtin_expect use.
476
477 * include/ctype.h (__ctype_b_loc): Tweak type punning to make gcc 3.3
478 happy.
479 (__ctype_toupper_loc, __ctype_tolower_loc): Likewise.
480
481 2003-03-15 Ulrich Drepper <drepper@redhat.com>
482
483 * sysdeps/unix/sysv/linux/ia64/system.c: Use the generic Linux
484 code for most parts.
485
486 2003-03-15 Roland McGrath <roland@redhat.com>
487
488 * sysdeps/unix/sysv/linux/i386/system.c: Moved to ...
489 * sysdeps/unix/sysv/linux/system.c: ... here.
490 (FORK): Don't #define if already #define'd.
491 * sysdeps/unix/sysv/linux/s390/system.c: File removed.
492 * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]:
493 (__ASSUME_CLONE_THREAD_FLAGS): Define for kernel >= 2.5.64.
494
495 * dlfcn/tst-dlinfo.c: New file.
496 * dlfcn/Makefile (tests): Add tst-dlinfo.
497 ($(objpfx)tst-dlinfo): New target.
498
499 * dlfcn/dlinfo.c: New file.
500 * dlfcn/Makefile (libdl-routines): Add it.
501 * dlfcn/Versions (libdl: GLIBC_2.3.3): Add dlinfo.
502 * dlfcn/dlfcn.h [__USE_GNU]: Declare dlinfo.
503 [__USE_GNU] (RTLD_DI_*): New enum constants.
504 [__USE_GNU] (Dl_serpath, Dl_serinfo): New types.
505 * elf/dl-load.c (cache_rpath): New inline function.
506 (_dl_map_object): Use it.
507 (_dl_rtld_di_serinfo): New function.
508 * sysdeps/generic/ldsodefs.h: Declare it.
509 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
510
511 * sysdeps/powerpc/elf/libc-start.c (AUX_VECTOR_INIT): Define it.
512 (LIBC_START_MAIN, LIBC_START_MAIN_AUXVEC_ARG, MAIN_AUXVEC_ARG)
513 (INIT_MAIN_ARGS): Define, and #include <sysdeps/generic/libc-start.c>.
514 (__libc_start_main): Just call the generic one for most of the work.
515
516 * sysdeps/generic/libc-start.c [LIBC_START_MAIN]: If defined, define a
517 static function by that name instead of BP_SYM (__libc_start_main).
518 [LIBC_START_MAIN_AUXVEC_ARG]: Take AUXVEC as argument.
519 [MAIN_AUXVEC_ARG]: Pass 4th argument to MAIN.
520 [INIT_MAIN_ARGS]: Give INIT the same args as MAIN.
521
522 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_PLATFORM_AUXV]:
523 Use this macro for extra AT_* cases.
524 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c (DL_PLATFORM_AUXV):
525 New macro, guts from ...
526 (__aux_init_cache): ... here, function removed.
527 (DL_PLATFORM_INIT): Don't define this.
528
529 * sysdeps/powerpc/powerpc32/memset.S: Put __cache_line_size in bss.
530 * sysdeps/powerpc/powerpc64/memset.S: Likewise.
531
532 * Versions.def (libthread_db): Add GLIBC_2.3.3 set.
533
534 2003-03-14 Roland McGrath <roland@redhat.com>
535
536 * dlfcn/dlerror.c (dlerror): If objname is "", don't put ": " after it.
537
538 2003-03-14 Jakub Jelinek <jakub@redhat.com>
539
540 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Fix a typo.
541
542 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
543 sysdeps/posix/pause.c instead of sysdeps/unix/common/pause.c.
544
545 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
546
547 * sysdeps/mips/fpu/bits/mathdef.h: New.
548 (__NO_LONG_DOUBLE_MATH): Define for o32.
549
550 * sysdeps/mips/sys/asm.h: Formatting changes.
551 (PTR, PTRSIZE, PTRLOG): Adjust for all 3 ABIs.
552 (CPADD): Define for all of them.
553 (SETUP_GP, SETUP_GPX, SETUP_GPX_L, SAVE_GP, SETUP_GP64,
554 SETUP_GPX64, SETUP_GPX64_L, RESTORE_GP64, USE_ALT_CP,
555 NARGSAVE): Define per ABI spec.
556 (END): Don't redefine.
557 (LONG_SLL, LONG_SLLV, LONG_SRL, LONG_SRLV, LONG_SRA,
558 LONG_SRAV): Remove duplicate definitions.
559 (PTR_ADD, PTR_ADDI, PTR_ADDU, PTR_ADDIU, PTR_SUB, PTR_SUBI,
560 PTR_SUBU, PTR_SUBIU, PTR_L, PTR_S, PTR_SLL, PTR_SLLV, PTR_SRL,
561 PTR_SRLV, PTR_SRA, PTR_SRAV, PTR_SCALESHIFT): Define for n32.
562 (PTR_LA): Define for all 3 ABIs.
563
564 * sysdeps/mips/dl-machine.h: Include sys/asm.h.
565 (elf_machine_matches_host): Prevent linking of o32 and n32
566 together.
567 (elf_machine_dynamic): Document assumption on $gp.
568 (STRINGXP, STRINGXV, STRINGV_): New macros.
569 (elf_machine_load_address): Use them to stringize PTR_LA and
570 PTR_SUBU.
571 (ELF_DL_FRAME_SIZE, ELF_DL_SAVE_ARG_REGS,
572 ELF_DL_RESTORE_ARG_REGS, IFABIO32): New macros used in...
573 (_dl_runtime_resolve): Adjust it for all 3 ABIs.
574 (__dl_runtime_resolve): Cast the symtab initializer to the
575 right type.
576 (RTLD_START): Use it. Adjust it for all 3 ABIs.
577 (elf_machine_rel): Mark as always_inline in RTLD_BOOTSTRAP.
578 Handle 64-bit R_MIPS_REL composite relocation and accept
579 R_MIPS_64 relocations to shift addend size to 64 bits.
580 Document assumption regarding local GOT entries. Document
581 backward-compatibility departing from the ABI behavior in
582 applying relocations that reference section symbols, no longer
583 used. Support relocations to mis-aligned offsets.
584 * sysdeps/mips/mips64/dl-machine.h: Deleted, obsolete.
585
586 * sysdeps/unix/sysv/linux/mips/readelflib.c: New file.
587
588 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h
589 (_KERNEL_NSIG_BPW): Define in terms of _MIPS_SZLONG.
590 * sysdeps/unix/sysv/linux/mips/sigaction.c: Define restore and
591 restore_rt functions. Use them.
592
593 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
594 .set mips2 on new abis.
595
596 2003-03-13 Ulrich Drepper <drepper@redhat.com>
597
598 * posix/getconf.c: Recognize POSIX2_SYMLINKS.
599 * sysdeps/generic/bits/confname.h: Define _PC_2_SYMLINKS.
600 * sysdeps/posix/fpathconf.c: Handle _PC_2_SYMLINKS.
601 * sysdeps/posix/pathconf.c: Likewise.
602 * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
603 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
604 * sysdeps/unix/sysv/linux/pathconf.h: Define statfs_symlinks.
605
606 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define some more magic
607 words.
608
609 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
610
611 * include/gmp.h: Include/gmp-mparam.h.
612 * stdlib/strtod.c: Include gmp-mparam.h before gmp.h and
613 gmp-impl.h.
614
615 * elf/dl-conflict.c: Don't compile _dl_resolve_conflicts if
616 ELF_MACHINE_NO_RELA is set.
617 * elf/rtld.c (dl_main): No prelink support for REL-only.
618
619 * sysdeps/generic/ldconfig.h (FLAG_MIPS64_LIBN32,
620 FLAG_MIPS64_LIBN64): Define.
621 * elf/cache.c (print_entry): Handle mips64 n32 and n64.
622
623 * sysdeps/mips/memcpy.S: Map t0-3 to a4-7 on new abis.
624 * sysdeps/mips/memset.S: Likewise.
625 * sysdeps/mips/sys/regdef.h: Alias a4-7 or t0-3 to $8-11
626 depending on the ABI.
627
628 * sysdeps/mips/atomicity.h (exchange_and_add, atomic_add):
629 Don't .set mips2 on new abi.
630 (compare_and_swap): Likewise. Support 64-bit longs on n64.
631
632 * stdlib/fpioconst.h: Include gmp.h with angle brackets.
633
634 2003-03-13 Roland McGrath <roland@redhat.com>
635
636 * elf/dl-load.c (_dl_map_object_from_fd): Bail if no PT_LOAD phdrs
637 found. Reported by Alexandre Oliva <aoliva@redhat.com>.
638
639 2003-03-13 Alexandre Oliva <aoliva@redhat.com>
640
641 * stdio-common/_itoa.c (_itoa_base_table): Make 64-bit
642 literals long long.
643 * stdlib/fpioconst.c: Likewise.
644 * stdlib/strtod.c: Likewise.
645
646 * sysdeps/mips/add_n.S: Use L macro for local labels.
647 * sysdeps/mips/addmul_1.S: Likewise.
648 * sysdeps/mips/lshift.S: Likewise.
649 * sysdeps/mips/memcpy.S: Likewise.
650 * sysdeps/mips/memset.S: Likewise.
651 * sysdeps/mips/mul_1.S: Likewise.
652 * sysdeps/mips/rshift.S: Likewise.
653 * sysdeps/mips/sub_n.S: Likewise.
654 * sysdeps/mips/submul_1.S: Likewise.
655 * sysdeps/mips/mips64/add_n.S: Likewise.
656 * sysdeps/mips/mips64/addmul_1.S: Likewise.
657 * sysdeps/mips/mips64/lshift.S: Likewise.
658 * sysdeps/mips/mips64/mul_1.S: Likewise.
659 * sysdeps/mips/mips64/rshift.S: Likewise.
660 * sysdeps/mips/mips64/sub_n.S: Likewise.
661 * sysdeps/mips/mips64/submul_1.S: Likewise.
662 * sysdeps/unix/mips/sysdep.h: Define L() according to ABI
663 conventions. Define END as in sys/asm.h.
664 * sysdeps/unix/mips/sysdep.S: Likewise.
665 * sysdeps/unix/mips/wait.S: Likewise.
666 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
667
668 * sysdeps/ieee754/dbl-64/dbl2mpn.c (__mpn_extract_double):
669 Cast shifted values that may be too narrow to mp_limb_t.
670 * sysdeps/ieee754/dbl-64/mpn2dbl.c (__mpn_construct_double):
671 Likewise.
672 * sysdeps/ieee754/flt-32/mpn2flt.c (__mpn_construct_float):
673 Likewise.
674 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c
675 (__mpn_extract_long_double): Likewise.
676 * sysdeps/ieee754/ldbl-128/mpn2ldbl.c
677 (__mpn_construct_long_double): Likewise.
678 * sysdeps/ieee754/ldbl-96/ldbl2mpn.c
679 (__mpn_extract_long_double): Likewise.
680 * sysdeps/ieee754/ldbl-96/mpn2ldbl.c
681 (__mpn_construct_long_double): Likewise.
682
683 2003-03-13 Roland McGrath <roland@redhat.com>
684
685 * elf/Makefile ($(objpfx)librtld.mk): Tweak regexp so that one-line
686 entries in the map file match too.
687
688 2003-03-13 Guido Guenther <agx@sigxcpu.org>
689
690 * sysdeps/unix/sysv/linux/mips/clone.S: introduce and use local
691 label .Lthread_start since current binutils don't allow branches
692 to globally visible symbols.
693
694 2003-03-13 Jakub Jelinek <jakub@redhat.com>
695
696 * sysdeps/unix/sysv/linux/ia64/sysdep.h (BREAK_INSN_1, BREAK_INSN,
697 ASM_OUTARGS_0, ASM_OUTARGS_1, ASM_OUTARGS_2, ASM_OUTARGS_3,
698 ASM_OUTARGS_4, ASM_OUTARGS_5, ASM_OUTARGS_6): Define.
699 (INTERNAL_SYSCALL, INLINE_SYSCALL): Use it. Make syscall arguments
700 clobbered by the syscall.
701 (ASM_ARGS_1, ASM_ARGS_2, ASM_ARGS_3, ASM_ARGS_4, ASM_ARGS_5,
702 ASM_ARGS_6): Change constraints from r to index of corresponding
703 output register.
704 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Swap
705 ptid and ctid to match kernel.
706 * sysdeps/unix/sysv/linux/ia64/system.c (FORK): Likewise.
707
708 2003-03-12 Steven Munroe <sjmunroe@us.ibm.com>
709
710 * sysdeps/powerpc/powerpc64/elf/configure.in: Remove
711 AC_DEFINE(PI_STATIC_AND_HIDDEN). Not supported for PowerPC64.
712 * sysdeps/powerpc/powerpc64/elf/configure: Regenerated.
713
714 2003-03-11 Roland McGrath <roland@redhat.com>
715
716 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
717 Check SYM_MAP rather than SYM as definedness check.
718 Handle R_PPC64_ADDR32, R_PPC64_ADDR30, and R_PPC64_REL64 relocs.
719 Don't handle R_PPC64_REL24 reloc.
720 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
721
722 * sysdeps/powerpc/powerpc64/dl-machine.h
723 [USE_TLS] (elf_machine_type_class): Match all the TLS relocs in a
724 block, so we cover all the TPREL16* flavors without 6 ||s.
725 [USE_TLS] (elf_machine_tprel): New function.
726 (elf_machine_rela) [USE_TLS]: Use elf_machine_tprel for TPREL64 reloc,
727 and handle TPREL16 relocs too. Return rather than break for DTPREL64.
728 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
729
730 2003-03-11 Ralf Baechle <ralf@linux-mips.org>
731
732 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start): Use jal
733 instead of jalr to invoke subroutine so restoring the $gp register
734 will work properly.
735
736 2003-03-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
737
738 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (__NR_pread64): Define
739 to __NR_pread if not defined.
740 (__NR_pwrite64): Define to __NR_pwrite if not defined.
741
742 2003-03-11 Jakub Jelinek <jakub@redhat.com>
743
744 * sysdeps/unix/sysv/linux/ia64/system.c: New file.
745 * sysdeps/unix/sysv/linux/kernel-features.h
746 (__ASSUME_CLONE_THREAD_FLAGS): Define for IA-64 and s390* with
747 kernel >= 2.5.64.
748
749 2003-03-11 Jakub Jelinek <jakub@redhat.com>
750
751 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): If CNT == 1,
752 allocate space even for the trailing '/'.
753 Reported by John Reiser <jreiser@BitWagon.com>.
754
755 * sysdeps/unix/sysv/linux/ia64/sysdep.h (LOAD_ARGS_6, ASM_ARGS_6,
756 ASM_CLOBBERS_6): Define.
757 (ASM_CLOBBERS_5): Use ASM_CLOBBERS_6.
758 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Reorder arguments
759 to match IA-32 order.
760 * sysdeps/unix/sysv/linux/i386/clone.S: Fix comment.
761
762 2003-03-10 Steven Munroe <sjmunroe@us.ibm.com>
763
764 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't clobber R7.
765 Copy extra params for NPTL to registers used in clone syscall.
766
767 2003-03-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
768
769 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Correct system
770 call names for pread and pwrite.
771
772 2003-03-10 Roland McGrath <roland@redhat.com>
773
774 * dlfcn/Makefile (libdl-routines): Add dladdr1.
775 * dlfcn/dladdr1.c: New file.
776 * dlfcn/dlfcn.h [__USE_GNU]: Declare dladdr1.
777 [__USE_GNU] (RTLD_DL_SYMENT, RTLD_DL_LINKMAP): New enum constants.
778 * elf/dl-addr.c (_dl_addr): Take new args, a struct link_map ** and
779 a const ElfNN_Sym ** to fill in.
780 * include/dlfcn.h: Update decl. Include <link.h>.
781 * dlfcn/dladdr.c (dladdr): Update caller.
782 * malloc/mtrace.c (tr_where): Likewise.
783 * sysdeps/generic/elf/backtracesyms.c: Likewise.
784 * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
785 * dlfcn/Versions (libdl: GLIBC_2.3.3): New set, add dladdr1.
786 * Versions.def (libdl): Define GLIBC_2.3.3 set.
787
788 * sysdeps/unix/make-syscalls.sh: Generate $(compile-syscall) for
789 assembler command.
790 * sysdeps/unix/Makefile (compile-syscall): New variable.
791 Pass -g0 to compiler for assembling syscall stubs from stdin.
792
793 * sysdeps/i386/sysdep.h [HAVE_CPP_ASM_DEBUGINFO]
794 (STABS_CURRENT_FILE, STABS_CURRENT_FILE1, STABS_FUN, STABS_FUN_END):
795 Define these to do nothing.
796
797 * configure.in: New check for -g on .S files.
798 * configure: Regenerated.
799 * config.make.in (have-cpp-asm-debuginfo): New variable.
800 * config.h.in (HAVE_CPP_ASM_DEBUGINFO): New #undef.
801 * Makeconfig (ASFLAGS): New variable, if undefined and
802 $(have-cpp-asm-debuginfo), take options matching -g% from $(CFLAGS).
803 * Makerules (compile.S, COMPILE.S): Use $(ASFLAGS).
804
805 2003-03-09 Roland McGrath <roland@redhat.com>
806
807 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Take 3 new args
808 used by NPTL on new kernels. From Paul Mackerras <paulus@samba.org>.
809
810 2003-03-09 Ulrich Drepper <drepper@redhat.com>
811
812 * po/fi.po: Update from translation team.
813 * po/ca.po: Likewise.
814 * po/da.po: Likewise.
815
816 2003-03-08 Ulrich Drepper <drepper@redhat.com>
817
818 * rt/tst-aio7.c (do_test): Change BYTES into a #define.
819
820 2003-03-07 Ulrich Drepper <drepper@redhat.com>
821
822 * rt/tst-aio7.c (do_test): Give BUFF permanent extent, too.
823
824 * sysdeps/powerpc/fpu/w_sqrt.c: Fix comment.
825
826 2003-03-07 Roland McGrath <roland@redhat.com>
827
828 * sysdeps/s390/s390-32/sysdep.h (L): Use .Lfoo instead of foo.
829 * sysdeps/s390/s390-64/sysdep.h (L): Likewise.
830
831 2003-03-04 Guido Guenther <agx@sigxcpu.org>
832
833 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove unneeded
834 stubs, we have INLINE_SYSCALL.
835 * sysdeps/unix/sysv/linux/mips/bits/mman.h: Define MAP_POPULATE,
836 MAP_NONBLOCK.
837
838 2003-03-06 Roland McGrath <roland@redhat.com>
839
840 * rt/tst-aio7.c (do_test): Revert last change. Instead, give CB1
841 permanent extent and add a comment about testing its implicit teardown.
842
843 2003-03-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
844
845 * rt/tst-aio7.c (do_test): Cancel i/o on CB1 before it's out of scope.
846
847 2003-03-05 Ulrich Drepper <drepper@redhat.com>
848
849 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Fix
850 reversed __builtin_expect expectation.
851
852 2003-03-05 Roland McGrath <roland@redhat.com>
853
854 * stdio-common/sscanf.c: Use prototype defn with ... syntax.
855 * libio/swscanf.c: Likewise.
856 * libio/swprintf.c: Likewise.
857
858 2003-03-04 Roland McGrath <roland@redhat.com>
859
860 * sysdeps/powerpc/powerpc64/dl-machine.h: Include <dl-tls.h>.
861 (elf_machine_rela): Always use RESOLVE_MAP, needed for
862 R_PPC64_JMP_SLOT as well as TLS cases.
863 (BIT_INSERT): Move parenthesis where it ought to have been.
864 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
865
866 * posix/confstr.c (confstr): Correct STRING_LEN values for
867 _CS_GNU_LIBC_VERSION and _CS_GNU_LIBPTHREAD_VERSION, add missing
868 break. Reported by Alexandre Julliard <julliard@winehq.com>.
869
870 2003-03-04 Jakub Jelinek <jakub@redhat.com>
871
872 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
873
874 2003-03-04 Ulrich Drepper <drepper@redhat.com>
875
876 * sysdeps/unix/sysv/linux/x86_64/clone.S: Add support for the new
877 clone parameters.
878
879 * po/sv.po: Update from translation team.
880
881 2003-03-04 Andreas Jaeger <aj@suse.de>
882 Ulrich Drepper <drepper@redhat.com>
883
884 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Fix comments.
885
886 2003-03-03 Ulrich Drepper <drepper@redhat.com>
887
888 * sysdeps/generic/dl-sysdep.h: Add double include protection.
889
890 * po/tr.po: Update from translation team.
891
892 * elf/dl-load.c (_dl_map_object_from_fd): Determine whether there
893 are holes between the segments. Only call mprotect to set
894 proection to PROT_NONE if there are some.
895
896 * elf/dl-load.c (struct filebuf): Actually use FILEBUF_SIZE.
897 Update comment.
898
899 * include/sched.h (__clone2): Use ... instead of adding all the
900 new parameters.
901
902 2003-03-03 Roland McGrath <roland@redhat.com>
903
904 * elf/dl-load.c (struct filebuf): Fix typo in last change.
905
906 * sysdeps/powerpc/powerpc32/elf/configure.in: Don't define
907 PI_STATIC_AND_HIDDEN.
908
909 2003-03-03 Ian Wienand <ianw@gelato.unsw.edu.au>
910
911 * sysdeps/unix/sysv/linux/ia64/clone2.S: Update to take extra clone
912 flags.
913 * include/sched.h: Update clone2 prototype.
914
915 2003-03-03 Andreas Jaeger <aj@suse.de>
916
917 * math/tgmath.h (__TGMATH_UNARY_REAL_RET_ONLY): New definition.
918 (llrint): Use it to correct return type.
919 (lrint): Likewise.
920 (lround): Likewise.
921 (llround): Likewise.
922
923 2003-03-03 Ulrich Drepper <drepper@redhat.com>
924
925 * elf/dl-load.c (struct filebuf): For 64-bit platforms use 640
926 byte filebuf size.
927
928 * libio/fileops.c (_IO_new_file_fopen): Close stillborn descriptor
929 if ccs parameter isn't valid. Reported by Andreas Schwab.
930
931 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
932
933 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Add support
934 for system call numbers > 255.
935 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.h (DO_CALL,
936 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
937 INTERNAL_SYSCALL): Likewise.
938 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
939 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.h (DO_CALL,
940 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
941 INTERNAL_SYSCALL): Likewise.
942
943 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
944
945 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Don't free the dtv
946 array if it is the initial dtv.
947
948 2003-03-03 Ulrich Drepper <drepper@redhat.com>
949
950 * po/es.po: Update from translation team.
951 * po/fr.po: Likewise.
952 * po/gl.po: Likewise.
953 * po/sk.po: Likewise.
954 * po/sv.po: Likewise.
955
956 * sysdeps/unix/sysv/linux/syscalls.list: Add remap_file_pages entry.
957 * misc/sys/mman.h: Add prototype for remap_file_pages.
958 * sysdeps/generic/remap_file_pages.c: New file.
959 * misc/Makefile (routines): Add remap_file_pages.
960 * misc/Versions [libc:GLIBC_2.3.3]: Add remap_file_pages.
961
962 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_POPULATE
963 and MAP_NONBLOCK.
964 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
965 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise
966 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
967 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
968 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
969 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
970 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
971 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
972
973 2003-03-03 Roland McGrath <roland@redhat.com>
974
975 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Revert last change.
976 * sysdeps/ia64/dl-machine.h: Likewise.
977 * sysdeps/ia64/dl-symaddr.c (_dl_symbol_address): Remove const from
978 argument type.
979 * sysdeps/ia64/dl-lookupcfg.h: Update decl.
980
981 * sysdeps/wordsize-64/strtol_l.c (strtoll_l): Define as weak alias.
982 * sysdeps/wordsize-64/strtoul_l.c (strtoull_l): Define as weak alias.
983 * locale/Versions (libc: GLIBC_2.3): Move those to ...
984 * sysdeps/wordsize-32/Versions (libc: GLIBC_2.3): ... here, new file.
985 * sysdeps/wordsize-64/Versions (libc: GLIBC_2.3.3) Likewise.
986 * Versions.def (libc): Add GLIBC_2.3.3 set.
987
988 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Add const to MAP arg.
989 * sysdeps/ia64/dl-machine.h: Update decl.
990
991 2003-03-03 Andreas Jaeger <aj@suse.de>
992
993 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Add missing brace.
994
995 2003-03-02 Roland McGrath <roland@redhat.com>
996
997 * scripts/abilist.awk: Reject data items with apparent 0 size.
998
999 * scripts/merge-abilist.awk: Restore hack to elide pattern foo.*/bar
1000 after foo.* as if it were a duplicate.
1001
1002 * sysdeps/unix/sysv/linux/ia64/brk.S: Add .type and .size for __curbrk.
1003
1004 2003-03-02 Ulrich Drepper <drepper@redhat.com>
1005
1006 * elf/dl-load.c (struct filebuf): Reduce buf array to 512 bytes.
1007
1008 * sysdeps/generic/bits/time.h: Define CLOCK_MONOTONIC.
1009 * sysdeps/posix/clock_getres.c: Define code for CLOCK_REALTIME only
1010 if not already defined. Use SYSDEP_GETRES to allow other files to
1011 provide alternative implementations.
1012 * sysdeps/unix/sysv/linux/clock_getres.c: New file
1013 * sysdeps/unix/clock_gettime.c: Define code for CLOCK_REALTIME only
1014 if not already defined. Use SYSDEP_GETTIME to allow other files to
1015 provide alternative implementations.
1016 * sysdeps/unix/sysv/linux/clock_gettime.c: New file.
1017 * sysdeps/unix/clock_settime.c: Define code for CLOCK_REALTIME only
1018 if not already defined. Use SYSDEP_GETTIME to allow other files to
1019 provide alternative implementations.
1020 * sysdeps/unix/sysv/linux/clock_settime.c: New file.
1021 * sysdeps/unix/clock_nanosleep.c: Use SYSDEP_NANOSLEEP to allow
1022 other files to provide alternative implementations. Rearrange
1023 tests for invalid parameters.
1024 * sysdeps/unix/sysv/linux/clock_nanosleep.c: New file.
1025 * sysdeps/unix/sysv/linux/sysconf.c: New file.
1026 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1027 __ASSUME_POSIX_TIMERS for Linux 2.5.63 and up.
1028 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
1029 _POSIX_MONOTONIC_CLOCK.
1030
1031 2003-03-02 Roland McGrath <roland@redhat.com>
1032
1033 * scripts/merge-abilist.awk: More checks for bogus input.
1034 Uniquify duplicate config names.
1035
1036 * scripts/abilist.awk: Don't distinguish weak symbols in normal output.
1037
1038 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow): Renamed
1039 from dl_reloc_overflow, make global.
1040 (__process_machine_rela): Update callers.
1041 * sysdeps/powerpc/powerpc32/dl-machine.h: Declare _dl_reloc_overflow.
1042 Add attribute_hidden to __process_machine_rela decl.
1043 (elf_machine_type_class, elf_machine_rela): Handle 16-bit TLS relocs.
1044
1045 * sysdeps/generic/libc-start.c (__libc_start_main): Don't assign const
1046 variable.
1047
1048 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
1049 Don't use weak_extern for dl_rtld_map. Instead check only if [SHARED].
1050 (elf_machine_rela): Clean up.
1051
1052 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Clean up.
1053
1054 PowerPC TLS support contributed by Paul Mackerras <paulus@samba.org>.
1055 * sysdeps/powerpc/powerpc32/elf/configure.in: New file.
1056 * sysdeps/powerpc/powerpc32/elf/configure: New generated file.
1057 * elf/tls-macros.h [__powerpc__ && !__powerpc64__]
1058 (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Define them.
1059 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Support
1060 new relocs for TLS.
1061
1062 * sysdeps/powerpc/dl-tls.h (TLS_TP_OFFSET, TLS_DTV_OFFSET): Move these
1063 macros out of [SHARED].
1064 (TLS_TPREL_VALUE, TLS_DTPREL_VALUE): New macros.
1065
1066 * elf/elf.h: Define R_PPC_* relocs for TLS support.
1067 Clean up R_PPC64_* macro definition comments.
1068
1069 * configure.in: In "running configure fragment for" message,
1070 omit $srcdir from the name if we prepended it.
1071 * configure: Regenerated.
1072
1073 * elf/dl-reloc.c (allocate_static_tls): Fix calculations.
1074 From Jakub Jelinek <jakub@redhat.com>.
1075
1076 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Revert last change,
1077 which duplicated the O_DIRECT defn.
1078
1079 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
1080
1081 * stdlib/stdlib.h: Add missing __USE_BSD enclosure for BSD derived
1082 random functions.
1083
1084 2003-03-01 Andreas Schwab <schwab@suse.de>
1085
1086 * resolv/Makefile (tests): Don't depend on
1087 $(objpfx)mtrace-tst-leaks when cross compiling.
1088
1089 * sysdeps/m68k/dl-machine.h (_dl_start_user): Access
1090 __libc_stack_end through GOT since it is a global symbol.
1091
1092 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
1093
1094 * argp/argp.h: Fix a typo.
1095 Reported by H.S.Teoh <hsteoh@quickfur.ath.cx>.
1096
1097 * manual/terminal.texi: Fix cfmakeraw() definition from int to void.
1098
1099 2003-02-27 Pat Rankin <rankin@pactechdata.com>
1100
1101 * posix/regexec.c (proceed_next_node): Cast re_string_get_buffer to
1102 char *.
1103 (get_subexp): Likewise.
1104
1105 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
1106
1107 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DIRECT): Define.
1108
1109 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
1110
1111 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_DIRECT): Define.
1112
1113 2003-02-27 Roland McGrath <roland@redhat.com>
1114
1115 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Remove
1116 special case for dl_rtld_map in R_PPC64_RELATIVE; it's harmless to
1117 repeat it and avoids the test for the common case.
1118 Clean up and fix calculations for TLS relocs.
1119
1120 * sysdeps/powerpc/powerpc64/dl-tls.h: Moved to ...
1121 * sysdeps/powerpc/dl-tls.h: ... here.
1122 (TLS_TP_OFFSET): New macro.
1123
1124 * sunrpc/svc_udp.c (svcudp_recv): Add a cast to last change.
1125
1126 2003-02-27 Ulrich Drepper <drepper@redhat.com>
1127
1128 * sysdeps/i386/fpu/libm-test-ulps: Increase ULPs for yn due to
1129 code generation changes in recent gcc.
1130
1131 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
1132
1133 * sysdeps/powerpc/fpu/fpu_control.h (_FPU_GETCW, _FPU_SETCW):
1134 Rename argument to avoid symbol conflict.
1135
1136 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h
1137 [__USE_GNU] (O_DIRECT): New macro.
1138
1139 2003-02-24 David Mosberger <davidm@hpl.hp.com>
1140
1141 * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Fix
1142 unwind info.
1143
1144 2003-02-27 Ulrich Drepper <drepper@redhat.com>
1145
1146 * resolv/res_libc.c [USE___THREAD] (_res): Don't need the
1147 initializer anymore now that res_thread_freeres is more careful.
1148
1149 * sunrpc/svc_udp.c (svcudp_recv): Remove all control messages
1150 except the PKTINFO. Reset interface in PKTINFO.
1151 Patch by Neil Brown <neilb@cse.unsw.edu.au> [PR libc/4973].
1152
1153 2003-02-25 Steven Munroe <sjmunroe@us.ibm.com>
1154
1155 * elf/elf.h: Add new R_PPC64_* relocs for TLS.
1156 * elf/tls-macros.h [__powerpc64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
1157 Define.
1158 * sysdeps/powerpc/powerpc64/elf/configure.in: New file.
1159 * sysdeps/powerpc/powerpc64/elf/configure: New file (generated).
1160 * sysdeps/powerpc/powerpc64/dl-machine.h: Support new TLS relocs.
1161 * sysdeps/powerpc/powerpc64/dl-tls.h: New file.
1162
1163 * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
1164 Do DL_SYSDEP_OSCHECK here, matching 2002-12-01 change to generic file.
1165
1166 2003-02-25 Andreas Jaeger <aj@suse.de>
1167
1168 * manual/memory.texi (Malloc Tunable Parameters): Clarify
1169 behaviour of M_MMAP_THRESHOLD.
1170
1171 2003-02-25 Roland McGrath <roland@redhat.com>
1172
1173 * resolv/res_init.c (res_thread_freeres): Bail out if _res.nscount is
1174 zero, inidicating _res was not initialized yet.
1175
1176 2003-02-24 Ulrich Drepper <drepper@redhat.com>
1177
1178 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Remove EACCES
1179 test.
1180
1181 2003-02-24 Roland McGrath <roland@redhat.com>
1182
1183 * sysdeps/posix/pause.c: Add LIBC_CANCEL_HANDLED.
1184
1185 2003-02-23 Roland McGrath <roland@redhat.com>
1186
1187 * sysdeps/posix/pause.c: New file.
1188 * sysdeps/unix/common/pause.c: File removed.
1189
1190 2003-02-23 Ulrich Drepper <drepper@redhat.com>
1191
1192 * sysdeps/generic/bits/confname.h: Remove #ifs.
1193
1194 * posix/Makefile (CFLAGS-regex.c): Remove RE_ENABLE_I18N definition.
1195 * posix/regex_internal.h (RE_ENABLE_I18N): Pretty printing.
1196
1197 * resolv/res_libc.c [USE___THREAD] (_res): Initialize _vcsock
1198 element to -1.
1199
1200 2003-02-22 Ulrich Drepper <drepper@redhat.com>
1201
1202 * sysdeps/generic/dl-sysdep.c: Avoid warning.
1203
1204 2003-02-22 Roland McGrath <roland@redhat.com>
1205
1206 * resolv/tst-leaks.c: New file by Daniel Jacobowitz <drow@mvista.com>.
1207 * resolv/Makefile (tests): Add tst-leaks.
1208 ($(objpfx)tst-leaks): Depend on $(objpfx)libresolv.so.
1209 (tst-leaks-ENV): New variable.
1210 ($(objpfx)mtrace-tst-leaks): New target.
1211 (tests): Depend on it.
1212
1213 * include/libc-internal.h: Declare __libc_thread_freeres.
1214
1215 * Makerules: Fix last change to use $($(subdir)-version) when set.
1216
1217 * Makerules (install-lib-nosubdir): Depend on installed
1218 libfoo-X.Y.Z.so and libfoo.so.NN files so they are installed
1219 regardless of the libfoo.so target's dependencies.
1220
1221 * MakeTAGS (sub-make-vars): New variable, includes generating=t.
1222 Use that in $(MAKE) calls.
1223
1224 2003-02-22 Ulrich Drepper <drepper@redhat.com>
1225
1226 * catgets/gencat.c (read_input_file): Collision between
1227 auto-assigned numbers and user-defined nubmers is not fatal.
1228 Handle it.
1229 Patch by Michael M. Lampkin <michael.lampkin@ieee.org>.
1230 * catgets/Makefile: Add rules to run test2.msg test.
1231 * catgets/test2.msg: New file.
1232
1233 * catgets/gencat.c (main): Return 1 if messages have been printed.
1234
1235 * iconv/iconv_prog.c (main): Unify messages.
1236
1237 * stdlib/strtod.c (INTERNAL): Remove bogus clearing of second word
1238 when shifting retval.
1239 * stdlib/tst-strtod.c (main): Add strtold test case.
1240 Reported by Fred J. Tydeman <tydeman@tybor.com>.
1241
1242 2003-02-21 Roland McGrath <roland@redhat.com>
1243
1244 * malloc/thread-freeres.c: Conditionalize on _LIBC_REENTRANT.
1245 * sunrpc/rpc_thread.c: Likewise for text_set_element use.
1246 (__rpc_thread_destroy): Add it to __libc_subfreeres too.
1247
1248 * include/resolv.h: Add libc_hidden_proto for __res_nclose.
1249 * resolv/res_init.c (__res_nclose): Add libc_hidden_def.
1250 (res_thread_freeres): New function, on __libc_thread_subfreeres and
1251 __libc_subfreeres.
1252
1253 * malloc/Versions (libc: GLIBC_PRIVATE): Add __libc_thread_freeres.
1254 * malloc/thread-freeres.c: New file.
1255 * malloc/Makefile (aux): Add it.
1256 * sunrpc/Versions (libc: GLIBC_PRIVATE): Removed.
1257 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Put in special section
1258 "__libc_thread_freeres_fn" and add to __libc_thread_subfreeres set.
1259
1260 * sysdeps/unix/sysv/linux/i386/geteuid.c (__geteuid): Typo fix.
1261 * sysdeps/unix/sysv/linux/i386/getgid.c (__getgid): Typo fix.
1262
1263 2003-02-21 Roland McGrath <roland@frob.com>
1264
1265 * sysdeps/mach/hurd/opendir.c (__opendir): Use O_NONBLOCK in open.
1266
1267 * iconvdata/Makefile (tests): Add bug-iconv3 only if
1268 [$(have-thread-library) = yes].
1269
1270 2003-02-21 Ulrich Drepper <drepper@redhat.com>
1271
1272 * sysdeps/unix/sysv/linux/bits/signum.h (__SIGRTMAX): Define as _NSIG.
1273
1274 * sysdeps/unix/sysv/linux/i386/getuid.c: Use INTERNAL_SYSCALL and do
1275 not chechk for errors (unless testing for 32bit variant).
1276 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
1277 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
1278 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
1279
1280 2003-02-21 Jakub Jelinek <jakub@redhat.com>
1281
1282 * sysdeps/x86_64/dl-machine.h (elf_machine_rela) <R_X86_64_PC32>:
1283 Check for signed overflow, not unsigned.
1284
1285 * sysdeps/sparc/sparc64/elf/configure.in: New file.
1286 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (sysdep-CFLAGS):
1287 Use -fcall-used-g6, not -fcall-used-g7.
1288
1289 2003-02-21 Andreas Jaeger <aj@suse.de>
1290
1291 * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Fix setting of default
1292 mode.
1293
1294 * sysdeps/x86_64/fpu/fsetexcptflg.c (fesetexceptflag): Do not
1295 clear whole mxcsr but only exceptions.
1296
1297 2003-02-21 Roland McGrath <roland@redhat.com>
1298
1299 * Makerules: Filter $(install-lib-ldscripts) out of list of targets
1300 for libfoo.so that need $(make-link) rules.
1301
1302 2003-02-21 Roland McGrath <roland@frob.com>
1303
1304 * sysdeps/mach/hurd/bits/typesizes.h (__DEV_T_TYPE): Use __U32_TYPE
1305 to match existing struct stat layout in mig protocols.
1306
1307 2003-02-20 Ulrich Drepper <drepper@redhat.com>
1308
1309 * version.h (VERSION): Bump to 2.3.2.
1310
1311 * elf/Makefile (distribute): Add reldep9.c, tst-array1.exp,
1312 tst-array2.exp, tst-array4.exp, tst-array2dep.c, check-textrel.c,
1313 and dl-sysdep.h.
1314 * sysdeps/generic/Dist: Add sysdep-cancel.h.
1315 * sysdeps/powerpc/nofpu/Dist: Add soft-supp.h.
1316 * sysdeps/unix/Dist: Add s-proto-bp.S and s-proto-cancel.S.
1317 * sysdeps/unix/sysv/linux/Dist: Add pathconf.h.
1318 * sysdeps/unix/sysv/linux/i386/Dist: Add bp-thunk.h.
1319 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add fe_nomask.c and
1320 ucontext_i.h.
1321 * Makefile (distribute): Add include/stubs-prologue.h,
1322 include/gnu/stubs.h, scripts/merge-abilist.awk, and
1323 scripts/extract-abilist.awk.
1324
1325 2003-02-20 Roland McGrath <roland@redhat.com>
1326
1327 * math/Makefile (distribute): Don't add generated files.
1328
1329 2003-02-20 Ulrich Drepper <drepper@redhat.com>
1330
1331 * math/Makefile: Rearrange variable definitions slightly to get
1332 definition in the right order.
1333
1334 2003-02-20 Roland McGrath <roland@redhat.com>
1335
1336 * Makerules: Clean up conditional around include of tls.make.
1337 * Make-dist: Export generating=t to prevent using that.
1338 (+distinfo): Likewise for $(shell $(MAKE) ...) runs.
1339
1340 2003-02-20 Ulrich Drepper <drepper@redhat.com>
1341
1342 * inet/rcmd.c (rresvport_af): Avoid using invliad values. Wrap
1343 around in search if port IPPORT_RESERVED/2 has been test.
1344
1345 2002-02-20 Paolo Bonzini <bonzini@gnu.org>
1346
1347 * posix/regcomp.c: Remove inclusions.
1348 * posix/regexec.c: Likewise.
1349 * posix/regex_internal.c: Likewise.
1350 * posix/regex_internal.h: Add inclusions here.
1351 * posix/regex.c: Only include sys/types.h before regex.h. Include
1352 regex_internal.h here. Include regex_internal.c before regcomp.c
1353 and regexec.c (might expose more opportunities to the C compiler).
1354
1355 * posix/regcomp.c (parse_expression): Fix construct rejected by SGI CC.
1356
1357 * posix/regex_internal.h [!_LIBC] (__mempcpy): Fix typo.
1358 [!_LIBC] (__wcrtomb): New definition.
1359 [!_LIBC]: Conditionalize enabling of I18N on HAVE_WCSCOLL and
1360 HAVE_LOCALE_H as well.
1361
1362 2003-02-20 Ulrich Drepper <drepper@redhat.com>
1363
1364 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Remove obsolete
1365 patch to check for system call errors.
1366
1367 2002-07-24 Philip Blundell <philb@gnu.org>
1368
1369 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Yield ENODEV
1370 on unknown systems.
1371
1372 2003-02-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1373
1374 * sysdeps/powerpc/powerpc32/atomicity.h: Remove compiler workaround.
1375 * sysdeps/unix/sysv/linux/kernel-features.h
1376 (__ASSUME_NEW_PRCTL_SYSCALL): Defined for ppc32 too.
1377 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Use prctl
1378 if possible.
1379 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Avoid short
1380 interprocedure branches.
1381 * sysdeps/powerpc/soft-fp/Dist (sim-full.c, fenv_const.c): Move to...
1382 * sysdeps/powerpc/nofpu/Dist: ...here.
1383 * sysdeps/unix/sysv/linux/powerpc/Dist (fe_nomask.c): Move to...
1384 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
1385 * sysdeps/unix/sysv/linux/s390/s390-64/Dist (kernel_stat.h): Delete.
1386 * sysdeps/unix/sysv/linux/sparc/Dist (bits/utmpx.h): Delete.
1387 * sysdeps/unix/sysv/linux/x86_64/Dist (bits/utmpx.h): Delete.
1388
1389 2003-02-18 Alan Modra <amodra@bigpond.net.au>
1390
1391 * sysdeps/powerpc/powerpc32/sysdep.h (HIDDEN_JUMPTARGET): Redefine.
1392
1393 2003-02-20 Philip Blundell <philb@gnu.org>
1394
1395 * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Add
1396 missing arguments to INTERNAL_SYSCALL_ERROR_P and
1397 INTERNAL_SYSCALL_ERRNO.
1398
1399 2003-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
1400
1401 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__real_chown): Test
1402 for __ASSUME_32BITUIDS.
1403
1404 2003-02-20 Andreas Schwab <schwab@suse.de>
1405
1406 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Add MADV_* and
1407 POSIX_MADV_* constants.
1408
1409 2003-02-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1410
1411 * sysdeps/unix/sysv/linux/sh/pread.c: New file.
1412 * sysdeps/unix/sysv/linux/sh/pread64.c: New file.
1413 * sysdeps/unix/sysv/linux/sh/pwrite.c: New file.
1414 * sysdeps/unix/sysv/linux/sh/pwrite64.c: New file.
1415
1416 2003-02-19 Jiro Sekiba <jir@yamato.ibm.com>
1417
1418 * iconvdata/utf-16.c (gconv_end): Fix range of low surrogate.
1419
1420 2003-02-16 Roland McGrath <roland@redhat.com>
1421
1422 * signal/signal.h: Include <sys/ucontext.h>, not <ucontext.h>.
1423
1424 2003-02-19 Ulrich Drepper <drepper@redhat.com>
1425
1426 * stdlib/strtod.c (INTERNAL): Up the safety margin for cutting off
1427 decimal input digits.
1428 * stdlib/tst-strtod.c (main): Add test for strtof bug.
1429
1430 2003-02-18 Ulrich Drepper <drepper@redhat.com>
1431
1432 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Recognize
1433 invalid file descriptors and missing access permissions.
1434
1435 2003-02-17 Ulrich Drepper <drepper@redhat.com>
1436
1437 * nss/getXXbyYY_r.c (REENTRANT_NAME): Return 0 if no entry has
1438 been found.
1439
1440 * sysdeps/posix/sysconf.c (__sysconf): Test for LOGIN_NAME_MAX and
1441 TTY_NAME_MAX and not the _POSIX_* minimal value macros.
1442 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
1443 and LOGIN_NAME_MAX.
1444
1445 2003-02-17 Kevin B. Hendricks <kevin.hendricks@sympatico.ca>
1446 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1447
1448 * sysdeps/powerpc/elf/libc-start.c: Handle NONTLS_INIT_TP.
1449 * sysdeps/powerpc/powerpc32/__longjmp.S: Remove R2 handling.
1450 * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
1451 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
1452 * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
1453
1454 2003-02-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1455
1456 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Delete.
1457 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Delete.
1458 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Delete.
1459 * sysdeps/unix/sysv/linux/powerpc/pread.c: Delete.
1460 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Delete.
1461 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Delete.
1462
1463 * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: Move file...
1464 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: ...here.
1465 * sysdeps/unix/sysv/linux/powerpc/glob64.c: Move file...
1466 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
1467
1468 * sysdeps/unix/sysv/linux/tcgetattr.c: Use INLINE_SYSCALL.
1469 * sysdeps/unix/sysv/linux/tcsetattr.c: Likewise.
1470 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Delete.
1471 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Delete.
1472
1473 2003-02-14 Thorsten Kukuk <kukuk@suse.de>
1474
1475 * nss/getent.c (print_hosts): Print all IP addresses of one host.
1476
1477 2003-02-15 Roland McGrath <roland@frob.com>
1478
1479 * sysdeps/mach/hurd/tls.h: New file.
1480 * sysdeps/mach/hurd/i386/tls.h: New file.
1481
1482 * mach/errsystems.awk: Include <errno.h> in generated output.
1483
1484 * sysdeps/mach/Makefile (mach-before-compile rule): Pass generating=t,
1485 use target mach-before-compile instead of generated.
1486 (mach-before-compile): New target.
1487 * Makerules: Disable use of tls.make if $(generating) is set.
1488 * mach/Makefile: Include mach-syscalls.mk even if no_deps=t.
1489 * sysdeps/mach/hurd/Makefile: Make generated hurd headers depend on
1490 mach-shortcuts.h so mach/ generation happens before hurd/.
1491
1492 2003-02-14 Ulrich Drepper <drepper@redhat.com>
1493
1494 * sysdeps/i386/fpu/s_nextafterl.c: Decrement high word of mantissa
1495 of demorm correctly if low word is zero.
1496 Reported by Fred J. Tydeman <tydeman@tybor.com>.
1497 * math/libm-test.inc (nextafter_test): New test, but disabled due
1498 to gcc bug.
1499
1500 * sysdeps/generic/libc-start.c [HAVE_PTR_NTHREADS]: Decrement thread
1501 counter and only call __exit_thread if this is not the last thread.
1502
1503 2003-02-13 Jakub Jelinek <jakub@redhat.com>
1504
1505 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Add instead of
1506 subtracting map->l_tls_offset.
1507
1508 2003-02-12 Ulrich Drepper <drepper@redhat.com>
1509
1510 * sysdeps/generic/bits/confname.h: Define _CS_GNU_LIBC_VERSION and
1511 _CS_GNU_LIBPTHREAD_VERSION.
1512 * posix/conststr.c: Handle these new values.
1513 * posix/getconf.c: Likewise.
1514
1515 * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Fix
1516 masking of version index.
1517 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
1518
1519 2003-02-11 Ulrich Drepper <drepper@redhat.com>
1520
1521 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Compute alignment
1522 correctly. Reported by Thorsten Kukuk.
1523
1524 2003-02-10 Ulrich Drepper <drepper@redhat.com>
1525
1526 * elf/Makefile (check-textrel-CFLAGS): Pass _XOPEN_SOURCE and
1527 _BSD_SOURCE to compiler.
1528 * elf/check-textrel.c (SWAP): Add parenthesis to avoid warnings.
1529 Patches by Alan Modra.
1530
1531 2003-02-08 Ulrich Drepper <drepper@redhat.com>
1532
1533 * io/ftwtest.c: Get current working directory before and after the
1534 nftw call and make sure they match.
1535
1536 2003-02-08 Jim Meyering <jim@meyering.net>
1537
1538 * io/ftw.c (ftw_startup): When using FTW_CHDIR, always remember
1539 the current directory, not just when DIR contains a slash.
1540 Reported by Manoj Srivastava.
1541
1542 2003-02-07 Jim Meyering <jim@meyering.net>
1543
1544 * io/ftw.c: Add autoconf-recommended block of alloca-related code.
1545 Include autoconf-recommended block of dirent/NAMELEN-related
1546 definitions and includes. Use NAMELEN throughout, rather than
1547 _D_EXACT_NAMLEN.
1548 [_LIBC]: Define NAMELEN to _D_EXACT_NAMLEN.
1549 [!_LIBC] (__getcwd): Define to xgetcwd and declare xgetcwd.
1550 (stpcpy): Declare, if necessary.
1551 (mempcpy): Define, if necessary.
1552 [!_LIBC] (__stpcpy, __mempcpy): Define.
1553 [!_LIBC] (LXSTAT, XSTAT): Define.
1554 (lstat) [!LIBC && !LSTAT_FOLLOWS_SLASHED_SYMLINK]: Define to rpl_lstat.
1555 (find_object): Don't use c99-style struct initializer.
1556 Tweak wording in a couple comments.
1557
1558 2003-02-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1559
1560 * elf/tls-macros.h: Add non-PIC TLS macros and fix clobber list
1561 for SH.
1562 * sysdeps/unix/sysv/linux/sh/brk.c: Add SYSCALL_INST_PAD
1563 after the trapa instruction.
1564 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Add additional
1565 parameters.
1566 * sysdeps/unix/sysv/linux/sh/sh4/sysdep.h: New file.
1567 (NEED_SYSCALL_INST_PAD): Define.
1568 * sysdeps/unix/sysv/linux/sh/sys/user.h (start_thread): Undef to
1569 avoid to use definition for the kernel.
1570 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
1571 Save and restore the frame pointer.
1572 (SYSCALL_INST_PAD): Define.
1573 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
1574 (INTERNAL_SYSCALL): Make use of ERR parameter. Add SYSCALL_INST_PAD
1575 after trapa instruction.
1576 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
1577 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
1578
1579 2003-02-07 Jakub Jelinek <jakub@redhat.com>
1580
1581 * resolv/res_libc.c (_res): Ensure _res is not common symbol,
1582 so that it can have aliases.
1583 * inet/herrno.c (h_errno): Put it into .bss not .data section.
1584
1585 2003-02-07 Ulrich Drepper <drepper@redhat.com>
1586
1587 * elf/dl-runtime.c (fixup): Correct typo in version index computation.
1588 (profile_fixup): Likewise.
1589 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
1590
1591 2002-11-24 Robert Love <rml@tech9.net>
1592
1593 * posix/sched.h: Second parameter of sched_setaffinity and
1594 sched_getaffinity is `unsigned int', not `unsigned long'.
1595 * sysdeps/generic/sched_setaffinity.c: Likewise.
1596 * sysdeps/generic/sched_getaffinity.c: Likewise.
1597
1598 2003-02-05 Ulrich Drepper <drepper@redhat.com>
1599
1600 * debug/catchsegv.sh: Fix typo in error messsage.
1601 Reported by John Levon <levon@movementarian.org>.
1602
1603 * sysdeps/unix/sysv/linux/posix_fadvise.c: New file.
1604 * sysdeps/unix/sysv/linux/syscalls.list: Add posix_fadvise64 syscall.
1605 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
1606 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1607 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
1608 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
1609 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1610
1611 * libio/putwc_u.c: Use _IO_putwc_unlocked, not _IO_putc_unlocked.
1612 Patch by Moritz Schulte <moritz@duesseldorf.ccc.de>.
1613
1614 2003-02-05 Jim Meyering <jim@meyering.net>
1615
1616 Fix a heap-corrupting bug.
1617 * io/ftw.c: Include <limits.h>.
1618 (PATH_MAX) [!defined PATH_MAX]: Define to 1024.
1619 (process_entry): Allocate enough space to hold the resulting
1620 file name. Don't presume that 2*dirbufsize is enough.
1621 (ftw_startup): Always use PATH_MAX to compute buffer size, now that
1622 it is guaranteed to be defined.
1623
1624 2003-02-04 Ulrich Drepper <drepper@redhat.com>
1625
1626 * iconvdata/Makefile: Add rules to build and run bug-iconv3.
1627 * iconvdata/bug-iconv3.c: New file.
1628
1629 2003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com>
1630
1631 * sysdeps/unix/sysv/linux/s390/system.c: New file.
1632
1633 2003-02-03 Jakub Jelinek <jakub@redhat.com>
1634
1635 * sysdeps/sparc/sparc32/elf/configure.in (BROKEN_SPARC_WDISP22): New
1636 check.
1637 * config.h.in (BROKEN_SPARC_WDISP22): Add.
1638
1639 2003-02-03 Ulrich Drepper <drepper@redhat.com>
1640
1641 * sysdeps/i386/i686/memmove.S: New file.
1642
1643 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
1644
1645 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c:
1646 Include kernel-features.h
1647 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
1648 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
1649 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
1650 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
1651
1652 2003-02-02 Jakub Jelinek <jakub@redhat.com>
1653
1654 * elf/tls-macros.h [sparc] (TLS_LD, TLS_GD): Add "cc" clobbers.
1655
1656 2003-01-25 Jim Meyering <jim@meyering.net>
1657
1658 * io/ftw.c (object_compare): Compare inode numbers before device
1659 numbers, since the former are much more likely to differ.
1660
1661 2003-02-01 Ulrich Drepper <drepper@redhat.com>
1662
1663 * time/tzfile.c (__tzfile_compute): Change return value type to
1664 void. Adjust return statements.
1665 * include/time.h (__tzfile_compute): Adjust prototype.
1666
1667 2003-02-01 Jim Meyering <jim@meyering.net>
1668
1669 * time/tzset.c (__tz_convert): Remove dead code; __tzfile_compute
1670 always returns 1.
1671
1672 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
1673
1674 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
1675 [!__ASSUME_NEW_PRCTL_SYSCALL]: Noop prctl syscall and set ENOSYS.
1676
1677 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
1678
1679 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
1680 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Generate ENOSYS stub.
1681 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
1682 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
1683 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
1684 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
1685 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
1686 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
1687
1688 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
1689
1690 * sysdeps/unix/sysv/linux/configure.in: Change arch_minimum_kernel
1691 back to 2.4.19 for powerpc64.
1692 * sysdeps/unix/sysv/linux/kernel-features.h
1693 (__ASSUME_NEW_PRCTL_SYSCALL): Define for powerpc64.
1694 (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Define for powerpc64.
1695
1696 2003-02-01 Ulrich Drepper <drepper@redhat.com>
1697
1698 * wcsmbs/wcscpy.c (wcscpy): Add alternative implementation for
1699 platforms with strange alignment requirements on wchar_t.
1700
1701 2003-01-31 Andreas Schwab <schwab@suse.de>
1702
1703 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove __GI_*
1704 aliases, already added by make-syscalls.sh.
1705 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1706 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
1707 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
1708 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
1709 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1710 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1711 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
1712 * sysdeps/unix/inet/syscalls.list: Likewise.
1713 * sysdeps/unix/syscalls.list: Likewise.
1714
1715 2003-01-31 Andreas Schwab <schwab@suse.de>
1716
1717 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Don't define, not needed
1718 any more.
1719
1720 2003-01-30 Jakub Jelinek <jakub@redhat.com>
1721
1722 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Use lg,
1723 not l to load tls from stack.
1724
1725 2003-01-30 Roland McGrath <roland@redhat.com>
1726
1727 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Move check for
1728 null argument before all else.
1729 Reported by Martin Schwidefsky <schwidefsky@de.ibm.com>.
1730
1731 2003-01-30 Jakub Jelinek <jakub@redhat.com>
1732
1733 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_lazy_rel):
1734 Move to RESOLVE protected part of the header.
1735 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_lazy_rel):
1736 Likewise.
1737
1738 2003-01-30 Ulrich Drepper <drepper@redhat.com>
1739
1740 * stdio-common/Makefile (tests): Add bug15.
1741 (bug15-ENV): Define.
1742 * stdio-common/bug15.c: New file.
1743
1744 2002-10-07 Wolfram Gloger <wg@malloc.de>
1745
1746 * malloc/malloc.c (sYSMALLOc): Only check for breakage due
1747 to foreign sbrk()'s if arena is contiguous. Bug report from
1748 Bruno Haible <bruno@clisp.org>.
1749
1750 2003-01-30 Jakub Jelinek <jakub@redhat.com>
1751
1752 * sysdeps/s390/libc-tls.c: Include stdlib.h.
1753
1754 2003-01-30 Jakub Jelinek <jakub@redhat.com>
1755
1756 * stdio-common/vfprintf.c (vfprintf): Only subtract lowest 3 bits of
1757 ps.__count.
1758
1759 2003-01-30 Ulrich Drepper <drepper@redhat.com>
1760
1761 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Fix storing and
1762 restoring of %r6.
1763 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise. Use
1764 64-bit load.
1765 Patch by Martin Schwidefsky <schwidefsky@de.ibm.com>.
1766
1767 2003-01-30 Jakub Jelinek <jakub@redhat.com>
1768
1769 * elf/dl-reloc.c (CHECK_STATIC_TLS): Move _dl_signal_error...
1770 (allocate_static_tls): ...here. Add __attribute_noinline__.
1771 Don't return on failure.
1772 (_dl_reloc_bad_type): Add __attribute_noinline__.
1773 * elf/do-rel.h (elf_dynamic_do_rel): Add
1774 __attribute__((always_inline)).
1775 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
1776 elf_machine_rel_relative, elf_machine_rela_relative,
1777 elf_machine_lazy_rel): Add prototypes with
1778 __attribute__((always_inline)).
1779
1780 2003-01-29 David Mosberger <davidm@hpl.hp.com>
1781
1782 * elf/dl-support.c (_dl_aux_init): Handle AT_SYSINFO.
1783
1784 2003-01-29 Roland McGrath <roland@redhat.com>
1785
1786 * configure.in: Barf if configured in $srcdir.
1787
1788 2003-01-28 Steven Munroe <sjmunroe@us.ibm.com>
1789
1790 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
1791 (__fe_nomask_env): Change __prctl call to INTERNAL_SYSCALL.
1792
1793 2003-01-28 Martin Schwidefsky <schwidefsky@de.ibm.com>
1794
1795 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Reorder additional
1796 clone parameters to match the order used on ia32.
1797 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
1798
1799 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
1800
1801 * elf/elf.h: Add new s390 relocs.
1802 * elf/tls-macros.h: Add s390 versions.
1803 * sysdeps/s390/Versions [GLIBC_2.3] (ld): Export __tls_get_offset.
1804 * sysdeps/s390/dl-tls.h: New file.
1805 * sysdeps/s390/libc-tls.c: New file.
1806 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class): Add TLS
1807 relocs for class PLT.
1808 (elf_machine_rela): Handle TLS relocs.
1809 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
1810 * sysdeps/s390/s390-32/elf/configure.in: Add TLS check.
1811 * sysdeps/s390/s390-64/elf/configure.in: Likewise.
1812 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Add support for
1813 CLONE_CHILD_*TID flags.
1814 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
1815 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Use branch with 32
1816 bit offset.
1817 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
1818 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
1819 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
1820 Support USE___THREAD. Define RTLD_PRIVATE_ERRNO variant.
1821 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
1822 Likewise.
1823 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
1824 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER.
1825 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
1826 variants.
1827 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h:
1828 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER. Use
1829 direct branch to syscall_error for !PIC and PIC && !_LIBC_REENTRANT.
1830 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
1831 variants.
1832
1833 2003-01-28 Ulrich Drepper <drepper@redhat.com>
1834
1835 * sysdeps/unix/common/pause.c (do_pause): New function. Split
1836 from __libc_pause. Implement using sigsuspend.
1837 (__libc_pause): Call do_pause to do the real work.
1838
1839 * sysdeps/posix/sigpause.c (do_sigpause): Check range of
1840 sig_or_mask parameter is is_sig != 0.
1841
1842 2003-01-21 Philip Blundell <philb@gnu.org>
1843
1844 * sysdeps/unix/sysv/linux/bits/ioctls.h (SIOCSIFNAME): Define.
1845
1846 2003-01-27 Steven Munroe <sjmunroe@us.ibm.com>
1847
1848 * stdio-common/Makefile: Add bug14-ENV to set LOCPATH for make check.
1849
1850 2003-01-27 Ulrich Drepper <drepper@redhat.com>
1851
1852 * stdio-common/bug14.c: Use official name for the locale.
1853
1854 * stdio-common/vfprintf.c [USE_IN_LIBIO]: Use _IO_cleanup_region_start
1855 instead of __libc_cleanup_region_start and _IO_cleanup_region_end
1856 instead of __libc_cleanup_region_end.
1857
1858 * sysdeps/unix/sysv/linux/i386/system.c (CLEANUP_HANDLER): Pass 1
1859 as first parameter to __libc_cleanup_region_start.
1860
1861 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
1862 (__fe_nomask_env): Use __prctl not prctl.
1863 * sysdeps/unix/sysv/linux/syscalls.list: Add __prctl alias for
1864 prctl syscall.
1865
1866 * elf/dl-reloc.c (CHECK_STATIC_TLS): Improve error message.
1867
1868 * elf/dl-open.c (_dl_tls_static_size): Bump to 2048.
1869
1870 * elf/dl-reloc.c (allocate_static_tls): Avoid arithmetic
1871 wrap-around in test.
1872
1873 2003-01-26 Andreas Schwab <schwab@suse.de>
1874
1875 * sysdeps/wordsize-32/divdi3.c: Export the functions only as
1876 compatibility symbols. Remove INTDEF for __divdi3.
1877 * sysdeps/wordsize-32/lldiv.c: Don't use __divdi3_internal.
1878 * sysdeps/powerpc/powerpc32/divdi3.c: Remove.
1879 * sysdeps/powerpc/powerpc32/Makefile (CPPFLAGS-divdi3.c): Don't
1880 define.
1881 * sysdeps/powerpc/powerpc32/Dist: Remove divdi3.c.
1882
1883 2003-01-24 Jakub Jelinek <jakub@redhat.com>
1884
1885 * elf/tls-macros.h: Add SPARC 32-bit definitions.
1886 * sysdeps/sparc/sparc32/elf/configure.in: Add TLS check.
1887 * sysdeps/sparc/sparc32/dl-machine.h: Add dl_machine_h guards
1888 for the first half of the header. Include tls.h.
1889 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS
1890 relocs too.
1891 (elf_machine_rela): Handle TLS relocs.
1892 * sysdeps/sparc/dl-tls.h: New file.
1893
1894 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Add cancellation
1895 support.
1896
1897 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Use %g6 instead of %g7.
1898 * sysdeps/sparc/sparc32/memchr.S: Likewise.
1899 * sysdeps/sparc/sparc32/memcpy.S: Likewise.
1900 * sysdeps/sparc/sparc32/strcat.S: Likewise.
1901 * sysdeps/sparc/sparc32/strchr.S: Likewise.
1902 * sysdeps/sparc/sparc32/strcmp.S: Likewise.
1903 * sysdeps/sparc/sparc32/strcpy.S: Likewise.
1904 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
1905 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
1906 * sysdeps/sparc/sparc64/memcpy.S: Likewise.
1907 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
1908 * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
1909 * sysdeps/sparc/sparc64/strcat.S: Likewise.
1910 * sysdeps/sparc/sparc64/strchr.S: Likewise.
1911 * sysdeps/sparc/sparc64/strcmp.S: Likewise.
1912 * sysdeps/sparc/sparc64/strcpy.S: Likewise.
1913 * sysdeps/sparc/sparc64/strncmp.S: Likewise.
1914 * sysdeps/sparc/sparc64/strncpy.S: Likewise.
1915 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
1916 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
1917
1918 2003-01-24 Andreas Schwab <schwab@suse.de>
1919
1920 * elf/dl-close.c (_dl_close): Don't relocate DT_FINI_ARRAY
1921 elements, and process them backwards.
1922 * elf/Makefile ($(objpfx)tst-array4): New target.
1923 ($(objpfx)tst-array4.out): Likewise.
1924 (tests) [$(have-initfini-array) = yes]: Add tst-array4.
1925 * elf/tst-array4.c: New file.
1926 * elf/tst-array4.exp: Likewise.
1927
1928 2003-01-24 Steven Munroe <sjmunroe@us.ibm.com>
1929
1930 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: New file.
1931
1932 2003-01-27 Guido Guenther <agx@sigxcpu.org>
1933
1934 * sysdeps/unix/sysv/linux/mips/sysdep.h (SYSCALL_ERROR_LABEL): Define.
1935 * sysdeps/unix/sysv/linux/mips/pread.c: Add support for
1936 cancellation handling and handle both __NR_pread64 and __NR_pread.
1937 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
1938 * sysdeps/unix/sysv/linux/mips/pwrite.c: Add support for
1939 cancellation handling and handle both __NR_pwrite64 and __NR_pwrite.
1940 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
1941 * sysdeps/unix/mips/sysdep.S: Don't set errno in the _LIBC_REENTRANT
1942 case, use register names consistently.
1943
1944 2003-01-27 Wolfram Gloger <wg@malloc.de>
1945
1946 * malloc/hooks.c (mem2chunk_check): Check alignment of mem
1947 pointer, not of the computed chunk. Bug report from Carlos
1948 O'Donell <carlos@baldric.uwo.ca>.
1949
1950 2003-01-25 Andreas Schwab <schwab@suse.de>
1951
1952 * sysdeps/m68k/dl-machine.h (_dl_start_user): Use pc-relative
1953 addressing to save GOT entries.
1954
1955 2003-01-21 Jakub Jelinek <jakub@redhat.com>
1956
1957 * sysdeps/unix/alpha/sysdep.h (inline_syscall0,
1958 inline_syscall1, inline_syscall2, inline_syscall3,
1959 inline_syscall4, inline_syscall5, inline_syscall6): Add __volatile__.
1960 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INTERNAL_SYSCALL): Add
1961 __attribute__((unused)) to ChEcK.
1962
1963 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
1964
1965 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL):
1966 Fix inline assembler constraints.
1967 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL):
1968 Likewise.
1969
1970 * sysdeps/s390/s390-64/Makefile (pic-ccflag): Use -fpic instead of
1971 -fPIC.
1972
1973 2003-01-20 Segher Boessenkool <segher@koffie.nl>
1974
1975 * sysdeps/ieee754/dbl-64/sincos32.c (__mpcos): Really
1976 compute the cosine, not the sine, even if x > 0.8.
1977
1978 2003-01-19 Ulrich Drepper <drepper@redhat.com>
1979
1980 * nis/nss_nis/nis-spwd.c: Make _nss_nis_endspent an alias of
1981 _nss_nis_setspent. Work around the different prototypes.
1982 * nis/nss_nis/nis-rpc.c (internal_nis_setrpcent): Use
1983 internal_nis_endrpcent.
1984 (internal_nis_endrpcent): Change return type to void. Change callers.
1985 * nis/nss_nis/nis-pwd.c: Make _nss_nis_endpwent an alias of
1986 _nss_nis_setpwent. Work around the different prototypes.
1987 * nis/nss_nis/nis-proto.c (_nss_nis_endprotoent): Split out body
1988 of the function to...
1989 (internal_nis_endprotoent): ... here. New function.
1990 (internal_nis_setprotoent): Use internal_nis_endprotoent.
1991 * nis/nss_nis/nis-network.c: Make _nss_nis_endnetent an alias of
1992 _nss_nis_setnetent. Work around the different prototypes.
1993 * nis/nss_nis/nis-netgrp.c (_nss_nis_endnetgrent): Split out body
1994 of the function to...
1995 (internal_nis_endnetgrent): ... here. New function.
1996 (_nss_nis_setnetgrent): Use internal_nis_endnetgrent.
1997
1998 2003-01-19 Jim Meyering <jim@meyering.net>
1999
2000 * time/strftime.c: (widen): Merge nearly-identical definitions.
2001 (nl_get_alt_digit) [! defined my_strftime]: Define.
2002 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
2003 _nl_get_alt_digit and _nl_get_walt_digit.
2004
2005 2003-01-19 Ulrich Drepper <drepper@redhat.com>
2006
2007 * time/strftime.c (my_strftime): Handle very large width
2008 specifications for numeric values correctly. Improve checks for
2009 overflow.
2010 * time/Makefile (tests): Add tst-strftime.
2011 * time/tst-strftime.c: New file.
2012
2013 2003-01-18 Ulrich Drepper <drepper@redhat.com>
2014
2015 * nis/nss_nis/nis-hosts.c: Make _nss_nis_endhostent an alias of
2016 _nss_nis_sethostent. Work around the different prototypes.
2017 * nis/nss_nis/nis-grp.c: Make _nss_nis_endgrent an alias of
2018 _nss_nis_setgrent. Work around the different prototypes.
2019 * nis/nss_nis/nis-ethers.c (internal_nis_endetherent): New
2020 function. Split out from _nss_nis_endetherent.
2021 (internal_nis_setetherent): Use internal_nis_endetherent instead of
2022 duplicating the code.
2023 * nis/nss_nis/nis-alias.c: Make _nss_nss_nis_endaliasent an alias
2024 of _nss_nis_setaliasent.
2025 * nis/nss_nis/nis-service.c (internal_nis_setservent): Reuse
2026 internal_nis_endservent code, don't duplicate it.
2027
2028 * inet/rexec.c (rexec_af): Protect socket operations with
2029 TEMP_FAILURE_RETRY. Use writev instead of multiple write.
2030 * inet/rcmd.c (rcmd_af): Likewise.
2031
2032 2003-01-17 Roland McGrath <roland@redhat.com>
2033
2034 * math/libm-test.inc (sin_test, cos_test, sincos_test) [TEST_DOUBLE]:
2035 Add test of value 0.80190127184058835.
2036
2037 * elf/dl-open.c: Fix typo ifdef -> ifndef on _dl_tls_static_size defn.
2038
2039 2003-01-17 Richard Henderson <rth@redhat.com>
2040
2041 * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Add TLS
2042 relocs for class PLT.
2043 * sysdeps/alpha/libc-tls.c: New file.
2044 * sysdeps/unix/alpha/sysdep.S (EPILOGUE, GPSAVEREG): New.
2045 (LOADGP) [!PIC]: Rewrite to preserve caller's gp.
2046
2047 2003-01-17 Jakub Jelinek <jakub@redhat.com>
2048
2049 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Use
2050 __libc_lock_{,un}lock_recursive instead of __libc_lock_{,un}lock
2051 on _dl_static_lock.
2052
2053 2003-01-17 Andreas Jaeger <aj@suse.de>
2054
2055 * stdio-common/bug14.c: Include stdlib.h for exit prototype.
2056
2057 2003-01-16 Steven Munroe <sjmunroe@us.ibm.com>
2058
2059 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: New file.
2060 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: New file.
2061 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: New file.
2062 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: New file.
2063 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h: New file.
2064 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: New file.
2065 * sysdeps/unix/sysv/linux/configure.in: Minimum kernel for PPC64
2066 is 2.4.21.
2067
2068 2003-01-16 Ulrich Drepper <drepper@redhat.com>
2069
2070 * sysdeps/generic/glob.c (glob): Assume sysconf() always returns
2071 values != -1 for _LIBC. Use extend_alloca to reallocate alloca'ed
2072 buffers.
2073
2074 * sysdeps/generic/sysconf.c: Unconditionally implement
2075 _SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX.
2076 * sysdeps/posix/sysconf.c: Likewise.
2077
2078 2003-01-16 Jakub Jelinek <jakub@redhat.com>
2079
2080 * posix/regcomp.c (parse_bracket_exp): If build_charclass fails,
2081 set *err to the returned error, not to REG_ESPACE unconditionally.
2082 (build_word_op): Likewise.
2083 * posix/Makefile (tests): Add bug-regex16.
2084 * posix/bug-regex16.c: New test.
2085
2086 2003-01-16 Jakub Jelinek <jakub@redhat.com>
2087
2088 * elf/dl-load.c (_dl_map_object_from_fd): Use
2089 GL(dl_tls_dtv_slotinfo_list) != NULL to check whether TLS has
2090 been already initialized.
2091
2092 2003-01-15 Dmitry V. Levin <ldv@altlinux.org>
2093
2094 * sysdeps/unix/sysv/linux/ptsname.c: Fix typo in comment.
2095
2096 2003-01-16 Jakub Jelinek <jakub@redhat.com>
2097
2098 * posix/regcomp.c (re_compile_internal): If clearing buffer, clear
2099 allocated too. Reported by Al Viro <aviro@redhat.com>.
2100
2101 2003-01-16 Roland McGrath <roland@redhat.com>
2102
2103 Tweak merged .abilist file format to merge duplicate symbols in
2104 different sets into multi-version stanzas with new "| SET regexp..."
2105 header continuation lines.
2106 * scripts/merge-abilist.awk: Rewritten for new format.
2107 * scripts/extract-abilist.awk: Likewise.
2108
2109 2003-01-15 Ulrich Drepper <drepper@redhat.com>
2110
2111 * nscd/connections.c (nscd_run): Remove bogus return which isn't
2112 necessary with gcc 3.2+.
2113 (nscd_init): Don't use error() to print message, use dbg_log.
2114
2115 * iconv/gconv_simple.c (STORE_REST): Explicitly store the total
2116 expected size into state.
2117 (UNPACK_BYTES): Do the reverse.
2118 * iconv/loop.c: Use CLEAR_STATE if defined to clear __state element.
2119 * wcsmbs/tst-mbrtowc.c (utf8_test_1): Add test for the bug.
2120 Reported by Al Viro <aviro@redhat.com>.
2121
2122 * stdio-common/Makefile (tests): Add bug14.
2123 * stdio-common/bug14.c: New file.
2124
2125 * stdio-common/vfscanf.c: When recognizing multibyte characters in
2126 string reset the byte counter after mbrtowc reported it is not a
2127 partial character. Reported by Al Viro <aviro@redhat.com>.
2128
2129 2003-01-15 Steven Munroe <sjmunroe@us.ibm.com>
2130
2131 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Include
2132 sysdep-cancel.h, not sysdep.h.
2133
2134 2003-01-15 Ulrich Drepper <drepper@redhat.com>
2135
2136 * nscd/connections.c (nscd_run): Protect accept call with
2137 TEMP_FAILURE_RETRY.
2138
2139 2003-01-15 Andreas Schwab <schwab@suse.de>
2140
2141 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-bp.d.
2142 (common-generated): Add s-proto-bp.d.
2143 * sysdeps/unix/make-syscalls.sh: Use s-proto-bp.d for dependencies
2144 of bp thunks.
2145 * sysdeps/unix/s-proto-bp.S: New file.
2146 * sysdeps/generic/bp-thunks.h: Don't include <sys/vm86.h> here.
2147 Use <io/sys/sendfile.h> instead of <sys/sendfile.h>.
2148 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: New file.
2149
2150 2003-01-15 Roland McGrath <roland@redhat.com>
2151
2152 * Makerules: Use -include for tls.make, suppresses warning.
2153 Move gen-as-const-headers rules up so before-compile is set in time.
2154 (sed-remove-dotdot): Fix to work right for subdirs or top dir.
2155
2156 2003-01-15 Ulrich Drepper <drepper@redhat.com>
2157
2158 * nscd/nscd.c (main): Make code to close all file descriptors
2159 faster and more robust.
2160
2161 * nscd/nscd_getpw_r.c (nscd_getpw_r): Consolidate writing of the
2162 request with one writev call. Protect all read calls with
2163 TEMP_FAILURE_RETRY.
2164 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
2165 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
2166
2167 * nscd/hstcache.c: Use extend_alloca to reallocate alloca'd buffer.
2168 Protect writev calls with TEMP_FAILURE_RETRY.
2169 * nscd/grpcache.c: Likewise.
2170 * nscd/pwdcache.c: Likewise.
2171
2172 * nscd/hstcache.c (addhstbynamev6): Don't interpret hostname as
2173 IPv6 address in debug output.
2174
2175 2003-01-14 Roland McGrath <roland@redhat.com>
2176
2177 * Makerules (check-abi-%): Use two rules for $(common-objpfx) and
2178 $(objpfx) directories, and get rid of vpath directives. The previous
2179 arrangement resulted in files being written to the source directories
2180 when run in a clean build. Find all .abilist files in $(..)abilist/.
2181 (update-abi-%): Likewise.
2182 (generated): Don't add .symlist files, they'll be intermediates.
2183
2184 * sysdeps/generic/init-first.c: Add a comment.
2185
2186 * elf/Makefile ($(objpfx)ld.so): Pass -z defs in link.
2187
2188 * scripts/gen-as-const.awk: Grok lone "--" as a separator between
2189 #includes and expressions.
2190
2191 * scripts/merge-abilist.awk: Omit cpu-.*-os.*/modifier from merged
2192 config list when it already contains cpu-.*-os.* without / part.
2193
2194 * Makerules (sed-remove-dotdot): New variable.
2195 ($(common-objpfx)%.make): Use it. Depend on $(before-compile).
2196 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.
2197 (check-abi-config): New variable, append /tls or /notls to the tuple.
2198 (check-abi-%): Use that for -v config value.
2199 Find .abilist files in abilist/libfoo.abilist, not in subdir.
2200 * Rules: Move bits/stdio_lim.h generation rules to Makerules.
2201
2202 2003-01-14 Ulrich Drepper <drepper@redhat.com>
2203
2204 * manual/install.texi: Correct description of header preparation for
2205 Linux build. Patch by mhwood@Ameritech.Net [PR libc/4941].
2206
2207 2003-01-14 Guido Guenther <agx@sigxcpu.org>
2208
2209 * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_SYSCALL,
2210 INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
2211 INTERNAL_SYSCALL_ERROR_P, INLINE_SYSCALL): Define.
2212
2213 2003-01-14 Steven Munroe <sjmunroe@us.ibm.com>
2214
2215 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
2216 (INTERNAL_SYSCALL): Make use of ERR parameter.
2217 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
2218 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
2219 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
2220 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
2221
2222 2003-01-14 Ulrich Drepper <drepper@redhat.com>
2223
2224 * sunrpc/pm_getport.c (pmap_getport): Open TCP socket if protocol
2225 == IPPROTO_TCP.
2226 Patch by James Strandboge <jamie@tpptraining.com> [PR libc/4943].
2227
2228 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (_dl_x86_cap_flags):
2229 Fix entry for bit 31.
2230
2231 * iconvdata/Makefile: Add rules to build IBM866NAV.
2232 * iconvdata/ibm866nav.c: New file.
2233 * iconvdata/tst-tables.sh: Add IBM866NAV.
2234 * iconvdata/gconv-modules: Add entries for IBM866NAV.
2235
2236 2003-01-13 Ulrich Drepper <drepper@redhat.com>
2237
2238 * string/tester.c (test_strcpy): Use the previously #if 0'ed code
2239 to test void* parameters.
2240
2241 * sysdeps/i386/i486/bits/string.h (__STRING_SMALLL_GET16): Cast
2242 source pointer before dereferencing.
2243 (__STRING_SMALLL_GET32): Likewise.
2244 (__memset_gc): Add missing parenthesis around macro arguments.
2245 Patch by Denis Zaitsev <zzz@cd-club.ru>.
2246
2247 * sysdeps/i386/i486/bits/string.h (__strspn_cg): Tell the compiler
2248 that %eax is modified. Reported by Denis Zaitsev <zzz@cd-club.ru>.
2249
2250 2003-01-14 Jakub Jelinek <jakub@redhat.com>
2251
2252 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL): Undefined before
2253 defining.
2254
2255 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
2256
2257 * sysdeps/s390/s390-64/initfini.c: Avoid unterminated string literals.
2258 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (L): Don't define it
2259 here.
2260 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (L): Likewise.
2261
2262 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
2263
2264 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Move branch instructions
2265 from here...
2266 (PSEUDO): ... to here.
2267 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Move branch instruction
2268 from here...
2269 (PSEUDO): ... to here.
2270
2271 2003-01-13 Ulrich Drepper <drepper@redhat.com>
2272
2273 * locale/programs/charmap-dir.c (charmap_readdir): Use struct
2274 dirent64 instead of struct dirent for dirent. Call readdir64
2275 instead of readdir.
2276
2277 * locale/programs/locfile.c (siblings_uncached): Use struct
2278 dirent64 instead of struct dirent for other_dentry. Call
2279 readdir64 instead of readdir.
2280
2281 * elf/ldconfig.c (direntry): Change type to struct dirent64.
2282 (search_dir): Use readdir64 instead of readdir.
2283 Patch by Zhangfan Xing <xing@pacific.jpl.nasa.gov>.
2284
2285 2003-01-12 Roland McGrath <roland@redhat.com>
2286
2287 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use strtoul,
2288 not strtol. The former is usable in ld.so, the latter not.
2289
2290 * include/fcntl.h: Declare __libc_creat.
2291
2292 * sysdeps/mach/hurd/Makefile (libmachuser-link.so-no-z-defs,
2293 libhurduser-link.so-no-z-defs): New variables.
2294
2295 * malloc/malloc.c: Revert last change.
2296 * malloc/malloc.h (_int_*): Move these decls to ...
2297 * include/malloc.h: ... here. Add attribute_hidden.
2298 (_int_valloc): Declare it too.
2299
2300 2003-01-12 Ulrich Drepper <drepper@redhat.com>
2301
2302 * elf/dl-close.c (_dl_close): Fix typo, must be == not = in
2303 search for removed searchlist. Reported by Roland McGrath.
2304
2305 * io/ftwtest-sh: Add test for case of symlink to nonexisting file
2306 given as start file.
2307
2308 * io/ftw.c (ftw_startup): Use correct name in check for symlink
2309 without existing target. Patch by Jim Meyering.
2310
2311 * Makerules (build-shlib-helper): Don't use -z defs linker option
2312 if no-z-defs is defined either.
2313
2314 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
2315
2316 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Remove unused
2317 file.
2318
2319 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
2320
2321 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Add vfork.
2322 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2323
2324 2003-01-12 Ulrich Drepper <drepper@redhat.com>
2325
2326 * io/ftwtest-sh: Add test case for relative path with /. at the end.
2327
2328 2003-01-12 Jim Meyering <jim@meyering.net>
2329
2330 * io/ftw.c (ftw_startup): When trying to stat the starting directory,
2331 use the basename if we've already chdir'd into its parent directory.
2332
2333 2003-01-12 Ulrich Drepper <drepper@redhat.com>
2334
2335 * io/ftw.c (process_entry): Use relative path when using chdir()
2336 to change directory after call to ftw_dir.
2337 * io/ftwtest-sh: Add test for relative path argument to nftw()
2338 with FTW_CHDIR option.
2339
2340 2002-01-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2341
2342 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
2343 Define for powerpc.
2344 * sysdeps/unix/sysv/linux/powerpc/syscall.S: Take register alignment
2345 into account.
2346 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
2347 (INTERNAL_SYSCALL): Make use of ERR parameter.
2348 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
2349 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
2350 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
2351 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
2352
2353 2002-01-09 Richard Henderson <rth@redhat.com>
2354
2355 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Compute
2356 DTPREL64 and TPREL64 without loadbase applied.
2357
2358 2002-01-09 Richard Henderson <rth@redhat.com>
2359
2360 * sysdeps/unix/alpha/sysdep.S: Use correct definition of errno
2361 for NOT_IN_libc.
2362
2363 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Move inline syscall bits...
2364 * sysdeps/unix/alpha/sysdep.h: ... here.
2365 (PSEUDO_LOADGP): Remove.
2366 (PSEUDO_PROLOGUE): Load GP in non-pic case.
2367 (SYSCALL_ERROR_LABEL): New.
2368 (PSEUDO): Use it in error branch.
2369 (PSEUDO_END): Add $syscall_error label.
2370
2371 2003-01-12 Andreas Jaeger <aj@suse.de>
2372
2373 * math/bits/mathcalls.h: Round is a const function.
2374
2375 2003-01-11 Jim Meyering <jim@meyering.net>
2376
2377 * io/ftw.c [HAVE_CONFIG_H]: Include <config.h>.
2378 [HAVE_SYS_PARAM_H || _LIBC]: Guard inclusion of <sys/param.h>.
2379 Include <sys/stat.h>, not <include/sys/stat.h>, if !_LIBC.
2380 [!_LIBC] (__chdir, __closedir, __fchdir, __getcwd, __opendir): Define.
2381 [!_LIBC] (__readdir64, __tdestroy, __tfind, __tsearch): Define.
2382 [!_LIBC] (internal_function, dirent64, MAX): Define.
2383 (__set_errno): Define if not already defined.
2384 (open_dir_stream): When FTW_CHDIR is enabled, invoke opendir on
2385 the basename, not the entire file name.
2386 (process_entry): When FTW_CHDIR is enabled, invoke XSTAT or LXSTAT on
2387 the basename, not the entire file name.
2388
2389 2003-01-12 Ulrich Drepper <drepper@redhat.com>
2390
2391 * string/tester.c (test_strcpy): Disable last added strcpy until
2392 it is fixed.
2393
2394 2003-01-11 Philip Blundell <philb@gnu.org>
2395
2396 * sysdeps/unix/sysv/linux/arm/socket.S: Add cancellation support.
2397
2398 2003-01-11 Andreas Schwab <schwab@suse.de>
2399
2400 * Makerules: Add vpath for %.dynsym and %.so so that the
2401 implicit rule chaining for check-abi works.
2402
2403 2003-01-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2404
2405 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
2406 Add non-PIC case.
2407
2408 2003-01-11 Jakub Jelinek <jakub@redhat.com>
2409
2410 * elf/tls-macros.h [__ia64__] (__TLS_CALL_CLOBBERS): Define.
2411 [__ia64__] (TLS_LE, TLS_IE): Fix typos. Add ;; at start of asm if
2412 gp is used early.
2413 [__ia64__] (TLS_LD, TLS_GD): Likewise. Use __TLS_CALL_CLOBBERS.
2414 * elf/Makefile ($(objpfx)tst-tlsmod5.so, $(objpfx)tst-tlsmod6.so):
2415 Ensure libc.so in DT_NEEDED.
2416 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Move
2417 CHECK_STATIC_TLS before l_tls_offset use.
2418 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
2419 Likewise.
2420 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
2421 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage) [TLS_DTV_AT_TP]:
2422 Allocate TLS_PRE_TCB_SIZE bytes below result.
2423 (_dl_deallocate_tls) [TLS_DTV_AT_TP]: Adjust before freeing.
2424 * sysdeps/generic/libc-tls.c (__libc_setup_tls): If
2425 TLS_INIT_TP_EXPENSIVE is not defined, allocate even if no PT_TLS
2426 segment has been found. If TLS_DTV_AT_TP, allocate TLS_PRE_TCB_SIZE
2427 bytes below result and add tcb_offset to memsz.
2428 * sysdeps/ia64/dl-tls.h (__tls_get_addr): New prototype.
2429 * sysdeps/ia64/dl-machine.h: Include tls.h.
2430 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS relocs
2431 too.
2432 (elf_machine_rela): Assume if sym_map != NULL sym is non-NULL too.
2433 Handle R_IA64_DTPMOD*, R_IA64_DTPREL* and R_IA64_TPREL* relocations.
2434 * sysdeps/ia64/libc-tls.c: New file.
2435
2436 2003-01-10 Steven Munroe <sjmunroe@us.ibm.com>
2437
2438 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_RET): Add branch hit.
2439 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h (STAT_VER_LINUX):
2440 Fix type. Move definition out of #if.
2441 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ftruncate64.c: New file.
2442 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: New file.
2443 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: New file.
2444 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: New file.
2445 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: New file.
2446 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Add cancellation
2447 support.
2448 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Remove
2449 ftruncate64, pread64, pwrite64, truncate64 entries.
2450 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
2451 (INLINE_SYSCALL): New version that supports function call like
2452 syscalls. Add __builtin_expect.
2453 (LOADARGS_n): Add argument size safety checks.
2454 (INTERNAL_SYSCALL): New Macro.
2455 * sysdeps/unix/sysv/linux/powerpc/powerpc64/truncate64.c: New file.
2456 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [__PPC_ELF_H]: Avoid
2457 redefinition of elf_fpreg_t and elf_fpregset_t.
2458
2459 2003-01-12 Ulrich Drepper <drepper@redhat.com>
2460
2461 * elf/dl-close.c (_dl_close): Add several asserts. Correct and
2462 simplify test for unloading. If loader of a DSO is unloaded do not
2463 use its scope anymore. Fall back to own scope and adjust opencounts.
2464 Fix several comments.
2465 * elf/dl-deps.c (_dl_map_object_deps): Always allocate memory for
2466 the l_searchlist, not only for l_initfini.
2467
2468 * elf/dl-lookup.c (add_dependencies): Avoid creating relocation
2469 dependencies if objects cannot be removed. Remove object with the
2470 definition as not unloadable if necessary.
2471
2472 * elf/reldep6.c: Create relocation dependency before closing the first
2473 module.
2474
2475 2003-01-10 Guido Günther <agx@sigxcpu.org>
2476
2477 * sysdeps/unix/mips/fork.S: Add PSEUDO_END.
2478 * sysdeps/unix/mips/brk.S: Likewise.
2479 * sysdeps/unix/mips/pipe.S: Likewise.
2480
2481 2003-01-10 Andreas Schwab <schwab@suse.de>
2482
2483 * sysdeps/unix/sysv/linux/m68k/getsysstats.c: New file.
2484
2485 * sysdeps/unix/sysv/linux/m68k/vfork.S: Optimize for kernels which
2486 are known to have the vfork syscall.
2487
2488 * sysdeps/m68k/sysdep.h (JUMPTARGET): Undefine before defining it.
2489
2490 * sysdeps/unix/sysv/linux/kernel-features.h
2491 (__ASSUME_MMAP2_SYSCALL, __ASSUME_TRUNCATE64_SYSCALL)
2492 (__ASSUME_STAT64_SYSCALL, __ASSUME_FCNTL64)
2493 (__ASSUME_VFORK_SYSCALL): Define for m68k kernels >= 2.4.12.
2494
2495 2003-01-09 Jakub Jelinek <jakub@redhat.com>
2496
2497 * elf/Makefile: Add rules to build and run reldep9 test.
2498 * elf/reldep9.c: New file.
2499 * elf/reldep9mod1.c: New file.
2500 * elf/reldep9mod2.c: New file.
2501 * elf/reldep9mod3.c: New file.
2502
2503 2003-01-09 Jakub Jelinek <jakub@redhat.com>
2504
2505 * elf/Makefile: Add rules to build and run nodelete2 test.
2506 * elf/nodelete2.c: New file.
2507 * elf/nodel2mod1.c: New file.
2508 * elf/nodel2mod2.c: New file.
2509 * elf/nodel2mod3.c: New file.
2510
2511 2003-01-09 Jakub Jelinek <jakub@redhat.com>
2512
2513 * posix/test-vfork.c (noop): Add __attribute_noinline__.
2514 * sysdeps/generic/sysdep.h (JUMPTARGET): Define if not defined.
2515 * sysdeps/i386/sysdep.h (JUMPTARGET): Undefine JUMPTARGET before
2516 defining it.
2517 * sysdeps/powerpc/powerpc32/sysdep.h (JUMPTARGET): Likewise.
2518 * sysdeps/powerpc/powerpc64/sysdep.h (JUMPTARGET): Likewise.
2519 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Likewise.
2520 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Likewise.
2521 * sysdeps/x86_64/sysdep.h (JUMPTARGET): Likewise.
2522
2523 2003-01-09 Andreas Schwab <schwab@suse.de>
2524
2525 * sysdeps/m68k/fpu/libm-test-ulps: Regenerated.
2526
2527 2003-01-08 Ulrich Drepper <drepper@redhat.com>
2528
2529 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL,
2530 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
2531 argument.
2532 (INTERNAL_SYSCALL_DECL): Define.
2533
2534 2003-01-06 Jakub Jelinek <jakub@redhat.com>
2535
2536 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INTERNAL_SYSCALL,
2537 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
2538 argument.
2539 (INTERNAL_SYSCALL_DECL): Define.
2540 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
2541 * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
2542 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
2543 (INLINE_SYSCALL): Adjust.
2544 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
2545 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
2546 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
2547 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
2548 * elf/dl-misc.c (_dl_debug_vdprintf): Add INTERNAL_SYSCALL_DECL,
2549 add err argument to INTERNAL_SYSCALL* macros.
2550 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
2551 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Likewise.
2552 * sysdeps/unix/sysv/linux/m68k/brk.c (__brk): Likewise.
2553 * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
2554 Likewise.
2555 * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Likewise.
2556 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Use
2557 INLINE_SYSCALL instead of INTERNAL_SYSCALL and setting errno.
2558
2559 2003-01-07 Ulrich Drepper <drepper@redhat.com>
2560
2561 Unify symbols in user namespace exported by libc.so and libc.a.
2562 * argp/argp-fmtstream.c: Don't define argp_make_fmtstream,
2563 argp_fmtstream_free, and argp_fmtstream_printf.
2564 * argp/argp-fs-xinl.c: Don't define argp_fmtstream_putc,
2565 argp_fmtstream_puts, argp_fmtstream_write, argp_fmtstream_set_lmargin,
2566 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin, and
2567 argp_fmtstream_point.
2568 * gmon/gmon.c: Don't define write_profiling.
2569 * libio/genops.c: Don't define _cleanup.
2570
2571 * intl/explodename.c (_nl_find_language.c): Mark as static.
2572 * intl/loadinfo.h: Remove _nl_find_language prototype.
2573
2574 * libio/fileops.c (_IO_file_seekoff_maybe_mmap): Mark as static.
2575 * libio/libioP.h: Remove declaration.
2576
2577 * libio/iopopen.c (_IO_proc_jumps): Mark as static.
2578 * libio/libioP.h: Remove declaration.
2579
2580 * sysdeps/generic/unwind-dw2.c: Mark __frame_state_for with STATIC.
2581 * sysdeps/generic/framestate.c: Define STATIC before including
2582 unwind-dw2.c.
2583
2584 * time/Versions [GLIBC_2.3.2] (libc): Export strptime_l.
2585
2586 2003-01-06 Philip Blundell <philb@gnu.org>
2587
2588 * sysdeps/unix/arm/sysdep.S (syscall_error): Optimise a little.
2589 [__LIBC_REENTRANT]: Unify PIC and non-PIC cases.
2590
2591 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Remove .type
2592 directive.
2593 (PSEUDO_RET): Use SYSCALL_ERROR in place of __syscall_error.
2594 (SYSCALL_ERROR): New.
2595 (SYSCALL_ERROR_HANDLER) [NOT_IN_libc]: Provide local copy of error
2596 handling code.
2597 (INTERNAL_SYSCALL): Define.
2598 (INLINE_SYSCALL): Use it.
2599 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
2600 * sysdeps/unix/sysv/linux/arm/socket.S (__socket): Use
2601 SYSCALL_ERROR in place of __syscall_error.
2602
2603 2003-01-07 Jakub Jelinek <jakub@redhat.com>
2604
2605 * sysdeps/ia64/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
2606 __bswap_32, __bswap_64): Put x into temporary variable
2607 to avoid warnings.
2608 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
2609 (inline) functions.
2610 * sysdeps/s390/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
2611 __bswap_32, __bswap_64): Put x into temporary variable
2612 to avoid warnings.
2613 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
2614 (inline) functions.
2615 * sysdeps/i386/bits/byteswap.h [!__GNUC__] (__bswap_16, __bswap_32):
2616 Likewise.
2617
2618 2003-01-07 Jakub Jelinek <jakub@redhat.com>
2619
2620 * sysdeps/unix/sysv/linux/alpha/adjtime.c (ntp_adjtime): New weak
2621 alias.
2622
2623 2003-01-07 Jakub Jelinek <jakub@redhat.com>
2624
2625 * elf/rtld.c (_rtld_global): Remove _dl_dynamic_weak initializer.
2626 * elf/dl-support.c (_dl_dynamic_weak): Initialize to 0.
2627
2628 2003-01-07 Ulrich Drepper <drepper@redhat.com>
2629
2630 * math/libm-test.inc (significand_test): New function.
2631 (main): Call it.
2632
2633 2003-01-06 Roland McGrath <roland@redhat.com>
2634
2635 * sysdeps/i386/i486/bits/string.h (memset): Add parens around macro
2636 arguments.
2637 (memcpy, memrchr, strcpy, __stpcpy, strncpy, strcat): Likewise.
2638 (strcmp, strncat, strncmp, strchr, __strchrnul, strchrnul): Likewise.
2639 (index, strrchr, rindex, strcspn, strspn, strpbrk, strstr): Likewise.
2640
2641 * string/tester.c (test_strcpy): Add test with `void *' arguments.
2642
2643 2003-01-06 Ulrich Drepper <drepper@redhat.com>
2644
2645 * sysdeps/i386/fpu/s_significandl.c (__significandl): Really
2646 return significand and not the exponent.
2647 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
2648
2649 * elf/dl-misc.c (_dl_debug_vdprintf): Help PPC port by explicitly
2650 taking address of iov in INTERNAL_SYSCALL call. Patch by Franz Sirl.
2651
2652 * malloc/malloc.c: Mark all _int_* functions as static.
2653
2654 2003-01-06 Jakub Jelinek <jakub@redhat.com>
2655
2656 * sysdeps/unix/alpha/sysdep.h (PSEUDO): Use PSEUDO_PREPARE_ARGS.
2657 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add cancellation
2658 handling.
2659 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
2660
2661 2003-01-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2662
2663 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_RET): Add branch hint.
2664 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Add cancellation
2665 support.
2666 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Remove
2667 ftruncate64, truncate64, pread64 and pwrite64 entries.
2668 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
2669 (INLINE_SYSCALL): Add __builtin_expect.
2670 (LOADARGS_n): Add argument size safety checks.
2671 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: New file.
2672 * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: New file.
2673 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: New file.
2674 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: New file.
2675 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: New file.
2676 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: New file.
2677
2678 2003-01-06 Jakub Jelinek <jakub@redhat.com>
2679
2680 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Define.
2681 * sysdeps/generic/creat.c: Include sysdep-cancel.h.
2682 (LIBC_CANCEL_HANDLED): Add.
2683
2684 * sysdeps/unix/sysv/linux/alpha/sysdep.h
2685 (inline_syscall_r0_constraint): Rename to...
2686 (inline_syscall_r0_out_constraint): ... this. Add =.
2687 (inline_syscall[0-6]): Use inline_syscall_r0_out_constraint.
2688
2689 2003-01-06 Andreas Schwab <schwab@suse.de>
2690
2691 * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Make
2692 sure this is always inlined.
2693 (elf_machine_rela): Likewise.
2694
2695 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Increase inline limit.
2696
2697 2003-01-04 Roland McGrath <roland@redhat.com>
2698
2699 * Makeconfig (+mkdep): Add -MP flag.
2700 Suggested by Art Haas <ahaas@airmail.net>.
2701
2702 2003-01-05 Andreas Schwab <schwab@suse.de>
2703
2704 * sysdeps/m68k/Makefile (CFLAGS-.oS): Append -fPIC.
2705
2706 2003-01-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2707
2708 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Use
2709 SYSCALL_ERROR_HANDLER.
2710 * sysdeps/unix/sysv/linux/sh/pipe.S (__libc_pipe): Likewise.
2711 * sysdeps/unix/sysv/linux/sh/socket.S (__socket): Likewise.
2712 Add support for cancellation handling.
2713 * sysdeps/unix/sysv/linux/sh/syscall.S (__syscall): Use
2714 SYSCALL_ERROR_HANDLER.
2715 * sysdeps/unix/sysv/linux/sh/vfork.S (__vfork): Likewise.
2716 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Likewise.
2717 Add support for cancellation handling.
2718 (SYSCALL_ERROR_HANDLER): Define PIC variants.
2719
2720 2003-01-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2721
2722 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Mark
2723 __syscall_pread64 and __syscall_pwrite64 cancelable.
2724 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
2725 (INTERNAL_SYSCALL): New macro.
2726 (LOADARGS_0, LOADARGS_1): Fix.
2727
2728 2003-01-05 Ulrich Drepper <drepper@redhat.com>
2729
2730 * Makerules (build-shlip-helper): Unless told otherwise, add
2731 -Wl,-z,defs to linker command line.
2732 * rt/Makefile (librt.so): Link with ld.so.
2733 * dlfcn/Makefile (libdl.so): Likewise.
2734
2735 2003-01-05 Jakub Jelinek <jakub@redhat.com>
2736
2737 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Add support for
2738 cancellation handling.
2739 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
2740 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
2741
2742 2003-01-04 Ulrich Drepper <drepper@redhat.com>
2743
2744 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Correct
2745 order of parameters passed to kill.
2746
2747 2003-01-04 Andreas Schwab <schwab@suse.de>
2748
2749 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Add nanosecond fields.
2750
2751 2002-01-03 Paul Eggert <eggert@twinsun.com>
2752
2753 * malloc/obstack.h (__INT_TO_PTR) [__STDC__]: Cast result to
2754 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
2755 when compiling Bison 1.875's `bitset bset = obstack_alloc
2756 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
2757
2758 2003-01-04 Ulrich Drepper <drepper@redhat.com>
2759
2760 * sysdeps/posix/system.c (do_system): Minor optimizations. Remove
2761 unnecessary code.
2762 Correct reference counter in case SIGQUIT handler installation failed.
2763
2764 2003-01-03 Ulrich Drepper <drepper@redhat.com>
2765
2766 * include/libc-symbols.h [HAVE_WEAK_SYMBOLS] (_weak_extern):
2767 Define using _Pragma(weak ...).
2768
2769 2003-01-03 Andreas Jaeger <aj@suse.de>, Jakub Jelinek <jakub@redhat.com>
2770
2771 * resolv/res_libc.c: Provide declaration for __res_init_weak and
2772 reorder declarations.
2773
2774 2003-01-03 Art Haas <ahaas@airmail.net>
2775
2776 * localedata/tests-mbwc/dat_iswalnum.c: Convert GCC extension
2777 initializer syntax to C99.
2778 * localedata/tests-mbwc/dat_iswalpha.c: Likewise.
2779 * localedata/tests-mbwc/dat_iswcntrl.c: Likewise.
2780 * localedata/tests-mbwc/dat_iswctype.c: Likewise.
2781 * localedata/tests-mbwc/dat_iswdigit.c: Likewise.
2782 * localedata/tests-mbwc/dat_iswgraph.c: Likewise.
2783 * localedata/tests-mbwc/dat_iswlower.c: Likewise.
2784 * localedata/tests-mbwc/dat_iswprint.c: Likewise.
2785 * localedata/tests-mbwc/dat_iswpunct.c: Likewise.
2786 * localedata/tests-mbwc/dat_iswspace.c: Likewise.
2787 * localedata/tests-mbwc/dat_iswupper.c: Likewise.
2788 * localedata/tests-mbwc/dat_iswxdigit.c: Likewise.
2789 * localedata/tests-mbwc/dat_mblen.c: Likewise.
2790 * localedata/tests-mbwc/dat_mbrlen.c: Likewise.
2791 * localedata/tests-mbwc/dat_mbrtowc.c: Likewise.
2792 * localedata/tests-mbwc/dat_mbsrtowcs.c: Likewise.
2793 * localedata/tests-mbwc/dat_mbstowcs.c: Likewise.
2794 * localedata/tests-mbwc/dat_mbtowc.c: Likewise.
2795 * localedata/tests-mbwc/dat_strcoll.c: Likewise.
2796 * localedata/tests-mbwc/dat_strfmon.c: Likewise.
2797 * localedata/tests-mbwc/dat_strxfrm.c: Likewise.
2798 * localedata/tests-mbwc/dat_swscanf.c: Likewise.
2799 * localedata/tests-mbwc/dat_towctrans.c: Likewise.
2800 * localedata/tests-mbwc/dat_towlower.c: Likewise.
2801 * localedata/tests-mbwc/dat_towupper.c: Likewise.
2802 * localedata/tests-mbwc/dat_wcrtomb.c: Likewise.
2803 * localedata/tests-mbwc/dat_wcscat.c: Likewise.
2804 * localedata/tests-mbwc/dat_wcschr.c: Likewise.
2805 * localedata/tests-mbwc/dat_wcscmp.c: Likewise.
2806 * localedata/tests-mbwc/dat_wcscoll.c: Likewise.
2807 * localedata/tests-mbwc/dat_wcscpy.c: Likewise.
2808 * localedata/tests-mbwc/dat_wcscspn.c: Likewise.
2809 * localedata/tests-mbwc/dat_wcslen.c: Likewise.
2810 * localedata/tests-mbwc/dat_wcsncat.c: Likewise.
2811 * localedata/tests-mbwc/dat_wcsncmp.c: Likewise.
2812 * localedata/tests-mbwc/dat_wcsncpy.c: Likewise.
2813 * localedata/tests-mbwc/dat_wcspbrk.c: Likewise.
2814 * localedata/tests-mbwc/dat_wcsrtombs.c: Likewise.
2815 * localedata/tests-mbwc/dat_wcsspn.c: Likewise.
2816 * localedata/tests-mbwc/dat_wcsstr.c: Likewise.
2817 * localedata/tests-mbwc/dat_wcstod.c: Likewise.
2818 * localedata/tests-mbwc/dat_wcstok.c: Likewise.
2819 * localedata/tests-mbwc/dat_wcstombs.c: Likewise.
2820 * localedata/tests-mbwc/dat_wcswidth.c: Likewise.
2821 * localedata/tests-mbwc/dat_wcsxfrm.c: Likewise.
2822 * localedata/tests-mbwc/dat_wctob.c: Likewise.
2823 * localedata/tests-mbwc/dat_wctomb.c: Likewise.
2824 * localedata/tests-mbwc/dat_wctrans.c: Likewise.
2825 * localedata/tests-mbwc/dat_wctype.c: Likewise.
2826 * localedata/tests-mbwc/dat_wcwidth.c: Likewise.
2827
2828 2003-01-03 Richard Henderson <rth@redhat.com>
2829
2830 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall_r0_asm): New.
2831 (inline_syscall_r0_constraint): New.
2832 (inline_syscall[0-6]): Use them.
2833
2834 2003-01-03 Jakub Jelinek <jakub@redhat.com>
2835
2836 * sysdeps/generic/ldsodefs.h (_dl_allocate_tls, _dl_deallocate_tls):
2837 Add rtld_hidden_proto.
2838 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Add rtld_hidden_def.
2839 (_dl_allocate_tls): Likewise. Remove INTDEF.
2840
2841 2002-07-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2842
2843 * sysdeps/sh/memcpy.S: Optimize. Based on a patch by Toshiyasu
2844 Morita <toshiyasu.morita@hsa.hitachi.com>.
2845 * sysdeps/sh/memcpy.S: Likewise.
2846
2847 2003-01-02 Ulrich Drepper <drepper@redhat.com>
2848
2849 * sysdeps/pthread/aio_suspend.c (aio_suspend): Don't quite remove
2850 any, but unify the test.
2851
2852 2003-01-02 Jakub Jelinek <jakub@redhat.com>
2853
2854 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction,
2855 sigaction): Protect weak_alias and libc_hidden_weak with
2856 #ifndef LIBC_SIGACTION.
2857 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction,
2858 sigaction): Likewise.
2859 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction,
2860 sigaction): Likewise.
2861 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction,
2862 sigaction): Likewise.
2863 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction,
2864 sigaction): Likewise.
2865 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction,
2866 sigaction): Likewise.
2867 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction,
2868 sigaction): Likewise.
2869 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction,
2870 sigaction): Likewise. Remove SIGCANCEL handling here.
2871 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction, sigaction):
2872 Likewise.
2873
2874 2003-01-02 Art Haas <ahaas@airmail.net>
2875
2876 * login/tst-utmp.c: Convert GCC extension initializer syntax to C99.
2877
2878 2003-01-02 Ulrich Drepper <drepper@redhat.com>
2879
2880 * posix/getconf.c: Update copyright year.
2881 * nss/getent.c: Likewise.
2882 * nscd/nscd_nischeck.c: Likewise.
2883 * iconv/iconvconfig.c: Likewise.
2884 * iconv/iconv_prog.c: Likewise.
2885 * elf/ldconfig.c: Likewise.
2886 * catgets/gencat.c: Likewise.
2887 * csu/version.c: Likewise.
2888 * elf/ldd.bash.in: Likewise.
2889 * elf/sprof.c (print_version): Likewise.
2890 * locale/programs/locale.c: Likewise.
2891 * locale/programs/localedef.c: Likewise.
2892 * nscd/nscd.c (print_version): Likewise.
2893 * debug/xtrace.sh: Likewise.
2894 * malloc/memusage.sh: Likewise.
2895 * malloc/mtrace.pl: Likewise.
2896
2897 2003-01-01 Jakub Jelinek <jakub@redhat.com>
2898
2899 * io/sys/stat.h: Include time.h with __need_timespec even if
2900 __USE_MISC is defined but __USE_XOPEN is not.
2901
2902 2003-01-01 Andreas Jaeger <aj@suse.de>
2903
2904 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Use union
2905 type to avoid strict aliasing problem.
2906 (_nss_dns_gethostbyname2_r): Likewise.
2907 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
2908 (_nss_dns_getnetbyname_r): Likewise.
2909 * resolv/gethnamaddr.c (_gethtent): Likewise.
2910 (gethostbyname2): Likewise.
2911
2912 2002-12-31 Ulrich Drepper <drepper@redhat.com>
2913
2914 * string/string-inlines.c: Define __memcpy_g and __strchr_g macros
2915 to avoid using the exported symbols. Define aliases with the
2916 original names separately.
2917
2918 * include/time.h: Add libc_hidden_proto for __strftime_l.
2919 * include/wchar.h: Add libc_hidden_proto for __wcsftime_l.
2920 * time/strftime.c: Always use libc_hidden_def if _LIBC.
2921
2922 * libio/libioP.h: Add libc_hidden_proto for _IO_file_open.
2923 * libio/fileops.c: Add libc_hidden_def for _IO_file_open.
2924
2925 * malloc/mtrace.c: Add libc_hidden_proto and libc_hidden_def for
2926 tr_break.
2927
2928 * csu/Makefile (routines): Add dso_handle.
2929 * csu/dso_handle.c: New file.
2930
2931 2002-12-31 Roland McGrath <roland@redhat.com>
2932
2933 * Makerules (compile.S, COMPILE.S): Remove -DASSEMBLER here.
2934 Use $(S-CPPFLAGS) in place of $(asm-CPPFLAGS).
2935 (S-CPPFLAGS): Add -DASSEMBLER here instead.
2936 (generate-md5, +make-deps): Fix magic to get $(S-CPPFLAGS).
2937
2938 2002-12-31 Ulrich Drepper <drepper@redhat.com>
2939
2940 * malloc/thread-m.h [SHARED] (thread_atfork): Assume __dso_handle
2941 is available.
2942
2943 2002-12-31 Andreas Jaeger <aj@suse.de>
2944
2945 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Sync
2946 with Linux kernel.
2947 * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
2948 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Likewise.
2949 * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Likewise.
2950
2951 * sysdeps/unix/sysv/linux/kernel_stat.h
2952 (_HAVE_STAT_NSEC,_HAVE_STAT_NSEC64): New.
2953
2954 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Re-add
2955 __unused[1-3] since they're needed by some platforms. Handle
2956 _HAVE_STAT_NSEC and _HAVE_STAT_NSEC64.
2957
2958 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Add nsec resolution
2959 for structs stat and stat64.
2960 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
2961 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
2962 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
2963 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
2964
2965 * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
2966
2967 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
2968 nsec resolution changes.
2969 (xstat64_conv): Likewise.
2970 (xstat32_conv): Likewise.
2971
2972 * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
2973 struct kernel_stat.
2974
2975 * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
2976 structs stat and stat64.
2977
2978 * time/time.h (__timespec_defined): Define for __USE_MISC.
2979
2980 2002-12-31 Ulrich Drepper <drepper@redhat.com>
2981
2982 * include/signal.h: Add libc_hidden_proto for __libc_current_sigrtmin
2983 and __libc_current_sigrtmax.
2984
2985 2002-12-31 Jakub Jelinek <jakub@redhat.com>
2986
2987 * include/errno.h (__errno_location): Add prototype.
2988 Use libc_hidden_proto unconditionally.
2989 * include/netdb.h (__h_errno_location): Use libc_hidden_proto
2990 unconditionally.
2991 * include/resolv.h (__res_state): Likewise.
2992
2993 * hurd/errno-loc.c (__errno_location): Add libc_hidden_def.
2994 * include/sys/socket.h (accept): Add libc_hidden_proto.
2995 * include/errno.h (__errno_location): Likewise.
2996 * include/netdb.h (__h_errno_location): Likewise.
2997 * include/resolv.h (__res_state): Likewise.
2998 * include/unistd.h (__lseek): Likewise.
2999 * sysdeps/generic/errno-loc.c (__errno_location): Add libc_hidden_def.
3000 * sysdeps/generic/herrno-loc.c (__h_errno_location): Likewise.
3001 * sysdeps/generic/res-state.c (__res_state): Likewise.
3002 * sysdeps/generic/accept.c (accept): Likewise.
3003 * sysdeps/generic/lseek.c (__lseek): Likewise.
3004 * sysdeps/generic/allocrtsig.c (__libc_current_sigrtmin,
3005 __libc_current_sigrtmax): Likewise.
3006 * sysdeps/mach/hurd/accept.c (accept): Likewise.
3007 * sysdeps/mach/hurd/lseek.c (__lseek): Likewise.
3008 * sysdeps/unix/sysv/aix/accept.c (accept): Likewise.
3009 * sysdeps/unix/sysv/aix/lseek.c (__lseek): Likewise.
3010 * sysdeps/unix/sysv/linux/accept.S (accept): Likewise.
3011 * sysdeps/unix/inet/syscalls.list (__GI_accept): New alias to accept.
3012 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI_accept): Likewise.
3013 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI_accept): Likewise.
3014 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___lseek): New
3015 alias to llseek.
3016 (__GI_accept): New alias to accept.
3017 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI_accept): Likewise.
3018 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___lseek):
3019 New alias to llseek.
3020 (__GI_accept): New alias to accept.
3021 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__GI_accept):
3022 Likewise.
3023 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI_accept):
3024 Likewise.
3025 * sysdeps/unix/syscalls.list (__GI___lseek): New alias to lseek.
3026
3027 * sysdeps/alpha/setjmp.S : Use libc_hidden_def(name) instead of
3028 strong_alias (name, __GI_name).
3029 * sysdeps/arm/bsd-_setjmp.S : Likewise.
3030 * sysdeps/hppa/bsd-_setjmp.S : Likewise.
3031 * sysdeps/i386/bsd-_setjmp.S : Likewise.
3032 * sysdeps/mips/mips64/bsd-_setjmp.S : Likewise.
3033 * sysdeps/mips/bsd-_setjmp.S : Likewise.
3034 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S : Likewise.
3035 * sysdeps/powerpc/powerpc64/setjmp.S : Likewise.
3036 * sysdeps/s390/s390-32/elf/setjmp.S : Likewise.
3037 * sysdeps/s390/s390-32/bsd-_setjmp.S : Likewise.
3038 * sysdeps/s390/s390-64/elf/setjmp.S : Likewise.
3039 * sysdeps/s390/s390-64/bsd-_setjmp.S : Likewise.
3040 * sysdeps/sh/bsd-_setjmp.S : Likewise.
3041 * sysdeps/sparc/sparc32/setjmp.S : Likewise.
3042 * sysdeps/unix/arm/fork.S : Likewise.
3043 * sysdeps/unix/bsd/hp/m68k/vfork.S : Likewise.
3044 * sysdeps/unix/bsd/i386/vfork.S : Likewise.
3045 * sysdeps/unix/bsd/osf/alpha/fork.S : Likewise.
3046 * sysdeps/unix/bsd/sun/m68k/vfork.S : Likewise.
3047 * sysdeps/unix/bsd/ultrix4/mips/vfork.S : Likewise.
3048 * sysdeps/unix/bsd/vax/vfork.S : Likewise.
3049 * sysdeps/unix/i386/fork.S : Likewise.
3050 * sysdeps/unix/mips/fork.S : Likewise.
3051 * sysdeps/unix/sparc/fork.S : Likewise.
3052 * sysdeps/unix/sparc/vfork.S : Likewise.
3053 * sysdeps/unix/sysv/linux/arm/vfork.S : Likewise.
3054 * sysdeps/unix/sysv/linux/cris/vfork.S : Likewise.
3055 * sysdeps/unix/sysv/linux/i386/vfork.S : Likewise.
3056 * sysdeps/unix/sysv/linux/ia64/fork.S : Likewise.
3057 * sysdeps/unix/sysv/linux/ia64/setjmp.S : Likewise.
3058 * sysdeps/unix/sysv/linux/ia64/vfork.S : Likewise.
3059 * sysdeps/unix/sysv/linux/m68k/vfork.S : Likewise.
3060 * sysdeps/unix/sysv/linux/sh/vfork.S : Likewise.
3061 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S : Likewise.
3062 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S : Likewise.
3063 * sysdeps/unix/sysv/linux/sparc/fork.S : Likewise.
3064 * sysdeps/unix/sysv/linux/sparc/vfork.S : Likewise.
3065 * sysdeps/unix/sysv/linux/x86_64/vfork.S : Likewise.
3066 * sysdeps/unix/fork.S : Likewise.
3067 * sysdeps/vax/bsd-_setjmp.S : Likewise.
3068 * sysdeps/x86_64/bsd-_setjmp.S : Likewise.
3069
3070 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Guard against multiple
3071 inclusion.
3072
3073 2002-12-31 Ulrich Drepper <drepper@redhat.com>
3074
3075 * include/unistd.h: Add libc_hidden_proto for __fork and __vfork.
3076 * sysdeps/generic/fork.c: Add libc_hidden_def for __fork.
3077 * sysdeps/mach/hurd/fork.c: Likewise.
3078 * sysdeps/unix/sysv/aix/fork.c: Likewise.
3079 * sysdeps/unix/fork.S: Add __GI___fork alias.
3080 * sysdeps/unix/arm/fork.S: Likewise.
3081 * sysdeps/unix/bsd/osf/alpha/fork.S: Likewise.
3082 * sysdeps/unix/i386/fork.S: Likewise.
3083 * sysdeps/unix/mips/fork.S: Likewise.
3084 * sysdeps/unix/sparc/fork.S: Likewise.
3085 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
3086 * sysdeps/unix/sysv/linux/sparc/fork.S: Likewise.
3087 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3088 * sysdeps/generic/vfork.c: Add libc_hidden_def for __vfork.
3089 * sysdeps/unix/bsd/hp/m68k/vfork.S: Add __GI___vfork alias.
3090 * sysdeps/unix/bsd/i386/vfork.S: Likewise.
3091 * sysdeps/unix/bsd/sun/m68k/vfork.S: Likewise.
3092 * sysdeps/unix/bsd/ultrix4/mips/vfork.S: Likewise.
3093 * sysdeps/unix/bsd/vax/vfork.S: Likewise.
3094 * sysdeps/unix/sparc/vfork.S: Likewise.
3095 * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
3096 * sysdeps/unix/sysv/linux/cris/vfork.S: Likewise.
3097 * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
3098 * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
3099 * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
3100 * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
3101 * sysdeps/unix/sysv/linux/sparc/vfork.S: Likewise.
3102 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
3103
3104 * include/time.h: Add libc_hidden_proto for __nanosleep.
3105 * sysdeps/generic/nanosleep.c: Add libc_hidden_def for __nanosleep.
3106 * sysdeps/mach/nanosleep.c: Likewise.
3107 * sysdeps/unix/sysv/aix/nanosleep.c: Likewise.
3108 * sysdeps/unix/sysv/linux/syscalls.list: Add __GI___nanosleep alias.
3109
3110 * libio/libioP.h: Add libc_hidden_proto for _IO_list_lock,
3111 _IO_list_unlock, and _IO_list_resetlock.
3112 * libio/genops.c: Add libc_hidden_def for _IO_list_lock,
3113 _IO_list_unlock, and _IO_list_resetlock.
3114
3115 * libio/libioP.h: Add libc_hidden_proto for _IO_iter_begin,
3116 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
3117 * libio/genops.c: Add libc_hidden_def for _IO_iter_begin,
3118 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
3119
3120 * include/setjmp.h: Add libc_hidden_proto for __libc_longjmp.
3121 * sysdeps/generic/longjmp.c: Add libc_hidden_def for __longjmp.
3122 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
3123 __GI___longjmp alias.
3124
3125 * include/setjmp.h: Add libc_hidden_proto for _setjmp.
3126 * sysdeps/alpha/setjmp.S: Add __GI__setjmp alias.
3127 * sysdeps/arm/bsd-_setjmp.S: Likewise.
3128 * sysdeps/generic/bsd-_setjmp.c: Likewise.
3129 * sysdeps/hppa/bsd-_setjmp.S: Likewise.
3130 * sysdeps/i386/bsd-_setjmp.S: Likewise.
3131 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
3132 * sysdeps/mips/bsd-_setjmp.S: Likewise.
3133 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
3134 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
3135 * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
3136 * sysdeps/s390/s390-32/bsd-_setjmp.S: Likewise.
3137 * sysdeps/s390/s390-32/elf/setjmp.S: Likewise.
3138 * sysdeps/s390/s390-64/bsd-_setjmp.S: Likewise.
3139 * sysdeps/s390/s390-64/elf/setjmp.S: Likewise.
3140 * sysdeps/sh/bsd-_setjmp.S: Likewise.
3141 * sysdeps/sparc/sparc32/setjmp.S: Likewise.
3142 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
3143 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
3144 * sysdeps/vax/bsd-_setjmp.S: Likewise.
3145 * sysdeps/x86_64/bsd-_setjmp.S: Likewise.
3146
3147 2002-12-30 Ulrich Drepper <drepper@redhat.com>
3148
3149 * malloc/thread-m.h (thread_atfork): Define using __register_atfork.
3150
3151 2002-12-30 Roland McGrath <roland@redhat.com>
3152
3153 * Rules (generated): Target removed.
3154 * mach/Makefile (generated): Define it here instead.
3155
3156 * math/Makefile (generated): Add m_*l and m_*f variants too.
3157
3158 2002-12-30 Ulrich Drepper <drepper@redhat.com>
3159
3160 * elf/dl-close.c (_dl_close): Handle relocation dependencies among
3161 the to-be-deleted objects right away instead of later separately.
3162 The latter fails because the scope data structures of the DSO
3163 might already be gone.
3164
3165 * elf/Makefile: Add rules to build and run reldep8 test.
3166 * elf/reldep8.c: New file.
3167 * elf/reldep8mod1.c: New file.
3168 * elf/reldep8mod2.c: New file.
3169 * elf/reldep8mod3.c: New file.
3170 Contributed by Jakub Jelinek.
3171
3172 2002-12-24 GOTO Masanori <gotom@debian.or.jp>
3173
3174 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
3175 checking of return value ENOSYS from getdents64.
3176
3177 2002-12-28 Andreas Schwab <schwab@suse.de>
3178
3179 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-cancel.d.
3180 ($(common-objpfx)s-%.d): Generalized from
3181 $(common-objpfx)s-proto.d rule.
3182 (common-generated): Add s-proto-cancel.d.
3183 * sysdeps/unix/make-syscalls.sh: Use s-proto-cancel.d for
3184 cancellable syscalls.
3185 * sysdeps/unix/s-proto-cancel.S: New file.
3186
3187 2002-12-29 Roland McGrath <roland@redhat.com>
3188
3189 * resolv/res_libc.c: Move _res defn magic after res_init defn
3190 so _res macro is in effect for that code.
3191
3192 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Fix sed
3193 pattern for prepending $(..) so it doesn't affect $(foo).
3194
3195 * math/Makefile (generated): Add $(addsuffix .c .S,$(calls:s_%=m_%)).
3196
3197 2002-12-29 Jakub Jelinek <jakub@redhat.com>
3198
3199 * elf/cache.c (add_to_cache): Don't loop forever with 1ULL << 63 set
3200 in hwcap.
3201
3202 2002-12-28 Ulrich Drepper <drepper@redhat.com>
3203
3204 * misc/sys/cdefs.h (__attribute_deprecated__): New #define.
3205
3206 2002-12-28 Andreas Jaeger <aj@suse.de>
3207
3208 * sysdeps/generic/readelflib.c (process_elf_file): Cast value to
3209 avoid warning.
3210 * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
3211
3212 2002-12-27 Jakub Jelinek <jakub@redhat.com>
3213
3214 * inet/herrno.c (__h_errno_location): Remove.
3215 * inet/Makefile (routines): Add herrno-loc.
3216 * resolv/res_libc.c (__res_state): Remove.
3217 * resolv/Makefile (routines): Add res-state.
3218 * sysdeps/generic/herrno-loc.c: New file.
3219 * sysdeps/generic/res-state.c: New file.
3220
3221 2002-12-27 Jakub Jelinek <jakub@redhat.com>
3222
3223 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
3224 Only define if USE_DL_SYSINFO is defined.
3225
3226 2002-12-22 Jakub Jelinek <jakub@redhat.com>
3227
3228 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INLINE_SYSCALL,
3229 INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERROR):
3230 Define. Patch by Richard Henderson and Jes Sorensen.
3231 (PSEUDO): Remove unnecessary ;;.
3232 * elf/rtld.c (dl_main): Initialize TLS even if no PT_TLS segments
3233 are found unless TLS_INIT_TP_EXPENSIVE. Use NONTLS_INIT_TP.
3234 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Use NONTLS_INIT_TP
3235 if not initializing thread pointer.
3236 [!USE_TLS && NONTLS_INIT_TP] (__pthread_initialize_minimal): New.
3237 * sysdeps/generic/libc-start.c (__pthread_initialize_minimal): Don't
3238 make it weak also if NONTLS_INIT_TP.
3239 * sysdeps/unix/common/pause.c: Handle cancellation.
3240 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h [DONT_LOAD_G1]
3241 (LOADSYSCALL): Remove.
3242 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
3243 (SYSCALL_ERROR_HANDLER): Use it.
3244 (PSEUDO): Don't jump around error handler.
3245 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__libc_pipe): Don't
3246 jump around error handler.
3247 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S (syscall): Likewise.
3248 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Branch
3249 to __syscall_error_handler on failure.
3250 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [DONT_LOAD_G1]
3251 (LOADSYSCALL): Remove.
3252 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
3253 (SYSCALL_ERROR_HANDLER): Use it.
3254 (PSEUDO): Don't jump around error handler.
3255 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__libc_pipe): Don't
3256 jump around error handler.
3257 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S (syscall): Likewise.
3258 * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S (__socket): Branch
3259 to __syscall_error_handler on failure.
3260
3261 2002-12-27 Roland McGrath <roland@redhat.com>
3262
3263 * scripts/gen-as-const.awk: New file.
3264 * Makefile (distribute): Add it.
3265 * Makerules ($(common-objpfx)%.h %.h.d: %.sym): New pattern rule.
3266 (before-compile): Add $(gen-as-const-headers:%.sym=$(common-objpfx)%.h)
3267 to the list.
3268 (+depfiles): Add $(addprefix $(common-objpfx),$(gen-as-const-headers)).
3269
3270 2002-12-27 Andreas Schwab <schwab@suse.de>
3271
3272 * sysdeps/unix/sysv/linux/m68k/socket.S: Add cancellation support.
3273
3274 2002-12-27 Jakub Jelinek <jakub@redhat.com>
3275
3276 * malloc/arena.c (ptmalloc_init): Don't call next_env_entry if
3277 _environ is NULL.
3278
3279 2002-12-27 Andreas Schwab <schwab@suse.de>
3280
3281 * Makerules ($(common-objpfx)%.make): Filter through
3282 $(sed-remove-objpfx).
3283
3284 2002-12-23 Roland McGrath <roland@redhat.com>
3285
3286 * scripts/abilist.awk: Produce a more compact format, divided into
3287 stanzas for each version set, the set name listed only once.
3288 * scripts/extract-abilist.awk: New file.
3289 * scripts/merge-abilist.awk: New file.
3290 * Makerules (check-abi-%, update-abi-%): New pattern rules.
3291 (update-abi, check-abi): New targets.
3292 * Makefile (+subdir_targets): Add subdir_{check,update}-abi.
3293
3294 2002-12-19 Roland McGrath <roland@redhat.com>
3295
3296 * Makerules (%.symlist): Use LC_ALL=C when running awk script.
3297
3298 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Cast result of
3299 INTERNAL_SYSCALL.
3300
3301 2002-12-21 Andreas Schwab <schwab@suse.de>
3302
3303 * elf/check-textrel.c (handle_file): Swap p_type.
3304
3305 2002-12-21 Andreas Schwab <schwab@suse.de>
3306
3307 * sysdeps/unix/sysv/linux/m68k/sysdep.h (INTERNAL_SYSCALL): Define.
3308 (INLINE_SYSCALL): Use it.
3309 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
3310 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
3311
3312 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Use INTERNAL_SYSCALL.
3313 * sysdeps/unix/sysv/linux/m68k/brk.c: Likewise.
3314
3315 2002-12-20 Art Haas <ahaas@airmail.net>
3316
3317 * sysdeps/gnu/siglist.c: Convert GCC extension initializer
3318 syntax to C99.
3319
3320 2002-12-21 Philip Blundell <philb@gnu.org>
3321
3322 * sysdeps/arm/elf/start.S (_start): Optimise a little. Push stack
3323 top as seventh arg to __libc_start_main.
3324 Reported by paulnash@wildseed.com.
3325
3326 * sysdeps/unix/sysv/linux/arm/clone.S: Small optimisation.
3327
3328 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Elide
3329 compatibility cruft when new enough kernel is assumed.
3330
3331 2002-12-20 Jakub Jelinek <jakub@redhat.com>
3332
3333 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use INTERNAL_SYSCALL
3334 instead of INLINE_SYSCALL.
3335
3336 2002-12-20 Ulrich Drepper <drepper@redhat.com>
3337
3338 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Fix
3339 typo.
3340
3341 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Define SHM_HUGETLB.
3342 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
3343 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Likewise.
3344 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
3345 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
3346 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
3347 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
3348 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
3349 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
3350 Patch by William Lee Irwin <wli@holomorphy.com>.
3351
3352 2002-12-20 Andreas Schwab <schwab@suse.de>
3353
3354 * locale/programs/ld-measurement.c (measurement_output): Fix
3355 index calculation.
3356
3357 2002-12-20 Ulrich Drepper <drepper@redhat.com>
3358
3359 * include/libio.h [_IO_MTSAFE_IO && _IO_lock_inexpensive]:
3360 Redefine _IO_flockifle and _IO_funlockfile as inlines.
3361
3362 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): For TLS
3363 builds add "tls" in the search path.
3364 * elf/ldconfig.c (is_hwcap_platform): Also recognize "tls".
3365 (path_hwcap): Recognize "tls".
3366
3367 2002-12-19 Ulrich Drepper <drepper@redhat.com>
3368
3369 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Use
3370 __waitpid instead of waitpid.
3371
3372 * sysdeps/unix/sysv/linux/i386/_exit.S: Use ENTER_KERNEL instead of
3373 int $0x80.
3374 * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
3375 * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
3376 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
3377
3378 * sysdeps/unix/sysv/linux/i386/sysdep.h: Add support to use AT_SYSINFO
3379 information for system calls.
3380
3381 * sysdeps/generic/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO to 1 only
3382 for ld.so.
3383
3384 * elf/rtld.c (_dl_start) [USE___THREAD]: Define initdtv.
3385
3386 2002-12-19 Roland McGrath <roland@redhat.com>
3387
3388 * iconvdata/ibm856.h: Convert GCC extension initializer syntax to C99.
3389 * iconvdata/ibm922.h: Likewise.
3390 * iconvdata/ibm930.h: Likewise.
3391 * iconvdata/ibm932.h: Likewise.
3392 * iconvdata/ibm933.h: Likewise.
3393 * iconvdata/ibm935.h: Likewise.
3394 * iconvdata/ibm937.h: Likewise.
3395 * iconvdata/ibm939.h: Likewise.
3396 * iconvdata/ibm943.h: Likewise.
3397 * iconvdata/isiri-3342.h: Likewise.
3398
3399 2002-12-19 Ulrich Drepper <drepper@redhat.com>
3400
3401 * test-skeleton.c (main): Make sure correct value is seen as
3402 argv[0] after adjustment of argv, and argc.
3403
3404 * elf/rtld.c: Don't initialize _dl_dynamic_weak to 1 if
3405 RTLD_CORRECT_DYNAMIC_WEAK is defined.
3406
3407 2002-12-19 Jakub Jelinek <jakub@redhat.com>
3408
3409 * nscd/connections.c (nscd_run): Shut up warning.
3410 * tst-ungetc.c (assert): Undefined before redefining.
3411
3412 2002-12-19 Ulrich Drepper <drepper@redhat.com>
3413
3414 * posix/regex.c: Use __builtin_expect even outside glibc if gcc 3
3415 is used.
3416
3417 2002-12-17 Art Haas <ahaas@airmail.net>
3418
3419 * iconvdata/cp737.h: Convert GCC extension initializer syntax to C99.
3420 * iconvdata/cp775.h: Likewise.
3421 * iconvdata/ibm1046.h: Likewise.
3422 * iconvdata/ibm1124.h: Likewise.
3423 * iconvdata/ibm1129.h: Likewise.
3424 * iconvdata/ibm1132.h: Likewise.
3425 * iconvdata/ibm1133.h: Likewise.
3426 * iconvdata/ibm1160.h: Likewise.
3427 * iconvdata/ibm1161.h: Likewise.
3428 * iconvdata/ibm1162.h: Likewise.
3429 * iconvdata/ibm1163.h: Likewise.
3430 * iconvdata/ibm1164.h: Likewise.
3431
3432 2002-12-19 Ulrich Drepper <drepper@redhat.com>
3433
3434 * sysdeps/unix/sysv/linux/i386/system.c: Define FORK only if
3435 __ASSUME_CLONE_THREAD_FLAGS is defined.
3436 * sysdeps/unix/sysv/linux/kernel-features.h
3437 (__ASSUME_CLONE_THREAD_FLAGS): Define for x86 and kernel >= 2.5.50.
3438
3439 2002-12-18 Ulrich Drepper <drepper@redhat.com>
3440
3441 * sysdeps/unix/sysv/linux/i386/brk.c: Use INTERNAL_SYSCALL instead
3442 of asm.
3443 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
3444
3445 * elf/dl-support.c [NEED_DL_SYSINFO]: Define and initialize
3446 _dl_sysinfo.
3447 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
3448 code.
3449 * elf/rtld.c [DL_NEED_SYSINFO]: Initialize _dl_sysinfo element of
3450 _rtld_global.
3451 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
3452 code.
3453 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
3454 Check for AT_SYSINFO and set _dl_sysinfo appropriately.
3455 * sysdeps/generic/ldsodefs.h (struct rtld_global) [NEED_DL_SYSINFO]:
3456 Add _dl_sysinfo.
3457
3458 2002-12-18 Jakub Jelinek <jakub@redhat.com>
3459
3460 * misc/Versions [libc: GLIBC_2.3.1]: Move __libc_readv and
3461 __libc_writev to...
3462 [libc: GLIBC_PRIVATE]: ...here.
3463 * sysvipc/Versions [libc: GLIBC_2.3.1]: Move __libc_msgrcv and
3464 __libc_msgsnd to...
3465 [libc: GLIBC_PRIVATE]: ...here.
3466
3467 2002-12-18 Ulrich Drepper <drepper@redhat.com>
3468
3469 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define ENTER_KERNEL macro.
3470 Use it instead of directly int $0x80.
3471 * sysdeps/unix/sysv/linux/i386/brk.c: Use ENTER_KERNEL.
3472 * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
3473 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
3474 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
3475 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
3476 * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
3477
3478 2002-12-17 Ulrich Drepper <drepper@redhat.com>
3479
3480 * malloc/malloc.c (mALLOPt): Make sure malloc is initialized.
3481
3482 * elf/elf.h (AT_SYSINFO): New define.
3483 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add support for
3484 AT_SYSINFO.
3485
3486 2002-12-17 Jakub Jelinek <jakub@redhat.com>
3487
3488 * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgrcv, msgsnd):
3489 Make cancelable.
3490 * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgrcv, msgsnd):
3491 Likewise.
3492 * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgrcv, msgsnd):
3493 Likewise.
3494 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgrcv, msgsnd):
3495 Likewise.
3496 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgrcv, msgsnd):
3497 Likewise.
3498 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend): Likewise.
3499
3500 * malloc/thread-m.h (mutex_init, mutex_lock, mutex_trylock,
3501 mutex_unlock): If not building NPTL, use __libc_maybe_call2 if
3502 available, otherwise __libc_maybe_call.
3503 * sysdeps/unix/sysv/linux/x86_64/recv.c: Add support for
3504 cancellation handling.
3505 * sysdeps/unix/sysv/linux/x86_64/send.c: Likewise.
3506
3507 2002-12-17 Isamu Hasegawa <isamu@yamato.ibm.com>
3508
3509 * posix/regcomp.c (free_workarea_compile): Free the new member
3510 ORG_INDICES.
3511 (analyze): Initialize ORG_INDICES.
3512 (duplicate_node_closure): Search for a existing node, which is
3513 duplicated from the node ORG_DEST and satisfies the constraint
3514 CONSTRAINT. And use it to avoid inifimite loop.
3515 (search_duplicated_node): New function.
3516 (duplicate_node): Store the index of the original node.
3517 * posix/regex_internal.c (re_dfa_add_node): Realloc ORG_INDICES
3518 if needed.
3519 * posix/regex_internal.h (re_dfa_t): Add new members.
3520
3521 2002-12-17 Ulrich Drepper <drepper@redhat.com>
3522
3523 * stdio-common/tst-fdopen.c: Undefine assert before redefining it.
3524
3525 2002-12-16 Ulrich Drepper <drepper@redhat.com>
3526
3527 * sysdeps/posix/system.c (do_system): Add support for installation
3528 of cancellation handlers.
3529 * sysdeps/unix/sysv/linux/i386/system.c: New file.
3530
3531 * stdlib/Makefile (tests): Add tst-system.
3532 * stdlib/tst-system.c: New file.
3533
3534 * sysdeps/unix/sysv/linux/i386/socket.S [NEED_CANCELLATION &&
3535 CENABLE]: Don't lose content of %ebx.
3536
3537 2002-12-17 Jakub Jelinek <jakub@redhat.com>
3538
3539 * sysdeps/unix/sysv/linux/i386/socket.S: Use SINGLE_THREAD_P
3540 macro instead of comparing %gs:MULTIPLE_THREADS_OFFSET directly.
3541
3542 2002-12-16 Ulrich Drepper <drepper@redhat.com>
3543
3544 * sysdeps/posix/getaddrinfo.c (gaih_inet): If __nss_lookup_function
3545 fails to return a function pointer don't use it.
3546
3547 2002-12-16 Art Haas <ahaas@airmail.net>
3548
3549 * io/ftw.c: Convert GCC extension initializer syntax to C99.
3550 * iconvdata/iso-ir-165.c: Likewise.
3551 * iconvdata/jis0208.c: Likewise.
3552 * iconvdata/jis0212.c: Likewise.
3553
3554 2002-12-16 Ulrich Drepper <drepper@redhat.com>
3555
3556 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create,
3557 epoll_ctl, and epoll_wait.
3558 * sysdeps/unix/sysv/linux/Versions [libc: GLIBC_2.3.2]: Add
3559 epoll_create, epoll_ctl, and epoll_wait.
3560 * sysdeps/unix/sysv/linux/sys/epoll.h: New file. Written by
3561 Davide Libenzi <davidel@xmailserver.org>.
3562 * sysdeps/unix/sysv/linux/Dist: Add sys/epoll.h.
3563 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
3564 Add sys/epoll.h.
3565
3566 2002-12-16 Art Haas <ahaas@airmail.net>
3567
3568 * sysdeps/generic/bp-semctl.h: Convert GCC extension initializer
3569 syntax to C99
3570 * sysdeps/unix/sysv/aix/settimer.c: Likewise.
3571 * sysdeps/unix/sysv/aix/sleep.c: Likewise.
3572 * sysdeps/unix/sysv/aix/usleep.c: Likewise.
3573
3574 2002-12-16 Ulrich Drepper <drepper@redhat.com>
3575
3576 * stdio-common/Makefile (routines): Remove lockfile. Add
3577 flockfile, ftrylockfile, and funlockfile.
3578 * sysdeps/generic/lockfile.c: Removed. Each function has its own file.
3579 * sysdeps/generic/flockfile.c: New file.
3580 * sysdeps/generic/ftrylockfile.c: New file.
3581 * sysdeps/generic/funlockfile.c: New file.
3582
3583 2002-12-16 Jakub Jelinek <jakub@redhat.com>
3584
3585 * sysdeps/unix/sysv/linux/i386/socket.S: Use CENABLE and CDISABLE
3586 macros instead of doing the calls directly.
3587 * sysdeps/unix/make-syscalls.sh: Add ptw-*.$o target name to rules.
3588 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for ptw-%
3589 targets.
3590
3591 2002-12-16 Jakub Jelinek <jakub@redhat.com>
3592
3593 * sysdeps/i386/fpu/bits/mathinline.h: Backout last change.
3594 * sysdeps/ieee754/bits/nan.h: Likewise.
3595
3596 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__syscall_open,
3597 __syscall_wait4, __syscall_ioctl, __syscall_write): Add.
3598
3599 2002-12-16 Roland McGrath <roland@redhat.com>
3600
3601 * sunrpc/xdr_mem.c (xdrmem_inline): Fix argument type.
3602 * sunrpc/xdr_rec.c (xdrrec_inline): Likewise.
3603 * sunrpc/xdr_stdio.c (xdrstdio_inline): Likewise.
3604
3605 * sysdeps/unix/sysv/linux/syscalls.list: Add getpmsg, putpmsg.
3606 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove s_getpmsg,
3607 s_putpmsg.
3608 * sysdeps/unix/sysv/linux/i386/getpmsg.c: File removed.
3609 * sysdeps/unix/sysv/linux/i386/putpmsg.c: File removed.
3610 * sysdeps/unix/sysv/linux/m68k/getpmsg.c: File removed.
3611 * sysdeps/unix/sysv/linux/m68k/putpmsg.c: File removed.
3612 * sysdeps/unix/sysv/linux/mips/getpmsg.c: File removed.
3613 * sysdeps/unix/sysv/linux/mips/putpmsg.c: File removed.
3614 * sysdeps/unix/sysv/linux/powerpc/getpmsg.c: File removed.
3615 * sysdeps/unix/sysv/linux/powerpc/putpmsg.c: File removed.
3616
3617 2002-12-13 Paul Eggert <eggert@twinsun.com>
3618
3619 * sunrpc/rpc/xdr.h (struct XDR.xdr_ops.x_inline): 2nd arg
3620 is now u_int, not int.
3621 (struct XDR.x_handy): Now u_int, not int.
3622 * sunrpc/xdr_mem.c: Include <limits.h>.
3623 (xdrmem_getlong, xdrmem_putlong, xdrmem_getbytes, xdrmem_putbytes,
3624 xdrmem_inline, xdrmem_getint32, xdrmem_putint32):
3625 x_handy is now unsigned, not signed.
3626 Do not decrement x_handy if no change is made.
3627 (xdrmem_setpos): Check for int overflow.
3628 * sunrpc/xdr_sizeof.c (x_inline): 2nd arg is now unsigned.
3629 (xdr_sizeof): Remove cast that is now unnecessary, now that
3630 x_handy is unsigned.
3631
3632 2002-12-15 Art Haas <ahaas@airmail.net>
3633
3634 * iconv/gconv_conf.c: Convert GCC extension initializer syntax to C99.
3635 * iconvdata/gap.awk: Likewise.
3636 * iconvdata/gen-8bit-gap-1.sh: Likewise.
3637 * iconvdata/gen-8bit-gap.sh: Likewise.
3638 * locale/C-address.c: Likewise.
3639 * locale/C-collate.c: Likewise.
3640 * locale/C-ctype.c: Likewise.
3641 * locale/C-identification.c: Likewise.
3642 * locale/C-measurement.c: Likewise.
3643 * locale/C-messages.c: Likewise.
3644 * locale/C-monetary.c: Likewise.
3645 * locale/C-name.c: Likewise.
3646 * locale/C-numeric.c: Likewise.
3647 * locale/C-paper.c: Likewise.
3648 * locale/C-telephone.c: Likewise.
3649 * locale/C-time.c: Likewise.
3650 * nscd/connections.c: Likewise.
3651 * nscd/grpcache.c: Likewise.
3652 * nscd/hstcache.c: Likewise.
3653 * nscd/pwdcache.c: Likewise.
3654 * stdio-common/vfprintf.c: Likewise.
3655 * stdlib/random.c: Likewise.
3656 * sysdeps/generic/siglist.c: Likewise.
3657 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
3658 * sysdeps/ieee754/bits/nan.h: Likewise.
3659 * sysdeps/posix/sprofil.c: Likewise.
3660 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
3661 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
3662 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
3663
3664 2002-12-15 Roland McGrath <roland@redhat.com>
3665
3666 * sysdeps/unix/sysv/linux/readv.c (do_readv): Use prototype defn.
3667
3668 * sysdeps/unix/sysv/linux/wait.c: Don't include <nptl/pthreadP.h> or
3669 <tls.h> here, no need for it.
3670 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
3671
3672 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): Take ARG as void *
3673 parameter, not varargs parameter.
3674
3675 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_RESET): Evaluate the
3676 argument so it's not an unused variable.
3677
3678 * resolv/resolv.h (__p_key_syms, __p_cert_syms, __p_class_syms,
3679 __p_type_syms, __p_rcode_syms): Remove decls, never really intended
3680 for users.
3681
3682 * resolv/Versions (libresolv: GLIBC_2.3.2): New set, add __p_rcode.
3683
3684 2002-12-15 Ulrich Drepper <drepper@redhat.com>
3685
3686 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): This is the
3687 original __libc_fcntl code. Just renamed.
3688
3689 2002-12-15 Andreas Schwab <schwab@suse.de>
3690
3691 * sysdeps/unix/sysv/linux/m68k/clone.S: Make inline syscall to _exit.
3692
3693 2002-12-14 Olaf Hering <olh@suse.de>
3694
3695 * sysdeps/powerpc/bits/setjmp.h: Include <bits/wordsize.h>.
3696 * sysdeps/powerpc/powerpc64/setjmp.S: Fix typo in r18 load.
3697
3698 2002-12-15 Ulrich Drepper <drepper@redhat.com>
3699
3700 * sysdeps/unix/sysv/linux/libc_fatal.c: New file.
3701
3702 * sysdeps/generic/sysdep-cancel.h: Add dummy definitions for
3703 SINGLE_THREAD_P, LIBC_CANCEL_ASYNC, and LIBC_CANCEL_RESET.
3704
3705 * sysdeps/unix/sysv/linux/open64.c: New file.
3706
3707 * sysdeps/generic/pselect.c: Add support for cancellation handling.
3708 * sysdeps/posix/open64.c: Likewise.
3709 * sysdeps/posix/sigpause.c: Likewise.
3710 * sysdeps/posix/sigwait.c: Likewise.
3711 * sysdeps/posix/system.c: Likewise.
3712 * sysdeps/posix/waitid.c: Likewise.
3713 * sysdeps/unix/sysv/linux/accept.S: Likewise.
3714 * sysdeps/unix/sysv/linux/connect.S: Likewise.
3715 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
3716 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
3717 * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
3718 * sysdeps/unix/sysv/linux/poll.c: Likewise.
3719 * sysdeps/unix/sysv/linux/pread.c: Likewise.
3720 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
3721 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
3722 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
3723 * sysdeps/unix/sysv/linux/readv.c: Likewise.
3724 * sysdeps/unix/sysv/linux/recv.S: Likewise.
3725 * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
3726 * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
3727 * sysdeps/unix/sysv/linux/send.S: Likewise.
3728 * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
3729 * sysdeps/unix/sysv/linux/sendto.S: Likewise.
3730 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
3731 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
3732 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
3733 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
3734 * sysdeps/unix/sysv/linux/tcdrain.c: Likewise.
3735 * sysdeps/unix/sysv/linux/wait.c: Likewise.
3736 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
3737 * sysdeps/unix/sysv/linux/writev.c: Likewise.
3738 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
3739 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
3740
3741 2002-12-14 Jakub Jelinek <jakub@redhat.com>
3742
3743 * sysdeps/generic/sysdep-cancel.h: New file.
3744 * sysdeps/unix/make-syscalls.sh: Handle C at start of args as
3745 cancelable syscall.
3746 * sysdeps/unix/inet/syscalls.list (accept, connect, recv, recvfrom,
3747 recvmsg, send, sendmsg, sendto): Make cancelable.
3748 * sysdeps/unix/mman/syscalls.list (msync): Likewise.
3749 * sysdeps/unix/sysv/linux/alpha/syscalls.list (llseek, pread,
3750 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
3751 sendto, osf_select): Likewise.
3752 * sysdeps/unix/sysv/linux/hppa/syscalls.list (accept, connect, recv,
3753 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
3754 * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek, pread,
3755 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
3756 sendto): Likewise.
3757 * sysdeps/unix/sysv/linux/mips/syscalls.list (accept, connect, recv,
3758 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
3759 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, pread,
3760 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
3761 sendto): Likewise.
3762 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (llseek, pread,
3763 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
3764 sendto, select): Likewise.
3765 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (llseek, pread,
3766 pwrite, accept, connect, recvfrom, recvmsg, sendmsg, sendto):
3767 Likewise.
3768 * sysdeps/unix/sysv/linux/syscalls.list (creat, nanosleep, pause,
3769 select, fcntl): Likewise.
3770 * sysdeps/unix/sysv/syscalls.list (pause, poll): Likewise.
3771 * sysdeps/unix/syscalls.list (close, fcntl, fsync, lseek, open,
3772 read, readv, select, sigsuspend, write, writev): Likewise.
3773
3774 2002-12-14 Jakub Jelinek <jakub@redhat.com>
3775
3776 * dirent/bug-readdir1.c: Include unistd.h.
3777
3778 2002-12-13 Jakub Jelinek <jakub@redhat.com>
3779
3780 * locale/programs/locale.c: Include locarchive.h.
3781 (ARCHIVE_NAME): Define.
3782 (write_archive_locales): New function.
3783 (write_locales): Use it. Ensure the same locale is not printed
3784 multiple times in verbose mode.
3785 Mode LC_IDENTIFICATION and LC_CTYPE printing into...
3786 (print_LC_IDENTIFICATION, print_LC_CTYPE): ... these helper
3787 functions.
3788 (struct nameent): New type.
3789 (nameentcmp): New function.
3790
3791 2002-12-14 Jakub Jelinek <jakub@redhat.com>
3792
3793 * posix/regex_internal.c (re_string_context_at): Guard wide char
3794 code with #ifdef RE_ENABLE_I18N.
3795
3796 2002-11-22 Paolo Bonzini <bonzini@gnu.org>
3797
3798 * posix/regcomp.c (regcomp): __re_compile_fastmap -> re_compile_fastmap
3799
3800 2002-12-13 Roland McGrath <roland@redhat.com>
3801
3802 * posix/bug-regex15.c: New file.
3803 * posix/Makefile (tests): Add it.
3804
3805 * test-skeleton.c (TEST_DATA_LIMIT): New macro, default to 64MB.
3806 (main): Set RLIMIT_DATA limit to TEST_DATA_LIMIT (or lower if need be).
3807
3808 2002-12-13 Ulrich Drepper <drepper@redhat.com>
3809
3810 * elf/dl-misc.c (_dl_debug_vdprintf): Don't depend on 5-digit PIDs.
3811
3812 * misc/syslog.c (log_cleanup): Don't use parameter in
3813 __libc_lock_unlock call, use syslog_lock directly. Adjust callers to
3814 pass NULL instead of a pointer to syslog_lock.
3815
3816 2002-12-12 Ulrich Drepper <drepper@redhat.com>
3817
3818 * iconvdata/Makefile: iconv-rules: Add definition to use gconv.map
3819 linker map for all iconv modules.
3820 (distribute): Add gconv.map.
3821 * iconvdata/gconv.map: New file.
3822
3823 * elf/Makefile: Also check all iconv modules for text relocations.
3824
3825 * stdlib/Makefile: Remove code to automatically import GMP.
3826
3827 * elf/Makefile (tests): Add rules to build and run check-textrel.
3828 * elf/check-textrel.c: New file.
3829
3830 * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Add .size
3831 directive.
3832
3833 2002-12-11 Jakub Jelinek <jakub@redhat.com>
3834
3835 * io/test-utime (main): If stnow.st[am]time is wrong, print it and
3836 not st.st[am]time.
3837
3838 2002-04-30 Bruno Haible <bruno@clisp.org>
3839
3840 * intl/loadmsgcat.c (_nl_init_domain_conv): Don't append //TRANSLIT to
3841 the encoding if it already has slashes.
3842 Reported by Perry Rapp <prapp@erols.com>.
3843
3844 2002-12-11 Roland McGrath <roland@redhat.com>
3845
3846 * csu/Makefile ($(objpfx)elf-init.oS): Remove target, braino.
3847 (CPPFLAGS-elf-init.oS, CFLAGS-elf-init.oS): New variables.
3848 Turn off PIC for compiling this file.
3849
3850 2002-12-11 Ulrich Drepper <drepper@redhat.com>
3851
3852 * malloc/thread-m.h: Remove thread_id type and MUTEX_INITIALIZER
3853 definitions. Not needed.
3854 [_LIBC]: Use definitions from libc-lock.h instead of referencing
3855 pthread routines directly.
3856 * malloc/arena.c (ptmalloc_unlock_all2): Don't add (void) to
3857 mutex_init calls.
3858 (arena_get2): Don't look at return value of mutex_lock.
3859
3860 2002-12-11 Roland McGrath <roland@redhat.com>
3861
3862 * csu/Makefile ($(objpfx)elf-init.oS): New target, just clone
3863 elf-init.o instead of compiling a PIC version.
3864
3865 2002-12-11 Bruno Haible <bruno@clisp.org>
3866
3867 * intl/gettext.h: Renamed to ...
3868 * intl/gmo.h: ... here.
3869 * intl/Makefile (distribute): Add gmo.h, remove gettext.h.
3870 * intl/gettextP.h: Update.
3871 * intl/loadmsgcat.c: Update.
3872
3873 * intl/gettextP.h (PARAMS): Make more portable.
3874 (attribute_hidden): Define as empty macro if not already defined.
3875 * intl/hash-string.h (PARAMS): Make more portable.
3876 * intl/loadinfo.h (PARAMS): Likewise.
3877 * intl/plural-exp.h (PARAMS): Likewise.
3878 (attribute_hidden): Move definition near the definition of
3879 internal_function.
3880
3881 * intl/gettextP.h (_nl_locale_name) [!_LIBC]: New declaration.
3882 * intl/plural-exp.h (plural_eval) [!_LIBC]: New declaration.
3883
3884 2002-07-13 Bruno Haible <bruno@clisp.org>
3885
3886 * intl/dcigettext.c (freea): New macro.
3887 (FREE_BLOCKS): Free also the registered blocks.
3888 (DCIGETTEXT): Free the 'search' variable.
3889 Reported by Andreas Fischer <a.fischer@asentics.de>.
3890
3891 2002-04-27 Bruno Haible <bruno@clisp.org>
3892
3893 * intl/gettextP.h [! _LIBC]: Use prefix libintl_ instead of suffix __.
3894 * intl/dcigettext.c: Likewise.
3895 * intl/dcgettext.c: Likewise.
3896 * intl/dgettext.c: Likewise.
3897 * intl/gettext.c: Likewise.
3898 * intl/dcngettext.c: Likewise.
3899 * intl/dngettext.c: Likewise.
3900 * intl/ngettext.c: Likewise.
3901 * intl/textdomain.c: Likewise.
3902 * intl/bindtextdom.c: Likewise.
3903 * intl/plural-exp.h: Likewise.
3904
3905 2002-01-02 Bruno Haible <bruno@clisp.org>
3906
3907 * intl/loadmsgcat.c (_nl_init_domain_conv): Use PARAMS in extern decl.
3908
3909 2001-04-30 Bruno Haible <bruno@clisp.org>
3910
3911 * intl/dcigettext.c (getuid, getgid, geteuid, getegid): Provide
3912 default macro definitions. Needed for mingw32.
3913
3914 2002-12-10 Ulrich Drepper <drepper@redhat.com>
3915
3916 * sysdeps/i386/bits/byteswap.h (__bswap_64): Apply
3917 __builtin_constant_p to macro parameter.
3918
3919 * sysdeps/generic/sigpause.c: Define all functions as weak.
3920 * sysdeps/posix/sigpause.c: Likewise.
3921
3922 * elf/tst-tls7.c (do_test): Adjustments for l_tls_modid being of
3923 type size_t.
3924
3925 2002-12-10 Jakub Jelinek <jakub@redhat.com>
3926
3927 * elf/tst-array1.c (preinit_array, init_array, fini_array):
3928 Explicitly align the array to sizeof (void *).
3929 * elf/tst-array2dep.c (init_array, fini_array): Likewise.
3930
3931 * include/libc-symbols.h: Fix a comment typo.
3932
3933 * sysdeps/unix/sysv/linux/alpha/select.S (__libc_select): New alias.
3934 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__libc_sigsuspend):
3935 Likewise.
3936 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__libc_sigsuspend):
3937 Likewise.
3938 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c
3939 (__libc_sigsuspend): Likewise.
3940 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c
3941 (__libc_sigsuspend): Likewise.
3942 * sysdeps/generic/creat.c (__libc_creat): Renamed from creat.
3943 (creat): New weak alias.
3944
3945 2002-12-10 Roland McGrath <roland@redhat.com>
3946
3947 * manual/libc-texinfo.sh: Emit @set ADD-ON for each ADD-ON that
3948 contributes a manual chapter.
3949 * manual/signal.texi (Process Signal Mask): Use @ifset linuxthreads
3950 around xref to it.
3951
3952 * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Refer to
3953 and move contents to ...
3954 (EXTRA_LD_ENVVARS_LINUX): ... this new macro. Add break for nonmatch.
3955 * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS): Use
3956 it instead of duplicating its contents.
3957 (EXTRA_LD_ENVVARS): Likewise. Add break for nonmatch.
3958
3959 2002-12-09 Jakub Jelinek <jakub@redhat.com>
3960
3961 * elf/dl-support.c (_dl_non_dynamic_init): Add DL_OSVERSION_INIT if
3962 defined.
3963 * sysdeps/unix/sysv/linux/dl-librecon.h (_dl_osversion_init): New
3964 function.
3965 (EXTRA_LD_ENVVARS): Use it.
3966 (DL_OSVERSION_INIT): Define.
3967 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Include linux
3968 dl-librecon.h.
3969 (EXTRA_LD_ENVVARS): Undef before defining. Use _dl_osversion_init.
3970
3971 2002-12-10 Ulrich Drepper <drepper@redhat.com>
3972
3973 * Versions.def: No new symbols in 2.3.1, but some new ones in 2.3.2.
3974
3975 * sysdeps/unix/closedir.c (__closedir): Remove __libc_lock_lock
3976 call. It is not allowed to destroy pthread mutexes which are
3977 still in use even though it is safe for our implementations. If
3978 somebody still uses the descriptor it is a bug.
3979
3980 2002-12-09 Richard Henderson <rth@redhat.com>
3981
3982 * csu/abi-note.S: Use .p2align, not .align.
3983
3984 2002-12-09 Ulrich Drepper <drepper@redhat.com>
3985
3986 * sysdeps/unix/sysv/linux/syscalls.list: Add __libc_creat and
3987 __libc_select aliases.
3988
3989 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Define __libc_sigwaitinfo
3990 alias.
3991
3992 * sysdeps/unix/sysv/linux/sigwait.c: Define __libc_sigwait alias.
3993
3994 * sysdeps/unix/sysv/linux/sigsuspend.c: Define __libc_sigsuspend alias.
3995
3996 * sysdeps/unix/sysv/linux/poll.c: Define __libc_poll alias.
3997
3998 * sysdeps/unix/syscalls.list: Define __libc_select alias.
3999
4000 * sysdeps/posix/waitid.c: Define __libc_waitid alias.
4001
4002 * sysdeps/posix/sigpause.c: Define __libc_sigpause and
4003 __libc___xpg_sigpause aliases.
4004
4005 * sysdeps/generic/pselect.c: Define __libc_pselect alias.
4006
4007 * misc/error.c: Remove use of USE_IN_LIBIO.
4008
4009 2002-12-08 Roland McGrath <roland@redhat.com>
4010
4011 * elf/Makefile (tests): Uncomment tst-array[123].
4012 * Makeconfig (CPPFLAGS-.oS): Add -DLIBC_NONSHARED=1.
4013 * csu/elf-init.c: New file.
4014 * csu/Makefile (routines, static-only-routines): Add elf-init.
4015 * sysdeps/alpha/elf/start.S: Use __libc_csu_init in place of _init
4016 and __libc_csu_fini in place of _fini.
4017 * sysdeps/arm/elf/start.S: Likewise.
4018 * sysdeps/cris/elf/start.S: Likewise.
4019 * sysdeps/hppa/elf/start.S: Likewise.
4020 * sysdeps/i386/elf/start.S: Likewise.
4021 * sysdeps/ia64/elf/start.S: Likewise.
4022 * sysdeps/m68k/elf/start.S: Likewise.
4023 * sysdeps/mach/hurd/powerpc/static-start.S: Likewise.
4024 * sysdeps/mips/elf/start.S: Likewise.
4025 * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
4026 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
4027 * sysdeps/s390/s390-32/elf/start.S: Likewise.
4028 * sysdeps/s390/s390-64/elf/start.S: Likewise.
4029 * sysdeps/sh/elf/start.S: Likewise.
4030 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
4031 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
4032 * sysdeps/x86_64/elf/start.S: Likewise.
4033
4034 * sysdeps/pthread/aio_notify.c (notify_func_wrapper): Take a malloc'd
4035 struct containing function ptr and value, free it.
4036 (__aio_notify_only): Allocate that and copy values from SIGEV into it.
4037 It's not safe to let the new thread use the SIGEV pointer.
4038
4039 2001-10-20 Paul Eggert <eggert@twinsun.com>
4040
4041 * misc/error.c (strerror_r): Do not declare unless [!_LIBC].
4042 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
4043 Use strerror_r that is only a macro, even if it is not a function.
4044 (strerror): Check for HAVE_DECL_STRERROR before declaring.
4045 (private_strerror): Use prototypes, not old-style function definition.
4046 (print_errno_message): New function.
4047 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
4048 char*-flavored one.
4049 (error_tail, error, error_at_line): Use it.
4050
4051 2002-12-07 Carlos O'Donell <carlos@baldric.uwo.ca>
4052
4053 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Added SHMLBA #define.
4054
4055 2002-12-08 Ulrich Drepper <drepper@redhat.com>
4056
4057 * scripts/output-format.sed: Fix bug in one of the s expressions
4058 which used / for one too many things.
4059
4060 * include/unistd.h: Declare __libc_close.
4061
4062 2002-12-07 Ulrich Drepper <drepper@redhat.com>
4063
4064 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_trylock): New define.
4065
4066 2002-12-07 Roland McGrath <roland@redhat.com>
4067
4068 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Reintroduce changes
4069 from 2002-12-06, but remove unnecessary memset call without removing
4070 necessary copy of initialization image.
4071
4072 * Makerules ($(common-objpfx)format.lds): New target.
4073 (common-generated): Add it.
4074 ($(inst_libdir)/libc.so): Depend on that, and cat it into the result.
4075 * scripts/output-format.sed: New file.
4076 * Makefile (distribute): Add it.
4077
4078 2002-12-07 Ulrich Drepper <drepper@redhat.com>
4079
4080 * sysdeps/generic/libc-tls.c: Include <sys/param.h>.
4081 Reported by Art Haas <ahaas@airmail.net>.
4082
4083 2002-12-07 Kenneth W. Chen <kenneth.w.chen@intel.com>
4084
4085 * sysdeps/ia64/strncpy.S (strncpy): Clear ar.ec. Fix .recovery4.
4086
4087 2002-12-07 Jakub Jelinek <jakub@redhat.com>
4088
4089 * string/test-strncpy.c (do_random_tests): Improve test coverage.
4090
4091 2002-12-06 Ulrich Drepper <drepper@redhat.com>
4092
4093 * test-skeleton.c (timeout_handler): Allow expected signal to be
4094 SIGALRM.
4095
4096 * wctype/wcfuncs.c: Add libc_hidden_def for iswalnum.
4097
4098 * sysdeps/posix/raise.c: Add libc_hidden_def for raise.
4099
4100 2002-12-07 Jakub Jelinek <jakub@redhat.com>
4101
4102 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [RTLD_PRIVATE_ERRNO]
4103 (SYSCALL_ERROR_HANDLER): Fix a pasto.
4104 Reported by Jeff Bailey <jbailey@nisa.net>.
4105
4106 2002-12-06 Ulrich Drepper <drepper@redhat.com>
4107
4108 * sysdeps/generic/libc-tls.c: Undo last patch.
4109
4110 * include/wctype.h: Define iswalnum with libc_hidden_proto.
4111
4112 * include/signal.h: Define raise with libc_hidden_proto.
4113
4114 * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Use __snprintf and
4115 __execve instead of snprintf and execve.
4116
4117 * sysdeps/x86_64/fpu/libm-test-ulps: Relax errors for float and double
4118 again a bit.
4119
4120 2002-12-06 Jakub Jelinek <jakub@redhat.com>
4121
4122 * posix/Makefile (annexc.out): Add -I../dir for all sorted-dirs.
4123 * posix/annexc.c (fmt, testfmt): Remove -D_LIBC.
4124
4125 2002-12-06 Ulrich Drepper <drepper@redhat.com>
4126
4127 * misc/syslog.c (log_cleanup): New function.
4128 (openlog): Use log_cleanup instead of __libc_mutex_unlock.
4129 (closelog): Likewise.
4130
4131 * elf/dl-close.c: Use __rtld_lock_* macros instead of __libc_lock_*.
4132 * elf/dl-iteratephdr.c: Likewise.
4133 * elf/dl-lookup.c: Likewise.
4134 * elf/dl-misc.c: Likewise.
4135 * elf/dl-open.c: Likewise.
4136 * elf/dl-support.c: Likewise.
4137 * elf/rtld.c: Likewise.
4138 * sysdeps/generic/ldsodefs.h: Likewise.
4139 * sysdeps/generic/bits/libc-lock.h: Define __rtld_lock_* macros.
4140 * sysdeps/mach/bits/libc-lock.h: Likewise.
4141 * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
4142
4143 2002-12-06 Roland McGrath <roland@redhat.com>
4144
4145 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Cope with zero ALIGN.
4146
4147 * malloc/hooks.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]
4148 (malloc_starter, memalign_starter, free_starter): Don't define these.
4149 * malloc/malloc.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]:
4150 Don't declare them either.
4151 * malloc/arena.c (ptmalloc_init) [_LIBC && USE_TLS]: Don't call
4152 __pthread_initialize, so no need to set hooks to *_starter.
4153 (ptmalloc_init_minimal): New function, broken out of ptmalloc_init.
4154 [_LIBC && SHARED && USE_TLS && !USE___THREAD]
4155 (__libc_malloc_pthread_startup): New function.
4156 * malloc/Versions (libc: GLIBC_PRIVATE): New set, add that function.
4157
4158 * malloc/hooks.c (memalign_starter): New function.
4159 * malloc/malloc.c: Declare it.
4160 * malloc/arena.c (save_memalign_hook): New variable.
4161 (ptmalloc_init): Set __memalign_hook to memalign_starter.
4162
4163 * elf/dl-minimal.c (free): Clear the memory.
4164 (calloc): Just call malloc, knowing all memory it returns is cleared.
4165
4166 * sysdeps/generic/dl-tls.c (allocate_dtv): Use calloc instead of
4167 malloc and memset; calloc can avoid the zeroing when redundant.
4168 (_dl_tls_setup): Likewise.
4169 * elf/dl-load.c (decompose_rpath): Likewise.
4170 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Comment out memset
4171 call, since memory from sbrk at startup is already zero.
4172
4173 * elf/rtld.c (_dl_start, dl_main): TLS_INIT_TP macro now returns an
4174 error string for failure, null for success. Update callers.
4175 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
4176 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
4177
4178 2002-12-05 Jakub Jelinek <jakub@redhat.com>
4179
4180 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Change
4181 args to i:iipi.
4182 (readahead): Change args to i:iii.
4183 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list (readahead):
4184 Change args to i:iii.
4185 * sysdeps/unix/sysv/linux/mips/syscalls.list (readahead): Change
4186 args to i:iiii.
4187
4188 2002-12-05 Roland McGrath <roland@redhat.com>
4189
4190 * stdlib/cxa_finalize.c (__cxa_finalize): When given a null argument,
4191 call all functions rather than none.
4192 Reported by Mark P. Mitchell <mark@codesourcery.com>.
4193
4194 2002-12-04 Roland McGrath <roland@redhat.com>
4195
4196 * locale/localeinfo.h [NL_CURRENT_INDIRECT]: Use attribute_tls_model_ie
4197 on _nl_current_LC_* variables.
4198
4199 2002-12-05 Ulrich Drepper <drepper@redhat.com>
4200
4201 * dirent/bug-readdir1.c (main): Don't call closedir, just close
4202 the file descriptor. This is testing what the bug report was about.
4203
4204 2002-12-04 Ulrich Drepper <drepper@redhat.com>
4205
4206 * po/be.po: New file.
4207
4208 * argp/Makefile (tests): Add tst-argp1.
4209
4210 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: (struct sigevent):
4211 Change type of _attribute to void*.
4212 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
4213 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
4214 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
4215 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
4216 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
4217
4218 2002-12-04 Roland McGrath <roland@redhat.com>
4219
4220 * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS]
4221 members to the end, so a libpthread compiled with !USE_TLS will still
4222 find other members properly.
4223
4224 * sysdeps/i386/i486/bits/string.h (__strcpy_g): Add dummy output
4225 operand for DEST memory. Fix dummy input operand to use SRC.
4226 Reported by Davin McCall <davmac@ozonline.com.au>.
4227
4228 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Account for TCB
4229 alignment when initializing the DTV entry.
4230
4231 * elf/dl-load.c (_dl_map_object_from_fd): If we hit a TLS segment
4232 when TLS has not been set up, try to set it up if we can.
4233 * elf/tst-tls4.c: Revert last change.
4234 * elf/tst-tls5.c: Likewise.
4235 * elf/tst-tls6.c: Likewise.
4236 * elf/tst-tls7.c: Likewise.
4237 * elf/tst-tls8.c: Likewise.
4238 * elf/tst-tls9.c: Likewise.
4239
4240 * sysdeps/generic/dl-tls.c [SHARED] (_dl_tls_setup): New function.
4241 * sysdeps/generic/ldsodefs.h: Declare it.
4242 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
4243 * sysdeps/generic/libc-tls.c (init_slotinfo): New static inline
4244 function, broken out of __libc_setup_tls.
4245 (init_static_tls): Likewise.
4246 (__libc_setup_tls): Call them.
4247 (_dl_tls_setup): New function, uses new subroutines.
4248
4249 * elf/dl-close.c (free_slotinfo): Make argument pointer to pointer.
4250 Clear the pointer when returning true.
4251 (libc_freeres_fn) [SHARED]: If GL(dl_initial_dtv) is null, free the
4252 first element of the slotinfo list too.
4253
4254 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Define only if
4255 [SHARED].
4256
4257 * sysdeps/generic/ldsodefs.h (_dl_next_tls_modid): Declare as hidden.
4258 (_dl_determine_tlsoffset): Likewise.
4259
4260 * elf/rtld.c (_dl_initial_error_catch_tsd): Renamed from
4261 startup_error_tsd, made global.
4262 (dl_main): Update initialization.
4263 * elf/dl-tsd.c: Likewise.
4264 * sysdeps/generic/ldsodefs.h: Declare it.
4265
4266 2002-12-03 Ulrich Drepper <drepper@redhat.com>
4267
4268 * manual/texinfo.tex: Update from latest upstream version.
4269
4270 2002-12-03 Roland McGrath <roland@redhat.com>
4271
4272 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Include static TLS
4273 area surplus in calculation for sbrk call.
4274
4275 * iconvdata/cp1125.c: New file.
4276 * iconvdata/Makefile (distribute): Add it.
4277 (modules): Add CP1125.
4278 (gen-8bit-gap-modules): Add cp1125.
4279 * iconvdata/gconv-modules: Add CP1125, alias RUSCII.
4280 * iconvdata/tst-tables.sh: Add CP1125 to the list to test.
4281
4282 2002-12-03 Andreas Jaeger <aj@suse.de>
4283
4284 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
4285
4286 2002-12-03 Ulrich Drepper <drepper@redhat.com>
4287
4288 * sysdeps/posix/system.c (do_system): Make signal handler
4289 installation thread safe.
4290
4291 2002-12-02 Roland McGrath <roland@redhat.com>
4292
4293 * sysdeps/unix/sysv/linux/alpha/syscalls.list (readahead): Change
4294 caller from EXTRA to -.
4295 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4296 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
4297 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4298
4299 2002-12-02 Carlos O'Donell <carlos@baldric.uwo.ca>
4300
4301 * sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both
4302 bits of RM are cleared.
4303
4304 2002-12-02 Roland McGrath <roland@redhat.com>
4305
4306 * elf/tst-tls4.c: Define an unused TLS variable here, so that no lazy
4307 TLS setup is required.
4308 * elf/tst-tls5.c: Likewise.
4309 * elf/tst-tls6.c: Likewise.
4310 * elf/tst-tls7.c: Likewise.
4311 * elf/tst-tls8.c: Likewise.
4312 * elf/tst-tls9.c: Likewise.
4313
4314 * elf/rtld.c (dl_main): Remove [! SHARED] conditional from
4315 `if (GL(dl_tls_max_dtv_idx) > 0)' tests for doing TLS setup.
4316 * elf/dl-close.c (libc_freeres_fn): Check GL(dl_tls_dtv_slotinfo_list)
4317 for being null before calling free_slotinfo.
4318 * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: For PT_TLS in
4319 dynamic loading, bail with error if GL(dl_tls_max_dtv_idx) is zero.
4320
4321 2002-11-30 Bruno Haible <bruno@clisp.org>
4322
4323 * iconv/gconv.h (__gconv_btowc_fct): New typedef.
4324 (struct __gconv_step): New field __btowc_fct.
4325 * wcsmbs/btowc.c (__btowc): Use the __btowc_fct shortcut if possible.
4326 * iconv/gconv_int.h (__BUILTIN_TRANSFORM): Renamed from
4327 __BUILTIN_TRANS.
4328 (__gconv_btwoc_ascii): New declaration.
4329 * iconv/gconv_simple.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
4330 (__gconv_btwoc_ascii): New function.
4331 * iconv/gconv_builtin.h: Add BtowcFct argument to all
4332 BUILTIN_TRANSFORMATION invocations.
4333 * iconv/gconv_conf.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
4334 * iconv/iconvconfig.c (BUILTIN_TRANSFORMATION): Likewise.
4335 * iconv/gconv_builtin.c (map): New field btowc_fct.
4336 (BUILTIN_TRANSFORMATION): Add BtowcFct argument. Use it to initialize
4337 btowc_fct field.
4338 (__gconv_get_builtin_trans): Initialize __btowc_fct field.
4339 * iconv/gconv_cache.c (find_module): Initialize __btowc_fct field.
4340 * iconv/gconv_db.c (gen_steps, increment_counter): Likewise.
4341 * wcsmbs/wcsmbsload.c (to_wc, to_mb): Likewise.
4342 * iconv/skeleton.c: Document STORE_REST and FROM_ONEBYTE.
4343 (gconv_init): Initialize __btowc_fct field.
4344 Undefine EXTRA_LOOP_ARGS and FROM_ONEBYTE at the end.
4345 * iconv/loop.c: Document ONEBYTE_BODY.
4346 (gconv_btowc, FROM_ONEBYTE): Define if ONEBYTE_BODY is defined.
4347 Undefine ONEBYTE_BODY at the end.
4348 * iconvdata/8bit-generic.c (ONEBYTE_BODY): New macro.
4349 * iconvdata/8bit-gap.c (NONNUL): New macro.
4350 (BODY for FROM_LOOP): Use it.
4351 (ONEBYTE_BODY): New macro.
4352 * iconvdata/isiri-3342.c (HAS_HOLES): Set to 1.
4353 (NONNUL): New macro.
4354 * iconvdata/ansi_x3.110.c (ONEBYTE_BODY): New macro.
4355 * iconvdata/armscii-8.c (ONEBYTE_BODY): New macro.
4356 * iconvdata/cp1255.c (ONEBYTE_BODY): New macro.
4357 * iconvdata/cp1258.c (ONEBYTE_BODY): New macro.
4358 * iconvdata/tcvn5712-1.c (ONEBYTE_BODY): New macro.
4359 * iconvdata/big5.c (ONEBYTE_BODY): New macro.
4360 * iconvdata/big5hkscs.c (ONEBYTE_BODY): New macro.
4361 * iconvdata/euc-cn.c (ONEBYTE_BODY): New macro.
4362 * iconvdata/euc-jp.c (ONEBYTE_BODY): New macro.
4363 * iconvdata/euc-jisx0213.c (ONEBYTE_BODY): New macro.
4364 * iconvdata/euc-kr.c (ONEBYTE_BODY): New macro.
4365 * iconvdata/euc-tw.c (ONEBYTE_BODY): New macro.
4366 * iconvdata/gbk.c (ONEBYTE_BODY): New macro.
4367 * iconvdata/gb18030.c (ONEBYTE_BODY): New macro.
4368 * iconvdata/ibm932.c: Include <stdbool.h>.
4369 (TRUE, FALSE): Remove macros.
4370 (BODY for FROM_LOOP): Remove unused variable rp1.
4371 (ONEBYTE_BODY): New macro.
4372 (BODY for TO_LOOP): Use bool.
4373 * iconvdata/ibm932.h (__ibm932sb_to_ucs4_idx): Remove array.
4374 * iconvdata/ibm943.c: Include <stdbool.h>.
4375 (TRUE, FALSE): Remove macros.
4376 (BODY for FROM_LOOP): Remove unused variable rp1.
4377 (ONEBYTE_BODY): New macro.
4378 (BODY for TO_LOOP): Use bool.
4379 * iconvdata/ibm943.h (__ibm943sb_to_ucs4_idx): Remove array.
4380 * iconvdata/iso8859-1.c (ONEBYTE_BODY): New macro.
4381 * iconvdata/iso_6937-2.c (ONEBYTE_BODY): New macro.
4382 * iconvdata/iso_6937.c (ONEBYTE_BODY): New macro.
4383 * iconvdata/johab.c (ONEBYTE_BODY): New macro.
4384 * iconvdata/sjis.c (ONEBYTE_BODY): New macro.
4385 * iconvdata/shift_jisx0213.c (ONEBYTE_BODY): New macro.
4386 * iconvdata/t.61.c (ONEBYTE_BODY): New macro.
4387 * iconvdata/uhc.c (ONEBYTE_BODY): New macro.
4388 * iconvdata/gbbig5.c: Tweak comment.
4389
4390 2002-12-02 Ulrich Drepper <drepper@redhat.com>
4391
4392 * po/fi.po: Update from translation team.
4393
4394 2002-12-01 Roland McGrath <roland@redhat.com>
4395
4396 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
4397 testing getdents64 return value.
4398
4399 * scripts/versions.awk: Don't pass -n flag to sort command.
4400
4401 * posix/bug-regex13.c: Include <string.h>.
4402
4403 * sysdeps/generic/libc-start.c (__libc_start_main): Do
4404 DL_SYSDEP_OSCHECK here.
4405 * sysdeps/unix/sysv/linux/init-first.c (init): Not here.
4406 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <fcntl.h>.
4407
4408 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Bail if
4409 argument TCBSIZE <= TLS_INIT_TCB_SIZE, not just if it's zero.
4410
4411 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Check l_tls_offset
4412 instead of l_type to decide whether to use TLS_DTV_UNALLOCATED.
4413
4414 * include/link.h: Comment typo fix.
4415
4416 2002-12-01 Roland McGrath <roland@frob.com>
4417
4418 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_FSYNC): Set to 200112L.
4419 (_POSIX_SPAWN, _POSIX_MAPPED_FILES, _POSIX_MEMLOCK_RANGE,
4420 _POSIX_MEMORY_PROTECTION): Likewise.
4421 (_POSIX_POLL, _POSIX_SELECT): Removed.
4422
4423 2002-11-28 Ulrich Drepper <drepper@redhat.com>
4424
4425 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
4426 require it to 200112L. Remove _POSIX_POLL and _POSIX_SELECT.
4427
4428 2002-11-28 Jakub Jelinek <jakub@redhat.com>
4429
4430 * sysdeps/unix/alpha/sysdep.S: Change defined(USE___THREAD) to
4431 USE___THREAD.
4432 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall*): Avoid
4433 "=v" constraints.
4434
4435 2002-11-28 Ulrich Drepper <drepper@redhat.com>
4436
4437 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Don't trash the CPU's
4438 branch prediction buffers by using unpaired call/ret.
4439
4440 2002-11-27 Ulrich Drepper <drepper@redhat.com>
4441
4442 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Fix typo in
4443 first parameters constraint string.
4444 (ASMFMT_3): Likewise. Patch by stefan.lauterbach@mincom.de.
4445
4446 2002-11-27 Isamu Hasegawa <isamu@yamato.ibm.com>
4447
4448 * posix/regcomp.c (parse_expression): Set the bit since the back
4449 reference is used in the regular expression.
4450 * posix/regex_internal.c (re_node_set_init_1): Make it clean in case
4451 of malloc failure.
4452 (re_node_set_init_copy): Likewise.
4453 * posix/regex_internal.h (state_array_t): New structure.
4454 (re_sub_match_last_t): Likewise.
4455 (re_sub_match_top_t): Likewise.
4456 (re_match_context_t): Add new members.
4457 (re_dfa_t): Likewise.
4458 * posix/regexec.c (re_search_internal): Invoke prune_impossible_nodes
4459 to check the matching is really correct, and retry if failed.
4460 Move the routin pruning the impossible nodes from here, ...
4461 (prune_impossible_nodes): To this function.
4462 (check_matching): Invoke check_subexp_matching_top, and replace
4463 redundant checking with transit_state_bkref invocation.
4464 (proceed_next_node): Replace strncmp with memcmp. Reported by
4465 Paolo Bonzini <bonzini@gnu.org>.
4466 (update_cur_sifted_state): Remove search_subexp invocation.
4467 (search_subexp): Remove this function.
4468 (check_dst_limits_calc_pos): Use search_cur_bkref_entry for
4469 optimization.
4470 (sift_states_bkref): Use search_cur_bkref_entry for optimization.
4471 Remove unused invocation of match_ctx_add_entry.
4472 (transit_state): Invoke check_subexp_matching_top.
4473 (check_subexp_matching_top): New function.
4474 (transit_state_bkref): Remove unused array.
4475 Merge transit_state_bkref_loop.
4476 (transit_state_bkref_loop): Use get_subexp instead of
4477 sift_states_backward. Use search_cur_bkref_entry for optimization.
4478 Merge this function to transit_state_bkref.
4479 (get_subexp): New function.
4480 (get_subexp_sub): Likewise.
4481 (find_subexp_node): Likewise.
4482 (check_arrival): Likewise.
4483 (check_arrival_expand_ecl): Likewise.
4484 (check_arrival_expand_ecl_sub): Likewise.
4485 (expand_bkref_cache): Likewise.
4486 (match_ctx_init): Initialize new members.
4487 (match_ctx_clean): New function.
4488 (match_ctx_free): Release new members.
4489 (match_ctx_free_subtops): New function.
4490 (match_ctx_add_entry): Fix indent.
4491 (search_cur_bkref_entry): New function.
4492 (match_ctx_add_subtop): Likewise.
4493 (match_ctx_add_sublast): Likewise.
4494
4495 2002-11-25 Ulrich Drepper <drepper@redhat.com>
4496
4497 * iconv/Makefile (tests): Remove tst-iconv4.c
4498 * iconv/tst-iconv4.c: Moved to...
4499 * iconvdata/tst-iconv4.c: ...here. New file.
4500 * iconvdata/Makefile (tests): Add tst-iconv4. Add dependencies.
4501
4502 2002-11-25 Roland McGrath <roland@redhat.com>
4503
4504 * inet/test-ifaddrs.c (main: addr_string): Handle null SA.
4505 Grok AF_LINK if defined.
4506 From Momchil Velikov <velco@fadata.bg>.
4507
4508 * sysdeps/gnu/ifaddrs.c (getifaddrs): If ioctl fails for netmask,
4509 brdaddr, or dstaddr, just set those pointers to null and don't fail.
4510 Reported by Momchil Velikov <velco@fadata.bg>.
4511
4512 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: If sa_len
4513 is > sizeof IFR->ifa_addr, advance past the whole longer length.
4514 (__ifreq): Count up NIFS that way too.
4515 Reported by Momchil Velikov <velco@fadata.bg>.
4516
4517 * sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>.
4518
4519 * sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>
4520 and <fpu_control.h>.
4521
4522 2002-11-24 Ulrich Drepper <drepper@redhat.com>
4523
4524 * elf/elf.h (EM_ST19): Fix typo.
4525
4526 2002-11-25 Jakub Jelinek <jakub@redhat.com>
4527
4528 * include/errno.h (__set_errno): Define as errno = val
4529 unconditionally.
4530
4531 2002-11-24 Roland McGrath <roland@redhat.com>
4532
4533 * sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.
4534 * sysdeps/posix/writev.c: Likewise.
4535 From Momchil Velikov <velco@fadata.bg>.
4536
4537 * elf/dl-error.c [! _LIBC_REENTRANT]: Use a static variable instead of
4538 calling *GL(dl_error_catch_tsd) for a thread-local location.
4539 * elf/rtld.c (startup_error_tsd): Conditionalize on [_LIBC_REENTRANT].
4540 (dl_main): Same for GL(dl_error_catch_tsd) initialization.
4541 * elf/dl-tsd.c: Conditionalize contents on [_LIBC_REENTRANT].
4542
4543 * libio/iofflush.c: Add libc_hidden_def.
4544 * libio/iofwrite.c: Likewise.
4545 * sysdeps/generic/sigtimedwait.c: Likewise.
4546 * sysdeps/generic/sigwaitinfo.c: Likewise.
4547 * sysdeps/posix/sigwait.c: Likewise.
4548 Reported by Momchil Velikov <velco@fadata.bg>.
4549
4550 * inet/inet_lnaof.c (inet_lnaof): Change return type to in_addr_t
4551 to match <arpa/inet.h> declaration.
4552 * inet/inet_netof.c (inet_netof): Likewise.
4553 * inet/inet_mkadr.c (inet_makeaddr): Likewise for argument types.
4554 Reported by Momchil Velikov <velco@fadata.bg>.
4555
4556 * configure.in: Skip AUTOCONF check under --without-cvs.
4557 * configure: Regenerated.
4558
4559 * posix/Makefile (headers): Add bits/pthreadtypes.h.
4560 * sysdeps/unix/sysv/linux/Makefile (sysdep_heaers): Don't add it here.
4561 * sysdeps/unix/sysv/linux/Dist: Remove it from the list.
4562
4563 2002-11-24 Andreas Schwab <schwab@suse.de>
4564
4565 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall
4566 with six arguments.
4567
4568 2002-11-19 Jim Meyering <jim@meyering.net>
4569
4570 * time/mktime.c (__mon_yday, __mktime_internal) [!_LIBC]: Declare
4571 as `static'.
4572 * time/strptime.c (__mon_yday) [!_LIBC]: Declare as `static'.
4573
4574 2002-11-23 Roland McGrath <roland@redhat.com>
4575
4576 * scripts/abilist.awk: Avoid strtonum function, not there in mawk.
4577 Just produce hex output for datum sizes.
4578
4579 * elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.
4580 Reported by Luca Barbieri <ldb@ldb.ods.org>.
4581
4582 2002-11-20 Steven Munroe <sjmunroe@us.ibm.com>
4583
4584 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds)
4585 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
4586 and __unused3 fields.
4587 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h (semid_ds)
4588 [__WORDSIZE == 32]: Only PPC32 requires __unused1
4589 and __unused2 fields.
4590 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (shmid_ds)
4591 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
4592 __unused3, and __unused4 fields.
4593
4594 * csu/gmon-start.c (__gmon_start__): Always use TEXT_START macro to
4595 obtain lowest address for profiling in __monstartup call.
4596
4597 2002-11-21 Roland McGrath <roland@redhat.com>
4598
4599 * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove redunant
4600 $(calls) $(calls:=f) $(long-c-$(long-double-fcts)).
4601
4602 * locale/localeinfo.h (struct locale_data): Revert last change.
4603
4604 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.
4605 From Ian Wienand <ianw@gelato.unsw.edu.au>.
4606
4607 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to
4608 __NR_pread64 if not defined.
4609 (__NR_pwrite): Define to __NR_pwrite64 if not defined.
4610 From Ian Wienand <ianw@gelato.unsw.edu.au>.
4611
4612 2002-11-21 Roland McGrath <roland@frob.com>
4613
4614 * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set
4615 __libc_multiple_libcs here. Call __setfpucw.
4616
4617 2002-11-21 Ulrich Drepper <drepper@redhat.com>
4618
4619 * elf/Makefile (tests): Don't run test-arrayX tests for now.
4620
4621 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags.
4622 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for
4623 CLONE_CHILD_*TID flags.
4624
4625 2002-11-20 Andreas Jaeger <aj@suse.de>
4626
4627 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
4628 We pass struct ucontext on x86-64.
4629 (GET_PC): Adjust.
4630 (GET_FRAME): Adjust.
4631 (GET_STACK): Adjust.
4632
4633 2002-11-20 Roland McGrath <roland@redhat.com>
4634
4635 * sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further
4636 conditionalize [! DO_VERSIONING] #error.
4637
4638 * scripts/abilist.awk: Grok function descriptor symbols.
4639
4640 * intl/tst-gettext.c (main): Check return values from setlocale.
4641 Add necessary unsetenv's to make LANG=existing-locale check work.
4642
4643 * intl/tst-gettext.sh: Use mkdir -p. Copy test files unconditionally,
4644 so aborted prior runs don't confuse things.
4645
4646 * locale/localeinfo.h (struct locale_data: union locale_data_value):
4647 Use uintptr_t instead of unsigned int for `word' member.
4648 (_NL_CURRENT_WORD): Cast to uint32_t.
4649
4650 * posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES
4651 value.
4652
4653 2002-11-20 Ulrich Drepper <drepper@redhat.com>
4654
4655 * elf/tls-macros.h: Add IA-64 definitions.
4656 Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
4657
4658 * iconv/Makefile (tests): Add tst-iconv4.
4659 * iconv/tst-iconv4.c: New file.
4660
4661 * iconv/gconv_simple.c (internal_ucs4le_loop_unaligned): Return
4662 __GCONV_EMPTY_INPUT only if input is really empty. Otherwise
4663 __GCONV_INCOMPLETE_INPUT.
4664 (ucs4le_internal_loop): Likewise.
4665 (ucs4le_internal_loop_unaligned): Likewise.
4666 * iconvdata/unicode.c (PREPARE_LOOP): Likewise.
4667 * iconvdata/utf-16.c (PREPARE_LOOP): Likewise.
4668 * iconvdata/utf-32.c (PREPARE_LOOP): Likewise.
4669
4670 * iconv/loop.c (LOOPFCT): First test for empty input then for full
4671 output buffer.
4672
4673 * inet/getnameinfo.c: Use extend_alloca where appropriate.
4674 * sysdeps/posix/getaddrinfo.c: Likewise.
4675
4676 * include/alloca.h (extend_alloca): New define. Based on stack
4677 direction it'll try to append to the previouls allocated buffer.
4678
4679 2002-11-07 Thorsten Kukuk <kukuk@suse.de>
4680
4681 * sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set,
4682 use the same service for AF_INET and AF_INET6.
4683
4684 2002-11-19 Ulrich Drepper <drepper@redhat.com>
4685
4686 * intl/localealias.c (read_alias_file): Use only about 400 bytes
4687 of stack space instead of 16k.
4688
4689 2002-11-18 Wolfram Gloger <wg@malloc.de>
4690
4691 * malloc/arena.c
4692 (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
4693 nothing if not initialized. Bug report from Marcus Brinkmann
4694 <Marcus.Brinkmann@ruhr-uni-bochum.de>.
4695
4696 2002-11-19 Roland McGrath <roland@redhat.com>
4697
4698 * posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and
4699 sched_setaffinity.
4700
4701 * configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
4702 `-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
4703 test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
4704 * configure: Regenerated.
4705
4706 2002-11-19 Ulrich Drepper <drepper@redhat.com>
4707
4708 * include/dlfcn.h: __libc_dlopen is now a macro calling
4709 __libc_dlopen_mode with the extra parameter RTLD_LAZY.
4710 (__libc_dlopen_mode): New prototype.
4711 * elf/dl-libc.c (__libc_dlopen_mode): Renamed from __libc_dlopen. Add
4712 new parameter. Store new parameter in mode field of structure passed
4713 to do_dlopen.
4714 (struct do_dlopen_args): Add new field mode.
4715 (do_dlopen): Pass mode from parameter structure to _dl_open.
4716
4717 2002-11-11 Randolf Chung <tausq@debian.org>
4718
4719 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
4720 (F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions.
4721 * sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.
4722
4723 * sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
4724
4725 * sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
4726 Set -mdisable-fpregs for this file.
4727
4728 2002-11-11 Carlos O'Donell <carlos@baldric.uwo.ca>
4729
4730 * sysdeps/unix/sysv/linux/configure.in:
4731 Make 2.4.19 minimum linux kernel for hppa, and add unwind symbols
4732 from gcc-3.0 era for backwards compatibility.
4733 * sysdeps/unix/sysv/linux/configure: Regenerate.
4734
4735 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
4736 Define mcontext_t as a sigcontext.
4737
4738 2002-11-18 Roland McGrath <roland@redhat.com>
4739
4740 * dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)).
4741 Free memory in `last_result' if it was used.
4742
4743 * resolv/nss_dns/dns-network.c (getanswer_r): In BYNAME case, search
4744 all aliases for one that matches the "<dotted-quad>.IN-ADDR.ARPA" form.
4745 Do the parsing inline instead of copying strings and calling
4746 inet_network, and properly skip all alias names not matching the form.
4747
4748 * manual/pattern.texi (Variable Substitution): Fix # and ## examples.
4749
4750 2002-11-17 Ulrich Drepper <drepper@redhat.com>
4751
4752 * manual/pattern.texi (Wordexp Example): Fix sample code.
4753
4754 * sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the
4755 childs stack which will be loaded into the %esi register.
4756
4757 2002-11-14 Paul Eggert <eggert@twinsun.com>
4758
4759 * resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
4760 overflow when skipping the question part and when unpacking aliases.
4761
4762 2002-11-15 Roland McGrath <roland@redhat.com>
4763
4764 * math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,
4765 s_finite, s_modf, s_scalbn, s_frexp, m_ldexp, s_signbit.
4766 Instead add $(calls:s_%=m_%) to get m_* versions of them all.
4767
4768 2002-11-15 Jakub Jelinek <jakub@redhat.com>
4769
4770 * sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
4771 * sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY.
4772
4773 2002-11-15 Roland McGrath <roland@redhat.com>
4774
4775 * math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
4776 * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc]
4777 from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep).
4778 (+make-include-of-dep): New canned sequence.
4779
4780 * stdlib/canonicalize.c (__realpath): Check for malloc failure.
4781 From Dmitry V. Levin <ldv@altlinux.org>.
4782
4783 2002-11-14 Roland McGrath <roland@redhat.com>
4784
4785 * sysdeps/generic/errno.c (__libc_errno): Remove alias.
4786 * inet/herrno.c (__libc_h_errno): Likewise.
4787 * resolv/res_libc.c (__libc_res): Likewise.
4788 [USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
4789 (__res_state) [! USE___THREAD]: Don't define as weak.
4790 * csu/Versions: Revert last change.
4791 * resolv/Versions: Revert last change.
4792
4793 * Makerules ($(common-objpfx)%.make): New pattern rule.
4794 * tls.make.c: New file.
4795 * Makefile (distribute): Add it.
4796
4797 * sysdeps/generic/errno.c [! USE___THREAD]
4798 [HAVE_ELF && SHARED && DO_VERSIONING] (errno, _errno): Declare these
4799 with compat_symbol so they are not link-time visible.
4800 [! USE___THREAD] (__libc_errno): New alias for errno.
4801 * csu/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
4802 Add __libc_errno here.
4803 * inet/herrno.c [USE___THREAD]: Use this conditional
4804 in place of [USE_TLS && HAVE___THREAD].
4805 [! USE___THREAD] [HAVE_ELF && SHARED && DO_VERSIONING]
4806 (h_errno, _h_errno): Declare these with compat_symbol so they are not
4807 link-time visible.
4808 [! USE___THREAD] (__libc_h_errno): New alias for h_errno.
4809 * resolv/res_libc.c [! USE___THREAD]
4810 [HAVE_ELF && SHARED && DO_VERSIONING] (_res): Likewise.
4811 (_res): Use __attribute__ ((section (".bss"))) so we can have an alias.
4812 (__libc_res): Define as alias for _res.
4813 * resolv/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
4814 Add __libc_h_errno and __libc_res here.
4815
4816 2002-11-14 Jakub Jelinek <jakub@redhat.com>
4817
4818 * csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now.
4819 * resolv/Versions (h_errno, _res): Likewise.
4820
4821 2002-11-14 Roland McGrath <roland@redhat.com>
4822
4823 * Makerules (%.dynsym): Remove $(objpfx) from target and dep.
4824 (%.symlist): Likewise.
4825
4826 2002-11-13 Roland McGrath <roland@redhat.com>
4827
4828 * scripts/abilist.awk: New file.
4829 * Makefile (distribute): Add it.
4830 * Makerules ($(objpfx)%.dynsym, $(objpfx)%.symlist): New rules.
4831 (tests): Depend on .symlist file for each $(install-lib.so-versioned).
4832 [$(subdir) = elf] (tests): Depend on libc.symlist.
4833 (generated, common-generated): Add those files.
4834
4835 * aclocal.m4 (LIBC_PROG_BINUTILS): Check for objdump, set OBJDUMP.
4836 * configure: Regenerated.
4837 * config.make.in (OBJDUMP): New variable, substituted by configure.
4838
4839 * malloc/mcheck.c (struct hdr): New members `block' and `magic2'.
4840 (mallochook, reallochook): Set them up.
4841 (checkhdr): Check HDR->magic2 value.
4842 (freehook): Reset HDR->magic2.
4843 (memalignhook): New static function.
4844 (old_memalign_hook): New static variable.
4845 (mcheck, reallochook): Set __memalign_hook to memalignhook.
4846
4847 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space
4848 for the new TCB.
4849
4850 2002-11-13 Andreas Jaeger <aj@suse.de>
4851
4852 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Check for visibility
4853 attribute.
4854 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
4855
4856 2002-11-11 Paul Eggert <eggert@twinsun.com>
4857
4858 * manual/crypt.texi (Cryptographic Functions): Mention that
4859 the MD5 one-way algorithm is compatible with BSD's.
4860
4861 2002-11-11 Isamu Hasegawa <isamu@yamato.ibm.com>
4862
4863 * posix/regex_internal.c (re_string_skip_chars): Also return the last
4864 wide character.
4865 (re_string_reconstruct): Calculate the context by itself when the
4866 offset points out of the valid range.
4867 (re_string_context_at): Use wide character when MB_CUR_MAX > 1.
4868 * posix/regex_internal.h (WIDE_NEWLINE_CHAR): New macro.
4869 (IS_WIDE_WORD_CHAR): New macro.
4870 (IS_WIDE_NEWLINE): New macro.
4871
4872 2002-11-12 Andreas Jaeger <aj@suse.de>
4873
4874 * sysdeps/x86_64/strchr.S: Don't use one register for two
4875 purposes, this fixes a bug noticed by test-strchr.c.
4876
4877 * sysdeps/x86_64/strcat.S: Fix algorithm to align source pointer
4878 correctly.
4879
4880 2002-11-12 Roland McGrath <roland@redhat.com>
4881
4882 * libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]
4883 (_G_IO_NO_BACKWARD_COMPAT): Define it.
4884
4885 * sysdeps/ia64/dl-fptr.c [_LIBC_REENTRANT]: Include <ia64intrin.h>
4886 instead of <pt-machine.h>.
4887 [_LIBC_REENTRANT] (lock, unlock): Use __sync_lock_* macros instead of
4888 testandset.
4889 From Ian Wienand <ianw@gelato.unsw.edu.au>.
4890
4891 2002-11-10 Roland McGrath <roland@redhat.com>
4892
4893 * libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos.
4894 Call fputs instead of fwprintf (simpler to follow in debugger).
4895
4896 * crypt/md5-crypt.c: Doc fix.
4897
4898 * sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at
4899 the beginning of generated target commands.
4900
4901 * csu/Makefile ($(objpfx)crti.o, $(objpfx)crtn.o): Add explicit
4902 dependencies for these in case implicit rule search skipped the
4903 nonexistent source directory.
4904 * sysdeps/gnu/Makefile ($(objpfx)errlist.d): Give this rule all the
4905 files with $(object-suffixes) as targets too.
4906 * Makerules [no_deps && objpfx] (before-compile): Add $(objpfx).
4907 and a target for it using $(make-target-directory).
4908
4909 * Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h.
4910
4911 2002-11-10 Roland McGrath <roland@frob.com>
4912
4913 * sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
4914 * sysdeps/generic/bits/pthreadtypes.h: ... here.
4915
4916 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Treat a struct flock with
4917 l_start == 0 and l_len == 1 as we do l_len == 0.
4918
4919 2002-11-10 Ulrich Drepper <drepper@redhat.com>
4920
4921 * po/da.po: Update from translation team.
4922
4923 2002-11-10 Roland McGrath <roland@redhat.com>
4924
4925 * config.make.in (includedir): New variable, substituted by configure.
4926 Reported missing by Jocelyn Fournier <joc@presence-pc.com>.
4927 * Makeconfig (includedir): Use $(prefix), not $(exec_prefix).
4928
4929 2002-11-10 Andreas Jaeger <aj@suse.de>
4930
4931 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (enum): Add
4932 REG_OLDMASK and REG_CR2 to synch with kernel header.
4933 (NGREG): Increase.
4934
4935 * nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict
4936 aliasing problem.
4937 * nss/getXXbyYY_r.c (INTERNAL): Likewise.
4938 * nss/getnssent_r.c (__nss_getent_r): Likewise.
4939 (__nss_setent): Likewise.
4940 (__nss_getent_r): Likewise.
4941 * inet/getnetgrent_r.c (innetgr): Likewise.
4942 (__internal_setnetgrent_reuse): Likewise.
4943 (internal_getnetgrent_r): Likewise.
4944 * inet/ether_hton.c (ether_hostton): Likewise.
4945 * inet/ether_ntoh.c (ether_ntohost): Likewise.
4946 * sunrpc/netname.c (netname2user): Likewise.
4947 * sunrpc/publickey.c (getpublickey): Likewise.
4948 (getsecretkey): Likewise.
4949
4950 2002-11-09 Marcus Brinkmann <marcus@gnu.org>
4951
4952 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
4953 error in range calculation.
4954
4955 2002-10-09 Jakub Jelinek <jakub@redhat.com>
4956
4957 * string/test-strspn.c (do_test): Ensure zero termination.
4958 * string/test-strpbrk.c (do_test): Likewise.
4959 * string/test-strncmp.c (stupid_strncmp): Use strnlen, not strlen.
4960 * string/test-strncpy.c (stupid_strncpy): Likewise.
4961 * string/test-stpncpy.c (stupid_stpncpy): Likewise.
4962
4963 2002-10-08 Roland McGrath <roland@redhat.com>
4964
4965 * string/test-string.h (test_init): Fill BUF1 and BUF2 with
4966 nonzero characters.
4967
4968 2002-09-22 H.J. Lu <hjl@gnu.org>
4969
4970 * sysdeps/unix/sysv/linux/mmap64.c (MMAP2_PAGE_SHIFT): Renamed
4971 from PAGE_SHIFT. Define if not defined. Check MMAP2_PAGE_SHIFT
4972 only if __NR_mmap2 is defined.
4973
4974 * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Moved to ...
4975 * sysdeps/unix/sysv/linux/mmap64.c: ... here.
4976 * sysdeps/unix/sysv/linux/hppa/mmap64.c: File removed.
4977 * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: FIle removed,
4978
4979 2002-11-08 Jakub Jelinek <jakub@redhat.com>
4980
4981 * posix/bug-regex13.c (tests): Add new test.
4982
4983 * string/test-strchr.c (stupid_strchr): New function.
4984 (do_random_tests): Make sure the string is zero terminated.
4985 * string/test-strpbrk.c (stupid_strpbrk): New function.
4986 (do_random_tests): Make sure the string is zero terminated.
4987 * string/test-strcmp.c (stupid_strcmp): New function.
4988 (do_random_tests): Make sure the strings are zero terminated.
4989 * string/test-strspn.c (stupid_strspn): New function.
4990 (simple_strspn): Rename rej argument to acc.
4991 (do_random_tests): Make sure the string is zero terminated.
4992 * string/test-strcspn.c (stupid_strcspn): New function.
4993 * string/test-strncpy.c (stupid_strncpy): New function.
4994 * string/test-stpncpy.c (stupid_stpncpy): New function.
4995 * string/test-strncmp.c (stupid_strncmp): New function.
4996 (do_random_tests): Make sure the strings are zero terminated.
4997 * string/test-string.h (impl_t): Change test into long.
4998 (IMPL): Add __attribute__((aligned (sizeof (void *)))).
4999
5000 2002-11-08 Roland McGrath <roland@redhat.com>
5001
5002 * sysdeps/ia64/elf/configure.in: Add TLS check.
5003 From Ian Wienand <ianw@cse.unsw.edu.au>.
5004 * sysdeps/ia64/elf/configure: Regenerated.
5005
5006 2002-11-07 Roland McGrath <roland@redhat.com>
5007
5008 * libio/fileops.c (_IO_new_file_overflow): Use INTUSE(_IO_do_write) in
5009 place of _IO_new_do_write.
5010 [_LIBC] (_IO_do_write): Define as macro for _IO_new_do_write and
5011 #undef before versioned_symbol use.
5012
5013 2002-11-07 Richard Henderson <rth@redhat.com>
5014
5015 * configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
5016 * configure: Regenerated.
5017 * config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef.
5018 * sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp.
5019 (RTLD_START): Likewise. Access _dl_skip_args, _rtld_local, and
5020 _dl_fini via gp-relative relocations.
5021 * sysdeps/alpha/fpu/e_sqrt.c: Use !samegp.
5022
5023 * elf/tls-macros.h: Add alpha versions.
5024 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle TLS relocs.
5025 * sysdeps/unix/alpha/sysdep.S: Support USE___THREAD.
5026 * sysdeps/unix/alpha/sysdep.h: Likewise. Add SYSCALL_ERROR_HANDLER.
5027 * sysdeps/unix/sysv/linux/alpha/brk.S: Use it.
5028 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
5029 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
5030 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
5031 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
5032 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
5033 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
5034 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Likewise.
5035 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
5036 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
5037 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
5038 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
5039 * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
5040 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
5041 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
5042
5043 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Re-include protect.
5044 Kill argument registers across the inline syscall.
5045
5046 * sysdeps/unix/sysv/linux/alpha/clone.S: Add user_tid and tls args.
5047
5048 * linuxthreads/sysdeps/alpha/tls.h: New file.
5049 * sysdeps/alpha/dl-tls.h: New file.
5050
5051 2002-10-29 David Mosberger <davidm@hpl.hp.com>
5052
5053 * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY]
5054 (gmon_initializer): New function.
5055 (.init prologue): If HAVE_INITFINI_ARRAY is true, don't call
5056 __gmon_start__ here. Call it from gmon_initializer() instead.
5057
5058 2002-03-12 H.J. Lu <hjl@gnu.org>
5059
5060 * elf/Makefile [$(have-initfini-array) = yes] (tests): Add tst-array1,
5061 tst-array2, and tst-array3.
5062 [$(have-initfini-array) = yes] (tests-static): Add tst-array3.
5063 [$(have-initfini-array) = yes] (modules-names): Add tst-array2dep.
5064 ($(objpfx)tst-array1.out): New target.
5065 ($(objpfx)tst-array2): Likewise.
5066 ($(objpfx)tst-array2.out): Likewise.
5067 ($(objpfx)tst-array3.out): Likewise.
5068 * elf/tst-array1.c: New file.
5069 * elf/tst-array1.exp: Likewise.
5070 * elf/tst-array2.c: Likewise.
5071 * elf/tst-array2dep.c: Likewise.
5072 * elf/tst-array2.exp: Likewise.
5073 * elf/tst-array3.c: Likewise.
5074
5075 2002-10-28 David Mosberger <davidm@hpl.hp.com>
5076
5077 * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order.
5078 Don't add L->l_addr to array entry values.
5079
5080 2002-11-07 Jakub Jelinek <jakub@redhat.com>
5081
5082 * string/test-string.h: New file.
5083 * string/test-strlen.c: New file.
5084 * string/test-string.h: New file.
5085 * string/test-strcmp.c: New file.
5086 * string/test-strchr.c: New file.
5087 * string/test-strrchr.c: New file.
5088 * string/test-strcpy.c: New file.
5089 * string/test-stpcpy.c: New file.
5090 * string/test-strncpy.c: New file.
5091 * string/test-stpncpy.c: New file.
5092 * string/test-strpbrk.c: New file.
5093 * string/test-strcspn.c: New file.
5094 * string/test-strspn.c: New file.
5095 * string/test-strcat.c: New file.
5096 * string/test-strncmp.c: New file.
5097 * string/test-memchr.c: New file.
5098 * string/test-memcmp.c: New file.
5099 * string/test-memset.c: New file.
5100 * string/test-memcpy.c: New file.
5101 * string/test-mempcpy.c: New file.
5102 * string/test-memmove.c: New file.
5103 * string/Makefile (strop-tests): New variable.
5104 (tests): Add strop-tests.
5105 (distribute): Add test-string.h.
5106
5107 2002-11-06 Ulrich Drepper <drepper@redhat.com>
5108
5109 * posix/regcomp.c: Use tabs instead of spaces.
5110 * posix/regexec.c: Likewise.
5111 * posix/regex_internal.h: Likewise.
5112
5113 * posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb.
5114
5115 2002-11-06 Jakub Jelinek <jakub@redhat.com>
5116
5117 * posix/regcomp.c (re_compile_pattern): Don't set regs_allocated
5118 here.
5119 (regcomp): Don't set can_be_null here.
5120 (re_comp): Clear whole re_comp_buf with the exception of fastmap.
5121 (re_compile_internal): Clear can_be_null, set regs_allocated.
5122
5123 * posix/regcomp.c (re_set_fastmap): New function.
5124 (re_compile_fastmap_iter): Use it. Remove redundant type ==
5125 COMPLEX_BRACKET check.
5126 * posix/regexec.c (re_search_internal): Optimize searching with
5127 fastmap. Call re_string_reconstruct even if match_first is
5128 smaller than raw_mbs_idx.
5129
5130 2002-11-06 Isamu Hasegawa <isamu@yamato.ibm.com>
5131
5132 * posix/regcomp (free_dfa_content): Use free_state.
5133 * posix/regex_internal.c (re_string_realloc_buffers): Don't edit
5134 pointers in case that realloc failed.
5135 (re_node_set_merge): Likewise.
5136 (register_state): Likewise.
5137 (create_newstate_common): Invoke memory release functions in case of
5138 error conditions.
5139 (create_ci_newstate): Likewise.
5140 (create_cd_newstate): Likewise.
5141 (free_state): New function.
5142 * posix/regexec.c (re_search_internal): Invoke memory release
5143 functions in case of error conditions.
5144 (sift_states_backward): Likewise.
5145 (merge_state_array): Likewise.
5146 (add_epsilon_src_nodes): Likewise.
5147 (sub_epsilon_src_nodes): Likewise.
5148 (search_subexp): Likewise.
5149 (sift_states_bkref): Likewise.
5150 (transit_state_sb): Likewise.
5151 (transit_state_mb): Likewise.
5152 (transit_state_bkref_loop): Likewise.
5153 (group_nodes_into_DFAstates): Likewise.
5154 (push_fail_stack): Don't edit pointers in case that realloc failed.
5155 (extend_buffers): Likewise.
5156 (match_ctx_add_entry): Likewise.
5157
5158 2002-11-06 Roland McGrath <roland@redhat.com>
5159
5160 * sysdeps/unix/sysv/linux/mips/configure.in: File removed.
5161 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
5162
5163 * configure.in: Add checks on as and ld for binutils 2.13 or later.
5164 * configure: Regenerated.
5165
5166 2002-11-06 Ulrich Drepper <drepper@redhat.com>
5167
5168 * posix/regcomp.c (regcomp): __re_compile_fastmap can never fail.
5169 If re_compile_internal failed free fastmap buffer.
5170 (free_dfa_content): Broken out of regfree function. Frees all dfa
5171 related data.
5172 (regfree): Add free_dfa_content.
5173 (re_compile_internal): If any of the called functions fails free
5174 all dfa related memory.
5175
5176 2002-11-05 Ulrich Drepper <drepper@redhat.com>
5177
5178 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent
5179 warnings from the kernel headers.
5180
5181 2002-11-05 Roland McGrath <roland@redhat.com>
5182
5183 * sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump.
5184 From Johannes Stezenbach <js@convergence.de>.
5185
5186 * sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
5187 #errlist-compat magic comment to give 123 as size.
5188 (libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ...
5189 (libc: GLIBC_2.2): ... here.
5190 (libc: GLIBC_2.3): Likewise.
5191
5192 2002-11-05 Ulrich Drepper <drepper@redhat.com>
5193
5194 * elf/dl-fini.c (_dl_fini): Correct the increment of l_opencount
5195 which happens at the beginning so that we can unload modules in
5196 __libc_freeres.
5197
5198 2002-11-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5199
5200 * sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only
5201 under [__USE_MISC || _ASM].
5202
5203 * elf/elf.h: Remove the obsolete SH TLS relocations.
5204
5205 2002-11-05 Ulrich Drepper <drepper@redhat.com>
5206
5207 * posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero.
5208
5209 2002-11-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5210
5211 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Handle
5212 __NR_pread64 and __NR_pwrite64.
5213 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
5214 * sysdeps/unix/sysv/linux/powerpc/pread.c: Remove __NR_pread64
5215 and __NR_pwrite64.
5216 Revert change to use INLINE_SYSCALL.
5217 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
5218 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
5219 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
5220 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Revert change to use
5221 INLINE_SYSCALL.
5222 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
5223
5224 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
5225 Update clobber list and add a comment about the syscall ABI.
5226
5227 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64,
5228 s_pwrite64, s_ftruncate, s_truncate): Re-add.
5229
5230 2002-11-05 Jakub Jelinek <jakub@redhat.com>
5231
5232 * iconv/gconv_dl.c (free_mem): Clear loaded.
5233 * locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's
5234 cleanup if any.
5235
5236 2002-11-05 Ulrich Drepper <drepper@redhat.com>
5237
5238 * sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>.
5239
5240 * libio/ioseekoff.c: Remove INTDEF. Define _IO_seekoff_unlocked. Same
5241 as old code without locking. _IO_seekoff calls this function after
5242 locking the stream.
5243 * libio/ioseekpos.c: Likewise for _IO_seekpos.
5244 * libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal
5245 prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked
5246 prototypes.
5247 * libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead
5248 of _IO_seekoff_internal.
5249 (_IO_rewind): Likewise.
5250 * libio/ioftell.c: Likewise.
5251 * libio/ftello.c: Likewise.
5252 * libio/ftello64.c: Likewise.
5253 * libio/iofgetpos.c: Likewise.
5254 * libio/iofgetpos64.c: Likewise.
5255 * libio/oldiofgetpos.c: Likewise.
5256 * libio/oldiofgetpos64.c: Likewise.
5257 * libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of
5258 _IO_seekpos_internal.
5259 * libio/iofsetpos64.c: Likewise.
5260 * libio/oldiofsetpos.c: Likewise.
5261 * libio/oldiofsetpos64.c: Likewise.
5262
5263 2002-11-04 Roland McGrath <roland@redhat.com>
5264
5265 * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
5266 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
5267 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
5268 * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
5269 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
5270 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
5271 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
5272 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
5273 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
5274 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
5275 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
5276 s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
5277 sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
5278 Remove these, no longer used.
5279
5280 2002-11-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5281
5282 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
5283 s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
5284 s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
5285 s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
5286 s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
5287 s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
5288 syscall stubs.
5289
5290 * sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
5291 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
5292 * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
5293 and __NR_pread.
5294 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
5295 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
5296 and __NR_pwrite.
5297 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
5298
5299 2002-11-03 Roland McGrath <roland@redhat.com>
5300
5301 * sysdeps/generic/ldsodefs.h (struct rtld_global): New member
5302 `_dl_tls_static_used'.
5303 * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
5304 (__libc_setup_tls): Initialize it. Let the initial value of
5305 _dl_tls_static_size indicate some surplus space in the computed value.
5306 * elf/dl-open.c (_dl_tls_static_size): New variable.
5307 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
5308 _dl_tls_static_used. Add some surplus space into _dl_tls_static_size.
5309 * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
5310 (CHECK_STATIC_TLS): Use it.
5311 * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
5312 closed objects occupied a trailing contiguous chunk of static TLS area.
5313
5314 2002-10-18 Bruno Haible <bruno@clisp.org>
5315
5316 * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
5317
5318 2002-11-04 Ulrich Drepper <drepper@redhat.com>
5319
5320 * libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and
5321 _wide_data->_IO_read_end if adjustment can be made in the current
5322 buffer.
5323
5324 * sysdeps/unix/sysv/linux/fexecve.c: New file.
5325
5326 * libio/bug-wfflush.c (do_test): Using fseek is not allowed when
5327 wide oriented streams are used.
5328
5329 * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
5330 service hasn't been used [PR libc/4744].
5331
5332 * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
5333 Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].
5334
5335 * manual/examples/dir.c: Don't include <stddef.h>.
5336 * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
5337 Reported by Frédéric Delanoy <delanoy_f@yahoo.com>.
5338
5339 2002-11-02 H.J. Lu <hjl@gnu.org>
5340
5341 * stdio-common/reg-printf.c: Include <stddef.h>.
5342
5343 2002-11-03 Ulrich Drepper <drepper@redhat.com>
5344
5345 * sysdeps/generic/libc-tls.c: Define _dl_tls_static_used.
5346
5347 * po/ca.po: Update from translation team.
5348 * po/es.po: Likewise.
5349
5350 * sysdeps/generic/segfault.c (catch_segfault): If HAVE_PROC_SELF
5351 is defined write out memory map.
5352 * sysdeps/unix/sysv/linux/segfault.c: New file.
5353
5354 2002-11-02 Roland McGrath <roland@redhat.com>
5355
5356 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use union type for
5357 pointers that can alias.
5358 Reported by Daniel Jacobowitz <drow@mvista.com>.
5359
5360 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: New file.
5361
5362 2002-11-02 Roland McGrath <roland@redhat.com>
5363
5364 * manual/filesys.texi (Reading/Closing Directory): Rewrite readdir_r
5365 description to be clearer and to say that *RESULT is set to ENTRY.
5366
5367 2002-10-30 Jakub Jelinek <jakub@redhat.com>
5368
5369 * posix/regexec.c (build_trtable): Alloca or malloc dests_node and
5370 dests_ch arrays together. Alloca or malloc dest_states,
5371 dest_states_word and dest_states_nl arrays together. Free memory on
5372 error exit.
5373
5374 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
5375
5376 * crypt/crypt_util.c (__init_des_r): Initialize current_salt
5377 and current_saltbits.
5378
5379 2002-11-02 Roland McGrath <roland@redhat.com>
5380
5381 * stdio-common/reg-printf.c: Include <stdlib.h>.
5382
5383 2002-11-02 H.J. Lu <hjl@gnu.org>
5384
5385 * sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set
5386 caller to EXTRA instead of execve.
5387
5388 2002-11-01 Roland McGrath <roland@redhat.com>
5389
5390 * sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional
5391 in place of [!(USE_TLS && HAVE___THREAD)].
5392 (__errno_location) [! USE___THREAD]: Define as strong, not weak.
5393
5394 2002-10-31 Roger Sayle <roger@eyesopen.com>
5395
5396 * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q):
5397 New macros.
5398 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
5399
5400 * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST
5401 without defining FP_ROUNDMODE.
5402
5403 2002-10-29 Jakub Jelinek <jakub@redhat.com>
5404
5405 * sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove.
5406 (__old_sys_siglist, __old_sys_sigabbrev): Use strong_alias and
5407 declare_symbol.
5408 * sysdeps/mach/hurd/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
5409 (OLD_SIGLIST_SIZE): Define.
5410 * sysdeps/unix/sysv/linux/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
5411 (OLD_SIGLIST_SIZE): Define.
5412 * sysdeps/unix/sysv/linux/arm/siglist.c: Remove.
5413
5414 2002-11-01 Jakub Jelinek <jakub@redhat.com>
5415
5416 * sysdeps/ia64/strncpy.S: Fix recovery code.
5417
5418 2002-10-30 Jakub Jelinek <jakub@redhat.com>
5419
5420 * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn):
5421 New macros.
5422 * elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove
5423 text_set_element.
5424 * elf/dl-libc.c (free_mem): Likewise.
5425 * iconv/gconv_conf.c (free_mem): Likewise.
5426 * iconv/gconv_db.c (free_mem): Likewise.
5427 * iconv/gconv_dl.c (free_mem): Likewise.
5428 * iconv/gconv_cache.c (free_mem): Likewise.
5429 * intl/finddomain.c (free_mem): Likewise.
5430 * intl/dcigettext.c (free_mem): Likewise.
5431 * locale/setlocale.c (free_mem): Likewise.
5432 * misc/fstab.c (fstab_free): Likewise.
5433 * nss/nsswitch.c (free_mem): Likewise.
5434 * posix/regcomp.c (free_mem): Likewise.
5435 * resolv/gai_misc.c (free_res): Likewise.
5436 * stdlib/fmtmsg.c (free_mem): Likewise.
5437 * sunrpc/clnt_perr.c (free_mem): Likewise.
5438 * sysdeps/generic/setenv.c (free_mem): Likewise.
5439 * sysdeps/unix/sysv/linux/shm_open.c (freeit): Likewise.
5440 * sysdeps/pthread/aio_misc.c (free_res): Likewise.
5441 * time/tzset.c (free_mem): Likewise.
5442 * malloc/mtrace.c (release_libc_mem): Add __libc_freeres_fn_section.
5443 * locale/loadarchive.c (_nl_archive_subfreeres): Likewise.
5444 * malloc/set-freeres.c (__libc_freeres): Likewise.
5445
5446 * login/getutent.c: Include stdlib.h instead of stddef.h.
5447 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
5448 (__getutent): Allocate buffer the first time it is run.
5449 * login/getutid.c: Include stdlib.h instead of stddef.h.
5450 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
5451 (__getutid): Allocate buffer the first time it is run.
5452 * login/getutline.c: Include stdlib.h instead of stddef.h.
5453 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
5454 (__getutline): Allocate buffer the first time it is run.
5455 * malloc/mtrace.c (malloc_trace_buffer): Change into char *.
5456 (mtrace): Allocate malloc_trace_buffer.
5457 * resolv/nsap_addr.c (inet_nsap_ntoa): Decrease size of tmpbuf.
5458 * resolv/ns_print.c (ns_sprintrrf): Decrease size of t.
5459 * string/strerror.c: Include libintl.h and errno.h.
5460 (buf): New variable.
5461 (strerror): Only allocate buffer if actually needed (unknown error).
5462 * time/tzfile.c (transitions): Add libc_freeres_ptr.
5463 (freeres): Remove.
5464
5465 2002-10-25 Jakub Jelinek <jakub@redhat.com>
5466
5467 * include/libc-symbols.h (libc_freeres_ptr): New macro.
5468 * malloc/set-freeres.c (__libc_freeres_ptrs): Define using
5469 symbol_set_define.
5470 (__libc_freeres): Free all pointers in that section.
5471 * Makerules (build-shlib): Add $(LDSEDCMD-$(@F:lib%.so=%).so) to sed
5472 commands when creating .lds script.
5473 (LDSEDCMD-c.so): New variable.
5474 * inet/rcmd.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
5475 (rcmd_af): Use strdup to allocate ahostbuf.
5476 * inet/rexec.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
5477 (rexec_af): Use strdup to allocate ahostbuf.
5478 * stdio-common/reg-printf.c (printf_funcs): Remove.
5479 (__printf_arginfo_table): Change into printf_arginfo_function **.
5480 Add libc_freeres_ptr.
5481 (__register_printf_function): Allocate __printf_arginfo_table
5482 and __printf_function_table the first time it is called.
5483 * stdio-common/printf-parse.h (__printf_arginfo_table): Change into
5484 printf_arginfo_function **.
5485 (parse_one_spec): Add __builtin_expect.
5486 * grp/fgetgrent.c (buffer): Add libc_freeres_ptr.
5487 (free_mem): Remove.
5488 * inet/getnetgrent.c (buffer): Add libc_freeres_ptr.
5489 (free_mem): Remove.
5490 * intl/localealias.c (libc_freeres_ptr): Define if !_LIBC.
5491 (string_space, map): Add libc_freeres_ptr.
5492 (free_mem): Remove.
5493 * misc/efgcvt.c (FCVT_BUFPTR): Add libc_freeres_ptr.
5494 (free_mem): Remove.
5495 * misc/mntent.c (getmntent_buffer): Add libc_freeres_ptr.
5496 (free_mem): Remove.
5497 * crypt/md5-crypt.c (libc_freeres_ptr): Define if !_LIBC.
5498 (buffer): Add libc_freeres_ptr.
5499 (free_mem): Remove for _LIBC.
5500 * nss/getXXbyYY.c (buffer): Add libc_freeres_ptr.
5501 (free_mem): Remove.
5502 * nss/getXXent.c (buffer): Add libc_freeres_ptr.
5503 (free_mem): Remove.
5504 * pwd/fgetpwent.c (buffer): Add libc_freeres_ptr.
5505 (free_mem): Remove.
5506 * resolv/res_hconf.c (ifaddrs): Add libc_freeres_ptr.
5507 (free_mem): Remove.
5508 * shadow/fgetspent.c (buffer): Add libc_freeres_ptr.
5509 (free_mem): Remove.
5510 * sysdeps/posix/ttyname.c (getttyname_name): Add libc_freeres_ptr.
5511 (free_mem): Remove.
5512 * sysdeps/unix/sysv/linux/getsysstats.c (mount_proc): Add
5513 libc_freeres_ptr.
5514 (free_mem): Remove.
5515 * sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add
5516 libc_freeres_ptr.
5517 (free_mem): Remove.
5518
5519 2002-10-30 Jakub Jelinek <jakub@redhat.com>
5520
5521 * malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias
5522 instead of duplicating the whole function in libc.
5523
5524 2002-10-31 Roland McGrath <roland@redhat.com>
5525
5526 * sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32):
5527 Renamed from __bswap_16 (typo fix). Reported by <dens@stl.sarov.ru>.
5528
5529 2002-10-30 Jakub Jelinek <jakub@redhat.com>
5530
5531 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each
5532 32bit-predefine when creating .new32 list and -U for each
5533 32bit-predefine when creating .new64 list.
5534 * sysdeps/unix/sysv/linux/x86_64/Makefile (32bit-predefine): New.
5535
5536 2002-10-29 Andreas Schwab <schwab@suse.de>
5537
5538 * sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not
5539 "testrtsig.h". Reported by Daniel Jacobowitz <dan@debian.org>.
5540
5541 2002-10-25 Roland McGrath <roland@redhat.com>
5542
5543 * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change.
5544 * sysdeps/unix/sysv/linux/configure: Regenerated.
5545
5546 * sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from
5547 _dl_starting_up decl.
5548
5549 2002-10-20 H.J. Lu <hjl@gnu.org>
5550
5551 * sysdeps/unix/sysv/linux/configure.in: Don't check
5552 /lib/modules/`uname -r`/build/include for kernel headers if
5553 cross compiling.
5554 * sysdeps/unix/sysv/linux/configure: Regenerated.
5555
5556 2002-10-25 Roland McGrath <roland@redhat.com>
5557
5558 * math/math.h (M_LOG2El): Correct the value.
5559 From Stephen L Moshier <steve@moshier.net>.
5560
5561 * sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED]
5562 conditional from __libc_multiple_libcs access. Remove kludge for weak
5563 symbol access with old compilers we no longer support.
5564 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
5565 * sysdeps/generic/libc-start.c (__libc_start_main): Likewise.
5566
5567 2002-10-25 Roland McGrath <roland@redhat.com>
5568
5569 * sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and
5570 implement SV_RESETHAND by translating it to SA_RESETHAND.
5571
5572 2002-10-23 Alexandre Oliva <aoliva@redhat.com>
5573
5574 * elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation
5575 type on ELF64 platforms.
5576
5577 2002-10-24 Ulrich Drepper <drepper@redhat.com>
5578
5579 * elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF.
5580
5581 * elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.
5582
5583 2002-10-24 Jakub Jelinek <jakub@redhat.com>
5584
5585 * elf/dl-misc.c: Include <sysdep.h>.
5586 (_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up.
5587
5588 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL,
5589 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
5590 (INLINE_SYSCALL): Use that.
5591 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL,
5592 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
5593 (INLINE_SYSCALL): Use that.
5594 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL,
5595 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
5596 (INLINE_SYSCALL): Use that.
5597 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Include
5598 dl-sysdep.h.
5599 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
5600 (__INTERNAL_SYSCALL_STRING): Define.
5601 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
5602 dl-sysdep.h.
5603 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
5604 (__INTERNAL_SYSCALL_STRING): Define.
5605 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL): Pass
5606 __SYSCALL_STRING to inline_syscall*.
5607 (INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
5608 New macros.
5609 (inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3,
5610 inline_syscall4, inline_syscall5, inline_syscall6): Add string
5611 argument.
5612
5613 2002-10-24 Roland McGrath <roland@redhat.com>
5614
5615 * sysdeps/generic/ldsodefs.h (_dl_starting_up): Declare it here.
5616 * sysdeps/unix/sysv/linux/init-first.c: Not here.
5617 * sysdeps/powerpc/elf/libc-start.c: Or here.
5618 * sysdeps/unix/sysv/aix/libc-start.c: Or here.
5619 * sysdeps/unix/sysv/aix/start-libc.c: Or here.
5620 * sysdeps/unix/sysv/aix/init-first.c: Or here.
5621 * sysdeps/generic/libc-start.c: Or here.
5622 * sysdeps/unix/sysv/linux/init-first.c (init): Protect _dl_starting_up
5623 access with [! SHARED].
5624 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
5625
5626 * libio/bug-wfflush.c: New file.
5627 * libio/Makefile (tests): Add bug-wfflush.
5628
5629 2002-10-23 Roland McGrath <roland@redhat.com>
5630
5631 * stdio-common/tst-fphex.c: New file.
5632 * stdio-common/Makefile (tests): Add tst-fphex.
5633 * sysdeps/generic/printf_fphex.c (__printf_fphex): Fix initialization
5634 of WNUMEND. Fix counting of decimal point in WIDTH. Print '0' pad
5635 chars always before the value digits.
5636 Reported by James Antill <james.antill@redhat.com>.
5637
5638 2002-10-24 Jakub Jelinek <jakub@redhat.com>
5639
5640 * posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.
5641 (free_mem): New function.
5642 * posix/Makefile (tests): Add bug-regex14. Add bug-regex14-mem
5643 if not cross compiling.
5644 (generated): Add bug-regex14-mem and bug-regex14.mtrace.
5645 (bug-regex14-ENV): Set.
5646 (bug-regex14-mem): New target.
5647 * posix/bug-regex14.c: New file.
5648
5649 2002-10-23 Roland McGrath <roland@redhat.com>
5650
5651 * elf/Makefile ($(objpfx)librtld.map): Use temporary file for output
5652 target, so we don't touch it when the link fails.
5653
5654 * libio/ftello.c (ftello): Use _IO_off64_t for type of POS.
5655 Check for the result overflowing off_t and fail with EOVERFLOW.
5656 * libio/ioftell.c (_IO_ftell): Likewise.
5657 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
5658
5659 * login/logwtmp.c (logwtmp): If sizeof ut_tv != sizeof struct timeval,
5660 use a temporary timeval on the stack for gettimeofday and copy it.
5661 * login/logout.c (logout): Likewise.
5662 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
5663
5664 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs):
5665 Use __SWORD_TYPE instead of int for member types.
5666 (struct statfs64): Likewise.
5667 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: New file.
5668 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: New file.
5669 * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: File removed.
5670 * sysdeps/unix/sysv/linux/sparc/bits/statfs.h: File removed.
5671 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: File removed.
5672
5673 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Moved to ...
5674 * sysdeps/unix/sysv/linux/bits/statvfs.h: ... here.
5675 (ST_NODIRATIME): Restore fixed value of 2048.
5676 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: File removed.
5677 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: File removed.
5678
5679 Rearranged <bits/types.h> definitions to reduce duplication.
5680 * sysdeps/generic/bits/types.h: Rewritten, using macros from
5681 <bits/wordsize.h> and new header <bits/typesizes.h>.
5682 * posix/Makefile (headers): Add bits/typesizes.h here.
5683 * sysdeps/generic/bits/typesizes.h: New file.
5684 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file.
5685 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file.
5686 * sysdeps/mach/hurd/bits/typesizes.h: New file.
5687 * sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed.
5688 * sysdeps/unix/sysv/linux/bits/types.h: File removed.
5689 * sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed.
5690 * sysdeps/unix/sysv/linux/mips/bits/types.h: File removed.
5691 * sysdeps/unix/sysv/linux/s390/bits/types.h: File removed.
5692 * sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed.
5693 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed.
5694 * posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include
5695 <bits/pthreadtypes.h> here, not in <bits/types.h>.
5696 * signal/signal.h: Likewise.
5697
5698 * streams/stropts.h: Include <bits/xtitypes.h>.
5699 * streams/Makefile (headers): Add bits/xtitypes.h here.
5700 * sysdeps/generic/bits/xtitypes.h: New file.
5701 * sysdeps/s390/bits/xtitypes.h: New file.
5702 * sysdeps/ia64/bits/xtitypes.h: New file.
5703 * sysdeps/x86_64/bits/xtitypes.h: New file.
5704
5705 * sysvipc/Makefile (headers): Add bits/ipctypes.h here.
5706 * sysdeps/generic/bits/ipctypes.h: New file.
5707 * sysdeps/mips/bits/ipctypes.h: New file.
5708 * sysdeps/gnu/bits/shm.h: Include <bits/ipctypes.h>.
5709 * sysdeps/gnu/bits/msq.h: Likewise.
5710 * sysvipc/sys/ipc.h: Likewise.
5711
5712 2002-10-22 Ulrich Drepper <drepper@redhat.com>
5713
5714 * elf/dl-load.c (struct filebuf): For buf element to have the
5715 alignment of ElfXX_Ehdr since this is what will be stored in it.
5716
5717 2002-10-22 Jakub Jelinek <jakub@redhat.com>
5718
5719 * locale/programs/locarchive.c (add_alias): Change locrec_offset arg
5720 into pointer to locrec_offset.
5721 (add_locale_to_archive): Adjust callers. Free normalized_name right
5722 before returning, not immediately after add_locale, pass it to
5723 add_alias if not NULL instead of name. Rename second normalized_name
5724 occurence to nnormalized_codeset_name.
5725
5726 * locale/programs/locarchive.c (enlarge_archive): Make sure
5727 string_size is always a multiple of 4.
5728 Reported by Andreas Schwab <schwab@suse.de>.
5729
5730 2002-10-21 Andreas Schwab <schwab@suse.de>
5731
5732 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set
5733 caller to EXTRA instead of execve, since the latter has a
5734 higher-priority implementation in linuxthreads.
5735
5736 2002-10-21 Roland McGrath <roland@redhat.com>
5737
5738 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static
5739 slotinfo list's len member to the proper size, not just 1.
5740 Initialize static_map.l_tls_initimage.
5741
5742 * elf/dl-open.c (dl_open_worker): Fix loop searching for
5743 dtv_slotinfo_list element containing new modules' l_tls_modid.
5744
5745 * elf/tst-tls9.c, elf/tst-tls9-static.c: New files.
5746 * elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files.
5747 * elf/Makefile (tests): Add tst-tls9.
5748 (tests-static): Add tst-tls9-static.
5749 (tst-tls9-static-ENV): New variable.
5750 ($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets.
5751
5752 * elf/dl-close.c (remove_slotinfo): Remove an assert; the number of
5753 modids used by partially loaded modules being closed can't be known.
5754
5755 2002-10-21 Isamu Hasegawa <isamu@yamato.ibm.com>
5756
5757 * posix/Makefile: Add a test case for the bug reported by Aharon
5758 Robbins <arnold@skeeve.com>.
5759 * posix/bug-regex13.c: New file.
5760 * posix/regcomp.c (peek_token_bracket): Skip the byte already read.
5761
5762 2002-10-21 Ulrich Drepper <drepper@redhat.com>
5763
5764 * csu/gmon-start.c: Pretty printing.
5765
5766 2002-10-19 Art Haas <ahaas@neosoft.com>
5767
5768 * configure.in: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS,
5769 add AC_HELP_STRING to all AC_ARG_WITH and AC_ARG_ENABLE macros,
5770 add autoconf quotes to the AC_CONFIG_AUX_DIR macro.
5771 * configure: Regenerated.
5772
5773 2002-10-19 Roland McGrath <roland@redhat.com>
5774
5775 * configure.in: Call AC_CONFIG_SUBDIRS with empty argument
5776 and then set $subdirs directly, because the new Autoconf breaks
5777 compatibility in every way imaginable and insists on whining
5778 about usage that worked since the dawn of time.
5779 * configure: Regenerated.
5780
5781 * configure: Regenerated (using Autoconf 2.54).
5782 * sysdeps/alpha/elf/configure: Likewise.
5783 * sysdeps/generic/configure: Likewise.
5784 * sysdeps/i386/elf/configure: Likewise.
5785 * sysdeps/ia64/elf/configure: Likewise.
5786 * sysdeps/mach/hurd/configure: Likewise.
5787 * sysdeps/mach/configure: Likewise.
5788 * sysdeps/unix/configure: Likewise.
5789 * sysdeps/unix/common/configure: Likewise.
5790 * sysdeps/unix/sysv/aix/configure: Likewise.
5791 * sysdeps/unix/sysv/linux/configure: Likewise.
5792 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
5793 * sysdeps/x86_64/elf/configure: Likewise.
5794
5795 * config.make.in: Nix completely-soft nonsense.
5796 * configure.in: Likewise. Under --without-fp, use nofpu subdirectory
5797 of machine directories instead of fpu subdirectory.
5798 * sysdeps/powerpc/soft-fp/Makefile: Remove cruft added in last change.
5799 * sysdeps/powerpc/nofpu/Makefile: Put it in this new file instead.
5800 * sysdeps/powerpc/soft-fp/sim-full.c: Moved to ...
5801 * sysdeps/powerpc/nofpu/sim-full.c: ... here.
5802 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: Moved to ...
5803 * sysdeps/powerpc/nofpu/fraiseexcpt.c: ... here.
5804 * sysdeps/powerpc/soft-fp/fegetexcept.c: Moved to ...
5805 * sysdeps/powerpc/nofpu/fegetexcept.c: ... here.
5806 * sysdeps/powerpc/soft-fp/fclrexcpt.c: Moved to ...
5807 * sysdeps/powerpc/nofpu/fclrexcpt.c: ... here.
5808 * sysdeps/powerpc/soft-fp/ftestexcept.c: Moved to ...
5809 * sysdeps/powerpc/nofpu/ftestexcept.c: ... here.
5810 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: Moved to ...
5811 * sysdeps/powerpc/nofpu/fgetexcptflg.c: ... here.
5812 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: Moved to ...
5813 * sysdeps/powerpc/nofpu/fsetexcptflg.c: ... here.
5814 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: Moved to ...
5815 * sysdeps/powerpc/nofpu/fedisblxcpt.c: ... here.
5816 * sysdeps/powerpc/soft-fp/feenablxcpt.c: Moved to ...
5817 * sysdeps/powerpc/nofpu/feenablxcpt.c: ... here.
5818 * sysdeps/powerpc/soft-fp/fegetenv.c: Moved to ...
5819 * sysdeps/powerpc/nofpu/fegetenv.c: ... here.
5820 * sysdeps/powerpc/soft-fp/fesetenv.c: Moved to ...
5821 * sysdeps/powerpc/nofpu/fesetenv.c: ... here.
5822 * sysdeps/powerpc/soft-fp/fegetround.c: Moved to ...
5823 * sysdeps/powerpc/nofpu/fegetround.c: ... here.
5824 * sysdeps/powerpc/soft-fp/fesetround.c: Moved to ...
5825 * sysdeps/powerpc/nofpu/fesetround.c: ... here.
5826 * sysdeps/powerpc/soft-fp/feupdateenv.c: Moved to ...
5827 * sysdeps/powerpc/nofpu/feupdateenv.c: ... here.
5828 * sysdeps/powerpc/soft-fp/feholdexcpt.c: Moved to ...
5829 * sysdeps/powerpc/nofpu/feholdexcpt.c: ... here.
5830 * sysdeps/powerpc/soft-fp/fenv_const.c: Moved to ...
5831 * sysdeps/powerpc/nofpu/fenv_const.c: ... here.
5832 * sysdeps/powerpc/soft-fp/libm-test-ulps: Moved to ...
5833 * sysdeps/powerpc/nofpu/libm-test-ulps: ... here.
5834 * sysdeps/powerpc/soft-fp/soft-supp.h: Moved to ...
5835 * sysdeps/powerpc/nofpu/soft-supp.h: ... here.
5836 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Moved to ...
5837 * sysdeps/powerpc/nofpu/Versions: ... here, new file.
5838
5839 2002-10-19 Bruno Haible <bruno@clisp.org>
5840
5841 * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file.
5842
5843 2002-10-18 Roland McGrath <roland@redhat.com>
5844
5845 * io/Makefile (routines): Add lchmod.
5846 * io/sys/stat.h [__USE_BSD] (lchmod): Declare it.
5847 * sysdeps/generic/lchmod.c: New file.
5848 * sysdeps/mach/hurd/lchmod.c: New file.
5849 * io/Versions (libc: GLIBC_2.3.2): New set, add lchmod.
5850
5851 2002-10-18 Art Haas <ahaas@neosoft.com>
5852
5853 * configure.in: Remove remaining AC_FD_CC macros, and replace
5854 AC_FD_MSG with AS_MESSAGE_FD.
5855
5856 2002-10-18 Roland McGrath <roland@redhat.com>
5857
5858 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix
5859 typos: VALUE -> FINALADDR.
5860
5861 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1)
5862 (inline_syscall_clobbers, inline_syscall0, inline_syscall1)
5863 (inline_syscall2, inline_syscall3, inline_syscall4, inline_syscall5)
5864 (inline_syscall6): Move these macros ...
5865 * sysdeps/unix/sysv/linux/alpha/sysdep.h: ... to here.
5866
5867 * configure.in (libc_link_dests, libc_link_sources): Remove these
5868 variables and the AC_LINK_FILES call.
5869
5870 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Fix last
5871 change to put new symbols here instead of in GLIBC_2.2.
5872 * sysdeps/powerpc/Subdirs: Move this file ...
5873 * sysdeps/powerpc/soft-fp/Subdirs: ... here.
5874
5875 2002-10-07 Roland McGrath <roland@redhat.com>
5876
5877 * sysdeps/generic/bits/time.h: Replaced with contents of the
5878 sysdeps/unix/sysv/linux/i386/bits/time.h file. All the following
5879 files were identical except for the absence of CLOCK_THREAD_CPUTIME_ID
5880 and CLOCK_PROCESS_CPUTIME_ID in .../linux/bits/time.h; adding these
5881 macros is ok even for architectures that don't now implement them.
5882 * sysdeps/mach/hurd/bits/time.h: File removed.
5883 * sysdeps/unix/sysv/linux/bits/time.h: File removed.
5884 * sysdeps/unix/sysv/linux/i386/bits/time.h: File removed.
5885 * sysdeps/unix/sysv/linux/ia64/bits/time.h: File removed.
5886 * sysdeps/unix/sysv/linux/sparc/bits/time.h: File removed.
5887 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: File removed.
5888
5889 2002-10-18 Jeff Bailey <jbailey@gnu.org>
5890
5891 * configure.in: Replace obsolete AC_OUTPUT syntax with
5892 AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio.
5893
5894 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for
5895 _AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE.
5896
5897 * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
5898 * sysdeps/alpha/elf/configure.in: Likewise.
5899 * sysdeps/i386/elf/configure.in: Likewise.
5900 * sysdeps/mach/hurd/configure.in: Likewise.
5901 * sysdeps/x86_64/elf/configure.in: Likewise.
5902
5903 * configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax.
5904
5905 * sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement.
5906 * sysdeps/generic/configure.in: Likewise.
5907 * sysdeps/i386/elf/configure.in: Likewise.
5908 * sysdeps/ia64/elf/configure.in: Likewise.
5909 * sysdeps/mach/configure.in: Likewise.
5910 * sysdeps/mach/hurd/configure.in: Likewise.
5911 * sysdeps/unix/configure.in: Likewise.
5912 * sysdeps/unix/common/configure.in: Likewise.
5913 * sysdeps/unix/sysv/aix/configure.in: Likewise.
5914 * sysdeps/unix/sysv/linux/configure.in: Likewise.
5915 * sysdeps/unix/sysv/linux/mips/configure.in: Likewise.
5916 * sysdeps/x86_64/elf/configure.in: Likewise.
5917
5918 * aclocal.m4: Use just the bits from AS_INIT that are needed for the
5919 GLIBC_PROVIDES. Use plain comment instead of HEADER-COMMENT so
5920 that it's obvious when extra autoconf machinery is being dragged in.
5921
5922 2002-10-18 Roland McGrath <roland@redhat.com>
5923
5924 * configure.in: Remove bogus echo included in
5925 2002-10-08 Aldy Hernandez <aldyh@redhat.com> change.
5926 * configure: Regenerated.
5927
5928 2002-10-18 Jakub Jelinek <jakub@redhat.com>
5929
5930 * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.
5931 (statfs_filesize_max): New function.
5932 * sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC,
5933 JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC,
5934 ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define.
5935 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use
5936 statfs_filesize_max.
5937 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
5938 * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed.
5939 * sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.
5940
5941 2002-10-17 Roland McGrath <roland@redhat.com>
5942
5943 * configure.in (MIG): Just AC_SUBST it here.
5944 * configure: Regenerated.
5945 * sysdeps/mach/configure.in (MIG): Do the AC_CHECK_TOOL here.
5946 Adding final - argument to all AC_CHECK_HEADER uses for .defs files.
5947 * sysdeps/mach/configure: Regenerated.
5948
5949 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE])
5950 and AC_PROVIDE([_AS_CR_PREPARE]).
5951
5952 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).
5953 Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]).
5954
5955 * elf/dl-support.c: Move _dl_tls_* variables to ...
5956 * sysdeps/generic/libc-tls.c: ... here.
5957
5958 * elf/dl-close.c (remove_slotinfo): Take new argument. If false,
5959 allow IDX to be one past the current last slotinfo entry.
5960 (_dl_close): Pass IMAP->l_init_called for that parameter.
5961
5962 2002-10-07 Andreas Schwab <schwab@suse.de>
5963
5964 * aclocal.m4: Fix for autoconf 2.53.
5965 * configure.in: Likewise. Require autoconf 2.53.
5966
5967 2002-10-08 Richard Henderson <rth@redhat.com>
5968
5969 * soft-fp/op-4.h: Handle carry correctly in
5970 __FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3,
5971 __FP_FRAC_SUB_4, __FP_FRAC_DEC_3, __FP_FRAC_DEC_4.
5972 * soft-fp/op-common.h: New macros _FP_DIV_MEAT_N_loop.
5973
5974 2002-10-08 Aldy Hernandez <aldyh@redhat.com>
5975
5976 * configure.in: Compute completely-soft.
5977 * config.make.in: Make completely-soft available to sub-makes.
5978 * sysdeps/powerpc/soft-fp/Makefile: Add gcc-single-routines and
5979 gcc-double-routines. Add sim-full.c. Add fenv_const and
5980 fe_nomask to libm-support.
5981 * sysdeps/powerpc/soft-fp/sim-full.c: New file.
5982 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: New file.
5983 * sysdeps/powerpc/soft-fp/fegetexcept.c: New file.
5984 * sysdeps/powerpc/soft-fp/fclrexcpt.c: New file.
5985 * sysdeps/powerpc/soft-fp/ftestexcept.c: New file.
5986 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: New file.
5987 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: New file.
5988 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: New file.
5989 * sysdeps/powerpc/soft-fp/feenablxcpt.c: New file.
5990 * sysdeps/powerpc/soft-fp/fegetenv.c: New file.
5991 * sysdeps/powerpc/soft-fp/fesetenv.c: New file.
5992 * sysdeps/powerpc/soft-fp/fegetround.c: New file.
5993 * sysdeps/powerpc/soft-fp/fesetround.c: New file.
5994 * sysdeps/powerpc/soft-fp/feupdateenv.c: New file.
5995 * sysdeps/powerpc/soft-fp/feholdexcpt.c: New file.
5996 * sysdeps/powerpc/soft-fp/fenv_const.c: New file.
5997 * sysdeps/powerpc/soft-fp/libm-test-ulps: New file.
5998 * sysdeps/powerpc/soft-fp/soft-supp.h: New file.
5999 * sysdeps/powerpc/soft-fp/Versions: Add libgcc soft-float
6000 symbols. Add __sim_disabled_exceptions, __sim_exceptions,
6001 __sim_round_mode.
6002 * sysdeps/powerpc/soft-float/Dist: Add sim-full.c, fenv_const.c.
6003 * sysdeps/powerpc/soft-float/sfp-machine.h: Define
6004 FP_HANDLE_EXCEPTIONS.
6005 Define FP_ROUNDMODE.
6006 Redefine FP_* macros to correspond to the FE_* bit positions.
6007 Define FP_DIV_MEAT_S to _FP_DIV_MEAT_1_loop.
6008 Define externs for __sim_exceptions, __sim_disabled_exceptions,
6009 __sim_round_mode, __simulate_exceptions.
6010 * sysdeps/powerpc/fpu/bits/fenv.h: Move file from here...
6011 * sysdeps/powerpc/bits/fenv.h: ...to here.
6012
6013 2002-10-06 Jakub Jelinek <jakub@redhat.com>
6014
6015 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
6016 Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time.
6017 Use __builtin_expect for R_PPC_ADDR24 overflow check. Fix
6018 R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use
6019 __builtin_expect.
6020
6021 2002-10-15 Jakub Jelinek <jakub@redhat.com>
6022
6023 * include/resolv.h (__libc_res_nquery, __libc_res_nsearch,
6024 __libc_res_nsend): New prototypes.
6025 * resolv/res_query.c (QUERYSIZE): Define.
6026 (__libc_res_nquery): Renamed from res_nquery. Added answerp
6027 argument. Allocate only QUERYSIZE bytes first, if res_nmkquery
6028 fails use MAXPACKET buffer. Call __libc_res_nsend instead of
6029 res_nsend, pass answerp.
6030 (res_nquery): Changed into wrapper around __libc_res_nquery.
6031 (__libc_res_nsearch): Renamed from res_nsearch. Added answerp
6032 argument. Call __libc_res_nquerydomain and __libc_res_nquery
6033 instead of the non-__libc_ variants, pass them answerp.
6034 (res_nsearch): Changed into wrapper around __libc_res_nsearch.
6035 (__libc_res_nquerydomain): Renamed from res_nquerydomain.
6036 Added answerp argument. Call __libc_res_nquery instead of
6037 res_nquery, pass answerp.
6038 (res_nquerydomain): Changed into wrapper around
6039 __libc_res_nquerydomain.
6040 * resolv/res_send.c: Include sys/ioctl.h.
6041 (MAXPACKET): Define.
6042 (send_vc): Change arguments. Reallocate answer buffer if it is
6043 too small.
6044 (send_dg): Likewise.
6045 (__libc_res_nsend): Renamed from res_nsend. Added ansp argument.
6046 Reallocate answer buffer if it is too small and hooks are in use.
6047 Adjust calls to send_vc and send_dg.
6048 (res_nsend): Changed into wrapper around __libc_res_nsend.
6049 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate
6050 just 1K answer buffer on the stack, use __libc_res_nsearch instead
6051 of res_nsearch.
6052 (_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery.
6053 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
6054 (_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch.
6055 * resolv/gethnamaddr.c (gethostbyname2): Likewise.
6056 (gethostbyaddr): Similarly with __libc_res_nquery.
6057 * resolv/Versions (libresolv): Export __libc_res_nquery and
6058 __libc_res_nsearch at GLIBC_PRIVATE.
6059
6060 2002-10-17 Roland McGrath <roland@redhat.com>
6061
6062 * configure.in: Grok --without-__thread and disable HAVE___THREAD.
6063 * configure: Regenerated.
6064
6065 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS
6066 before performing the reloc, not after.
6067 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
6068
6069 2002-10-17 Ulrich Drepper <drepper@redhat.com>
6070
6071 * locale/programs/locale.c (write_locales): Use 'm' flag in fopen call.
6072 * locale/programs/linereader.c (lr_open): Likewise.
6073 * locale/programs/charmap-dir.c (charmap_open): Likewise.
6074 * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
6075
6076 2002-10-17 Isamu Hasegawa <isamu@yamato.ibm.com>
6077
6078 * posix/bug-regex11.c: Add a test case for the bug reported by
6079 Paolo Bonzini <bonzini@gnu.org>.
6080 * posix/regexec.c (sift_states_bkref): Use correct destination of
6081 the back reference.
6082
6083 2002-10-17 Roland McGrath <roland@redhat.com>
6084
6085 * elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS.
6086 * elf/dl-reloc.c (_dl_relocate_object: CHECK_STATIC_TLS): New macro
6087 to signal error if an IE-model TLS reloc resolved to a dlopen'd module.
6088 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
6089 Call it after performing TPOFF relocs.
6090 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
6091 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
6092 * elf/dl-conflict.c (CHECK_STATIC_TLS): New macro (no-op).
6093
6094 * elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash
6095 when closing a partially-initialized object.
6096
6097 * elf/dl-load.c (_dl_map_object_from_fd) [! USE_TLS]: Call lose
6098 instead of _dl_fatal_printf when we see PT_TLS.
6099
6100 * Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F))
6101 instead of $(libof-$<).
6102
6103 2002-10-16 Roland McGrath <roland@redhat.com>
6104
6105 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed.
6106 instead of += to append, to be sure $(lib) gets expanded at defn time.
6107 (libof-$(cpp-src)): New variable, define this instead.
6108 * extra-lib.mk (cpp-srcs-left): Reduce duplication in include setup.
6109 (lib): Don't use override.
6110 (CPPFLAGS-$(lib)): New variable, put -D's here.
6111 * Makeconfig (CPPFLAGS): Use basename fn for CPPFLAGS-basename.
6112 Also add $(CPPFLAGS-LIB) before the file-specific flags, for each
6113 LIB found by $(libof-*) for basename, target, or source.
6114 * Makerules (CPPFLAGS-nonlib): New variable.
6115 * nscd/Makefile (lib): Set to nonlib when using cppflags-iterator.mk.
6116 * locale/Makefile (lib): Likewise.
6117 * sunrpc/Makefile (lib): Likewise.
6118
6119 * sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ...
6120 * sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here.
6121 * sysdeps/unix/sysv/linux/pathconf.h: New file.
6122 (statfs_link_max): New function, guts from fpathconf.c.
6123 * sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that.
6124 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
6125 * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten
6126 to use the linux/pathconf.c code by #include rather than duplication.
6127 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise.
6128
6129 2002-10-16 Jakub Jelinek <jakub@redhat.com>
6130
6131 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
6132 Use __libc_errno only for libc itself.
6133
6134 2002-10-16 Andreas Jaeger <aj@suse.de>
6135
6136 * sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access.
6137
6138 2002-10-16 Ulrich Drepper <drepper@redhat.com>
6139
6140 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
6141 Use __libc_errno only for libc itself.
6142
6143 2002-10-15 Roland McGrath <roland@redhat.com>
6144 Jakub Jelinek <jakub@redhat.com>
6145
6146 * sysdeps/unix/sysv/linux/Makefile
6147 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from
6148 sparc/Makefile to produce a bi-arch file as needed.
6149 That's now parameterized by the variable $(64bit-predefine).
6150 Use LC_ALL=C for `comm' commands in that rule.
6151 No longer conditional on [$(no_syscall_list_h)].
6152 * sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules.
6153 (64bit-predefine): New variable.
6154 * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
6155 * sysdeps/unix/sysv/linux/s390/Makefile: New file.
6156 * sysdeps/unix/sysv/linux/powerpc/Makefile
6157 (64bit-predefine): New variable.
6158
6159 2002-10-15 Roland McGrath <roland@redhat.com>
6160
6161 * sysdeps/unix/sysv/linux/Makefile
6162 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d)
6163
6164 * login/utmp-private.h: Declare __libc_utmp_lock.
6165 * sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once
6166 and call __libc_utmp_jump_table functions directly, instead of using
6167 __setutent et al.
6168
6169 * sysdeps/unix/sysv/linux/configure.in: Use case instead of if.
6170 * sysdeps/unix/sysv/linux/configure: Regenerated.
6171
6172 * sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>.
6173 (struct lastlog) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
6174 Use int32_t for ll_time.
6175 (struct utmp) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
6176 Use int32_t instead of long int for ut_session.
6177 Use an anonymous struct with 32-bit fields for ut_tv.
6178 * sysdeps/gnu/bits/utmpx.h: Include <bits/wordsize.h>.
6179 (struct utmpx) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: Do the same
6180 here as in utmp.h for `struct utmp'.
6181 * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: File removed.
6182 * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: File removed.
6183 * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: File removed.
6184 * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: File removed.
6185 * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: File removed.
6186 * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: File removed.
6187
6188 * sysdeps/unix/sysv/linux/bits/resource.h: Replaced with the contents
6189 of the sysdeps/unix/sysv/linux/i386/bits/resource.h file.
6190 All the following files were identical or equivalent to it.
6191 * sysdeps/unix/sysv/linux/i386/bits/resource.h: File removed.
6192 * sysdeps/unix/sysv/linux/arm/bits/resource.h: File removed.
6193 * sysdeps/unix/sysv/linux/cris/bits/resource.h: File removed.
6194 * sysdeps/unix/sysv/linux/hppa/bits/resource.h: File removed.
6195 * sysdeps/unix/sysv/linux/ia64/bits/resource.h: File removed.
6196 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: File removed.
6197 * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: File removed.
6198 * sysdeps/unix/sysv/linux/s390/bits/resource.h: File removed.
6199 * sysdeps/unix/sysv/linux/sh/bits/resource.h: File removed.
6200 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: File removed.
6201
6202 * sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t
6203 instead of int for msg_iovlen, instead of socklen_t for msg_controllen.
6204 Other than the previously incorrect sign of msg_iovlen, this is a
6205 no-op on 32-bit platforms. On 64-bit platforms it makes this header
6206 match their layouts as well, so the following are now identical to it.
6207 * sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed.
6208 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed.
6209 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed.
6210 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed.
6211 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed.
6212
6213 2002-10-15 Ulrich Drepper <drepper@redhat.com>
6214
6215 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
6216 Define for 2.4+ kernels.
6217
6218 * sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which
6219 are known to have the vfork syscall. Don't confuse the CPUs
6220 branch prediction unit by jumping to the return address.
6221
6222 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add
6223 support for reiserfs and xfs.
6224
6225 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for
6226 XFS link count.
6227 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC
6228 and XFS_LINK_MAX.
6229 Patch by Eric Sandeen <sandeen@sgi.com> [PR libc/4706].
6230
6231 2002-10-16 Jakub Jelinek <jakub@redhat.com>
6232
6233 * include/libc-symbols.h (attribute_tls_model_ie): Define.
6234 * include/errno.h (errno): Define to __libc_errno in libc.so.
6235 Add attribute_tls_model_ie.
6236 * include/netdb.h (h_errno): Define to __libc_h_errno in libc.so.
6237 Add attribute_tls_model_ie.
6238 * include/resolv.h (_res): Define to __libc_res in libc.so. Add
6239 attribute_tls_model_ie.
6240 * inet/herrno.c (__libc_h_errno): Add hidden alias to h_errno.
6241 (h_errno): Define.
6242 * resolv/res_libc.c (__libc_res): Add hidden alias to _res.
6243 (_res): Define.
6244 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_define): Add
6245 attribute_tls_model_ie.
6246 * sysdeps/generic/errno-loc.c (errno): Only undefine if not using
6247 __thread.
6248 * sysdeps/generic/errno.c (__libc_errno): Add hidden alias to errno.
6249 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use
6250 __libc_errno in USE___THREAD case.
6251 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
6252 Likewise.
6253 * configure.in (HAVE_TLS_MODEL_ATTRIBUTE): Check for
6254 __attribute__((tls_model (""))).
6255 * configure: Rebuilt.
6256 * config.h.in (HAVE_TLS_MODEL_ATTRIBUTE): Add.
6257
6258 2002-10-15 Ulrich Drepper <drepper@redhat.com>
6259
6260 * timezone/asia: Update from tzdata2002d.
6261 * timezone/australasia: Likewise.
6262 * timezone/iso3166.tab: Likewise.
6263 * timezone/southamerica: Likewise.
6264 * timezone/zone-tab: Likewise.
6265
6266 2002-10-15 Roland McGrath <roland@redhat.com>
6267
6268 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls) [TLS_TCB_AT_TP]:
6269 Adjust TCB pointer before calling free, so we get the whole block.
6270
6271 2002-10-14 Roland McGrath <roland@redhat.com>
6272
6273 * sysdeps/unix/sysv/linux/x86_64/sigaction.c
6274 [HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt
6275 extern using attribute_hidden instead of static, avoids warning.
6276
6277 2002-10-09 Jakub Jelinek <jakub@redhat.com>
6278
6279 * sysdeps/unix/sysv/linux/configure.in: Use */lib64 for s390x too.
6280 * sysdeps/unix/sysv/linux/configure: Rebuilt.
6281
6282 2002-10-14 Ulrich Drepper <drepper@redhat.com>
6283
6284 * po/sv.po: Update from translation team.
6285
6286 2002-10-12 H.J. Lu <hjl@gnu.org>
6287
6288 * sunrpc/thrsvc.c (PROCQUIT): New.
6289 (struct rpc_arg): New.
6290 (dispatch): Call exit (0) if request->rq_proc == PROCQUIT.
6291 (test_one_call): Take struct rpc_arg * instead of CLIENT *c.
6292 (thread_wrapper): Modified for struct rpc_arg * and call PROCQUIT.
6293 (main): Modified for struct rpc_arg *.
6294
6295 2002-10-14 Ulrich Drepper <drepper@redhat.com>
6296
6297 * dirent/scandir.c: Rearrange code a bit to reduce binary size.
6298
6299 2002-10-14 Jakub Jelinek <jakub@redhat.com>
6300
6301 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Include tls.h.
6302 (SYSCALL_ERROR_HANDLER): Use RTLD_PRIVATE_ERRNO sequence
6303 in ld.so even if __thread is supported.
6304
6305 2002-10-13 Jakub Jelinek <jakub@redhat.com>
6306
6307 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
6308 Add hack to prevent the compiler from clobbering the signal context.
6309 * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
6310 Likewise.
6311 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter):
6312 Likewise.
6313
6314 2002-10-14 Andreas Jaeger <aj@suse.de>
6315
6316 * sysdeps/mips/fpu/libm-test-ulps: Regenerated by
6317 Guido Guenther <agx@sigxcpu.org>.
6318
6319 2002-10-14 Ulrich Drepper <drepper@redhat.com>
6320
6321 * po/sk.po: Update from translation team.
6322
6323 2002-09-26 Roland McGrath <roland@redhat.com>
6324
6325 * elf/dl-load.c (_dl_dst_count, _dl_dst_substitute): Handle $LIB
6326 dynamic string tag.
6327 * elf/Makefile ($(objpfx)trusted-dirs.st): Make the output define
6328 DL_DST_LIB based on $(slibdir).
6329
6330 2002-10-13 Roland McGrath <roland@frob.com>
6331
6332 * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command.
6333
6334 * sysdeps/mach/hurd/getresuid.c: New file.
6335 * sysdeps/mach/hurd/getresgid.c: New file.
6336 * sysdeps/mach/hurd/setresuid.c: New file.
6337 * sysdeps/mach/hurd/setresgid.c: New file.
6338
6339 * posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
6340 setresgid): Declare them.
6341 * NEWS: Mention it.
6342 * include/unistd.h
6343 (__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
6344 add libc_hidden_proto.
6345 * posix/Versions (libc: GLIBC_2.3.2): New set. Add
6346 getresuid, getresgid, setresuid, setresgid here.
6347 * Versions.def (libc): Define GLIBC_2.3.2 set.
6348 * sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
6349 Add libc_hidden_def.
6350 * sysdeps/generic/getresgid.c (__getresgid): Likewise.
6351 * sysdeps/generic/setresgid.c: New file.
6352 * sysdeps/generic/setresuid.c: New file.
6353 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6354 (sysdep_routines): Don't add getresuid and getresgid here.
6355 * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
6356 (sysdep_routines): Don't add setresuid and setresgid here.
6357 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
6358 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
6359 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
6360 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
6361 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
6362 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
6363 * posix/Makefile (routines): Add them all here instead.
6364 * sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
6365 __getresuid. Add libc_hidden_def for that, and weak alias to old name.
6366 * sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
6367 __getresgid. Add libc_hidden_def for that, and weak alias to old name.
6368 * sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
6369 [! __NR_setresuid]: Include generic file.
6370 * sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
6371 __setresgid. Add libc_hidden_def for that, and weak alias to old name.
6372 [! __NR_setresuid]: Include generic file.
6373 * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
6374 Caller is - now, not EXTRA.
6375 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
6376 (setresuid, setresgid, getresuid, getresgid): Likewise.
6377 * sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
6378 Add these calls here.
6379 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
6380 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6381 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6382 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6383 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6384 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
6385 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
6386 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
6387 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6388
6389 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6390 (sysdep_routines): Add setfsuid and setfsgid here.
6391 * sysdeps/unix/sysv/linux/arm/Makefile: Not here.
6392 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
6393 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
6394 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
6395 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
6396 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
6397 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
6398 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
6399
6400 * hurd/errno.c: Renamed to ...
6401 * hurd/errno-loc.c: ... this.
6402 * hurd/Makefile (routines): errno -> errno-loc
6403
6404 2002-10-13 Ulrich Drepper <drepper@redhat.com>
6405
6406 * po/de.po: Update from translation team.
6407
6408 * MakeTAGS: Add -E flag to xgettext runs.
6409
6410 2002-10-12 Ulrich Drepper <drepper@redhat.com>
6411
6412 * po/fr.po: Update from translation team.
6413
6414 * sysdeps/posix/system.c: Remove support for old and buggy SCO systems.
6415 Optimize a bit for use in glibc.
6416
6417 2002-10-12 Roland McGrath <roland@redhat.com>
6418
6419 * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds.
6420 Some machines are slow. Guido Guenther <agx@sigxcpu.org> has one.
6421
6422 2002-10-12 Ulrich Drepper <drepper@redhat.com>
6423
6424 * po/sv.po: Update from translation team.
6425
6426 2002-10-11 Isamu Hasegawa <isamu@yamato.ibm.com>
6427
6428 * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling
6429 OP_CONTEXT_NODE.
6430 (regfree): Likewise.
6431 (create_initial_state): Likewise.
6432 (analyze): Remove the substitutions which became useless.
6433 (calc_first): Likewise.
6434 (calc_epsdest): Use edests of OP_BACK_REF in case that it has
6435 epsilon destination.
6436 (duplicate_node_closure): New function.
6437 (duplicate_node): Remove the handling OP_CONTEXT_NODE.
6438 (calc_inveclosure): Likewise.
6439 (calc_eclosure): Likewise.
6440 (calc_eclosure_iter): Invoke duplicate_node_closure instead of
6441 direct invocation of duplicate_node.
6442 (parse): Don't use comma operator in the return to avoid compiler
6443 warning.
6444 (parse_reg_exp): Likewise.
6445 (parse_branch): Likewise.
6446 (parse_expression): Likewise.
6447 (parse_sub_exp): Likewise.
6448 (parse_dup_op): Likewise.
6449 * posix/regex_internal.c (re_dfa_add_node): Remove the substitutions
6450 which became useless.
6451 (create_ci_newstate): Remove the handling OP_CONTEXT_NODE.
6452 (create_cd_newstate): Likewise.
6453 * posix/regex_internal.h (re_token_type_t): Remove the obsolete type.
6454 (re_token_t): Likewise.
6455 (re_dfa_t): Likewise.
6456 (re_node_set_remove): New macro.
6457 * posix/regexec.c (check_matching): Remove the handling
6458 OP_CONTEXT_NODE.
6459 (check_halt_node_context): Likewise.
6460 (proceed_next_node): Likewise.
6461 (pop_fail_stack): Fix the memory leak.
6462 (set_regs): Likewise.
6463 (free_fail_stack_return): New function.
6464 (sift_states_backward): Fix the memory leak. Remove the handling
6465 OP_CONTEXT_NODE.
6466 (update_cur_sifted_state): Append some if clause to avoid redundant
6467 call.
6468 (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a
6469 back reference.
6470 (check_dst_limits): Remove the handling OP_CONTEXT_NODE.
6471 (check_subexp_limits): Likewise.
6472 (search_subexp): Likewise.
6473 (sift_states_bkref): Likewise.
6474 (transit_state_mb): Likewise.
6475 (transit_state_bkref_loop): Likewise.
6476 (transit_state_bkref_loop): Likewise.
6477 (group_nodes_into_DFAstates): Likewise.
6478 (check_node_accept): Likewise.
6479 (sift_ctx_init): Add initializing.
6480
6481 2002-10-12 Ulrich Drepper <drepper@redhat.com>
6482
6483 * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use
6484 __builtin_expect.
6485
6486 2002-10-11 Ulrich Drepper <drepper@redhat.com>
6487
6488 * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
6489 duplicated variable c.
6490
6491 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
6492 if possible.
6493
6494 * sysdeps/unix/sysv/linux/i386/sysdep.h
6495 (INTERNAL_SYSCALL_ERROR_P): New define.
6496 (INTERNAL_SYSCALL_ERRNO): Likewise.
6497
6498 * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
6499 Add hack to prevent the compiler from clobbering the signal context.
6500
6501 2002-10-11 Roland McGrath <roland@redhat.com>
6502
6503 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
6504 Fix typos.
6505
6506 * sysdeps/generic/dl-lookupcfg.h: Include <tls.h>.
6507 * sysdeps/sh/dl-lookupcfg.h: File removed.
6508 * sysdeps/i386/dl-lookupcfg.h: File removed.
6509
6510 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
6511 missing labels and ; from last change.
6512
6513 * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
6514 number literals, so they are doubles instead of ints.
6515
6516 2002-10-09 Roland McGrath <roland@redhat.com>
6517
6518 * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
6519 changed from [USE_TLS && HAVE___THREAD].
6520
6521 * sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
6522 Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
6523 * sysdeps/x86_64/dl-machine.h
6524 (elf_machine_type_class, elf_machine_rela): Likewise.
6525 * sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
6526 Likewise.
6527
6528 * include/link.h (struct link_map): Remove member l_tls_tp_initialized.
6529 * elf/rtld.c (_dl_start_final, dl_main): Don't use it.
6530 (_dl_start): Conditionalize PT_TLS check on [USE___THREAD].
6531
6532 * sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
6533 instead of ___tls_get_addr.
6534 (___tls_get_addr_internal): Add attribute_hidden to decl.
6535
6536 * sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
6537 _dl_error_catch_tsd.
6538 * elf/rtld.c (startup_error_tsd): New function.
6539 (dl_main): Point _dl_error_catch_tsd at that.
6540 * elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
6541 use new function pointer instead.
6542 * elf/dl-tsd.c: New file.
6543 * elf/Makefile (routines): Add it.
6544
6545 2002-10-07 Roland McGrath <roland@redhat.com>
6546
6547 * elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
6548 writev if it's available. Otherwise if [RTLD_PRIVATE_ERRNO] then
6549 take _dl_load_lock around calling __writev.
6550
6551 * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
6552 (INLINE_SYSCALL): Use that.
6553
6554 * sysdeps/generic/dl-sysdep.h: New file.
6555 * sysdeps/mach/hurd/dl-sysdep.h: New file.
6556 * sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
6557 * include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
6558 [RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
6559 access it directly.
6560 * elf/dl-minimal.c (__errno_location): Removed.
6561 * sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
6562 Use GOTOFF access for errno.
6563 * sysdeps/unix/sysv/linux/i386/sysdep.h
6564 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
6565
6566 * sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
6567 Use PC-relative access for errno.
6568 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
6569 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
6570
6571 * include/tls.h: New file.
6572 (USE___THREAD): New macro.
6573 Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
6574 libc or libpthread.
6575 * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
6576 changed from [USE_TLS && HAVE___THREAD].
6577 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
6578 * sysdeps/unix/i386/sysdep.S: Likewise.
6579 * sysdeps/unix/x86_64/sysdep.S: Likewise.
6580 * include/errno.h: Likewise.
6581 * include/netdb.h: Likewise.
6582 * include/resolv.h: Likewise.
6583
6584 * sysdeps/generic/errno.c: New file.
6585 * csu/Makefile (aux): New variable, list errno.
6586 * sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
6587 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
6588 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
6589 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
6590 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
6591 * sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
6592 * sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
6593 * sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
6594 * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
6595 * sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
6596 * sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
6597 * sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
6598 * sysdeps/unix/alpha/sysdep.S: Likewise.
6599 * sysdeps/generic/start.c: Likewise.
6600 * sysdeps/unix/start.c: Likewise.
6601 * sysdeps/unix/arm/start.c: Likewise.
6602 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
6603 * sysdeps/unix/sparc/start.c: Likewise.
6604 * sysdeps/unix/sysv/irix4/start.c: Likewise.
6605 * sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.
6606
6607 * manual/search.texi (Tree Search Function, Hash Search Function):
6608 Mention search.h clearly.
6609
6610 2002-10-05 Roland McGrath <roland@redhat.com>
6611
6612 * elf/dl-fxstat64.c: File removed.
6613 * elf/dl-xstat64.c: File removed.
6614 * elf/Makefile (rtld-routines): Remove them.
6615 * sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
6616 Instead, use strong_alias instead of versioned_symbol in the
6617 !SHLIB_COMPAT case.
6618 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
6619 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
6620
6621 * include/shlib-compat.h
6622 (SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
6623 [! NOT_IN_libc] (IS_IN_libc): Define it.
6624 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
6625 * elf/Makefile (CPPFLAGS-.os): Likewise.
6626
6627 * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
6628 Return the status instead of calling exit.
6629
6630 * Makeconfig (CFLAGS): Prepend -std=gnu99.
6631 * Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
6632 Remove superfluous rm command, whose @ plus make bugs hid
6633 all these commands from the make output.
6634
6635 * include/stubs-prologue.h: New file. Give #error under #ifdef _LIBC.
6636 * Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
6637 Use that file's contents instead of literal echo's for the prologue.
6638 * include/features.h: Include <gnu/stubs.h> unconditionally.
6639 * include/gnu/stubs.h: New file.
6640
6641 2002-09-30 Roland McGrath <roland@redhat.com>
6642
6643 * elf/rtld-Rules: New file.
6644 * elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
6645 $(objpfx)rtld-libc.a): New targets.
6646 (generated): Add them.
6647 (reloc-link): Remove -o $@ from the variable.
6648 ($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
6649 (distribute): Add rtld-Rules.
6650 (CPPFLAGS-.os): Define this instead of CFLAGS-.os.
6651 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
6652 (common-mostlyclean, common-clean): Clean up rtld-* files.
6653 * sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.
6654
6655 2002-10-11 Roland McGrath <roland@redhat.com>
6656
6657 * sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in
6658 now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED.
6659
6660 * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
6661 proper set of no-op insn prefixes.
6662
6663 * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members.
6664
6665 2002-10-11 Ulrich Drepper <drepper@redhat.com>
6666
6667 * sysdeps/unix/sysv/linux/execve.c: Don't try calling
6668 __pthread_kill_other_threads_np.
6669
6670 * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls.
6671
6672 2002-10-08 Roland McGrath <roland@redhat.com>
6673
6674 * locale/newlocale.c (__newlocale): If setting all categories to "C",
6675 just return &_nl_C_locobj instead of copying it.
6676 * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj.
6677 * locale/duplocale.c (__duplocale): Likewise.
6678
6679 2002-10-07 Roland McGrath <roland@frob.com>
6680
6681 * config.h.in (HAVE_I386_SET_GDT): New #undef.
6682 * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt.
6683 * sysdeps/mach/configure: Regenerated.
6684
6685 2002-10-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6686
6687 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
6688 Add all necessary register outputs for syscall-clobbered registers.
6689
6690 2002-10-02 David Mosberger <davidm@hpl.hp.com>
6691
6692 * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for
6693 Itanium 2 (and Itanium).
6694 Fix unwind directives and make it fit in 80 columns.
6695 * sysdeps/ia64/memset.S: Likewise.
6696 * sysdeps/ia64/memcpy.S: Likewise.
6697 Move jump table to .rodata section.
6698
6699 2002-10-03 Roland McGrath <roland@frob.com>
6700
6701 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add
6702 clobbers to asm.
6703
6704 2002-10-10 Andreas Jaeger <aj@suse.de>
6705
6706 * sysdeps/x86_64/_mcount.S: Restore correct registers.
6707
6708 2002-10-10 Ulrich Drepper <drepper@redhat.com>
6709
6710 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect.
6711
6712 2002-10-09 Ulrich Drepper <drepper@redhat.com>
6713
6714 * sysdeps/generic/ldsodefs.h: Remove attribute_hidden from
6715 _dl_allocate_tls_init. Add rtld_hidden_proto.
6716 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add
6717 rtld_hidden_def.
6718 * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init.
6719
6720 * version.h (VERSION): Bump to 2.3.1.
6721
6722 * Make-dist: Add back one of the tar invocations removed before.
6723
6724 * stdlib/Makefile (distribute): Add allocalim.h.
6725
6726 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
6727 (__libc_tsd_address): Use correct variable name.
6728 Patch by Stefan Jones <stefan.jones@multigig.com>.
6729
6730 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;.
6731 Reported by edwardsg@sgi.com [PR libc/4678].
6732
6733 * Versions.def (libc): Add GLIBC_2.3.1.
6734 (libpthread): Add GLIBC_2.3.1.
6735
6736 * include/signal.h: Add libc_hidden_proto for __sigwait, __sigwaitinfo,
6737 and __sigtimedwait.
6738 * signal/Versions: Add __sigtimedwait, __sigwait, and __sigwaitinfo.
6739 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Add
6740 libc_hidden_def.
6741 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
6742 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
6743
6744 * include/sys/msg.h: Declare __libc_msgrcv and __libc_msgsnd.
6745 * sysdeps/unix/sysv/linux/msgrcv.c (__msgrcv): Rename to __libc_msgrcv
6746 and make old name an alias.
6747 * sysdeps/unix/sysv/linux/msgsnd.c (__msgsnd): Rename to __libc_msgsnd
6748 and make old name an alias.
6749 * sysvipc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_msgrcv and
6750 __libc_msgsnd.
6751
6752 * include/sys/uio.h: Declare __libc_readv and __libc_writev.
6753 * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and
6754 __libc_writev.
6755 * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make
6756 old name an alias.
6757 * sysdeps/posix/readv.c: Likewise
6758 * sysdeps/unix/sysv/aix/readv.c: Likewise.
6759 * sysdeps/unix/sysv/linux/readv.c: Likewise.
6760 * sysdeps/generic/writev.c (__writev): Rename to __libc_writev and make
6761 old name an alias.
6762 * sysdeps/posix/writev.c: Likewise
6763 * sysdeps/unix/sysv/aix/writev.c: Likewise.
6764 * sysdeps/unix/sysv/linux/writev.c: Likewise.
6765
6766 * include/sys/wait.h: Declare __waitid.
6767 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __waitid.
6768 * sysdeps/generic/waitid.c (waitid): Rename to __waitid and make old
6769 name an alias.
6770 * sysdeps/posix/waitid.c: Likewise.
6771 * sysdeps/unix/sysv/aix/waitid.c: Likewise.
6772
6773 * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall.
6774
6775 2002-10-07 Jakub Jelinek <jakub@redhat.com>
6776
6777 * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New
6778 prototypes.
6779 (__MAX_ALLOCA_CUTOFF): Define.
6780 Include allocalim.h.
6781 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
6782 _nss_dns_gethostbyaddr_r): Use alloca or malloc to allocate
6783 host_buffer depending on __libc_use_alloca.
6784 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
6785 _nss_dns_getnetbyaddr_r): Use alloca or malloc to allocate
6786 net_buffer depending on __libc_use_alloca.
6787 * resolv/res_query.c (res_nquery): Use alloca or malloc to allocate
6788 buf depending on __libc_use_alloca.
6789 * resolv/gethnamaddr.c (gethostbyname2, gethostbyaddr): Likewise.
6790 * stdio-common/vfprintf.c (vfprintf): Use __libc_use_alloca
6791 instead of hardcoded constants.
6792 Pass proper size argument to alloca and compute end for wide char
6793 version.
6794 * stdio-common/printf_fp.c (__printf_fp): Use __libc_use_alloca
6795 instead of hardcoded constants.
6796 * string/strcoll.c (strcoll): Likewise.
6797 * string/strxfrm.c (strxfrm): Likewise.
6798 * sysdeps/posix/readv.c (__readv): Likewise.
6799 * sysdeps/posix/writev.c (__writev): Likewise.
6800 * sysdeps/generic/allocalim.h: New file.
6801
6802 2002-10-08 Roland McGrath <roland@redhat.com>
6803
6804 * configure.in (aux_missing warning): Change "too old" to
6805 "incompatible versions", since for autoconf it's "too new" right now.
6806 * configure: Regenerated.
6807
6808 * configure.in (AUTOCONF): New check to set it. Set to "no" if the
6809 one found doesn't work on our configure.in.
6810 * configure: Regenerated.
6811 * config.make.in (AUTOCONF): New substituted variable.
6812 * Makefile (autoconf-it-cvs): New canned sequence, broken out of ...
6813 (autoconf-it): ... here, use that instead of defining conditionally.
6814 Use $(AUTOCONF) instead of literal autoconf.
6815 [$(AUTOCONF) != no] (configure, %/configure): Protect these rules
6816 with this condition.
6817 * Make-dist (autoconf-it, configure, %/configure): Copy those changes.
6818
6819 2002-10-08 Ulrich Drepper <drepper@redhat.com>
6820
6821 * Make-dist (dist): Cleanup a bit. We are not interested in the
6822 14 char filename limit anymore. Remove intermediate files and
6823 symlinks.
6824
6825 2002-10-05 Ulrich Drepper <drepper@redhat.com>
6826
6827 * po/sk.po: Update from translation team.
6828 * po/tr.po: Likewise.
6829 * po/gl.po: Likewise.
6830
6831 2002-10-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6832
6833 * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax.
6834
6835 2002-10-03 Ulrich Drepper <drepper@redhat.com>
6836
6837 * version.h (RELEASE): Change to stable.
6838
6839 2002-10-03 Jakub Jelinek <jakub@redhat.com>
6840
6841 * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit,
6842 __syscall_exit_group): New prototypes.
6843
6844 2002-10-03 Ulrich Drepper <drepper@redhat.com>
6845
6846 * glibc 2.3 released.
6847
6848
6849 See ChangeLog.13 for earlier changes.
This page took 0.311903 seconds and 6 git commands to generate.