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