* intl/dcigettext.c (DCIGETTEXT): Restore errno only right before
[platform/upstream/glibc.git] / ChangeLog
1 2002-09-19  Bruno Haible  <bruno@clisp.org>
2
3         * intl/dcigettext.c (DCIGETTEXT): Restore errno only right before
4         returning.
5
6 2002-09-17  Bruno Haible  <bruno@clisp.org>
7
8         * sysdeps/generic/utmp-equal.h: New file, extracted from utmp_file.c.
9         * sysdeps/generic/utmp_file.c (setutent_file): Invalidate last_entry
10         also on platforms with !HAVE_UT_TYPE.
11         (proc_utmp_eq): Remove function.
12         (internal_getut_r, pututline_file): Call __utmp_equal instead.
13
14 2002-09-20  Bruno Haible  <bruno@clisp.org>
15
16         * abi-tags: Add support for FreeBSD with ABI OS value 3.
17         * elf/cache.c (print_entry): Support the GNU/FreeBSD ABI tag.
18
19 2002-09-20  Roland McGrath  <roland@redhat.com>
20
21         * sysdeps/generic/gmp-mparam.h: Include <bits/wordsize.h>.
22         (BITS_PER_MP_LIMB, BYTES_PER_MP_LIMB, BITS_PER_LONGINT): Define in
23         terms of __WORDSIZE.
24         * sysdeps/x86_64/gmp-mparam.h: File removed.
25         * sysdeps/sparc/gmp-mparam.h: File removed.
26         * sysdeps/mips/mips64/gmp-mparam.h: File removed.
27         * sysdeps/ia64/gmp-mparam.h: File removed.
28         * sysdeps/alpha/gmp-mparam.h: File removed.
29
30 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
31
32         * sysdeps/powerpc/elf/libc-start.c: Use long in place of int for argc
33         load, so as to work on both 32-bit and 64-bit.  Remove unnecessary
34         casts.  Align __libc_stack_end to 8 bytes.
35
36 2002-09-20  Roland McGrath  <roland@redhat.com>
37
38         * sysdeps/powerpc/fpu/s_lrint.c: Use strong_alias/weak_alias macros
39         instead of asm for lrintf, __lrintf aliases.
40
41         * sysdeps/powerpc/fpu/s_lrint.c (__lrint): Change union long array to
42         int array for 32-/64-bit compatibility.
43         From Steven Munroe  <sjmunroe@us.ibm.com>.
44
45 2002-09-17  Bruno Haible  <bruno@clisp.org>
46
47         * sysdeps/generic/ifreq.h (__if_nextreq): New function.
48         * sysdeps/unix/sysv/linux/ifreq.h (__if_nextreq): New function.
49         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): New function.
50         * sysdeps/gnu/ifaddrs.c (getifaddrs): Use __if_nextreq
51         for iterating through the list of interfaces.
52         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Likewise.
53
54 2002-09-20  Roland McGrath  <roland@redhat.com>
55
56         * sysdeps/unix/grantpt.c (pts_name): Set errno when __ptsname_r fails.
57         Reported by Bruno Haible <bruno@clisp.org>.
58
59         * sysdeps/unix/bsd/bsd4.4/isatty.c: New file.
60
61         * sysdeps/unix/bsd/isatty.c (__isatty): Don't save and restore errno.
62         * sysdeps/unix/bsd/ptsname.c (__ptsname_r): Return errno value from
63         isatty unmodified.  Reported by Bruno Haible <bruno@clisp.org>.
64
65 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
66
67         * sysdeps/powerpc/bits/setjmp.h [__WORDSIZE]: Add 64-bit jmpbuf.
68         * sysdeps/powerpc/bits/wordsize.h: New file.
69         * sysdeps/powerpc/fpu/bits/mathinline.h (lrint, lrintf): Change long
70         array to int array for 32-/64-bit compatibility.
71
72 2002-09-20  Roland McGrath  <roland@redhat.com>
73
74         * login/programs/utmpdump.c: Don't include <error.h>, <errno.h>.
75
76         * sysdeps/generic/utimes.c (__utimes): Don't check TVP for null.
77         Reported by Bruno Haible <bruno@clisp.org>.
78
79         * sysdeps/generic/ifreq.h (__ifreq): Compute termination condition
80         before doubling RQ_LEN.
81         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
82         Reported by Bruno Haible <bruno@clisp.org>.
83
84 2002-09-18  Bruno Haible  <bruno@clisp.org>
85
86         * login/logout.c (logout): Don't assume ut_time has the same size as
87         a time_t.
88         * login/logwtmp.c (logwtmp): Likewise.
89
90         * sysdeps/pthread/configure: New file, moved here from
91         linuxthreads/sysdeps/unix/sysv/linux/configure.
92
93 2002-09-19  Ulrich Drepper  <drepper@redhat.com>
94
95         * sysdeps/unix/sysv/linux/_exit.c: Include <errno.h>.
96         (_exit): Don't use ABORT_INSTRUCTION if it is not defined.
97         Reported by Glen Nakamura <glen@imodulo.com>.
98
99 2002-09-19  Neal H. Walfield  <neal@cs.uml.edu>
100
101         * sysdeps/mach/hurd/fork.c (__fork): Do not free the signal
102         thread's sigstate data structure if it has been allocated.
103
104 2002-09-19  Roland McGrath  <roland@redhat.com>
105
106         * include/libc-symbols.h [HAVE_ASM_SET_DIRECTIVE]
107         [! HAVE_ASM_GLOBAL_DOT_NAME] (__hidden_dot_def1): Fix typo'd name.
108
109 2002-09-18  Ulrich Drepper  <drepper@redhat.com>
110
111         * version.h (VERSION): Bump to 2.2.94.
112
113         * sysdeps/powerpc/fpu/Dist: Move fprrest.S and fprsave.S to...
114         * sysdeps/powerpc/powerpc32/fpu/Dist: ...here.  New file.
115         * sysdeps/unix/sysv/linux/powerpc/Dist: Move kernel_stat.h to...
116         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
117
118         * sysdeps/i386/Makefile: Remove obsolete db2 rules.
119
120         * sysdeps/unix/sysv/linux/Makefile: Add exit-thread.S.
121
122         * sysdeps/unix/sysv/linux/powerpc/Dist: Add ldd-rewrite.sh.
123
124         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: New file.
125
126 2002-09-19  Jakub Jelinek  <jakub@redhat.com>
127
128         * sysdeps/wordsize-32/Makefile: New file.
129         * sysdeps/arm/Makefile: Removed.
130         * sysdeps/i386/Makefile (sysdep_routines, shared-only-routines):
131         Don't add divdi3 here.
132         * sysdeps/m68k/Makefile: Likewise.
133         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
134         * sysdeps/sh/Makefile: Likewise.
135         * sysdeps/s390/s390-32/Makefile: Likewise.
136
137 2002-09-18  Roland McGrath  <roland@redhat.com>
138
139         * locale/lc-ctype.c (_nl_postload_ctype): Add compat_symbol decls for
140         the __ctype_* compat symbols, so the relocs generated bind to the
141         right versioned global symbol in the shared object.
142
143         * elf/do-rel.h (elf_dynamic_do_rel): Mask off 0x8000 bit (hidden flag)
144         from the value taken from the DT_VERSYM table.
145         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
146         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Likewise.
147         (RESOLVE_GOTSYM): Likewise.
148
149         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
150         Add libc_hidden_def.
151         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
152         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
153         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
154         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
155         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
156         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
157         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
158         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
159
160 2002-09-18  Ulrich Drepper  <drepper@redhat.com>
161
162         * include/signal.h: Add libc_hidden_proto for __libc_sigaction.
163
164         * sysdeps/unix/sysv/linux/sigaction.c: If SIGCANCEL is defined
165         define sigaction and __sigaction as wrappers around
166         __libc_sigaction which rejects changing SIGCANCEL.
167         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
168
169         * sysdeps/unix/sysv/linux/i386/clone.S: Add support for SETTLS and
170         SETTID/CLEARTID.
171
172         * signal/allocrtsig.c: Move to...
173         * sysdeps/generic/allocrtsig.c: ...here.  New file.
174
175 2002-09-17  Jakub Jelinek  <jakub@redhat.com>
176
177         * elf/dl-lookup.c (_dl_debug_bindings): Print TLS lookups always.
178
179         * elf/elf.h (R_386_TLS_TPOFF, R_386_TLS_IE, R_386_TLS_GOTIE,
180         R_386_TLS_LE): Define.
181         (R_386_TLS_IE_32, R_386_TLS_LE_32, R_386_TLS_TPOFF32): Update
182         comments.
183         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Return
184         ELF_RTYPE_CLASS_PLT for R_386_TLS_TPOFF.
185         (elf_machine_rel): Handle R_386_TLS_TPOFF.
186         (elf_machine_rela): Likewise.
187         Remove unnecessary RTLD_BOOTSTRAP #ifdefs.
188
189 2002-09-17  Roland McGrath  <roland@redhat.com>
190
191         * malloc/Makefile ($(objpfx)memusagestat.o: sysincludes): Define
192         file-specific variable override so it compiles properly when using
193         --with-headers.
194
195 2002-09-17  Steven Munroe  <sjmunroe@us.ibm.com>
196
197         Ported to PowerPC64 running Linux.
198         * sysdeps/powerpc/powerpc64/Dist: New file.
199         * sysdeps/powerpc/powerpc64/Implies: New file.
200         * sysdeps/powerpc/powerpc64/Makefile: New file.
201         * sysdeps/powerpc/powerpc64/__longjmp.S: New file.
202         * sysdeps/powerpc/powerpc64/atomicity.h: New file.
203         * sysdeps/powerpc/powerpc64/backtrace.c: New file.
204         * sysdeps/powerpc/powerpc64/bp-asm.h: New file.
205         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: New file.
206         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: New file.
207         * sysdeps/powerpc/powerpc64/dl-dtprocnum.h: New file.
208         * sysdeps/powerpc/powerpc64/dl-lookupcfg.h: New file.
209         * sysdeps/powerpc/powerpc64/dl-machine.c: New file.
210         * sysdeps/powerpc/powerpc64/dl-machine.h: New file.
211         * sysdeps/powerpc/powerpc64/memset.S: New file.
212         * sysdeps/powerpc/powerpc64/ppc-mcount.S: New file.
213         * sysdeps/powerpc/powerpc64/register-dump.h: New file.
214         * sysdeps/powerpc/powerpc64/setjmp.S: New file.
215         * sysdeps/powerpc/powerpc64/stpcpy.S: New file.
216         * sysdeps/powerpc/powerpc64/strchr.S: New file.
217         * sysdeps/powerpc/powerpc64/strcmp.S: New file.
218         * sysdeps/powerpc/powerpc64/strcpy.S: New file.
219         * sysdeps/powerpc/powerpc64/strlen.S: New file.
220         * sysdeps/powerpc/powerpc64/elf/bzero.S: New file.
221         * sysdeps/powerpc/powerpc64/elf/start.S: New file.
222         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: New file.
223         * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: New file.
224         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: New File.
225         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: New file.
226         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: New file.
227         * sysdeps/unix/sysv/linux/powerpc/powerpc64/glob64.c: New file.
228         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: New file.
229         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: New file.
230         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: New file.
231
232         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME]
233         (C_SYMBOL_DOT_NAME): Insure that C_SYMBOL_DOT_NAME works for
234         various gcc versions.  Dot names required for powerpc64.
235         [HAVE_ASM_GLOBAL_DOT_NAME] (_weak_extern): Add .weakext '.'ed symbol.
236         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias): Add .global
237         C_SYMBOL_DOT_NAME(alias).
238         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): New macro. Same as
239         original strong_alias macro.
240         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Add .weakext/.weak
241         C_SYMBOL_DOT_NAME(alias).
242         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Add .symver '.'ed name.
243         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Add .symver
244         '.'ed name.
245         Add comments on libc_hidden_data_def and libc_hidden_data_weak usage.
246         [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_def1): New macro.  Generate
247         .global C_SYMBOL_DOT_NAME(alias).  Otherwise an empty macro.
248         (hidden_def): Append hidden_dot_def1 macro to definition.
249         (hidden_ver): Append hidden_dot_def1 macro to definition.
250         (hidden_data_def): New macro.  Same as original hidden_def macro.
251         (hidden_data_ver): New macro.  Same as original hidden_ver macro.
252         [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_weak1): New macro.  Generate
253         .weakext C_SYMBOL_DOT_NAME(alias).  Otherwise an empty macro.
254         (hidden_weak): Append hidden_dot_weak1 macro to definition.
255         (hidden_data_weak): New macro.  Same as original hidden_weak macro.
256         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Define as .__GI_name.
257         Otherwise defined as __GI_name.
258         (libc_hidden_data_def): New macro.  Use hidden_data_def.
259         (libc_hidden_data_weak): New macro.  Use hidden_data_weak.
260         (libc_hidden_data_ver): New macro.  Use hidden_data_ver.
261         (rtld_hidden_data_def): New macro.  Use hidden_data_def.
262         (rtld_hidden_data_weak): New macro.  Use hidden_data_weak.
263         (rtld_hidden_data_ver): New macro.  Use hidden_data_ver.
264         (libm_hidden_data_def): New macro.  Use hidden_data_def.
265         (libm_hidden_data_weak): New macro.  Use hidden_data_weak.
266         (libm_hidden_data_ver): New macro.  Use hidden_data_ver.
267         * inet/in6_addr.c: Replace libc_hidden_def with libc_hidden_data_def.
268
269 2002-09-17  Ulrich Drepper  <drepper@redhat.com>
270
271         * include/libc-symbols.h: Change *hidden_proto macros to accept
272         option parameters and pass those to the attribute definition.
273         * include/unistd.h (_exit): Add __noreturn__ to libc_hidden_proto call.
274
275         * include/unistd.h: Declare __libc_pause.
276
277         * include/sys/socket.h: Declare __libc_send, __libc_recv,
278         __libc_sendto, __libc_sendmsg, __libc_recvmsg, and __libc_accept.
279
280         * include/unistd.h: Declare __libc_fork.
281
282 2002-09-17  Roland McGrath  <roland@redhat.com>
283
284         * sunrpc/xcrypt.c (passwd2des_internal): Renamed fom passwd2des.
285         (passwd2des): Define it as an alias.
286         (xencrypt, xdecrypt): Call passwd2des_internal instead of passwd2des.
287
288 2002-09-12  Bruno Haible  <bruno@clisp.org>
289
290         * include/sys/sysctl.h (__sysctl): Add libc_hidden_proto.
291         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Add libc_hidden_def.
292
293         * include/rpc/xdr.h (xdrstdio_create): Add libc_hidden_proto.
294         * sunrpc/xdr_stdio.c (xdrstdio_create): Add libc_hidden_def.
295
296 2002-09-05  Steven Munroe  <sjmunroe@us.ibm.com>
297
298         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc64__]
299         (__ASSUME_TRUNCATE64_SYSCALL, __ASSUME_STAT64_SYSCALL, __ASSUME_IPC64,
300         __ASSUME_FCNTL64, __ASSUME_MMAP2_SYSCALL): Don't define these.
301         PowerPC64 does not have separate 64-bit syscalls.
302
303 2002-09-16  Roland McGrath  <roland@redhat.com>
304
305         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Add a cast.
306
307         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
308         New macro.
309
310         * elf/rtld.c [HP_TIMING_NONAVAIL]: Fix last change for this case.
311
312         * include/unistd.h: Uncomment libc_hidden_proto for _exit.
313         * sysdeps/mach/hurd/_exit.c: Add libc_hidden_def.
314         * sysdeps/generic/_exit.c: Likewise.
315
316 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
317
318         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Regenerate.
319
320         * elf/rtld.c (struct dl_start_final_info): New.
321         (_dl_start_final): Change second argument to struct
322         dl_start_final_info *.  Set start_time from info.
323         (_dl_start): Remove bootstrap_map variable, add info.
324         Define bootstrap_map as macro.  If not DONT_USE_BOOTSTRAP_MAP,
325         store HP_TIMING_NOW result into info.start_time.
326
327 2002-09-16  Andreas Jaeger  <aj@suse.de>
328
329         * sysdeps/unix/sysv/linux/_exit.c: Add libc_hidden_def and weak_alias
330         to _Exit.
331         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
332
333 2002-09-15  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
334
335         * sysdeps/powerpc/abort-instr.h: New file.
336
337 2002-09-14  Ulrich Drepper  <drepper@redhat.com>
338
339         * sysdeps/generic/libc-start.c (__libc_start_main): Remove bogus
340         comment.
341
342         * test-skeleton.c (main): Provide more information in case waitpid
343         fails.
344
345         * include/unistd.h: Declare __exit_thread.
346         * sysdeps/generic/libc-start.c (__libc_start_main): Remove dummy_addr.
347         Wrap call to main in setjmp if HAVE_CANCELBUF is defined.
348         * sysdeps/unix/sysv/linux/exit-thread.S: New file.
349         * sysdeps/unix/sysv/linux/_exit.c: New file.
350         * sysdeps/unix/sysv/linux/i386/_exit.S: New file.
351         * sysdeps/unix/sysv/linux/Makefile [subdir==posix] (sysdep_routines):
352         Add exit-thread.
353
354         * configure.in: Add dl_iterate_phdr to test using -nostdlib.
355
356 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
357
358         * sysdeps/i386/dl-machine.h (elf_machine_rel)
359         (case R_386_TLS_DTPMOD32): Don't use addend.
360         [case R_386_TLS_TPOFF32]: Remove redundant SYM_MAP != NULL check.
361         (elf_machine_rela): Add support for TLS relocs.
362
363 2002-09-14  Roland McGrath  <roland@redhat.com>
364
365         * Makefile (manual/%): Add this pattern target to the iconvdata/% rule.
366
367 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
368
369         * stdlib/longlong.h [_ARCH_PPC && W_TYPE_SIZE!=32]: Add powerpc64
370         specific asm macros for multiple percision integer math.
371
372 2002-06-04  Steven Munroe  <sjmunroe@us.ibm.com>
373
374         * sysdeps/generic/ldconfig.h (FLAG_POWERPC_LIB64) New macro.
375         * elf/cache.c (print_entry): Add case for FLAG_POWERPC_LIB64.
376         Remove per-machine conditionals for FLAG_* cases.
377         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h: New file.
378         * sysdeps/unix/sysv/linux/powerpc/readelflib.c: New file.
379         * sysdeps/unix/sysv/linux/powerpc/powerpc64/dl-cache.h: New file.
380
381 2002-09-10  Alan Modra <amodra@bigpond.net.au>
382
383         * csu/gmon-start.c [!TEXT_START]: Define TEXT_START if not already
384         defined in entry.h.
385         (__gmon_start__) [!ENTRY_POINT_DECL]: Use TEXT_START macro to obtain
386         lowest address for profiling in  __monstartup call.
387         * sysdeps/powerpc/powerpc64/elf/entry.h: New file.
388
389 2002-09-14  Roland McGrath  <roland@redhat.com>
390
391         * sysdeps/unix/sysv/linux/pread.c: __NR_pread64 may be defined
392         instead of __NR_pread.
393         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
394         * sysdeps/unix/sysv/linux/pwrite.c: __NR_pwrite64 may be defined
395         instead of __NR_pwrite.
396         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
397
398 2002-09-13  Roland McGrath  <roland@redhat.com>
399
400         * manual/libc.texinfo: @ifinfo -> @ifnottex around copyright notice.
401
402 2002-09-13  Andreas Jaeger  <aj@suse.de>
403
404         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add readahead
405         syscall.  Patch by Guido Guenther <agx@sigxcpu.org>.
406
407 2002-09-12  Ulrich Drepper  <drepper@redhat.com>
408
409         * elf/elf.h: Correct DT_LOOS and DT_HIOS values.
410
411 2002-09-10  Ulrich Drepper  <drepper@redhat.com>
412
413         * sysdeps/powerpc/fpu/s_isnan.c: #undef __isnanf and isnanf after
414         reading the headers.
415
416 2002-09-12  Roland McGrath  <roland@redhat.com>
417
418         * elf/rtld.c (_dl_start_final): Move _begin, _end decls outside the fn.
419         (_dl_start) [DONT_USE_BOOTSTRAP_MAP]: Use &_begin instead of l_addr to
420         find the ELF header.
421
422         * elf/rtld.c (dl_main) [USE_TLS]: Adjust l_tls_initimage of main
423         executable if needed, in case it's actually a shared object.
424
425 2002-09-11  Roland McGrath  <roland@redhat.com>
426
427         * elf/dl-load.c (_dl_map_object_from_fd): Use l_addr instead of
428         l_map_start to adjust l_tls_initimage.
429
430         * nss/getnssent_r.c (__nss_getent_r): Use EAGAIN instead of errno
431         when using h_errno and it's not set to NETDB_INTERNAL.
432         * nss/getXXbyYY_r.c [NEED_H_ERRNO]: Likewise.
433
434         * Makefile ($(common-objpfx)testrun.sh): New target.
435         (others): Depend on it.
436         (postclean-generated): Append it.
437
438         * nss/bug-erange.c: New file.
439         * nss/Makefile (tests): Add it.
440
441         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Return errno
442         instead of always EAGAIN when status is NSS_STATUS_TRYAGAIN.
443
444         * sysdeps/generic/dl-environ.c (unsetenv): Redo last fix without
445         strncmp, keeps the code smaller for a non-performance-critical case.
446
447         * sysdeps/generic/dl-environ.c (unsetenv): Rewritten using strncmp,
448         no longer wrongly matches arbitrary prefixes of NAME.
449         Reported by Jakub Jelinek <jakub@redhat.com>.
450
451 2002-09-11  Jakub Jelinek  <jakub@redhat.com>
452
453         * posix/bug-regex11.c (tests): New array.
454         (main): Rewritten to run more different tests.
455
456 2002-09-10  Roland McGrath  <roland@redhat.com>
457
458         * nscd/Makefile (CPPFLAGS-nscd, CPPFLAGS-nscd_conf, CPPFLAGS-dbg_log)
459         (CPPFLAGS-connections, CPPFLAGS-hstcache): Variables removed.
460         Instead, catch all of $(nscd-modules) via cppflags-iterator.mk.
461
462         * sysdeps/powerpc/fpu/s_isnan.c: Do macro hackery on __GI___isnanf as
463         well so we don't get it declared by include/math.h's hidden_proto.
464         Then do hidden_proto for __isnanf locally so hidden_def works right.
465
466         * posix/bug-regex5.c (main): Use `union locale_data_value' rather than
467         a cast to turn nl_langinfo return value into an integer.
468
469 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
470
471         * posix/regexec.c (build_trtable): Fix the destination of
472         newline to prevent wrong states from overwriting.
473         Append break statements to optimization.
474
475 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
476
477         * posix/regcomp.c: Wrap #include wchar.h and wctype.h in #if.
478         (build_range_exp): Add castings to strlen invocations.
479         (build_collating_symbol): Restore the type of characters from "char"
480         to "unsigned char", and supplement castings.
481         (build_collating_symbol): Likewise.
482         (build_equiv_class): Likewise.
483         (build_charclass): Likewise.
484         (seek_collating_symbol_entry): Likewise.
485         (parse_bracket_exp): Likewise.
486         (build_word_op): Supplement a casting.
487         * posix/regex_internal.c: Wrap #include wchar.h and wctype.h in #if.
488         (re_string_allocate): Fix castings.
489         (re_string_construct): Likewise.
490         (re_string_construct_common): Likewise.
491         (re_string_realloc_buffers): Likewise.
492         (build_wcs_buffer): Likewise.
493         (build_wcs_upper_buffer): Likewise.
494         (re_string_skip_chars): Likewise.
495         (re_string_reconstruct): Likewise.
496         * posix/regex_internal.h: Restore the type of characters in
497         re_string_t and bracket_elem_t from "char" to "unsigned char".
498         (re_string_elem_size_at): Fix castings.
499         * posix/regexec.c: Wrap #include wchar.h and wctype.h in #if.
500         (transit_state_bkref_loop): Restore the type of characters from
501         "char" to "unsigned char", and append a cast to "char*" pointer in
502         array subscript.
503         (check_node_accept_bytes): Likewise.
504         (find_collation_sequence_value): Likewise.
505
506 2002-09-10  Hartvig Ekner  <hartvige@mips.com>
507
508         * sysdeps/mips/memcpy.S: New file.
509         * sysdeps/mips/memset.S: New file.
510         * sysdeps/mips/fpu/e_sqrt.c:  New file.
511         * sysdeps/mips/fpu/e_sqrtf.c: New file.
512
513         * fpu/fclrexcpt.c: Cleaned up the FPU exception stuff - was not
514         functional before. Also removed all SHLIB_COMPAT stuff.
515         * fpu/fegetenv.c: Likewise.
516         * fpu/fesetenv.c:: Likewise.
517         * fpu/feupdateenv.c: Likewise.
518         * fpu/fgetexcptflg.c: Likewise.
519         * fpu/fraiseexcpt.c: Likewise.
520
521         * sysdeps/mips/fpu/fsetexcptflg.c: New file.
522
523 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
524
525         * include/math.h (__finite_internal, __finitef_internal,
526         __finitel_internal, __isinf_internal, __isnan_internal): Remove.
527         (isfinite): Remove.
528         (__finite, __isinf, __isnan, __finitef, __isinff, __isnanf, __finitel,
529         __isinfl, __isnanl): Add hidden_proto.
530         (__fpclassify, __fpclassifyf, __fpclassifyl, __expm1l): Add
531         libm_hidden_proto.
532         * math/Makefile (libm-calls): Add s_isinf and s_isnan.
533         * stdio-common/printf_fp.c (__printf_fp): Remove INTUSE from
534         __is{inf,nan} calls.
535         * stdio-common/printf_size.c (printf_size): Likewise.
536         * sysdeps/generic/printf_fphex.c (__printf_fphex): Likewise.
537         * sysdeps/generic/s_ldexp.c (__ldexp): Likewise.
538         * sysdeps/generic/s_ldexpf.c (__ldexpf): Likewise.
539         * sysdeps/generic/s_ldexpl.c (__ldexpl): Likewise.
540         * sysdeps/generic/s_expm1l.c (__expm1l): Add libm_hidden_def.
541         * sysdeps/i386/fpu/s_finite.S (__finite_internal): Remove alias.
542         (__finite): Add hidden_def.
543         * sysdeps/i386/fpu/s_finitef.S (__finitef_internal): Remove alias.
544         (__finitef): Add hidden_def.
545         * sysdeps/i386/fpu/s_finitel.S (__finitel_internal): Remove alias.
546         (__finitel): Add hidden_def.
547         * sysdeps/i386/fpu/s_isinfl.c (__isinfl): Remove INTDEF.  Add
548         hidden_def.
549         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
550         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Add
551         libm_hidden_def.
552         * sysdeps/i386/fpu/s_expm1l.S (__expm1l): Likewise.
553         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Remove INTDEF.  Add
554         hidden_def.
555         * sysdeps/ieee754/dbl-64/s_isinf.c (__isinf): Likewise.
556         (__isinfl): Remove INTDEF.
557         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Remove INTDEF.  Add
558         hidden_def.
559         (__isnanl): Remove INTDEF.
560         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Add
561         libm_hidden_def.
562         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Use __sin and __cos
563         instead of sin and cos.
564         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Remove INTDEF.
565         Add hidden_def.
566         * sysdeps/ieee754/flt-32/s_isinff.c (__isinff): Likewise.
567         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
568         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Add
569         libm_hidden_def.
570         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Remove INTDEF.
571         Add hidden_def.
572         * sysdeps/ieee754/ldbl-128/s_isinfl.c (__isinfl): Likewise.
573         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
574         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl): Add
575         libm_hidden_def.
576         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add
577         libm_hidden_def.
578         * sysdeps/ieee754/ldbl-96/s_finitel.c (__finitel): Remove INTDEF.
579         Add hidden_def.
580         * sysdeps/ieee754/ldbl-96/s_isinfl.c (__isinfl): Likewise.
581         * sysdeps/ieee754/ldbl-96/s_isnanl.c (__isnanl): Likewise.
582         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c (__fpclassifyl): Add
583         libm_hidden_def.
584         * sysdeps/ia64/fpu/s_finite.S (__finite_internal, __finitef_internal,
585         __finitel_internal): Remove aliases.
586         (__finite, __finitef, __finitel): Add hidden_def.
587         * sysdeps/ia64/fpu/s_isnan.S (__isnan_internal, __isnanf_internal,
588         __isnanl_internal): Remove aliases.
589         (__isnan, __isnanf, __isnanl): Add hidden_def.
590         * sysdeps/ia64/fpu/s_isinf.S (__isinf_internal, __isinff_internal,
591         __isinfl_internal): Remove aliases.
592         (__isinf, __isinff, __isinfl): Add hidden_def.
593         * sysdeps/ia64/fpu/s_fpclassify.S (__fpclassify, __fpclassifyf,
594         __fpclassifyl): Add libm_hidden_def.
595         * sysdeps/ia64/fpu/s_expm1l.S (__expm1l): Likewise.
596         * sysdeps/m68k/s_isinfl.c (__isinfl): Remove INTDEF.  Add hidden_def.
597         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Remove.
598         (hidden_defx): Define and use.
599         * sysdeps/m68k/fpu/s_fpclassifyl.c (__fpclassifyl): Add
600         libm_hidden_def.
601         * sysdeps/m68k/fpu/s_expm1l.c (__expm1l): Likewise.
602         * sysdeps/m68k/s_isnanl.c (__isnanl): Add hidden_def.
603         * sysdeps/powerpc/fpu/s_isnan.c (__isnan, __isnanf, __isnanl):
604         Remove INTDEF.
605         (__isnan, __isnanf): Add hidden_def.
606         * sysdeps/x86_64/fpu/s_finitel.S (__finitel_internal): Remove alias.
607         (__finitel): Add libm_hidden_def.
608         * sysdeps/x86_64/fpu/s_expm1l.S (__expm1l): Likewise.
609
610         * include/fenv.h (feraiseexcept, fesetenv): Add libm_hidden_proto.
611         * sysdeps/alpha/fpu/fesetenv.c (fesetenv): Add libm_hidden_ver.
612         * sysdeps/alpha/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
613         * sysdeps/arm/fpu/fesetenv.c (fesetenv): Likewise.
614         * sysdeps/arm/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
615         * sysdeps/generic/fesetenv.c (fesetenv): Likewise.
616         * sysdeps/generic/fraiseexcpt.c (feraiseexcept): Likewise.
617         * sysdeps/i386/fpu/fesetenv.c (fesetenv): Likewise.
618         * sysdeps/i386/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
619         * sysdeps/m68k/fpu/fesetenv.c (fesetenv): Likewise.
620         * sysdeps/m68k/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
621         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Likewise.
622         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
623         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Likewise.
624         * sysdeps/powerpc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
625         * sysdeps/sparc/fpu/fesetenv.c (fesetenv): Likewise.
626         * sysdeps/sparc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
627         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Add libm_hidden_def.
628         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
629         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Likewise.
630         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
631         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
632         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
633         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
634         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
635         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Likewise.
636         * sysdeps/x86_64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
637
638 2002-09-09  Steven Munroe  <sjmunroe@us.ibm.com>
639
640         * elf/elf.h: Add powerpc64 specific elf relocation and dynamic types.
641
642 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
643
644         * elf/dl-error.c (_dl_signal_cerror): Don't print anything if only
645         LD_DEBUG=statistics or LD_TRACE_PRELINKING.
646
647 2002-09-09  Ulrich Drepper  <drepper@redhat.com>
648
649         * string/stratcliff.c: Some more strncpy tests.
650         Patch by Daniel Jacobowitz <drow@mvista.com>.
651
652 2002-09-08  Roland McGrath  <roland@redhat.com>
653
654         * resolv/resolv.h: Include <sys/types.h> for u_long even in
655         the [__need_res_state] case.
656         Reported by Bruno Haible <bruno@clisp.org>.
657
658 2002-09-04  Bruno Haible  <bruno@clisp.org>
659
660         * sysdeps/generic/bits/ustat.h: Comment fix.
661         * io/sys/sendfile.h: Comment fix.
662         * sysdeps/posix/pread.c: Comment fix.
663         * sysdeps/posix/pread64.c: Comment fix.
664         * sysdeps/posix/pwrite.c: Comment fix.
665         * sysdeps/posix/pwrite64.c: Comment fix.
666
667 2002-09-06  Roland McGrath  <roland@redhat.com>
668
669         * posix/sys/utsname.h (_UTSNAME_SYSNAME_LENGTH): New macro, defined
670         to _UTSNAME_LENGTH if not already defined by <bits/utsname.h>.
671         (_UTSNAME_RELEASE_LENGTH, _UTSNAME_VERSION_LENGTH): Likewise.
672         (_UTSNAME_MACHINE_LENGTH): Likewise.
673         (struct utsname): Use new macros instead of _UTSNAME_LENGTH.
674
675 2002-09-06  Ulrich Drepper  <drepper@redhat.com>
676
677         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Correct
678         test for filesystem type name of mount points.
679
680         * include/errno.h: Use errno definition with __thread for now only
681         in libc and ld.so.
682
683         * test-skeleton.c (main): Improve error message for unexpected
684         signal case.
685
686 2002-09-05  Roland McGrath  <roland@redhat.com>
687
688         * ctype/ctype-info.c: Renamed __ctype_old_* symbols to __ctype_*.
689         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
690
691 2002-09-05  Jakub Jelinek  <jakub@redhat.com>
692
693         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Unlock and return in
694         case of failure.
695
696 2002-09-04  Bruno Haible  <bruno@clisp.org>
697
698         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h (sigset_set_old_mask,
699         sigset_get_old_mask): Turn into inline functions.
700         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h (sigset_set_old_mask,
701         sigset_get_old_mask): Likewise.
702         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h (sigset_set_old_mask,
703         sigset_get_old_mask): Likewise.
704         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Declutter
705         syntax.
706
707         * elf/readlib.c (process_file): Conditionalize check for QMAGIC.
708
709         * sysdeps/generic/_strerror.c (_sys_errlist, _sys_nerr): Remove
710         default definitions.
711         (__strerror_r): Use _sys_errlist_internal instead of _sys_errlist,
712         _sys_nerr_internal instead of _sys_nerr.
713
714         * nscd/connections.c (handle_request): Declare CALLER inside #if.
715
716 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
717
718         * sysdeps/powerpc/__longjmp.S: Moved to...
719         * sysdeps/powerpc/powerpc32/__longjmp.S: ...here.
720         * sysdeps/powerpc/add_n.S: Moved to...
721         * sysdeps/powerpc/powerpc32/add_n.S: ...here.
722         * sysdeps/powerpc/addmul_1.S: Moved to...
723         * sysdeps/powerpc/powerpc32/addmul_1.S: ...here.
724         * sysdeps/powerpc/atomicity.h: Moved to...
725         * sysdeps/powerpc/powerpc32/atomicity.h: ...here.
726         * sysdeps/powerpc/backtrace.c: Moved to...
727         * sysdeps/powerpc/powerpc32/backtrace.c: ...here.
728         * sysdeps/powerpc/bp-asm.h: Moved to...
729         * sysdeps/powerpc/powerpc32/bp-asm.h: ...here.
730         * sysdeps/powerpc/bsd-_setjmp.S: Moved to...
731         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: ...here.
732         * sysdeps/powerpc/bsd-setjmp.S: Moved to...
733         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: ...here.
734         * sysdeps/powerpc/dl-machine.c: Moved to...
735         * sysdeps/powerpc/powerpc32/dl-machine.c: ...here.
736         * sysdeps/powerpc/dl-machine.h: Moved to...
737         * sysdeps/powerpc/powerpc32/dl-machine.h: ...here.
738         * sysdeps/powerpc/dl-start.S: Moved to...
739         * sysdeps/powerpc/powerpc32/dl-start.S: ...here.
740         * sysdeps/powerpc/gprrest0.S: Moved to...
741         * sysdeps/powerpc/powerpc32/gprrest0.S: ...here.
742         * sysdeps/powerpc/gprrest1.S: Moved to...
743         * sysdeps/powerpc/powerpc32/gprrest1.S: ...here.
744         * sysdeps/powerpc/gprsave0.S: Moved to...
745         * sysdeps/powerpc/powerpc32/gprsave0.S: ...here.
746         * sysdeps/powerpc/gprsave1.S: Moved to...
747         * sysdeps/powerpc/powerpc32/gprsave1.S: ...here.
748         * sysdeps/powerpc/lshift.S: Moved to...
749         * sysdeps/powerpc/powerpc32/lshift.S: ...here.
750         * sysdeps/powerpc/memset.S: Moved to...
751         * sysdeps/powerpc/powerpc32/memset.S: ...here.
752         * sysdeps/powerpc/mul_1.S: Moved to...
753         * sysdeps/powerpc/powerpc32/mul_1.S: ...here.
754         * sysdeps/powerpc/ppc-mcount.S: Moved to...
755         * sysdeps/powerpc/powerpc32/ppc-mcount.S: ...here.
756         * sysdeps/powerpc/register-dump.h: Moved to...
757         * sysdeps/powerpc/powerpc32/register-dump.h: ...here.
758         * sysdeps/powerpc/rshift.S: Moved to...
759         * sysdeps/powerpc/powerpc32/rshift.S: ...here.
760         * sysdeps/powerpc/setjmp.S: Moved to...
761         * sysdeps/powerpc/powerpc32/setjmp.S: ...here.
762         * sysdeps/powerpc/stpcpy.S: Moved to...
763         * sysdeps/powerpc/powerpc32/stpcpy.S: ...here.
764         * sysdeps/powerpc/strchr.S: Moved to...
765         * sysdeps/powerpc/powerpc32/strchr.S: ...here.
766         * sysdeps/powerpc/strcmp.S: Moved to...
767         * sysdeps/powerpc/powerpc32/strcmp.S: ...here.
768         * sysdeps/powerpc/strcpy.S: Moved to...
769         * sysdeps/powerpc/powerpc32/strcpy.S: ...here.
770         * sysdeps/powerpc/strlen.S: Moved to...
771         * sysdeps/powerpc/powerpc32/strlen.S: ...here.
772         * sysdeps/powerpc/sub_n.S: Moved to...
773         * sysdeps/powerpc/powerpc32/sub_n.S: ...here.
774         * sysdeps/powerpc/submul_1.S: Moved to...
775         * sysdeps/powerpc/powerpc32/submul_1.S: ...here.
776         * sysdeps/powerpc/elf/bzero.S: Moved to...
777         * sysdeps/powerpc/powerpc32/elf/bzero.S: ...here.
778         * sysdeps/powerpc/elf/start.S: Moved to...
779         * sysdeps/powerpc/powerpc32/elf/start.S: ...here.
780         * sysdeps/powerpc/fpu/__longjmp.S: Moved to...
781         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: ...here.
782         * sysdeps/powerpc/fpu/fprrest.S: Moved to...
783         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: ...here.
784         * sysdeps/powerpc/fpu/fprsave.S: Moved to...
785         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: ...here.
786         * sysdeps/powerpc/fpu/setjmp.S: Moved to...
787         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: ...here.
788         * sysdeps/powerpc/fpu/s_copysign.S: Moved to...
789         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: ...here.
790         * sysdeps/powerpc/fpu/s_copysignf.S: Moved to...
791         * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: ...here.
792         * sysdeps/unix/sysv/linux/powerpc/brk.S: Moved to...
793         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: ...here.
794         * sysdeps/unix/sysv/linux/powerpc/clone.S: Moved to...
795         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: ...here.
796         * sysdeps/unix/sysv/linux/powerpc/glob64.c: Moved to...
797         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
798         * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h: Moved to...
799         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: ...here.
800         * sysdeps/unix/sysv/linux/powerpc/socket.S: Moved to...
801         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: ...here.
802         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Moved to...
803         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: ...here.
804         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Moved to...
805         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: ...here.
806         Support PowerPC64.  Separate powerpc into powerpc/powerpc32 and
807         powerpc/powerpc64.
808
809 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
810
811         * FAQ.in: Add powerpc64 to supported targets list. Also state the
812         minimum gcc version is 3.2
813         * README: Add powerpc64 to supported targets list.
814         * configure.in: Change machine=powerpc to machine=powerpc/powerpc32.
815         Add powerpc64 and machine=powerpc/powerpc64.
816         (HAVE_ASM_GLOBAL_DOT_NAME): Define if linux*powerpc/powerpc64*.
817         * shlib-versions: Set DEFAULT version to 2.2.5 for powerpc64.
818         * sysdeps/powerpc/Dist: Remove dl-machine.c, dl-start.S, ppc-mcount.S,
819         gprsave1.S, gprsave0.S, gprrest1.S, and gprrest0.S.
820         * sysdeps/powerpc/powerpc32/Dist: New file.
821         * sysdeps/powerpc/Implies: Remove wordsize-32 and powerpc/soft-fp.
822         * sysdeps/powerpc/powerpc32/Implies: New file.
823         * sysdeps/powerpc/Makefile(cflags): Remove powerpc32 specific cflags.
824         ($(with-fp) = no): Move test to powerpc32/Makefile.
825         ($(subdir) = misc): Move to powerpc32/Makefile.
826         ($(build-shared) = yes): Move to powerpc32/Makefile.
827         ($(subdir) = csu): Move to powerpc32/Makefile.
828         (sysdep-rtld-routines): Remove dl-start.  Moved these bits to ...
829         * sysdeps/powerpc/powerpc32/Makefile: New file.
830         * sysdeps/powerpc/Versions: Remove libgcc functions.
831         * sysdeps/powerpc/powerpc32/Versions: New file.
832         * sysdeps/powerpc/fpu/Makefile: Remove fprsave and fprrest.
833         * sysdeps/powerpc/powerpc32/fpu/Makefile: New file.
834         * sysdeps/unix/sysv/linux/configure.in (powerpc*):
835         Set arch_minimum_kernel=2.4.19 for powerpc/powerpc64. Also set
836         libc_cv_gcc_unwind_find_fde=yes only if !powerpc/powerpc64.
837         ($machine): Add powerpc/powerpc64 to if ... | for
838         libc_cv_slibdir=/libc64.
839         (powerpc*): Set ldd_rewrite_script.
840         * sysdeps/unix/sysv/linux/powerpc/ldd-rewrite.sed: New file.
841         * sysdeps/unix/sysv/linux/powerpc/Dist: Remove clone.S.
842         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: New file.
843         Add clone.S.
844         * sysdeps/unix/sysv/linux/powerpc/Makefile: Remove oldgetrlimit64.
845         * sysdeps/unix/sysv/linux/powerpc/Versions: Remove GLIBC_2.0
846         functions.  Remove GLIBC_2.2 functions except getrlimit and
847         setrlimit.  Moved them to ...
848         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: New file.
849
850 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
851
852         * libio/tst-atime.c: Include <errno.h>.
853         (do_test): Only perform fstatvfs check if ST_NOATIME is defined.
854
855 2002-09-03  Isamu Hasegawa  <isamu@yamato.ibm.com>
856
857         * posix/regcomp.c (regcomp): Append "__restrict" modifier to avoid
858         warnings of some compilers.
859         (build_collating_symbol): Change the type of characters from
860         "unsigned char" to "char", and append a cast to "char*" pointer in
861         array subscript.
862         (build_collating_symbol): Likewise.
863         (build_equiv_class): Likewise.
864         (build_charclass): Likewise.
865         (re_compile_pattern): Remove incorrect cast.
866         (re_compile_fastmap_iter): Change the type of characters from
867         "unsigned char" to "char", and append a cast to "char*" pointer
868         in array subscript.
869         (parse_bracket_exp): Likewise.
870         * posix/regex_internal.c (re_string_construct_common): Likewise.
871         (re_string_allocate): Likewise.
872         (re_string_construct): Likewise.
873         (re_string_realloc_buffers): Likewise.
874         (build_wcs_buffer): Likewise.
875         (re_string_reconstruct): Likewise.
876         * posix/regex_internal.h: Change the type of characters in
877         re_string_t and bracket_elem_t from "unsigned char" to "char".
878         * posix/regexec.c (regexec): Append "__restrict" modifier to avoid
879         warnings of some compilers.
880         (transit_state_bkref_loop): Change the type of characters from
881         "unsigned char" to "char", and append a cast to "char*" pointer in
882         array subscript.
883         (check_node_accept_bytes): Likewise.
884         (find_collation_sequence_value): Likewise.
885
886 2002-09-04  Roland McGrath  <roland@redhat.com>
887
888         * resolv/nss_dns/dns-network.c (MAXPACKET): Increase minimum value
889         from 1024 to 65536, to avoid buffer overrun.
890
891 2002-09-03  Gerhard Tonn  <ton@de.ibm.com>
892
893         * sysdeps/s390/s390/fpu/libm-test-ulps: Regenerate.
894
895 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
896
897         * libio/tst-atime.c (do_test): Make sure noatime flag isn't set
898         for filesystem.
899
900 2002-09-04  Jakub Jelinek  <jakub@redhat.com>
901
902         * posix/bug-regex11.c: New test.
903         * posix/Makefile (tests): Add bug-regex11.
904
905 2002-09-03  Jakub Jelinek  <jakub@redhat.com>
906
907         * locale/tst-C_locale.c (run_test): Pass LC_ALL_MASK not LC_ALL to
908         newlocale.
909
910 2002-09-02  Roland McGrath  <roland@redhat.com>
911
912         * sysdeps/powerpc/elf/libc-start.c [! SHARED]: Call
913         __pthread_initialize_minimal and __libc_check_standard_fds to
914         match the generic version.
915
916         * sysdeps/unix/sysv/linux/shmat.c (shmat): Add a cast to avoid a
917         warning when INLINE_SYSCALL macro uses the __syscall_ipc function.
918
919         * locale/localeconv.c (__localeconv): Cast -1 to char to avoid
920         warnings on platorms where char is unsigned.
921
922 2002-09-02  Ulrich Drepper  <drepper@redhat.com>
923
924         * version.h (VERSION): Bump to 2.2.93.
925
926         * sysdeps/unix/sysv/linux/x86_64/Dist: Add __start_context.S.
927
928 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
929
930         * elf/rtld.c (dl_main): If prelinking succeeded, mark all objects
931         as relocated.
932
933 2002-09-02  Jack Howarth  <howarth@bromo.msbb.uc.edu>
934
935         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
936
937 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
938
939         * locale/localeinfo.h (struct locale_data): Add private.ctype.
940         * wcsmbs/wcsmbsload.h (__wcsmbs_gconv_fcts, __wcsmbs_last_locale,
941         __wcsmbs_to_wc, update_conversion_ptrs): Removed.
942         (__wcsmbs_gconv_fcts_c, _nl_C_LC_CTYPE): New externs.
943         (__wcsmbs_load_conv): Remove const from argument.
944         (_nl_cleanup_ctype): New proto.
945         (get_gconv_fcts): New function.
946         * wcsmbs/wcsmbsload.c (__wcsmbs_last_locale): Removed.
947         (__wcsmbs_to_wc): Rename back to...
948         (to_wc): ... this.
949         (__wcsmbs_gconv_fcts): Rename to...
950         (__wcsmbs_gconv_fcts_c): ... this.  Make const.  Use to_wc.
951         (lock): Removed.
952         (__libc_setlocale_lock): New extern.
953         (__wcsmbs_load_conv): Remove const from argument.
954         Initialize new_category->private.ctype instead of a global
955         variable.
956         (__wcsmbs_clone_conv): Use get_gconv_fcts instead of
957         update_function_ptrs.  No locking is necessary.
958         (_nl_cleanup_ctype): New function.
959         * wcsmbs/btowc.c (__btowc): Use get_gconv_fcts instead of
960         update_function_ptrs and a global __wcsmbs_gconv_fcts variable.
961         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
962         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
963         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
964         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
965         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
966         * wcsmbs/wctob.c (wctob): Likewise.
967         * stdlib/mblen.c (mblen): Likewise.
968         * stdlib/mbtowc.c (mbtowc): Likewise.
969         * stdlib/wctomb.c (wctomb): Likewise.
970         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
971         Remove calls to wcsmbs_get_towc_func and wcsmbs_free_funcs.
972         * wcsmbs/mbsrtowcs_l.c (wcsmbs_get_towc_func, wcsmbs_free_funcs):
973         Removed.
974
975 2002-09-02  Roland McGrath  <roland@frob.com>
976
977         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Add __fxstat64.
978
979 2002-09-01  Roland McGrath  <roland@redhat.com>
980
981         * ctype/ctype.h (__ctype_b, __ctype_toupper, __ctype_tolower):
982         Variable declarations removed.
983         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Declare
984         these functions to replace them.
985         (__isctype, tolower, toupper, _tolower, _toupper): Use those accessor
986         functions plus an indirection rather than the old global variables.
987         * include/ctype.h (__isctype, tolower, _tolower, toupper, _toupper):
988         Macros removed.
989         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): New extern
990         inline functions.
991         * ctype/ctype-info.c: Revert last reversion back the other way.
992         Define tsd vars CTYPE_B, CTYPE_TOLOWER, CTYPE_TOUPPER.
993         Define real function versions of include/ctype.h inlines here.
994         * ctype/Versions (libc: GLIBC_2.3): Add __ctype_b_loc,
995         __ctype_tolower_loc, __ctype_toupper_loc.
996         * locale/lc-ctype.c: Revert last reversion back the other way.
997         (_nl_postload_ctype): If current thread uses the global locale,
998         update its tsd vars.
999         * locale/uselocale.c (__uselocale): Update tsd vars from new locale.
1000         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add CTYPE_B,
1001         CTYPE_TOLOWER, CTYPE_TOUPPER.
1002
1003         * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_address): New macro.
1004         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_address): Renamed
1005         from __libc_tsd_threadvar_location.
1006         (__libc_tsd_set, __libc_tsd_get): Update uses.
1007
1008 2002-09-01  Ulrich Drepper  <drepper@redhat.com>
1009
1010         * ctype/ctype.h: Undo the patch before the last one.  Put back the
1011         macro definitions for the standard functions to access the
1012         classification and mapping arrays.
1013         * include/ctype.h: Partly revert last patch.  Move the macro
1014         definitions for the exported functions back to the public header.
1015         #undef all the macros defined here before redefining.
1016         * ctype/ctype-info.c: Revert last patch.
1017         * locale/lc-ctype.c: Revert last patch.
1018
1019         * ctype/Makefile (routines): Add isctype.
1020         * ctype/Versions (libc): Export isctype and __isctype for GLIBC_2.3.
1021         * ctype/ctype.h: Add declaration of isctype.
1022         * include/ctype.h: Declare __isctype.
1023         * ctype/isctype.c: New file.
1024
1025 2002-09-01  Roland McGrath  <roland@redhat.com>
1026
1027         * sysdeps/generic/libc-tls.c (__pthread_initialize_minimal): Pass
1028         TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN instead of 0, 1.
1029
1030         * include/getopt.h: Include <features.h> before <posix/getopt.h>.
1031
1032         * locale/findlocale.c (_nl_remove_locale): Don't search in
1033         _nl_locale_file_list if DATA->alloc is ld_archive.
1034         Use _nl_unload_locale to do the rest of the work.
1035
1036         * locale/loadarchive.c (_nl_load_locale_from_archive): Set usage_count
1037         of new structure to UNDELETABLE.
1038
1039         * wctype/wctype.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower,
1040         iswgraph, iswprint, iswpunct, iswspace, iswupper, iswxdigit, iswblank,
1041         towlower, towupper): Macros removed.
1042         * ctype/ctype.h (__tobody): Put parens around macro argument.
1043         (__isctype): Macro removed.
1044         (__ctype_b, __ctype_tolower, __ctype_toupper): Decls removed.
1045         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1046         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1047         tolower, toupper): Macros and inlines removed.
1048         * include/ctype.h [! NOT_IN_libc]
1049         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1050         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1051         tolower, toupper): Define here instead, using _NL_CURRENT.
1052         * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Define as macros
1053         using _NL_CURRENT.
1054         * ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Likewise.
1055         * ctype/ctype-info.c (__ctype_b, __ctype_tolower, __ctype_toupper):
1056         Renamed these to __ctype_old_*. Define old names only for SHLIB_COMPAT.
1057         (__ctype32_b, __ctype32_tolower, __ctype32_toupper): Likewise.
1058         (__ctype32_wctrans, __ctype32_wctrans, __ctype32_width): Removed.
1059         * locale/lc-ctype.c (_nl_postload_ctype): Use renamed variables,
1060         conditional on SHLIB_COMPAT.  Don't set removed variables at all.
1061         * wctype/wcfuncs.c: Use _NL_CURRENT instead of those globals.
1062         * wcsmbs/wcwidth.h (internal_wcwidth): Likewise.
1063         * resolv/res_init.c [RESOLVSORT] (sort_mask): Renamed sort_mask_chars.
1064         (ISSORTMASK): Update use.
1065         * intl/localealias.c [__GNUC__]: #undef alloca before #define.
1066         * nss/nss_files/files-XXX.c (last_use): Rename `none' to `nouse'.
1067         (_nss_files_getENTNAME_r): Likewise.
1068         * nss/nss_files/files-alias.c (last_use, _nss_files_getaliasent_r):
1069         Likewise.
1070
1071         * Makerules (all-nonlib): Renamed from all-tests.
1072         Include $(others) here too.
1073         * locale/Makefile (CPPFLAGS-locale, CPPFLAGS-localedef,
1074         CPPFLAGS-ld-ctype, CPPFLAGS-ld-time, CPPFLAGS-ld-numeric,
1075         CPPFLAGS-ld-monetary, CPPFLAGS-ld-collate, CPPFLAGS-ld-identification,
1076         CPPFLAGS-charmap, CPPFLAGS-locarchive, CPPFLAGS-linereader,
1077         CPPFLAGS-charmap-dir): Variables removed.  Instead, catch all
1078         the program modules via cppflags-iterator.mk.
1079         * sunrpc/Makefile (CPPFLAGS-rpc_main): Variable removed.
1080         Instead, catch all rpcgen-objs via cppflags-iterator.mk.
1081
1082 2002-08-31  Roland McGrath  <roland@redhat.com>
1083
1084         * posix/tst-getconf.sh: If no third arg, work with static linking.
1085
1086         * locale/categories.def (LC_TIME): No more _nl_postload_time.
1087
1088         * locale/setlocale.c (_nl_category_postload): Use weak refs only under
1089         [_NL_CURRENT_INDIRECT].
1090
1091 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1092
1093         * time/tst-ftime_l.c (main): Also test strftime with uselocale.
1094
1095 2002-08-31  Roland McGrath  <roland@redhat.com>
1096
1097         * locale/newlocale.c (__newlocale): Don't use strdup for names.
1098         Instead, make the single allocation of the structure larger to hold
1099         the name strings.
1100         * locale/duplocale.c (__duplocale): Don't strdup names individually.
1101         Instead, calculate size for a single allocation and copy into it.
1102         * locale/freelocale.c (__freelocale): Don't free names individually.
1103
1104         * locale/newlocale.c (__newlocale): Don't leak old data or names.
1105
1106         * locale/xlocale.h (__locale_struct): Move __names member last,
1107         for binary compatibility.
1108
1109         * locale/duplocale.c (__duplocale): Free names from the right array.
1110
1111         * locale/uselocale.c (__uselocale): Return previous locale when
1112         setting a new one.
1113
1114         * locale/newlocale.c: Commit changes from 2002-08-30
1115         batch where I failed to commit this file:
1116         (__newlocale): Fill in __names array.
1117
1118 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1119
1120         * sysdeps/gnu/Makefile: Only depend on Versions.v.i for
1121         errlist-compat.c if versioning==yes.
1122
1123 2002-08-31  Andreas Jaeger  <aj@suse.de>
1124
1125         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Declare
1126         external functions with hidden attribute.
1127         (elf_machine_rela): Optimize.
1128
1129         * sysdeps/x86_64/memset.S: New file.
1130         * sysdeps/x86_64/bzero.S: New file.
1131         * sysdeps/x86_64/stpcpy.S: New file.
1132         * sysdeps/x86_64/strcat.S: New file.
1133         * sysdeps/x86_64/strchr.S: New file.
1134         * sysdeps/x86_64/strcpy.S: New file.
1135         * sysdeps/x86_64/strcspn.S: New file.
1136         * sysdeps/x86_64/strlen.S: New file.
1137         * sysdeps/x86_64/strpbrk.S: New file.
1138         * sysdeps/x86_64/strspn.S: New file.
1139         * sysdeps/x86_64/strcmp.S: New file.
1140         * sysdeps/x86_64/strtok_r.S: New file.
1141         * sysdeps/x86_64/strtok.S: New file.
1142         * sysdeps/x86_64/memcpy.S: New file.
1143         * sysdeps/x86_64/mempcpy.S: New file.
1144
1145         * sysdeps/x86_64/fpu/s_copysign.S: Fix algorithm.
1146
1147         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for double tests.
1148
1149 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1150
1151         * stdio-common/Makefile (generated): Add errlist-compat.c.
1152
1153         * locale/Makefile (extra-objs): Add $(localedef-aux:=.o).
1154
1155         * locale/localeinfo.h: Pretty printing.
1156
1157         * stdio-common/vfprintf.c (vfprintf): Remove duplicate ifs in
1158         form_number handling.
1159
1160 2002-08-31  Andreas Jaeger  <aj@suse.de>
1161
1162         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for float and long
1163         double tests.
1164
1165         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_routines): Add
1166         __start_context.
1167
1168         * sysdeps/unix/sysv/linux/x86_64/__start_context.S: New file.
1169
1170         * sysdeps/unix/sysv/linux/x86_64/makecontext.c: New file.
1171
1172         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: Add defines for
1173         registers used for passing args.
1174
1175         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Save and restore
1176         all needed registers.
1177
1178         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Restore all
1179         registers.
1180
1181         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Save all needed
1182         registers.
1183
1184 2002-08-30  Ulrich Drepper  <drepper@redhat.com>
1185
1186         * elf/dynamic-link.h (elf_get_dynamic_info): Mark with
1187         always_inline attribute.
1188
1189 2002-08-30  Roland McGrath  <roland@redhat.com>
1190
1191         * stdlib/tst-setcontext.c (main): If makecontext does nothing,
1192         presume it's the stub and bail without error.
1193
1194         * nss/getnssent_r.c (__nss_getent_r): Return ENOENT if status is
1195         neither SUCCESS nor TRYAGAIN (see 2002-08-25 change [PR libc/4259]).
1196
1197         * nss/getnssent_r.c (__nss_getent_r): Set *H_ERRNOP, not global one.
1198
1199         * sysdeps/x86_64/hp-timing.h (HP_TIMING_NOW, HP_TIMING_ACCUM): New
1200         macros replace the i686 versions for 64-bit mode.
1201
1202         * locale/duplocale.c: Include <string.h>.
1203
1204         * intl/dcigettext.c (DCIGETTEXT) [_LIBC]: Check for bogus CATEGORY.
1205         [_LIBC] (category_to_name): Don't define the function.  Instead
1206         define a macro using _nl_category_names.
1207
1208         * locale/xlocale.h (struct __locale_struct): New member `__names'.
1209         * locale/xlocale.c (_nl_C_locobj): Update initializer.
1210         * locale/global-locale.c (_nl_global_locale): Likewise.
1211         * locale/duplocale.c (__duplocale): strdup __names elements.
1212         * locale/freelocale.c (__freelocale): Free __names elements.
1213         * locale/localename.c (_nl_current_names): Variable removed.
1214         (__current_locale_name): Use _NL_CURRENT_LOCALE->__names instead.
1215         * locale/localeinfo.h (_nl_current_names): Removed decl.
1216         * locale/setlocale.c: Use _nl_global_locale->__names in place of
1217         _nl_current_names throughout.
1218
1219         * locale/setlocale.c (setlocale): strdup -> __strdup (not ISO C).
1220
1221         * sysdeps/gnu/errlist-compat.awk: Emit link_warnings for sys_errlist
1222         and sys_nerr in the output file.
1223
1224         * sunrpc/Makefile (rpcgen-cmd): Pass CPP in rpcgen's environment.
1225         * scripts/cpp: Just use the environment variable.
1226
1227         * libio/tst-mmap-setvbuf.c (main): Use 'm' fopen flag.
1228         * libio/tst-mmap-offend.c (do_test): Likewise.
1229         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
1230         * libio/tst-mmap-eofsync.c (do_test): Likewise.
1231         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
1232
1233         * locale/localename.c: If the current locale is the global locale, use
1234         _nl_current_names; otherwise use the locale object.
1235
1236 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
1237
1238         * libio/fileops.c (_IO_new_file_fopen): Recognize new mode specifier
1239         'm' to enable mmap I/O.
1240         * libio/libio.h (_IO_FILE): Rename _blksize field to _flags2.  The
1241         former wasn't used (anymore?).
1242         (_IO_FLAGS2_MMAP): New define.
1243         * libio/genops.c (_IO_no_init): Initialize _flags2 field.
1244         * libio/iofopen.c (__fopen_maybe_mmap): Use mmap callbacks only if
1245         _IO_FLAGS2_MMAP bit is set.
1246         * libio/iofdopen.c (_IO_new_fdopen): Recognize 'm' mode specifier.
1247         Enable mmap-using mode only if 'm' was set.
1248
1249 2002-08-29  Roland McGrath  <roland@frob.com>
1250
1251         * sysdeps/mach/hurd/bits/local_lim.h (NAME_MAX): New macro.
1252
1253         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup: doinit):
1254         Change argument type from int to intptr_t.
1255
1256         * locale/global-locale.c (__libc_tsd_LOCALE_data): Conditionalize the
1257         initializer on [! _HURD_THREADVAR_H] (bad kludge).
1258         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize
1259         _HURD_THREADVAR_LOCALE slot to &_nl_global_locale.
1260         * hurd/hurdsig.c (_hurdsig_init): Likewise.  Zero other slots.
1261
1262         * sysdeps/mach/_strerror.c (__strerror_r): Add libc_hidden_def.
1263
1264         * sysdeps/mach/hurd/pwrite64.c: No libc_hidden_def (__libc_pwrite64).
1265
1266         * sysdeps/mach/hurd/dl-sysdep.c (__GI_abort): Define alias for abort.
1267
1268         * include/assert.h (__assert_perror_fail): Declare it, do hidden_proto.
1269         * assert/assert-perr.c: Add libc_hidden_def.
1270         * elf/dl-minimal.c [! NDEBUG] (__assert_perror_fail): New function.
1271
1272         * sysdeps/gnu/errlist-compat.awk: Don't fail if there are no versions
1273         found at all.
1274         * sysdeps/gnu/Versions: File removed.  Moved all #errlist-compat
1275         sys_errlist stuff to ...
1276         * sysdeps/unix/sysv/linux/Versions: ... here.
1277
1278         * mach/mach.h: Include <features.h>.
1279
1280 2002-08-29  Roland McGrath  <roland@redhat.com>
1281
1282         * elf/dl-runtime.c (IN_DL_RUNTIME): Define this macro first thing.
1283         * sysdeps/i386/dl-machine.h: Only declare fixup, profile_fixup and
1284         define ELF_MACHINE_RUNTIME_TRAMPOLINE under #ifdef IN_DL_RUNTIME.
1285
1286         * sysdeps/generic/readelflib.c (process_elf_file): Fix typo.
1287
1288         * iconv/gconv_int.h: Include <stdlib.h> for alloca decl.
1289         (norm_add_slashes): alloca -> __alloca
1290
1291 2002-08-29  Jakub Jelinek  <jakub@redhat.com>
1292
1293         * stdio-common/vfprintf.c (vfprintf): Add builtin_expect for
1294         string_malloced, it is unlikely to be set.
1295         Only call free with non-NULL workspace.
1296         * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Use
1297         -mcpu=ultrasparc, not only tune for it.
1298         (ASFLAGS*): Set unconditionally.
1299
1300         * sysdeps/generic/readelflib.c (process_elf_file): Make LOADADDR
1301         ElfW(Addr).  Don't mask upper 32-bits and lower 12 bits off from
1302         p_vaddr/p_offset when computing LOADADDR.
1303
1304 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
1305
1306         * version.h (VERSION): Bump to 2.2.92.
1307
1308         * time/Makefile (tst-ftime_l-ENV): New variable.
1309
1310         * iconvdata/ibm870.c: All bytes are now used, no holes anymore.
1311
1312         * localedata/charmaps/IBM870: Add correct mapping for <U017E>,
1313         <U017A>, <U017D> and <U0179>. Add missing mappings.
1314         Patch by Antonin Kopecky <akopecky@tajmac-zps.cz>.
1315
1316         * gmon/sys/gmon.h (ARCDENSITY): Bump to 3.
1317         Define ARCINDEX.  Bump MAXARCS to 1 << 20.
1318         (struct tostruct): Use ACRINDEX as type for link field.
1319         (statuc gmonparam): Likewise for froms.
1320         * gmon/gmon.c (__monstartup): Use currect cast for assignments to
1321         kcount and froms.
1322         (write_call_graph): Use correct type for from_index and to_index.
1323         * gmon/mcount.c: Use correct types for frompcindex and toindex
1324         variables.
1325         Patches by Dan Kegel <dank@kegel.com>.
1326
1327         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix code to determine
1328         canonical name.
1329
1330         * time/strptime.c (ISSPACE): New #define.  Use isspace or
1331         __isspace_l.  Replace calls to isspace.
1332         (match_string): Define variant for USE_IN_EXTENDED_LOCALE_MODEL.
1333
1334 2002-08-29  Roland McGrath  <roland@redhat.com>
1335
1336         * string/tst-strxfrm.c: Remove __ from function names.
1337
1338 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1339
1340         * include/wchar.h: Declare __mbsrtowcs_l.
1341         * wcsmbs/Makefile (routines): Add mbsrtowcs_l.
1342         * wcsmbs/mbsrtowcs.c: Add support for compilation with
1343         USE_IN_EXTENDED_LOCALE_MODEL.
1344         * wcsmbs/mbsrtowcs_l: New file.
1345         * wcsmbs/wcsmbsload.c (__wcsmbs_to_wc): Renamed from to_wc.  Don't
1346         define as static.  Change all uses.
1347         (__wcsmbs_getfct): Renamed from getfct.  Don't define as static.
1348         Change all callers.
1349         * wcsmbs/wcsmbsload.h: Declare __wcsmbs_to_wc and __wcsmbs_getfct.
1350         * time/strftime.c: When translating for the extended locale model
1351         use the _l functions.
1352         * time/Makefile (tests): Add tst-ftime_l.
1353         * time/tst-ftime_l.c: New file.
1354
1355 2002-08-28  Roland McGrath  <roland@redhat.com>
1356
1357         * locale/findlocale.c [NL_CURRENT_INDIRECT] (_nl_C): New variable.
1358         * locale/setlocale.c (setlocale) [NL_CURRENT_INDIRECT]: Null return
1359         from _nl_find_locale ok if for _nl_C_name.
1360
1361         * locale/nl_langinfo.c [NL_CURRENT_INDIRECT]: Use a categories.def
1362         iterator to refer to each category's _nl_current_LC_FOO symbol, so
1363         we know they are all linked in.
1364
1365         * NEWS: Added 2.2.6 text from 2.2 branch version.
1366
1367         * time/strptime.c (strptime_internal): Remove spurious const.
1368
1369         * locale/lc-time.c (_nl_init_era_entries, _nl_get_era_entry,
1370         _nl_select_era_entry): Moved to ...
1371         * time/era.c: ... here, new file.
1372         (_nl_init_era_entries, _nl_get_era_entry, _nl_select_era_entry):
1373         Add internal_function to definitions.  Take an additional argument
1374         giving the `struct locale_data *' to use.
1375         * locale/lc-time.c (_get_alt_digit, _nl_get_walt_digit,
1376         _nl_parse_alt_digit): Moved to ...
1377         * time/alt_digit.c: ... here, new file.
1378         * time/lc-time-cleanup.c: New file.
1379         * locale/lc-time.c (_nl_postload_time, free_mem): Functions removed.
1380         * locale/localeinfo.h (_nl_postload_time): Remove decl.
1381         (_nl_cleanup_time): Declare it.
1382         (_nl_get_era_entry, _nl_select_era_entry): Update decls.
1383         (_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit): Likewise.
1384         * time/Makefile (aux): New variable: era, alt_digit, lc-time-cleanup.
1385         * time/strftime.c: Pass locale data to helper functions.
1386         * time/strptime.c: Likewise.
1387
1388         * locale/localeinfo.h (struct locale_data): New member `private'
1389         * locale/loadlocale.c (_nl_intern_locale_data): Initialize it.
1390         (_nl_unload_locale): Call LOCALE->private.cleanup if it is set.
1391         * locale/C-collate.c: Update initializer.
1392         * locale/C-identification.c: Likewise.
1393         * locale/C-measurement.c: Likewise.
1394         * locale/C-telephone.c: Likewise.
1395         * locale/C-address.c: Likewise.
1396         * locale/C-name.c: Likewise.
1397         * locale/C-paper.c: Likewise.
1398         * locale/C-time.c: Likewise.
1399         * locale/C-numeric.c: Likewise.
1400         * locale/C-monetary.c: Likewise.
1401         * locale/C-messages.c : Likewise.
1402         * locale/C-ctype.c: Likewise.
1403
1404         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL] (_NL_CURRENT_WORD):
1405         Redefine this too.
1406
1407 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1408
1409         * sysdeps/generic/ldsodefs.h (__rtld_global_attribute__): Define.
1410         (_rtld_global): Use it.
1411
1412         * sysdeps/gnu/Dist: Remove errlist-compat.c.
1413         * sysdeps/gnu/Makefile (errlist-compat.c): Build this file in the
1414         object directory.  Pass all Versions files to the awk script.
1415         * sysdeps/gnu/errlist-compat.c: Removed.
1416         * sysdeps/gnu/errlist.awk: Use #errlist-compat comments from the
1417         first Versions file in the search path which has them.
1418         Allow multiple errlist symbol versions to have the same count of
1419         errors.
1420         * sysdeps/gnu/errlist-compat.awk: Include <errlist-compat.c> instead
1421         of "errlist-compat.c".
1422         * sysdeps/gnu/errlist.c: Regenerated.
1423         * sysdeps/unix/sysv/linux/mips/Versions (libc): Add #errlist-compat
1424         comments at GLIBC_2.0, GLIBC_2.1 and GLIBC_2.3.
1425         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
1426         (librt): Add aio_cancel and aio_cancel64 as GLIBC_2.3.
1427         * sysdeps/unix/sysv/linux/hppa/Versions: Likewise.
1428         * sysdeps/unix/sysv/linux/sparc/Versions: New file.
1429         * sysdeps/unix/sysv/linux/alpha/bits/errno.h: New file.
1430         * sysdeps/unix/sysv/linux/hppa/bits/errno.h (ECANCELED): Define to
1431         ECANCELLED if not defined by kernel headers.
1432         * sysdeps/unix/sysv/linux/bits/errno.h: Don't redefine ECANCELED if
1433         already defined by kernel headers.
1434         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: New file.
1435         * sysdeps/pthread/aio_cancel.c: Don't include aio.h and its
1436         aio_cancel64 renaming hack nor provide weak_alias if aio_cancel
1437         is a macro.
1438         * Versions.def (GLIBC_2.3) [librt]: Add.
1439
1440         * sysdeps/unix/sysv/linux/alpha/pipe.S: New file.
1441
1442 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1443
1444         * include/libc-symbols.h [!__ASSEMBLER__] (declare_symbol_1): Add
1445         missing comma to .type directive.
1446
1447 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1448
1449         * sysdeps/ia64/elf/configure.in (PI_STATIC_AND_HIDDEN): Define
1450         unconditionally.
1451         * sysdeps/alpha/elf/configure.in (libc_cv_alpha_hidden_gprel): New
1452         check.
1453         (PI_STATIC_AND_HIDDEN): Define if check succeeded.
1454
1455 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1456
1457         * locale/loadarchive.c (_nl_load_locale_from_archive): Add fd >= 0
1458         check to close_and_out close.  Replace return NULL statements where
1459         fd might be >= 0 with goto close_and_out.  Close the file descriptor
1460         when it is no longer needed.
1461
1462 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1463
1464         * sysdeps/s390/s390-64/dl-machine.h: Avoid unescaped newlines in
1465         string constants.
1466         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1467         * sysdeps/arm/dl-machine.h: Likewise.
1468         * sysdeps/cris/dl-machine.h: Likewise.
1469         * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
1470         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
1471
1472 2002-08-28  Roland McGrath  <roland@redhat.com>
1473
1474         * Makeconfig (default_cflags): Revert unintended change.
1475
1476 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1477
1478         * version.h (VERSION): Bump to 2.2.91.
1479
1480         * configure.in: Disable TLS support by default for now.
1481
1482         * sysdeps/i386/fpu/libm-test-ulps: Adjust ulp for yn for float.
1483
1484         * sysdeps/generic/strtol.c (strtol): Add some more casts to avoid
1485         warnings.
1486
1487         * stdlib/strtod.c (STRTOF): Correct type in cast of last patch.
1488
1489         * stdlib/fmtmsg.c (fmtmsg): Use correct test for failure of
1490         fprintf/fwprintf calls.
1491
1492 2002-08-28  Roland McGrath  <roland@redhat.com>
1493
1494         * Makeconfig (run-program-prefix): Fix bogus use of $(findstring ...)
1495         to use $(filter ...) instead.  Same bug fixed in aix conditionals.
1496
1497         * locale/setlocale.c: Declare postload functions weak.
1498
1499         * elf/tst-tls1-static.c: New file.
1500         * elf/tst-tls2-static.c: New file.
1501         * elf/Makefile ($(tests-static):%=$(objfpx)%.o): Remove rule.
1502
1503         Make uselocale support static linking.
1504         * locale/xlocale.c: Revert changes putting _nl_global_locale here.
1505         This file again just defines _nl_C_locobj.
1506         (_nl_C_locobj): Use a categories.def iterator in the initializer.
1507         * locale/global-locale.c: New file.  Define _nl_global_locale here,
1508         using all weak references in the initializer.
1509         * locale/Makefile (aux): Add global-locale.
1510         * locale/localeinfo.h (_nl_global_locale, _NL_CURRENT_LOCALE): Make
1511         these unconditional, along with the tsd decl.
1512         [!SHARED && HAVE___THREAD && HAVE_WEAK_SYMBOLS] (NL_CURRENT_INDIRECT):
1513         Define it under these conditions.
1514         [NL_CURRENT_INDIRECT]: Test this instead of [! SHARED].
1515         Don't declare _nl_current.  Declare _nl_current_LC_FOO as
1516         `extern __thread struct locale_data *const *'.
1517         [NL_CURRENT_INDIRECT]
1518         (_NL_CURRENT_DATA, _NL_CURRENT, _NL_CURRENT_WSTR): Add indirection.
1519         [NL_CURRENT_INDIRECT] (_NL_CURRENT_DEFINE): Rewritten.  Define
1520         the thread variable _nl_current_LC_FOO and also a special absolute
1521         symbol _nl_current_LC_FOO_used.
1522         * locale/uselocale.c (__uselocale) [NL_CURRENT_INDIRECT]:
1523         Set each _nl_current_LC_FOO symbol to point into the new locale,
1524         using weak references to test if _nl_current_LC_FOO_used was linked in.
1525         * locale/setlocale.c [! SHARED]: Replace this conditional ...
1526         [NL_CURRENT_INDIRECT]: ... with this one.
1527         (_nl_current, _nl_C): Variables removed.
1528         [NL_CURRENT_INDIRECT] (_nl_current_used): New variable, table of
1529         weak references to _nl_current_LC_FOO_used.
1530         [NL_CURRENT_INDIRECT] (CATEGORY_USED): Define using that table.
1531         (free_category): New function, broken out of ...
1532         (free_mem): ... here.  Call that.
1533         (free_mem) [NL_CURRENT_INDIRECT]: Use a categories.def iterator
1534         instead of a loop.
1535
1536         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Don't check for
1537         PT_LOAD program headers and don't try to relocate PT_TLS's p_vaddr;
1538         it is already absolute.
1539
1540         * elf/Makefile (tests): List tst-tls1 and tst-tls2 unconditionally.
1541         [$(build-static) = yes] (tests): Add tst-tls1-static, tst-tls2-static.
1542         [$(build-static) = yes] (tests-static): New variable.
1543         ($(tests-static):%=$(objfpx)%.o)): New static pattern rule.
1544
1545 2002-08-26  Christoph Hellwig  <hch@lst.de>
1546
1547         * sysdeps/unix/sysv/linux/sys/personality.h: Remark origin, fix
1548         formating braindamage, add missing PER_HPUX and PER_OSF1 values.
1549
1550 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1551
1552         * sysdeps/x86_64/Dist: Add _mcount.S and bits/link.h.
1553
1554         * sysdeps/s390/Dist: Add bits/link.h.
1555
1556         * sysdeps/sh/Dist: New file.
1557
1558         * sysdeps/ia64/Dist: Add ia64libgcc.S.
1559
1560         * sysdeps/wordsize-32/Dist: New file.
1561
1562         * sysdeps/unix/sysv/linux/alpha/Dist: Add dl-brk.S.
1563         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
1564         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
1565
1566         * sysdeps/unix/sysv/linux/Dist: Add dl-brk.c, dl-sbrk.c, and
1567         sys/personality.h.
1568
1569         * sysdeps/unix/Dist: Add i386/dl-brk.S, mips/dl-brk.S, and
1570         sparc/dl-brk.S.
1571
1572         * sysdeps/unix/bsd/Dist: Add vax/dl-brk.S.
1573
1574         * sysdeps/unix/bsd/sun/Dist: New file.
1575
1576         * sysdeps/unix/bsd/osf/Dist: New file.
1577
1578         * sysdeps/unix/bsd/hp/Dist: New file.
1579
1580         * sysdeps/unix/arm/Dist: New file.
1581
1582         * sysdeps/powerpc/Dist: Add divdi3.c and libgcc-compat.S.
1583
1584         * sysdeps/mach/hurd/Dist: Add set-init.c.
1585
1586         * sysdeps/i386/Dist: Add bits/link.h.
1587
1588         * sysdeps/gnu/Dist: Add errlist-compat.c errlist-compat.awk.
1589
1590         * sysdeps/generic/Dist: Add dl-brk.c and dl-sbrk.c.
1591
1592         * locale/Makefile (distribute): Add hashval.h.
1593
1594         * iconvdata/Makefile (distribute): Add tcvn5712-1.c and armscii-8.c.
1595
1596         * sysdeps/unix/sysv/linux/Dist: Remove errlist.h.
1597
1598         * misc/sys/cdefs.h: Define __BEGIN_NAMESPACE_STD, __END_NAMESPACE_STD,
1599         __USING_NAMESPACE_STD, __BEGIN_NAMESPACE_C99, __END_NAMESPACE_C99, and
1600         __USING_NAMESPACE_C99 depending on _GLIBCPP_USE_NAMESPACES.
1601         * ctype/ctype.h: Prepare headers for use in ISO C++ compliant
1602         implementations.
1603         * libio/stdio.h: Likewise.
1604         * locale/locale.h: Likewise.
1605         * math/math.h: Likewise.
1606         * math/bits/mathcalls.h: Likewise.
1607         * setjmp/setjmp.h: Likewise.
1608         * signal/signal.h: Likewise.
1609         * stdlib/stdlib.h: Likewise.
1610         * string/string.h: Likewise.
1611         * time/time.h: Likewise.
1612         * wcsmbs/wchar.h: Likewise.
1613         * wctype/wctype.h: Likewise.
1614
1615 2002-08-28  Roland McGrath  <roland@redhat.com>
1616
1617         * locale/tst-C-locale.c (run_test): Remove __ from function names.
1618
1619 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1620             Roland McGrath <roland@redhat.com>
1621
1622         * locale/hashval.h (compute_hashval): Use prototype defn.
1623         (hashval_t): New macro, defined to unsigned long int
1624         if not already defined.
1625         (compute_hashval): Return hashval_t instead of unsigned long int.
1626         * locale/loadarchive.c (hashval_t): New macro.
1627         * locale/programs/locarchive.c: Include hashval.h directly instead
1628         of simple-hash.h.
1629         (compute_hashval, hashval_t): Define these macros first.
1630         (insert_name): Use archive_hashval instead of compute_hashval.
1631         (add_locale, delete_locales_from_archive): Likewise.
1632
1633 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1634
1635         * locale/programs/locarchive.c (insert_name): Suppress warnings about
1636         hash collisions if be_quiet.
1637
1638 2002-08-27  Roland McGrath  <roland@redhat.com>
1639
1640         * locale/locale.h (__newlocale, __duplocale, __freelocale,
1641         __uselocale): Don't declare these any more.
1642         * include/locale.h (__uselocale): Declare here instead, using __typeof.
1643
1644         * sysdeps/unix/readdir.c: If getdents fails with ENOENT, restore errno
1645         and treat it as an EOF return.
1646         * sysdeps/unix/readdir_r.c: Likewise.
1647
1648         * sysdeps/gnu/errlist-compat.awk: Include <bits/wordsize.h> in output.
1649         From Alexandre Oliva <aoliva@redhat.com>.
1650         * sysdeps/gnu/errlist-compat.c: Regenerated.
1651
1652 2002-08-27  Brian Youmans  <3diff@gnu.org>
1653
1654         * sysdeps/ieee754/flt-32/e_asinf.c: Modified copying permission
1655         wording at request of copyright holder Stephen Moshier.
1656         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
1657         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
1658         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
1659         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
1660         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
1661         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
1662         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
1663         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
1664         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
1665         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
1666         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
1667         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
1668         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
1669         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
1670
1671 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1672
1673         * ctype/ctype.h (isascii_l, toascii_l): Define to __*_l counterparts.
1674         * ctype/ctype-extn.c (isblank_l): Add weak alias.
1675         * sysdeps/generic/strtol_l.c (strtol_l): Likewise.
1676         * sysdeps/generic/strtoll_l.c (strtoll_l): Likewise.
1677         * sysdeps/generic/strtoul_l.c (strtoul_l): Likewise.
1678         * sysdeps/generic/strtoull_l.c (strtoull_l): Likewise.
1679         * wctype/iswctype_l.c (iswctype_l): Likewise.
1680
1681 2002-08-27  Roland McGrath  <roland@redhat.com>
1682
1683         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: No libc_hidden_def.
1684
1685         * ctype/ctype.h (__exctype_l): Don't declare __ name.
1686         * stdlib/stdlib.h: Don't declare __*_l names.
1687         * include/stdlib.h: Declare them here instead.
1688         * include/string.h: Don't declare __*_l names.
1689         * string/string.h: Declare them here instead.
1690         * time/time.h: Don't declare __*_l names.
1691         * include/time.h: Declare them here instead.
1692         * wcsmbs/wchar.h: Don't declare __*_l names.
1693         * include/wchar.h: Declare them here instead.
1694         * wctype/wctype.h: Declare iswalnum_l, not __iswalnum_l.
1695         Don't declare __*_l names.
1696         * include/wctype.h: Declare them here instead.
1697         * stdlib/monetary.h: Declare strfmon_l, not __strfmon_l.
1698         * stdlib/strfmon_l.c (strfmon_l): Define as weak alias.
1699         * locale/langinfo.h: Don't declare __nl_langinfo_l.
1700         * include/langinfo.h: Declare it here with __typeof.
1701
1702         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strptime_l
1703         instead, taking an extra __locale_t argument.
1704         * time/Makefile (routines): Add strptime_l.
1705         * time/time.h (__strptime_l, strptime_l): Declare them.
1706         * time/strptime_l.c: New file.
1707
1708         * time/time.h (__strftime_l, strftime_l): Declare them.
1709         * wcsmbs/wchar.h (__wcsftime_l, wcsftime_l): Declare them.
1710         * time/strftime_l.c: New file.
1711         * time/wcsftime_l.c: New file.
1712         * time/Makefile (routines): Add strftime_l, wcsftime_l.
1713         * time/Versions (libc: GLIBC_2.3): Add __strftime_l, __wcsftime_l,
1714         strftime_l, wcsftime_l.
1715         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strftime_l
1716         or __wcsftime_l instead, taking an extra __locale_t argument.
1717
1718         * locale/Versions (libc: GLIBC_PRIVATE): Move __uselocale to ...
1719         (libc: GLIBC_2.3): ... here.
1720
1721 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
1722
1723         * stdio-common/Makefile: Fix typo in stdio_lim.h installation rule.
1724
1725         * Makefile (distribute): Add LICENSES.
1726
1727         * sysdeps/unix/sysv/linux/x86_64/Dist: Add ucontext_i.h and
1728         sys/debugreg.h.
1729
1730         * sysdeps/unix/sysv/linux/s390/Dist: Add new/route.h.
1731
1732         * sysdeps/unix/sysv/linux/ia64/Dist: Add dl-brk.S and sys/user.h.
1733
1734         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/user.h.
1735
1736         * sysdeps/unix/sysv/linux/Dist: Add readahead.c.
1737
1738         * sysdeps/mach/hurd/alpha/Dist: New file.
1739
1740         * sysdeps/arm/Dist: Add bits/link.h.
1741
1742         * sunrpc/Makefile: Distribute thrsvc.
1743
1744         * stdio-common/Makefile: Remove more left-overs from old stdio.
1745
1746         * include/linewrap.h: Removed.
1747
1748         * libio/bug-mmap-fflush.c: Rewrite to not touch source directory.
1749
1750         * intl/Makefile (distribute): Add plural-eval.c.
1751
1752 2002-08-27  Roland McGrath  <roland@redhat.com>
1753
1754         * manual/sysinfo.texi (Mount Information): Correct file name to macro
1755         assocations for _PATH_MNTTAB, MNTTAB, _PATH_MOUNTED, MOUNTED.
1756         Say mtab is in either /var/run or /etc.
1757
1758 2002-08-26  Roland McGrath  <roland@redhat.com>
1759
1760         * manual/errno.texi (Error Codes): Added ECANCELED (118 for Hurd).
1761         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
1762
1763         * sysdeps/gnu/Versions: New file.
1764         * sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.1): Remove
1765         _sys_errlist; sys_errlist; _sys_nerr; sys_nerr; from here.
1766         * sysdeps/gnu/Makefile ($(..)sysdeps/gnu/errlist-compat.c): New target.
1767         ($(objpfx)errlist.d): Depend on $(..)sysdeps/gnu/errlist-compat.c.
1768         * sysdeps/gnu/errlist.awk: Make output define _sys_errlist_internal
1769         and _sys_nerr_internal instead of anything else.  Make it include
1770         "errlist-compat.c" if [!NOT_IN_libc && !ERRLIST_NO_COMPAT].
1771         Make it emit some asm magic if [EMIT_ERR_MAX].
1772         * sysdeps/gnu/errlist.c: Regenerated.
1773         * sysdeps/gnu/errlist-compat.awk: New file.
1774         * sysdeps/gnu/errlist-compat.c: New file (generated).
1775         * sysdeps/mach/hurd/errlist.c (ERRLIST_NO_COMPAT): New macro.
1776         (_sys_errlist_internal): Define this as a macro for _hurd_errlist.
1777         (_sys_nerr_internal): Define this is a macro for _hurd_nerr.
1778         (SYS_ERRLIST, SYS_NERR): Macros removed.
1779         (sys_nerr, _sys_nerr): Remove these weak aliases.
1780         * sysdeps/unix/sysv/linux/errlist.c: File removed.
1781         * sysdeps/unix/sysv/linux/errlist.h: File removed.
1782         * sysdeps/unix/sysv/linux/arm/errlist.c: File removed.
1783
1784         * include/libc-symbols.h (declare_symbol): New macro.
1785         * config.h.in (ASM_TYPE_DIRECTIVE_PREFIX): New #undef.
1786         * configure.in: New check to define it.
1787         * configure: Regenerated.
1788
1789 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
1790
1791         * stdio-common/Makefile (headers): Remove bits/stdio_lim.h.  This
1792         file isn't distributed.  Add special rules to install bits/stdio_lim.h.
1793
1794         * Make-dist: Remove traces of old stdio.
1795         * Makeconfig: Likewise.
1796
1797         * locale/Makefile (localedef-aux): New variable.  Only md5
1798         assigned to it.  These files are not ddistributed in this directory.
1799
1800         * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
1801         * sysdeps/unix/sysv/linux/s390/s390-64/Dist: Remove sys/procfs.h.
1802         * sysdeps/unix/sysv/linux/s390/s390-32/Dist: Likewise.
1803
1804         * sysdeps/unix/sysv/linux/Dist: Remove sys/sendfile.h.
1805
1806         * nss/getXXbyYY_r.c (REENTRANT_NAME): If no service is available
1807         set h_errno to NO_RECOVERY [PR libc/4360].
1808
1809 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
1810
1811         * libio/Makefile (tests): Add bug-fopena+.
1812         * libio/bug-fopena+.c: New file.
1813         * libio/fileops.c (_IO_file_open): Only set file pointer to end of the
1814         file for _IO_IS_APPENDING if file isn't opened for reading, too.
1815
1816         * stdio-common/tst-swprintf.c (main): Add casts to avoid warnings.
1817
1818         * locale/xlocale.c: Fix the last change.  The variable still has
1819         to end in _data.
1820         * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
1821         (__libc_tsd_set): Add _data prefix to variable name.
1822
1823 2002-08-26  Roland McGrath  <roland@redhat.com>
1824
1825         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Replace
1826         macro with inline function.
1827         (sigset_get_old_mask): Likewise.
1828         * sysdeps/posix/sigblock.c (__sigblock): Update callers.
1829         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
1830         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1831         * sysdeps/posix/sigvec.c (__sigvec, sigvec_wrapper_handler): Likewise.
1832         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h
1833         (sigset_set_old_mask, sigset_get_old_mask): Make these macros return
1834         values.
1835         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h: Likewise.
1836         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h: Likewise.
1837
1838 2002-07-06  Bruno Haible  <bruno@clisp.org>
1839
1840         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask,
1841         sigset_get_old_mask): Make it work with larger sigset_t.
1842         * sysdeps/posix/sigblock.c (__sigblock): Use those macros.
1843         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
1844         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1845
1846 2002-08-26  Roland McGrath  <roland@redhat.com>
1847
1848         * time/sys/time.h [__USE_BSD] (lutimes, futimes): Declare them.
1849         * manual/filesys.texi (File Times): Document lutimes and futimes.
1850         * misc/Makefile (routines): Add them.
1851         * misc/Versions (libc: GLIBC_2.3): Likewise.
1852         * sysdeps/generic/lutimes.c: New file.
1853         * sysdeps/generic/futimes.c: New file.
1854         * sysdeps/mach/hurd/lutimes.c: New file.
1855         * sysdeps/mach/hurd/futimes.c: New file.
1856
1857         * manual/filesys.texi (File Times): Add explicit note about null
1858         pointer argument to utimes.
1859
1860 2002-08-26  Roland McGrath  <roland@frob.com>
1861
1862         * sysdeps/mach/hurd/ifreq.h (__if_freereq): Add missing semicolon.
1863         (__ifreq): Add a cast.  Remove an unused variable.
1864
1865         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
1866         _HURD_THREADVAR_LOCALE.
1867
1868 2002-08-26  Jakub Jelinek  <jakub@redhat.com>
1869
1870         * posix/regexec.c (re_search_stub): Return correct match length
1871         if start != 0.
1872         * posix/bug-regex10.c: New test.
1873         * posix/Makefile (tests): Add bug-regex10.
1874
1875 2002-08-26  Brian Youmans  <3diff@gnu.org>
1876
1877         * COPYING.LIB: Replaced with fresh copy from
1878         ftp://ftp.gnu.org/gnu/Licenses/COPYING.LIB-2.1;
1879         suggested copying permission notice now says version 2.1 instead
1880         of version 2.
1881
1882         * crypt/crypt.c: Changed copying permission notice to Lesser GPL
1883         from Library GPL.
1884         * crypt/crypt_util.c: Likewise.
1885         * crypt/ufc.c: Likewise.
1886         * elf/dl-conflict.c: Likewise.
1887         * elf/dl-iteratephdr.c: Likewise.
1888         * iconv/iconvconfig.h: Likewise.
1889         * malloc/arena.c: Likewise.
1890         * malloc/hooks.c: Likewise.
1891         * malloc/malloc.c: Likewise.
1892         * posix/glob/Makefile.ami: Likewise.
1893         * posix/glob/Makefile.in: Likewise.
1894         * stdlib/gmp-impl.h: Likewise.
1895         * stdlib/gmp.h: Likewise.
1896         * sysdeps/generic/dl-iteratephdr-static.c: Likewise.
1897         * sysdeps/generic/strnlen.c: Likewise.
1898         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
1899         * sysdeps/mach/hurd/recvmsg.c: Likewise.
1900         * sysdeps/mach/hurd/sendmsg.c: Likewise.
1901         * sysdeps/mach/hurd/spawni.c: Likewise.
1902         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
1903         * sysdeps/mach/powerpc/sysdep.h: Likewise.
1904         * sysdeps/mach/powerpc/thread_state.h: Likewise.
1905         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
1906         * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: Likewise.
1907         * sysdeps/x86_64/gmp-mparam.h: Likewise.
1908
1909         * sysdeps/ieee754/dbl-64/MathLib.h: Corrected version number in
1910         Lesser GPL copying permission notice from 2 to 2.1.
1911         * sysdeps/ieee754/dbl-64/asincos.tbl: Likewise.
1912         * sysdeps/ieee754/dbl-64/atnat.h: Likewise.
1913         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
1914         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
1915         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
1916         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
1917         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
1918         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
1919         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
1920         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
1921         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
1922         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
1923         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
1924         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
1925         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
1926         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
1927         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
1928         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
1929         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
1930         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
1931         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
1932         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
1933         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
1934         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
1935         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
1936         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
1937         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
1938         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
1939         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
1940         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
1941         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
1942         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
1943         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
1944         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
1945         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
1946         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
1947         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1948         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
1949         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
1950         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
1951         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
1952         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
1953         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
1954         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
1955         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
1956         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
1957         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
1958         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
1959         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
1960         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
1961         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
1962         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
1963         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
1964         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
1965         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
1966
1967         * sysdeps/ieee754/flt-32/e_asinf.c: Added copyright notice for Stephen
1968         Moshier and Lesser GPL copying permission notice, per license from
1969         Moshier.
1970         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
1971         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
1972         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
1973         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
1974         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
1975         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
1976         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
1977         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
1978         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
1979         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
1980         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
1981         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
1982         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
1983         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
1984
1985         * sysdeps/ieee754/ldbl-128/e_j0l.c: Added Lesser GPL copying permission
1986         notice, per license from copyright holder Stephen Moshier.
1987         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
1988         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
1989         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
1990         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
1991         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
1992         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
1993         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
1994         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
1995         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
1996
1997 2002-08-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1998
1999         * sysdeps/sh/Makefile (sysdeps_routines): Add divdi3 in csu dir.
2000         (shared-only-routines): Likewise.
2001
2002 2002-08-26  Roland McGrath  <roland@redhat.com>
2003
2004         * locale/programs/ld-ctype.c (ctype_read): When given a repertoire
2005         name of "", store a null pointer instead.
2006
2007         * configure.in (elf): Set to yes for freebsd*, netbsd*.
2008         * configure: Regenerated.
2009
2010         * locale/xlocale.c [! (USE_TLS && HAVE___THREAD)] (__libc_tsd_LOCALE):
2011         Initialize this instead of __libc_tsd_LOCALE_data.
2012
2013         * sysdeps/unix/grantpt.c (pts_name): Convert ENOTTY return from
2014         ptsname_r to EINVAL.
2015
2016         * sysdeps/generic/ptsname.c (__ptsname_r): Return ENOSYS instead of 0.
2017
2018         * rt/Makefile: Revert last change, it was inappropriate to presume aio
2019         implementations depend on pthreads.
2020         * rt/tst-aio.c (do_test): Exit happy if first failure is ENOSYS.
2021         * rt/tst-aio64.c (do_test): Likewise.
2022         * rt/tst-aio2.c (do_test): Likewise.
2023         * rt/tst-aio3.c (do_test): Likewise.
2024         * rt/tst-aio4.c (do_test): Likewise.
2025         * rt/tst-aio5.c (do_test): Likewise.
2026         * rt/tst-aio6.c (do_test): Likewise.
2027         * rt/tst-aio7.c (do_test): Likewise.
2028
2029         * sysdeps/generic/bits/libc-lock.h (__libc_setspecific): Use a cast to
2030         void so as to avoid compiler warnings.
2031
2032         * libio/oldstdfiles.c [! _IO_MTSAFE_IO] (DEF_STDFILE): Don't define
2033         _IO_wide_data_FD, which is never used here.
2034
2035         * libio/iofread.c
2036         [! _IO_MTSAFE_IO] (fread_unlocked): Add libc_hidden_ver defn.
2037         * libio/iofputs.c [! _IO_MTSAFE_IO] (fputs_unlocked): Likewise.
2038         * libio/iofgets.c [! _IO_MTSAFE_IO] (fgets_unlocked): Likewise.
2039
2040         * include/resolv.h [! _LIBC_REENTRANT] (_res): #undef it before decl.
2041         * include/netdb.h [! _LIBC_REENTRANT] (h_errno): Declare normal extern.
2042
2043         * misc/syslog.c (openlog): Conditionalize locking on [_LIBC_REENTRANT].
2044         (closelog): Likewise.
2045
2046 2002-07-06  Bruno Haible  <bruno@clisp.org>
2047
2048         * sysdeps/alpha/fpu/fpu_control.h: Comment fix.
2049
2050         * sysdeps/unix/sysv/linux/alpha/pipe.S: Moved to ...
2051         * sysdeps/unix/alpha/pipe.S: ... here.
2052         * sysdeps/unix/bsd/osf/alpha/pipe.S: File removed.
2053
2054         * sysdeps/unix/i386/brk.S: Rename local label to '.Lhere' in ELF.
2055
2056         * sysdeps/unix/i386/brk.S: Add PSEUDO_END invocation.
2057         * sysdeps/unix/i386/fork.S: Likewise.
2058         * sysdeps/unix/i386/pipe.S: Likewise.
2059         * sysdeps/unix/i386/wait.S: Likewise.
2060
2061         * sysdeps/unix/fork.S: Fix PSEUDO_END argument.
2062         * sysdeps/unix/arm/fork.S: Likewise.
2063
2064         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Swap DO_CALL
2065         arguments.
2066         (DO_CALL): Swap argument order.
2067         * sysdeps/unix/sysv/linux/hppa/sysdep.h (PSEUDO): Swap DO_CALL
2068         arguments.
2069         (DO_CALL): Swap argument order.
2070         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Swap DO_CALL
2071         arguments.
2072         (DO_CALL): Swap argument order.
2073         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO): Swap DO_CALL
2074         arguments.
2075         (DO_CALL): Swap argument order.
2076         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO): Swap DO_CALL
2077         arguments.
2078         (DO_CALL): Swap argument order.
2079         * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Swap DO_CALL
2080         arguments.
2081         (DO_CALL): Swap argument order.
2082         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Swap DO_CALL
2083         arguments.
2084         (DO_CALL): Swap argument order.
2085
2086         * sysdeps/i386/sysdep.h (PSEUDO): Fix syntax error.
2087         (L): Define right for ELF.
2088         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Remove definition.
2089         Now defined in sysdeps/i386/sysdep.h.
2090
2091         * sysdeps/posix/readv.c: Ansify function definition.
2092         * sysdeps/posix/writev.c: Likewise.
2093
2094         * stdio-common/tst-fseek.c (main): Don't assume that off_t and size_t
2095         have the same size. Avoid direct cast from size_t to off_t.
2096
2097         * login/tst-utmp.c (simulate_login): Don't leave garbage after the
2098         nul byte in entry[n].ut_user.
2099         (simulate_logout): Likewise.
2100
2101         * login/programs/utmpdump.c (print_entry): Test _HAVE_UT_TYPE,
2102         _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST, instead of assuming the
2103         existence of corresponding members of 'struct utmp'.
2104         * login/tst-utmp.c: Trivialize the test if testing 'struct utmp' and
2105         !_HAVE_UT_TYPE.
2106
2107         * sysdeps/unix/opendir.c (__opendir): If st_blksize is 0 or too small,
2108         allocate a buffer of at least BUFSIZ bytes, not just of
2109         sizeof (struct dirent).
2110
2111         * sysdeps/generic/glob.c: Include <limits.h>.
2112         (NAME_MAX): Define a fallback.
2113         (glob_in_dir): Allocate enough room for a 'struct dirent64' on the
2114         stack.
2115         * posix/tst-dir.c: Include <stddef.h>, for offsetof.
2116         (main): Allocate enough room for a 'struct dirent64' on the stack.
2117         * posix/tst-gnuglob.c (my_DIR): Allocate enough room for a
2118         'struct dirent'.
2119
2120         * sysdeps/unix/sysv/linux/init-first.c: Don't include
2121         kernel-features.h.
2122
2123         * inet/htontest.c: Include <sys/types.h>.
2124
2125         * sysdeps/generic/sys/sysinfo.h: Surround with __{BEGIN,END}_DECLS.
2126
2127         * include/sys/sysctl.h: Comment fix.
2128
2129         * elf/rtld.c (_rtld_global) [! _LIBC_REENTRANT]: Don't initialize
2130         _dl_load_lock.
2131         * libio/fileno.c (fileno_unlocked): Define regardless of _IO_MTSAFE_IO.
2132
2133         * sysdeps/unix/bsd/bsd4.4/syscalls.list (__sigaltstack): New alias.
2134
2135         * sysdeps/unix/inet/syscalls.list (__connect_internal): New alias.
2136         (__getpeername): New alias.
2137         (__getsockname): New alias.
2138         (__socket): New alias.
2139
2140         * sysdeps/unix/common/syscalls.list (getpgid): Remove.
2141
2142         * sysdeps/unix/syscalls.list (__chown_internal): New alias.
2143         (__fcntl_internal): New alias.
2144         (__profil): New alias.
2145
2146 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
2147
2148         * nscd/hstcache.c (cache_addhst): Add new parameter saying whether
2149         entry was for getaddr* lookup or not.  Add only matching cache
2150         entry.  Change all callers [PR libc/4317].
2151
2152         * libio/wfileops.c (_IO_wfile_seekoff): Set fp->_offset after
2153         finding the read position [PR libc/4265].
2154         * libio/Makefile (tests): Add bug-rewind2.
2155         * libio/bug-rewind2.c: New file.
2156
2157         * libio/bug-rewind.c: Fix creation of temp file.
2158
2159 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2160
2161         * nss/getXXbyYY_r.c (REENTRANT_NAME): Return ENOENT if status is
2162         neither SUCCESS nor TRYAGAIN [PR libc/4259].
2163         * nss/nss_files/files-XXX.c (internal_getent): Don't set *errnop
2164         to ENOENT if no entry is found.
2165         * nis/nss_compat/compat-grp.c: Don't set errno in case of lookup
2166         failure.
2167         * nis/nss_compat/compat-initgroups.c: Likewise.
2168         * nis/nss_compat/compat-pwd.c: Likewise.
2169         * nis/nss_compat/compat-spwd.c: Likewise.
2170         * nis/nss_nis/nis-alias.c: Likewise.
2171         * nis/nss_nis/nis-ethers.c: Likewise.
2172         * nis/nss_nis/nis-grp.c: Likewise.
2173         * nis/nss_nis/nis-hosts.c: Likewise.
2174         * nis/nss_nis/nis-initgroups.c: Likewise.
2175         * nis/nss_nis/nis-netgrp.c: Likewise.
2176         * nis/nss_nis/nis-network.c: Likewise.
2177         * nis/nss_nis/nis-proto.c: Likewise.
2178         * nis/nss_nis/nis-publickey.c: Likewise.
2179         * nis/nss_nis/nis-pwd.c: Likewise.
2180         * nis/nss_nis/nis-rpc.c: Likewise.
2181         * nis/nss_nis/nis-service.c: Likewise.
2182         * nis/nss_nis/nis-spwd.c: Likewise.
2183         * resolv/nss_dns/dns-host.c: Likewise.
2184         * resolv/nss_dns/dns-network.c: Likewise.
2185         * nis/nss_nisplus/nisplus-alias.c: Save errno around NIS calls.
2186         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
2187         * nis/nss_nisplus/nisplus-grp.c: Likewise.
2188         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
2189         * nis/nss_nisplus/nisplus-network.c: Likewise.
2190         * nis/nss_nisplus/nisplus-proto.c: Likewise.
2191         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
2192         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
2193         * nis/nss_nisplus/nisplus-service.c: Likewise.
2194         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
2195         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Preserve errno value.
2196         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
2197         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Likewise.
2198         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
2199
2200         * sysdeps/unix/sysv/linux/i386/sigaction.c: Avoid warnings by
2201         declaring __restore and __restore_rt as hidden (if possible).
2202
2203 2002-08-25  Roland McGrath  <roland@redhat.com>
2204
2205         * manual/llio.texi (Access Modes): Fix typos in O_READ/O_WRITE defns.
2206
2207         * sysdeps/generic/utmp_file.c (LOCK_FILE): Check for error from fcntl.
2208         (getutent_r_file, internal_getut_r): Updated all callers.
2209         (getutline_r_file, pututline_file, updwtmp_file): Likewise.
2210
2211 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2212
2213         * locale/programs/locale.c: Don't print aliases for non-existing
2214         locales for 'locale -a'.
2215         Patch by Noah Levitt <nlevitt@columbia.edu> [PR libc/4166].
2216
2217 2002-07-19  H.J. Lu  <hjl@gnu.org>
2218
2219         * sysdeps/unix/sysv/linux/mips/bits/msq.h: New file.
2220
2221 2002-07-16  H.J. Lu  <hjl@gnu.org>
2222
2223         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2224         sys/personality.h.
2225         * sysdeps/unix/sysv/linux/sys/personality.h: New file.
2226
2227 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2228
2229         * elf/tst-tlsmod1.c (in_dso): Make sure the TLS variable access is
2230         not moved ahead of the fputs call.
2231         * elf/tst-tlsmod2.c (in_dso): Likewise.
2232         * elf/tst-tlsmod3.c (in_dso2): Likewise.
2233         * elf/tst-tlsmod4.c (in_dso): Likewise.
2234
2235 2002-08-25  Andreas Schwab  <schwab@suse.de>
2236
2237         * elf/dl-reloc.c (_dl_reloc_bad_type): Nul-terminate message.
2238
2239 2002-08-25  Roland McGrath  <roland@redhat.com>
2240
2241         * sysdeps/generic/utmp_file.c (UNLOCK_FILE): Clear alarm before
2242         resetting handler, to avoid the possibility of a spurious SIGALRM
2243         delivered to the user's handler.
2244         Reported by Amit D. Chaudhary <amitc@brocade.com>,
2245
2246         * misc/Makefile (CFLAGS-init-misc.c): Variable removed.  It served to
2247         set -fkeep-inline-functions, which is not needed for the current file.
2248
2249         * sysdeps/generic/ldsodefs.h: Add attribute_hidden to *_internal decls.
2250         (_dl_setup_hash): Add attribute_hidden.
2251         (_dl_sysdep_start, _dl_sysdep_start_cleanup): Likewise.
2252         (_dl_sysdep_read_whole_file, _dl_dprintf): Likewise.
2253         (_dl_new_object, _dl_map_object_deps): Likewise.
2254         (_dl_map_object_deps_internal): Remove decl.
2255         * elf/rtld.c (__mempcpy, _exit): Redeclare locally as hidden.
2256
2257         * sysdeps/i386/dl-machine.h [PI_STATIC_AND_HIDDEN
2258         && HAVE_VISIBILITY_ATTRIBUTE && HAVE_HIDDEN
2259         && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]
2260         (elf_machine_dynamic, elf_machine_load_address): Rewritten without asm,
2261         instead relying on the compiler to produce only GOTOFF variable refs.
2262
2263 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2264
2265         * elf/dl-load.c: Fix typo in comment.  Add a few more __builtin_expect.
2266
2267         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Define as static
2268         inline to avoid defining it in every file which includes this header.
2269
2270         * elf/rtld.c: Also test for HAVE_VISIBILITY_ATTRIBUTE before
2271         defining DONT_USE_BOOTSTRAP_MAP.
2272
2273         * libio/tst-freopen.c (main): Use correct formats for __LINE__.
2274         * libio/tst-mmap-setvbuf.c (main): Likewise.
2275         * libio/tst-widetext.c (main): Likewise.
2276
2277         * libio/tst-mmap-eofsync.c (do_test): Use correct format in error
2278         message.
2279         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
2280         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
2281
2282         * sysdeps/i386/elf/configure.in: Unconditionally define
2283         PI_STATIC_AND_HIDDEN.
2284         * elf/rtld.c (DONT_USE_BOOTSTRAP_MAP): Define only if
2285         PI_STATIC_AND_HIDDEN is defined as well.
2286         * config.h.in: Add PI_STATIC_AND_HIDDEN entry.
2287
2288 2002-08-24  Ulrich Drepper  <drepper@redhat.com>
2289
2290         * sysdeps/ia64/bzero.S: Define __bzero as well.
2291
2292         * locale/programs/charmap.c (charmap_new_char): Don't use
2293         ULONG_MAX as maximum UCS4 value.
2294
2295         * sysdeps/unix/sysv/linux/ia64/sys/user.h: New file.
2296
2297         * sysdeps/generic/strtol.c: We don't need the isascii test in glibc.
2298
2299         * malloc/hooks.c (public_sET_STATe): use size_t as type for i.
2300         * malloc/malloc.c (mALLINFo): Likewise.
2301
2302         * libio/wstrops.c (_IO_wstr_pbackfail): Use WEOF in comparison.
2303
2304         * libio/wfileops.c (_IO_wfile_overflow): Use EOF not WEOF when
2305         examining result of _IO_do_flush call.
2306
2307         * stdio-common/vfprintf.c (vfprintf): Use correct type in va_arg.
2308         Use prec not spec when sizing buffers.
2309
2310         * catgets/open_catalog.c (__open_catalog): Add casts to avoid warnings.
2311         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
2312         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
2313         * stdio-common/vfscanf.c (inchar): Likewise.
2314         * misc/efgcvt_r.c (fcvt_r): Likewise.
2315         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
2316         * elf/readlib.c (process_file): Likewise.
2317         * elf/sprof.c (load_profdata): Likewise.
2318         * sysdeps/ia64/hp-timing.h (HP_TIMING_PRINT): Likewise.
2319         * locale/programs/linereader.c (get_toplvl_escape): Likewise.
2320         * locale/programs/charmap.c (charmap_read): Likewise.
2321         * libio/fileops.c: Likewise.
2322         * libio/fmemopen.c: Likewise.
2323         * stdlib/strtod.c: Likewise.
2324         * elf/dl-load.c: Likewise.
2325         * iconv/iconvconfig.c: Likewise.
2326         * iconv/iconv_prog.c (process_block): Likewise.
2327         * elf/rtld.c (dl_main): Likewise.
2328
2329         * sysdeps/unix/sysv/linux/ia64/Makefile: Define _ASM_IA64_CURRENT_H
2330         macro to calm down the compiler.
2331
2332         * iconv/gconv_cache.c (__gconv_load_cache): Add cast to avoid warning.
2333
2334         * sysdeps/ia64/elf/initfini.c: Don't use newlines embedded in string.
2335
2336         * sysdeps/unix/sysv/linux/i386/sysdep.S: Update comment regarding
2337         placement of errno definition.
2338         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
2339         * sysdeps/unix/sysv/linux/mips/sysdep.S: Likewise.
2340         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
2341         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
2342         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
2343
2344         * resolv/nss_dns/dns-host.c (MAXPACKET): Increase minimum value
2345         from 1024 to 65536, to avoid buffer overrun.
2346
2347 2002-08-16  Paul Eggert  <eggert@twinsun.com>
2348
2349         * resolv/gethnamaddr.c (MAXPACKET): Increase minimum value
2350         from 1024 to 65536, to avoid buffer overrun.
2351         * resolv/res_query.c (MAXPACKET): Likewise.
2352
2353 2002-08-24  Andreas Jaeger  <aj@suse.de>
2354
2355         * sysdeps/unix/sysv/linux/i386/Versions: Remove *xattr syscalls.
2356
2357 2002-08-23  Ulrich Drepper  <drepper@redhat.com>
2358
2359         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Define and initialize
2360         two52 locally.
2361         (log2): Likewise.
2362         * sysdeps/ieee754/dbl-64/upow.h: Remove definition of two52.
2363         Patch by Simon Gee <simong@agile.tv>.
2364
2365         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf):
2366         Prefer reading /proc/stat since it is more uniform across
2367         architectures.
2368
2369         * manual/texinfo.tex: Update to latest official version.
2370
2371         * sysvipc/sys/shm.h: Remove SHMLBA definition.
2372         * sysdeps/generic/bits/shm.h: Define SHMLBA here.
2373         * sysdeps/gnu/bits/shm.h: Likewise.
2374         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2375         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2376         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
2377         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2378         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2379         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2380         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2381         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Define SHMLBA to 2^20
2382         since this is what the kernel says.
2383
2384         * misc/sys/xattr.h: Include <sys/types.h> instead of <stddef.h>
2385         since ssize_t is needed as well.  Replace const with __const.
2386
2387 2002-08-23  Roland McGrath  <roland@redhat.com>
2388
2389         * malloc/hooks.c (__malloc_initialize_hook, __free_hook,
2390         __malloc_hook, __realloc_hook, __memalign_hook,
2391         __after_morecore_hook): Variable definitions moved to ...
2392         * malloc/malloc.c: ... here, so as to be before all references.
2393
2394         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Add a dummy
2395         global variable reference in an unused asm parameter, to ensure the
2396         compiler has set up the GOT register before we use it.
2397
2398         * malloc/hooks.c: Move variable definitions ahead of uses.
2399         * libio/fileops.c: Move versioned_symbol defns ahead of _IO_jump_t
2400         initializers that make reference to variables they define.
2401
2402 2002-08-23  Andreas Jaeger  <aj@suse.de>
2403
2404         * locale/loadarchive.c: Include <stdlib.h> for prototypes of
2405         alloca, free, qsort.
2406
2407         * dlfcn/bug-dlsym1-lib1.c (foo): Add prototype to avoid warning.
2408
2409         * sysdeps/ieee754/flt-32/e_jnf.c: Remove unused variable.
2410         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2411
2412         * misc/sys/xattr.h: New file, contributed by Christoph Hellwig
2413         <hch@lst.de>.
2414         * sysdeps/generic/fgetxattr.c: New file.
2415         * sysdeps/generic/flistxattr.c: New file.
2416         * sysdeps/generic/fremovexattr.c: New file.
2417         * sysdeps/generic/fsetxattr.c: New file.
2418         * sysdeps/generic/getxattr.c: New file.
2419         * sysdeps/generic/listxattr.c: New file.
2420         * sysdeps/generic/lgetxattr.c: New file.
2421         * sysdeps/generic/llistxattr.c: New file.
2422         * sysdeps/generic/lremovexattr.c: New file.
2423         * sysdeps/generic/lsetxattr.c: New file.
2424         * sysdeps/generic/removexattr.c: New file.
2425         * sysdeps/generic/setxattr.c: New file.
2426         * misc/Makefile (headers): Add sys/xattr.h.
2427         (routines): Add *xattr calls.
2428         * misc/Versions: Add *xattr calls with version 2.3.
2429         * sysdeps/unix/sysv/linux/m68k/Versions: Remove *xattr syscalls.
2430         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2431         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2432         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2433         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2434         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2435         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2436         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2437
2438 2002-08-22  Steven Munroe  <sjmunroe@us.ibm.com>
2439
2440         * sysdeps/powerpc/elf/libc-start.c
2441         (__cache_line_size): Declare.
2442         (__aux_init_cache): New function.
2443         (__libc_start_main): Change type of `auxvec' parameter to
2444         `ElfW(auxv_t) *'.  Correct walking of aux vector.  Call
2445         __aux_init_cache.
2446         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
2447         (__cache_line_size): Declare.
2448         (__aux_init_cache): New function.
2449         (DL_PLATFORM_INIT): Define.
2450         * sysdeps/powerpc/memset.S: Define __cache_line_size and use its
2451         value to select the correct stride for dcbz.
2452
2453 2002-08-22  Andreas Jaeger  <aj@suse.de>
2454
2455         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments of
2456         shmat.
2457
2458 2002-08-22  Roland McGrath  <roland@redhat.com>
2459
2460         * locale/loadarchive.c (_nl_load_locale_from_archive): Check max file
2461         position indicated by locrectab against file bounds before rounding to
2462         page size.  In mapping loop, always set TO before breaking out of
2463         contiguous range coalescing loop.
2464
2465         * locale/loadarchive.c (_nl_load_locale_from_archive): Use MAP_PRIVATE
2466         (or MAP_COPY if available) instead of MAP_SHARED.
2467
2468         * scripts/firstversions.awk: When encountering a version newer than
2469         the specified earliest version, be sure to emit the specified earliest
2470         version first if any renaming of an older version to that has been.
2471
2472 2002-08-21  Roland McGrath  <roland@redhat.com>
2473
2474         * configure.in: Make GCC version check require 3.[2-9]* and no others.
2475         * manual/install.texi (Tools for Compilation): Say 3.2 is required.
2476         (Configuring and compiling): Don't mention older GCC versions any more.
2477         * INSTALL: Regenerated.
2478
2479         * manual/install.texi (Configuring and compiling, Installation,
2480         Running make install, Linux): Linux -> GNU/Linux where appropriate.
2481
2482         * elf/rtld.c (_dl_start_final): Move defn before _dl_start so it can
2483         be inlined.  Declare it with always_inline if [DONT_USE_BOOTSTRAP_MAP]
2484         and with noinline otherwise.  Remove hack alloca use to prevent
2485         inlining, we can ask for it explicitly nowadays.
2486
2487         * dlfcn/bug-dlsym1.c: New file.
2488         * dlfcn/bug-dlsym1-lib1.c, dlfcn/bug-dlsym1-lib2.c: New files.
2489         * dlfcn/Makefile (distribute): Add them.
2490         (tests): Add bug-dlsym1 here.
2491         (modules-names): Add bug-dlsym1-lib1 and bug-dlsym1-lib2 here.
2492         ($(objpfx)bug-dlsym1, $(objpfx)bug-dlsym1.out): New targets.
2493         ($(objpfx)bug-dlsym1-lib1.so, $(objpfx)bug-dlsym1-lib2.so): Likewise.
2494
2495 2002-08-21  Ulrich Drepper  <drepper@redhat.com>
2496
2497         * elf/rtld.c (start_time): New global variable.  Moved from _dl_start.
2498         (DONT_USE_BOOTSTRAP_MAP): Define if we can use non-exported symbols
2499         before relocation.
2500         (_dl_start): Don't use local bootstrap_map variable if
2501         DONT_USE_BOOTSTRAP_MAP is defined.  Use GL(dl_rtld_map).  Don't
2502         pass bootstrap_map to _dl_start_final in this case either.  Don't
2503         pass start_time to _dl_start_final ever.
2504         (_dl_start_final): Don't copy bootstrap_map if DONT_USE_BOOTSTRAP_MAP.
2505
2506         * elf/dl-deps.c (_dl_map_object_deps): Revert patch from 2002-05-28.
2507         This cripples the scope lists necessary to search for symbols in
2508         dependencies which are not in the global scope.
2509
2510         * include/setjmp.h (__libc_longjmp): Add declaration.
2511
2512 2002-08-21  Andreas Jaeger  <aj@suse.de>
2513
2514         * sysdeps/x86_64/_mcount.S: Fix assembler.
2515
2516         * sysdeps/unix/sysv/linux/x86_64/Makefile: Generate bits/syscall.h
2517         with biarch support.
2518
2519 2002-08-21  Andreas Jaeger  <aj@suse.de>
2520
2521         * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Fix it.
2522
2523         * sysdeps/x86_64/Makefile (sysdep_routines): Add _mcount.
2524
2525         * sysdeps/x86_64/machine-gmon.h: New file.
2526         * sysdeps/x86_64/_mcount.S: New file.
2527
2528 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
2529
2530         * elf/rtld.c (_dl_start): Pass zero to TLS_INIT_TP.  Set
2531         bootstrap_map.l_tls_tp_initialized to 1 if TLS_INIT_TP was called.
2532         (_dl_start_final): Copy l_tls_tp_initialized to GL(dl_rtld_map).
2533         (dl_main): If HAVE___THREAD is not defined pass l_tls_tp_initialized
2534         to TL_INIT_TP.  Otherwise pass 1.
2535         * include/link.h (struct link_map): Add l_tls_tp_initialized.
2536         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass 0 to TL_INIT_TP.
2537
2538 2002-08-15  Jakub Jelinek  <jakub@redhat.com>
2539
2540         * locale/programs/localedef.c (add_to_readlist): Error about
2541         circular dependencies only if the locale in question hasn't
2542         been finished.
2543         * locale/programs/linereader.c (get_string): Pass LC_CTYPE not
2544         CTYPE_LOCALE to load_locale.
2545         * locale/programs/locfile.c (locfile_read): Don't include
2546         unneeded but available locales in locale_mask.
2547
2548         * locale/programs/locarchive.c (enlarge_archive): If quiet, don't
2549         print any messages about enlarging archive.
2550
2551 2002-08-20  Brian Youmans  <3diff@gnu.org>
2552
2553         * manual/contrib.texi: Removed licenses, added acknowledgements
2554         for contributions by Intel, IBM, Craig Metz.
2555         * LICENSES: New file, contains the text of all non-FSF licenses in the
2556         distribution that require putting the notice in the accompanying
2557         documentation.
2558         * README.template, README: Mention LICENSES.
2559
2560         * sysdeps/mach/hurd/net/if_ppp.h: Replaced CMU license with a
2561         new one modelled on the modern BSD license, per recent letter
2562         of permission from CMU.
2563         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
2564
2565         * sysdeps/ieee754/dbl-64/MathLib.h: Changed the copyright holder
2566         from IBM to FSF, per the recent Software Letter.  Changed the
2567         distribution terms from GPL to LGPL.
2568
2569         * sysdeps/ieee754/dbl-64/asincos.tbl: Added FSF copyright and
2570         copying permission notice (Lesser GPL), per recent IBM Software Letter.
2571         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
2572         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
2573         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
2574         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
2575         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
2576         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
2577         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
2578         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
2579
2580         * sysdeps/ieee754/dbl-64/atnat.h: Changed the copyright holder
2581         from IBM to FSF, per the recent Software Letter.  Corrected the
2582         text of the copying permission notice to say Lesser GPL instead
2583         of GPL in warranty disclaimer paragraph.
2584         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
2585         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
2586         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
2587         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
2588         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
2589         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
2590         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
2591         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
2592         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
2593         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
2594         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
2595         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
2596         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
2597         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
2598         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
2599         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
2600         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
2601         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
2602         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
2603         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
2604         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
2605
2606         * sysdeps/ieee754/dbl-64/branred.c: Corrected the text of the copying
2607         permission notice to say Lesser GPL instead of GPL in warranty
2608         disclaimer paragraph.
2609         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2610         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2611         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2612         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2613         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2614         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2615         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2616         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2617         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2618         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2619         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2620         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2621         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2622         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2623         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2624         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2625         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2626         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2627         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2628         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2629         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2630         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2631         * sysdeps/ieee754/dbl-64/slowpow.c:  Likewise.
2632
2633 2002-08-20  Roland McGrath  <roland@redhat.com>
2634
2635         Fix ABI compatibility with libc compiled with old tools on powerpc.
2636         Changes contributed by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2637         and Jack Howarth <howarth@bromo.med.uc.edu>.
2638         * sysdeps/powerpc/Makefile [$(have-protected) = yes]
2639         (CPPFLAGS-divdi3.c, CPPFLAGS-libgcc-compat.S): New variables,
2640         pass -DHAVE_DOT_HIDDEN for these files.
2641         * sysdeps/powerpc/Versions (libc: GLIBC_2.0): Added __floatdidf,
2642         __floatdisf.
2643         * sysdeps/powerpc/divdi3.c: New file.
2644         * sysdeps/powerpc/libgcc-compat.S: New file, replacement for ...
2645         * sysdeps/powerpc/libgcc-compat.c: ... this, file removed.
2646
2647 2002-08-20  Jakub Jelinek  <jakub@redhat.com>
2648
2649         * locale/loadarchive.c (_nl_load_locale_from_archive): Handle
2650         partially overlapping mappings.  Remove unneeded (char *) casts.
2651         Never allow duplication of ranges in mapped areas.
2652
2653 2002-08-20  Roland McGrath  <roland@redhat.com>
2654
2655         * elf/Makefile ($(objpfx)ld.so): Separate commands in rule so errors
2656         can be detected by make.  Reported by H.J. Lu <hjl@gnu.org>.
2657
2658 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
2659
2660         * include/unistd.h: Don't hide _exit.
2661
2662         * elf/rtld.c (_dl_start): Pass extra argument 1 to TLS_INIT_TP.
2663         (dl_main): Pass extra argument 0 to TLS_INIT_TP.
2664         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass extra
2665         argument 1 to TLS_INIT_TP.
2666         * sysdeps/generic/tls.h (TLS_INIT_TP): Describe new parameter.
2667
2668         * sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit.
2669
2670         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_tls_static_info.
2671         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Move dtv
2672         memory allocation to...
2673         (allocate_dtv): ...here.  New function.
2674         (_dl_allocate_tls): Change to take parameter.  If parameter is non-NULL
2675         call allocate_dtv instead of _dl_allocate_tls_storage.
2676         (_dl_deallocate_tls): New parameter.  Deallocate TCB only if true.
2677         (_dl_get_tls_static_info): New function.
2678         * sysdeps/generic/ldsodefs.h: Adjust prototypes of _dl_allocate_tls
2679         and _dl_deallocate_tls.  Add prototype for _dl_get_tls_static_info.
2680
2681 2002-08-19  Ulrich Drepper  <drepper@redhat.com>
2682
2683         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return
2684         immediately if result == NULL.
2685
2686 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
2687
2688         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
2689
2690 2002-08-18  Roland McGrath  <roland@frob.com>
2691
2692         * sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split
2693         instead of __file_name_split.
2694         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
2695
2696         * sysdeps/mach/hurd/dl-sysdep.c
2697         [HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
2698         [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
2699
2700 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
2701
2702         * locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
2703         in change before last: MAX -> MIN.
2704
2705 2002-08-15  Roland McGrath  <roland@redhat.com>
2706
2707         * libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF
2708         if seek would go past it.
2709         (mmap_remap_check): If file position is at or past EOF after check,
2710         leave read pointers at EOF and don't seek.
2711
2712         * libio/tst-mmap-offend.c: New file.
2713         * libio/Makefile (tests): Add it.
2714
2715         * locale/loadarchive.c (_nl_load_locale_from_archive): Store strdup of
2716         the name as passed, rather than the name in the archive dictionary.
2717
2718 2002-08-15  Ulrich Drepper  <drepper@redhat.com>
2719
2720         * csu/Makefile: Define elide-routines.os not static-only-routines.
2721
2722         * include/sched.h (__clone): Add varargs at the end.
2723
2724         * elf/rtld.c (_dl_start): Allow TLS_INIT_TP to fail, and stop in that
2725         case.
2726         (TLS_INIT_HELPER): If defined, use it.
2727         * sysdeps/generic/libc-tls.c (TLS_INIT_HELPER): Likewise.
2728
2729 2002-08-15  Roland McGrath  <roland@redhat.com>
2730
2731         * elf/dl-load.c (lose): Remove [!SHARED] conditional from null check
2732         on L->l_prev; it can happen under rtld --verify too.
2733
2734         * locale/loadarchive.c (_nl_load_locale_from_archive): Don't read the
2735         header separately, just map an initial window of 2MB from the file
2736         and remap if that is not large enough to cover the whole header.
2737
2738 2002-08-15  Andreas Jaeger  <aj@suse.de>
2739
2740         * sysdeps/unix/sysv/linux/m68k/Versions: Add *xattr syscalls with
2741         version 2.3.
2742         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2743         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2744         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2745         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2746         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2747         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2748         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2749         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
2750         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
2751         Patch by Andreas Gruenbacher <agruen@suse.de>.
2752
2753         * sysdeps/unix/sysv/linux/syscalls.list: Add *xattr syscalls.
2754
2755 2002-08-14  Roland McGrath  <roland@redhat.com>
2756
2757         * locale/locarchive.h (struct locale_category_data): Give this name to
2758         the type of locale_data_t's elements.
2759         * locale/programs/locarchive.c (cmpcategorysize): New static function.
2760         (add_locale): Use that to sort the categories by size and put all
2761         those that fit into two pages into the LC_ALL block, instead of
2762         hard-coding it to do everything but LC_CTYPE and LC_COLLATE.
2763         (show_archive_content): Detect categories inside LC_ALL block
2764         directly, instead of hard-coding.
2765         (oldlocrecentcmp): Compare just on file locations used.
2766
2767 2002-08-14  Jakub Jelinek  <jakub@redhat.com>
2768
2769         * locale/programs/locarchive.c (struct oldlocrecent): New type.
2770         (oldlocrecentcmp): New function.
2771         (enlarge_archive): Re-add locales in the order they were added
2772         to the archive.
2773         (add_locale): Put all the small locale files together, if the small
2774         locale file block would occupy less pages if page size aligned, align
2775         it.
2776         (show_archive_content): Adjust for locale archives optimized for speed.
2777
2778 2002-08-14  Roland McGrath  <roland@frob.com>
2779
2780         * configure.in: Use "MISSING" as not-found value for MIG.
2781         * sysdeps/mach/configure.in: Fatal if mig not found.
2782         * configure, sysdeps/mach/configure: Regenerated.
2783
2784 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
2785
2786         * locale/loadarchive.c (archfname): Add missing slash.
2787
2788         * sysdeps/generic/strtold.c (__strtold_internal): Add libc_hidden_def.
2789         * wcsmbs/wcstold.c (__wcstold_internal): Add libc_hidden_def.
2790
2791 2002-08-12  Roland McGrath  <roland@redhat.com>
2792
2793         * include/sys/wait.h (__waitpid): Add libc_hidden_proto.
2794         * sysdeps/unix/sysv/sco3.2.4/waitpid.S: Add libc_hidden_def.
2795         * sysdeps/unix/sysv/sysv4/waitpid.c: Add libc_hidden_weak.
2796         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
2797         * sysdeps/unix/sysv/aix/waitpid.c: Likewise.
2798         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
2799         * sysdeps/generic/waitpid.c: Likewise.
2800
2801         * include/net/if.h: New file.  Use libc_hidden_proto
2802         for if_nametoindex and if_indextoname.
2803         * sysdeps/generic/if_index.c: Add libc_hidden_def.
2804         * sysdeps/mach/hurd/if_index.c: Likewise.
2805         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
2806
2807         * include/grp.h (setgroups): Add libc_hidden_proto.
2808         * sysdeps/generic/setgroups.c: Add libc_hidden_def.
2809         * sysdeps/mach/hurd/setgroups.c: Likewise.
2810         * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
2811         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
2812
2813 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
2814
2815         * include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
2816         * sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
2817         * sysdeps/generic/setegid.c (setegid): Likewise.
2818         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
2819         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
2820         * sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
2821         * sysdeps/unix/bsd/setegid.c (setegid): Likewise.
2822         * sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
2823         * sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
2824         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
2825         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
2826         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
2827         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
2828         * sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
2829         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
2830         Remove fallback if __ASSUME_SETRESUID_SYSCALL.
2831
2832         * include/sys/stat.h (__fxstat_internal, __fxstat64_internal,
2833         __lxstat_internal, __lxstat64_internal): Remove.
2834         (__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64):
2835         Add hidden_proto.
2836         * sysdeps/generic/fxstat.c (__fxstat): Add hidden_def.
2837         Remove INTDEF where present, remove #undef at the beginning.
2838         * sysdeps/generic/fxstat64.c (__fxstat64): Likewise.
2839         * sysdeps/generic/lxstat.c (__lxstat): Likewise.
2840         * sysdeps/generic/lxstat64.c (__lxstat64): Likewise.
2841         * sysdeps/generic/xstat.c (__xstat): Likewise.
2842         * sysdeps/generic/xstat64.c (__xstat64): Likewise.
2843         * sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise.
2844         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
2845         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
2846         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
2847         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
2848         * sysdeps/mach/hurd/xstat.c (__xstat): Likewise.
2849         * sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise.
2850         * sysdeps/unix/fxstat.c (__fxstat): Likewise.
2851         * sysdeps/unix/common/lxstat.c (__lxstat): Likewise.
2852         * sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise.
2853         * sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise.
2854         * sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise.
2855         * sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise.
2856         * sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise.
2857         * sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise.
2858         * sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise.
2859         * sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise.
2860         * sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise.
2861         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise.
2862         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise.
2863         * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise.
2864         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
2865         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
2866         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
2867         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
2868         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
2869         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
2870         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise.
2871         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
2872         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
2873         * sysdeps/unix/xstat.c (__xstat): Likewise.
2874
2875         * include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto.
2876         * sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def.
2877         * sysdeps/generic/fstatvfs.c (fstatvfs): Likewise.
2878         * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
2879         * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise.
2880         * sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise.
2881         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise.
2882
2883         * include/unistd.h (tcgetpgrp): Add libc_hidden_proto.
2884         * include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise.
2885         * sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def.
2886         * sysdeps/generic/tcsetattr.c (tcsetattr): Likewise.
2887         * sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise.
2888         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise.
2889         * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise.
2890         * sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed):
2891         Likewise.
2892         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
2893         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
2894         * sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise.
2895         * sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise.
2896         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
2897         * sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise.
2898         * sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise.
2899         * sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise.
2900
2901         * include/string.h (strcoll): Add libc_hidden_proto.
2902         * string/strcoll.c (strcoll): Add libc_hidden_def.
2903
2904         * misc/err.c (vwarn): Fix pasto in libc_hidden_def.
2905
2906 2002-08-11  Philip Blundell  <philb@gnu.org>
2907
2908         * sysdeps/arm/Makefile: New file.
2909
2910 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
2911
2912         * posix/regcomp.c (parse_reg_exp): If '|' is immediately followed
2913         by another '|', end of regex or enclosing ')', clear branch.
2914         * posix/bug-regex9.c: New test.
2915         * posix/Makefile (tests): Add bug-regex9.
2916
2917 2002-08-12  Roland McGrath  <roland@redhat.com>
2918
2919         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop
2920         start count condition, use TOTAL instead of variable that was never
2921         set.  Fix outer loop termination condition to TOTAL >= after update.
2922
2923         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize
2924         dl_tls_static_align and dl_tls_static_nelem.
2925
2926 2002-08-11  Roland McGrath  <roland@redhat.com>
2927
2928         * elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
2929         of the TLS macros, otherwise the compiler might not have initialized
2930         the PIC register yet when we use the PLT via asm.
2931         * elf/tst-tlsmod3.c (in_dso2): Likewise.
2932         * elf/tst-tlsmod2.c (in_dso): Likewise.
2933
2934         * sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!).
2935
2936         * sysdeps/i386/bits/byteswap.h (__bswap_16, __bswap_32, __bswap_64):
2937         Evaluate argument exactly once.  Remove __volatile__ from asm's.
2938
2939         * include/unistd.h: Use libc_hidden_proto for getdomainname
2940         and getlogin_r.
2941         * sysdeps/generic/getdomain.c: Add libc_hidden_def.
2942         * sysdeps/mach/hurd/getdomain.c: Likewise.
2943         * sysdeps/unix/getlogin_r.c: Likewise.
2944         * sysdeps/mach/hurd/getlogin_r.c: Likewise.
2945         * sysdeps/generic/getlogin_r.c: Likewise.
2946
2947         * include/rpc/auth_des.h: Use libc_hidden_proto for rtime.
2948         * sunrpc/rtime.c: Add libc_hidden_def.
2949
2950         * include/string.h: Use libc_hidden_proto for basename.
2951         * string/basename.c [_LIBC]: Add libc_hidden_def.
2952
2953         * sysdeps/unix/sysv/linux/opensock.c (__opensock): socket -> __socket.
2954
2955         * locale/loadarchive.c: munmap -> __munmap throughout.
2956
2957         * include/netdb.h: Use libc_hidden_proto for gai_strerror.
2958         * sysdeps/posix/gai_strerror.c: Add libc_hidden_def.
2959         * sysdeps/generic/gai_strerror.c: Likewise.
2960
2961         * include/sys/errno.h: New file.
2962
2963         * include/signal.h: No libc_hidden_proto for raise,
2964         __libc_current_sigrtmin, __libc_current_sigrtmax.
2965         These need to be overridden by linuxthreads.
2966         * sysdeps/posix/raise.c: Reverted.
2967         * sysdeps/generic/raise.c: Reverted.
2968         * signal/allocrtsig.c: Reverted.
2969
2970         * locale/loadarchive.c (LOCALEDIR): Remove debugging defn.  Oops.
2971
2972 2002-08-10  Roland McGrath  <roland@redhat.com>
2973
2974         * locale/loadarchive.c (_nl_archive_subfreeres): New function.
2975         * locale/localeinfo.h: Declare it.
2976         * locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the
2977         current locale if it's not in the file list.
2978         Call _nl_archive_subfreeres.
2979
2980 2002-08-10  Andreas Jaeger  <aj@suse.de>
2981
2982         * sysdeps/i386/strchr.S: Add comment.
2983
2984 2002-08-10  Roland McGrath  <roland@redhat.com>
2985
2986         * include/wchar.h (putwc): Use libc_hidden_proto.
2987         * include/stdio.h (dprintf, fprintf, vfprintf, sprintf,
2988         sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise.
2989         * stdio-common/dprintf.c: Add libc_hidden_def.
2990         * stdio-common/fprintf.c: Likewise.
2991         * stdio-common/sprintf.c: Likewise.
2992         * stdio-common/sscanf.c: Likewise.
2993         * libio/iofwrite.c: Likewise.
2994         * libio/memstream.c: Likewise.
2995         * libio/putwc.c: Likewise.
2996         * stdio-common/perror.c: Likewise.
2997         * sysdeps/posix/remove.c: Likewise.
2998         * sysdeps/generic/remove.c: Likewise.
2999         * libio/rewind.c: Likewise.  Use <stdio.h> instead of "stdio.h".
3000         * stdio-common/vfprintf.c: Add libc_hidden_def.  Include <stdio.h>.
3001
3002 2002-08-09  Jakub Jelinek  <jakub@redhat.com>
3003
3004         * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
3005         towlower, towupper): Add prototypes here too.  Add libc_hidden_proto.
3006         * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
3007         towlower, towupper): Add libc_hidden_weak.
3008
3009         * include/bits/dlfcn.h: New file.
3010         * elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def.
3011
3012         * include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
3013         * include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
3014         * include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
3015         * include/pwd.h (_nss_files_parse_pwent): Likewise.
3016         * include/shadow.h (_nss_files_parse_spent): Likewise.
3017         * include/netdb.h (_nss_files_parse_protoent,
3018         _nss_files_parse_servent, _nss_files_parse_netent): Likewise.
3019         * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
3020         (LINE_PARSER): Use it.
3021         * nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
3022         * nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.
3023
3024         * libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT
3025         #endif.
3026
3027         * manual/debug.texi (%MENU%): Remove trailing dot.
3028         Reported by <hayastan132@hotmail.com>.
3029
3030         * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek
3031         aliases.
3032         (lseek): Dummy.
3033         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek):
3034         Likewise.
3035
3036 2002-08-09  Roland McGrath  <roland@redhat.com>
3037
3038         * locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale
3039         name to find codeset name (if any) and normalize it.  If the
3040         normalized name differs, look up only that in the archive.
3041         * locale/programs/locarchive.c (add_locale_to_archive): If the name
3042         contains a codeset, normalize the codeset store only the normalized
3043         name in the archive.  If not, add an alias containing the locale's
3044         normalized codeset name.  Apply codeset name normalization when
3045         matching entries in the alias file.
3046
3047         * locale/programs/locarchive.c (delete_locales_from_archive): Don't
3048         decrement HEAD->namehash_used here.
3049         (add_locale): Only need to insert name string when name_offset != 0.
3050
3051         * locale/programs/localedef.c (options): Add -A/--alias-file.
3052         (alias_file): New variable.
3053         (parse_opt): Grok -A, set that.
3054         * locale/programs/localedef.h: Declare it.
3055
3056         * locale/locarchive.h (struct locrecent): Add `refs' member.
3057         * locale/programs/locarchive.c (insert_name): New function, broken out
3058         of ...
3059         (add_locale_to_archive): ... here.  Call that.
3060         (add_alias): New function.
3061         (add_locale): New static function, add_locale_to_archive renamed.
3062         (add_locale_to_archive): Call that and use add_alias to add an alias
3063         for the name with codeset if the given name lacks it.
3064         (enlarge_archive): Call add_locale instead of add_locale_to_archive.
3065
3066         * locale/Makefile (routines): Add loadarchive.
3067         * locale/loadarchive.c: New file, started from code by Ulrich Drepper.
3068         (_nl_load_locale_from_archive): New function.
3069         * locale/localeinfo.h: Declare it.
3070         * locale/findlocale.c (_nl_find_locale): If using default locale path,
3071         try _nl_load_locale_from_archive first.
3072
3073         * locale/loadlocale.c (_nl_intern_locale_data): New function,
3074         broken out of _nl_load_locale.
3075         (_nl_load_locale): Call that.
3076         * locale/localeinfo.h: Declare it.
3077         (struct locale_data): Replace member `mmaped' with `alloc', an enum.
3078         (struct locale_data): Remove unused member `options'.
3079         * locale/findlocale.c (_nl_remove_locale): Update uses.
3080         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3081         * locale/C-collate.c: Update initializer.
3082         * locale/C-identification.c: Likewise.
3083         * locale/C-measurement.c: Likewise.
3084         * locale/C-telephone.c: Likewise.
3085         * locale/C-address.c: Likewise.
3086         * locale/C-name.c: Likewise.
3087         * locale/C-paper.c: Likewise.
3088         * locale/C-time.c: Likewise.
3089         * locale/C-numeric.c: Likewise.
3090         * locale/C-monetary.c: Likewise.
3091         * locale/C-messages.c : Likewise.
3092         * locale/C-ctype.c: Likewise.
3093
3094         * locale/hashval.h [! LONGBITS]: Include <limits.h> here and
3095         use CHAR_BIT instead of BITSPERBYTE.
3096
3097         * locale/localeinfo.h (_nl_find_locale, _nl_load_locale,
3098         _nl_unload_locale): Add `internal_function attribute_hidden' to decls.
3099         * locale/findlocale.c (_nl_find_locale): Add internal_function to defn.
3100         (_nl_remove_locale): Likewise.
3101         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3102
3103         * locale/findlocale.c (_nl_default_locale_path): New variable.
3104         (_nl_find_locale): If LOCALE_PATH is null, default to that.
3105         * locale/localeinfo.h: Declare it.
3106         * locale/setlocale.c (setlocale): Use _nl_default_locale_path
3107         in place of LOCALEDIR.  If no LOCPATH, pass null to _nl_find_locale.
3108         * locale/newlocale.c (__newlocale): Likewise.
3109
3110         * misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses.
3111         * inet/rexec.c (rexec_af): Add libc_hidden_def.
3112         * sysdeps/generic/morecore.c: Likewise.
3113         * signal/allocrtsig.c (__libc_current_sigrtmin): Likewise.
3114         (__libc_current_sigrtmax): Likewise.
3115
3116 2002-08-08  Roland McGrath  <roland@redhat.com>
3117
3118         * locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
3119         * catgets/open_catalog.c (__open_catalog): Likewise.
3120
3121         * locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed
3122         from typo INITIAL_NUM_NANES.
3123         (create_archive): Update use.
3124
3125 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
3126
3127         * sysdeps/unix/sysv/linux/sigwait.c: New file.
3128
3129 2002-08-08  Roland McGrath  <roland@frob.com>
3130
3131         * resolv/netdb.h: Don't declare h_errno as a plain global any more.
3132
3133 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
3134
3135         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
3136         else and undefine after including wcstol_l.c.
3137         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.
3138
3139 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
3140
3141         * gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available.
3142
3143 2002-08-08  Alexandre Oliva  <aoliva@redhat.com>
3144
3145         * configure.in: Make the test for broken_alias_attribute stricter.
3146
3147 2002-05-24  Robert Love  <rml@tech9.net>
3148
3149         * posix/Makefile (routines): Add sched_getaffinity and
3150         sched_setaffinity.
3151         * posix/sched.h: Add declarations for sched_getaffinity and
3152         sched_setaffinity.
3153         * sysdeps/generic/sched_getaffinity.c: New file.
3154         * sysdeps/generic/sched_setaffinity.c: New file.
3155         * sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and
3156         sched_setaffinity.
3157
3158 2002-08-06  Andreas Schwab  <schwab@suse.de>
3159
3160         * sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes.
3161
3162 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
3163
3164         * elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error
3165         message.
3166
3167         * stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special.
3168         It is known to be defined.
3169
3170         * include/string.h: Define index and rindex only if _ISOMAC is not
3171         defined.
3172
3173         * elf/rtld.c: Include <errno.h>.
3174         * sysdeps/generic/libc-tls.c: Likewise.
3175
3176 2002-08-07  Roland McGrath  <roland@redhat.com>
3177
3178         * resolv/res_debug.c (latlon2ul): Add const to argument type, and use
3179         it internally.
3180         (precsize_aton): Likewise.
3181
3182         * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
3183         the static symbols added in the last change (doofus is me).
3184
3185         * locale/newlocale.c (__newlocale): Use a bit mask instead of a second
3186         loop to notice missing categories in a composite name.
3187
3188         * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
3189         LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
3190         LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
3191         LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.
3192
3193 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
3194
3195         * malloc/tst-calloc.c: Add tests for one or both parameters being zero.
3196
3197 2002-08-07  Roland McGrath  <roland@redhat.com>
3198
3199         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
3200         unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
3201         Reported by Jakub Jelinek  <jakub@redhat.com>.
3202
3203 2002-08-07  Jakub Jelinek  <jakub@redhat.com>
3204
3205         * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
3206         division.
3207
3208 2002-08-06  Roland McGrath  <roland@redhat.com>
3209
3210         * include/getopt.h: Put private decls inside [_GETOPT_H].
3211         Use libc_hidden_proto for getopt_long, getopt_long_only.
3212         * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
3213         Add libc_hidden_def.
3214
3215         * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
3216         Define as a macro for __dl_iterate_phdr.
3217
3218         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
3219         made static.  Add __ name as a strong alias.
3220         (internal_endnetgrent): Likewise.
3221         (internal_getnetgrent_r): Likewise.
3222
3223         * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
3224         with no __ prefix.
3225         * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
3226         * ctype/ctype.h [__USE_GNU]: Add declarations and macros for
3227         all *_l functions with no __ prefix.
3228         * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
3229         * ctype/ctype_l.c: Likewise.
3230         * locale/nl_langinfo.c: Likewise.
3231         * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
3232         * stdlib/stdlib.h [__USE_GNU]: Likewise.
3233         * wcsmbs/wchar.h [__USE_GNU]: Likewise.
3234         * wctype/wctype.h [__USE_GNU]: Likewise.
3235         * string/strcoll_l.c (strcoll_l): Define as weak alias.
3236         * string/strxfrm_l.c (strxfrm_l): Define as weak alias.
3237         * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
3238         * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
3239         * stdlib/strtod_l.c (strtod_l): Define as weak alias.
3240         * stdlib/strtof_l.c (strtof_l): Define as weak alias.
3241         * stdlib/strtold_l.c (strtold_l): Define as weak alias.
3242         * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
3243         (__wcscasecmp_l): Add libc_hidden_def.
3244         * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
3245         (__wcsncasecmp_l): Add libc_hidden_def.
3246         * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
3247         * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
3248         * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
3249         * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
3250         * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
3251         * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
3252         * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
3253         * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
3254         * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
3255         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
3256         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
3257         * wctype/wctrans_l.c (wctrans_l) Define as weak alias.
3258         * wctype/towctrans_l.c (towctrans_l) Define as weak alias.
3259         * wctype/wctype_l.c (wctype_l) Define as weak alias.
3260
3261 2002-08-05  Roland McGrath  <roland@redhat.com>
3262
3263         * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
3264         netname2user, host2netname, user2netname, key_gendes.
3265         * sunrpc/netname.c: Add libc_hidden_def.
3266         * sunrpc/key_call.c: Likewise.
3267
3268         * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
3269         freeaddrinfo.
3270         * inet/getnameinfo.c: Add libc_hidden_def.
3271         * sysdeps/generic/getaddrinfo.c: Likewise.
3272         * sysdeps/posix/getaddrinfo.c: Likewise.
3273
3274         * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
3275         * wcsmbs/wmemchr.c: Add libc_hidden_def.
3276         * wcsmbs/wmemset.c: Add libc_hidden_def.
3277
3278         * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
3279         (index, rindex): Define as macros for strchr, strrchr.
3280
3281         * string/envz.c (envz_strip): index -> strchr
3282
3283         * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
3284         * sunrpc/rpc_prot.c: Add libc_hidden_def.
3285
3286         * include/wchar.h: Use libc_hidden_proto for mbrtowc.
3287         * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
3288
3289         * include/stdlib.h: Use libc_hidden_proto for wctomb.
3290         * stdlib/wctomb.c: Add libc_hidden_def.
3291
3292         * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
3293         rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
3294         * resolv/herror.c: Likewise.
3295         * inet/rcmd.c: Add libc_hidden_def.
3296         * inet/ruserpass.c: Likewise.
3297         * inet/getnetgrent_r.c: Likewise.
3298
3299         * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
3300         svc_unregister, remove *_internal decls.  Use libc_hidden_proto
3301         for svcerr_auth, svcerr_noprog, svcerr_progvers.
3302         * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
3303         libc_hidden_def.
3304         (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
3305         * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.
3306
3307         * sysdeps/posix/system.c (do_system): New function, guts broken out of
3308         __libc_system.
3309         (__libc_system): Call it, putting just the line == NULL test here.
3310
3311         * include/libc-symbols.h (__hidden_proto): Add extern keywords so
3312         variables work right.
3313
3314         * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
3315         * elf/dl-close.c (_dl_close): Likewise.
3316
3317         * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
3318         in6addr_any, in6addr_loopback.  Remove decls for
3319         bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
3320         * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
3321         * sunrpc/svc_tcp.c (svctcp_create): Likewise.
3322         * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
3323         * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
3324         * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
3325         * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
3326         in6addr_loopback.
3327         * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
3328
3329         * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
3330         ether_aton_r.
3331         * inet/ether_aton_r.c: Add libc_hidden_def.
3332         * inet/ether_ntoa_r.c: Likewise.
3333
3334         * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
3335         xprt_unregister.
3336         * sunrpc/svc.c: Add libc_hidden_def.
3337         * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
3338         pmap_set, pmap_unset.
3339         * sunrpc/pmap_clnt.c: Add libc_hidden_def.
3340         * sunrpc/pm_getport.c: Likewise.
3341         * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
3342         * sunrpc/publickey.c: Add libc_hidden_def.
3343
3344 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
3345
3346         * elf/rtld.c (_dl_start): Don't use memset.  Use same tricks as for
3347         the other memset call in this function.
3348
3349         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
3350         at correct index.  Clear BSS region now that memalign is used.
3351
3352 2002-08-05  Roland McGrath  <roland@redhat.com>
3353
3354         * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
3355         * sysdeps/generic/uname.c: Add libc_hidden_def.
3356         * sysdeps/mach/hurd/uname.c: Likewise.
3357
3358 2002-08-05  Jakub Jelinek  <jakub@redhat.com>
3359
3360         * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
3361         wcspbrk): Add libc_hidden_proto.
3362         * time/strftime.c (my_strftime): Add libc_hidden_def.
3363         (strftime): Remove libc_hidden_def.
3364         * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
3365         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
3366         * wcsmbs/wcsspn.c (wcsspn): Likewise.
3367         * wcsmbs/wcscmp.c (wcscmp): Likewise.
3368         * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
3369         * wcsmbs/wcscoll.c (wcscoll): Likewise.
3370
3371         * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
3372         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3373         __rpc_thread_createerr): Add libc_hidden_proto.
3374         * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
3375         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3376         __rpc_thread_createerr): Add libc_hidden_def.
3377
3378         * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
3379         clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
3380         * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
3381         clnt_perror, clnt_sperror): Add libc_hidden_def.
3382         * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
3383
3384         * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
3385         libc_hidden_proto.
3386         * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
3387         * sunrpc/des_soft.c (des_setparity): Likewise.
3388
3389         * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
3390         Add libc_hidden_proto.
3391         * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
3392         Add libc_hidden_def.
3393
3394 2002-08-05  Roland McGrath  <roland@redhat.com>
3395
3396         * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
3397         `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
3398         * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
3399         * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
3400         dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
3401         old data, abandoning the original memory allocated by rtld at startup,
3402         instead of calling realloc normally.
3403
3404 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
3405
3406         * po/fr.po: Update from translation team.
3407
3408 2002-08-04  Roland McGrath  <roland@redhat.com>
3409
3410         * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
3411         then generate a dummy module under the given name, obeying the
3412         normal rules for the "caller" field.
3413
3414         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
3415         actually iterate over the elements.  Fix typo p_type -> p_vaddr.
3416
3417         * include/pthread.h: Don't declare __pthread_initialize_minimal as
3418         weak here; we declare it weak or strong in the one place we use it.
3419         * sysdeps/generic/libc-start.c: ... which is here.
3420         Don't make the decl weak if [USE_TLS], since static programs need TLS
3421         setup even when single-threaded.
3422
3423         * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
3424
3425         * elf/Makefile (test-srcs): Add $(modules-names) to it.
3426         (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
3427         CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
3428         all these variables.
3429
3430 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3431
3432         * include/stdio.h: Don't define macro magic to redirect function
3433         calls if _ISOMAC is defined.
3434
3435         * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
3436         ldouble asin tests.
3437
3438 2002-08-04  Roland McGrath  <roland@redhat.com>
3439
3440         * stdlib/lrand48_r.c: Add libc_hidden_def.
3441
3442         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
3443         TCB with __libc_memalign instead of mmap.
3444         (_dl_deallocate_tls): Free it with free instead of munmap.
3445
3446         * Makerules (cpp-srcs-left): When setting this to run
3447         cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
3448         words.  Combine the two loops into one on the concatenated list,
3449         including those as well as $(test-srcs).
3450
3451         * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
3452         since we align here with optimally minimal waste anyway.
3453         (malloc): Just call that.
3454
3455         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
3456         the right variable.
3457
3458         * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
3459         to compute memory location for l_tls_initimage.
3460         * elf/rtld.c (_dl_start): Likewise.
3461         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
3462
3463         * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
3464         because the .d file is generated in the non-shared case and
3465         so fails to catch them otherwise.
3466
3467         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
3468         split out of _dl_allocate_tls.
3469         (_dl_allocate_tls_init): Likewise.
3470         (_dl_allocate_tls): Call those.
3471         * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
3472         * elf/rtld.c (dl_main): Call them separately instead of calling
3473         _dl_allocate_tls.  Delay _dl_allocate_tls_init until after relocation
3474         is finished, so that the initializer data has been relocated before we
3475         copy it into the main thread's TLS block.
3476
3477         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
3478         loop conditions, prevented the last used module from being initialized.
3479
3480 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
3481
3482         * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
3483         if glob resp. globfree are not macros.
3484         * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
3485         * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
3486         Add libc_hidden_ver.
3487         * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
3488         libc_hidden_def.
3489         * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
3490         instead of libc_hidden_weak.
3491         * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
3492         libc_hidden_ver instead of libc_hidden_def.
3493         * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
3494         libc_hidden_ver instead of libc_hidden_def.
3495         (wcstoll, wcstoq): Remove libc_hidden_weak.
3496         * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
3497         libc_hidden_ver.
3498         * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
3499         libc_hidden_ver.
3500         * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
3501         libc_hidden_ver.
3502         * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
3503         libc_hidden_ver.
3504
3505 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3506
3507         * stdio-common/psignal.c: Declare _sys_siglist_internal.  Use USEINT
3508         to access _sys_siglist.
3509         * string/strsignal.c: Likewise.
3510         * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
3511         * sysdeps/gnu/siglist.c: Likewise.
3512         * sysdeps/unix/siglist.c: Likewise.
3513         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
3514
3515         * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
3516
3517         * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
3518
3519         * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
3520         alias and use it.
3521         * intl/bindtextdom.c: Use _nl_default_dirname_internal.
3522
3523         * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
3524         * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
3525         * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
3526
3527         * include/time.h: Add libc_hidden_proto for __gmtime_r.
3528         * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
3529
3530         * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
3531         and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
3532         and __gconv_get_cache respectively.
3533         * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
3534         defined static.  Change all users.
3535         (__gconv_get_cache): New function.
3536         * iconv/gconv_db.c (__gconv_get_modules_db): New function.
3537         (__gconv_get_alias_db): New function.
3538         * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
3539         (__conv_modules_db): Likewise.
3540         Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
3541         and __gconv_get_alias_db.
3542         * iconv/iconv_prog.c: Use the new functions instead of accessing the
3543         variables.
3544
3545         * include/stdlib.h: Add prototype and libc_hidden_proto for
3546         __default_morecore.
3547         * sysdeps/generic/morecore.c: Include <stdlib.h>.
3548
3549         * malloc/obstack.c: Remove fputs macro.
3550
3551         * malloc/mtrace.c: Remove fopen macro.
3552
3553 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
3554
3555         * manual/debug.texi: Fix spelling to programmatically.
3556         Reported by <hayastan132@hotmail.com>.
3557
3558 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3559
3560         * include/libio.h: Add libc_hidden_proto for __uflow.
3561         * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
3562         fgetpos to _IO_* names.
3563         Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
3564         fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
3565         * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
3566         putwc_unlocked, vswscanf.
3567         * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
3568         * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
3569         * libio/fseek.c: Likewise.
3570         * libio/fmemopen.c: Include "libioP.h".  Call _IO_fopencookie and
3571         not fopencookie.
3572         * libio/genops.c (__uflow): Add libc_hidden_def.
3573         * libio/iofflush_u.c (fflush_unlocked): Likewise.
3574         * libio/iofgets_u.c (fgets_unlocked): Likewise.
3575         * libio/iofputs_u.c (fputs_unlocked): Likewise.
3576         * libio/iofputws_u.c (fputws_unlocked): Likewise.
3577         * libio/iofread_u.c (fread_unlocked): Likewise.
3578         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
3579         * libio/iovswscanf.c (vswscanf): Likewise.
3580         * libio/putwc_u.c (putwc_unlocked): Likewise.
3581         * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
3582         * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
3583         * malloc/mtrace.c: Likewise.
3584
3585         * sunrpc/clnt_perr.c: Remove fputs macro.
3586         * sunrpc/svc_simple.c: Likewise.
3587         * sunrpc/svc_tcp.c: Likewise.
3588         * sunrpc/svc_udp.c: Likewise.
3589         * sunrpc/xdr_rec.c: Likewise.
3590         * sunrpc/xdr_ref.c: Likewise.
3591
3592         * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
3593         iconv_prog, linereader, and charmap-dir.
3594         * locale/Makefile: Likewise for locale and charmap-dir.
3595         * malloc/Makefile: Likewise for memusagestat.
3596         * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
3597         * sunrpc/Makefile: Likewise for rpc_main.
3598         * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
3599         * timezone/Makefile: Likewise for zic.
3600
3601         * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
3602
3603         * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
3604         * elf/dl-close.c (_dl_close): Add libc_hidden_def.
3605         * elf/dl-open.c (_dl_open): Add libc_hidden_def.
3606         * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
3607         _dl_close.
3608
3609         * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
3610         __wunderflow.
3611         * libio/genops.c (__underflow): Add libc_hidden_def.
3612         * libio/wgenops.c (__wuflow): Likewise.
3613         (__wunderflow): Likewise.
3614
3615         * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
3616         * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
3617
3618         * include/stdio.h: Add libc_hidden_proto for __vfscanf.
3619         * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
3620
3621         * include/string.h: Add libc_hidden_proto for __strverscmp.
3622         * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
3623
3624         * include/unistd.h: Add libc_hidden_proto for __sysconf.
3625         * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
3626         * sysdeps/posix/sysconf.c: Likewise.
3627         * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
3628         * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
3629
3630         * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
3631         __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
3632         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
3633         __iswxdigit_l, __towlower_l, __towupper_l.
3634         * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
3635         * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
3636
3637         * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
3638         * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
3639         * sysdeps/mach/hurd/xmknod.c: Likewise.
3640         * sysdeps/unix/xmknod.c: Likewise.
3641         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
3642         * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
3643         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
3644
3645         * sunrpc/svc.c: Add missing INTUSE for _authenticate.
3646
3647 2002-08-03  Roland McGrath  <roland@redhat.com>
3648
3649         * include/sys/resource.h: Use libc_hidden_proto for getpriority,
3650         setpriority.
3651         * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
3652         * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
3653         * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
3654         * sysdeps/mach/hurd/setpriority.c: Likewise.
3655         * sysdeps/mach/hurd/getpriority.c: Likewise.
3656         * sysdeps/generic/setpriority.c: Likewise.
3657         * sysdeps/generic/getpriority.c: Likewise.
3658
3659         * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
3660         * malloc/mcheck.c: Add libc_hidden_def.
3661
3662         * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
3663         * misc/hsearch_r.c: Add libc_hidden_def.
3664
3665         * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
3666         * posix/fnmatch.c: Add libc_hidden_weak.
3667
3668         * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
3669         execl, execle, execlp, execvp, getpid, getsid.
3670         * sysdeps/generic/alarm.c: Add libc_hidden_def.
3671         * sysdeps/unix/alarm.c: Likewise.
3672         * posix/confstr.c: Likewise.
3673         * posix/execvp.c: Likewise.
3674         * posix/execlp.c: Likewise.
3675         * posix/execle.c: Likewise.
3676         * posix/execl.c: Likewise.
3677         * sysdeps/generic/getsid.c: Likewise.
3678         * sysdeps/mach/hurd/getsid.c: Likewise.
3679         * sysdeps/generic/getpid.c: Add libc_hidden_weak.
3680         * sysdeps/mach/hurd/getpid.c: Likewise.
3681
3682         * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
3683         qecvt_r, qfcvt_r, lrand48_r.
3684         * misc/efgcvt_r.c: Add libc_hidden_def.
3685
3686         * include/wordexp.h: Use libc_hidden_proto for wordfree.
3687         * sysdeps/generic/wordexp.c: Add libc_hidden_def.
3688
3689         * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
3690         * locale/nl_langinfo.c: Add libc_hidden_def.
3691
3692         * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
3693         * sysdeps/generic/glob.c: Add libc_hidden_def.
3694         * sysdeps/generic/glob64.c: Likewise.
3695         * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
3696
3697         * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
3698
3699         * elf/Makefile (CFLAGS-vismod2.c): New variable.
3700
3701         * locale/setlocale.c (_nl_current_names): Variable moved ...
3702         * locale/localename.c (_nl_current_names): ... here, new file.
3703         Make it global, with attribute_hidden.
3704         * locale/localeinfo.h: Declare it.
3705         * locale/Makefile (aux): Add localename.
3706         * locale/localename.c (__current_locale_name): New function.
3707         * include/locale.h (__current_locale_name): Declare it.
3708         * intl/dcigettext.c (guess_category_value): Use that instead of
3709         calling setlocale.
3710
3711         * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
3712         [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
3713         [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
3714         * locale/newlocale.c: Add alias to __ name.
3715         * locale/duplocale.c: Likewise.
3716         * locale/freelocale.c: Likewise.
3717         * locale/uselocale.c: New file.
3718         * locale/Makefile (routines): Add it.
3719         * locale/Versions (libc: GLIBC_2.3): New set.
3720         Add newlocale, duplocale, freelocale, uselocale.
3721         (libc: GLIBC_PRIVATE): Add __uselocale.
3722
3723         * locale/localeinfo.h [SHARED]
3724         (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
3725         (_NL_CURRENT_DATA): Define using that.
3726         (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
3727         (_NL_CURRENT_DEFINE): Define to empty.
3728         [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
3729         conditionalized on this.
3730         * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
3731         taking initializer of _nl_C_locobj.
3732         [SHARED] (_nl_global_locale): New variable, using that initializer.
3733         (_nl_C_locobj): Use new macro for initialzier.
3734         * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
3735         [! SHARED] (CATEGORY_USED): New macro.
3736         [SHARED] (CATEGORY_USED, _nl_C): New macros.
3737         (setdata, setlocale): Use that macro instead of examining _nl_current.
3738         (setdata): Set the slot in _nl_global_locale.
3739         Conditionalize setting of _nl_current on [! SHARED].
3740         * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
3741         declaration as an extern.
3742         * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
3743
3744         * include/locale.h: Use libc_hidden_proto for setlocale.
3745         * locale/setlocale.c: Add libc_hidden_def.
3746
3747         * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
3748
3749         * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
3750         * misc/hsearch_r.c: Add libc_hidden_def.
3751         * misc/lsearch.c: Likewise.
3752
3753         * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
3754         endttyent.
3755         * misc/getttyent.c: Add libc_hidden_def.
3756
3757         * include/mcheck.h: Use libc_hidden_proto for mcheck.
3758         * malloc/mcheck.c: Add libc_hidden_def.
3759
3760         * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
3761         * include/argz.h: Use libc_hidden_proto for argz_delete.
3762         * string/argz-delete.c: Add libc_hidden_def.
3763         * string/envz.c: Likewise.  Use <envz.h>, not "envz.h".
3764
3765         * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
3766         HIDDEN_JUMPTARGET for _exit.
3767         * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
3768         * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
3769         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
3770         * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
3771
3772         * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
3773         [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
3774         [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
3775         * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
3776
3777         * include/stdlib.h: Use libc_hidden_proto for abort,
3778         __strtof_internal, __strtod_internal, __strtold_internal,
3779         __strtol_internal, __strtoll_internal, __strtoul_internal,
3780         __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
3781         __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
3782         __strtoul_l_internal, __strtoull_l_internal.
3783         * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
3784         __wcstod_internal, __wcstold_internal, __wcstol_internal,
3785         __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
3786         ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
3787         ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
3788         __wcsncasecmp_l.
3789         * sysdeps/generic/abort.c: Add libc_hidden_def.
3790         * stdlib/strtod.c: Likewise.
3791         * sysdeps/generic/strtol.c: Likewise.
3792         * sysdeps/wordsize-64/strtol.c: Likewise.
3793         * sysdeps/wordsize-64/wcstol.c: Likewise.
3794         * sysdeps/wordsize-64/wcstol_l.c: Likewise.
3795
3796         * include/stdlib.h: Use libc_hidden_proto for qsort.
3797         * stdlib/msort.c: Add libc_hidden_def.
3798
3799         * include/utime.h: Use libc_hidden_proto for utime.
3800         * sysdeps/generic/utime.c: Add libc_hidden_def.
3801         * sysdeps/unix/utime.c: Likewise.
3802
3803         * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
3804         * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
3805         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
3806         * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
3807         * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
3808
3809         * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
3810         sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
3811         and __libc_current_sigrtmax.
3812         * signal/sigismem.c: Add libc_hidden_def.
3813         * signal/sigfillset.c: Likewise.
3814         * signal/sigempty.c: Likewise.
3815         * sysdeps/generic/sigpause.c (__sigpause): Likewise.
3816         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
3817         * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
3818         * sysdeps/posix/raise.c: Likewise.
3819         * sysdeps/generic/raise.c: Likewise.
3820
3821 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
3822
3823         * include/string.h: Use libc_hidden_proto for __stpcpy.
3824         * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
3825         * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
3826         * sysdeps/generic/stpcpy.c: Likewise.
3827         * sysdeps/i386/stpcpy.S: Likewise.
3828         * sysdeps/i386/i586/stpcpy.S: Likewise.
3829         * sysdeps/powerpc/stpcpy.S: Likewise.
3830         * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
3831         * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
3832
3833         * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
3834         __strncasecmp_l, __strdup, __strndup, __strerror_r.
3835         * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
3836         libc_hidden_def.
3837         * string/strdup.c (__strdup): Likewise.
3838         * string/strndup.c (__strndup): Likewise.
3839         * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
3840         * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
3841
3842 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
3843
3844         * include/libio.h: New file.
3845         * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
3846         * libio/iolibio.h: #include <libio.h>, not "libio.h".
3847         * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
3848         * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
3849         * sysdeps/unix/common/syscalls.list: Likewise.
3850         * sysdeps/unix/inet/syscalls.list: Likewise.
3851         * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
3852         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
3853         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3854         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3855         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
3856         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
3857         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
3858         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3859         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3860         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
3861         * sysdeps/unix/syscalls.list: Likewise.
3862
3863 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
3864             Ulrich Drepper  <drepper@redhat.com>
3865
3866         * malloc/malloc.c (public_cALLOc): Only divide if at least one of
3867         the arguments is big enough to cause an overflow.
3868
3869 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
3870
3871         * assert/assert.c: Use hidden_def not INTDEF.
3872
3873 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
3874
3875         * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
3876         not defined.
3877
3878 2002-08-03  Roland McGrath  <roland@redhat.com>
3879
3880         * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
3881         * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
3882         verr, verrx.
3883         * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
3884         * misc/syslog.c: Add libc_hidden_def.
3885         * misc/err.c: Likewise.
3886         * stdlib/exit.c: Likewise.
3887         * stdlib/bsearch.c: Likewise.
3888         * sysdeps/generic/getenv.c: Likewise.
3889
3890         * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
3891
3892         * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
3893         libc_hidden_weak for every system call symbol defined.
3894
3895         * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
3896         timelocal, localtime, strftime.
3897         * time/asctime.c: Add libc_hidden_def.
3898         * time/mktime.c: Likewise.
3899         * time/localtime.c: Likewise.
3900         * time/strftime.c: Likewise.
3901         * time/strptime.c: Likewise.
3902         * sysdeps/generic/time.c: Likewise.
3903         * sysdeps/unix/time.c: Likewise.
3904         * sysdeps/unix/sysv/i386/time.S: Likewise.
3905         * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
3906
3907         * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
3908         inet_makeaddr, inet_netof, inet_addr, __inet_addr.
3909         * resolv/inet_ntop.c: Likewise.
3910         * resolv/inet_pton.c: Likewise.
3911         * inet/inet_mkadr.c: Add libc_hidden_def.
3912         * inet/inet_netof.c: Likewise.
3913         * resolv/inet_addr.c: Likewise.
3914
3915         * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
3916         clauses from conditionals for now.  Will have to be fixed later
3917         for older compilers.
3918
3919         * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
3920
3921 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
3922
3923         * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
3924         broken alias attribute handling.
3925         * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
3926
3927 2002-08-02  Roland McGrath  <roland@frob.com>
3928
3929         * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
3930         since it sets the variables we use in a -D switch.
3931
3932 2002-08-02  Roland McGrath  <roland@redhat.com>
3933
3934         * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
3935         On 32-bit platforms they are the same; on 64-bit platforms ssize_t
3936         matches long int, not int.
3937
3938         * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
3939         * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
3940         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
3941         * wctype/wctrans.c (wctrans): Likewise.
3942         * wctype/wctype.c (__wctype): Likewise.
3943         * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
3944
3945 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
3946
3947         * assert/assert.c (__assert_fail): Fix typo in comment.
3948
3949         * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
3950         * sunrpc/rpc_thread.c: Define it without static.
3951         * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
3952
3953 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
3954
3955         * assert/assert.c (__assert_fail): Remove undef.
3956         Replace INTDEF with libc_hidden_def.
3957         * assert/__assert.c (__assert): Remove INTUSE.
3958         * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
3959         libc_hidden_weak.
3960         * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
3961         hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
3962         libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
3963         rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
3964         libm_hiden_ver): Define.
3965         * include/assert.h (__assert_fail_internal): Remove.
3966         (__assert_fail): Add prototype.  Add hidden_proto.
3967         * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
3968         libc_hidden_proto.
3969         * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
3970         (__mbrtowc, __mbrlen): Use libc_hidden_proto.  Remove macros.
3971         * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
3972         Add libc_hidden_proto.
3973         * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
3974         __fcntl): Add libc_hidden_proto.  Remove macros.
3975         (__open_internal, __fcntl_internal): Remove.
3976         * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
3977         * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
3978         * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
3979         libc_hiden_proto.
3980         * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
3981         libc_hidden_def.
3982         * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
3983         Add libc_hidden_def.
3984         * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
3985         * sysdeps/generic/open.c (__open): Remove undef.
3986         Add libc_hidden_def.  Remove INTDEF.
3987         * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
3988         Add libc_hidden_def.
3989         * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
3990         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
3991         * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
3992         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
3993         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
3994         (__libc_fcntl): Add libc_hidden_def.
3995         * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
3996         (__open): Remove INTDEF2.  Add libc_hidden_weak.
3997         (__libc_open): Add libc_hidden_def.
3998         * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
3999         * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
4000         * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
4001         Add libc_hidden_def.
4002         * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
4003         Add libc_hidden_def.
4004         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
4005         undef.
4006         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
4007         (__libc_fcntl): Add libc_hidden_def.
4008         * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
4009         __getpgid_internal, __chown_internal): Remove.
4010         (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
4011         __GI___sched_setscheduler, __GI___select, __GI___setpgid,
4012         __GI___chown): Add.
4013         * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
4014         __getpid_internal, __open_internal, __write_internal): Remove.
4015         (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
4016         __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
4017         __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
4018         __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
4019         * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
4020         Replace INTDEF with libc_hidden_def.
4021         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
4022         * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
4023         * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
4024         * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
4025         * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
4026         Add libc_hidden_proto.
4027         * include/sys/poll.h (__poll): Add libc_hidden_proto.
4028         * include/sys/select.h (__select): Likewise.
4029         * include/sys/socket.h (__send): Likewise.
4030         * include/sys/statfs.h (__statfs): Likewise.
4031         * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
4032         __getpid, __getpgid, __setpgid, __close, __read, __write,
4033         __getpagesize, __sbrk): Likewise.
4034         (__chown_internal, __dup2_internal, __getpid_internal,
4035         __getpgid_internal, __close_internal, __write_internal,
4036         __getpagesize_internal): Remove.
4037         (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
4038         Remove macros.
4039         * include/printf.h (__printf_fp): Add libc_hidden_proto.
4040         * include/sched.h (__sched_setscheduler): Likewise.
4041         * include/resolv.h (__res_ninit, __res_randomid): Likewise.
4042         * include/stdlib.h (__secure_getenv): Likewise.
4043         * include/signal.h (__sigaction, __sigsuspend): Likewise.
4044         * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
4045         * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
4046         * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
4047         * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
4048         * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
4049         * inet/getproto_r.c (NSS_attribute_hidden): Remove.
4050         * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
4051         * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
4052         * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
4053         * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
4054         * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
4055         * inet/getservent_r.c (NSS_attribute_hidden): Remove.
4056         * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
4057         * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
4058         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
4059         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
4060         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
4061         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
4062         * libio/genops.c (__overflow): Add libc_hidden_def.
4063         * libio/iovdprintf.c: Remove libio.h include.
4064         * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
4065         libc_hidden_weak): Define to nothing if not defined.
4066         (__overflow, __woverflow): Add libc_hidden_proto.
4067         * libio/wgenops.c (__woverflow): Add libc_hidden_def.
4068         * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
4069         (DB_LOOKUP_FCT): Add libc_hidden_proto.
4070         * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
4071         (DB_LOOKUP_FCT): Add libc_hidden_proto.
4072         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
4073         and libc_hidden_def.
4074         * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
4075         * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
4076         (__getpgid): Add libc_hidden_proto.
4077         (__bsd_getpgrp): Remove INTUSE.
4078         * resolv/res_init.c (__res_ninit, __res_randomid): Add
4079         libc_hidden_def.
4080         * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
4081         * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
4082         * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
4083         * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
4084         * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
4085         * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
4086         __rpc_thread_createerr): Add libc_hidden_def.
4087         * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
4088         libc_hidden_def.
4089         * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
4090         * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
4091         * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
4092         * sysdeps/generic/chown.c (__chown): Likewise.
4093         * sysdeps/generic/close.c (__close): Likewise.
4094         * sysdeps/generic/dup2.c (__dup2): Likewise.
4095         * sysdeps/generic/pipe.c (__pipe): Likewise.
4096         * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
4097         * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
4098         * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
4099         * sysdeps/generic/read.c (__libc_read): Likewise.
4100         (__read): Add libc_hidden_weak.
4101         * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
4102         * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
4103         * sysdeps/generic/select.c (__select): Likewise.
4104         * sysdeps/generic/send.c (__send): Likewise.
4105         * sysdeps/generic/setpgid.c (__setpgid): Likewise.
4106         * sysdeps/generic/sigaction.c (__sigaction): Likewise.
4107         * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
4108         * sysdeps/generic/statfs.c (__statfs): Likewise.
4109         * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
4110         * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
4111         * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
4112         Remove undef and INTDEF.
4113         * sysdeps/generic/getpgid.c (__getpgid): Likewise.
4114         * sysdeps/generic/getpid.c (__getpid): Likewise.
4115         * sysdeps/generic/write.c (__libc_write): Likewise.
4116         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
4117         * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
4118         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
4119         * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
4120         * sysdeps/mach/hurd/chown.c (__chown): Likewise.  Remove INTDEF.
4121         * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
4122         Remove undef and INTDEF.
4123         * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
4124         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
4125         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
4126         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
4127         * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
4128         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
4129         * sysdeps/mach/hurd/pipe.c: Include unistd.h.
4130         (__pipe): Add libc_hidden_def.
4131         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
4132         libc_hidden_weak.
4133         * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
4134         * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
4135         * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
4136         (__read): Add libc_hidden_weak.
4137         * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
4138         (__libc_pwrite64): Add libc_hidden_def.
4139         * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
4140         * sysdeps/mach/hurd/select.c (__select): Likewise.
4141         * sysdeps/mach/hurd/send.c (__send): Likewise.
4142         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
4143         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
4144         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
4145         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
4146         * sysdeps/posix/dup2.c: Likewise.
4147         Remove undef and INTDEF.
4148         * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
4149         * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
4150         (__pwrite64): Add libc_hidden_weak.
4151         * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
4152         * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
4153         * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
4154         * sysdeps/standalone/close.c (__close): Likewise.
4155         * sysdeps/standalone/write.c (__libc_write): Likewise.
4156         (__write): Add libc_hidden_weak.
4157         * sysdeps/standalone/read.c (__read): Likewise.
4158         (__libc_read): Add libc_hidden_def.
4159         * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
4160         * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
4161         * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
4162         * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
4163         * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
4164         * sysdeps/unix/bsd/poll.c (__poll): Likewise.
4165         * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
4166         * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
4167         * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
4168         __GI___sigaction): Add.
4169         * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
4170         * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
4171         * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
4172         * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
4173         * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
4174         __GI___setpgid): Add.
4175         * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
4176         Remove undef and INTDEF.
4177         * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
4178         * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
4179         * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
4180         * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
4181         * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
4182         * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
4183         * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
4184         * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
4185         * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
4186         * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
4187         * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
4188         * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
4189         * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
4190         * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
4191         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
4192         __GI___statfs, __GI___send): Add.
4193         * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
4194         libc_hidden_ver resp. libc_hidden_def.
4195         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
4196         libc_hidden_def.
4197         * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
4198         Likewise.  Remove undef and INTDEF.
4199         * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
4200         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
4201         __GI___statfs, __GI___send): Add.
4202         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
4203         libc_hidden_def.
4204         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
4205         Likewise.
4206         * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
4207         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
4208         libc_hidden_ver resp. libc_hidden_def.
4209         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
4210         __GI___send): Add.
4211         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
4212         Add libc_hidden_weak.
4213         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
4214         Add libc_hidden_def.
4215         * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
4216         * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
4217         libc_hidden_weak.
4218         * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
4219         resp. libc_hidden_def.
4220         * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
4221         libc_hidden_weak.
4222         * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise.  Remove
4223         INTDEF.
4224         * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
4225         Likewise.  Remove undef.
4226         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
4227         libc_hidden_weak.
4228         * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
4229         * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
4230         libc_hidden_weak.
4231         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
4232         libc_hidden_def.
4233         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
4234         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
4235         Likewise.  Remove undef and INTDEF.
4236         * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
4237         libc_hidden_def.
4238         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
4239         libc_hidden_weak.
4240         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
4241         libc_hidden_def.
4242         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
4243         (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
4244         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
4245         libc_hidden_weak.
4246         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
4247         Add libc_hidden_def.
4248         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
4249         __GI___statfs): Add.
4250         * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
4251         libc_hidden_weak.
4252         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
4253         * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
4254         Remove undef and INTDEF.
4255         * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
4256         * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
4257         libc_hidden_def.
4258         * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
4259         * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
4260         libc_hidden_weak.
4261         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
4262         libc_hidden_def.
4263         * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
4264         * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
4265         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
4266         Add.
4267         * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
4268         libc_hidden_def.  Remove undef and INTDEF.
4269         * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
4270         * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
4271         libc_hidden_def.
4272         * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
4273         * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
4274         * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
4275         * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
4276         Remove undef and INTDEF.
4277         * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
4278         broken visibility attribute handling.
4279         * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
4280
4281 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
4282
4283         * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
4284         Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
4285
4286         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
4287         previous patch.
4288
4289 2002-06-29  Todd Fries  <todd@openbsd.org>
4290
4291         * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
4292
4293 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4294
4295         * include/errno.h: Don't include tls.h if _ISOMAC is defined.
4296
4297 2002-07-30  Roland McGrath  <roland@redhat.com>
4298
4299         * resolv/resolv.h (_res): Define macro unconditionally.
4300         [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
4301         * include/resolv.h: ... here.
4302         [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
4303         as a __thread variable.
4304         * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
4305         a __thread variable instead of a global.
4306         * resolv/res_data.c [_LIBC]: Don't #undef _res.
4307
4308         * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
4309         time we test it.
4310
4311         * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
4312
4313         * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
4314         decls of memset and memcpy.
4315
4316         * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
4317         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
4318
4319         * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
4320
4321         * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
4322         (__libc_tsd_define): Define using __thread.
4323
4324         * sunrpc/rpc_thread.c: Use __libc_tsd_define.
4325         (__rpc_thread_variables): Use __libc_tsd_get.
4326         (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
4327         __rpc_thread_variables, which might allocate what we're about to free.
4328
4329         * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
4330         thread-local variable.
4331         * resolv/netdb.h (h_errno): Define macro unconditionally.
4332         [_LIBC] (__set_h_errno): Macro moved to ...
4333         * include/netdb.h: ... here.
4334         [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
4335         [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
4336         [! _LIBC_REENTRANT]: #undef h_errno here.
4337
4338         * include/errno.h: Protect from multiple inclusion.
4339
4340         * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
4341         before defining them, since Linux's <linux/posix_types.h> might have
4342         defined them.
4343
4344 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4345
4346         * malloc/malloc.c (public_cALLOc): Check for overflow on
4347         multiplication.
4348         * sunrpc/xdr_array.c (xdr_array): Likewise.
4349         * sunrpc/rpc/types.h (mem_free): Add comment.
4350         Patch by Solar Designer <solar@openwall.com>.
4351
4352 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4353
4354         * sysdeps/unix/sysv/linux/kernel-features.h
4355         (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
4356
4357 2002-08-01  Roland McGrath  <roland@redhat.com>
4358
4359         * libio/fileops.c (_IO_file_sync_mmap): New function.
4360         (_IO_file_jumps_mmap): Use it.
4361         (_IO_file_underflow_mmap): Rewritten.  If after EOF or fflush,
4362         repeat the stat check and resize the mapped buffer as necessary.
4363
4364 2002-07-31  Roland McGrath  <roland@redhat.com>
4365
4366         * libio/fileops.c (decide_maybe_mmap): New static function.
4367         Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
4368         mmap the file contents.  Then switch the jump tables to the mmap
4369         tables if it worked, or the vanilla file tables if not.
4370         (_IO_file_underflow_maybe_mmap): New function.
4371         (_IO_file_seekoff_maybe_mmap): New function.
4372         (_IO_file_xsgetn_maybe_mmap): New function.
4373         (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
4374         * libio/libioP.h: Declare those.
4375         * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
4376         (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
4377         * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
4378         If the stream is read-only, set its jump tables to those new ones.
4379         * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
4380         jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
4381         We need the tables set before _IO_file_attach.
4382
4383         * libio/tst-mmap-eofsync.c: New file.
4384         * libio/tst-mmap-fflushsync.c: New file.
4385         * libio/bug-mmap-fflush.c: New file.
4386         * libio/tst-mmap2-eofsync.c: New file.
4387         * libio/Makefile (tests): Add them.
4388
4389         * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
4390         _IO_file_underflow_mmap fails, it already set the appropriate bit.
4391
4392 2002-07-31  Jeff Bailey  <jbailey@gnu.org>
4393
4394         * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
4395         Declarations moved to <bits/sys_errlist.h>.  Include that file.
4396         * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
4397         * sysdeps/generic/bits/sys_errlist.h: New file.  This does *not*
4398         declare sys_errlist and sys_nerr.
4399         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file.  Does
4400         provide declarations.
4401
4402 2002-07-31  Roland McGrath  <roland@redhat.com>
4403
4404         * elf/rtld.c (dl_main): Fix typo in error message.
4405
4406 2002-07-31  Roland McGrath  <roland@frob.com>
4407
4408         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
4409         __xstat -> __xstat64, __lseek -> __libc_lseek64.  Completes 2002-06-09
4410         sysdeps/mach/hurd/dl-sysdep.c change.
4411
4412 2002-07-28  Ulrich Drepper  <drepper@redhat.com>
4413
4414         * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
4415         -r`/build/include for kernel headers.
4416
4417         * po/fi.po: New file.
4418
4419 2002-07-15  Alexandre Oliva  <aoliva@redhat.com>
4420
4421         * configure.in (static_nss): Set to `yes' if --disable-shared.
4422
4423 2002-07-23  Bruno Haible  <bruno@clisp.org>
4424
4425         * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
4426         is set.
4427
4428 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4429
4430         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
4431         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
4432         arguments.
4433
4434 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4435
4436         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
4437         alias.
4438
4439 2002-07-21  Bruno Haible  <bruno@clisp.org>
4440
4441         * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
4442         * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
4443         sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
4444         trans_sysdep_tab_offset.
4445         (struct sysdep_segment): New type.
4446         (struct sysdep_string): New type.
4447         (SEGMENTS_END): New macro.
4448         * intl/gettextP.h (struct sysdep_string_desc): New type.
4449         (struct loaded_domain): New fields malloced, n_sysdep_strings,
4450         orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
4451         orig_tab, trans_tab, hash_tab to const pointers because they point
4452         into read-only memory.
4453         * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
4454         (PRI*): Define fallback values.
4455         (get_sysdep_segment_value): New function.
4456         (_nl_load_domain): Distinguish major and minor revision parts. Add
4457         support for minor revision 1 with system dependent strings.
4458         (_nl_unload_domain): Also free the 'malloced' field.
4459         * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
4460         now done in loadmsgcat.c. Add support for system dependent strings.
4461
4462 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
4463
4464         * posix/bug-regex7.c: New file.
4465         * posix/bug-regex8.c: New file.
4466         * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
4467
4468 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
4469
4470         * posix/bug-regex4.c (main): Fix typos.
4471         * posix/bug-regex6.c (main): Likewise.
4472
4473 2002-07-27  Ulrich Drepper  <drepper@redhat.com>
4474
4475         * posix/bug-regex6.c (main): Fix warnings.
4476
4477         * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
4478
4479         * iconv/iconv_prog.c (main): Improve error message for the cases
4480         where -t and/or -f parameter are missing.
4481
4482 2002-07-10  Stepan Kasal  <kasal@math.cas.cz>
4483
4484         * posix/regexec.c (re_match): Reorganize to remove duplicate code.
4485         (re_search): Likewise.
4486         (re_match_2): Likewise.
4487         (re_search_2): Likewise.
4488         (re_search_stub): New function.
4489         (re_search_2_stub): New function.
4490         * regcomp.c (re_compile_pattern): Typo in a comment fixed.
4491
4492 2002-07-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
4493
4494         * posix/regex_internal.h: Add new member STOP to struct re_string_t.
4495         (re_string_eoi): Use STOP instead of LEN.
4496         * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
4497         (re_string_construct): Likewise.
4498         (re_string_reconstruct): Adjust pstr->stop like pstr->len.
4499         * posix/regexec.c (re_search_internal): Add a new argument STOP
4500         so that it can handle the argument STOP of re_search_2 and re_match_2
4501         correctly.
4502         (regexec): Adapt to new I/F of re_search_internal.
4503         (re_search_stub): Likewise.
4504
4505 2002-07-25  Ulrich Drepper  <drepper@redhat.com>
4506
4507         * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
4508
4509         * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
4510
4511         * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
4512         * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
4513         of __divdi3.
4514
4515         * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
4516         * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
4517         * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
4518         alias for adjtimex syscall.
4519
4520         * elf/dl-minimal.c: Define __assert_fail_internal.
4521         * assert/assert.c: Likewise.
4522         * include/assert.h: Define __assert_file macro if !SHARED and not
4523         NOT_IN_libc.
4524
4525         * iconv/Makefile: Define NOT_IN_libc for objects in standalone
4526         programs.
4527         * locale/Makefile: Likewise.
4528         * nscd/Makefile: Likewise.
4529         * catgets/Makefile: Likewise.
4530
4531 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
4532
4533         * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
4534         compute current position.
4535
4536         * stdio-common/tst-fseek.c (main): Improve error messages.
4537
4538         * libio/tst-freopen.c (main): Remove unused variable.
4539
4540         * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
4541         succesful seek call.  Simplify error checking.
4542
4543 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4544
4545         * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
4546         * sysdeps/ia64/fpu/libm_support.h: Likewise.
4547
4548 2002-07-19  Roland McGrath  <roland@frob.com>
4549
4550         * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
4551         __libc_enable_secure is set.
4552
4553 2002-07-24  Roland McGrath  <roland@frob.com>
4554
4555         Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
4556         This implementation supports only IPv4.
4557         * inet/ifaddrs.h: New file.
4558         * sysdeps/generic/ifaddrs.c: New file.
4559         * sysdeps/gnu/ifaddrs.c: New file.
4560         * inet/test-ifaddrs.c: New file.
4561         * inet/Makefile (routines): Add ifaddrs.
4562         (headers): Add ifaddrs.h here.
4563         (tests): Add test-ifaddrs.
4564         * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
4565
4566         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
4567         socket call to get an AF_INET socket, instead of using __opensock.
4568         The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
4569
4570         * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
4571         if not -1 use it instead of calling __opensock.
4572         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
4573         * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
4574         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
4575
4576         * sysdeps/mach/hurd/ifreq.h: New file.
4577         * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
4578         * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
4579         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
4580
4581         * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
4582         which gets moved around.  Calculate size of mmap'd buffer instead.
4583
4584 2002-07-24  Philip Blundell  <philb@gnu.org>
4585
4586         * sysdeps/unix/arm/brk.S: Improve schedule.
4587         * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
4588         efficient instruction.
4589         (__socket): Optimize return sequence.
4590
4591 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
4592
4593         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
4594         sockets on old kernels.
4595
4596 2002-07-22  Philip Blundell  <philb@gnu.org>
4597
4598         * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
4599         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
4600         alias.
4601
4602 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
4603
4604         * locale/hashval.h: Make more self-contained by defining LONG_BITS.
4605         * locale/programs/simple-hash.c: Remove LONG_BITS definition.
4606
4607         * locale/programs/locarchive.c (add_locale_to_archive): Correct
4608         test to detect duplicate locales.
4609
4610         * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
4611         position would be before beginning of file.
4612         (_IO_file_seekoff_mmap): Likewise.
4613         * libio/Makefile (tests): Add bug-fseek.
4614         * libio/bug-fseek.c: New file.
4615
4616         * intl/explodename.c: Remove support for CEN-style locale variables.
4617         It was never used and shouldn't be since it's not portable.
4618         * intl/finddomain.c: Likewise.
4619         * intl/l10nflist.c: Likewise.
4620         * intl/loadinfo.h: Likewise.
4621         * locale/findlocale.c: Likewise.
4622
4623 2002-07-24  Roland McGrath  <roland@frob.com>
4624
4625         * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
4626         position, calculate it to take into account an active pushback buffer.
4627
4628         * libio/Makefile (tests): Add bug-ungetc.
4629         * libio/bug-ungetc.c: New file.
4630
4631 2002-07-23  Ulrich Drepper  <drepper@redhat.com>
4632
4633         * sysdeps/generic/libc-tls.c: New file.
4634         * csu/Makefile (routines): Add libc-tls.
4635         (static-only-routines): Add libc-tls.
4636         * elf/dl-support.c (_dl_phdr): New variable.
4637         (_dl_phnum): New variable.
4638         (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
4639         * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
4640         for !SHARED.  First look through auxiliary vector.  If TLS always
4641         call __pthread_initialize_minimal.
4642
4643         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
4644         in mmap call is never zero.
4645
4646 2002-07-23  Andreas Jaeger  <aj@suse.de>
4647
4648         * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
4649         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
4650
4651 2002-07-22  Ulrich Drepper  <drepper@redhat.com>
4652
4653         * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
4654         creation and removal of the temp file.
4655
4656         * libio/bug-rewind.c: Use test skeleton.  Use create_temp_file for
4657         file creation.
4658         * test-skeleton.c (create_temp_file): New function.
4659
4660 2002-07-22  Andreas Jaeger  <aj@suse.de>
4661
4662         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
4663         local label.
4664
4665 2002-07-21  Roland McGrath  <roland@frob.com>
4666
4667         * wcsmbs/Makefile (strtox-CFLAGS): New variable,
4668         put -I../include before -I../stdlib so we get the right errno.h et al.
4669         (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
4670         (CFLAGS-wcstof.c): Likewise.
4671         (CFLAGS-wcstold.c): Likewise.
4672         (CFLAGS-wcstod_l.c): Likewise.
4673         (CFLAGS-wcstof_l.c): Likewise.
4674         (CFLAGS-wcstold_l.c): Likewise.
4675
4676 2002-07-19  Roland McGrath  <roland@frob.com>
4677
4678         * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
4679
4680 2002-07-20  Ulrich Drepper  <drepper@redhat.com>
4681
4682         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
4683         __ASSUME_AT_XID is defined.
4684         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
4685         for 2.4.1 and up.
4686         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
4687         of AT_UID, AT_EUID, AT_GID, and AT_EGID.
4688
4689         * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
4690         (CFLAGS-wcstof.c): Likewise.
4691         (CFLAGS-wcstold.c): Likewise.
4692         (CFLAGS-wcstod_l.c): Likewise.
4693         (CFLAGS-wcstof_l.c): Likewise.
4694         (CFLAGS-wcstold_l.c): Likewise.
4695
4696 2002-07-18  Jakub Jelinek  <jakub@redhat.com>
4697
4698         * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
4699         __priority_which_t): Always typedef to int for C++.
4700
4701 2002-07-19  Ulrich Drepper  <drepper@redhat.com>
4702
4703         * configure.in: Add test for __thread support in compiler.
4704         * config.h.in: Add HAVE___THREAD.
4705         * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
4706         * include/sys/errno.h: Moved to...
4707         * stdlib/sys/errno.h: ...here.  New file.
4708         * stdlib/errno.h: New file.  Moved from...
4709         * include/errno.h: ...here.  Changed into an internal header defining
4710         libc-local things like __set_errno.
4711         * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
4712         bits/errno.h.
4713         * elf/dl-minimal.c: Include <tls.h>.  Define errno as thread-local
4714         variable if USE_TLS && HAVE___THREAD.  Don't define __errno_location
4715         either.
4716         * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
4717         from...
4718         (_dl_start_final): ...here.  Add code to initialize tls elements from
4719         bootstrap_map.
4720         * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
4721         if USE_TLS && HAVE___THREAD.
4722         * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
4723         * sysdeps/mach/hurd/bits/errno.h: Likewise.
4724         * sysdeps/standalone/arm/bits/errno.h: Likewise.
4725         * sysdeps/standalone/bits/errno.h: Likewise.
4726         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
4727         * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
4728         * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
4729         * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
4730         * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
4731         * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
4732         * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
4733         * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
4734         use GL(dl_rtld_map), use map parameter.
4735         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
4736         * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
4737         USE_TLS && HAVE___THREAD.
4738         * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
4739         definitions.  If USE_TLS && HAVE___THREAD store errooor value using
4740         TLS code sequence.
4741         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
4742
4743         * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
4744         * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
4745         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
4746         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
4747         * sysdeps/unix/sysv/linux/readv.c: Likewise.
4748         * sysdeps/unix/sysv/linux/writev.c: Likewise.
4749
4750 2002-07-17  Ulrich Drepper  <drepper@redhat.com>
4751
4752         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
4753         MS_INVALIDATE values.
4754
4755 2002-07-17  Andreas Schwab  <schwab@suse.de>
4756             Ulrich Drepper  <drepper@redhat.com>
4757
4758         * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
4759         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4760         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4761         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4762
4763 2002-07-01  H.J. Lu  <hjl@gnu.org>
4764
4765         * elf/circleload1.c (load_dso): Call "circlemod1" and check
4766         return value.
4767
4768         * elf/circlemod1.c (circlemod1): Return int.
4769         * elf/circlemod2.c (circlemod2): Likewise.
4770         * elf/circlemod2a.c (circlemod2): Likewise.
4771         * elf/circlemod3.c (circlemod3): Likewise.
4772         (circlemod3a): A new function.
4773
4774 2002-07-16  Ulrich Drepper  <drepper@redhat.com>
4775
4776         * catgets/tst-catgets.c (main): Don't expect results for
4777         untranslated messages.
4778
4779         * glibcbug.in: Fix little typo.  Remove STDIO.
4780
4781         * config.h.in: Fail if __FAST_MATH__ is defined.
4782         * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
4783         (CPPFLAGS-test-idouble.c): Likewise.
4784         (CPPFLAGS-test-ildouble.c): Likewise.
4785
4786 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
4787
4788         * intl/tst-gettext.sh: Pass -f option to msgfmt.
4789         * intl/tst-gettext.c: Correctly handle untranslated messages in
4790         positive tests.
4791
4792         * po/de.po: Update from translation team.
4793
4794 2002-07-02  H.J. Lu  <hjl@gnu.org>
4795
4796         * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>.  Always
4797         use ll/sc.
4798         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
4799
4800         * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
4801         to 2.4.0 for mips.
4802
4803 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
4804
4805         * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
4806         TLS fail if USE_TLS is not defined.
4807
4808         * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
4809         and adjust state for seek position.  [PR libc/4070]
4810         * libio/Makefile (tests): Add bug-rewind.
4811         * libio/bug-rewind.c: New file.
4812
4813 2002-07-12  Philip Blundell  <philb@gnu.org>
4814
4815         * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
4816         (__backtrace): Use it.
4817         * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define.  [PR libc/2632]
4818
4819 2002-07-12  Philip Blundell  <philb@gnu.org>
4820
4821         * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
4822         R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
4823         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
4824         (elf_machine_rela): Remove unused variable.
4825
4826         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
4827         (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
4828         define.
4829
4830 2002-07-12  Ulrich Drepper  <drepper@redhat.com>
4831
4832         * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
4833
4834 2002-07-14  Andreas Jaeger  <aj@suse.de>
4835
4836         * sysdeps/x86_64/bits/link.h: Add biarch support.
4837
4838 2002-07-13  Andreas Jaeger  <aj@suse.de>
4839
4840         * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
4841         Use correct indices.
4842         Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
4843
4844 2002-07-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4845
4846         * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
4847         * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
4848         * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
4849         * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
4850         * sysdeps/s390/s390-32/bits/link.h: Remove.
4851         * sysdeps/s390/s390-64/bits/link.h: Remove.
4852         * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
4853         * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
4854         * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
4855         * sysdeps/s390/bits/wordsize.h: New file.
4856         * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
4857         elfclass.h.
4858         * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
4859         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
4860         * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
4861         * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
4862         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
4863         * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
4864         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
4865         * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
4866         * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
4867         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
4868         * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
4869         * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
4870         resource.h.
4871         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
4872         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
4873         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
4874         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
4875         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
4876         * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
4877         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
4878         sigaction.h.
4879         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
4880         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
4881         siginfo.h.
4882         * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
4883         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
4884         * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
4885         socket.h.
4886         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
4887         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
4888         * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
4889         * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
4890         * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
4891         * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
4892         * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
4893         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
4894         procfs.h.
4895         * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
4896         * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
4897         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
4898         ucontext.h.
4899         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
4900         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
4901
4902 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
4903
4904         * Versions.def (libc): Add GLIBC_2.3.
4905         * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
4906         * stdlib/canonicalize.c: Add compatibility version for realpath
4907         and make new code available in GLIBC_2.3.
4908
4909 2002-07-06  Bruno Haible  <bruno@clisp.org>
4910
4911         * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
4912
4913 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
4914
4915         * resolv/res_hconf.c (_res_hconf_init): Move code into new
4916         function do_init.  Use __libc_once.
4917         (do_init): New function.
4918
4919         * iconvdata/iso8859-11.h: Removed.
4920         * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
4921         (distribute): Remove iso8859-11.h.
4922         * iconvdata/tst-tables.sh: Add ISO-8859-11.
4923
4924         * stdio-common/vfscanf.c (inchar): Restore errno from previous
4925         underflow operation if c == (W)EOF.
4926
4927 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
4928
4929         * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
4930         non-zero, adjust exponent.
4931         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
4932         Remove NO_LONG_DOUBLE aliases.
4933         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
4934         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
4935         (__log1pl): Raise divide by zero and invalid exceptions when needed.
4936         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
4937         1**y and -1**+-Inf.
4938         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
4939         Fix BITS_PER_MP_LIMB 32 extraction.
4940         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
4941         exceptions for qNaNs.
4942         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
4943         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
4944         Raise exceptions when needed.  Don't recurse unnecessarily.
4945         Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
4946         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
4947         exceptions for qNaNs.
4948         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
4949         to fix *quo return value sign.
4950         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
4951         case -Inf argument.
4952         * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
4953
4954 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
4955
4956         * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
4957         * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
4958         -DNDEBUG.
4959
4960 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
4961
4962         * malloc/hooks.c (realloc_check): If mremap succeeds actually use
4963         the result.
4964
4965         * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
4966         output parameter.  Reported by Denis Zaitsev <zzz@cd-club.ru>.
4967
4968         * Versions.def (libthread_db): Add GLIBC_2.3.
4969
4970 2002-07-09  Jakub Jelinek  <jakub@redhat.com>
4971
4972         * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
4973         new stream if possible.
4974         * libio/freopen64.c (freopen64): Likewise.
4975         * libio/Makefile (tests): Add tst-freopen.
4976         * libio/tst-freopen.c: New file.
4977
4978 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
4979
4980         * libio/stdio.h (obstack_printf): Add format attribute.
4981         (obstack_vprintf): Likewise.
4982
4983 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
4984
4985         * posix/regex_internal.h (re_token_t): Shrink the structure to 8
4986         resp. 16 bytes on 32-bit resp. 64-bit platforms.
4987         (re_charset_t, re_string_t): Reorder structure members for 64-bit
4988         architectures.
4989
4990 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
4991
4992         * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
4993         (init_dfa): ...here.
4994
4995 2002-07-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
4996
4997         * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
4998         OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
4999         nodes in parse trees.
5000         (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
5001         and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
5002         (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
5003         nodes which can epsilon transit.
5004         * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
5005         to IS_EPSILON_NODE macro.
5006         * posix/regexec.c (update_regs): New function to update registers
5007         by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
5008         (proceed_next_node): Use the entities of the nodes to determine
5009         whether the node can transit to.
5010         (set_regs): Use update_regs function to update registers.
5011
5012 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
5013
5014         * posix/bug-regex4.c (main): Remove duplicate setlocale.
5015         * posix/bug-regex6.c: New file.
5016         * posix/Makefile (tests): Add bug-regex6.
5017         (bug-regex6-ENV): Set LOCPATH.
5018
5019 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
5020
5021         * Versions.def [libpthread]: Add GLIBC_2.2.6.
5022         * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
5023
5024 2002-07-06  Bruno Haible  <bruno@clisp.org>
5025
5026         * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
5027
5028 2002-07-06  Bruno Haible  <bruno@clisp.org>
5029
5030         * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
5031         declarations.
5032
5033         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
5034
5035         * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
5036
5037         * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
5038         not _UTSNAME_H.
5039         * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
5040
5041         * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
5042         * sysdeps/generic/bits/ustat.h: Likewise.
5043
5044         * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
5045
5046 2002-07-08  Andreas Jaeger  <aj@suse.de>
5047
5048         * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
5049
5050 2002-07-08  Andreas Jaeger  <aj@suse.de>
5051
5052         * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
5053
5054 2002-07-06  Andreas Jaeger  <aj@suse.de>
5055
5056         * sysdeps/x86_64/fpu/bits/mathinline.h: New file.
5057         * sysdeps/x86_64/fpu/s_copysign.S: New file.
5058         * sysdeps/x86_64/fpu/s_copysignf.S: New file.
5059         * sysdeps/x86_64/fpu/s_copysignl.S: New file.
5060         * sysdeps/x86_64/fpu/s_finitel.S: New file.
5061         * sysdeps/x86_64/fpu/s_fmax.S: New file.
5062         * sysdeps/x86_64/fpu/s_fmaxf.S: New file.
5063         * sysdeps/x86_64/fpu/s_fmaxl.S: New file.
5064         * sysdeps/x86_64/fpu/s_fmin.S: New file.
5065         * sysdeps/x86_64/fpu/s_fminf.S: New file.
5066         * sysdeps/x86_64/fpu/s_fminl.S: New file.
5067
5068 2002-06-05  Brian Youmans <3diff@gnu.org>
5069
5070         * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
5071         * sysdeps/ia64/fpu/e_acosf.S: Likewise.
5072         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
5073         * sysdeps/ia64/fpu/e_asin.S: Likewise.
5074         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
5075         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
5076         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
5077         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
5078         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
5079         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
5080         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
5081         * sysdeps/ia64/fpu/e_exp.S: Likewise.
5082         * sysdeps/ia64/fpu/e_expf.S: Likewise.
5083         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
5084         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
5085         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
5086         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
5087         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
5088         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
5089         * sysdeps/ia64/fpu/e_log.S: Likewise.
5090         * sysdeps/ia64/fpu/e_logf.S: Likewise.
5091         * sysdeps/ia64/fpu/e_pow.S: Likewise.
5092         * sysdeps/ia64/fpu/e_powf.S: Likewise.
5093         * sysdeps/ia64/fpu/e_powl.S: Likewise.
5094         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
5095         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
5096         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
5097         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
5098         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
5099         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
5100         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
5101         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
5102         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
5103         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
5104         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
5105         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
5106         * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
5107         * sysdeps/ia64/fpu/libm_error.c: Likewise.
5108         * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
5109         * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
5110         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
5111         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
5112         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
5113         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
5114         * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
5115         * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
5116         * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
5117         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
5118         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
5119         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
5120         * sysdeps/ia64/fpu/s_logb.S: Likewise.
5121         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
5122         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
5123         * sysdeps/ia64/fpu/s_modf.S: Likewise.
5124         * sysdeps/ia64/fpu/s_modff.S: Likewise.
5125         * sysdeps/ia64/fpu/s_modfl.S: Likewise.
5126         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
5127         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
5128         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
5129         * sysdeps/ia64/fpu/s_rint.S: Likewise.
5130         * sysdeps/ia64/fpu/s_rintf.S: Likewise.
5131         * sysdeps/ia64/fpu/s_rintl.S: Likewise.
5132         * sysdeps/ia64/fpu/s_round.S: Likewise.
5133         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
5134         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
5135         * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
5136         * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
5137         * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
5138         * sysdeps/ia64/fpu/s_significand.S: Likewise.
5139         * sysdeps/ia64/fpu/s_significandf.S: Likewise.
5140         * sysdeps/ia64/fpu/s_significandl.S: Likewise.
5141         * sysdeps/ia64/fpu/s_tan.S: Likewise.
5142         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
5143         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
5144         * sysdeps/ia64/fpu/s_trunc.S: Likewise.
5145         * sysdeps/ia64/fpu/s_truncf.S: Likewise.
5146         * sysdeps/ia64/fpu/s_truncl.S: Likewise.
5147         * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
5148         reflect IBM donation of math library to FSF
5149         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5150         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
5151         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5152         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5153         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5154         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5155         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
5156         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
5157         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5158         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
5159         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
5160         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
5161         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
5162         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
5163         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
5164         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
5165         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5166         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
5167         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5168         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
5169         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
5170         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
5171         * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
5172         * sysdeps/vax/__longjmp.c: Likewise.
5173         * sysdeps/vax/setjmp.c: Likewise.
5174         * libio/filedoalloc.c: Fixed BSD copying permission notice to
5175         remove advertising clause
5176         * sysdeps/vax/htonl.s: Likewise.
5177         * sysdeps/vax/htons.s: Likewise.
5178         * libio/wfiledoalloc.c: Likewise.
5179         * stdlib/random.c: Likewise.
5180         * stdlib/random_r.c: Likewise.
5181         * sysdeps/mach/sys/reboot.h: Likewise.
5182         * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
5183         * sysdeps/posix/getaddrinfo.c: Likewise.
5184         * sunrpc/des_impl.c: Updated license permission notice to Lesser
5185         GPL and corrected pointer to point to the correct license.
5186
5187 2002-07-04  Andreas Jaeger  <aj@suse.de>
5188
5189         * scripts/config.guess: New upstream version.
5190         * scripts/config.sub: Likewise.
5191
5192 2002-07-02  Andreas Schwab  <schwab@suse.de>
5193
5194         * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
5195         in parallel to bumping up the buffer pointer.
5196
5197 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
5198
5199         * math/libm-test.inc (acos_test): Add missing L suffix for
5200         expected result.
5201         (cpow_test): Likewise.
5202         * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
5203         error for acos (0.0625).
5204
5205 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
5206
5207         * locale/iso-639.def: Add entry for Ganda.
5208         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
5209         definition.
5210         (address_finish): Handle entries with two letter ISO 639 code.
5211
5212         * iconvdata/Makefile: Recreate gconv-modules.cache file in target
5213         directory if it existed before.
5214         * iconv/iconvconfig.c: Implement --prefix option.
5215
5216         * math/libm-test.inc (cexp_test): Add missing L suffix for
5217         expected result.  Reported by Stephen L Moshier <steve@moshier.net>.
5218         * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
5219         1.25 i).
5220
5221 2002-05-29  H.J. Lu  <hjl@gnu.org>
5222
5223         * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
5224         is turned on.
5225
5226 2002-05-28  H.J. Lu  <hjl@gnu.org>
5227
5228         * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
5229         are not dlopened on the dependency list of a dlopened object.
5230
5231 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
5232
5233         * elf/dl-lookup.c (add_dependency): It is not necessary to add
5234         dependencies if they are created between objects which are created
5235         while processing RTLD_NOW for objects loaded as part of the same
5236         dlopen call.
5237
5238 2002-06-14  H.J. Lu  <hjl@gnu.org>
5239
5240         * elf/Makefile (tests): Add circleload1.
5241         (modules-names): Add circlemod1, circlemod2, circlemod3,
5242         circlemod1a, circlemod2a and circlemod3a.
5243         ($(objpfx)circleload1): New target.
5244         ($(objpfx)circleload1.out): Likewise.
5245         ($(objpfx)circlemod1.so): Likewise.
5246         ($(objpfx)circlemod2.so): Likewise.
5247         ($(objpfx)circlemod1a.so): Likewise.
5248         ($(objpfx)circlemod2a.so): Likewise.
5249         * elf/circleload1.c: New file.
5250         * elf/circlemod1.c: New file.
5251         * elf/circlemod1a.c: New file.
5252         * elf/circlemod2.c: New file.
5253         * elf/circlemod2a.c: New file.
5254         * elf/circlemod3.c: New file.
5255         * elf/circlemod3a.c: New file.
5256
5257 2002-06-18  Amos Waterland  <apw@us.ibm.com>
5258
5259         * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
5260         file descriptor.
5261         * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
5262         add check for fd not open for writing.
5263
5264         * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
5265         completed element(s) and do not suspend thread if so.  Patch
5266         heavily modified by drepper.
5267
5268         * rt/tst-aio7.c: New file.  Regression test for problems which the
5269         above three changes fix.
5270         * rt/Makefile (tests): Add tst-aio7.
5271
5272 2002-06-29  Ulrich Drepper  <drepper@redhat.com>
5273
5274         * rt/tst-aio6.c: Fix comment.
5275
5276         * catgets/gencat.c (read_input_file): Handle more than one slash
5277         at end of line correctly [PR libc/3926].
5278         Based on a patch by Steven Kim <steven.kim@peregrine.com>.
5279
5280         * catgets/sample.SJIS: Add test case for above bug.
5281         * catgets/test-gencat.c: Adjust test code.
5282         * catgets/test-gencat.sh: Adjust expected results.
5283
5284         * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
5285         to skip relative relocations.
5286         Patch by Geoff Keating <geoffk@redhat.com>.
5287
5288 2002-05-26  Bruno Haible  <bruno@clisp.org>
5289
5290         * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
5291         (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
5292         All callers changed.
5293         * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
5294         STANDARD_FROM_LOOP_ERR_HANDLER.
5295         (utf8_internal_loop): Likewise.
5296         (ucs2_internal_loop): Likewise.
5297         (internal_ucs2_loop): Perform error handling like in
5298         STANDARD_FROM_LOOP_ERR_HANDLER.
5299         * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
5300         in STANDARD_FROM_LOOP_ERR_HANDLER.
5301         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5302         handling.
5303         * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
5304         in STANDARD_FROM_LOOP_ERR_HANDLER.
5305         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5306         handling.
5307         * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
5308         in STANDARD_FROM_LOOP_ERR_HANDLER.
5309         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5310         handling.
5311         * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
5312         STANDARD_FROM_LOOP_ERR_HANDLER.
5313         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
5314         * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
5315         * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
5316         * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
5317         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
5318         * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
5319         * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
5320         * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
5321         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
5322         * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
5323         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
5324         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
5325         * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
5326         * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
5327         * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
5328         * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
5329         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
5330         * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
5331         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
5332         * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
5333         * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
5334         * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
5335         * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
5336         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5337         * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
5338         * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
5339         * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
5340         * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
5341         * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise.  When ignoring
5342         an error, still set result = __GCONV_ILLEGAL_INPUT.
5343         (BODY for TO_LOOP): Likewise.
5344         * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
5345         STANDARD_FROM_LOOP_ERR_HANDLER.
5346         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5347         * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
5348         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5349         handling.
5350         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5351         * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
5352         STANDARD_FROM_LOOP_ERR_HANDLER.
5353         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5354         * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
5355         STANDARD_FROM_LOOP_ERR_HANDLER.
5356         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5357         * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
5358         STANDARD_FROM_LOOP_ERR_HANDLER.
5359         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5360         * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
5361         STANDARD_FROM_LOOP_ERR_HANDLER.
5362         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5363         * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
5364         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5365         handling.
5366         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5367         * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
5368         * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
5369         * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
5370
5371 2002-06-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5372
5373         * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
5374         labels in assembler instructions.
5375
5376 2002-06-25  Ulrich Drepper  <drepper@redhat.com>
5377
5378         * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
5379         not enough content is available.
5380         * libio/tst-eof.c: New file.
5381         * libio/Makefile (tests): Add tst-eof.
5382
5383         * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
5384         update atime.
5385         * libio/tst-atime.c: New file.
5386         * libio/Makefile (tests): Add tst-atime.
5387
5388         * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
5389         handling of overly long words.
5390
5391 2002-06-25  Andreas Jaeger  <aj@suse.de>
5392
5393         * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
5394         to not use 32-bit pc relative relocations.
5395         (elf_machine_dynamic): Likewise.
5396
5397 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
5398
5399         * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
5400         (__GETDENTS): Check for failed getdents64 syscall.
5401         * dirent/Makefile (tests): Add bug-readdir1.
5402         * dirent/bug-readdir1.c: New file.
5403
5404 2002-06-17  Jakub Jelinek  <jakub@redhat.com>
5405
5406         * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
5407         lookups.
5408         * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
5409         code.  Print TLS modid and offset for modules containing PT_TLS
5410         segments.
5411
5412 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
5413
5414         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5415         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5416         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5417         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5418
5419 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
5420
5421         * nss/getXXbyYY_r.c (NEW, NEW1): Define.
5422         (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
5423         (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
5424         * nss/getXXent_r.c (NEW, NEW1): Define.
5425         (NEW (REENTRANT_GETNAME)): Strong alias to
5426         INTERNAL (REENTRANT_GETNAME).
5427         (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
5428
5429 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
5430
5431         * libio/fileops.c (_IO_file_setbuf_mmap): New function.
5432         (_IO_file_jumps_mmap): Use it.
5433         * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
5434         * libio/libioP.h: Remove _IO_wdefault_setbuf and
5435         _IO_wdefault_setbuf_internal prorotypes.  Add _IO_file_setbuf_mmap
5436         prototype.
5437         * libio/wfileops.c (_IO_wfile_setbuf): Removed.
5438         (_IO_wfile_jumps_mmap): Don't use it anymore.
5439         * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
5440         * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
5441         _IO_wdefault_setbuf.
5442         * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
5443         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
5444         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
5445
5446 2002-06-05  Jakub Jelinek  <jakub@redhat.com>
5447
5448         * libio/Makefile (tests): Add tst-mmap-setvbuf.
5449         * libio/tst-mmap-setvbuf.c: New test.
5450
5451 2002-06-21  Andreas Jaeger  <aj@suse.de>
5452
5453         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
5454
5455 2002-06-18  Jakub Jelinek  <jakub@redhat.com>
5456
5457         * include/unistd.h (__fork_internal): Remove.
5458         (__fork): Don't define to __fork_internal.
5459         * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
5460         * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
5461         * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
5462         * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
5463         * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
5464
5465 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
5466
5467         * po/hr.po: New file.
5468
5469 2002-06-11  Wolfram Gloger  <wg@malloc.de>
5470
5471         * malloc/malloc.c: Fix error path when new_heap() returns NULL.
5472         Reported by Michael Meissner <meissner@redhat.com>.
5473
5474 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
5475
5476         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
5477         Patch by Hans Boehm <hans_boehm@hp.com>.
5478
5479 2002-06-20  Andreas Jaeger  <aj@suse.de>
5480
5481         * math/libm-test.inc: Use exact values as input parameters,
5482         compute output parameters with 36 digits for 128-bit long doubles.
5483         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
5484         * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
5485         * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
5486
5487 2002-06-13  Stephen L Moshier  <steve@moshier.net>
5488
5489         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
5490         argument or result is subnormal.
5491
5492 2002-06-19  Ulrich Drepper  <drepper@redhat.com>
5493
5494         * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
5495         quotient.
5496         * sysdeps/i386/fpu/s_remquof.S: Likewise.
5497         * sysdeps/i386/fpu/s_remquol.S: Likewise.
5498
5499         * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
5500
5501 2002-06-17  David Mosberger  <davidm@hpl.hp.com>
5502
5503         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
5504         typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
5505         Reported by Peter A. Buhr.
5506
5507 2002-06-15  Roland McGrath  <roland@frob.com>
5508
5509         * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
5510         warning.
5511
5512         * sysdeps/mach/hurd/getcwd.c
5513         (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
5514
5515         * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
5516         * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
5517
5518         * sysdeps/alpha/divrem.h: Use local label instead of global one for
5519         jump to local subroutine.
5520
5521 2002-06-14  Roland McGrath  <roland@frob.com>
5522
5523         * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
5524         * sysdeps/mach/hurd/Makeconfig: ... here.
5525
5526 2002-06-13  Andreas Schwab  <schwab@suse.de>
5527
5528         * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
5529         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
5530         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
5531
5532 2002-06-13  Roland McGrath  <roland@frob.com>
5533
5534         * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
5535         * hurd/hurdstartup.c (_hurd_startup): Likewise.
5536         Use intptr_t instead of int for argc in stack layout.
5537         * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
5538         (_dl_init_first): Likewise.
5539         (_hurd_stack_setup): Likewise.
5540         (init1): Add a cast.
5541         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
5542
5543         * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
5544         argument to pfinet_siocgifconf RPC.
5545
5546 2002-06-13  Andreas Schwab  <schwab@suse.de>
5547
5548         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
5549         expansion order.
5550
5551 2002-06-12  Roland McGrath  <roland@frob.com>
5552
5553         * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
5554         if already defined.
5555         [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
5556         [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
5557
5558 2002-06-11  Roland McGrath  <roland@frob.com>
5559
5560         * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
5561         file on [!RTLD_STAT64].
5562         * sysdeps/mach/hurd/fxstat64.c: Likewise.
5563
5564         * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
5565         (__fdopen): Use INTUSE.
5566         * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
5567
5568         * stdio-common/tmpfile64.c: File removed.
5569         * sysdeps/generic/tmpfile64.c: New file.
5570         * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
5571         if not already defined.
5572         (tmpfile): Use it in place of __GT_FILE.
5573
5574         * include/unistd.h: Declare __chown_internal.
5575
5576         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
5577         * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
5578
5579 2002-06-09  Roland McGrath  <roland@frob.com>
5580
5581         Update to new Hurd RPC interfaces supporting 64-bit file sizes.
5582         * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
5583         value of HURD_INTERFACE_VERSION >= 20020609.
5584         * sysdeps/mach/hurd/configure: Regenerated.
5585         * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
5586         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
5587         convert a struct stat64 into a struct stat and return 0 or -1
5588         with errno set to EOVERFLOW.
5589         * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
5590         for struct statfs64 to struct statfs.
5591         * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
5592         * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
5593         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
5594         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
5595         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
5596         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
5597         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
5598         * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
5599         * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
5600         * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
5601         * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
5602         * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
5603         * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
5604         * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
5605         * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
5606         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
5607         * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
5608         * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
5609         * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
5610         * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
5611         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
5612         Use struct stat64 for io_stat argument.
5613         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
5614         * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
5615         to io_seek.
5616         * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
5617         * hurd/fd-write.c (_hurd_fd_write): Likewise.
5618         * hurd/hurd/fd.h: Update decls.
5619         * sysdeps/mach/hurd/getcwd.c
5620         (_hurd_canonicalize_directory_name_internal): Use ino64_t
5621         and struct dirent64.
5622         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
5623         (__xstat): Renamed to __xstat64, use struct stat64 for argument.
5624         (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
5625         (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
5626
5627 2002-06-08  Roland McGrath  <roland@frob.com>
5628
5629         * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
5630         instead of unsigned long int for __allocation and __size members.
5631
5632 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
5633
5634         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5635         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5636         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5637         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5638
5639 2002-06-07  Roland McGrath  <roland@frob.com>
5640
5641         * sysdeps/mach/hurd/bits/environments.h: File removed.
5642
5643 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
5644
5645         * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
5646         * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
5647         * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
5648         * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
5649         * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
5650         (sendfile64): Likewise.
5651         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
5652         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
5653         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
5654         Likewise.
5655         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
5656
5657         * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
5658         already defined.
5659
5660 2002-06-04  Bruno Haible  <bruno@clisp.org>
5661
5662         * sysdeps/cris/stackinfo.h: New file.
5663
5664         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
5665         to an integer type before performing bit operations on it.
5666
5667 2002-06-05  Roland McGrath  <roland@frob.com>
5668
5669         * sysdeps/generic/sendfile.c: Include <errno.h>.
5670         * sysdeps/generic/sendfile64.c: Likewise.
5671
5672         * io/Makefile (routines): Add sendfile and sendfile64.
5673         (headers): Add sys/sendfile.h to the list.
5674         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
5675         * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
5676         * io/sys/sendfile.h: ... here.
5677         * sysdeps/generic/sendfile.c: New file.
5678         * sysdeps/generic/sendfile64.c: New file.
5679
5680         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
5681         Move sendfile, sendfile64 to ...
5682         * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
5683         * sysdeps/mach/hurd/sendfile.c: New file.
5684         * sysdeps/mach/hurd/sendfile64.c: New file.
5685
5686         * sysdeps/mach/nanosleep.c: New file.
5687
5688 2002-06-04  Roland McGrath  <roland@frob.com>
5689
5690         * sysdeps/alpha/elf/configure.in: New file.  Check for TLS support.
5691         * sysdeps/alpha/elf/configure: New file (generated).
5692
5693 2002-06-02  Roland McGrath  <roland@frob.com>
5694
5695         * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
5696
5697 2002-06-01  Roland McGrath  <roland@frob.com>
5698
5699         * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
5700         i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
5701
5702 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
5703
5704         * resolv/resolv.h (struct __res_state): Remove unused nstimes.
5705         Add nsmap.
5706         * resolv/res_init.c (__res_vinit): Initialize nsmap array.
5707         Remove nstimes setting.
5708         (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
5709         * resolv/res_send.c (res_nsend): Don't close unconditionally if
5710         there is mix of IPv6 and IPv4 nameservers.
5711         Use nsmap array to find free slots and preserve nameserver ordering.
5712         Fix RES_ROTATE.
5713
5714 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
5715
5716         * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
5717         use this header with LFS.
5718
5719         * po/sk.po: Update from translation team.
5720
5721 2002-05-28  Andreas Schwab  <schwab@suse.de>
5722
5723         * sysdeps/generic/readelflib.c (process_elf_file): Give correct
5724         message when finding object of wrong class.
5725
5726 2002-05-28  Jakub Jelinek  <jakub@redhat.com>
5727
5728         * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
5729         Patch by <radu@netsoft.ro>.
5730
5731 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
5732
5733         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
5734         Add readahead.
5735         * sysdeps/unix/sysv/linux/readahead.c: New file.
5736         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
5737         * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
5738         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
5739         Add sendfile64 alias to sendfile syscall.
5740         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5741         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
5742         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5743         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
5744         syscall.
5745
5746         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
5747         special section for PIC register loading.
5748         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
5749
5750         * config.h.in: Define HAVE_HIDDEN.
5751         * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
5752
5753         * elf/elf.h: Correct Alpha TLS relocations according to last spec.
5754
5755 2002-05-28  Roland McGrath  <roland@frob.com>
5756
5757         * sysdeps/mach/alpha/setfpucw.c: New file.
5758
5759 2002-05-26  Roland McGrath  <roland@frob.com>
5760
5761         * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
5762         Use integer_t instead of int for IOC_VOID case.
5763
5764 2002-05-27  Alexandre Oliva  <aoliva@redhat.com>
5765
5766         * configure.in (DO_STATIC_NSS): Define if --disable-shared.
5767
5768 2002-05-26  Bruno Haible  <bruno@clisp.org>
5769
5770         * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
5771         end of the ISO-8859-7 from idx table.
5772
5773 2002-05-27  Ulrich Drepper  <drepper@redhat.com>
5774
5775         * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
5776
5777 2002-05-24  David S. Miller  <davem@redhat.com>
5778
5779         * string/bits/string2.h (memset): Do not try to optimize when
5780         not _STRING_ARCH_unaligned if GCC will do the right thing.
5781
5782 2002-05-21  Isamu Hasegawa  <isamu@yamato.ibm.com>
5783
5784         * posix/regex.c: Define `inline' as a macro into nothing for the
5785         compilers which lack the keyword.
5786         * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
5787         for the compatibility of gawk.
5788         * posix/regcomp.c: Add fake implementation of isblank() for the
5789         environments which lack the function.
5790         Don't use free_charset() in case of non-i18n envs.
5791         (build_range_exp): Don't use i18n related code in case of non-i18n
5792         envs.
5793         (build_collating_symbol): Likewise.
5794         (build_equiv_class): Likewise.
5795         (build_charclass): Likewise.
5796         (re_compile_fastmap_iter): Likewise.
5797         (parse_bracket_exp): Likewise.
5798         (build_word_op): Likewise.
5799         (regfree): Don't use free_charset() in case of non-i18n envs.
5800         * posix/regex_internal.h: Remove COMPLEX_BRACKET from
5801         re_token_type_t in case of non-i18n envs.
5802         Don't define re_charset_t in case of non-i18n envs.
5803         Change the type of wcs of re_string_t from wchar_t to wint_t,
5804         since we store also WEOF.
5805         * posix/regex_internal.c: (re_string_realloc_buffers): Change
5806         the type of wcs of re_string_t from wchar_t to wint_t.
5807         (re_string_reconstruct): Likewise.
5808         (create_ci_newstate): Don't use i18n related code in case of
5809         non-i18n envs.
5810         (create_cd_newstate): Likewise.
5811
5812 2002-05-24  Ulrich Drepper  <drepper@redhat.com>
5813
5814         * iconv/loop.c: Fix typo.
5815
5816 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
5817
5818         * inet/ether_line.c (ether_line): Fix a typo causing only
5819         lower 4 bits of each ethernet address byte being assigned.
5820         Don't modify what line points to.
5821         * inet/tst-ether_aton.c (main): Add ether_line tests.
5822
5823 2002-05-23  Marcus Brinkmann  <marcus@gnu.org>
5824
5825         * manual/filesys.texi: Don't make readlink example leak memory
5826         when readlink fails.
5827
5828 2002-05-20  Ulrich Drepper  <drepper@redhat.com>
5829
5830         * iconv/loop.c: Fix condition for defining unaligned loop.  Add
5831         some more security checks.
5832
5833 2002-05-17  David S. Miller  <davem@redhat.com>
5834
5835         * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
5836
5837 2002-05-16  David S. Miller  <davem@redhat.com>
5838
5839         * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
5840         (elf_machine_dynamic): Use it to force PIC register to be loaded.
5841         (elf_machine_load_address): Likewise.
5842         * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
5843
5844         * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
5845         is unaligned, do not forget to fully initialize %g1 magic value.
5846
5847         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
5848         register definitions and provide 32-bit variants of structures
5849         during 64-bit builds.
5850
5851         * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
5852         * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
5853         * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
5854         * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
5855         _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
5856         (_FP_FROM_INT): Perform right shifts on unsigned integer type.
5857         Do not clear implicit one bit here, it must be done post-rounding.
5858         Only pad to the left using left shift if value uses less than the
5859         available fractional bits.
5860
5861 2002-05-20  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5862
5863         * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
5864         instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
5865         (shared-only-routines): Likewise.
5866         * sysdeps/powerpc/libgcc-compat.c: New file.
5867         * sysdeps/wordsize-32/cmpdi2.c: Removed.
5868         * sysdeps/wordsize-32/fixdfdi.c: Removed.
5869         * sysdeps/wordsize-32/fixsfdi.c: Removed.
5870         * sysdeps/wordsize-32/shdi3.c: Removed.
5871
5872 2002-05-16  Bruno Haible  <bruno@clisp.org>
5873
5874         * MakeTAGS (libc.pot): Don't sort the output.
5875         * po/header.pot: Update to match xgettext 0.11 output.
5876
5877 2002-05-16  Bruno Haible  <bruno@clisp.org>
5878
5879         * MakeTAGS (subdirs): Remove duplicates.
5880
5881 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
5882
5883         * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
5884         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
5885         alias.
5886
5887 2002-05-19  Andreas Jaeger  <aj@suse.de>
5888
5889         * sysdeps/unix/sysv/linux/configure.in: Warn against an
5890         installation in /usr/local.
5891
5892 2002-05-16  Bruno Haible  <bruno@clisp.org>
5893
5894         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
5895         string as argument of #error.
5896
5897 2002-05-15  Ulrich Drepper  <drepper@redhat.com>
5898
5899         * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
5900         don't define static.  Remove old __realpath function.  TC1 of
5901         POSIX 2001 will allow the second parameter to be NULL.
5902         * stdlib/test-canon.c: Comment out test for NULL as second
5903         parameter of realpath.
5904
5905         * time/offtime.c (__offtime): Set errno if overflow is detected.
5906
5907         * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
5908         * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
5909         dl-brk and dl-sbrk.
5910
5911         * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
5912         (fdimf): Likewise.
5913
5914 2002-05-15  Roland McGrath  <roland@frob.com>
5915
5916         * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
5917
5918 2002-05-12  Bruno Haible  <bruno@clisp.org>
5919
5920         * iconvdata/testdata/EUC-JISX0213: New file.
5921         * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
5922         * iconvdata/testdata/SHIFT_JISX0213: New file.
5923         * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
5924         * iconvdata/testdata/ISO-2022-JP-3: New file.
5925         * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
5926         * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
5927         * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
5928         contains comments indicating precomposed characters.
5929
5930 2002-04-21  Bruno Haible  <bruno@clisp.org>
5931
5932         * iconvdata/iso-2022-jp-3.c: New file.
5933         * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
5934         * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
5935         (LDFLAGS-ISO-2022-JP-3.so): New variable.
5936         (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
5937         (distribute): Add iso-2022-jp-3.c.
5938
5939 2002-05-12  Bruno Haible  <bruno@clisp.org>
5940
5941         * iconvdata/tst-table-to.c (main): Restore handling of
5942         transliterations, broken by last patch.
5943
5944 2002-05-12  Bruno Haible  <bruno@clisp.org>
5945
5946         * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
5947
5948 2002-05-12  Bruno Haible  <bruno@clisp.org>
5949
5950         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
5951         when there is not enough room in the output buffer.
5952         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5953
5954 2002-04-20  Bruno Haible  <bruno@clisp.org>
5955
5956         * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
5957         macros.
5958         (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
5959         Also make this macro work if FROM_DIRECTION evaluates to 0.
5960         (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
5961         (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
5962         of consume_incomplete.
5963         * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
5964         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
5965         4, not 8.
5966         * iconvdata/cp1258.c: Likewise.
5967         * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
5968         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
5969         not 2.
5970         * iconvdata/ibm933.c: Likewise.
5971         * iconvdata/ibm935.c: Likewise.
5972         * iconvdata/ibm937.c: Likewise.
5973         * iconvdata/ibm939.c: Likewise.
5974         * iconvdata/iso-2022-cn.c: Define
5975         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5976         {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
5977         * iconvdata/iso-2022-cn-ext.c: Likewise.
5978         * iconvdata/iso-2022-jp.c: Define
5979         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5980         {MIN,MAX}_NEEDED_{FROM,TO}.
5981         * iconvdata/tcvn5712-1.c: Define
5982         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5983         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
5984         * iconvdata/euc-jisx0213.c: Define
5985         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5986         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
5987         * iconvdata/shift_jisx0213.c: Likewise.
5988
5989 2002-05-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5990
5991         * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
5992         shdi3, fixdfdi, fixsfdi in csu dir.
5993         (shared-only-routines): Likewise.
5994         * sysdeps/wordsize-32/cmpdi2.c: New file.
5995         * sysdeps/wordsize-32/shdi3.c: New file.
5996         * sysdeps/wordsize-32/fixdfdi.c: New file.
5997         * sysdeps/wordsize-32/fixsfdi.c: New file.
5998         * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
5999         __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
6000         __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
6001
6002         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
6003         Only use va_arg if the argument will be used [PR libc/3259].
6004
6005 2002-05-06  Michael A. Schmidt  <mmaass@us.ibm.com>
6006
6007         * catgets/catgets.c (catopen): Free buffer if internal catalog
6008         open fails.
6009
6010 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
6011
6012         * debug/xtrace.sh: Make more robust.  For realtime tracking use
6013         non-buffering methods.
6014         * debug/pcprofiledump.c: Implement -u option.
6015         Patch by Roger Luethi <rl@hellgate.ch>.
6016
6017 2002-05-11  Jakub Jelinek  <jakub@redhat.com>
6018
6019         * include/netinet/in.h (bindresvport_internal): Add prototype.
6020         * include/rpc/auth.h  (authunix_create_internal,
6021         authunix_create_default_internal, authnone_create_internal,
6022         authdes_pk_create_internal): Add prototypes.
6023         * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
6024         clntudp_create_internal, clntudp_bufcreate_internal,
6025         clntunix_create_internal): Add prototypes.
6026         * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
6027         svc_getreq_internal, svc_getreq_common_internal,
6028         svc_getreqset_internal, svc_getreq_poll_internal,
6029         svc_register_internal, svc_unregister_internal,
6030         svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
6031         * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
6032         * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
6033         __setsockopt, __getsockname, __bind, __listen): Add prototypes.
6034         * inet/rexec.c (rexec_af): Use __listen and __getsockname.
6035         * inet/rcmd.c (rcmd_af): Use __listen.
6036         (rresvport_af): Use __bind.
6037         * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
6038         authunix_create, authunix_create_default, authnone_create,
6039         authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
6040         clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
6041         svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
6042         svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
6043         _authenticate, add INTDEF after such function definitions.
6044         Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
6045         __setsockopt, __getsockname instead of non-__ variants.
6046         * sunrpc/pmap_rmt.c: Likewise.
6047         * sunrpc/rtime.c: Likewise.
6048         * sunrpc/svc_udp.c: Likewise.
6049         * sunrpc/clnt_unix.c: Likewise.
6050         * sunrpc/svc_unix.c: Likewise.
6051         * sunrpc/bindrsvprt.c: Likewise.
6052         * sunrpc/svc_tcp.c: Likewise.
6053         * sunrpc/auth_none.c: Likewise.
6054         * sunrpc/clnt_raw.c: Likewise.
6055         * sunrpc/clnt_tcp.c: Likewise.
6056         * sunrpc/auth_unix.c: Likewise.
6057         * sunrpc/key_call.c: Likewise.
6058         * sunrpc/clnt_gen.c: Likewise.
6059         * sunrpc/pm_getmaps.c: Likewise.
6060         * sunrpc/clnt_simp.c: Likewise.
6061         * sunrpc/pmap_clnt.c: Likewise.
6062         * sunrpc/svc_run.c: Likewise.
6063         * sunrpc/svc.c: Likewise.
6064         * sunrpc/svc_simple.c: Likewise.
6065         * sunrpc/pm_getport.c: Likewise.
6066         * sunrpc/auth_des.c: Likewise.
6067         * sunrpc/svc_auth.c: Likewise.
6068         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
6069         __register_frame_info_table_bases, __deregister_frame_info_bases):
6070         Add INTDEF.
6071         (__register_frame_info_bases_internal,
6072         __register_frame_info_table_bases_internal,
6073         __deregister_frame_info_bases_internal): Add prototypes.
6074         (__register_frame_info, __register_frame): Use INTUSE in call to
6075         __register_frame_info_bases.
6076         (__register_frame_info_table): Similarly.
6077         (__deregister_frame_info, __deregister_frame): Similarly.
6078         * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
6079         sendto as weak alias.
6080         * sysdeps/mach/hurd/sendto.c: Likewise.
6081         * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
6082         recvfrom as weak alias.
6083         * sysdeps/mach/hurd/recvfrom.c: Likewise.
6084         * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
6085         * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
6086         recvmsg as weak alias.
6087         * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
6088         * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
6089         sendmsg as weak alias.
6090         * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
6091         * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
6092         setsockopt, add setsockopt as weak alias.
6093         * sysdeps/mach/hurd/setsockopt.c: Likewise.
6094         * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
6095         weak alias.
6096         * sysdeps/mach/hurd/bind.c: Likewise.
6097         * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
6098         as weak alias.
6099         * sysdeps/mach/hurd/listen.c: Likewise.
6100         * sysdeps/generic/getsockname.c (__getsockname): Renamed from
6101         getsockname, add getsockname as weak alias.
6102         * sysdeps/mach/hurd/getsockname.c: Likewise.
6103         * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
6104         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
6105         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
6106         * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
6107         __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
6108         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
6109         Add aliases.
6110         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6111         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6112         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6113         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6114         * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
6115         * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
6116         * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
6117         * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
6118         * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
6119         * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
6120         * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
6121         * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
6122
6123 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
6124
6125         * locale/programs/localedef.h (show_archive_content): Add verbose
6126         argument.
6127         * locale/programs/localedef.c (main): Adjust caller.
6128         * locale/programs/locarchive.c (struct nameent, struct dataent): New
6129         types.
6130         (nameentcmp, dataentcmp): New functions.
6131         (xstrcmp): Remove.
6132         (show_archive_content): Print verbose listing with --list-archive -v.
6133
6134 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
6135
6136         * locale/programs/locarchive.c (open_archive): Take extra argument
6137         readonly.  If true open file with O_RDONLY and don't create the
6138         archive if it doesn't exist.
6139         Adapt all callers.
6140         (close_archive): Don't do anything if fd element is -1.
6141         * locale/programs/localedef.h (open_archive): Adjust prototype.
6142         * locale/programs/locfile.c (write_all_categories): Adjust open_archive
6143         call.
6144
6145         * malloc/malloc.c (__posix_memalign): Correct check for size of
6146         alignment value [PR libc/3444].
6147
6148         * include/stdio.h: Remove references to old stdio implementation.
6149
6150         * libio/Makefile (bug-ungetwc2-ENV): Define.
6151
6152 2002-05-13  Roland McGrath  <roland@frob.com>
6153
6154         * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
6155
6156         * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
6157
6158 2002-05-13  Marcus Brinkmann  <marcus@gnu.org>
6159
6160         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
6161         Allocate three, not two, more than LEN when appending '/.'.
6162         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.  Don't check
6163         if NAME ends with '/.' if it is shorter than 2 chars.
6164
6165 2002-05-12  Roland McGrath  <roland@frob.com>
6166
6167         * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
6168         files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
6169
6170         * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
6171         file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
6172
6173 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
6174
6175         * sysdeps/ia64/Makefile: Remove extra endif.
6176         * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
6177
6178 2002-05-10  Andreas Schwab  <schwab@suse.de>
6179
6180         * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
6181
6182 2002-05-09  Andreas Jaeger  <aj@suse.de>
6183
6184         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New file.
6185         * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
6186         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
6187
6188         * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
6189         * sysdeps/wordsize-64/glob.c: ...here.
6190         * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
6191         * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
6192         * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
6193
6194 2002-05-08  Roland McGrath  <roland@frob.com>
6195
6196         * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
6197         O_NOTRANS flag in "." lookup.
6198
6199 2002-05-05  Ulrich Drepper  <drepper@redhat.com>
6200
6201         * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
6202
6203 2002-05-04  Ulrich Drepper  <drepper@redhat.com>
6204
6205         * locale/duplocale.c (__duplocale): Update special members only
6206         when allocation succeeded.
6207
6208 2002-05-03  Roland McGrath  <roland@frob.com>
6209
6210         * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
6211         we can only build libc.so.0.3(GLIBC_2.2.6) now.
6212
6213 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
6214
6215         * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
6216         * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
6217         __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
6218         * sysdeps/ia64/ia64libgcc.S: New file.
6219
6220 2002-05-02  Ulrich Drepper  <drepper@redhat.com>
6221
6222         * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
6223
6224         * malloc/memusage.c: Distinguish anonymous mmap.
6225
6226 2002-05-01  Roland McGrath  <roland@frob.com>
6227
6228         * sysdeps/mach/hurd/close.c: #undef __close before function defn,
6229         and use INTDEF on it.
6230         * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
6231
6232         * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
6233
6234         * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
6235
6236 2002-05-01  Ulrich Drepper  <drepper@redhat.com>
6237
6238         * malloc/memusage.c: Add support for tracking mmap & friends.
6239         * malloc/memusage.sh: Implement -m/--mmap option.
6240
6241 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
6242
6243         * locale/programs/locarchive.c (create_archive): Add archivefname
6244         argument, create fname from it.
6245         (enlarge_archive): Honour output_prefix.
6246         (open_archive): Likewise.
6247
6248 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
6249
6250         * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
6251         too many stpcpy macros.
6252
6253 2002-04-26  Bruno Haible  <bruno@clisp.org>
6254
6255         * locale/programs/ld-collate.c (collate_read): Cast first argument
6256         for "%.*s" to int.
6257
6258 2002-04-26  Bruno Haible  <bruno@clisp.org>
6259
6260         * include/libintl.h (__ngettext, __dngettext, __dcngettext,
6261         __dcngettext_internal): New declarations.
6262         (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
6263         attribute declarations.
6264
6265 2002-04-30  Roland McGrath  <roland@frob.com>
6266
6267         Removed old GNU stdio implementation; GNU libio is now the only option.
6268         * configure.in: Removed --enable-libio option and @stdio@ subst var.
6269         Define USE_IN_LIBIO unconditionally.
6270         * configure: Regenerated.
6271         * Makeconfig (stdio): Set to libio by default.
6272         * config.make.in (stdio): Variable removed.
6273         * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
6274         * sysdeps/unix/sysv/linux/configure: Regenerated.
6275         * sysdeps/mach/hurd/configure.in: Don't test $stdio.
6276         * sysdeps/mach/hurd/configure: Regenerated.
6277         * stdio/.cvsignore: File removed.
6278         * stdio/Makefile: File removed.
6279         * stdio/Versions: File removed.
6280         * stdio/__fbufsize.c: File removed.
6281         * stdio/__flbf.c: File removed.
6282         * stdio/__fpending.c: File removed.
6283         * stdio/__fpurge.c: File removed.
6284         * stdio/__freadable.c: File removed.
6285         * stdio/__freading.c: File removed.
6286         * stdio/__fsetlocking.c: File removed.
6287         * stdio/__fwritable.c: File removed.
6288         * stdio/__fwriting.c: File removed.
6289         * stdio/clearerr.c: File removed.
6290         * stdio/fclose.c: File removed.
6291         * stdio/fcloseall.c: File removed.
6292         * stdio/feof.c: File removed.
6293         * stdio/ferror.c: File removed.
6294         * stdio/fflush.c: File removed.
6295         * stdio/fgetc.c: File removed.
6296         * stdio/fgetpos.c: File removed.
6297         * stdio/fgets.c: File removed.
6298         * stdio/fileno.c: File removed.
6299         * stdio/fmemopen.c: File removed.
6300         * stdio/fopen.c: File removed.
6301         * stdio/fopncook.c: File removed.
6302         * stdio/fputc.c: File removed.
6303         * stdio/fputs.c: File removed.
6304         * stdio/fread.c: File removed.
6305         * stdio/freopen.c: File removed.
6306         * stdio/fseek.c: File removed.
6307         * stdio/fsetpos.c: File removed.
6308         * stdio/ftell.c: File removed.
6309         * stdio/fwrite.c: File removed.
6310         * stdio/getc.c: File removed.
6311         * stdio/getchar.c: File removed.
6312         * stdio/getdelim.c: File removed.
6313         * stdio/gets.c: File removed.
6314         * stdio/glue.c: File removed.
6315         * stdio/internals.c: File removed.
6316         * stdio/linewrap.c: File removed.
6317         * stdio/linewrap.h: File removed.
6318         * stdio/memstream.c: File removed.
6319         * stdio/newstream.c: File removed.
6320         * stdio/obstream.c: File removed.
6321         * stdio/putc.c: File removed.
6322         * stdio/putchar.c: File removed.
6323         * stdio/puts.c: File removed.
6324         * stdio/rewind.c: File removed.
6325         * stdio/setbuf.c: File removed.
6326         * stdio/setbuffer.c: File removed.
6327         * stdio/setlinebuf.c: File removed.
6328         * stdio/setvbuf.c: File removed.
6329         * stdio/stdio.h: File removed.
6330         * stdio/ungetc.c: File removed.
6331         * stdio/vasprintf.c: File removed.
6332         * stdio/vscanf.c: File removed.
6333         * stdio/vsnprintf.c: File removed.
6334         * stdio/vsprintf.c: File removed.
6335         * stdio/vsscanf.c: File removed.
6336         * sysdeps/generic/defs.c: File removed.
6337         * sysdeps/generic/fdopen.c: File removed.
6338         * sysdeps/generic/pipestream.c: File removed.
6339         * sysdeps/generic/stdio_init.c: File removed.
6340         * sysdeps/generic/sysd-stdio.c: File removed.
6341         * sysdeps/generic/vdprintf.c: File removed.
6342         * sysdeps/mach/hurd/defs.c: File removed.
6343         * sysdeps/mach/hurd/fdopen.c: File removed.
6344         * sysdeps/mach/hurd/pipestream.c: File removed.
6345         * sysdeps/mach/hurd/stdio_init.c: File removed.
6346         * sysdeps/mach/hurd/sysd-stdio.c: File removed.
6347         * sysdeps/mach/hurd/vdprintf.c: File removed.
6348         * sysdeps/posix/defs.c: File removed.
6349         * sysdeps/posix/fdopen.c: File removed.
6350         * sysdeps/posix/pipestream.c: File removed.
6351         * sysdeps/posix/stdio_init.c: File removed.
6352         * sysdeps/posix/vdprintf.c: File removed.
6353         * sysdeps/unix/pipestream.c: File removed.
6354         * sysdeps/unix/sysv/sysd-stdio.c: File removed.
6355         * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
6356         * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
6357
6358 2002-04-29  Roland McGrath  <roland@frob.com>
6359
6360         * include/libc-symbols.h (link_warning): Use `unused' attribute.
6361
6362 2002-04-28  Ulrich Drepper  <drepper@redhat.com>
6363
6364         * sysdeps/generic/tls.h: Describe what must be defined.
6365
6366         * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
6367         glob_in_dir [PR libc/3385].
6368         * posix/globtest.sh: Add test case.
6369
6370         * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
6371         //TRANSLIT twice.
6372
6373 2002-04-27  Ulrich Drepper  <drepper@redhat.com>
6374
6375         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
6376         _internal symbol handling.
6377         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6378
6379 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
6380
6381         * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
6382         * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
6383
6384 2002-04-26  Isamu Hasegawa  <isamu@yamato.ibm.com>
6385
6386         * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
6387         not _LIBC and RE_ENABLE_I18N.
6388         (build_range_exp): Implement for not _LIBC.
6389         (build_collating_symbol): Likewise.
6390         (parse_bracket_exp): Unify redundant error handlings.
6391         Don't erase mbcset for non matching list in multibyte envs.
6392         (build_word_op): Add '_' to matching list for \w operator.
6393         * posix/regex_internal.c (re_string_construct): Invoke
6394         build_upper_buffer in case of not RE_ENABLE_I18N.
6395         (re_string_reconstruct): Don't touch cur_state in case of not
6396         RE_ENABLE_I18N.
6397         * posix/regex_internal.h (attribute_hidden): New macro in case of
6398         not _LIBC.
6399         (re_charset_t): Define range_starts/ends in case of not _LIBC.
6400         * posix/regexec.c (sift_states_iter_mb): Hide in case of not
6401         RE_ENABLE_I18N.
6402         (transit_state_mb): Likewise.
6403         (check_node_accept_bytes): Implement the code evaluating range
6404         expression in case of not _LIBC.
6405         (find_collation_sequence_value): Hide in case of not _LIBC.
6406
6407 2002-04-26  Jakub Jelinek  <jakub@redhat.com>
6408
6409         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
6410         i386/semctl.c.
6411         (__old_semctl, __new_semctl): Only use va_arg if the argument will
6412         be used.
6413
6414 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
6415
6416         * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
6417
6418         * sysdeps/ia64/strncpy.S: Fix recovery code.
6419         Patch by David Mosberger <davidm@hpl.hp.com>.
6420
6421 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6422
6423         * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
6424         GLIBC_2.2.6.
6425
6426 2002-04-14  Bruno Haible  <bruno@clisp.org>
6427
6428         * posix/regex.c (re_max_failures): Add back symbol for binary
6429         compatibility.
6430
6431 2002-04-22  Isamu Hasegawa  <isamu@yamato.ibm.com>
6432
6433         * posix/regcomp.c (re_compile_internal): Adapt it to new interface
6434         of buffer building functions.
6435         * posix/regex_internal.c (re_string_allocate): New function.
6436         (re_string_realloc_buffers): New function.
6437         (re_string_skip_chars): New function.
6438         (re_string_reconstruct): New function.
6439         (re_string_construct): Adapt it to new interface of buffer building
6440         functions.
6441         (re_string_construct_common): Likewise.
6442         (build_wcs_buffer): Likewise.
6443         (build_wcs_upper_buffer): Likewise.
6444         (build_upper_buffer): Likewise.
6445         (re_string_translate_buffer): Likewise.
6446         (re_string_context_at): Adapt it to variable length buffers.
6447         * posix/regex_internal.h (re_string_t): Add new fields to handle
6448         variable length buffers.
6449         (re_match_context_t): Likewise.
6450         * posix/regexec.c (re_search_internal): Adapt it to new interface
6451         of re_string_t and re_match_context_t.
6452         (acquire_init_state_context): Likewise.
6453         (check_matching): Likewise.
6454         (check_halt_state_context): Likewise.
6455         (proceed_next_node): Likewise.
6456         (set_regs): Likewise.
6457         (sift_states_backward): Likewise.
6458         (clean_state_log_if_need): Likewise.
6459         (sift_states_iter_mb): Likewise.
6460         (sift_states_iter_bkref): Likewise.
6461         (add_epsilon_backreference): Likewise.
6462         (transit_state): Likewise.
6463         (transit_state_sb): Likewise.
6464         (transit_state_mb): Likewise.
6465         (transit_state_bkref): Likewise.
6466         (transit_state_bkref_loop): Likewise.
6467         (check_node_accept): Likewise.
6468         (match_ctx_init): Likewise.
6469         (extend_buffers): New function.
6470
6471 2002-04-21  Bruno Haible  <bruno@clisp.org>
6472
6473         * iconvdata/tst-table.sh: For the second check, use the truncated
6474         GB18030 charmap table, like for the first check.
6475
6476 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6477
6478         * elf/dl-load.c (open_verify): Correct __lseek parameters.
6479         Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
6480
6481 2002-04-23  H.J. Lu  <hjl@gnu.org>
6482
6483         * include/math.h (isfinite): Fix a typo.
6484
6485 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6486
6487         * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
6488         which is created by the test suite.
6489
6490 2002-04-20  Bruno Haible  <bruno@clisp.org>
6491
6492         * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
6493         (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
6494
6495 2002-04-20  Bruno Haible  <bruno@clisp.org>
6496
6497         * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
6498         to avoid gcc warning.
6499
6500 2002-04-20  Bruno Haible  <bruno@clisp.org>
6501
6502         * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
6503         of data->__statep->__count.
6504
6505 2002-04-20  Bruno Haible  <bruno@clisp.org>
6506
6507         * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
6508         tag characters.
6509         * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
6510
6511 2002-04-24  Roland McGrath  <roland@frob.com>
6512
6513         * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
6514         use END macro instead of our own .end directive.
6515         Use `callsys' insn mnemonic instead of `call_pal'.
6516
6517         * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
6518
6519         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
6520         macro; we need this for Hurd.
6521
6522         Log entry was missing for 2002/03/24 commit of rev 1.8,
6523         goes with 2002-03-17 changes.
6524         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
6525         (sysdep_routines): Append ioperm here.
6526         (sysdep_headers): Append sys/io.h here.
6527
6528 2002-04-23  Roland McGrath  <roland@frob.com>
6529
6530         * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
6531         * sysdeps/mach/hurd/sendto.c: Likewise.
6532         * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
6533         * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
6534         * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
6535
6536 2002-04-22  Roland McGrath  <roland@frob.com>
6537
6538         * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
6539         failure from i386_io_perm_* RPCs to ENOSYS.
6540
6541 2002-04-22  Andreas Jaeger  <aj@suse.de>
6542
6543         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
6544
6545         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
6546
6547         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
6548         register instead of destroying %rbx.
6549
6550 2002-04-21  Ulrich Drepper  <drepper@redhat.com>
6551
6552         * string/string.h: Declare strerror_r also for XPG6.
6553
6554 2002-04-19  Roland McGrath  <roland@frob.com>
6555
6556         * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
6557
6558 2002-04-20  Ulrich Drepper  <drepper@redhat.com>
6559
6560         * Makefile: Add handling of xtests and xcheck targets.
6561         * MakeTAGS: Likewise.
6562         * Makeconfig: Likewise.
6563         * Makerules: Likewise.
6564         * Rules: Likewise.
6565         * manual/Makefile: Likewise.
6566         * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
6567         * sunrpc/thrsvc.c: New file.  By Zack Weinberg.
6568
6569 2002-04-11  Zack Weinberg  <zack@codesourcery.com>
6570
6571         * include/rpc/rpc.h (struct rpc_thread_variables): Remove
6572         authnone_private_s.
6573         * sunrpc/auth_none.c: Include bits/libc-lock.h.
6574         Delete #ifdef _RPC_THREAD_SAFE_ block.
6575         (authnone_private): Make a struct, not a pointer to struct.
6576         (authnone_private_guard): New once-control variable.
6577         (authnone_create_once): New function, split out of
6578         authnone_create.  No need to allocate memory.
6579         (authnone_create): Just call authnone_create_once via
6580         __libc_once, then return &authnone_private->no_client.
6581         (authnone_marshal): Access private data via CLIENT argument,
6582         not authnone_private pointer.
6583         Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
6584         * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
6585         authnone_private_s.
6586
6587 2002-04-12  H.J. Lu  <hjl@gnu.org>
6588
6589         * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
6590
6591 2002-04-18  Bruno Haible  <bruno@clisp.org>
6592
6593         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
6594         FROM_DIRECTION): Make the FROM direction stateless.
6595         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
6596         FROM_DIRECTION): Likewise.
6597
6598 2002-04-15  Bruno Haible  <bruno@clisp.org>
6599
6600         * iconvdata/JISX0213.TXT: New file.
6601         * iconvdata/jisx0213.h: New file.
6602         * iconvdata/jisx0213.c: New file.
6603         * iconvdata/euc-jisx0213.c: New file.
6604         * iconvdata/shift_jisx0213.c: New file.
6605         * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
6606         * iconvdata/EUC-JISX0213.precomposed: New file.
6607         * iconvdata/SHIFT_JISX0213.precomposed: New file.
6608         * iconvdata/SHIFT_JISX0213.irreversible: New file.
6609         * iconvdata/tst-table-to.c (main): Make it work for encodings for
6610         which the "to" direction is stateful.
6611         * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
6612         * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
6613         SHIFT_JISX0213.
6614         (libJISX0213-routines): New variable.
6615         (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
6616         (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
6617         (LDFLAGS-libJISX0213.so): New variable.
6618         (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
6619         SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
6620         jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
6621
6622 2002-04-15  Bruno Haible  <bruno@clisp.org>
6623
6624         * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
6625         uint32_t.  Update to Unicode 3.2.
6626         (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
6627         (BODY for TO_LOOP): Handle the ASCII range specially.
6628         * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
6629         * iconvdata/testdata/BIG5HKSCS: Remove a character.
6630         * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
6631
6632 2002-04-15  Bruno Haible  <bruno@clisp.org>
6633
6634         * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
6635         __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
6636
6637 2002-04-15  Bruno Haible  <bruno@clisp.org>
6638
6639         * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
6640         (ucs4_to_cns11643): Update.
6641         * iconvdata/cns11643.c: Update to Unicode 3.2.
6642         (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
6643         __cns11643_from_ucs4p2_tab): Regenerated.
6644         (__cns11643_from_ucs4p2c_tab): New array.
6645         * iconvdata/cvs11643l1.c: Update comments.
6646         * iconvdata/EUC-TW.irreversible: Remove two entries.
6647
6648 2002-04-15  Bruno Haible  <bruno@clisp.org>
6649
6650         * locale/C-translit.h.in: Update to Unicode 3.2.
6651         Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
6652         <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
6653
6654 2002-04-15  Bruno Haible  <bruno@clisp.org>
6655
6656         * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
6657         (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
6658
6659 2002-04-15  Bruno Haible  <bruno@clisp.org>
6660
6661         * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
6662         invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
6663         always one byte, not 0 bytes in some cases and 2 bytes in others.
6664
6665         * iconvdata/tst-table-from.c (main): Correct the usage message.
6666
6667 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
6668
6669         * posix/regcomp.c (parse_expression): Fix incorrect error code.
6670         (parse_dup_op): Fix error handling like "a{}".
6671         (parse_bracket_exp): Add error handling.
6672         (fetch_number): Add error handling for "a{<very_large_number>}".
6673
6674 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
6675
6676         * posix/regcomp.c (parse_bracket_symbol): Add error handling
6677         in case that the symbol name is too long.
6678         (build_charclass): Handle [:lower:]/[:uppper:] correctly
6679         in case of REG_ICASE.
6680
6681 2002-04-19  Andreas Jaeger  <aj@suse.de>
6682
6683         * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
6684         <hartvige@mips.com>.
6685
6686 2002-04-15  H.J. Lu  <hjl@gnu.org>
6687
6688         * include/math.h (__finitel_internal): Declare only if
6689         __NO_LONG_DOUBLE_MATH is not defined.
6690         (__isinfl_internal): Likewise.
6691         (__isnanl_internal): Likewise.
6692
6693         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
6694         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6695         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6696         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
6697         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6698         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6699         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6700
6701         * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
6702         __fcntl_internal.
6703
6704         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
6705         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
6706
6707 2002-04-15  Bruno Haible  <bruno@clisp.org>
6708
6709         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
6710         (BODY for TO_LOOP): Likewise.
6711         * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
6712         * iconvdata/tst-table.sh: Add support for encodings which contain
6713         precomposed Unicode characters, known to the iconv converter in both
6714         directions but not listed in the charmap.
6715         * iconvdata/IBM856.irreversible: New file.
6716         * iconvdata/IBM922.irreversible: New file.
6717         * iconvdata/IBM1132.irreversible: New file.
6718         * iconvdata/IBM1133.irreversible: New file.
6719         * iconvdata/IBM1160.irreversible: New file.
6720         * iconvdata/IBM1161.irreversible: New file.
6721         * iconvdata/IBM1163.irreversible: New file.
6722         * iconvdata/IBM1164.irreversible: New file.
6723         * iconvdata/ARMSCII-8.irreversible: New file.
6724         * iconvdata/TCVN5712-1.precomposed: New file.
6725         * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
6726         IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
6727         ARMSCII-8, TCVN5712-1.
6728         * iconvdata/Makefile (distribute): Add IBM856.irreversible,
6729         IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
6730         IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
6731         IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
6732
6733 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
6734
6735         * time/tst-mktime.c: Include <stdlib.h>.  Use %d, not %ld format
6736         for EVENING69.  Include offsets in TZ environment variable.
6737
6738 2002-04-18  Ulrich Drepper  <drepper@redhat.com>
6739
6740         * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
6741         avoid compiler warnings.
6742
6743         * locale/programs/localedef.c (main): Always call
6744         construct_output_path.
6745
6746         * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
6747
6748         * locale/programs/locfile.c (to_archive): New variable.  To collect
6749         data which has to be added to the locale archive.
6750         (write_all_categories): Take new third parameter with locale name.
6751         Unless no_archive flag set add new locale data to the archive
6752         (write_locale_data): Unless no-archive flag set store generated data
6753         in to_archive data structure instead of generation output file.
6754         Add new parameter with locale category index.
6755         * locale/programs/locfile.h: Add new parameters in declaractions of
6756         write_all_categories and write_locale_data.
6757         * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
6758         --add-to-archive, and --delete-from-archive options.  Pass extra
6759         parameter to write_all_categories.
6760         * locale/programs/localedef.h: Add prototypes for functions in
6761         locarchive.c.
6762         * locale/locarchive.h: New file.
6763         * locale/programs/locarchive.c: New file.
6764         * locale/Makefile (distribute): Add programs/locarchive.c and
6765         locarchive.h.
6766         (localedef-modules): Add md5 and locarchive.
6767         Add vpath to crypt subdir for md5.c.
6768
6769         * locale/programs/ld-address.c: Pass locale category ID as new second
6770         parameter to write_locale_data.
6771         * locale/programs/ld-collate.c: Likewise.
6772         * locale/programs/ld-ctype.c: Likewise.
6773         * locale/programs/ld-identification.c: Likewise.
6774         * locale/programs/ld-measurement.c: Likewise.
6775         * locale/programs/ld-messages.c: Likewise.
6776         * locale/programs/ld-monetary.c: Likewise.
6777         * locale/programs/ld-name.c: Likewise.
6778         * locale/programs/ld-numeric.c: Likewise.
6779         * locale/programs/ld-paper.c: Likewise.
6780         * locale/programs/ld-telephone.c: Likewise.
6781         * locale/programs/ld-time.c: Likewise.
6782
6783         * locale/simple-hash.c: Move compute_hashval function from here...
6784         * locale/hashval.h: ...to here.  New file.
6785         * locale/simple-hash.h: Add prototype for compute_hashval.
6786
6787         * include/libintl.h: Minor cleanups.
6788
6789 2002-04-16  Ulrich Drepper  <drepper@redhat.com>
6790
6791         * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
6792
6793 2002-04-15  Ulrich Drepper  <drepper@redhat.com>
6794
6795         * include/sys/stat.h: Fix typo.  Patch by HJ Lu.
6796
6797 2002-04-14  Bruno Haible  <bruno@clisp.org>
6798
6799         * locale/programs/charmap.c (charmap_read): Don't access result if
6800         result == NULL.
6801
6802 2002-02-17  Andreas Schwab  <schwab@suse.de>
6803
6804         * elf/reldep7.c: New file.
6805         * elf/reldep7mod1.c: New file.
6806         * elf/reldep7mod2.c: New file.
6807         * elf/Makefile: Add rules to build and run reldep7.
6808
6809 2002-04-14  Jakub Jelinek  <jakub@redhat.com>
6810
6811         * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
6812         the end of the function.  Pass original flags to recursive call if
6813         add_dependency failed.
6814         (_dl_lookup_versioned_symbol): Likewise.
6815
6816 2002-04-13  Jakub Jelinek  <jakub@redhat.com>
6817
6818         * time/mktime.c (__mktime_internal): If year is 69, don't bail out
6819         early, but check whether it overflowed afterwards.
6820         * time/tst-mktime.c (main): Add new tests.
6821
6822 2002-04-14  Ulrich Drepper  <drepper@redhat.com>
6823
6824         * debug/xtrace.sh: Fix program name in help message.
6825         Patch by Roger Luethi <rl@hellgate.ch>.
6826
6827         * include/sys/stat.h: Add prototypes for __lxstat_internal and
6828         __lxstat64_internal.  Add macros __lxstat and __lxstat64 if not
6829         NOT_IN_libc.
6830         * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
6831         * sysdeps/mach/hurd/lxstat.c: Likewise.
6832         * sysdeps/unix/common/lxstat.c: Likewise.
6833         * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
6834         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
6835         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
6836         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6837         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
6838         * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
6839         * sysdeps/mach/hurd/lxstat64.c: Likewise.
6840         * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
6841         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
6842
6843         * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
6844         prototypes.  Add __mbrlen and __mbrtowc macros.
6845         * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
6846         * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
6847
6848         * include/unistd.h: Add prototype for __write_internal and add
6849         __libc_write macro is SHARED.
6850         * sysdeps/generic/write.c: Use INTDEF for __write.
6851         * sysdeps/mach/hurd/write.c: Likewise.
6852         * sysdeps/unix/sysv/aix/write.c: Likewise.
6853         * sysdeps/unix/syscalls.list: Add __libc_write alias.
6854
6855         * assert/assert.c: Replace STR_N_SIZE with something usable in
6856         macro arguments.
6857         * assert/assert-perr.c: Likewise.
6858
6859         * include/sys/socket.h: Declare __libc_sa_len_internal and define
6860         SA_LEN macro to use it if not NOT_IN_libc.
6861         * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
6862
6863         * include/fcntl.h: Declare __open_internal and define __open and
6864         __libc_open macros if not NOT_IN_libc.
6865         * sysdeps/generic/open.c: Use INTDEF for __open.
6866         * sysdeps/mach/hurd/open.c: Likewise.
6867         * sysdeps/unix/sysv/aix/open.c: Likewise.
6868         * sysdeps/unix/syscalls.list: Add __open_internal alias.
6869
6870         * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
6871         has correct number.
6872
6873         * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
6874         * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
6875         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
6876         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
6877
6878         * include/wctype.h: Declare __iswalpha_l_internal,
6879         __iswdigit_l_internal, __iswspace_l_internal,
6880         __iswxdigit_l_internal, and __iswctype_internal.  Define
6881         __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
6882         __iswxdigit_l macros if not NOT_IN_libc.
6883         * wctype/iswctype.c: Use INTDEF for __iswctype.
6884         * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
6885
6886         * include/math.h: Declare __isinf_internal, __isinfl_internal,
6887         __isnan_internal, and __isnanl_internal.
6888         * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
6889         __isnan, and __isnanl.
6890         * stdio-common/printf_size.c: Likewise.
6891         * sysdeps/generic/printf_fphex.c: Likewise.
6892         * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
6893         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
6894         * sysdeps/ia64/fpu/s_isinf.S: Likewise.
6895         * sysdeps/ia64/fpu/s_isnan.S: Likewise.
6896         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
6897         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
6898         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
6899         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
6900         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
6901         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
6902         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
6903         * sysdeps/m68k/s_isinfl.c: Likewise.
6904         * sysdeps/m68k/fpu/s_isinf.c: Likewise.
6905         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
6906
6907         * include/sys/time.h: Declare __gettimeofday_internal and define
6908         __gettimeofday macro if not NOT_IN_libc.
6909         * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
6910         * sysdeps/mach/gettimeofday.c: Likewise.
6911         * sysdeps/posix/gettimeofday.c: Likewise.
6912         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
6913         * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
6914         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
6915         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
6916
6917         * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
6918         and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
6919         Remove __lstat and __fstat inline functions.
6920         * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
6921         * sysdeps/mach/hurd/fxstat.c: Likewise.
6922         * sysdeps/unix/fxstat.c: Likewise.
6923         * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
6924         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
6925         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
6926         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
6927         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
6928         * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
6929         * sysdeps/mach/hurd/fxstat64.c: Likewise.
6930         * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
6931         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
6932
6933         * include/unistd.h: Declare __getpid_internal and define
6934         __getpid macro if not NOT_IN_libc.
6935         * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
6936         * sysdeps/generic/getpid.c: Likewise.
6937         * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
6938         * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
6939
6940         * include/unistd.h: Declare __getpgid_internal and define
6941         __getpgid macro if not NOT_IN_libc.
6942         * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
6943         * sysdeps/mach/hurd/getpgid.c: Likewise.
6944         * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
6945         * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
6946         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
6947         * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
6948
6949         * include/unistd.h: Declare __getpagesize_internal and define
6950         __getpagesize macro if not NOT_IN_libc.
6951         * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
6952         __getpagesize.
6953         * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
6954         * sysdeps/mach/getpagesize.c: Likewise.
6955         * sysdeps/posix/getpagesize.c: Likewise.
6956         * sysdeps/unix/getpagesize.c: Likewise.
6957         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
6958         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
6959         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
6960         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
6961
6962 2002-04-13  Andreas Jaeger  <aj@suse.de>
6963
6964         * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
6965         as clobber to reduce register pressure.
6966         (__strpbrk_cg): Likewise.
6967         (__mempcpy_by4): Likewise.
6968         (__strstr_cg): Likewise.
6969         Add prototype for __memrchr.
6970
6971 2002-04-13  Andreas Schwab  <schwab@suse.de>
6972
6973         * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
6974         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
6975         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
6976
6977 2002-04-13  Ulrich Drepper  <drepper@redhat.com>
6978
6979         * elf/do-lookup.h [!VERSIONED]: Add new parameter flags.  Use it to
6980         check whether the caller prefers getting the most recent version of
6981         a symbol of the earliest version.
6982         * elf/dl-lookup.c: Adjust all callers of do_lookup.  Change
6983         _dl_do_lookup to also take the new parameter and pass it on.
6984         Change 'explicit' parameter of _dl_lookup_symbol and
6985         _dl_lookup_versioned_symbol to flags.  Adjust tests.
6986         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
6987         * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
6988         _dl_lookup_versioned_symbol.
6989         * elf/dl-reloc.c: Likewise.
6990         * elf/dl-runtime.c: Likewise.
6991         * elf/dl-sym.c: Likewise.
6992         * sysdeps/mips/dl-machine.h: Likewise.
6993
6994 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
6995
6996         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
6997         in a token.
6998         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
6999
7000 2002-04-10  Andreas Jaeger  <aj@suse.de>
7001
7002         * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
7003
7004         * include/argz.h: Remove extra char from last patch.
7005
7006 2002-04-09  Ulrich Drepper  <drepper@redhat.com>
7007
7008         * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
7009         * sysdeps/unix/sysv/aix/chown.c: Likewise.
7010         * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
7011         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
7012         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
7013         * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
7014         __chown_internal.
7015         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
7016
7017         * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
7018         * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
7019         * intl/ngettext.c: Likewise.
7020
7021         * include/sys/socket.h: Declare __connect_internal and define
7022         __connect macro if not NOT_IN_libc.
7023         * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
7024         * sysdeps/unix/sysv/aix/connect.c: Likewise.
7025         * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
7026
7027         * include/unistd.h: Declare __close_internal and define __close macro
7028         if not NOT_IN_libc.
7029         * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
7030         WJUMP3): Add extra parenthesis to avoid expanding element names with
7031         macors like __close.
7032         * sysdeps/unix/syscalls.list: Add __close_internal alias.
7033
7034         * include/unistd.h: Declare __dup2_internal and define __dup2 macro
7035         if not NOT_IN_libc.
7036         * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
7037         * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
7038         * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
7039
7040         * include/unistd.h: Declare __fork_internal and define __fork macro
7041         if not NOT_IN_libc.
7042         * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
7043         * sysdeps/unix/sysv/aix/fork.c: Likewise.
7044         * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
7045
7046         * include/stdio_ext.h: Declare __fsetlocking_internal and define
7047         __fsetlocking macro to use it if not NOT_IN_libc.
7048         * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
7049
7050         * libio/__fbufsize.c: Correct copyright.
7051         * libio/__flbf.c: Likewise.
7052         * libio/__fpending.c: Likewise.
7053         * libio/__fpurge.c: Likewise.
7054         * libio/__freadable.c: Likewise.
7055         * libio/__freading.c: Likewise.
7056         * libio/__fsetlocking.c: Likewise.
7057         * libio/__fwritable.c: Likewise.
7058         * libio/__fwriting.c: Likewise.
7059
7060         * include/stdio.h: Declare __asprintf_internal and define __asprintf
7061         macro to use it if not NOT_IN_libc.
7062         * stdio-common/asprintf.c: Use INTDEF for __asprintf.
7063
7064         * include/mntent.h: Declare __setmntent_internal,
7065         __getmntent_r_internal, __endmntent_internal.  Define __setmntent,
7066         __getmntent_r, and __endmntent macros to use these functions if not
7067         NOT_IN_libc.
7068         * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
7069         __endmntent.
7070
7071         * include/math.h: Declare __finite_internal, __finitef_internal, and
7072         __finitel_internal.  Redefine isfinite macro if in libc or libm using
7073         these functions.
7074         * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
7075         * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
7076         * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
7077         * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
7078         * sysdeps/i386/fpu/s_finitef.S: Likewise.
7079         * sysdeps/i386/fpu/s_finitel.S: Likewise.
7080         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
7081         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
7082         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
7083         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
7084
7085         * include/fcntl.h: Declare __fcntl_internal.  Define __fcntl macro
7086         to use this function if not NOT_IN_libc.
7087         * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
7088         * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
7089         * sysdeps/mach/hurd/fcntl.c: Likewise.
7090         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
7091         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
7092
7093         * include/argz.h: Declare __argz_count_internal and
7094         __argz_stringify_internal.
7095         * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
7096         __argz_stringify.
7097         * string/argz-count.c: Use INTDEF for __argz_count.
7098         * string/argz-stringify.c: Use INTDEF for __argz_stringify.
7099
7100         * include/stdlib.h: Declare __cxa_atexit_internal and define
7101         __cxa_atexit macro if not NOT_IN_libc.
7102         * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
7103         * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
7104
7105         * assert/assert.c: Use INTDEF for __assert_fail.
7106         * assert/__assert.c: Use INTUSE for call to __assert_fail.
7107         * include/assert.h: Declare __assert_fail_internal.
7108
7109         * extra-lib.mk: Mark assignment to lib with override.
7110
7111 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7112
7113         * Makerules: Use cppflags-iterator.mk to add defines for all test
7114         source files.
7115
7116 2002-04-08  kaz Kojima  <kkojima@rr.iij4u.or.jp>
7117
7118         * elf/elf.h: Define R_SH_TLS_xxx macros.
7119         * elf/rtld.c: Remove an extra parenthesis.
7120         * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
7121         TLS_GD macros.
7122         * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
7123         * sysdeps/sh/dl-lookupcfg.h: New file.
7124         * sysdeps/sh/dl-tls.h: New file.
7125         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
7126         ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
7127         (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
7128         R_SH_TLS_TPOFF32 relocations.
7129
7130 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7131
7132         * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
7133         of NOT_IN_LIBC.
7134         * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
7135         * include/stdlib.h: Likewise.
7136
7137 2002-04-08  Jakub Jelinek  <jakub@redhat.com>
7138
7139         * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
7140         instead of _RTLD_LOCAL.
7141         * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
7142         * include/unistd.h: Likewise.
7143         * sysdeps/generic/ldsodefs.h: Likewise.
7144
7145         * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
7146         if in libc or ld.so.
7147
7148 2002-04-08  Andreas Jaeger  <aj@suse.de>
7149
7150         * elf/cache.c (print_entry): Support x86-64.
7151
7152 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7153
7154         * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
7155         with one accessing the locale data structures directly.
7156         * stdio-common/printf-prs.c: Include localeinfo.h for new
7157         MB_CUR_MAX definition.
7158
7159         * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
7160         is the name of the source file without extension.
7161         * Makefile (distribute): Add cppflags-iterator.mk.
7162         * cppflags-iterator.mk: New file.
7163         * extra-lib.mk: For the sources of the library run
7164         cppflags-iterator.mk.
7165
7166         * include/libintl.h: Declare __dcgettext_internal and
7167         _libc_intl_domainname_internal.  Define __dcgettext using these
7168         two symbols if used in libc itself.
7169         * argp/argp-help.c: Define dgettext using __dcgettext_internal and
7170         _libc_intl_domainname_internal.
7171         * argp/argp-parse.c: Likewise.
7172         * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
7173         * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
7174         * intl/gettext.c: Likewise.
7175         * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
7176         alias.
7177         * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
7178         __dcgettext.
7179         * posix/regex_internal.c (gettext): Likewise.
7180
7181 2002-04-08  Andreas Jaeger  <aj@suse.de>
7182
7183         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
7184
7185         * sysdeps/x86_64/fpu/s_llrint.S: New file.
7186         * sysdeps/x86_64/fpu/s_llrintf.S: New file.
7187         * sysdeps/x86_64/fpu/s_llrintl.S: New file.
7188         * sysdeps/x86_64/fpu/s_lrint.S: New file.
7189         * sysdeps/x86_64/fpu/s_lrintf.S: New file.
7190         * sysdeps/x86_64/fpu/s_lrintl.S: New file.
7191
7192 2002-04-08  Roland McGrath  <roland@frob.com>
7193
7194         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
7195         widening __hurd_fail value.
7196
7197 2002-04-07  Roland McGrath  <roland@frob.com>
7198
7199         * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
7200         <mach/machine/alpha_instruction.h>.
7201         (_hurd_setup_sighandler): Take proper arguments for current decls.
7202         Update code to use _hurdsig_catch_fault.
7203         Use `callsys' instruction instead of `call_pal'.
7204         * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
7205
7206         * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
7207         (ALIGN, at, AT, fp): New macros.
7208
7209 2002-04-06  Roland McGrath  <roland@frob.com>
7210
7211         * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
7212
7213         * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
7214         (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
7215
7216         * sysdeps/mach/hurd/bind.c: Use prototype definition.
7217         * sysdeps/mach/hurd/connect.c: Likewise.
7218         * sysdeps/mach/hurd/getsockopt.c: Likewise.
7219         * sysdeps/mach/hurd/setsockopt.c: Likewise.
7220
7221         * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
7222         __msg_sig_post RPC.
7223
7224         * hurd/catch-exc.c: Use integer_t instead of int.
7225         * hurd/hurdfault.c: Likewise.
7226
7227         * sysdeps/mach/hurd/alpha/exc2signal.c
7228         (_hurd_exception2signal): Rewritten.
7229         * sysdeps/mach/hurd/alpha/longjmp-ts.c
7230         (_hurd_longjmp_thread_state): Rewritten.
7231
7232 2002-04-07  Ulrich Drepper  <drepper@redhat.com>
7233
7234         * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
7235         DB_LOOKUP_FCT prototype.
7236         * nss/getXXent_r.c: Likewise.
7237         * inet/getaliasent_r.c: Define NSS_attribute_hidden.
7238         * inet/getaliasname_r.c: Likewise.
7239         * inet/getnetbyad_r.c: Likewise.
7240         * inet/getnetbynm_r.c: Likewise.
7241         * inet/getnetent_r.c: Likewise.
7242         * inet/getproto_r.c: Likewise.
7243         * inet/getprtent_r.c: Likewise.
7244         * inet/getprtname_r.c: Likewise.
7245         * inet/getrpcbyname_r.c: Likewise.
7246         * inet/getrpcbynumber_r.c: Likewise.
7247         * inet/getrpcent_r.c: Likewise.
7248         * inet/getservent_r.c: Likewise.
7249         * inet/getsrvbynm_r.c: Likewise.
7250         * inet/getsrvbypt_r.c: Likewise.
7251         * shadow/getspent_r.c: Likewise.
7252         * shadow/getspnam_r.c: Likewise.
7253
7254         * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
7255
7256         * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
7257         Use i686-friendly PIC code.
7258         * sysdeps/i386/elf/setjmp.S: Likewise.
7259
7260         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
7261
7262         * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
7263         list.
7264         * elf/Versions: Remove it here.
7265
7266 2002-04-06  Ulrich Drepper  <drepper@redhat.com>
7267
7268         * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
7269         direction.  Reported by H . J . Lu <hjl@lucon.org>.
7270
7271 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
7272
7273         * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
7274         test just before the test runs.
7275         * intl/tst-translit.sh: Likewise.
7276         * intl/tst-codeset.sh: Likewise.
7277
7278         * timezone/zic.c: Update from tzcode2002c.
7279         * timezone/asia: Update from tzdata2002c.
7280         * timezone/backward: Likewise.
7281         * timezone/europe: Likewise.
7282         * timezone/northamerica: Likewise.
7283         * timezone/northamerica: Likewise.
7284         * timezone/northamerica: Likewise.
7285         * timezone/southamerica: Likewise.
7286         * timezone/zone.tab: Likewise.
7287
7288 2002-03-23  Jakub Jelinek  <jakub@redhat.com>
7289
7290         * sysdeps/generic/brk.c (__curbrk): Declare.
7291         * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
7292         * sysdeps/generic/dl-sbrk.c: Likewise.
7293         * sysdeps/unix/arm/dl-brk.S: New file.
7294         * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
7295         * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
7296         * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
7297         * sysdeps/unix/bsd/vax/dl-brk.S: New file.
7298         * sysdeps/unix/i386/dl-brk.S: New file.
7299         * sysdeps/unix/mips/dl-brk.S: New file.
7300         * sysdeps/unix/sparc/dl-brk.S: New file.
7301         * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
7302         * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
7303         * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
7304         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
7305
7306 2002-04-03  Andreas Schwab  <schwab@suse.de>
7307
7308         * Makefile (headers): Add gnu/lib-names.h here instead of
7309         install-others.
7310         ($(inst_includedir)/gnu/lib-names.h): Remove explicit
7311         installation rule.
7312         (install-headers): Add dependency on install-headers-nosubdir.
7313         * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
7314         instead of install-others.
7315         ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
7316         installation rule.
7317
7318 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
7319
7320         * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
7321         Reported by Sam Roberts <sroberts@uniserve.com>.
7322
7323 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
7324
7325         * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
7326         l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
7327         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7328         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7329
7330 2002-04-03  David Mosberger  <davidm@hpl.hp.com>
7331
7332         * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
7333         (RTLD_START): Ditto.
7334         (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
7335         dependency violation.
7336
7337 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
7338
7339         * time/mktime.c (__mktime_internal): Move check for year < 70 below
7340         all variable declarations.
7341
7342 2002-04-04  Andreas Schwab  <schwab@suse.de>
7343
7344         * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
7345
7346 2002-04-04  Andreas Jaeger  <aj@suse.de>
7347
7348         * sysdeps/x86_64/fpu/e_sqrt.c: New file.
7349         * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
7350
7351         * sysdeps/x86_64/fpu/s_fabs.c: New file.
7352         * sysdeps/x86_64/fpu/s_fabsf.c: New file.
7353         * sysdeps/x86_64/fpu/s_fabsl.c: New file.
7354
7355         * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
7356
7357         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
7358
7359         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
7360         * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
7361
7362         * configure.in: Handle all mips entries the same.
7363
7364         * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
7365         * sysdeps/mips/mips3/*: Likewise.
7366         * sysdeps/mips/p40/bits/endian.h: Likewise.
7367
7368 2002-04-04  Ulrich Drepper  <drepper@redhat.com>
7369
7370         * misc/dirname.c (dirname): Ignore trailing slashes at end of
7371         non-null result [PR libc/2600].
7372
7373         * misc/tst-dirname.c: Add more tests.
7374
7375 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
7376
7377         * locale/programs/charmap.c (charmap_read): If the charmap doesn't
7378         define a code_set_name provide one based on the filename.
7379
7380         * malloc/hooks.c: Define weak_variable correctly for _LIBC.
7381
7382 2001-12-28  Andreas Jaeger  <aj@suse.de>
7383
7384         * time/mktime.c (__mktime_internal): Check for year < 70
7385         [PR libc/2738].
7386
7387 2002-04-03  Andreas Jaeger  <aj@suse.de>
7388
7389         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
7390         shmat.
7391         Reported by Andi Kleen <ak@suse.de>.
7392
7393 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
7394
7395         * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
7396         * sysdeps/generic/w_lgammaf.c: Likewise.
7397         * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
7398
7399         * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
7400         Adjust for new output format of the backtrace functions.
7401
7402         * misc/syslog.c (vsyslog): Only use cleanup handler if
7403         _LIBC_REENTRANT is defined [PR libc/2924].
7404
7405         * libio/Makefile (tests): Add bug-ungetwc2.
7406         * libio/bug-ungetwc2.c: New file.
7407
7408         * manual/install.texi: Typographical and grammatical cleanup.
7409         Patch by Dennis Grace <dgrace@us.ibm.com>.
7410
7411         * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
7412         parameter if mtflag.  Patch by <jeongyun@innovay.com>.
7413
7414         * sunrpc/rpc_svcout.c (printif): Remove third parameter.  It was
7415         always "&".  Adjust callers.
7416         Add "_" prefix to several generated definitions.
7417         Patch by paul@serice.net [PR libc/3158].
7418
7419 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7420
7421         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
7422         size of _dl_arm_cap_flags.
7423         Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
7424
7425         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
7426         Define as 8.
7427
7428 2002-03-22  H.J. Lu  <hjl@gnu.org>
7429
7430         * scripts/firstversions.awk: Check the first version.
7431
7432 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7433
7434         * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
7435         dependencies must be stable to work correctly.
7436         Reported by martin.lubich@datacon.at.
7437
7438         * libio/bug-ungetwc1.c: New file.
7439         * libio/Makefile (tests): Add bug-ungetwc1.
7440
7441         * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
7442         if stream was last used for writing.
7443
7444         * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
7445         number [PR libc/3111].
7446
7447         * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
7448         to ...
7449         * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
7450
7451 2002-04-02  Jakub Jelinek  <jakub@redhat.com>
7452
7453         * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
7454         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
7455         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
7456         * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
7457         * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
7458
7459 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
7460
7461         * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
7462         dynamic tags.
7463
7464 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
7465
7466         * sysdeps/i386/fpu/s_fabs.S: New file.
7467         * sysdeps/i386/fpu/s_fabsf.S: New file.
7468         * sysdeps/i386/fpu/s_fabsl.S: New file.
7469         * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
7470         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
7471         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
7472
7473 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7474
7475         * rt/tst-shm.c (do_test): Add one more test for size of shared
7476         memory object.
7477
7478 2002-03-29  Wolfram Gloger  <wg@malloc.de>
7479
7480         * malloc/malloc.c: Add short description and prototypes for
7481         malloc_get_state, malloc_set_state and posix_memalign, for
7482         consistency and to avoid warnings with -Wstrict-prototypes.
7483         Reported by Andreas Jaeger <aj@suse.de>.
7484
7485 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7486
7487         * po/gl.po: Update from translation team.
7488
7489 2002-03-31  Roland McGrath  <roland@frob.com>
7490
7491         * hurd/hurdselect.c (_hurd_select): Fix
7492         MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
7493         Use a union rather than casts to compare mach_msg_type_t as int.
7494
7495 2002-03-25  Roland McGrath  <roland@frob.com>
7496
7497         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
7498         check off the end of NAME when it's shorter than 2 chars.
7499         Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
7500
7501 2002-03-17  Roland McGrath  <roland@frob.com>
7502
7503         * sysdeps/mach/hurd/i386/sys/io.h: New file.
7504         * sysdeps/mach/hurd/i386/ioperm.c: New file.
7505         * sysdeps/mach/hurd/i386/Dist: Add them.
7506         * sysdeps/mach/hurd/i386/Versions
7507         (libc: GLIBC_2.2.6): New set, add ioperm.
7508         * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
7509         (mach_interface_list): Check for mach_i386.defs.
7510         * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
7511         * sysdeps/mach/configure: Regenerated.
7512
7513 2002-03-22  Ulrich Drepper  <drepper@redhat.com>
7514
7515         * po/fr.po: Update from translation team.
7516
7517 2002-03-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7518
7519         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
7520         getpriority from syscalls list.
7521
7522 2002-03-28  Andreas Jaeger  <aj@suse.de>
7523
7524         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
7525         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
7526         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
7527         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
7528
7529 2002-03-27  Andreas Jaeger  <aj@suse.de>
7530
7531         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7532         sigcontext): Follow further kernel change.
7533
7534         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
7535         kernel change.
7536
7537         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
7538         Change for struct sigcontext change.
7539
7540         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7541         Follow changes in struct sigcontext.
7542
7543         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
7544         sysycall, use wrapper instead.
7545
7546 2002-03-26  Andreas Jaeger  <aj@suse.de>
7547
7548         * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
7549         read and write accesses as detailed as possible.
7550         (__memcpy_by2): Likewise.
7551         (__memcpy_g): Likewise.
7552         (memmove): Likewise.
7553         (memcmp): Likewise.
7554         (__memset_ccn_by4): Likewise.
7555         (__memset_ccn_by2): Likewise.
7556         (__memset_gcn_by4): Likewise.
7557         (__memset_gcn_by2): Likewise.
7558         (memchr): Likewise.
7559         (__memrchr): Likewise.
7560         (rawmemchr): Likewise.
7561         (__strlen_g): Likewise.
7562         (__strcpy_g): Likewise.
7563         (__mempcpy_by4): Likewise.
7564         (__mempcpy_by2): Likewise.
7565         (__mempcpy_byn): Likewise.
7566         (__stpcpy_g): Likewise.
7567         (__strncpy_by4): Likewise.
7568         (__strncpy_by2): Likewise.
7569         (__strncpy_byn): Likewise.
7570         (__strncpy_gg): Likewise.
7571         (__strcat_c): Likewise.
7572         (__strcat_g): Likewise.
7573         (__strncat_g): Likewise.
7574         (__strcmp_gg): Likewise.
7575         (__strncmp_g): Likewise.
7576         (__strchr_c): Likewise.
7577         (__strchr_g): Likewise.
7578         (__strchrnul_c): Likewise.
7579         (__strchrnul_g): Likewise.
7580         (__strrchr_c): Likewise.
7581         (__strrchr_g): Likewise.
7582         (__strrchr_c): Likewise.
7583         (__strrchr_g): Likewise.
7584         (__strcspn_c1): Likewise.
7585         (__strcspn_cg): Likewise.
7586         (__strcspn_g): Likewise.
7587         (__strcspn_g): Likewise.
7588         (__strspn_c1): Likewise.
7589         (__strspn_cg): Likewise.
7590         (__strspn_g): Likewise.
7591         (__strspn_g): Likewise.
7592         (__strpbrk_cg): Likewise.
7593         (__strpbrk_g): Likewise.
7594         (__strstr_cg): Likewise.
7595         (__strstr_g): Likewise.
7596
7597         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo.  Reported by
7598         Michal Ludvig <mludvig@suse.cz>.
7599
7600         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
7601         compatibilty, adjust for kernel changes.
7602
7603         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7604         sigcontext): Adjust for kernel changes.
7605
7606 2002-03-25  Andreas Jaeger  <aj@suse.de>
7607
7608         * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
7609         little endian.
7610         Reported by Artur Zaprzala <zybi@talex.com.pl>.
7611
7612 2002-03-24  Andreas Jaeger  <aj@suse.de>
7613
7614         * manual/memory.texi (Aligned Memory Blocks): Fix typo.
7615
7616         * stdio-common/tst-fdopen.c (main): Remove unused variable.
7617
7618         * iconv/tst-iconv3.c (main): Use correct printf strings.
7619
7620 2002-03-18  Roland McGrath  <roland@frob.com>
7621
7622         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
7623         (CMGROUP_MAX): New macro.
7624
7625 2002-03-23  Roland McGrath  <roland@frob.com>
7626
7627         * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
7628         * sysdeps/posix/shm_unlink.c: Likewise.
7629
7630 2002-03-22  Roland McGrath  <roland@frob.com>
7631
7632         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
7633         * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
7634         under --enable-libio.
7635         * sysdeps/mach/hurd/configure: Regenerated.
7636
7637 2002-03-23  Roland McGrath  <roland@frob.com>
7638
7639         * sysdeps/mach/hurd/i386/Makefile
7640         (sysdep_routines, shared-only-routines): Don't add framestate,
7641         reverting 2001-10-02 change.
7642         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
7643         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
7644         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
7645         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
7646         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
7647         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
7648         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
7649         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
7650         * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
7651         Do it here instead, only if [$(unwind-find-fde) = yes].
7652
7653 2002-03-23  Andreas Jaeger  <aj@suse.de>
7654
7655         * signal/signal.h: Fix typo. Patch by Steve Kemp
7656         <skx@tardis.ed.ac.uk>.
7657
7658 2002-03-22  Andreas Jaeger  <aj@suse.de>
7659
7660         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
7661         getresuid.
7662
7663         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7664         _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
7665         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7666         user_fpregs_struct): Rename fwd.
7667
7668         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7669         Follow sigcontext changes.
7670
7671 2002-03-22  Andreas Jaeger  <aj@suse.de>
7672
7673         * sysdeps/mips/bits/nan.h: New file.  Copy from generic one with
7674         changes for NaNs on MIPS.
7675         Patch by Hartvig Ekner <hartvige@mips.com>.
7676
7677 2002-03-21  Ulrich Drepper  <drepper@redhat.com>
7678
7679         * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
7680         Use realloc if too large.
7681         (addgrbyid): Likewise.
7682         * nscd/hstcache.c (addhstbyname): Likewise.
7683         (addhstbyaddr): Likewise.
7684         (addhstbynamev6): Likewise.
7685         (addhstbyaddrv6): Likewise.
7686         * nscd/pwdcache.c (addpwbyname): Likewise.
7687         (addpwbyuid): Likewise.
7688
7689 2002-03-21  Andreas Jaeger  <aj@suse.de>
7690
7691         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7692         _fpstate): Add separate struct for x86-64.
7693
7694         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7695         user_fpregs_struct): Change member names to follow kernel.
7696
7697 2002-03-20  Ulrich Drepper  <drepper@redhat.com>
7698
7699         * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
7700         Correctly close the UDP connection right away [PR libc/3120].
7701
7702 2002-03-20  Andreas Jaeger  <aj@suse.de>
7703
7704         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7705         user_fpregs_struct): Fix for changed kernel struct.
7706         (struct user_regs_struct): Likewise.
7707         (struct user): Likewise.
7708         Add 32-bit x86 compatibility.
7709
7710         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
7711
7712 2002-03-19  Andreas Jaeger  <aj@suse.de>
7713
7714         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
7715
7716 2002-03-18  Andreas Jaeger  <aj@suse.de>
7717
7718         * iconvdata/Makefile: Only run tests when shared libs are
7719         available.
7720
7721 2002-03-17  Andreas Jaeger  <aj@suse.de>
7722
7723         * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
7724
7725         * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
7726
7727         * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
7728         bits.
7729
7730         * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New macro.
7731         (CAUSE_SHIFT): New macro.
7732         Patch by Hartvig Ekner <hartvige@mips.com>.
7733
7734         * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
7735         * sysdeps/generic/unwind-pe.h: Likewise.
7736
7737         * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
7738         type to _IO_setb.
7739
7740         * libio/stdio.c (AL2): Define variant when visibility attribute is
7741         not supported.
7742
7743         * include/libc-symbols.h (_INTVARDEF): Define variant when
7744         visibility attribute is not supported.
7745
7746 2002-03-16  Ulrich Drepper  <drepper@redhat.com>
7747
7748         * po/fr.po: Update from translation team.
7749
7750 2002-02-25  Bruno Haible  <bruno@clisp.org>
7751
7752         * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
7753
7754 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
7755
7756         * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
7757         buffers if _IO_file_attach failed.
7758
7759         * libio/fileops.c (_IO_file_open): Close file descriptor if
7760         _IO_SEEKOFF call failed.
7761
7762 2002-03-15  H.J. Lu  <hjl@gnu.org>
7763             Ulrich Drepper  <drepper@redhat.com>
7764
7765         * configure.in: Check for availability of
7766         init_array/fini_array/preinit_array handling in binutils.
7767         * config.h.in (HAVE_INITFINI_ARRAY): New macro.
7768         * config.make.in (have-initfini-array): New variable.
7769
7770 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
7771
7772         * stdio-common/tst-printf.c (main): Comment out one test which
7773         checked the compiler's ability to fold floating-point constants
7774         but not really printf.
7775         (rfg3): Make s const.
7776         * stdio-common/tst-printf.sh: Adjust for removed test.
7777
7778         * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
7779         internal function.  Adjust for internal_function calling convention.
7780         * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
7781         as internal_function.
7782
7783         * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
7784         hidden.
7785
7786         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
7787         declaration and definition.
7788         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
7789         declaration.
7790         * nss/getXXent_r.c: Likewise.
7791         * nss/nsswitch.h (db_lookup_function): Add internal_function to
7792         definition.
7793
7794         * include/time.h: Declare __localtime_r as hidden.
7795
7796         * include/aliases.h: Declare __getaliasent_r as hidden.
7797         * include/grp.h: Declare __getgrent_r as hidden.
7798         * include/netdb.h: Declare __gethostent_r, __getnetent_r,
7799         __getservent_r, and __getprotoent_r as hidden.
7800         * include/pwd.h: Declare __getpwent_r as hidden.
7801         * include/shadow.h: Declare __getspent_r as hidden.
7802         * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
7803
7804         * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
7805         and __gconv_transliterate as hidden.
7806         Add internal_function to __gconv_get_path declaration.
7807         * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
7808         definition.  Add attribute_hidden to __gconv_read_conf definition.
7809
7810 2002-03-14  Ulrich Drepper  <drepper@redhat.com>
7811
7812         * elf/rtld.c: Declare _environ as hidden.
7813         * sysdeps/generic/dl-environ.c: Likewise.
7814         * sysdeps/generic/dl-sysdep.c: Likewise.
7815
7816         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
7817         _dl_mcount_internal as hidden.
7818
7819         * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
7820         * sysdeps/generic/dl-brk.c: New file.
7821         * sysdeps/generic/dl-sbrk.c: New file.
7822         * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
7823         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
7824
7825         * elf/dl-minimal.c (malloc): Declare _end as hidden.
7826         (__errno_location): New function.  Declare errno as hidden.
7827         * elf/rtld.c (_dl_argc): Define as hidden.
7828         (_dl_skip_args): Define as hidden.
7829         (_begin, _end): Declare as hidden.
7830         * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
7831         * sysdeps/generic/entry.h (_start): Declare as hidden.
7832         * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
7833         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
7834         _dl_runtime_resolve and _dl_runtime_profile as hidden.
7835         (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
7836
7837 2002-03-14  Roland McGrath  <roland@frob.com>
7838
7839         * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
7840
7841         * Makeconfig (%.v.i, %.v): New implicit rules.
7842         (preprocess-versions): Variable removed.
7843         ($(common-objpfx)shlib-versions.v.i): New target giving just the
7844         shlib-versions input files as dependencies.
7845         ($(common-objpfx)soversions.i): Depend on that instead of the input
7846         files.  Use it as input instead of using a pipeline.
7847         (postclean-generated): Append soversions.i, shlib-versions.v, and
7848         shlib-versions.v.i here.
7849         * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
7850         the Versions.def input files as dependencies.
7851         ($(common-objpfx)Versions.v.i): Likewise for Versions files.
7852         ($(common-objpfx)Versions.all): Depend on that instead of the input
7853         files.  Use it as input instead of using a pipeline.
7854         ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
7855         (postclean-generated): Append those .v and .v.i files here.
7856
7857 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
7858
7859         * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
7860         * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
7861         Remove.
7862
7863 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
7864
7865         * sysdeps/generic/mp_clz_tab.c: New file.
7866         * sysdeps/i386/mp_clz_tab.c: New file.
7867         * sysdeps/hppa/mp_clz_tab.c: New file.
7868         * sysdeps/powerpc/mp_clz_tab.c: New file.
7869         * stdlib/Makefile (aux): Revert last patch.
7870         * math/Makefile (gmp-objs): Likewise.
7871
7872 2002-03-13  Paul Eggert  <eggert@twinsun.com>
7873
7874         * time/strftime.c: Comment fixes for references to obsolescent
7875         standards, In most cases the simplest fix is to remove the
7876         confusing comments.  Cross-referencing all the standards properly
7877         is a bit of a pain, and it should be enough to put that info in
7878         the documentation as I did in my recent time.texi patch.
7879
7880 2002-03-13  Paul Eggert  <eggert@twinsun.com>
7881
7882         * manual/time.texi (Formatting Calendar Time):
7883         ISO C99 also specifies the E and O modifiers.
7884         %P is a GNU extension, and is not in ISO C99.
7885         Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
7886         %T is also in ISO C99.
7887         The RFC 822 example is not valid in arbitrary locales.
7888         Reword the POSIX.2 wording slightly, to make it a bit clearer
7889         that POSIX.2 formats are also supported by later POSIX versions.
7890         If a format was introduced in ISO C99 it is also required by
7891         POSIX.1-2001.
7892
7893 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
7894
7895         * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
7896         _sys_nerr_internal with INTVARDEF2.
7897         * include/libc-symbols.h (INTVARDEF2): New macro.
7898         * include/stdio.h (_sys_errlist_internal): Declare as hidden.
7899         (_sys_nerr_internal): Library.
7900
7901         * sysdeps/posix/signal.c (_sigintr): Define as hidden.
7902         * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
7903
7904         * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
7905
7906 2002-03-13  Wolfram Gloger  <wg@malloc.de>
7907
7908         * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
7909
7910 2002-03-02  Andreas Schwab  <schwab@suse.de>
7911
7912         * stdio-common/vfprintf.c (process_arg): Fix decimal format with
7913         'h' flag and positional arg.
7914         * stdio-common/tst-printf.c (rfg3): New function to test
7915         positional arguments.
7916         (main): Fix some warnings.
7917
7918 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
7919
7920         * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
7921         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
7922
7923 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
7924
7925         * grp/initgroups.c (__nss_group_data): Declare as hidden.
7926
7927         * include/locale.h (_nl_C_locobj): Declare as hidden.
7928
7929         * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
7930         * time/strptime.c (_nl_C_LC_TIME): Likewise.
7931
7932         * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
7933
7934         * include/sys/gmon.h: Declare _gmonparam as hidden.
7935
7936         * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
7937         (__ctype32_wctrans): Likewise.
7938         (__ctype32_width): Likewise.
7939
7940         * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
7941         use of __ttyname.
7942
7943         * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
7944         Define as hidden.
7945         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Define as
7946         hidden.  Change all users of these variables.
7947
7948         * posix/regex_internal.h (__re_error_msgid): Renamed from
7949         re_error_msgid.  Declare as hidden.
7950         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Declare as
7951         hidden.
7952
7953         * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
7954         (__printf_function_table): Likewise.
7955         * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
7956         hidden.
7957         (__printf_function_table): Likewise.
7958
7959         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
7960         __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
7961
7962         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
7963         * nss/nsswitch.c: Declare _nss_*_database as hidden.
7964
7965         * stdlib/wctomb.c (__no_r_state): Declare as hidden.
7966         * stdlib/mbtowc.c (__no_r_state): Define as hidden.
7967
7968 2002-03-12  Ulrich Drepper  <drepper@redhat.com>
7969
7970         * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
7971         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
7972         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
7973         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
7974         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
7975         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
7976         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
7977         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
7978         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
7979         _nl_C_LC_CTYPE_width: Declare as hidden.
7980         * include/locale.h: Declare _nl_locale_file_list.
7981         * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
7982         * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
7983         * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
7984         * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
7985         * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
7986         * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
7987         * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
7988         * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
7989         * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
7990         * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
7991         * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
7992         * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
7993         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
7994         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
7995         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
7996         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
7997         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
7998         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
7999         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
8000         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
8001         _nl_C_LC_CTYPE_width, and as hidden.
8002         * locale/findlocale.c: Declare _nl_C as hidden.
8003         * locale/newlocale.c: Likewise.
8004         * locale/setlocale.c: Define _nl_C as hidden.  Remove declaration of
8005         _nl_locale_file_list.
8006         * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
8007         _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
8008         Define _nl_C_locobj as hidden.
8009
8010         * malloc/mtrace.c (_mtrace_file): Define as hidden.
8011         (_mtrace_line): Likewise.
8012
8013         * include/time.h: Declare __mon_yday as hidden.
8014         * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
8015
8016         * libio/libioP.h: Declare __libio_codecvt as hidden.
8017         * libio/fileops.c: Declare __libio_translit as hidden.
8018         * libio/iofwide.c: Define __libio_translit as hidden.
8019
8020         * login/getutent_r.c: Define __libc_utmp_lock as hidden.
8021         * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
8022         * login/getutline_r.c: Likewise.
8023         * login/utmpname.c: Likewise.
8024
8025         * login/utmp-private.h: Declare __libc_utmp_file_functions,
8026         __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
8027         __libc_utmp_file_name as hidden.
8028
8029         * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
8030         * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
8031         * locale/freelocale.c: Likewise.
8032         * locale/lc-time.c: Likewise.
8033
8034         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
8035         (__libc_ptyname2): Likewise.
8036         * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
8037         hidden.
8038         (__libc_ptyname2): Likewise.
8039
8040         * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
8041         * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
8042         * sysdeps/generic/init-first.c: Likewise.
8043         * sysdeps/i386/init-first.c: Likewise.
8044         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
8045         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8046         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8047         * sysdeps/sh/init-first.c: Likewise.
8048         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8049         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8050
8051         * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
8052         (_itowa_upper_digits): Likewise.
8053
8054         * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
8055         * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
8056         as hidden.
8057
8058         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
8059         _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
8060         _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
8061         _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
8062
8063         * gmon/gmon.c (__bb_head): Define as hidden.
8064         * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
8065
8066         * argp/argp-parse.c (_argp_hang): Define as static.
8067
8068         * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
8069         handling in latest compilers.
8070
8071         * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
8072         define alias.
8073         * libio/fileops.c (_IO_file_jumps): Likewise.
8074         * libio/stdfiles.c (_IO_list_all): Likewise.
8075         * libio/wfileops.c (_IO_wfile_jumps): Likewise.
8076
8077         * malloc/malloc.h: Move __libc_malloc_initialized declaration to
8078         include/malloc.h.
8079         * include/malloc.h: Add __libc_malloc_initialized declaration
8080         here.  Mark variable hidden.
8081         * malloc/malloc.c: Include <malloc.h> not "malloc.h".
8082
8083         * elf/dl-open.c (__libc_argc): Declare as hidden.
8084         (__libc_argv): Likewise.
8085         * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
8086         (__libc_argv): Likewise.
8087         * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
8088         __libc_argv as hidden.
8089         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8090         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8091         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8092         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8093
8094         * include/stdlib.h (__libc_drand48_data): Declare as hidden.
8095         * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
8096         * stdlib/erand48.c: Likewise.
8097         * stdlib/jrand48.c: Likewise.
8098         * stdlib/lcong48.c: Likewise.
8099         * stdlib/lrand48.c: Likewise.
8100         * stdlib/mrand48.c: Likewise.
8101         * stdlib/nrand48.c: Likewise.
8102         * stdlib/seed48.c: Likewise.
8103         * stdlib/srand48.c: Likewise.
8104
8105         * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
8106         (_itoa_lower_digits_internal): New declaration.
8107         (_itoa_upper_digits_internal): New declaration.
8108         (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
8109         * stdio-common.h (_itoa_lower_digits_internal): New declaration.
8110         (_itoa_upper_digits_internal): New declaration.
8111         (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
8112         _itoa_lower_digits.
8113         * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
8114         * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
8115
8116         * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
8117         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
8118
8119         * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
8120         (_itowa_lower_digits): Likewise.
8121         (_itowa_upper_digits): Likewise.
8122         * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
8123         (_itowa_upper_digits): Likewise.
8124
8125         * intl/plural-exp.h (attribute_hidden): Define as empty macro if
8126         not already defined.
8127         (GERMANIC_PLURAL): Declare as hidden.
8128
8129         * posix/getopt.c (__getopt_initialized): Declare as hidden.
8130         (attribute_hidden): Define as empty macro if not already defined.
8131
8132         * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
8133         (__gconv_max_path_elem_len): Likewise.
8134         (__gconv_path_envvar): Likewise.
8135
8136         * math/Makefile (gmp-objs): Remove mp_clz_tab.
8137         * stdlib/Makefile (aux): Remove mp_clz_tab.
8138         * stdlib/mp_clz_tab.c: Removed.  Not needed anywhere.
8139
8140         * stdlib/exit.h (__exit_funcs): Declare as hidden.
8141
8142         * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
8143
8144         * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
8145         _nl_category_names, _nl_category_name_sizes, _nl_current,
8146         _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
8147
8148         * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
8149         (_nl_current_default_domain): Likewise
8150         (_nl_state_lock): Likewise.
8151         * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
8152         (_nl_current_default_domain): Likewise
8153         (_nl_state_lock): Likewise.
8154         * intl/bindtextdom.c (_nl_state_lock): Likewise.
8155
8156         * stdlib/fpioconst.h (__tens): Add attribute_hidden.
8157         (_fpioconst_pow10): Likewise.
8158
8159         * include/time.h (_tmbuf): Add attribute_hidden.
8160
8161         * time/tzset.c (tzstring_list): Define as static.
8162
8163         * include/time.h: Add attribute_hidden to __tzname_cur_max and
8164         __use_tzfile declaration.
8165
8166         * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
8167         and __wcsmbs_last_locale declaration.
8168
8169 2002-02-25  Paul Eggert  <eggert@twinsun.com>
8170
8171         * timezone/Makefile (tzbases): Move systemv from here...
8172         (tzlinks): to here, since the entries in systemv were all changed
8173         from Zone to Link lines in tz-2001a.  Bug reported (and patch
8174         tested) by Peter Breitenlohner.
8175
8176 2002-03-07  Jakub Jelinek  <jakub@redhat.com>
8177
8178         * time/tst-posixtz.c (tests): Add new tests.
8179         (main): Test whether tzset() sets daylight properly.
8180
8181 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
8182
8183         * time/tzset.c (tz_compute): Move __daylight, __tzname and
8184         __tzname_cur_max setting...
8185         (tzset_internal): ...here.
8186
8187 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
8188
8189         * time/tzset.c (compute_change): Don't return any value.
8190         (tz_compute): Likewise.  Don't handle southern hemisphere here.
8191         (__tz_convert): But here.
8192
8193 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8194
8195         * manual/examples/mkfsock.c: Include <string.h> as well.
8196         Patch by Alain De Carolis <alaind@wseurope.com>.
8197
8198 2002-03-06  Isamu Hasegawa  <isamu@yamato.ibm.com>
8199
8200         * posix/regexec.c (re_match): Fix incorrect register sizes.
8201         (re_search): Likewise.
8202
8203 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
8204
8205         * posix/regcomp.c (regfree): Remove a disused condition.
8206         * posix/regex_internal.c (re_acquire_state): Likewise.
8207         (re_acquire_state_context): Likewise.
8208         (register_state): Remove a redundant malloc invocation.
8209         * posix/regex_internal.h: (re_state_table_entry): Simplify
8210         the structure.
8211
8212 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
8213
8214         * posix/regcomp.c (regcomp): Add __builtin_expect to error
8215         handling conditions.
8216         (regerror): Likewise.
8217         (regfree): Likewise.
8218         (re_compile_internal): Likewise.
8219         (init_dfa): Likewise.
8220         (init_word_char): Likewise.
8221         (create_initial_state): Likewise.
8222         (analyze): Likewise.
8223         (analyze_tree): Likewise.
8224         (duplicate_node): Likewise.
8225         (calc_eclosure): Likewise.
8226         (calc_eclosure_iter): Likewise.
8227         (parse): Likewise.
8228         (parse_reg_exp): Likewise.
8229         (parse_branch): Likewise.
8230         (parse_expression): Likewise.
8231         (parse_subexp): Likewise.
8232         (parse_dup_op): Likewise.
8233         (parse_bracket_exp): Likewise.
8234         (build_equiv_class): Likewise.
8235         (build_charclass): Likewise.
8236         (build_word_op): Likewise.
8237         (fetch_number): Likewise.
8238         (create_tree): Likewise.
8239         (duplicate_tree): Likewise.
8240         * posix/regex.c (BE): New macro.
8241         * posix/regexec.c (re_match): Add __builtin_expect to error
8242         handling conditions.
8243         (re_match_2): Likewise.
8244         (re_search): Likewise.
8245         (re_search_internal): Likewise.
8246         (check_matching): Likewise.
8247         (proceed_next_node): Likewise.
8248         (set_regs): Likewise.
8249         (sift_states_backward): Likewise.
8250         (add_epsilon_backreference): Likewise.
8251         (transit_state): Likewise.
8252         (transit_state_sb): Likewise.
8253         (transit_state_mb): Likewise.
8254         (transit_state_bkref): Likewise.
8255         (transit_state_bkref_loop): Likewise.
8256         (build_trtable): Likewise.
8257         (group_nodes_into_DFAstates): Likewise.
8258         (match_ctx_init): Likewise.
8259         (match_ctx_add_entry): Likewise.
8260         * posix/regex_internal.c (re_string_construct): Add __builtin_expect
8261         to error handling conditions.
8262         (re_string_construct_toupper): Likewise.
8263         (build_wcs_buffer): Likewise.
8264         (build_wcs_upper_buffer): Likewise.
8265         (build_upper_buffer): Likewise.
8266         (re_string_translate_buffer): Likewise.
8267         (re_node_set_alloc): Likewise.
8268         (re_node_set_init_1): Likewise.
8269         (re_node_set_init_2): Likewise.
8270         (re_node_set_init_copy): Likewise.
8271         (re_node_set_intersect): Likewise.
8272         (re_node_set_init_union): Likewise.
8273         (re_node_set_merge): Likewise.
8274         (re_node_set_insert): Likewise.
8275         (re_dfa_add_node): Likewise.
8276         (re_acquire_state): Likewise.
8277         (re_acquire_state_context): Likewise.
8278         (create_new_state_common): Likewise.
8279         (register_state): Likewise.
8280         (create_ci_new_state): Likewise.
8281         (create_cd_new_state): Likewise.
8282         (re_string_context_at): Remove redundant condition.
8283
8284 2002-01-16  Roger Sayle  <roger@eyesopen.com>
8285
8286         * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
8287
8288         * sysdeps/i386/i586/strlen.S: Fix typo in comment.
8289
8290 2002-03-11  Jakub Jelinek  <jakub@redhat.com>
8291
8292         * sysdeps/i386/elf/configure.in: Fix comment.
8293
8294         * sysdeps/sparc/sparc64/configure.in: New file.
8295         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
8296         if .dynamic comes before .got.
8297         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
8298
8299         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
8300         HP_TIMING_ACCUM): Fix typos.
8301
8302 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8303
8304         * string/strfry.c: Add some more randomness to the seed.
8305         Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
8306
8307         * po/es.po: Update from translation team.
8308         * po/fr.po: Likewise.
8309
8310         * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
8311
8312         * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
8313         when determining type of format.
8314         Patch by James Antill <james@anqd.org> [PR libc/2787].
8315
8316 2002-03-04  Jakub Jelinek  <jakub@redhat.com>
8317
8318         * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
8319
8320 2002-03-11  Roland McGrath  <roland@frob.com>
8321
8322         * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
8323
8324         * Versions.def (libc): Add GLIBC_2.2.6.
8325         * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
8326         * sysdeps/mach/hurd/errnos.awk: In generated macro, use
8327         __errno_location instead of __hurd_errno_location, and don't inline it.
8328         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
8329         * hurd/errno.c: New file.
8330         * hurd/Makefile (routines): Add errno.
8331
8332 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8333
8334         * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
8335         ridiculously large widths and precisions [PR libc/3026].
8336
8337 2002-03-11  Andreas Jaeger  <aj@suse.de>
8338
8339         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
8340         support.
8341         Patch by Susanne Oberhauser <froh@SuSE.de>.
8342
8343 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8344
8345         * inet/rexec.c (ahostbuf): Define as static.
8346
8347         * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
8348         (__ctype32_wctrans): Likewise.
8349         * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
8350         * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
8351         (__ctype32_wctrans): Likewise.
8352         (__ctype32_width): Likewise.
8353
8354         * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
8355         They were never exported anyway.
8356
8357         * gmon/gmon.c (_gmonparam): Add attribute_hidden.
8358         * gmon/sys/gmon.h: Remove declaration of _gmonparam.  It wasn't
8359         exported.
8360         * include/sys/gmon.h: Declare _gmonparam.
8361
8362         * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
8363         symbols for getdents64.  They were never exported.
8364
8365 2002-03-09  Roland McGrath  <roland@frob.com>
8366
8367         * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
8368         Reported by Jon Arney <jarney1@cox.net>.
8369
8370 2002-02-23  Roland McGrath  <roland@frob.com>
8371
8372         * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
8373         declaration.
8374         (__hurd_errno_location): Function removed.
8375
8376 2002-03-06  Andreas Jaeger  <aj@suse.de>
8377
8378         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
8379         32-bit.
8380
8381 2002-03-04  Andreas Jaeger  <aj@suse.de>
8382
8383         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New file.
8384
8385         * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
8386         x86-64.
8387
8388         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New file.
8389
8390         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New file.
8391
8392         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New file.
8393
8394         * sysdeps/x86_64/bits/setjmp.h: New file.
8395
8396         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New file.
8397
8398         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New file.
8399
8400         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
8401         for x86.
8402         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
8403         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
8404
8405 2002-02-28  Bo Thorsen  <bo@suse.de>
8406
8407         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
8408         version.
8409
8410 2002-03-03  Andreas Jaeger  <aj@suse.de>
8411
8412         * sysdeps/x86_64/bits/wordsize.h: New file.
8413
8414         * elf/nodlopenmod2.c: Provide prototype to avoid warning.
8415         * elf/tst-tlsmod1.c: Likewise.
8416
8417         * posix/regcomp.c: Get regex.h from include dir for internal
8418         prototypes.
8419
8420         * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
8421         to libc-internal.h and include it.
8422         * include/libc-internal.h: Add __init_misc.
8423
8424         * misc/init-misc.c: Include libc-internal.h for prototypes.
8425
8426         * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
8427
8428         * misc/error.c [_LIBC]: Include libioP.h for prototype of
8429         _IO_putc_internal.
8430
8431 2002-03-03  Ulrich Drepper  <drepper@redhat.com>
8432
8433         * posix/regcomp.c: Compatibility changes to allow using the code
8434         outside glibc.
8435
8436 2002-02-28  Hartvig Ekner <hartvige@mips.com>
8437
8438         * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
8439         compiled non-PIC.
8440
8441 2002-03-02  Ulrich Drepper  <drepper@redhat.com>
8442
8443         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
8444         of .str elements in the returned data structure.
8445
8446         * elf/elf.h: Add Alpha TLS bits.
8447
8448 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8449
8450         * sysdeps/unix/sysv/linux/nice.c: New file.
8451
8452 2002-03-01  Ulrich Drepper  <drepper@redhat.com>
8453
8454         * elf/Makefile (dl-routines): Add dl-origin.
8455         (elide-routines.os): Add dl-origin.
8456         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
8457         * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
8458         _dl_debug_state.
8459         * include/libc-symbols.c: Define attribute_hidden depending on
8460         HAVE_VISIBILITY_ATTRIBUTE.  Add definition of INTVARDEF.
8461
8462         * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
8463         * elf/dl-load.c: Likewise.
8464         * elf/rtld.c: Likewise.
8465         * include/unistd.h: Declare __libc_enable_secure_internal.
8466         * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
8467         Use INTUSE with __libc_enable_secure.
8468         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
8469
8470         * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
8471         * elf/dl-error.c: Likewise,
8472         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
8473
8474         * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
8475         * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
8476         function definition.  Use INTDEF with _dl_get_origin.
8477         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
8478
8479         * elf/dl-init.c: Use INTUSE with _dl_starting_up.
8480         * elf/rtld.c: Likewise.  Use INTVARDEF for _dl_starting_up.
8481
8482         * elf/dl-profile.c: Use INTDEF for _dl_mcount.
8483         * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
8484         * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
8485
8486         * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
8487         * elf/dl-deps.c: Likewise.
8488         * elf/dl-error.c: Likewise.
8489         * elf/dl-fini.c: Likewise.
8490         * elf/dl-init.c: Likewise.
8491         * elf/dl-load.c: Likewise.
8492         * elf/dl-lookup.c: Likewise.
8493         * elf/dl-reloc.c: Likewise.
8494         * elf/dl-version.c: Likewise.
8495         * elf/do-lookup.h: Likewise.
8496         * sysdeps/arm/dl-machine.h: Likewise.
8497         * sysdeps/cris/dl-machine.h: Likewise.
8498         * sysdeps/hppa/dl-machine.h: Likewise.
8499         * sysdeps/i386/dl-machine.h: Likewise.
8500         * sysdeps/m68k/dl-machine.h: Likewise.
8501         * sysdeps/powerpc/dl-machine.h: Likewise.
8502         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8503         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8504         * sysdeps/sh/dl-machine.h: Likewise.
8505         * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
8506         * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
8507         * sysdeps/x86_64/dl-machine.h: Likewise.
8508         * elf/rtld.c: Use INTDEF for _dl_argv.  Use rtld_progrname instead of
8509         _dl_argv[0].  Use INTUSE with _dl_argv.
8510         * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
8511         * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
8512
8513 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8514
8515         * elf/rtld.c (_rtld_global): Remove .protected.
8516         (_rtld_local): Strong alias to _rtld_global.
8517         * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
8518         only .os object.
8519         * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
8520         _rtld_local instead of _rtld_global.
8521         (_rtld_local): Add hidden extern, possibly in .sdata section.
8522         * configure.in: Add tests for visibility attribute and .sdata.
8523         * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
8524         * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
8525         * sysdeps/arm/dl-machine.h: Likewise.
8526         * sysdeps/generic/ldsodefs.h: Likewise.
8527         * sysdeps/hppa/dl-machine.h: Likewise.
8528         * sysdeps/cris/dl-machine.h: Likewise.
8529         * sysdeps/i386/dl-machine.h: Likewise.
8530         * sysdeps/ia64/dl-machine.h: Likewise.
8531         * sysdeps/m68k/dl-machine.h: Likewise.
8532         * sysdeps/mips/mips64/dl-machine.h: Likewise.
8533         * sysdeps/mips/dl-machine.h: Likewise.
8534         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8535         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8536         * sysdeps/sh/dl-machine.h: Likewise.
8537         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8538         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8539         * sysdeps/x86_64/dl-machine.h: Likewise.
8540
8541 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
8542
8543         * login/login.c (login): Always initialize ut_line field
8544         [PR libc/2991].
8545
8546 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8547
8548         * sysdeps/i386/Makefile (sysdep_routines): Add
8549         divdi3 in csu dir.
8550         (shared-only-routines): Likewise.
8551         * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
8552         (shared-only-routines): Likewise.
8553         * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
8554         (shared-only-routines): Likewise.
8555         * sysdeps/wordsize-32/divdi3.c: New file.
8556
8557 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
8558
8559         * locale/iso-4217.def: Remove obsolete currencies for countries
8560         with Euro.
8561
8562 2002-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
8563
8564         * posix/regcomp.c (regcomp): Remove a redundant condition.
8565         (init_word_char): Add a check on malloc failure.
8566         (create_initial_state): Likewise.
8567         (duplicate_node): Likewise.
8568         (calc_eclosure): Likewise.
8569         (calc_eclosure_iter): Likewise.
8570         (parse_expression): Likewise.
8571         (parse_bracket_exp): Remove unnecessary malloc invocations.
8572         (build_equiv_class): Likewise.
8573         (build_charclass): Likewise.
8574         * posix/regex_internal.c (re_node_set_intersect): Add a check
8575         on malloc failure.
8576         (re_node_set_add_intersect): Likewise.
8577         (re_node_set_merge): Likewise.
8578         (re_acquire_state): Likewise.
8579         (re_acquire_state_context): Likewise.
8580         (create_newstate_common): Likewise.
8581         (register_state): Likewise.
8582         (create_ci_newstate): Likewise.
8583         (create_cd_newstate): Likewise.
8584         * posix/regex_internal.h: Fix prototypes of re_acquire_state
8585         and re_acquire_state_context.
8586         * posix/regexec.c (regexec): Suit it to the error handling of
8587         re_search_internal.
8588         (re_match): Likewise.
8589         (re_search): Likewise.
8590         (re_search_internal): Add a check on malloc failure.
8591         (acquire_init_state_context): Likewise.
8592         (check_matching): Likewise.
8593         (proceed_next_node): Likewise.
8594         (set_regs): Likewise.
8595         (sift_states_backward): Likewise.
8596         (sift_states_iter_bkref): Likewise.
8597         (add_epsilon_backreference): Likewise.
8598         (transit_state): Likewise.
8599         (transit_state_sb): Likewise.
8600         (transit_state_mb): Likewise.
8601         (transit_state_bkref_loop): Likewise.
8602         (build_trtable): Likewise.
8603         (group_nodes_into_DFAstates): Likewise.
8604         (match_ctx_init): Likewise.
8605         (match_ctx_add_entry): Likewise.
8606
8607 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
8608
8609         * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
8610         l_libname if profiling is enabled [PR libc/2916].
8611
8612         * sysdeps/ia64/dl-tls.h: New file.
8613
8614 2002-02-27  Jakub Jelinek  <jakub@redhat.com>
8615
8616         * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
8617         Work around an Alpha gas bug.
8618
8619 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
8620
8621         * catgets/open_catalog.c (__open_catalog): Fix typo in code which
8622         uses read to load the catalog.
8623         Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
8624
8625 2002-02-26  Ulrich Drepper  <drepper@redhat.com>
8626
8627         * posix/Makefile (distribute): Add regcomp.c, regexec.c,
8628         regex_internal.c, and regex_internal.h.
8629         (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
8630         * posix/regex.c: Complete rewrite.
8631         * posix/regexec.c: New file.
8632         * posix/regcomp.c: New file.
8633         * posix/regex_internal.c: New file.
8634         * posix/regex_internal.h: New file.
8635         * posix/regex.h (RE_ICASE): New macro.
8636         Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
8637
8638         * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
8639         ungetwc.  It's a macro.
8640         * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
8641         implementation.
8642         Reported by Jason Merrill <jason@redhat.com>.
8643
8644 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
8645
8646         * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
8647         position to fp->_offset if it is set.
8648         * stdio-common/Makefile (tests): Add tst-fdopen.
8649         * stdio-common/tst-fdopen.c: New test.
8650
8651 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
8652
8653         * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
8654         * stdio-common/tst-ungetc.c (main): Add another test.
8655
8656 2002-02-25  Ulrich Drepper  <drepper@redhat.com>
8657
8658         * assert/assert-perr.c: Use INTUSE to reference functions and variables
8659         inside libc itself.  Use INTDEF and INTDEF2 to define appropriate
8660         aliases.  Add prototypes for the new aliases.
8661         * assert/assert.c: Likewise.
8662         * include/libc-symbols.h: Likewise.
8663         * include/stdio.h: Likewise.
8664         * include/netinet/in.h: Likewise.
8665         * include/rpc/auth.h: Likewise.
8666         * include/rpc/auth_unix.h: Likewise.
8667         * include/rpc/key_prot.h: Likewise.
8668         * include/rpc/pmap_prot.h: Likewise.
8669         * include/rpc/pmap_rmt.h: Likewise.
8670         * include/rpc/rpc_msg.h: Likewise.
8671         * include/rpc/xdr.h: Likewise.
8672         * inet/gethstbyad_r.c: Likewise.
8673         * inet/gethstbynm2_r.c: Likewise.
8674         * inet/gethstbynm_r.c: Likewise.
8675         * inet/gethstent_r.c: Likewise.
8676         * inet/in6_addr.c: Likewise.
8677         * libio/__fpurge.c: Likewise.
8678         * libio/filedoalloc.c: Likewise.
8679         * libio/fileops.c: Likewise.
8680         * libio/ftello.c: Likewise.
8681         * libio/ftello64.c: Likewise.
8682         * libio/genops.c: Likewise.
8683         * libio/iofclose.c: Likewise.
8684         * libio/iofdopen.c: Likewise.
8685         * libio/iofflush.c: Likewise.
8686         * libio/iofflush_u.c: Likewise.
8687         * libio/iofgetpos.c: Likewise.
8688         * libio/iofgetpos64.c: Likewise.
8689         * libio/iofgets.c: Likewise.
8690         * libio/iofgets_u.c: Likewise.
8691         * libio/iofopen.c: Likewise.
8692         * libio/iofopncook.c: Likewise.
8693         * libio/iofputs.c: Likewise.
8694         * libio/iofread.c: Likewise.
8695         * libio/iofread_u.c: Likewise.
8696         * libio/iofsetpos.c: Likewise.
8697         * libio/iofsetpos64.c: Likewise.
8698         * libio/ioftell.c: Likewise.
8699         * libio/iofwrite.c: Likewise.
8700         * libio/iogetline.c: Likewise.
8701         * libio/iogets.c: Likewise.
8702         * libio/iogetwline.c: Likewise.
8703         * libio/iolibio.h: Likewise.
8704         * libio/iopadn.c: Likewise.
8705         * libio/iopopen.c: Likewise.
8706         * libio/ioseekoff.c: Likewise.
8707         * libio/ioseekpos.c: Likewise.
8708         * libio/iosetbuffer.c: Likewise.
8709         * libio/iosetvbuf.c: Likewise.
8710         * libio/ioungetc.c: Likewise.
8711         * libio/ioungetwc.c: Likewise.
8712         * libio/iovdprintf.c: Likewise.
8713         * libio/iovsprintf.c: Likewise.
8714         * libio/iovsscanf.c: Likewise.
8715         * libio/libioP.h: Likewise.
8716         * libio/memstream.c: Likewise.
8717         * libio/obprintf.c: Likewise.
8718         * libio/oldfileops.c: Likewise.
8719         * libio/oldiofclose.c: Likewise.
8720         * libio/oldiofdopen.c: Likewise.
8721         * libio/oldiofgetpos.c: Likewise.
8722         * libio/oldiofgetpos64.c: Likewise.
8723         * libio/oldiofopen.c: Likewise.
8724         * libio/oldiofsetpos.c: Likewise.
8725         * libio/oldiofsetpos64.c: Likewise.
8726         * libio/oldiopopen.c: Likewise.
8727         * libio/oldstdfiles.c: Likewise.
8728         * libio/putc.c: Likewise.
8729         * libio/setbuf.c: Likewise.
8730         * libio/setlinebuf.c: Likewise.
8731         * libio/stdfiles.c: Likewise.
8732         * libio/stdio.c: Likewise.
8733         * libio/strops.c: Likewise.
8734         * libio/vasprintf.c: Likewise.
8735         * libio/vscanf.c: Likewise.
8736         * libio/vsnprintf.c: Likewise.
8737         * libio/vswprintf.c: Likewise.
8738         * libio/wfiledoalloc.c: Likewise.
8739         * libio/wfileops.c: Likewise.
8740         * libio/wgenops.c: Likewise.
8741         * libio/wstrops.c: Likewise.
8742         * malloc/mtrace.c: Likewise.
8743         * misc/error.c: Likewise.
8744         * misc/syslog.c: Likewise.
8745         * nss/getXXbyYY_r.c: Likewise.
8746         * nss/getXXent_r.c: Likewise.
8747         * nss/hosts-lookup.c: Likewise.
8748         * stdio-common/getw.c
8749         * stdio-common/printf-prs.c: Likewise.
8750         * stdio-common/printf_fp.c: Likewise.
8751         * stdio-common/printf_size.c: Likewise.
8752         * stdio-common/putw.c: Likewise.
8753         * stdio-common/scanf.c: Likewise.
8754         * stdio-common/sprintf.c: Likewise.
8755         * stdio-common/tmpfile64.c: Likewise.
8756         * stdio-common/vfprintf.c: Likewise.
8757         * stdio-common/vfscanf.c: Likewise.
8758         * stdlib/strfmon.c: Likewise.
8759         * sunrpc/auth_des.c: Likewise.
8760         * sunrpc/auth_none.c: Likewise.
8761         * sunrpc/auth_unix.c: Likewise.
8762         * sunrpc/authdes_prot.c: Likewise.
8763         * sunrpc/authuxprot.c: Likewise.
8764         * sunrpc/clnt_perr.c: Likewise.
8765         * sunrpc/clnt_raw.c: Likewise.
8766         * sunrpc/clnt_tcp.c: Likewise.
8767         * sunrpc/clnt_udp.c: Likewise.
8768         * sunrpc/clnt_unix.c: Likewise.
8769         * sunrpc/key_call.c: Likewise.
8770         * sunrpc/key_prot.c: Likewise.
8771         * sunrpc/openchild.c: Likewise.
8772         * sunrpc/pm_getmaps.c: Likewise.
8773         * sunrpc/pm_getport.c: Likewise.
8774         * sunrpc/pmap_clnt.c: Likewise.
8775         * sunrpc/pmap_prot.c: Likewise.
8776         * sunrpc/pmap_prot2.c: Likewise.
8777         * sunrpc/pmap_rmt.c: Likewise.
8778         * sunrpc/rpc_cmsg.c: Likewise.
8779         * sunrpc/rpc_prot.c: Likewise.
8780         * sunrpc/svc_authux.c: Likewise.
8781         * sunrpc/svc_raw.c: Likewise.
8782         * sunrpc/svc_simple.c: Likewise.
8783         * sunrpc/svc_tcp.c: Likewise.
8784         * sunrpc/svc_udp.c: Likewise.
8785         * sunrpc/svc_unix.c: Likewise.
8786         * sunrpc/xdr.c: Likewise.
8787         * sunrpc/xdr_array.c: Likewise.
8788         * sunrpc/xdr_mem.c: Likewise.
8789         * sunrpc/xdr_rec.c: Likewise.
8790         * sunrpc/xdr_ref.c: Likewise.
8791         * sunrpc/xdr_stdio.c: Likewise.
8792         * sysdeps/generic/_strerror.c: Likewise.
8793         * sysdeps/generic/printf_fphex.c: Likewise.
8794         * sysdeps/generic/tmpfile.c: Likewise.
8795         * sysdeps/gnu/errlist.awk: Likewise.
8796         * sysdeps/gnu/errlist.c: Likewise.
8797
8798         * libio/Makefile (routines): Remove iosprint.
8799         * libio/iosprintf.c: Removed
8800
8801
8802 2002-02-24  Ulrich Drepper  <drepper@redhat.com>
8803
8804         * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
8805         non_dynamic_init and exported now.
8806         * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
8807         * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
8808         !SHARED.
8809         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
8810         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8811         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8812
8813 2002-02-23  Ulrich Drepper  <drepper@redhat.com>
8814
8815         * elf/dl-close.c (free_slotinfo): Check for end of list and return
8816         true in this case.
8817
8818         * locale/iso-639.def: Add language codes for Walloon.
8819
8820         * elf/dl-fini.c (_dl_fini): Print some final statistics on the
8821         total number of relocations performed.
8822
8823         * elf/sprof.c (load_profdata): If do_test provide information as
8824         to why loading failed.
8825         * elf/dl-profile.c (_dl_start_profile): Initialize all of
8826         hist_hdr.dimen.
8827
8828         * csu/set-init.c: Moved to...
8829         * sysdeps/mach/hurd/set-init.c: ...here.  New file.
8830         * csu/Makefile: Don't compile set-init.
8831         * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
8832         * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
8833         to __libc_init.
8834         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8835         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8836         * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
8837         __libc_init.
8838         * misc/init-misc.c: Always export __init_misc.  Don't define hooks for
8839         __libc_subinit.
8840
8841 2002-02-22  Ulrich Drepper  <drepper@redhat.com>
8842
8843         * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
8844         * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
8845         * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
8846         (_dl_deallocate_tls): New function.
8847         * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
8848         _dl_deallocate_tls.
8849
8850 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
8851
8852         * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
8853         * stdio-common/tst-fseek.c (main): Add test for this.
8854
8855 2002-02-19  Ulrich Drepper  <drepper@redhat.com.>
8856
8857         * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
8858
8859 2002-02-19  Jakub Jelinek  <jakub@redhat.com>
8860
8861         * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
8862         pointer before dereferencing.
8863
8864 2002-02-18  Roland McGrath  <roland@frob.com>
8865
8866         * sysdeps/mach/hurd/times.c: Fix typo in last change.
8867
8868         * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
8869         Use task_policy in place of task_priority.
8870
8871         * sysdeps/generic/bits/mman.h
8872         (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
8873         * sysdeps/mach/msync.c: New file.
8874
8875         * sysdeps/mach/powerpc/syscall.S: New file.
8876
8877         * mach/msg.c [MACH_MSG_OVERWRITE]
8878         (__mach_msg_trap, __mach_msg_overwrite): New functions.
8879         * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
8880
8881         * sysdeps/mach/configure.in: Check for clock.defs to put into
8882         mach_interface_list.
8883         * sysdeps/mach/configure: Regenerated.
8884
8885         * mach/Makefile (mach-machine): New variable, set from $(base-machine).
8886         ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
8887         ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
8888         Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
8889         (mach-shortcuts): Add device_read_overwrite_request,
8890         device_read_overwrite, vm_read_overwrite, thread_switch.
8891
8892         * configure.in (base_machine): Set to $machine by default.
8893         * configure: Regenerated.
8894
8895         * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
8896         or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
8897         * sysdeps/mach/configure: Regenerated.
8898         * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
8899
8900         * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
8901
8902         * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
8903
8904         * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
8905         Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
8906
8907 2002-02-17  Roland McGrath  <roland@frob.com>
8908
8909         * sysdeps/mach/hurd/times.c
8910         [NO_CREATION_TIME] (startup_time): New static variable.
8911         [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
8912         (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
8913         creation_time from task_basic_info.
8914         (__times): Use __gettimeofday instead of __host_get_time.
8915
8916         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
8917         Use untyped Mach IPC message format.
8918
8919         * hurd/catch-exc.c: Include <assert.h>, missing from last change.
8920
8921         * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
8922         _S_catch_exception_raise_state_identity,
8923         _hurdsig_fault_catch_exception_raise_state,
8924         _hurdsig_fault_catch_exception_raise_state_identity.
8925
8926         * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
8927
8928         * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
8929         __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
8930
8931         * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
8932         `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
8933
8934         * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
8935         (fmh, unfmh): Define these functions only #if FMH.  Otherwise define
8936         them as no-op macros.
8937         [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
8938         (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
8939
8940         * sysdeps/powerpc/dl-machine.h
8941         (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
8942
8943         * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
8944         Use untyped Mach IPC message format.
8945
8946         * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
8947         Handle untyped Mach IPC message formats.
8948
8949         * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
8950         Expect different argument conventions when this is defined.
8951         [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
8952         [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
8953         * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
8954         [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
8955         for OSF Mach variant.
8956         (faulted): Use mig_reply_error_t for REPLY.
8957         (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
8958         in __thread_set_exception_ports call.
8959         (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
8960         __mach_port_set_attributes in place of __mach_port_set_qlimit.
8961
8962         * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
8963         before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
8964         on Darwin, which includes bogons.
8965
8966         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
8967         variable LOADBASE so it's not declared when it's not used.
8968
8969 2002-02-16  Roland McGrath  <roland@frob.com>
8970
8971         * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
8972         to use BI.creation_time.
8973
8974         * mach/Machrules (MIG): Add -x c to CPP value passed down.
8975
8976         * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
8977         * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
8978         * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
8979         host_page_size instead of vm_statistics.
8980
8981         * sysdeps/mach/Makefile (mach-before-compile): Don't include
8982         mach_interface.h here, since not all variants use that name.
8983
8984         * sysdeps/mach/configure.in: Add some checks for Mach headers
8985         to ensure a sane installation.
8986         (mach_interface_list): Define this variable by checking for .defs
8987         files found in various variants.
8988         * configure.in (mach_interface_list): AC_SUBST this.
8989         * config.make.in (mach-interface-list): New substituted variable.
8990         * mach/Makefile (user-interfaces): Define this using the value
8991         of $(mach-interface-list) instead of mach, mach4.
8992         Updated other references to mach_interface to use it as well.
8993
8994         * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
8995
8996         * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
8997         mig_reply_error_t for OSF Mach variant.
8998
8999         * mach/Makefile (routines): Remove bootprivport.
9000         * mach/bootprivport.c: File removed.  It has never been used.
9001
9002         * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
9003         Grok the OSF flavor of message format.
9004         (mach_msg_destroy_port): For MAKE_SEND and
9005         MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
9006         no-senders notification.
9007
9008 2002-02-06  Roland McGrath  <roland@frob.com>
9009
9010         * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
9011         to here if 2.0 compatibility enabled ...
9012         (libc: GLIBC_2.1.3): ... from here.
9013
9014 2002-02-15  Ulrich Drepper  <drepper@redhat.com>
9015
9016         * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
9017         generation counter.
9018         * elf/dl-close.c (_dl_close): Likewise.
9019
9020 2002-02-14  Ulrich Drepper  <drepper@redhat.com>
9021
9022         * elf/Makefile: Add rules to build and run tst-tls8.
9023         * elf/tst-tls8.c: New file.
9024         * elf/tst-tlsmod4.c: New file.
9025
9026         * stdlib/test-a64l.c (tests): Add more test cases.
9027
9028         * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
9029         Reported by Walter Harms <WHarms@bfs.de>.
9030
9031 2002-02-11  Jes Sorensen  <jes@trained-monkey.org>
9032
9033         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
9034         definitions for struct sigcontext.
9035         Suggested by David Mosberger-Tang.
9036
9037 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
9038
9039         * elf/dl-close.c (remove_slotinfo): New function.  Handles everything
9040         for removing reference of module in slotinfo list.
9041         (_dl_close): Use remove_slotinfo.
9042         * sysdeps/generic/dl-tls.c: General pretty printing.
9043         (oom): Define only if SHARED.
9044         (_dl_next_tls_modid): Correct starting point for the case we assume
9045         there is a gap.  Add missing instruction grouping (doh!).  Correct
9046         tests for reaching maximum index.
9047         * elf/Makefile: Add rules to build and run tst-tls7.
9048         * elf/tst-tls7.c: New file.
9049         * elf/tst-tlsmod3.c: New file.
9050
9051         * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
9052         USE_TLS.
9053         * elf/tst-tlsmod2.c: Likewise.
9054
9055         * elf/dl-close.c (_dl_close): When closing an object using TLS
9056         either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
9057         true.  Increment dl_tls_generation only if we closed any TLS-using
9058         object.
9059         * elf/tst-tls6.c: New file.
9060         * elf/Makefile: Add rules to build and run tst-tls6.
9061
9062         * po/da.po: Update from translation team.
9063
9064         * locale/categories.def: Fix typo [PR libc/2948].
9065         * po/Makefile (BROKEN_LINGUAS): Works with current gettext
9066         [PR libc/2949].
9067         * locale/iso-4217.def: Update from official version [PR libc/2950].
9068         * glibcbug.in: Honor TMPDIR [PR libc/2951].
9069         * locale/programs/ld-collate.c (collate_finish): Bail out with a
9070         message if input is too confusion instead of using assert.
9071         (collate_read): Don't crash on unknown symbol [PR libc/2952].
9072         Patches by Alastair McKinstry <alastair@pdd.3com.com>.
9073
9074         * elf/tst-tls1.c: Move #include "tls-macros.h" inside #ifdef USE_TLS.
9075         * elf/tst-tls2.c: Likewise.
9076         * elf/tst-tls3.c: Likewise.
9077
9078 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
9079
9080         * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
9081
9082 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
9083
9084         * elf/dl-open.c (dl_open_worker): Only bump the generation counter
9085         if this is really necessary.
9086
9087         * elf/dl-close.c (_dl_close): Implement freeing entries in the
9088         slotinfo array.
9089         (free_mem): Free memory for the slotinfo array if possible.
9090
9091 2002-02-12  Andreas Schwab  <schwab@suse.de>
9092
9093         * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
9094
9095 2002-02-12  Ulrich Drepper  <drepper@redhat.com>
9096
9097         * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
9098         TLS_DTV_UNALLOCATE.
9099         (oom): New function.
9100         (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
9101         (_dl_determine_tlsoffset): Likewise.
9102         (_dl_allocate_tls): Likewise.
9103         (__TLS_GET_ADDR): Define if not already defined.
9104         (_dl_tls_symaddr): New function.
9105         (allocate_and_init): New function.
9106         (__tls_get_addr): Actually implement handling of generation counter
9107         and deferred allocation.
9108         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
9109         add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9110         _dl_tls_generation.
9111         Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
9112         Declare _dl_tls_symaddr.
9113         * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
9114         SHARED.
9115         * include/link.h (struct link_map):  Remove l_tls_nextimage and
9116         l_tls_previmage.
9117         * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
9118         instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
9119         (_dl_vsym): Likewise.
9120         * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
9121         layout.
9122         (dl_main): Allow PT_TLS be present for empty segment.  Remove
9123         nextimage list handling.  Instead add all modules using TLS to
9124         dl_tls_dtv_slotinfo_list.
9125         * elf/dl-open.c (dl_open_worker): After successfully loading all
9126         objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
9127         * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
9128         empty segment don't do anything.  Remove handling of initimage list.
9129         * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
9130         (GLIBC_PRIVATE): Add _dl_tls_symaddr.
9131         * elf/dl-minimal.c: Define __libc_memalign.
9132         * elf/dl-support.c: Remove _dl_initimage_list.  Add
9133         _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9134         _dl_tls_generation.
9135         * include/stdlib.h: Declare __libc_memalign.
9136
9137         * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
9138         * elf/tst-tls4.c: New file.
9139         * elf/tst-tls5.c: New file.
9140         * elf/tst-tlsmod2.c: New file.
9141
9142         * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
9143
9144         * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
9145
9146         * elf/tst-tls1.c: Use test-skeleton.c.
9147         * elf/tst-tls2.c: Likewise.
9148         * elf/tst-tls3.c: Likewise.
9149
9150         * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
9151
9152 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
9153
9154         * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
9155
9156 2002-02-10  Ulrich Drepper  <drepper@redhat.com>
9157
9158         * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
9159
9160         * elf/tst-tls3.c: New file.
9161         * elf/tst-tlsmod1.c: New file.
9162         * elf/Makefile: Add rules to build and run tst-tls3.
9163
9164         * sysdeps/i386/dl-machine.h: Include <tls.h>.
9165         (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
9166         TLS relocations.
9167
9168         * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
9169
9170         * po/fr.po: Update from translation team.
9171
9172         * elf/tls-macros.h: Add alternative macros for use in PIC.
9173
9174         * elf/dl-lookup.c: Include <tls.h>.
9175         * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
9176
9177         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
9178         required by passing pointer to last element of the list.
9179
9180         * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
9181         l_tls_initimage to a place where it actually is performed.
9182
9183         * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
9184         after globfree() calls.
9185
9186         * elf/dl-deps.c (struct openaux_args): Add open_mode element.
9187         (openaux): Pass open_mode as new last argument to _dl_map_object.
9188         (_dl_map_object_deps): Add new argument open_mode.  Initialize
9189         open_mode element of args variable with it.
9190         * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
9191         _dl_map_object_deps.
9192         * elf/rtld.c (dl_main): Add zero as last parameter to
9193         _dl_map_object_deps call.
9194         * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
9195         * elf/nodlopen2.c: New file.
9196         * elf/nodlopenmod2.c: New file.
9197         * elf/Makefile: Add rules to build and run nodlopen2.
9198
9199         * elf/tst-tls1.c: Move TLS helper macros to...
9200         * elf/tls-macros.h: ...here.  New file.
9201         * elf/tst-tls2.c: New file.
9202         * elf/Makefile (tests): Add tst-tls2.
9203         (distribute): Add tls-macros.h.
9204
9205         * po/sv.po: Update from translation team.
9206
9207         * elf/tst-tls1.c (main): Add complete set of tests.  Split
9208         architecture specific definitions from the actual test code.
9209
9210         * po/tr.po: Update from translation team.
9211
9212 2002-02-09  Ulrich Drepper  <drepper@redhat.com>
9213
9214         * elf/Makefile (tests): Add tst-tls1.
9215         * elf/tst-tls1.c: New file.
9216
9217         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
9218         alignment of TCB for now.
9219
9220         * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
9221         initialization image for the application itself.
9222
9223         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
9224         loop to initialize TLS block.
9225
9226 2002-02-08  Richard Henderson  <rth@redhat.com>
9227
9228         * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
9229         _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
9230
9231         * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
9232
9233 2002-02-09  Jakub Jelinek  <jakub@redhat.com>
9234
9235         * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
9236
9237 2002-02-08  Ulrich Drepper  <drepper@redhat.com>
9238
9239         * po/ca.po: Update from translation team.
9240         * po/sk.po: Likewise.
9241
9242         * elf/rtld.c (_dl_start_final): Install DTV explicitly.
9243         (dl_main): Move dtv/static TLS handling before relocation.
9244         Unconditionally call _dl_tlsoffset.  Call _dl_allocate_tls and
9245         TLS_INIT_TP to allocate and install the dtv/static TLS block.
9246         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
9247         so far uses TLS initialize GL(dl_tls_static_size) and
9248         GL(dl_tls_static_align) to account for the TCB.
9249         (_dl_allocate_tls): New function.
9250         * sysdeps/generic/ldsodefs.h (rtld_global): Add
9251         _dl_initial_dtv_malloced.
9252
9253         * configure.in: Test for __builtin_memset more realistically.
9254
9255         * csu/version.c (banner): If TLS support is available say so.
9256
9257 2002-02-04  H.J. Lu  <hjl@gnu.org>
9258
9259         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
9260         __attribute_used__.
9261         (__dl_runtime_resolve): Likewise.
9262
9263         * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
9264         declaration.
9265
9266 2001-11-15  H.J. Lu  <hjl@gnu.org>
9267
9268         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
9269         <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
9270
9271         * sysdeps/unix/sysv/linux/mips/sys/user.h: New file.
9272
9273 2002-02-07  H.J. Lu  <hjl@gnu.org>
9274
9275         * sysdeps/mips/atomicity.h (compare_and_swap): Remove
9276         ".set noreorder".
9277         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
9278         Likewise.
9279
9280 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9281
9282         * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
9283
9284         * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
9285         ___tls_get_addr_internal.
9286         (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
9287
9288         * po/ko.po: Update from translation team.
9289
9290 2002-02-07  Jakub Jelinek  <jakub@redhat.com>
9291
9292         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
9293         attribute, change __pad{1,2} type to unsigned int.
9294         (struct stat64): Remove packed attribute.
9295
9296 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9297
9298         * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
9299
9300 2002-02-07  Andreas Schwab  <schwab@suse.de>
9301
9302         * configure.in: Fix check for -zcombreloc.
9303
9304 2002-02-06  H.J. Lu  <hjl@gnu.org>
9305
9306         * config.h.in (HAVE_BUILTIN_MEMSET): New macro.
9307         * configure.in: Check if __builtin_memset really works.
9308         * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
9309         __GNUC_PREREQ (2, 96) before using __builtin_memset.
9310
9311 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
9312
9313         * io/bug-ftw3.c (main): Don't try the test if root.
9314
9315 2002-02-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9316
9317         * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
9318         constraints.
9319         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
9320         Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
9321         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
9322         Likewise.
9323         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
9324         a weak alias for __clone.
9325         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
9326         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
9327         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
9328         * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
9329         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
9330         a weak alias for __mmap64.
9331
9332 2002-02-05  H.J. Lu  <hjl@gnu.org>
9333
9334         * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
9335         (atomic_add): Likewise.
9336         (compare_and_swap): Likewise.
9337         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
9338
9339 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9340
9341         * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
9342
9343         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
9344         alignment of the TCB and store total size and alignment of static
9345         TLS block in _dl_tls_static_size and _dl_tls_static_align.
9346         tls_index is a typedef.
9347         * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
9348         _dl_tls_static_align.
9349         * sysdeps/i386/dl-tls.h: tls_index is a typedef.
9350         * elf/dl-support.c: Define _dl_tls_static_size and
9351         _dl_tls_static_align.
9352
9353 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9354
9355         * configure.in: Add --without-tls option.
9356         * sysdeps/i386/elf/configure.in: Don't check for TLS support if
9357         --without-tls is given.
9358
9359         * sysdeps/generic/dl-tls.c: Include <tls.h>.
9360
9361         * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
9362
9363 2002-02-06  Roland McGrath  <roland@frob.com>
9364
9365         * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
9366         * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
9367
9368         * scripts/versions.awk: Improve error message for missing version.
9369         Each version inherits from the last one only if they have the same
9370         nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
9371         but not GLIBC_x and FOO_y.
9372
9373         * scripts/firstversions.awk: Handle libraries that don't have each
9374         particular version named in the third column of shlib-versions.
9375
9376         * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
9377
9378 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9379
9380         * Versions.def [ld]: Add GLIBC_2.3.
9381         * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
9382         * elf/Makefile (dl-routines): Add dl-tls.
9383         (distribute): Add dl-tls.h.
9384         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9385         _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9386         Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
9387         * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
9388         along with the other info in the link map.  Change queueing of init
9389         images for double linked list.  Use _dl_next_tls_modid to compute
9390         l_tls_modid.
9391         * elf/rtld.c (_dl_start_final): Store alignment requirement
9392         along with the other info in rtld map and executable map.
9393         (dl_main): Add ld.so to the init image list if necessary.  Compute
9394         final module ID with _dl_next_tls_modid.
9395         * include/link.h (struct link_map): Add l_tls_previmage and
9396         l_tls_align.
9397         * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9398         * sysdeps/i386/elf/Versions: New file.
9399         * sysdeps/generic/dl-tls.c: New file.
9400         * sysdeps/generic/dl-tls.h: New file.
9401         * sysdeps/i386/dl-tls.h: New file.
9402
9403 2002-02-06  Roland McGrath  <roland@frob.com>
9404
9405         * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
9406         * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
9407
9408 2002-01-05  Roland McGrath  <roland@frob.com>
9409
9410         * sysdeps/mach/configure.in: New file.
9411         * sysdeps/mach/configure: New generated file.
9412
9413         * mach/Makefile (user-interfaces): Remove default_pager_helper.
9414         It has never been used by anything.
9415
9416 2002-02-06  H.J. Lu  <hjl@gnu.org>
9417
9418         * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
9419         is included.
9420
9421 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9422
9423         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
9424         attribute((packed)) to counter stupid people misusing gcc options.
9425         (struct stat64): Likewise.
9426
9427 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9428
9429         * elf/rtld.c (dl_main): Correct indentation.  Use bool as type for
9430         the variables which are used as booleans.
9431
9432 2002-02-06  Andreas Jaeger  <aj@suse.de>
9433
9434         * include/libc-symbols.h (INTUSE): Renamed from INT.
9435         * elf/dl-deps.c: Change users.
9436         * sysdeps/generic/dl-sysdep.c: Likewise.
9437         * sysdeps/generic/dl-cache.c: Likewise.
9438         * elf/dl-reloc.c: Likewise.
9439         * elf/rtld.c: Likewise.
9440         * elf/dl-version.c: Likewise.
9441         * elf/dl-load.c: Likewise.
9442         * elf/dl-dst.h: Likewise.
9443         * elf/dl-init.c: Likewise.
9444         * elf/dl-error.c: Likewise.
9445         * elf/dl-fini.c: Likewise.
9446         * elf/dl-runtime.c: Likewise.
9447         * elf/do-lookup.h: Likewise.
9448
9449         * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
9450         definition.
9451         * stdio-common/_itowa.h: Likewise.
9452
9453 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9454
9455         * elf/dl-minimal.c: Define _itoa_lower_digits.
9456
9457         * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
9458         DT_FLAGS set.
9459
9460         * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
9461         loading modules with the DF_STATIC_TLS flag set.
9462         * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
9463         element.
9464         * include/link.h (struct link_map): Add l_flags field.
9465         * elf/elf.h (DF_STATIC_TLS): New definition.
9466
9467         * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
9468         * dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.
9469
9470         * elf/rtld.c (process_dl_debug): Correct printing help message.
9471         * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
9472         for %s.
9473
9474         * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
9475         definition and pass &errno in use of this variable.
9476         Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
9477
9478 2002-02-04  Andreas Schwab  <schwab@suse.de>
9479
9480         * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
9481         * locale/programs/charmap-dir.c: Wrap calls that output messages
9482         with WITH_CUR_LOCALE.  Include "localedef.h" first.
9483         * locale/programs/charmap.c: Likewise.
9484         * locale/programs/ld-address.c: Likewise.
9485         * locale/programs/ld-collate.c: Likewise.
9486         * locale/programs/ld-ctype.c: Likewise.
9487         * locale/programs/ld-identification.c: Likewise.
9488         * locale/programs/ld-measurement.c: Likewise.
9489         * locale/programs/ld-messages.c: Likewise.
9490         * locale/programs/ld-monetary.c: Likewise.
9491         * locale/programs/ld-name.c: Likewise.
9492         * locale/programs/ld-numeric.c: Likewise.
9493         * locale/programs/ld-paper.c: Likewise.
9494         * locale/programs/ld-telephone.c: Likewise.
9495         * locale/programs/ld-time.c: Likewise.
9496         * locale/programs/linereader.c: Likewise.
9497         * locale/programs/linereader.h: Likewise.
9498         * locale/programs/localedef.c: Likewise.
9499         * locale/programs/locfile.c: Likewise.
9500         * locale/programs/repertoire.c: Likewise.
9501
9502 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9503
9504         * elf/rtld.c (_dl_start_final): Determine load address to locate
9505         ehdr with GL(dl_rtld_map).l_map_start.
9506
9507         * po/ca.po: Update from translation team.
9508
9509         * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
9510         * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
9511         header entry.
9512         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
9513         _dl_tls_module_cnt.
9514         * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
9515
9516 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
9517
9518         * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
9519         * include/link.h (struct link_map): Add various members for TLS
9520         information.
9521         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9522         _rtld_tlsoffset, add _dl_initimage_list.
9523         * sysdeps/i386/dl-lookupcfg.h: New file.
9524         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
9525         TLS relocation.  When using TLS we now use RESOLVE_MAP.
9526         (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
9527         is used.
9528
9529         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
9530         unused.
9531
9532         * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
9533         thread-pointer as soon as possible.
9534         * sysdeps/generic/ldsodefs.h: Include <tls.h>.  Define first TLS
9535         elements in rtld_global.
9536         * sysdeps/generic/tls.h: New file.
9537         * elf/Makefile (distribute): Add tls.h.
9538         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
9539         relocations.  Not complete yet.
9540
9541         * resolv/resolv.h: Allow user to define __need_res_state and only
9542         define __res_start structure then.
9543         * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
9544
9545         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
9546         dl_cpuclock_offset initialization to _dl_start_final.
9547         (_dl_show_auxv): Avoid unnecessary sign extension.
9548         * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
9549
9550 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
9551
9552         * config.h.in: Add HAVE_TLS_SUPPORT.
9553         * sysdeps/i386/elf/configure.in: New file.
9554
9555 2002-02-03  Andreas Schwab  <schwab@suse.de>
9556
9557         * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
9558         * sysdeps/posix/writev.c: Use ssize_t for bytes_written.  Fix comment.
9559
9560 2002-02-03  Thorsten Kukuk  <kukuk@suse.de>
9561
9562         * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
9563         alloca if the memory reqirements are too high.
9564
9565 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
9566
9567         * elf/dl-load.c (decompose_rpath): Avoid using strstr.
9568         * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
9569         the former is available anyway and speed isn't important here.
9570         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
9571         * elf/dl-version.c (match_symbol): Likewise.
9572         (_dl_check_map_versions): Likewise.
9573         * elf/rtld.c (process_envvars): Likewise.
9574         (print_statistics): Likewise.
9575         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
9576         * elf/dl-minimal.c (_itoa): Always define it.  Make it work for all
9577         bases.  Add assert to catch uses of unimplemented features.
9578         (__strsep): Add assert to catch uses of unimplemented features.
9579         * elf/dl-object.c (_dl_new_object): Don't use rawmemchr.  Use strchr
9580         and avoid inline optimization.
9581         * elf/rtld.c (process_envvars): Likewise.
9582         * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
9583         * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
9584         * elf/rtld.c (dl_main): Avoid strsep inline optimization.
9585
9586 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
9587
9588         * stdio-common/_itoa.h: Minor simplifications of the code.
9589         * stdio-common/_itoa.c: Likewise.
9590
9591         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
9592         instead of _dl_printf for debugging info output.
9593
9594         * manual/examples/mkfsock.c (make_named_socket): Make sure name is
9595         always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.
9596
9597 2002-02-01  H.J. Lu  <hjl@gnu.org>
9598
9599         * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
9600         (atomic_add): Likewise.
9601         (compare_and_swap): Return 0 only when failed to compare. Use
9602         branch likely.
9603
9604         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
9605         branch likely.
9606
9607 2002-02-03  kaz Kojima  <kkojima@rr.iij4u.or.jp>
9608
9609         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
9610
9611 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
9612
9613         * elf/dl-minimal.c (__strsep): New minimal implementation.
9614
9615 2002-02-02  Paul Eggert  <eggert@twinsun.com>
9616
9617         * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
9618         (__mktime_internal): If no tm_isdst is requested, prefer solutions
9619         with tm_isdst > 0 when the requested time falls within a
9620         spring-forward gap [PR libc/2894].
9621
9622 2002-02-03  Andreas Schwab  <schwab@suse.de>
9623
9624         * stdio-common/tst-rndseek.c: Increase timeout.
9625
9626 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
9627
9628         Change ld.so to not use functions which are exported.  One cannot
9629         interpose them anyway.  Use INT() to mark uses, INTDEF() to mark
9630         definitions.
9631         * include/libc-symbols.h: Define INT and INTDEF.
9632         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
9633         _dl_signal_error_internal, _dl_map_object_internal,
9634         _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
9635         _dl_lookup_versioned_symbol_internal,
9636         _dl_relocate_object_internal, _dl_debug_state_internal,
9637         _dl_start_profile_internal, and _dl_unload_cache_internal.
9638         * include/dlfcn.h: Declare _dl_catch_error_internal.
9639         * elf/rtld.c: Use INT for calls to any of the *_internal functions
9640         above.  Add INTDEF to function definitions.
9641         * elf/dl-debug.c: Likewise.
9642         * elf/dl-deps.c: Likewise.
9643         * elf/dl-dst.h: Likewise.
9644         * elf/dl-error.c: Likewise.
9645         * elf/dl-fini.c: Likewise.
9646         * elf/dl-init.c: Likewise.
9647         * elf/dl-load.c: Likewise.
9648         * elf/dl-lookup.c: Likewise.
9649         * elf/dl-misc.c: Likewise.
9650         * elf/dl-open.c: Likewise.
9651         * elf/dl-profile.c: Likewise.
9652         * elf/dl-reloc.c: Likewise.
9653         * elf/dl-runtime.c: Likewise.
9654         * elf/dl-version.c: Likewise.
9655         * elf/do-lookup.h: Likewise.
9656         * sysdeps/generic/dl-cache.c: Likewise.
9657         * sysdeps/generic/dl-sysdep.c: Likewise.
9658         * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
9659         instead of _dl_init.
9660         * sysdeps/arm/dl-machine.h: Likewise.
9661         * sysdeps/cris/dl-machine.h: Likewise.
9662         * sysdeps/hppa/dl-machine.h: Likewise.
9663         * sysdeps/i386/dl-machine.h: Likewise.
9664         * sysdeps/ia64/dl-machine.h: Likewise.
9665         * sysdeps/m68k/dl-machine.h: Likewise.
9666         * sysdeps/mips/dl-machine.h: Likewise.
9667         * sysdeps/mips/mips64/dl-machine.h: Likewise.
9668         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9669         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9670         * sysdeps/sh/dl-machine.h: Likewise.
9671         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9672         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9673         * sysdeps/x86_64/dl-machine.h: Likewise.
9674         * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
9675
9676         * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
9677         and _dl_debug_initialize.
9678
9679         * elf/dl-object.c (_dl_new_object): Avoid using strrchr.  We have
9680         more information.
9681         * elf/rtld.c (dl_main): Avoid strrchr.
9682         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
9683         result of readlink.  Search from the back for '/'.
9684
9685         * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
9686         strncpy if possible.
9687
9688         * sysdeps/generic/dl-environ.c (unsetenv): Optimize.  Don't use
9689         strncmp.
9690         * elf/dl-load.c (is_dst): Optimize.  Don't call strncmp twice.
9691         * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
9692         strspn, and strcspn.
9693         (process_envvars): Don't use strcspn.
9694
9695         * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
9696         (_dl_dst_substitute): Likewise.
9697
9698 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9699
9700         * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
9701         code which is never used when relocating ld.so itself.
9702
9703         * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
9704         starting ld.so itself.  Move l_addr variable initialization closer
9705         to use.
9706         (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
9707
9708 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
9709
9710         * Versions.def (libc): Add GLIBC_PRIVATE.
9711         (libdb, libnss_db, libdb1): Remove.
9712         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
9713         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
9714         (libpthread): Add GLIBC_PRIVATE.
9715         (libresolv): Likewise, remove GLIBC_2.1.
9716         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
9717         GLIBC_2.2.3, GLIBC_2.3.
9718         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
9719         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
9720         _dl_sym, _dl_vsym): Likewise.
9721         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
9722         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
9723         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
9724         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
9725         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
9726         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
9727         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
9728         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
9729         Likewise.
9730         (_dl_object_relocation_scope): Remove.
9731         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
9732         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
9733         __gconv_cache): Move to GLIBC_PRIVATE.
9734         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
9735         __internal_setnetgrent): Likewise.
9736         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
9737         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
9738         * locale/Versions (__collate_element_hash, __collate_element_strings,
9739         __collate_symbol_classes, __collate_symbol_hash,
9740         __collate_symbol_strings, _nl_current_LC_COLLATE,
9741         _nl_current_LC_CTYPE): Likewise.
9742         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
9743         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
9744         (libnss_nis, libnss_nisplus): Likewise.
9745         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
9746         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
9747         (libnss_files): Move all symbols to GLIBC_PRIVATE.
9748         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
9749         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
9750         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
9751         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
9752         __ns_get16, __ns_samename): Likewise.
9753         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
9754         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
9755         GLIBC_PRIVATE.
9756         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
9757         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
9758         __libc_connect): Likewise.
9759         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
9760         Likewise.
9761         * stdlib/Versions (__libc_system): Likewise.
9762         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
9763         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
9764         * sysdeps/ia64/fpu/Versions: Likewise.
9765         * sysdeps/ia64/Versions: Likewise.
9766         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
9767         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
9768         to GLIBC_PRIVATE.
9769         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
9770         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
9771         __libc_sigaction): Likewise.
9772         * termios/Versions (__libc_tcdrain): Likewise.
9773
9774         * misc/sys/cdefs (__attribute_noinline__): Define.
9775         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
9776         __attribute_noinline__.
9777
9778         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
9779         * elf/dl-xstat64.c: New file.
9780         * elf/dl-fxstat64.c: New file.
9781         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
9782         don't export __fxstat64 at multiple versions.
9783         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
9784         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
9785
9786 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
9787
9788         * locale/program/ld-collate.c (collate_finish): Assign a wide
9789         char collation sequence value to multi character collating
9790         elements, and avoid over writing by non-character elements.
9791
9792 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9793
9794         * elf/Makefile (distribute): Add dl-procinfo.c.
9795         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
9796         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
9797
9798 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
9799
9800         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
9801         definition.
9802         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
9803         _rtld_global struct.
9804         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
9805         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
9806         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9807         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
9808         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
9809         _dl_fpu_control_set): Remove unused externs.
9810         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
9811         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
9812         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
9813         related variables in _rtld_global struct.
9814         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
9815         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
9816         unused extern.
9817
9818 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9819
9820         * sysdeps/generic/dl-procinfo.c: New file.
9821
9822 2002-02-01  Andreas Schwab  <schwab@suse.de>
9823
9824         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
9825
9826 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9827
9828         * elf/rtld.c (_dl_start): Mark as internal_function.
9829         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
9830         in register.
9831         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
9832         General pretty printing.
9833
9834 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
9835
9836         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
9837         * elf/dl-reloc.c: Pretty printing.
9838         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
9839         procinfo-related variables in rtld_global struct.
9840         * elf/dl-support.c: Likewise.
9841         * elf/rtld.c: Likewise.
9842         * sysdeps/i386/i686/Makefile: Likewise.
9843         * sysdeps/i386/i686/hp-timing.c: Likewise.
9844         * sysdeps/i386/i686/hp-timing.h: Likewise.
9845         * sysdeps/ia64/Makefile: Likewise.
9846         * sysdeps/ia64/hp-timing.c: Likewise.
9847         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
9848         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
9849         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
9850         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
9851         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
9852         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
9853         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
9854         * sysdeps/x86_64/Makefile: Likewise.
9855
9856         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
9857         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
9858         _dl_debug_fd to rtld_global.
9859         * elf/Versions: Likewise.
9860         * elf/dl-close.c: Likewise.
9861         * elf/dl-iteratephdr.c: Likewise.
9862         * elf/dl-lookup.c: Likewise.
9863         * elf/dl-misc.c: Likewise.
9864         * elf/dl-open.c: Likewise.
9865         * elf/dl-support.c: Likewise.
9866         * elf/do-lookup.h: Likewise.
9867         * elf/rtld.c: Likewise.
9868         * sysdeps/generic/dl-cache.c: Likewise.
9869         * sysdeps/generic/dl-sysdep.c: Likewise.
9870         * sysdeps/ia64/Versions: Likewise.
9871         * sysdeps/unix/clock_gettime.c: Likewise.
9872         * sysdeps/unix/clock_settime.c: Likewise.
9873         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
9874         * sysdeps/sparc/Versions: Removed.
9875         * sysdeps/i386/i686/Versions : Removed.
9876         * sysdeps/x86_64/Versions: Removed.
9877         * configure.in: Define HAVE_PROTECTED if .protected is available.
9878         * config.h.in: Add entry for HAVE_PROTECTED.
9879
9880 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
9881
9882         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
9883         code in struct _rtld_global.  Export this struct, remove all
9884         exports for the signal variables.
9885         * sysdeps/arm/dl-machine: Likewise.
9886         * sysdeps/generic/dl-origin: Likewise.
9887         * sysdeps/generic/dl-sysdep: Likewise.
9888         * sysdeps/generic/dl-cache: Likewise.
9889         * sysdeps/hppa/dl-fptr: Likewise.
9890         * sysdeps/hppa/dl-machine: Likewise.
9891         * sysdeps/cris/dl-machine: Likewise.
9892         * sysdeps/i386/dl-machine: Likewise.
9893         * sysdeps/ia64/dl-machine: Likewise.
9894         * sysdeps/m68k/dl-machine: Likewise.
9895         * sysdeps/mach/hurd/dl-sysdep: Likewise.
9896         * sysdeps/mips/mips64/dl-machine: Likewise.
9897         * sysdeps/mips/dl-machine: Likewise.
9898         * sysdeps/powerpc/elf/libc-start: Likewise.
9899         * sysdeps/powerpc/dl-machine: Likewise.
9900         * sysdeps/powerpc/dl-start: Likewise.
9901         * sysdeps/sparc/sparc32/dl-machine: Likewise.
9902         * sysdeps/sparc/sparc64/dl-machine: Likewise.
9903         * sysdeps/sh/dl-machine: Likewise.
9904         * sysdeps/s390/s390-32/dl-machine: Likewise.
9905         * sysdeps/s390/s390-64/dl-machine: Likewise.
9906         * sysdeps/unix/sysv/aix/libc-start: Likewise.
9907         * sysdeps/unix/sysv/aix/start-libc: Likewise.
9908         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
9909         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
9910         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
9911         * sysdeps/x86_64/dl-machine: Likewise.
9912
9913 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
9914
9915         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
9916         are too high.
9917
9918 2002-01-31  Andreas Schwab  <schwab@suse.de>
9919
9920         * sysdeps/posix/readv.c: Check for ssize_t overflow.
9921
9922 2002-01-31  Andreas Schwab  <schwab@suse.de>
9923
9924         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
9925         reference to _dl_pagesize.
9926
9927 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
9928
9929         * Versions.def [ld]: Add GLIBC_2.3.
9930         * elf/dl-addr.c: Move global variables for SHARED code in struct
9931         _rtld_global.  Export this struct, remove all exports for the
9932         signal variables.
9933         * elf/dl-close.c: Likewise.
9934         * elf/dl-conflict.c: Likewise.
9935         * elf/dl-debug.c: Likewise.
9936         * elf/dl-deps.c: Likewise.
9937         * elf/dl-dst.h: Likewise.
9938         * elf/dl-error.c: Likewise.
9939         * elf/dl-fini.c: Likewise.
9940         * elf/dl-init.c: Likewise.
9941         * elf/dl-iteratephdr.c: Likewise.
9942         * elf/dl-libc.c: Likewise.
9943         * elf/dl-load.c: Likewise.
9944         * elf/dl-lookup.c: Likewise.
9945         * elf/dl-minimal.c: Likewise.
9946         * elf/dl-object.c: Likewise.
9947         * elf/dl-open.c: Likewise.
9948         * elf/dl-profile.c: Likewise.
9949         * elf/dl-profstub.c: Likewise.
9950         * elf/dl-reloc.c: Likewise.
9951         * elf/dl-runtime.c: Likewise.
9952         * elf/dl-support.c: Likewise.
9953         * elf/dl-sym.c: Likewise.
9954         * elf/dl-version.c: Likewise.
9955         * elf/do-lookup.h: Likewise.
9956         * elf/do-rel.h: Likewise.
9957         * elf/dynamic-link.h: Likewise.
9958         * elf/rtld.c: Likewise.
9959         * sysdeps/generic/dl-cache.c: Likewise.
9960         * sysdeps/generic/dl-sysdep.c: Likewise.
9961         * sysdeps/generic/ldsodefs.h: Likewise.
9962         * sysdeps/generic/libc-start.c: Likewise.
9963         * sysdeps/i386/dl-machine.h: Likewise.
9964         * sysdeps/ia64/dl-fptr.c: Likewise.
9965         * sysdeps/ia64/dl-machine.h: Likewise.
9966         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
9967         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
9968         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
9969         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
9970         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
9971         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
9972         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
9973         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
9974
9975 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
9976
9977         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
9978         to avoid warning
9979         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
9980
9981         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
9982         SHARED version.
9983         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
9984
9985         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
9986
9987 2002-01-29  Ben Collins  <bcollins@debian.org>
9988
9989         * string/bits/string2.h (__mempcpy): Protect size arg for
9990         addition when using __builtin_memcpy.
9991
9992 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
9993
9994         * stdlib/Makefile (tests): Add tst-qsort.
9995         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
9996
9997         * manual/signal.texi (Process Signal Mask): Document that
9998         pthread_sigmask, not sigprocmask, must be used in MT programs.
9999         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
10000
10001         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
10002         found.
10003         * misc/Makefile (tests): Add tst-hsearch.
10004         * misc/tst-hsearch.c: New file.
10005
10006 2002-01-18  Wolfram Gloger  <wg@malloc.de>
10007
10008         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
10009         * malloc/malloc.h: Likewise.
10010         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
10011         * malloc/arena.c: New file.
10012         * malloc/hooks.c: New file.
10013         * malloc/tst-mallocstate.c: New file.
10014         * malloc/Makefile: Add new testcase tst-mallocstate.
10015         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
10016
10017 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
10018
10019         * stdlib/msort.c: Remove last patch.  The optimization violates the
10020         same rule which qsort.c had problems with.
10021
10022 2002-01-27  Paul Eggert  <eggert@twinsun.com>
10023
10024         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
10025         to a pivot element that lies outside the array to be sorted, as
10026         ISO C99 requires that the comparison function be called only with
10027         addresses of array elements [PR libc/2880].
10028
10029 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
10030
10031         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
10032         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
10033
10034         * timezone/asia: Update from tzdata2002b.
10035         * timezone/australasia: Likewise.
10036         * timezone/backward: Likewise.
10037         * timezone/europe: Likewise.
10038         * timezone/leapseconds: Likewise.
10039         * timezone/iso3166.tab: Likewise.
10040         * timezone/zone.tab: Likewise.
10041
10042 2002-01-23  Richard Henderson  <rth@redhat.com>
10043
10044         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
10045
10046 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
10047
10048         * string/strxfrm.c: Allocate one more byte for rulearr and clear
10049         this element [PR libc/2855].
10050
10051         * string/strcoll.c: Handle zero-length arguments specially
10052         [PR libc/2856].
10053
10054 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
10055
10056         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
10057         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
10058         short lengths and constant src.
10059         (strcpy): Don't optimize for gcc 3.0+.
10060         (__stpcpy): For gcc 3.0+, don't use
10061         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
10062         for short string literal src.
10063
10064 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
10065
10066         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
10067         Set for arm, too.
10068
10069 2001-01-22  Paul Eggert  <eggert@twinsun.com>
10070
10071         * manual/llio.texi (Linked Channels, Cleaning Streams):
10072         Make it clearer that a just-opened input stream might need cleaning.
10073
10074 2002-01-21  H.J. Lu  <hjl@gnu.org>
10075
10076         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
10077         Don't use label at end of compound statement.
10078
10079 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
10080
10081         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
10082         Remove test for negative integer arg; sin_pi does it correctly.
10083
10084 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
10085
10086         * nscd/Makefile (distribute): Filter out xmalloc.c.
10087
10088 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
10089
10090         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
10091         Set offset if read end wasn't the buffer end.
10092         (_IO_file_seekoff_mmap): New function.
10093         (_IO_file_xsgetn_mmap): New function.
10094         (_IO_file_jumps_mmap): Use the two new functions.
10095         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
10096         != end buffer.
10097         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
10098         _IO_file_underflow_mmap.
10099         * libio/iofopen.c: Don't position file descriptor at end of file.
10100         * libio/tst-widetext.c: Improve error messages.
10101         * stdio-common/tst-rndseek.c: Likewise.
10102
10103 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
10104
10105         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
10106         end of enum for !_GNU_SOURCE.
10107         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
10108         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
10109         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
10110         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
10111         values unless _GNU_SOURCE.
10112
10113         * iconvdata/tcvn5712-1.c: Minor cleanups.
10114
10115 2002-01-18  Andreas Schwab  <schwab@suse.de>
10116
10117         * sysdeps/unix/sysv/linux/configure.in
10118         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
10119
10120 2002-01-16  Roger Sayle  <roger@eyesopen.com>
10121
10122         * stdlib/msort.c (msort_with_tmp): Replace implementation with
10123         more efficient "Towers of Hanoi" mergesort.
10124         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
10125         for generic, sizeof(int) and sizeof(long) variants respectively.
10126
10127 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
10128
10129         * manual/syslog.texi (openlog): Describe possible problems with
10130         first parameter.
10131         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10132
10133         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
10134         * nscd/connections.c (begin_drop_privileges): New function.
10135         (finish_drop_privileges): New function.
10136         (nscd_init): Call the new functions which also install all groups
10137         for the server user.
10138         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
10139         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10140
10141 2002-01-17  H.J. Lu  <hjl@gnu.org>
10142
10143         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
10144         `const' from `got'.
10145
10146 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10147
10148         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
10149         instructions for pointer operations.
10150         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
10151
10152 2002-01-17  Andreas Jaeger  <aj@suse.de>
10153
10154         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
10155         __uint128_t build-in.
10156
10157         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
10158         PowerPC, sync with 2.2 branch.
10159
10160 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
10161
10162         * posix/getconf.c: Update copyright year.
10163         * nss/getent.c: Likewise.
10164         * nscd/nscd_nischeck.c: Likewise.
10165         * iconv/iconvconfig.c: Likewise.
10166         * iconv/iconv_prog.c: Likewise.
10167         * elf/ldconfig.c: Likewise.
10168         * catgets/gencat.c: Likewise.
10169         * csu/version.c: Likewise.
10170         * elf/ldd.bash.in: Likewise.
10171         * elf/sprof.c (print_version): Likewise.
10172         * locale/programs/locale.c: Likewise.
10173         * locale/programs/localedef.c: Likewise.
10174         * nscd/nscd.c (print_version): Likewise.
10175         * debug/xtrace.sh: Likewise.
10176         * malloc/memusage.sh: Likewise.
10177         * malloc/mtrace.pl: Likewise.
10178
10179 2002-01-16  Andreas Schwab  <schwab@suse.de>
10180
10181         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
10182         reliably remove "-ia64" from rtld name.
10183
10184 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
10185
10186         * iconvdata/gb18030.c: Bug fixes and support for more characters.
10187         Patch by Yu Shao <yshao@redhat.com>.
10188
10189 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10190
10191         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
10192         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
10193         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
10194
10195 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10196
10197         * sysdeps/s390/fpu/libm-test-ulps: Update.
10198
10199 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
10200
10201         * elf/elf.h: Update x86 relocations.
10202
10203 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
10204
10205         * locale/programs/charmap.c (new_width): Check whether byte
10206         sequences for both ends of range have the same length.
10207
10208 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
10209
10210         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
10211
10212 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
10213
10214         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
10215         string literals.
10216         (__full_ieee754_sqrt): Add __attribute_used__.
10217
10218 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
10219
10220         * sysdeps/generic/group_member.c (__group_member): Also check
10221         groups[0] [PR libc/2781].
10222
10223 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
10224
10225         * Makefile (distribute): Add scripts/cpp.
10226         * elf/Makefile (distribute): Add reldep6mod[01234].c,
10227         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
10228         unwind-dw2-fde.h, and dwarf2.h.
10229         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
10230         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
10231         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
10232         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
10233
10234 2002-01-07  Roland McGrath  <roland@frob.com>
10235
10236         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
10237         volatile on type of ARGC so the compiler doesn't get clever.
10238
10239 2002-01-07  Andreas Jaeger  <aj@suse.de>
10240
10241         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
10242         * sysdeps/i386/bits/byteswap.h: Likewise.
10243         * sysdeps/ia64/bits/byteswap.h: Likewise.
10244         * sysdeps/m68k/bits/byteswap.h: Likewise.
10245         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
10246         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
10247
10248 2002-01-02  Bruno Haible  <bruno@clisp.org>
10249
10250         * intl/plural.y: Fix %expect count.
10251
10252 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
10253
10254         * elf/Makefile (routines, shared-only-routines): Add
10255         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
10256         * elf/elf.h (PT_GNU_EH_FRAME): Define.
10257         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
10258         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
10259         Optimize if .eh_frame section contains no FDEs.
10260         (__register_frame, __deregister_frame_info_bases,
10261         __deregister_frame): Likewise.
10262         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
10263         DW_CFA_restore handling.
10264
10265 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
10266
10267         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
10268
10269         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
10270         for x < 0.25 and restore original range reduction method.
10271         (__ieee754_lgammal_r): Make sure signgam is set before returning.
10272
10273 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
10274
10275         * libio/fileops.c (_IO_file_underflow_mmap): New function.
10276         (_IO_file_close_mmap): New function.
10277         (_IO_file_jumps_mmap): New variable.
10278         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
10279         trying to convert rest of byte buffer.
10280         (_IO_wfile_underflow_mmap): New function.
10281         (_IO_wfile_jumps_mmap): New variable.
10282         * libio/iofopen.c (__fopen_maybe_mmap): New function.
10283         (__fopen_internal): New function.  Split out from _IO_new_fopen.
10284         (_IO_new_fopen): Call __fopen_internal.
10285         * libio/iofopen64.c: Just call __fopen_internal.
10286         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
10287         successfully.
10288         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
10289         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
10290         _IO_file_close_mmap.
10291
10292         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
10293         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
10294
10295         * stdio-common/Makefile (tests): Add tst-rndseek.
10296         * stdio-common/tst-rndseek.c: New file.
10297
10298 2002-01-05  Roland McGrath  <roland@frob.com>
10299
10300         * config.h.in (HAVE_MIG_RETCODE): New #undef.
10301         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
10302         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
10303         * sysdeps/mach/hurd/configure: Regenerated.
10304
10305 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
10306
10307         * elf/elf.h: Add more TLS definitions.
10308
10309 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
10310
10311         * include/features.h (__GLIBC_MINOR__): Bump to 3.
10312
10313 2002-01-02  Roland McGrath  <roland@frob.com>
10314
10315         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
10316         __sigisemptyset.  Don't use MASK uninitialized.
10317
10318         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
10319         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
10320         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
10321         __sigdelset, __sigaddset, __sigorset.
10322
10323         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
10324         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
10325
10326         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
10327         _hurd_ports is null.
10328
10329         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
10330         for old CMU and new OSF Mach interface flavors.
10331         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
10332         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10333
10334         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
10335
10336         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
10337         Pass extra arguments to task_create for OSF variant.
10338         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10339
10340         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
10341         conditional on [HAVE_AUX_VECTOR].
10342
10343         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
10344         mach_msg_timeout_t as type of final argument.
10345
10346         * hurd/privports.c (__get_privileged_ports):
10347         Change host_priv_t to mach_port_t in argument type.
10348         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
10349         Update decls.
10350
10351         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
10352         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
10353         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
10354         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
10355         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
10356         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
10357
10358 2002-01-01  Roland McGrath  <roland@frob.com>
10359
10360         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
10361
10362 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
10363
10364         * include/stdlib.h: Define inlines for the _l variants of the strto*
10365         functions.
10366
10367 2002-01-01  Roland McGrath  <roland@frob.com>
10368
10369         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
10370
10371         * mach/Machrules (MIG): Set CPP as well as CC.
10372
10373 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
10374
10375         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
10376         locale to parse /proc/loadavg [PR libc/2760].
10377
10378 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
10379
10380         * elf/dl-conflict.c: Include sys/param.h.
10381         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
10382         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
10383         warning.
10384         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
10385         literals to avoid warnings.
10386
10387 2001-12-31  Andreas Jaeger  <aj@suse.de>
10388
10389         * configure.in: Don't check for gsed since we do not use it anywhere.
10390
10391 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
10392
10393         * io/fts.c: Update from BSD to fix memory leaks.
10394
10395 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
10396
10397         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
10398         * elf/chroot_canon.c: Likewise.
10399         * elf/dl-object.c: Likewise.
10400         * iconv/iconv_charmap.c: Likewise.
10401         * iconv/iconv_prog.c: Likewise.
10402         * libio/iogetdelim.c: Likewise.
10403         * locale/lc-time.c: Likewise.
10404         * stdlib/canonicalize.c: Likewise.
10405         * sunrpc/svc.c: Likewise.
10406         * sysdeps/generic/glob.c: Likewise.
10407
10408 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10409
10410         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
10411         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
10412         remove high order bit from the program counter.
10413         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
10414
10415 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10416
10417         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
10418         unnecessary code and add missing reloc types.
10419         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
10420         case for reloc type R_390_NONE.
10421
10422 2001-12-28  Andreas Jaeger  <aj@suse.de>
10423
10424         * io/bug-ftw3.c: Include string.h for prototypes.
10425
10426         * crypt/md5test.c (main): Remove unused variable.
10427
10428         * dlfcn/modstatic.c: Add prototype to avoid warning.
10429
10430 2001-12-26  Roland McGrath  <roland@frob.com>
10431
10432         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
10433         check only (SS->pending & MASK) for the signal to return.
10434         From Jeroen Dekkers <jeroen@dekkers.cx>.
10435
10436 2001-12-22  Roland McGrath  <roland@frob.com>
10437
10438         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
10439         Use preprocessor #if conditionals instead of `if' to avoid
10440         warnings about divide by zero in dead code.
10441
10442         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
10443         _hurd_port_init, and __hurd_self_sigstate.
10444
10445         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
10446
10447 2001-12-21  Andreas Jaeger  <aj@suse.de>
10448
10449         * elf/dblloadmod1.c: Add prototype to avoid warning.
10450         * elf/dblloadmod2.c: Likewise.
10451         * elf/dblloadmod3.c: Likewise.
10452         * elf/reldepmod5.c: Likewise.
10453         * elf/reldepmod6.c: Likewise.
10454
10455         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
10456         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
10457         used on all architectures.
10458
10459         * sunrpc/svc_tcp.c: Add noreturn attribute for
10460         svctcp_rendezvous_abort.
10461         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
10462
10463         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
10464         to avoid warning.
10465
10466 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
10467
10468         * manual/llio.texi (aio_fsync): Fix a typo.
10469         Patch by Tammy Fox <tfox@redhat.com>.
10470
10471 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
10472
10473         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
10474         stack bias from child stack pointer before passing it to clone syscall.
10475
10476 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
10477
10478         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
10479         _SC_TZNAME_MAX.
10480         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
10481         Reported by Thorsten Kukuk <kukuk@suse.de>.
10482
10483         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
10484         add some casts.
10485
10486         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
10487
10488 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
10489
10490         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
10491         conforming: return EBADF if file descriptor is invalid and EINVAL
10492         if file descriptor is no valid tty.
10493         * login/tst-grantpt.c: New file.
10494         * login/Makefile (tests): Add tst-grantpt.
10495
10496 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
10497
10498         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
10499         different than implemented in last patch.
10500         * io/bug-ftw3.c: Adjust test for changed handling of
10501         inaccessibility of toplevel dir.
10502
10503 2001-12-16  Roland McGrath  <roland@frob.com>
10504
10505         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
10506         * grp/initgroups.c (internal_getgrouplist): Likewise.
10507
10508         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
10509         `default:' to silence new GCC warning.
10510         Rewrite cast of lvalue to silence new GCC warning.
10511
10512         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
10513
10514         * sysdeps/mach/hurd/spawni.c: New file, by me with a
10515         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
10516
10517 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
10518
10519         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
10520         Patch by Stephen R. van den Berg.
10521
10522         * crypt/md5.h: Define md5_uintptr.
10523
10524 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
10525
10526         * libio/tst_swprintf.c (main): Add test for string argument with
10527         zero precision.
10528         * stdio-common/Makefile (tests): Add tst-sprintf.
10529         * stdio-common/tst-sprintf.c: New file.
10530
10531 2001-12-13  Andreas Schwab  <schwab@suse.de>
10532
10533         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
10534         zero precision with wide character string format.
10535
10536 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
10537
10538         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
10539         but have a user supplied buffer, return the empty buffer, not NULL.
10540
10541 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
10542
10543         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
10544         Patch by Eric Sharkey <sharkey@netrics.com>.
10545
10546         * crypt/md5test.c (main): Add test for multiple calls to
10547         __md5_process_bytes to itererate over input string.
10548
10549 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
10550
10551         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
10552         from __nis_findfastest.  Take timeout value from parameter.
10553         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
10554         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
10555         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
10556
10557 2001-12-12  Andreas Jaeger  <aj@suse.de>
10558
10559         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
10560         combreloc test so that it works in this case.
10561
10562         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
10563
10564 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
10565
10566         * sysdeps/sh/Makefile: New file.
10567         * sysdeps/sh/_mcount.S: New file.
10568         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
10569         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
10570
10571 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
10572
10573         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
10574         limitation [PR libc/2564].
10575
10576 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
10577
10578         * elf/Makefile (dl-routines): Add conflict.
10579         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
10580         (ld.so): Add _begin local symbol.
10581         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
10582         Define.
10583         * elf/dl-deps.c (_dl_build_local_scope): New function.
10584         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
10585         of all libraries.
10586         * elf/do-rel.h (VALIDX): Define.
10587         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
10588         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
10589         can be skipped.
10590         * elf/dl-conflict.c: New file.
10591         * elf/dl-lookup.c (_dl_debug_bindings): New function.
10592         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
10593         non-NULL.
10594         (_dl_lookup_symbol_skip): Likewise.
10595         (_dl_lookup_versioned_symbol): Likewise.
10596         (_dl_lookup_versioned_symbol_skip): Likewise.
10597         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
10598         define to ElfW(Rel).
10599         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
10600         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
10601         ranges.
10602         Don't adjust address dynamic tags if l_addr is 0.
10603         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
10604         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
10605         (VALIDX, ADDRIDX): Define.
10606         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
10607         (dl_main): Print library list for LD_TRACE_PRELINKING.
10608         If prelinking information can be used, skip relocating libraries and
10609         call _dl_resolve_conflicts instead.
10610         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
10611         * elf/dl-load.c (_dl_map_object): Don't create fake libs
10612         if LD_TRACE_PRELINKING.
10613         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
10614         + DT_ADDRNUM.
10615         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
10616         (DL_DEBUG_PRELINK): Define.
10617         (_dl_resolve_conflicts): Add prototype.
10618
10619         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
10620         .plt for prelinked libraries where prelinking info cannot be used.
10621         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
10622         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
10623         * sysdeps/arm/bits/link.h: New file.
10624         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
10625         content of .got[1].
10626         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
10627         (ELF_MACHINE_PLT_REL): Define.
10628         (elf_machine_rela, elf_machine_rela_relative): New functions.
10629         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
10630         of adjusting it if prelinked and prelinking cannot be used.
10631         * sysdeps/i386/bits/link.h: New file.
10632         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
10633         content of .got[1].
10634         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
10635         (ELF_MACHINE_PLT_REL): Define.
10636         (elf_machine_rela, elf_machine_rela_relative): New functions.
10637         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
10638         of adjusting it if prelinked and prelinking cannot be used.
10639         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
10640         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
10641         to find out map for R_PPC_JMP_SLOT relocs.
10642         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
10643         (OPCODE_BA): Define.
10644         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
10645         libraries where prelinking info cannot be used.
10646         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
10647         (elf_machine_fixup_plt): Call sparc_fixup_plt.
10648         (elf_machine_rela): Set value to 0 if relocating conflicts.
10649         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
10650         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
10651         (sparc64_fixup_plt): Fix a typo.
10652         (elf_machine_rela): Set value to 0 if relocating conflicts.
10653         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
10654         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
10655         libraries where prelinking info cannot be used.
10656         * sysdeps/sh/bits/link.h: New file.
10657         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
10658         content of .got[1].
10659         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
10660         of adjusting it if prelinked and prelinking cannot be used.
10661         * sysdeps/s390/s390-32/bits/link.h: New file.
10662         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
10663         Save original content of .got[1].
10664         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
10665         of adjusting it if prelinked and prelinking cannot be used.
10666         * sysdeps/s390/s390-64/bits/link.h: New file.
10667         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
10668         Save original content of .got[1].
10669         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
10670         of adjusting it if prelinked and prelinking cannot be used.
10671         * sysdeps/x86_64/bits/link.h: New file.
10672         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
10673         Save original content of .got[1].
10674         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
10675         of adjusting it if prelinked and prelinking cannot be used.
10676
10677 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
10678
10679         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
10680         where appropriate instead of numbers.  Little optimizations.
10681
10682 2001-12-10  Roland McGrath  <roland@frob.com>
10683
10684         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
10685         set it.
10686
10687         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
10688         set to GLIBC_2.2.5, not GLIBC_2.2.4.
10689
10690         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
10691         Fix conditionals so this is set by default for stdio and not for libio.
10692         * sysdeps/mach/hurd/configure: Regenerated.
10693
10694 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
10695
10696         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
10697
10698 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
10699
10700         * io/Makefile (tests): Add bug-ftw3.
10701         * io/bug-ftw3.c: New file.
10702
10703         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
10704         matches and GLOB_NOCHECK is set.
10705         * posix/globtest.sh: Correct expected result for NOCHECK test.
10706
10707         * po/ca.po: Update from translation team.
10708
10709 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
10710
10711         Implement transliteration of characters in strings of the locale
10712         definitions.
10713         * locale/programs/linereader.c: Adjust for additional parameter to
10714         lr_token.
10715         (get_string): If character <Uxxxx> is not found try to transliterate
10716         it.
10717         * locale/programs/ld-ctype.c: Adjust for additional parameter to
10718         lr_token.  Add const to charmap parameter of all functions.
10719         (find_translit, find_translit2): New functions.
10720         * locale/programs/charmap.c: Adjust for additional parameter to
10721         lr_token.
10722         * locale/programs/repertoire.c: Likewise.
10723         * locale/programs/linereader.h: Likewise.
10724         * locale/programs/ld-address.c: Likewise.  Add const to charmap
10725         parameter of all functions.
10726         * locale/programs/ld-collate.c: Likewise.
10727         * locale/programs/ld-identification.c: Likewise.
10728         * locale/programs/ld-measurement.c: Likewise.
10729         * locale/programs/ld-messages.c: Likewise.
10730         * locale/programs/ld-monetary.c: Likewise.
10731         * locale/programs/ld-name.c: Likewise.
10732         * locale/programs/ld-numeric.c: Likewise.
10733         * locale/programs/ld-paper.c: Likewise.
10734         * locale/programs/ld-paper.c: Likewise.
10735         * locale/programs/ld-telephone.c: Likewise.
10736         * locale/programs/ld-time.c: Likewise.
10737         * locale/programs/locfile.c: Likewise.
10738         * locale/programs/localedef.c: Likewise.
10739         * locale/programs/localedef.h: Likewise.
10740         * locale/programs/locfile.h: Likewise.  Add declaration for
10741         find_translit.
10742         * locale/programs/simple-hash.c: Add const to first parameter of
10743         find_entry, iterate_table, and lookup.
10744         * locale/programs/simple-hash.h: Likewise.
10745         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
10746         instead.
10747         * include/locale.h: Define __LC_LAST.
10748         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
10749
10750 2001-12-07  Geoff Keating  <geoffk@redhat.com>
10751
10752         * sysdeps/powerpc/Dist: Update for recent FP changes.
10753         * sysdeps/powerpc/fpu/Dist: Likewise.
10754
10755 2001-12-07  Andreas Schwab  <schwab@suse.de>
10756
10757         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
10758
10759 2001-12-06  Geoff Keating  <geoffk@redhat.com>
10760
10761         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
10762         save/restore functions here.
10763         (libm-support): Don't define these functions here.
10764         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
10765         functions here.
10766         * sysdeps/powerpc/fe_nomask.c: Move to...
10767         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
10768         * sysdeps/powerpc/fprrest.S: Move to...
10769         * sysdeps/powerpc/fpu/fprrest.S: ... here.
10770         * sysdeps/powerpc/fprsave.S: Move to...
10771         * sysdeps/powerpc/fpu/fprsave.S: ... here.
10772
10773 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
10774
10775         * sysdeps/unix/sysv/linux/opensock.c: New file.
10776
10777 2001-12-06  Geoff Keating  <geoffk@redhat.com>
10778
10779         * config.make.in (with-fp): Define from configure.
10780         * configure.in: Substitute with_fp.
10781         * configure: Regenerate.
10782         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
10783         specified, and don't change FPU environment.
10784
10785 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
10786
10787         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
10788         * assert/assert.c: Check result of __asprintf call and don't use
10789         string if it failed.
10790         * assert/assert-perr.c: Likewise.
10791         * inet/rcmd.c: Likewise.
10792         * locale/programs/localedef.c (main): Check result of
10793         construct_output_path and exit if it failed.
10794         (construct_output_path): Check result of asprintf and mkdir calls and
10795         fail if they failed.
10796         * posix/getopt.c: Check result of __asprintf calls and fail if
10797         they failed.
10798         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
10799
10800 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
10801
10802         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
10803         patch.
10804         * sysdeps/generic/strncase.c: Likewise.
10805         * string/tester.c: Add tests for strcasecmp and strncasecmp.
10806
10807 2001-12-05  Geoff Keating  <geoffk@redhat.com>
10808
10809         * scripts/cpp: Test the exit status from 'type', not 'awk'.
10810
10811         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
10812         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
10813         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
10814         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
10815         * sysdeps/powerpc/fclrexcpt.c: Move to...
10816         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
10817         * sysdeps/powerpc/fpu_control.h: Move to...
10818         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
10819
10820 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
10821
10822         * iconvdata/ibm1129.h: Remove duplicate mappings.
10823         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
10824         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
10825         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10826
10827         * timezone/zic.c: Fix handling of turnaround times.
10828         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
10829
10830 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
10831
10832         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
10833         overflow problem.
10834
10835 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
10836
10837         * posix/regex.c: For use outside glibc defined bounded pointer
10838         macros here.  Patch by Jim Meyering <jim@meyering.net>.
10839
10840         * iconvdata/Makefile (modules): Add TCVN5712-1.
10841         * iconvdata/TESTS: Add TCVN5712-1.
10842         * iconvdata/gconv-modules: Likewise.
10843         * iconvdata/tcvn5712-1.c: New file.
10844         * iconvdata/testdata/TCVN-5712: New file.
10845         * iconvdata/testdata/TCVN-5712..UTF8: New file.
10846
10847 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
10848
10849         * iconvdata/cp1258.c: Optimize conversion from UCS4.
10850
10851 2001-12-02  Roland McGrath  <roland@frob.com>
10852
10853         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
10854
10855         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
10856         Reported by Jeff Bailey <jbailey@nisa.net>.
10857
10858         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
10859         Reported by Jeff Bailey <jbailey@nisa.net>.
10860
10861         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
10862         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
10863         Reported by Jeff Bailey <jbailey@nisa.net>.
10864
10865 2001-12-01  Roland McGrath  <roland@frob.com>
10866
10867         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
10868         missing backslash in test arguments.
10869         * sysdeps/mach/hurd/configure: Regenerated.
10870
10871 2001-11-26  Roland McGrath  <roland@frob.com>
10872
10873         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
10874         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
10875
10876 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
10877
10878         * iconvdata/Makefile (modules): Add ARMSCII-8.
10879         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
10880         * iconvdata/armscii-8.c: New file.
10881
10882 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
10883
10884         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
10885         don't match, fix {{a,b},c} globbing, clean up.
10886         Patch by Flavio Veloso <flaviovs@magnux.com>.
10887         * posix/globtest.sh: Add new tests.
10888
10889 2001-11-29  Andreas Jaeger  <aj@suse.de>
10890
10891         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
10892         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
10893
10894         * sysdeps/generic/abort.c: Include libioP.h for
10895         _IO_flush_all_lockp prototype.
10896
10897 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
10898
10899         * posix/regex.h: Define __restrict_arr correctly.
10900
10901 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
10902
10903         * iconvdata/ibm1163.c: New file.
10904         * iconvdata/ibm1163.h: New file.
10905         * iconvdata/ibm1164.c: New file.
10906         * iconvdata/ibm1164.h: New file.
10907         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
10908         * iconvdata/Makefile: Likewise.
10909         * iconvdata/testdata/IBM1163: New file.
10910         * iconvdata/testdata/IBM1163..UTF8: New file.
10911         * iconvdata/testdata/IBM1164: New file.
10912         * iconvdata/testdata/IBM1164..UTF8: New file.
10913         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10914
10915         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
10916         * iconvdata/ibm1124.h: Likewise.
10917         * iconvdata/ibm1132.h: Likewise.
10918         * iconvdata/ibm1133.h: Likewise.
10919         * iconvdata/ibm1160.h: Likewise.
10920         * iconvdata/ibm1161.h: Likewise.
10921         * iconvdata/ibm1162.h: Likewise.
10922         * iconvdata/ibm856.h: Likewise.
10923         * iconvdata/ibm922.h: Likewise.
10924         * iconvdata/ibm930.h: Likewise.
10925         * iconvdata/ibm932.h: Likewise.
10926         * iconvdata/ibm933.h: Likewise.
10927         * iconvdata/ibm935.h: Likewise.
10928         * iconvdata/ibm937.h: Likewise.
10929         * iconvdata/ibm939.h: Likewise.
10930         * iconvdata/ibm943.h: Likewise.
10931         * iconvdata/ibm930.c: Pretty printing.
10932         * iconvdata/ibm937.c: Avoid access accross array boundary.
10933
10934         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
10935         the current locale's codeset.
10936         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
10937         empty input string.
10938         * iconv/iconv_prog.c: Pass empty strings as default value for to-
10939         and from-charset.  Don't determine locale's charset here.
10940
10941         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
10942         as the old _IO_flush_all but lock only if parameter is nonzero.
10943         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
10944         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
10945         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
10946         if libio is used [PR libc/2575].
10947
10948 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
10949
10950         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
10951         __signbitl): Only define for ISO C99.
10952
10953 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
10954
10955         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
10956         herrnop to NETDB_INTERNAL if we run out of buffer space.
10957
10958 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
10959
10960         * nss/nss_files/files-XXX.c (internal_getent): Correct input
10961         overflow test for platforms with signed char.
10962         Reported by Andrew Haley <aph@cambridge.redhat.com>.
10963
10964 2001-11-28  Bruno Haible  <bruno@clisp.org>
10965
10966         * locale/programs/simple-hash.c (lookup_2): Remove function.
10967         (insert_entry_2): Call lookup instead of lookup_2.
10968
10969 2001-03-04  Bruno Haible  <bruno@clisp.org>
10970
10971         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
10972
10973 2001-10-31  Bruno Haible  <bruno@clisp.org>
10974
10975         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
10976
10977 2001-03-21  Bruno Haible  <bruno@clisp.org>
10978
10979         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
10980         chokes on empty macro arguments.
10981         * intl/plural.y: Add #pragma for alloca on AIX 3.
10982
10983 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
10984
10985         * intl/dcigettext.c (guess_category_value): Only implement for
10986         glibc.  Otherwise rely on function _nl_locale_name which isn't
10987         present in the glibc sources.
10988
10989 2001-09-24  Bruno Haible  <bruno@clisp.org>
10990
10991         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
10992         transliteration when building on a glibc system but outside glibc.
10993
10994 2001-09-22  Bruno Haible  <bruno@clisp.org>
10995
10996         * intl/plural-eval.c: New file, extracted from dcigettext.c.
10997         * intl/dcigettext.c (plural_eval): Remove function, moved to
10998         intl/plural-eval.c.
10999         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
11000         Include plural-eval.c.
11001
11002 2001-09-22  Bruno Haible  <bruno@clisp.org>
11003
11004         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
11005         don't start with a digit; nplurals must be positive.
11006
11007 2001-09-02  Bruno Haible  <bruno@clisp.org>
11008
11009         * intl/plural-exp.h: New file, extracted from gettextP.h.
11010         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
11011         * intl/gettextP.h (struct expression, struct parse_args,
11012         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
11013         * intl/loadmsgcat.c: Include plural-exp.h.
11014         (PLURAL_PARSE): Move macro to plural-exp.h.
11015         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
11016         plural-exp.c.
11017         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
11018         EXTRACT_PLURAL_EXPRESSION.
11019         (_nl_unload_domain): Update.
11020         * intl/dcigettext.c: Include plural-exp.h.
11021         * intl/plural.y: Include plural-exp.h, not gettextP.h.
11022         (FREE_EXPRESSION): Move macro to plural-exp.h.
11023         * intl/Makefile (routines): Add plural-exp.
11024         (distribute): Add plural-exp.h.
11025
11026 2001-07-28  Bruno Haible  <bruno@clisp.org>
11027
11028         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
11029         isdigit, tolower argument to 'unsigned char'.
11030         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
11031         'unsigned char'.
11032         * intl/localealias.c (read_alias_file): Cast isspace argument to
11033         'unsigned char'.
11034
11035 2001-10-20  Bruno Haible  <bruno@clisp.org>
11036
11037         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
11038         anyway.)
11039         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
11040         with the variable 'index' in plural_lookup.
11041         * intl/l10nflist.c (strchr): Likewise.
11042         * intl/localealias.c (strchr): Likewise.
11043
11044         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
11045         * intl/bindtextdom.c: Likewise.
11046         * intl/dcigettext.c: Likewise.
11047         * intl/dgettext.c: Likewise.
11048         * intl/dngettext.c: Likewise.
11049         * intl/explodename.c: Likewise.
11050         * intl/finddomain.c: Likewise.
11051         * intl/gettext.c: Likewise.
11052         * intl/l10nflist.c: Likewise.
11053         * intl/loadmsgcat.c: Likewise.
11054         * intl/localealias.c: Likewise.
11055         * intl/ngettext.c: Likewise.
11056         * intl/textdomain.c: Likewise.
11057         * intl/gettext.h: Assume <limits.h> exists.
11058
11059 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
11060
11061         * stdio-common/Makefile (tests): Add scanf11.
11062         * stdio-common/scanf11.c: New file.
11063
11064 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
11065
11066         * version.h (RELEASE): Define as development.
11067         (VERSION): Set to 2.2.90.
11068
11069 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
11070
11071         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
11072         * nis/nss_nis/nis-grp.c: Likewise.
11073         * nis/nss_nisplus/nisplus-grp.c: Likewise.
11074
11075         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
11076         * nis/nss_nis/nis-pwd.c: Likewise.
11077         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
11078
11079         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
11080         * nis/nss_nisplus/nisplus-parser.c: Likewise.
11081         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
11082
11083         * nscd/grpcache.c: Use strtoul instead of atol.
11084         * nscd/pwdcache.c: Likewise.
11085         * nss/getent.c: Likewise.
11086
11087 2001-11-27  Paul Eggert  <eggert@twinsun.com>
11088
11089         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
11090         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
11091
11092 2001-11-19  Bruno Haible  <bruno@clisp.org>
11093
11094         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
11095         90%.
11096         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
11097         improves the quality of the hash function, especially for short
11098         strings.
11099
11100 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
11101
11102         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
11103         are found call conv_error and not input_error [PR libc/2669].
11104
11105         * math/bits/mathcalls.h: Mark ceil and floor as const.
11106         Reported by David Mosberger.
11107
11108 2001-11-21  Jim Meyering  <meyering@lucent.com>
11109
11110         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
11111         Define to be __-prefixed.
11112         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
11113
11114 2001-11-26  Andreas Jaeger  <aj@suse.de>
11115
11116         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
11117         avoid warning.
11118
11119 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
11120
11121         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
11122         initialization.
11123
11124         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
11125         unused variables.  Fix threshold for returning 1.0.
11126
11127         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
11128         argument.
11129
11130         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
11131         remove unused variables.
11132
11133         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
11134
11135         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
11136         include local math header files.
11137
11138 2001-11-22  Andreas Jaeger  <aj@suse.de>
11139
11140         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
11141         avoid warning.
11142
11143 2001-11-21  Andreas Jaeger  <aj@suse.de>
11144
11145         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
11146
11147         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
11148         sys/debugreg.h
11149
11150 2001-11-15  Andreas Jaeger  <aj@suse.de>
11151
11152         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
11153         compilers that support it.
11154
11155         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
11156         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
11157         * stdlib/stdlib.h: Likewise.
11158
11159 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
11160
11161         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
11162         statement with gotos.
11163         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
11164
11165 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
11166
11167         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
11168
11169 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
11170
11171         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
11172
11173 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
11174             H.J. Lu  <hjl@gnu.org>
11175
11176         * Versions.def (libc): Add GCC_3.0.
11177         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
11178         if gcc supports this flag.
11179         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
11180         (gcc3): Allow glibc to be compiled with gcc 3.x.
11181         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
11182         * config.make.in (static-libgcc, unwind-find-fde): Add.
11183         * Makerules (build-shlib-helper, build-module-helper): Use it.
11184         * scripts/versions.awk: Make sure GLIBC_ versions come first.
11185         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
11186         necessary.
11187         (_fini): Call __deregister_frame_info_bases if
11188         __register_frame_info_bases was used to register.
11189         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
11190         for GLIBC_2.0.
11191         (__register_frame_info_bases, __register_frame_info_table_bases,
11192         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
11193         * elf/Makefile (routines): Add unwind-dw2-fde.
11194         (shared-only-routines): Add unwind-dw2-fde.
11195         * sysdeps/alpha/gccframe.h: New file.
11196         * sysdeps/arm/gccframe.h: New file.
11197         * sysdeps/generic/framestate.c: New file.
11198         * sysdeps/generic/dwarf2.h: New file.
11199         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
11200         * sysdeps/generic/unwind-dw2-fde.c: New file.
11201         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
11202         * sysdeps/generic/unwind-dw2-fde.h: New file.
11203         * sysdeps/generic/unwind-dw2.c: New file.
11204         * sysdeps/generic/unwind-pe.h: New file.
11205         * sysdeps/generic/unwind.h: New file.
11206         * sysdeps/hppa/gccframe.h: New file.
11207         * sysdeps/i386/gccframe.h: New file.
11208         * sysdeps/m68k/gccframe.h: New file.
11209         * sysdeps/mips/gccframe.h: New file.
11210         * sysdeps/powerpc/gccframe.h: New file.
11211         * sysdeps/s390/gccframe.h: New file.
11212         * sysdeps/sh/gccframe.h: New file.
11213         * sysdeps/sparc/gccframe.h: New file.
11214         * sysdeps/vax/gccframe.h: New file.
11215         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
11216         Set on all architectures except ia64.
11217         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
11218         for i386.
11219         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
11220         __deregister_frame_info): Move to elf/Versions.
11221         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
11222         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
11223         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
11224         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
11225         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
11226         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
11227         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
11228         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
11229         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
11230         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
11231         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
11232         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
11233         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
11234         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
11235         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
11236         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
11237         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
11238         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
11239
11240 2001-11-15  Jeff Law  <law@redhat.com>
11241
11242         * posix/regex.c (uintptr_t): Do not provide a definition if the
11243         system provided one.
11244
11245 2001-11-13  Roland McGrath  <roland@frob.com>
11246
11247         * stdio-common/tmpfile.c: Moved to ...
11248         * sysdeps/generic/tmpfile.c: ... here.
11249         * sysdeps/mach/hurd/tmpfile.c: New file.
11250
11251         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
11252         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
11253         (fopenport): Define as weak alias.
11254
11255         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
11256         * libio/libioP.h: ... to here.
11257
11258 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
11259
11260         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
11261         program header twice.  Construct list with the needed information.
11262
11263 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
11264
11265         * po/ca.po: Update from translation team.
11266
11267         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
11268         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
11269         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
11270         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11271
11272 2001-11-10  Andreas Jaeger  <aj@suse.de>
11273
11274         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
11275         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11276         Contributed by Stephen L Moshier <moshier@mediaone.net>.
11277
11278 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
11279
11280         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
11281         correctly.
11282         * elf/dl-load.c (is_dst): New function.
11283         (_dl_dst_count): Use is_dst to check for DST variable.
11284         (_dl_dst_substitute): Likewise.
11285
11286 2001-11-09  Roland McGrath  <roland@frob.com>
11287
11288         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
11289         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
11290         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
11291         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
11292         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
11293         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
11294         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
11295         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
11296         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
11297         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
11298         * sysdeps/mach/hurd/powerpc/Dist: New file.
11299
11300         * hurd/privports.c (__get_privileged_ports):
11301         Only contact the proc server if necessary for this call.
11302         Suggested by Neal H Walfield <neal@cs.uml.edu>.
11303         Check error return for mach_port_mod_refs.
11304
11305 2001-11-09  Andreas Schwab  <schwab@suse.de>
11306
11307         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
11308
11309 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
11310
11311         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
11312         object is always the last in the list.
11313         (_dl_map_object_from_fd): Delete code to remove from object list
11314         when DF_1_NOOPEN is seen.  This is done in lose.
11315
11316 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
11317
11318         * elf/dl-object.c (_dl_new_object): Various small optimizations.
11319
11320 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
11321
11322         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
11323         HWCAP_CHECK macro code.
11324
11325         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
11326         Now returns MAP_FAILED on error.
11327         * elf/rtld.c: Adjust caller.
11328         * sysdeps/generic/dl-cache.c: Likewise.
11329         * sysdeps/generic/ldsodefs.h: Adjust description.
11330
11331         * elf/dl-version.c (match_symbol): Optimize error handling for size.
11332         (_dl_check_map_versions): Likewise.
11333
11334 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
11335
11336         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
11337         _dl_signal_error directly, always use lose.  Set fd to -1 after
11338         file is closed.
11339         (lose): Don't call close if fd == -1.
11340
11341 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
11342
11343         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
11344          Also fix typo @code {mbsinit} to @code{mbsinit}.
11345
11346 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
11347
11348         * elf/dl-profile.c: Replace state variable with simple flag named
11349         running.  Remove commented-out code.
11350
11351         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
11352         (_dl_init_paths): Likewise.
11353         (_dl_map_object_from_fd): Likewise.
11354         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11355
11356 2001-11-06  Roland McGrath  <roland@frob.com>
11357
11358         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
11359         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
11360
11361         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
11362         sysdeps/powerpc/elf/sysdep.h.
11363         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
11364
11365 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
11366
11367         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
11368         speed.
11369         (process_envvars): Some more optimizations.
11370         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
11371
11372         * elf/elf.h: Add dynamic tag definitions for prelinking.
11373
11374         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
11375         Rewrite code to remove environment varables for SUID binaries.
11376         Small optimization in LD_PROFILE handling.
11377         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
11378         changes.
11379         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
11380
11381         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
11382
11383         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
11384         strings.  Change type of second parameter.
11385         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
11386         for last change.
11387
11388         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
11389
11390 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
11391
11392         * manual/string.texi: Fix typos.
11393         * manual/examples/argp-ex2.c: Likewise.
11394
11395 2001-11-05  Roland McGrath  <roland@frob.com>
11396
11397         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
11398         the more-specific unix/sysv/linux/powerpc file and breaks everything.
11399         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
11400         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
11401         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
11402         here, put under [__ELF__].
11403
11404 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
11405
11406         * manual/charset.texi: Extensive editing work.
11407         * manual/nss.texi: Likewise.
11408         Changes by Dennis Grace <dgrace@us.ibm.com>.
11409
11410 2001-11-04  Roland McGrath  <roland@frob.com>
11411
11412         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
11413         parameter to dir_mkfile.
11414
11415 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
11416
11417         * string/bits/string2.h (__strndup): If n is smaller than len, set
11418         len to n + 1.
11419         * string/tester.c (test_strndup): New function.
11420         (main): Call it.
11421
11422 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
11423
11424         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
11425
11426         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
11427         * scripts/cpp: New file.
11428
11429         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
11430         for rtld_search_dirs content.  Minor optimizations.
11431
11432 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
11433
11434         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
11435         avoiding unnecessary duplication.
11436
11437 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
11438
11439         * elf/dl-load.c (_dl_map_object): If library was found using
11440         LD_LIBRARY_PATH, don't try RUNPATH list.
11441
11442 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11443
11444         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
11445         Correct second argument of register_dump call.
11446         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
11447         Likewise.
11448
11449 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
11450
11451         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
11452         modules.
11453         * iconvdata/TESTS: Likewise.
11454         * iconvdata/gconv-modules: Likewise.
11455         * iconvdata/ibm1132.c: New file.
11456         * iconvdata/ibm1132.h: New file.
11457         * iconvdata/ibm1133.c: New file.
11458         * iconvdata/ibm1133.h: New file.
11459         * iconvdata/ibm1162.c: New file.
11460         * iconvdata/ibm1162.h: New file.
11461         * iconvdata/testdata/IBM1132: New file.
11462         * iconvdata/testdata/IBM1132..UTF8: New file.
11463         * iconvdata/testdata/IBM1133: New file.
11464         * iconvdata/testdata/IBM1133..UTF8: New file.
11465         * iconvdata/testdata/IBM1162: New file.
11466         * iconvdata/testdata/IBM1162..UTF8: New file.
11467         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
11468
11469         * string/string.h: Fix typo in comment.
11470         * wcsmbs/wchar.h: Likewise.
11471
11472 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
11473
11474         * manual/getopt.texi (getopt_long, getopt_long_only): Include
11475         const in type of longopts parameter.
11476
11477 2001-10-29  Andreas Jaeger  <aj@suse.de>
11478
11479         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
11480
11481 2001-10-29  Kevin Ryde  <user42@zip.com.au>
11482
11483         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
11484         output, clarify `#' behaviour on 0.
11485         (Floating-Point Conversions): Clarify that %g only uses %e when
11486         the exponent would be greater than 1.
11487
11488 2001-10-28  Roland McGrath  <roland@frob.com>
11489
11490         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
11491         * sysdeps/mach/powerpc/machine-sp.h: New file.
11492         * sysdeps/mach/powerpc/sysdep.h: New file.
11493         * sysdeps/mach/powerpc/thread_state.h: New file.
11494
11495         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
11496         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
11497         expect to need the same thing on every platform.
11498
11499         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
11500         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
11501
11502         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
11503         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
11504         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
11505         Move all these assembly-related definitions to ...
11506         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
11507
11508         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
11509         by Peter Bruin <pjbruin@dds.nl>.
11510
11511         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
11512         packing results for a `poll' call.
11513
11514 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
11515
11516         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
11517         correctly.
11518         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
11519         bracket expression.
11520
11521         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
11522         nrules value.
11523         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
11524
11525 2001-10-24  H.J. Lu  <hjl@gnu.org>
11526
11527         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
11528         Use __BEGIN_DECLS/__END_DECLS around prototypes.
11529         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
11530
11531 2001-10-21  Jim Meyering  <meyering@lucent.com>
11532
11533         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
11534         this code would end up calling gettext even in packages built
11535         with --disable-nls.
11536         * posix/getopt.c (_): Likewise.
11537         * posix/regex.c (_): Likewise.
11538
11539 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
11540
11541         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
11542         lookup not ip6.int.
11543         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
11544         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
11545
11546 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
11547
11548         * misc/sys/cdefs.h (__attribute_used__): Define.
11549         * elf/rtld.c (_dl_start): Add __attribute_used__.
11550         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
11551
11552 2001-10-25  Andreas Schwab  <schwab@suse.de>
11553
11554         * stdlib/a64l.c: Expect least significant digit first.
11555         * stdlib/l64a.c: Produce least significant digit first.
11556         * stdlib/Makefile (tests): Add test-a64l.
11557         * stdlib/test-a64l.c: New file.
11558         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
11559
11560 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
11561
11562         * po/sk.po: Update from translation team.
11563
11564 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
11565
11566         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
11567
11568 2001-10-18  Andreas Schwab  <schwab@suse.de>
11569
11570         * math/libm-test.inc (print_ulps): Print ulp values rounded to
11571         next whole number.
11572         (print_function_ulps): Likewise.
11573         (print_complex_function_ulps): Likewise.
11574         (print_max_error): Likewise.
11575         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
11576
11577 2001-10-16  Andreas Schwab  <schwab@suse.de>
11578
11579         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
11580         implementation.
11581
11582         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
11583         BSD_SETJMP or BSD__SETJMP is defined, resp.
11584         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
11585         a tail call to __sigsetjmp that would require extending the
11586         caller's frame.
11587         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
11588         * sysdeps/m68k/bsd-setjmp.S: Deleted.
11589         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
11590         Reported by Jes Sorensen <jes@trained-monkey.org>.
11591
11592 2001-10-16  Andreas Jaeger  <aj@suse.de>
11593
11594         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
11595         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
11596         close PR libc/2589.
11597
11598 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
11599
11600         * po/ca.po: New file.  Contributed by the translation team.
11601
11602 2001-10-15  Ralf Baechle  <ralf@gnu.org>
11603
11604         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
11605         a varargs prototype.  Remove dependency from kernel header files.
11606
11607         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
11608         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
11609
11610 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
11611
11612         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
11613         to generate hexadecimal identifier.
11614         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
11615
11616 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
11617
11618         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
11619
11620 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
11621
11622         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
11623         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
11624         Contributed by Stephen L Moshier <moshier@mediaone.net>.
11625
11626         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
11627         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11628         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
11629         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
11630         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
11631         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
11632
11633         * timezone/africa: Update from tzdata2001d.
11634         * timezone/asia: Likewise.
11635         * timezone/australasia: Likewise.
11636         * timezone/backward: Likewise.
11637         * timezone/europe: Likewise.
11638         * timezone/leapseconds: Likewise.
11639         * timezone/northamerica: Likewise.
11640         * timezone/southamerica: Likewise.
11641         * timezone/zone.tab: Likewise.
11642
11643 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11644
11645         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
11646         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
11647
11648 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
11649
11650         * elf/elf.h (PT_TLS): New definition.
11651
11652 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
11653
11654         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
11655         bits/errno.h
11656
11657 2001-10-07  Roland McGrath  <roland@frob.com>
11658
11659         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
11660
11661 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
11662
11663         * elf/elf.h: Add more ELFOSABI_* constants.
11664
11665 2001-10-04  Ben Collins  <bcollins@debian.org>
11666
11667         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
11668         decleration of __need_wchar_t.
11669
11670 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
11671
11672         * string/bits/string2.h (__strsep_g): Add prototype.
11673         (__strsep): Use it.
11674         * string/Versions (__strsep): Remove.
11675         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
11676
11677 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
11678
11679         * manua/llio.texi: Clarify file references added by mmap.
11680         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
11681
11682 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
11683
11684         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
11685         Add sc_loadrs and sc_rbs_bas to match current kernel.
11686
11687 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
11688
11689         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
11690
11691         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
11692
11693 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
11694
11695         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
11696         object has been bumped because of relocation dependency, avoid
11697         duplicates in l_scope.
11698         (show_scope): Fix typos.
11699         * elf/Makefile: Add rules to build and run reldep6.
11700         * elf/reldep6.c: New file.
11701         * elf/reldep6mod0.c: New file.
11702         * elf/reldep6mod1.c: New file.
11703         * elf/reldep6mod2.c: New file.
11704         * elf/reldep6mod3.c: New file.
11705         * elf/reldep6mod4.c: New file.
11706
11707 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
11708
11709         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
11710         sparc64_fixup_plt.
11711         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
11712         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
11713         for non-lazy binding. Fix .plt[32768+] handling.
11714         (elf_machine_plt_value): Don't add addend.
11715         (elf_machine_rela): Call sparc64_fixup_plt instead of
11716         elf_machine_fixup_plt.
11717         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
11718         dynamic linker at 0xfffff800XXXXXXXX.
11719
11720         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
11721
11722 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
11723
11724         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
11725
11726 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
11727
11728         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
11729         declare __cmsg_data field if its size would be bigger than 0.
11730         (CMSG_DATA): Adjust accordingly.
11731         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
11732         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
11733         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
11734         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
11735         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11736         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
11737         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11738
11739 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
11740
11741         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
11742         * iconvdata/testdata/IBM1160: New file.
11743         * iconvdata/testdata/IBM1160..UTF8: New file.
11744         * iconvdata/testdata/IBM1161: New file.
11745         * iconvdata/testdata/IBM1161..UTF8: New file.
11746         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11747
11748 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
11749
11750         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
11751         UL_SETFSIZE computations better.
11752
11753         * rt/Makefile: Remove use of filter for librt again.
11754
11755         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
11756         UL_SETFSIZE computations better.
11757
11758         * string/Versions: Export __strsep for GLIBC_2.2.5.
11759         * string/bits/string2.h: Define all __STRING_INLINE functions if
11760         _FORCE_INLINES is defined.
11761         Use int instead of char of parameter types.
11762         (__strsep): Don't use __strsep_g.  Don't define it.
11763         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
11764         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
11765         __strcpy_small.
11766         (__stpcpy_a_small): Renamed from __stpcpy_small.
11767         (__strcspn_c1): Don't define if _FORCE_INLINES.
11768         (__strspn_c1): Likewise.
11769
11770 2001-09-22  Ben Collins  <bcollins@debian.org>
11771
11772         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
11773         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
11774         * sysdeps/ia64/bits/sigaction.h: Likewise.
11775         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
11776
11777 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
11778
11779         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
11780
11781 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
11782
11783         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
11784
11785 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
11786
11787         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
11788
11789 2001-09-20  H.J. Lu  <hjl@gnu.org>
11790
11791         * include/dlfcn.h (__RTLD_SPROF): New definiton.
11792         * elf/dl-open.c (dl_open_worker): Return immediately after loading
11793         for __RTLD_SPROF.
11794         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
11795         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
11796
11797 2001-09-20  H.J. Lu  <hjl@gnu.org>
11798
11799         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
11800         don't add 1.
11801
11802 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
11803
11804         * nss/getent.c: Accept -s parameter to overwrite rules in
11805         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
11806
11807         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
11808         with as many ".0" as necessary to form a complete address
11809         inet_network understands.
11810
11811         * nss/getent.c: Various cleanups.  Use simpler and fewer function
11812         calls.
11813
11814 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11815
11816         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
11817         _JMPBUF_UNWINDS.
11818         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
11819
11820 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
11821
11822         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
11823         IBM1161.
11824         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
11825         * iconvdata/ibm1160.c: New file.
11826         * iconvdata/ibm1160.h: New file.
11827         * iconvdata/ibm1161.c: New file.
11828         * iconvdata/ibm1161.h: New file.
11829         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11830
11831 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
11832
11833         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
11834         difference between base address and first PT_LOAD's virtual address,
11835         not the base address.
11836
11837 2001-09-11  Tom Rix  <trix@redhat.com>
11838
11839         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
11840         ifdef for __getopt_clean_environment.
11841         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
11842
11843 2001-09-22  Andreas Jaeger  <aj@suse.de>
11844
11845         * elf/reldep4.c (main): Add proper prototype to fix warning.
11846
11847         * elf/reldep5.c (main): Remove unused variable.
11848
11849         * math/math_private.h: Add prototypes.
11850
11851 2001-09-21  Andreas Jaeger  <aj@suse.de>
11852
11853         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
11854         * sysdeps/x86_64/Dist: New file.
11855         * sysdeps/x86_64/soft-fp/Dist: New file.
11856
11857         * sysdeps/gnu/Dist: Remove eval.c.
11858
11859 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
11860
11861         * malloc/memusage.c (realloc): Don't count already allocated
11862         memory in the sums.
11863         (me): Always use dlsym() to find the real implementations.
11864
11865         * malloc/memusage.sh: Make -n option actually do something.
11866
11867 2001-09-20  Andreas Jaeger  <aj@suse.de>
11868
11869         * elf/elf.h (R_390_NUM): Correct value.
11870
11871         * Versions.def: Add missing versions 2.2.3 for libthread_db and
11872         libpthread.
11873
11874         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
11875         for x86-64, install x86-64 into */lib64.
11876
11877         * shlib-versions: Add x86-64.
11878
11879         * elf/elf.h: Add x86-64 relocations.
11880
11881 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
11882
11883         * po/fr.po: Update from translation team.
11884
11885 2001-09-19  Andreas Jaeger  <aj@suse.de>
11886
11887         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
11888         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
11889         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
11890         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
11891         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
11892         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
11893         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
11894         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
11895         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
11896         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
11897         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
11898         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
11899         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
11900         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
11901         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
11902         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
11903         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
11904         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
11905         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
11906         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
11907         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
11908         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
11909         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
11910         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
11911         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
11912         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
11913         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
11914         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
11915         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
11916         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
11917         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
11918         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
11919         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
11920         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
11921         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
11922         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
11923         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
11924         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
11925         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
11926         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
11927         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
11928         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
11929         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
11930         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
11931         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
11932         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
11933         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
11934         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
11935         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
11936         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
11937         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
11938         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
11939         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
11940         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
11941         * sysdeps/unix/x86_64/sysdep.S: New file.
11942         * sysdeps/unix/x86_64/sysdep.h: New file.
11943         * sysdeps/x86_64/Implies: New file.
11944         * sysdeps/x86_64/Makefile: New file.
11945         * sysdeps/x86_64/Versions: New file.
11946         * sysdeps/x86_64/__longjmp.S: New file.
11947         * sysdeps/x86_64/abort-instr.h: New file.
11948         * sysdeps/x86_64/atomicity.h: New file.
11949         * sysdeps/x86_64/bits/endian.h: New file.
11950         * sysdeps/x86_64/bits/setjmp.h: New file.
11951         * sysdeps/x86_64/bits/string.h: New file.
11952         * sysdeps/x86_64/bp-asm.h: New file.
11953         * sysdeps/x86_64/bsd-_setjmp.S: New file.
11954         * sysdeps/x86_64/bsd-setjmp.S: New file.
11955         * sysdeps/x86_64/dl-machine.h: New file.
11956         * sysdeps/x86_64/elf/initfini.c: New file.
11957         * sysdeps/x86_64/elf/start.S: New file.
11958         * sysdeps/x86_64/ffs.c: New file.
11959         * sysdeps/x86_64/ffsll.c: New file.
11960         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
11961         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
11962         * sysdeps/x86_64/fpu/e_acosl.c: New file.
11963         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
11964         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
11965         * sysdeps/x86_64/fpu/e_expl.c: New file.
11966         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
11967         * sysdeps/x86_64/fpu/e_log10l.S: New file.
11968         * sysdeps/x86_64/fpu/e_log2l.S: New file.
11969         * sysdeps/x86_64/fpu/e_logl.S: New file.
11970         * sysdeps/x86_64/fpu/e_powl.S: New file.
11971         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
11972         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
11973         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
11974         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
11975         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
11976         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
11977         * sysdeps/x86_64/fpu/fegetenv.c: New file.
11978         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
11979         * sysdeps/x86_64/fpu/fegetround.c: New file.
11980         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
11981         * sysdeps/x86_64/fpu/fesetenv.c: New file.
11982         * sysdeps/x86_64/fpu/fesetround.c: New file.
11983         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
11984         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
11985         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
11986         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
11987         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
11988         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
11989         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
11990         * sysdeps/x86_64/fpu/s_atanl.c: New file.
11991         * sysdeps/x86_64/fpu/s_cosl.S: New file.
11992         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
11993         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
11994         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
11995         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
11996         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
11997         * sysdeps/x86_64/fpu/s_logbl.c: New file.
11998         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
11999         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
12000         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
12001         * sysdeps/x86_64/fpu/s_rintl.c: New file.
12002         * sysdeps/x86_64/fpu/s_significandl.c: New file.
12003         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
12004         * sysdeps/x86_64/fpu/s_sinl.S: New file.
12005         * sysdeps/x86_64/fpu/s_tanl.S: New file.
12006         * sysdeps/x86_64/gmp-mparam.h: New file.
12007         * sysdeps/x86_64/hp-timing.c: New file.
12008         * sysdeps/x86_64/hp-timing.h: New file.
12009         * sysdeps/x86_64/htonl.S: New file.
12010         * sysdeps/x86_64/memusage.h: New file.
12011         * sysdeps/x86_64/setjmp.S: New file.
12012         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
12013         * sysdeps/x86_64/stackinfo.h: New file.
12014         * sysdeps/x86_64/sysdep.h: New file.
12015         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
12016
12017         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
12018         L Moshier.
12019
12020 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
12021
12022         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
12023         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
12024
12025 2001-09-18  Andreas Schwab  <schwab@suse.de>
12026
12027         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
12028         list, now that l_scope is a pointer.
12029
12030         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
12031         scope list.
12032
12033 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
12034
12035         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
12036         (elf_machine_rela_relative): Add a missing declaration.
12037
12038 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
12039
12040         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
12041         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
12042         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
12043         ldd-rewrite scripts.
12044
12045 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
12046
12047         * elf/ldd.bash.in: Update copyright message.
12048
12049 2001-09-17  H.J. Lu  <hjl@gnu.org>
12050
12051         * hurd/hurdmalloc.c (bcopy): Removed.
12052         (realloc): Replace bcopy with memcpy.
12053         * hurd/path-lookup.c (file_name_path_scan): Likewise.
12054         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
12055         * sunrpc/rpcinfo.c (pmapdump): Likewise.
12056
12057         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
12058         (gethostbyaddr): Likewise.
12059         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
12060
12061 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
12062
12063         * sysdeps/gnu/eval.c: Removed.
12064
12065 2001-09-18  Andreas Jaeger  <aj@suse.de>
12066
12067         * sysdeps/i386/fpu/s_logbl.S: Move to ...
12068         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
12069
12070         * sysdeps/i386/fpu/s_rintl.S: Move to ...
12071         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
12072
12073         * sysdeps/i386/fpu/s_significandl.S: Move to ...
12074         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
12075
12076 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
12077
12078         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
12079         nrules value.
12080
12081 2001-09-14  H.J. Lu  <hjl@gnu.org>
12082
12083         * sysdeps/mips/fpu/libm-test-ulps: Updated.
12084
12085 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
12086
12087         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
12088         Patch by Florian La Roche <laroche@redhat.com>.
12089
12090         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
12091
12092         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
12093         ETHER_CRC_LEN.
12094
12095 2001-09-14  Andreas Schwab  <schwab@suse.de>
12096
12097         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
12098         Sumner <bls@sgi.com>.
12099         * posix/execlp.c: Likewise.
12100
12101 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
12102
12103         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
12104         is already found earlier in the search scope.
12105
12106 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
12107
12108         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
12109         filter.
12110
12111 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
12112
12113         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
12114
12115 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
12116
12117         * config.h.in: Enforce optimization to be used.
12118         * Makeconfig (preprocess-versions): Define ASSEMBLER.
12119         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
12120         * posix/Makefile (annexc-CFLAGS): Define to -O.
12121         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
12122
12123 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
12124
12125         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
12126         Patch by Stephan Kulow.
12127
12128 2001-09-08  Ben Collins  <bcollins@debian.org>
12129
12130         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
12131         usage of RESOLVE() (r_type, not reloc->r_type).
12132
12133 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
12134
12135         * elf/dl-object.c: Avoid allocating extra memory block for name.
12136         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
12137         allocated separately.
12138         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
12139
12140 2001-09-08  H.J. Lu  <hjl@gnu.org>
12141
12142         * po/zh_TW.po: Fix a typo.
12143
12144 2001-09-07  Tom Rix  <trix@redhat.com>
12145
12146         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
12147
12148 2001-08-26  Tom Rix  <trix@redhat.com>
12149
12150         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
12151         command line options.
12152         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
12153         * sysdeps/unix/sysv/aix/start.c: Removed.
12154         * sysdeps/unix/sysv/aix/start-libc.c: New file.
12155         * sysdeps/unix/sysv/aix/init-first.c: New file.
12156         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
12157
12158 2001-09-08  Ben Collins  <bcollins@debian.org>
12159
12160         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
12161         * sysdeps/generic/dl-machine.h: Likewise.
12162         * sysdeps/hppa/dl-fptr.c: Likewise.
12163         * sysdeps/ia64/dl-fptr.c: Likewise.
12164         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
12165         * sysdeps/mips/dl-machine.h: Likewise.
12166         * sysdeps/mips/mips64/dl-machine.h: Likewise.
12167         * sysdeps/powerpc/dl-machine.c: Likewise.
12168
12169 2001-09-07  Ben Collins  <bcollins@debian.org>
12170
12171         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
12172
12173         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
12174
12175 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
12176
12177         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
12178         dependencies if necessary.
12179
12180         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
12181         loaded directly) determine length if l_initfini list by iterating
12182         over its elements.  Minor optimizations.
12183         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
12184         for dependency objects.
12185         If object was already loaded check whether any of the dependencies
12186         is already on the relocation dependency list.  If yes, remove the
12187         latter.  Minor optimizations.
12188         * elf/dl-lookup.c (add_dependency): Add check for self reference of
12189         maps here.  Search l_initfini list only if the object was loaded
12190         directly and not only as a dependency.
12191         (_dl_lookup_symbol): Add relocation dependency also if object
12192         is not in global scope.  Remove test for self-reference here.
12193         (_dl_lookup_versioned_symbol): Likewise.
12194         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
12195         element of first name record.
12196         * elf/loadtest.c: Add some more test to recognize early if an object
12197         wasn't unloaded.
12198         * elf/Makefile: Add rules to build and run reldep5.
12199         * elf/reldep5.c: New file.
12200         * elf/reldepmod5.c: New file.
12201         * elf/reldepmod6.c: New file.
12202
12203         * elf/reldep2.c: Fix typo.
12204
12205 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
12206
12207         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
12208         elements.  Change l_scope to be a pointer only.
12209         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
12210         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
12211         here add searchlist of newly open file to the dependency's scope.
12212         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
12213         only searchlist from its scope.  Free own scope array if necessary.
12214         * elf/Makefile (tests): Add dblload and dblunload now.
12215
12216 2001-09-06  Andreas Jaeger  <aj@suse.de>
12217
12218         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
12219         Stephen L Moshier.
12220
12221 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
12222
12223         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
12224         they both fail.
12225         * elf/dblload.c: New file.
12226         * elf/dblloadmod1.c: New file.
12227         * elf/dblloadmod2.c: New file.
12228         * elf/dblloadmod3.c: New file.
12229         * elf/dblunload.c: New file.
12230
12231 2001-09-04  Richard Henderson  <rth@redhat.com>
12232
12233         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
12234         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
12235
12236 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
12237
12238         Correct very misleading message for error in failed runtime relocation.
12239         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
12240         place of the error.
12241         (_dl_signal_cerror): Likewise.
12242         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
12243         * elf/dl-close.c: Likewise.
12244         * elf/dl-deps.c: Likewise.
12245         * elf/dl-load.c: Likewise.
12246         * elf/dl-lookup.c: Likewise.
12247         * elf/dl-open.c: Likewise.
12248         * elf/dl-reloc.c: Likewise.
12249         * elf/dl-sym.c: Likewise.
12250         * elf/dl-version.c: Likewise.
12251         * sysdeps/generic/dl-sysdep.c: Likewise.
12252
12253 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
12254
12255         * iconv/strtab.c (strtabinit): Initialize null Strent.
12256         (newstring): Move len == 0 handling...
12257         (strtabadd): ...here.
12258         If len == 1, return null Strent.
12259         When inserting a suffix of an existing string, check if
12260         it is not equal to some suffix already recorded.
12261         Copy left and right members over if adding longer string.
12262
12263 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
12264
12265         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
12266
12267         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
12268         (__syscall_gethostname): Add prototype.
12269
12270 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
12271
12272         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
12273
12274 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
12275
12276         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
12277
12278 2001-08-27  Roland McGrath  <roland@frob.com>
12279
12280         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
12281         short, copy that much into NAME anyway before returning error.
12282
12283 2001-09-01  Richard Henderson  <rth@redhat.com>
12284
12285         * sysdeps/alpha/elf/Dist: Remove file.
12286         * sysdeps/alpha/elf/Makefile: Remove file.
12287         * sysdeps/alpha/elf/crtbegin.S: Remove file.
12288         * sysdeps/alpha/elf/crtend.S: Remove file.
12289         * sysdeps/alpha/elf/initfini.c: New file.
12290
12291 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
12292
12293         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
12294         * iconv/tst-iconv3.c: Likewise.
12295
12296 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
12297
12298         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
12299
12300 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
12301
12302         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
12303         export it.
12304         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
12305         * iconv/iconv_prog.c (insert_cache): New function.
12306         (print_known_names): If cache is used call insert_cache to use the
12307         information from the cache [PR libc/2509].
12308
12309 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
12310
12311         * time/strptime.c (strptime_internal): Recognize 'l' format and
12312         handle it like 'I' for symmetry with strftime.
12313
12314 2001-08-31  Richard Henderson  <rth@redhat.com>
12315
12316         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
12317         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
12318         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
12319         (print_statistics): Make scalar unsigned long long.
12320         * sysdeps/alpha/hp-timing.h: New file.
12321
12322 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
12323
12324         * stdio-common/perror.c (perror): Save errno early, pass it
12325         down to perror_internal.
12326         (perror_internal): Add errnum argument.
12327
12328 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
12329
12330         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
12331         Don't add old memory content for R_ALPHA_REFQUAD.
12332
12333 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12334
12335         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
12336         memory correctly.
12337
12338         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
12339         instead of open, __close instead of close, __getpagesize instead
12340         of getpagesize.
12341
12342         * string/argz-stringify.c (__argz_stringify): Use __strnlen
12343         instead of strnlen.
12344         * include/string.h (strndupa): Redefine here to use __strnlen
12345         instead of strnlen.
12346         * string/strndup.c (__strndup): Use __strnlen not strnlen.
12347
12348         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
12349         connected).
12350
12351 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
12352
12353         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
12354         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
12355         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
12356         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
12357         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
12358         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
12359         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
12360
12361 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12362
12363         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
12364
12365 2001-08-30  Andreas Jaeger  <aj@suse.de>
12366
12367         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
12368         contributed Stephen L Moshier.
12369
12370 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
12371
12372         * sunrpc/etc.rpc (sgi_fam): Add.
12373
12374 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12375
12376         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
12377
12378 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
12379
12380         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
12381         first is from a previous call.
12382         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
12383
12384 2001-08-29  Andreas Schwab  <schwab@suse.de>
12385
12386         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
12387
12388 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12389
12390         * config.make.in (INSTALL_SCRIPT): Define.
12391         * Makeconfig (INSTALL_SCRIPT): Define.
12392         * Makerules (do-install-script): New macro to install scripts using
12393         INSTALL_SCRIPT.
12394         (install-bin-script): New rule to install scripts with
12395         do-install-script.
12396         (install-bin-script-nosubdir): New rule.
12397         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
12398         (distinfo-vars): Add $(install-bin-script).
12399         * Rules (others): Likewise.
12400         * Makefile (glibcbug): Install with install-bin-script.
12401         * debug/Makefile (xtrace): Likewise.
12402         (catchsegv): Likewise.
12403         * elf/Makefile (ldd): Likewise.
12404         * malloc/Makefile (mtrace): Likewise.
12405         * timezone/Makefile (tzselect): Likewise.
12406
12407 2001-08-29  H.J. Lu  <hjl@gnu.org>
12408
12409         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
12410         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
12411         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
12412
12413 2001-08-29  Andreas Schwab  <schwab@suse.de>
12414
12415         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
12416
12417 2001-08-28  H.J. Lu  <hjl@gnu.org>
12418
12419         * Makeconfig (combreloc-LDFLAGS): New variable.
12420         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
12421         * config.make.in (have-z-combreloc): New variable.
12422         * configure.in: Substitute libc_cv_z_combreloc.
12423
12424 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
12425
12426         * po/sv.po: Update from translation team.
12427         * po/fr.po: Likewise.
12428         * po/da.po: Likewise.
12429
12430 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12431
12432         * Makerules: Fix a typo: MD% -> MD5.
12433
12434 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
12435
12436         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
12437         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
12438
12439 2001-08-28  Andreas Jaeger  <aj@suse.de>
12440
12441         * manual/libc-texinfo.sh: Add entry about free manuals.
12442
12443         * manual/contrib.texi (Contributors): Fix cross reference.
12444
12445         * manual/libc.texinfo (Copying): Include freemanuals.
12446
12447         * manual/Makefile (appendices): Add freemanuals.
12448
12449         * manual/freemanuals.texi: New file.
12450         Patch by Brian Youmans <3diff@gnu.org>.
12451
12452         * manual/libm-err-tab.pl: Pretty print more platforms, print a
12453         smaller table.
12454
12455         * manual/math.texi (Errors in Math Functions): Fix grammar, start
12456         table on separate page.
12457         Patch by Brian Youmans <3diff@gnu.org>.
12458
12459 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
12460
12461         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
12462         the connection went down after we first used it try to connect
12463         again and resend the message before printing to the console.
12464         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
12465
12466 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
12467
12468         * string/tst-strlen.c (main): Test strnlen (, -1) too.
12469         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
12470         bit set.
12471
12472 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
12473
12474         * iconv/strtab.c (searchstring): Use correct length for comparison.
12475         (strtabadd): Account total size correct if new string has old string as
12476         substring.
12477
12478 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
12479
12480         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
12481
12482 2001-08-27  Andreas Jaeger  <aj@suse.de>
12483
12484         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
12485
12486         * math/libm-test.inc (j0_test): Add extra tests.
12487         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
12488         not x, in Hankel approximation.
12489         Patches by Stephen L Moshier.
12490
12491 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
12492
12493         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
12494         link_map.
12495
12496         * configure.in: Fix test for .rela.dyn section.
12497
12498         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
12499
12500 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
12501
12502         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
12503         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
12504         Pass type_class to _dl_lookup_*.
12505         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
12506         Pass around just type_class instead of noexec, noplt pair.
12507         (_dl_lookup_versioned_symbol): Likewise.
12508         (_dl_lookup_symbol_skip): Pass around just type_class instead of
12509         noexec, noplt pair.
12510         (_dl_lookup_versioned_symbol_skip): Likewise.
12511         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
12512         * elf/do-lookup.h (do_lookup): Likewise.
12513         * include/link.h (struct link_map): Replace noexec and noplt fields
12514         in l_lookup_cache with type_class field.
12515         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
12516         ELF_RTYPE_CLASS_COPY): Define.
12517         Adjust prototypes for _dl_lookup_symbol and
12518         _dl_lookup_versioned_symbol.
12519         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
12520         elf_machine_lookup_noexec_p): Remove.
12521         (elf_machine_type_class): Define.
12522         * sysdeps/arm/dl-machine.h: Likewise.
12523         * sysdeps/hppa/dl-machine.h: Likewise.
12524         * sysdeps/cris/dl-machine.h: Likewise.
12525         * sysdeps/i386/dl-machine.h: Likewise.
12526         * sysdeps/ia64/dl-machine.h: Likewise.
12527         * sysdeps/m68k/dl-machine.h: Likewise.
12528         * sysdeps/mips/mips64/dl-machine.h: Likewise.
12529         * sysdeps/mips/dl-machine.h: Likewise.
12530         * sysdeps/powerpc/dl-machine.h: Likewise.
12531         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12532         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12533         * sysdeps/sh/dl-machine.h: Likewise.
12534         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12535         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12536
12537 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
12538
12539         * manual/message.texi (Advanced gettext functions): Change
12540         description of plural forms for Slovak.
12541         Reported by Marcel Telka <marcel@telka.sk>.
12542
12543         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
12544         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
12545
12546 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
12547
12548         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
12549         typo.  Patch by Florian La Roche <laroche@redhat.com>.
12550
12551 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
12552
12553         * include/link.h (struct link_map): Add l_lookup_cache element.
12554         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
12555         (RESOLVE_MAP): Likewise.
12556         (_dl_relocate_object): Remove cache initialization.
12557         * elf/dl-lookup.c: Rip out cache handling code.
12558         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
12559         declarations.
12560
12561         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
12562         remove some __builtin_expect.
12563         (_dl_lookup_versioned_symbol): Likewise.
12564
12565         * config.h.in: Add HAVE_Z_COMBRELOC.
12566         * configure.in: Add test for -z combreloc.
12567
12568         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
12569         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
12570         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
12571         case to almost no code.
12572
12573 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
12574
12575         * po/tr.po: Update from translation team.
12576
12577 2001-08-24  Andreas Jaeger  <aj@suse.de>
12578
12579         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
12580         make clean works.
12581
12582 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12583
12584         * elf/rtld.c (print_statistics): Printf % after percent values.
12585         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
12586
12587         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
12588         don't have to compute the hash value and initialize current_value.
12589         Move reference_name variable to where it is needed.
12590         (_dl_lookup_versioned_symbol): Likewise.
12591
12592 2001-08-24  Roland McGrath  <roland@frob.com>
12593
12594         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
12595         Just test that strerror returns non-null for a few errno codes.
12596
12597 2001-08-23  Roland McGrath  <roland@frob.com>
12598
12599         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
12600         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
12601
12602         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
12603
12604         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
12605         __mach_reply_port.
12606
12607 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12608
12609         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
12610         returns NULL.
12611
12612         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
12613         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
12614         doesn't do it.
12615         * elf/rtld.c: Include <sys/param.h>.
12616         * elf/dl-reloc.c: Likewise.
12617
12618 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12619
12620         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
12621         empty to prevent junk from being generated.
12622         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
12623
12624 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
12625
12626         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
12627         records.  Rename endrel to relative, initialize it to r, and use it
12628         in elf_machine_rel_relative calls.  Point r after relative relocs.
12629
12630 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12631
12632         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
12633         of R_386_NONE.
12634
12635 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
12636
12637         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
12638         necessary.  Undefine newly defined macros at the end.
12639         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
12640         Rename from elf_machine_rel_relative.
12641         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
12642         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
12643         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
12644         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
12645         Likewise.
12646         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
12647         Likewise.
12648         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
12649         Fix argument types.
12650         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
12651         Fix argument types.
12652         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
12653         Likewise.  Fix argument types.
12654         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
12655         Likewise.  Fix argument types.
12656         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
12657         Fix argument types.
12658         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
12659         ElfW(Rel) in argument.
12660         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
12661         function.
12662
12663 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
12664
12665         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
12666
12667 2001-08-24  Andreas Jaeger  <aj@suse.de>
12668
12669         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
12670         Stephen L Moshier <moshier@mediaone.net>.
12671
12672 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12673
12674         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
12675         first if RELCOUNT is set.
12676
12677         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
12678         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
12679         elf_machine_rel_relative.
12680         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
12681         Minor optimizations.
12682         * sysdeps/arm/dl-machine.h: Likewise.
12683         * sysdeps/cris/dl-machine.h: Likewise.
12684         * sysdeps/hppa/dl-machine.h: Likewise.
12685         * sysdeps/i386/dl-machine.h: Likewise.
12686         * sysdeps/ia64/dl-machine.h: Likewise.
12687         * sysdeps/m68k/dl-machine.h: Likewise.
12688         * sysdeps/mips/dl-machine.h: Likewise.
12689         * sysdeps/powerpc/dl-machine.h: Likewise.
12690         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12691         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12692         * sysdeps/sh/dl-machine.h: Likewise.
12693         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12694         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12695
12696 2001-08-23  Roland McGrath  <roland@frob.com>
12697
12698         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
12699
12700         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
12701         sysdeps/mach version.  Implement counting ("recursive") mutexes
12702         on top of cthreads mutexes.
12703         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
12704
12705         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
12706         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
12707         (__libc_cleanup_region_start, __libc_cleanup_region_end,
12708         __libc_clean_end): Define these to call the cleanup function after
12709         normal exit when they're supposed to.
12710
12711         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
12712         Take new first arg DOIT, a boolean saying whether to really install
12713         any cleanup handler.
12714         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
12715         (__libc_cleanup_end): Likewise.
12716         * sysdeps/generic/bits/libc-lock.h: Same changes.
12717         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
12718         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
12719         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
12720         Likewise.
12721         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
12722         * sysdeps/generic/bits/stdio-lock.h
12723         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
12724
12725 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
12726
12727         * elf/ldconfig.c (search_dir): Remove stale symlinks.
12728
12729 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
12730
12731         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New
12732         functions.
12733         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
12734         lookups in cache.
12735         (_dl_lookup_versioned_symbol): Likewise.
12736         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
12737         relocation lookup.
12738         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
12739         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
12740         (lookup_cache, lookup_cache_versioned): Add declarations.
12741
12742 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
12743
12744         * stdlib/tst-random.c (main): Swap parameters in fail call.
12745         Patch by Pete Bevin <pete@petebevin.com>.
12746
12747 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
12748
12749         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
12750
12751 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
12752
12753         * malloc/obstack.c: Indent preprocessor directives.
12754         Patch by Jim Meyering <meyering@ascend.com>.
12755
12756         * po/ja.po: Update from translation team.
12757
12758 2001-08-23  Roland McGrath  <roland@frob.com>
12759
12760         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
12761
12762         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
12763         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
12764
12765 2001-08-22  Roland McGrath  <roland@frob.com>
12766
12767         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
12768         __libc_lock_define_recursive.
12769         * elf/dl-open.c: Don't declare it here any more.
12770         * elf/dl-close.c: Likewise.
12771         * elf/dl-lookup.c: Likewise.
12772         * elf/dl-iteratephdr.c: Likewise.
12773         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
12774         __libc_lock_unlock_recursive.
12775         * elf/dl-close.c (_dl_close): Likewise
12776         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
12777         * elf/dl-open.c (_dl_open): Likewise
12778
12779         * sysdeps/generic/bits/libc-lock.h
12780         (__libc_lock_define_recursive): New macro.
12781         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
12782         (_IO_lock_lock): Use __libc_lock_lock_recursive.
12783         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
12784
12785         * conform/conformtest.pl (checknamespace): Sort the output list.
12786
12787         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
12788         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
12789         definitions conditional on [__USE_XOPEN].
12790
12791         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
12792         these unconditionally, not only use [__USE_BSD], so as to match
12793         the sysdeps/unix/sysv/linux files.
12794
12795 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
12796
12797         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
12798         avoid warnings.
12799
12800         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
12801         DL_LOOKUP_ADDRESS.
12802
12803 2001-08-22  Roland McGrath  <roland@frob.com>
12804
12805         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
12806         conditionalization of sa_handler/sa_sigaction member types to
12807         match the sysdeps/unix/sysv/linux file.
12808
12809 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
12810
12811         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
12812         symbol sizes a bit better.
12813
12814         * sysdeps/ia64/strncpy.S: Complete rewrite.
12815         Contributed by Jakub Jelinek <jakub@redhat.com>.
12816
12817         * string/stratcliff.c (main): Add strncpy test.
12818
12819 2001-08-22  Roland McGrath  <roland@frob.com>
12820
12821         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
12822         and don't declare unsetenv or _environ directly.
12823         (unsetenv): Return int, not void.  Use __environ instead of _environ.
12824
12825 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
12826
12827         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
12828         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
12829         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
12830         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
12831         test for cmsg struct size.
12832
12833 2001-04-23  Paul Eggert  <eggert@twinsun.com>
12834
12835         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
12836         Rename __argc to ___argc in prototypes to avoid compatibility
12837         problems with systems that reserve the identifier "__argc".
12838         Similarly for __argv.
12839
12840 2001-08-21  Roland McGrath  <roland@frob.com>
12841
12842         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
12843
12844         * mach/Makefile (tests): Removed.
12845         * mach/hello.c: File removed.
12846
12847 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
12848
12849         * po/sv.po: Update from translation team.
12850
12851         * stdio-common/vfscanf.c: Fix handling of %l[].
12852         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
12853
12854         * libio/Makefile (tests): Add tst-sscanf.
12855         * libio/tst-sscanf.c: New file.
12856
12857         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
12858         * malloc/mtrace.c (tr_where): dli_sname always points to a
12859         non-empty string if != NULL.
12860         Reported by Tim Janik <timj@gtk.org>.
12861
12862 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
12863
12864         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
12865         buf.  Free resources on failure.
12866         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
12867         (makefd_xprt): Likewise.
12868         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
12869         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
12870         * sunrpc/auth_unix.c (authunix_create): Likewise.
12871
12872 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
12873
12874         * string/strnlen.c: Remove.
12875         * sysdeps/generic/strnlen.c: New file.
12876         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
12877
12878 2001-08-21  Roland McGrath  <roland@frob.com>
12879
12880         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
12881         as a macro, not an extern inline function.
12882
12883         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
12884         * Versions.def (libc): Add GLIBC_2.2.5 set.
12885         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
12886         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
12887
12888 2001-08-20  Roland McGrath  <roland@frob.com>
12889
12890         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
12891         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
12892
12893 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
12894
12895         * string/bits/string2.h: Remove strnlen optimization here.
12896         * sysdeps/i386/i486/bits/string.h: Add it here.
12897
12898 2001-08-21  Wolfram Gloger  <wg@malloc.de>
12899
12900         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
12901
12902 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
12903
12904         * po/gl.po: Update from translation team.
12905
12906 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
12907
12908         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
12909         * misc/err.c (convert_and_print): Likewise.
12910
12911         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
12912         function calls.
12913
12914 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12915
12916         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
12917         change of the gregset_t type.
12918         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
12919
12920 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
12921
12922         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
12923
12924 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
12925
12926         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
12927
12928         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
12929
12930 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
12931
12932         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
12933         before calling the cthreads initialization code.
12934
12935 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
12936
12937         * argp/argp-help.c: Fix two problems introduced in last change.
12938
12939         * include/dirent.h: Include <dirstream.h> first.
12940
12941 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
12942
12943         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
12944
12945         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
12946         * sunrpc/xdr_rec.c: Likewise.
12947         * sunrpc/xdr_mem.c: Likewise.
12948         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
12949         * sunrpc/rpc_cmsg.c: Likewise.
12950         * sunrpc/getrpcport.c (getrpcport): Likewise.
12951         * sunrpc/clnt_simp.c (callrpc): Likewise.
12952         * sunrpc/clnt_gen.c (clnt_create): Likewise.
12953         * string/envz.c: Likewise.
12954
12955         * po/ko.po: Update from translation team.
12956
12957         * argp/argp-help.c: Handle wide oriented stderr stream.
12958
12959 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
12960
12961         * sysdeps/generic/strtol.c: Little optimizations.  Add some
12962         __builtin_expect.
12963
12964         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
12965
12966         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
12967         * wcsmbs/wcwidth.c (wcwdith): Likewise.
12968         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
12969
12970         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
12971
12972         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
12973
12974         * time/time.h (struct timespec): Use __time_t for tv_sec element.
12975
12976         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
12977         wchar_t for function declarations and defintions.
12978
12979         * misc/sys/select.h: Define __need_time_t before including <time.h>.
12980         Define suseconds_t if it hasn't happened yet.
12981
12982         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
12983
12984         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
12985
12986         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
12987         <stddef.h>.
12988
12989         * conform/data/stddef.h-data: Remove wint_t.
12990
12991         * conform/conformtest.pl: Change namespace test to take #undef
12992         lines into account.
12993
12994         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
12995
12996         * conform/data/sys/socket.h-data: Add sockatmark.
12997
12998 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
12999
13000         * io/fts.c: Update from recent BSD source.
13001
13002 2001-08-17  Roland McGrath  <roland@frob.com>
13003
13004         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
13005         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
13006         Likewise.
13007
13008 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
13009
13010         * locale/duplocale.c (__duplocale): Also initialize the special
13011         __ctype_* elements.
13012
13013         * conform/data/netdb.h-data: Adjust gai_strerror return type.
13014
13015 2001-08-17  Andreas Jaeger  <aj@suse.de>
13016
13017         * misc/getpass.c: Include wchar.h for prototypes.
13018         * malloc/obstack.c: Likewise.
13019
13020 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
13021
13022         * sunrpc/svc_simple.c (universal): Use __write instead of write.
13023
13024         * wcsmbs/wcscoll.c: Also define __wcscoll.
13025         * include/wchar.h: Declare __wcscoll.
13026
13027         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
13028         * libio/vwprintf.c: Likewise.
13029         * libio/wprintf.c: Likewise.
13030
13031         * iconv/gconv_cache.c: Use __munmap instead of munmap.
13032
13033 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
13034
13035         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
13036         instead of mbrtowc.
13037         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
13038         wcslen, and __wcscoll instead of wcscoll.
13039
13040         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
13041
13042         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
13043         __getuid instead of getuid.
13044
13045         * stdio-common/perror.c (perror): Use __close instead of close.
13046         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
13047         * libio/freopen.c (freopen): Likewise.
13048         * libio/freopen64.c (freopen64): Likewise.
13049
13050         * libio/tst-ungetwc2.c (main): Define str const.
13051
13052         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
13053         * libio/fwprintf.c: Also define __fwprintf.
13054         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
13055         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
13056         * assert/assert-perr.c: Likewise.
13057         * assert/assert.c: Likewise.
13058         * gmon/gmon.c: Likewise.
13059         * inet/rcmd.c: Likewise.
13060         * malloc/obstack.c: Likewise.
13061         * misc/err.c: Likewise.
13062         * misc/error.c: Likewise.
13063         * misc/getpass.c: Likewise.
13064         * posix/getopt.c: Likewise.
13065         * resolv/res_hconf.c: Likewise.
13066         * stdio-common/perror.c: Likewise.
13067         * stdio-common/psignal.c: Likewise.
13068         * stdlib/fmtmsg.c: Likewise.
13069         * sunrpc/auth_unix.c: Likewise.
13070         * sunrpc/clnt_perr.c: Likewise.
13071         * sunrpc/clnt_tcp.c: Likewise.
13072         * sunrpc/clnt_udp.c: Likewise.
13073         * sunrpc/clnt_unix.c: Likewise.
13074         * sunrpc/svc_simple.c: Likewise.
13075         * sunrpc/svc_tcp.c: Likewise.
13076         * sunrpc/svc_udp.c: Likewise.
13077         * sunrpc/svc_unix.c: Likewise.
13078         * sunrpc/xdr.c: Likewise.
13079         * sunrpc/xdr_array.c: Likewise.
13080         * sunrpc/xdr_rec.c: Likewise.
13081         * sunrpc/xdr_ref.c: Likewise.
13082         * sysdeps/generic/wordexp.c: Likewise.
13083
13084         * po/it.po: Update from translation team.
13085
13086         * misc/err.c: Handle wide oriented stderr stream.
13087
13088 2001-08-14  Tom Rix  <trix@redhat.com>
13089
13090         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
13091         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
13092
13093 2001-08-13  Tom Rix  <trix@redhat.com>
13094
13095         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
13096         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
13097         and __intptr_t.
13098
13099 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13100
13101         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
13102         Store the access registers to the ucontext structure.
13103         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
13104         Likewise.
13105
13106         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
13107         Load the access registers from the ucontext structure.
13108         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
13109         Likewise.
13110
13111         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
13112         offsets to the new ucontext layout.
13113         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
13114
13115         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
13116         of the ucontext structure.
13117         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
13118
13119 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
13120
13121         * misc/error.c (error): Handle wide oriented stderr stream correctly.
13122         (error_at_line): Likewise.
13123
13124         * stdio-common/perror.c (perror): Implement according to standard.
13125         The stream orientation must not be changed if the stream was not
13126         oriented before the call.
13127         * stdio-common/Makefile (tests): Add tst-perror.
13128         * stdio-common/tst-perror.c: New file.
13129
13130
13131 See ChangeLog.12 for earlier changes.