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