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