* catgets/open_catalog.c (__open_catalog): Don't use a value type
[platform/upstream/glibc.git] / ChangeLog
1 2002-09-23  Roland McGrath  <roland@redhat.com>
2
3         * catgets/open_catalog.c (__open_catalog): Don't use a value type
4         as the __builtin_expect expression, just the Boolean value.
5
6         * sysdeps/generic/wordexp.c (parse_glob): int -> size_t for counter.
7         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
8         * resolv/res_hconf.c (arg_service_list, parse_line): Likewise.
9         * iconvdata/tst-loading.c (main): Likewise.
10         * catgets/tst-catgets.c (main): Likewise.
11         * stdlib/tst-xpg-basename.c (main): Likewise.
12         * stdlib/tst-bsearch.c (main): Likewise.
13         * stdio-common/test-vfprintf.c (main): Likewise.
14         * stdio-common/tst-rndseek.c (do_test): Likewise.
15         * libio/tst_swprintf.c (main): Likewise.
16         * libio/tst-fgetws.c (main): Likewise.
17         * wcsmbs/tst-mbrtowc.c (check_ascii): Likewise.
18         * time/tst-posixtz.c (main): Likewise.
19         * time/tst-strptime.c (test_tm): Likewise.
20         * time/tst-strptime.c (main): Likewise.
21         * time/tst-getdate.c (main): Likewise.
22         * posix/tst-mmap.c (main): Likewise.
23         * posix/tst-getaddrinfo.c (do_test): Likewise.
24         * io/tst-getcwd.c (do_test): Likewise.
25         * resolv/tst-aton.c (main): Likewise.
26         * inet/tst-network.c (main): Likewise.
27         * libio/tst-fgetws.c (main): Likewise.
28         * sysdeps/posix/sprofil.c (add_region): int -> unsigned int for I.
29         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): int -> unsigned int
30         for PTYNO.
31
32         * stdlib/msort.c (qsort): Add a cast to silence warning.
33         * stdio-common/vfprintf.c (process_string_arg): Likewise.
34         * libio/oldfileops.c (_IO_old_do_write): Likewise.
35         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Likewise.
36         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
37         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
38         * argp/argp-fmtstream.c (__argp_fmtstream_printf): Likewise.
39         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
40         * sysdeps/unix/grantpt.c (grantpt): Likewise.
41         * libio/tst-widetext.c (main): Likewise.
42         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
43         * rt/tst-aio.c (test_file): Likewise.
44         * rt/tst-aio64.c (test_file): Likewise.
45         * resolv/tst-aton.c (main): Likewise.
46
47         * catgets/catgetsinfo.h (CATGETS_MAGIC): Use U suffix on the constant.
48
49         * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Cast to int32_t
50         instead of uint32_t in these macros.
51
52 2002-09-22  Bruno Haible  <bruno@clisp.org>
53
54         * iconv/iconv_prog.c (main): Provide an error message that identifies
55         the wrong encoding.
56
57         * iconvdata/tscii.c: New file.
58         * iconvdata/testdata/TSCII: New file.
59         * iconvdata/testdata/TSCII..UTF8: New file.
60         * iconvdata/TSCII.precomposed: New file.
61         * iconvdata/TSCII.irreversible: New file.
62         * iconvdata/gconv-modules (TSCII): New module.
63         * iconvdata/Makefile (modules): Add TSCII.
64         (distribute): Add tscii.c.
65         * iconvdata/tst-table-from.c (try, utf8_decode, main): Double output
66         buffer size.
67         * iconvdata/tst-tables.sh: Add TSCII.
68         * iconvdata/TESTS: Add TSCII.
69
70         Revert 2002-04-18 patch.
71         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
72         FROM_DIRECTION): Make the FROM direction stateful again.
73         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
74         FROM_DIRECTION): Likewise.
75
76         * iconvdata/tst-e2big.c: New file.
77         * iconvdata/Makefile (tests): Add tst-e2big.
78
79 2002-09-23  Roland McGrath  <roland@redhat.com>
80
81         * elf/Makefile (test-extras): Define this instead of test-srcs.
82         * Makerules (all-nonlib): Include $(test-extras) too.
83
84 2002-09-21  Carlos O'Donell  <carlos@baldric.uwo.ca>
85
86         * sysdeps/hppa/abort-instr.h: New file.
87
88 2002-09-22  Roland McGrath  <roland@frob.com>
89
90         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Remove duplicate entry.
91
92         * sysdeps/mach/hurd/dl-sysdep.c (_exit): Add alias __GI__exit.
93
94 2002-09-22  Andreas Schwab  <schwab@suse.de>
95
96         * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Append, not overwrite.
97
98         * sysdeps/m68k/fpu/bits/mathinline.h (isgreater, isgreaterequal)
99         (isless, islessequal, islessgreater, isunordered) [GCC >= 3.1]:
100         Use GCC builtins.
101
102 2002-09-21  Roland McGrath  <roland@redhat.com>
103
104         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_PLATFORM):
105         Correct the value so it covers all platforms, and is computed
106         from _DL_PLATFORMS_COUNT rather than hard-wired.
107         From Andrew Suffield <asuffield@debian.org>.
108
109 2002-09-20  Ulrich Drepper  <drepper@redhat.com>
110
111         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Avoid
112         locking when using mount tab file.
113         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
114         * sysdeps/unix/sysv/linux/statvfs.c: Include <stdio_ext.h>.
115         * sysdeps/unix/sysv/linux/fstatvfs.c: Likewise.
116
117         * elf/dl-init.c (_dl_init): Fix test of the size of the
118         preinit_array section.
119         (call_init): Optimize access to DT_INIT_ARRAY entry a bit.
120         Reported by Brian Cabral <cabral@ikuni.com>.
121
122 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
123
124         * sysdeps/powerpc/sysdep.h: Remove powerpc32 specific macros.
125         * sysdeps/powerpc/powerpc32/sysdep.h: New file.  Define powerpc32
126         specific macros copied from sysdeps/powerpc/sysdep.h.
127         * sysdeps/powerpc/powerpc64/sysdep.h: New file.  Define powerpc64
128         specific macros.
129         * sysdeps/unix/powerpc/sysdep.h: Include <bits/wordsize.h>.
130         [__WORDSIZE==64]: Include sysdeps/powerpc/powerpc64/sysdep.h.
131         [!__WORDSIZE==64]: Include sysdeps/powerpc/powerpc32/sysdep.h.
132
133 2002-09-19  Bruno Haible  <bruno@clisp.org>
134
135         * intl/dcigettext.c (DCIGETTEXT): Restore errno only right before
136         returning.
137
138 2002-09-17  Bruno Haible  <bruno@clisp.org>
139
140         * sysdeps/generic/utmp-equal.h: New file, extracted from utmp_file.c.
141         * sysdeps/generic/utmp_file.c (setutent_file): Invalidate last_entry
142         also on platforms with !HAVE_UT_TYPE.
143         (proc_utmp_eq): Remove function.
144         (internal_getut_r, pututline_file): Call __utmp_equal instead.
145
146 2002-09-20  Bruno Haible  <bruno@clisp.org>
147
148         * abi-tags: Add support for FreeBSD with ABI OS value 3.
149         * elf/cache.c (print_entry): Support the GNU/FreeBSD ABI tag.
150
151 2002-09-20  Roland McGrath  <roland@redhat.com>
152
153         * sysdeps/generic/gmp-mparam.h: Include <bits/wordsize.h>.
154         (BITS_PER_MP_LIMB, BYTES_PER_MP_LIMB, BITS_PER_LONGINT): Define in
155         terms of __WORDSIZE.
156         * sysdeps/x86_64/gmp-mparam.h: File removed.
157         * sysdeps/sparc/gmp-mparam.h: File removed.
158         * sysdeps/mips/mips64/gmp-mparam.h: File removed.
159         * sysdeps/ia64/gmp-mparam.h: File removed.
160         * sysdeps/alpha/gmp-mparam.h: File removed.
161
162 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
163
164         * sysdeps/powerpc/elf/libc-start.c: Use long in place of int for argc
165         load, so as to work on both 32-bit and 64-bit.  Remove unnecessary
166         casts.  Align __libc_stack_end to 8 bytes.
167
168 2002-09-20  Roland McGrath  <roland@redhat.com>
169
170         * sysdeps/powerpc/fpu/s_lrint.c: Use strong_alias/weak_alias macros
171         instead of asm for lrintf, __lrintf aliases.
172
173         * sysdeps/powerpc/fpu/s_lrint.c (__lrint): Change union long array to
174         int array for 32-/64-bit compatibility.
175         From Steven Munroe  <sjmunroe@us.ibm.com>.
176
177 2002-09-17  Bruno Haible  <bruno@clisp.org>
178
179         * sysdeps/generic/ifreq.h (__if_nextreq): New function.
180         * sysdeps/unix/sysv/linux/ifreq.h (__if_nextreq): New function.
181         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): New function.
182         * sysdeps/gnu/ifaddrs.c (getifaddrs): Use __if_nextreq
183         for iterating through the list of interfaces.
184         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Likewise.
185
186 2002-09-20  Roland McGrath  <roland@redhat.com>
187
188         * sysdeps/unix/grantpt.c (pts_name): Set errno when __ptsname_r fails.
189         Reported by Bruno Haible <bruno@clisp.org>.
190
191         * sysdeps/unix/bsd/bsd4.4/isatty.c: New file.
192
193         * sysdeps/unix/bsd/isatty.c (__isatty): Don't save and restore errno.
194         * sysdeps/unix/bsd/ptsname.c (__ptsname_r): Return errno value from
195         isatty unmodified.  Reported by Bruno Haible <bruno@clisp.org>.
196
197 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
198
199         * sysdeps/powerpc/bits/setjmp.h [__WORDSIZE]: Add 64-bit jmpbuf.
200         * sysdeps/powerpc/bits/wordsize.h: New file.
201         * sysdeps/powerpc/fpu/bits/mathinline.h (lrint, lrintf): Change long
202         array to int array for 32-/64-bit compatibility.
203
204 2002-09-20  Roland McGrath  <roland@redhat.com>
205
206         * login/programs/utmpdump.c: Don't include <error.h>, <errno.h>.
207
208         * sysdeps/generic/utimes.c (__utimes): Don't check TVP for null.
209         Reported by Bruno Haible <bruno@clisp.org>.
210
211         * sysdeps/generic/ifreq.h (__ifreq): Compute termination condition
212         before doubling RQ_LEN.
213         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
214         Reported by Bruno Haible <bruno@clisp.org>.
215
216 2002-09-18  Bruno Haible  <bruno@clisp.org>
217
218         * login/logout.c (logout): Don't assume ut_time has the same size as
219         a time_t.
220         * login/logwtmp.c (logwtmp): Likewise.
221
222         * sysdeps/pthread/configure: New file, moved here from
223         linuxthreads/sysdeps/unix/sysv/linux/configure.
224
225 2002-09-19  Ulrich Drepper  <drepper@redhat.com>
226
227         * sysdeps/unix/sysv/linux/_exit.c: Include <errno.h>.
228         (_exit): Don't use ABORT_INSTRUCTION if it is not defined.
229         Reported by Glen Nakamura <glen@imodulo.com>.
230
231 2002-09-19  Neal H. Walfield  <neal@cs.uml.edu>
232
233         * sysdeps/mach/hurd/fork.c (__fork): Do not free the signal
234         thread's sigstate data structure if it has been allocated.
235
236 2002-09-19  Roland McGrath  <roland@redhat.com>
237
238         * include/libc-symbols.h [HAVE_ASM_SET_DIRECTIVE]
239         [! HAVE_ASM_GLOBAL_DOT_NAME] (__hidden_dot_def1): Fix typo'd name.
240
241 2002-09-18  Ulrich Drepper  <drepper@redhat.com>
242
243         * version.h (VERSION): Bump to 2.2.94.
244
245         * sysdeps/powerpc/fpu/Dist: Move fprrest.S and fprsave.S to...
246         * sysdeps/powerpc/powerpc32/fpu/Dist: ...here.  New file.
247         * sysdeps/unix/sysv/linux/powerpc/Dist: Move kernel_stat.h to...
248         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
249
250         * sysdeps/i386/Makefile: Remove obsolete db2 rules.
251
252         * sysdeps/unix/sysv/linux/Makefile: Add exit-thread.S.
253
254         * sysdeps/unix/sysv/linux/powerpc/Dist: Add ldd-rewrite.sh.
255
256         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: New file.
257
258 2002-09-19  Jakub Jelinek  <jakub@redhat.com>
259
260         * sysdeps/wordsize-32/Makefile: New file.
261         * sysdeps/arm/Makefile: Removed.
262         * sysdeps/i386/Makefile (sysdep_routines, shared-only-routines):
263         Don't add divdi3 here.
264         * sysdeps/m68k/Makefile: Likewise.
265         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
266         * sysdeps/sh/Makefile: Likewise.
267         * sysdeps/s390/s390-32/Makefile: Likewise.
268
269 2002-09-18  Roland McGrath  <roland@redhat.com>
270
271         * locale/lc-ctype.c (_nl_postload_ctype): Add compat_symbol decls for
272         the __ctype_* compat symbols, so the relocs generated bind to the
273         right versioned global symbol in the shared object.
274
275         * elf/do-rel.h (elf_dynamic_do_rel): Mask off 0x8000 bit (hidden flag)
276         from the value taken from the DT_VERSYM table.
277         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
278         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Likewise.
279         (RESOLVE_GOTSYM): Likewise.
280
281         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
282         Add libc_hidden_def.
283         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
284         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
285         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
286         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
287         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
288         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
289         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
290         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
291
292 2002-09-18  Ulrich Drepper  <drepper@redhat.com>
293
294         * include/signal.h: Add libc_hidden_proto for __libc_sigaction.
295
296         * sysdeps/unix/sysv/linux/sigaction.c: If SIGCANCEL is defined
297         define sigaction and __sigaction as wrappers around
298         __libc_sigaction which rejects changing SIGCANCEL.
299         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
300
301         * sysdeps/unix/sysv/linux/i386/clone.S: Add support for SETTLS and
302         SETTID/CLEARTID.
303
304         * signal/allocrtsig.c: Move to...
305         * sysdeps/generic/allocrtsig.c: ...here.  New file.
306
307 2002-09-17  Jakub Jelinek  <jakub@redhat.com>
308
309         * elf/dl-lookup.c (_dl_debug_bindings): Print TLS lookups always.
310
311         * elf/elf.h (R_386_TLS_TPOFF, R_386_TLS_IE, R_386_TLS_GOTIE,
312         R_386_TLS_LE): Define.
313         (R_386_TLS_IE_32, R_386_TLS_LE_32, R_386_TLS_TPOFF32): Update
314         comments.
315         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Return
316         ELF_RTYPE_CLASS_PLT for R_386_TLS_TPOFF.
317         (elf_machine_rel): Handle R_386_TLS_TPOFF.
318         (elf_machine_rela): Likewise.
319         Remove unnecessary RTLD_BOOTSTRAP #ifdefs.
320
321 2002-09-17  Roland McGrath  <roland@redhat.com>
322
323         * malloc/Makefile ($(objpfx)memusagestat.o: sysincludes): Define
324         file-specific variable override so it compiles properly when using
325         --with-headers.
326
327 2002-09-17  Steven Munroe  <sjmunroe@us.ibm.com>
328
329         Ported to PowerPC64 running Linux.
330         * sysdeps/powerpc/powerpc64/Dist: New file.
331         * sysdeps/powerpc/powerpc64/Implies: New file.
332         * sysdeps/powerpc/powerpc64/Makefile: New file.
333         * sysdeps/powerpc/powerpc64/__longjmp.S: New file.
334         * sysdeps/powerpc/powerpc64/atomicity.h: New file.
335         * sysdeps/powerpc/powerpc64/backtrace.c: New file.
336         * sysdeps/powerpc/powerpc64/bp-asm.h: New file.
337         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: New file.
338         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: New file.
339         * sysdeps/powerpc/powerpc64/dl-dtprocnum.h: New file.
340         * sysdeps/powerpc/powerpc64/dl-lookupcfg.h: New file.
341         * sysdeps/powerpc/powerpc64/dl-machine.c: New file.
342         * sysdeps/powerpc/powerpc64/dl-machine.h: New file.
343         * sysdeps/powerpc/powerpc64/memset.S: New file.
344         * sysdeps/powerpc/powerpc64/ppc-mcount.S: New file.
345         * sysdeps/powerpc/powerpc64/register-dump.h: New file.
346         * sysdeps/powerpc/powerpc64/setjmp.S: New file.
347         * sysdeps/powerpc/powerpc64/stpcpy.S: New file.
348         * sysdeps/powerpc/powerpc64/strchr.S: New file.
349         * sysdeps/powerpc/powerpc64/strcmp.S: New file.
350         * sysdeps/powerpc/powerpc64/strcpy.S: New file.
351         * sysdeps/powerpc/powerpc64/strlen.S: New file.
352         * sysdeps/powerpc/powerpc64/elf/bzero.S: New file.
353         * sysdeps/powerpc/powerpc64/elf/start.S: New file.
354         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: New file.
355         * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: New file.
356         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: New File.
357         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: New file.
358         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: New file.
359         * sysdeps/unix/sysv/linux/powerpc/powerpc64/glob64.c: New file.
360         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: New file.
361         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: New file.
362         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: New file.
363
364         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME]
365         (C_SYMBOL_DOT_NAME): Insure that C_SYMBOL_DOT_NAME works for
366         various gcc versions.  Dot names required for powerpc64.
367         [HAVE_ASM_GLOBAL_DOT_NAME] (_weak_extern): Add .weakext '.'ed symbol.
368         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias): Add .global
369         C_SYMBOL_DOT_NAME(alias).
370         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): New macro. Same as
371         original strong_alias macro.
372         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Add .weakext/.weak
373         C_SYMBOL_DOT_NAME(alias).
374         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Add .symver '.'ed name.
375         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Add .symver
376         '.'ed name.
377         Add comments on libc_hidden_data_def and libc_hidden_data_weak usage.
378         [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_def1): New macro.  Generate
379         .global C_SYMBOL_DOT_NAME(alias).  Otherwise an empty macro.
380         (hidden_def): Append hidden_dot_def1 macro to definition.
381         (hidden_ver): Append hidden_dot_def1 macro to definition.
382         (hidden_data_def): New macro.  Same as original hidden_def macro.
383         (hidden_data_ver): New macro.  Same as original hidden_ver macro.
384         [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_weak1): New macro.  Generate
385         .weakext C_SYMBOL_DOT_NAME(alias).  Otherwise an empty macro.
386         (hidden_weak): Append hidden_dot_weak1 macro to definition.
387         (hidden_data_weak): New macro.  Same as original hidden_weak macro.
388         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Define as .__GI_name.
389         Otherwise defined as __GI_name.
390         (libc_hidden_data_def): New macro.  Use hidden_data_def.
391         (libc_hidden_data_weak): New macro.  Use hidden_data_weak.
392         (libc_hidden_data_ver): New macro.  Use hidden_data_ver.
393         (rtld_hidden_data_def): New macro.  Use hidden_data_def.
394         (rtld_hidden_data_weak): New macro.  Use hidden_data_weak.
395         (rtld_hidden_data_ver): New macro.  Use hidden_data_ver.
396         (libm_hidden_data_def): New macro.  Use hidden_data_def.
397         (libm_hidden_data_weak): New macro.  Use hidden_data_weak.
398         (libm_hidden_data_ver): New macro.  Use hidden_data_ver.
399         * inet/in6_addr.c: Replace libc_hidden_def with libc_hidden_data_def.
400
401 2002-09-17  Ulrich Drepper  <drepper@redhat.com>
402
403         * include/libc-symbols.h: Change *hidden_proto macros to accept
404         option parameters and pass those to the attribute definition.
405         * include/unistd.h (_exit): Add __noreturn__ to libc_hidden_proto call.
406
407         * include/unistd.h: Declare __libc_pause.
408
409         * include/sys/socket.h: Declare __libc_send, __libc_recv,
410         __libc_sendto, __libc_sendmsg, __libc_recvmsg, and __libc_accept.
411
412         * include/unistd.h: Declare __libc_fork.
413
414 2002-09-17  Roland McGrath  <roland@redhat.com>
415
416         * sunrpc/xcrypt.c (passwd2des_internal): Renamed fom passwd2des.
417         (passwd2des): Define it as an alias.
418         (xencrypt, xdecrypt): Call passwd2des_internal instead of passwd2des.
419
420 2002-09-12  Bruno Haible  <bruno@clisp.org>
421
422         * include/sys/sysctl.h (__sysctl): Add libc_hidden_proto.
423         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Add libc_hidden_def.
424
425         * include/rpc/xdr.h (xdrstdio_create): Add libc_hidden_proto.
426         * sunrpc/xdr_stdio.c (xdrstdio_create): Add libc_hidden_def.
427
428 2002-09-05  Steven Munroe  <sjmunroe@us.ibm.com>
429
430         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc64__]
431         (__ASSUME_TRUNCATE64_SYSCALL, __ASSUME_STAT64_SYSCALL, __ASSUME_IPC64,
432         __ASSUME_FCNTL64, __ASSUME_MMAP2_SYSCALL): Don't define these.
433         PowerPC64 does not have separate 64-bit syscalls.
434
435 2002-09-16  Roland McGrath  <roland@redhat.com>
436
437         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Add a cast.
438
439         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
440         New macro.
441
442         * elf/rtld.c [HP_TIMING_NONAVAIL]: Fix last change for this case.
443
444         * include/unistd.h: Uncomment libc_hidden_proto for _exit.
445         * sysdeps/mach/hurd/_exit.c: Add libc_hidden_def.
446         * sysdeps/generic/_exit.c: Likewise.
447
448 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
449
450         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Regenerate.
451
452         * elf/rtld.c (struct dl_start_final_info): New.
453         (_dl_start_final): Change second argument to struct
454         dl_start_final_info *.  Set start_time from info.
455         (_dl_start): Remove bootstrap_map variable, add info.
456         Define bootstrap_map as macro.  If not DONT_USE_BOOTSTRAP_MAP,
457         store HP_TIMING_NOW result into info.start_time.
458
459 2002-09-16  Andreas Jaeger  <aj@suse.de>
460
461         * sysdeps/unix/sysv/linux/_exit.c: Add libc_hidden_def and weak_alias
462         to _Exit.
463         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
464
465 2002-09-15  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
466
467         * sysdeps/powerpc/abort-instr.h: New file.
468
469 2002-09-14  Ulrich Drepper  <drepper@redhat.com>
470
471         * sysdeps/generic/libc-start.c (__libc_start_main): Remove bogus
472         comment.
473
474         * test-skeleton.c (main): Provide more information in case waitpid
475         fails.
476
477         * include/unistd.h: Declare __exit_thread.
478         * sysdeps/generic/libc-start.c (__libc_start_main): Remove dummy_addr.
479         Wrap call to main in setjmp if HAVE_CANCELBUF is defined.
480         * sysdeps/unix/sysv/linux/exit-thread.S: New file.
481         * sysdeps/unix/sysv/linux/_exit.c: New file.
482         * sysdeps/unix/sysv/linux/i386/_exit.S: New file.
483         * sysdeps/unix/sysv/linux/Makefile [subdir==posix] (sysdep_routines):
484         Add exit-thread.
485
486         * configure.in: Add dl_iterate_phdr to test using -nostdlib.
487
488 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
489
490         * sysdeps/i386/dl-machine.h (elf_machine_rel)
491         (case R_386_TLS_DTPMOD32): Don't use addend.
492         [case R_386_TLS_TPOFF32]: Remove redundant SYM_MAP != NULL check.
493         (elf_machine_rela): Add support for TLS relocs.
494
495 2002-09-14  Roland McGrath  <roland@redhat.com>
496
497         * Makefile (manual/%): Add this pattern target to the iconvdata/% rule.
498
499 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
500
501         * stdlib/longlong.h [_ARCH_PPC && W_TYPE_SIZE!=32]: Add powerpc64
502         specific asm macros for multiple percision integer math.
503
504 2002-06-04  Steven Munroe  <sjmunroe@us.ibm.com>
505
506         * sysdeps/generic/ldconfig.h (FLAG_POWERPC_LIB64) New macro.
507         * elf/cache.c (print_entry): Add case for FLAG_POWERPC_LIB64.
508         Remove per-machine conditionals for FLAG_* cases.
509         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h: New file.
510         * sysdeps/unix/sysv/linux/powerpc/readelflib.c: New file.
511         * sysdeps/unix/sysv/linux/powerpc/powerpc64/dl-cache.h: New file.
512
513 2002-09-10  Alan Modra <amodra@bigpond.net.au>
514
515         * csu/gmon-start.c [!TEXT_START]: Define TEXT_START if not already
516         defined in entry.h.
517         (__gmon_start__) [!ENTRY_POINT_DECL]: Use TEXT_START macro to obtain
518         lowest address for profiling in  __monstartup call.
519         * sysdeps/powerpc/powerpc64/elf/entry.h: New file.
520
521 2002-09-14  Roland McGrath  <roland@redhat.com>
522
523         * sysdeps/unix/sysv/linux/pread.c: __NR_pread64 may be defined
524         instead of __NR_pread.
525         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
526         * sysdeps/unix/sysv/linux/pwrite.c: __NR_pwrite64 may be defined
527         instead of __NR_pwrite.
528         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
529
530 2002-09-13  Roland McGrath  <roland@redhat.com>
531
532         * manual/libc.texinfo: @ifinfo -> @ifnottex around copyright notice.
533
534 2002-09-13  Andreas Jaeger  <aj@suse.de>
535
536         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add readahead
537         syscall.  Patch by Guido Guenther <agx@sigxcpu.org>.
538
539 2002-09-12  Ulrich Drepper  <drepper@redhat.com>
540
541         * elf/elf.h: Correct DT_LOOS and DT_HIOS values.
542
543 2002-09-10  Ulrich Drepper  <drepper@redhat.com>
544
545         * sysdeps/powerpc/fpu/s_isnan.c: #undef __isnanf and isnanf after
546         reading the headers.
547
548 2002-09-12  Roland McGrath  <roland@redhat.com>
549
550         * elf/rtld.c (_dl_start_final): Move _begin, _end decls outside the fn.
551         (_dl_start) [DONT_USE_BOOTSTRAP_MAP]: Use &_begin instead of l_addr to
552         find the ELF header.
553
554         * elf/rtld.c (dl_main) [USE_TLS]: Adjust l_tls_initimage of main
555         executable if needed, in case it's actually a shared object.
556
557 2002-09-11  Roland McGrath  <roland@redhat.com>
558
559         * elf/dl-load.c (_dl_map_object_from_fd): Use l_addr instead of
560         l_map_start to adjust l_tls_initimage.
561
562         * nss/getnssent_r.c (__nss_getent_r): Use EAGAIN instead of errno
563         when using h_errno and it's not set to NETDB_INTERNAL.
564         * nss/getXXbyYY_r.c [NEED_H_ERRNO]: Likewise.
565
566         * Makefile ($(common-objpfx)testrun.sh): New target.
567         (others): Depend on it.
568         (postclean-generated): Append it.
569
570         * nss/bug-erange.c: New file.
571         * nss/Makefile (tests): Add it.
572
573         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Return errno
574         instead of always EAGAIN when status is NSS_STATUS_TRYAGAIN.
575
576         * sysdeps/generic/dl-environ.c (unsetenv): Redo last fix without
577         strncmp, keeps the code smaller for a non-performance-critical case.
578
579         * sysdeps/generic/dl-environ.c (unsetenv): Rewritten using strncmp,
580         no longer wrongly matches arbitrary prefixes of NAME.
581         Reported by Jakub Jelinek <jakub@redhat.com>.
582
583 2002-09-11  Jakub Jelinek  <jakub@redhat.com>
584
585         * posix/bug-regex11.c (tests): New array.
586         (main): Rewritten to run more different tests.
587
588 2002-09-10  Roland McGrath  <roland@redhat.com>
589
590         * nscd/Makefile (CPPFLAGS-nscd, CPPFLAGS-nscd_conf, CPPFLAGS-dbg_log)
591         (CPPFLAGS-connections, CPPFLAGS-hstcache): Variables removed.
592         Instead, catch all of $(nscd-modules) via cppflags-iterator.mk.
593
594         * sysdeps/powerpc/fpu/s_isnan.c: Do macro hackery on __GI___isnanf as
595         well so we don't get it declared by include/math.h's hidden_proto.
596         Then do hidden_proto for __isnanf locally so hidden_def works right.
597
598         * posix/bug-regex5.c (main): Use `union locale_data_value' rather than
599         a cast to turn nl_langinfo return value into an integer.
600
601 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
602
603         * posix/regexec.c (build_trtable): Fix the destination of
604         newline to prevent wrong states from overwriting.
605         Append break statements to optimization.
606
607 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
608
609         * posix/regcomp.c: Wrap #include wchar.h and wctype.h in #if.
610         (build_range_exp): Add castings to strlen invocations.
611         (build_collating_symbol): Restore the type of characters from "char"
612         to "unsigned char", and supplement castings.
613         (build_collating_symbol): Likewise.
614         (build_equiv_class): Likewise.
615         (build_charclass): Likewise.
616         (seek_collating_symbol_entry): Likewise.
617         (parse_bracket_exp): Likewise.
618         (build_word_op): Supplement a casting.
619         * posix/regex_internal.c: Wrap #include wchar.h and wctype.h in #if.
620         (re_string_allocate): Fix castings.
621         (re_string_construct): Likewise.
622         (re_string_construct_common): Likewise.
623         (re_string_realloc_buffers): Likewise.
624         (build_wcs_buffer): Likewise.
625         (build_wcs_upper_buffer): Likewise.
626         (re_string_skip_chars): Likewise.
627         (re_string_reconstruct): Likewise.
628         * posix/regex_internal.h: Restore the type of characters in
629         re_string_t and bracket_elem_t from "char" to "unsigned char".
630         (re_string_elem_size_at): Fix castings.
631         * posix/regexec.c: Wrap #include wchar.h and wctype.h in #if.
632         (transit_state_bkref_loop): Restore the type of characters from
633         "char" to "unsigned char", and append a cast to "char*" pointer in
634         array subscript.
635         (check_node_accept_bytes): Likewise.
636         (find_collation_sequence_value): Likewise.
637
638 2002-09-10  Hartvig Ekner  <hartvige@mips.com>
639
640         * sysdeps/mips/memcpy.S: New file.
641         * sysdeps/mips/memset.S: New file.
642         * sysdeps/mips/fpu/e_sqrt.c:  New file.
643         * sysdeps/mips/fpu/e_sqrtf.c: New file.
644
645         * fpu/fclrexcpt.c: Cleaned up the FPU exception stuff - was not
646         functional before. Also removed all SHLIB_COMPAT stuff.
647         * fpu/fegetenv.c: Likewise.
648         * fpu/fesetenv.c:: Likewise.
649         * fpu/feupdateenv.c: Likewise.
650         * fpu/fgetexcptflg.c: Likewise.
651         * fpu/fraiseexcpt.c: Likewise.
652
653         * sysdeps/mips/fpu/fsetexcptflg.c: New file.
654
655 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
656
657         * include/math.h (__finite_internal, __finitef_internal,
658         __finitel_internal, __isinf_internal, __isnan_internal): Remove.
659         (isfinite): Remove.
660         (__finite, __isinf, __isnan, __finitef, __isinff, __isnanf, __finitel,
661         __isinfl, __isnanl): Add hidden_proto.
662         (__fpclassify, __fpclassifyf, __fpclassifyl, __expm1l): Add
663         libm_hidden_proto.
664         * math/Makefile (libm-calls): Add s_isinf and s_isnan.
665         * stdio-common/printf_fp.c (__printf_fp): Remove INTUSE from
666         __is{inf,nan} calls.
667         * stdio-common/printf_size.c (printf_size): Likewise.
668         * sysdeps/generic/printf_fphex.c (__printf_fphex): Likewise.
669         * sysdeps/generic/s_ldexp.c (__ldexp): Likewise.
670         * sysdeps/generic/s_ldexpf.c (__ldexpf): Likewise.
671         * sysdeps/generic/s_ldexpl.c (__ldexpl): Likewise.
672         * sysdeps/generic/s_expm1l.c (__expm1l): Add libm_hidden_def.
673         * sysdeps/i386/fpu/s_finite.S (__finite_internal): Remove alias.
674         (__finite): Add hidden_def.
675         * sysdeps/i386/fpu/s_finitef.S (__finitef_internal): Remove alias.
676         (__finitef): Add hidden_def.
677         * sysdeps/i386/fpu/s_finitel.S (__finitel_internal): Remove alias.
678         (__finitel): Add hidden_def.
679         * sysdeps/i386/fpu/s_isinfl.c (__isinfl): Remove INTDEF.  Add
680         hidden_def.
681         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
682         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Add
683         libm_hidden_def.
684         * sysdeps/i386/fpu/s_expm1l.S (__expm1l): Likewise.
685         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Remove INTDEF.  Add
686         hidden_def.
687         * sysdeps/ieee754/dbl-64/s_isinf.c (__isinf): Likewise.
688         (__isinfl): Remove INTDEF.
689         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Remove INTDEF.  Add
690         hidden_def.
691         (__isnanl): Remove INTDEF.
692         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Add
693         libm_hidden_def.
694         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Use __sin and __cos
695         instead of sin and cos.
696         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Remove INTDEF.
697         Add hidden_def.
698         * sysdeps/ieee754/flt-32/s_isinff.c (__isinff): Likewise.
699         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
700         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Add
701         libm_hidden_def.
702         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Remove INTDEF.
703         Add hidden_def.
704         * sysdeps/ieee754/ldbl-128/s_isinfl.c (__isinfl): Likewise.
705         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
706         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl): Add
707         libm_hidden_def.
708         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add
709         libm_hidden_def.
710         * sysdeps/ieee754/ldbl-96/s_finitel.c (__finitel): Remove INTDEF.
711         Add hidden_def.
712         * sysdeps/ieee754/ldbl-96/s_isinfl.c (__isinfl): Likewise.
713         * sysdeps/ieee754/ldbl-96/s_isnanl.c (__isnanl): Likewise.
714         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c (__fpclassifyl): Add
715         libm_hidden_def.
716         * sysdeps/ia64/fpu/s_finite.S (__finite_internal, __finitef_internal,
717         __finitel_internal): Remove aliases.
718         (__finite, __finitef, __finitel): Add hidden_def.
719         * sysdeps/ia64/fpu/s_isnan.S (__isnan_internal, __isnanf_internal,
720         __isnanl_internal): Remove aliases.
721         (__isnan, __isnanf, __isnanl): Add hidden_def.
722         * sysdeps/ia64/fpu/s_isinf.S (__isinf_internal, __isinff_internal,
723         __isinfl_internal): Remove aliases.
724         (__isinf, __isinff, __isinfl): Add hidden_def.
725         * sysdeps/ia64/fpu/s_fpclassify.S (__fpclassify, __fpclassifyf,
726         __fpclassifyl): Add libm_hidden_def.
727         * sysdeps/ia64/fpu/s_expm1l.S (__expm1l): Likewise.
728         * sysdeps/m68k/s_isinfl.c (__isinfl): Remove INTDEF.  Add hidden_def.
729         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Remove.
730         (hidden_defx): Define and use.
731         * sysdeps/m68k/fpu/s_fpclassifyl.c (__fpclassifyl): Add
732         libm_hidden_def.
733         * sysdeps/m68k/fpu/s_expm1l.c (__expm1l): Likewise.
734         * sysdeps/m68k/s_isnanl.c (__isnanl): Add hidden_def.
735         * sysdeps/powerpc/fpu/s_isnan.c (__isnan, __isnanf, __isnanl):
736         Remove INTDEF.
737         (__isnan, __isnanf): Add hidden_def.
738         * sysdeps/x86_64/fpu/s_finitel.S (__finitel_internal): Remove alias.
739         (__finitel): Add libm_hidden_def.
740         * sysdeps/x86_64/fpu/s_expm1l.S (__expm1l): Likewise.
741
742         * include/fenv.h (feraiseexcept, fesetenv): Add libm_hidden_proto.
743         * sysdeps/alpha/fpu/fesetenv.c (fesetenv): Add libm_hidden_ver.
744         * sysdeps/alpha/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
745         * sysdeps/arm/fpu/fesetenv.c (fesetenv): Likewise.
746         * sysdeps/arm/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
747         * sysdeps/generic/fesetenv.c (fesetenv): Likewise.
748         * sysdeps/generic/fraiseexcpt.c (feraiseexcept): Likewise.
749         * sysdeps/i386/fpu/fesetenv.c (fesetenv): Likewise.
750         * sysdeps/i386/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
751         * sysdeps/m68k/fpu/fesetenv.c (fesetenv): Likewise.
752         * sysdeps/m68k/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
753         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Likewise.
754         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
755         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Likewise.
756         * sysdeps/powerpc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
757         * sysdeps/sparc/fpu/fesetenv.c (fesetenv): Likewise.
758         * sysdeps/sparc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
759         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Add libm_hidden_def.
760         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
761         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Likewise.
762         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
763         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
764         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
765         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
766         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
767         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Likewise.
768         * sysdeps/x86_64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
769
770 2002-09-09  Steven Munroe  <sjmunroe@us.ibm.com>
771
772         * elf/elf.h: Add powerpc64 specific elf relocation and dynamic types.
773
774 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
775
776         * elf/dl-error.c (_dl_signal_cerror): Don't print anything if only
777         LD_DEBUG=statistics or LD_TRACE_PRELINKING.
778
779 2002-09-09  Ulrich Drepper  <drepper@redhat.com>
780
781         * string/stratcliff.c: Some more strncpy tests.
782         Patch by Daniel Jacobowitz <drow@mvista.com>.
783
784 2002-09-08  Roland McGrath  <roland@redhat.com>
785
786         * resolv/resolv.h: Include <sys/types.h> for u_long even in
787         the [__need_res_state] case.
788         Reported by Bruno Haible <bruno@clisp.org>.
789
790 2002-09-04  Bruno Haible  <bruno@clisp.org>
791
792         * sysdeps/generic/bits/ustat.h: Comment fix.
793         * io/sys/sendfile.h: Comment fix.
794         * sysdeps/posix/pread.c: Comment fix.
795         * sysdeps/posix/pread64.c: Comment fix.
796         * sysdeps/posix/pwrite.c: Comment fix.
797         * sysdeps/posix/pwrite64.c: Comment fix.
798
799 2002-09-06  Roland McGrath  <roland@redhat.com>
800
801         * posix/sys/utsname.h (_UTSNAME_SYSNAME_LENGTH): New macro, defined
802         to _UTSNAME_LENGTH if not already defined by <bits/utsname.h>.
803         (_UTSNAME_RELEASE_LENGTH, _UTSNAME_VERSION_LENGTH): Likewise.
804         (_UTSNAME_MACHINE_LENGTH): Likewise.
805         (struct utsname): Use new macros instead of _UTSNAME_LENGTH.
806
807 2002-09-06  Ulrich Drepper  <drepper@redhat.com>
808
809         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Correct
810         test for filesystem type name of mount points.
811
812         * include/errno.h: Use errno definition with __thread for now only
813         in libc and ld.so.
814
815         * test-skeleton.c (main): Improve error message for unexpected
816         signal case.
817
818 2002-09-05  Roland McGrath  <roland@redhat.com>
819
820         * ctype/ctype-info.c: Renamed __ctype_old_* symbols to __ctype_*.
821         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
822
823 2002-09-05  Jakub Jelinek  <jakub@redhat.com>
824
825         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Unlock and return in
826         case of failure.
827
828 2002-09-04  Bruno Haible  <bruno@clisp.org>
829
830         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h (sigset_set_old_mask,
831         sigset_get_old_mask): Turn into inline functions.
832         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h (sigset_set_old_mask,
833         sigset_get_old_mask): Likewise.
834         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h (sigset_set_old_mask,
835         sigset_get_old_mask): Likewise.
836         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Declutter
837         syntax.
838
839         * elf/readlib.c (process_file): Conditionalize check for QMAGIC.
840
841         * sysdeps/generic/_strerror.c (_sys_errlist, _sys_nerr): Remove
842         default definitions.
843         (__strerror_r): Use _sys_errlist_internal instead of _sys_errlist,
844         _sys_nerr_internal instead of _sys_nerr.
845
846         * nscd/connections.c (handle_request): Declare CALLER inside #if.
847
848 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
849
850         * sysdeps/powerpc/__longjmp.S: Moved to...
851         * sysdeps/powerpc/powerpc32/__longjmp.S: ...here.
852         * sysdeps/powerpc/add_n.S: Moved to...
853         * sysdeps/powerpc/powerpc32/add_n.S: ...here.
854         * sysdeps/powerpc/addmul_1.S: Moved to...
855         * sysdeps/powerpc/powerpc32/addmul_1.S: ...here.
856         * sysdeps/powerpc/atomicity.h: Moved to...
857         * sysdeps/powerpc/powerpc32/atomicity.h: ...here.
858         * sysdeps/powerpc/backtrace.c: Moved to...
859         * sysdeps/powerpc/powerpc32/backtrace.c: ...here.
860         * sysdeps/powerpc/bp-asm.h: Moved to...
861         * sysdeps/powerpc/powerpc32/bp-asm.h: ...here.
862         * sysdeps/powerpc/bsd-_setjmp.S: Moved to...
863         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: ...here.
864         * sysdeps/powerpc/bsd-setjmp.S: Moved to...
865         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: ...here.
866         * sysdeps/powerpc/dl-machine.c: Moved to...
867         * sysdeps/powerpc/powerpc32/dl-machine.c: ...here.
868         * sysdeps/powerpc/dl-machine.h: Moved to...
869         * sysdeps/powerpc/powerpc32/dl-machine.h: ...here.
870         * sysdeps/powerpc/dl-start.S: Moved to...
871         * sysdeps/powerpc/powerpc32/dl-start.S: ...here.
872         * sysdeps/powerpc/gprrest0.S: Moved to...
873         * sysdeps/powerpc/powerpc32/gprrest0.S: ...here.
874         * sysdeps/powerpc/gprrest1.S: Moved to...
875         * sysdeps/powerpc/powerpc32/gprrest1.S: ...here.
876         * sysdeps/powerpc/gprsave0.S: Moved to...
877         * sysdeps/powerpc/powerpc32/gprsave0.S: ...here.
878         * sysdeps/powerpc/gprsave1.S: Moved to...
879         * sysdeps/powerpc/powerpc32/gprsave1.S: ...here.
880         * sysdeps/powerpc/lshift.S: Moved to...
881         * sysdeps/powerpc/powerpc32/lshift.S: ...here.
882         * sysdeps/powerpc/memset.S: Moved to...
883         * sysdeps/powerpc/powerpc32/memset.S: ...here.
884         * sysdeps/powerpc/mul_1.S: Moved to...
885         * sysdeps/powerpc/powerpc32/mul_1.S: ...here.
886         * sysdeps/powerpc/ppc-mcount.S: Moved to...
887         * sysdeps/powerpc/powerpc32/ppc-mcount.S: ...here.
888         * sysdeps/powerpc/register-dump.h: Moved to...
889         * sysdeps/powerpc/powerpc32/register-dump.h: ...here.
890         * sysdeps/powerpc/rshift.S: Moved to...
891         * sysdeps/powerpc/powerpc32/rshift.S: ...here.
892         * sysdeps/powerpc/setjmp.S: Moved to...
893         * sysdeps/powerpc/powerpc32/setjmp.S: ...here.
894         * sysdeps/powerpc/stpcpy.S: Moved to...
895         * sysdeps/powerpc/powerpc32/stpcpy.S: ...here.
896         * sysdeps/powerpc/strchr.S: Moved to...
897         * sysdeps/powerpc/powerpc32/strchr.S: ...here.
898         * sysdeps/powerpc/strcmp.S: Moved to...
899         * sysdeps/powerpc/powerpc32/strcmp.S: ...here.
900         * sysdeps/powerpc/strcpy.S: Moved to...
901         * sysdeps/powerpc/powerpc32/strcpy.S: ...here.
902         * sysdeps/powerpc/strlen.S: Moved to...
903         * sysdeps/powerpc/powerpc32/strlen.S: ...here.
904         * sysdeps/powerpc/sub_n.S: Moved to...
905         * sysdeps/powerpc/powerpc32/sub_n.S: ...here.
906         * sysdeps/powerpc/submul_1.S: Moved to...
907         * sysdeps/powerpc/powerpc32/submul_1.S: ...here.
908         * sysdeps/powerpc/elf/bzero.S: Moved to...
909         * sysdeps/powerpc/powerpc32/elf/bzero.S: ...here.
910         * sysdeps/powerpc/elf/start.S: Moved to...
911         * sysdeps/powerpc/powerpc32/elf/start.S: ...here.
912         * sysdeps/powerpc/fpu/__longjmp.S: Moved to...
913         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: ...here.
914         * sysdeps/powerpc/fpu/fprrest.S: Moved to...
915         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: ...here.
916         * sysdeps/powerpc/fpu/fprsave.S: Moved to...
917         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: ...here.
918         * sysdeps/powerpc/fpu/setjmp.S: Moved to...
919         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: ...here.
920         * sysdeps/powerpc/fpu/s_copysign.S: Moved to...
921         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: ...here.
922         * sysdeps/powerpc/fpu/s_copysignf.S: Moved to...
923         * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: ...here.
924         * sysdeps/unix/sysv/linux/powerpc/brk.S: Moved to...
925         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: ...here.
926         * sysdeps/unix/sysv/linux/powerpc/clone.S: Moved to...
927         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: ...here.
928         * sysdeps/unix/sysv/linux/powerpc/glob64.c: Moved to...
929         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
930         * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h: Moved to...
931         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: ...here.
932         * sysdeps/unix/sysv/linux/powerpc/socket.S: Moved to...
933         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: ...here.
934         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Moved to...
935         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: ...here.
936         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Moved to...
937         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: ...here.
938         Support PowerPC64.  Separate powerpc into powerpc/powerpc32 and
939         powerpc/powerpc64.
940
941 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
942
943         * FAQ.in: Add powerpc64 to supported targets list. Also state the
944         minimum gcc version is 3.2
945         * README: Add powerpc64 to supported targets list.
946         * configure.in: Change machine=powerpc to machine=powerpc/powerpc32.
947         Add powerpc64 and machine=powerpc/powerpc64.
948         (HAVE_ASM_GLOBAL_DOT_NAME): Define if linux*powerpc/powerpc64*.
949         * shlib-versions: Set DEFAULT version to 2.2.5 for powerpc64.
950         * sysdeps/powerpc/Dist: Remove dl-machine.c, dl-start.S, ppc-mcount.S,
951         gprsave1.S, gprsave0.S, gprrest1.S, and gprrest0.S.
952         * sysdeps/powerpc/powerpc32/Dist: New file.
953         * sysdeps/powerpc/Implies: Remove wordsize-32 and powerpc/soft-fp.
954         * sysdeps/powerpc/powerpc32/Implies: New file.
955         * sysdeps/powerpc/Makefile(cflags): Remove powerpc32 specific cflags.
956         ($(with-fp) = no): Move test to powerpc32/Makefile.
957         ($(subdir) = misc): Move to powerpc32/Makefile.
958         ($(build-shared) = yes): Move to powerpc32/Makefile.
959         ($(subdir) = csu): Move to powerpc32/Makefile.
960         (sysdep-rtld-routines): Remove dl-start.  Moved these bits to ...
961         * sysdeps/powerpc/powerpc32/Makefile: New file.
962         * sysdeps/powerpc/Versions: Remove libgcc functions.
963         * sysdeps/powerpc/powerpc32/Versions: New file.
964         * sysdeps/powerpc/fpu/Makefile: Remove fprsave and fprrest.
965         * sysdeps/powerpc/powerpc32/fpu/Makefile: New file.
966         * sysdeps/unix/sysv/linux/configure.in (powerpc*):
967         Set arch_minimum_kernel=2.4.19 for powerpc/powerpc64. Also set
968         libc_cv_gcc_unwind_find_fde=yes only if !powerpc/powerpc64.
969         ($machine): Add powerpc/powerpc64 to if ... | for
970         libc_cv_slibdir=/libc64.
971         (powerpc*): Set ldd_rewrite_script.
972         * sysdeps/unix/sysv/linux/powerpc/ldd-rewrite.sed: New file.
973         * sysdeps/unix/sysv/linux/powerpc/Dist: Remove clone.S.
974         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: New file.
975         Add clone.S.
976         * sysdeps/unix/sysv/linux/powerpc/Makefile: Remove oldgetrlimit64.
977         * sysdeps/unix/sysv/linux/powerpc/Versions: Remove GLIBC_2.0
978         functions.  Remove GLIBC_2.2 functions except getrlimit and
979         setrlimit.  Moved them to ...
980         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: New file.
981
982 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
983
984         * libio/tst-atime.c: Include <errno.h>.
985         (do_test): Only perform fstatvfs check if ST_NOATIME is defined.
986
987 2002-09-03  Isamu Hasegawa  <isamu@yamato.ibm.com>
988
989         * posix/regcomp.c (regcomp): Append "__restrict" modifier to avoid
990         warnings of some compilers.
991         (build_collating_symbol): Change the type of characters from
992         "unsigned char" to "char", and append a cast to "char*" pointer in
993         array subscript.
994         (build_collating_symbol): Likewise.
995         (build_equiv_class): Likewise.
996         (build_charclass): Likewise.
997         (re_compile_pattern): Remove incorrect cast.
998         (re_compile_fastmap_iter): Change the type of characters from
999         "unsigned char" to "char", and append a cast to "char*" pointer
1000         in array subscript.
1001         (parse_bracket_exp): Likewise.
1002         * posix/regex_internal.c (re_string_construct_common): Likewise.
1003         (re_string_allocate): Likewise.
1004         (re_string_construct): Likewise.
1005         (re_string_realloc_buffers): Likewise.
1006         (build_wcs_buffer): Likewise.
1007         (re_string_reconstruct): Likewise.
1008         * posix/regex_internal.h: Change the type of characters in
1009         re_string_t and bracket_elem_t from "unsigned char" to "char".
1010         * posix/regexec.c (regexec): Append "__restrict" modifier to avoid
1011         warnings of some compilers.
1012         (transit_state_bkref_loop): Change the type of characters from
1013         "unsigned char" to "char", and append a cast to "char*" pointer in
1014         array subscript.
1015         (check_node_accept_bytes): Likewise.
1016         (find_collation_sequence_value): Likewise.
1017
1018 2002-09-04  Roland McGrath  <roland@redhat.com>
1019
1020         * resolv/nss_dns/dns-network.c (MAXPACKET): Increase minimum value
1021         from 1024 to 65536, to avoid buffer overrun.
1022
1023 2002-09-03  Gerhard Tonn  <ton@de.ibm.com>
1024
1025         * sysdeps/s390/s390/fpu/libm-test-ulps: Regenerate.
1026
1027 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
1028
1029         * libio/tst-atime.c (do_test): Make sure noatime flag isn't set
1030         for filesystem.
1031
1032 2002-09-04  Jakub Jelinek  <jakub@redhat.com>
1033
1034         * posix/bug-regex11.c: New test.
1035         * posix/Makefile (tests): Add bug-regex11.
1036
1037 2002-09-03  Jakub Jelinek  <jakub@redhat.com>
1038
1039         * locale/tst-C_locale.c (run_test): Pass LC_ALL_MASK not LC_ALL to
1040         newlocale.
1041
1042 2002-09-02  Roland McGrath  <roland@redhat.com>
1043
1044         * sysdeps/powerpc/elf/libc-start.c [! SHARED]: Call
1045         __pthread_initialize_minimal and __libc_check_standard_fds to
1046         match the generic version.
1047
1048         * sysdeps/unix/sysv/linux/shmat.c (shmat): Add a cast to avoid a
1049         warning when INLINE_SYSCALL macro uses the __syscall_ipc function.
1050
1051         * locale/localeconv.c (__localeconv): Cast -1 to char to avoid
1052         warnings on platorms where char is unsigned.
1053
1054 2002-09-02  Ulrich Drepper  <drepper@redhat.com>
1055
1056         * version.h (VERSION): Bump to 2.2.93.
1057
1058         * sysdeps/unix/sysv/linux/x86_64/Dist: Add __start_context.S.
1059
1060 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
1061
1062         * elf/rtld.c (dl_main): If prelinking succeeded, mark all objects
1063         as relocated.
1064
1065 2002-09-02  Jack Howarth  <howarth@bromo.msbb.uc.edu>
1066
1067         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
1068
1069 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
1070
1071         * locale/localeinfo.h (struct locale_data): Add private.ctype.
1072         * wcsmbs/wcsmbsload.h (__wcsmbs_gconv_fcts, __wcsmbs_last_locale,
1073         __wcsmbs_to_wc, update_conversion_ptrs): Removed.
1074         (__wcsmbs_gconv_fcts_c, _nl_C_LC_CTYPE): New externs.
1075         (__wcsmbs_load_conv): Remove const from argument.
1076         (_nl_cleanup_ctype): New proto.
1077         (get_gconv_fcts): New function.
1078         * wcsmbs/wcsmbsload.c (__wcsmbs_last_locale): Removed.
1079         (__wcsmbs_to_wc): Rename back to...
1080         (to_wc): ... this.
1081         (__wcsmbs_gconv_fcts): Rename to...
1082         (__wcsmbs_gconv_fcts_c): ... this.  Make const.  Use to_wc.
1083         (lock): Removed.
1084         (__libc_setlocale_lock): New extern.
1085         (__wcsmbs_load_conv): Remove const from argument.
1086         Initialize new_category->private.ctype instead of a global
1087         variable.
1088         (__wcsmbs_clone_conv): Use get_gconv_fcts instead of
1089         update_function_ptrs.  No locking is necessary.
1090         (_nl_cleanup_ctype): New function.
1091         * wcsmbs/btowc.c (__btowc): Use get_gconv_fcts instead of
1092         update_function_ptrs and a global __wcsmbs_gconv_fcts variable.
1093         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
1094         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
1095         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
1096         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
1097         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
1098         * wcsmbs/wctob.c (wctob): Likewise.
1099         * stdlib/mblen.c (mblen): Likewise.
1100         * stdlib/mbtowc.c (mbtowc): Likewise.
1101         * stdlib/wctomb.c (wctomb): Likewise.
1102         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
1103         Remove calls to wcsmbs_get_towc_func and wcsmbs_free_funcs.
1104         * wcsmbs/mbsrtowcs_l.c (wcsmbs_get_towc_func, wcsmbs_free_funcs):
1105         Removed.
1106
1107 2002-09-02  Roland McGrath  <roland@frob.com>
1108
1109         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Add __fxstat64.
1110
1111 2002-09-01  Roland McGrath  <roland@redhat.com>
1112
1113         * ctype/ctype.h (__ctype_b, __ctype_toupper, __ctype_tolower):
1114         Variable declarations removed.
1115         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Declare
1116         these functions to replace them.
1117         (__isctype, tolower, toupper, _tolower, _toupper): Use those accessor
1118         functions plus an indirection rather than the old global variables.
1119         * include/ctype.h (__isctype, tolower, _tolower, toupper, _toupper):
1120         Macros removed.
1121         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): New extern
1122         inline functions.
1123         * ctype/ctype-info.c: Revert last reversion back the other way.
1124         Define tsd vars CTYPE_B, CTYPE_TOLOWER, CTYPE_TOUPPER.
1125         Define real function versions of include/ctype.h inlines here.
1126         * ctype/Versions (libc: GLIBC_2.3): Add __ctype_b_loc,
1127         __ctype_tolower_loc, __ctype_toupper_loc.
1128         * locale/lc-ctype.c: Revert last reversion back the other way.
1129         (_nl_postload_ctype): If current thread uses the global locale,
1130         update its tsd vars.
1131         * locale/uselocale.c (__uselocale): Update tsd vars from new locale.
1132         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add CTYPE_B,
1133         CTYPE_TOLOWER, CTYPE_TOUPPER.
1134
1135         * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_address): New macro.
1136         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_address): Renamed
1137         from __libc_tsd_threadvar_location.
1138         (__libc_tsd_set, __libc_tsd_get): Update uses.
1139
1140 2002-09-01  Ulrich Drepper  <drepper@redhat.com>
1141
1142         * ctype/ctype.h: Undo the patch before the last one.  Put back the
1143         macro definitions for the standard functions to access the
1144         classification and mapping arrays.
1145         * include/ctype.h: Partly revert last patch.  Move the macro
1146         definitions for the exported functions back to the public header.
1147         #undef all the macros defined here before redefining.
1148         * ctype/ctype-info.c: Revert last patch.
1149         * locale/lc-ctype.c: Revert last patch.
1150
1151         * ctype/Makefile (routines): Add isctype.
1152         * ctype/Versions (libc): Export isctype and __isctype for GLIBC_2.3.
1153         * ctype/ctype.h: Add declaration of isctype.
1154         * include/ctype.h: Declare __isctype.
1155         * ctype/isctype.c: New file.
1156
1157 2002-09-01  Roland McGrath  <roland@redhat.com>
1158
1159         * sysdeps/generic/libc-tls.c (__pthread_initialize_minimal): Pass
1160         TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN instead of 0, 1.
1161
1162         * include/getopt.h: Include <features.h> before <posix/getopt.h>.
1163
1164         * locale/findlocale.c (_nl_remove_locale): Don't search in
1165         _nl_locale_file_list if DATA->alloc is ld_archive.
1166         Use _nl_unload_locale to do the rest of the work.
1167
1168         * locale/loadarchive.c (_nl_load_locale_from_archive): Set usage_count
1169         of new structure to UNDELETABLE.
1170
1171         * wctype/wctype.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower,
1172         iswgraph, iswprint, iswpunct, iswspace, iswupper, iswxdigit, iswblank,
1173         towlower, towupper): Macros removed.
1174         * ctype/ctype.h (__tobody): Put parens around macro argument.
1175         (__isctype): Macro removed.
1176         (__ctype_b, __ctype_tolower, __ctype_toupper): Decls removed.
1177         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1178         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1179         tolower, toupper): Macros and inlines removed.
1180         * include/ctype.h [! NOT_IN_libc]
1181         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1182         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1183         tolower, toupper): Define here instead, using _NL_CURRENT.
1184         * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Define as macros
1185         using _NL_CURRENT.
1186         * ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Likewise.
1187         * ctype/ctype-info.c (__ctype_b, __ctype_tolower, __ctype_toupper):
1188         Renamed these to __ctype_old_*. Define old names only for SHLIB_COMPAT.
1189         (__ctype32_b, __ctype32_tolower, __ctype32_toupper): Likewise.
1190         (__ctype32_wctrans, __ctype32_wctrans, __ctype32_width): Removed.
1191         * locale/lc-ctype.c (_nl_postload_ctype): Use renamed variables,
1192         conditional on SHLIB_COMPAT.  Don't set removed variables at all.
1193         * wctype/wcfuncs.c: Use _NL_CURRENT instead of those globals.
1194         * wcsmbs/wcwidth.h (internal_wcwidth): Likewise.
1195         * resolv/res_init.c [RESOLVSORT] (sort_mask): Renamed sort_mask_chars.
1196         (ISSORTMASK): Update use.
1197         * intl/localealias.c [__GNUC__]: #undef alloca before #define.
1198         * nss/nss_files/files-XXX.c (last_use): Rename `none' to `nouse'.
1199         (_nss_files_getENTNAME_r): Likewise.
1200         * nss/nss_files/files-alias.c (last_use, _nss_files_getaliasent_r):
1201         Likewise.
1202
1203         * Makerules (all-nonlib): Renamed from all-tests.
1204         Include $(others) here too.
1205         * locale/Makefile (CPPFLAGS-locale, CPPFLAGS-localedef,
1206         CPPFLAGS-ld-ctype, CPPFLAGS-ld-time, CPPFLAGS-ld-numeric,
1207         CPPFLAGS-ld-monetary, CPPFLAGS-ld-collate, CPPFLAGS-ld-identification,
1208         CPPFLAGS-charmap, CPPFLAGS-locarchive, CPPFLAGS-linereader,
1209         CPPFLAGS-charmap-dir): Variables removed.  Instead, catch all
1210         the program modules via cppflags-iterator.mk.
1211         * sunrpc/Makefile (CPPFLAGS-rpc_main): Variable removed.
1212         Instead, catch all rpcgen-objs via cppflags-iterator.mk.
1213
1214 2002-08-31  Roland McGrath  <roland@redhat.com>
1215
1216         * posix/tst-getconf.sh: If no third arg, work with static linking.
1217
1218         * locale/categories.def (LC_TIME): No more _nl_postload_time.
1219
1220         * locale/setlocale.c (_nl_category_postload): Use weak refs only under
1221         [_NL_CURRENT_INDIRECT].
1222
1223 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1224
1225         * time/tst-ftime_l.c (main): Also test strftime with uselocale.
1226
1227 2002-08-31  Roland McGrath  <roland@redhat.com>
1228
1229         * locale/newlocale.c (__newlocale): Don't use strdup for names.
1230         Instead, make the single allocation of the structure larger to hold
1231         the name strings.
1232         * locale/duplocale.c (__duplocale): Don't strdup names individually.
1233         Instead, calculate size for a single allocation and copy into it.
1234         * locale/freelocale.c (__freelocale): Don't free names individually.
1235
1236         * locale/newlocale.c (__newlocale): Don't leak old data or names.
1237
1238         * locale/xlocale.h (__locale_struct): Move __names member last,
1239         for binary compatibility.
1240
1241         * locale/duplocale.c (__duplocale): Free names from the right array.
1242
1243         * locale/uselocale.c (__uselocale): Return previous locale when
1244         setting a new one.
1245
1246         * locale/newlocale.c: Commit changes from 2002-08-30
1247         batch where I failed to commit this file:
1248         (__newlocale): Fill in __names array.
1249
1250 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1251
1252         * sysdeps/gnu/Makefile: Only depend on Versions.v.i for
1253         errlist-compat.c if versioning==yes.
1254
1255 2002-08-31  Andreas Jaeger  <aj@suse.de>
1256
1257         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Declare
1258         external functions with hidden attribute.
1259         (elf_machine_rela): Optimize.
1260
1261         * sysdeps/x86_64/memset.S: New file.
1262         * sysdeps/x86_64/bzero.S: New file.
1263         * sysdeps/x86_64/stpcpy.S: New file.
1264         * sysdeps/x86_64/strcat.S: New file.
1265         * sysdeps/x86_64/strchr.S: New file.
1266         * sysdeps/x86_64/strcpy.S: New file.
1267         * sysdeps/x86_64/strcspn.S: New file.
1268         * sysdeps/x86_64/strlen.S: New file.
1269         * sysdeps/x86_64/strpbrk.S: New file.
1270         * sysdeps/x86_64/strspn.S: New file.
1271         * sysdeps/x86_64/strcmp.S: New file.
1272         * sysdeps/x86_64/strtok_r.S: New file.
1273         * sysdeps/x86_64/strtok.S: New file.
1274         * sysdeps/x86_64/memcpy.S: New file.
1275         * sysdeps/x86_64/mempcpy.S: New file.
1276
1277         * sysdeps/x86_64/fpu/s_copysign.S: Fix algorithm.
1278
1279         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for double tests.
1280
1281 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1282
1283         * stdio-common/Makefile (generated): Add errlist-compat.c.
1284
1285         * locale/Makefile (extra-objs): Add $(localedef-aux:=.o).
1286
1287         * locale/localeinfo.h: Pretty printing.
1288
1289         * stdio-common/vfprintf.c (vfprintf): Remove duplicate ifs in
1290         form_number handling.
1291
1292 2002-08-31  Andreas Jaeger  <aj@suse.de>
1293
1294         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for float and long
1295         double tests.
1296
1297         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_routines): Add
1298         __start_context.
1299
1300         * sysdeps/unix/sysv/linux/x86_64/__start_context.S: New file.
1301
1302         * sysdeps/unix/sysv/linux/x86_64/makecontext.c: New file.
1303
1304         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: Add defines for
1305         registers used for passing args.
1306
1307         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Save and restore
1308         all needed registers.
1309
1310         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Restore all
1311         registers.
1312
1313         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Save all needed
1314         registers.
1315
1316 2002-08-30  Ulrich Drepper  <drepper@redhat.com>
1317
1318         * elf/dynamic-link.h (elf_get_dynamic_info): Mark with
1319         always_inline attribute.
1320
1321 2002-08-30  Roland McGrath  <roland@redhat.com>
1322
1323         * stdlib/tst-setcontext.c (main): If makecontext does nothing,
1324         presume it's the stub and bail without error.
1325
1326         * nss/getnssent_r.c (__nss_getent_r): Return ENOENT if status is
1327         neither SUCCESS nor TRYAGAIN (see 2002-08-25 change [PR libc/4259]).
1328
1329         * nss/getnssent_r.c (__nss_getent_r): Set *H_ERRNOP, not global one.
1330
1331         * sysdeps/x86_64/hp-timing.h (HP_TIMING_NOW, HP_TIMING_ACCUM): New
1332         macros replace the i686 versions for 64-bit mode.
1333
1334         * locale/duplocale.c: Include <string.h>.
1335
1336         * intl/dcigettext.c (DCIGETTEXT) [_LIBC]: Check for bogus CATEGORY.
1337         [_LIBC] (category_to_name): Don't define the function.  Instead
1338         define a macro using _nl_category_names.
1339
1340         * locale/xlocale.h (struct __locale_struct): New member `__names'.
1341         * locale/xlocale.c (_nl_C_locobj): Update initializer.
1342         * locale/global-locale.c (_nl_global_locale): Likewise.
1343         * locale/duplocale.c (__duplocale): strdup __names elements.
1344         * locale/freelocale.c (__freelocale): Free __names elements.
1345         * locale/localename.c (_nl_current_names): Variable removed.
1346         (__current_locale_name): Use _NL_CURRENT_LOCALE->__names instead.
1347         * locale/localeinfo.h (_nl_current_names): Removed decl.
1348         * locale/setlocale.c: Use _nl_global_locale->__names in place of
1349         _nl_current_names throughout.
1350
1351         * locale/setlocale.c (setlocale): strdup -> __strdup (not ISO C).
1352
1353         * sysdeps/gnu/errlist-compat.awk: Emit link_warnings for sys_errlist
1354         and sys_nerr in the output file.
1355
1356         * sunrpc/Makefile (rpcgen-cmd): Pass CPP in rpcgen's environment.
1357         * scripts/cpp: Just use the environment variable.
1358
1359         * libio/tst-mmap-setvbuf.c (main): Use 'm' fopen flag.
1360         * libio/tst-mmap-offend.c (do_test): Likewise.
1361         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
1362         * libio/tst-mmap-eofsync.c (do_test): Likewise.
1363         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
1364
1365         * locale/localename.c: If the current locale is the global locale, use
1366         _nl_current_names; otherwise use the locale object.
1367
1368 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
1369
1370         * libio/fileops.c (_IO_new_file_fopen): Recognize new mode specifier
1371         'm' to enable mmap I/O.
1372         * libio/libio.h (_IO_FILE): Rename _blksize field to _flags2.  The
1373         former wasn't used (anymore?).
1374         (_IO_FLAGS2_MMAP): New define.
1375         * libio/genops.c (_IO_no_init): Initialize _flags2 field.
1376         * libio/iofopen.c (__fopen_maybe_mmap): Use mmap callbacks only if
1377         _IO_FLAGS2_MMAP bit is set.
1378         * libio/iofdopen.c (_IO_new_fdopen): Recognize 'm' mode specifier.
1379         Enable mmap-using mode only if 'm' was set.
1380
1381 2002-08-29  Roland McGrath  <roland@frob.com>
1382
1383         * sysdeps/mach/hurd/bits/local_lim.h (NAME_MAX): New macro.
1384
1385         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup: doinit):
1386         Change argument type from int to intptr_t.
1387
1388         * locale/global-locale.c (__libc_tsd_LOCALE_data): Conditionalize the
1389         initializer on [! _HURD_THREADVAR_H] (bad kludge).
1390         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize
1391         _HURD_THREADVAR_LOCALE slot to &_nl_global_locale.
1392         * hurd/hurdsig.c (_hurdsig_init): Likewise.  Zero other slots.
1393
1394         * sysdeps/mach/_strerror.c (__strerror_r): Add libc_hidden_def.
1395
1396         * sysdeps/mach/hurd/pwrite64.c: No libc_hidden_def (__libc_pwrite64).
1397
1398         * sysdeps/mach/hurd/dl-sysdep.c (__GI_abort): Define alias for abort.
1399
1400         * include/assert.h (__assert_perror_fail): Declare it, do hidden_proto.
1401         * assert/assert-perr.c: Add libc_hidden_def.
1402         * elf/dl-minimal.c [! NDEBUG] (__assert_perror_fail): New function.
1403
1404         * sysdeps/gnu/errlist-compat.awk: Don't fail if there are no versions
1405         found at all.
1406         * sysdeps/gnu/Versions: File removed.  Moved all #errlist-compat
1407         sys_errlist stuff to ...
1408         * sysdeps/unix/sysv/linux/Versions: ... here.
1409
1410         * mach/mach.h: Include <features.h>.
1411
1412 2002-08-29  Roland McGrath  <roland@redhat.com>
1413
1414         * elf/dl-runtime.c (IN_DL_RUNTIME): Define this macro first thing.
1415         * sysdeps/i386/dl-machine.h: Only declare fixup, profile_fixup and
1416         define ELF_MACHINE_RUNTIME_TRAMPOLINE under #ifdef IN_DL_RUNTIME.
1417
1418         * sysdeps/generic/readelflib.c (process_elf_file): Fix typo.
1419
1420         * iconv/gconv_int.h: Include <stdlib.h> for alloca decl.
1421         (norm_add_slashes): alloca -> __alloca
1422
1423 2002-08-29  Jakub Jelinek  <jakub@redhat.com>
1424
1425         * stdio-common/vfprintf.c (vfprintf): Add builtin_expect for
1426         string_malloced, it is unlikely to be set.
1427         Only call free with non-NULL workspace.
1428         * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Use
1429         -mcpu=ultrasparc, not only tune for it.
1430         (ASFLAGS*): Set unconditionally.
1431
1432         * sysdeps/generic/readelflib.c (process_elf_file): Make LOADADDR
1433         ElfW(Addr).  Don't mask upper 32-bits and lower 12 bits off from
1434         p_vaddr/p_offset when computing LOADADDR.
1435
1436 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
1437
1438         * version.h (VERSION): Bump to 2.2.92.
1439
1440         * time/Makefile (tst-ftime_l-ENV): New variable.
1441
1442         * iconvdata/ibm870.c: All bytes are now used, no holes anymore.
1443
1444         * localedata/charmaps/IBM870: Add correct mapping for <U017E>,
1445         <U017A>, <U017D> and <U0179>. Add missing mappings.
1446         Patch by Antonin Kopecky <akopecky@tajmac-zps.cz>.
1447
1448         * gmon/sys/gmon.h (ARCDENSITY): Bump to 3.
1449         Define ARCINDEX.  Bump MAXARCS to 1 << 20.
1450         (struct tostruct): Use ACRINDEX as type for link field.
1451         (statuc gmonparam): Likewise for froms.
1452         * gmon/gmon.c (__monstartup): Use currect cast for assignments to
1453         kcount and froms.
1454         (write_call_graph): Use correct type for from_index and to_index.
1455         * gmon/mcount.c: Use correct types for frompcindex and toindex
1456         variables.
1457         Patches by Dan Kegel <dank@kegel.com>.
1458
1459         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix code to determine
1460         canonical name.
1461
1462         * time/strptime.c (ISSPACE): New #define.  Use isspace or
1463         __isspace_l.  Replace calls to isspace.
1464         (match_string): Define variant for USE_IN_EXTENDED_LOCALE_MODEL.
1465
1466 2002-08-29  Roland McGrath  <roland@redhat.com>
1467
1468         * string/tst-strxfrm.c: Remove __ from function names.
1469
1470 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1471
1472         * include/wchar.h: Declare __mbsrtowcs_l.
1473         * wcsmbs/Makefile (routines): Add mbsrtowcs_l.
1474         * wcsmbs/mbsrtowcs.c: Add support for compilation with
1475         USE_IN_EXTENDED_LOCALE_MODEL.
1476         * wcsmbs/mbsrtowcs_l: New file.
1477         * wcsmbs/wcsmbsload.c (__wcsmbs_to_wc): Renamed from to_wc.  Don't
1478         define as static.  Change all uses.
1479         (__wcsmbs_getfct): Renamed from getfct.  Don't define as static.
1480         Change all callers.
1481         * wcsmbs/wcsmbsload.h: Declare __wcsmbs_to_wc and __wcsmbs_getfct.
1482         * time/strftime.c: When translating for the extended locale model
1483         use the _l functions.
1484         * time/Makefile (tests): Add tst-ftime_l.
1485         * time/tst-ftime_l.c: New file.
1486
1487 2002-08-28  Roland McGrath  <roland@redhat.com>
1488
1489         * locale/findlocale.c [NL_CURRENT_INDIRECT] (_nl_C): New variable.
1490         * locale/setlocale.c (setlocale) [NL_CURRENT_INDIRECT]: Null return
1491         from _nl_find_locale ok if for _nl_C_name.
1492
1493         * locale/nl_langinfo.c [NL_CURRENT_INDIRECT]: Use a categories.def
1494         iterator to refer to each category's _nl_current_LC_FOO symbol, so
1495         we know they are all linked in.
1496
1497         * NEWS: Added 2.2.6 text from 2.2 branch version.
1498
1499         * time/strptime.c (strptime_internal): Remove spurious const.
1500
1501         * locale/lc-time.c (_nl_init_era_entries, _nl_get_era_entry,
1502         _nl_select_era_entry): Moved to ...
1503         * time/era.c: ... here, new file.
1504         (_nl_init_era_entries, _nl_get_era_entry, _nl_select_era_entry):
1505         Add internal_function to definitions.  Take an additional argument
1506         giving the `struct locale_data *' to use.
1507         * locale/lc-time.c (_get_alt_digit, _nl_get_walt_digit,
1508         _nl_parse_alt_digit): Moved to ...
1509         * time/alt_digit.c: ... here, new file.
1510         * time/lc-time-cleanup.c: New file.
1511         * locale/lc-time.c (_nl_postload_time, free_mem): Functions removed.
1512         * locale/localeinfo.h (_nl_postload_time): Remove decl.
1513         (_nl_cleanup_time): Declare it.
1514         (_nl_get_era_entry, _nl_select_era_entry): Update decls.
1515         (_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit): Likewise.
1516         * time/Makefile (aux): New variable: era, alt_digit, lc-time-cleanup.
1517         * time/strftime.c: Pass locale data to helper functions.
1518         * time/strptime.c: Likewise.
1519
1520         * locale/localeinfo.h (struct locale_data): New member `private'
1521         * locale/loadlocale.c (_nl_intern_locale_data): Initialize it.
1522         (_nl_unload_locale): Call LOCALE->private.cleanup if it is set.
1523         * locale/C-collate.c: Update initializer.
1524         * locale/C-identification.c: Likewise.
1525         * locale/C-measurement.c: Likewise.
1526         * locale/C-telephone.c: Likewise.
1527         * locale/C-address.c: Likewise.
1528         * locale/C-name.c: Likewise.
1529         * locale/C-paper.c: Likewise.
1530         * locale/C-time.c: Likewise.
1531         * locale/C-numeric.c: Likewise.
1532         * locale/C-monetary.c: Likewise.
1533         * locale/C-messages.c : Likewise.
1534         * locale/C-ctype.c: Likewise.
1535
1536         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL] (_NL_CURRENT_WORD):
1537         Redefine this too.
1538
1539 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1540
1541         * sysdeps/generic/ldsodefs.h (__rtld_global_attribute__): Define.
1542         (_rtld_global): Use it.
1543
1544         * sysdeps/gnu/Dist: Remove errlist-compat.c.
1545         * sysdeps/gnu/Makefile (errlist-compat.c): Build this file in the
1546         object directory.  Pass all Versions files to the awk script.
1547         * sysdeps/gnu/errlist-compat.c: Removed.
1548         * sysdeps/gnu/errlist.awk: Use #errlist-compat comments from the
1549         first Versions file in the search path which has them.
1550         Allow multiple errlist symbol versions to have the same count of
1551         errors.
1552         * sysdeps/gnu/errlist-compat.awk: Include <errlist-compat.c> instead
1553         of "errlist-compat.c".
1554         * sysdeps/gnu/errlist.c: Regenerated.
1555         * sysdeps/unix/sysv/linux/mips/Versions (libc): Add #errlist-compat
1556         comments at GLIBC_2.0, GLIBC_2.1 and GLIBC_2.3.
1557         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
1558         (librt): Add aio_cancel and aio_cancel64 as GLIBC_2.3.
1559         * sysdeps/unix/sysv/linux/hppa/Versions: Likewise.
1560         * sysdeps/unix/sysv/linux/sparc/Versions: New file.
1561         * sysdeps/unix/sysv/linux/alpha/bits/errno.h: New file.
1562         * sysdeps/unix/sysv/linux/hppa/bits/errno.h (ECANCELED): Define to
1563         ECANCELLED if not defined by kernel headers.
1564         * sysdeps/unix/sysv/linux/bits/errno.h: Don't redefine ECANCELED if
1565         already defined by kernel headers.
1566         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: New file.
1567         * sysdeps/pthread/aio_cancel.c: Don't include aio.h and its
1568         aio_cancel64 renaming hack nor provide weak_alias if aio_cancel
1569         is a macro.
1570         * Versions.def (GLIBC_2.3) [librt]: Add.
1571
1572         * sysdeps/unix/sysv/linux/alpha/pipe.S: New file.
1573
1574 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1575
1576         * include/libc-symbols.h [!__ASSEMBLER__] (declare_symbol_1): Add
1577         missing comma to .type directive.
1578
1579 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1580
1581         * sysdeps/ia64/elf/configure.in (PI_STATIC_AND_HIDDEN): Define
1582         unconditionally.
1583         * sysdeps/alpha/elf/configure.in (libc_cv_alpha_hidden_gprel): New
1584         check.
1585         (PI_STATIC_AND_HIDDEN): Define if check succeeded.
1586
1587 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1588
1589         * locale/loadarchive.c (_nl_load_locale_from_archive): Add fd >= 0
1590         check to close_and_out close.  Replace return NULL statements where
1591         fd might be >= 0 with goto close_and_out.  Close the file descriptor
1592         when it is no longer needed.
1593
1594 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1595
1596         * sysdeps/s390/s390-64/dl-machine.h: Avoid unescaped newlines in
1597         string constants.
1598         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1599         * sysdeps/arm/dl-machine.h: Likewise.
1600         * sysdeps/cris/dl-machine.h: Likewise.
1601         * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
1602         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
1603
1604 2002-08-28  Roland McGrath  <roland@redhat.com>
1605
1606         * Makeconfig (default_cflags): Revert unintended change.
1607
1608 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1609
1610         * version.h (VERSION): Bump to 2.2.91.
1611
1612         * configure.in: Disable TLS support by default for now.
1613
1614         * sysdeps/i386/fpu/libm-test-ulps: Adjust ulp for yn for float.
1615
1616         * sysdeps/generic/strtol.c (strtol): Add some more casts to avoid
1617         warnings.
1618
1619         * stdlib/strtod.c (STRTOF): Correct type in cast of last patch.
1620
1621         * stdlib/fmtmsg.c (fmtmsg): Use correct test for failure of
1622         fprintf/fwprintf calls.
1623
1624 2002-08-28  Roland McGrath  <roland@redhat.com>
1625
1626         * Makeconfig (run-program-prefix): Fix bogus use of $(findstring ...)
1627         to use $(filter ...) instead.  Same bug fixed in aix conditionals.
1628
1629         * locale/setlocale.c: Declare postload functions weak.
1630
1631         * elf/tst-tls1-static.c: New file.
1632         * elf/tst-tls2-static.c: New file.
1633         * elf/Makefile ($(tests-static):%=$(objfpx)%.o): Remove rule.
1634
1635         Make uselocale support static linking.
1636         * locale/xlocale.c: Revert changes putting _nl_global_locale here.
1637         This file again just defines _nl_C_locobj.
1638         (_nl_C_locobj): Use a categories.def iterator in the initializer.
1639         * locale/global-locale.c: New file.  Define _nl_global_locale here,
1640         using all weak references in the initializer.
1641         * locale/Makefile (aux): Add global-locale.
1642         * locale/localeinfo.h (_nl_global_locale, _NL_CURRENT_LOCALE): Make
1643         these unconditional, along with the tsd decl.
1644         [!SHARED && HAVE___THREAD && HAVE_WEAK_SYMBOLS] (NL_CURRENT_INDIRECT):
1645         Define it under these conditions.
1646         [NL_CURRENT_INDIRECT]: Test this instead of [! SHARED].
1647         Don't declare _nl_current.  Declare _nl_current_LC_FOO as
1648         `extern __thread struct locale_data *const *'.
1649         [NL_CURRENT_INDIRECT]
1650         (_NL_CURRENT_DATA, _NL_CURRENT, _NL_CURRENT_WSTR): Add indirection.
1651         [NL_CURRENT_INDIRECT] (_NL_CURRENT_DEFINE): Rewritten.  Define
1652         the thread variable _nl_current_LC_FOO and also a special absolute
1653         symbol _nl_current_LC_FOO_used.
1654         * locale/uselocale.c (__uselocale) [NL_CURRENT_INDIRECT]:
1655         Set each _nl_current_LC_FOO symbol to point into the new locale,
1656         using weak references to test if _nl_current_LC_FOO_used was linked in.
1657         * locale/setlocale.c [! SHARED]: Replace this conditional ...
1658         [NL_CURRENT_INDIRECT]: ... with this one.
1659         (_nl_current, _nl_C): Variables removed.
1660         [NL_CURRENT_INDIRECT] (_nl_current_used): New variable, table of
1661         weak references to _nl_current_LC_FOO_used.
1662         [NL_CURRENT_INDIRECT] (CATEGORY_USED): Define using that table.
1663         (free_category): New function, broken out of ...
1664         (free_mem): ... here.  Call that.
1665         (free_mem) [NL_CURRENT_INDIRECT]: Use a categories.def iterator
1666         instead of a loop.
1667
1668         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Don't check for
1669         PT_LOAD program headers and don't try to relocate PT_TLS's p_vaddr;
1670         it is already absolute.
1671
1672         * elf/Makefile (tests): List tst-tls1 and tst-tls2 unconditionally.
1673         [$(build-static) = yes] (tests): Add tst-tls1-static, tst-tls2-static.
1674         [$(build-static) = yes] (tests-static): New variable.
1675         ($(tests-static):%=$(objfpx)%.o)): New static pattern rule.
1676
1677 2002-08-26  Christoph Hellwig  <hch@lst.de>
1678
1679         * sysdeps/unix/sysv/linux/sys/personality.h: Remark origin, fix
1680         formating braindamage, add missing PER_HPUX and PER_OSF1 values.
1681
1682 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1683
1684         * sysdeps/x86_64/Dist: Add _mcount.S and bits/link.h.
1685
1686         * sysdeps/s390/Dist: Add bits/link.h.
1687
1688         * sysdeps/sh/Dist: New file.
1689
1690         * sysdeps/ia64/Dist: Add ia64libgcc.S.
1691
1692         * sysdeps/wordsize-32/Dist: New file.
1693
1694         * sysdeps/unix/sysv/linux/alpha/Dist: Add dl-brk.S.
1695         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
1696         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
1697
1698         * sysdeps/unix/sysv/linux/Dist: Add dl-brk.c, dl-sbrk.c, and
1699         sys/personality.h.
1700
1701         * sysdeps/unix/Dist: Add i386/dl-brk.S, mips/dl-brk.S, and
1702         sparc/dl-brk.S.
1703
1704         * sysdeps/unix/bsd/Dist: Add vax/dl-brk.S.
1705
1706         * sysdeps/unix/bsd/sun/Dist: New file.
1707
1708         * sysdeps/unix/bsd/osf/Dist: New file.
1709
1710         * sysdeps/unix/bsd/hp/Dist: New file.
1711
1712         * sysdeps/unix/arm/Dist: New file.
1713
1714         * sysdeps/powerpc/Dist: Add divdi3.c and libgcc-compat.S.
1715
1716         * sysdeps/mach/hurd/Dist: Add set-init.c.
1717
1718         * sysdeps/i386/Dist: Add bits/link.h.
1719
1720         * sysdeps/gnu/Dist: Add errlist-compat.c errlist-compat.awk.
1721
1722         * sysdeps/generic/Dist: Add dl-brk.c and dl-sbrk.c.
1723
1724         * locale/Makefile (distribute): Add hashval.h.
1725
1726         * iconvdata/Makefile (distribute): Add tcvn5712-1.c and armscii-8.c.
1727
1728         * sysdeps/unix/sysv/linux/Dist: Remove errlist.h.
1729
1730         * misc/sys/cdefs.h: Define __BEGIN_NAMESPACE_STD, __END_NAMESPACE_STD,
1731         __USING_NAMESPACE_STD, __BEGIN_NAMESPACE_C99, __END_NAMESPACE_C99, and
1732         __USING_NAMESPACE_C99 depending on _GLIBCPP_USE_NAMESPACES.
1733         * ctype/ctype.h: Prepare headers for use in ISO C++ compliant
1734         implementations.
1735         * libio/stdio.h: Likewise.
1736         * locale/locale.h: Likewise.
1737         * math/math.h: Likewise.
1738         * math/bits/mathcalls.h: Likewise.
1739         * setjmp/setjmp.h: Likewise.
1740         * signal/signal.h: Likewise.
1741         * stdlib/stdlib.h: Likewise.
1742         * string/string.h: Likewise.
1743         * time/time.h: Likewise.
1744         * wcsmbs/wchar.h: Likewise.
1745         * wctype/wctype.h: Likewise.
1746
1747 2002-08-28  Roland McGrath  <roland@redhat.com>
1748
1749         * locale/tst-C-locale.c (run_test): Remove __ from function names.
1750
1751 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1752             Roland McGrath <roland@redhat.com>
1753
1754         * locale/hashval.h (compute_hashval): Use prototype defn.
1755         (hashval_t): New macro, defined to unsigned long int
1756         if not already defined.
1757         (compute_hashval): Return hashval_t instead of unsigned long int.
1758         * locale/loadarchive.c (hashval_t): New macro.
1759         * locale/programs/locarchive.c: Include hashval.h directly instead
1760         of simple-hash.h.
1761         (compute_hashval, hashval_t): Define these macros first.
1762         (insert_name): Use archive_hashval instead of compute_hashval.
1763         (add_locale, delete_locales_from_archive): Likewise.
1764
1765 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1766
1767         * locale/programs/locarchive.c (insert_name): Suppress warnings about
1768         hash collisions if be_quiet.
1769
1770 2002-08-27  Roland McGrath  <roland@redhat.com>
1771
1772         * locale/locale.h (__newlocale, __duplocale, __freelocale,
1773         __uselocale): Don't declare these any more.
1774         * include/locale.h (__uselocale): Declare here instead, using __typeof.
1775
1776         * sysdeps/unix/readdir.c: If getdents fails with ENOENT, restore errno
1777         and treat it as an EOF return.
1778         * sysdeps/unix/readdir_r.c: Likewise.
1779
1780         * sysdeps/gnu/errlist-compat.awk: Include <bits/wordsize.h> in output.
1781         From Alexandre Oliva <aoliva@redhat.com>.
1782         * sysdeps/gnu/errlist-compat.c: Regenerated.
1783
1784 2002-08-27  Brian Youmans  <3diff@gnu.org>
1785
1786         * sysdeps/ieee754/flt-32/e_asinf.c: Modified copying permission
1787         wording at request of copyright holder Stephen Moshier.
1788         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
1789         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
1790         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
1791         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
1792         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
1793         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
1794         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
1795         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
1796         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
1797         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
1798         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
1799         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
1800         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
1801         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
1802
1803 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1804
1805         * ctype/ctype.h (isascii_l, toascii_l): Define to __*_l counterparts.
1806         * ctype/ctype-extn.c (isblank_l): Add weak alias.
1807         * sysdeps/generic/strtol_l.c (strtol_l): Likewise.
1808         * sysdeps/generic/strtoll_l.c (strtoll_l): Likewise.
1809         * sysdeps/generic/strtoul_l.c (strtoul_l): Likewise.
1810         * sysdeps/generic/strtoull_l.c (strtoull_l): Likewise.
1811         * wctype/iswctype_l.c (iswctype_l): Likewise.
1812
1813 2002-08-27  Roland McGrath  <roland@redhat.com>
1814
1815         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: No libc_hidden_def.
1816
1817         * ctype/ctype.h (__exctype_l): Don't declare __ name.
1818         * stdlib/stdlib.h: Don't declare __*_l names.
1819         * include/stdlib.h: Declare them here instead.
1820         * include/string.h: Don't declare __*_l names.
1821         * string/string.h: Declare them here instead.
1822         * time/time.h: Don't declare __*_l names.
1823         * include/time.h: Declare them here instead.
1824         * wcsmbs/wchar.h: Don't declare __*_l names.
1825         * include/wchar.h: Declare them here instead.
1826         * wctype/wctype.h: Declare iswalnum_l, not __iswalnum_l.
1827         Don't declare __*_l names.
1828         * include/wctype.h: Declare them here instead.
1829         * stdlib/monetary.h: Declare strfmon_l, not __strfmon_l.
1830         * stdlib/strfmon_l.c (strfmon_l): Define as weak alias.
1831         * locale/langinfo.h: Don't declare __nl_langinfo_l.
1832         * include/langinfo.h: Declare it here with __typeof.
1833
1834         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strptime_l
1835         instead, taking an extra __locale_t argument.
1836         * time/Makefile (routines): Add strptime_l.
1837         * time/time.h (__strptime_l, strptime_l): Declare them.
1838         * time/strptime_l.c: New file.
1839
1840         * time/time.h (__strftime_l, strftime_l): Declare them.
1841         * wcsmbs/wchar.h (__wcsftime_l, wcsftime_l): Declare them.
1842         * time/strftime_l.c: New file.
1843         * time/wcsftime_l.c: New file.
1844         * time/Makefile (routines): Add strftime_l, wcsftime_l.
1845         * time/Versions (libc: GLIBC_2.3): Add __strftime_l, __wcsftime_l,
1846         strftime_l, wcsftime_l.
1847         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strftime_l
1848         or __wcsftime_l instead, taking an extra __locale_t argument.
1849
1850         * locale/Versions (libc: GLIBC_PRIVATE): Move __uselocale to ...
1851         (libc: GLIBC_2.3): ... here.
1852
1853 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
1854
1855         * stdio-common/Makefile: Fix typo in stdio_lim.h installation rule.
1856
1857         * Makefile (distribute): Add LICENSES.
1858
1859         * sysdeps/unix/sysv/linux/x86_64/Dist: Add ucontext_i.h and
1860         sys/debugreg.h.
1861
1862         * sysdeps/unix/sysv/linux/s390/Dist: Add new/route.h.
1863
1864         * sysdeps/unix/sysv/linux/ia64/Dist: Add dl-brk.S and sys/user.h.
1865
1866         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/user.h.
1867
1868         * sysdeps/unix/sysv/linux/Dist: Add readahead.c.
1869
1870         * sysdeps/mach/hurd/alpha/Dist: New file.
1871
1872         * sysdeps/arm/Dist: Add bits/link.h.
1873
1874         * sunrpc/Makefile: Distribute thrsvc.
1875
1876         * stdio-common/Makefile: Remove more left-overs from old stdio.
1877
1878         * include/linewrap.h: Removed.
1879
1880         * libio/bug-mmap-fflush.c: Rewrite to not touch source directory.
1881
1882         * intl/Makefile (distribute): Add plural-eval.c.
1883
1884 2002-08-27  Roland McGrath  <roland@redhat.com>
1885
1886         * manual/sysinfo.texi (Mount Information): Correct file name to macro
1887         assocations for _PATH_MNTTAB, MNTTAB, _PATH_MOUNTED, MOUNTED.
1888         Say mtab is in either /var/run or /etc.
1889
1890 2002-08-26  Roland McGrath  <roland@redhat.com>
1891
1892         * manual/errno.texi (Error Codes): Added ECANCELED (118 for Hurd).
1893         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
1894
1895         * sysdeps/gnu/Versions: New file.
1896         * sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.1): Remove
1897         _sys_errlist; sys_errlist; _sys_nerr; sys_nerr; from here.
1898         * sysdeps/gnu/Makefile ($(..)sysdeps/gnu/errlist-compat.c): New target.
1899         ($(objpfx)errlist.d): Depend on $(..)sysdeps/gnu/errlist-compat.c.
1900         * sysdeps/gnu/errlist.awk: Make output define _sys_errlist_internal
1901         and _sys_nerr_internal instead of anything else.  Make it include
1902         "errlist-compat.c" if [!NOT_IN_libc && !ERRLIST_NO_COMPAT].
1903         Make it emit some asm magic if [EMIT_ERR_MAX].
1904         * sysdeps/gnu/errlist.c: Regenerated.
1905         * sysdeps/gnu/errlist-compat.awk: New file.
1906         * sysdeps/gnu/errlist-compat.c: New file (generated).
1907         * sysdeps/mach/hurd/errlist.c (ERRLIST_NO_COMPAT): New macro.
1908         (_sys_errlist_internal): Define this as a macro for _hurd_errlist.
1909         (_sys_nerr_internal): Define this is a macro for _hurd_nerr.
1910         (SYS_ERRLIST, SYS_NERR): Macros removed.
1911         (sys_nerr, _sys_nerr): Remove these weak aliases.
1912         * sysdeps/unix/sysv/linux/errlist.c: File removed.
1913         * sysdeps/unix/sysv/linux/errlist.h: File removed.
1914         * sysdeps/unix/sysv/linux/arm/errlist.c: File removed.
1915
1916         * include/libc-symbols.h (declare_symbol): New macro.
1917         * config.h.in (ASM_TYPE_DIRECTIVE_PREFIX): New #undef.
1918         * configure.in: New check to define it.
1919         * configure: Regenerated.
1920
1921 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
1922
1923         * stdio-common/Makefile (headers): Remove bits/stdio_lim.h.  This
1924         file isn't distributed.  Add special rules to install bits/stdio_lim.h.
1925
1926         * Make-dist: Remove traces of old stdio.
1927         * Makeconfig: Likewise.
1928
1929         * locale/Makefile (localedef-aux): New variable.  Only md5
1930         assigned to it.  These files are not ddistributed in this directory.
1931
1932         * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
1933         * sysdeps/unix/sysv/linux/s390/s390-64/Dist: Remove sys/procfs.h.
1934         * sysdeps/unix/sysv/linux/s390/s390-32/Dist: Likewise.
1935
1936         * sysdeps/unix/sysv/linux/Dist: Remove sys/sendfile.h.
1937
1938         * nss/getXXbyYY_r.c (REENTRANT_NAME): If no service is available
1939         set h_errno to NO_RECOVERY [PR libc/4360].
1940
1941 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
1942
1943         * libio/Makefile (tests): Add bug-fopena+.
1944         * libio/bug-fopena+.c: New file.
1945         * libio/fileops.c (_IO_file_open): Only set file pointer to end of the
1946         file for _IO_IS_APPENDING if file isn't opened for reading, too.
1947
1948         * stdio-common/tst-swprintf.c (main): Add casts to avoid warnings.
1949
1950         * locale/xlocale.c: Fix the last change.  The variable still has
1951         to end in _data.
1952         * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
1953         (__libc_tsd_set): Add _data prefix to variable name.
1954
1955 2002-08-26  Roland McGrath  <roland@redhat.com>
1956
1957         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Replace
1958         macro with inline function.
1959         (sigset_get_old_mask): Likewise.
1960         * sysdeps/posix/sigblock.c (__sigblock): Update callers.
1961         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
1962         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1963         * sysdeps/posix/sigvec.c (__sigvec, sigvec_wrapper_handler): Likewise.
1964         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h
1965         (sigset_set_old_mask, sigset_get_old_mask): Make these macros return
1966         values.
1967         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h: Likewise.
1968         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h: Likewise.
1969
1970 2002-07-06  Bruno Haible  <bruno@clisp.org>
1971
1972         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask,
1973         sigset_get_old_mask): Make it work with larger sigset_t.
1974         * sysdeps/posix/sigblock.c (__sigblock): Use those macros.
1975         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
1976         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1977
1978 2002-08-26  Roland McGrath  <roland@redhat.com>
1979
1980         * time/sys/time.h [__USE_BSD] (lutimes, futimes): Declare them.
1981         * manual/filesys.texi (File Times): Document lutimes and futimes.
1982         * misc/Makefile (routines): Add them.
1983         * misc/Versions (libc: GLIBC_2.3): Likewise.
1984         * sysdeps/generic/lutimes.c: New file.
1985         * sysdeps/generic/futimes.c: New file.
1986         * sysdeps/mach/hurd/lutimes.c: New file.
1987         * sysdeps/mach/hurd/futimes.c: New file.
1988
1989         * manual/filesys.texi (File Times): Add explicit note about null
1990         pointer argument to utimes.
1991
1992 2002-08-26  Roland McGrath  <roland@frob.com>
1993
1994         * sysdeps/mach/hurd/ifreq.h (__if_freereq): Add missing semicolon.
1995         (__ifreq): Add a cast.  Remove an unused variable.
1996
1997         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
1998         _HURD_THREADVAR_LOCALE.
1999
2000 2002-08-26  Jakub Jelinek  <jakub@redhat.com>
2001
2002         * posix/regexec.c (re_search_stub): Return correct match length
2003         if start != 0.
2004         * posix/bug-regex10.c: New test.
2005         * posix/Makefile (tests): Add bug-regex10.
2006
2007 2002-08-26  Brian Youmans  <3diff@gnu.org>
2008
2009         * COPYING.LIB: Replaced with fresh copy from
2010         ftp://ftp.gnu.org/gnu/Licenses/COPYING.LIB-2.1;
2011         suggested copying permission notice now says version 2.1 instead
2012         of version 2.
2013
2014         * crypt/crypt.c: Changed copying permission notice to Lesser GPL
2015         from Library GPL.
2016         * crypt/crypt_util.c: Likewise.
2017         * crypt/ufc.c: Likewise.
2018         * elf/dl-conflict.c: Likewise.
2019         * elf/dl-iteratephdr.c: Likewise.
2020         * iconv/iconvconfig.h: Likewise.
2021         * malloc/arena.c: Likewise.
2022         * malloc/hooks.c: Likewise.
2023         * malloc/malloc.c: Likewise.
2024         * posix/glob/Makefile.ami: Likewise.
2025         * posix/glob/Makefile.in: Likewise.
2026         * stdlib/gmp-impl.h: Likewise.
2027         * stdlib/gmp.h: Likewise.
2028         * sysdeps/generic/dl-iteratephdr-static.c: Likewise.
2029         * sysdeps/generic/strnlen.c: Likewise.
2030         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
2031         * sysdeps/mach/hurd/recvmsg.c: Likewise.
2032         * sysdeps/mach/hurd/sendmsg.c: Likewise.
2033         * sysdeps/mach/hurd/spawni.c: Likewise.
2034         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
2035         * sysdeps/mach/powerpc/sysdep.h: Likewise.
2036         * sysdeps/mach/powerpc/thread_state.h: Likewise.
2037         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
2038         * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: Likewise.
2039         * sysdeps/x86_64/gmp-mparam.h: Likewise.
2040
2041         * sysdeps/ieee754/dbl-64/MathLib.h: Corrected version number in
2042         Lesser GPL copying permission notice from 2 to 2.1.
2043         * sysdeps/ieee754/dbl-64/asincos.tbl: Likewise.
2044         * sysdeps/ieee754/dbl-64/atnat.h: Likewise.
2045         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
2046         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
2047         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
2048         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
2049         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2050         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
2051         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2052         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
2053         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2054         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2055         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2056         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2057         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2058         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2059         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2060         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2061         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2062         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
2063         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
2064         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2065         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
2066         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2067         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2068         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
2069         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2070         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
2071         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2072         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
2073         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2074         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
2075         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
2076         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
2077         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2078         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2079         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2080         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
2081         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2082         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
2083         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2084         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
2085         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
2086         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
2087         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
2088         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
2089         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
2090         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
2091         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
2092         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
2093         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
2094         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
2095         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
2096         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
2097         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
2098
2099         * sysdeps/ieee754/flt-32/e_asinf.c: Added copyright notice for Stephen
2100         Moshier and Lesser GPL copying permission notice, per license from
2101         Moshier.
2102         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
2103         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
2104         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
2105         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
2106         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
2107         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
2108         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
2109         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
2110         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
2111         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2112         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
2113         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
2114         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
2115         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
2116
2117         * sysdeps/ieee754/ldbl-128/e_j0l.c: Added Lesser GPL copying permission
2118         notice, per license from copyright holder Stephen Moshier.
2119         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2120         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
2121         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
2122         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
2123         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
2124         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
2125         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
2126         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
2127         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
2128
2129 2002-08-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2130
2131         * sysdeps/sh/Makefile (sysdeps_routines): Add divdi3 in csu dir.
2132         (shared-only-routines): Likewise.
2133
2134 2002-08-26  Roland McGrath  <roland@redhat.com>
2135
2136         * locale/programs/ld-ctype.c (ctype_read): When given a repertoire
2137         name of "", store a null pointer instead.
2138
2139         * configure.in (elf): Set to yes for freebsd*, netbsd*.
2140         * configure: Regenerated.
2141
2142         * locale/xlocale.c [! (USE_TLS && HAVE___THREAD)] (__libc_tsd_LOCALE):
2143         Initialize this instead of __libc_tsd_LOCALE_data.
2144
2145         * sysdeps/unix/grantpt.c (pts_name): Convert ENOTTY return from
2146         ptsname_r to EINVAL.
2147
2148         * sysdeps/generic/ptsname.c (__ptsname_r): Return ENOSYS instead of 0.
2149
2150         * rt/Makefile: Revert last change, it was inappropriate to presume aio
2151         implementations depend on pthreads.
2152         * rt/tst-aio.c (do_test): Exit happy if first failure is ENOSYS.
2153         * rt/tst-aio64.c (do_test): Likewise.
2154         * rt/tst-aio2.c (do_test): Likewise.
2155         * rt/tst-aio3.c (do_test): Likewise.
2156         * rt/tst-aio4.c (do_test): Likewise.
2157         * rt/tst-aio5.c (do_test): Likewise.
2158         * rt/tst-aio6.c (do_test): Likewise.
2159         * rt/tst-aio7.c (do_test): Likewise.
2160
2161         * sysdeps/generic/bits/libc-lock.h (__libc_setspecific): Use a cast to
2162         void so as to avoid compiler warnings.
2163
2164         * libio/oldstdfiles.c [! _IO_MTSAFE_IO] (DEF_STDFILE): Don't define
2165         _IO_wide_data_FD, which is never used here.
2166
2167         * libio/iofread.c
2168         [! _IO_MTSAFE_IO] (fread_unlocked): Add libc_hidden_ver defn.
2169         * libio/iofputs.c [! _IO_MTSAFE_IO] (fputs_unlocked): Likewise.
2170         * libio/iofgets.c [! _IO_MTSAFE_IO] (fgets_unlocked): Likewise.
2171
2172         * include/resolv.h [! _LIBC_REENTRANT] (_res): #undef it before decl.
2173         * include/netdb.h [! _LIBC_REENTRANT] (h_errno): Declare normal extern.
2174
2175         * misc/syslog.c (openlog): Conditionalize locking on [_LIBC_REENTRANT].
2176         (closelog): Likewise.
2177
2178 2002-07-06  Bruno Haible  <bruno@clisp.org>
2179
2180         * sysdeps/alpha/fpu/fpu_control.h: Comment fix.
2181
2182         * sysdeps/unix/sysv/linux/alpha/pipe.S: Moved to ...
2183         * sysdeps/unix/alpha/pipe.S: ... here.
2184         * sysdeps/unix/bsd/osf/alpha/pipe.S: File removed.
2185
2186         * sysdeps/unix/i386/brk.S: Rename local label to '.Lhere' in ELF.
2187
2188         * sysdeps/unix/i386/brk.S: Add PSEUDO_END invocation.
2189         * sysdeps/unix/i386/fork.S: Likewise.
2190         * sysdeps/unix/i386/pipe.S: Likewise.
2191         * sysdeps/unix/i386/wait.S: Likewise.
2192
2193         * sysdeps/unix/fork.S: Fix PSEUDO_END argument.
2194         * sysdeps/unix/arm/fork.S: Likewise.
2195
2196         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Swap DO_CALL
2197         arguments.
2198         (DO_CALL): Swap argument order.
2199         * sysdeps/unix/sysv/linux/hppa/sysdep.h (PSEUDO): Swap DO_CALL
2200         arguments.
2201         (DO_CALL): Swap argument order.
2202         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Swap DO_CALL
2203         arguments.
2204         (DO_CALL): Swap argument order.
2205         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO): Swap DO_CALL
2206         arguments.
2207         (DO_CALL): Swap argument order.
2208         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO): Swap DO_CALL
2209         arguments.
2210         (DO_CALL): Swap argument order.
2211         * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Swap DO_CALL
2212         arguments.
2213         (DO_CALL): Swap argument order.
2214         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Swap DO_CALL
2215         arguments.
2216         (DO_CALL): Swap argument order.
2217
2218         * sysdeps/i386/sysdep.h (PSEUDO): Fix syntax error.
2219         (L): Define right for ELF.
2220         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Remove definition.
2221         Now defined in sysdeps/i386/sysdep.h.
2222
2223         * sysdeps/posix/readv.c: Ansify function definition.
2224         * sysdeps/posix/writev.c: Likewise.
2225
2226         * stdio-common/tst-fseek.c (main): Don't assume that off_t and size_t
2227         have the same size. Avoid direct cast from size_t to off_t.
2228
2229         * login/tst-utmp.c (simulate_login): Don't leave garbage after the
2230         nul byte in entry[n].ut_user.
2231         (simulate_logout): Likewise.
2232
2233         * login/programs/utmpdump.c (print_entry): Test _HAVE_UT_TYPE,
2234         _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST, instead of assuming the
2235         existence of corresponding members of 'struct utmp'.
2236         * login/tst-utmp.c: Trivialize the test if testing 'struct utmp' and
2237         !_HAVE_UT_TYPE.
2238
2239         * sysdeps/unix/opendir.c (__opendir): If st_blksize is 0 or too small,
2240         allocate a buffer of at least BUFSIZ bytes, not just of
2241         sizeof (struct dirent).
2242
2243         * sysdeps/generic/glob.c: Include <limits.h>.
2244         (NAME_MAX): Define a fallback.
2245         (glob_in_dir): Allocate enough room for a 'struct dirent64' on the
2246         stack.
2247         * posix/tst-dir.c: Include <stddef.h>, for offsetof.
2248         (main): Allocate enough room for a 'struct dirent64' on the stack.
2249         * posix/tst-gnuglob.c (my_DIR): Allocate enough room for a
2250         'struct dirent'.
2251
2252         * sysdeps/unix/sysv/linux/init-first.c: Don't include
2253         kernel-features.h.
2254
2255         * inet/htontest.c: Include <sys/types.h>.
2256
2257         * sysdeps/generic/sys/sysinfo.h: Surround with __{BEGIN,END}_DECLS.
2258
2259         * include/sys/sysctl.h: Comment fix.
2260
2261         * elf/rtld.c (_rtld_global) [! _LIBC_REENTRANT]: Don't initialize
2262         _dl_load_lock.
2263         * libio/fileno.c (fileno_unlocked): Define regardless of _IO_MTSAFE_IO.
2264
2265         * sysdeps/unix/bsd/bsd4.4/syscalls.list (__sigaltstack): New alias.
2266
2267         * sysdeps/unix/inet/syscalls.list (__connect_internal): New alias.
2268         (__getpeername): New alias.
2269         (__getsockname): New alias.
2270         (__socket): New alias.
2271
2272         * sysdeps/unix/common/syscalls.list (getpgid): Remove.
2273
2274         * sysdeps/unix/syscalls.list (__chown_internal): New alias.
2275         (__fcntl_internal): New alias.
2276         (__profil): New alias.
2277
2278 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
2279
2280         * nscd/hstcache.c (cache_addhst): Add new parameter saying whether
2281         entry was for getaddr* lookup or not.  Add only matching cache
2282         entry.  Change all callers [PR libc/4317].
2283
2284         * libio/wfileops.c (_IO_wfile_seekoff): Set fp->_offset after
2285         finding the read position [PR libc/4265].
2286         * libio/Makefile (tests): Add bug-rewind2.
2287         * libio/bug-rewind2.c: New file.
2288
2289         * libio/bug-rewind.c: Fix creation of temp file.
2290
2291 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2292
2293         * nss/getXXbyYY_r.c (REENTRANT_NAME): Return ENOENT if status is
2294         neither SUCCESS nor TRYAGAIN [PR libc/4259].
2295         * nss/nss_files/files-XXX.c (internal_getent): Don't set *errnop
2296         to ENOENT if no entry is found.
2297         * nis/nss_compat/compat-grp.c: Don't set errno in case of lookup
2298         failure.
2299         * nis/nss_compat/compat-initgroups.c: Likewise.
2300         * nis/nss_compat/compat-pwd.c: Likewise.
2301         * nis/nss_compat/compat-spwd.c: Likewise.
2302         * nis/nss_nis/nis-alias.c: Likewise.
2303         * nis/nss_nis/nis-ethers.c: Likewise.
2304         * nis/nss_nis/nis-grp.c: Likewise.
2305         * nis/nss_nis/nis-hosts.c: Likewise.
2306         * nis/nss_nis/nis-initgroups.c: Likewise.
2307         * nis/nss_nis/nis-netgrp.c: Likewise.
2308         * nis/nss_nis/nis-network.c: Likewise.
2309         * nis/nss_nis/nis-proto.c: Likewise.
2310         * nis/nss_nis/nis-publickey.c: Likewise.
2311         * nis/nss_nis/nis-pwd.c: Likewise.
2312         * nis/nss_nis/nis-rpc.c: Likewise.
2313         * nis/nss_nis/nis-service.c: Likewise.
2314         * nis/nss_nis/nis-spwd.c: Likewise.
2315         * resolv/nss_dns/dns-host.c: Likewise.
2316         * resolv/nss_dns/dns-network.c: Likewise.
2317         * nis/nss_nisplus/nisplus-alias.c: Save errno around NIS calls.
2318         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
2319         * nis/nss_nisplus/nisplus-grp.c: Likewise.
2320         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
2321         * nis/nss_nisplus/nisplus-network.c: Likewise.
2322         * nis/nss_nisplus/nisplus-proto.c: Likewise.
2323         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
2324         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
2325         * nis/nss_nisplus/nisplus-service.c: Likewise.
2326         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
2327         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Preserve errno value.
2328         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
2329         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Likewise.
2330         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
2331
2332         * sysdeps/unix/sysv/linux/i386/sigaction.c: Avoid warnings by
2333         declaring __restore and __restore_rt as hidden (if possible).
2334
2335 2002-08-25  Roland McGrath  <roland@redhat.com>
2336
2337         * manual/llio.texi (Access Modes): Fix typos in O_READ/O_WRITE defns.
2338
2339         * sysdeps/generic/utmp_file.c (LOCK_FILE): Check for error from fcntl.
2340         (getutent_r_file, internal_getut_r): Updated all callers.
2341         (getutline_r_file, pututline_file, updwtmp_file): Likewise.
2342
2343 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2344
2345         * locale/programs/locale.c: Don't print aliases for non-existing
2346         locales for 'locale -a'.
2347         Patch by Noah Levitt <nlevitt@columbia.edu> [PR libc/4166].
2348
2349 2002-07-19  H.J. Lu  <hjl@gnu.org>
2350
2351         * sysdeps/unix/sysv/linux/mips/bits/msq.h: New file.
2352
2353 2002-07-16  H.J. Lu  <hjl@gnu.org>
2354
2355         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2356         sys/personality.h.
2357         * sysdeps/unix/sysv/linux/sys/personality.h: New file.
2358
2359 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2360
2361         * elf/tst-tlsmod1.c (in_dso): Make sure the TLS variable access is
2362         not moved ahead of the fputs call.
2363         * elf/tst-tlsmod2.c (in_dso): Likewise.
2364         * elf/tst-tlsmod3.c (in_dso2): Likewise.
2365         * elf/tst-tlsmod4.c (in_dso): Likewise.
2366
2367 2002-08-25  Andreas Schwab  <schwab@suse.de>
2368
2369         * elf/dl-reloc.c (_dl_reloc_bad_type): Nul-terminate message.
2370
2371 2002-08-25  Roland McGrath  <roland@redhat.com>
2372
2373         * sysdeps/generic/utmp_file.c (UNLOCK_FILE): Clear alarm before
2374         resetting handler, to avoid the possibility of a spurious SIGALRM
2375         delivered to the user's handler.
2376         Reported by Amit D. Chaudhary <amitc@brocade.com>,
2377
2378         * misc/Makefile (CFLAGS-init-misc.c): Variable removed.  It served to
2379         set -fkeep-inline-functions, which is not needed for the current file.
2380
2381         * sysdeps/generic/ldsodefs.h: Add attribute_hidden to *_internal decls.
2382         (_dl_setup_hash): Add attribute_hidden.
2383         (_dl_sysdep_start, _dl_sysdep_start_cleanup): Likewise.
2384         (_dl_sysdep_read_whole_file, _dl_dprintf): Likewise.
2385         (_dl_new_object, _dl_map_object_deps): Likewise.
2386         (_dl_map_object_deps_internal): Remove decl.
2387         * elf/rtld.c (__mempcpy, _exit): Redeclare locally as hidden.
2388
2389         * sysdeps/i386/dl-machine.h [PI_STATIC_AND_HIDDEN
2390         && HAVE_VISIBILITY_ATTRIBUTE && HAVE_HIDDEN
2391         && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]
2392         (elf_machine_dynamic, elf_machine_load_address): Rewritten without asm,
2393         instead relying on the compiler to produce only GOTOFF variable refs.
2394
2395 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2396
2397         * elf/dl-load.c: Fix typo in comment.  Add a few more __builtin_expect.
2398
2399         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Define as static
2400         inline to avoid defining it in every file which includes this header.
2401
2402         * elf/rtld.c: Also test for HAVE_VISIBILITY_ATTRIBUTE before
2403         defining DONT_USE_BOOTSTRAP_MAP.
2404
2405         * libio/tst-freopen.c (main): Use correct formats for __LINE__.
2406         * libio/tst-mmap-setvbuf.c (main): Likewise.
2407         * libio/tst-widetext.c (main): Likewise.
2408
2409         * libio/tst-mmap-eofsync.c (do_test): Use correct format in error
2410         message.
2411         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
2412         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
2413
2414         * sysdeps/i386/elf/configure.in: Unconditionally define
2415         PI_STATIC_AND_HIDDEN.
2416         * elf/rtld.c (DONT_USE_BOOTSTRAP_MAP): Define only if
2417         PI_STATIC_AND_HIDDEN is defined as well.
2418         * config.h.in: Add PI_STATIC_AND_HIDDEN entry.
2419
2420 2002-08-24  Ulrich Drepper  <drepper@redhat.com>
2421
2422         * sysdeps/ia64/bzero.S: Define __bzero as well.
2423
2424         * locale/programs/charmap.c (charmap_new_char): Don't use
2425         ULONG_MAX as maximum UCS4 value.
2426
2427         * sysdeps/unix/sysv/linux/ia64/sys/user.h: New file.
2428
2429         * sysdeps/generic/strtol.c: We don't need the isascii test in glibc.
2430
2431         * malloc/hooks.c (public_sET_STATe): use size_t as type for i.
2432         * malloc/malloc.c (mALLINFo): Likewise.
2433
2434         * libio/wstrops.c (_IO_wstr_pbackfail): Use WEOF in comparison.
2435
2436         * libio/wfileops.c (_IO_wfile_overflow): Use EOF not WEOF when
2437         examining result of _IO_do_flush call.
2438
2439         * stdio-common/vfprintf.c (vfprintf): Use correct type in va_arg.
2440         Use prec not spec when sizing buffers.
2441
2442         * catgets/open_catalog.c (__open_catalog): Add casts to avoid warnings.
2443         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
2444         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
2445         * stdio-common/vfscanf.c (inchar): Likewise.
2446         * misc/efgcvt_r.c (fcvt_r): Likewise.
2447         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
2448         * elf/readlib.c (process_file): Likewise.
2449         * elf/sprof.c (load_profdata): Likewise.
2450         * sysdeps/ia64/hp-timing.h (HP_TIMING_PRINT): Likewise.
2451         * locale/programs/linereader.c (get_toplvl_escape): Likewise.
2452         * locale/programs/charmap.c (charmap_read): Likewise.
2453         * libio/fileops.c: Likewise.
2454         * libio/fmemopen.c: Likewise.
2455         * stdlib/strtod.c: Likewise.
2456         * elf/dl-load.c: Likewise.
2457         * iconv/iconvconfig.c: Likewise.
2458         * iconv/iconv_prog.c (process_block): Likewise.
2459         * elf/rtld.c (dl_main): Likewise.
2460
2461         * sysdeps/unix/sysv/linux/ia64/Makefile: Define _ASM_IA64_CURRENT_H
2462         macro to calm down the compiler.
2463
2464         * iconv/gconv_cache.c (__gconv_load_cache): Add cast to avoid warning.
2465
2466         * sysdeps/ia64/elf/initfini.c: Don't use newlines embedded in string.
2467
2468         * sysdeps/unix/sysv/linux/i386/sysdep.S: Update comment regarding
2469         placement of errno definition.
2470         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
2471         * sysdeps/unix/sysv/linux/mips/sysdep.S: Likewise.
2472         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
2473         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
2474         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
2475
2476         * resolv/nss_dns/dns-host.c (MAXPACKET): Increase minimum value
2477         from 1024 to 65536, to avoid buffer overrun.
2478
2479 2002-08-16  Paul Eggert  <eggert@twinsun.com>
2480
2481         * resolv/gethnamaddr.c (MAXPACKET): Increase minimum value
2482         from 1024 to 65536, to avoid buffer overrun.
2483         * resolv/res_query.c (MAXPACKET): Likewise.
2484
2485 2002-08-24  Andreas Jaeger  <aj@suse.de>
2486
2487         * sysdeps/unix/sysv/linux/i386/Versions: Remove *xattr syscalls.
2488
2489 2002-08-23  Ulrich Drepper  <drepper@redhat.com>
2490
2491         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Define and initialize
2492         two52 locally.
2493         (log2): Likewise.
2494         * sysdeps/ieee754/dbl-64/upow.h: Remove definition of two52.
2495         Patch by Simon Gee <simong@agile.tv>.
2496
2497         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf):
2498         Prefer reading /proc/stat since it is more uniform across
2499         architectures.
2500
2501         * manual/texinfo.tex: Update to latest official version.
2502
2503         * sysvipc/sys/shm.h: Remove SHMLBA definition.
2504         * sysdeps/generic/bits/shm.h: Define SHMLBA here.
2505         * sysdeps/gnu/bits/shm.h: Likewise.
2506         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2507         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2508         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
2509         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2510         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2511         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2512         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2513         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Define SHMLBA to 2^20
2514         since this is what the kernel says.
2515
2516         * misc/sys/xattr.h: Include <sys/types.h> instead of <stddef.h>
2517         since ssize_t is needed as well.  Replace const with __const.
2518
2519 2002-08-23  Roland McGrath  <roland@redhat.com>
2520
2521         * malloc/hooks.c (__malloc_initialize_hook, __free_hook,
2522         __malloc_hook, __realloc_hook, __memalign_hook,
2523         __after_morecore_hook): Variable definitions moved to ...
2524         * malloc/malloc.c: ... here, so as to be before all references.
2525
2526         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Add a dummy
2527         global variable reference in an unused asm parameter, to ensure the
2528         compiler has set up the GOT register before we use it.
2529
2530         * malloc/hooks.c: Move variable definitions ahead of uses.
2531         * libio/fileops.c: Move versioned_symbol defns ahead of _IO_jump_t
2532         initializers that make reference to variables they define.
2533
2534 2002-08-23  Andreas Jaeger  <aj@suse.de>
2535
2536         * locale/loadarchive.c: Include <stdlib.h> for prototypes of
2537         alloca, free, qsort.
2538
2539         * dlfcn/bug-dlsym1-lib1.c (foo): Add prototype to avoid warning.
2540
2541         * sysdeps/ieee754/flt-32/e_jnf.c: Remove unused variable.
2542         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2543
2544         * misc/sys/xattr.h: New file, contributed by Christoph Hellwig
2545         <hch@lst.de>.
2546         * sysdeps/generic/fgetxattr.c: New file.
2547         * sysdeps/generic/flistxattr.c: New file.
2548         * sysdeps/generic/fremovexattr.c: New file.
2549         * sysdeps/generic/fsetxattr.c: New file.
2550         * sysdeps/generic/getxattr.c: New file.
2551         * sysdeps/generic/listxattr.c: New file.
2552         * sysdeps/generic/lgetxattr.c: New file.
2553         * sysdeps/generic/llistxattr.c: New file.
2554         * sysdeps/generic/lremovexattr.c: New file.
2555         * sysdeps/generic/lsetxattr.c: New file.
2556         * sysdeps/generic/removexattr.c: New file.
2557         * sysdeps/generic/setxattr.c: New file.
2558         * misc/Makefile (headers): Add sys/xattr.h.
2559         (routines): Add *xattr calls.
2560         * misc/Versions: Add *xattr calls with version 2.3.
2561         * sysdeps/unix/sysv/linux/m68k/Versions: Remove *xattr syscalls.
2562         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2563         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2564         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2565         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2566         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2567         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2568         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2569
2570 2002-08-22  Steven Munroe  <sjmunroe@us.ibm.com>
2571
2572         * sysdeps/powerpc/elf/libc-start.c
2573         (__cache_line_size): Declare.
2574         (__aux_init_cache): New function.
2575         (__libc_start_main): Change type of `auxvec' parameter to
2576         `ElfW(auxv_t) *'.  Correct walking of aux vector.  Call
2577         __aux_init_cache.
2578         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
2579         (__cache_line_size): Declare.
2580         (__aux_init_cache): New function.
2581         (DL_PLATFORM_INIT): Define.
2582         * sysdeps/powerpc/memset.S: Define __cache_line_size and use its
2583         value to select the correct stride for dcbz.
2584
2585 2002-08-22  Andreas Jaeger  <aj@suse.de>
2586
2587         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments of
2588         shmat.
2589
2590 2002-08-22  Roland McGrath  <roland@redhat.com>
2591
2592         * locale/loadarchive.c (_nl_load_locale_from_archive): Check max file
2593         position indicated by locrectab against file bounds before rounding to
2594         page size.  In mapping loop, always set TO before breaking out of
2595         contiguous range coalescing loop.
2596
2597         * locale/loadarchive.c (_nl_load_locale_from_archive): Use MAP_PRIVATE
2598         (or MAP_COPY if available) instead of MAP_SHARED.
2599
2600         * scripts/firstversions.awk: When encountering a version newer than
2601         the specified earliest version, be sure to emit the specified earliest
2602         version first if any renaming of an older version to that has been.
2603
2604 2002-08-21  Roland McGrath  <roland@redhat.com>
2605
2606         * configure.in: Make GCC version check require 3.[2-9]* and no others.
2607         * manual/install.texi (Tools for Compilation): Say 3.2 is required.
2608         (Configuring and compiling): Don't mention older GCC versions any more.
2609         * INSTALL: Regenerated.
2610
2611         * manual/install.texi (Configuring and compiling, Installation,
2612         Running make install, Linux): Linux -> GNU/Linux where appropriate.
2613
2614         * elf/rtld.c (_dl_start_final): Move defn before _dl_start so it can
2615         be inlined.  Declare it with always_inline if [DONT_USE_BOOTSTRAP_MAP]
2616         and with noinline otherwise.  Remove hack alloca use to prevent
2617         inlining, we can ask for it explicitly nowadays.
2618
2619         * dlfcn/bug-dlsym1.c: New file.
2620         * dlfcn/bug-dlsym1-lib1.c, dlfcn/bug-dlsym1-lib2.c: New files.
2621         * dlfcn/Makefile (distribute): Add them.
2622         (tests): Add bug-dlsym1 here.
2623         (modules-names): Add bug-dlsym1-lib1 and bug-dlsym1-lib2 here.
2624         ($(objpfx)bug-dlsym1, $(objpfx)bug-dlsym1.out): New targets.
2625         ($(objpfx)bug-dlsym1-lib1.so, $(objpfx)bug-dlsym1-lib2.so): Likewise.
2626
2627 2002-08-21  Ulrich Drepper  <drepper@redhat.com>
2628
2629         * elf/rtld.c (start_time): New global variable.  Moved from _dl_start.
2630         (DONT_USE_BOOTSTRAP_MAP): Define if we can use non-exported symbols
2631         before relocation.
2632         (_dl_start): Don't use local bootstrap_map variable if
2633         DONT_USE_BOOTSTRAP_MAP is defined.  Use GL(dl_rtld_map).  Don't
2634         pass bootstrap_map to _dl_start_final in this case either.  Don't
2635         pass start_time to _dl_start_final ever.
2636         (_dl_start_final): Don't copy bootstrap_map if DONT_USE_BOOTSTRAP_MAP.
2637
2638         * elf/dl-deps.c (_dl_map_object_deps): Revert patch from 2002-05-28.
2639         This cripples the scope lists necessary to search for symbols in
2640         dependencies which are not in the global scope.
2641
2642         * include/setjmp.h (__libc_longjmp): Add declaration.
2643
2644 2002-08-21  Andreas Jaeger  <aj@suse.de>
2645
2646         * sysdeps/x86_64/_mcount.S: Fix assembler.
2647
2648         * sysdeps/unix/sysv/linux/x86_64/Makefile: Generate bits/syscall.h
2649         with biarch support.
2650
2651 2002-08-21  Andreas Jaeger  <aj@suse.de>
2652
2653         * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Fix it.
2654
2655         * sysdeps/x86_64/Makefile (sysdep_routines): Add _mcount.
2656
2657         * sysdeps/x86_64/machine-gmon.h: New file.
2658         * sysdeps/x86_64/_mcount.S: New file.
2659
2660 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
2661
2662         * elf/rtld.c (_dl_start): Pass zero to TLS_INIT_TP.  Set
2663         bootstrap_map.l_tls_tp_initialized to 1 if TLS_INIT_TP was called.
2664         (_dl_start_final): Copy l_tls_tp_initialized to GL(dl_rtld_map).
2665         (dl_main): If HAVE___THREAD is not defined pass l_tls_tp_initialized
2666         to TL_INIT_TP.  Otherwise pass 1.
2667         * include/link.h (struct link_map): Add l_tls_tp_initialized.
2668         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass 0 to TL_INIT_TP.
2669
2670 2002-08-15  Jakub Jelinek  <jakub@redhat.com>
2671
2672         * locale/programs/localedef.c (add_to_readlist): Error about
2673         circular dependencies only if the locale in question hasn't
2674         been finished.
2675         * locale/programs/linereader.c (get_string): Pass LC_CTYPE not
2676         CTYPE_LOCALE to load_locale.
2677         * locale/programs/locfile.c (locfile_read): Don't include
2678         unneeded but available locales in locale_mask.
2679
2680         * locale/programs/locarchive.c (enlarge_archive): If quiet, don't
2681         print any messages about enlarging archive.
2682
2683 2002-08-20  Brian Youmans  <3diff@gnu.org>
2684
2685         * manual/contrib.texi: Removed licenses, added acknowledgements
2686         for contributions by Intel, IBM, Craig Metz.
2687         * LICENSES: New file, contains the text of all non-FSF licenses in the
2688         distribution that require putting the notice in the accompanying
2689         documentation.
2690         * README.template, README: Mention LICENSES.
2691
2692         * sysdeps/mach/hurd/net/if_ppp.h: Replaced CMU license with a
2693         new one modelled on the modern BSD license, per recent letter
2694         of permission from CMU.
2695         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
2696
2697         * sysdeps/ieee754/dbl-64/MathLib.h: Changed the copyright holder
2698         from IBM to FSF, per the recent Software Letter.  Changed the
2699         distribution terms from GPL to LGPL.
2700
2701         * sysdeps/ieee754/dbl-64/asincos.tbl: Added FSF copyright and
2702         copying permission notice (Lesser GPL), per recent IBM Software Letter.
2703         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
2704         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
2705         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
2706         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
2707         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
2708         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
2709         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
2710         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
2711
2712         * sysdeps/ieee754/dbl-64/atnat.h: Changed the copyright holder
2713         from IBM to FSF, per the recent Software Letter.  Corrected the
2714         text of the copying permission notice to say Lesser GPL instead
2715         of GPL in warranty disclaimer paragraph.
2716         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
2717         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
2718         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
2719         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
2720         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
2721         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
2722         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
2723         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
2724         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
2725         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
2726         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
2727         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
2728         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
2729         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
2730         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
2731         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
2732         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
2733         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
2734         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
2735         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
2736         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
2737
2738         * sysdeps/ieee754/dbl-64/branred.c: Corrected the text of the copying
2739         permission notice to say Lesser GPL instead of GPL in warranty
2740         disclaimer paragraph.
2741         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2742         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2743         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2744         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2745         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2746         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2747         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2748         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2749         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2750         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2751         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2752         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2753         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2754         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2755         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2756         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2757         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2758         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2759         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2760         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2761         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2762         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2763         * sysdeps/ieee754/dbl-64/slowpow.c:  Likewise.
2764
2765 2002-08-20  Roland McGrath  <roland@redhat.com>
2766
2767         Fix ABI compatibility with libc compiled with old tools on powerpc.
2768         Changes contributed by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2769         and Jack Howarth <howarth@bromo.med.uc.edu>.
2770         * sysdeps/powerpc/Makefile [$(have-protected) = yes]
2771         (CPPFLAGS-divdi3.c, CPPFLAGS-libgcc-compat.S): New variables,
2772         pass -DHAVE_DOT_HIDDEN for these files.
2773         * sysdeps/powerpc/Versions (libc: GLIBC_2.0): Added __floatdidf,
2774         __floatdisf.
2775         * sysdeps/powerpc/divdi3.c: New file.
2776         * sysdeps/powerpc/libgcc-compat.S: New file, replacement for ...
2777         * sysdeps/powerpc/libgcc-compat.c: ... this, file removed.
2778
2779 2002-08-20  Jakub Jelinek  <jakub@redhat.com>
2780
2781         * locale/loadarchive.c (_nl_load_locale_from_archive): Handle
2782         partially overlapping mappings.  Remove unneeded (char *) casts.
2783         Never allow duplication of ranges in mapped areas.
2784
2785 2002-08-20  Roland McGrath  <roland@redhat.com>
2786
2787         * elf/Makefile ($(objpfx)ld.so): Separate commands in rule so errors
2788         can be detected by make.  Reported by H.J. Lu <hjl@gnu.org>.
2789
2790 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
2791
2792         * include/unistd.h: Don't hide _exit.
2793
2794         * elf/rtld.c (_dl_start): Pass extra argument 1 to TLS_INIT_TP.
2795         (dl_main): Pass extra argument 0 to TLS_INIT_TP.
2796         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass extra
2797         argument 1 to TLS_INIT_TP.
2798         * sysdeps/generic/tls.h (TLS_INIT_TP): Describe new parameter.
2799
2800         * sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit.
2801
2802         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_tls_static_info.
2803         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Move dtv
2804         memory allocation to...
2805         (allocate_dtv): ...here.  New function.
2806         (_dl_allocate_tls): Change to take parameter.  If parameter is non-NULL
2807         call allocate_dtv instead of _dl_allocate_tls_storage.
2808         (_dl_deallocate_tls): New parameter.  Deallocate TCB only if true.
2809         (_dl_get_tls_static_info): New function.
2810         * sysdeps/generic/ldsodefs.h: Adjust prototypes of _dl_allocate_tls
2811         and _dl_deallocate_tls.  Add prototype for _dl_get_tls_static_info.
2812
2813 2002-08-19  Ulrich Drepper  <drepper@redhat.com>
2814
2815         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return
2816         immediately if result == NULL.
2817
2818 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
2819
2820         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
2821
2822 2002-08-18  Roland McGrath  <roland@frob.com>
2823
2824         * sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split
2825         instead of __file_name_split.
2826         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
2827
2828         * sysdeps/mach/hurd/dl-sysdep.c
2829         [HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
2830         [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
2831
2832 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
2833
2834         * locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
2835         in change before last: MAX -> MIN.
2836
2837 2002-08-15  Roland McGrath  <roland@redhat.com>
2838
2839         * libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF
2840         if seek would go past it.
2841         (mmap_remap_check): If file position is at or past EOF after check,
2842         leave read pointers at EOF and don't seek.
2843
2844         * libio/tst-mmap-offend.c: New file.
2845         * libio/Makefile (tests): Add it.
2846
2847         * locale/loadarchive.c (_nl_load_locale_from_archive): Store strdup of
2848         the name as passed, rather than the name in the archive dictionary.
2849
2850 2002-08-15  Ulrich Drepper  <drepper@redhat.com>
2851
2852         * csu/Makefile: Define elide-routines.os not static-only-routines.
2853
2854         * include/sched.h (__clone): Add varargs at the end.
2855
2856         * elf/rtld.c (_dl_start): Allow TLS_INIT_TP to fail, and stop in that
2857         case.
2858         (TLS_INIT_HELPER): If defined, use it.
2859         * sysdeps/generic/libc-tls.c (TLS_INIT_HELPER): Likewise.
2860
2861 2002-08-15  Roland McGrath  <roland@redhat.com>
2862
2863         * elf/dl-load.c (lose): Remove [!SHARED] conditional from null check
2864         on L->l_prev; it can happen under rtld --verify too.
2865
2866         * locale/loadarchive.c (_nl_load_locale_from_archive): Don't read the
2867         header separately, just map an initial window of 2MB from the file
2868         and remap if that is not large enough to cover the whole header.
2869
2870 2002-08-15  Andreas Jaeger  <aj@suse.de>
2871
2872         * sysdeps/unix/sysv/linux/m68k/Versions: Add *xattr syscalls with
2873         version 2.3.
2874         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2875         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2876         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2877         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2878         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2879         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2880         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2881         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
2882         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
2883         Patch by Andreas Gruenbacher <agruen@suse.de>.
2884
2885         * sysdeps/unix/sysv/linux/syscalls.list: Add *xattr syscalls.
2886
2887 2002-08-14  Roland McGrath  <roland@redhat.com>
2888
2889         * locale/locarchive.h (struct locale_category_data): Give this name to
2890         the type of locale_data_t's elements.
2891         * locale/programs/locarchive.c (cmpcategorysize): New static function.
2892         (add_locale): Use that to sort the categories by size and put all
2893         those that fit into two pages into the LC_ALL block, instead of
2894         hard-coding it to do everything but LC_CTYPE and LC_COLLATE.
2895         (show_archive_content): Detect categories inside LC_ALL block
2896         directly, instead of hard-coding.
2897         (oldlocrecentcmp): Compare just on file locations used.
2898
2899 2002-08-14  Jakub Jelinek  <jakub@redhat.com>
2900
2901         * locale/programs/locarchive.c (struct oldlocrecent): New type.
2902         (oldlocrecentcmp): New function.
2903         (enlarge_archive): Re-add locales in the order they were added
2904         to the archive.
2905         (add_locale): Put all the small locale files together, if the small
2906         locale file block would occupy less pages if page size aligned, align
2907         it.
2908         (show_archive_content): Adjust for locale archives optimized for speed.
2909
2910 2002-08-14  Roland McGrath  <roland@frob.com>
2911
2912         * configure.in: Use "MISSING" as not-found value for MIG.
2913         * sysdeps/mach/configure.in: Fatal if mig not found.
2914         * configure, sysdeps/mach/configure: Regenerated.
2915
2916 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
2917
2918         * locale/loadarchive.c (archfname): Add missing slash.
2919
2920         * sysdeps/generic/strtold.c (__strtold_internal): Add libc_hidden_def.
2921         * wcsmbs/wcstold.c (__wcstold_internal): Add libc_hidden_def.
2922
2923 2002-08-12  Roland McGrath  <roland@redhat.com>
2924
2925         * include/sys/wait.h (__waitpid): Add libc_hidden_proto.
2926         * sysdeps/unix/sysv/sco3.2.4/waitpid.S: Add libc_hidden_def.
2927         * sysdeps/unix/sysv/sysv4/waitpid.c: Add libc_hidden_weak.
2928         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
2929         * sysdeps/unix/sysv/aix/waitpid.c: Likewise.
2930         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
2931         * sysdeps/generic/waitpid.c: Likewise.
2932
2933         * include/net/if.h: New file.  Use libc_hidden_proto
2934         for if_nametoindex and if_indextoname.
2935         * sysdeps/generic/if_index.c: Add libc_hidden_def.
2936         * sysdeps/mach/hurd/if_index.c: Likewise.
2937         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
2938
2939         * include/grp.h (setgroups): Add libc_hidden_proto.
2940         * sysdeps/generic/setgroups.c: Add libc_hidden_def.
2941         * sysdeps/mach/hurd/setgroups.c: Likewise.
2942         * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
2943         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
2944
2945 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
2946
2947         * include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
2948         * sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
2949         * sysdeps/generic/setegid.c (setegid): Likewise.
2950         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
2951         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
2952         * sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
2953         * sysdeps/unix/bsd/setegid.c (setegid): Likewise.
2954         * sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
2955         * sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
2956         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
2957         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
2958         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
2959         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
2960         * sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
2961         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
2962         Remove fallback if __ASSUME_SETRESUID_SYSCALL.
2963
2964         * include/sys/stat.h (__fxstat_internal, __fxstat64_internal,
2965         __lxstat_internal, __lxstat64_internal): Remove.
2966         (__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64):
2967         Add hidden_proto.
2968         * sysdeps/generic/fxstat.c (__fxstat): Add hidden_def.
2969         Remove INTDEF where present, remove #undef at the beginning.
2970         * sysdeps/generic/fxstat64.c (__fxstat64): Likewise.
2971         * sysdeps/generic/lxstat.c (__lxstat): Likewise.
2972         * sysdeps/generic/lxstat64.c (__lxstat64): Likewise.
2973         * sysdeps/generic/xstat.c (__xstat): Likewise.
2974         * sysdeps/generic/xstat64.c (__xstat64): Likewise.
2975         * sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise.
2976         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
2977         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
2978         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
2979         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
2980         * sysdeps/mach/hurd/xstat.c (__xstat): Likewise.
2981         * sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise.
2982         * sysdeps/unix/fxstat.c (__fxstat): Likewise.
2983         * sysdeps/unix/common/lxstat.c (__lxstat): Likewise.
2984         * sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise.
2985         * sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise.
2986         * sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise.
2987         * sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise.
2988         * sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise.
2989         * sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise.
2990         * sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise.
2991         * sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise.
2992         * sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise.
2993         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise.
2994         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise.
2995         * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise.
2996         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
2997         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
2998         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
2999         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
3000         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
3001         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
3002         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise.
3003         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
3004         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
3005         * sysdeps/unix/xstat.c (__xstat): Likewise.
3006
3007         * include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto.
3008         * sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def.
3009         * sysdeps/generic/fstatvfs.c (fstatvfs): Likewise.
3010         * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
3011         * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise.
3012         * sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise.
3013         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise.
3014
3015         * include/unistd.h (tcgetpgrp): Add libc_hidden_proto.
3016         * include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise.
3017         * sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def.
3018         * sysdeps/generic/tcsetattr.c (tcsetattr): Likewise.
3019         * sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise.
3020         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise.
3021         * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise.
3022         * sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed):
3023         Likewise.
3024         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
3025         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
3026         * sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise.
3027         * sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise.
3028         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
3029         * sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise.
3030         * sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise.
3031         * sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise.
3032
3033         * include/string.h (strcoll): Add libc_hidden_proto.
3034         * string/strcoll.c (strcoll): Add libc_hidden_def.
3035
3036         * misc/err.c (vwarn): Fix pasto in libc_hidden_def.
3037
3038 2002-08-11  Philip Blundell  <philb@gnu.org>
3039
3040         * sysdeps/arm/Makefile: New file.
3041
3042 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
3043
3044         * posix/regcomp.c (parse_reg_exp): If '|' is immediately followed
3045         by another '|', end of regex or enclosing ')', clear branch.
3046         * posix/bug-regex9.c: New test.
3047         * posix/Makefile (tests): Add bug-regex9.
3048
3049 2002-08-12  Roland McGrath  <roland@redhat.com>
3050
3051         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop
3052         start count condition, use TOTAL instead of variable that was never
3053         set.  Fix outer loop termination condition to TOTAL >= after update.
3054
3055         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize
3056         dl_tls_static_align and dl_tls_static_nelem.
3057
3058 2002-08-11  Roland McGrath  <roland@redhat.com>
3059
3060         * elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
3061         of the TLS macros, otherwise the compiler might not have initialized
3062         the PIC register yet when we use the PLT via asm.
3063         * elf/tst-tlsmod3.c (in_dso2): Likewise.
3064         * elf/tst-tlsmod2.c (in_dso): Likewise.
3065
3066         * sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!).
3067
3068         * sysdeps/i386/bits/byteswap.h (__bswap_16, __bswap_32, __bswap_64):
3069         Evaluate argument exactly once.  Remove __volatile__ from asm's.
3070
3071         * include/unistd.h: Use libc_hidden_proto for getdomainname
3072         and getlogin_r.
3073         * sysdeps/generic/getdomain.c: Add libc_hidden_def.
3074         * sysdeps/mach/hurd/getdomain.c: Likewise.
3075         * sysdeps/unix/getlogin_r.c: Likewise.
3076         * sysdeps/mach/hurd/getlogin_r.c: Likewise.
3077         * sysdeps/generic/getlogin_r.c: Likewise.
3078
3079         * include/rpc/auth_des.h: Use libc_hidden_proto for rtime.
3080         * sunrpc/rtime.c: Add libc_hidden_def.
3081
3082         * include/string.h: Use libc_hidden_proto for basename.
3083         * string/basename.c [_LIBC]: Add libc_hidden_def.
3084
3085         * sysdeps/unix/sysv/linux/opensock.c (__opensock): socket -> __socket.
3086
3087         * locale/loadarchive.c: munmap -> __munmap throughout.
3088
3089         * include/netdb.h: Use libc_hidden_proto for gai_strerror.
3090         * sysdeps/posix/gai_strerror.c: Add libc_hidden_def.
3091         * sysdeps/generic/gai_strerror.c: Likewise.
3092
3093         * include/sys/errno.h: New file.
3094
3095         * include/signal.h: No libc_hidden_proto for raise,
3096         __libc_current_sigrtmin, __libc_current_sigrtmax.
3097         These need to be overridden by linuxthreads.
3098         * sysdeps/posix/raise.c: Reverted.
3099         * sysdeps/generic/raise.c: Reverted.
3100         * signal/allocrtsig.c: Reverted.
3101
3102         * locale/loadarchive.c (LOCALEDIR): Remove debugging defn.  Oops.
3103
3104 2002-08-10  Roland McGrath  <roland@redhat.com>
3105
3106         * locale/loadarchive.c (_nl_archive_subfreeres): New function.
3107         * locale/localeinfo.h: Declare it.
3108         * locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the
3109         current locale if it's not in the file list.
3110         Call _nl_archive_subfreeres.
3111
3112 2002-08-10  Andreas Jaeger  <aj@suse.de>
3113
3114         * sysdeps/i386/strchr.S: Add comment.
3115
3116 2002-08-10  Roland McGrath  <roland@redhat.com>
3117
3118         * include/wchar.h (putwc): Use libc_hidden_proto.
3119         * include/stdio.h (dprintf, fprintf, vfprintf, sprintf,
3120         sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise.
3121         * stdio-common/dprintf.c: Add libc_hidden_def.
3122         * stdio-common/fprintf.c: Likewise.
3123         * stdio-common/sprintf.c: Likewise.
3124         * stdio-common/sscanf.c: Likewise.
3125         * libio/iofwrite.c: Likewise.
3126         * libio/memstream.c: Likewise.
3127         * libio/putwc.c: Likewise.
3128         * stdio-common/perror.c: Likewise.
3129         * sysdeps/posix/remove.c: Likewise.
3130         * sysdeps/generic/remove.c: Likewise.
3131         * libio/rewind.c: Likewise.  Use <stdio.h> instead of "stdio.h".
3132         * stdio-common/vfprintf.c: Add libc_hidden_def.  Include <stdio.h>.
3133
3134 2002-08-09  Jakub Jelinek  <jakub@redhat.com>
3135
3136         * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
3137         towlower, towupper): Add prototypes here too.  Add libc_hidden_proto.
3138         * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
3139         towlower, towupper): Add libc_hidden_weak.
3140
3141         * include/bits/dlfcn.h: New file.
3142         * elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def.
3143
3144         * include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
3145         * include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
3146         * include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
3147         * include/pwd.h (_nss_files_parse_pwent): Likewise.
3148         * include/shadow.h (_nss_files_parse_spent): Likewise.
3149         * include/netdb.h (_nss_files_parse_protoent,
3150         _nss_files_parse_servent, _nss_files_parse_netent): Likewise.
3151         * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
3152         (LINE_PARSER): Use it.
3153         * nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
3154         * nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.
3155
3156         * libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT
3157         #endif.
3158
3159         * manual/debug.texi (%MENU%): Remove trailing dot.
3160         Reported by <hayastan132@hotmail.com>.
3161
3162         * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek
3163         aliases.
3164         (lseek): Dummy.
3165         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek):
3166         Likewise.
3167
3168 2002-08-09  Roland McGrath  <roland@redhat.com>
3169
3170         * locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale
3171         name to find codeset name (if any) and normalize it.  If the
3172         normalized name differs, look up only that in the archive.
3173         * locale/programs/locarchive.c (add_locale_to_archive): If the name
3174         contains a codeset, normalize the codeset store only the normalized
3175         name in the archive.  If not, add an alias containing the locale's
3176         normalized codeset name.  Apply codeset name normalization when
3177         matching entries in the alias file.
3178
3179         * locale/programs/locarchive.c (delete_locales_from_archive): Don't
3180         decrement HEAD->namehash_used here.
3181         (add_locale): Only need to insert name string when name_offset != 0.
3182
3183         * locale/programs/localedef.c (options): Add -A/--alias-file.
3184         (alias_file): New variable.
3185         (parse_opt): Grok -A, set that.
3186         * locale/programs/localedef.h: Declare it.
3187
3188         * locale/locarchive.h (struct locrecent): Add `refs' member.
3189         * locale/programs/locarchive.c (insert_name): New function, broken out
3190         of ...
3191         (add_locale_to_archive): ... here.  Call that.
3192         (add_alias): New function.
3193         (add_locale): New static function, add_locale_to_archive renamed.
3194         (add_locale_to_archive): Call that and use add_alias to add an alias
3195         for the name with codeset if the given name lacks it.
3196         (enlarge_archive): Call add_locale instead of add_locale_to_archive.
3197
3198         * locale/Makefile (routines): Add loadarchive.
3199         * locale/loadarchive.c: New file, started from code by Ulrich Drepper.
3200         (_nl_load_locale_from_archive): New function.
3201         * locale/localeinfo.h: Declare it.
3202         * locale/findlocale.c (_nl_find_locale): If using default locale path,
3203         try _nl_load_locale_from_archive first.
3204
3205         * locale/loadlocale.c (_nl_intern_locale_data): New function,
3206         broken out of _nl_load_locale.
3207         (_nl_load_locale): Call that.
3208         * locale/localeinfo.h: Declare it.
3209         (struct locale_data): Replace member `mmaped' with `alloc', an enum.
3210         (struct locale_data): Remove unused member `options'.
3211         * locale/findlocale.c (_nl_remove_locale): Update uses.
3212         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3213         * locale/C-collate.c: Update initializer.
3214         * locale/C-identification.c: Likewise.
3215         * locale/C-measurement.c: Likewise.
3216         * locale/C-telephone.c: Likewise.
3217         * locale/C-address.c: Likewise.
3218         * locale/C-name.c: Likewise.
3219         * locale/C-paper.c: Likewise.
3220         * locale/C-time.c: Likewise.
3221         * locale/C-numeric.c: Likewise.
3222         * locale/C-monetary.c: Likewise.
3223         * locale/C-messages.c : Likewise.
3224         * locale/C-ctype.c: Likewise.
3225
3226         * locale/hashval.h [! LONGBITS]: Include <limits.h> here and
3227         use CHAR_BIT instead of BITSPERBYTE.
3228
3229         * locale/localeinfo.h (_nl_find_locale, _nl_load_locale,
3230         _nl_unload_locale): Add `internal_function attribute_hidden' to decls.
3231         * locale/findlocale.c (_nl_find_locale): Add internal_function to defn.
3232         (_nl_remove_locale): Likewise.
3233         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3234
3235         * locale/findlocale.c (_nl_default_locale_path): New variable.
3236         (_nl_find_locale): If LOCALE_PATH is null, default to that.
3237         * locale/localeinfo.h: Declare it.
3238         * locale/setlocale.c (setlocale): Use _nl_default_locale_path
3239         in place of LOCALEDIR.  If no LOCPATH, pass null to _nl_find_locale.
3240         * locale/newlocale.c (__newlocale): Likewise.
3241
3242         * misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses.
3243         * inet/rexec.c (rexec_af): Add libc_hidden_def.
3244         * sysdeps/generic/morecore.c: Likewise.
3245         * signal/allocrtsig.c (__libc_current_sigrtmin): Likewise.
3246         (__libc_current_sigrtmax): Likewise.
3247
3248 2002-08-08  Roland McGrath  <roland@redhat.com>
3249
3250         * locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
3251         * catgets/open_catalog.c (__open_catalog): Likewise.
3252
3253         * locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed
3254         from typo INITIAL_NUM_NANES.
3255         (create_archive): Update use.
3256
3257 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
3258
3259         * sysdeps/unix/sysv/linux/sigwait.c: New file.
3260
3261 2002-08-08  Roland McGrath  <roland@frob.com>
3262
3263         * resolv/netdb.h: Don't declare h_errno as a plain global any more.
3264
3265 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
3266
3267         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
3268         else and undefine after including wcstol_l.c.
3269         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.
3270
3271 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
3272
3273         * gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available.
3274
3275 2002-08-08  Alexandre Oliva  <aoliva@redhat.com>
3276
3277         * configure.in: Make the test for broken_alias_attribute stricter.
3278
3279 2002-05-24  Robert Love  <rml@tech9.net>
3280
3281         * posix/Makefile (routines): Add sched_getaffinity and
3282         sched_setaffinity.
3283         * posix/sched.h: Add declarations for sched_getaffinity and
3284         sched_setaffinity.
3285         * sysdeps/generic/sched_getaffinity.c: New file.
3286         * sysdeps/generic/sched_setaffinity.c: New file.
3287         * sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and
3288         sched_setaffinity.
3289
3290 2002-08-06  Andreas Schwab  <schwab@suse.de>
3291
3292         * sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes.
3293
3294 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
3295
3296         * elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error
3297         message.
3298
3299         * stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special.
3300         It is known to be defined.
3301
3302         * include/string.h: Define index and rindex only if _ISOMAC is not
3303         defined.
3304
3305         * elf/rtld.c: Include <errno.h>.
3306         * sysdeps/generic/libc-tls.c: Likewise.
3307
3308 2002-08-07  Roland McGrath  <roland@redhat.com>
3309
3310         * resolv/res_debug.c (latlon2ul): Add const to argument type, and use
3311         it internally.
3312         (precsize_aton): Likewise.
3313
3314         * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
3315         the static symbols added in the last change (doofus is me).
3316
3317         * locale/newlocale.c (__newlocale): Use a bit mask instead of a second
3318         loop to notice missing categories in a composite name.
3319
3320         * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
3321         LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
3322         LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
3323         LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.
3324
3325 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
3326
3327         * malloc/tst-calloc.c: Add tests for one or both parameters being zero.
3328
3329 2002-08-07  Roland McGrath  <roland@redhat.com>
3330
3331         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
3332         unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
3333         Reported by Jakub Jelinek  <jakub@redhat.com>.
3334
3335 2002-08-07  Jakub Jelinek  <jakub@redhat.com>
3336
3337         * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
3338         division.
3339
3340 2002-08-06  Roland McGrath  <roland@redhat.com>
3341
3342         * include/getopt.h: Put private decls inside [_GETOPT_H].
3343         Use libc_hidden_proto for getopt_long, getopt_long_only.
3344         * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
3345         Add libc_hidden_def.
3346
3347         * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
3348         Define as a macro for __dl_iterate_phdr.
3349
3350         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
3351         made static.  Add __ name as a strong alias.
3352         (internal_endnetgrent): Likewise.
3353         (internal_getnetgrent_r): Likewise.
3354
3355         * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
3356         with no __ prefix.
3357         * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
3358         * ctype/ctype.h [__USE_GNU]: Add declarations and macros for
3359         all *_l functions with no __ prefix.
3360         * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
3361         * ctype/ctype_l.c: Likewise.
3362         * locale/nl_langinfo.c: Likewise.
3363         * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
3364         * stdlib/stdlib.h [__USE_GNU]: Likewise.
3365         * wcsmbs/wchar.h [__USE_GNU]: Likewise.
3366         * wctype/wctype.h [__USE_GNU]: Likewise.
3367         * string/strcoll_l.c (strcoll_l): Define as weak alias.
3368         * string/strxfrm_l.c (strxfrm_l): Define as weak alias.
3369         * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
3370         * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
3371         * stdlib/strtod_l.c (strtod_l): Define as weak alias.
3372         * stdlib/strtof_l.c (strtof_l): Define as weak alias.
3373         * stdlib/strtold_l.c (strtold_l): Define as weak alias.
3374         * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
3375         (__wcscasecmp_l): Add libc_hidden_def.
3376         * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
3377         (__wcsncasecmp_l): Add libc_hidden_def.
3378         * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
3379         * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
3380         * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
3381         * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
3382         * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
3383         * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
3384         * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
3385         * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
3386         * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
3387         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
3388         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
3389         * wctype/wctrans_l.c (wctrans_l) Define as weak alias.
3390         * wctype/towctrans_l.c (towctrans_l) Define as weak alias.
3391         * wctype/wctype_l.c (wctype_l) Define as weak alias.
3392
3393 2002-08-05  Roland McGrath  <roland@redhat.com>
3394
3395         * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
3396         netname2user, host2netname, user2netname, key_gendes.
3397         * sunrpc/netname.c: Add libc_hidden_def.
3398         * sunrpc/key_call.c: Likewise.
3399
3400         * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
3401         freeaddrinfo.
3402         * inet/getnameinfo.c: Add libc_hidden_def.
3403         * sysdeps/generic/getaddrinfo.c: Likewise.
3404         * sysdeps/posix/getaddrinfo.c: Likewise.
3405
3406         * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
3407         * wcsmbs/wmemchr.c: Add libc_hidden_def.
3408         * wcsmbs/wmemset.c: Add libc_hidden_def.
3409
3410         * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
3411         (index, rindex): Define as macros for strchr, strrchr.
3412
3413         * string/envz.c (envz_strip): index -> strchr
3414
3415         * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
3416         * sunrpc/rpc_prot.c: Add libc_hidden_def.
3417
3418         * include/wchar.h: Use libc_hidden_proto for mbrtowc.
3419         * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
3420
3421         * include/stdlib.h: Use libc_hidden_proto for wctomb.
3422         * stdlib/wctomb.c: Add libc_hidden_def.
3423
3424         * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
3425         rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
3426         * resolv/herror.c: Likewise.
3427         * inet/rcmd.c: Add libc_hidden_def.
3428         * inet/ruserpass.c: Likewise.
3429         * inet/getnetgrent_r.c: Likewise.
3430
3431         * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
3432         svc_unregister, remove *_internal decls.  Use libc_hidden_proto
3433         for svcerr_auth, svcerr_noprog, svcerr_progvers.
3434         * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
3435         libc_hidden_def.
3436         (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
3437         * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.
3438
3439         * sysdeps/posix/system.c (do_system): New function, guts broken out of
3440         __libc_system.
3441         (__libc_system): Call it, putting just the line == NULL test here.
3442
3443         * include/libc-symbols.h (__hidden_proto): Add extern keywords so
3444         variables work right.
3445
3446         * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
3447         * elf/dl-close.c (_dl_close): Likewise.
3448
3449         * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
3450         in6addr_any, in6addr_loopback.  Remove decls for
3451         bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
3452         * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
3453         * sunrpc/svc_tcp.c (svctcp_create): Likewise.
3454         * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
3455         * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
3456         * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
3457         * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
3458         in6addr_loopback.
3459         * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
3460
3461         * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
3462         ether_aton_r.
3463         * inet/ether_aton_r.c: Add libc_hidden_def.
3464         * inet/ether_ntoa_r.c: Likewise.
3465
3466         * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
3467         xprt_unregister.
3468         * sunrpc/svc.c: Add libc_hidden_def.
3469         * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
3470         pmap_set, pmap_unset.
3471         * sunrpc/pmap_clnt.c: Add libc_hidden_def.
3472         * sunrpc/pm_getport.c: Likewise.
3473         * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
3474         * sunrpc/publickey.c: Add libc_hidden_def.
3475
3476 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
3477
3478         * elf/rtld.c (_dl_start): Don't use memset.  Use same tricks as for
3479         the other memset call in this function.
3480
3481         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
3482         at correct index.  Clear BSS region now that memalign is used.
3483
3484 2002-08-05  Roland McGrath  <roland@redhat.com>
3485
3486         * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
3487         * sysdeps/generic/uname.c: Add libc_hidden_def.
3488         * sysdeps/mach/hurd/uname.c: Likewise.
3489
3490 2002-08-05  Jakub Jelinek  <jakub@redhat.com>
3491
3492         * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
3493         wcspbrk): Add libc_hidden_proto.
3494         * time/strftime.c (my_strftime): Add libc_hidden_def.
3495         (strftime): Remove libc_hidden_def.
3496         * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
3497         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
3498         * wcsmbs/wcsspn.c (wcsspn): Likewise.
3499         * wcsmbs/wcscmp.c (wcscmp): Likewise.
3500         * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
3501         * wcsmbs/wcscoll.c (wcscoll): Likewise.
3502
3503         * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
3504         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3505         __rpc_thread_createerr): Add libc_hidden_proto.
3506         * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
3507         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3508         __rpc_thread_createerr): Add libc_hidden_def.
3509
3510         * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
3511         clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
3512         * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
3513         clnt_perror, clnt_sperror): Add libc_hidden_def.
3514         * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
3515
3516         * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
3517         libc_hidden_proto.
3518         * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
3519         * sunrpc/des_soft.c (des_setparity): Likewise.
3520
3521         * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
3522         Add libc_hidden_proto.
3523         * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
3524         Add libc_hidden_def.
3525
3526 2002-08-05  Roland McGrath  <roland@redhat.com>
3527
3528         * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
3529         `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
3530         * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
3531         * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
3532         dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
3533         old data, abandoning the original memory allocated by rtld at startup,
3534         instead of calling realloc normally.
3535
3536 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
3537
3538         * po/fr.po: Update from translation team.
3539
3540 2002-08-04  Roland McGrath  <roland@redhat.com>
3541
3542         * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
3543         then generate a dummy module under the given name, obeying the
3544         normal rules for the "caller" field.
3545
3546         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
3547         actually iterate over the elements.  Fix typo p_type -> p_vaddr.
3548
3549         * include/pthread.h: Don't declare __pthread_initialize_minimal as
3550         weak here; we declare it weak or strong in the one place we use it.
3551         * sysdeps/generic/libc-start.c: ... which is here.
3552         Don't make the decl weak if [USE_TLS], since static programs need TLS
3553         setup even when single-threaded.
3554
3555         * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
3556
3557         * elf/Makefile (test-srcs): Add $(modules-names) to it.
3558         (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
3559         CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
3560         all these variables.
3561
3562 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3563
3564         * include/stdio.h: Don't define macro magic to redirect function
3565         calls if _ISOMAC is defined.
3566
3567         * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
3568         ldouble asin tests.
3569
3570 2002-08-04  Roland McGrath  <roland@redhat.com>
3571
3572         * stdlib/lrand48_r.c: Add libc_hidden_def.
3573
3574         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
3575         TCB with __libc_memalign instead of mmap.
3576         (_dl_deallocate_tls): Free it with free instead of munmap.
3577
3578         * Makerules (cpp-srcs-left): When setting this to run
3579         cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
3580         words.  Combine the two loops into one on the concatenated list,
3581         including those as well as $(test-srcs).
3582
3583         * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
3584         since we align here with optimally minimal waste anyway.
3585         (malloc): Just call that.
3586
3587         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
3588         the right variable.
3589
3590         * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
3591         to compute memory location for l_tls_initimage.
3592         * elf/rtld.c (_dl_start): Likewise.
3593         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
3594
3595         * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
3596         because the .d file is generated in the non-shared case and
3597         so fails to catch them otherwise.
3598
3599         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
3600         split out of _dl_allocate_tls.
3601         (_dl_allocate_tls_init): Likewise.
3602         (_dl_allocate_tls): Call those.
3603         * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
3604         * elf/rtld.c (dl_main): Call them separately instead of calling
3605         _dl_allocate_tls.  Delay _dl_allocate_tls_init until after relocation
3606         is finished, so that the initializer data has been relocated before we
3607         copy it into the main thread's TLS block.
3608
3609         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
3610         loop conditions, prevented the last used module from being initialized.
3611
3612 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
3613
3614         * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
3615         if glob resp. globfree are not macros.
3616         * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
3617         * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
3618         Add libc_hidden_ver.
3619         * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
3620         libc_hidden_def.
3621         * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
3622         instead of libc_hidden_weak.
3623         * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
3624         libc_hidden_ver instead of libc_hidden_def.
3625         * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
3626         libc_hidden_ver instead of libc_hidden_def.
3627         (wcstoll, wcstoq): Remove libc_hidden_weak.
3628         * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
3629         libc_hidden_ver.
3630         * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
3631         libc_hidden_ver.
3632         * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
3633         libc_hidden_ver.
3634         * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
3635         libc_hidden_ver.
3636
3637 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3638
3639         * stdio-common/psignal.c: Declare _sys_siglist_internal.  Use USEINT
3640         to access _sys_siglist.
3641         * string/strsignal.c: Likewise.
3642         * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
3643         * sysdeps/gnu/siglist.c: Likewise.
3644         * sysdeps/unix/siglist.c: Likewise.
3645         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
3646
3647         * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
3648
3649         * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
3650
3651         * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
3652         alias and use it.
3653         * intl/bindtextdom.c: Use _nl_default_dirname_internal.
3654
3655         * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
3656         * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
3657         * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
3658
3659         * include/time.h: Add libc_hidden_proto for __gmtime_r.
3660         * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
3661
3662         * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
3663         and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
3664         and __gconv_get_cache respectively.
3665         * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
3666         defined static.  Change all users.
3667         (__gconv_get_cache): New function.
3668         * iconv/gconv_db.c (__gconv_get_modules_db): New function.
3669         (__gconv_get_alias_db): New function.
3670         * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
3671         (__conv_modules_db): Likewise.
3672         Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
3673         and __gconv_get_alias_db.
3674         * iconv/iconv_prog.c: Use the new functions instead of accessing the
3675         variables.
3676
3677         * include/stdlib.h: Add prototype and libc_hidden_proto for
3678         __default_morecore.
3679         * sysdeps/generic/morecore.c: Include <stdlib.h>.
3680
3681         * malloc/obstack.c: Remove fputs macro.
3682
3683         * malloc/mtrace.c: Remove fopen macro.
3684
3685 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
3686
3687         * manual/debug.texi: Fix spelling to programmatically.
3688         Reported by <hayastan132@hotmail.com>.
3689
3690 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3691
3692         * include/libio.h: Add libc_hidden_proto for __uflow.
3693         * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
3694         fgetpos to _IO_* names.
3695         Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
3696         fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
3697         * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
3698         putwc_unlocked, vswscanf.
3699         * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
3700         * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
3701         * libio/fseek.c: Likewise.
3702         * libio/fmemopen.c: Include "libioP.h".  Call _IO_fopencookie and
3703         not fopencookie.
3704         * libio/genops.c (__uflow): Add libc_hidden_def.
3705         * libio/iofflush_u.c (fflush_unlocked): Likewise.
3706         * libio/iofgets_u.c (fgets_unlocked): Likewise.
3707         * libio/iofputs_u.c (fputs_unlocked): Likewise.
3708         * libio/iofputws_u.c (fputws_unlocked): Likewise.
3709         * libio/iofread_u.c (fread_unlocked): Likewise.
3710         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
3711         * libio/iovswscanf.c (vswscanf): Likewise.
3712         * libio/putwc_u.c (putwc_unlocked): Likewise.
3713         * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
3714         * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
3715         * malloc/mtrace.c: Likewise.
3716
3717         * sunrpc/clnt_perr.c: Remove fputs macro.
3718         * sunrpc/svc_simple.c: Likewise.
3719         * sunrpc/svc_tcp.c: Likewise.
3720         * sunrpc/svc_udp.c: Likewise.
3721         * sunrpc/xdr_rec.c: Likewise.
3722         * sunrpc/xdr_ref.c: Likewise.
3723
3724         * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
3725         iconv_prog, linereader, and charmap-dir.
3726         * locale/Makefile: Likewise for locale and charmap-dir.
3727         * malloc/Makefile: Likewise for memusagestat.
3728         * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
3729         * sunrpc/Makefile: Likewise for rpc_main.
3730         * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
3731         * timezone/Makefile: Likewise for zic.
3732
3733         * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
3734
3735         * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
3736         * elf/dl-close.c (_dl_close): Add libc_hidden_def.
3737         * elf/dl-open.c (_dl_open): Add libc_hidden_def.
3738         * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
3739         _dl_close.
3740
3741         * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
3742         __wunderflow.
3743         * libio/genops.c (__underflow): Add libc_hidden_def.
3744         * libio/wgenops.c (__wuflow): Likewise.
3745         (__wunderflow): Likewise.
3746
3747         * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
3748         * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
3749
3750         * include/stdio.h: Add libc_hidden_proto for __vfscanf.
3751         * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
3752
3753         * include/string.h: Add libc_hidden_proto for __strverscmp.
3754         * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
3755
3756         * include/unistd.h: Add libc_hidden_proto for __sysconf.
3757         * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
3758         * sysdeps/posix/sysconf.c: Likewise.
3759         * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
3760         * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
3761
3762         * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
3763         __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
3764         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
3765         __iswxdigit_l, __towlower_l, __towupper_l.
3766         * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
3767         * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
3768
3769         * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
3770         * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
3771         * sysdeps/mach/hurd/xmknod.c: Likewise.
3772         * sysdeps/unix/xmknod.c: Likewise.
3773         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
3774         * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
3775         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
3776
3777         * sunrpc/svc.c: Add missing INTUSE for _authenticate.
3778
3779 2002-08-03  Roland McGrath  <roland@redhat.com>
3780
3781         * include/sys/resource.h: Use libc_hidden_proto for getpriority,
3782         setpriority.
3783         * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
3784         * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
3785         * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
3786         * sysdeps/mach/hurd/setpriority.c: Likewise.
3787         * sysdeps/mach/hurd/getpriority.c: Likewise.
3788         * sysdeps/generic/setpriority.c: Likewise.
3789         * sysdeps/generic/getpriority.c: Likewise.
3790
3791         * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
3792         * malloc/mcheck.c: Add libc_hidden_def.
3793
3794         * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
3795         * misc/hsearch_r.c: Add libc_hidden_def.
3796
3797         * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
3798         * posix/fnmatch.c: Add libc_hidden_weak.
3799
3800         * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
3801         execl, execle, execlp, execvp, getpid, getsid.
3802         * sysdeps/generic/alarm.c: Add libc_hidden_def.
3803         * sysdeps/unix/alarm.c: Likewise.
3804         * posix/confstr.c: Likewise.
3805         * posix/execvp.c: Likewise.
3806         * posix/execlp.c: Likewise.
3807         * posix/execle.c: Likewise.
3808         * posix/execl.c: Likewise.
3809         * sysdeps/generic/getsid.c: Likewise.
3810         * sysdeps/mach/hurd/getsid.c: Likewise.
3811         * sysdeps/generic/getpid.c: Add libc_hidden_weak.
3812         * sysdeps/mach/hurd/getpid.c: Likewise.
3813
3814         * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
3815         qecvt_r, qfcvt_r, lrand48_r.
3816         * misc/efgcvt_r.c: Add libc_hidden_def.
3817
3818         * include/wordexp.h: Use libc_hidden_proto for wordfree.
3819         * sysdeps/generic/wordexp.c: Add libc_hidden_def.
3820
3821         * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
3822         * locale/nl_langinfo.c: Add libc_hidden_def.
3823
3824         * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
3825         * sysdeps/generic/glob.c: Add libc_hidden_def.
3826         * sysdeps/generic/glob64.c: Likewise.
3827         * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
3828
3829         * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
3830
3831         * elf/Makefile (CFLAGS-vismod2.c): New variable.
3832
3833         * locale/setlocale.c (_nl_current_names): Variable moved ...
3834         * locale/localename.c (_nl_current_names): ... here, new file.
3835         Make it global, with attribute_hidden.
3836         * locale/localeinfo.h: Declare it.
3837         * locale/Makefile (aux): Add localename.
3838         * locale/localename.c (__current_locale_name): New function.
3839         * include/locale.h (__current_locale_name): Declare it.
3840         * intl/dcigettext.c (guess_category_value): Use that instead of
3841         calling setlocale.
3842
3843         * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
3844         [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
3845         [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
3846         * locale/newlocale.c: Add alias to __ name.
3847         * locale/duplocale.c: Likewise.
3848         * locale/freelocale.c: Likewise.
3849         * locale/uselocale.c: New file.
3850         * locale/Makefile (routines): Add it.
3851         * locale/Versions (libc: GLIBC_2.3): New set.
3852         Add newlocale, duplocale, freelocale, uselocale.
3853         (libc: GLIBC_PRIVATE): Add __uselocale.
3854
3855         * locale/localeinfo.h [SHARED]
3856         (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
3857         (_NL_CURRENT_DATA): Define using that.
3858         (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
3859         (_NL_CURRENT_DEFINE): Define to empty.
3860         [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
3861         conditionalized on this.
3862         * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
3863         taking initializer of _nl_C_locobj.
3864         [SHARED] (_nl_global_locale): New variable, using that initializer.
3865         (_nl_C_locobj): Use new macro for initialzier.
3866         * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
3867         [! SHARED] (CATEGORY_USED): New macro.
3868         [SHARED] (CATEGORY_USED, _nl_C): New macros.
3869         (setdata, setlocale): Use that macro instead of examining _nl_current.
3870         (setdata): Set the slot in _nl_global_locale.
3871         Conditionalize setting of _nl_current on [! SHARED].
3872         * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
3873         declaration as an extern.
3874         * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
3875
3876         * include/locale.h: Use libc_hidden_proto for setlocale.
3877         * locale/setlocale.c: Add libc_hidden_def.
3878
3879         * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
3880
3881         * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
3882         * misc/hsearch_r.c: Add libc_hidden_def.
3883         * misc/lsearch.c: Likewise.
3884
3885         * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
3886         endttyent.
3887         * misc/getttyent.c: Add libc_hidden_def.
3888
3889         * include/mcheck.h: Use libc_hidden_proto for mcheck.
3890         * malloc/mcheck.c: Add libc_hidden_def.
3891
3892         * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
3893         * include/argz.h: Use libc_hidden_proto for argz_delete.
3894         * string/argz-delete.c: Add libc_hidden_def.
3895         * string/envz.c: Likewise.  Use <envz.h>, not "envz.h".
3896
3897         * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
3898         HIDDEN_JUMPTARGET for _exit.
3899         * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
3900         * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
3901         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
3902         * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
3903
3904         * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
3905         [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
3906         [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
3907         * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
3908
3909         * include/stdlib.h: Use libc_hidden_proto for abort,
3910         __strtof_internal, __strtod_internal, __strtold_internal,
3911         __strtol_internal, __strtoll_internal, __strtoul_internal,
3912         __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
3913         __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
3914         __strtoul_l_internal, __strtoull_l_internal.
3915         * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
3916         __wcstod_internal, __wcstold_internal, __wcstol_internal,
3917         __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
3918         ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
3919         ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
3920         __wcsncasecmp_l.
3921         * sysdeps/generic/abort.c: Add libc_hidden_def.
3922         * stdlib/strtod.c: Likewise.
3923         * sysdeps/generic/strtol.c: Likewise.
3924         * sysdeps/wordsize-64/strtol.c: Likewise.
3925         * sysdeps/wordsize-64/wcstol.c: Likewise.
3926         * sysdeps/wordsize-64/wcstol_l.c: Likewise.
3927
3928         * include/stdlib.h: Use libc_hidden_proto for qsort.
3929         * stdlib/msort.c: Add libc_hidden_def.
3930
3931         * include/utime.h: Use libc_hidden_proto for utime.
3932         * sysdeps/generic/utime.c: Add libc_hidden_def.
3933         * sysdeps/unix/utime.c: Likewise.
3934
3935         * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
3936         * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
3937         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
3938         * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
3939         * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
3940
3941         * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
3942         sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
3943         and __libc_current_sigrtmax.
3944         * signal/sigismem.c: Add libc_hidden_def.
3945         * signal/sigfillset.c: Likewise.
3946         * signal/sigempty.c: Likewise.
3947         * sysdeps/generic/sigpause.c (__sigpause): Likewise.
3948         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
3949         * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
3950         * sysdeps/posix/raise.c: Likewise.
3951         * sysdeps/generic/raise.c: Likewise.
3952
3953 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
3954
3955         * include/string.h: Use libc_hidden_proto for __stpcpy.
3956         * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
3957         * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
3958         * sysdeps/generic/stpcpy.c: Likewise.
3959         * sysdeps/i386/stpcpy.S: Likewise.
3960         * sysdeps/i386/i586/stpcpy.S: Likewise.
3961         * sysdeps/powerpc/stpcpy.S: Likewise.
3962         * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
3963         * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
3964
3965         * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
3966         __strncasecmp_l, __strdup, __strndup, __strerror_r.
3967         * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
3968         libc_hidden_def.
3969         * string/strdup.c (__strdup): Likewise.
3970         * string/strndup.c (__strndup): Likewise.
3971         * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
3972         * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
3973
3974 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
3975
3976         * include/libio.h: New file.
3977         * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
3978         * libio/iolibio.h: #include <libio.h>, not "libio.h".
3979         * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
3980         * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
3981         * sysdeps/unix/common/syscalls.list: Likewise.
3982         * sysdeps/unix/inet/syscalls.list: Likewise.
3983         * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
3984         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
3985         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3986         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3987         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
3988         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
3989         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
3990         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3991         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3992         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
3993         * sysdeps/unix/syscalls.list: Likewise.
3994
3995 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
3996             Ulrich Drepper  <drepper@redhat.com>
3997
3998         * malloc/malloc.c (public_cALLOc): Only divide if at least one of
3999         the arguments is big enough to cause an overflow.
4000
4001 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
4002
4003         * assert/assert.c: Use hidden_def not INTDEF.
4004
4005 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
4006
4007         * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
4008         not defined.
4009
4010 2002-08-03  Roland McGrath  <roland@redhat.com>
4011
4012         * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
4013         * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
4014         verr, verrx.
4015         * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
4016         * misc/syslog.c: Add libc_hidden_def.
4017         * misc/err.c: Likewise.
4018         * stdlib/exit.c: Likewise.
4019         * stdlib/bsearch.c: Likewise.
4020         * sysdeps/generic/getenv.c: Likewise.
4021
4022         * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
4023
4024         * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
4025         libc_hidden_weak for every system call symbol defined.
4026
4027         * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
4028         timelocal, localtime, strftime.
4029         * time/asctime.c: Add libc_hidden_def.
4030         * time/mktime.c: Likewise.
4031         * time/localtime.c: Likewise.
4032         * time/strftime.c: Likewise.
4033         * time/strptime.c: Likewise.
4034         * sysdeps/generic/time.c: Likewise.
4035         * sysdeps/unix/time.c: Likewise.
4036         * sysdeps/unix/sysv/i386/time.S: Likewise.
4037         * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
4038
4039         * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
4040         inet_makeaddr, inet_netof, inet_addr, __inet_addr.
4041         * resolv/inet_ntop.c: Likewise.
4042         * resolv/inet_pton.c: Likewise.
4043         * inet/inet_mkadr.c: Add libc_hidden_def.
4044         * inet/inet_netof.c: Likewise.
4045         * resolv/inet_addr.c: Likewise.
4046
4047         * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
4048         clauses from conditionals for now.  Will have to be fixed later
4049         for older compilers.
4050
4051         * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
4052
4053 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
4054
4055         * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
4056         broken alias attribute handling.
4057         * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
4058
4059 2002-08-02  Roland McGrath  <roland@frob.com>
4060
4061         * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
4062         since it sets the variables we use in a -D switch.
4063
4064 2002-08-02  Roland McGrath  <roland@redhat.com>
4065
4066         * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
4067         On 32-bit platforms they are the same; on 64-bit platforms ssize_t
4068         matches long int, not int.
4069
4070         * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
4071         * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
4072         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
4073         * wctype/wctrans.c (wctrans): Likewise.
4074         * wctype/wctype.c (__wctype): Likewise.
4075         * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
4076
4077 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
4078
4079         * assert/assert.c (__assert_fail): Fix typo in comment.
4080
4081         * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
4082         * sunrpc/rpc_thread.c: Define it without static.
4083         * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
4084
4085 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4086
4087         * assert/assert.c (__assert_fail): Remove undef.
4088         Replace INTDEF with libc_hidden_def.
4089         * assert/__assert.c (__assert): Remove INTUSE.
4090         * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
4091         libc_hidden_weak.
4092         * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
4093         hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
4094         libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
4095         rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
4096         libm_hiden_ver): Define.
4097         * include/assert.h (__assert_fail_internal): Remove.
4098         (__assert_fail): Add prototype.  Add hidden_proto.
4099         * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
4100         libc_hidden_proto.
4101         * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
4102         (__mbrtowc, __mbrlen): Use libc_hidden_proto.  Remove macros.
4103         * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
4104         Add libc_hidden_proto.
4105         * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
4106         __fcntl): Add libc_hidden_proto.  Remove macros.
4107         (__open_internal, __fcntl_internal): Remove.
4108         * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
4109         * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
4110         * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
4111         libc_hiden_proto.
4112         * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
4113         libc_hidden_def.
4114         * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
4115         Add libc_hidden_def.
4116         * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
4117         * sysdeps/generic/open.c (__open): Remove undef.
4118         Add libc_hidden_def.  Remove INTDEF.
4119         * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
4120         Add libc_hidden_def.
4121         * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
4122         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
4123         * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
4124         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
4125         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
4126         (__libc_fcntl): Add libc_hidden_def.
4127         * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
4128         (__open): Remove INTDEF2.  Add libc_hidden_weak.
4129         (__libc_open): Add libc_hidden_def.
4130         * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
4131         * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
4132         * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
4133         Add libc_hidden_def.
4134         * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
4135         Add libc_hidden_def.
4136         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
4137         undef.
4138         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
4139         (__libc_fcntl): Add libc_hidden_def.
4140         * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
4141         __getpgid_internal, __chown_internal): Remove.
4142         (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
4143         __GI___sched_setscheduler, __GI___select, __GI___setpgid,
4144         __GI___chown): Add.
4145         * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
4146         __getpid_internal, __open_internal, __write_internal): Remove.
4147         (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
4148         __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
4149         __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
4150         __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
4151         * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
4152         Replace INTDEF with libc_hidden_def.
4153         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
4154         * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
4155         * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
4156         * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
4157         * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
4158         Add libc_hidden_proto.
4159         * include/sys/poll.h (__poll): Add libc_hidden_proto.
4160         * include/sys/select.h (__select): Likewise.
4161         * include/sys/socket.h (__send): Likewise.
4162         * include/sys/statfs.h (__statfs): Likewise.
4163         * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
4164         __getpid, __getpgid, __setpgid, __close, __read, __write,
4165         __getpagesize, __sbrk): Likewise.
4166         (__chown_internal, __dup2_internal, __getpid_internal,
4167         __getpgid_internal, __close_internal, __write_internal,
4168         __getpagesize_internal): Remove.
4169         (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
4170         Remove macros.
4171         * include/printf.h (__printf_fp): Add libc_hidden_proto.
4172         * include/sched.h (__sched_setscheduler): Likewise.
4173         * include/resolv.h (__res_ninit, __res_randomid): Likewise.
4174         * include/stdlib.h (__secure_getenv): Likewise.
4175         * include/signal.h (__sigaction, __sigsuspend): Likewise.
4176         * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
4177         * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
4178         * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
4179         * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
4180         * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
4181         * inet/getproto_r.c (NSS_attribute_hidden): Remove.
4182         * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
4183         * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
4184         * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
4185         * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
4186         * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
4187         * inet/getservent_r.c (NSS_attribute_hidden): Remove.
4188         * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
4189         * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
4190         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
4191         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
4192         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
4193         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
4194         * libio/genops.c (__overflow): Add libc_hidden_def.
4195         * libio/iovdprintf.c: Remove libio.h include.
4196         * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
4197         libc_hidden_weak): Define to nothing if not defined.
4198         (__overflow, __woverflow): Add libc_hidden_proto.
4199         * libio/wgenops.c (__woverflow): Add libc_hidden_def.
4200         * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
4201         (DB_LOOKUP_FCT): Add libc_hidden_proto.
4202         * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
4203         (DB_LOOKUP_FCT): Add libc_hidden_proto.
4204         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
4205         and libc_hidden_def.
4206         * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
4207         * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
4208         (__getpgid): Add libc_hidden_proto.
4209         (__bsd_getpgrp): Remove INTUSE.
4210         * resolv/res_init.c (__res_ninit, __res_randomid): Add
4211         libc_hidden_def.
4212         * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
4213         * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
4214         * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
4215         * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
4216         * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
4217         * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
4218         __rpc_thread_createerr): Add libc_hidden_def.
4219         * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
4220         libc_hidden_def.
4221         * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
4222         * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
4223         * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
4224         * sysdeps/generic/chown.c (__chown): Likewise.
4225         * sysdeps/generic/close.c (__close): Likewise.
4226         * sysdeps/generic/dup2.c (__dup2): Likewise.
4227         * sysdeps/generic/pipe.c (__pipe): Likewise.
4228         * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
4229         * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
4230         * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
4231         * sysdeps/generic/read.c (__libc_read): Likewise.
4232         (__read): Add libc_hidden_weak.
4233         * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
4234         * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
4235         * sysdeps/generic/select.c (__select): Likewise.
4236         * sysdeps/generic/send.c (__send): Likewise.
4237         * sysdeps/generic/setpgid.c (__setpgid): Likewise.
4238         * sysdeps/generic/sigaction.c (__sigaction): Likewise.
4239         * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
4240         * sysdeps/generic/statfs.c (__statfs): Likewise.
4241         * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
4242         * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
4243         * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
4244         Remove undef and INTDEF.
4245         * sysdeps/generic/getpgid.c (__getpgid): Likewise.
4246         * sysdeps/generic/getpid.c (__getpid): Likewise.
4247         * sysdeps/generic/write.c (__libc_write): Likewise.
4248         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
4249         * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
4250         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
4251         * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
4252         * sysdeps/mach/hurd/chown.c (__chown): Likewise.  Remove INTDEF.
4253         * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
4254         Remove undef and INTDEF.
4255         * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
4256         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
4257         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
4258         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
4259         * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
4260         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
4261         * sysdeps/mach/hurd/pipe.c: Include unistd.h.
4262         (__pipe): Add libc_hidden_def.
4263         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
4264         libc_hidden_weak.
4265         * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
4266         * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
4267         * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
4268         (__read): Add libc_hidden_weak.
4269         * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
4270         (__libc_pwrite64): Add libc_hidden_def.
4271         * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
4272         * sysdeps/mach/hurd/select.c (__select): Likewise.
4273         * sysdeps/mach/hurd/send.c (__send): Likewise.
4274         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
4275         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
4276         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
4277         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
4278         * sysdeps/posix/dup2.c: Likewise.
4279         Remove undef and INTDEF.
4280         * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
4281         * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
4282         (__pwrite64): Add libc_hidden_weak.
4283         * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
4284         * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
4285         * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
4286         * sysdeps/standalone/close.c (__close): Likewise.
4287         * sysdeps/standalone/write.c (__libc_write): Likewise.
4288         (__write): Add libc_hidden_weak.
4289         * sysdeps/standalone/read.c (__read): Likewise.
4290         (__libc_read): Add libc_hidden_def.
4291         * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
4292         * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
4293         * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
4294         * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
4295         * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
4296         * sysdeps/unix/bsd/poll.c (__poll): Likewise.
4297         * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
4298         * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
4299         * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
4300         __GI___sigaction): Add.
4301         * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
4302         * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
4303         * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
4304         * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
4305         * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
4306         __GI___setpgid): Add.
4307         * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
4308         Remove undef and INTDEF.
4309         * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
4310         * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
4311         * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
4312         * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
4313         * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
4314         * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
4315         * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
4316         * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
4317         * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
4318         * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
4319         * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
4320         * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
4321         * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
4322         * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
4323         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
4324         __GI___statfs, __GI___send): Add.
4325         * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
4326         libc_hidden_ver resp. libc_hidden_def.
4327         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
4328         libc_hidden_def.
4329         * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
4330         Likewise.  Remove undef and INTDEF.
4331         * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
4332         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
4333         __GI___statfs, __GI___send): Add.
4334         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
4335         libc_hidden_def.
4336         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
4337         Likewise.
4338         * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
4339         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
4340         libc_hidden_ver resp. libc_hidden_def.
4341         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
4342         __GI___send): Add.
4343         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
4344         Add libc_hidden_weak.
4345         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
4346         Add libc_hidden_def.
4347         * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
4348         * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
4349         libc_hidden_weak.
4350         * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
4351         resp. libc_hidden_def.
4352         * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
4353         libc_hidden_weak.
4354         * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise.  Remove
4355         INTDEF.
4356         * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
4357         Likewise.  Remove undef.
4358         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
4359         libc_hidden_weak.
4360         * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
4361         * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
4362         libc_hidden_weak.
4363         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
4364         libc_hidden_def.
4365         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
4366         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
4367         Likewise.  Remove undef and INTDEF.
4368         * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
4369         libc_hidden_def.
4370         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
4371         libc_hidden_weak.
4372         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
4373         libc_hidden_def.
4374         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
4375         (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
4376         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
4377         libc_hidden_weak.
4378         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
4379         Add libc_hidden_def.
4380         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
4381         __GI___statfs): Add.
4382         * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
4383         libc_hidden_weak.
4384         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
4385         * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
4386         Remove undef and INTDEF.
4387         * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
4388         * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
4389         libc_hidden_def.
4390         * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
4391         * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
4392         libc_hidden_weak.
4393         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
4394         libc_hidden_def.
4395         * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
4396         * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
4397         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
4398         Add.
4399         * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
4400         libc_hidden_def.  Remove undef and INTDEF.
4401         * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
4402         * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
4403         libc_hidden_def.
4404         * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
4405         * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
4406         * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
4407         * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
4408         Remove undef and INTDEF.
4409         * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
4410         broken visibility attribute handling.
4411         * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
4412
4413 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
4414
4415         * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
4416         Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
4417
4418         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
4419         previous patch.
4420
4421 2002-06-29  Todd Fries  <todd@openbsd.org>
4422
4423         * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
4424
4425 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4426
4427         * include/errno.h: Don't include tls.h if _ISOMAC is defined.
4428
4429 2002-07-30  Roland McGrath  <roland@redhat.com>
4430
4431         * resolv/resolv.h (_res): Define macro unconditionally.
4432         [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
4433         * include/resolv.h: ... here.
4434         [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
4435         as a __thread variable.
4436         * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
4437         a __thread variable instead of a global.
4438         * resolv/res_data.c [_LIBC]: Don't #undef _res.
4439
4440         * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
4441         time we test it.
4442
4443         * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
4444
4445         * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
4446         decls of memset and memcpy.
4447
4448         * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
4449         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
4450
4451         * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
4452
4453         * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
4454         (__libc_tsd_define): Define using __thread.
4455
4456         * sunrpc/rpc_thread.c: Use __libc_tsd_define.
4457         (__rpc_thread_variables): Use __libc_tsd_get.
4458         (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
4459         __rpc_thread_variables, which might allocate what we're about to free.
4460
4461         * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
4462         thread-local variable.
4463         * resolv/netdb.h (h_errno): Define macro unconditionally.
4464         [_LIBC] (__set_h_errno): Macro moved to ...
4465         * include/netdb.h: ... here.
4466         [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
4467         [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
4468         [! _LIBC_REENTRANT]: #undef h_errno here.
4469
4470         * include/errno.h: Protect from multiple inclusion.
4471
4472         * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
4473         before defining them, since Linux's <linux/posix_types.h> might have
4474         defined them.
4475
4476 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4477
4478         * malloc/malloc.c (public_cALLOc): Check for overflow on
4479         multiplication.
4480         * sunrpc/xdr_array.c (xdr_array): Likewise.
4481         * sunrpc/rpc/types.h (mem_free): Add comment.
4482         Patch by Solar Designer <solar@openwall.com>.
4483
4484 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4485
4486         * sysdeps/unix/sysv/linux/kernel-features.h
4487         (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
4488
4489 2002-08-01  Roland McGrath  <roland@redhat.com>
4490
4491         * libio/fileops.c (_IO_file_sync_mmap): New function.
4492         (_IO_file_jumps_mmap): Use it.
4493         (_IO_file_underflow_mmap): Rewritten.  If after EOF or fflush,
4494         repeat the stat check and resize the mapped buffer as necessary.
4495
4496 2002-07-31  Roland McGrath  <roland@redhat.com>
4497
4498         * libio/fileops.c (decide_maybe_mmap): New static function.
4499         Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
4500         mmap the file contents.  Then switch the jump tables to the mmap
4501         tables if it worked, or the vanilla file tables if not.
4502         (_IO_file_underflow_maybe_mmap): New function.
4503         (_IO_file_seekoff_maybe_mmap): New function.
4504         (_IO_file_xsgetn_maybe_mmap): New function.
4505         (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
4506         * libio/libioP.h: Declare those.
4507         * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
4508         (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
4509         * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
4510         If the stream is read-only, set its jump tables to those new ones.
4511         * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
4512         jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
4513         We need the tables set before _IO_file_attach.
4514
4515         * libio/tst-mmap-eofsync.c: New file.
4516         * libio/tst-mmap-fflushsync.c: New file.
4517         * libio/bug-mmap-fflush.c: New file.
4518         * libio/tst-mmap2-eofsync.c: New file.
4519         * libio/Makefile (tests): Add them.
4520
4521         * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
4522         _IO_file_underflow_mmap fails, it already set the appropriate bit.
4523
4524 2002-07-31  Jeff Bailey  <jbailey@gnu.org>
4525
4526         * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
4527         Declarations moved to <bits/sys_errlist.h>.  Include that file.
4528         * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
4529         * sysdeps/generic/bits/sys_errlist.h: New file.  This does *not*
4530         declare sys_errlist and sys_nerr.
4531         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file.  Does
4532         provide declarations.
4533
4534 2002-07-31  Roland McGrath  <roland@redhat.com>
4535
4536         * elf/rtld.c (dl_main): Fix typo in error message.
4537
4538 2002-07-31  Roland McGrath  <roland@frob.com>
4539
4540         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
4541         __xstat -> __xstat64, __lseek -> __libc_lseek64.  Completes 2002-06-09
4542         sysdeps/mach/hurd/dl-sysdep.c change.
4543
4544 2002-07-28  Ulrich Drepper  <drepper@redhat.com>
4545
4546         * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
4547         -r`/build/include for kernel headers.
4548
4549         * po/fi.po: New file.
4550
4551 2002-07-15  Alexandre Oliva  <aoliva@redhat.com>
4552
4553         * configure.in (static_nss): Set to `yes' if --disable-shared.
4554
4555 2002-07-23  Bruno Haible  <bruno@clisp.org>
4556
4557         * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
4558         is set.
4559
4560 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4561
4562         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
4563         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
4564         arguments.
4565
4566 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4567
4568         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
4569         alias.
4570
4571 2002-07-21  Bruno Haible  <bruno@clisp.org>
4572
4573         * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
4574         * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
4575         sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
4576         trans_sysdep_tab_offset.
4577         (struct sysdep_segment): New type.
4578         (struct sysdep_string): New type.
4579         (SEGMENTS_END): New macro.
4580         * intl/gettextP.h (struct sysdep_string_desc): New type.
4581         (struct loaded_domain): New fields malloced, n_sysdep_strings,
4582         orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
4583         orig_tab, trans_tab, hash_tab to const pointers because they point
4584         into read-only memory.
4585         * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
4586         (PRI*): Define fallback values.
4587         (get_sysdep_segment_value): New function.
4588         (_nl_load_domain): Distinguish major and minor revision parts. Add
4589         support for minor revision 1 with system dependent strings.
4590         (_nl_unload_domain): Also free the 'malloced' field.
4591         * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
4592         now done in loadmsgcat.c. Add support for system dependent strings.
4593
4594 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
4595
4596         * posix/bug-regex7.c: New file.
4597         * posix/bug-regex8.c: New file.
4598         * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
4599
4600 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
4601
4602         * posix/bug-regex4.c (main): Fix typos.
4603         * posix/bug-regex6.c (main): Likewise.
4604
4605 2002-07-27  Ulrich Drepper  <drepper@redhat.com>
4606
4607         * posix/bug-regex6.c (main): Fix warnings.
4608
4609         * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
4610
4611         * iconv/iconv_prog.c (main): Improve error message for the cases
4612         where -t and/or -f parameter are missing.
4613
4614 2002-07-10  Stepan Kasal  <kasal@math.cas.cz>
4615
4616         * posix/regexec.c (re_match): Reorganize to remove duplicate code.
4617         (re_search): Likewise.
4618         (re_match_2): Likewise.
4619         (re_search_2): Likewise.
4620         (re_search_stub): New function.
4621         (re_search_2_stub): New function.
4622         * regcomp.c (re_compile_pattern): Typo in a comment fixed.
4623
4624 2002-07-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
4625
4626         * posix/regex_internal.h: Add new member STOP to struct re_string_t.
4627         (re_string_eoi): Use STOP instead of LEN.
4628         * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
4629         (re_string_construct): Likewise.
4630         (re_string_reconstruct): Adjust pstr->stop like pstr->len.
4631         * posix/regexec.c (re_search_internal): Add a new argument STOP
4632         so that it can handle the argument STOP of re_search_2 and re_match_2
4633         correctly.
4634         (regexec): Adapt to new I/F of re_search_internal.
4635         (re_search_stub): Likewise.
4636
4637 2002-07-25  Ulrich Drepper  <drepper@redhat.com>
4638
4639         * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
4640
4641         * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
4642
4643         * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
4644         * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
4645         of __divdi3.
4646
4647         * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
4648         * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
4649         * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
4650         alias for adjtimex syscall.
4651
4652         * elf/dl-minimal.c: Define __assert_fail_internal.
4653         * assert/assert.c: Likewise.
4654         * include/assert.h: Define __assert_file macro if !SHARED and not
4655         NOT_IN_libc.
4656
4657         * iconv/Makefile: Define NOT_IN_libc for objects in standalone
4658         programs.
4659         * locale/Makefile: Likewise.
4660         * nscd/Makefile: Likewise.
4661         * catgets/Makefile: Likewise.
4662
4663 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
4664
4665         * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
4666         compute current position.
4667
4668         * stdio-common/tst-fseek.c (main): Improve error messages.
4669
4670         * libio/tst-freopen.c (main): Remove unused variable.
4671
4672         * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
4673         succesful seek call.  Simplify error checking.
4674
4675 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4676
4677         * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
4678         * sysdeps/ia64/fpu/libm_support.h: Likewise.
4679
4680 2002-07-19  Roland McGrath  <roland@frob.com>
4681
4682         * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
4683         __libc_enable_secure is set.
4684
4685 2002-07-24  Roland McGrath  <roland@frob.com>
4686
4687         Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
4688         This implementation supports only IPv4.
4689         * inet/ifaddrs.h: New file.
4690         * sysdeps/generic/ifaddrs.c: New file.
4691         * sysdeps/gnu/ifaddrs.c: New file.
4692         * inet/test-ifaddrs.c: New file.
4693         * inet/Makefile (routines): Add ifaddrs.
4694         (headers): Add ifaddrs.h here.
4695         (tests): Add test-ifaddrs.
4696         * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
4697
4698         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
4699         socket call to get an AF_INET socket, instead of using __opensock.
4700         The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
4701
4702         * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
4703         if not -1 use it instead of calling __opensock.
4704         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
4705         * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
4706         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
4707
4708         * sysdeps/mach/hurd/ifreq.h: New file.
4709         * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
4710         * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
4711         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
4712
4713         * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
4714         which gets moved around.  Calculate size of mmap'd buffer instead.
4715
4716 2002-07-24  Philip Blundell  <philb@gnu.org>
4717
4718         * sysdeps/unix/arm/brk.S: Improve schedule.
4719         * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
4720         efficient instruction.
4721         (__socket): Optimize return sequence.
4722
4723 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
4724
4725         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
4726         sockets on old kernels.
4727
4728 2002-07-22  Philip Blundell  <philb@gnu.org>
4729
4730         * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
4731         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
4732         alias.
4733
4734 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
4735
4736         * locale/hashval.h: Make more self-contained by defining LONG_BITS.
4737         * locale/programs/simple-hash.c: Remove LONG_BITS definition.
4738
4739         * locale/programs/locarchive.c (add_locale_to_archive): Correct
4740         test to detect duplicate locales.
4741
4742         * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
4743         position would be before beginning of file.
4744         (_IO_file_seekoff_mmap): Likewise.
4745         * libio/Makefile (tests): Add bug-fseek.
4746         * libio/bug-fseek.c: New file.
4747
4748         * intl/explodename.c: Remove support for CEN-style locale variables.
4749         It was never used and shouldn't be since it's not portable.
4750         * intl/finddomain.c: Likewise.
4751         * intl/l10nflist.c: Likewise.
4752         * intl/loadinfo.h: Likewise.
4753         * locale/findlocale.c: Likewise.
4754
4755 2002-07-24  Roland McGrath  <roland@frob.com>
4756
4757         * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
4758         position, calculate it to take into account an active pushback buffer.
4759
4760         * libio/Makefile (tests): Add bug-ungetc.
4761         * libio/bug-ungetc.c: New file.
4762
4763 2002-07-23  Ulrich Drepper  <drepper@redhat.com>
4764
4765         * sysdeps/generic/libc-tls.c: New file.
4766         * csu/Makefile (routines): Add libc-tls.
4767         (static-only-routines): Add libc-tls.
4768         * elf/dl-support.c (_dl_phdr): New variable.
4769         (_dl_phnum): New variable.
4770         (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
4771         * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
4772         for !SHARED.  First look through auxiliary vector.  If TLS always
4773         call __pthread_initialize_minimal.
4774
4775         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
4776         in mmap call is never zero.
4777
4778 2002-07-23  Andreas Jaeger  <aj@suse.de>
4779
4780         * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
4781         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
4782
4783 2002-07-22  Ulrich Drepper  <drepper@redhat.com>
4784
4785         * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
4786         creation and removal of the temp file.
4787
4788         * libio/bug-rewind.c: Use test skeleton.  Use create_temp_file for
4789         file creation.
4790         * test-skeleton.c (create_temp_file): New function.
4791
4792 2002-07-22  Andreas Jaeger  <aj@suse.de>
4793
4794         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
4795         local label.
4796
4797 2002-07-21  Roland McGrath  <roland@frob.com>
4798
4799         * wcsmbs/Makefile (strtox-CFLAGS): New variable,
4800         put -I../include before -I../stdlib so we get the right errno.h et al.
4801         (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
4802         (CFLAGS-wcstof.c): Likewise.
4803         (CFLAGS-wcstold.c): Likewise.
4804         (CFLAGS-wcstod_l.c): Likewise.
4805         (CFLAGS-wcstof_l.c): Likewise.
4806         (CFLAGS-wcstold_l.c): Likewise.
4807
4808 2002-07-19  Roland McGrath  <roland@frob.com>
4809
4810         * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
4811
4812 2002-07-20  Ulrich Drepper  <drepper@redhat.com>
4813
4814         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
4815         __ASSUME_AT_XID is defined.
4816         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
4817         for 2.4.1 and up.
4818         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
4819         of AT_UID, AT_EUID, AT_GID, and AT_EGID.
4820
4821         * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
4822         (CFLAGS-wcstof.c): Likewise.
4823         (CFLAGS-wcstold.c): Likewise.
4824         (CFLAGS-wcstod_l.c): Likewise.
4825         (CFLAGS-wcstof_l.c): Likewise.
4826         (CFLAGS-wcstold_l.c): Likewise.
4827
4828 2002-07-18  Jakub Jelinek  <jakub@redhat.com>
4829
4830         * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
4831         __priority_which_t): Always typedef to int for C++.
4832
4833 2002-07-19  Ulrich Drepper  <drepper@redhat.com>
4834
4835         * configure.in: Add test for __thread support in compiler.
4836         * config.h.in: Add HAVE___THREAD.
4837         * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
4838         * include/sys/errno.h: Moved to...
4839         * stdlib/sys/errno.h: ...here.  New file.
4840         * stdlib/errno.h: New file.  Moved from...
4841         * include/errno.h: ...here.  Changed into an internal header defining
4842         libc-local things like __set_errno.
4843         * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
4844         bits/errno.h.
4845         * elf/dl-minimal.c: Include <tls.h>.  Define errno as thread-local
4846         variable if USE_TLS && HAVE___THREAD.  Don't define __errno_location
4847         either.
4848         * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
4849         from...
4850         (_dl_start_final): ...here.  Add code to initialize tls elements from
4851         bootstrap_map.
4852         * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
4853         if USE_TLS && HAVE___THREAD.
4854         * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
4855         * sysdeps/mach/hurd/bits/errno.h: Likewise.
4856         * sysdeps/standalone/arm/bits/errno.h: Likewise.
4857         * sysdeps/standalone/bits/errno.h: Likewise.
4858         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
4859         * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
4860         * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
4861         * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
4862         * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
4863         * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
4864         * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
4865         * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
4866         use GL(dl_rtld_map), use map parameter.
4867         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
4868         * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
4869         USE_TLS && HAVE___THREAD.
4870         * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
4871         definitions.  If USE_TLS && HAVE___THREAD store errooor value using
4872         TLS code sequence.
4873         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
4874
4875         * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
4876         * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
4877         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
4878         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
4879         * sysdeps/unix/sysv/linux/readv.c: Likewise.
4880         * sysdeps/unix/sysv/linux/writev.c: Likewise.
4881
4882 2002-07-17  Ulrich Drepper  <drepper@redhat.com>
4883
4884         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
4885         MS_INVALIDATE values.
4886
4887 2002-07-17  Andreas Schwab  <schwab@suse.de>
4888             Ulrich Drepper  <drepper@redhat.com>
4889
4890         * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
4891         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4892         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4893         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4894
4895 2002-07-01  H.J. Lu  <hjl@gnu.org>
4896
4897         * elf/circleload1.c (load_dso): Call "circlemod1" and check
4898         return value.
4899
4900         * elf/circlemod1.c (circlemod1): Return int.
4901         * elf/circlemod2.c (circlemod2): Likewise.
4902         * elf/circlemod2a.c (circlemod2): Likewise.
4903         * elf/circlemod3.c (circlemod3): Likewise.
4904         (circlemod3a): A new function.
4905
4906 2002-07-16  Ulrich Drepper  <drepper@redhat.com>
4907
4908         * catgets/tst-catgets.c (main): Don't expect results for
4909         untranslated messages.
4910
4911         * glibcbug.in: Fix little typo.  Remove STDIO.
4912
4913         * config.h.in: Fail if __FAST_MATH__ is defined.
4914         * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
4915         (CPPFLAGS-test-idouble.c): Likewise.
4916         (CPPFLAGS-test-ildouble.c): Likewise.
4917
4918 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
4919
4920         * intl/tst-gettext.sh: Pass -f option to msgfmt.
4921         * intl/tst-gettext.c: Correctly handle untranslated messages in
4922         positive tests.
4923
4924         * po/de.po: Update from translation team.
4925
4926 2002-07-02  H.J. Lu  <hjl@gnu.org>
4927
4928         * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>.  Always
4929         use ll/sc.
4930         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
4931
4932         * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
4933         to 2.4.0 for mips.
4934
4935 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
4936
4937         * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
4938         TLS fail if USE_TLS is not defined.
4939
4940         * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
4941         and adjust state for seek position.  [PR libc/4070]
4942         * libio/Makefile (tests): Add bug-rewind.
4943         * libio/bug-rewind.c: New file.
4944
4945 2002-07-12  Philip Blundell  <philb@gnu.org>
4946
4947         * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
4948         (__backtrace): Use it.
4949         * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define.  [PR libc/2632]
4950
4951 2002-07-12  Philip Blundell  <philb@gnu.org>
4952
4953         * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
4954         R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
4955         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
4956         (elf_machine_rela): Remove unused variable.
4957
4958         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
4959         (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
4960         define.
4961
4962 2002-07-12  Ulrich Drepper  <drepper@redhat.com>
4963
4964         * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
4965
4966 2002-07-14  Andreas Jaeger  <aj@suse.de>
4967
4968         * sysdeps/x86_64/bits/link.h: Add biarch support.
4969
4970 2002-07-13  Andreas Jaeger  <aj@suse.de>
4971
4972         * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
4973         Use correct indices.
4974         Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
4975
4976 2002-07-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4977
4978         * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
4979         * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
4980         * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
4981         * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
4982         * sysdeps/s390/s390-32/bits/link.h: Remove.
4983         * sysdeps/s390/s390-64/bits/link.h: Remove.
4984         * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
4985         * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
4986         * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
4987         * sysdeps/s390/bits/wordsize.h: New file.
4988         * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
4989         elfclass.h.
4990         * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
4991         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
4992         * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
4993         * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
4994         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
4995         * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
4996         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
4997         * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
4998         * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
4999         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
5000         * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
5001         * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
5002         resource.h.
5003         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
5004         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
5005         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
5006         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
5007         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
5008         * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
5009         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
5010         sigaction.h.
5011         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
5012         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
5013         siginfo.h.
5014         * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
5015         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
5016         * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
5017         socket.h.
5018         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
5019         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
5020         * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
5021         * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
5022         * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
5023         * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
5024         * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
5025         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
5026         procfs.h.
5027         * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
5028         * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
5029         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
5030         ucontext.h.
5031         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
5032         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
5033
5034 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
5035
5036         * Versions.def (libc): Add GLIBC_2.3.
5037         * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
5038         * stdlib/canonicalize.c: Add compatibility version for realpath
5039         and make new code available in GLIBC_2.3.
5040
5041 2002-07-06  Bruno Haible  <bruno@clisp.org>
5042
5043         * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
5044
5045 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
5046
5047         * resolv/res_hconf.c (_res_hconf_init): Move code into new
5048         function do_init.  Use __libc_once.
5049         (do_init): New function.
5050
5051         * iconvdata/iso8859-11.h: Removed.
5052         * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
5053         (distribute): Remove iso8859-11.h.
5054         * iconvdata/tst-tables.sh: Add ISO-8859-11.
5055
5056         * stdio-common/vfscanf.c (inchar): Restore errno from previous
5057         underflow operation if c == (W)EOF.
5058
5059 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
5060
5061         * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
5062         non-zero, adjust exponent.
5063         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
5064         Remove NO_LONG_DOUBLE aliases.
5065         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
5066         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
5067         (__log1pl): Raise divide by zero and invalid exceptions when needed.
5068         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
5069         1**y and -1**+-Inf.
5070         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
5071         Fix BITS_PER_MP_LIMB 32 extraction.
5072         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
5073         exceptions for qNaNs.
5074         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
5075         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
5076         Raise exceptions when needed.  Don't recurse unnecessarily.
5077         Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
5078         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
5079         exceptions for qNaNs.
5080         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
5081         to fix *quo return value sign.
5082         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
5083         case -Inf argument.
5084         * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
5085
5086 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
5087
5088         * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
5089         * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
5090         -DNDEBUG.
5091
5092 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
5093
5094         * malloc/hooks.c (realloc_check): If mremap succeeds actually use
5095         the result.
5096
5097         * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
5098         output parameter.  Reported by Denis Zaitsev <zzz@cd-club.ru>.
5099
5100         * Versions.def (libthread_db): Add GLIBC_2.3.
5101
5102 2002-07-09  Jakub Jelinek  <jakub@redhat.com>
5103
5104         * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
5105         new stream if possible.
5106         * libio/freopen64.c (freopen64): Likewise.
5107         * libio/Makefile (tests): Add tst-freopen.
5108         * libio/tst-freopen.c: New file.
5109
5110 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
5111
5112         * libio/stdio.h (obstack_printf): Add format attribute.
5113         (obstack_vprintf): Likewise.
5114
5115 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
5116
5117         * posix/regex_internal.h (re_token_t): Shrink the structure to 8
5118         resp. 16 bytes on 32-bit resp. 64-bit platforms.
5119         (re_charset_t, re_string_t): Reorder structure members for 64-bit
5120         architectures.
5121
5122 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
5123
5124         * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
5125         (init_dfa): ...here.
5126
5127 2002-07-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
5128
5129         * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
5130         OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
5131         nodes in parse trees.
5132         (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
5133         and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
5134         (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
5135         nodes which can epsilon transit.
5136         * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
5137         to IS_EPSILON_NODE macro.
5138         * posix/regexec.c (update_regs): New function to update registers
5139         by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
5140         (proceed_next_node): Use the entities of the nodes to determine
5141         whether the node can transit to.
5142         (set_regs): Use update_regs function to update registers.
5143
5144 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
5145
5146         * posix/bug-regex4.c (main): Remove duplicate setlocale.
5147         * posix/bug-regex6.c: New file.
5148         * posix/Makefile (tests): Add bug-regex6.
5149         (bug-regex6-ENV): Set LOCPATH.
5150
5151 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
5152
5153         * Versions.def [libpthread]: Add GLIBC_2.2.6.
5154         * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
5155
5156 2002-07-06  Bruno Haible  <bruno@clisp.org>
5157
5158         * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
5159
5160 2002-07-06  Bruno Haible  <bruno@clisp.org>
5161
5162         * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
5163         declarations.
5164
5165         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
5166
5167         * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
5168
5169         * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
5170         not _UTSNAME_H.
5171         * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
5172
5173         * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
5174         * sysdeps/generic/bits/ustat.h: Likewise.
5175
5176         * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
5177
5178 2002-07-08  Andreas Jaeger  <aj@suse.de>
5179
5180         * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
5181
5182 2002-07-08  Andreas Jaeger  <aj@suse.de>
5183
5184         * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
5185
5186 2002-07-06  Andreas Jaeger  <aj@suse.de>
5187
5188         * sysdeps/x86_64/fpu/bits/mathinline.h: New file.
5189         * sysdeps/x86_64/fpu/s_copysign.S: New file.
5190         * sysdeps/x86_64/fpu/s_copysignf.S: New file.
5191         * sysdeps/x86_64/fpu/s_copysignl.S: New file.
5192         * sysdeps/x86_64/fpu/s_finitel.S: New file.
5193         * sysdeps/x86_64/fpu/s_fmax.S: New file.
5194         * sysdeps/x86_64/fpu/s_fmaxf.S: New file.
5195         * sysdeps/x86_64/fpu/s_fmaxl.S: New file.
5196         * sysdeps/x86_64/fpu/s_fmin.S: New file.
5197         * sysdeps/x86_64/fpu/s_fminf.S: New file.
5198         * sysdeps/x86_64/fpu/s_fminl.S: New file.
5199
5200 2002-06-05  Brian Youmans <3diff@gnu.org>
5201
5202         * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
5203         * sysdeps/ia64/fpu/e_acosf.S: Likewise.
5204         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
5205         * sysdeps/ia64/fpu/e_asin.S: Likewise.
5206         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
5207         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
5208         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
5209         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
5210         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
5211         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
5212         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
5213         * sysdeps/ia64/fpu/e_exp.S: Likewise.
5214         * sysdeps/ia64/fpu/e_expf.S: Likewise.
5215         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
5216         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
5217         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
5218         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
5219         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
5220         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
5221         * sysdeps/ia64/fpu/e_log.S: Likewise.
5222         * sysdeps/ia64/fpu/e_logf.S: Likewise.
5223         * sysdeps/ia64/fpu/e_pow.S: Likewise.
5224         * sysdeps/ia64/fpu/e_powf.S: Likewise.
5225         * sysdeps/ia64/fpu/e_powl.S: Likewise.
5226         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
5227         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
5228         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
5229         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
5230         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
5231         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
5232         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
5233         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
5234         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
5235         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
5236         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
5237         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
5238         * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
5239         * sysdeps/ia64/fpu/libm_error.c: Likewise.
5240         * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
5241         * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
5242         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
5243         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
5244         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
5245         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
5246         * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
5247         * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
5248         * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
5249         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
5250         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
5251         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
5252         * sysdeps/ia64/fpu/s_logb.S: Likewise.
5253         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
5254         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
5255         * sysdeps/ia64/fpu/s_modf.S: Likewise.
5256         * sysdeps/ia64/fpu/s_modff.S: Likewise.
5257         * sysdeps/ia64/fpu/s_modfl.S: Likewise.
5258         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
5259         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
5260         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
5261         * sysdeps/ia64/fpu/s_rint.S: Likewise.
5262         * sysdeps/ia64/fpu/s_rintf.S: Likewise.
5263         * sysdeps/ia64/fpu/s_rintl.S: Likewise.
5264         * sysdeps/ia64/fpu/s_round.S: Likewise.
5265         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
5266         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
5267         * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
5268         * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
5269         * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
5270         * sysdeps/ia64/fpu/s_significand.S: Likewise.
5271         * sysdeps/ia64/fpu/s_significandf.S: Likewise.
5272         * sysdeps/ia64/fpu/s_significandl.S: Likewise.
5273         * sysdeps/ia64/fpu/s_tan.S: Likewise.
5274         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
5275         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
5276         * sysdeps/ia64/fpu/s_trunc.S: Likewise.
5277         * sysdeps/ia64/fpu/s_truncf.S: Likewise.
5278         * sysdeps/ia64/fpu/s_truncl.S: Likewise.
5279         * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
5280         reflect IBM donation of math library to FSF
5281         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5282         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
5283         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5284         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5285         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5286         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5287         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
5288         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
5289         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5290         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
5291         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
5292         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
5293         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
5294         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
5295         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
5296         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
5297         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5298         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
5299         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5300         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
5301         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
5302         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
5303         * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
5304         * sysdeps/vax/__longjmp.c: Likewise.
5305         * sysdeps/vax/setjmp.c: Likewise.
5306         * libio/filedoalloc.c: Fixed BSD copying permission notice to
5307         remove advertising clause
5308         * sysdeps/vax/htonl.s: Likewise.
5309         * sysdeps/vax/htons.s: Likewise.
5310         * libio/wfiledoalloc.c: Likewise.
5311         * stdlib/random.c: Likewise.
5312         * stdlib/random_r.c: Likewise.
5313         * sysdeps/mach/sys/reboot.h: Likewise.
5314         * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
5315         * sysdeps/posix/getaddrinfo.c: Likewise.
5316         * sunrpc/des_impl.c: Updated license permission notice to Lesser
5317         GPL and corrected pointer to point to the correct license.
5318
5319 2002-07-04  Andreas Jaeger  <aj@suse.de>
5320
5321         * scripts/config.guess: New upstream version.
5322         * scripts/config.sub: Likewise.
5323
5324 2002-07-02  Andreas Schwab  <schwab@suse.de>
5325
5326         * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
5327         in parallel to bumping up the buffer pointer.
5328
5329 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
5330
5331         * math/libm-test.inc (acos_test): Add missing L suffix for
5332         expected result.
5333         (cpow_test): Likewise.
5334         * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
5335         error for acos (0.0625).
5336
5337 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
5338
5339         * locale/iso-639.def: Add entry for Ganda.
5340         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
5341         definition.
5342         (address_finish): Handle entries with two letter ISO 639 code.
5343
5344         * iconvdata/Makefile: Recreate gconv-modules.cache file in target
5345         directory if it existed before.
5346         * iconv/iconvconfig.c: Implement --prefix option.
5347
5348         * math/libm-test.inc (cexp_test): Add missing L suffix for
5349         expected result.  Reported by Stephen L Moshier <steve@moshier.net>.
5350         * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
5351         1.25 i).
5352
5353 2002-05-29  H.J. Lu  <hjl@gnu.org>
5354
5355         * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
5356         is turned on.
5357
5358 2002-05-28  H.J. Lu  <hjl@gnu.org>
5359
5360         * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
5361         are not dlopened on the dependency list of a dlopened object.
5362
5363 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
5364
5365         * elf/dl-lookup.c (add_dependency): It is not necessary to add
5366         dependencies if they are created between objects which are created
5367         while processing RTLD_NOW for objects loaded as part of the same
5368         dlopen call.
5369
5370 2002-06-14  H.J. Lu  <hjl@gnu.org>
5371
5372         * elf/Makefile (tests): Add circleload1.
5373         (modules-names): Add circlemod1, circlemod2, circlemod3,
5374         circlemod1a, circlemod2a and circlemod3a.
5375         ($(objpfx)circleload1): New target.
5376         ($(objpfx)circleload1.out): Likewise.
5377         ($(objpfx)circlemod1.so): Likewise.
5378         ($(objpfx)circlemod2.so): Likewise.
5379         ($(objpfx)circlemod1a.so): Likewise.
5380         ($(objpfx)circlemod2a.so): Likewise.
5381         * elf/circleload1.c: New file.
5382         * elf/circlemod1.c: New file.
5383         * elf/circlemod1a.c: New file.
5384         * elf/circlemod2.c: New file.
5385         * elf/circlemod2a.c: New file.
5386         * elf/circlemod3.c: New file.
5387         * elf/circlemod3a.c: New file.
5388
5389 2002-06-18  Amos Waterland  <apw@us.ibm.com>
5390
5391         * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
5392         file descriptor.
5393         * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
5394         add check for fd not open for writing.
5395
5396         * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
5397         completed element(s) and do not suspend thread if so.  Patch
5398         heavily modified by drepper.
5399
5400         * rt/tst-aio7.c: New file.  Regression test for problems which the
5401         above three changes fix.
5402         * rt/Makefile (tests): Add tst-aio7.
5403
5404 2002-06-29  Ulrich Drepper  <drepper@redhat.com>
5405
5406         * rt/tst-aio6.c: Fix comment.
5407
5408         * catgets/gencat.c (read_input_file): Handle more than one slash
5409         at end of line correctly [PR libc/3926].
5410         Based on a patch by Steven Kim <steven.kim@peregrine.com>.
5411
5412         * catgets/sample.SJIS: Add test case for above bug.
5413         * catgets/test-gencat.c: Adjust test code.
5414         * catgets/test-gencat.sh: Adjust expected results.
5415
5416         * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
5417         to skip relative relocations.
5418         Patch by Geoff Keating <geoffk@redhat.com>.
5419
5420 2002-05-26  Bruno Haible  <bruno@clisp.org>
5421
5422         * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
5423         (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
5424         All callers changed.
5425         * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
5426         STANDARD_FROM_LOOP_ERR_HANDLER.
5427         (utf8_internal_loop): Likewise.
5428         (ucs2_internal_loop): Likewise.
5429         (internal_ucs2_loop): Perform error handling like in
5430         STANDARD_FROM_LOOP_ERR_HANDLER.
5431         * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
5432         in STANDARD_FROM_LOOP_ERR_HANDLER.
5433         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5434         handling.
5435         * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
5436         in STANDARD_FROM_LOOP_ERR_HANDLER.
5437         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5438         handling.
5439         * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
5440         in STANDARD_FROM_LOOP_ERR_HANDLER.
5441         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5442         handling.
5443         * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
5444         STANDARD_FROM_LOOP_ERR_HANDLER.
5445         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
5446         * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
5447         * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
5448         * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
5449         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
5450         * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
5451         * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
5452         * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
5453         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
5454         * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
5455         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
5456         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
5457         * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
5458         * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
5459         * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
5460         * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
5461         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
5462         * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
5463         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
5464         * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
5465         * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
5466         * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
5467         * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
5468         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5469         * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
5470         * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
5471         * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
5472         * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
5473         * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise.  When ignoring
5474         an error, still set result = __GCONV_ILLEGAL_INPUT.
5475         (BODY for TO_LOOP): Likewise.
5476         * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
5477         STANDARD_FROM_LOOP_ERR_HANDLER.
5478         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5479         * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
5480         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5481         handling.
5482         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5483         * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
5484         STANDARD_FROM_LOOP_ERR_HANDLER.
5485         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5486         * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
5487         STANDARD_FROM_LOOP_ERR_HANDLER.
5488         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5489         * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
5490         STANDARD_FROM_LOOP_ERR_HANDLER.
5491         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5492         * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
5493         STANDARD_FROM_LOOP_ERR_HANDLER.
5494         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5495         * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
5496         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5497         handling.
5498         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5499         * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
5500         * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
5501         * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
5502
5503 2002-06-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5504
5505         * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
5506         labels in assembler instructions.
5507
5508 2002-06-25  Ulrich Drepper  <drepper@redhat.com>
5509
5510         * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
5511         not enough content is available.
5512         * libio/tst-eof.c: New file.
5513         * libio/Makefile (tests): Add tst-eof.
5514
5515         * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
5516         update atime.
5517         * libio/tst-atime.c: New file.
5518         * libio/Makefile (tests): Add tst-atime.
5519
5520         * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
5521         handling of overly long words.
5522
5523 2002-06-25  Andreas Jaeger  <aj@suse.de>
5524
5525         * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
5526         to not use 32-bit pc relative relocations.
5527         (elf_machine_dynamic): Likewise.
5528
5529 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
5530
5531         * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
5532         (__GETDENTS): Check for failed getdents64 syscall.
5533         * dirent/Makefile (tests): Add bug-readdir1.
5534         * dirent/bug-readdir1.c: New file.
5535
5536 2002-06-17  Jakub Jelinek  <jakub@redhat.com>
5537
5538         * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
5539         lookups.
5540         * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
5541         code.  Print TLS modid and offset for modules containing PT_TLS
5542         segments.
5543
5544 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
5545
5546         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5547         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5548         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5549         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5550
5551 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
5552
5553         * nss/getXXbyYY_r.c (NEW, NEW1): Define.
5554         (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
5555         (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
5556         * nss/getXXent_r.c (NEW, NEW1): Define.
5557         (NEW (REENTRANT_GETNAME)): Strong alias to
5558         INTERNAL (REENTRANT_GETNAME).
5559         (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
5560
5561 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
5562
5563         * libio/fileops.c (_IO_file_setbuf_mmap): New function.
5564         (_IO_file_jumps_mmap): Use it.
5565         * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
5566         * libio/libioP.h: Remove _IO_wdefault_setbuf and
5567         _IO_wdefault_setbuf_internal prorotypes.  Add _IO_file_setbuf_mmap
5568         prototype.
5569         * libio/wfileops.c (_IO_wfile_setbuf): Removed.
5570         (_IO_wfile_jumps_mmap): Don't use it anymore.
5571         * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
5572         * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
5573         _IO_wdefault_setbuf.
5574         * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
5575         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
5576         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
5577
5578 2002-06-05  Jakub Jelinek  <jakub@redhat.com>
5579
5580         * libio/Makefile (tests): Add tst-mmap-setvbuf.
5581         * libio/tst-mmap-setvbuf.c: New test.
5582
5583 2002-06-21  Andreas Jaeger  <aj@suse.de>
5584
5585         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
5586
5587 2002-06-18  Jakub Jelinek  <jakub@redhat.com>
5588
5589         * include/unistd.h (__fork_internal): Remove.
5590         (__fork): Don't define to __fork_internal.
5591         * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
5592         * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
5593         * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
5594         * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
5595         * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
5596
5597 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
5598
5599         * po/hr.po: New file.
5600
5601 2002-06-11  Wolfram Gloger  <wg@malloc.de>
5602
5603         * malloc/malloc.c: Fix error path when new_heap() returns NULL.
5604         Reported by Michael Meissner <meissner@redhat.com>.
5605
5606 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
5607
5608         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
5609         Patch by Hans Boehm <hans_boehm@hp.com>.
5610
5611 2002-06-20  Andreas Jaeger  <aj@suse.de>
5612
5613         * math/libm-test.inc: Use exact values as input parameters,
5614         compute output parameters with 36 digits for 128-bit long doubles.
5615         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
5616         * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
5617         * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
5618
5619 2002-06-13  Stephen L Moshier  <steve@moshier.net>
5620
5621         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
5622         argument or result is subnormal.
5623
5624 2002-06-19  Ulrich Drepper  <drepper@redhat.com>
5625
5626         * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
5627         quotient.
5628         * sysdeps/i386/fpu/s_remquof.S: Likewise.
5629         * sysdeps/i386/fpu/s_remquol.S: Likewise.
5630
5631         * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
5632
5633 2002-06-17  David Mosberger  <davidm@hpl.hp.com>
5634
5635         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
5636         typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
5637         Reported by Peter A. Buhr.
5638
5639 2002-06-15  Roland McGrath  <roland@frob.com>
5640
5641         * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
5642         warning.
5643
5644         * sysdeps/mach/hurd/getcwd.c
5645         (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
5646
5647         * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
5648         * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
5649
5650         * sysdeps/alpha/divrem.h: Use local label instead of global one for
5651         jump to local subroutine.
5652
5653 2002-06-14  Roland McGrath  <roland@frob.com>
5654
5655         * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
5656         * sysdeps/mach/hurd/Makeconfig: ... here.
5657
5658 2002-06-13  Andreas Schwab  <schwab@suse.de>
5659
5660         * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
5661         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
5662         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
5663
5664 2002-06-13  Roland McGrath  <roland@frob.com>
5665
5666         * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
5667         * hurd/hurdstartup.c (_hurd_startup): Likewise.
5668         Use intptr_t instead of int for argc in stack layout.
5669         * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
5670         (_dl_init_first): Likewise.
5671         (_hurd_stack_setup): Likewise.
5672         (init1): Add a cast.
5673         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
5674
5675         * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
5676         argument to pfinet_siocgifconf RPC.
5677
5678 2002-06-13  Andreas Schwab  <schwab@suse.de>
5679
5680         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
5681         expansion order.
5682
5683 2002-06-12  Roland McGrath  <roland@frob.com>
5684
5685         * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
5686         if already defined.
5687         [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
5688         [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
5689
5690 2002-06-11  Roland McGrath  <roland@frob.com>
5691
5692         * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
5693         file on [!RTLD_STAT64].
5694         * sysdeps/mach/hurd/fxstat64.c: Likewise.
5695
5696         * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
5697         (__fdopen): Use INTUSE.
5698         * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
5699
5700         * stdio-common/tmpfile64.c: File removed.
5701         * sysdeps/generic/tmpfile64.c: New file.
5702         * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
5703         if not already defined.
5704         (tmpfile): Use it in place of __GT_FILE.
5705
5706         * include/unistd.h: Declare __chown_internal.
5707
5708         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
5709         * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
5710
5711 2002-06-09  Roland McGrath  <roland@frob.com>
5712
5713         Update to new Hurd RPC interfaces supporting 64-bit file sizes.
5714         * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
5715         value of HURD_INTERFACE_VERSION >= 20020609.
5716         * sysdeps/mach/hurd/configure: Regenerated.
5717         * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
5718         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
5719         convert a struct stat64 into a struct stat and return 0 or -1
5720         with errno set to EOVERFLOW.
5721         * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
5722         for struct statfs64 to struct statfs.
5723         * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
5724         * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
5725         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
5726         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
5727         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
5728         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
5729         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
5730         * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
5731         * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
5732         * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
5733         * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
5734         * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
5735         * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
5736         * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
5737         * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
5738         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
5739         * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
5740         * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
5741         * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
5742         * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
5743         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
5744         Use struct stat64 for io_stat argument.
5745         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
5746         * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
5747         to io_seek.
5748         * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
5749         * hurd/fd-write.c (_hurd_fd_write): Likewise.
5750         * hurd/hurd/fd.h: Update decls.
5751         * sysdeps/mach/hurd/getcwd.c
5752         (_hurd_canonicalize_directory_name_internal): Use ino64_t
5753         and struct dirent64.
5754         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
5755         (__xstat): Renamed to __xstat64, use struct stat64 for argument.
5756         (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
5757         (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
5758
5759 2002-06-08  Roland McGrath  <roland@frob.com>
5760
5761         * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
5762         instead of unsigned long int for __allocation and __size members.
5763
5764 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
5765
5766         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5767         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5768         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5769         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5770
5771 2002-06-07  Roland McGrath  <roland@frob.com>
5772
5773         * sysdeps/mach/hurd/bits/environments.h: File removed.
5774
5775 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
5776
5777         * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
5778         * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
5779         * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
5780         * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
5781         * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
5782         (sendfile64): Likewise.
5783         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
5784         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
5785         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
5786         Likewise.
5787         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
5788
5789         * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
5790         already defined.
5791
5792 2002-06-04  Bruno Haible  <bruno@clisp.org>
5793
5794         * sysdeps/cris/stackinfo.h: New file.
5795
5796         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
5797         to an integer type before performing bit operations on it.
5798
5799 2002-06-05  Roland McGrath  <roland@frob.com>
5800
5801         * sysdeps/generic/sendfile.c: Include <errno.h>.
5802         * sysdeps/generic/sendfile64.c: Likewise.
5803
5804         * io/Makefile (routines): Add sendfile and sendfile64.
5805         (headers): Add sys/sendfile.h to the list.
5806         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
5807         * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
5808         * io/sys/sendfile.h: ... here.
5809         * sysdeps/generic/sendfile.c: New file.
5810         * sysdeps/generic/sendfile64.c: New file.
5811
5812         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
5813         Move sendfile, sendfile64 to ...
5814         * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
5815         * sysdeps/mach/hurd/sendfile.c: New file.
5816         * sysdeps/mach/hurd/sendfile64.c: New file.
5817
5818         * sysdeps/mach/nanosleep.c: New file.
5819
5820 2002-06-04  Roland McGrath  <roland@frob.com>
5821
5822         * sysdeps/alpha/elf/configure.in: New file.  Check for TLS support.
5823         * sysdeps/alpha/elf/configure: New file (generated).
5824
5825 2002-06-02  Roland McGrath  <roland@frob.com>
5826
5827         * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
5828
5829 2002-06-01  Roland McGrath  <roland@frob.com>
5830
5831         * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
5832         i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
5833
5834 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
5835
5836         * resolv/resolv.h (struct __res_state): Remove unused nstimes.
5837         Add nsmap.
5838         * resolv/res_init.c (__res_vinit): Initialize nsmap array.
5839         Remove nstimes setting.
5840         (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
5841         * resolv/res_send.c (res_nsend): Don't close unconditionally if
5842         there is mix of IPv6 and IPv4 nameservers.
5843         Use nsmap array to find free slots and preserve nameserver ordering.
5844         Fix RES_ROTATE.
5845
5846 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
5847
5848         * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
5849         use this header with LFS.
5850
5851         * po/sk.po: Update from translation team.
5852
5853 2002-05-28  Andreas Schwab  <schwab@suse.de>
5854
5855         * sysdeps/generic/readelflib.c (process_elf_file): Give correct
5856         message when finding object of wrong class.
5857
5858 2002-05-28  Jakub Jelinek  <jakub@redhat.com>
5859
5860         * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
5861         Patch by <radu@netsoft.ro>.
5862
5863 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
5864
5865         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
5866         Add readahead.
5867         * sysdeps/unix/sysv/linux/readahead.c: New file.
5868         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
5869         * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
5870         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
5871         Add sendfile64 alias to sendfile syscall.
5872         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5873         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
5874         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5875         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
5876         syscall.
5877
5878         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
5879         special section for PIC register loading.
5880         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
5881
5882         * config.h.in: Define HAVE_HIDDEN.
5883         * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
5884
5885         * elf/elf.h: Correct Alpha TLS relocations according to last spec.
5886
5887 2002-05-28  Roland McGrath  <roland@frob.com>
5888
5889         * sysdeps/mach/alpha/setfpucw.c: New file.
5890
5891 2002-05-26  Roland McGrath  <roland@frob.com>
5892
5893         * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
5894         Use integer_t instead of int for IOC_VOID case.
5895
5896 2002-05-27  Alexandre Oliva  <aoliva@redhat.com>
5897
5898         * configure.in (DO_STATIC_NSS): Define if --disable-shared.
5899
5900 2002-05-26  Bruno Haible  <bruno@clisp.org>
5901
5902         * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
5903         end of the ISO-8859-7 from idx table.
5904
5905 2002-05-27  Ulrich Drepper  <drepper@redhat.com>
5906
5907         * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
5908
5909 2002-05-24  David S. Miller  <davem@redhat.com>
5910
5911         * string/bits/string2.h (memset): Do not try to optimize when
5912         not _STRING_ARCH_unaligned if GCC will do the right thing.
5913
5914 2002-05-21  Isamu Hasegawa  <isamu@yamato.ibm.com>
5915
5916         * posix/regex.c: Define `inline' as a macro into nothing for the
5917         compilers which lack the keyword.
5918         * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
5919         for the compatibility of gawk.
5920         * posix/regcomp.c: Add fake implementation of isblank() for the
5921         environments which lack the function.
5922         Don't use free_charset() in case of non-i18n envs.
5923         (build_range_exp): Don't use i18n related code in case of non-i18n
5924         envs.
5925         (build_collating_symbol): Likewise.
5926         (build_equiv_class): Likewise.
5927         (build_charclass): Likewise.
5928         (re_compile_fastmap_iter): Likewise.
5929         (parse_bracket_exp): Likewise.
5930         (build_word_op): Likewise.
5931         (regfree): Don't use free_charset() in case of non-i18n envs.
5932         * posix/regex_internal.h: Remove COMPLEX_BRACKET from
5933         re_token_type_t in case of non-i18n envs.
5934         Don't define re_charset_t in case of non-i18n envs.
5935         Change the type of wcs of re_string_t from wchar_t to wint_t,
5936         since we store also WEOF.
5937         * posix/regex_internal.c: (re_string_realloc_buffers): Change
5938         the type of wcs of re_string_t from wchar_t to wint_t.
5939         (re_string_reconstruct): Likewise.
5940         (create_ci_newstate): Don't use i18n related code in case of
5941         non-i18n envs.
5942         (create_cd_newstate): Likewise.
5943
5944 2002-05-24  Ulrich Drepper  <drepper@redhat.com>
5945
5946         * iconv/loop.c: Fix typo.
5947
5948 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
5949
5950         * inet/ether_line.c (ether_line): Fix a typo causing only
5951         lower 4 bits of each ethernet address byte being assigned.
5952         Don't modify what line points to.
5953         * inet/tst-ether_aton.c (main): Add ether_line tests.
5954
5955 2002-05-23  Marcus Brinkmann  <marcus@gnu.org>
5956
5957         * manual/filesys.texi: Don't make readlink example leak memory
5958         when readlink fails.
5959
5960 2002-05-20  Ulrich Drepper  <drepper@redhat.com>
5961
5962         * iconv/loop.c: Fix condition for defining unaligned loop.  Add
5963         some more security checks.
5964
5965 2002-05-17  David S. Miller  <davem@redhat.com>
5966
5967         * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
5968
5969 2002-05-16  David S. Miller  <davem@redhat.com>
5970
5971         * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
5972         (elf_machine_dynamic): Use it to force PIC register to be loaded.
5973         (elf_machine_load_address): Likewise.
5974         * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
5975
5976         * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
5977         is unaligned, do not forget to fully initialize %g1 magic value.
5978
5979         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
5980         register definitions and provide 32-bit variants of structures
5981         during 64-bit builds.
5982
5983         * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
5984         * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
5985         * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
5986         * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
5987         _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
5988         (_FP_FROM_INT): Perform right shifts on unsigned integer type.
5989         Do not clear implicit one bit here, it must be done post-rounding.
5990         Only pad to the left using left shift if value uses less than the
5991         available fractional bits.
5992
5993 2002-05-20  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5994
5995         * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
5996         instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
5997         (shared-only-routines): Likewise.
5998         * sysdeps/powerpc/libgcc-compat.c: New file.
5999         * sysdeps/wordsize-32/cmpdi2.c: Removed.
6000         * sysdeps/wordsize-32/fixdfdi.c: Removed.
6001         * sysdeps/wordsize-32/fixsfdi.c: Removed.
6002         * sysdeps/wordsize-32/shdi3.c: Removed.
6003
6004 2002-05-16  Bruno Haible  <bruno@clisp.org>
6005
6006         * MakeTAGS (libc.pot): Don't sort the output.
6007         * po/header.pot: Update to match xgettext 0.11 output.
6008
6009 2002-05-16  Bruno Haible  <bruno@clisp.org>
6010
6011         * MakeTAGS (subdirs): Remove duplicates.
6012
6013 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
6014
6015         * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
6016         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
6017         alias.
6018
6019 2002-05-19  Andreas Jaeger  <aj@suse.de>
6020
6021         * sysdeps/unix/sysv/linux/configure.in: Warn against an
6022         installation in /usr/local.
6023
6024 2002-05-16  Bruno Haible  <bruno@clisp.org>
6025
6026         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
6027         string as argument of #error.
6028
6029 2002-05-15  Ulrich Drepper  <drepper@redhat.com>
6030
6031         * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
6032         don't define static.  Remove old __realpath function.  TC1 of
6033         POSIX 2001 will allow the second parameter to be NULL.
6034         * stdlib/test-canon.c: Comment out test for NULL as second
6035         parameter of realpath.
6036
6037         * time/offtime.c (__offtime): Set errno if overflow is detected.
6038
6039         * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
6040         * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
6041         dl-brk and dl-sbrk.
6042
6043         * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
6044         (fdimf): Likewise.
6045
6046 2002-05-15  Roland McGrath  <roland@frob.com>
6047
6048         * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
6049
6050 2002-05-12  Bruno Haible  <bruno@clisp.org>
6051
6052         * iconvdata/testdata/EUC-JISX0213: New file.
6053         * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
6054         * iconvdata/testdata/SHIFT_JISX0213: New file.
6055         * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
6056         * iconvdata/testdata/ISO-2022-JP-3: New file.
6057         * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
6058         * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
6059         * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
6060         contains comments indicating precomposed characters.
6061
6062 2002-04-21  Bruno Haible  <bruno@clisp.org>
6063
6064         * iconvdata/iso-2022-jp-3.c: New file.
6065         * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
6066         * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
6067         (LDFLAGS-ISO-2022-JP-3.so): New variable.
6068         (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
6069         (distribute): Add iso-2022-jp-3.c.
6070
6071 2002-05-12  Bruno Haible  <bruno@clisp.org>
6072
6073         * iconvdata/tst-table-to.c (main): Restore handling of
6074         transliterations, broken by last patch.
6075
6076 2002-05-12  Bruno Haible  <bruno@clisp.org>
6077
6078         * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
6079
6080 2002-05-12  Bruno Haible  <bruno@clisp.org>
6081
6082         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
6083         when there is not enough room in the output buffer.
6084         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
6085
6086 2002-04-20  Bruno Haible  <bruno@clisp.org>
6087
6088         * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
6089         macros.
6090         (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
6091         Also make this macro work if FROM_DIRECTION evaluates to 0.
6092         (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
6093         (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
6094         of consume_incomplete.
6095         * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
6096         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
6097         4, not 8.
6098         * iconvdata/cp1258.c: Likewise.
6099         * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
6100         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
6101         not 2.
6102         * iconvdata/ibm933.c: Likewise.
6103         * iconvdata/ibm935.c: Likewise.
6104         * iconvdata/ibm937.c: Likewise.
6105         * iconvdata/ibm939.c: Likewise.
6106         * iconvdata/iso-2022-cn.c: Define
6107         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6108         {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
6109         * iconvdata/iso-2022-cn-ext.c: Likewise.
6110         * iconvdata/iso-2022-jp.c: Define
6111         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6112         {MIN,MAX}_NEEDED_{FROM,TO}.
6113         * iconvdata/tcvn5712-1.c: Define
6114         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6115         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
6116         * iconvdata/euc-jisx0213.c: Define
6117         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6118         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
6119         * iconvdata/shift_jisx0213.c: Likewise.
6120
6121 2002-05-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6122
6123         * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
6124         shdi3, fixdfdi, fixsfdi in csu dir.
6125         (shared-only-routines): Likewise.
6126         * sysdeps/wordsize-32/cmpdi2.c: New file.
6127         * sysdeps/wordsize-32/shdi3.c: New file.
6128         * sysdeps/wordsize-32/fixdfdi.c: New file.
6129         * sysdeps/wordsize-32/fixsfdi.c: New file.
6130         * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
6131         __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
6132         __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
6133
6134         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
6135         Only use va_arg if the argument will be used [PR libc/3259].
6136
6137 2002-05-06  Michael A. Schmidt  <mmaass@us.ibm.com>
6138
6139         * catgets/catgets.c (catopen): Free buffer if internal catalog
6140         open fails.
6141
6142 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
6143
6144         * debug/xtrace.sh: Make more robust.  For realtime tracking use
6145         non-buffering methods.
6146         * debug/pcprofiledump.c: Implement -u option.
6147         Patch by Roger Luethi <rl@hellgate.ch>.
6148
6149 2002-05-11  Jakub Jelinek  <jakub@redhat.com>
6150
6151         * include/netinet/in.h (bindresvport_internal): Add prototype.
6152         * include/rpc/auth.h  (authunix_create_internal,
6153         authunix_create_default_internal, authnone_create_internal,
6154         authdes_pk_create_internal): Add prototypes.
6155         * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
6156         clntudp_create_internal, clntudp_bufcreate_internal,
6157         clntunix_create_internal): Add prototypes.
6158         * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
6159         svc_getreq_internal, svc_getreq_common_internal,
6160         svc_getreqset_internal, svc_getreq_poll_internal,
6161         svc_register_internal, svc_unregister_internal,
6162         svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
6163         * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
6164         * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
6165         __setsockopt, __getsockname, __bind, __listen): Add prototypes.
6166         * inet/rexec.c (rexec_af): Use __listen and __getsockname.
6167         * inet/rcmd.c (rcmd_af): Use __listen.
6168         (rresvport_af): Use __bind.
6169         * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
6170         authunix_create, authunix_create_default, authnone_create,
6171         authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
6172         clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
6173         svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
6174         svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
6175         _authenticate, add INTDEF after such function definitions.
6176         Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
6177         __setsockopt, __getsockname instead of non-__ variants.
6178         * sunrpc/pmap_rmt.c: Likewise.
6179         * sunrpc/rtime.c: Likewise.
6180         * sunrpc/svc_udp.c: Likewise.
6181         * sunrpc/clnt_unix.c: Likewise.
6182         * sunrpc/svc_unix.c: Likewise.
6183         * sunrpc/bindrsvprt.c: Likewise.
6184         * sunrpc/svc_tcp.c: Likewise.
6185         * sunrpc/auth_none.c: Likewise.
6186         * sunrpc/clnt_raw.c: Likewise.
6187         * sunrpc/clnt_tcp.c: Likewise.
6188         * sunrpc/auth_unix.c: Likewise.
6189         * sunrpc/key_call.c: Likewise.
6190         * sunrpc/clnt_gen.c: Likewise.
6191         * sunrpc/pm_getmaps.c: Likewise.
6192         * sunrpc/clnt_simp.c: Likewise.
6193         * sunrpc/pmap_clnt.c: Likewise.
6194         * sunrpc/svc_run.c: Likewise.
6195         * sunrpc/svc.c: Likewise.
6196         * sunrpc/svc_simple.c: Likewise.
6197         * sunrpc/pm_getport.c: Likewise.
6198         * sunrpc/auth_des.c: Likewise.
6199         * sunrpc/svc_auth.c: Likewise.
6200         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
6201         __register_frame_info_table_bases, __deregister_frame_info_bases):
6202         Add INTDEF.
6203         (__register_frame_info_bases_internal,
6204         __register_frame_info_table_bases_internal,
6205         __deregister_frame_info_bases_internal): Add prototypes.
6206         (__register_frame_info, __register_frame): Use INTUSE in call to
6207         __register_frame_info_bases.
6208         (__register_frame_info_table): Similarly.
6209         (__deregister_frame_info, __deregister_frame): Similarly.
6210         * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
6211         sendto as weak alias.
6212         * sysdeps/mach/hurd/sendto.c: Likewise.
6213         * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
6214         recvfrom as weak alias.
6215         * sysdeps/mach/hurd/recvfrom.c: Likewise.
6216         * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
6217         * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
6218         recvmsg as weak alias.
6219         * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
6220         * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
6221         sendmsg as weak alias.
6222         * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
6223         * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
6224         setsockopt, add setsockopt as weak alias.
6225         * sysdeps/mach/hurd/setsockopt.c: Likewise.
6226         * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
6227         weak alias.
6228         * sysdeps/mach/hurd/bind.c: Likewise.
6229         * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
6230         as weak alias.
6231         * sysdeps/mach/hurd/listen.c: Likewise.
6232         * sysdeps/generic/getsockname.c (__getsockname): Renamed from
6233         getsockname, add getsockname as weak alias.
6234         * sysdeps/mach/hurd/getsockname.c: Likewise.
6235         * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
6236         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
6237         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
6238         * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
6239         __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
6240         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
6241         Add aliases.
6242         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6243         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6244         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6245         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6246         * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
6247         * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
6248         * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
6249         * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
6250         * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
6251         * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
6252         * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
6253         * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
6254
6255 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
6256
6257         * locale/programs/localedef.h (show_archive_content): Add verbose
6258         argument.
6259         * locale/programs/localedef.c (main): Adjust caller.
6260         * locale/programs/locarchive.c (struct nameent, struct dataent): New
6261         types.
6262         (nameentcmp, dataentcmp): New functions.
6263         (xstrcmp): Remove.
6264         (show_archive_content): Print verbose listing with --list-archive -v.
6265
6266 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
6267
6268         * locale/programs/locarchive.c (open_archive): Take extra argument
6269         readonly.  If true open file with O_RDONLY and don't create the
6270         archive if it doesn't exist.
6271         Adapt all callers.
6272         (close_archive): Don't do anything if fd element is -1.
6273         * locale/programs/localedef.h (open_archive): Adjust prototype.
6274         * locale/programs/locfile.c (write_all_categories): Adjust open_archive
6275         call.
6276
6277         * malloc/malloc.c (__posix_memalign): Correct check for size of
6278         alignment value [PR libc/3444].
6279
6280         * include/stdio.h: Remove references to old stdio implementation.
6281
6282         * libio/Makefile (bug-ungetwc2-ENV): Define.
6283
6284 2002-05-13  Roland McGrath  <roland@frob.com>
6285
6286         * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
6287
6288         * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
6289
6290 2002-05-13  Marcus Brinkmann  <marcus@gnu.org>
6291
6292         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
6293         Allocate three, not two, more than LEN when appending '/.'.
6294         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.  Don't check
6295         if NAME ends with '/.' if it is shorter than 2 chars.
6296
6297 2002-05-12  Roland McGrath  <roland@frob.com>
6298
6299         * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
6300         files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
6301
6302         * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
6303         file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
6304
6305 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
6306
6307         * sysdeps/ia64/Makefile: Remove extra endif.
6308         * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
6309
6310 2002-05-10  Andreas Schwab  <schwab@suse.de>
6311
6312         * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
6313
6314 2002-05-09  Andreas Jaeger  <aj@suse.de>
6315
6316         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New file.
6317         * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
6318         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
6319
6320         * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
6321         * sysdeps/wordsize-64/glob.c: ...here.
6322         * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
6323         * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
6324         * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
6325
6326 2002-05-08  Roland McGrath  <roland@frob.com>
6327
6328         * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
6329         O_NOTRANS flag in "." lookup.
6330
6331 2002-05-05  Ulrich Drepper  <drepper@redhat.com>
6332
6333         * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
6334
6335 2002-05-04  Ulrich Drepper  <drepper@redhat.com>
6336
6337         * locale/duplocale.c (__duplocale): Update special members only
6338         when allocation succeeded.
6339
6340 2002-05-03  Roland McGrath  <roland@frob.com>
6341
6342         * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
6343         we can only build libc.so.0.3(GLIBC_2.2.6) now.
6344
6345 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
6346
6347         * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
6348         * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
6349         __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
6350         * sysdeps/ia64/ia64libgcc.S: New file.
6351
6352 2002-05-02  Ulrich Drepper  <drepper@redhat.com>
6353
6354         * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
6355
6356         * malloc/memusage.c: Distinguish anonymous mmap.
6357
6358 2002-05-01  Roland McGrath  <roland@frob.com>
6359
6360         * sysdeps/mach/hurd/close.c: #undef __close before function defn,
6361         and use INTDEF on it.
6362         * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
6363
6364         * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
6365
6366         * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
6367
6368 2002-05-01  Ulrich Drepper  <drepper@redhat.com>
6369
6370         * malloc/memusage.c: Add support for tracking mmap & friends.
6371         * malloc/memusage.sh: Implement -m/--mmap option.
6372
6373 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
6374
6375         * locale/programs/locarchive.c (create_archive): Add archivefname
6376         argument, create fname from it.
6377         (enlarge_archive): Honour output_prefix.
6378         (open_archive): Likewise.
6379
6380 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
6381
6382         * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
6383         too many stpcpy macros.
6384
6385 2002-04-26  Bruno Haible  <bruno@clisp.org>
6386
6387         * locale/programs/ld-collate.c (collate_read): Cast first argument
6388         for "%.*s" to int.
6389
6390 2002-04-26  Bruno Haible  <bruno@clisp.org>
6391
6392         * include/libintl.h (__ngettext, __dngettext, __dcngettext,
6393         __dcngettext_internal): New declarations.
6394         (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
6395         attribute declarations.
6396
6397 2002-04-30  Roland McGrath  <roland@frob.com>
6398
6399         Removed old GNU stdio implementation; GNU libio is now the only option.
6400         * configure.in: Removed --enable-libio option and @stdio@ subst var.
6401         Define USE_IN_LIBIO unconditionally.
6402         * configure: Regenerated.
6403         * Makeconfig (stdio): Set to libio by default.
6404         * config.make.in (stdio): Variable removed.
6405         * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
6406         * sysdeps/unix/sysv/linux/configure: Regenerated.
6407         * sysdeps/mach/hurd/configure.in: Don't test $stdio.
6408         * sysdeps/mach/hurd/configure: Regenerated.
6409         * stdio/.cvsignore: File removed.
6410         * stdio/Makefile: File removed.
6411         * stdio/Versions: File removed.
6412         * stdio/__fbufsize.c: File removed.
6413         * stdio/__flbf.c: File removed.
6414         * stdio/__fpending.c: File removed.
6415         * stdio/__fpurge.c: File removed.
6416         * stdio/__freadable.c: File removed.
6417         * stdio/__freading.c: File removed.
6418         * stdio/__fsetlocking.c: File removed.
6419         * stdio/__fwritable.c: File removed.
6420         * stdio/__fwriting.c: File removed.
6421         * stdio/clearerr.c: File removed.
6422         * stdio/fclose.c: File removed.
6423         * stdio/fcloseall.c: File removed.
6424         * stdio/feof.c: File removed.
6425         * stdio/ferror.c: File removed.
6426         * stdio/fflush.c: File removed.
6427         * stdio/fgetc.c: File removed.
6428         * stdio/fgetpos.c: File removed.
6429         * stdio/fgets.c: File removed.
6430         * stdio/fileno.c: File removed.
6431         * stdio/fmemopen.c: File removed.
6432         * stdio/fopen.c: File removed.
6433         * stdio/fopncook.c: File removed.
6434         * stdio/fputc.c: File removed.
6435         * stdio/fputs.c: File removed.
6436         * stdio/fread.c: File removed.
6437         * stdio/freopen.c: File removed.
6438         * stdio/fseek.c: File removed.
6439         * stdio/fsetpos.c: File removed.
6440         * stdio/ftell.c: File removed.
6441         * stdio/fwrite.c: File removed.
6442         * stdio/getc.c: File removed.
6443         * stdio/getchar.c: File removed.
6444         * stdio/getdelim.c: File removed.
6445         * stdio/gets.c: File removed.
6446         * stdio/glue.c: File removed.
6447         * stdio/internals.c: File removed.
6448         * stdio/linewrap.c: File removed.
6449         * stdio/linewrap.h: File removed.
6450         * stdio/memstream.c: File removed.
6451         * stdio/newstream.c: File removed.
6452         * stdio/obstream.c: File removed.
6453         * stdio/putc.c: File removed.
6454         * stdio/putchar.c: File removed.
6455         * stdio/puts.c: File removed.
6456         * stdio/rewind.c: File removed.
6457         * stdio/setbuf.c: File removed.
6458         * stdio/setbuffer.c: File removed.
6459         * stdio/setlinebuf.c: File removed.
6460         * stdio/setvbuf.c: File removed.
6461         * stdio/stdio.h: File removed.
6462         * stdio/ungetc.c: File removed.
6463         * stdio/vasprintf.c: File removed.
6464         * stdio/vscanf.c: File removed.
6465         * stdio/vsnprintf.c: File removed.
6466         * stdio/vsprintf.c: File removed.
6467         * stdio/vsscanf.c: File removed.
6468         * sysdeps/generic/defs.c: File removed.
6469         * sysdeps/generic/fdopen.c: File removed.
6470         * sysdeps/generic/pipestream.c: File removed.
6471         * sysdeps/generic/stdio_init.c: File removed.
6472         * sysdeps/generic/sysd-stdio.c: File removed.
6473         * sysdeps/generic/vdprintf.c: File removed.
6474         * sysdeps/mach/hurd/defs.c: File removed.
6475         * sysdeps/mach/hurd/fdopen.c: File removed.
6476         * sysdeps/mach/hurd/pipestream.c: File removed.
6477         * sysdeps/mach/hurd/stdio_init.c: File removed.
6478         * sysdeps/mach/hurd/sysd-stdio.c: File removed.
6479         * sysdeps/mach/hurd/vdprintf.c: File removed.
6480         * sysdeps/posix/defs.c: File removed.
6481         * sysdeps/posix/fdopen.c: File removed.
6482         * sysdeps/posix/pipestream.c: File removed.
6483         * sysdeps/posix/stdio_init.c: File removed.
6484         * sysdeps/posix/vdprintf.c: File removed.
6485         * sysdeps/unix/pipestream.c: File removed.
6486         * sysdeps/unix/sysv/sysd-stdio.c: File removed.
6487         * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
6488         * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
6489
6490 2002-04-29  Roland McGrath  <roland@frob.com>
6491
6492         * include/libc-symbols.h (link_warning): Use `unused' attribute.
6493
6494 2002-04-28  Ulrich Drepper  <drepper@redhat.com>
6495
6496         * sysdeps/generic/tls.h: Describe what must be defined.
6497
6498         * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
6499         glob_in_dir [PR libc/3385].
6500         * posix/globtest.sh: Add test case.
6501
6502         * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
6503         //TRANSLIT twice.
6504
6505 2002-04-27  Ulrich Drepper  <drepper@redhat.com>
6506
6507         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
6508         _internal symbol handling.
6509         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6510
6511 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
6512
6513         * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
6514         * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
6515
6516 2002-04-26  Isamu Hasegawa  <isamu@yamato.ibm.com>
6517
6518         * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
6519         not _LIBC and RE_ENABLE_I18N.
6520         (build_range_exp): Implement for not _LIBC.
6521         (build_collating_symbol): Likewise.
6522         (parse_bracket_exp): Unify redundant error handlings.
6523         Don't erase mbcset for non matching list in multibyte envs.
6524         (build_word_op): Add '_' to matching list for \w operator.
6525         * posix/regex_internal.c (re_string_construct): Invoke
6526         build_upper_buffer in case of not RE_ENABLE_I18N.
6527         (re_string_reconstruct): Don't touch cur_state in case of not
6528         RE_ENABLE_I18N.
6529         * posix/regex_internal.h (attribute_hidden): New macro in case of
6530         not _LIBC.
6531         (re_charset_t): Define range_starts/ends in case of not _LIBC.
6532         * posix/regexec.c (sift_states_iter_mb): Hide in case of not
6533         RE_ENABLE_I18N.
6534         (transit_state_mb): Likewise.
6535         (check_node_accept_bytes): Implement the code evaluating range
6536         expression in case of not _LIBC.
6537         (find_collation_sequence_value): Hide in case of not _LIBC.
6538
6539 2002-04-26  Jakub Jelinek  <jakub@redhat.com>
6540
6541         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
6542         i386/semctl.c.
6543         (__old_semctl, __new_semctl): Only use va_arg if the argument will
6544         be used.
6545
6546 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
6547
6548         * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
6549
6550         * sysdeps/ia64/strncpy.S: Fix recovery code.
6551         Patch by David Mosberger <davidm@hpl.hp.com>.
6552
6553 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6554
6555         * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
6556         GLIBC_2.2.6.
6557
6558 2002-04-14  Bruno Haible  <bruno@clisp.org>
6559
6560         * posix/regex.c (re_max_failures): Add back symbol for binary
6561         compatibility.
6562
6563 2002-04-22  Isamu Hasegawa  <isamu@yamato.ibm.com>
6564
6565         * posix/regcomp.c (re_compile_internal): Adapt it to new interface
6566         of buffer building functions.
6567         * posix/regex_internal.c (re_string_allocate): New function.
6568         (re_string_realloc_buffers): New function.
6569         (re_string_skip_chars): New function.
6570         (re_string_reconstruct): New function.
6571         (re_string_construct): Adapt it to new interface of buffer building
6572         functions.
6573         (re_string_construct_common): Likewise.
6574         (build_wcs_buffer): Likewise.
6575         (build_wcs_upper_buffer): Likewise.
6576         (build_upper_buffer): Likewise.
6577         (re_string_translate_buffer): Likewise.
6578         (re_string_context_at): Adapt it to variable length buffers.
6579         * posix/regex_internal.h (re_string_t): Add new fields to handle
6580         variable length buffers.
6581         (re_match_context_t): Likewise.
6582         * posix/regexec.c (re_search_internal): Adapt it to new interface
6583         of re_string_t and re_match_context_t.
6584         (acquire_init_state_context): Likewise.
6585         (check_matching): Likewise.
6586         (check_halt_state_context): Likewise.
6587         (proceed_next_node): Likewise.
6588         (set_regs): Likewise.
6589         (sift_states_backward): Likewise.
6590         (clean_state_log_if_need): Likewise.
6591         (sift_states_iter_mb): Likewise.
6592         (sift_states_iter_bkref): Likewise.
6593         (add_epsilon_backreference): Likewise.
6594         (transit_state): Likewise.
6595         (transit_state_sb): Likewise.
6596         (transit_state_mb): Likewise.
6597         (transit_state_bkref): Likewise.
6598         (transit_state_bkref_loop): Likewise.
6599         (check_node_accept): Likewise.
6600         (match_ctx_init): Likewise.
6601         (extend_buffers): New function.
6602
6603 2002-04-21  Bruno Haible  <bruno@clisp.org>
6604
6605         * iconvdata/tst-table.sh: For the second check, use the truncated
6606         GB18030 charmap table, like for the first check.
6607
6608 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6609
6610         * elf/dl-load.c (open_verify): Correct __lseek parameters.
6611         Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
6612
6613 2002-04-23  H.J. Lu  <hjl@gnu.org>
6614
6615         * include/math.h (isfinite): Fix a typo.
6616
6617 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6618
6619         * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
6620         which is created by the test suite.
6621
6622 2002-04-20  Bruno Haible  <bruno@clisp.org>
6623
6624         * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
6625         (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
6626
6627 2002-04-20  Bruno Haible  <bruno@clisp.org>
6628
6629         * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
6630         to avoid gcc warning.
6631
6632 2002-04-20  Bruno Haible  <bruno@clisp.org>
6633
6634         * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
6635         of data->__statep->__count.
6636
6637 2002-04-20  Bruno Haible  <bruno@clisp.org>
6638
6639         * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
6640         tag characters.
6641         * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
6642
6643 2002-04-24  Roland McGrath  <roland@frob.com>
6644
6645         * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
6646         use END macro instead of our own .end directive.
6647         Use `callsys' insn mnemonic instead of `call_pal'.
6648
6649         * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
6650
6651         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
6652         macro; we need this for Hurd.
6653
6654         Log entry was missing for 2002/03/24 commit of rev 1.8,
6655         goes with 2002-03-17 changes.
6656         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
6657         (sysdep_routines): Append ioperm here.
6658         (sysdep_headers): Append sys/io.h here.
6659
6660 2002-04-23  Roland McGrath  <roland@frob.com>
6661
6662         * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
6663         * sysdeps/mach/hurd/sendto.c: Likewise.
6664         * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
6665         * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
6666         * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
6667
6668 2002-04-22  Roland McGrath  <roland@frob.com>
6669
6670         * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
6671         failure from i386_io_perm_* RPCs to ENOSYS.
6672
6673 2002-04-22  Andreas Jaeger  <aj@suse.de>
6674
6675         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
6676
6677         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
6678
6679         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
6680         register instead of destroying %rbx.
6681
6682 2002-04-21  Ulrich Drepper  <drepper@redhat.com>
6683
6684         * string/string.h: Declare strerror_r also for XPG6.
6685
6686 2002-04-19  Roland McGrath  <roland@frob.com>
6687
6688         * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
6689
6690 2002-04-20  Ulrich Drepper  <drepper@redhat.com>
6691
6692         * Makefile: Add handling of xtests and xcheck targets.
6693         * MakeTAGS: Likewise.
6694         * Makeconfig: Likewise.
6695         * Makerules: Likewise.
6696         * Rules: Likewise.
6697         * manual/Makefile: Likewise.
6698         * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
6699         * sunrpc/thrsvc.c: New file.  By Zack Weinberg.
6700
6701 2002-04-11  Zack Weinberg  <zack@codesourcery.com>
6702
6703         * include/rpc/rpc.h (struct rpc_thread_variables): Remove
6704         authnone_private_s.
6705         * sunrpc/auth_none.c: Include bits/libc-lock.h.
6706         Delete #ifdef _RPC_THREAD_SAFE_ block.
6707         (authnone_private): Make a struct, not a pointer to struct.
6708         (authnone_private_guard): New once-control variable.
6709         (authnone_create_once): New function, split out of
6710         authnone_create.  No need to allocate memory.
6711         (authnone_create): Just call authnone_create_once via
6712         __libc_once, then return &authnone_private->no_client.
6713         (authnone_marshal): Access private data via CLIENT argument,
6714         not authnone_private pointer.
6715         Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
6716         * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
6717         authnone_private_s.
6718
6719 2002-04-12  H.J. Lu  <hjl@gnu.org>
6720
6721         * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
6722
6723 2002-04-18  Bruno Haible  <bruno@clisp.org>
6724
6725         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
6726         FROM_DIRECTION): Make the FROM direction stateless.
6727         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
6728         FROM_DIRECTION): Likewise.
6729
6730 2002-04-15  Bruno Haible  <bruno@clisp.org>
6731
6732         * iconvdata/JISX0213.TXT: New file.
6733         * iconvdata/jisx0213.h: New file.
6734         * iconvdata/jisx0213.c: New file.
6735         * iconvdata/euc-jisx0213.c: New file.
6736         * iconvdata/shift_jisx0213.c: New file.
6737         * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
6738         * iconvdata/EUC-JISX0213.precomposed: New file.
6739         * iconvdata/SHIFT_JISX0213.precomposed: New file.
6740         * iconvdata/SHIFT_JISX0213.irreversible: New file.
6741         * iconvdata/tst-table-to.c (main): Make it work for encodings for
6742         which the "to" direction is stateful.
6743         * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
6744         * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
6745         SHIFT_JISX0213.
6746         (libJISX0213-routines): New variable.
6747         (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
6748         (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
6749         (LDFLAGS-libJISX0213.so): New variable.
6750         (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
6751         SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
6752         jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
6753
6754 2002-04-15  Bruno Haible  <bruno@clisp.org>
6755
6756         * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
6757         uint32_t.  Update to Unicode 3.2.
6758         (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
6759         (BODY for TO_LOOP): Handle the ASCII range specially.
6760         * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
6761         * iconvdata/testdata/BIG5HKSCS: Remove a character.
6762         * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
6763
6764 2002-04-15  Bruno Haible  <bruno@clisp.org>
6765
6766         * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
6767         __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
6768
6769 2002-04-15  Bruno Haible  <bruno@clisp.org>
6770
6771         * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
6772         (ucs4_to_cns11643): Update.
6773         * iconvdata/cns11643.c: Update to Unicode 3.2.
6774         (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
6775         __cns11643_from_ucs4p2_tab): Regenerated.
6776         (__cns11643_from_ucs4p2c_tab): New array.
6777         * iconvdata/cvs11643l1.c: Update comments.
6778         * iconvdata/EUC-TW.irreversible: Remove two entries.
6779
6780 2002-04-15  Bruno Haible  <bruno@clisp.org>
6781
6782         * locale/C-translit.h.in: Update to Unicode 3.2.
6783         Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
6784         <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
6785
6786 2002-04-15  Bruno Haible  <bruno@clisp.org>
6787
6788         * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
6789         (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
6790
6791 2002-04-15  Bruno Haible  <bruno@clisp.org>
6792
6793         * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
6794         invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
6795         always one byte, not 0 bytes in some cases and 2 bytes in others.
6796
6797         * iconvdata/tst-table-from.c (main): Correct the usage message.
6798
6799 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
6800
6801         * posix/regcomp.c (parse_expression): Fix incorrect error code.
6802         (parse_dup_op): Fix error handling like "a{}".
6803         (parse_bracket_exp): Add error handling.
6804         (fetch_number): Add error handling for "a{<very_large_number>}".
6805
6806 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
6807
6808         * posix/regcomp.c (parse_bracket_symbol): Add error handling
6809         in case that the symbol name is too long.
6810         (build_charclass): Handle [:lower:]/[:uppper:] correctly
6811         in case of REG_ICASE.
6812
6813 2002-04-19  Andreas Jaeger  <aj@suse.de>
6814
6815         * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
6816         <hartvige@mips.com>.
6817
6818 2002-04-15  H.J. Lu  <hjl@gnu.org>
6819
6820         * include/math.h (__finitel_internal): Declare only if
6821         __NO_LONG_DOUBLE_MATH is not defined.
6822         (__isinfl_internal): Likewise.
6823         (__isnanl_internal): Likewise.
6824
6825         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
6826         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6827         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6828         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
6829         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6830         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6831         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6832
6833         * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
6834         __fcntl_internal.
6835
6836         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
6837         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
6838
6839 2002-04-15  Bruno Haible  <bruno@clisp.org>
6840
6841         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
6842         (BODY for TO_LOOP): Likewise.
6843         * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
6844         * iconvdata/tst-table.sh: Add support for encodings which contain
6845         precomposed Unicode characters, known to the iconv converter in both
6846         directions but not listed in the charmap.
6847         * iconvdata/IBM856.irreversible: New file.
6848         * iconvdata/IBM922.irreversible: New file.
6849         * iconvdata/IBM1132.irreversible: New file.
6850         * iconvdata/IBM1133.irreversible: New file.
6851         * iconvdata/IBM1160.irreversible: New file.
6852         * iconvdata/IBM1161.irreversible: New file.
6853         * iconvdata/IBM1163.irreversible: New file.
6854         * iconvdata/IBM1164.irreversible: New file.
6855         * iconvdata/ARMSCII-8.irreversible: New file.
6856         * iconvdata/TCVN5712-1.precomposed: New file.
6857         * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
6858         IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
6859         ARMSCII-8, TCVN5712-1.
6860         * iconvdata/Makefile (distribute): Add IBM856.irreversible,
6861         IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
6862         IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
6863         IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
6864
6865 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
6866
6867         * time/tst-mktime.c: Include <stdlib.h>.  Use %d, not %ld format
6868         for EVENING69.  Include offsets in TZ environment variable.
6869
6870 2002-04-18  Ulrich Drepper  <drepper@redhat.com>
6871
6872         * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
6873         avoid compiler warnings.
6874
6875         * locale/programs/localedef.c (main): Always call
6876         construct_output_path.
6877
6878         * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
6879
6880         * locale/programs/locfile.c (to_archive): New variable.  To collect
6881         data which has to be added to the locale archive.
6882         (write_all_categories): Take new third parameter with locale name.
6883         Unless no_archive flag set add new locale data to the archive
6884         (write_locale_data): Unless no-archive flag set store generated data
6885         in to_archive data structure instead of generation output file.
6886         Add new parameter with locale category index.
6887         * locale/programs/locfile.h: Add new parameters in declaractions of
6888         write_all_categories and write_locale_data.
6889         * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
6890         --add-to-archive, and --delete-from-archive options.  Pass extra
6891         parameter to write_all_categories.
6892         * locale/programs/localedef.h: Add prototypes for functions in
6893         locarchive.c.
6894         * locale/locarchive.h: New file.
6895         * locale/programs/locarchive.c: New file.
6896         * locale/Makefile (distribute): Add programs/locarchive.c and
6897         locarchive.h.
6898         (localedef-modules): Add md5 and locarchive.
6899         Add vpath to crypt subdir for md5.c.
6900
6901         * locale/programs/ld-address.c: Pass locale category ID as new second
6902         parameter to write_locale_data.
6903         * locale/programs/ld-collate.c: Likewise.
6904         * locale/programs/ld-ctype.c: Likewise.
6905         * locale/programs/ld-identification.c: Likewise.
6906         * locale/programs/ld-measurement.c: Likewise.
6907         * locale/programs/ld-messages.c: Likewise.
6908         * locale/programs/ld-monetary.c: Likewise.
6909         * locale/programs/ld-name.c: Likewise.
6910         * locale/programs/ld-numeric.c: Likewise.
6911         * locale/programs/ld-paper.c: Likewise.
6912         * locale/programs/ld-telephone.c: Likewise.
6913         * locale/programs/ld-time.c: Likewise.
6914
6915         * locale/simple-hash.c: Move compute_hashval function from here...
6916         * locale/hashval.h: ...to here.  New file.
6917         * locale/simple-hash.h: Add prototype for compute_hashval.
6918
6919         * include/libintl.h: Minor cleanups.
6920
6921 2002-04-16  Ulrich Drepper  <drepper@redhat.com>
6922
6923         * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
6924
6925 2002-04-15  Ulrich Drepper  <drepper@redhat.com>
6926
6927         * include/sys/stat.h: Fix typo.  Patch by HJ Lu.
6928
6929 2002-04-14  Bruno Haible  <bruno@clisp.org>
6930
6931         * locale/programs/charmap.c (charmap_read): Don't access result if
6932         result == NULL.
6933
6934 2002-02-17  Andreas Schwab  <schwab@suse.de>
6935
6936         * elf/reldep7.c: New file.
6937         * elf/reldep7mod1.c: New file.
6938         * elf/reldep7mod2.c: New file.
6939         * elf/Makefile: Add rules to build and run reldep7.
6940
6941 2002-04-14  Jakub Jelinek  <jakub@redhat.com>
6942
6943         * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
6944         the end of the function.  Pass original flags to recursive call if
6945         add_dependency failed.
6946         (_dl_lookup_versioned_symbol): Likewise.
6947
6948 2002-04-13  Jakub Jelinek  <jakub@redhat.com>
6949
6950         * time/mktime.c (__mktime_internal): If year is 69, don't bail out
6951         early, but check whether it overflowed afterwards.
6952         * time/tst-mktime.c (main): Add new tests.
6953
6954 2002-04-14  Ulrich Drepper  <drepper@redhat.com>
6955
6956         * debug/xtrace.sh: Fix program name in help message.
6957         Patch by Roger Luethi <rl@hellgate.ch>.
6958
6959         * include/sys/stat.h: Add prototypes for __lxstat_internal and
6960         __lxstat64_internal.  Add macros __lxstat and __lxstat64 if not
6961         NOT_IN_libc.
6962         * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
6963         * sysdeps/mach/hurd/lxstat.c: Likewise.
6964         * sysdeps/unix/common/lxstat.c: Likewise.
6965         * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
6966         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
6967         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
6968         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6969         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
6970         * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
6971         * sysdeps/mach/hurd/lxstat64.c: Likewise.
6972         * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
6973         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
6974
6975         * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
6976         prototypes.  Add __mbrlen and __mbrtowc macros.
6977         * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
6978         * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
6979
6980         * include/unistd.h: Add prototype for __write_internal and add
6981         __libc_write macro is SHARED.
6982         * sysdeps/generic/write.c: Use INTDEF for __write.
6983         * sysdeps/mach/hurd/write.c: Likewise.
6984         * sysdeps/unix/sysv/aix/write.c: Likewise.
6985         * sysdeps/unix/syscalls.list: Add __libc_write alias.
6986
6987         * assert/assert.c: Replace STR_N_SIZE with something usable in
6988         macro arguments.
6989         * assert/assert-perr.c: Likewise.
6990
6991         * include/sys/socket.h: Declare __libc_sa_len_internal and define
6992         SA_LEN macro to use it if not NOT_IN_libc.
6993         * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
6994
6995         * include/fcntl.h: Declare __open_internal and define __open and
6996         __libc_open macros if not NOT_IN_libc.
6997         * sysdeps/generic/open.c: Use INTDEF for __open.
6998         * sysdeps/mach/hurd/open.c: Likewise.
6999         * sysdeps/unix/sysv/aix/open.c: Likewise.
7000         * sysdeps/unix/syscalls.list: Add __open_internal alias.
7001
7002         * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
7003         has correct number.
7004
7005         * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
7006         * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
7007         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
7008         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
7009
7010         * include/wctype.h: Declare __iswalpha_l_internal,
7011         __iswdigit_l_internal, __iswspace_l_internal,
7012         __iswxdigit_l_internal, and __iswctype_internal.  Define
7013         __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
7014         __iswxdigit_l macros if not NOT_IN_libc.
7015         * wctype/iswctype.c: Use INTDEF for __iswctype.
7016         * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
7017
7018         * include/math.h: Declare __isinf_internal, __isinfl_internal,
7019         __isnan_internal, and __isnanl_internal.
7020         * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
7021         __isnan, and __isnanl.
7022         * stdio-common/printf_size.c: Likewise.
7023         * sysdeps/generic/printf_fphex.c: Likewise.
7024         * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
7025         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
7026         * sysdeps/ia64/fpu/s_isinf.S: Likewise.
7027         * sysdeps/ia64/fpu/s_isnan.S: Likewise.
7028         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
7029         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
7030         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
7031         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
7032         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
7033         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
7034         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
7035         * sysdeps/m68k/s_isinfl.c: Likewise.
7036         * sysdeps/m68k/fpu/s_isinf.c: Likewise.
7037         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
7038
7039         * include/sys/time.h: Declare __gettimeofday_internal and define
7040         __gettimeofday macro if not NOT_IN_libc.
7041         * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
7042         * sysdeps/mach/gettimeofday.c: Likewise.
7043         * sysdeps/posix/gettimeofday.c: Likewise.
7044         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
7045         * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
7046         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
7047         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
7048
7049         * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
7050         and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
7051         Remove __lstat and __fstat inline functions.
7052         * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
7053         * sysdeps/mach/hurd/fxstat.c: Likewise.
7054         * sysdeps/unix/fxstat.c: Likewise.
7055         * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
7056         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
7057         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
7058         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
7059         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
7060         * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
7061         * sysdeps/mach/hurd/fxstat64.c: Likewise.
7062         * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
7063         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
7064
7065         * include/unistd.h: Declare __getpid_internal and define
7066         __getpid macro if not NOT_IN_libc.
7067         * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
7068         * sysdeps/generic/getpid.c: Likewise.
7069         * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
7070         * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
7071
7072         * include/unistd.h: Declare __getpgid_internal and define
7073         __getpgid macro if not NOT_IN_libc.
7074         * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
7075         * sysdeps/mach/hurd/getpgid.c: Likewise.
7076         * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
7077         * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
7078         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
7079         * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
7080
7081         * include/unistd.h: Declare __getpagesize_internal and define
7082         __getpagesize macro if not NOT_IN_libc.
7083         * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
7084         __getpagesize.
7085         * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
7086         * sysdeps/mach/getpagesize.c: Likewise.
7087         * sysdeps/posix/getpagesize.c: Likewise.
7088         * sysdeps/unix/getpagesize.c: Likewise.
7089         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
7090         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
7091         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
7092         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
7093
7094 2002-04-13  Andreas Jaeger  <aj@suse.de>
7095
7096         * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
7097         as clobber to reduce register pressure.
7098         (__strpbrk_cg): Likewise.
7099         (__mempcpy_by4): Likewise.
7100         (__strstr_cg): Likewise.
7101         Add prototype for __memrchr.
7102
7103 2002-04-13  Andreas Schwab  <schwab@suse.de>
7104
7105         * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
7106         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
7107         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
7108
7109 2002-04-13  Ulrich Drepper  <drepper@redhat.com>
7110
7111         * elf/do-lookup.h [!VERSIONED]: Add new parameter flags.  Use it to
7112         check whether the caller prefers getting the most recent version of
7113         a symbol of the earliest version.
7114         * elf/dl-lookup.c: Adjust all callers of do_lookup.  Change
7115         _dl_do_lookup to also take the new parameter and pass it on.
7116         Change 'explicit' parameter of _dl_lookup_symbol and
7117         _dl_lookup_versioned_symbol to flags.  Adjust tests.
7118         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
7119         * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
7120         _dl_lookup_versioned_symbol.
7121         * elf/dl-reloc.c: Likewise.
7122         * elf/dl-runtime.c: Likewise.
7123         * elf/dl-sym.c: Likewise.
7124         * sysdeps/mips/dl-machine.h: Likewise.
7125
7126 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
7127
7128         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
7129         in a token.
7130         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
7131
7132 2002-04-10  Andreas Jaeger  <aj@suse.de>
7133
7134         * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
7135
7136         * include/argz.h: Remove extra char from last patch.
7137
7138 2002-04-09  Ulrich Drepper  <drepper@redhat.com>
7139
7140         * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
7141         * sysdeps/unix/sysv/aix/chown.c: Likewise.
7142         * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
7143         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
7144         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
7145         * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
7146         __chown_internal.
7147         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
7148
7149         * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
7150         * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
7151         * intl/ngettext.c: Likewise.
7152
7153         * include/sys/socket.h: Declare __connect_internal and define
7154         __connect macro if not NOT_IN_libc.
7155         * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
7156         * sysdeps/unix/sysv/aix/connect.c: Likewise.
7157         * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
7158
7159         * include/unistd.h: Declare __close_internal and define __close macro
7160         if not NOT_IN_libc.
7161         * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
7162         WJUMP3): Add extra parenthesis to avoid expanding element names with
7163         macors like __close.
7164         * sysdeps/unix/syscalls.list: Add __close_internal alias.
7165
7166         * include/unistd.h: Declare __dup2_internal and define __dup2 macro
7167         if not NOT_IN_libc.
7168         * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
7169         * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
7170         * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
7171
7172         * include/unistd.h: Declare __fork_internal and define __fork macro
7173         if not NOT_IN_libc.
7174         * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
7175         * sysdeps/unix/sysv/aix/fork.c: Likewise.
7176         * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
7177
7178         * include/stdio_ext.h: Declare __fsetlocking_internal and define
7179         __fsetlocking macro to use it if not NOT_IN_libc.
7180         * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
7181
7182         * libio/__fbufsize.c: Correct copyright.
7183         * libio/__flbf.c: Likewise.
7184         * libio/__fpending.c: Likewise.
7185         * libio/__fpurge.c: Likewise.
7186         * libio/__freadable.c: Likewise.
7187         * libio/__freading.c: Likewise.
7188         * libio/__fsetlocking.c: Likewise.
7189         * libio/__fwritable.c: Likewise.
7190         * libio/__fwriting.c: Likewise.
7191
7192         * include/stdio.h: Declare __asprintf_internal and define __asprintf
7193         macro to use it if not NOT_IN_libc.
7194         * stdio-common/asprintf.c: Use INTDEF for __asprintf.
7195
7196         * include/mntent.h: Declare __setmntent_internal,
7197         __getmntent_r_internal, __endmntent_internal.  Define __setmntent,
7198         __getmntent_r, and __endmntent macros to use these functions if not
7199         NOT_IN_libc.
7200         * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
7201         __endmntent.
7202
7203         * include/math.h: Declare __finite_internal, __finitef_internal, and
7204         __finitel_internal.  Redefine isfinite macro if in libc or libm using
7205         these functions.
7206         * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
7207         * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
7208         * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
7209         * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
7210         * sysdeps/i386/fpu/s_finitef.S: Likewise.
7211         * sysdeps/i386/fpu/s_finitel.S: Likewise.
7212         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
7213         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
7214         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
7215         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
7216
7217         * include/fcntl.h: Declare __fcntl_internal.  Define __fcntl macro
7218         to use this function if not NOT_IN_libc.
7219         * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
7220         * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
7221         * sysdeps/mach/hurd/fcntl.c: Likewise.
7222         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
7223         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
7224
7225         * include/argz.h: Declare __argz_count_internal and
7226         __argz_stringify_internal.
7227         * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
7228         __argz_stringify.
7229         * string/argz-count.c: Use INTDEF for __argz_count.
7230         * string/argz-stringify.c: Use INTDEF for __argz_stringify.
7231
7232         * include/stdlib.h: Declare __cxa_atexit_internal and define
7233         __cxa_atexit macro if not NOT_IN_libc.
7234         * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
7235         * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
7236
7237         * assert/assert.c: Use INTDEF for __assert_fail.
7238         * assert/__assert.c: Use INTUSE for call to __assert_fail.
7239         * include/assert.h: Declare __assert_fail_internal.
7240
7241         * extra-lib.mk: Mark assignment to lib with override.
7242
7243 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7244
7245         * Makerules: Use cppflags-iterator.mk to add defines for all test
7246         source files.
7247
7248 2002-04-08  kaz Kojima  <kkojima@rr.iij4u.or.jp>
7249
7250         * elf/elf.h: Define R_SH_TLS_xxx macros.
7251         * elf/rtld.c: Remove an extra parenthesis.
7252         * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
7253         TLS_GD macros.
7254         * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
7255         * sysdeps/sh/dl-lookupcfg.h: New file.
7256         * sysdeps/sh/dl-tls.h: New file.
7257         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
7258         ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
7259         (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
7260         R_SH_TLS_TPOFF32 relocations.
7261
7262 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7263
7264         * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
7265         of NOT_IN_LIBC.
7266         * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
7267         * include/stdlib.h: Likewise.
7268
7269 2002-04-08  Jakub Jelinek  <jakub@redhat.com>
7270
7271         * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
7272         instead of _RTLD_LOCAL.
7273         * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
7274         * include/unistd.h: Likewise.
7275         * sysdeps/generic/ldsodefs.h: Likewise.
7276
7277         * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
7278         if in libc or ld.so.
7279
7280 2002-04-08  Andreas Jaeger  <aj@suse.de>
7281
7282         * elf/cache.c (print_entry): Support x86-64.
7283
7284 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7285
7286         * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
7287         with one accessing the locale data structures directly.
7288         * stdio-common/printf-prs.c: Include localeinfo.h for new
7289         MB_CUR_MAX definition.
7290
7291         * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
7292         is the name of the source file without extension.
7293         * Makefile (distribute): Add cppflags-iterator.mk.
7294         * cppflags-iterator.mk: New file.
7295         * extra-lib.mk: For the sources of the library run
7296         cppflags-iterator.mk.
7297
7298         * include/libintl.h: Declare __dcgettext_internal and
7299         _libc_intl_domainname_internal.  Define __dcgettext using these
7300         two symbols if used in libc itself.
7301         * argp/argp-help.c: Define dgettext using __dcgettext_internal and
7302         _libc_intl_domainname_internal.
7303         * argp/argp-parse.c: Likewise.
7304         * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
7305         * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
7306         * intl/gettext.c: Likewise.
7307         * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
7308         alias.
7309         * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
7310         __dcgettext.
7311         * posix/regex_internal.c (gettext): Likewise.
7312
7313 2002-04-08  Andreas Jaeger  <aj@suse.de>
7314
7315         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
7316
7317         * sysdeps/x86_64/fpu/s_llrint.S: New file.
7318         * sysdeps/x86_64/fpu/s_llrintf.S: New file.
7319         * sysdeps/x86_64/fpu/s_llrintl.S: New file.
7320         * sysdeps/x86_64/fpu/s_lrint.S: New file.
7321         * sysdeps/x86_64/fpu/s_lrintf.S: New file.
7322         * sysdeps/x86_64/fpu/s_lrintl.S: New file.
7323
7324 2002-04-08  Roland McGrath  <roland@frob.com>
7325
7326         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
7327         widening __hurd_fail value.
7328
7329 2002-04-07  Roland McGrath  <roland@frob.com>
7330
7331         * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
7332         <mach/machine/alpha_instruction.h>.
7333         (_hurd_setup_sighandler): Take proper arguments for current decls.
7334         Update code to use _hurdsig_catch_fault.
7335         Use `callsys' instruction instead of `call_pal'.
7336         * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
7337
7338         * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
7339         (ALIGN, at, AT, fp): New macros.
7340
7341 2002-04-06  Roland McGrath  <roland@frob.com>
7342
7343         * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
7344
7345         * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
7346         (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
7347
7348         * sysdeps/mach/hurd/bind.c: Use prototype definition.
7349         * sysdeps/mach/hurd/connect.c: Likewise.
7350         * sysdeps/mach/hurd/getsockopt.c: Likewise.
7351         * sysdeps/mach/hurd/setsockopt.c: Likewise.
7352
7353         * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
7354         __msg_sig_post RPC.
7355
7356         * hurd/catch-exc.c: Use integer_t instead of int.
7357         * hurd/hurdfault.c: Likewise.
7358
7359         * sysdeps/mach/hurd/alpha/exc2signal.c
7360         (_hurd_exception2signal): Rewritten.
7361         * sysdeps/mach/hurd/alpha/longjmp-ts.c
7362         (_hurd_longjmp_thread_state): Rewritten.
7363
7364 2002-04-07  Ulrich Drepper  <drepper@redhat.com>
7365
7366         * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
7367         DB_LOOKUP_FCT prototype.
7368         * nss/getXXent_r.c: Likewise.
7369         * inet/getaliasent_r.c: Define NSS_attribute_hidden.
7370         * inet/getaliasname_r.c: Likewise.
7371         * inet/getnetbyad_r.c: Likewise.
7372         * inet/getnetbynm_r.c: Likewise.
7373         * inet/getnetent_r.c: Likewise.
7374         * inet/getproto_r.c: Likewise.
7375         * inet/getprtent_r.c: Likewise.
7376         * inet/getprtname_r.c: Likewise.
7377         * inet/getrpcbyname_r.c: Likewise.
7378         * inet/getrpcbynumber_r.c: Likewise.
7379         * inet/getrpcent_r.c: Likewise.
7380         * inet/getservent_r.c: Likewise.
7381         * inet/getsrvbynm_r.c: Likewise.
7382         * inet/getsrvbypt_r.c: Likewise.
7383         * shadow/getspent_r.c: Likewise.
7384         * shadow/getspnam_r.c: Likewise.
7385
7386         * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
7387
7388         * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
7389         Use i686-friendly PIC code.
7390         * sysdeps/i386/elf/setjmp.S: Likewise.
7391
7392         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
7393
7394         * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
7395         list.
7396         * elf/Versions: Remove it here.
7397
7398 2002-04-06  Ulrich Drepper  <drepper@redhat.com>
7399
7400         * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
7401         direction.  Reported by H . J . Lu <hjl@lucon.org>.
7402
7403 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
7404
7405         * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
7406         test just before the test runs.
7407         * intl/tst-translit.sh: Likewise.
7408         * intl/tst-codeset.sh: Likewise.
7409
7410         * timezone/zic.c: Update from tzcode2002c.
7411         * timezone/asia: Update from tzdata2002c.
7412         * timezone/backward: Likewise.
7413         * timezone/europe: Likewise.
7414         * timezone/northamerica: Likewise.
7415         * timezone/northamerica: Likewise.
7416         * timezone/northamerica: Likewise.
7417         * timezone/southamerica: Likewise.
7418         * timezone/zone.tab: Likewise.
7419
7420 2002-03-23  Jakub Jelinek  <jakub@redhat.com>
7421
7422         * sysdeps/generic/brk.c (__curbrk): Declare.
7423         * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
7424         * sysdeps/generic/dl-sbrk.c: Likewise.
7425         * sysdeps/unix/arm/dl-brk.S: New file.
7426         * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
7427         * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
7428         * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
7429         * sysdeps/unix/bsd/vax/dl-brk.S: New file.
7430         * sysdeps/unix/i386/dl-brk.S: New file.
7431         * sysdeps/unix/mips/dl-brk.S: New file.
7432         * sysdeps/unix/sparc/dl-brk.S: New file.
7433         * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
7434         * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
7435         * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
7436         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
7437
7438 2002-04-03  Andreas Schwab  <schwab@suse.de>
7439
7440         * Makefile (headers): Add gnu/lib-names.h here instead of
7441         install-others.
7442         ($(inst_includedir)/gnu/lib-names.h): Remove explicit
7443         installation rule.
7444         (install-headers): Add dependency on install-headers-nosubdir.
7445         * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
7446         instead of install-others.
7447         ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
7448         installation rule.
7449
7450 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
7451
7452         * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
7453         Reported by Sam Roberts <sroberts@uniserve.com>.
7454
7455 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
7456
7457         * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
7458         l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
7459         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7460         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7461
7462 2002-04-03  David Mosberger  <davidm@hpl.hp.com>
7463
7464         * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
7465         (RTLD_START): Ditto.
7466         (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
7467         dependency violation.
7468
7469 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
7470
7471         * time/mktime.c (__mktime_internal): Move check for year < 70 below
7472         all variable declarations.
7473
7474 2002-04-04  Andreas Schwab  <schwab@suse.de>
7475
7476         * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
7477
7478 2002-04-04  Andreas Jaeger  <aj@suse.de>
7479
7480         * sysdeps/x86_64/fpu/e_sqrt.c: New file.
7481         * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
7482
7483         * sysdeps/x86_64/fpu/s_fabs.c: New file.
7484         * sysdeps/x86_64/fpu/s_fabsf.c: New file.
7485         * sysdeps/x86_64/fpu/s_fabsl.c: New file.
7486
7487         * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
7488
7489         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
7490
7491         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
7492         * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
7493
7494         * configure.in: Handle all mips entries the same.
7495
7496         * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
7497         * sysdeps/mips/mips3/*: Likewise.
7498         * sysdeps/mips/p40/bits/endian.h: Likewise.
7499
7500 2002-04-04  Ulrich Drepper  <drepper@redhat.com>
7501
7502         * misc/dirname.c (dirname): Ignore trailing slashes at end of
7503         non-null result [PR libc/2600].
7504
7505         * misc/tst-dirname.c: Add more tests.
7506
7507 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
7508
7509         * locale/programs/charmap.c (charmap_read): If the charmap doesn't
7510         define a code_set_name provide one based on the filename.
7511
7512         * malloc/hooks.c: Define weak_variable correctly for _LIBC.
7513
7514 2001-12-28  Andreas Jaeger  <aj@suse.de>
7515
7516         * time/mktime.c (__mktime_internal): Check for year < 70
7517         [PR libc/2738].
7518
7519 2002-04-03  Andreas Jaeger  <aj@suse.de>
7520
7521         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
7522         shmat.
7523         Reported by Andi Kleen <ak@suse.de>.
7524
7525 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
7526
7527         * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
7528         * sysdeps/generic/w_lgammaf.c: Likewise.
7529         * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
7530
7531         * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
7532         Adjust for new output format of the backtrace functions.
7533
7534         * misc/syslog.c (vsyslog): Only use cleanup handler if
7535         _LIBC_REENTRANT is defined [PR libc/2924].
7536
7537         * libio/Makefile (tests): Add bug-ungetwc2.
7538         * libio/bug-ungetwc2.c: New file.
7539
7540         * manual/install.texi: Typographical and grammatical cleanup.
7541         Patch by Dennis Grace <dgrace@us.ibm.com>.
7542
7543         * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
7544         parameter if mtflag.  Patch by <jeongyun@innovay.com>.
7545
7546         * sunrpc/rpc_svcout.c (printif): Remove third parameter.  It was
7547         always "&".  Adjust callers.
7548         Add "_" prefix to several generated definitions.
7549         Patch by paul@serice.net [PR libc/3158].
7550
7551 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7552
7553         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
7554         size of _dl_arm_cap_flags.
7555         Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
7556
7557         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
7558         Define as 8.
7559
7560 2002-03-22  H.J. Lu  <hjl@gnu.org>
7561
7562         * scripts/firstversions.awk: Check the first version.
7563
7564 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7565
7566         * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
7567         dependencies must be stable to work correctly.
7568         Reported by martin.lubich@datacon.at.
7569
7570         * libio/bug-ungetwc1.c: New file.
7571         * libio/Makefile (tests): Add bug-ungetwc1.
7572
7573         * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
7574         if stream was last used for writing.
7575
7576         * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
7577         number [PR libc/3111].
7578
7579         * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
7580         to ...
7581         * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
7582
7583 2002-04-02  Jakub Jelinek  <jakub@redhat.com>
7584
7585         * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
7586         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
7587         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
7588         * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
7589         * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
7590
7591 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
7592
7593         * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
7594         dynamic tags.
7595
7596 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
7597
7598         * sysdeps/i386/fpu/s_fabs.S: New file.
7599         * sysdeps/i386/fpu/s_fabsf.S: New file.
7600         * sysdeps/i386/fpu/s_fabsl.S: New file.
7601         * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
7602         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
7603         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
7604
7605 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7606
7607         * rt/tst-shm.c (do_test): Add one more test for size of shared
7608         memory object.
7609
7610 2002-03-29  Wolfram Gloger  <wg@malloc.de>
7611
7612         * malloc/malloc.c: Add short description and prototypes for
7613         malloc_get_state, malloc_set_state and posix_memalign, for
7614         consistency and to avoid warnings with -Wstrict-prototypes.
7615         Reported by Andreas Jaeger <aj@suse.de>.
7616
7617 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7618
7619         * po/gl.po: Update from translation team.
7620
7621 2002-03-31  Roland McGrath  <roland@frob.com>
7622
7623         * hurd/hurdselect.c (_hurd_select): Fix
7624         MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
7625         Use a union rather than casts to compare mach_msg_type_t as int.
7626
7627 2002-03-25  Roland McGrath  <roland@frob.com>
7628
7629         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
7630         check off the end of NAME when it's shorter than 2 chars.
7631         Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
7632
7633 2002-03-17  Roland McGrath  <roland@frob.com>
7634
7635         * sysdeps/mach/hurd/i386/sys/io.h: New file.
7636         * sysdeps/mach/hurd/i386/ioperm.c: New file.
7637         * sysdeps/mach/hurd/i386/Dist: Add them.
7638         * sysdeps/mach/hurd/i386/Versions
7639         (libc: GLIBC_2.2.6): New set, add ioperm.
7640         * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
7641         (mach_interface_list): Check for mach_i386.defs.
7642         * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
7643         * sysdeps/mach/configure: Regenerated.
7644
7645 2002-03-22  Ulrich Drepper  <drepper@redhat.com>
7646
7647         * po/fr.po: Update from translation team.
7648
7649 2002-03-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7650
7651         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
7652         getpriority from syscalls list.
7653
7654 2002-03-28  Andreas Jaeger  <aj@suse.de>
7655
7656         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
7657         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
7658         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
7659         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
7660
7661 2002-03-27  Andreas Jaeger  <aj@suse.de>
7662
7663         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7664         sigcontext): Follow further kernel change.
7665
7666         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
7667         kernel change.
7668
7669         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
7670         Change for struct sigcontext change.
7671
7672         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7673         Follow changes in struct sigcontext.
7674
7675         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
7676         sysycall, use wrapper instead.
7677
7678 2002-03-26  Andreas Jaeger  <aj@suse.de>
7679
7680         * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
7681         read and write accesses as detailed as possible.
7682         (__memcpy_by2): Likewise.
7683         (__memcpy_g): Likewise.
7684         (memmove): Likewise.
7685         (memcmp): Likewise.
7686         (__memset_ccn_by4): Likewise.
7687         (__memset_ccn_by2): Likewise.
7688         (__memset_gcn_by4): Likewise.
7689         (__memset_gcn_by2): Likewise.
7690         (memchr): Likewise.
7691         (__memrchr): Likewise.
7692         (rawmemchr): Likewise.
7693         (__strlen_g): Likewise.
7694         (__strcpy_g): Likewise.
7695         (__mempcpy_by4): Likewise.
7696         (__mempcpy_by2): Likewise.
7697         (__mempcpy_byn): Likewise.
7698         (__stpcpy_g): Likewise.
7699         (__strncpy_by4): Likewise.
7700         (__strncpy_by2): Likewise.
7701         (__strncpy_byn): Likewise.
7702         (__strncpy_gg): Likewise.
7703         (__strcat_c): Likewise.
7704         (__strcat_g): Likewise.
7705         (__strncat_g): Likewise.
7706         (__strcmp_gg): Likewise.
7707         (__strncmp_g): Likewise.
7708         (__strchr_c): Likewise.
7709         (__strchr_g): Likewise.
7710         (__strchrnul_c): Likewise.
7711         (__strchrnul_g): Likewise.
7712         (__strrchr_c): Likewise.
7713         (__strrchr_g): Likewise.
7714         (__strrchr_c): Likewise.
7715         (__strrchr_g): Likewise.
7716         (__strcspn_c1): Likewise.
7717         (__strcspn_cg): Likewise.
7718         (__strcspn_g): Likewise.
7719         (__strcspn_g): Likewise.
7720         (__strspn_c1): Likewise.
7721         (__strspn_cg): Likewise.
7722         (__strspn_g): Likewise.
7723         (__strspn_g): Likewise.
7724         (__strpbrk_cg): Likewise.
7725         (__strpbrk_g): Likewise.
7726         (__strstr_cg): Likewise.
7727         (__strstr_g): Likewise.
7728
7729         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo.  Reported by
7730         Michal Ludvig <mludvig@suse.cz>.
7731
7732         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
7733         compatibilty, adjust for kernel changes.
7734
7735         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7736         sigcontext): Adjust for kernel changes.
7737
7738 2002-03-25  Andreas Jaeger  <aj@suse.de>
7739
7740         * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
7741         little endian.
7742         Reported by Artur Zaprzala <zybi@talex.com.pl>.
7743
7744 2002-03-24  Andreas Jaeger  <aj@suse.de>
7745
7746         * manual/memory.texi (Aligned Memory Blocks): Fix typo.
7747
7748         * stdio-common/tst-fdopen.c (main): Remove unused variable.
7749
7750         * iconv/tst-iconv3.c (main): Use correct printf strings.
7751
7752 2002-03-18  Roland McGrath  <roland@frob.com>
7753
7754         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
7755         (CMGROUP_MAX): New macro.
7756
7757 2002-03-23  Roland McGrath  <roland@frob.com>
7758
7759         * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
7760         * sysdeps/posix/shm_unlink.c: Likewise.
7761
7762 2002-03-22  Roland McGrath  <roland@frob.com>
7763
7764         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
7765         * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
7766         under --enable-libio.
7767         * sysdeps/mach/hurd/configure: Regenerated.
7768
7769 2002-03-23  Roland McGrath  <roland@frob.com>
7770
7771         * sysdeps/mach/hurd/i386/Makefile
7772         (sysdep_routines, shared-only-routines): Don't add framestate,
7773         reverting 2001-10-02 change.
7774         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
7775         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
7776         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
7777         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
7778         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
7779         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
7780         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
7781         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
7782         * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
7783         Do it here instead, only if [$(unwind-find-fde) = yes].
7784
7785 2002-03-23  Andreas Jaeger  <aj@suse.de>
7786
7787         * signal/signal.h: Fix typo. Patch by Steve Kemp
7788         <skx@tardis.ed.ac.uk>.
7789
7790 2002-03-22  Andreas Jaeger  <aj@suse.de>
7791
7792         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
7793         getresuid.
7794
7795         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7796         _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
7797         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7798         user_fpregs_struct): Rename fwd.
7799
7800         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7801         Follow sigcontext changes.
7802
7803 2002-03-22  Andreas Jaeger  <aj@suse.de>
7804
7805         * sysdeps/mips/bits/nan.h: New file.  Copy from generic one with
7806         changes for NaNs on MIPS.
7807         Patch by Hartvig Ekner <hartvige@mips.com>.
7808
7809 2002-03-21  Ulrich Drepper  <drepper@redhat.com>
7810
7811         * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
7812         Use realloc if too large.
7813         (addgrbyid): Likewise.
7814         * nscd/hstcache.c (addhstbyname): Likewise.
7815         (addhstbyaddr): Likewise.
7816         (addhstbynamev6): Likewise.
7817         (addhstbyaddrv6): Likewise.
7818         * nscd/pwdcache.c (addpwbyname): Likewise.
7819         (addpwbyuid): Likewise.
7820
7821 2002-03-21  Andreas Jaeger  <aj@suse.de>
7822
7823         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7824         _fpstate): Add separate struct for x86-64.
7825
7826         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7827         user_fpregs_struct): Change member names to follow kernel.
7828
7829 2002-03-20  Ulrich Drepper  <drepper@redhat.com>
7830
7831         * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
7832         Correctly close the UDP connection right away [PR libc/3120].
7833
7834 2002-03-20  Andreas Jaeger  <aj@suse.de>
7835
7836         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7837         user_fpregs_struct): Fix for changed kernel struct.
7838         (struct user_regs_struct): Likewise.
7839         (struct user): Likewise.
7840         Add 32-bit x86 compatibility.
7841
7842         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
7843
7844 2002-03-19  Andreas Jaeger  <aj@suse.de>
7845
7846         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
7847
7848 2002-03-18  Andreas Jaeger  <aj@suse.de>
7849
7850         * iconvdata/Makefile: Only run tests when shared libs are
7851         available.
7852
7853 2002-03-17  Andreas Jaeger  <aj@suse.de>
7854
7855         * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
7856
7857         * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
7858
7859         * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
7860         bits.
7861
7862         * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New macro.
7863         (CAUSE_SHIFT): New macro.
7864         Patch by Hartvig Ekner <hartvige@mips.com>.
7865
7866         * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
7867         * sysdeps/generic/unwind-pe.h: Likewise.
7868
7869         * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
7870         type to _IO_setb.
7871
7872         * libio/stdio.c (AL2): Define variant when visibility attribute is
7873         not supported.
7874
7875         * include/libc-symbols.h (_INTVARDEF): Define variant when
7876         visibility attribute is not supported.
7877
7878 2002-03-16  Ulrich Drepper  <drepper@redhat.com>
7879
7880         * po/fr.po: Update from translation team.
7881
7882 2002-02-25  Bruno Haible  <bruno@clisp.org>
7883
7884         * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
7885
7886 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
7887
7888         * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
7889         buffers if _IO_file_attach failed.
7890
7891         * libio/fileops.c (_IO_file_open): Close file descriptor if
7892         _IO_SEEKOFF call failed.
7893
7894 2002-03-15  H.J. Lu  <hjl@gnu.org>
7895             Ulrich Drepper  <drepper@redhat.com>
7896
7897         * configure.in: Check for availability of
7898         init_array/fini_array/preinit_array handling in binutils.
7899         * config.h.in (HAVE_INITFINI_ARRAY): New macro.
7900         * config.make.in (have-initfini-array): New variable.
7901
7902 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
7903
7904         * stdio-common/tst-printf.c (main): Comment out one test which
7905         checked the compiler's ability to fold floating-point constants
7906         but not really printf.
7907         (rfg3): Make s const.
7908         * stdio-common/tst-printf.sh: Adjust for removed test.
7909
7910         * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
7911         internal function.  Adjust for internal_function calling convention.
7912         * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
7913         as internal_function.
7914
7915         * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
7916         hidden.
7917
7918         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
7919         declaration and definition.
7920         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
7921         declaration.
7922         * nss/getXXent_r.c: Likewise.
7923         * nss/nsswitch.h (db_lookup_function): Add internal_function to
7924         definition.
7925
7926         * include/time.h: Declare __localtime_r as hidden.
7927
7928         * include/aliases.h: Declare __getaliasent_r as hidden.
7929         * include/grp.h: Declare __getgrent_r as hidden.
7930         * include/netdb.h: Declare __gethostent_r, __getnetent_r,
7931         __getservent_r, and __getprotoent_r as hidden.
7932         * include/pwd.h: Declare __getpwent_r as hidden.
7933         * include/shadow.h: Declare __getspent_r as hidden.
7934         * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
7935
7936         * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
7937         and __gconv_transliterate as hidden.
7938         Add internal_function to __gconv_get_path declaration.
7939         * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
7940         definition.  Add attribute_hidden to __gconv_read_conf definition.
7941
7942 2002-03-14  Ulrich Drepper  <drepper@redhat.com>
7943
7944         * elf/rtld.c: Declare _environ as hidden.
7945         * sysdeps/generic/dl-environ.c: Likewise.
7946         * sysdeps/generic/dl-sysdep.c: Likewise.
7947
7948         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
7949         _dl_mcount_internal as hidden.
7950
7951         * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
7952         * sysdeps/generic/dl-brk.c: New file.
7953         * sysdeps/generic/dl-sbrk.c: New file.
7954         * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
7955         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
7956
7957         * elf/dl-minimal.c (malloc): Declare _end as hidden.
7958         (__errno_location): New function.  Declare errno as hidden.
7959         * elf/rtld.c (_dl_argc): Define as hidden.
7960         (_dl_skip_args): Define as hidden.
7961         (_begin, _end): Declare as hidden.
7962         * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
7963         * sysdeps/generic/entry.h (_start): Declare as hidden.
7964         * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
7965         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
7966         _dl_runtime_resolve and _dl_runtime_profile as hidden.
7967         (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
7968
7969 2002-03-14  Roland McGrath  <roland@frob.com>
7970
7971         * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
7972
7973         * Makeconfig (%.v.i, %.v): New implicit rules.
7974         (preprocess-versions): Variable removed.
7975         ($(common-objpfx)shlib-versions.v.i): New target giving just the
7976         shlib-versions input files as dependencies.
7977         ($(common-objpfx)soversions.i): Depend on that instead of the input
7978         files.  Use it as input instead of using a pipeline.
7979         (postclean-generated): Append soversions.i, shlib-versions.v, and
7980         shlib-versions.v.i here.
7981         * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
7982         the Versions.def input files as dependencies.
7983         ($(common-objpfx)Versions.v.i): Likewise for Versions files.
7984         ($(common-objpfx)Versions.all): Depend on that instead of the input
7985         files.  Use it as input instead of using a pipeline.
7986         ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
7987         (postclean-generated): Append those .v and .v.i files here.
7988
7989 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
7990
7991         * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
7992         * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
7993         Remove.
7994
7995 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
7996
7997         * sysdeps/generic/mp_clz_tab.c: New file.
7998         * sysdeps/i386/mp_clz_tab.c: New file.
7999         * sysdeps/hppa/mp_clz_tab.c: New file.
8000         * sysdeps/powerpc/mp_clz_tab.c: New file.
8001         * stdlib/Makefile (aux): Revert last patch.
8002         * math/Makefile (gmp-objs): Likewise.
8003
8004 2002-03-13  Paul Eggert  <eggert@twinsun.com>
8005
8006         * time/strftime.c: Comment fixes for references to obsolescent
8007         standards, In most cases the simplest fix is to remove the
8008         confusing comments.  Cross-referencing all the standards properly
8009         is a bit of a pain, and it should be enough to put that info in
8010         the documentation as I did in my recent time.texi patch.
8011
8012 2002-03-13  Paul Eggert  <eggert@twinsun.com>
8013
8014         * manual/time.texi (Formatting Calendar Time):
8015         ISO C99 also specifies the E and O modifiers.
8016         %P is a GNU extension, and is not in ISO C99.
8017         Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
8018         %T is also in ISO C99.
8019         The RFC 822 example is not valid in arbitrary locales.
8020         Reword the POSIX.2 wording slightly, to make it a bit clearer
8021         that POSIX.2 formats are also supported by later POSIX versions.
8022         If a format was introduced in ISO C99 it is also required by
8023         POSIX.1-2001.
8024
8025 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
8026
8027         * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
8028         _sys_nerr_internal with INTVARDEF2.
8029         * include/libc-symbols.h (INTVARDEF2): New macro.
8030         * include/stdio.h (_sys_errlist_internal): Declare as hidden.
8031         (_sys_nerr_internal): Library.
8032
8033         * sysdeps/posix/signal.c (_sigintr): Define as hidden.
8034         * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
8035
8036         * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
8037
8038 2002-03-13  Wolfram Gloger  <wg@malloc.de>
8039
8040         * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
8041
8042 2002-03-02  Andreas Schwab  <schwab@suse.de>
8043
8044         * stdio-common/vfprintf.c (process_arg): Fix decimal format with
8045         'h' flag and positional arg.
8046         * stdio-common/tst-printf.c (rfg3): New function to test
8047         positional arguments.
8048         (main): Fix some warnings.
8049
8050 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
8051
8052         * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
8053         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
8054
8055 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
8056
8057         * grp/initgroups.c (__nss_group_data): Declare as hidden.
8058
8059         * include/locale.h (_nl_C_locobj): Declare as hidden.
8060
8061         * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
8062         * time/strptime.c (_nl_C_LC_TIME): Likewise.
8063
8064         * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
8065
8066         * include/sys/gmon.h: Declare _gmonparam as hidden.
8067
8068         * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
8069         (__ctype32_wctrans): Likewise.
8070         (__ctype32_width): Likewise.
8071
8072         * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
8073         use of __ttyname.
8074
8075         * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
8076         Define as hidden.
8077         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Define as
8078         hidden.  Change all users of these variables.
8079
8080         * posix/regex_internal.h (__re_error_msgid): Renamed from
8081         re_error_msgid.  Declare as hidden.
8082         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Declare as
8083         hidden.
8084
8085         * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
8086         (__printf_function_table): Likewise.
8087         * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
8088         hidden.
8089         (__printf_function_table): Likewise.
8090
8091         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
8092         __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
8093
8094         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
8095         * nss/nsswitch.c: Declare _nss_*_database as hidden.
8096
8097         * stdlib/wctomb.c (__no_r_state): Declare as hidden.
8098         * stdlib/mbtowc.c (__no_r_state): Define as hidden.
8099
8100 2002-03-12  Ulrich Drepper  <drepper@redhat.com>
8101
8102         * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
8103         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
8104         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
8105         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
8106         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
8107         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
8108         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
8109         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
8110         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
8111         _nl_C_LC_CTYPE_width: Declare as hidden.
8112         * include/locale.h: Declare _nl_locale_file_list.
8113         * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
8114         * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
8115         * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
8116         * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
8117         * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
8118         * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
8119         * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
8120         * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
8121         * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
8122         * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
8123         * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
8124         * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
8125         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
8126         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
8127         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
8128         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
8129         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
8130         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
8131         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
8132         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
8133         _nl_C_LC_CTYPE_width, and as hidden.
8134         * locale/findlocale.c: Declare _nl_C as hidden.
8135         * locale/newlocale.c: Likewise.
8136         * locale/setlocale.c: Define _nl_C as hidden.  Remove declaration of
8137         _nl_locale_file_list.
8138         * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
8139         _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
8140         Define _nl_C_locobj as hidden.
8141
8142         * malloc/mtrace.c (_mtrace_file): Define as hidden.
8143         (_mtrace_line): Likewise.
8144
8145         * include/time.h: Declare __mon_yday as hidden.
8146         * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
8147
8148         * libio/libioP.h: Declare __libio_codecvt as hidden.
8149         * libio/fileops.c: Declare __libio_translit as hidden.
8150         * libio/iofwide.c: Define __libio_translit as hidden.
8151
8152         * login/getutent_r.c: Define __libc_utmp_lock as hidden.
8153         * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
8154         * login/getutline_r.c: Likewise.
8155         * login/utmpname.c: Likewise.
8156
8157         * login/utmp-private.h: Declare __libc_utmp_file_functions,
8158         __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
8159         __libc_utmp_file_name as hidden.
8160
8161         * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
8162         * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
8163         * locale/freelocale.c: Likewise.
8164         * locale/lc-time.c: Likewise.
8165
8166         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
8167         (__libc_ptyname2): Likewise.
8168         * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
8169         hidden.
8170         (__libc_ptyname2): Likewise.
8171
8172         * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
8173         * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
8174         * sysdeps/generic/init-first.c: Likewise.
8175         * sysdeps/i386/init-first.c: Likewise.
8176         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
8177         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8178         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8179         * sysdeps/sh/init-first.c: Likewise.
8180         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8181         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8182
8183         * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
8184         (_itowa_upper_digits): Likewise.
8185
8186         * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
8187         * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
8188         as hidden.
8189
8190         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
8191         _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
8192         _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
8193         _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
8194
8195         * gmon/gmon.c (__bb_head): Define as hidden.
8196         * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
8197
8198         * argp/argp-parse.c (_argp_hang): Define as static.
8199
8200         * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
8201         handling in latest compilers.
8202
8203         * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
8204         define alias.
8205         * libio/fileops.c (_IO_file_jumps): Likewise.
8206         * libio/stdfiles.c (_IO_list_all): Likewise.
8207         * libio/wfileops.c (_IO_wfile_jumps): Likewise.
8208
8209         * malloc/malloc.h: Move __libc_malloc_initialized declaration to
8210         include/malloc.h.
8211         * include/malloc.h: Add __libc_malloc_initialized declaration
8212         here.  Mark variable hidden.
8213         * malloc/malloc.c: Include <malloc.h> not "malloc.h".
8214
8215         * elf/dl-open.c (__libc_argc): Declare as hidden.
8216         (__libc_argv): Likewise.
8217         * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
8218         (__libc_argv): Likewise.
8219         * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
8220         __libc_argv as hidden.
8221         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8222         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8223         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8224         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8225
8226         * include/stdlib.h (__libc_drand48_data): Declare as hidden.
8227         * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
8228         * stdlib/erand48.c: Likewise.
8229         * stdlib/jrand48.c: Likewise.
8230         * stdlib/lcong48.c: Likewise.
8231         * stdlib/lrand48.c: Likewise.
8232         * stdlib/mrand48.c: Likewise.
8233         * stdlib/nrand48.c: Likewise.
8234         * stdlib/seed48.c: Likewise.
8235         * stdlib/srand48.c: Likewise.
8236
8237         * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
8238         (_itoa_lower_digits_internal): New declaration.
8239         (_itoa_upper_digits_internal): New declaration.
8240         (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
8241         * stdio-common.h (_itoa_lower_digits_internal): New declaration.
8242         (_itoa_upper_digits_internal): New declaration.
8243         (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
8244         _itoa_lower_digits.
8245         * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
8246         * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
8247
8248         * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
8249         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
8250
8251         * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
8252         (_itowa_lower_digits): Likewise.
8253         (_itowa_upper_digits): Likewise.
8254         * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
8255         (_itowa_upper_digits): Likewise.
8256
8257         * intl/plural-exp.h (attribute_hidden): Define as empty macro if
8258         not already defined.
8259         (GERMANIC_PLURAL): Declare as hidden.
8260
8261         * posix/getopt.c (__getopt_initialized): Declare as hidden.
8262         (attribute_hidden): Define as empty macro if not already defined.
8263
8264         * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
8265         (__gconv_max_path_elem_len): Likewise.
8266         (__gconv_path_envvar): Likewise.
8267
8268         * math/Makefile (gmp-objs): Remove mp_clz_tab.
8269         * stdlib/Makefile (aux): Remove mp_clz_tab.
8270         * stdlib/mp_clz_tab.c: Removed.  Not needed anywhere.
8271
8272         * stdlib/exit.h (__exit_funcs): Declare as hidden.
8273
8274         * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
8275
8276         * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
8277         _nl_category_names, _nl_category_name_sizes, _nl_current,
8278         _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
8279
8280         * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
8281         (_nl_current_default_domain): Likewise
8282         (_nl_state_lock): Likewise.
8283         * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
8284         (_nl_current_default_domain): Likewise
8285         (_nl_state_lock): Likewise.
8286         * intl/bindtextdom.c (_nl_state_lock): Likewise.
8287
8288         * stdlib/fpioconst.h (__tens): Add attribute_hidden.
8289         (_fpioconst_pow10): Likewise.
8290
8291         * include/time.h (_tmbuf): Add attribute_hidden.
8292
8293         * time/tzset.c (tzstring_list): Define as static.
8294
8295         * include/time.h: Add attribute_hidden to __tzname_cur_max and
8296         __use_tzfile declaration.
8297
8298         * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
8299         and __wcsmbs_last_locale declaration.
8300
8301 2002-02-25  Paul Eggert  <eggert@twinsun.com>
8302
8303         * timezone/Makefile (tzbases): Move systemv from here...
8304         (tzlinks): to here, since the entries in systemv were all changed
8305         from Zone to Link lines in tz-2001a.  Bug reported (and patch
8306         tested) by Peter Breitenlohner.
8307
8308 2002-03-07  Jakub Jelinek  <jakub@redhat.com>
8309
8310         * time/tst-posixtz.c (tests): Add new tests.
8311         (main): Test whether tzset() sets daylight properly.
8312
8313 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
8314
8315         * time/tzset.c (tz_compute): Move __daylight, __tzname and
8316         __tzname_cur_max setting...
8317         (tzset_internal): ...here.
8318
8319 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
8320
8321         * time/tzset.c (compute_change): Don't return any value.
8322         (tz_compute): Likewise.  Don't handle southern hemisphere here.
8323         (__tz_convert): But here.
8324
8325 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8326
8327         * manual/examples/mkfsock.c: Include <string.h> as well.
8328         Patch by Alain De Carolis <alaind@wseurope.com>.
8329
8330 2002-03-06  Isamu Hasegawa  <isamu@yamato.ibm.com>
8331
8332         * posix/regexec.c (re_match): Fix incorrect register sizes.
8333         (re_search): Likewise.
8334
8335 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
8336
8337         * posix/regcomp.c (regfree): Remove a disused condition.
8338         * posix/regex_internal.c (re_acquire_state): Likewise.
8339         (re_acquire_state_context): Likewise.
8340         (register_state): Remove a redundant malloc invocation.
8341         * posix/regex_internal.h: (re_state_table_entry): Simplify
8342         the structure.
8343
8344 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
8345
8346         * posix/regcomp.c (regcomp): Add __builtin_expect to error
8347         handling conditions.
8348         (regerror): Likewise.
8349         (regfree): Likewise.
8350         (re_compile_internal): Likewise.
8351         (init_dfa): Likewise.
8352         (init_word_char): Likewise.
8353         (create_initial_state): Likewise.
8354         (analyze): Likewise.
8355         (analyze_tree): Likewise.
8356         (duplicate_node): Likewise.
8357         (calc_eclosure): Likewise.
8358         (calc_eclosure_iter): Likewise.
8359         (parse): Likewise.
8360         (parse_reg_exp): Likewise.
8361         (parse_branch): Likewise.
8362         (parse_expression): Likewise.
8363         (parse_subexp): Likewise.
8364         (parse_dup_op): Likewise.
8365         (parse_bracket_exp): Likewise.
8366         (build_equiv_class): Likewise.
8367         (build_charclass): Likewise.
8368         (build_word_op): Likewise.
8369         (fetch_number): Likewise.
8370         (create_tree): Likewise.
8371         (duplicate_tree): Likewise.
8372         * posix/regex.c (BE): New macro.
8373         * posix/regexec.c (re_match): Add __builtin_expect to error
8374         handling conditions.
8375         (re_match_2): Likewise.
8376         (re_search): Likewise.
8377         (re_search_internal): Likewise.
8378         (check_matching): Likewise.
8379         (proceed_next_node): Likewise.
8380         (set_regs): Likewise.
8381         (sift_states_backward): Likewise.
8382         (add_epsilon_backreference): Likewise.
8383         (transit_state): Likewise.
8384         (transit_state_sb): Likewise.
8385         (transit_state_mb): Likewise.
8386         (transit_state_bkref): Likewise.
8387         (transit_state_bkref_loop): Likewise.
8388         (build_trtable): Likewise.
8389         (group_nodes_into_DFAstates): Likewise.
8390         (match_ctx_init): Likewise.
8391         (match_ctx_add_entry): Likewise.
8392         * posix/regex_internal.c (re_string_construct): Add __builtin_expect
8393         to error handling conditions.
8394         (re_string_construct_toupper): Likewise.
8395         (build_wcs_buffer): Likewise.
8396         (build_wcs_upper_buffer): Likewise.
8397         (build_upper_buffer): Likewise.
8398         (re_string_translate_buffer): Likewise.
8399         (re_node_set_alloc): Likewise.
8400         (re_node_set_init_1): Likewise.
8401         (re_node_set_init_2): Likewise.
8402         (re_node_set_init_copy): Likewise.
8403         (re_node_set_intersect): Likewise.
8404         (re_node_set_init_union): Likewise.
8405         (re_node_set_merge): Likewise.
8406         (re_node_set_insert): Likewise.
8407         (re_dfa_add_node): Likewise.
8408         (re_acquire_state): Likewise.
8409         (re_acquire_state_context): Likewise.
8410         (create_new_state_common): Likewise.
8411         (register_state): Likewise.
8412         (create_ci_new_state): Likewise.
8413         (create_cd_new_state): Likewise.
8414         (re_string_context_at): Remove redundant condition.
8415
8416 2002-01-16  Roger Sayle  <roger@eyesopen.com>
8417
8418         * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
8419
8420         * sysdeps/i386/i586/strlen.S: Fix typo in comment.
8421
8422 2002-03-11  Jakub Jelinek  <jakub@redhat.com>
8423
8424         * sysdeps/i386/elf/configure.in: Fix comment.
8425
8426         * sysdeps/sparc/sparc64/configure.in: New file.
8427         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
8428         if .dynamic comes before .got.
8429         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
8430
8431         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
8432         HP_TIMING_ACCUM): Fix typos.
8433
8434 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8435
8436         * string/strfry.c: Add some more randomness to the seed.
8437         Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
8438
8439         * po/es.po: Update from translation team.
8440         * po/fr.po: Likewise.
8441
8442         * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
8443
8444         * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
8445         when determining type of format.
8446         Patch by James Antill <james@anqd.org> [PR libc/2787].
8447
8448 2002-03-04  Jakub Jelinek  <jakub@redhat.com>
8449
8450         * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
8451
8452 2002-03-11  Roland McGrath  <roland@frob.com>
8453
8454         * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
8455
8456         * Versions.def (libc): Add GLIBC_2.2.6.
8457         * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
8458         * sysdeps/mach/hurd/errnos.awk: In generated macro, use
8459         __errno_location instead of __hurd_errno_location, and don't inline it.
8460         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
8461         * hurd/errno.c: New file.
8462         * hurd/Makefile (routines): Add errno.
8463
8464 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8465
8466         * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
8467         ridiculously large widths and precisions [PR libc/3026].
8468
8469 2002-03-11  Andreas Jaeger  <aj@suse.de>
8470
8471         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
8472         support.
8473         Patch by Susanne Oberhauser <froh@SuSE.de>.
8474
8475 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8476
8477         * inet/rexec.c (ahostbuf): Define as static.
8478
8479         * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
8480         (__ctype32_wctrans): Likewise.
8481         * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
8482         * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
8483         (__ctype32_wctrans): Likewise.
8484         (__ctype32_width): Likewise.
8485
8486         * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
8487         They were never exported anyway.
8488
8489         * gmon/gmon.c (_gmonparam): Add attribute_hidden.
8490         * gmon/sys/gmon.h: Remove declaration of _gmonparam.  It wasn't
8491         exported.
8492         * include/sys/gmon.h: Declare _gmonparam.
8493
8494         * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
8495         symbols for getdents64.  They were never exported.
8496
8497 2002-03-09  Roland McGrath  <roland@frob.com>
8498
8499         * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
8500         Reported by Jon Arney <jarney1@cox.net>.
8501
8502 2002-02-23  Roland McGrath  <roland@frob.com>
8503
8504         * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
8505         declaration.
8506         (__hurd_errno_location): Function removed.
8507
8508 2002-03-06  Andreas Jaeger  <aj@suse.de>
8509
8510         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
8511         32-bit.
8512
8513 2002-03-04  Andreas Jaeger  <aj@suse.de>
8514
8515         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New file.
8516
8517         * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
8518         x86-64.
8519
8520         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New file.
8521
8522         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New file.
8523
8524         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New file.
8525
8526         * sysdeps/x86_64/bits/setjmp.h: New file.
8527
8528         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New file.
8529
8530         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New file.
8531
8532         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
8533         for x86.
8534         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
8535         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
8536
8537 2002-02-28  Bo Thorsen  <bo@suse.de>
8538
8539         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
8540         version.
8541
8542 2002-03-03  Andreas Jaeger  <aj@suse.de>
8543
8544         * sysdeps/x86_64/bits/wordsize.h: New file.
8545
8546         * elf/nodlopenmod2.c: Provide prototype to avoid warning.
8547         * elf/tst-tlsmod1.c: Likewise.
8548
8549         * posix/regcomp.c: Get regex.h from include dir for internal
8550         prototypes.
8551
8552         * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
8553         to libc-internal.h and include it.
8554         * include/libc-internal.h: Add __init_misc.
8555
8556         * misc/init-misc.c: Include libc-internal.h for prototypes.
8557
8558         * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
8559
8560         * misc/error.c [_LIBC]: Include libioP.h for prototype of
8561         _IO_putc_internal.
8562
8563 2002-03-03  Ulrich Drepper  <drepper@redhat.com>
8564
8565         * posix/regcomp.c: Compatibility changes to allow using the code
8566         outside glibc.
8567
8568 2002-02-28  Hartvig Ekner <hartvige@mips.com>
8569
8570         * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
8571         compiled non-PIC.
8572
8573 2002-03-02  Ulrich Drepper  <drepper@redhat.com>
8574
8575         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
8576         of .str elements in the returned data structure.
8577
8578         * elf/elf.h: Add Alpha TLS bits.
8579
8580 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8581
8582         * sysdeps/unix/sysv/linux/nice.c: New file.
8583
8584 2002-03-01  Ulrich Drepper  <drepper@redhat.com>
8585
8586         * elf/Makefile (dl-routines): Add dl-origin.
8587         (elide-routines.os): Add dl-origin.
8588         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
8589         * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
8590         _dl_debug_state.
8591         * include/libc-symbols.c: Define attribute_hidden depending on
8592         HAVE_VISIBILITY_ATTRIBUTE.  Add definition of INTVARDEF.
8593
8594         * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
8595         * elf/dl-load.c: Likewise.
8596         * elf/rtld.c: Likewise.
8597         * include/unistd.h: Declare __libc_enable_secure_internal.
8598         * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
8599         Use INTUSE with __libc_enable_secure.
8600         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
8601
8602         * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
8603         * elf/dl-error.c: Likewise,
8604         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
8605
8606         * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
8607         * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
8608         function definition.  Use INTDEF with _dl_get_origin.
8609         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
8610
8611         * elf/dl-init.c: Use INTUSE with _dl_starting_up.
8612         * elf/rtld.c: Likewise.  Use INTVARDEF for _dl_starting_up.
8613
8614         * elf/dl-profile.c: Use INTDEF for _dl_mcount.
8615         * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
8616         * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
8617
8618         * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
8619         * elf/dl-deps.c: Likewise.
8620         * elf/dl-error.c: Likewise.
8621         * elf/dl-fini.c: Likewise.
8622         * elf/dl-init.c: Likewise.
8623         * elf/dl-load.c: Likewise.
8624         * elf/dl-lookup.c: Likewise.
8625         * elf/dl-reloc.c: Likewise.
8626         * elf/dl-version.c: Likewise.
8627         * elf/do-lookup.h: Likewise.
8628         * sysdeps/arm/dl-machine.h: Likewise.
8629         * sysdeps/cris/dl-machine.h: Likewise.
8630         * sysdeps/hppa/dl-machine.h: Likewise.
8631         * sysdeps/i386/dl-machine.h: Likewise.
8632         * sysdeps/m68k/dl-machine.h: Likewise.
8633         * sysdeps/powerpc/dl-machine.h: Likewise.
8634         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8635         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8636         * sysdeps/sh/dl-machine.h: Likewise.
8637         * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
8638         * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
8639         * sysdeps/x86_64/dl-machine.h: Likewise.
8640         * elf/rtld.c: Use INTDEF for _dl_argv.  Use rtld_progrname instead of
8641         _dl_argv[0].  Use INTUSE with _dl_argv.
8642         * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
8643         * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
8644
8645 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8646
8647         * elf/rtld.c (_rtld_global): Remove .protected.
8648         (_rtld_local): Strong alias to _rtld_global.
8649         * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
8650         only .os object.
8651         * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
8652         _rtld_local instead of _rtld_global.
8653         (_rtld_local): Add hidden extern, possibly in .sdata section.
8654         * configure.in: Add tests for visibility attribute and .sdata.
8655         * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
8656         * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
8657         * sysdeps/arm/dl-machine.h: Likewise.
8658         * sysdeps/generic/ldsodefs.h: Likewise.
8659         * sysdeps/hppa/dl-machine.h: Likewise.
8660         * sysdeps/cris/dl-machine.h: Likewise.
8661         * sysdeps/i386/dl-machine.h: Likewise.
8662         * sysdeps/ia64/dl-machine.h: Likewise.
8663         * sysdeps/m68k/dl-machine.h: Likewise.
8664         * sysdeps/mips/mips64/dl-machine.h: Likewise.
8665         * sysdeps/mips/dl-machine.h: Likewise.
8666         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8667         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8668         * sysdeps/sh/dl-machine.h: Likewise.
8669         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8670         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8671         * sysdeps/x86_64/dl-machine.h: Likewise.
8672
8673 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
8674
8675         * login/login.c (login): Always initialize ut_line field
8676         [PR libc/2991].
8677
8678 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8679
8680         * sysdeps/i386/Makefile (sysdep_routines): Add
8681         divdi3 in csu dir.
8682         (shared-only-routines): Likewise.
8683         * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
8684         (shared-only-routines): Likewise.
8685         * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
8686         (shared-only-routines): Likewise.
8687         * sysdeps/wordsize-32/divdi3.c: New file.
8688
8689 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
8690
8691         * locale/iso-4217.def: Remove obsolete currencies for countries
8692         with Euro.
8693
8694 2002-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
8695
8696         * posix/regcomp.c (regcomp): Remove a redundant condition.
8697         (init_word_char): Add a check on malloc failure.
8698         (create_initial_state): Likewise.
8699         (duplicate_node): Likewise.
8700         (calc_eclosure): Likewise.
8701         (calc_eclosure_iter): Likewise.
8702         (parse_expression): Likewise.
8703         (parse_bracket_exp): Remove unnecessary malloc invocations.
8704         (build_equiv_class): Likewise.
8705         (build_charclass): Likewise.
8706         * posix/regex_internal.c (re_node_set_intersect): Add a check
8707         on malloc failure.
8708         (re_node_set_add_intersect): Likewise.
8709         (re_node_set_merge): Likewise.
8710         (re_acquire_state): Likewise.
8711         (re_acquire_state_context): Likewise.
8712         (create_newstate_common): Likewise.
8713         (register_state): Likewise.
8714         (create_ci_newstate): Likewise.
8715         (create_cd_newstate): Likewise.
8716         * posix/regex_internal.h: Fix prototypes of re_acquire_state
8717         and re_acquire_state_context.
8718         * posix/regexec.c (regexec): Suit it to the error handling of
8719         re_search_internal.
8720         (re_match): Likewise.
8721         (re_search): Likewise.
8722         (re_search_internal): Add a check on malloc failure.
8723         (acquire_init_state_context): Likewise.
8724         (check_matching): Likewise.
8725         (proceed_next_node): Likewise.
8726         (set_regs): Likewise.
8727         (sift_states_backward): Likewise.
8728         (sift_states_iter_bkref): Likewise.
8729         (add_epsilon_backreference): Likewise.
8730         (transit_state): Likewise.
8731         (transit_state_sb): Likewise.
8732         (transit_state_mb): Likewise.
8733         (transit_state_bkref_loop): Likewise.
8734         (build_trtable): Likewise.
8735         (group_nodes_into_DFAstates): Likewise.
8736         (match_ctx_init): Likewise.
8737         (match_ctx_add_entry): Likewise.
8738
8739 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
8740
8741         * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
8742         l_libname if profiling is enabled [PR libc/2916].
8743
8744         * sysdeps/ia64/dl-tls.h: New file.
8745
8746 2002-02-27  Jakub Jelinek  <jakub@redhat.com>
8747
8748         * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
8749         Work around an Alpha gas bug.
8750
8751 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
8752
8753         * catgets/open_catalog.c (__open_catalog): Fix typo in code which
8754         uses read to load the catalog.
8755         Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
8756
8757 2002-02-26  Ulrich Drepper  <drepper@redhat.com>
8758
8759         * posix/Makefile (distribute): Add regcomp.c, regexec.c,
8760         regex_internal.c, and regex_internal.h.
8761         (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
8762         * posix/regex.c: Complete rewrite.
8763         * posix/regexec.c: New file.
8764         * posix/regcomp.c: New file.
8765         * posix/regex_internal.c: New file.
8766         * posix/regex_internal.h: New file.
8767         * posix/regex.h (RE_ICASE): New macro.
8768         Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
8769
8770         * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
8771         ungetwc.  It's a macro.
8772         * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
8773         implementation.
8774         Reported by Jason Merrill <jason@redhat.com>.
8775
8776 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
8777
8778         * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
8779         position to fp->_offset if it is set.
8780         * stdio-common/Makefile (tests): Add tst-fdopen.
8781         * stdio-common/tst-fdopen.c: New test.
8782
8783 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
8784
8785         * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
8786         * stdio-common/tst-ungetc.c (main): Add another test.
8787
8788 2002-02-25  Ulrich Drepper  <drepper@redhat.com>
8789
8790         * assert/assert-perr.c: Use INTUSE to reference functions and variables
8791         inside libc itself.  Use INTDEF and INTDEF2 to define appropriate
8792         aliases.  Add prototypes for the new aliases.
8793         * assert/assert.c: Likewise.
8794         * include/libc-symbols.h: Likewise.
8795         * include/stdio.h: Likewise.
8796         * include/netinet/in.h: Likewise.
8797         * include/rpc/auth.h: Likewise.
8798         * include/rpc/auth_unix.h: Likewise.
8799         * include/rpc/key_prot.h: Likewise.
8800         * include/rpc/pmap_prot.h: Likewise.
8801         * include/rpc/pmap_rmt.h: Likewise.
8802         * include/rpc/rpc_msg.h: Likewise.
8803         * include/rpc/xdr.h: Likewise.
8804         * inet/gethstbyad_r.c: Likewise.
8805         * inet/gethstbynm2_r.c: Likewise.
8806         * inet/gethstbynm_r.c: Likewise.
8807         * inet/gethstent_r.c: Likewise.
8808         * inet/in6_addr.c: Likewise.
8809         * libio/__fpurge.c: Likewise.
8810         * libio/filedoalloc.c: Likewise.
8811         * libio/fileops.c: Likewise.
8812         * libio/ftello.c: Likewise.
8813         * libio/ftello64.c: Likewise.
8814         * libio/genops.c: Likewise.
8815         * libio/iofclose.c: Likewise.
8816         * libio/iofdopen.c: Likewise.
8817         * libio/iofflush.c: Likewise.
8818         * libio/iofflush_u.c: Likewise.
8819         * libio/iofgetpos.c: Likewise.
8820         * libio/iofgetpos64.c: Likewise.
8821         * libio/iofgets.c: Likewise.
8822         * libio/iofgets_u.c: Likewise.
8823         * libio/iofopen.c: Likewise.
8824         * libio/iofopncook.c: Likewise.
8825         * libio/iofputs.c: Likewise.
8826         * libio/iofread.c: Likewise.
8827         * libio/iofread_u.c: Likewise.
8828         * libio/iofsetpos.c: Likewise.
8829         * libio/iofsetpos64.c: Likewise.
8830         * libio/ioftell.c: Likewise.
8831         * libio/iofwrite.c: Likewise.
8832         * libio/iogetline.c: Likewise.
8833         * libio/iogets.c: Likewise.
8834         * libio/iogetwline.c: Likewise.
8835         * libio/iolibio.h: Likewise.
8836         * libio/iopadn.c: Likewise.
8837         * libio/iopopen.c: Likewise.
8838         * libio/ioseekoff.c: Likewise.
8839         * libio/ioseekpos.c: Likewise.
8840         * libio/iosetbuffer.c: Likewise.
8841         * libio/iosetvbuf.c: Likewise.
8842         * libio/ioungetc.c: Likewise.
8843         * libio/ioungetwc.c: Likewise.
8844         * libio/iovdprintf.c: Likewise.
8845         * libio/iovsprintf.c: Likewise.
8846         * libio/iovsscanf.c: Likewise.
8847         * libio/libioP.h: Likewise.
8848         * libio/memstream.c: Likewise.
8849         * libio/obprintf.c: Likewise.
8850         * libio/oldfileops.c: Likewise.
8851         * libio/oldiofclose.c: Likewise.
8852         * libio/oldiofdopen.c: Likewise.
8853         * libio/oldiofgetpos.c: Likewise.
8854         * libio/oldiofgetpos64.c: Likewise.
8855         * libio/oldiofopen.c: Likewise.
8856         * libio/oldiofsetpos.c: Likewise.
8857         * libio/oldiofsetpos64.c: Likewise.
8858         * libio/oldiopopen.c: Likewise.
8859         * libio/oldstdfiles.c: Likewise.
8860         * libio/putc.c: Likewise.
8861         * libio/setbuf.c: Likewise.
8862         * libio/setlinebuf.c: Likewise.
8863         * libio/stdfiles.c: Likewise.
8864         * libio/stdio.c: Likewise.
8865         * libio/strops.c: Likewise.
8866         * libio/vasprintf.c: Likewise.
8867         * libio/vscanf.c: Likewise.
8868         * libio/vsnprintf.c: Likewise.
8869         * libio/vswprintf.c: Likewise.
8870         * libio/wfiledoalloc.c: Likewise.
8871         * libio/wfileops.c: Likewise.
8872         * libio/wgenops.c: Likewise.
8873         * libio/wstrops.c: Likewise.
8874         * malloc/mtrace.c: Likewise.
8875         * misc/error.c: Likewise.
8876         * misc/syslog.c: Likewise.
8877         * nss/getXXbyYY_r.c: Likewise.
8878         * nss/getXXent_r.c: Likewise.
8879         * nss/hosts-lookup.c: Likewise.
8880         * stdio-common/getw.c
8881         * stdio-common/printf-prs.c: Likewise.
8882         * stdio-common/printf_fp.c: Likewise.
8883         * stdio-common/printf_size.c: Likewise.
8884         * stdio-common/putw.c: Likewise.
8885         * stdio-common/scanf.c: Likewise.
8886         * stdio-common/sprintf.c: Likewise.
8887         * stdio-common/tmpfile64.c: Likewise.
8888         * stdio-common/vfprintf.c: Likewise.
8889         * stdio-common/vfscanf.c: Likewise.
8890         * stdlib/strfmon.c: Likewise.
8891         * sunrpc/auth_des.c: Likewise.
8892         * sunrpc/auth_none.c: Likewise.
8893         * sunrpc/auth_unix.c: Likewise.
8894         * sunrpc/authdes_prot.c: Likewise.
8895         * sunrpc/authuxprot.c: Likewise.
8896         * sunrpc/clnt_perr.c: Likewise.
8897         * sunrpc/clnt_raw.c: Likewise.
8898         * sunrpc/clnt_tcp.c: Likewise.
8899         * sunrpc/clnt_udp.c: Likewise.
8900         * sunrpc/clnt_unix.c: Likewise.
8901         * sunrpc/key_call.c: Likewise.
8902         * sunrpc/key_prot.c: Likewise.
8903         * sunrpc/openchild.c: Likewise.
8904         * sunrpc/pm_getmaps.c: Likewise.
8905         * sunrpc/pm_getport.c: Likewise.
8906         * sunrpc/pmap_clnt.c: Likewise.
8907         * sunrpc/pmap_prot.c: Likewise.
8908         * sunrpc/pmap_prot2.c: Likewise.
8909         * sunrpc/pmap_rmt.c: Likewise.
8910         * sunrpc/rpc_cmsg.c: Likewise.
8911         * sunrpc/rpc_prot.c: Likewise.
8912         * sunrpc/svc_authux.c: Likewise.
8913         * sunrpc/svc_raw.c: Likewise.
8914         * sunrpc/svc_simple.c: Likewise.
8915         * sunrpc/svc_tcp.c: Likewise.
8916         * sunrpc/svc_udp.c: Likewise.
8917         * sunrpc/svc_unix.c: Likewise.
8918         * sunrpc/xdr.c: Likewise.
8919         * sunrpc/xdr_array.c: Likewise.
8920         * sunrpc/xdr_mem.c: Likewise.
8921         * sunrpc/xdr_rec.c: Likewise.
8922         * sunrpc/xdr_ref.c: Likewise.
8923         * sunrpc/xdr_stdio.c: Likewise.
8924         * sysdeps/generic/_strerror.c: Likewise.
8925         * sysdeps/generic/printf_fphex.c: Likewise.
8926         * sysdeps/generic/tmpfile.c: Likewise.
8927         * sysdeps/gnu/errlist.awk: Likewise.
8928         * sysdeps/gnu/errlist.c: Likewise.
8929
8930         * libio/Makefile (routines): Remove iosprint.
8931         * libio/iosprintf.c: Removed
8932
8933
8934 2002-02-24  Ulrich Drepper  <drepper@redhat.com>
8935
8936         * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
8937         non_dynamic_init and exported now.
8938         * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
8939         * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
8940         !SHARED.
8941         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
8942         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8943         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8944
8945 2002-02-23  Ulrich Drepper  <drepper@redhat.com>
8946
8947         * elf/dl-close.c (free_slotinfo): Check for end of list and return
8948         true in this case.
8949
8950         * locale/iso-639.def: Add language codes for Walloon.
8951
8952         * elf/dl-fini.c (_dl_fini): Print some final statistics on the
8953         total number of relocations performed.
8954
8955         * elf/sprof.c (load_profdata): If do_test provide information as
8956         to why loading failed.
8957         * elf/dl-profile.c (_dl_start_profile): Initialize all of
8958         hist_hdr.dimen.
8959
8960         * csu/set-init.c: Moved to...
8961         * sysdeps/mach/hurd/set-init.c: ...here.  New file.
8962         * csu/Makefile: Don't compile set-init.
8963         * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
8964         * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
8965         to __libc_init.
8966         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8967         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8968         * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
8969         __libc_init.
8970         * misc/init-misc.c: Always export __init_misc.  Don't define hooks for
8971         __libc_subinit.
8972
8973 2002-02-22  Ulrich Drepper  <drepper@redhat.com>
8974
8975         * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
8976         * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
8977         * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
8978         (_dl_deallocate_tls): New function.
8979         * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
8980         _dl_deallocate_tls.
8981
8982 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
8983
8984         * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
8985         * stdio-common/tst-fseek.c (main): Add test for this.
8986
8987 2002-02-19  Ulrich Drepper  <drepper@redhat.com.>
8988
8989         * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
8990
8991 2002-02-19  Jakub Jelinek  <jakub@redhat.com>
8992
8993         * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
8994         pointer before dereferencing.
8995
8996 2002-02-18  Roland McGrath  <roland@frob.com>
8997
8998         * sysdeps/mach/hurd/times.c: Fix typo in last change.
8999
9000         * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
9001         Use task_policy in place of task_priority.
9002
9003         * sysdeps/generic/bits/mman.h
9004         (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
9005         * sysdeps/mach/msync.c: New file.
9006
9007         * sysdeps/mach/powerpc/syscall.S: New file.
9008
9009         * mach/msg.c [MACH_MSG_OVERWRITE]
9010         (__mach_msg_trap, __mach_msg_overwrite): New functions.
9011         * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
9012
9013         * sysdeps/mach/configure.in: Check for clock.defs to put into
9014         mach_interface_list.
9015         * sysdeps/mach/configure: Regenerated.
9016
9017         * mach/Makefile (mach-machine): New variable, set from $(base-machine).
9018         ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
9019         ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
9020         Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
9021         (mach-shortcuts): Add device_read_overwrite_request,
9022         device_read_overwrite, vm_read_overwrite, thread_switch.
9023
9024         * configure.in (base_machine): Set to $machine by default.
9025         * configure: Regenerated.
9026
9027         * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
9028         or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
9029         * sysdeps/mach/configure: Regenerated.
9030         * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
9031
9032         * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
9033
9034         * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
9035
9036         * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
9037         Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
9038
9039 2002-02-17  Roland McGrath  <roland@frob.com>
9040
9041         * sysdeps/mach/hurd/times.c
9042         [NO_CREATION_TIME] (startup_time): New static variable.
9043         [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
9044         (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
9045         creation_time from task_basic_info.
9046         (__times): Use __gettimeofday instead of __host_get_time.
9047
9048         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
9049         Use untyped Mach IPC message format.
9050
9051         * hurd/catch-exc.c: Include <assert.h>, missing from last change.
9052
9053         * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
9054         _S_catch_exception_raise_state_identity,
9055         _hurdsig_fault_catch_exception_raise_state,
9056         _hurdsig_fault_catch_exception_raise_state_identity.
9057
9058         * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
9059
9060         * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
9061         __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
9062
9063         * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
9064         `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
9065
9066         * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
9067         (fmh, unfmh): Define these functions only #if FMH.  Otherwise define
9068         them as no-op macros.
9069         [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
9070         (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
9071
9072         * sysdeps/powerpc/dl-machine.h
9073         (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
9074
9075         * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
9076         Use untyped Mach IPC message format.
9077
9078         * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
9079         Handle untyped Mach IPC message formats.
9080
9081         * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
9082         Expect different argument conventions when this is defined.
9083         [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
9084         [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
9085         * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
9086         [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
9087         for OSF Mach variant.
9088         (faulted): Use mig_reply_error_t for REPLY.
9089         (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
9090         in __thread_set_exception_ports call.
9091         (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
9092         __mach_port_set_attributes in place of __mach_port_set_qlimit.
9093
9094         * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
9095         before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
9096         on Darwin, which includes bogons.
9097
9098         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
9099         variable LOADBASE so it's not declared when it's not used.
9100
9101 2002-02-16  Roland McGrath  <roland@frob.com>
9102
9103         * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
9104         to use BI.creation_time.
9105
9106         * mach/Machrules (MIG): Add -x c to CPP value passed down.
9107
9108         * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
9109         * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
9110         * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
9111         host_page_size instead of vm_statistics.
9112
9113         * sysdeps/mach/Makefile (mach-before-compile): Don't include
9114         mach_interface.h here, since not all variants use that name.
9115
9116         * sysdeps/mach/configure.in: Add some checks for Mach headers
9117         to ensure a sane installation.
9118         (mach_interface_list): Define this variable by checking for .defs
9119         files found in various variants.
9120         * configure.in (mach_interface_list): AC_SUBST this.
9121         * config.make.in (mach-interface-list): New substituted variable.
9122         * mach/Makefile (user-interfaces): Define this using the value
9123         of $(mach-interface-list) instead of mach, mach4.
9124         Updated other references to mach_interface to use it as well.
9125
9126         * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
9127
9128         * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
9129         mig_reply_error_t for OSF Mach variant.
9130
9131         * mach/Makefile (routines): Remove bootprivport.
9132         * mach/bootprivport.c: File removed.  It has never been used.
9133
9134         * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
9135         Grok the OSF flavor of message format.
9136         (mach_msg_destroy_port): For MAKE_SEND and
9137         MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
9138         no-senders notification.
9139
9140 2002-02-06  Roland McGrath  <roland@frob.com>
9141
9142         * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
9143         to here if 2.0 compatibility enabled ...
9144         (libc: GLIBC_2.1.3): ... from here.
9145
9146 2002-02-15  Ulrich Drepper  <drepper@redhat.com>
9147
9148         * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
9149         generation counter.
9150         * elf/dl-close.c (_dl_close): Likewise.
9151
9152 2002-02-14  Ulrich Drepper  <drepper@redhat.com>
9153
9154         * elf/Makefile: Add rules to build and run tst-tls8.
9155         * elf/tst-tls8.c: New file.
9156         * elf/tst-tlsmod4.c: New file.
9157
9158         * stdlib/test-a64l.c (tests): Add more test cases.
9159
9160         * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
9161         Reported by Walter Harms <WHarms@bfs.de>.
9162
9163 2002-02-11  Jes Sorensen  <jes@trained-monkey.org>
9164
9165         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
9166         definitions for struct sigcontext.
9167         Suggested by David Mosberger-Tang.
9168
9169 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
9170
9171         * elf/dl-close.c (remove_slotinfo): New function.  Handles everything
9172         for removing reference of module in slotinfo list.
9173         (_dl_close): Use remove_slotinfo.
9174         * sysdeps/generic/dl-tls.c: General pretty printing.
9175         (oom): Define only if SHARED.
9176         (_dl_next_tls_modid): Correct starting point for the case we assume
9177         there is a gap.  Add missing instruction grouping (doh!).  Correct
9178         tests for reaching maximum index.
9179         * elf/Makefile: Add rules to build and run tst-tls7.
9180         * elf/tst-tls7.c: New file.
9181         * elf/tst-tlsmod3.c: New file.
9182
9183         * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
9184         USE_TLS.
9185         * elf/tst-tlsmod2.c: Likewise.
9186
9187         * elf/dl-close.c (_dl_close): When closing an object using TLS
9188         either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
9189         true.  Increment dl_tls_generation only if we closed any TLS-using
9190         object.
9191         * elf/tst-tls6.c: New file.
9192         * elf/Makefile: Add rules to build and run tst-tls6.
9193
9194         * po/da.po: Update from translation team.
9195
9196         * locale/categories.def: Fix typo [PR libc/2948].
9197         * po/Makefile (BROKEN_LINGUAS): Works with current gettext
9198         [PR libc/2949].
9199         * locale/iso-4217.def: Update from official version [PR libc/2950].
9200         * glibcbug.in: Honor TMPDIR [PR libc/2951].
9201         * locale/programs/ld-collate.c (collate_finish): Bail out with a
9202         message if input is too confusion instead of using assert.
9203         (collate_read): Don't crash on unknown symbol [PR libc/2952].
9204         Patches by Alastair McKinstry <alastair@pdd.3com.com>.
9205
9206         * elf/tst-tls1.c: Move #include "tls-macros.h" inside #ifdef USE_TLS.
9207         * elf/tst-tls2.c: Likewise.
9208         * elf/tst-tls3.c: Likewise.
9209
9210 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
9211
9212         * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
9213
9214 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
9215
9216         * elf/dl-open.c (dl_open_worker): Only bump the generation counter
9217         if this is really necessary.
9218
9219         * elf/dl-close.c (_dl_close): Implement freeing entries in the
9220         slotinfo array.
9221         (free_mem): Free memory for the slotinfo array if possible.
9222
9223 2002-02-12  Andreas Schwab  <schwab@suse.de>
9224
9225         * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
9226
9227 2002-02-12  Ulrich Drepper  <drepper@redhat.com>
9228
9229         * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
9230         TLS_DTV_UNALLOCATE.
9231         (oom): New function.
9232         (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
9233         (_dl_determine_tlsoffset): Likewise.
9234         (_dl_allocate_tls): Likewise.
9235         (__TLS_GET_ADDR): Define if not already defined.
9236         (_dl_tls_symaddr): New function.
9237         (allocate_and_init): New function.
9238         (__tls_get_addr): Actually implement handling of generation counter
9239         and deferred allocation.
9240         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
9241         add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9242         _dl_tls_generation.
9243         Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
9244         Declare _dl_tls_symaddr.
9245         * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
9246         SHARED.
9247         * include/link.h (struct link_map):  Remove l_tls_nextimage and
9248         l_tls_previmage.
9249         * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
9250         instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
9251         (_dl_vsym): Likewise.
9252         * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
9253         layout.
9254         (dl_main): Allow PT_TLS be present for empty segment.  Remove
9255         nextimage list handling.  Instead add all modules using TLS to
9256         dl_tls_dtv_slotinfo_list.
9257         * elf/dl-open.c (dl_open_worker): After successfully loading all
9258         objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
9259         * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
9260         empty segment don't do anything.  Remove handling of initimage list.
9261         * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
9262         (GLIBC_PRIVATE): Add _dl_tls_symaddr.
9263         * elf/dl-minimal.c: Define __libc_memalign.
9264         * elf/dl-support.c: Remove _dl_initimage_list.  Add
9265         _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9266         _dl_tls_generation.
9267         * include/stdlib.h: Declare __libc_memalign.
9268
9269         * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
9270         * elf/tst-tls4.c: New file.
9271         * elf/tst-tls5.c: New file.
9272         * elf/tst-tlsmod2.c: New file.
9273
9274         * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
9275
9276         * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
9277
9278         * elf/tst-tls1.c: Use test-skeleton.c.
9279         * elf/tst-tls2.c: Likewise.
9280         * elf/tst-tls3.c: Likewise.
9281
9282         * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
9283
9284 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
9285
9286         * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
9287
9288 2002-02-10  Ulrich Drepper  <drepper@redhat.com>
9289
9290         * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
9291
9292         * elf/tst-tls3.c: New file.
9293         * elf/tst-tlsmod1.c: New file.
9294         * elf/Makefile: Add rules to build and run tst-tls3.
9295
9296         * sysdeps/i386/dl-machine.h: Include <tls.h>.
9297         (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
9298         TLS relocations.
9299
9300         * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
9301
9302         * po/fr.po: Update from translation team.
9303
9304         * elf/tls-macros.h: Add alternative macros for use in PIC.
9305
9306         * elf/dl-lookup.c: Include <tls.h>.
9307         * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
9308
9309         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
9310         required by passing pointer to last element of the list.
9311
9312         * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
9313         l_tls_initimage to a place where it actually is performed.
9314
9315         * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
9316         after globfree() calls.
9317
9318         * elf/dl-deps.c (struct openaux_args): Add open_mode element.
9319         (openaux): Pass open_mode as new last argument to _dl_map_object.
9320         (_dl_map_object_deps): Add new argument open_mode.  Initialize
9321         open_mode element of args variable with it.
9322         * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
9323         _dl_map_object_deps.
9324         * elf/rtld.c (dl_main): Add zero as last parameter to
9325         _dl_map_object_deps call.
9326         * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
9327         * elf/nodlopen2.c: New file.
9328         * elf/nodlopenmod2.c: New file.
9329         * elf/Makefile: Add rules to build and run nodlopen2.
9330
9331         * elf/tst-tls1.c: Move TLS helper macros to...
9332         * elf/tls-macros.h: ...here.  New file.
9333         * elf/tst-tls2.c: New file.
9334         * elf/Makefile (tests): Add tst-tls2.
9335         (distribute): Add tls-macros.h.
9336
9337         * po/sv.po: Update from translation team.
9338
9339         * elf/tst-tls1.c (main): Add complete set of tests.  Split
9340         architecture specific definitions from the actual test code.
9341
9342         * po/tr.po: Update from translation team.
9343
9344 2002-02-09  Ulrich Drepper  <drepper@redhat.com>
9345
9346         * elf/Makefile (tests): Add tst-tls1.
9347         * elf/tst-tls1.c: New file.
9348
9349         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
9350         alignment of TCB for now.
9351
9352         * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
9353         initialization image for the application itself.
9354
9355         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
9356         loop to initialize TLS block.
9357
9358 2002-02-08  Richard Henderson  <rth@redhat.com>
9359
9360         * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
9361         _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
9362
9363         * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
9364
9365 2002-02-09  Jakub Jelinek  <jakub@redhat.com>
9366
9367         * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
9368
9369 2002-02-08  Ulrich Drepper  <drepper@redhat.com>
9370
9371         * po/ca.po: Update from translation team.
9372         * po/sk.po: Likewise.
9373
9374         * elf/rtld.c (_dl_start_final): Install DTV explicitly.
9375         (dl_main): Move dtv/static TLS handling before relocation.
9376         Unconditionally call _dl_tlsoffset.  Call _dl_allocate_tls and
9377         TLS_INIT_TP to allocate and install the dtv/static TLS block.
9378         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
9379         so far uses TLS initialize GL(dl_tls_static_size) and
9380         GL(dl_tls_static_align) to account for the TCB.
9381         (_dl_allocate_tls): New function.
9382         * sysdeps/generic/ldsodefs.h (rtld_global): Add
9383         _dl_initial_dtv_malloced.
9384
9385         * configure.in: Test for __builtin_memset more realistically.
9386
9387         * csu/version.c (banner): If TLS support is available say so.
9388
9389 2002-02-04  H.J. Lu  <hjl@gnu.org>
9390
9391         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
9392         __attribute_used__.
9393         (__dl_runtime_resolve): Likewise.
9394
9395         * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
9396         declaration.
9397
9398 2001-11-15  H.J. Lu  <hjl@gnu.org>
9399
9400         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
9401         <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
9402
9403         * sysdeps/unix/sysv/linux/mips/sys/user.h: New file.
9404
9405 2002-02-07  H.J. Lu  <hjl@gnu.org>
9406
9407         * sysdeps/mips/atomicity.h (compare_and_swap): Remove
9408         ".set noreorder".
9409         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
9410         Likewise.
9411
9412 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9413
9414         * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
9415
9416         * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
9417         ___tls_get_addr_internal.
9418         (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
9419
9420         * po/ko.po: Update from translation team.
9421
9422 2002-02-07  Jakub Jelinek  <jakub@redhat.com>
9423
9424         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
9425         attribute, change __pad{1,2} type to unsigned int.
9426         (struct stat64): Remove packed attribute.
9427
9428 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9429
9430         * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
9431
9432 2002-02-07  Andreas Schwab  <schwab@suse.de>
9433
9434         * configure.in: Fix check for -zcombreloc.
9435
9436 2002-02-06  H.J. Lu  <hjl@gnu.org>
9437
9438         * config.h.in (HAVE_BUILTIN_MEMSET): New macro.
9439         * configure.in: Check if __builtin_memset really works.
9440         * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
9441         __GNUC_PREREQ (2, 96) before using __builtin_memset.
9442
9443 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
9444
9445         * io/bug-ftw3.c (main): Don't try the test if root.
9446
9447 2002-02-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9448
9449         * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
9450         constraints.
9451         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
9452         Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
9453         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
9454         Likewise.
9455         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
9456         a weak alias for __clone.
9457         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
9458         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
9459         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
9460         * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
9461         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
9462         a weak alias for __mmap64.
9463
9464 2002-02-05  H.J. Lu  <hjl@gnu.org>
9465
9466         * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
9467         (atomic_add): Likewise.
9468         (compare_and_swap): Likewise.
9469         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
9470
9471 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9472
9473         * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
9474
9475         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
9476         alignment of the TCB and store total size and alignment of static
9477         TLS block in _dl_tls_static_size and _dl_tls_static_align.
9478         tls_index is a typedef.
9479         * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
9480         _dl_tls_static_align.
9481         * sysdeps/i386/dl-tls.h: tls_index is a typedef.
9482         * elf/dl-support.c: Define _dl_tls_static_size and
9483         _dl_tls_static_align.
9484
9485 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9486
9487         * configure.in: Add --without-tls option.
9488         * sysdeps/i386/elf/configure.in: Don't check for TLS support if
9489         --without-tls is given.
9490
9491         * sysdeps/generic/dl-tls.c: Include <tls.h>.
9492
9493         * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
9494
9495 2002-02-06  Roland McGrath  <roland@frob.com>
9496
9497         * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
9498         * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
9499
9500         * scripts/versions.awk: Improve error message for missing version.
9501         Each version inherits from the last one only if they have the same
9502         nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
9503         but not GLIBC_x and FOO_y.
9504
9505         * scripts/firstversions.awk: Handle libraries that don't have each
9506         particular version named in the third column of shlib-versions.
9507
9508         * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
9509
9510 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9511
9512         * Versions.def [ld]: Add GLIBC_2.3.
9513         * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
9514         * elf/Makefile (dl-routines): Add dl-tls.
9515         (distribute): Add dl-tls.h.
9516         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9517         _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9518         Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
9519         * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
9520         along with the other info in the link map.  Change queueing of init
9521         images for double linked list.  Use _dl_next_tls_modid to compute
9522         l_tls_modid.
9523         * elf/rtld.c (_dl_start_final): Store alignment requirement
9524         along with the other info in rtld map and executable map.
9525         (dl_main): Add ld.so to the init image list if necessary.  Compute
9526         final module ID with _dl_next_tls_modid.
9527         * include/link.h (struct link_map): Add l_tls_previmage and
9528         l_tls_align.
9529         * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9530         * sysdeps/i386/elf/Versions: New file.
9531         * sysdeps/generic/dl-tls.c: New file.
9532         * sysdeps/generic/dl-tls.h: New file.
9533         * sysdeps/i386/dl-tls.h: New file.
9534
9535 2002-02-06  Roland McGrath  <roland@frob.com>
9536
9537         * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
9538         * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
9539
9540 2002-01-05  Roland McGrath  <roland@frob.com>
9541
9542         * sysdeps/mach/configure.in: New file.
9543         * sysdeps/mach/configure: New generated file.
9544
9545         * mach/Makefile (user-interfaces): Remove default_pager_helper.
9546         It has never been used by anything.
9547
9548 2002-02-06  H.J. Lu  <hjl@gnu.org>
9549
9550         * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
9551         is included.
9552
9553 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9554
9555         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
9556         attribute((packed)) to counter stupid people misusing gcc options.
9557         (struct stat64): Likewise.
9558
9559 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9560
9561         * elf/rtld.c (dl_main): Correct indentation.  Use bool as type for
9562         the variables which are used as booleans.
9563
9564 2002-02-06  Andreas Jaeger  <aj@suse.de>
9565
9566         * include/libc-symbols.h (INTUSE): Renamed from INT.
9567         * elf/dl-deps.c: Change users.
9568         * sysdeps/generic/dl-sysdep.c: Likewise.
9569         * sysdeps/generic/dl-cache.c: Likewise.
9570         * elf/dl-reloc.c: Likewise.
9571         * elf/rtld.c: Likewise.
9572         * elf/dl-version.c: Likewise.
9573         * elf/dl-load.c: Likewise.
9574         * elf/dl-dst.h: Likewise.
9575         * elf/dl-init.c: Likewise.
9576         * elf/dl-error.c: Likewise.
9577         * elf/dl-fini.c: Likewise.
9578         * elf/dl-runtime.c: Likewise.
9579         * elf/do-lookup.h: Likewise.
9580
9581         * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
9582         definition.
9583         * stdio-common/_itowa.h: Likewise.
9584
9585 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9586
9587         * elf/dl-minimal.c: Define _itoa_lower_digits.
9588
9589         * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
9590         DT_FLAGS set.
9591
9592         * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
9593         loading modules with the DF_STATIC_TLS flag set.
9594         * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
9595         element.
9596         * include/link.h (struct link_map): Add l_flags field.
9597         * elf/elf.h (DF_STATIC_TLS): New definition.
9598
9599         * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
9600         * dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.
9601
9602         * elf/rtld.c (process_dl_debug): Correct printing help message.
9603         * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
9604         for %s.
9605
9606         * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
9607         definition and pass &errno in use of this variable.
9608         Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
9609
9610 2002-02-04  Andreas Schwab  <schwab@suse.de>
9611
9612         * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
9613         * locale/programs/charmap-dir.c: Wrap calls that output messages
9614         with WITH_CUR_LOCALE.  Include "localedef.h" first.
9615         * locale/programs/charmap.c: Likewise.
9616         * locale/programs/ld-address.c: Likewise.
9617         * locale/programs/ld-collate.c: Likewise.
9618         * locale/programs/ld-ctype.c: Likewise.
9619         * locale/programs/ld-identification.c: Likewise.
9620         * locale/programs/ld-measurement.c: Likewise.
9621         * locale/programs/ld-messages.c: Likewise.
9622         * locale/programs/ld-monetary.c: Likewise.
9623         * locale/programs/ld-name.c: Likewise.
9624         * locale/programs/ld-numeric.c: Likewise.
9625         * locale/programs/ld-paper.c: Likewise.
9626         * locale/programs/ld-telephone.c: Likewise.
9627         * locale/programs/ld-time.c: Likewise.
9628         * locale/programs/linereader.c: Likewise.
9629         * locale/programs/linereader.h: Likewise.
9630         * locale/programs/localedef.c: Likewise.
9631         * locale/programs/locfile.c: Likewise.
9632         * locale/programs/repertoire.c: Likewise.
9633
9634 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9635
9636         * elf/rtld.c (_dl_start_final): Determine load address to locate
9637         ehdr with GL(dl_rtld_map).l_map_start.
9638
9639         * po/ca.po: Update from translation team.
9640
9641         * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
9642         * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
9643         header entry.
9644         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
9645         _dl_tls_module_cnt.
9646         * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
9647
9648 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
9649
9650         * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
9651         * include/link.h (struct link_map): Add various members for TLS
9652         information.
9653         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9654         _rtld_tlsoffset, add _dl_initimage_list.
9655         * sysdeps/i386/dl-lookupcfg.h: New file.
9656         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
9657         TLS relocation.  When using TLS we now use RESOLVE_MAP.
9658         (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
9659         is used.
9660
9661         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
9662         unused.
9663
9664         * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
9665         thread-pointer as soon as possible.
9666         * sysdeps/generic/ldsodefs.h: Include <tls.h>.  Define first TLS
9667         elements in rtld_global.
9668         * sysdeps/generic/tls.h: New file.
9669         * elf/Makefile (distribute): Add tls.h.
9670         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
9671         relocations.  Not complete yet.
9672
9673         * resolv/resolv.h: Allow user to define __need_res_state and only
9674         define __res_start structure then.
9675         * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
9676
9677         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
9678         dl_cpuclock_offset initialization to _dl_start_final.
9679         (_dl_show_auxv): Avoid unnecessary sign extension.
9680         * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
9681
9682 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
9683
9684         * config.h.in: Add HAVE_TLS_SUPPORT.
9685         * sysdeps/i386/elf/configure.in: New file.
9686
9687 2002-02-03  Andreas Schwab  <schwab@suse.de>
9688
9689         * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
9690         * sysdeps/posix/writev.c: Use ssize_t for bytes_written.  Fix comment.
9691
9692 2002-02-03  Thorsten Kukuk  <kukuk@suse.de>
9693
9694         * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
9695         alloca if the memory reqirements are too high.
9696
9697 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
9698
9699         * elf/dl-load.c (decompose_rpath): Avoid using strstr.
9700         * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
9701         the former is available anyway and speed isn't important here.
9702         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
9703         * elf/dl-version.c (match_symbol): Likewise.
9704         (_dl_check_map_versions): Likewise.
9705         * elf/rtld.c (process_envvars): Likewise.
9706         (print_statistics): Likewise.
9707         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
9708         * elf/dl-minimal.c (_itoa): Always define it.  Make it work for all
9709         bases.  Add assert to catch uses of unimplemented features.
9710         (__strsep): Add assert to catch uses of unimplemented features.
9711         * elf/dl-object.c (_dl_new_object): Don't use rawmemchr.  Use strchr
9712         and avoid inline optimization.
9713         * elf/rtld.c (process_envvars): Likewise.
9714         * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
9715         * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
9716         * elf/rtld.c (dl_main): Avoid strsep inline optimization.
9717
9718 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
9719
9720         * stdio-common/_itoa.h: Minor simplifications of the code.
9721         * stdio-common/_itoa.c: Likewise.
9722
9723         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
9724         instead of _dl_printf for debugging info output.
9725
9726         * manual/examples/mkfsock.c (make_named_socket): Make sure name is
9727         always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.
9728
9729 2002-02-01  H.J. Lu  <hjl@gnu.org>
9730
9731         * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
9732         (atomic_add): Likewise.
9733         (compare_and_swap): Return 0 only when failed to compare. Use
9734         branch likely.
9735
9736         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
9737         branch likely.
9738
9739 2002-02-03  kaz Kojima  <kkojima@rr.iij4u.or.jp>
9740
9741         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
9742
9743 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
9744
9745         * elf/dl-minimal.c (__strsep): New minimal implementation.
9746
9747 2002-02-02  Paul Eggert  <eggert@twinsun.com>
9748
9749         * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
9750         (__mktime_internal): If no tm_isdst is requested, prefer solutions
9751         with tm_isdst > 0 when the requested time falls within a
9752         spring-forward gap [PR libc/2894].
9753
9754 2002-02-03  Andreas Schwab  <schwab@suse.de>
9755
9756         * stdio-common/tst-rndseek.c: Increase timeout.
9757
9758 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
9759
9760         Change ld.so to not use functions which are exported.  One cannot
9761         interpose them anyway.  Use INT() to mark uses, INTDEF() to mark
9762         definitions.
9763         * include/libc-symbols.h: Define INT and INTDEF.
9764         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
9765         _dl_signal_error_internal, _dl_map_object_internal,
9766         _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
9767         _dl_lookup_versioned_symbol_internal,
9768         _dl_relocate_object_internal, _dl_debug_state_internal,
9769         _dl_start_profile_internal, and _dl_unload_cache_internal.
9770         * include/dlfcn.h: Declare _dl_catch_error_internal.
9771         * elf/rtld.c: Use INT for calls to any of the *_internal functions
9772         above.  Add INTDEF to function definitions.
9773         * elf/dl-debug.c: Likewise.
9774         * elf/dl-deps.c: Likewise.
9775         * elf/dl-dst.h: Likewise.
9776         * elf/dl-error.c: Likewise.
9777         * elf/dl-fini.c: Likewise.
9778         * elf/dl-init.c: Likewise.
9779         * elf/dl-load.c: Likewise.
9780         * elf/dl-lookup.c: Likewise.
9781         * elf/dl-misc.c: Likewise.
9782         * elf/dl-open.c: Likewise.
9783         * elf/dl-profile.c: Likewise.
9784         * elf/dl-reloc.c: Likewise.
9785         * elf/dl-runtime.c: Likewise.
9786         * elf/dl-version.c: Likewise.
9787         * elf/do-lookup.h: Likewise.
9788         * sysdeps/generic/dl-cache.c: Likewise.
9789         * sysdeps/generic/dl-sysdep.c: Likewise.
9790         * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
9791         instead of _dl_init.
9792         * sysdeps/arm/dl-machine.h: Likewise.
9793         * sysdeps/cris/dl-machine.h: Likewise.
9794         * sysdeps/hppa/dl-machine.h: Likewise.
9795         * sysdeps/i386/dl-machine.h: Likewise.
9796         * sysdeps/ia64/dl-machine.h: Likewise.
9797         * sysdeps/m68k/dl-machine.h: Likewise.
9798         * sysdeps/mips/dl-machine.h: Likewise.
9799         * sysdeps/mips/mips64/dl-machine.h: Likewise.
9800         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9801         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9802         * sysdeps/sh/dl-machine.h: Likewise.
9803         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9804         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9805         * sysdeps/x86_64/dl-machine.h: Likewise.
9806         * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
9807
9808         * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
9809         and _dl_debug_initialize.
9810
9811         * elf/dl-object.c (_dl_new_object): Avoid using strrchr.  We have
9812         more information.
9813         * elf/rtld.c (dl_main): Avoid strrchr.
9814         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
9815         result of readlink.  Search from the back for '/'.
9816
9817         * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
9818         strncpy if possible.
9819
9820         * sysdeps/generic/dl-environ.c (unsetenv): Optimize.  Don't use
9821         strncmp.
9822         * elf/dl-load.c (is_dst): Optimize.  Don't call strncmp twice.
9823         * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
9824         strspn, and strcspn.
9825         (process_envvars): Don't use strcspn.
9826
9827         * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
9828         (_dl_dst_substitute): Likewise.
9829
9830 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9831
9832         * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
9833         code which is never used when relocating ld.so itself.
9834
9835         * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
9836         starting ld.so itself.  Move l_addr variable initialization closer
9837         to use.
9838         (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
9839
9840 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
9841
9842         * Versions.def (libc): Add GLIBC_PRIVATE.
9843         (libdb, libnss_db, libdb1): Remove.
9844         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
9845         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
9846         (libpthread): Add GLIBC_PRIVATE.
9847         (libresolv): Likewise, remove GLIBC_2.1.
9848         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
9849         GLIBC_2.2.3, GLIBC_2.3.
9850         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
9851         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
9852         _dl_sym, _dl_vsym): Likewise.
9853         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
9854         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
9855         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
9856         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
9857         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
9858         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
9859         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
9860         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
9861         Likewise.
9862         (_dl_object_relocation_scope): Remove.
9863         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
9864         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
9865         __gconv_cache): Move to GLIBC_PRIVATE.
9866         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
9867         __internal_setnetgrent): Likewise.
9868         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
9869         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
9870         * locale/Versions (__collate_element_hash, __collate_element_strings,
9871         __collate_symbol_classes, __collate_symbol_hash,
9872         __collate_symbol_strings, _nl_current_LC_COLLATE,
9873         _nl_current_LC_CTYPE): Likewise.
9874         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
9875         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
9876         (libnss_nis, libnss_nisplus): Likewise.
9877         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
9878         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
9879         (libnss_files): Move all symbols to GLIBC_PRIVATE.
9880         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
9881         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
9882         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
9883         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
9884         __ns_get16, __ns_samename): Likewise.
9885         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
9886         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
9887         GLIBC_PRIVATE.
9888         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
9889         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
9890         __libc_connect): Likewise.
9891         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
9892         Likewise.
9893         * stdlib/Versions (__libc_system): Likewise.
9894         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
9895         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
9896         * sysdeps/ia64/fpu/Versions: Likewise.
9897         * sysdeps/ia64/Versions: Likewise.
9898         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
9899         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
9900         to GLIBC_PRIVATE.
9901         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
9902         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
9903         __libc_sigaction): Likewise.
9904         * termios/Versions (__libc_tcdrain): Likewise.
9905
9906         * misc/sys/cdefs (__attribute_noinline__): Define.
9907         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
9908         __attribute_noinline__.
9909
9910         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
9911         * elf/dl-xstat64.c: New file.
9912         * elf/dl-fxstat64.c: New file.
9913         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
9914         don't export __fxstat64 at multiple versions.
9915         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
9916         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
9917
9918 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
9919
9920         * locale/program/ld-collate.c (collate_finish): Assign a wide
9921         char collation sequence value to multi character collating
9922         elements, and avoid over writing by non-character elements.
9923
9924 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9925
9926         * elf/Makefile (distribute): Add dl-procinfo.c.
9927         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
9928         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
9929
9930 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
9931
9932         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
9933         definition.
9934         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
9935         _rtld_global struct.
9936         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
9937         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
9938         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9939         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
9940         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
9941         _dl_fpu_control_set): Remove unused externs.
9942         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
9943         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
9944         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
9945         related variables in _rtld_global struct.
9946         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
9947         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
9948         unused extern.
9949
9950 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9951
9952         * sysdeps/generic/dl-procinfo.c: New file.
9953
9954 2002-02-01  Andreas Schwab  <schwab@suse.de>
9955
9956         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
9957
9958 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9959
9960         * elf/rtld.c (_dl_start): Mark as internal_function.
9961         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
9962         in register.
9963         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
9964         General pretty printing.
9965
9966 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
9967
9968         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
9969         * elf/dl-reloc.c: Pretty printing.
9970         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
9971         procinfo-related variables in rtld_global struct.
9972         * elf/dl-support.c: Likewise.
9973         * elf/rtld.c: Likewise.
9974         * sysdeps/i386/i686/Makefile: Likewise.
9975         * sysdeps/i386/i686/hp-timing.c: Likewise.
9976         * sysdeps/i386/i686/hp-timing.h: Likewise.
9977         * sysdeps/ia64/Makefile: Likewise.
9978         * sysdeps/ia64/hp-timing.c: Likewise.
9979         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
9980         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
9981         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
9982         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
9983         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
9984         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
9985         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
9986         * sysdeps/x86_64/Makefile: Likewise.
9987
9988         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
9989         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
9990         _dl_debug_fd to rtld_global.
9991         * elf/Versions: Likewise.
9992         * elf/dl-close.c: Likewise.
9993         * elf/dl-iteratephdr.c: Likewise.
9994         * elf/dl-lookup.c: Likewise.
9995         * elf/dl-misc.c: Likewise.
9996         * elf/dl-open.c: Likewise.
9997         * elf/dl-support.c: Likewise.
9998         * elf/do-lookup.h: Likewise.
9999         * elf/rtld.c: Likewise.
10000         * sysdeps/generic/dl-cache.c: Likewise.
10001         * sysdeps/generic/dl-sysdep.c: Likewise.
10002         * sysdeps/ia64/Versions: Likewise.
10003         * sysdeps/unix/clock_gettime.c: Likewise.
10004         * sysdeps/unix/clock_settime.c: Likewise.
10005         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
10006         * sysdeps/sparc/Versions: Removed.
10007         * sysdeps/i386/i686/Versions : Removed.
10008         * sysdeps/x86_64/Versions: Removed.
10009         * configure.in: Define HAVE_PROTECTED if .protected is available.
10010         * config.h.in: Add entry for HAVE_PROTECTED.
10011
10012 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
10013
10014         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
10015         code in struct _rtld_global.  Export this struct, remove all
10016         exports for the signal variables.
10017         * sysdeps/arm/dl-machine: Likewise.
10018         * sysdeps/generic/dl-origin: Likewise.
10019         * sysdeps/generic/dl-sysdep: Likewise.
10020         * sysdeps/generic/dl-cache: Likewise.
10021         * sysdeps/hppa/dl-fptr: Likewise.
10022         * sysdeps/hppa/dl-machine: Likewise.
10023         * sysdeps/cris/dl-machine: Likewise.
10024         * sysdeps/i386/dl-machine: Likewise.
10025         * sysdeps/ia64/dl-machine: Likewise.
10026         * sysdeps/m68k/dl-machine: Likewise.
10027         * sysdeps/mach/hurd/dl-sysdep: Likewise.
10028         * sysdeps/mips/mips64/dl-machine: Likewise.
10029         * sysdeps/mips/dl-machine: Likewise.
10030         * sysdeps/powerpc/elf/libc-start: Likewise.
10031         * sysdeps/powerpc/dl-machine: Likewise.
10032         * sysdeps/powerpc/dl-start: Likewise.
10033         * sysdeps/sparc/sparc32/dl-machine: Likewise.
10034         * sysdeps/sparc/sparc64/dl-machine: Likewise.
10035         * sysdeps/sh/dl-machine: Likewise.
10036         * sysdeps/s390/s390-32/dl-machine: Likewise.
10037         * sysdeps/s390/s390-64/dl-machine: Likewise.
10038         * sysdeps/unix/sysv/aix/libc-start: Likewise.
10039         * sysdeps/unix/sysv/aix/start-libc: Likewise.
10040         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
10041         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
10042         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
10043         * sysdeps/x86_64/dl-machine: Likewise.
10044
10045 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
10046
10047         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
10048         are too high.
10049
10050 2002-01-31  Andreas Schwab  <schwab@suse.de>
10051
10052         * sysdeps/posix/readv.c: Check for ssize_t overflow.
10053
10054 2002-01-31  Andreas Schwab  <schwab@suse.de>
10055
10056         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
10057         reference to _dl_pagesize.
10058
10059 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
10060
10061         * Versions.def [ld]: Add GLIBC_2.3.
10062         * elf/dl-addr.c: Move global variables for SHARED code in struct
10063         _rtld_global.  Export this struct, remove all exports for the
10064         signal variables.
10065         * elf/dl-close.c: Likewise.
10066         * elf/dl-conflict.c: Likewise.
10067         * elf/dl-debug.c: Likewise.
10068         * elf/dl-deps.c: Likewise.
10069         * elf/dl-dst.h: Likewise.
10070         * elf/dl-error.c: Likewise.
10071         * elf/dl-fini.c: Likewise.
10072         * elf/dl-init.c: Likewise.
10073         * elf/dl-iteratephdr.c: Likewise.
10074         * elf/dl-libc.c: Likewise.
10075         * elf/dl-load.c: Likewise.
10076         * elf/dl-lookup.c: Likewise.
10077         * elf/dl-minimal.c: Likewise.
10078         * elf/dl-object.c: Likewise.
10079         * elf/dl-open.c: Likewise.
10080         * elf/dl-profile.c: Likewise.
10081         * elf/dl-profstub.c: Likewise.
10082         * elf/dl-reloc.c: Likewise.
10083         * elf/dl-runtime.c: Likewise.
10084         * elf/dl-support.c: Likewise.
10085         * elf/dl-sym.c: Likewise.
10086         * elf/dl-version.c: Likewise.
10087         * elf/do-lookup.h: Likewise.
10088         * elf/do-rel.h: Likewise.
10089         * elf/dynamic-link.h: Likewise.
10090         * elf/rtld.c: Likewise.
10091         * sysdeps/generic/dl-cache.c: Likewise.
10092         * sysdeps/generic/dl-sysdep.c: Likewise.
10093         * sysdeps/generic/ldsodefs.h: Likewise.
10094         * sysdeps/generic/libc-start.c: Likewise.
10095         * sysdeps/i386/dl-machine.h: Likewise.
10096         * sysdeps/ia64/dl-fptr.c: Likewise.
10097         * sysdeps/ia64/dl-machine.h: Likewise.
10098         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
10099         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
10100         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
10101         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
10102         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
10103         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
10104         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
10105         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
10106
10107 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
10108
10109         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
10110         to avoid warning
10111         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
10112
10113         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
10114         SHARED version.
10115         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
10116
10117         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
10118
10119 2002-01-29  Ben Collins  <bcollins@debian.org>
10120
10121         * string/bits/string2.h (__mempcpy): Protect size arg for
10122         addition when using __builtin_memcpy.
10123
10124 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
10125
10126         * stdlib/Makefile (tests): Add tst-qsort.
10127         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
10128
10129         * manual/signal.texi (Process Signal Mask): Document that
10130         pthread_sigmask, not sigprocmask, must be used in MT programs.
10131         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
10132
10133         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
10134         found.
10135         * misc/Makefile (tests): Add tst-hsearch.
10136         * misc/tst-hsearch.c: New file.
10137
10138 2002-01-18  Wolfram Gloger  <wg@malloc.de>
10139
10140         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
10141         * malloc/malloc.h: Likewise.
10142         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
10143         * malloc/arena.c: New file.
10144         * malloc/hooks.c: New file.
10145         * malloc/tst-mallocstate.c: New file.
10146         * malloc/Makefile: Add new testcase tst-mallocstate.
10147         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
10148
10149 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
10150
10151         * stdlib/msort.c: Remove last patch.  The optimization violates the
10152         same rule which qsort.c had problems with.
10153
10154 2002-01-27  Paul Eggert  <eggert@twinsun.com>
10155
10156         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
10157         to a pivot element that lies outside the array to be sorted, as
10158         ISO C99 requires that the comparison function be called only with
10159         addresses of array elements [PR libc/2880].
10160
10161 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
10162
10163         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
10164         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
10165
10166         * timezone/asia: Update from tzdata2002b.
10167         * timezone/australasia: Likewise.
10168         * timezone/backward: Likewise.
10169         * timezone/europe: Likewise.
10170         * timezone/leapseconds: Likewise.
10171         * timezone/iso3166.tab: Likewise.
10172         * timezone/zone.tab: Likewise.
10173
10174 2002-01-23  Richard Henderson  <rth@redhat.com>
10175
10176         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
10177
10178 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
10179
10180         * string/strxfrm.c: Allocate one more byte for rulearr and clear
10181         this element [PR libc/2855].
10182
10183         * string/strcoll.c: Handle zero-length arguments specially
10184         [PR libc/2856].
10185
10186 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
10187
10188         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
10189         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
10190         short lengths and constant src.
10191         (strcpy): Don't optimize for gcc 3.0+.
10192         (__stpcpy): For gcc 3.0+, don't use
10193         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
10194         for short string literal src.
10195
10196 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
10197
10198         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
10199         Set for arm, too.
10200
10201 2001-01-22  Paul Eggert  <eggert@twinsun.com>
10202
10203         * manual/llio.texi (Linked Channels, Cleaning Streams):
10204         Make it clearer that a just-opened input stream might need cleaning.
10205
10206 2002-01-21  H.J. Lu  <hjl@gnu.org>
10207
10208         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
10209         Don't use label at end of compound statement.
10210
10211 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
10212
10213         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
10214         Remove test for negative integer arg; sin_pi does it correctly.
10215
10216 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
10217
10218         * nscd/Makefile (distribute): Filter out xmalloc.c.
10219
10220 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
10221
10222         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
10223         Set offset if read end wasn't the buffer end.
10224         (_IO_file_seekoff_mmap): New function.
10225         (_IO_file_xsgetn_mmap): New function.
10226         (_IO_file_jumps_mmap): Use the two new functions.
10227         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
10228         != end buffer.
10229         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
10230         _IO_file_underflow_mmap.
10231         * libio/iofopen.c: Don't position file descriptor at end of file.
10232         * libio/tst-widetext.c: Improve error messages.
10233         * stdio-common/tst-rndseek.c: Likewise.
10234
10235 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
10236
10237         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
10238         end of enum for !_GNU_SOURCE.
10239         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
10240         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
10241         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
10242         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
10243         values unless _GNU_SOURCE.
10244
10245         * iconvdata/tcvn5712-1.c: Minor cleanups.
10246
10247 2002-01-18  Andreas Schwab  <schwab@suse.de>
10248
10249         * sysdeps/unix/sysv/linux/configure.in
10250         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
10251
10252 2002-01-16  Roger Sayle  <roger@eyesopen.com>
10253
10254         * stdlib/msort.c (msort_with_tmp): Replace implementation with
10255         more efficient "Towers of Hanoi" mergesort.
10256         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
10257         for generic, sizeof(int) and sizeof(long) variants respectively.
10258
10259 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
10260
10261         * manual/syslog.texi (openlog): Describe possible problems with
10262         first parameter.
10263         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10264
10265         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
10266         * nscd/connections.c (begin_drop_privileges): New function.
10267         (finish_drop_privileges): New function.
10268         (nscd_init): Call the new functions which also install all groups
10269         for the server user.
10270         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
10271         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10272
10273 2002-01-17  H.J. Lu  <hjl@gnu.org>
10274
10275         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
10276         `const' from `got'.
10277
10278 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10279
10280         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
10281         instructions for pointer operations.
10282         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
10283
10284 2002-01-17  Andreas Jaeger  <aj@suse.de>
10285
10286         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
10287         __uint128_t build-in.
10288
10289         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
10290         PowerPC, sync with 2.2 branch.
10291
10292 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
10293
10294         * posix/getconf.c: Update copyright year.
10295         * nss/getent.c: Likewise.
10296         * nscd/nscd_nischeck.c: Likewise.
10297         * iconv/iconvconfig.c: Likewise.
10298         * iconv/iconv_prog.c: Likewise.
10299         * elf/ldconfig.c: Likewise.
10300         * catgets/gencat.c: Likewise.
10301         * csu/version.c: Likewise.
10302         * elf/ldd.bash.in: Likewise.
10303         * elf/sprof.c (print_version): Likewise.
10304         * locale/programs/locale.c: Likewise.
10305         * locale/programs/localedef.c: Likewise.
10306         * nscd/nscd.c (print_version): Likewise.
10307         * debug/xtrace.sh: Likewise.
10308         * malloc/memusage.sh: Likewise.
10309         * malloc/mtrace.pl: Likewise.
10310
10311 2002-01-16  Andreas Schwab  <schwab@suse.de>
10312
10313         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
10314         reliably remove "-ia64" from rtld name.
10315
10316 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
10317
10318         * iconvdata/gb18030.c: Bug fixes and support for more characters.
10319         Patch by Yu Shao <yshao@redhat.com>.
10320
10321 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10322
10323         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
10324         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
10325         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
10326
10327 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10328
10329         * sysdeps/s390/fpu/libm-test-ulps: Update.
10330
10331 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
10332
10333         * elf/elf.h: Update x86 relocations.
10334
10335 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
10336
10337         * locale/programs/charmap.c (new_width): Check whether byte
10338         sequences for both ends of range have the same length.
10339
10340 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
10341
10342         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
10343
10344 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
10345
10346         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
10347         string literals.
10348         (__full_ieee754_sqrt): Add __attribute_used__.
10349
10350 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
10351
10352         * sysdeps/generic/group_member.c (__group_member): Also check
10353         groups[0] [PR libc/2781].
10354
10355 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
10356
10357         * Makefile (distribute): Add scripts/cpp.
10358         * elf/Makefile (distribute): Add reldep6mod[01234].c,
10359         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
10360         unwind-dw2-fde.h, and dwarf2.h.
10361         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
10362         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
10363         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
10364         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
10365
10366 2002-01-07  Roland McGrath  <roland@frob.com>
10367
10368         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
10369         volatile on type of ARGC so the compiler doesn't get clever.
10370
10371 2002-01-07  Andreas Jaeger  <aj@suse.de>
10372
10373         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
10374         * sysdeps/i386/bits/byteswap.h: Likewise.
10375         * sysdeps/ia64/bits/byteswap.h: Likewise.
10376         * sysdeps/m68k/bits/byteswap.h: Likewise.
10377         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
10378         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
10379
10380 2002-01-02  Bruno Haible  <bruno@clisp.org>
10381
10382         * intl/plural.y: Fix %expect count.
10383
10384 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
10385
10386         * elf/Makefile (routines, shared-only-routines): Add
10387         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
10388         * elf/elf.h (PT_GNU_EH_FRAME): Define.
10389         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
10390         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
10391         Optimize if .eh_frame section contains no FDEs.
10392         (__register_frame, __deregister_frame_info_bases,
10393         __deregister_frame): Likewise.
10394         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
10395         DW_CFA_restore handling.
10396
10397 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
10398
10399         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
10400
10401         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
10402         for x < 0.25 and restore original range reduction method.
10403         (__ieee754_lgammal_r): Make sure signgam is set before returning.
10404
10405 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
10406
10407         * libio/fileops.c (_IO_file_underflow_mmap): New function.
10408         (_IO_file_close_mmap): New function.
10409         (_IO_file_jumps_mmap): New variable.
10410         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
10411         trying to convert rest of byte buffer.
10412         (_IO_wfile_underflow_mmap): New function.
10413         (_IO_wfile_jumps_mmap): New variable.
10414         * libio/iofopen.c (__fopen_maybe_mmap): New function.
10415         (__fopen_internal): New function.  Split out from _IO_new_fopen.
10416         (_IO_new_fopen): Call __fopen_internal.
10417         * libio/iofopen64.c: Just call __fopen_internal.
10418         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
10419         successfully.
10420         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
10421         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
10422         _IO_file_close_mmap.
10423
10424         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
10425         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
10426
10427         * stdio-common/Makefile (tests): Add tst-rndseek.
10428         * stdio-common/tst-rndseek.c: New file.
10429
10430 2002-01-05  Roland McGrath  <roland@frob.com>
10431
10432         * config.h.in (HAVE_MIG_RETCODE): New #undef.
10433         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
10434         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
10435         * sysdeps/mach/hurd/configure: Regenerated.
10436
10437 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
10438
10439         * elf/elf.h: Add more TLS definitions.
10440
10441 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
10442
10443         * include/features.h (__GLIBC_MINOR__): Bump to 3.
10444
10445 2002-01-02  Roland McGrath  <roland@frob.com>
10446
10447         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
10448         __sigisemptyset.  Don't use MASK uninitialized.
10449
10450         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
10451         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
10452         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
10453         __sigdelset, __sigaddset, __sigorset.
10454
10455         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
10456         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
10457
10458         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
10459         _hurd_ports is null.
10460
10461         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
10462         for old CMU and new OSF Mach interface flavors.
10463         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
10464         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10465
10466         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
10467
10468         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
10469         Pass extra arguments to task_create for OSF variant.
10470         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10471
10472         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
10473         conditional on [HAVE_AUX_VECTOR].
10474
10475         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
10476         mach_msg_timeout_t as type of final argument.
10477
10478         * hurd/privports.c (__get_privileged_ports):
10479         Change host_priv_t to mach_port_t in argument type.
10480         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
10481         Update decls.
10482
10483         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
10484         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
10485         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
10486         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
10487         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
10488         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
10489
10490 2002-01-01  Roland McGrath  <roland@frob.com>
10491
10492         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
10493
10494 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
10495
10496         * include/stdlib.h: Define inlines for the _l variants of the strto*
10497         functions.
10498
10499 2002-01-01  Roland McGrath  <roland@frob.com>
10500
10501         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
10502
10503         * mach/Machrules (MIG): Set CPP as well as CC.
10504
10505 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
10506
10507         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
10508         locale to parse /proc/loadavg [PR libc/2760].
10509
10510 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
10511
10512         * elf/dl-conflict.c: Include sys/param.h.
10513         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
10514         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
10515         warning.
10516         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
10517         literals to avoid warnings.
10518
10519 2001-12-31  Andreas Jaeger  <aj@suse.de>
10520
10521         * configure.in: Don't check for gsed since we do not use it anywhere.
10522
10523 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
10524
10525         * io/fts.c: Update from BSD to fix memory leaks.
10526
10527 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
10528
10529         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
10530         * elf/chroot_canon.c: Likewise.
10531         * elf/dl-object.c: Likewise.
10532         * iconv/iconv_charmap.c: Likewise.
10533         * iconv/iconv_prog.c: Likewise.
10534         * libio/iogetdelim.c: Likewise.
10535         * locale/lc-time.c: Likewise.
10536         * stdlib/canonicalize.c: Likewise.
10537         * sunrpc/svc.c: Likewise.
10538         * sysdeps/generic/glob.c: Likewise.
10539
10540 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10541
10542         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
10543         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
10544         remove high order bit from the program counter.
10545         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
10546
10547 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10548
10549         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
10550         unnecessary code and add missing reloc types.
10551         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
10552         case for reloc type R_390_NONE.
10553
10554 2001-12-28  Andreas Jaeger  <aj@suse.de>
10555
10556         * io/bug-ftw3.c: Include string.h for prototypes.
10557
10558         * crypt/md5test.c (main): Remove unused variable.
10559
10560         * dlfcn/modstatic.c: Add prototype to avoid warning.
10561
10562 2001-12-26  Roland McGrath  <roland@frob.com>
10563
10564         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
10565         check only (SS->pending & MASK) for the signal to return.
10566         From Jeroen Dekkers <jeroen@dekkers.cx>.
10567
10568 2001-12-22  Roland McGrath  <roland@frob.com>
10569
10570         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
10571         Use preprocessor #if conditionals instead of `if' to avoid
10572         warnings about divide by zero in dead code.
10573
10574         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
10575         _hurd_port_init, and __hurd_self_sigstate.
10576
10577         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
10578
10579 2001-12-21  Andreas Jaeger  <aj@suse.de>
10580
10581         * elf/dblloadmod1.c: Add prototype to avoid warning.
10582         * elf/dblloadmod2.c: Likewise.
10583         * elf/dblloadmod3.c: Likewise.
10584         * elf/reldepmod5.c: Likewise.
10585         * elf/reldepmod6.c: Likewise.
10586
10587         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
10588         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
10589         used on all architectures.
10590
10591         * sunrpc/svc_tcp.c: Add noreturn attribute for
10592         svctcp_rendezvous_abort.
10593         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
10594
10595         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
10596         to avoid warning.
10597
10598 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
10599
10600         * manual/llio.texi (aio_fsync): Fix a typo.
10601         Patch by Tammy Fox <tfox@redhat.com>.
10602
10603 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
10604
10605         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
10606         stack bias from child stack pointer before passing it to clone syscall.
10607
10608 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
10609
10610         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
10611         _SC_TZNAME_MAX.
10612         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
10613         Reported by Thorsten Kukuk <kukuk@suse.de>.
10614
10615         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
10616         add some casts.
10617
10618         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
10619
10620 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
10621
10622         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
10623         conforming: return EBADF if file descriptor is invalid and EINVAL
10624         if file descriptor is no valid tty.
10625         * login/tst-grantpt.c: New file.
10626         * login/Makefile (tests): Add tst-grantpt.
10627
10628 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
10629
10630         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
10631         different than implemented in last patch.
10632         * io/bug-ftw3.c: Adjust test for changed handling of
10633         inaccessibility of toplevel dir.
10634
10635 2001-12-16  Roland McGrath  <roland@frob.com>
10636
10637         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
10638         * grp/initgroups.c (internal_getgrouplist): Likewise.
10639
10640         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
10641         `default:' to silence new GCC warning.
10642         Rewrite cast of lvalue to silence new GCC warning.
10643
10644         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
10645
10646         * sysdeps/mach/hurd/spawni.c: New file, by me with a
10647         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
10648
10649 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
10650
10651         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
10652         Patch by Stephen R. van den Berg.
10653
10654         * crypt/md5.h: Define md5_uintptr.
10655
10656 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
10657
10658         * libio/tst_swprintf.c (main): Add test for string argument with
10659         zero precision.
10660         * stdio-common/Makefile (tests): Add tst-sprintf.
10661         * stdio-common/tst-sprintf.c: New file.
10662
10663 2001-12-13  Andreas Schwab  <schwab@suse.de>
10664
10665         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
10666         zero precision with wide character string format.
10667
10668 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
10669
10670         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
10671         but have a user supplied buffer, return the empty buffer, not NULL.
10672
10673 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
10674
10675         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
10676         Patch by Eric Sharkey <sharkey@netrics.com>.
10677
10678         * crypt/md5test.c (main): Add test for multiple calls to
10679         __md5_process_bytes to itererate over input string.
10680
10681 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
10682
10683         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
10684         from __nis_findfastest.  Take timeout value from parameter.
10685         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
10686         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
10687         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
10688
10689 2001-12-12  Andreas Jaeger  <aj@suse.de>
10690
10691         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
10692         combreloc test so that it works in this case.
10693
10694         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
10695
10696 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
10697
10698         * sysdeps/sh/Makefile: New file.
10699         * sysdeps/sh/_mcount.S: New file.
10700         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
10701         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
10702
10703 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
10704
10705         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
10706         limitation [PR libc/2564].
10707
10708 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
10709
10710         * elf/Makefile (dl-routines): Add conflict.
10711         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
10712         (ld.so): Add _begin local symbol.
10713         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
10714         Define.
10715         * elf/dl-deps.c (_dl_build_local_scope): New function.
10716         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
10717         of all libraries.
10718         * elf/do-rel.h (VALIDX): Define.
10719         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
10720         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
10721         can be skipped.
10722         * elf/dl-conflict.c: New file.
10723         * elf/dl-lookup.c (_dl_debug_bindings): New function.
10724         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
10725         non-NULL.
10726         (_dl_lookup_symbol_skip): Likewise.
10727         (_dl_lookup_versioned_symbol): Likewise.
10728         (_dl_lookup_versioned_symbol_skip): Likewise.
10729         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
10730         define to ElfW(Rel).
10731         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
10732         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
10733         ranges.
10734         Don't adjust address dynamic tags if l_addr is 0.
10735         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
10736         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
10737         (VALIDX, ADDRIDX): Define.
10738         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
10739         (dl_main): Print library list for LD_TRACE_PRELINKING.
10740         If prelinking information can be used, skip relocating libraries and
10741         call _dl_resolve_conflicts instead.
10742         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
10743         * elf/dl-load.c (_dl_map_object): Don't create fake libs
10744         if LD_TRACE_PRELINKING.
10745         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
10746         + DT_ADDRNUM.
10747         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
10748         (DL_DEBUG_PRELINK): Define.
10749         (_dl_resolve_conflicts): Add prototype.
10750
10751         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
10752         .plt for prelinked libraries where prelinking info cannot be used.
10753         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
10754         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
10755         * sysdeps/arm/bits/link.h: New file.
10756         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
10757         content of .got[1].
10758         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
10759         (ELF_MACHINE_PLT_REL): Define.
10760         (elf_machine_rela, elf_machine_rela_relative): New functions.
10761         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
10762         of adjusting it if prelinked and prelinking cannot be used.
10763         * sysdeps/i386/bits/link.h: New file.
10764         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
10765         content of .got[1].
10766         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
10767         (ELF_MACHINE_PLT_REL): Define.
10768         (elf_machine_rela, elf_machine_rela_relative): New functions.
10769         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
10770         of adjusting it if prelinked and prelinking cannot be used.
10771         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
10772         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
10773         to find out map for R_PPC_JMP_SLOT relocs.
10774         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
10775         (OPCODE_BA): Define.
10776         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
10777         libraries where prelinking info cannot be used.
10778         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
10779         (elf_machine_fixup_plt): Call sparc_fixup_plt.
10780         (elf_machine_rela): Set value to 0 if relocating conflicts.
10781         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
10782         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
10783         (sparc64_fixup_plt): Fix a typo.
10784         (elf_machine_rela): Set value to 0 if relocating conflicts.
10785         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
10786         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
10787         libraries where prelinking info cannot be used.
10788         * sysdeps/sh/bits/link.h: New file.
10789         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
10790         content of .got[1].
10791         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
10792         of adjusting it if prelinked and prelinking cannot be used.
10793         * sysdeps/s390/s390-32/bits/link.h: New file.
10794         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
10795         Save original content of .got[1].
10796         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
10797         of adjusting it if prelinked and prelinking cannot be used.
10798         * sysdeps/s390/s390-64/bits/link.h: New file.
10799         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
10800         Save original content of .got[1].
10801         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
10802         of adjusting it if prelinked and prelinking cannot be used.
10803         * sysdeps/x86_64/bits/link.h: New file.
10804         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
10805         Save original content of .got[1].
10806         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
10807         of adjusting it if prelinked and prelinking cannot be used.
10808
10809 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
10810
10811         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
10812         where appropriate instead of numbers.  Little optimizations.
10813
10814 2001-12-10  Roland McGrath  <roland@frob.com>
10815
10816         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
10817         set it.
10818
10819         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
10820         set to GLIBC_2.2.5, not GLIBC_2.2.4.
10821
10822         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
10823         Fix conditionals so this is set by default for stdio and not for libio.
10824         * sysdeps/mach/hurd/configure: Regenerated.
10825
10826 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
10827
10828         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
10829
10830 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
10831
10832         * io/Makefile (tests): Add bug-ftw3.
10833         * io/bug-ftw3.c: New file.
10834
10835         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
10836         matches and GLOB_NOCHECK is set.
10837         * posix/globtest.sh: Correct expected result for NOCHECK test.
10838
10839         * po/ca.po: Update from translation team.
10840
10841 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
10842
10843         Implement transliteration of characters in strings of the locale
10844         definitions.
10845         * locale/programs/linereader.c: Adjust for additional parameter to
10846         lr_token.
10847         (get_string): If character <Uxxxx> is not found try to transliterate
10848         it.
10849         * locale/programs/ld-ctype.c: Adjust for additional parameter to
10850         lr_token.  Add const to charmap parameter of all functions.
10851         (find_translit, find_translit2): New functions.
10852         * locale/programs/charmap.c: Adjust for additional parameter to
10853         lr_token.
10854         * locale/programs/repertoire.c: Likewise.
10855         * locale/programs/linereader.h: Likewise.
10856         * locale/programs/ld-address.c: Likewise.  Add const to charmap
10857         parameter of all functions.
10858         * locale/programs/ld-collate.c: Likewise.
10859         * locale/programs/ld-identification.c: Likewise.
10860         * locale/programs/ld-measurement.c: Likewise.
10861         * locale/programs/ld-messages.c: Likewise.
10862         * locale/programs/ld-monetary.c: Likewise.
10863         * locale/programs/ld-name.c: Likewise.
10864         * locale/programs/ld-numeric.c: Likewise.
10865         * locale/programs/ld-paper.c: Likewise.
10866         * locale/programs/ld-paper.c: Likewise.
10867         * locale/programs/ld-telephone.c: Likewise.
10868         * locale/programs/ld-time.c: Likewise.
10869         * locale/programs/locfile.c: Likewise.
10870         * locale/programs/localedef.c: Likewise.
10871         * locale/programs/localedef.h: Likewise.
10872         * locale/programs/locfile.h: Likewise.  Add declaration for
10873         find_translit.
10874         * locale/programs/simple-hash.c: Add const to first parameter of
10875         find_entry, iterate_table, and lookup.
10876         * locale/programs/simple-hash.h: Likewise.
10877         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
10878         instead.
10879         * include/locale.h: Define __LC_LAST.
10880         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
10881
10882 2001-12-07  Geoff Keating  <geoffk@redhat.com>
10883
10884         * sysdeps/powerpc/Dist: Update for recent FP changes.
10885         * sysdeps/powerpc/fpu/Dist: Likewise.
10886
10887 2001-12-07  Andreas Schwab  <schwab@suse.de>
10888
10889         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
10890
10891 2001-12-06  Geoff Keating  <geoffk@redhat.com>
10892
10893         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
10894         save/restore functions here.
10895         (libm-support): Don't define these functions here.
10896         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
10897         functions here.
10898         * sysdeps/powerpc/fe_nomask.c: Move to...
10899         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
10900         * sysdeps/powerpc/fprrest.S: Move to...
10901         * sysdeps/powerpc/fpu/fprrest.S: ... here.
10902         * sysdeps/powerpc/fprsave.S: Move to...
10903         * sysdeps/powerpc/fpu/fprsave.S: ... here.
10904
10905 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
10906
10907         * sysdeps/unix/sysv/linux/opensock.c: New file.
10908
10909 2001-12-06  Geoff Keating  <geoffk@redhat.com>
10910
10911         * config.make.in (with-fp): Define from configure.
10912         * configure.in: Substitute with_fp.
10913         * configure: Regenerate.
10914         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
10915         specified, and don't change FPU environment.
10916
10917 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
10918
10919         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
10920         * assert/assert.c: Check result of __asprintf call and don't use
10921         string if it failed.
10922         * assert/assert-perr.c: Likewise.
10923         * inet/rcmd.c: Likewise.
10924         * locale/programs/localedef.c (main): Check result of
10925         construct_output_path and exit if it failed.
10926         (construct_output_path): Check result of asprintf and mkdir calls and
10927         fail if they failed.
10928         * posix/getopt.c: Check result of __asprintf calls and fail if
10929         they failed.
10930         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
10931
10932 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
10933
10934         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
10935         patch.
10936         * sysdeps/generic/strncase.c: Likewise.
10937         * string/tester.c: Add tests for strcasecmp and strncasecmp.
10938
10939 2001-12-05  Geoff Keating  <geoffk@redhat.com>
10940
10941         * scripts/cpp: Test the exit status from 'type', not 'awk'.
10942
10943         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
10944         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
10945         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
10946         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
10947         * sysdeps/powerpc/fclrexcpt.c: Move to...
10948         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
10949         * sysdeps/powerpc/fpu_control.h: Move to...
10950         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
10951
10952 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
10953
10954         * iconvdata/ibm1129.h: Remove duplicate mappings.
10955         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
10956         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
10957         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10958
10959         * timezone/zic.c: Fix handling of turnaround times.
10960         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
10961
10962 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
10963
10964         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
10965         overflow problem.
10966
10967 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
10968
10969         * posix/regex.c: For use outside glibc defined bounded pointer
10970         macros here.  Patch by Jim Meyering <jim@meyering.net>.
10971
10972         * iconvdata/Makefile (modules): Add TCVN5712-1.
10973         * iconvdata/TESTS: Add TCVN5712-1.
10974         * iconvdata/gconv-modules: Likewise.
10975         * iconvdata/tcvn5712-1.c: New file.
10976         * iconvdata/testdata/TCVN-5712: New file.
10977         * iconvdata/testdata/TCVN-5712..UTF8: New file.
10978
10979 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
10980
10981         * iconvdata/cp1258.c: Optimize conversion from UCS4.
10982
10983 2001-12-02  Roland McGrath  <roland@frob.com>
10984
10985         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
10986
10987         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
10988         Reported by Jeff Bailey <jbailey@nisa.net>.
10989
10990         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
10991         Reported by Jeff Bailey <jbailey@nisa.net>.
10992
10993         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
10994         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
10995         Reported by Jeff Bailey <jbailey@nisa.net>.
10996
10997 2001-12-01  Roland McGrath  <roland@frob.com>
10998
10999         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
11000         missing backslash in test arguments.
11001         * sysdeps/mach/hurd/configure: Regenerated.
11002
11003 2001-11-26  Roland McGrath  <roland@frob.com>
11004
11005         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
11006         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
11007
11008 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
11009
11010         * iconvdata/Makefile (modules): Add ARMSCII-8.
11011         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
11012         * iconvdata/armscii-8.c: New file.
11013
11014 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
11015
11016         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
11017         don't match, fix {{a,b},c} globbing, clean up.
11018         Patch by Flavio Veloso <flaviovs@magnux.com>.
11019         * posix/globtest.sh: Add new tests.
11020
11021 2001-11-29  Andreas Jaeger  <aj@suse.de>
11022
11023         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
11024         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
11025
11026         * sysdeps/generic/abort.c: Include libioP.h for
11027         _IO_flush_all_lockp prototype.
11028
11029 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
11030
11031         * posix/regex.h: Define __restrict_arr correctly.
11032
11033 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
11034
11035         * iconvdata/ibm1163.c: New file.
11036         * iconvdata/ibm1163.h: New file.
11037         * iconvdata/ibm1164.c: New file.
11038         * iconvdata/ibm1164.h: New file.
11039         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
11040         * iconvdata/Makefile: Likewise.
11041         * iconvdata/testdata/IBM1163: New file.
11042         * iconvdata/testdata/IBM1163..UTF8: New file.
11043         * iconvdata/testdata/IBM1164: New file.
11044         * iconvdata/testdata/IBM1164..UTF8: New file.
11045         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11046
11047         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
11048         * iconvdata/ibm1124.h: Likewise.
11049         * iconvdata/ibm1132.h: Likewise.
11050         * iconvdata/ibm1133.h: Likewise.
11051         * iconvdata/ibm1160.h: Likewise.
11052         * iconvdata/ibm1161.h: Likewise.
11053         * iconvdata/ibm1162.h: Likewise.
11054         * iconvdata/ibm856.h: Likewise.
11055         * iconvdata/ibm922.h: Likewise.
11056         * iconvdata/ibm930.h: Likewise.
11057         * iconvdata/ibm932.h: Likewise.
11058         * iconvdata/ibm933.h: Likewise.
11059         * iconvdata/ibm935.h: Likewise.
11060         * iconvdata/ibm937.h: Likewise.
11061         * iconvdata/ibm939.h: Likewise.
11062         * iconvdata/ibm943.h: Likewise.
11063         * iconvdata/ibm930.c: Pretty printing.
11064         * iconvdata/ibm937.c: Avoid access accross array boundary.
11065
11066         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
11067         the current locale's codeset.
11068         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
11069         empty input string.
11070         * iconv/iconv_prog.c: Pass empty strings as default value for to-
11071         and from-charset.  Don't determine locale's charset here.
11072
11073         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
11074         as the old _IO_flush_all but lock only if parameter is nonzero.
11075         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
11076         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
11077         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
11078         if libio is used [PR libc/2575].
11079
11080 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
11081
11082         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
11083         __signbitl): Only define for ISO C99.
11084
11085 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
11086
11087         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
11088         herrnop to NETDB_INTERNAL if we run out of buffer space.
11089
11090 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
11091
11092         * nss/nss_files/files-XXX.c (internal_getent): Correct input
11093         overflow test for platforms with signed char.
11094         Reported by Andrew Haley <aph@cambridge.redhat.com>.
11095
11096 2001-11-28  Bruno Haible  <bruno@clisp.org>
11097
11098         * locale/programs/simple-hash.c (lookup_2): Remove function.
11099         (insert_entry_2): Call lookup instead of lookup_2.
11100
11101 2001-03-04  Bruno Haible  <bruno@clisp.org>
11102
11103         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
11104
11105 2001-10-31  Bruno Haible  <bruno@clisp.org>
11106
11107         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
11108
11109 2001-03-21  Bruno Haible  <bruno@clisp.org>
11110
11111         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
11112         chokes on empty macro arguments.
11113         * intl/plural.y: Add #pragma for alloca on AIX 3.
11114
11115 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
11116
11117         * intl/dcigettext.c (guess_category_value): Only implement for
11118         glibc.  Otherwise rely on function _nl_locale_name which isn't
11119         present in the glibc sources.
11120
11121 2001-09-24  Bruno Haible  <bruno@clisp.org>
11122
11123         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
11124         transliteration when building on a glibc system but outside glibc.
11125
11126 2001-09-22  Bruno Haible  <bruno@clisp.org>
11127
11128         * intl/plural-eval.c: New file, extracted from dcigettext.c.
11129         * intl/dcigettext.c (plural_eval): Remove function, moved to
11130         intl/plural-eval.c.
11131         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
11132         Include plural-eval.c.
11133
11134 2001-09-22  Bruno Haible  <bruno@clisp.org>
11135
11136         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
11137         don't start with a digit; nplurals must be positive.
11138
11139 2001-09-02  Bruno Haible  <bruno@clisp.org>
11140
11141         * intl/plural-exp.h: New file, extracted from gettextP.h.
11142         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
11143         * intl/gettextP.h (struct expression, struct parse_args,
11144         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
11145         * intl/loadmsgcat.c: Include plural-exp.h.
11146         (PLURAL_PARSE): Move macro to plural-exp.h.
11147         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
11148         plural-exp.c.
11149         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
11150         EXTRACT_PLURAL_EXPRESSION.
11151         (_nl_unload_domain): Update.
11152         * intl/dcigettext.c: Include plural-exp.h.
11153         * intl/plural.y: Include plural-exp.h, not gettextP.h.
11154         (FREE_EXPRESSION): Move macro to plural-exp.h.
11155         * intl/Makefile (routines): Add plural-exp.
11156         (distribute): Add plural-exp.h.
11157
11158 2001-07-28  Bruno Haible  <bruno@clisp.org>
11159
11160         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
11161         isdigit, tolower argument to 'unsigned char'.
11162         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
11163         'unsigned char'.
11164         * intl/localealias.c (read_alias_file): Cast isspace argument to
11165         'unsigned char'.
11166
11167 2001-10-20  Bruno Haible  <bruno@clisp.org>
11168
11169         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
11170         anyway.)
11171         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
11172         with the variable 'index' in plural_lookup.
11173         * intl/l10nflist.c (strchr): Likewise.
11174         * intl/localealias.c (strchr): Likewise.
11175
11176         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
11177         * intl/bindtextdom.c: Likewise.
11178         * intl/dcigettext.c: Likewise.
11179         * intl/dgettext.c: Likewise.
11180         * intl/dngettext.c: Likewise.
11181         * intl/explodename.c: Likewise.
11182         * intl/finddomain.c: Likewise.
11183         * intl/gettext.c: Likewise.
11184         * intl/l10nflist.c: Likewise.
11185         * intl/loadmsgcat.c: Likewise.
11186         * intl/localealias.c: Likewise.
11187         * intl/ngettext.c: Likewise.
11188         * intl/textdomain.c: Likewise.
11189         * intl/gettext.h: Assume <limits.h> exists.
11190
11191 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
11192
11193         * stdio-common/Makefile (tests): Add scanf11.
11194         * stdio-common/scanf11.c: New file.
11195
11196 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
11197
11198         * version.h (RELEASE): Define as development.
11199         (VERSION): Set to 2.2.90.
11200
11201 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
11202
11203         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
11204         * nis/nss_nis/nis-grp.c: Likewise.
11205         * nis/nss_nisplus/nisplus-grp.c: Likewise.
11206
11207         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
11208         * nis/nss_nis/nis-pwd.c: Likewise.
11209         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
11210
11211         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
11212         * nis/nss_nisplus/nisplus-parser.c: Likewise.
11213         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
11214
11215         * nscd/grpcache.c: Use strtoul instead of atol.
11216         * nscd/pwdcache.c: Likewise.
11217         * nss/getent.c: Likewise.
11218
11219 2001-11-27  Paul Eggert  <eggert@twinsun.com>
11220
11221         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
11222         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
11223
11224 2001-11-19  Bruno Haible  <bruno@clisp.org>
11225
11226         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
11227         90%.
11228         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
11229         improves the quality of the hash function, especially for short
11230         strings.
11231
11232 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
11233
11234         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
11235         are found call conv_error and not input_error [PR libc/2669].
11236
11237         * math/bits/mathcalls.h: Mark ceil and floor as const.
11238         Reported by David Mosberger.
11239
11240 2001-11-21  Jim Meyering  <meyering@lucent.com>
11241
11242         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
11243         Define to be __-prefixed.
11244         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
11245
11246 2001-11-26  Andreas Jaeger  <aj@suse.de>
11247
11248         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
11249         avoid warning.
11250
11251 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
11252
11253         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
11254         initialization.
11255
11256         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
11257         unused variables.  Fix threshold for returning 1.0.
11258
11259         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
11260         argument.
11261
11262         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
11263         remove unused variables.
11264
11265         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
11266
11267         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
11268         include local math header files.
11269
11270 2001-11-22  Andreas Jaeger  <aj@suse.de>
11271
11272         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
11273         avoid warning.
11274
11275 2001-11-21  Andreas Jaeger  <aj@suse.de>
11276
11277         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
11278
11279         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
11280         sys/debugreg.h
11281
11282 2001-11-15  Andreas Jaeger  <aj@suse.de>
11283
11284         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
11285         compilers that support it.
11286
11287         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
11288         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
11289         * stdlib/stdlib.h: Likewise.
11290
11291 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
11292
11293         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
11294         statement with gotos.
11295         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
11296
11297 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
11298
11299         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
11300
11301 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
11302
11303         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
11304
11305 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
11306             H.J. Lu  <hjl@gnu.org>
11307
11308         * Versions.def (libc): Add GCC_3.0.
11309         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
11310         if gcc supports this flag.
11311         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
11312         (gcc3): Allow glibc to be compiled with gcc 3.x.
11313         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
11314         * config.make.in (static-libgcc, unwind-find-fde): Add.
11315         * Makerules (build-shlib-helper, build-module-helper): Use it.
11316         * scripts/versions.awk: Make sure GLIBC_ versions come first.
11317         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
11318         necessary.
11319         (_fini): Call __deregister_frame_info_bases if
11320         __register_frame_info_bases was used to register.
11321         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
11322         for GLIBC_2.0.
11323         (__register_frame_info_bases, __register_frame_info_table_bases,
11324         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
11325         * elf/Makefile (routines): Add unwind-dw2-fde.
11326         (shared-only-routines): Add unwind-dw2-fde.
11327         * sysdeps/alpha/gccframe.h: New file.
11328         * sysdeps/arm/gccframe.h: New file.
11329         * sysdeps/generic/framestate.c: New file.
11330         * sysdeps/generic/dwarf2.h: New file.
11331         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
11332         * sysdeps/generic/unwind-dw2-fde.c: New file.
11333         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
11334         * sysdeps/generic/unwind-dw2-fde.h: New file.
11335         * sysdeps/generic/unwind-dw2.c: New file.
11336         * sysdeps/generic/unwind-pe.h: New file.
11337         * sysdeps/generic/unwind.h: New file.
11338         * sysdeps/hppa/gccframe.h: New file.
11339         * sysdeps/i386/gccframe.h: New file.
11340         * sysdeps/m68k/gccframe.h: New file.
11341         * sysdeps/mips/gccframe.h: New file.
11342         * sysdeps/powerpc/gccframe.h: New file.
11343         * sysdeps/s390/gccframe.h: New file.
11344         * sysdeps/sh/gccframe.h: New file.
11345         * sysdeps/sparc/gccframe.h: New file.
11346         * sysdeps/vax/gccframe.h: New file.
11347         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
11348         Set on all architectures except ia64.
11349         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
11350         for i386.
11351         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
11352         __deregister_frame_info): Move to elf/Versions.
11353         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
11354         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
11355         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
11356         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
11357         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
11358         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
11359         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
11360         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
11361         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
11362         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
11363         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
11364         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
11365         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
11366         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
11367         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
11368         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
11369         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
11370         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
11371
11372 2001-11-15  Jeff Law  <law@redhat.com>
11373
11374         * posix/regex.c (uintptr_t): Do not provide a definition if the
11375         system provided one.
11376
11377 2001-11-13  Roland McGrath  <roland@frob.com>
11378
11379         * stdio-common/tmpfile.c: Moved to ...
11380         * sysdeps/generic/tmpfile.c: ... here.
11381         * sysdeps/mach/hurd/tmpfile.c: New file.
11382
11383         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
11384         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
11385         (fopenport): Define as weak alias.
11386
11387         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
11388         * libio/libioP.h: ... to here.
11389
11390 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
11391
11392         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
11393         program header twice.  Construct list with the needed information.
11394
11395 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
11396
11397         * po/ca.po: Update from translation team.
11398
11399         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
11400         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
11401         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
11402         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11403
11404 2001-11-10  Andreas Jaeger  <aj@suse.de>
11405
11406         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
11407         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11408         Contributed by Stephen L Moshier <moshier@mediaone.net>.
11409
11410 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
11411
11412         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
11413         correctly.
11414         * elf/dl-load.c (is_dst): New function.
11415         (_dl_dst_count): Use is_dst to check for DST variable.
11416         (_dl_dst_substitute): Likewise.
11417
11418 2001-11-09  Roland McGrath  <roland@frob.com>
11419
11420         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
11421         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
11422         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
11423         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
11424         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
11425         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
11426         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
11427         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
11428         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
11429         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
11430         * sysdeps/mach/hurd/powerpc/Dist: New file.
11431
11432         * hurd/privports.c (__get_privileged_ports):
11433         Only contact the proc server if necessary for this call.
11434         Suggested by Neal H Walfield <neal@cs.uml.edu>.
11435         Check error return for mach_port_mod_refs.
11436
11437 2001-11-09  Andreas Schwab  <schwab@suse.de>
11438
11439         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
11440
11441 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
11442
11443         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
11444         object is always the last in the list.
11445         (_dl_map_object_from_fd): Delete code to remove from object list
11446         when DF_1_NOOPEN is seen.  This is done in lose.
11447
11448 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
11449
11450         * elf/dl-object.c (_dl_new_object): Various small optimizations.
11451
11452 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
11453
11454         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
11455         HWCAP_CHECK macro code.
11456
11457         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
11458         Now returns MAP_FAILED on error.
11459         * elf/rtld.c: Adjust caller.
11460         * sysdeps/generic/dl-cache.c: Likewise.
11461         * sysdeps/generic/ldsodefs.h: Adjust description.
11462
11463         * elf/dl-version.c (match_symbol): Optimize error handling for size.
11464         (_dl_check_map_versions): Likewise.
11465
11466 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
11467
11468         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
11469         _dl_signal_error directly, always use lose.  Set fd to -1 after
11470         file is closed.
11471         (lose): Don't call close if fd == -1.
11472
11473 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
11474
11475         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
11476          Also fix typo @code {mbsinit} to @code{mbsinit}.
11477
11478 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
11479
11480         * elf/dl-profile.c: Replace state variable with simple flag named
11481         running.  Remove commented-out code.
11482
11483         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
11484         (_dl_init_paths): Likewise.
11485         (_dl_map_object_from_fd): Likewise.
11486         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11487
11488 2001-11-06  Roland McGrath  <roland@frob.com>
11489
11490         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
11491         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
11492
11493         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
11494         sysdeps/powerpc/elf/sysdep.h.
11495         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
11496
11497 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
11498
11499         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
11500         speed.
11501         (process_envvars): Some more optimizations.
11502         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
11503
11504         * elf/elf.h: Add dynamic tag definitions for prelinking.
11505
11506         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
11507         Rewrite code to remove environment varables for SUID binaries.
11508         Small optimization in LD_PROFILE handling.
11509         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
11510         changes.
11511         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
11512
11513         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
11514
11515         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
11516         strings.  Change type of second parameter.
11517         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
11518         for last change.
11519
11520         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
11521
11522 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
11523
11524         * manual/string.texi: Fix typos.
11525         * manual/examples/argp-ex2.c: Likewise.
11526
11527 2001-11-05  Roland McGrath  <roland@frob.com>
11528
11529         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
11530         the more-specific unix/sysv/linux/powerpc file and breaks everything.
11531         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
11532         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
11533         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
11534         here, put under [__ELF__].
11535
11536 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
11537
11538         * manual/charset.texi: Extensive editing work.
11539         * manual/nss.texi: Likewise.
11540         Changes by Dennis Grace <dgrace@us.ibm.com>.
11541
11542 2001-11-04  Roland McGrath  <roland@frob.com>
11543
11544         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
11545         parameter to dir_mkfile.
11546
11547 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
11548
11549         * string/bits/string2.h (__strndup): If n is smaller than len, set
11550         len to n + 1.
11551         * string/tester.c (test_strndup): New function.
11552         (main): Call it.
11553
11554 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
11555
11556         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
11557
11558         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
11559         * scripts/cpp: New file.
11560
11561         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
11562         for rtld_search_dirs content.  Minor optimizations.
11563
11564 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
11565
11566         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
11567         avoiding unnecessary duplication.
11568
11569 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
11570
11571         * elf/dl-load.c (_dl_map_object): If library was found using
11572         LD_LIBRARY_PATH, don't try RUNPATH list.
11573
11574 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11575
11576         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
11577         Correct second argument of register_dump call.
11578         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
11579         Likewise.
11580
11581 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
11582
11583         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
11584         modules.
11585         * iconvdata/TESTS: Likewise.
11586         * iconvdata/gconv-modules: Likewise.
11587         * iconvdata/ibm1132.c: New file.
11588         * iconvdata/ibm1132.h: New file.
11589         * iconvdata/ibm1133.c: New file.
11590         * iconvdata/ibm1133.h: New file.
11591         * iconvdata/ibm1162.c: New file.
11592         * iconvdata/ibm1162.h: New file.
11593         * iconvdata/testdata/IBM1132: New file.
11594         * iconvdata/testdata/IBM1132..UTF8: New file.
11595         * iconvdata/testdata/IBM1133: New file.
11596         * iconvdata/testdata/IBM1133..UTF8: New file.
11597         * iconvdata/testdata/IBM1162: New file.
11598         * iconvdata/testdata/IBM1162..UTF8: New file.
11599         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
11600
11601         * string/string.h: Fix typo in comment.
11602         * wcsmbs/wchar.h: Likewise.
11603
11604 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
11605
11606         * manual/getopt.texi (getopt_long, getopt_long_only): Include
11607         const in type of longopts parameter.
11608
11609 2001-10-29  Andreas Jaeger  <aj@suse.de>
11610
11611         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
11612
11613 2001-10-29  Kevin Ryde  <user42@zip.com.au>
11614
11615         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
11616         output, clarify `#' behaviour on 0.
11617         (Floating-Point Conversions): Clarify that %g only uses %e when
11618         the exponent would be greater than 1.
11619
11620 2001-10-28  Roland McGrath  <roland@frob.com>
11621
11622         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
11623         * sysdeps/mach/powerpc/machine-sp.h: New file.
11624         * sysdeps/mach/powerpc/sysdep.h: New file.
11625         * sysdeps/mach/powerpc/thread_state.h: New file.
11626
11627         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
11628         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
11629         expect to need the same thing on every platform.
11630
11631         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
11632         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
11633
11634         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
11635         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
11636         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
11637         Move all these assembly-related definitions to ...
11638         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
11639
11640         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
11641         by Peter Bruin <pjbruin@dds.nl>.
11642
11643         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
11644         packing results for a `poll' call.
11645
11646 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
11647
11648         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
11649         correctly.
11650         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
11651         bracket expression.
11652
11653         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
11654         nrules value.
11655         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
11656
11657 2001-10-24  H.J. Lu  <hjl@gnu.org>
11658
11659         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
11660         Use __BEGIN_DECLS/__END_DECLS around prototypes.
11661         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
11662
11663 2001-10-21  Jim Meyering  <meyering@lucent.com>
11664
11665         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
11666         this code would end up calling gettext even in packages built
11667         with --disable-nls.
11668         * posix/getopt.c (_): Likewise.
11669         * posix/regex.c (_): Likewise.
11670
11671 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
11672
11673         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
11674         lookup not ip6.int.
11675         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
11676         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
11677
11678 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
11679
11680         * misc/sys/cdefs.h (__attribute_used__): Define.
11681         * elf/rtld.c (_dl_start): Add __attribute_used__.
11682         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
11683
11684 2001-10-25  Andreas Schwab  <schwab@suse.de>
11685
11686         * stdlib/a64l.c: Expect least significant digit first.
11687         * stdlib/l64a.c: Produce least significant digit first.
11688         * stdlib/Makefile (tests): Add test-a64l.
11689         * stdlib/test-a64l.c: New file.
11690         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
11691
11692 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
11693
11694         * po/sk.po: Update from translation team.
11695
11696 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
11697
11698         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
11699
11700 2001-10-18  Andreas Schwab  <schwab@suse.de>
11701
11702         * math/libm-test.inc (print_ulps): Print ulp values rounded to
11703         next whole number.
11704         (print_function_ulps): Likewise.
11705         (print_complex_function_ulps): Likewise.
11706         (print_max_error): Likewise.
11707         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
11708
11709 2001-10-16  Andreas Schwab  <schwab@suse.de>
11710
11711         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
11712         implementation.
11713
11714         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
11715         BSD_SETJMP or BSD__SETJMP is defined, resp.
11716         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
11717         a tail call to __sigsetjmp that would require extending the
11718         caller's frame.
11719         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
11720         * sysdeps/m68k/bsd-setjmp.S: Deleted.
11721         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
11722         Reported by Jes Sorensen <jes@trained-monkey.org>.
11723
11724 2001-10-16  Andreas Jaeger  <aj@suse.de>
11725
11726         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
11727         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
11728         close PR libc/2589.
11729
11730 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
11731
11732         * po/ca.po: New file.  Contributed by the translation team.
11733
11734 2001-10-15  Ralf Baechle  <ralf@gnu.org>
11735
11736         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
11737         a varargs prototype.  Remove dependency from kernel header files.
11738
11739         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
11740         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
11741
11742 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
11743
11744         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
11745         to generate hexadecimal identifier.
11746         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
11747
11748 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
11749
11750         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
11751
11752 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
11753
11754         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
11755         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
11756         Contributed by Stephen L Moshier <moshier@mediaone.net>.
11757
11758         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
11759         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11760         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
11761         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
11762         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
11763         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
11764
11765         * timezone/africa: Update from tzdata2001d.
11766         * timezone/asia: Likewise.
11767         * timezone/australasia: Likewise.
11768         * timezone/backward: Likewise.
11769         * timezone/europe: Likewise.
11770         * timezone/leapseconds: Likewise.
11771         * timezone/northamerica: Likewise.
11772         * timezone/southamerica: Likewise.
11773         * timezone/zone.tab: Likewise.
11774
11775 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11776
11777         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
11778         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
11779
11780 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
11781
11782         * elf/elf.h (PT_TLS): New definition.
11783
11784 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
11785
11786         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
11787         bits/errno.h
11788
11789 2001-10-07  Roland McGrath  <roland@frob.com>
11790
11791         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
11792
11793 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
11794
11795         * elf/elf.h: Add more ELFOSABI_* constants.
11796
11797 2001-10-04  Ben Collins  <bcollins@debian.org>
11798
11799         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
11800         decleration of __need_wchar_t.
11801
11802 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
11803
11804         * string/bits/string2.h (__strsep_g): Add prototype.
11805         (__strsep): Use it.
11806         * string/Versions (__strsep): Remove.
11807         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
11808
11809 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
11810
11811         * manua/llio.texi: Clarify file references added by mmap.
11812         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
11813
11814 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
11815
11816         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
11817         Add sc_loadrs and sc_rbs_bas to match current kernel.
11818
11819 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
11820
11821         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
11822
11823         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
11824
11825 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
11826
11827         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
11828         object has been bumped because of relocation dependency, avoid
11829         duplicates in l_scope.
11830         (show_scope): Fix typos.
11831         * elf/Makefile: Add rules to build and run reldep6.
11832         * elf/reldep6.c: New file.
11833         * elf/reldep6mod0.c: New file.
11834         * elf/reldep6mod1.c: New file.
11835         * elf/reldep6mod2.c: New file.
11836         * elf/reldep6mod3.c: New file.
11837         * elf/reldep6mod4.c: New file.
11838
11839 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
11840
11841         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
11842         sparc64_fixup_plt.
11843         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
11844         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
11845         for non-lazy binding. Fix .plt[32768+] handling.
11846         (elf_machine_plt_value): Don't add addend.
11847         (elf_machine_rela): Call sparc64_fixup_plt instead of
11848         elf_machine_fixup_plt.
11849         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
11850         dynamic linker at 0xfffff800XXXXXXXX.
11851
11852         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
11853
11854 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
11855
11856         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
11857
11858 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
11859
11860         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
11861         declare __cmsg_data field if its size would be bigger than 0.
11862         (CMSG_DATA): Adjust accordingly.
11863         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
11864         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
11865         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
11866         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
11867         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11868         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
11869         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11870
11871 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
11872
11873         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
11874         * iconvdata/testdata/IBM1160: New file.
11875         * iconvdata/testdata/IBM1160..UTF8: New file.
11876         * iconvdata/testdata/IBM1161: New file.
11877         * iconvdata/testdata/IBM1161..UTF8: New file.
11878         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11879
11880 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
11881
11882         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
11883         UL_SETFSIZE computations better.
11884
11885         * rt/Makefile: Remove use of filter for librt again.
11886
11887         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
11888         UL_SETFSIZE computations better.
11889
11890         * string/Versions: Export __strsep for GLIBC_2.2.5.
11891         * string/bits/string2.h: Define all __STRING_INLINE functions if
11892         _FORCE_INLINES is defined.
11893         Use int instead of char of parameter types.
11894         (__strsep): Don't use __strsep_g.  Don't define it.
11895         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
11896         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
11897         __strcpy_small.
11898         (__stpcpy_a_small): Renamed from __stpcpy_small.
11899         (__strcspn_c1): Don't define if _FORCE_INLINES.
11900         (__strspn_c1): Likewise.
11901
11902 2001-09-22  Ben Collins  <bcollins@debian.org>
11903
11904         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
11905         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
11906         * sysdeps/ia64/bits/sigaction.h: Likewise.
11907         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
11908
11909 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
11910
11911         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
11912
11913 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
11914
11915         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
11916
11917 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
11918
11919         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
11920
11921 2001-09-20  H.J. Lu  <hjl@gnu.org>
11922
11923         * include/dlfcn.h (__RTLD_SPROF): New definiton.
11924         * elf/dl-open.c (dl_open_worker): Return immediately after loading
11925         for __RTLD_SPROF.
11926         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
11927         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
11928
11929 2001-09-20  H.J. Lu  <hjl@gnu.org>
11930
11931         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
11932         don't add 1.
11933
11934 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
11935
11936         * nss/getent.c: Accept -s parameter to overwrite rules in
11937         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
11938
11939         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
11940         with as many ".0" as necessary to form a complete address
11941         inet_network understands.
11942
11943         * nss/getent.c: Various cleanups.  Use simpler and fewer function
11944         calls.
11945
11946 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11947
11948         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
11949         _JMPBUF_UNWINDS.
11950         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
11951
11952 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
11953
11954         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
11955         IBM1161.
11956         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
11957         * iconvdata/ibm1160.c: New file.
11958         * iconvdata/ibm1160.h: New file.
11959         * iconvdata/ibm1161.c: New file.
11960         * iconvdata/ibm1161.h: New file.
11961         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11962
11963 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
11964
11965         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
11966         difference between base address and first PT_LOAD's virtual address,
11967         not the base address.
11968
11969 2001-09-11  Tom Rix  <trix@redhat.com>
11970
11971         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
11972         ifdef for __getopt_clean_environment.
11973         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
11974
11975 2001-09-22  Andreas Jaeger  <aj@suse.de>
11976
11977         * elf/reldep4.c (main): Add proper prototype to fix warning.
11978
11979         * elf/reldep5.c (main): Remove unused variable.
11980
11981         * math/math_private.h: Add prototypes.
11982
11983 2001-09-21  Andreas Jaeger  <aj@suse.de>
11984
11985         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
11986         * sysdeps/x86_64/Dist: New file.
11987         * sysdeps/x86_64/soft-fp/Dist: New file.
11988
11989         * sysdeps/gnu/Dist: Remove eval.c.
11990
11991 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
11992
11993         * malloc/memusage.c (realloc): Don't count already allocated
11994         memory in the sums.
11995         (me): Always use dlsym() to find the real implementations.
11996
11997         * malloc/memusage.sh: Make -n option actually do something.
11998
11999 2001-09-20  Andreas Jaeger  <aj@suse.de>
12000
12001         * elf/elf.h (R_390_NUM): Correct value.
12002
12003         * Versions.def: Add missing versions 2.2.3 for libthread_db and
12004         libpthread.
12005
12006         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
12007         for x86-64, install x86-64 into */lib64.
12008
12009         * shlib-versions: Add x86-64.
12010
12011         * elf/elf.h: Add x86-64 relocations.
12012
12013 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
12014
12015         * po/fr.po: Update from translation team.
12016
12017 2001-09-19  Andreas Jaeger  <aj@suse.de>
12018
12019         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
12020         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
12021         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
12022         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
12023         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
12024         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
12025         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
12026         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
12027         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
12028         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
12029         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
12030         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
12031         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
12032         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
12033         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
12034         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
12035         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
12036         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
12037         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
12038         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
12039         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
12040         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
12041         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
12042         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
12043         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
12044         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
12045         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
12046         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
12047         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
12048         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
12049         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
12050         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
12051         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
12052         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
12053         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
12054         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
12055         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
12056         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
12057         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
12058         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
12059         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
12060         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
12061         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
12062         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
12063         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
12064         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
12065         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
12066         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
12067         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
12068         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
12069         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
12070         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
12071         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
12072         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
12073         * sysdeps/unix/x86_64/sysdep.S: New file.
12074         * sysdeps/unix/x86_64/sysdep.h: New file.
12075         * sysdeps/x86_64/Implies: New file.
12076         * sysdeps/x86_64/Makefile: New file.
12077         * sysdeps/x86_64/Versions: New file.
12078         * sysdeps/x86_64/__longjmp.S: New file.
12079         * sysdeps/x86_64/abort-instr.h: New file.
12080         * sysdeps/x86_64/atomicity.h: New file.
12081         * sysdeps/x86_64/bits/endian.h: New file.
12082         * sysdeps/x86_64/bits/setjmp.h: New file.
12083         * sysdeps/x86_64/bits/string.h: New file.
12084         * sysdeps/x86_64/bp-asm.h: New file.
12085         * sysdeps/x86_64/bsd-_setjmp.S: New file.
12086         * sysdeps/x86_64/bsd-setjmp.S: New file.
12087         * sysdeps/x86_64/dl-machine.h: New file.
12088         * sysdeps/x86_64/elf/initfini.c: New file.
12089         * sysdeps/x86_64/elf/start.S: New file.
12090         * sysdeps/x86_64/ffs.c: New file.
12091         * sysdeps/x86_64/ffsll.c: New file.
12092         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
12093         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
12094         * sysdeps/x86_64/fpu/e_acosl.c: New file.
12095         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
12096         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
12097         * sysdeps/x86_64/fpu/e_expl.c: New file.
12098         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
12099         * sysdeps/x86_64/fpu/e_log10l.S: New file.
12100         * sysdeps/x86_64/fpu/e_log2l.S: New file.
12101         * sysdeps/x86_64/fpu/e_logl.S: New file.
12102         * sysdeps/x86_64/fpu/e_powl.S: New file.
12103         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
12104         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
12105         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
12106         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
12107         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
12108         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
12109         * sysdeps/x86_64/fpu/fegetenv.c: New file.
12110         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
12111         * sysdeps/x86_64/fpu/fegetround.c: New file.
12112         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
12113         * sysdeps/x86_64/fpu/fesetenv.c: New file.
12114         * sysdeps/x86_64/fpu/fesetround.c: New file.
12115         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
12116         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
12117         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
12118         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
12119         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
12120         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
12121         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
12122         * sysdeps/x86_64/fpu/s_atanl.c: New file.
12123         * sysdeps/x86_64/fpu/s_cosl.S: New file.
12124         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
12125         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
12126         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
12127         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
12128         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
12129         * sysdeps/x86_64/fpu/s_logbl.c: New file.
12130         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
12131         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
12132         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
12133         * sysdeps/x86_64/fpu/s_rintl.c: New file.
12134         * sysdeps/x86_64/fpu/s_significandl.c: New file.
12135         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
12136         * sysdeps/x86_64/fpu/s_sinl.S: New file.
12137         * sysdeps/x86_64/fpu/s_tanl.S: New file.
12138         * sysdeps/x86_64/gmp-mparam.h: New file.
12139         * sysdeps/x86_64/hp-timing.c: New file.
12140         * sysdeps/x86_64/hp-timing.h: New file.
12141         * sysdeps/x86_64/htonl.S: New file.
12142         * sysdeps/x86_64/memusage.h: New file.
12143         * sysdeps/x86_64/setjmp.S: New file.
12144         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
12145         * sysdeps/x86_64/stackinfo.h: New file.
12146         * sysdeps/x86_64/sysdep.h: New file.
12147         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
12148
12149         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
12150         L Moshier.
12151
12152 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
12153
12154         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
12155         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
12156
12157 2001-09-18  Andreas Schwab  <schwab@suse.de>
12158
12159         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
12160         list, now that l_scope is a pointer.
12161
12162         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
12163         scope list.
12164
12165 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
12166
12167         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
12168         (elf_machine_rela_relative): Add a missing declaration.
12169
12170 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
12171
12172         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
12173         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
12174         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
12175         ldd-rewrite scripts.
12176
12177 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
12178
12179         * elf/ldd.bash.in: Update copyright message.
12180
12181 2001-09-17  H.J. Lu  <hjl@gnu.org>
12182
12183         * hurd/hurdmalloc.c (bcopy): Removed.
12184         (realloc): Replace bcopy with memcpy.
12185         * hurd/path-lookup.c (file_name_path_scan): Likewise.
12186         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
12187         * sunrpc/rpcinfo.c (pmapdump): Likewise.
12188
12189         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
12190         (gethostbyaddr): Likewise.
12191         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
12192
12193 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
12194
12195         * sysdeps/gnu/eval.c: Removed.
12196
12197 2001-09-18  Andreas Jaeger  <aj@suse.de>
12198
12199         * sysdeps/i386/fpu/s_logbl.S: Move to ...
12200         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
12201
12202         * sysdeps/i386/fpu/s_rintl.S: Move to ...
12203         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
12204
12205         * sysdeps/i386/fpu/s_significandl.S: Move to ...
12206         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
12207
12208 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
12209
12210         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
12211         nrules value.
12212
12213 2001-09-14  H.J. Lu  <hjl@gnu.org>
12214
12215         * sysdeps/mips/fpu/libm-test-ulps: Updated.
12216
12217 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
12218
12219         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
12220         Patch by Florian La Roche <laroche@redhat.com>.
12221
12222         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
12223
12224         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
12225         ETHER_CRC_LEN.
12226
12227 2001-09-14  Andreas Schwab  <schwab@suse.de>
12228
12229         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
12230         Sumner <bls@sgi.com>.
12231         * posix/execlp.c: Likewise.
12232
12233 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
12234
12235         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
12236         is already found earlier in the search scope.
12237
12238 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
12239
12240         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
12241         filter.
12242
12243 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
12244
12245         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
12246
12247 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
12248
12249         * config.h.in: Enforce optimization to be used.
12250         * Makeconfig (preprocess-versions): Define ASSEMBLER.
12251         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
12252         * posix/Makefile (annexc-CFLAGS): Define to -O.
12253         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
12254
12255 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
12256
12257         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
12258         Patch by Stephan Kulow.
12259
12260 2001-09-08  Ben Collins  <bcollins@debian.org>
12261
12262         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
12263         usage of RESOLVE() (r_type, not reloc->r_type).
12264
12265 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
12266
12267         * elf/dl-object.c: Avoid allocating extra memory block for name.
12268         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
12269         allocated separately.
12270         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
12271
12272 2001-09-08  H.J. Lu  <hjl@gnu.org>
12273
12274         * po/zh_TW.po: Fix a typo.
12275
12276 2001-09-07  Tom Rix  <trix@redhat.com>
12277
12278         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
12279
12280 2001-08-26  Tom Rix  <trix@redhat.com>
12281
12282         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
12283         command line options.
12284         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
12285         * sysdeps/unix/sysv/aix/start.c: Removed.
12286         * sysdeps/unix/sysv/aix/start-libc.c: New file.
12287         * sysdeps/unix/sysv/aix/init-first.c: New file.
12288         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
12289
12290 2001-09-08  Ben Collins  <bcollins@debian.org>
12291
12292         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
12293         * sysdeps/generic/dl-machine.h: Likewise.
12294         * sysdeps/hppa/dl-fptr.c: Likewise.
12295         * sysdeps/ia64/dl-fptr.c: Likewise.
12296         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
12297         * sysdeps/mips/dl-machine.h: Likewise.
12298         * sysdeps/mips/mips64/dl-machine.h: Likewise.
12299         * sysdeps/powerpc/dl-machine.c: Likewise.
12300
12301 2001-09-07  Ben Collins  <bcollins@debian.org>
12302
12303         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
12304
12305         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
12306
12307 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
12308
12309         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
12310         dependencies if necessary.
12311
12312         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
12313         loaded directly) determine length if l_initfini list by iterating
12314         over its elements.  Minor optimizations.
12315         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
12316         for dependency objects.
12317         If object was already loaded check whether any of the dependencies
12318         is already on the relocation dependency list.  If yes, remove the
12319         latter.  Minor optimizations.
12320         * elf/dl-lookup.c (add_dependency): Add check for self reference of
12321         maps here.  Search l_initfini list only if the object was loaded
12322         directly and not only as a dependency.
12323         (_dl_lookup_symbol): Add relocation dependency also if object
12324         is not in global scope.  Remove test for self-reference here.
12325         (_dl_lookup_versioned_symbol): Likewise.
12326         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
12327         element of first name record.
12328         * elf/loadtest.c: Add some more test to recognize early if an object
12329         wasn't unloaded.
12330         * elf/Makefile: Add rules to build and run reldep5.
12331         * elf/reldep5.c: New file.
12332         * elf/reldepmod5.c: New file.
12333         * elf/reldepmod6.c: New file.
12334
12335         * elf/reldep2.c: Fix typo.
12336
12337 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
12338
12339         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
12340         elements.  Change l_scope to be a pointer only.
12341         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
12342         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
12343         here add searchlist of newly open file to the dependency's scope.
12344         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
12345         only searchlist from its scope.  Free own scope array if necessary.
12346         * elf/Makefile (tests): Add dblload and dblunload now.
12347
12348 2001-09-06  Andreas Jaeger  <aj@suse.de>
12349
12350         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
12351         Stephen L Moshier.
12352
12353 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
12354
12355         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
12356         they both fail.
12357         * elf/dblload.c: New file.
12358         * elf/dblloadmod1.c: New file.
12359         * elf/dblloadmod2.c: New file.
12360         * elf/dblloadmod3.c: New file.
12361         * elf/dblunload.c: New file.
12362
12363 2001-09-04  Richard Henderson  <rth@redhat.com>
12364
12365         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
12366         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
12367
12368 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
12369
12370         Correct very misleading message for error in failed runtime relocation.
12371         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
12372         place of the error.
12373         (_dl_signal_cerror): Likewise.
12374         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
12375         * elf/dl-close.c: Likewise.
12376         * elf/dl-deps.c: Likewise.
12377         * elf/dl-load.c: Likewise.
12378         * elf/dl-lookup.c: Likewise.
12379         * elf/dl-open.c: Likewise.
12380         * elf/dl-reloc.c: Likewise.
12381         * elf/dl-sym.c: Likewise.
12382         * elf/dl-version.c: Likewise.
12383         * sysdeps/generic/dl-sysdep.c: Likewise.
12384
12385 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
12386
12387         * iconv/strtab.c (strtabinit): Initialize null Strent.
12388         (newstring): Move len == 0 handling...
12389         (strtabadd): ...here.
12390         If len == 1, return null Strent.
12391         When inserting a suffix of an existing string, check if
12392         it is not equal to some suffix already recorded.
12393         Copy left and right members over if adding longer string.
12394
12395 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
12396
12397         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
12398
12399         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
12400         (__syscall_gethostname): Add prototype.
12401
12402 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
12403
12404         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
12405
12406 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
12407
12408         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
12409
12410 2001-08-27  Roland McGrath  <roland@frob.com>
12411
12412         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
12413         short, copy that much into NAME anyway before returning error.
12414
12415 2001-09-01  Richard Henderson  <rth@redhat.com>
12416
12417         * sysdeps/alpha/elf/Dist: Remove file.
12418         * sysdeps/alpha/elf/Makefile: Remove file.
12419         * sysdeps/alpha/elf/crtbegin.S: Remove file.
12420         * sysdeps/alpha/elf/crtend.S: Remove file.
12421         * sysdeps/alpha/elf/initfini.c: New file.
12422
12423 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
12424
12425         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
12426         * iconv/tst-iconv3.c: Likewise.
12427
12428 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
12429
12430         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
12431
12432 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
12433
12434         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
12435         export it.
12436         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
12437         * iconv/iconv_prog.c (insert_cache): New function.
12438         (print_known_names): If cache is used call insert_cache to use the
12439         information from the cache [PR libc/2509].
12440
12441 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
12442
12443         * time/strptime.c (strptime_internal): Recognize 'l' format and
12444         handle it like 'I' for symmetry with strftime.
12445
12446 2001-08-31  Richard Henderson  <rth@redhat.com>
12447
12448         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
12449         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
12450         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
12451         (print_statistics): Make scalar unsigned long long.
12452         * sysdeps/alpha/hp-timing.h: New file.
12453
12454 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
12455
12456         * stdio-common/perror.c (perror): Save errno early, pass it
12457         down to perror_internal.
12458         (perror_internal): Add errnum argument.
12459
12460 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
12461
12462         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
12463         Don't add old memory content for R_ALPHA_REFQUAD.
12464
12465 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12466
12467         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
12468         memory correctly.
12469
12470         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
12471         instead of open, __close instead of close, __getpagesize instead
12472         of getpagesize.
12473
12474         * string/argz-stringify.c (__argz_stringify): Use __strnlen
12475         instead of strnlen.
12476         * include/string.h (strndupa): Redefine here to use __strnlen
12477         instead of strnlen.
12478         * string/strndup.c (__strndup): Use __strnlen not strnlen.
12479
12480         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
12481         connected).
12482
12483 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
12484
12485         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
12486         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
12487         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
12488         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
12489         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
12490         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
12491         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
12492
12493 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12494
12495         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
12496
12497 2001-08-30  Andreas Jaeger  <aj@suse.de>
12498
12499         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
12500         contributed Stephen L Moshier.
12501
12502 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
12503
12504         * sunrpc/etc.rpc (sgi_fam): Add.
12505
12506 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12507
12508         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
12509
12510 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
12511
12512         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
12513         first is from a previous call.
12514         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
12515
12516 2001-08-29  Andreas Schwab  <schwab@suse.de>
12517
12518         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
12519
12520 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12521
12522         * config.make.in (INSTALL_SCRIPT): Define.
12523         * Makeconfig (INSTALL_SCRIPT): Define.
12524         * Makerules (do-install-script): New macro to install scripts using
12525         INSTALL_SCRIPT.
12526         (install-bin-script): New rule to install scripts with
12527         do-install-script.
12528         (install-bin-script-nosubdir): New rule.
12529         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
12530         (distinfo-vars): Add $(install-bin-script).
12531         * Rules (others): Likewise.
12532         * Makefile (glibcbug): Install with install-bin-script.
12533         * debug/Makefile (xtrace): Likewise.
12534         (catchsegv): Likewise.
12535         * elf/Makefile (ldd): Likewise.
12536         * malloc/Makefile (mtrace): Likewise.
12537         * timezone/Makefile (tzselect): Likewise.
12538
12539 2001-08-29  H.J. Lu  <hjl@gnu.org>
12540
12541         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
12542         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
12543         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
12544
12545 2001-08-29  Andreas Schwab  <schwab@suse.de>
12546
12547         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
12548
12549 2001-08-28  H.J. Lu  <hjl@gnu.org>
12550
12551         * Makeconfig (combreloc-LDFLAGS): New variable.
12552         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
12553         * config.make.in (have-z-combreloc): New variable.
12554         * configure.in: Substitute libc_cv_z_combreloc.
12555
12556 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
12557
12558         * po/sv.po: Update from translation team.
12559         * po/fr.po: Likewise.
12560         * po/da.po: Likewise.
12561
12562 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12563
12564         * Makerules: Fix a typo: MD% -> MD5.
12565
12566 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
12567
12568         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
12569         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
12570
12571 2001-08-28  Andreas Jaeger  <aj@suse.de>
12572
12573         * manual/libc-texinfo.sh: Add entry about free manuals.
12574
12575         * manual/contrib.texi (Contributors): Fix cross reference.
12576
12577         * manual/libc.texinfo (Copying): Include freemanuals.
12578
12579         * manual/Makefile (appendices): Add freemanuals.
12580
12581         * manual/freemanuals.texi: New file.
12582         Patch by Brian Youmans <3diff@gnu.org>.
12583
12584         * manual/libm-err-tab.pl: Pretty print more platforms, print a
12585         smaller table.
12586
12587         * manual/math.texi (Errors in Math Functions): Fix grammar, start
12588         table on separate page.
12589         Patch by Brian Youmans <3diff@gnu.org>.
12590
12591 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
12592
12593         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
12594         the connection went down after we first used it try to connect
12595         again and resend the message before printing to the console.
12596         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
12597
12598 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
12599
12600         * string/tst-strlen.c (main): Test strnlen (, -1) too.
12601         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
12602         bit set.
12603
12604 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
12605
12606         * iconv/strtab.c (searchstring): Use correct length for comparison.
12607         (strtabadd): Account total size correct if new string has old string as
12608         substring.
12609
12610 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
12611
12612         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
12613
12614 2001-08-27  Andreas Jaeger  <aj@suse.de>
12615
12616         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
12617
12618         * math/libm-test.inc (j0_test): Add extra tests.
12619         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
12620         not x, in Hankel approximation.
12621         Patches by Stephen L Moshier.
12622
12623 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
12624
12625         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
12626         link_map.
12627
12628         * configure.in: Fix test for .rela.dyn section.
12629
12630         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
12631
12632 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
12633
12634         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
12635         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
12636         Pass type_class to _dl_lookup_*.
12637         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
12638         Pass around just type_class instead of noexec, noplt pair.
12639         (_dl_lookup_versioned_symbol): Likewise.
12640         (_dl_lookup_symbol_skip): Pass around just type_class instead of
12641         noexec, noplt pair.
12642         (_dl_lookup_versioned_symbol_skip): Likewise.
12643         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
12644         * elf/do-lookup.h (do_lookup): Likewise.
12645         * include/link.h (struct link_map): Replace noexec and noplt fields
12646         in l_lookup_cache with type_class field.
12647         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
12648         ELF_RTYPE_CLASS_COPY): Define.
12649         Adjust prototypes for _dl_lookup_symbol and
12650         _dl_lookup_versioned_symbol.
12651         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
12652         elf_machine_lookup_noexec_p): Remove.
12653         (elf_machine_type_class): Define.
12654         * sysdeps/arm/dl-machine.h: Likewise.
12655         * sysdeps/hppa/dl-machine.h: Likewise.
12656         * sysdeps/cris/dl-machine.h: Likewise.
12657         * sysdeps/i386/dl-machine.h: Likewise.
12658         * sysdeps/ia64/dl-machine.h: Likewise.
12659         * sysdeps/m68k/dl-machine.h: Likewise.
12660         * sysdeps/mips/mips64/dl-machine.h: Likewise.
12661         * sysdeps/mips/dl-machine.h: Likewise.
12662         * sysdeps/powerpc/dl-machine.h: Likewise.
12663         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12664         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12665         * sysdeps/sh/dl-machine.h: Likewise.
12666         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12667         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12668
12669 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
12670
12671         * manual/message.texi (Advanced gettext functions): Change
12672         description of plural forms for Slovak.
12673         Reported by Marcel Telka <marcel@telka.sk>.
12674
12675         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
12676         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
12677
12678 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
12679
12680         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
12681         typo.  Patch by Florian La Roche <laroche@redhat.com>.
12682
12683 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
12684
12685         * include/link.h (struct link_map): Add l_lookup_cache element.
12686         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
12687         (RESOLVE_MAP): Likewise.
12688         (_dl_relocate_object): Remove cache initialization.
12689         * elf/dl-lookup.c: Rip out cache handling code.
12690         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
12691         declarations.
12692
12693         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
12694         remove some __builtin_expect.
12695         (_dl_lookup_versioned_symbol): Likewise.
12696
12697         * config.h.in: Add HAVE_Z_COMBRELOC.
12698         * configure.in: Add test for -z combreloc.
12699
12700         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
12701         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
12702         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
12703         case to almost no code.
12704
12705 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
12706
12707         * po/tr.po: Update from translation team.
12708
12709 2001-08-24  Andreas Jaeger  <aj@suse.de>
12710
12711         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
12712         make clean works.
12713
12714 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12715
12716         * elf/rtld.c (print_statistics): Printf % after percent values.
12717         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
12718
12719         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
12720         don't have to compute the hash value and initialize current_value.
12721         Move reference_name variable to where it is needed.
12722         (_dl_lookup_versioned_symbol): Likewise.
12723
12724 2001-08-24  Roland McGrath  <roland@frob.com>
12725
12726         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
12727         Just test that strerror returns non-null for a few errno codes.
12728
12729 2001-08-23  Roland McGrath  <roland@frob.com>
12730
12731         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
12732         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
12733
12734         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
12735
12736         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
12737         __mach_reply_port.
12738
12739 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12740
12741         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
12742         returns NULL.
12743
12744         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
12745         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
12746         doesn't do it.
12747         * elf/rtld.c: Include <sys/param.h>.
12748         * elf/dl-reloc.c: Likewise.
12749
12750 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12751
12752         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
12753         empty to prevent junk from being generated.
12754         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
12755
12756 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
12757
12758         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
12759         records.  Rename endrel to relative, initialize it to r, and use it
12760         in elf_machine_rel_relative calls.  Point r after relative relocs.
12761
12762 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12763
12764         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
12765         of R_386_NONE.
12766
12767 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
12768
12769         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
12770         necessary.  Undefine newly defined macros at the end.
12771         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
12772         Rename from elf_machine_rel_relative.
12773         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
12774         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
12775         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
12776         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
12777         Likewise.
12778         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
12779         Likewise.
12780         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
12781         Fix argument types.
12782         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
12783         Fix argument types.
12784         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
12785         Likewise.  Fix argument types.
12786         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
12787         Likewise.  Fix argument types.
12788         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
12789         Fix argument types.
12790         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
12791         ElfW(Rel) in argument.
12792         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
12793         function.
12794
12795 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
12796
12797         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
12798
12799 2001-08-24  Andreas Jaeger  <aj@suse.de>
12800
12801         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
12802         Stephen L Moshier <moshier@mediaone.net>.
12803
12804 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12805
12806         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
12807         first if RELCOUNT is set.
12808
12809         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
12810         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
12811         elf_machine_rel_relative.
12812         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
12813         Minor optimizations.
12814         * sysdeps/arm/dl-machine.h: Likewise.
12815         * sysdeps/cris/dl-machine.h: Likewise.
12816         * sysdeps/hppa/dl-machine.h: Likewise.
12817         * sysdeps/i386/dl-machine.h: Likewise.
12818         * sysdeps/ia64/dl-machine.h: Likewise.
12819         * sysdeps/m68k/dl-machine.h: Likewise.
12820         * sysdeps/mips/dl-machine.h: Likewise.
12821         * sysdeps/powerpc/dl-machine.h: Likewise.
12822         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12823         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12824         * sysdeps/sh/dl-machine.h: Likewise.
12825         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12826         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12827
12828 2001-08-23  Roland McGrath  <roland@frob.com>
12829
12830         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
12831
12832         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
12833         sysdeps/mach version.  Implement counting ("recursive") mutexes
12834         on top of cthreads mutexes.
12835         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
12836
12837         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
12838         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
12839         (__libc_cleanup_region_start, __libc_cleanup_region_end,
12840         __libc_clean_end): Define these to call the cleanup function after
12841         normal exit when they're supposed to.
12842
12843         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
12844         Take new first arg DOIT, a boolean saying whether to really install
12845         any cleanup handler.
12846         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
12847         (__libc_cleanup_end): Likewise.
12848         * sysdeps/generic/bits/libc-lock.h: Same changes.
12849         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
12850         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
12851         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
12852         Likewise.
12853         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
12854         * sysdeps/generic/bits/stdio-lock.h
12855         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
12856
12857 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
12858
12859         * elf/ldconfig.c (search_dir): Remove stale symlinks.
12860
12861 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
12862
12863         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New
12864         functions.
12865         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
12866         lookups in cache.
12867         (_dl_lookup_versioned_symbol): Likewise.
12868         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
12869         relocation lookup.
12870         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
12871         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
12872         (lookup_cache, lookup_cache_versioned): Add declarations.
12873
12874 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
12875
12876         * stdlib/tst-random.c (main): Swap parameters in fail call.
12877         Patch by Pete Bevin <pete@petebevin.com>.
12878
12879 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
12880
12881         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
12882
12883 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
12884
12885         * malloc/obstack.c: Indent preprocessor directives.
12886         Patch by Jim Meyering <meyering@ascend.com>.
12887
12888         * po/ja.po: Update from translation team.
12889
12890 2001-08-23  Roland McGrath  <roland@frob.com>
12891
12892         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
12893
12894         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
12895         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
12896
12897 2001-08-22  Roland McGrath  <roland@frob.com>
12898
12899         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
12900         __libc_lock_define_recursive.
12901         * elf/dl-open.c: Don't declare it here any more.
12902         * elf/dl-close.c: Likewise.
12903         * elf/dl-lookup.c: Likewise.
12904         * elf/dl-iteratephdr.c: Likewise.
12905         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
12906         __libc_lock_unlock_recursive.
12907         * elf/dl-close.c (_dl_close): Likewise
12908         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
12909         * elf/dl-open.c (_dl_open): Likewise
12910
12911         * sysdeps/generic/bits/libc-lock.h
12912         (__libc_lock_define_recursive): New macro.
12913         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
12914         (_IO_lock_lock): Use __libc_lock_lock_recursive.
12915         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
12916
12917         * conform/conformtest.pl (checknamespace): Sort the output list.
12918
12919         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
12920         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
12921         definitions conditional on [__USE_XOPEN].
12922
12923         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
12924         these unconditionally, not only use [__USE_BSD], so as to match
12925         the sysdeps/unix/sysv/linux files.
12926
12927 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
12928
12929         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
12930         avoid warnings.
12931
12932         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
12933         DL_LOOKUP_ADDRESS.
12934
12935 2001-08-22  Roland McGrath  <roland@frob.com>
12936
12937         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
12938         conditionalization of sa_handler/sa_sigaction member types to
12939         match the sysdeps/unix/sysv/linux file.
12940
12941 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
12942
12943         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
12944         symbol sizes a bit better.
12945
12946         * sysdeps/ia64/strncpy.S: Complete rewrite.
12947         Contributed by Jakub Jelinek <jakub@redhat.com>.
12948
12949         * string/stratcliff.c (main): Add strncpy test.
12950
12951 2001-08-22  Roland McGrath  <roland@frob.com>
12952
12953         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
12954         and don't declare unsetenv or _environ directly.
12955         (unsetenv): Return int, not void.  Use __environ instead of _environ.
12956
12957 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
12958
12959         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
12960         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
12961         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
12962         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
12963         test for cmsg struct size.
12964
12965 2001-04-23  Paul Eggert  <eggert@twinsun.com>
12966
12967         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
12968         Rename __argc to ___argc in prototypes to avoid compatibility
12969         problems with systems that reserve the identifier "__argc".
12970         Similarly for __argv.
12971
12972 2001-08-21  Roland McGrath  <roland@frob.com>
12973
12974         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
12975
12976         * mach/Makefile (tests): Removed.
12977         * mach/hello.c: File removed.
12978
12979 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
12980
12981         * po/sv.po: Update from translation team.
12982
12983         * stdio-common/vfscanf.c: Fix handling of %l[].
12984         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
12985
12986         * libio/Makefile (tests): Add tst-sscanf.
12987         * libio/tst-sscanf.c: New file.
12988
12989         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
12990         * malloc/mtrace.c (tr_where): dli_sname always points to a
12991         non-empty string if != NULL.
12992         Reported by Tim Janik <timj@gtk.org>.
12993
12994 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
12995
12996         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
12997         buf.  Free resources on failure.
12998         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
12999         (makefd_xprt): Likewise.
13000         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
13001         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
13002         * sunrpc/auth_unix.c (authunix_create): Likewise.
13003
13004 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
13005
13006         * string/strnlen.c: Remove.
13007         * sysdeps/generic/strnlen.c: New file.
13008         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
13009
13010 2001-08-21  Roland McGrath  <roland@frob.com>
13011
13012         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
13013         as a macro, not an extern inline function.
13014
13015         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
13016         * Versions.def (libc): Add GLIBC_2.2.5 set.
13017         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
13018         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
13019
13020 2001-08-20  Roland McGrath  <roland@frob.com>
13021
13022         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
13023         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
13024
13025 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
13026
13027         * string/bits/string2.h: Remove strnlen optimization here.
13028         * sysdeps/i386/i486/bits/string.h: Add it here.
13029
13030 2001-08-21  Wolfram Gloger  <wg@malloc.de>
13031
13032         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
13033
13034 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
13035
13036         * po/gl.po: Update from translation team.
13037
13038 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
13039
13040         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
13041         * misc/err.c (convert_and_print): Likewise.
13042
13043         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
13044         function calls.
13045
13046 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13047
13048         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
13049         change of the gregset_t type.
13050         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
13051
13052 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
13053
13054         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
13055
13056 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
13057
13058         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
13059
13060         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
13061
13062 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
13063
13064         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
13065         before calling the cthreads initialization code.
13066
13067 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
13068
13069         * argp/argp-help.c: Fix two problems introduced in last change.
13070
13071         * include/dirent.h: Include <dirstream.h> first.
13072
13073 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
13074
13075         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
13076
13077         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
13078         * sunrpc/xdr_rec.c: Likewise.
13079         * sunrpc/xdr_mem.c: Likewise.
13080         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
13081         * sunrpc/rpc_cmsg.c: Likewise.
13082         * sunrpc/getrpcport.c (getrpcport): Likewise.
13083         * sunrpc/clnt_simp.c (callrpc): Likewise.
13084         * sunrpc/clnt_gen.c (clnt_create): Likewise.
13085         * string/envz.c: Likewise.
13086
13087         * po/ko.po: Update from translation team.
13088
13089         * argp/argp-help.c: Handle wide oriented stderr stream.
13090
13091 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
13092
13093         * sysdeps/generic/strtol.c: Little optimizations.  Add some
13094         __builtin_expect.
13095
13096         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
13097
13098         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
13099         * wcsmbs/wcwidth.c (wcwdith): Likewise.
13100         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
13101
13102         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
13103
13104         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
13105
13106         * time/time.h (struct timespec): Use __time_t for tv_sec element.
13107
13108         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
13109         wchar_t for function declarations and defintions.
13110
13111         * misc/sys/select.h: Define __need_time_t before including <time.h>.
13112         Define suseconds_t if it hasn't happened yet.
13113
13114         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
13115
13116         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
13117
13118         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
13119         <stddef.h>.
13120
13121         * conform/data/stddef.h-data: Remove wint_t.
13122
13123         * conform/conformtest.pl: Change namespace test to take #undef
13124         lines into account.
13125
13126         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
13127
13128         * conform/data/sys/socket.h-data: Add sockatmark.
13129
13130 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
13131
13132         * io/fts.c: Update from recent BSD source.
13133
13134 2001-08-17  Roland McGrath  <roland@frob.com>
13135
13136         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
13137         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
13138         Likewise.
13139
13140 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
13141
13142         * locale/duplocale.c (__duplocale): Also initialize the special
13143         __ctype_* elements.
13144
13145         * conform/data/netdb.h-data: Adjust gai_strerror return type.
13146
13147 2001-08-17  Andreas Jaeger  <aj@suse.de>
13148
13149         * misc/getpass.c: Include wchar.h for prototypes.
13150         * malloc/obstack.c: Likewise.
13151
13152 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
13153
13154         * sunrpc/svc_simple.c (universal): Use __write instead of write.
13155
13156         * wcsmbs/wcscoll.c: Also define __wcscoll.
13157         * include/wchar.h: Declare __wcscoll.
13158
13159         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
13160         * libio/vwprintf.c: Likewise.
13161         * libio/wprintf.c: Likewise.
13162
13163         * iconv/gconv_cache.c: Use __munmap instead of munmap.
13164
13165 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
13166
13167         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
13168         instead of mbrtowc.
13169         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
13170         wcslen, and __wcscoll instead of wcscoll.
13171
13172         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
13173
13174         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
13175         __getuid instead of getuid.
13176
13177         * stdio-common/perror.c (perror): Use __close instead of close.
13178         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
13179         * libio/freopen.c (freopen): Likewise.
13180         * libio/freopen64.c (freopen64): Likewise.
13181
13182         * libio/tst-ungetwc2.c (main): Define str const.
13183
13184         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
13185         * libio/fwprintf.c: Also define __fwprintf.
13186         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
13187         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
13188         * assert/assert-perr.c: Likewise.
13189         * assert/assert.c: Likewise.
13190         * gmon/gmon.c: Likewise.
13191         * inet/rcmd.c: Likewise.
13192         * malloc/obstack.c: Likewise.
13193         * misc/err.c: Likewise.
13194         * misc/error.c: Likewise.
13195         * misc/getpass.c: Likewise.
13196         * posix/getopt.c: Likewise.
13197         * resolv/res_hconf.c: Likewise.
13198         * stdio-common/perror.c: Likewise.
13199         * stdio-common/psignal.c: Likewise.
13200         * stdlib/fmtmsg.c: Likewise.
13201         * sunrpc/auth_unix.c: Likewise.
13202         * sunrpc/clnt_perr.c: Likewise.
13203         * sunrpc/clnt_tcp.c: Likewise.
13204         * sunrpc/clnt_udp.c: Likewise.
13205         * sunrpc/clnt_unix.c: Likewise.
13206         * sunrpc/svc_simple.c: Likewise.
13207         * sunrpc/svc_tcp.c: Likewise.
13208         * sunrpc/svc_udp.c: Likewise.
13209         * sunrpc/svc_unix.c: Likewise.
13210         * sunrpc/xdr.c: Likewise.
13211         * sunrpc/xdr_array.c: Likewise.
13212         * sunrpc/xdr_rec.c: Likewise.
13213         * sunrpc/xdr_ref.c: Likewise.
13214         * sysdeps/generic/wordexp.c: Likewise.
13215
13216         * po/it.po: Update from translation team.
13217
13218         * misc/err.c: Handle wide oriented stderr stream.
13219
13220 2001-08-14  Tom Rix  <trix@redhat.com>
13221
13222         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
13223         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
13224
13225 2001-08-13  Tom Rix  <trix@redhat.com>
13226
13227         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
13228         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
13229         and __intptr_t.
13230
13231 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13232
13233         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
13234         Store the access registers to the ucontext structure.
13235         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
13236         Likewise.
13237
13238         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
13239         Load the access registers from the ucontext structure.
13240         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
13241         Likewise.
13242
13243         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
13244         offsets to the new ucontext layout.
13245         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
13246
13247         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
13248         of the ucontext structure.
13249         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
13250
13251 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
13252
13253         * misc/error.c (error): Handle wide oriented stderr stream correctly.
13254         (error_at_line): Likewise.
13255
13256         * stdio-common/perror.c (perror): Implement according to standard.
13257         The stream orientation must not be changed if the stream was not
13258         oriented before the call.
13259         * stdio-common/Makefile (tests): Add tst-perror.
13260         * stdio-common/tst-perror.c: New file.
13261
13262
13263 See ChangeLog.12 for earlier changes.