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