* sysdeps/powerpc/elf/libc-start.c: Use long in place of int for argc
[platform/upstream/glibc.git] / ChangeLog
1 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
2
3         * sysdeps/powerpc/elf/libc-start.c: Use long in place of int for argc
4         load, so as to work on both 32-bit and 64-bit.  Remove unnecessary
5         casts.  Align __libc_stack_end to 8 bytes.
6
7 2002-09-20  Roland McGrath  <roland@redhat.com>
8
9         * sysdeps/powerpc/fpu/s_lrint.c: Use strong_alias/weak_alias macros
10         instead of asm for lrintf, __lrintf aliases.
11
12         * sysdeps/powerpc/fpu/s_lrint.c (__lrint): Change union long array to
13         int array for 32-/64-bit compatibility.
14         From Steven Munroe  <sjmunroe@us.ibm.com>.
15
16 2002-09-17  Bruno Haible  <bruno@clisp.org>
17
18         * sysdeps/generic/ifreq.h (__if_nextreq): New function.
19         * sysdeps/unix/sysv/linux/ifreq.h (__if_nextreq): New function.
20         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): New function.
21         * sysdeps/gnu/ifaddrs.c (getifaddrs): Use __if_nextreq
22         for iterating through the list of interfaces.
23         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Likewise.
24
25 2002-09-20  Roland McGrath  <roland@redhat.com>
26
27         * sysdeps/unix/grantpt.c (pts_name): Set errno when __ptsname_r fails.
28         Reported by Bruno Haible <bruno@clisp.org>.
29
30         * sysdeps/unix/bsd/bsd4.4/isatty.c: New file.
31
32         * sysdeps/unix/bsd/isatty.c (__isatty): Don't save and restore errno.
33         * sysdeps/unix/bsd/ptsname.c (__ptsname_r): Return errno value from
34         isatty unmodified.  Reported by Bruno Haible <bruno@clisp.org>.
35
36 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
37
38         * sysdeps/powerpc/bits/setjmp.h [__WORDSIZE]: Add 64-bit jmpbuf.
39         * sysdeps/powerpc/bits/wordsize.h: New file.
40         * sysdeps/powerpc/fpu/bits/mathinline.h (lrint, lrintf): Change long
41         array to int array for 32-/64-bit compatibility.
42
43 2002-09-20  Roland McGrath  <roland@redhat.com>
44
45         * login/programs/utmpdump.c: Don't include <error.h>, <errno.h>.
46
47         * sysdeps/generic/utimes.c (__utimes): Don't check TVP for null.
48         Reported by Bruno Haible <bruno@clisp.org>.
49
50         * sysdeps/generic/ifreq.h (__ifreq): Compute termination condition
51         before doubling RQ_LEN.
52         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
53         Reported by Bruno Haible <bruno@clisp.org>.
54
55 2002-09-18  Bruno Haible  <bruno@clisp.org>
56
57         * login/logout.c (logout): Don't assume ut_time has the same size as
58         a time_t.
59         * login/logwtmp.c (logwtmp): Likewise.
60
61         * sysdeps/pthread/configure: New file, moved here from
62         linuxthreads/sysdeps/unix/sysv/linux/configure.
63
64 2002-09-19  Ulrich Drepper  <drepper@redhat.com>
65
66         * sysdeps/unix/sysv/linux/_exit.c: Include <errno.h>.
67         (_exit): Don't use ABORT_INSTRUCTION if it is not defined.
68         Reported by Glen Nakamura <glen@imodulo.com>.
69
70 2002-09-19  Neal H. Walfield  <neal@cs.uml.edu>
71
72         * sysdeps/mach/hurd/fork.c (__fork): Do not free the signal
73         thread's sigstate data structure if it has been allocated.
74
75 2002-09-19  Roland McGrath  <roland@redhat.com>
76
77         * include/libc-symbols.h [HAVE_ASM_SET_DIRECTIVE]
78         [! HAVE_ASM_GLOBAL_DOT_NAME] (__hidden_dot_def1): Fix typo'd name.
79
80 2002-09-18  Ulrich Drepper  <drepper@redhat.com>
81
82         * version.h (VERSION): Bump to 2.2.94.
83
84         * sysdeps/powerpc/fpu/Dist: Move fprrest.S and fprsave.S to...
85         * sysdeps/powerpc/powerpc32/fpu/Dist: ...here.  New file.
86         * sysdeps/unix/sysv/linux/powerpc/Dist: Move kernel_stat.h to...
87         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
88
89         * sysdeps/i386/Makefile: Remove obsolete db2 rules.
90
91         * sysdeps/unix/sysv/linux/Makefile: Add exit-thread.S.
92
93         * sysdeps/unix/sysv/linux/powerpc/Dist: Add ldd-rewrite.sh.
94
95         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: New file.
96
97 2002-09-19  Jakub Jelinek  <jakub@redhat.com>
98
99         * sysdeps/wordsize-32/Makefile: New file.
100         * sysdeps/arm/Makefile: Removed.
101         * sysdeps/i386/Makefile (sysdep_routines, shared-only-routines):
102         Don't add divdi3 here.
103         * sysdeps/m68k/Makefile: Likewise.
104         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
105         * sysdeps/sh/Makefile: Likewise.
106         * sysdeps/s390/s390-32/Makefile: Likewise.
107
108 2002-09-18  Roland McGrath  <roland@redhat.com>
109
110         * locale/lc-ctype.c (_nl_postload_ctype): Add compat_symbol decls for
111         the __ctype_* compat symbols, so the relocs generated bind to the
112         right versioned global symbol in the shared object.
113
114         * elf/do-rel.h (elf_dynamic_do_rel): Mask off 0x8000 bit (hidden flag)
115         from the value taken from the DT_VERSYM table.
116         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
117         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Likewise.
118         (RESOLVE_GOTSYM): Likewise.
119
120         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
121         Add libc_hidden_def.
122         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
123         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
124         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
125         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
126         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
127         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
128         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
129         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
130
131 2002-09-18  Ulrich Drepper  <drepper@redhat.com>
132
133         * include/signal.h: Add libc_hidden_proto for __libc_sigaction.
134
135         * sysdeps/unix/sysv/linux/sigaction.c: If SIGCANCEL is defined
136         define sigaction and __sigaction as wrappers around
137         __libc_sigaction which rejects changing SIGCANCEL.
138         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
139
140         * sysdeps/unix/sysv/linux/i386/clone.S: Add support for SETTLS and
141         SETTID/CLEARTID.
142
143         * signal/allocrtsig.c: Move to...
144         * sysdeps/generic/allocrtsig.c: ...here.  New file.
145
146 2002-09-17  Jakub Jelinek  <jakub@redhat.com>
147
148         * elf/dl-lookup.c (_dl_debug_bindings): Print TLS lookups always.
149
150         * elf/elf.h (R_386_TLS_TPOFF, R_386_TLS_IE, R_386_TLS_GOTIE,
151         R_386_TLS_LE): Define.
152         (R_386_TLS_IE_32, R_386_TLS_LE_32, R_386_TLS_TPOFF32): Update
153         comments.
154         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Return
155         ELF_RTYPE_CLASS_PLT for R_386_TLS_TPOFF.
156         (elf_machine_rel): Handle R_386_TLS_TPOFF.
157         (elf_machine_rela): Likewise.
158         Remove unnecessary RTLD_BOOTSTRAP #ifdefs.
159
160 2002-09-17  Roland McGrath  <roland@redhat.com>
161
162         * malloc/Makefile ($(objpfx)memusagestat.o: sysincludes): Define
163         file-specific variable override so it compiles properly when using
164         --with-headers.
165
166 2002-09-17  Steven Munroe  <sjmunroe@us.ibm.com>
167
168         Ported to PowerPC64 running Linux.
169         * sysdeps/powerpc/powerpc64/Dist: New file.
170         * sysdeps/powerpc/powerpc64/Implies: New file.
171         * sysdeps/powerpc/powerpc64/Makefile: New file.
172         * sysdeps/powerpc/powerpc64/__longjmp.S: New file.
173         * sysdeps/powerpc/powerpc64/atomicity.h: New file.
174         * sysdeps/powerpc/powerpc64/backtrace.c: New file.
175         * sysdeps/powerpc/powerpc64/bp-asm.h: New file.
176         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: New file.
177         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: New file.
178         * sysdeps/powerpc/powerpc64/dl-dtprocnum.h: New file.
179         * sysdeps/powerpc/powerpc64/dl-lookupcfg.h: New file.
180         * sysdeps/powerpc/powerpc64/dl-machine.c: New file.
181         * sysdeps/powerpc/powerpc64/dl-machine.h: New file.
182         * sysdeps/powerpc/powerpc64/memset.S: New file.
183         * sysdeps/powerpc/powerpc64/ppc-mcount.S: New file.
184         * sysdeps/powerpc/powerpc64/register-dump.h: New file.
185         * sysdeps/powerpc/powerpc64/setjmp.S: New file.
186         * sysdeps/powerpc/powerpc64/stpcpy.S: New file.
187         * sysdeps/powerpc/powerpc64/strchr.S: New file.
188         * sysdeps/powerpc/powerpc64/strcmp.S: New file.
189         * sysdeps/powerpc/powerpc64/strcpy.S: New file.
190         * sysdeps/powerpc/powerpc64/strlen.S: New file.
191         * sysdeps/powerpc/powerpc64/elf/bzero.S: New file.
192         * sysdeps/powerpc/powerpc64/elf/start.S: New file.
193         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: New file.
194         * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: New file.
195         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: New File.
196         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: New file.
197         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: New file.
198         * sysdeps/unix/sysv/linux/powerpc/powerpc64/glob64.c: New file.
199         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: New file.
200         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: New file.
201         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: New file.
202
203         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME]
204         (C_SYMBOL_DOT_NAME): Insure that C_SYMBOL_DOT_NAME works for
205         various gcc versions.  Dot names required for powerpc64.
206         [HAVE_ASM_GLOBAL_DOT_NAME] (_weak_extern): Add .weakext '.'ed symbol.
207         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias): Add .global
208         C_SYMBOL_DOT_NAME(alias).
209         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): New macro. Same as
210         original strong_alias macro.
211         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Add .weakext/.weak
212         C_SYMBOL_DOT_NAME(alias).
213         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Add .symver '.'ed name.
214         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Add .symver
215         '.'ed name.
216         Add comments on libc_hidden_data_def and libc_hidden_data_weak usage.
217         [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_def1): New macro.  Generate
218         .global C_SYMBOL_DOT_NAME(alias).  Otherwise an empty macro.
219         (hidden_def): Append hidden_dot_def1 macro to definition.
220         (hidden_ver): Append hidden_dot_def1 macro to definition.
221         (hidden_data_def): New macro.  Same as original hidden_def macro.
222         (hidden_data_ver): New macro.  Same as original hidden_ver macro.
223         [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_weak1): New macro.  Generate
224         .weakext C_SYMBOL_DOT_NAME(alias).  Otherwise an empty macro.
225         (hidden_weak): Append hidden_dot_weak1 macro to definition.
226         (hidden_data_weak): New macro.  Same as original hidden_weak macro.
227         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Define as .__GI_name.
228         Otherwise defined as __GI_name.
229         (libc_hidden_data_def): New macro.  Use hidden_data_def.
230         (libc_hidden_data_weak): New macro.  Use hidden_data_weak.
231         (libc_hidden_data_ver): New macro.  Use hidden_data_ver.
232         (rtld_hidden_data_def): New macro.  Use hidden_data_def.
233         (rtld_hidden_data_weak): New macro.  Use hidden_data_weak.
234         (rtld_hidden_data_ver): New macro.  Use hidden_data_ver.
235         (libm_hidden_data_def): New macro.  Use hidden_data_def.
236         (libm_hidden_data_weak): New macro.  Use hidden_data_weak.
237         (libm_hidden_data_ver): New macro.  Use hidden_data_ver.
238         * inet/in6_addr.c: Replace libc_hidden_def with libc_hidden_data_def.
239
240 2002-09-17  Ulrich Drepper  <drepper@redhat.com>
241
242         * include/libc-symbols.h: Change *hidden_proto macros to accept
243         option parameters and pass those to the attribute definition.
244         * include/unistd.h (_exit): Add __noreturn__ to libc_hidden_proto call.
245
246         * include/unistd.h: Declare __libc_pause.
247
248         * include/sys/socket.h: Declare __libc_send, __libc_recv,
249         __libc_sendto, __libc_sendmsg, __libc_recvmsg, and __libc_accept.
250
251         * include/unistd.h: Declare __libc_fork.
252
253 2002-09-17  Roland McGrath  <roland@redhat.com>
254
255         * sunrpc/xcrypt.c (passwd2des_internal): Renamed fom passwd2des.
256         (passwd2des): Define it as an alias.
257         (xencrypt, xdecrypt): Call passwd2des_internal instead of passwd2des.
258
259 2002-09-12  Bruno Haible  <bruno@clisp.org>
260
261         * include/sys/sysctl.h (__sysctl): Add libc_hidden_proto.
262         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Add libc_hidden_def.
263
264         * include/rpc/xdr.h (xdrstdio_create): Add libc_hidden_proto.
265         * sunrpc/xdr_stdio.c (xdrstdio_create): Add libc_hidden_def.
266
267 2002-09-05  Steven Munroe  <sjmunroe@us.ibm.com>
268
269         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc64__]
270         (__ASSUME_TRUNCATE64_SYSCALL, __ASSUME_STAT64_SYSCALL, __ASSUME_IPC64,
271         __ASSUME_FCNTL64, __ASSUME_MMAP2_SYSCALL): Don't define these.
272         PowerPC64 does not have separate 64-bit syscalls.
273
274 2002-09-16  Roland McGrath  <roland@redhat.com>
275
276         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Add a cast.
277
278         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
279         New macro.
280
281         * elf/rtld.c [HP_TIMING_NONAVAIL]: Fix last change for this case.
282
283         * include/unistd.h: Uncomment libc_hidden_proto for _exit.
284         * sysdeps/mach/hurd/_exit.c: Add libc_hidden_def.
285         * sysdeps/generic/_exit.c: Likewise.
286
287 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
288
289         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Regenerate.
290
291         * elf/rtld.c (struct dl_start_final_info): New.
292         (_dl_start_final): Change second argument to struct
293         dl_start_final_info *.  Set start_time from info.
294         (_dl_start): Remove bootstrap_map variable, add info.
295         Define bootstrap_map as macro.  If not DONT_USE_BOOTSTRAP_MAP,
296         store HP_TIMING_NOW result into info.start_time.
297
298 2002-09-16  Andreas Jaeger  <aj@suse.de>
299
300         * sysdeps/unix/sysv/linux/_exit.c: Add libc_hidden_def and weak_alias
301         to _Exit.
302         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
303
304 2002-09-15  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
305
306         * sysdeps/powerpc/abort-instr.h: New file.
307
308 2002-09-14  Ulrich Drepper  <drepper@redhat.com>
309
310         * sysdeps/generic/libc-start.c (__libc_start_main): Remove bogus
311         comment.
312
313         * test-skeleton.c (main): Provide more information in case waitpid
314         fails.
315
316         * include/unistd.h: Declare __exit_thread.
317         * sysdeps/generic/libc-start.c (__libc_start_main): Remove dummy_addr.
318         Wrap call to main in setjmp if HAVE_CANCELBUF is defined.
319         * sysdeps/unix/sysv/linux/exit-thread.S: New file.
320         * sysdeps/unix/sysv/linux/_exit.c: New file.
321         * sysdeps/unix/sysv/linux/i386/_exit.S: New file.
322         * sysdeps/unix/sysv/linux/Makefile [subdir==posix] (sysdep_routines):
323         Add exit-thread.
324
325         * configure.in: Add dl_iterate_phdr to test using -nostdlib.
326
327 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
328
329         * sysdeps/i386/dl-machine.h (elf_machine_rel)
330         (case R_386_TLS_DTPMOD32): Don't use addend.
331         [case R_386_TLS_TPOFF32]: Remove redundant SYM_MAP != NULL check.
332         (elf_machine_rela): Add support for TLS relocs.
333
334 2002-09-14  Roland McGrath  <roland@redhat.com>
335
336         * Makefile (manual/%): Add this pattern target to the iconvdata/% rule.
337
338 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
339
340         * stdlib/longlong.h [_ARCH_PPC && W_TYPE_SIZE!=32]: Add powerpc64
341         specific asm macros for multiple percision integer math.
342
343 2002-06-04  Steven Munroe  <sjmunroe@us.ibm.com>
344
345         * sysdeps/generic/ldconfig.h (FLAG_POWERPC_LIB64) New macro.
346         * elf/cache.c (print_entry): Add case for FLAG_POWERPC_LIB64.
347         Remove per-machine conditionals for FLAG_* cases.
348         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h: New file.
349         * sysdeps/unix/sysv/linux/powerpc/readelflib.c: New file.
350         * sysdeps/unix/sysv/linux/powerpc/powerpc64/dl-cache.h: New file.
351
352 2002-09-10  Alan Modra <amodra@bigpond.net.au>
353
354         * csu/gmon-start.c [!TEXT_START]: Define TEXT_START if not already
355         defined in entry.h.
356         (__gmon_start__) [!ENTRY_POINT_DECL]: Use TEXT_START macro to obtain
357         lowest address for profiling in  __monstartup call.
358         * sysdeps/powerpc/powerpc64/elf/entry.h: New file.
359
360 2002-09-14  Roland McGrath  <roland@redhat.com>
361
362         * sysdeps/unix/sysv/linux/pread.c: __NR_pread64 may be defined
363         instead of __NR_pread.
364         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
365         * sysdeps/unix/sysv/linux/pwrite.c: __NR_pwrite64 may be defined
366         instead of __NR_pwrite.
367         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
368
369 2002-09-13  Roland McGrath  <roland@redhat.com>
370
371         * manual/libc.texinfo: @ifinfo -> @ifnottex around copyright notice.
372
373 2002-09-13  Andreas Jaeger  <aj@suse.de>
374
375         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add readahead
376         syscall.  Patch by Guido Guenther <agx@sigxcpu.org>.
377
378 2002-09-12  Ulrich Drepper  <drepper@redhat.com>
379
380         * elf/elf.h: Correct DT_LOOS and DT_HIOS values.
381
382 2002-09-10  Ulrich Drepper  <drepper@redhat.com>
383
384         * sysdeps/powerpc/fpu/s_isnan.c: #undef __isnanf and isnanf after
385         reading the headers.
386
387 2002-09-12  Roland McGrath  <roland@redhat.com>
388
389         * elf/rtld.c (_dl_start_final): Move _begin, _end decls outside the fn.
390         (_dl_start) [DONT_USE_BOOTSTRAP_MAP]: Use &_begin instead of l_addr to
391         find the ELF header.
392
393         * elf/rtld.c (dl_main) [USE_TLS]: Adjust l_tls_initimage of main
394         executable if needed, in case it's actually a shared object.
395
396 2002-09-11  Roland McGrath  <roland@redhat.com>
397
398         * elf/dl-load.c (_dl_map_object_from_fd): Use l_addr instead of
399         l_map_start to adjust l_tls_initimage.
400
401         * nss/getnssent_r.c (__nss_getent_r): Use EAGAIN instead of errno
402         when using h_errno and it's not set to NETDB_INTERNAL.
403         * nss/getXXbyYY_r.c [NEED_H_ERRNO]: Likewise.
404
405         * Makefile ($(common-objpfx)testrun.sh): New target.
406         (others): Depend on it.
407         (postclean-generated): Append it.
408
409         * nss/bug-erange.c: New file.
410         * nss/Makefile (tests): Add it.
411
412         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Return errno
413         instead of always EAGAIN when status is NSS_STATUS_TRYAGAIN.
414
415         * sysdeps/generic/dl-environ.c (unsetenv): Redo last fix without
416         strncmp, keeps the code smaller for a non-performance-critical case.
417
418         * sysdeps/generic/dl-environ.c (unsetenv): Rewritten using strncmp,
419         no longer wrongly matches arbitrary prefixes of NAME.
420         Reported by Jakub Jelinek <jakub@redhat.com>.
421
422 2002-09-11  Jakub Jelinek  <jakub@redhat.com>
423
424         * posix/bug-regex11.c (tests): New array.
425         (main): Rewritten to run more different tests.
426
427 2002-09-10  Roland McGrath  <roland@redhat.com>
428
429         * nscd/Makefile (CPPFLAGS-nscd, CPPFLAGS-nscd_conf, CPPFLAGS-dbg_log)
430         (CPPFLAGS-connections, CPPFLAGS-hstcache): Variables removed.
431         Instead, catch all of $(nscd-modules) via cppflags-iterator.mk.
432
433         * sysdeps/powerpc/fpu/s_isnan.c: Do macro hackery on __GI___isnanf as
434         well so we don't get it declared by include/math.h's hidden_proto.
435         Then do hidden_proto for __isnanf locally so hidden_def works right.
436
437         * posix/bug-regex5.c (main): Use `union locale_data_value' rather than
438         a cast to turn nl_langinfo return value into an integer.
439
440 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
441
442         * posix/regexec.c (build_trtable): Fix the destination of
443         newline to prevent wrong states from overwriting.
444         Append break statements to optimization.
445
446 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
447
448         * posix/regcomp.c: Wrap #include wchar.h and wctype.h in #if.
449         (build_range_exp): Add castings to strlen invocations.
450         (build_collating_symbol): Restore the type of characters from "char"
451         to "unsigned char", and supplement castings.
452         (build_collating_symbol): Likewise.
453         (build_equiv_class): Likewise.
454         (build_charclass): Likewise.
455         (seek_collating_symbol_entry): Likewise.
456         (parse_bracket_exp): Likewise.
457         (build_word_op): Supplement a casting.
458         * posix/regex_internal.c: Wrap #include wchar.h and wctype.h in #if.
459         (re_string_allocate): Fix castings.
460         (re_string_construct): Likewise.
461         (re_string_construct_common): Likewise.
462         (re_string_realloc_buffers): Likewise.
463         (build_wcs_buffer): Likewise.
464         (build_wcs_upper_buffer): Likewise.
465         (re_string_skip_chars): Likewise.
466         (re_string_reconstruct): Likewise.
467         * posix/regex_internal.h: Restore the type of characters in
468         re_string_t and bracket_elem_t from "char" to "unsigned char".
469         (re_string_elem_size_at): Fix castings.
470         * posix/regexec.c: Wrap #include wchar.h and wctype.h in #if.
471         (transit_state_bkref_loop): Restore the type of characters from
472         "char" to "unsigned char", and append a cast to "char*" pointer in
473         array subscript.
474         (check_node_accept_bytes): Likewise.
475         (find_collation_sequence_value): Likewise.
476
477 2002-09-10  Hartvig Ekner  <hartvige@mips.com>
478
479         * sysdeps/mips/memcpy.S: New file.
480         * sysdeps/mips/memset.S: New file.
481         * sysdeps/mips/fpu/e_sqrt.c:  New file.
482         * sysdeps/mips/fpu/e_sqrtf.c: New file.
483
484         * fpu/fclrexcpt.c: Cleaned up the FPU exception stuff - was not
485         functional before. Also removed all SHLIB_COMPAT stuff.
486         * fpu/fegetenv.c: Likewise.
487         * fpu/fesetenv.c:: Likewise.
488         * fpu/feupdateenv.c: Likewise.
489         * fpu/fgetexcptflg.c: Likewise.
490         * fpu/fraiseexcpt.c: Likewise.
491
492         * sysdeps/mips/fpu/fsetexcptflg.c: New file.
493
494 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
495
496         * include/math.h (__finite_internal, __finitef_internal,
497         __finitel_internal, __isinf_internal, __isnan_internal): Remove.
498         (isfinite): Remove.
499         (__finite, __isinf, __isnan, __finitef, __isinff, __isnanf, __finitel,
500         __isinfl, __isnanl): Add hidden_proto.
501         (__fpclassify, __fpclassifyf, __fpclassifyl, __expm1l): Add
502         libm_hidden_proto.
503         * math/Makefile (libm-calls): Add s_isinf and s_isnan.
504         * stdio-common/printf_fp.c (__printf_fp): Remove INTUSE from
505         __is{inf,nan} calls.
506         * stdio-common/printf_size.c (printf_size): Likewise.
507         * sysdeps/generic/printf_fphex.c (__printf_fphex): Likewise.
508         * sysdeps/generic/s_ldexp.c (__ldexp): Likewise.
509         * sysdeps/generic/s_ldexpf.c (__ldexpf): Likewise.
510         * sysdeps/generic/s_ldexpl.c (__ldexpl): Likewise.
511         * sysdeps/generic/s_expm1l.c (__expm1l): Add libm_hidden_def.
512         * sysdeps/i386/fpu/s_finite.S (__finite_internal): Remove alias.
513         (__finite): Add hidden_def.
514         * sysdeps/i386/fpu/s_finitef.S (__finitef_internal): Remove alias.
515         (__finitef): Add hidden_def.
516         * sysdeps/i386/fpu/s_finitel.S (__finitel_internal): Remove alias.
517         (__finitel): Add hidden_def.
518         * sysdeps/i386/fpu/s_isinfl.c (__isinfl): Remove INTDEF.  Add
519         hidden_def.
520         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
521         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Add
522         libm_hidden_def.
523         * sysdeps/i386/fpu/s_expm1l.S (__expm1l): Likewise.
524         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Remove INTDEF.  Add
525         hidden_def.
526         * sysdeps/ieee754/dbl-64/s_isinf.c (__isinf): Likewise.
527         (__isinfl): Remove INTDEF.
528         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Remove INTDEF.  Add
529         hidden_def.
530         (__isnanl): Remove INTDEF.
531         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Add
532         libm_hidden_def.
533         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Use __sin and __cos
534         instead of sin and cos.
535         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Remove INTDEF.
536         Add hidden_def.
537         * sysdeps/ieee754/flt-32/s_isinff.c (__isinff): Likewise.
538         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
539         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Add
540         libm_hidden_def.
541         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Remove INTDEF.
542         Add hidden_def.
543         * sysdeps/ieee754/ldbl-128/s_isinfl.c (__isinfl): Likewise.
544         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
545         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl): Add
546         libm_hidden_def.
547         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add
548         libm_hidden_def.
549         * sysdeps/ieee754/ldbl-96/s_finitel.c (__finitel): Remove INTDEF.
550         Add hidden_def.
551         * sysdeps/ieee754/ldbl-96/s_isinfl.c (__isinfl): Likewise.
552         * sysdeps/ieee754/ldbl-96/s_isnanl.c (__isnanl): Likewise.
553         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c (__fpclassifyl): Add
554         libm_hidden_def.
555         * sysdeps/ia64/fpu/s_finite.S (__finite_internal, __finitef_internal,
556         __finitel_internal): Remove aliases.
557         (__finite, __finitef, __finitel): Add hidden_def.
558         * sysdeps/ia64/fpu/s_isnan.S (__isnan_internal, __isnanf_internal,
559         __isnanl_internal): Remove aliases.
560         (__isnan, __isnanf, __isnanl): Add hidden_def.
561         * sysdeps/ia64/fpu/s_isinf.S (__isinf_internal, __isinff_internal,
562         __isinfl_internal): Remove aliases.
563         (__isinf, __isinff, __isinfl): Add hidden_def.
564         * sysdeps/ia64/fpu/s_fpclassify.S (__fpclassify, __fpclassifyf,
565         __fpclassifyl): Add libm_hidden_def.
566         * sysdeps/ia64/fpu/s_expm1l.S (__expm1l): Likewise.
567         * sysdeps/m68k/s_isinfl.c (__isinfl): Remove INTDEF.  Add hidden_def.
568         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Remove.
569         (hidden_defx): Define and use.
570         * sysdeps/m68k/fpu/s_fpclassifyl.c (__fpclassifyl): Add
571         libm_hidden_def.
572         * sysdeps/m68k/fpu/s_expm1l.c (__expm1l): Likewise.
573         * sysdeps/m68k/s_isnanl.c (__isnanl): Add hidden_def.
574         * sysdeps/powerpc/fpu/s_isnan.c (__isnan, __isnanf, __isnanl):
575         Remove INTDEF.
576         (__isnan, __isnanf): Add hidden_def.
577         * sysdeps/x86_64/fpu/s_finitel.S (__finitel_internal): Remove alias.
578         (__finitel): Add libm_hidden_def.
579         * sysdeps/x86_64/fpu/s_expm1l.S (__expm1l): Likewise.
580
581         * include/fenv.h (feraiseexcept, fesetenv): Add libm_hidden_proto.
582         * sysdeps/alpha/fpu/fesetenv.c (fesetenv): Add libm_hidden_ver.
583         * sysdeps/alpha/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
584         * sysdeps/arm/fpu/fesetenv.c (fesetenv): Likewise.
585         * sysdeps/arm/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
586         * sysdeps/generic/fesetenv.c (fesetenv): Likewise.
587         * sysdeps/generic/fraiseexcpt.c (feraiseexcept): Likewise.
588         * sysdeps/i386/fpu/fesetenv.c (fesetenv): Likewise.
589         * sysdeps/i386/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
590         * sysdeps/m68k/fpu/fesetenv.c (fesetenv): Likewise.
591         * sysdeps/m68k/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
592         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Likewise.
593         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
594         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Likewise.
595         * sysdeps/powerpc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
596         * sysdeps/sparc/fpu/fesetenv.c (fesetenv): Likewise.
597         * sysdeps/sparc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
598         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Add libm_hidden_def.
599         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
600         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Likewise.
601         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
602         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
603         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
604         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
605         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
606         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Likewise.
607         * sysdeps/x86_64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
608
609 2002-09-09  Steven Munroe  <sjmunroe@us.ibm.com>
610
611         * elf/elf.h: Add powerpc64 specific elf relocation and dynamic types.
612
613 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
614
615         * elf/dl-error.c (_dl_signal_cerror): Don't print anything if only
616         LD_DEBUG=statistics or LD_TRACE_PRELINKING.
617
618 2002-09-09  Ulrich Drepper  <drepper@redhat.com>
619
620         * string/stratcliff.c: Some more strncpy tests.
621         Patch by Daniel Jacobowitz <drow@mvista.com>.
622
623 2002-09-08  Roland McGrath  <roland@redhat.com>
624
625         * resolv/resolv.h: Include <sys/types.h> for u_long even in
626         the [__need_res_state] case.
627         Reported by Bruno Haible <bruno@clisp.org>.
628
629 2002-09-04  Bruno Haible  <bruno@clisp.org>
630
631         * sysdeps/generic/bits/ustat.h: Comment fix.
632         * io/sys/sendfile.h: Comment fix.
633         * sysdeps/posix/pread.c: Comment fix.
634         * sysdeps/posix/pread64.c: Comment fix.
635         * sysdeps/posix/pwrite.c: Comment fix.
636         * sysdeps/posix/pwrite64.c: Comment fix.
637
638 2002-09-06  Roland McGrath  <roland@redhat.com>
639
640         * posix/sys/utsname.h (_UTSNAME_SYSNAME_LENGTH): New macro, defined
641         to _UTSNAME_LENGTH if not already defined by <bits/utsname.h>.
642         (_UTSNAME_RELEASE_LENGTH, _UTSNAME_VERSION_LENGTH): Likewise.
643         (_UTSNAME_MACHINE_LENGTH): Likewise.
644         (struct utsname): Use new macros instead of _UTSNAME_LENGTH.
645
646 2002-09-06  Ulrich Drepper  <drepper@redhat.com>
647
648         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Correct
649         test for filesystem type name of mount points.
650
651         * include/errno.h: Use errno definition with __thread for now only
652         in libc and ld.so.
653
654         * test-skeleton.c (main): Improve error message for unexpected
655         signal case.
656
657 2002-09-05  Roland McGrath  <roland@redhat.com>
658
659         * ctype/ctype-info.c: Renamed __ctype_old_* symbols to __ctype_*.
660         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
661
662 2002-09-05  Jakub Jelinek  <jakub@redhat.com>
663
664         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Unlock and return in
665         case of failure.
666
667 2002-09-04  Bruno Haible  <bruno@clisp.org>
668
669         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h (sigset_set_old_mask,
670         sigset_get_old_mask): Turn into inline functions.
671         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h (sigset_set_old_mask,
672         sigset_get_old_mask): Likewise.
673         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h (sigset_set_old_mask,
674         sigset_get_old_mask): Likewise.
675         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Declutter
676         syntax.
677
678         * elf/readlib.c (process_file): Conditionalize check for QMAGIC.
679
680         * sysdeps/generic/_strerror.c (_sys_errlist, _sys_nerr): Remove
681         default definitions.
682         (__strerror_r): Use _sys_errlist_internal instead of _sys_errlist,
683         _sys_nerr_internal instead of _sys_nerr.
684
685         * nscd/connections.c (handle_request): Declare CALLER inside #if.
686
687 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
688
689         * sysdeps/powerpc/__longjmp.S: Moved to...
690         * sysdeps/powerpc/powerpc32/__longjmp.S: ...here.
691         * sysdeps/powerpc/add_n.S: Moved to...
692         * sysdeps/powerpc/powerpc32/add_n.S: ...here.
693         * sysdeps/powerpc/addmul_1.S: Moved to...
694         * sysdeps/powerpc/powerpc32/addmul_1.S: ...here.
695         * sysdeps/powerpc/atomicity.h: Moved to...
696         * sysdeps/powerpc/powerpc32/atomicity.h: ...here.
697         * sysdeps/powerpc/backtrace.c: Moved to...
698         * sysdeps/powerpc/powerpc32/backtrace.c: ...here.
699         * sysdeps/powerpc/bp-asm.h: Moved to...
700         * sysdeps/powerpc/powerpc32/bp-asm.h: ...here.
701         * sysdeps/powerpc/bsd-_setjmp.S: Moved to...
702         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: ...here.
703         * sysdeps/powerpc/bsd-setjmp.S: Moved to...
704         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: ...here.
705         * sysdeps/powerpc/dl-machine.c: Moved to...
706         * sysdeps/powerpc/powerpc32/dl-machine.c: ...here.
707         * sysdeps/powerpc/dl-machine.h: Moved to...
708         * sysdeps/powerpc/powerpc32/dl-machine.h: ...here.
709         * sysdeps/powerpc/dl-start.S: Moved to...
710         * sysdeps/powerpc/powerpc32/dl-start.S: ...here.
711         * sysdeps/powerpc/gprrest0.S: Moved to...
712         * sysdeps/powerpc/powerpc32/gprrest0.S: ...here.
713         * sysdeps/powerpc/gprrest1.S: Moved to...
714         * sysdeps/powerpc/powerpc32/gprrest1.S: ...here.
715         * sysdeps/powerpc/gprsave0.S: Moved to...
716         * sysdeps/powerpc/powerpc32/gprsave0.S: ...here.
717         * sysdeps/powerpc/gprsave1.S: Moved to...
718         * sysdeps/powerpc/powerpc32/gprsave1.S: ...here.
719         * sysdeps/powerpc/lshift.S: Moved to...
720         * sysdeps/powerpc/powerpc32/lshift.S: ...here.
721         * sysdeps/powerpc/memset.S: Moved to...
722         * sysdeps/powerpc/powerpc32/memset.S: ...here.
723         * sysdeps/powerpc/mul_1.S: Moved to...
724         * sysdeps/powerpc/powerpc32/mul_1.S: ...here.
725         * sysdeps/powerpc/ppc-mcount.S: Moved to...
726         * sysdeps/powerpc/powerpc32/ppc-mcount.S: ...here.
727         * sysdeps/powerpc/register-dump.h: Moved to...
728         * sysdeps/powerpc/powerpc32/register-dump.h: ...here.
729         * sysdeps/powerpc/rshift.S: Moved to...
730         * sysdeps/powerpc/powerpc32/rshift.S: ...here.
731         * sysdeps/powerpc/setjmp.S: Moved to...
732         * sysdeps/powerpc/powerpc32/setjmp.S: ...here.
733         * sysdeps/powerpc/stpcpy.S: Moved to...
734         * sysdeps/powerpc/powerpc32/stpcpy.S: ...here.
735         * sysdeps/powerpc/strchr.S: Moved to...
736         * sysdeps/powerpc/powerpc32/strchr.S: ...here.
737         * sysdeps/powerpc/strcmp.S: Moved to...
738         * sysdeps/powerpc/powerpc32/strcmp.S: ...here.
739         * sysdeps/powerpc/strcpy.S: Moved to...
740         * sysdeps/powerpc/powerpc32/strcpy.S: ...here.
741         * sysdeps/powerpc/strlen.S: Moved to...
742         * sysdeps/powerpc/powerpc32/strlen.S: ...here.
743         * sysdeps/powerpc/sub_n.S: Moved to...
744         * sysdeps/powerpc/powerpc32/sub_n.S: ...here.
745         * sysdeps/powerpc/submul_1.S: Moved to...
746         * sysdeps/powerpc/powerpc32/submul_1.S: ...here.
747         * sysdeps/powerpc/elf/bzero.S: Moved to...
748         * sysdeps/powerpc/powerpc32/elf/bzero.S: ...here.
749         * sysdeps/powerpc/elf/start.S: Moved to...
750         * sysdeps/powerpc/powerpc32/elf/start.S: ...here.
751         * sysdeps/powerpc/fpu/__longjmp.S: Moved to...
752         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: ...here.
753         * sysdeps/powerpc/fpu/fprrest.S: Moved to...
754         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: ...here.
755         * sysdeps/powerpc/fpu/fprsave.S: Moved to...
756         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: ...here.
757         * sysdeps/powerpc/fpu/setjmp.S: Moved to...
758         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: ...here.
759         * sysdeps/powerpc/fpu/s_copysign.S: Moved to...
760         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: ...here.
761         * sysdeps/powerpc/fpu/s_copysignf.S: Moved to...
762         * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: ...here.
763         * sysdeps/unix/sysv/linux/powerpc/brk.S: Moved to...
764         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: ...here.
765         * sysdeps/unix/sysv/linux/powerpc/clone.S: Moved to...
766         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: ...here.
767         * sysdeps/unix/sysv/linux/powerpc/glob64.c: Moved to...
768         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
769         * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h: Moved to...
770         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: ...here.
771         * sysdeps/unix/sysv/linux/powerpc/socket.S: Moved to...
772         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: ...here.
773         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Moved to...
774         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: ...here.
775         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Moved to...
776         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: ...here.
777         Support PowerPC64.  Separate powerpc into powerpc/powerpc32 and
778         powerpc/powerpc64.
779
780 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
781
782         * FAQ.in: Add powerpc64 to supported targets list. Also state the
783         minimum gcc version is 3.2
784         * README: Add powerpc64 to supported targets list.
785         * configure.in: Change machine=powerpc to machine=powerpc/powerpc32.
786         Add powerpc64 and machine=powerpc/powerpc64.
787         (HAVE_ASM_GLOBAL_DOT_NAME): Define if linux*powerpc/powerpc64*.
788         * shlib-versions: Set DEFAULT version to 2.2.5 for powerpc64.
789         * sysdeps/powerpc/Dist: Remove dl-machine.c, dl-start.S, ppc-mcount.S,
790         gprsave1.S, gprsave0.S, gprrest1.S, and gprrest0.S.
791         * sysdeps/powerpc/powerpc32/Dist: New file.
792         * sysdeps/powerpc/Implies: Remove wordsize-32 and powerpc/soft-fp.
793         * sysdeps/powerpc/powerpc32/Implies: New file.
794         * sysdeps/powerpc/Makefile(cflags): Remove powerpc32 specific cflags.
795         ($(with-fp) = no): Move test to powerpc32/Makefile.
796         ($(subdir) = misc): Move to powerpc32/Makefile.
797         ($(build-shared) = yes): Move to powerpc32/Makefile.
798         ($(subdir) = csu): Move to powerpc32/Makefile.
799         (sysdep-rtld-routines): Remove dl-start.  Moved these bits to ...
800         * sysdeps/powerpc/powerpc32/Makefile: New file.
801         * sysdeps/powerpc/Versions: Remove libgcc functions.
802         * sysdeps/powerpc/powerpc32/Versions: New file.
803         * sysdeps/powerpc/fpu/Makefile: Remove fprsave and fprrest.
804         * sysdeps/powerpc/powerpc32/fpu/Makefile: New file.
805         * sysdeps/unix/sysv/linux/configure.in (powerpc*):
806         Set arch_minimum_kernel=2.4.19 for powerpc/powerpc64. Also set
807         libc_cv_gcc_unwind_find_fde=yes only if !powerpc/powerpc64.
808         ($machine): Add powerpc/powerpc64 to if ... | for
809         libc_cv_slibdir=/libc64.
810         (powerpc*): Set ldd_rewrite_script.
811         * sysdeps/unix/sysv/linux/powerpc/ldd-rewrite.sed: New file.
812         * sysdeps/unix/sysv/linux/powerpc/Dist: Remove clone.S.
813         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: New file.
814         Add clone.S.
815         * sysdeps/unix/sysv/linux/powerpc/Makefile: Remove oldgetrlimit64.
816         * sysdeps/unix/sysv/linux/powerpc/Versions: Remove GLIBC_2.0
817         functions.  Remove GLIBC_2.2 functions except getrlimit and
818         setrlimit.  Moved them to ...
819         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: New file.
820
821 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
822
823         * libio/tst-atime.c: Include <errno.h>.
824         (do_test): Only perform fstatvfs check if ST_NOATIME is defined.
825
826 2002-09-03  Isamu Hasegawa  <isamu@yamato.ibm.com>
827
828         * posix/regcomp.c (regcomp): Append "__restrict" modifier to avoid
829         warnings of some compilers.
830         (build_collating_symbol): Change the type of characters from
831         "unsigned char" to "char", and append a cast to "char*" pointer in
832         array subscript.
833         (build_collating_symbol): Likewise.
834         (build_equiv_class): Likewise.
835         (build_charclass): Likewise.
836         (re_compile_pattern): Remove incorrect cast.
837         (re_compile_fastmap_iter): Change the type of characters from
838         "unsigned char" to "char", and append a cast to "char*" pointer
839         in array subscript.
840         (parse_bracket_exp): Likewise.
841         * posix/regex_internal.c (re_string_construct_common): Likewise.
842         (re_string_allocate): Likewise.
843         (re_string_construct): Likewise.
844         (re_string_realloc_buffers): Likewise.
845         (build_wcs_buffer): Likewise.
846         (re_string_reconstruct): Likewise.
847         * posix/regex_internal.h: Change the type of characters in
848         re_string_t and bracket_elem_t from "unsigned char" to "char".
849         * posix/regexec.c (regexec): Append "__restrict" modifier to avoid
850         warnings of some compilers.
851         (transit_state_bkref_loop): Change the type of characters from
852         "unsigned char" to "char", and append a cast to "char*" pointer in
853         array subscript.
854         (check_node_accept_bytes): Likewise.
855         (find_collation_sequence_value): Likewise.
856
857 2002-09-04  Roland McGrath  <roland@redhat.com>
858
859         * resolv/nss_dns/dns-network.c (MAXPACKET): Increase minimum value
860         from 1024 to 65536, to avoid buffer overrun.
861
862 2002-09-03  Gerhard Tonn  <ton@de.ibm.com>
863
864         * sysdeps/s390/s390/fpu/libm-test-ulps: Regenerate.
865
866 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
867
868         * libio/tst-atime.c (do_test): Make sure noatime flag isn't set
869         for filesystem.
870
871 2002-09-04  Jakub Jelinek  <jakub@redhat.com>
872
873         * posix/bug-regex11.c: New test.
874         * posix/Makefile (tests): Add bug-regex11.
875
876 2002-09-03  Jakub Jelinek  <jakub@redhat.com>
877
878         * locale/tst-C_locale.c (run_test): Pass LC_ALL_MASK not LC_ALL to
879         newlocale.
880
881 2002-09-02  Roland McGrath  <roland@redhat.com>
882
883         * sysdeps/powerpc/elf/libc-start.c [! SHARED]: Call
884         __pthread_initialize_minimal and __libc_check_standard_fds to
885         match the generic version.
886
887         * sysdeps/unix/sysv/linux/shmat.c (shmat): Add a cast to avoid a
888         warning when INLINE_SYSCALL macro uses the __syscall_ipc function.
889
890         * locale/localeconv.c (__localeconv): Cast -1 to char to avoid
891         warnings on platorms where char is unsigned.
892
893 2002-09-02  Ulrich Drepper  <drepper@redhat.com>
894
895         * version.h (VERSION): Bump to 2.2.93.
896
897         * sysdeps/unix/sysv/linux/x86_64/Dist: Add __start_context.S.
898
899 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
900
901         * elf/rtld.c (dl_main): If prelinking succeeded, mark all objects
902         as relocated.
903
904 2002-09-02  Jack Howarth  <howarth@bromo.msbb.uc.edu>
905
906         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
907
908 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
909
910         * locale/localeinfo.h (struct locale_data): Add private.ctype.
911         * wcsmbs/wcsmbsload.h (__wcsmbs_gconv_fcts, __wcsmbs_last_locale,
912         __wcsmbs_to_wc, update_conversion_ptrs): Removed.
913         (__wcsmbs_gconv_fcts_c, _nl_C_LC_CTYPE): New externs.
914         (__wcsmbs_load_conv): Remove const from argument.
915         (_nl_cleanup_ctype): New proto.
916         (get_gconv_fcts): New function.
917         * wcsmbs/wcsmbsload.c (__wcsmbs_last_locale): Removed.
918         (__wcsmbs_to_wc): Rename back to...
919         (to_wc): ... this.
920         (__wcsmbs_gconv_fcts): Rename to...
921         (__wcsmbs_gconv_fcts_c): ... this.  Make const.  Use to_wc.
922         (lock): Removed.
923         (__libc_setlocale_lock): New extern.
924         (__wcsmbs_load_conv): Remove const from argument.
925         Initialize new_category->private.ctype instead of a global
926         variable.
927         (__wcsmbs_clone_conv): Use get_gconv_fcts instead of
928         update_function_ptrs.  No locking is necessary.
929         (_nl_cleanup_ctype): New function.
930         * wcsmbs/btowc.c (__btowc): Use get_gconv_fcts instead of
931         update_function_ptrs and a global __wcsmbs_gconv_fcts variable.
932         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
933         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
934         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
935         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
936         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
937         * wcsmbs/wctob.c (wctob): Likewise.
938         * stdlib/mblen.c (mblen): Likewise.
939         * stdlib/mbtowc.c (mbtowc): Likewise.
940         * stdlib/wctomb.c (wctomb): Likewise.
941         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
942         Remove calls to wcsmbs_get_towc_func and wcsmbs_free_funcs.
943         * wcsmbs/mbsrtowcs_l.c (wcsmbs_get_towc_func, wcsmbs_free_funcs):
944         Removed.
945
946 2002-09-02  Roland McGrath  <roland@frob.com>
947
948         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Add __fxstat64.
949
950 2002-09-01  Roland McGrath  <roland@redhat.com>
951
952         * ctype/ctype.h (__ctype_b, __ctype_toupper, __ctype_tolower):
953         Variable declarations removed.
954         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Declare
955         these functions to replace them.
956         (__isctype, tolower, toupper, _tolower, _toupper): Use those accessor
957         functions plus an indirection rather than the old global variables.
958         * include/ctype.h (__isctype, tolower, _tolower, toupper, _toupper):
959         Macros removed.
960         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): New extern
961         inline functions.
962         * ctype/ctype-info.c: Revert last reversion back the other way.
963         Define tsd vars CTYPE_B, CTYPE_TOLOWER, CTYPE_TOUPPER.
964         Define real function versions of include/ctype.h inlines here.
965         * ctype/Versions (libc: GLIBC_2.3): Add __ctype_b_loc,
966         __ctype_tolower_loc, __ctype_toupper_loc.
967         * locale/lc-ctype.c: Revert last reversion back the other way.
968         (_nl_postload_ctype): If current thread uses the global locale,
969         update its tsd vars.
970         * locale/uselocale.c (__uselocale): Update tsd vars from new locale.
971         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add CTYPE_B,
972         CTYPE_TOLOWER, CTYPE_TOUPPER.
973
974         * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_address): New macro.
975         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_address): Renamed
976         from __libc_tsd_threadvar_location.
977         (__libc_tsd_set, __libc_tsd_get): Update uses.
978
979 2002-09-01  Ulrich Drepper  <drepper@redhat.com>
980
981         * ctype/ctype.h: Undo the patch before the last one.  Put back the
982         macro definitions for the standard functions to access the
983         classification and mapping arrays.
984         * include/ctype.h: Partly revert last patch.  Move the macro
985         definitions for the exported functions back to the public header.
986         #undef all the macros defined here before redefining.
987         * ctype/ctype-info.c: Revert last patch.
988         * locale/lc-ctype.c: Revert last patch.
989
990         * ctype/Makefile (routines): Add isctype.
991         * ctype/Versions (libc): Export isctype and __isctype for GLIBC_2.3.
992         * ctype/ctype.h: Add declaration of isctype.
993         * include/ctype.h: Declare __isctype.
994         * ctype/isctype.c: New file.
995
996 2002-09-01  Roland McGrath  <roland@redhat.com>
997
998         * sysdeps/generic/libc-tls.c (__pthread_initialize_minimal): Pass
999         TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN instead of 0, 1.
1000
1001         * include/getopt.h: Include <features.h> before <posix/getopt.h>.
1002
1003         * locale/findlocale.c (_nl_remove_locale): Don't search in
1004         _nl_locale_file_list if DATA->alloc is ld_archive.
1005         Use _nl_unload_locale to do the rest of the work.
1006
1007         * locale/loadarchive.c (_nl_load_locale_from_archive): Set usage_count
1008         of new structure to UNDELETABLE.
1009
1010         * wctype/wctype.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower,
1011         iswgraph, iswprint, iswpunct, iswspace, iswupper, iswxdigit, iswblank,
1012         towlower, towupper): Macros removed.
1013         * ctype/ctype.h (__tobody): Put parens around macro argument.
1014         (__isctype): Macro removed.
1015         (__ctype_b, __ctype_tolower, __ctype_toupper): Decls removed.
1016         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1017         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1018         tolower, toupper): Macros and inlines removed.
1019         * include/ctype.h [! NOT_IN_libc]
1020         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1021         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1022         tolower, toupper): Define here instead, using _NL_CURRENT.
1023         * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Define as macros
1024         using _NL_CURRENT.
1025         * ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Likewise.
1026         * ctype/ctype-info.c (__ctype_b, __ctype_tolower, __ctype_toupper):
1027         Renamed these to __ctype_old_*. Define old names only for SHLIB_COMPAT.
1028         (__ctype32_b, __ctype32_tolower, __ctype32_toupper): Likewise.
1029         (__ctype32_wctrans, __ctype32_wctrans, __ctype32_width): Removed.
1030         * locale/lc-ctype.c (_nl_postload_ctype): Use renamed variables,
1031         conditional on SHLIB_COMPAT.  Don't set removed variables at all.
1032         * wctype/wcfuncs.c: Use _NL_CURRENT instead of those globals.
1033         * wcsmbs/wcwidth.h (internal_wcwidth): Likewise.
1034         * resolv/res_init.c [RESOLVSORT] (sort_mask): Renamed sort_mask_chars.
1035         (ISSORTMASK): Update use.
1036         * intl/localealias.c [__GNUC__]: #undef alloca before #define.
1037         * nss/nss_files/files-XXX.c (last_use): Rename `none' to `nouse'.
1038         (_nss_files_getENTNAME_r): Likewise.
1039         * nss/nss_files/files-alias.c (last_use, _nss_files_getaliasent_r):
1040         Likewise.
1041
1042         * Makerules (all-nonlib): Renamed from all-tests.
1043         Include $(others) here too.
1044         * locale/Makefile (CPPFLAGS-locale, CPPFLAGS-localedef,
1045         CPPFLAGS-ld-ctype, CPPFLAGS-ld-time, CPPFLAGS-ld-numeric,
1046         CPPFLAGS-ld-monetary, CPPFLAGS-ld-collate, CPPFLAGS-ld-identification,
1047         CPPFLAGS-charmap, CPPFLAGS-locarchive, CPPFLAGS-linereader,
1048         CPPFLAGS-charmap-dir): Variables removed.  Instead, catch all
1049         the program modules via cppflags-iterator.mk.
1050         * sunrpc/Makefile (CPPFLAGS-rpc_main): Variable removed.
1051         Instead, catch all rpcgen-objs via cppflags-iterator.mk.
1052
1053 2002-08-31  Roland McGrath  <roland@redhat.com>
1054
1055         * posix/tst-getconf.sh: If no third arg, work with static linking.
1056
1057         * locale/categories.def (LC_TIME): No more _nl_postload_time.
1058
1059         * locale/setlocale.c (_nl_category_postload): Use weak refs only under
1060         [_NL_CURRENT_INDIRECT].
1061
1062 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1063
1064         * time/tst-ftime_l.c (main): Also test strftime with uselocale.
1065
1066 2002-08-31  Roland McGrath  <roland@redhat.com>
1067
1068         * locale/newlocale.c (__newlocale): Don't use strdup for names.
1069         Instead, make the single allocation of the structure larger to hold
1070         the name strings.
1071         * locale/duplocale.c (__duplocale): Don't strdup names individually.
1072         Instead, calculate size for a single allocation and copy into it.
1073         * locale/freelocale.c (__freelocale): Don't free names individually.
1074
1075         * locale/newlocale.c (__newlocale): Don't leak old data or names.
1076
1077         * locale/xlocale.h (__locale_struct): Move __names member last,
1078         for binary compatibility.
1079
1080         * locale/duplocale.c (__duplocale): Free names from the right array.
1081
1082         * locale/uselocale.c (__uselocale): Return previous locale when
1083         setting a new one.
1084
1085         * locale/newlocale.c: Commit changes from 2002-08-30
1086         batch where I failed to commit this file:
1087         (__newlocale): Fill in __names array.
1088
1089 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1090
1091         * sysdeps/gnu/Makefile: Only depend on Versions.v.i for
1092         errlist-compat.c if versioning==yes.
1093
1094 2002-08-31  Andreas Jaeger  <aj@suse.de>
1095
1096         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Declare
1097         external functions with hidden attribute.
1098         (elf_machine_rela): Optimize.
1099
1100         * sysdeps/x86_64/memset.S: New file.
1101         * sysdeps/x86_64/bzero.S: New file.
1102         * sysdeps/x86_64/stpcpy.S: New file.
1103         * sysdeps/x86_64/strcat.S: New file.
1104         * sysdeps/x86_64/strchr.S: New file.
1105         * sysdeps/x86_64/strcpy.S: New file.
1106         * sysdeps/x86_64/strcspn.S: New file.
1107         * sysdeps/x86_64/strlen.S: New file.
1108         * sysdeps/x86_64/strpbrk.S: New file.
1109         * sysdeps/x86_64/strspn.S: New file.
1110         * sysdeps/x86_64/strcmp.S: New file.
1111         * sysdeps/x86_64/strtok_r.S: New file.
1112         * sysdeps/x86_64/strtok.S: New file.
1113         * sysdeps/x86_64/memcpy.S: New file.
1114         * sysdeps/x86_64/mempcpy.S: New file.
1115
1116         * sysdeps/x86_64/fpu/s_copysign.S: Fix algorithm.
1117
1118         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for double tests.
1119
1120 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1121
1122         * stdio-common/Makefile (generated): Add errlist-compat.c.
1123
1124         * locale/Makefile (extra-objs): Add $(localedef-aux:=.o).
1125
1126         * locale/localeinfo.h: Pretty printing.
1127
1128         * stdio-common/vfprintf.c (vfprintf): Remove duplicate ifs in
1129         form_number handling.
1130
1131 2002-08-31  Andreas Jaeger  <aj@suse.de>
1132
1133         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for float and long
1134         double tests.
1135
1136         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_routines): Add
1137         __start_context.
1138
1139         * sysdeps/unix/sysv/linux/x86_64/__start_context.S: New file.
1140
1141         * sysdeps/unix/sysv/linux/x86_64/makecontext.c: New file.
1142
1143         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: Add defines for
1144         registers used for passing args.
1145
1146         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Save and restore
1147         all needed registers.
1148
1149         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Restore all
1150         registers.
1151
1152         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Save all needed
1153         registers.
1154
1155 2002-08-30  Ulrich Drepper  <drepper@redhat.com>
1156
1157         * elf/dynamic-link.h (elf_get_dynamic_info): Mark with
1158         always_inline attribute.
1159
1160 2002-08-30  Roland McGrath  <roland@redhat.com>
1161
1162         * stdlib/tst-setcontext.c (main): If makecontext does nothing,
1163         presume it's the stub and bail without error.
1164
1165         * nss/getnssent_r.c (__nss_getent_r): Return ENOENT if status is
1166         neither SUCCESS nor TRYAGAIN (see 2002-08-25 change [PR libc/4259]).
1167
1168         * nss/getnssent_r.c (__nss_getent_r): Set *H_ERRNOP, not global one.
1169
1170         * sysdeps/x86_64/hp-timing.h (HP_TIMING_NOW, HP_TIMING_ACCUM): New
1171         macros replace the i686 versions for 64-bit mode.
1172
1173         * locale/duplocale.c: Include <string.h>.
1174
1175         * intl/dcigettext.c (DCIGETTEXT) [_LIBC]: Check for bogus CATEGORY.
1176         [_LIBC] (category_to_name): Don't define the function.  Instead
1177         define a macro using _nl_category_names.
1178
1179         * locale/xlocale.h (struct __locale_struct): New member `__names'.
1180         * locale/xlocale.c (_nl_C_locobj): Update initializer.
1181         * locale/global-locale.c (_nl_global_locale): Likewise.
1182         * locale/duplocale.c (__duplocale): strdup __names elements.
1183         * locale/freelocale.c (__freelocale): Free __names elements.
1184         * locale/localename.c (_nl_current_names): Variable removed.
1185         (__current_locale_name): Use _NL_CURRENT_LOCALE->__names instead.
1186         * locale/localeinfo.h (_nl_current_names): Removed decl.
1187         * locale/setlocale.c: Use _nl_global_locale->__names in place of
1188         _nl_current_names throughout.
1189
1190         * locale/setlocale.c (setlocale): strdup -> __strdup (not ISO C).
1191
1192         * sysdeps/gnu/errlist-compat.awk: Emit link_warnings for sys_errlist
1193         and sys_nerr in the output file.
1194
1195         * sunrpc/Makefile (rpcgen-cmd): Pass CPP in rpcgen's environment.
1196         * scripts/cpp: Just use the environment variable.
1197
1198         * libio/tst-mmap-setvbuf.c (main): Use 'm' fopen flag.
1199         * libio/tst-mmap-offend.c (do_test): Likewise.
1200         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
1201         * libio/tst-mmap-eofsync.c (do_test): Likewise.
1202         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
1203
1204         * locale/localename.c: If the current locale is the global locale, use
1205         _nl_current_names; otherwise use the locale object.
1206
1207 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
1208
1209         * libio/fileops.c (_IO_new_file_fopen): Recognize new mode specifier
1210         'm' to enable mmap I/O.
1211         * libio/libio.h (_IO_FILE): Rename _blksize field to _flags2.  The
1212         former wasn't used (anymore?).
1213         (_IO_FLAGS2_MMAP): New define.
1214         * libio/genops.c (_IO_no_init): Initialize _flags2 field.
1215         * libio/iofopen.c (__fopen_maybe_mmap): Use mmap callbacks only if
1216         _IO_FLAGS2_MMAP bit is set.
1217         * libio/iofdopen.c (_IO_new_fdopen): Recognize 'm' mode specifier.
1218         Enable mmap-using mode only if 'm' was set.
1219
1220 2002-08-29  Roland McGrath  <roland@frob.com>
1221
1222         * sysdeps/mach/hurd/bits/local_lim.h (NAME_MAX): New macro.
1223
1224         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup: doinit):
1225         Change argument type from int to intptr_t.
1226
1227         * locale/global-locale.c (__libc_tsd_LOCALE_data): Conditionalize the
1228         initializer on [! _HURD_THREADVAR_H] (bad kludge).
1229         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize
1230         _HURD_THREADVAR_LOCALE slot to &_nl_global_locale.
1231         * hurd/hurdsig.c (_hurdsig_init): Likewise.  Zero other slots.
1232
1233         * sysdeps/mach/_strerror.c (__strerror_r): Add libc_hidden_def.
1234
1235         * sysdeps/mach/hurd/pwrite64.c: No libc_hidden_def (__libc_pwrite64).
1236
1237         * sysdeps/mach/hurd/dl-sysdep.c (__GI_abort): Define alias for abort.
1238
1239         * include/assert.h (__assert_perror_fail): Declare it, do hidden_proto.
1240         * assert/assert-perr.c: Add libc_hidden_def.
1241         * elf/dl-minimal.c [! NDEBUG] (__assert_perror_fail): New function.
1242
1243         * sysdeps/gnu/errlist-compat.awk: Don't fail if there are no versions
1244         found at all.
1245         * sysdeps/gnu/Versions: File removed.  Moved all #errlist-compat
1246         sys_errlist stuff to ...
1247         * sysdeps/unix/sysv/linux/Versions: ... here.
1248
1249         * mach/mach.h: Include <features.h>.
1250
1251 2002-08-29  Roland McGrath  <roland@redhat.com>
1252
1253         * elf/dl-runtime.c (IN_DL_RUNTIME): Define this macro first thing.
1254         * sysdeps/i386/dl-machine.h: Only declare fixup, profile_fixup and
1255         define ELF_MACHINE_RUNTIME_TRAMPOLINE under #ifdef IN_DL_RUNTIME.
1256
1257         * sysdeps/generic/readelflib.c (process_elf_file): Fix typo.
1258
1259         * iconv/gconv_int.h: Include <stdlib.h> for alloca decl.
1260         (norm_add_slashes): alloca -> __alloca
1261
1262 2002-08-29  Jakub Jelinek  <jakub@redhat.com>
1263
1264         * stdio-common/vfprintf.c (vfprintf): Add builtin_expect for
1265         string_malloced, it is unlikely to be set.
1266         Only call free with non-NULL workspace.
1267         * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Use
1268         -mcpu=ultrasparc, not only tune for it.
1269         (ASFLAGS*): Set unconditionally.
1270
1271         * sysdeps/generic/readelflib.c (process_elf_file): Make LOADADDR
1272         ElfW(Addr).  Don't mask upper 32-bits and lower 12 bits off from
1273         p_vaddr/p_offset when computing LOADADDR.
1274
1275 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
1276
1277         * version.h (VERSION): Bump to 2.2.92.
1278
1279         * time/Makefile (tst-ftime_l-ENV): New variable.
1280
1281         * iconvdata/ibm870.c: All bytes are now used, no holes anymore.
1282
1283         * localedata/charmaps/IBM870: Add correct mapping for <U017E>,
1284         <U017A>, <U017D> and <U0179>. Add missing mappings.
1285         Patch by Antonin Kopecky <akopecky@tajmac-zps.cz>.
1286
1287         * gmon/sys/gmon.h (ARCDENSITY): Bump to 3.
1288         Define ARCINDEX.  Bump MAXARCS to 1 << 20.
1289         (struct tostruct): Use ACRINDEX as type for link field.
1290         (statuc gmonparam): Likewise for froms.
1291         * gmon/gmon.c (__monstartup): Use currect cast for assignments to
1292         kcount and froms.
1293         (write_call_graph): Use correct type for from_index and to_index.
1294         * gmon/mcount.c: Use correct types for frompcindex and toindex
1295         variables.
1296         Patches by Dan Kegel <dank@kegel.com>.
1297
1298         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix code to determine
1299         canonical name.
1300
1301         * time/strptime.c (ISSPACE): New #define.  Use isspace or
1302         __isspace_l.  Replace calls to isspace.
1303         (match_string): Define variant for USE_IN_EXTENDED_LOCALE_MODEL.
1304
1305 2002-08-29  Roland McGrath  <roland@redhat.com>
1306
1307         * string/tst-strxfrm.c: Remove __ from function names.
1308
1309 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1310
1311         * include/wchar.h: Declare __mbsrtowcs_l.
1312         * wcsmbs/Makefile (routines): Add mbsrtowcs_l.
1313         * wcsmbs/mbsrtowcs.c: Add support for compilation with
1314         USE_IN_EXTENDED_LOCALE_MODEL.
1315         * wcsmbs/mbsrtowcs_l: New file.
1316         * wcsmbs/wcsmbsload.c (__wcsmbs_to_wc): Renamed from to_wc.  Don't
1317         define as static.  Change all uses.
1318         (__wcsmbs_getfct): Renamed from getfct.  Don't define as static.
1319         Change all callers.
1320         * wcsmbs/wcsmbsload.h: Declare __wcsmbs_to_wc and __wcsmbs_getfct.
1321         * time/strftime.c: When translating for the extended locale model
1322         use the _l functions.
1323         * time/Makefile (tests): Add tst-ftime_l.
1324         * time/tst-ftime_l.c: New file.
1325
1326 2002-08-28  Roland McGrath  <roland@redhat.com>
1327
1328         * locale/findlocale.c [NL_CURRENT_INDIRECT] (_nl_C): New variable.
1329         * locale/setlocale.c (setlocale) [NL_CURRENT_INDIRECT]: Null return
1330         from _nl_find_locale ok if for _nl_C_name.
1331
1332         * locale/nl_langinfo.c [NL_CURRENT_INDIRECT]: Use a categories.def
1333         iterator to refer to each category's _nl_current_LC_FOO symbol, so
1334         we know they are all linked in.
1335
1336         * NEWS: Added 2.2.6 text from 2.2 branch version.
1337
1338         * time/strptime.c (strptime_internal): Remove spurious const.
1339
1340         * locale/lc-time.c (_nl_init_era_entries, _nl_get_era_entry,
1341         _nl_select_era_entry): Moved to ...
1342         * time/era.c: ... here, new file.
1343         (_nl_init_era_entries, _nl_get_era_entry, _nl_select_era_entry):
1344         Add internal_function to definitions.  Take an additional argument
1345         giving the `struct locale_data *' to use.
1346         * locale/lc-time.c (_get_alt_digit, _nl_get_walt_digit,
1347         _nl_parse_alt_digit): Moved to ...
1348         * time/alt_digit.c: ... here, new file.
1349         * time/lc-time-cleanup.c: New file.
1350         * locale/lc-time.c (_nl_postload_time, free_mem): Functions removed.
1351         * locale/localeinfo.h (_nl_postload_time): Remove decl.
1352         (_nl_cleanup_time): Declare it.
1353         (_nl_get_era_entry, _nl_select_era_entry): Update decls.
1354         (_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit): Likewise.
1355         * time/Makefile (aux): New variable: era, alt_digit, lc-time-cleanup.
1356         * time/strftime.c: Pass locale data to helper functions.
1357         * time/strptime.c: Likewise.
1358
1359         * locale/localeinfo.h (struct locale_data): New member `private'
1360         * locale/loadlocale.c (_nl_intern_locale_data): Initialize it.
1361         (_nl_unload_locale): Call LOCALE->private.cleanup if it is set.
1362         * locale/C-collate.c: Update initializer.
1363         * locale/C-identification.c: Likewise.
1364         * locale/C-measurement.c: Likewise.
1365         * locale/C-telephone.c: Likewise.
1366         * locale/C-address.c: Likewise.
1367         * locale/C-name.c: Likewise.
1368         * locale/C-paper.c: Likewise.
1369         * locale/C-time.c: Likewise.
1370         * locale/C-numeric.c: Likewise.
1371         * locale/C-monetary.c: Likewise.
1372         * locale/C-messages.c : Likewise.
1373         * locale/C-ctype.c: Likewise.
1374
1375         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL] (_NL_CURRENT_WORD):
1376         Redefine this too.
1377
1378 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1379
1380         * sysdeps/generic/ldsodefs.h (__rtld_global_attribute__): Define.
1381         (_rtld_global): Use it.
1382
1383         * sysdeps/gnu/Dist: Remove errlist-compat.c.
1384         * sysdeps/gnu/Makefile (errlist-compat.c): Build this file in the
1385         object directory.  Pass all Versions files to the awk script.
1386         * sysdeps/gnu/errlist-compat.c: Removed.
1387         * sysdeps/gnu/errlist.awk: Use #errlist-compat comments from the
1388         first Versions file in the search path which has them.
1389         Allow multiple errlist symbol versions to have the same count of
1390         errors.
1391         * sysdeps/gnu/errlist-compat.awk: Include <errlist-compat.c> instead
1392         of "errlist-compat.c".
1393         * sysdeps/gnu/errlist.c: Regenerated.
1394         * sysdeps/unix/sysv/linux/mips/Versions (libc): Add #errlist-compat
1395         comments at GLIBC_2.0, GLIBC_2.1 and GLIBC_2.3.
1396         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
1397         (librt): Add aio_cancel and aio_cancel64 as GLIBC_2.3.
1398         * sysdeps/unix/sysv/linux/hppa/Versions: Likewise.
1399         * sysdeps/unix/sysv/linux/sparc/Versions: New file.
1400         * sysdeps/unix/sysv/linux/alpha/bits/errno.h: New file.
1401         * sysdeps/unix/sysv/linux/hppa/bits/errno.h (ECANCELED): Define to
1402         ECANCELLED if not defined by kernel headers.
1403         * sysdeps/unix/sysv/linux/bits/errno.h: Don't redefine ECANCELED if
1404         already defined by kernel headers.
1405         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: New file.
1406         * sysdeps/pthread/aio_cancel.c: Don't include aio.h and its
1407         aio_cancel64 renaming hack nor provide weak_alias if aio_cancel
1408         is a macro.
1409         * Versions.def (GLIBC_2.3) [librt]: Add.
1410
1411         * sysdeps/unix/sysv/linux/alpha/pipe.S: New file.
1412
1413 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1414
1415         * include/libc-symbols.h [!__ASSEMBLER__] (declare_symbol_1): Add
1416         missing comma to .type directive.
1417
1418 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1419
1420         * sysdeps/ia64/elf/configure.in (PI_STATIC_AND_HIDDEN): Define
1421         unconditionally.
1422         * sysdeps/alpha/elf/configure.in (libc_cv_alpha_hidden_gprel): New
1423         check.
1424         (PI_STATIC_AND_HIDDEN): Define if check succeeded.
1425
1426 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1427
1428         * locale/loadarchive.c (_nl_load_locale_from_archive): Add fd >= 0
1429         check to close_and_out close.  Replace return NULL statements where
1430         fd might be >= 0 with goto close_and_out.  Close the file descriptor
1431         when it is no longer needed.
1432
1433 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1434
1435         * sysdeps/s390/s390-64/dl-machine.h: Avoid unescaped newlines in
1436         string constants.
1437         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1438         * sysdeps/arm/dl-machine.h: Likewise.
1439         * sysdeps/cris/dl-machine.h: Likewise.
1440         * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
1441         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
1442
1443 2002-08-28  Roland McGrath  <roland@redhat.com>
1444
1445         * Makeconfig (default_cflags): Revert unintended change.
1446
1447 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1448
1449         * version.h (VERSION): Bump to 2.2.91.
1450
1451         * configure.in: Disable TLS support by default for now.
1452
1453         * sysdeps/i386/fpu/libm-test-ulps: Adjust ulp for yn for float.
1454
1455         * sysdeps/generic/strtol.c (strtol): Add some more casts to avoid
1456         warnings.
1457
1458         * stdlib/strtod.c (STRTOF): Correct type in cast of last patch.
1459
1460         * stdlib/fmtmsg.c (fmtmsg): Use correct test for failure of
1461         fprintf/fwprintf calls.
1462
1463 2002-08-28  Roland McGrath  <roland@redhat.com>
1464
1465         * Makeconfig (run-program-prefix): Fix bogus use of $(findstring ...)
1466         to use $(filter ...) instead.  Same bug fixed in aix conditionals.
1467
1468         * locale/setlocale.c: Declare postload functions weak.
1469
1470         * elf/tst-tls1-static.c: New file.
1471         * elf/tst-tls2-static.c: New file.
1472         * elf/Makefile ($(tests-static):%=$(objfpx)%.o): Remove rule.
1473
1474         Make uselocale support static linking.
1475         * locale/xlocale.c: Revert changes putting _nl_global_locale here.
1476         This file again just defines _nl_C_locobj.
1477         (_nl_C_locobj): Use a categories.def iterator in the initializer.
1478         * locale/global-locale.c: New file.  Define _nl_global_locale here,
1479         using all weak references in the initializer.
1480         * locale/Makefile (aux): Add global-locale.
1481         * locale/localeinfo.h (_nl_global_locale, _NL_CURRENT_LOCALE): Make
1482         these unconditional, along with the tsd decl.
1483         [!SHARED && HAVE___THREAD && HAVE_WEAK_SYMBOLS] (NL_CURRENT_INDIRECT):
1484         Define it under these conditions.
1485         [NL_CURRENT_INDIRECT]: Test this instead of [! SHARED].
1486         Don't declare _nl_current.  Declare _nl_current_LC_FOO as
1487         `extern __thread struct locale_data *const *'.
1488         [NL_CURRENT_INDIRECT]
1489         (_NL_CURRENT_DATA, _NL_CURRENT, _NL_CURRENT_WSTR): Add indirection.
1490         [NL_CURRENT_INDIRECT] (_NL_CURRENT_DEFINE): Rewritten.  Define
1491         the thread variable _nl_current_LC_FOO and also a special absolute
1492         symbol _nl_current_LC_FOO_used.
1493         * locale/uselocale.c (__uselocale) [NL_CURRENT_INDIRECT]:
1494         Set each _nl_current_LC_FOO symbol to point into the new locale,
1495         using weak references to test if _nl_current_LC_FOO_used was linked in.
1496         * locale/setlocale.c [! SHARED]: Replace this conditional ...
1497         [NL_CURRENT_INDIRECT]: ... with this one.
1498         (_nl_current, _nl_C): Variables removed.
1499         [NL_CURRENT_INDIRECT] (_nl_current_used): New variable, table of
1500         weak references to _nl_current_LC_FOO_used.
1501         [NL_CURRENT_INDIRECT] (CATEGORY_USED): Define using that table.
1502         (free_category): New function, broken out of ...
1503         (free_mem): ... here.  Call that.
1504         (free_mem) [NL_CURRENT_INDIRECT]: Use a categories.def iterator
1505         instead of a loop.
1506
1507         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Don't check for
1508         PT_LOAD program headers and don't try to relocate PT_TLS's p_vaddr;
1509         it is already absolute.
1510
1511         * elf/Makefile (tests): List tst-tls1 and tst-tls2 unconditionally.
1512         [$(build-static) = yes] (tests): Add tst-tls1-static, tst-tls2-static.
1513         [$(build-static) = yes] (tests-static): New variable.
1514         ($(tests-static):%=$(objfpx)%.o)): New static pattern rule.
1515
1516 2002-08-26  Christoph Hellwig  <hch@lst.de>
1517
1518         * sysdeps/unix/sysv/linux/sys/personality.h: Remark origin, fix
1519         formating braindamage, add missing PER_HPUX and PER_OSF1 values.
1520
1521 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1522
1523         * sysdeps/x86_64/Dist: Add _mcount.S and bits/link.h.
1524
1525         * sysdeps/s390/Dist: Add bits/link.h.
1526
1527         * sysdeps/sh/Dist: New file.
1528
1529         * sysdeps/ia64/Dist: Add ia64libgcc.S.
1530
1531         * sysdeps/wordsize-32/Dist: New file.
1532
1533         * sysdeps/unix/sysv/linux/alpha/Dist: Add dl-brk.S.
1534         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
1535         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
1536
1537         * sysdeps/unix/sysv/linux/Dist: Add dl-brk.c, dl-sbrk.c, and
1538         sys/personality.h.
1539
1540         * sysdeps/unix/Dist: Add i386/dl-brk.S, mips/dl-brk.S, and
1541         sparc/dl-brk.S.
1542
1543         * sysdeps/unix/bsd/Dist: Add vax/dl-brk.S.
1544
1545         * sysdeps/unix/bsd/sun/Dist: New file.
1546
1547         * sysdeps/unix/bsd/osf/Dist: New file.
1548
1549         * sysdeps/unix/bsd/hp/Dist: New file.
1550
1551         * sysdeps/unix/arm/Dist: New file.
1552
1553         * sysdeps/powerpc/Dist: Add divdi3.c and libgcc-compat.S.
1554
1555         * sysdeps/mach/hurd/Dist: Add set-init.c.
1556
1557         * sysdeps/i386/Dist: Add bits/link.h.
1558
1559         * sysdeps/gnu/Dist: Add errlist-compat.c errlist-compat.awk.
1560
1561         * sysdeps/generic/Dist: Add dl-brk.c and dl-sbrk.c.
1562
1563         * locale/Makefile (distribute): Add hashval.h.
1564
1565         * iconvdata/Makefile (distribute): Add tcvn5712-1.c and armscii-8.c.
1566
1567         * sysdeps/unix/sysv/linux/Dist: Remove errlist.h.
1568
1569         * misc/sys/cdefs.h: Define __BEGIN_NAMESPACE_STD, __END_NAMESPACE_STD,
1570         __USING_NAMESPACE_STD, __BEGIN_NAMESPACE_C99, __END_NAMESPACE_C99, and
1571         __USING_NAMESPACE_C99 depending on _GLIBCPP_USE_NAMESPACES.
1572         * ctype/ctype.h: Prepare headers for use in ISO C++ compliant
1573         implementations.
1574         * libio/stdio.h: Likewise.
1575         * locale/locale.h: Likewise.
1576         * math/math.h: Likewise.
1577         * math/bits/mathcalls.h: Likewise.
1578         * setjmp/setjmp.h: Likewise.
1579         * signal/signal.h: Likewise.
1580         * stdlib/stdlib.h: Likewise.
1581         * string/string.h: Likewise.
1582         * time/time.h: Likewise.
1583         * wcsmbs/wchar.h: Likewise.
1584         * wctype/wctype.h: Likewise.
1585
1586 2002-08-28  Roland McGrath  <roland@redhat.com>
1587
1588         * locale/tst-C-locale.c (run_test): Remove __ from function names.
1589
1590 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1591             Roland McGrath <roland@redhat.com>
1592
1593         * locale/hashval.h (compute_hashval): Use prototype defn.
1594         (hashval_t): New macro, defined to unsigned long int
1595         if not already defined.
1596         (compute_hashval): Return hashval_t instead of unsigned long int.
1597         * locale/loadarchive.c (hashval_t): New macro.
1598         * locale/programs/locarchive.c: Include hashval.h directly instead
1599         of simple-hash.h.
1600         (compute_hashval, hashval_t): Define these macros first.
1601         (insert_name): Use archive_hashval instead of compute_hashval.
1602         (add_locale, delete_locales_from_archive): Likewise.
1603
1604 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1605
1606         * locale/programs/locarchive.c (insert_name): Suppress warnings about
1607         hash collisions if be_quiet.
1608
1609 2002-08-27  Roland McGrath  <roland@redhat.com>
1610
1611         * locale/locale.h (__newlocale, __duplocale, __freelocale,
1612         __uselocale): Don't declare these any more.
1613         * include/locale.h (__uselocale): Declare here instead, using __typeof.
1614
1615         * sysdeps/unix/readdir.c: If getdents fails with ENOENT, restore errno
1616         and treat it as an EOF return.
1617         * sysdeps/unix/readdir_r.c: Likewise.
1618
1619         * sysdeps/gnu/errlist-compat.awk: Include <bits/wordsize.h> in output.
1620         From Alexandre Oliva <aoliva@redhat.com>.
1621         * sysdeps/gnu/errlist-compat.c: Regenerated.
1622
1623 2002-08-27  Brian Youmans  <3diff@gnu.org>
1624
1625         * sysdeps/ieee754/flt-32/e_asinf.c: Modified copying permission
1626         wording at request of copyright holder Stephen Moshier.
1627         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
1628         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
1629         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
1630         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
1631         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
1632         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
1633         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
1634         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
1635         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
1636         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
1637         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
1638         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
1639         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
1640         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
1641
1642 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1643
1644         * ctype/ctype.h (isascii_l, toascii_l): Define to __*_l counterparts.
1645         * ctype/ctype-extn.c (isblank_l): Add weak alias.
1646         * sysdeps/generic/strtol_l.c (strtol_l): Likewise.
1647         * sysdeps/generic/strtoll_l.c (strtoll_l): Likewise.
1648         * sysdeps/generic/strtoul_l.c (strtoul_l): Likewise.
1649         * sysdeps/generic/strtoull_l.c (strtoull_l): Likewise.
1650         * wctype/iswctype_l.c (iswctype_l): Likewise.
1651
1652 2002-08-27  Roland McGrath  <roland@redhat.com>
1653
1654         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: No libc_hidden_def.
1655
1656         * ctype/ctype.h (__exctype_l): Don't declare __ name.
1657         * stdlib/stdlib.h: Don't declare __*_l names.
1658         * include/stdlib.h: Declare them here instead.
1659         * include/string.h: Don't declare __*_l names.
1660         * string/string.h: Declare them here instead.
1661         * time/time.h: Don't declare __*_l names.
1662         * include/time.h: Declare them here instead.
1663         * wcsmbs/wchar.h: Don't declare __*_l names.
1664         * include/wchar.h: Declare them here instead.
1665         * wctype/wctype.h: Declare iswalnum_l, not __iswalnum_l.
1666         Don't declare __*_l names.
1667         * include/wctype.h: Declare them here instead.
1668         * stdlib/monetary.h: Declare strfmon_l, not __strfmon_l.
1669         * stdlib/strfmon_l.c (strfmon_l): Define as weak alias.
1670         * locale/langinfo.h: Don't declare __nl_langinfo_l.
1671         * include/langinfo.h: Declare it here with __typeof.
1672
1673         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strptime_l
1674         instead, taking an extra __locale_t argument.
1675         * time/Makefile (routines): Add strptime_l.
1676         * time/time.h (__strptime_l, strptime_l): Declare them.
1677         * time/strptime_l.c: New file.
1678
1679         * time/time.h (__strftime_l, strftime_l): Declare them.
1680         * wcsmbs/wchar.h (__wcsftime_l, wcsftime_l): Declare them.
1681         * time/strftime_l.c: New file.
1682         * time/wcsftime_l.c: New file.
1683         * time/Makefile (routines): Add strftime_l, wcsftime_l.
1684         * time/Versions (libc: GLIBC_2.3): Add __strftime_l, __wcsftime_l,
1685         strftime_l, wcsftime_l.
1686         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strftime_l
1687         or __wcsftime_l instead, taking an extra __locale_t argument.
1688
1689         * locale/Versions (libc: GLIBC_PRIVATE): Move __uselocale to ...
1690         (libc: GLIBC_2.3): ... here.
1691
1692 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
1693
1694         * stdio-common/Makefile: Fix typo in stdio_lim.h installation rule.
1695
1696         * Makefile (distribute): Add LICENSES.
1697
1698         * sysdeps/unix/sysv/linux/x86_64/Dist: Add ucontext_i.h and
1699         sys/debugreg.h.
1700
1701         * sysdeps/unix/sysv/linux/s390/Dist: Add new/route.h.
1702
1703         * sysdeps/unix/sysv/linux/ia64/Dist: Add dl-brk.S and sys/user.h.
1704
1705         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/user.h.
1706
1707         * sysdeps/unix/sysv/linux/Dist: Add readahead.c.
1708
1709         * sysdeps/mach/hurd/alpha/Dist: New file.
1710
1711         * sysdeps/arm/Dist: Add bits/link.h.
1712
1713         * sunrpc/Makefile: Distribute thrsvc.
1714
1715         * stdio-common/Makefile: Remove more left-overs from old stdio.
1716
1717         * include/linewrap.h: Removed.
1718
1719         * libio/bug-mmap-fflush.c: Rewrite to not touch source directory.
1720
1721         * intl/Makefile (distribute): Add plural-eval.c.
1722
1723 2002-08-27  Roland McGrath  <roland@redhat.com>
1724
1725         * manual/sysinfo.texi (Mount Information): Correct file name to macro
1726         assocations for _PATH_MNTTAB, MNTTAB, _PATH_MOUNTED, MOUNTED.
1727         Say mtab is in either /var/run or /etc.
1728
1729 2002-08-26  Roland McGrath  <roland@redhat.com>
1730
1731         * manual/errno.texi (Error Codes): Added ECANCELED (118 for Hurd).
1732         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
1733
1734         * sysdeps/gnu/Versions: New file.
1735         * sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.1): Remove
1736         _sys_errlist; sys_errlist; _sys_nerr; sys_nerr; from here.
1737         * sysdeps/gnu/Makefile ($(..)sysdeps/gnu/errlist-compat.c): New target.
1738         ($(objpfx)errlist.d): Depend on $(..)sysdeps/gnu/errlist-compat.c.
1739         * sysdeps/gnu/errlist.awk: Make output define _sys_errlist_internal
1740         and _sys_nerr_internal instead of anything else.  Make it include
1741         "errlist-compat.c" if [!NOT_IN_libc && !ERRLIST_NO_COMPAT].
1742         Make it emit some asm magic if [EMIT_ERR_MAX].
1743         * sysdeps/gnu/errlist.c: Regenerated.
1744         * sysdeps/gnu/errlist-compat.awk: New file.
1745         * sysdeps/gnu/errlist-compat.c: New file (generated).
1746         * sysdeps/mach/hurd/errlist.c (ERRLIST_NO_COMPAT): New macro.
1747         (_sys_errlist_internal): Define this as a macro for _hurd_errlist.
1748         (_sys_nerr_internal): Define this is a macro for _hurd_nerr.
1749         (SYS_ERRLIST, SYS_NERR): Macros removed.
1750         (sys_nerr, _sys_nerr): Remove these weak aliases.
1751         * sysdeps/unix/sysv/linux/errlist.c: File removed.
1752         * sysdeps/unix/sysv/linux/errlist.h: File removed.
1753         * sysdeps/unix/sysv/linux/arm/errlist.c: File removed.
1754
1755         * include/libc-symbols.h (declare_symbol): New macro.
1756         * config.h.in (ASM_TYPE_DIRECTIVE_PREFIX): New #undef.
1757         * configure.in: New check to define it.
1758         * configure: Regenerated.
1759
1760 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
1761
1762         * stdio-common/Makefile (headers): Remove bits/stdio_lim.h.  This
1763         file isn't distributed.  Add special rules to install bits/stdio_lim.h.
1764
1765         * Make-dist: Remove traces of old stdio.
1766         * Makeconfig: Likewise.
1767
1768         * locale/Makefile (localedef-aux): New variable.  Only md5
1769         assigned to it.  These files are not ddistributed in this directory.
1770
1771         * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
1772         * sysdeps/unix/sysv/linux/s390/s390-64/Dist: Remove sys/procfs.h.
1773         * sysdeps/unix/sysv/linux/s390/s390-32/Dist: Likewise.
1774
1775         * sysdeps/unix/sysv/linux/Dist: Remove sys/sendfile.h.
1776
1777         * nss/getXXbyYY_r.c (REENTRANT_NAME): If no service is available
1778         set h_errno to NO_RECOVERY [PR libc/4360].
1779
1780 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
1781
1782         * libio/Makefile (tests): Add bug-fopena+.
1783         * libio/bug-fopena+.c: New file.
1784         * libio/fileops.c (_IO_file_open): Only set file pointer to end of the
1785         file for _IO_IS_APPENDING if file isn't opened for reading, too.
1786
1787         * stdio-common/tst-swprintf.c (main): Add casts to avoid warnings.
1788
1789         * locale/xlocale.c: Fix the last change.  The variable still has
1790         to end in _data.
1791         * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
1792         (__libc_tsd_set): Add _data prefix to variable name.
1793
1794 2002-08-26  Roland McGrath  <roland@redhat.com>
1795
1796         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Replace
1797         macro with inline function.
1798         (sigset_get_old_mask): Likewise.
1799         * sysdeps/posix/sigblock.c (__sigblock): Update callers.
1800         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
1801         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1802         * sysdeps/posix/sigvec.c (__sigvec, sigvec_wrapper_handler): Likewise.
1803         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h
1804         (sigset_set_old_mask, sigset_get_old_mask): Make these macros return
1805         values.
1806         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h: Likewise.
1807         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h: Likewise.
1808
1809 2002-07-06  Bruno Haible  <bruno@clisp.org>
1810
1811         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask,
1812         sigset_get_old_mask): Make it work with larger sigset_t.
1813         * sysdeps/posix/sigblock.c (__sigblock): Use those macros.
1814         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
1815         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1816
1817 2002-08-26  Roland McGrath  <roland@redhat.com>
1818
1819         * time/sys/time.h [__USE_BSD] (lutimes, futimes): Declare them.
1820         * manual/filesys.texi (File Times): Document lutimes and futimes.
1821         * misc/Makefile (routines): Add them.
1822         * misc/Versions (libc: GLIBC_2.3): Likewise.
1823         * sysdeps/generic/lutimes.c: New file.
1824         * sysdeps/generic/futimes.c: New file.
1825         * sysdeps/mach/hurd/lutimes.c: New file.
1826         * sysdeps/mach/hurd/futimes.c: New file.
1827
1828         * manual/filesys.texi (File Times): Add explicit note about null
1829         pointer argument to utimes.
1830
1831 2002-08-26  Roland McGrath  <roland@frob.com>
1832
1833         * sysdeps/mach/hurd/ifreq.h (__if_freereq): Add missing semicolon.
1834         (__ifreq): Add a cast.  Remove an unused variable.
1835
1836         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
1837         _HURD_THREADVAR_LOCALE.
1838
1839 2002-08-26  Jakub Jelinek  <jakub@redhat.com>
1840
1841         * posix/regexec.c (re_search_stub): Return correct match length
1842         if start != 0.
1843         * posix/bug-regex10.c: New test.
1844         * posix/Makefile (tests): Add bug-regex10.
1845
1846 2002-08-26  Brian Youmans  <3diff@gnu.org>
1847
1848         * COPYING.LIB: Replaced with fresh copy from
1849         ftp://ftp.gnu.org/gnu/Licenses/COPYING.LIB-2.1;
1850         suggested copying permission notice now says version 2.1 instead
1851         of version 2.
1852
1853         * crypt/crypt.c: Changed copying permission notice to Lesser GPL
1854         from Library GPL.
1855         * crypt/crypt_util.c: Likewise.
1856         * crypt/ufc.c: Likewise.
1857         * elf/dl-conflict.c: Likewise.
1858         * elf/dl-iteratephdr.c: Likewise.
1859         * iconv/iconvconfig.h: Likewise.
1860         * malloc/arena.c: Likewise.
1861         * malloc/hooks.c: Likewise.
1862         * malloc/malloc.c: Likewise.
1863         * posix/glob/Makefile.ami: Likewise.
1864         * posix/glob/Makefile.in: Likewise.
1865         * stdlib/gmp-impl.h: Likewise.
1866         * stdlib/gmp.h: Likewise.
1867         * sysdeps/generic/dl-iteratephdr-static.c: Likewise.
1868         * sysdeps/generic/strnlen.c: Likewise.
1869         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
1870         * sysdeps/mach/hurd/recvmsg.c: Likewise.
1871         * sysdeps/mach/hurd/sendmsg.c: Likewise.
1872         * sysdeps/mach/hurd/spawni.c: Likewise.
1873         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
1874         * sysdeps/mach/powerpc/sysdep.h: Likewise.
1875         * sysdeps/mach/powerpc/thread_state.h: Likewise.
1876         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
1877         * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: Likewise.
1878         * sysdeps/x86_64/gmp-mparam.h: Likewise.
1879
1880         * sysdeps/ieee754/dbl-64/MathLib.h: Corrected version number in
1881         Lesser GPL copying permission notice from 2 to 2.1.
1882         * sysdeps/ieee754/dbl-64/asincos.tbl: Likewise.
1883         * sysdeps/ieee754/dbl-64/atnat.h: Likewise.
1884         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
1885         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
1886         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
1887         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
1888         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
1889         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
1890         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
1891         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
1892         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
1893         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
1894         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
1895         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
1896         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
1897         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
1898         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
1899         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
1900         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
1901         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
1902         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
1903         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
1904         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
1905         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
1906         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
1907         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
1908         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
1909         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
1910         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
1911         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
1912         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
1913         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
1914         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
1915         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
1916         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
1917         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
1918         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1919         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
1920         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
1921         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
1922         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
1923         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
1924         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
1925         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
1926         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
1927         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
1928         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
1929         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
1930         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
1931         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
1932         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
1933         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
1934         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
1935         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
1936         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
1937
1938         * sysdeps/ieee754/flt-32/e_asinf.c: Added copyright notice for Stephen
1939         Moshier and Lesser GPL copying permission notice, per license from
1940         Moshier.
1941         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
1942         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
1943         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
1944         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
1945         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
1946         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
1947         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
1948         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
1949         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
1950         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
1951         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
1952         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
1953         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
1954         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
1955
1956         * sysdeps/ieee754/ldbl-128/e_j0l.c: Added Lesser GPL copying permission
1957         notice, per license from copyright holder Stephen Moshier.
1958         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
1959         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
1960         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
1961         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
1962         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
1963         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
1964         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
1965         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
1966         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
1967
1968 2002-08-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1969
1970         * sysdeps/sh/Makefile (sysdeps_routines): Add divdi3 in csu dir.
1971         (shared-only-routines): Likewise.
1972
1973 2002-08-26  Roland McGrath  <roland@redhat.com>
1974
1975         * locale/programs/ld-ctype.c (ctype_read): When given a repertoire
1976         name of "", store a null pointer instead.
1977
1978         * configure.in (elf): Set to yes for freebsd*, netbsd*.
1979         * configure: Regenerated.
1980
1981         * locale/xlocale.c [! (USE_TLS && HAVE___THREAD)] (__libc_tsd_LOCALE):
1982         Initialize this instead of __libc_tsd_LOCALE_data.
1983
1984         * sysdeps/unix/grantpt.c (pts_name): Convert ENOTTY return from
1985         ptsname_r to EINVAL.
1986
1987         * sysdeps/generic/ptsname.c (__ptsname_r): Return ENOSYS instead of 0.
1988
1989         * rt/Makefile: Revert last change, it was inappropriate to presume aio
1990         implementations depend on pthreads.
1991         * rt/tst-aio.c (do_test): Exit happy if first failure is ENOSYS.
1992         * rt/tst-aio64.c (do_test): Likewise.
1993         * rt/tst-aio2.c (do_test): Likewise.
1994         * rt/tst-aio3.c (do_test): Likewise.
1995         * rt/tst-aio4.c (do_test): Likewise.
1996         * rt/tst-aio5.c (do_test): Likewise.
1997         * rt/tst-aio6.c (do_test): Likewise.
1998         * rt/tst-aio7.c (do_test): Likewise.
1999
2000         * sysdeps/generic/bits/libc-lock.h (__libc_setspecific): Use a cast to
2001         void so as to avoid compiler warnings.
2002
2003         * libio/oldstdfiles.c [! _IO_MTSAFE_IO] (DEF_STDFILE): Don't define
2004         _IO_wide_data_FD, which is never used here.
2005
2006         * libio/iofread.c
2007         [! _IO_MTSAFE_IO] (fread_unlocked): Add libc_hidden_ver defn.
2008         * libio/iofputs.c [! _IO_MTSAFE_IO] (fputs_unlocked): Likewise.
2009         * libio/iofgets.c [! _IO_MTSAFE_IO] (fgets_unlocked): Likewise.
2010
2011         * include/resolv.h [! _LIBC_REENTRANT] (_res): #undef it before decl.
2012         * include/netdb.h [! _LIBC_REENTRANT] (h_errno): Declare normal extern.
2013
2014         * misc/syslog.c (openlog): Conditionalize locking on [_LIBC_REENTRANT].
2015         (closelog): Likewise.
2016
2017 2002-07-06  Bruno Haible  <bruno@clisp.org>
2018
2019         * sysdeps/alpha/fpu/fpu_control.h: Comment fix.
2020
2021         * sysdeps/unix/sysv/linux/alpha/pipe.S: Moved to ...
2022         * sysdeps/unix/alpha/pipe.S: ... here.
2023         * sysdeps/unix/bsd/osf/alpha/pipe.S: File removed.
2024
2025         * sysdeps/unix/i386/brk.S: Rename local label to '.Lhere' in ELF.
2026
2027         * sysdeps/unix/i386/brk.S: Add PSEUDO_END invocation.
2028         * sysdeps/unix/i386/fork.S: Likewise.
2029         * sysdeps/unix/i386/pipe.S: Likewise.
2030         * sysdeps/unix/i386/wait.S: Likewise.
2031
2032         * sysdeps/unix/fork.S: Fix PSEUDO_END argument.
2033         * sysdeps/unix/arm/fork.S: Likewise.
2034
2035         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Swap DO_CALL
2036         arguments.
2037         (DO_CALL): Swap argument order.
2038         * sysdeps/unix/sysv/linux/hppa/sysdep.h (PSEUDO): Swap DO_CALL
2039         arguments.
2040         (DO_CALL): Swap argument order.
2041         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Swap DO_CALL
2042         arguments.
2043         (DO_CALL): Swap argument order.
2044         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO): Swap DO_CALL
2045         arguments.
2046         (DO_CALL): Swap argument order.
2047         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO): Swap DO_CALL
2048         arguments.
2049         (DO_CALL): Swap argument order.
2050         * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Swap DO_CALL
2051         arguments.
2052         (DO_CALL): Swap argument order.
2053         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Swap DO_CALL
2054         arguments.
2055         (DO_CALL): Swap argument order.
2056
2057         * sysdeps/i386/sysdep.h (PSEUDO): Fix syntax error.
2058         (L): Define right for ELF.
2059         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Remove definition.
2060         Now defined in sysdeps/i386/sysdep.h.
2061
2062         * sysdeps/posix/readv.c: Ansify function definition.
2063         * sysdeps/posix/writev.c: Likewise.
2064
2065         * stdio-common/tst-fseek.c (main): Don't assume that off_t and size_t
2066         have the same size. Avoid direct cast from size_t to off_t.
2067
2068         * login/tst-utmp.c (simulate_login): Don't leave garbage after the
2069         nul byte in entry[n].ut_user.
2070         (simulate_logout): Likewise.
2071
2072         * login/programs/utmpdump.c (print_entry): Test _HAVE_UT_TYPE,
2073         _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST, instead of assuming the
2074         existence of corresponding members of 'struct utmp'.
2075         * login/tst-utmp.c: Trivialize the test if testing 'struct utmp' and
2076         !_HAVE_UT_TYPE.
2077
2078         * sysdeps/unix/opendir.c (__opendir): If st_blksize is 0 or too small,
2079         allocate a buffer of at least BUFSIZ bytes, not just of
2080         sizeof (struct dirent).
2081
2082         * sysdeps/generic/glob.c: Include <limits.h>.
2083         (NAME_MAX): Define a fallback.
2084         (glob_in_dir): Allocate enough room for a 'struct dirent64' on the
2085         stack.
2086         * posix/tst-dir.c: Include <stddef.h>, for offsetof.
2087         (main): Allocate enough room for a 'struct dirent64' on the stack.
2088         * posix/tst-gnuglob.c (my_DIR): Allocate enough room for a
2089         'struct dirent'.
2090
2091         * sysdeps/unix/sysv/linux/init-first.c: Don't include
2092         kernel-features.h.
2093
2094         * inet/htontest.c: Include <sys/types.h>.
2095
2096         * sysdeps/generic/sys/sysinfo.h: Surround with __{BEGIN,END}_DECLS.
2097
2098         * include/sys/sysctl.h: Comment fix.
2099
2100         * elf/rtld.c (_rtld_global) [! _LIBC_REENTRANT]: Don't initialize
2101         _dl_load_lock.
2102         * libio/fileno.c (fileno_unlocked): Define regardless of _IO_MTSAFE_IO.
2103
2104         * sysdeps/unix/bsd/bsd4.4/syscalls.list (__sigaltstack): New alias.
2105
2106         * sysdeps/unix/inet/syscalls.list (__connect_internal): New alias.
2107         (__getpeername): New alias.
2108         (__getsockname): New alias.
2109         (__socket): New alias.
2110
2111         * sysdeps/unix/common/syscalls.list (getpgid): Remove.
2112
2113         * sysdeps/unix/syscalls.list (__chown_internal): New alias.
2114         (__fcntl_internal): New alias.
2115         (__profil): New alias.
2116
2117 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
2118
2119         * nscd/hstcache.c (cache_addhst): Add new parameter saying whether
2120         entry was for getaddr* lookup or not.  Add only matching cache
2121         entry.  Change all callers [PR libc/4317].
2122
2123         * libio/wfileops.c (_IO_wfile_seekoff): Set fp->_offset after
2124         finding the read position [PR libc/4265].
2125         * libio/Makefile (tests): Add bug-rewind2.
2126         * libio/bug-rewind2.c: New file.
2127
2128         * libio/bug-rewind.c: Fix creation of temp file.
2129
2130 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2131
2132         * nss/getXXbyYY_r.c (REENTRANT_NAME): Return ENOENT if status is
2133         neither SUCCESS nor TRYAGAIN [PR libc/4259].
2134         * nss/nss_files/files-XXX.c (internal_getent): Don't set *errnop
2135         to ENOENT if no entry is found.
2136         * nis/nss_compat/compat-grp.c: Don't set errno in case of lookup
2137         failure.
2138         * nis/nss_compat/compat-initgroups.c: Likewise.
2139         * nis/nss_compat/compat-pwd.c: Likewise.
2140         * nis/nss_compat/compat-spwd.c: Likewise.
2141         * nis/nss_nis/nis-alias.c: Likewise.
2142         * nis/nss_nis/nis-ethers.c: Likewise.
2143         * nis/nss_nis/nis-grp.c: Likewise.
2144         * nis/nss_nis/nis-hosts.c: Likewise.
2145         * nis/nss_nis/nis-initgroups.c: Likewise.
2146         * nis/nss_nis/nis-netgrp.c: Likewise.
2147         * nis/nss_nis/nis-network.c: Likewise.
2148         * nis/nss_nis/nis-proto.c: Likewise.
2149         * nis/nss_nis/nis-publickey.c: Likewise.
2150         * nis/nss_nis/nis-pwd.c: Likewise.
2151         * nis/nss_nis/nis-rpc.c: Likewise.
2152         * nis/nss_nis/nis-service.c: Likewise.
2153         * nis/nss_nis/nis-spwd.c: Likewise.
2154         * resolv/nss_dns/dns-host.c: Likewise.
2155         * resolv/nss_dns/dns-network.c: Likewise.
2156         * nis/nss_nisplus/nisplus-alias.c: Save errno around NIS calls.
2157         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
2158         * nis/nss_nisplus/nisplus-grp.c: Likewise.
2159         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
2160         * nis/nss_nisplus/nisplus-network.c: Likewise.
2161         * nis/nss_nisplus/nisplus-proto.c: Likewise.
2162         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
2163         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
2164         * nis/nss_nisplus/nisplus-service.c: Likewise.
2165         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
2166         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Preserve errno value.
2167         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
2168         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Likewise.
2169         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
2170
2171         * sysdeps/unix/sysv/linux/i386/sigaction.c: Avoid warnings by
2172         declaring __restore and __restore_rt as hidden (if possible).
2173
2174 2002-08-25  Roland McGrath  <roland@redhat.com>
2175
2176         * manual/llio.texi (Access Modes): Fix typos in O_READ/O_WRITE defns.
2177
2178         * sysdeps/generic/utmp_file.c (LOCK_FILE): Check for error from fcntl.
2179         (getutent_r_file, internal_getut_r): Updated all callers.
2180         (getutline_r_file, pututline_file, updwtmp_file): Likewise.
2181
2182 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2183
2184         * locale/programs/locale.c: Don't print aliases for non-existing
2185         locales for 'locale -a'.
2186         Patch by Noah Levitt <nlevitt@columbia.edu> [PR libc/4166].
2187
2188 2002-07-19  H.J. Lu  <hjl@gnu.org>
2189
2190         * sysdeps/unix/sysv/linux/mips/bits/msq.h: New file.
2191
2192 2002-07-16  H.J. Lu  <hjl@gnu.org>
2193
2194         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2195         sys/personality.h.
2196         * sysdeps/unix/sysv/linux/sys/personality.h: New file.
2197
2198 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2199
2200         * elf/tst-tlsmod1.c (in_dso): Make sure the TLS variable access is
2201         not moved ahead of the fputs call.
2202         * elf/tst-tlsmod2.c (in_dso): Likewise.
2203         * elf/tst-tlsmod3.c (in_dso2): Likewise.
2204         * elf/tst-tlsmod4.c (in_dso): Likewise.
2205
2206 2002-08-25  Andreas Schwab  <schwab@suse.de>
2207
2208         * elf/dl-reloc.c (_dl_reloc_bad_type): Nul-terminate message.
2209
2210 2002-08-25  Roland McGrath  <roland@redhat.com>
2211
2212         * sysdeps/generic/utmp_file.c (UNLOCK_FILE): Clear alarm before
2213         resetting handler, to avoid the possibility of a spurious SIGALRM
2214         delivered to the user's handler.
2215         Reported by Amit D. Chaudhary <amitc@brocade.com>,
2216
2217         * misc/Makefile (CFLAGS-init-misc.c): Variable removed.  It served to
2218         set -fkeep-inline-functions, which is not needed for the current file.
2219
2220         * sysdeps/generic/ldsodefs.h: Add attribute_hidden to *_internal decls.
2221         (_dl_setup_hash): Add attribute_hidden.
2222         (_dl_sysdep_start, _dl_sysdep_start_cleanup): Likewise.
2223         (_dl_sysdep_read_whole_file, _dl_dprintf): Likewise.
2224         (_dl_new_object, _dl_map_object_deps): Likewise.
2225         (_dl_map_object_deps_internal): Remove decl.
2226         * elf/rtld.c (__mempcpy, _exit): Redeclare locally as hidden.
2227
2228         * sysdeps/i386/dl-machine.h [PI_STATIC_AND_HIDDEN
2229         && HAVE_VISIBILITY_ATTRIBUTE && HAVE_HIDDEN
2230         && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]
2231         (elf_machine_dynamic, elf_machine_load_address): Rewritten without asm,
2232         instead relying on the compiler to produce only GOTOFF variable refs.
2233
2234 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2235
2236         * elf/dl-load.c: Fix typo in comment.  Add a few more __builtin_expect.
2237
2238         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Define as static
2239         inline to avoid defining it in every file which includes this header.
2240
2241         * elf/rtld.c: Also test for HAVE_VISIBILITY_ATTRIBUTE before
2242         defining DONT_USE_BOOTSTRAP_MAP.
2243
2244         * libio/tst-freopen.c (main): Use correct formats for __LINE__.
2245         * libio/tst-mmap-setvbuf.c (main): Likewise.
2246         * libio/tst-widetext.c (main): Likewise.
2247
2248         * libio/tst-mmap-eofsync.c (do_test): Use correct format in error
2249         message.
2250         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
2251         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
2252
2253         * sysdeps/i386/elf/configure.in: Unconditionally define
2254         PI_STATIC_AND_HIDDEN.
2255         * elf/rtld.c (DONT_USE_BOOTSTRAP_MAP): Define only if
2256         PI_STATIC_AND_HIDDEN is defined as well.
2257         * config.h.in: Add PI_STATIC_AND_HIDDEN entry.
2258
2259 2002-08-24  Ulrich Drepper  <drepper@redhat.com>
2260
2261         * sysdeps/ia64/bzero.S: Define __bzero as well.
2262
2263         * locale/programs/charmap.c (charmap_new_char): Don't use
2264         ULONG_MAX as maximum UCS4 value.
2265
2266         * sysdeps/unix/sysv/linux/ia64/sys/user.h: New file.
2267
2268         * sysdeps/generic/strtol.c: We don't need the isascii test in glibc.
2269
2270         * malloc/hooks.c (public_sET_STATe): use size_t as type for i.
2271         * malloc/malloc.c (mALLINFo): Likewise.
2272
2273         * libio/wstrops.c (_IO_wstr_pbackfail): Use WEOF in comparison.
2274
2275         * libio/wfileops.c (_IO_wfile_overflow): Use EOF not WEOF when
2276         examining result of _IO_do_flush call.
2277
2278         * stdio-common/vfprintf.c (vfprintf): Use correct type in va_arg.
2279         Use prec not spec when sizing buffers.
2280
2281         * catgets/open_catalog.c (__open_catalog): Add casts to avoid warnings.
2282         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
2283         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
2284         * stdio-common/vfscanf.c (inchar): Likewise.
2285         * misc/efgcvt_r.c (fcvt_r): Likewise.
2286         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
2287         * elf/readlib.c (process_file): Likewise.
2288         * elf/sprof.c (load_profdata): Likewise.
2289         * sysdeps/ia64/hp-timing.h (HP_TIMING_PRINT): Likewise.
2290         * locale/programs/linereader.c (get_toplvl_escape): Likewise.
2291         * locale/programs/charmap.c (charmap_read): Likewise.
2292         * libio/fileops.c: Likewise.
2293         * libio/fmemopen.c: Likewise.
2294         * stdlib/strtod.c: Likewise.
2295         * elf/dl-load.c: Likewise.
2296         * iconv/iconvconfig.c: Likewise.
2297         * iconv/iconv_prog.c (process_block): Likewise.
2298         * elf/rtld.c (dl_main): Likewise.
2299
2300         * sysdeps/unix/sysv/linux/ia64/Makefile: Define _ASM_IA64_CURRENT_H
2301         macro to calm down the compiler.
2302
2303         * iconv/gconv_cache.c (__gconv_load_cache): Add cast to avoid warning.
2304
2305         * sysdeps/ia64/elf/initfini.c: Don't use newlines embedded in string.
2306
2307         * sysdeps/unix/sysv/linux/i386/sysdep.S: Update comment regarding
2308         placement of errno definition.
2309         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
2310         * sysdeps/unix/sysv/linux/mips/sysdep.S: Likewise.
2311         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
2312         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
2313         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
2314
2315         * resolv/nss_dns/dns-host.c (MAXPACKET): Increase minimum value
2316         from 1024 to 65536, to avoid buffer overrun.
2317
2318 2002-08-16  Paul Eggert  <eggert@twinsun.com>
2319
2320         * resolv/gethnamaddr.c (MAXPACKET): Increase minimum value
2321         from 1024 to 65536, to avoid buffer overrun.
2322         * resolv/res_query.c (MAXPACKET): Likewise.
2323
2324 2002-08-24  Andreas Jaeger  <aj@suse.de>
2325
2326         * sysdeps/unix/sysv/linux/i386/Versions: Remove *xattr syscalls.
2327
2328 2002-08-23  Ulrich Drepper  <drepper@redhat.com>
2329
2330         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Define and initialize
2331         two52 locally.
2332         (log2): Likewise.
2333         * sysdeps/ieee754/dbl-64/upow.h: Remove definition of two52.
2334         Patch by Simon Gee <simong@agile.tv>.
2335
2336         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf):
2337         Prefer reading /proc/stat since it is more uniform across
2338         architectures.
2339
2340         * manual/texinfo.tex: Update to latest official version.
2341
2342         * sysvipc/sys/shm.h: Remove SHMLBA definition.
2343         * sysdeps/generic/bits/shm.h: Define SHMLBA here.
2344         * sysdeps/gnu/bits/shm.h: Likewise.
2345         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2346         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2347         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
2348         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2349         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2350         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2351         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2352         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Define SHMLBA to 2^20
2353         since this is what the kernel says.
2354
2355         * misc/sys/xattr.h: Include <sys/types.h> instead of <stddef.h>
2356         since ssize_t is needed as well.  Replace const with __const.
2357
2358 2002-08-23  Roland McGrath  <roland@redhat.com>
2359
2360         * malloc/hooks.c (__malloc_initialize_hook, __free_hook,
2361         __malloc_hook, __realloc_hook, __memalign_hook,
2362         __after_morecore_hook): Variable definitions moved to ...
2363         * malloc/malloc.c: ... here, so as to be before all references.
2364
2365         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Add a dummy
2366         global variable reference in an unused asm parameter, to ensure the
2367         compiler has set up the GOT register before we use it.
2368
2369         * malloc/hooks.c: Move variable definitions ahead of uses.
2370         * libio/fileops.c: Move versioned_symbol defns ahead of _IO_jump_t
2371         initializers that make reference to variables they define.
2372
2373 2002-08-23  Andreas Jaeger  <aj@suse.de>
2374
2375         * locale/loadarchive.c: Include <stdlib.h> for prototypes of
2376         alloca, free, qsort.
2377
2378         * dlfcn/bug-dlsym1-lib1.c (foo): Add prototype to avoid warning.
2379
2380         * sysdeps/ieee754/flt-32/e_jnf.c: Remove unused variable.
2381         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2382
2383         * misc/sys/xattr.h: New file, contributed by Christoph Hellwig
2384         <hch@lst.de>.
2385         * sysdeps/generic/fgetxattr.c: New file.
2386         * sysdeps/generic/flistxattr.c: New file.
2387         * sysdeps/generic/fremovexattr.c: New file.
2388         * sysdeps/generic/fsetxattr.c: New file.
2389         * sysdeps/generic/getxattr.c: New file.
2390         * sysdeps/generic/listxattr.c: New file.
2391         * sysdeps/generic/lgetxattr.c: New file.
2392         * sysdeps/generic/llistxattr.c: New file.
2393         * sysdeps/generic/lremovexattr.c: New file.
2394         * sysdeps/generic/lsetxattr.c: New file.
2395         * sysdeps/generic/removexattr.c: New file.
2396         * sysdeps/generic/setxattr.c: New file.
2397         * misc/Makefile (headers): Add sys/xattr.h.
2398         (routines): Add *xattr calls.
2399         * misc/Versions: Add *xattr calls with version 2.3.
2400         * sysdeps/unix/sysv/linux/m68k/Versions: Remove *xattr syscalls.
2401         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2402         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2403         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2404         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2405         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2406         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2407         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2408
2409 2002-08-22  Steven Munroe  <sjmunroe@us.ibm.com>
2410
2411         * sysdeps/powerpc/elf/libc-start.c
2412         (__cache_line_size): Declare.
2413         (__aux_init_cache): New function.
2414         (__libc_start_main): Change type of `auxvec' parameter to
2415         `ElfW(auxv_t) *'.  Correct walking of aux vector.  Call
2416         __aux_init_cache.
2417         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
2418         (__cache_line_size): Declare.
2419         (__aux_init_cache): New function.
2420         (DL_PLATFORM_INIT): Define.
2421         * sysdeps/powerpc/memset.S: Define __cache_line_size and use its
2422         value to select the correct stride for dcbz.
2423
2424 2002-08-22  Andreas Jaeger  <aj@suse.de>
2425
2426         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments of
2427         shmat.
2428
2429 2002-08-22  Roland McGrath  <roland@redhat.com>
2430
2431         * locale/loadarchive.c (_nl_load_locale_from_archive): Check max file
2432         position indicated by locrectab against file bounds before rounding to
2433         page size.  In mapping loop, always set TO before breaking out of
2434         contiguous range coalescing loop.
2435
2436         * locale/loadarchive.c (_nl_load_locale_from_archive): Use MAP_PRIVATE
2437         (or MAP_COPY if available) instead of MAP_SHARED.
2438
2439         * scripts/firstversions.awk: When encountering a version newer than
2440         the specified earliest version, be sure to emit the specified earliest
2441         version first if any renaming of an older version to that has been.
2442
2443 2002-08-21  Roland McGrath  <roland@redhat.com>
2444
2445         * configure.in: Make GCC version check require 3.[2-9]* and no others.
2446         * manual/install.texi (Tools for Compilation): Say 3.2 is required.
2447         (Configuring and compiling): Don't mention older GCC versions any more.
2448         * INSTALL: Regenerated.
2449
2450         * manual/install.texi (Configuring and compiling, Installation,
2451         Running make install, Linux): Linux -> GNU/Linux where appropriate.
2452
2453         * elf/rtld.c (_dl_start_final): Move defn before _dl_start so it can
2454         be inlined.  Declare it with always_inline if [DONT_USE_BOOTSTRAP_MAP]
2455         and with noinline otherwise.  Remove hack alloca use to prevent
2456         inlining, we can ask for it explicitly nowadays.
2457
2458         * dlfcn/bug-dlsym1.c: New file.
2459         * dlfcn/bug-dlsym1-lib1.c, dlfcn/bug-dlsym1-lib2.c: New files.
2460         * dlfcn/Makefile (distribute): Add them.
2461         (tests): Add bug-dlsym1 here.
2462         (modules-names): Add bug-dlsym1-lib1 and bug-dlsym1-lib2 here.
2463         ($(objpfx)bug-dlsym1, $(objpfx)bug-dlsym1.out): New targets.
2464         ($(objpfx)bug-dlsym1-lib1.so, $(objpfx)bug-dlsym1-lib2.so): Likewise.
2465
2466 2002-08-21  Ulrich Drepper  <drepper@redhat.com>
2467
2468         * elf/rtld.c (start_time): New global variable.  Moved from _dl_start.
2469         (DONT_USE_BOOTSTRAP_MAP): Define if we can use non-exported symbols
2470         before relocation.
2471         (_dl_start): Don't use local bootstrap_map variable if
2472         DONT_USE_BOOTSTRAP_MAP is defined.  Use GL(dl_rtld_map).  Don't
2473         pass bootstrap_map to _dl_start_final in this case either.  Don't
2474         pass start_time to _dl_start_final ever.
2475         (_dl_start_final): Don't copy bootstrap_map if DONT_USE_BOOTSTRAP_MAP.
2476
2477         * elf/dl-deps.c (_dl_map_object_deps): Revert patch from 2002-05-28.
2478         This cripples the scope lists necessary to search for symbols in
2479         dependencies which are not in the global scope.
2480
2481         * include/setjmp.h (__libc_longjmp): Add declaration.
2482
2483 2002-08-21  Andreas Jaeger  <aj@suse.de>
2484
2485         * sysdeps/x86_64/_mcount.S: Fix assembler.
2486
2487         * sysdeps/unix/sysv/linux/x86_64/Makefile: Generate bits/syscall.h
2488         with biarch support.
2489
2490 2002-08-21  Andreas Jaeger  <aj@suse.de>
2491
2492         * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Fix it.
2493
2494         * sysdeps/x86_64/Makefile (sysdep_routines): Add _mcount.
2495
2496         * sysdeps/x86_64/machine-gmon.h: New file.
2497         * sysdeps/x86_64/_mcount.S: New file.
2498
2499 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
2500
2501         * elf/rtld.c (_dl_start): Pass zero to TLS_INIT_TP.  Set
2502         bootstrap_map.l_tls_tp_initialized to 1 if TLS_INIT_TP was called.
2503         (_dl_start_final): Copy l_tls_tp_initialized to GL(dl_rtld_map).
2504         (dl_main): If HAVE___THREAD is not defined pass l_tls_tp_initialized
2505         to TL_INIT_TP.  Otherwise pass 1.
2506         * include/link.h (struct link_map): Add l_tls_tp_initialized.
2507         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass 0 to TL_INIT_TP.
2508
2509 2002-08-15  Jakub Jelinek  <jakub@redhat.com>
2510
2511         * locale/programs/localedef.c (add_to_readlist): Error about
2512         circular dependencies only if the locale in question hasn't
2513         been finished.
2514         * locale/programs/linereader.c (get_string): Pass LC_CTYPE not
2515         CTYPE_LOCALE to load_locale.
2516         * locale/programs/locfile.c (locfile_read): Don't include
2517         unneeded but available locales in locale_mask.
2518
2519         * locale/programs/locarchive.c (enlarge_archive): If quiet, don't
2520         print any messages about enlarging archive.
2521
2522 2002-08-20  Brian Youmans  <3diff@gnu.org>
2523
2524         * manual/contrib.texi: Removed licenses, added acknowledgements
2525         for contributions by Intel, IBM, Craig Metz.
2526         * LICENSES: New file, contains the text of all non-FSF licenses in the
2527         distribution that require putting the notice in the accompanying
2528         documentation.
2529         * README.template, README: Mention LICENSES.
2530
2531         * sysdeps/mach/hurd/net/if_ppp.h: Replaced CMU license with a
2532         new one modelled on the modern BSD license, per recent letter
2533         of permission from CMU.
2534         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
2535
2536         * sysdeps/ieee754/dbl-64/MathLib.h: Changed the copyright holder
2537         from IBM to FSF, per the recent Software Letter.  Changed the
2538         distribution terms from GPL to LGPL.
2539
2540         * sysdeps/ieee754/dbl-64/asincos.tbl: Added FSF copyright and
2541         copying permission notice (Lesser GPL), per recent IBM Software Letter.
2542         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
2543         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
2544         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
2545         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
2546         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
2547         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
2548         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
2549         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
2550
2551         * sysdeps/ieee754/dbl-64/atnat.h: Changed the copyright holder
2552         from IBM to FSF, per the recent Software Letter.  Corrected the
2553         text of the copying permission notice to say Lesser GPL instead
2554         of GPL in warranty disclaimer paragraph.
2555         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
2556         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
2557         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
2558         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
2559         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
2560         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
2561         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
2562         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
2563         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
2564         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
2565         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
2566         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
2567         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
2568         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
2569         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
2570         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
2571         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
2572         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
2573         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
2574         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
2575         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
2576
2577         * sysdeps/ieee754/dbl-64/branred.c: Corrected the text of the copying
2578         permission notice to say Lesser GPL instead of GPL in warranty
2579         disclaimer paragraph.
2580         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2581         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2582         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2583         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2584         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2585         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2586         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2587         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2588         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2589         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2590         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2591         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2592         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2593         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2594         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2595         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2596         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2597         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2598         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2599         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2600         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2601         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2602         * sysdeps/ieee754/dbl-64/slowpow.c:  Likewise.
2603
2604 2002-08-20  Roland McGrath  <roland@redhat.com>
2605
2606         Fix ABI compatibility with libc compiled with old tools on powerpc.
2607         Changes contributed by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2608         and Jack Howarth <howarth@bromo.med.uc.edu>.
2609         * sysdeps/powerpc/Makefile [$(have-protected) = yes]
2610         (CPPFLAGS-divdi3.c, CPPFLAGS-libgcc-compat.S): New variables,
2611         pass -DHAVE_DOT_HIDDEN for these files.
2612         * sysdeps/powerpc/Versions (libc: GLIBC_2.0): Added __floatdidf,
2613         __floatdisf.
2614         * sysdeps/powerpc/divdi3.c: New file.
2615         * sysdeps/powerpc/libgcc-compat.S: New file, replacement for ...
2616         * sysdeps/powerpc/libgcc-compat.c: ... this, file removed.
2617
2618 2002-08-20  Jakub Jelinek  <jakub@redhat.com>
2619
2620         * locale/loadarchive.c (_nl_load_locale_from_archive): Handle
2621         partially overlapping mappings.  Remove unneeded (char *) casts.
2622         Never allow duplication of ranges in mapped areas.
2623
2624 2002-08-20  Roland McGrath  <roland@redhat.com>
2625
2626         * elf/Makefile ($(objpfx)ld.so): Separate commands in rule so errors
2627         can be detected by make.  Reported by H.J. Lu <hjl@gnu.org>.
2628
2629 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
2630
2631         * include/unistd.h: Don't hide _exit.
2632
2633         * elf/rtld.c (_dl_start): Pass extra argument 1 to TLS_INIT_TP.
2634         (dl_main): Pass extra argument 0 to TLS_INIT_TP.
2635         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass extra
2636         argument 1 to TLS_INIT_TP.
2637         * sysdeps/generic/tls.h (TLS_INIT_TP): Describe new parameter.
2638
2639         * sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit.
2640
2641         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_tls_static_info.
2642         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Move dtv
2643         memory allocation to...
2644         (allocate_dtv): ...here.  New function.
2645         (_dl_allocate_tls): Change to take parameter.  If parameter is non-NULL
2646         call allocate_dtv instead of _dl_allocate_tls_storage.
2647         (_dl_deallocate_tls): New parameter.  Deallocate TCB only if true.
2648         (_dl_get_tls_static_info): New function.
2649         * sysdeps/generic/ldsodefs.h: Adjust prototypes of _dl_allocate_tls
2650         and _dl_deallocate_tls.  Add prototype for _dl_get_tls_static_info.
2651
2652 2002-08-19  Ulrich Drepper  <drepper@redhat.com>
2653
2654         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return
2655         immediately if result == NULL.
2656
2657 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
2658
2659         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
2660
2661 2002-08-18  Roland McGrath  <roland@frob.com>
2662
2663         * sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split
2664         instead of __file_name_split.
2665         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
2666
2667         * sysdeps/mach/hurd/dl-sysdep.c
2668         [HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
2669         [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
2670
2671 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
2672
2673         * locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
2674         in change before last: MAX -> MIN.
2675
2676 2002-08-15  Roland McGrath  <roland@redhat.com>
2677
2678         * libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF
2679         if seek would go past it.
2680         (mmap_remap_check): If file position is at or past EOF after check,
2681         leave read pointers at EOF and don't seek.
2682
2683         * libio/tst-mmap-offend.c: New file.
2684         * libio/Makefile (tests): Add it.
2685
2686         * locale/loadarchive.c (_nl_load_locale_from_archive): Store strdup of
2687         the name as passed, rather than the name in the archive dictionary.
2688
2689 2002-08-15  Ulrich Drepper  <drepper@redhat.com>
2690
2691         * csu/Makefile: Define elide-routines.os not static-only-routines.
2692
2693         * include/sched.h (__clone): Add varargs at the end.
2694
2695         * elf/rtld.c (_dl_start): Allow TLS_INIT_TP to fail, and stop in that
2696         case.
2697         (TLS_INIT_HELPER): If defined, use it.
2698         * sysdeps/generic/libc-tls.c (TLS_INIT_HELPER): Likewise.
2699
2700 2002-08-15  Roland McGrath  <roland@redhat.com>
2701
2702         * elf/dl-load.c (lose): Remove [!SHARED] conditional from null check
2703         on L->l_prev; it can happen under rtld --verify too.
2704
2705         * locale/loadarchive.c (_nl_load_locale_from_archive): Don't read the
2706         header separately, just map an initial window of 2MB from the file
2707         and remap if that is not large enough to cover the whole header.
2708
2709 2002-08-15  Andreas Jaeger  <aj@suse.de>
2710
2711         * sysdeps/unix/sysv/linux/m68k/Versions: Add *xattr syscalls with
2712         version 2.3.
2713         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2714         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2715         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2716         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2717         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2718         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2719         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2720         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
2721         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
2722         Patch by Andreas Gruenbacher <agruen@suse.de>.
2723
2724         * sysdeps/unix/sysv/linux/syscalls.list: Add *xattr syscalls.
2725
2726 2002-08-14  Roland McGrath  <roland@redhat.com>
2727
2728         * locale/locarchive.h (struct locale_category_data): Give this name to
2729         the type of locale_data_t's elements.
2730         * locale/programs/locarchive.c (cmpcategorysize): New static function.
2731         (add_locale): Use that to sort the categories by size and put all
2732         those that fit into two pages into the LC_ALL block, instead of
2733         hard-coding it to do everything but LC_CTYPE and LC_COLLATE.
2734         (show_archive_content): Detect categories inside LC_ALL block
2735         directly, instead of hard-coding.
2736         (oldlocrecentcmp): Compare just on file locations used.
2737
2738 2002-08-14  Jakub Jelinek  <jakub@redhat.com>
2739
2740         * locale/programs/locarchive.c (struct oldlocrecent): New type.
2741         (oldlocrecentcmp): New function.
2742         (enlarge_archive): Re-add locales in the order they were added
2743         to the archive.
2744         (add_locale): Put all the small locale files together, if the small
2745         locale file block would occupy less pages if page size aligned, align
2746         it.
2747         (show_archive_content): Adjust for locale archives optimized for speed.
2748
2749 2002-08-14  Roland McGrath  <roland@frob.com>
2750
2751         * configure.in: Use "MISSING" as not-found value for MIG.
2752         * sysdeps/mach/configure.in: Fatal if mig not found.
2753         * configure, sysdeps/mach/configure: Regenerated.
2754
2755 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
2756
2757         * locale/loadarchive.c (archfname): Add missing slash.
2758
2759         * sysdeps/generic/strtold.c (__strtold_internal): Add libc_hidden_def.
2760         * wcsmbs/wcstold.c (__wcstold_internal): Add libc_hidden_def.
2761
2762 2002-08-12  Roland McGrath  <roland@redhat.com>
2763
2764         * include/sys/wait.h (__waitpid): Add libc_hidden_proto.
2765         * sysdeps/unix/sysv/sco3.2.4/waitpid.S: Add libc_hidden_def.
2766         * sysdeps/unix/sysv/sysv4/waitpid.c: Add libc_hidden_weak.
2767         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
2768         * sysdeps/unix/sysv/aix/waitpid.c: Likewise.
2769         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
2770         * sysdeps/generic/waitpid.c: Likewise.
2771
2772         * include/net/if.h: New file.  Use libc_hidden_proto
2773         for if_nametoindex and if_indextoname.
2774         * sysdeps/generic/if_index.c: Add libc_hidden_def.
2775         * sysdeps/mach/hurd/if_index.c: Likewise.
2776         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
2777
2778         * include/grp.h (setgroups): Add libc_hidden_proto.
2779         * sysdeps/generic/setgroups.c: Add libc_hidden_def.
2780         * sysdeps/mach/hurd/setgroups.c: Likewise.
2781         * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
2782         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
2783
2784 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
2785
2786         * include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
2787         * sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
2788         * sysdeps/generic/setegid.c (setegid): Likewise.
2789         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
2790         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
2791         * sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
2792         * sysdeps/unix/bsd/setegid.c (setegid): Likewise.
2793         * sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
2794         * sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
2795         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
2796         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
2797         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
2798         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
2799         * sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
2800         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
2801         Remove fallback if __ASSUME_SETRESUID_SYSCALL.
2802
2803         * include/sys/stat.h (__fxstat_internal, __fxstat64_internal,
2804         __lxstat_internal, __lxstat64_internal): Remove.
2805         (__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64):
2806         Add hidden_proto.
2807         * sysdeps/generic/fxstat.c (__fxstat): Add hidden_def.
2808         Remove INTDEF where present, remove #undef at the beginning.
2809         * sysdeps/generic/fxstat64.c (__fxstat64): Likewise.
2810         * sysdeps/generic/lxstat.c (__lxstat): Likewise.
2811         * sysdeps/generic/lxstat64.c (__lxstat64): Likewise.
2812         * sysdeps/generic/xstat.c (__xstat): Likewise.
2813         * sysdeps/generic/xstat64.c (__xstat64): Likewise.
2814         * sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise.
2815         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
2816         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
2817         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
2818         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
2819         * sysdeps/mach/hurd/xstat.c (__xstat): Likewise.
2820         * sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise.
2821         * sysdeps/unix/fxstat.c (__fxstat): Likewise.
2822         * sysdeps/unix/common/lxstat.c (__lxstat): Likewise.
2823         * sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise.
2824         * sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise.
2825         * sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise.
2826         * sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise.
2827         * sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise.
2828         * sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise.
2829         * sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise.
2830         * sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise.
2831         * sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise.
2832         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise.
2833         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise.
2834         * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise.
2835         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
2836         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
2837         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
2838         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
2839         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
2840         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
2841         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise.
2842         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
2843         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
2844         * sysdeps/unix/xstat.c (__xstat): Likewise.
2845
2846         * include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto.
2847         * sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def.
2848         * sysdeps/generic/fstatvfs.c (fstatvfs): Likewise.
2849         * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
2850         * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise.
2851         * sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise.
2852         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise.
2853
2854         * include/unistd.h (tcgetpgrp): Add libc_hidden_proto.
2855         * include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise.
2856         * sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def.
2857         * sysdeps/generic/tcsetattr.c (tcsetattr): Likewise.
2858         * sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise.
2859         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise.
2860         * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise.
2861         * sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed):
2862         Likewise.
2863         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
2864         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
2865         * sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise.
2866         * sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise.
2867         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
2868         * sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise.
2869         * sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise.
2870         * sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise.
2871
2872         * include/string.h (strcoll): Add libc_hidden_proto.
2873         * string/strcoll.c (strcoll): Add libc_hidden_def.
2874
2875         * misc/err.c (vwarn): Fix pasto in libc_hidden_def.
2876
2877 2002-08-11  Philip Blundell  <philb@gnu.org>
2878
2879         * sysdeps/arm/Makefile: New file.
2880
2881 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
2882
2883         * posix/regcomp.c (parse_reg_exp): If '|' is immediately followed
2884         by another '|', end of regex or enclosing ')', clear branch.
2885         * posix/bug-regex9.c: New test.
2886         * posix/Makefile (tests): Add bug-regex9.
2887
2888 2002-08-12  Roland McGrath  <roland@redhat.com>
2889
2890         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop
2891         start count condition, use TOTAL instead of variable that was never
2892         set.  Fix outer loop termination condition to TOTAL >= after update.
2893
2894         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize
2895         dl_tls_static_align and dl_tls_static_nelem.
2896
2897 2002-08-11  Roland McGrath  <roland@redhat.com>
2898
2899         * elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
2900         of the TLS macros, otherwise the compiler might not have initialized
2901         the PIC register yet when we use the PLT via asm.
2902         * elf/tst-tlsmod3.c (in_dso2): Likewise.
2903         * elf/tst-tlsmod2.c (in_dso): Likewise.
2904
2905         * sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!).
2906
2907         * sysdeps/i386/bits/byteswap.h (__bswap_16, __bswap_32, __bswap_64):
2908         Evaluate argument exactly once.  Remove __volatile__ from asm's.
2909
2910         * include/unistd.h: Use libc_hidden_proto for getdomainname
2911         and getlogin_r.
2912         * sysdeps/generic/getdomain.c: Add libc_hidden_def.
2913         * sysdeps/mach/hurd/getdomain.c: Likewise.
2914         * sysdeps/unix/getlogin_r.c: Likewise.
2915         * sysdeps/mach/hurd/getlogin_r.c: Likewise.
2916         * sysdeps/generic/getlogin_r.c: Likewise.
2917
2918         * include/rpc/auth_des.h: Use libc_hidden_proto for rtime.
2919         * sunrpc/rtime.c: Add libc_hidden_def.
2920
2921         * include/string.h: Use libc_hidden_proto for basename.
2922         * string/basename.c [_LIBC]: Add libc_hidden_def.
2923
2924         * sysdeps/unix/sysv/linux/opensock.c (__opensock): socket -> __socket.
2925
2926         * locale/loadarchive.c: munmap -> __munmap throughout.
2927
2928         * include/netdb.h: Use libc_hidden_proto for gai_strerror.
2929         * sysdeps/posix/gai_strerror.c: Add libc_hidden_def.
2930         * sysdeps/generic/gai_strerror.c: Likewise.
2931
2932         * include/sys/errno.h: New file.
2933
2934         * include/signal.h: No libc_hidden_proto for raise,
2935         __libc_current_sigrtmin, __libc_current_sigrtmax.
2936         These need to be overridden by linuxthreads.
2937         * sysdeps/posix/raise.c: Reverted.
2938         * sysdeps/generic/raise.c: Reverted.
2939         * signal/allocrtsig.c: Reverted.
2940
2941         * locale/loadarchive.c (LOCALEDIR): Remove debugging defn.  Oops.
2942
2943 2002-08-10  Roland McGrath  <roland@redhat.com>
2944
2945         * locale/loadarchive.c (_nl_archive_subfreeres): New function.
2946         * locale/localeinfo.h: Declare it.
2947         * locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the
2948         current locale if it's not in the file list.
2949         Call _nl_archive_subfreeres.
2950
2951 2002-08-10  Andreas Jaeger  <aj@suse.de>
2952
2953         * sysdeps/i386/strchr.S: Add comment.
2954
2955 2002-08-10  Roland McGrath  <roland@redhat.com>
2956
2957         * include/wchar.h (putwc): Use libc_hidden_proto.
2958         * include/stdio.h (dprintf, fprintf, vfprintf, sprintf,
2959         sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise.
2960         * stdio-common/dprintf.c: Add libc_hidden_def.
2961         * stdio-common/fprintf.c: Likewise.
2962         * stdio-common/sprintf.c: Likewise.
2963         * stdio-common/sscanf.c: Likewise.
2964         * libio/iofwrite.c: Likewise.
2965         * libio/memstream.c: Likewise.
2966         * libio/putwc.c: Likewise.
2967         * stdio-common/perror.c: Likewise.
2968         * sysdeps/posix/remove.c: Likewise.
2969         * sysdeps/generic/remove.c: Likewise.
2970         * libio/rewind.c: Likewise.  Use <stdio.h> instead of "stdio.h".
2971         * stdio-common/vfprintf.c: Add libc_hidden_def.  Include <stdio.h>.
2972
2973 2002-08-09  Jakub Jelinek  <jakub@redhat.com>
2974
2975         * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
2976         towlower, towupper): Add prototypes here too.  Add libc_hidden_proto.
2977         * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
2978         towlower, towupper): Add libc_hidden_weak.
2979
2980         * include/bits/dlfcn.h: New file.
2981         * elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def.
2982
2983         * include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
2984         * include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
2985         * include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
2986         * include/pwd.h (_nss_files_parse_pwent): Likewise.
2987         * include/shadow.h (_nss_files_parse_spent): Likewise.
2988         * include/netdb.h (_nss_files_parse_protoent,
2989         _nss_files_parse_servent, _nss_files_parse_netent): Likewise.
2990         * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
2991         (LINE_PARSER): Use it.
2992         * nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
2993         * nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.
2994
2995         * libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT
2996         #endif.
2997
2998         * manual/debug.texi (%MENU%): Remove trailing dot.
2999         Reported by <hayastan132@hotmail.com>.
3000
3001         * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek
3002         aliases.
3003         (lseek): Dummy.
3004         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek):
3005         Likewise.
3006
3007 2002-08-09  Roland McGrath  <roland@redhat.com>
3008
3009         * locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale
3010         name to find codeset name (if any) and normalize it.  If the
3011         normalized name differs, look up only that in the archive.
3012         * locale/programs/locarchive.c (add_locale_to_archive): If the name
3013         contains a codeset, normalize the codeset store only the normalized
3014         name in the archive.  If not, add an alias containing the locale's
3015         normalized codeset name.  Apply codeset name normalization when
3016         matching entries in the alias file.
3017
3018         * locale/programs/locarchive.c (delete_locales_from_archive): Don't
3019         decrement HEAD->namehash_used here.
3020         (add_locale): Only need to insert name string when name_offset != 0.
3021
3022         * locale/programs/localedef.c (options): Add -A/--alias-file.
3023         (alias_file): New variable.
3024         (parse_opt): Grok -A, set that.
3025         * locale/programs/localedef.h: Declare it.
3026
3027         * locale/locarchive.h (struct locrecent): Add `refs' member.
3028         * locale/programs/locarchive.c (insert_name): New function, broken out
3029         of ...
3030         (add_locale_to_archive): ... here.  Call that.
3031         (add_alias): New function.
3032         (add_locale): New static function, add_locale_to_archive renamed.
3033         (add_locale_to_archive): Call that and use add_alias to add an alias
3034         for the name with codeset if the given name lacks it.
3035         (enlarge_archive): Call add_locale instead of add_locale_to_archive.
3036
3037         * locale/Makefile (routines): Add loadarchive.
3038         * locale/loadarchive.c: New file, started from code by Ulrich Drepper.
3039         (_nl_load_locale_from_archive): New function.
3040         * locale/localeinfo.h: Declare it.
3041         * locale/findlocale.c (_nl_find_locale): If using default locale path,
3042         try _nl_load_locale_from_archive first.
3043
3044         * locale/loadlocale.c (_nl_intern_locale_data): New function,
3045         broken out of _nl_load_locale.
3046         (_nl_load_locale): Call that.
3047         * locale/localeinfo.h: Declare it.
3048         (struct locale_data): Replace member `mmaped' with `alloc', an enum.
3049         (struct locale_data): Remove unused member `options'.
3050         * locale/findlocale.c (_nl_remove_locale): Update uses.
3051         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3052         * locale/C-collate.c: Update initializer.
3053         * locale/C-identification.c: Likewise.
3054         * locale/C-measurement.c: Likewise.
3055         * locale/C-telephone.c: Likewise.
3056         * locale/C-address.c: Likewise.
3057         * locale/C-name.c: Likewise.
3058         * locale/C-paper.c: Likewise.
3059         * locale/C-time.c: Likewise.
3060         * locale/C-numeric.c: Likewise.
3061         * locale/C-monetary.c: Likewise.
3062         * locale/C-messages.c : Likewise.
3063         * locale/C-ctype.c: Likewise.
3064
3065         * locale/hashval.h [! LONGBITS]: Include <limits.h> here and
3066         use CHAR_BIT instead of BITSPERBYTE.
3067
3068         * locale/localeinfo.h (_nl_find_locale, _nl_load_locale,
3069         _nl_unload_locale): Add `internal_function attribute_hidden' to decls.
3070         * locale/findlocale.c (_nl_find_locale): Add internal_function to defn.
3071         (_nl_remove_locale): Likewise.
3072         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3073
3074         * locale/findlocale.c (_nl_default_locale_path): New variable.
3075         (_nl_find_locale): If LOCALE_PATH is null, default to that.
3076         * locale/localeinfo.h: Declare it.
3077         * locale/setlocale.c (setlocale): Use _nl_default_locale_path
3078         in place of LOCALEDIR.  If no LOCPATH, pass null to _nl_find_locale.
3079         * locale/newlocale.c (__newlocale): Likewise.
3080
3081         * misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses.
3082         * inet/rexec.c (rexec_af): Add libc_hidden_def.
3083         * sysdeps/generic/morecore.c: Likewise.
3084         * signal/allocrtsig.c (__libc_current_sigrtmin): Likewise.
3085         (__libc_current_sigrtmax): Likewise.
3086
3087 2002-08-08  Roland McGrath  <roland@redhat.com>
3088
3089         * locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
3090         * catgets/open_catalog.c (__open_catalog): Likewise.
3091
3092         * locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed
3093         from typo INITIAL_NUM_NANES.
3094         (create_archive): Update use.
3095
3096 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
3097
3098         * sysdeps/unix/sysv/linux/sigwait.c: New file.
3099
3100 2002-08-08  Roland McGrath  <roland@frob.com>
3101
3102         * resolv/netdb.h: Don't declare h_errno as a plain global any more.
3103
3104 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
3105
3106         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
3107         else and undefine after including wcstol_l.c.
3108         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.
3109
3110 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
3111
3112         * gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available.
3113
3114 2002-08-08  Alexandre Oliva  <aoliva@redhat.com>
3115
3116         * configure.in: Make the test for broken_alias_attribute stricter.
3117
3118 2002-05-24  Robert Love  <rml@tech9.net>
3119
3120         * posix/Makefile (routines): Add sched_getaffinity and
3121         sched_setaffinity.
3122         * posix/sched.h: Add declarations for sched_getaffinity and
3123         sched_setaffinity.
3124         * sysdeps/generic/sched_getaffinity.c: New file.
3125         * sysdeps/generic/sched_setaffinity.c: New file.
3126         * sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and
3127         sched_setaffinity.
3128
3129 2002-08-06  Andreas Schwab  <schwab@suse.de>
3130
3131         * sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes.
3132
3133 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
3134
3135         * elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error
3136         message.
3137
3138         * stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special.
3139         It is known to be defined.
3140
3141         * include/string.h: Define index and rindex only if _ISOMAC is not
3142         defined.
3143
3144         * elf/rtld.c: Include <errno.h>.
3145         * sysdeps/generic/libc-tls.c: Likewise.
3146
3147 2002-08-07  Roland McGrath  <roland@redhat.com>
3148
3149         * resolv/res_debug.c (latlon2ul): Add const to argument type, and use
3150         it internally.
3151         (precsize_aton): Likewise.
3152
3153         * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
3154         the static symbols added in the last change (doofus is me).
3155
3156         * locale/newlocale.c (__newlocale): Use a bit mask instead of a second
3157         loop to notice missing categories in a composite name.
3158
3159         * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
3160         LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
3161         LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
3162         LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.
3163
3164 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
3165
3166         * malloc/tst-calloc.c: Add tests for one or both parameters being zero.
3167
3168 2002-08-07  Roland McGrath  <roland@redhat.com>
3169
3170         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
3171         unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
3172         Reported by Jakub Jelinek  <jakub@redhat.com>.
3173
3174 2002-08-07  Jakub Jelinek  <jakub@redhat.com>
3175
3176         * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
3177         division.
3178
3179 2002-08-06  Roland McGrath  <roland@redhat.com>
3180
3181         * include/getopt.h: Put private decls inside [_GETOPT_H].
3182         Use libc_hidden_proto for getopt_long, getopt_long_only.
3183         * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
3184         Add libc_hidden_def.
3185
3186         * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
3187         Define as a macro for __dl_iterate_phdr.
3188
3189         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
3190         made static.  Add __ name as a strong alias.
3191         (internal_endnetgrent): Likewise.
3192         (internal_getnetgrent_r): Likewise.
3193
3194         * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
3195         with no __ prefix.
3196         * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
3197         * ctype/ctype.h [__USE_GNU]: Add declarations and macros for
3198         all *_l functions with no __ prefix.
3199         * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
3200         * ctype/ctype_l.c: Likewise.
3201         * locale/nl_langinfo.c: Likewise.
3202         * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
3203         * stdlib/stdlib.h [__USE_GNU]: Likewise.
3204         * wcsmbs/wchar.h [__USE_GNU]: Likewise.
3205         * wctype/wctype.h [__USE_GNU]: Likewise.
3206         * string/strcoll_l.c (strcoll_l): Define as weak alias.
3207         * string/strxfrm_l.c (strxfrm_l): Define as weak alias.
3208         * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
3209         * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
3210         * stdlib/strtod_l.c (strtod_l): Define as weak alias.
3211         * stdlib/strtof_l.c (strtof_l): Define as weak alias.
3212         * stdlib/strtold_l.c (strtold_l): Define as weak alias.
3213         * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
3214         (__wcscasecmp_l): Add libc_hidden_def.
3215         * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
3216         (__wcsncasecmp_l): Add libc_hidden_def.
3217         * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
3218         * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
3219         * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
3220         * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
3221         * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
3222         * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
3223         * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
3224         * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
3225         * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
3226         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
3227         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
3228         * wctype/wctrans_l.c (wctrans_l) Define as weak alias.
3229         * wctype/towctrans_l.c (towctrans_l) Define as weak alias.
3230         * wctype/wctype_l.c (wctype_l) Define as weak alias.
3231
3232 2002-08-05  Roland McGrath  <roland@redhat.com>
3233
3234         * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
3235         netname2user, host2netname, user2netname, key_gendes.
3236         * sunrpc/netname.c: Add libc_hidden_def.
3237         * sunrpc/key_call.c: Likewise.
3238
3239         * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
3240         freeaddrinfo.
3241         * inet/getnameinfo.c: Add libc_hidden_def.
3242         * sysdeps/generic/getaddrinfo.c: Likewise.
3243         * sysdeps/posix/getaddrinfo.c: Likewise.
3244
3245         * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
3246         * wcsmbs/wmemchr.c: Add libc_hidden_def.
3247         * wcsmbs/wmemset.c: Add libc_hidden_def.
3248
3249         * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
3250         (index, rindex): Define as macros for strchr, strrchr.
3251
3252         * string/envz.c (envz_strip): index -> strchr
3253
3254         * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
3255         * sunrpc/rpc_prot.c: Add libc_hidden_def.
3256
3257         * include/wchar.h: Use libc_hidden_proto for mbrtowc.
3258         * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
3259
3260         * include/stdlib.h: Use libc_hidden_proto for wctomb.
3261         * stdlib/wctomb.c: Add libc_hidden_def.
3262
3263         * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
3264         rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
3265         * resolv/herror.c: Likewise.
3266         * inet/rcmd.c: Add libc_hidden_def.
3267         * inet/ruserpass.c: Likewise.
3268         * inet/getnetgrent_r.c: Likewise.
3269
3270         * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
3271         svc_unregister, remove *_internal decls.  Use libc_hidden_proto
3272         for svcerr_auth, svcerr_noprog, svcerr_progvers.
3273         * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
3274         libc_hidden_def.
3275         (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
3276         * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.
3277
3278         * sysdeps/posix/system.c (do_system): New function, guts broken out of
3279         __libc_system.
3280         (__libc_system): Call it, putting just the line == NULL test here.
3281
3282         * include/libc-symbols.h (__hidden_proto): Add extern keywords so
3283         variables work right.
3284
3285         * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
3286         * elf/dl-close.c (_dl_close): Likewise.
3287
3288         * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
3289         in6addr_any, in6addr_loopback.  Remove decls for
3290         bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
3291         * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
3292         * sunrpc/svc_tcp.c (svctcp_create): Likewise.
3293         * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
3294         * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
3295         * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
3296         * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
3297         in6addr_loopback.
3298         * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
3299
3300         * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
3301         ether_aton_r.
3302         * inet/ether_aton_r.c: Add libc_hidden_def.
3303         * inet/ether_ntoa_r.c: Likewise.
3304
3305         * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
3306         xprt_unregister.
3307         * sunrpc/svc.c: Add libc_hidden_def.
3308         * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
3309         pmap_set, pmap_unset.
3310         * sunrpc/pmap_clnt.c: Add libc_hidden_def.
3311         * sunrpc/pm_getport.c: Likewise.
3312         * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
3313         * sunrpc/publickey.c: Add libc_hidden_def.
3314
3315 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
3316
3317         * elf/rtld.c (_dl_start): Don't use memset.  Use same tricks as for
3318         the other memset call in this function.
3319
3320         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
3321         at correct index.  Clear BSS region now that memalign is used.
3322
3323 2002-08-05  Roland McGrath  <roland@redhat.com>
3324
3325         * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
3326         * sysdeps/generic/uname.c: Add libc_hidden_def.
3327         * sysdeps/mach/hurd/uname.c: Likewise.
3328
3329 2002-08-05  Jakub Jelinek  <jakub@redhat.com>
3330
3331         * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
3332         wcspbrk): Add libc_hidden_proto.
3333         * time/strftime.c (my_strftime): Add libc_hidden_def.
3334         (strftime): Remove libc_hidden_def.
3335         * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
3336         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
3337         * wcsmbs/wcsspn.c (wcsspn): Likewise.
3338         * wcsmbs/wcscmp.c (wcscmp): Likewise.
3339         * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
3340         * wcsmbs/wcscoll.c (wcscoll): Likewise.
3341
3342         * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
3343         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3344         __rpc_thread_createerr): Add libc_hidden_proto.
3345         * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
3346         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3347         __rpc_thread_createerr): Add libc_hidden_def.
3348
3349         * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
3350         clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
3351         * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
3352         clnt_perror, clnt_sperror): Add libc_hidden_def.
3353         * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
3354
3355         * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
3356         libc_hidden_proto.
3357         * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
3358         * sunrpc/des_soft.c (des_setparity): Likewise.
3359
3360         * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
3361         Add libc_hidden_proto.
3362         * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
3363         Add libc_hidden_def.
3364
3365 2002-08-05  Roland McGrath  <roland@redhat.com>
3366
3367         * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
3368         `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
3369         * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
3370         * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
3371         dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
3372         old data, abandoning the original memory allocated by rtld at startup,
3373         instead of calling realloc normally.
3374
3375 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
3376
3377         * po/fr.po: Update from translation team.
3378
3379 2002-08-04  Roland McGrath  <roland@redhat.com>
3380
3381         * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
3382         then generate a dummy module under the given name, obeying the
3383         normal rules for the "caller" field.
3384
3385         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
3386         actually iterate over the elements.  Fix typo p_type -> p_vaddr.
3387
3388         * include/pthread.h: Don't declare __pthread_initialize_minimal as
3389         weak here; we declare it weak or strong in the one place we use it.
3390         * sysdeps/generic/libc-start.c: ... which is here.
3391         Don't make the decl weak if [USE_TLS], since static programs need TLS
3392         setup even when single-threaded.
3393
3394         * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
3395
3396         * elf/Makefile (test-srcs): Add $(modules-names) to it.
3397         (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
3398         CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
3399         all these variables.
3400
3401 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3402
3403         * include/stdio.h: Don't define macro magic to redirect function
3404         calls if _ISOMAC is defined.
3405
3406         * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
3407         ldouble asin tests.
3408
3409 2002-08-04  Roland McGrath  <roland@redhat.com>
3410
3411         * stdlib/lrand48_r.c: Add libc_hidden_def.
3412
3413         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
3414         TCB with __libc_memalign instead of mmap.
3415         (_dl_deallocate_tls): Free it with free instead of munmap.
3416
3417         * Makerules (cpp-srcs-left): When setting this to run
3418         cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
3419         words.  Combine the two loops into one on the concatenated list,
3420         including those as well as $(test-srcs).
3421
3422         * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
3423         since we align here with optimally minimal waste anyway.
3424         (malloc): Just call that.
3425
3426         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
3427         the right variable.
3428
3429         * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
3430         to compute memory location for l_tls_initimage.
3431         * elf/rtld.c (_dl_start): Likewise.
3432         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
3433
3434         * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
3435         because the .d file is generated in the non-shared case and
3436         so fails to catch them otherwise.
3437
3438         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
3439         split out of _dl_allocate_tls.
3440         (_dl_allocate_tls_init): Likewise.
3441         (_dl_allocate_tls): Call those.
3442         * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
3443         * elf/rtld.c (dl_main): Call them separately instead of calling
3444         _dl_allocate_tls.  Delay _dl_allocate_tls_init until after relocation
3445         is finished, so that the initializer data has been relocated before we
3446         copy it into the main thread's TLS block.
3447
3448         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
3449         loop conditions, prevented the last used module from being initialized.
3450
3451 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
3452
3453         * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
3454         if glob resp. globfree are not macros.
3455         * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
3456         * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
3457         Add libc_hidden_ver.
3458         * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
3459         libc_hidden_def.
3460         * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
3461         instead of libc_hidden_weak.
3462         * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
3463         libc_hidden_ver instead of libc_hidden_def.
3464         * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
3465         libc_hidden_ver instead of libc_hidden_def.
3466         (wcstoll, wcstoq): Remove libc_hidden_weak.
3467         * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
3468         libc_hidden_ver.
3469         * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
3470         libc_hidden_ver.
3471         * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
3472         libc_hidden_ver.
3473         * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
3474         libc_hidden_ver.
3475
3476 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3477
3478         * stdio-common/psignal.c: Declare _sys_siglist_internal.  Use USEINT
3479         to access _sys_siglist.
3480         * string/strsignal.c: Likewise.
3481         * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
3482         * sysdeps/gnu/siglist.c: Likewise.
3483         * sysdeps/unix/siglist.c: Likewise.
3484         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
3485
3486         * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
3487
3488         * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
3489
3490         * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
3491         alias and use it.
3492         * intl/bindtextdom.c: Use _nl_default_dirname_internal.
3493
3494         * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
3495         * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
3496         * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
3497
3498         * include/time.h: Add libc_hidden_proto for __gmtime_r.
3499         * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
3500
3501         * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
3502         and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
3503         and __gconv_get_cache respectively.
3504         * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
3505         defined static.  Change all users.
3506         (__gconv_get_cache): New function.
3507         * iconv/gconv_db.c (__gconv_get_modules_db): New function.
3508         (__gconv_get_alias_db): New function.
3509         * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
3510         (__conv_modules_db): Likewise.
3511         Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
3512         and __gconv_get_alias_db.
3513         * iconv/iconv_prog.c: Use the new functions instead of accessing the
3514         variables.
3515
3516         * include/stdlib.h: Add prototype and libc_hidden_proto for
3517         __default_morecore.
3518         * sysdeps/generic/morecore.c: Include <stdlib.h>.
3519
3520         * malloc/obstack.c: Remove fputs macro.
3521
3522         * malloc/mtrace.c: Remove fopen macro.
3523
3524 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
3525
3526         * manual/debug.texi: Fix spelling to programmatically.
3527         Reported by <hayastan132@hotmail.com>.
3528
3529 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3530
3531         * include/libio.h: Add libc_hidden_proto for __uflow.
3532         * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
3533         fgetpos to _IO_* names.
3534         Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
3535         fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
3536         * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
3537         putwc_unlocked, vswscanf.
3538         * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
3539         * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
3540         * libio/fseek.c: Likewise.
3541         * libio/fmemopen.c: Include "libioP.h".  Call _IO_fopencookie and
3542         not fopencookie.
3543         * libio/genops.c (__uflow): Add libc_hidden_def.
3544         * libio/iofflush_u.c (fflush_unlocked): Likewise.
3545         * libio/iofgets_u.c (fgets_unlocked): Likewise.
3546         * libio/iofputs_u.c (fputs_unlocked): Likewise.
3547         * libio/iofputws_u.c (fputws_unlocked): Likewise.
3548         * libio/iofread_u.c (fread_unlocked): Likewise.
3549         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
3550         * libio/iovswscanf.c (vswscanf): Likewise.
3551         * libio/putwc_u.c (putwc_unlocked): Likewise.
3552         * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
3553         * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
3554         * malloc/mtrace.c: Likewise.
3555
3556         * sunrpc/clnt_perr.c: Remove fputs macro.
3557         * sunrpc/svc_simple.c: Likewise.
3558         * sunrpc/svc_tcp.c: Likewise.
3559         * sunrpc/svc_udp.c: Likewise.
3560         * sunrpc/xdr_rec.c: Likewise.
3561         * sunrpc/xdr_ref.c: Likewise.
3562
3563         * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
3564         iconv_prog, linereader, and charmap-dir.
3565         * locale/Makefile: Likewise for locale and charmap-dir.
3566         * malloc/Makefile: Likewise for memusagestat.
3567         * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
3568         * sunrpc/Makefile: Likewise for rpc_main.
3569         * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
3570         * timezone/Makefile: Likewise for zic.
3571
3572         * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
3573
3574         * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
3575         * elf/dl-close.c (_dl_close): Add libc_hidden_def.
3576         * elf/dl-open.c (_dl_open): Add libc_hidden_def.
3577         * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
3578         _dl_close.
3579
3580         * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
3581         __wunderflow.
3582         * libio/genops.c (__underflow): Add libc_hidden_def.
3583         * libio/wgenops.c (__wuflow): Likewise.
3584         (__wunderflow): Likewise.
3585
3586         * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
3587         * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
3588
3589         * include/stdio.h: Add libc_hidden_proto for __vfscanf.
3590         * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
3591
3592         * include/string.h: Add libc_hidden_proto for __strverscmp.
3593         * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
3594
3595         * include/unistd.h: Add libc_hidden_proto for __sysconf.
3596         * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
3597         * sysdeps/posix/sysconf.c: Likewise.
3598         * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
3599         * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
3600
3601         * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
3602         __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
3603         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
3604         __iswxdigit_l, __towlower_l, __towupper_l.
3605         * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
3606         * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
3607
3608         * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
3609         * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
3610         * sysdeps/mach/hurd/xmknod.c: Likewise.
3611         * sysdeps/unix/xmknod.c: Likewise.
3612         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
3613         * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
3614         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
3615
3616         * sunrpc/svc.c: Add missing INTUSE for _authenticate.
3617
3618 2002-08-03  Roland McGrath  <roland@redhat.com>
3619
3620         * include/sys/resource.h: Use libc_hidden_proto for getpriority,
3621         setpriority.
3622         * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
3623         * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
3624         * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
3625         * sysdeps/mach/hurd/setpriority.c: Likewise.
3626         * sysdeps/mach/hurd/getpriority.c: Likewise.
3627         * sysdeps/generic/setpriority.c: Likewise.
3628         * sysdeps/generic/getpriority.c: Likewise.
3629
3630         * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
3631         * malloc/mcheck.c: Add libc_hidden_def.
3632
3633         * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
3634         * misc/hsearch_r.c: Add libc_hidden_def.
3635
3636         * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
3637         * posix/fnmatch.c: Add libc_hidden_weak.
3638
3639         * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
3640         execl, execle, execlp, execvp, getpid, getsid.
3641         * sysdeps/generic/alarm.c: Add libc_hidden_def.
3642         * sysdeps/unix/alarm.c: Likewise.
3643         * posix/confstr.c: Likewise.
3644         * posix/execvp.c: Likewise.
3645         * posix/execlp.c: Likewise.
3646         * posix/execle.c: Likewise.
3647         * posix/execl.c: Likewise.
3648         * sysdeps/generic/getsid.c: Likewise.
3649         * sysdeps/mach/hurd/getsid.c: Likewise.
3650         * sysdeps/generic/getpid.c: Add libc_hidden_weak.
3651         * sysdeps/mach/hurd/getpid.c: Likewise.
3652
3653         * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
3654         qecvt_r, qfcvt_r, lrand48_r.
3655         * misc/efgcvt_r.c: Add libc_hidden_def.
3656
3657         * include/wordexp.h: Use libc_hidden_proto for wordfree.
3658         * sysdeps/generic/wordexp.c: Add libc_hidden_def.
3659
3660         * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
3661         * locale/nl_langinfo.c: Add libc_hidden_def.
3662
3663         * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
3664         * sysdeps/generic/glob.c: Add libc_hidden_def.
3665         * sysdeps/generic/glob64.c: Likewise.
3666         * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
3667
3668         * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
3669
3670         * elf/Makefile (CFLAGS-vismod2.c): New variable.
3671
3672         * locale/setlocale.c (_nl_current_names): Variable moved ...
3673         * locale/localename.c (_nl_current_names): ... here, new file.
3674         Make it global, with attribute_hidden.
3675         * locale/localeinfo.h: Declare it.
3676         * locale/Makefile (aux): Add localename.
3677         * locale/localename.c (__current_locale_name): New function.
3678         * include/locale.h (__current_locale_name): Declare it.
3679         * intl/dcigettext.c (guess_category_value): Use that instead of
3680         calling setlocale.
3681
3682         * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
3683         [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
3684         [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
3685         * locale/newlocale.c: Add alias to __ name.
3686         * locale/duplocale.c: Likewise.
3687         * locale/freelocale.c: Likewise.
3688         * locale/uselocale.c: New file.
3689         * locale/Makefile (routines): Add it.
3690         * locale/Versions (libc: GLIBC_2.3): New set.
3691         Add newlocale, duplocale, freelocale, uselocale.
3692         (libc: GLIBC_PRIVATE): Add __uselocale.
3693
3694         * locale/localeinfo.h [SHARED]
3695         (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
3696         (_NL_CURRENT_DATA): Define using that.
3697         (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
3698         (_NL_CURRENT_DEFINE): Define to empty.
3699         [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
3700         conditionalized on this.
3701         * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
3702         taking initializer of _nl_C_locobj.
3703         [SHARED] (_nl_global_locale): New variable, using that initializer.
3704         (_nl_C_locobj): Use new macro for initialzier.
3705         * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
3706         [! SHARED] (CATEGORY_USED): New macro.
3707         [SHARED] (CATEGORY_USED, _nl_C): New macros.
3708         (setdata, setlocale): Use that macro instead of examining _nl_current.
3709         (setdata): Set the slot in _nl_global_locale.
3710         Conditionalize setting of _nl_current on [! SHARED].
3711         * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
3712         declaration as an extern.
3713         * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
3714
3715         * include/locale.h: Use libc_hidden_proto for setlocale.
3716         * locale/setlocale.c: Add libc_hidden_def.
3717
3718         * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
3719
3720         * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
3721         * misc/hsearch_r.c: Add libc_hidden_def.
3722         * misc/lsearch.c: Likewise.
3723
3724         * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
3725         endttyent.
3726         * misc/getttyent.c: Add libc_hidden_def.
3727
3728         * include/mcheck.h: Use libc_hidden_proto for mcheck.
3729         * malloc/mcheck.c: Add libc_hidden_def.
3730
3731         * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
3732         * include/argz.h: Use libc_hidden_proto for argz_delete.
3733         * string/argz-delete.c: Add libc_hidden_def.
3734         * string/envz.c: Likewise.  Use <envz.h>, not "envz.h".
3735
3736         * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
3737         HIDDEN_JUMPTARGET for _exit.
3738         * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
3739         * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
3740         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
3741         * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
3742
3743         * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
3744         [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
3745         [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
3746         * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
3747
3748         * include/stdlib.h: Use libc_hidden_proto for abort,
3749         __strtof_internal, __strtod_internal, __strtold_internal,
3750         __strtol_internal, __strtoll_internal, __strtoul_internal,
3751         __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
3752         __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
3753         __strtoul_l_internal, __strtoull_l_internal.
3754         * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
3755         __wcstod_internal, __wcstold_internal, __wcstol_internal,
3756         __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
3757         ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
3758         ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
3759         __wcsncasecmp_l.
3760         * sysdeps/generic/abort.c: Add libc_hidden_def.
3761         * stdlib/strtod.c: Likewise.
3762         * sysdeps/generic/strtol.c: Likewise.
3763         * sysdeps/wordsize-64/strtol.c: Likewise.
3764         * sysdeps/wordsize-64/wcstol.c: Likewise.
3765         * sysdeps/wordsize-64/wcstol_l.c: Likewise.
3766
3767         * include/stdlib.h: Use libc_hidden_proto for qsort.
3768         * stdlib/msort.c: Add libc_hidden_def.
3769
3770         * include/utime.h: Use libc_hidden_proto for utime.
3771         * sysdeps/generic/utime.c: Add libc_hidden_def.
3772         * sysdeps/unix/utime.c: Likewise.
3773
3774         * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
3775         * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
3776         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
3777         * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
3778         * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
3779
3780         * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
3781         sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
3782         and __libc_current_sigrtmax.
3783         * signal/sigismem.c: Add libc_hidden_def.
3784         * signal/sigfillset.c: Likewise.
3785         * signal/sigempty.c: Likewise.
3786         * sysdeps/generic/sigpause.c (__sigpause): Likewise.
3787         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
3788         * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
3789         * sysdeps/posix/raise.c: Likewise.
3790         * sysdeps/generic/raise.c: Likewise.
3791
3792 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
3793
3794         * include/string.h: Use libc_hidden_proto for __stpcpy.
3795         * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
3796         * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
3797         * sysdeps/generic/stpcpy.c: Likewise.
3798         * sysdeps/i386/stpcpy.S: Likewise.
3799         * sysdeps/i386/i586/stpcpy.S: Likewise.
3800         * sysdeps/powerpc/stpcpy.S: Likewise.
3801         * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
3802         * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
3803
3804         * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
3805         __strncasecmp_l, __strdup, __strndup, __strerror_r.
3806         * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
3807         libc_hidden_def.
3808         * string/strdup.c (__strdup): Likewise.
3809         * string/strndup.c (__strndup): Likewise.
3810         * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
3811         * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
3812
3813 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
3814
3815         * include/libio.h: New file.
3816         * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
3817         * libio/iolibio.h: #include <libio.h>, not "libio.h".
3818         * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
3819         * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
3820         * sysdeps/unix/common/syscalls.list: Likewise.
3821         * sysdeps/unix/inet/syscalls.list: Likewise.
3822         * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
3823         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
3824         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3825         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3826         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
3827         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
3828         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
3829         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3830         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3831         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
3832         * sysdeps/unix/syscalls.list: Likewise.
3833
3834 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
3835             Ulrich Drepper  <drepper@redhat.com>
3836
3837         * malloc/malloc.c (public_cALLOc): Only divide if at least one of
3838         the arguments is big enough to cause an overflow.
3839
3840 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
3841
3842         * assert/assert.c: Use hidden_def not INTDEF.
3843
3844 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
3845
3846         * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
3847         not defined.
3848
3849 2002-08-03  Roland McGrath  <roland@redhat.com>
3850
3851         * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
3852         * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
3853         verr, verrx.
3854         * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
3855         * misc/syslog.c: Add libc_hidden_def.
3856         * misc/err.c: Likewise.
3857         * stdlib/exit.c: Likewise.
3858         * stdlib/bsearch.c: Likewise.
3859         * sysdeps/generic/getenv.c: Likewise.
3860
3861         * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
3862
3863         * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
3864         libc_hidden_weak for every system call symbol defined.
3865
3866         * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
3867         timelocal, localtime, strftime.
3868         * time/asctime.c: Add libc_hidden_def.
3869         * time/mktime.c: Likewise.
3870         * time/localtime.c: Likewise.
3871         * time/strftime.c: Likewise.
3872         * time/strptime.c: Likewise.
3873         * sysdeps/generic/time.c: Likewise.
3874         * sysdeps/unix/time.c: Likewise.
3875         * sysdeps/unix/sysv/i386/time.S: Likewise.
3876         * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
3877
3878         * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
3879         inet_makeaddr, inet_netof, inet_addr, __inet_addr.
3880         * resolv/inet_ntop.c: Likewise.
3881         * resolv/inet_pton.c: Likewise.
3882         * inet/inet_mkadr.c: Add libc_hidden_def.
3883         * inet/inet_netof.c: Likewise.
3884         * resolv/inet_addr.c: Likewise.
3885
3886         * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
3887         clauses from conditionals for now.  Will have to be fixed later
3888         for older compilers.
3889
3890         * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
3891
3892 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
3893
3894         * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
3895         broken alias attribute handling.
3896         * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
3897
3898 2002-08-02  Roland McGrath  <roland@frob.com>
3899
3900         * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
3901         since it sets the variables we use in a -D switch.
3902
3903 2002-08-02  Roland McGrath  <roland@redhat.com>
3904
3905         * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
3906         On 32-bit platforms they are the same; on 64-bit platforms ssize_t
3907         matches long int, not int.
3908
3909         * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
3910         * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
3911         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
3912         * wctype/wctrans.c (wctrans): Likewise.
3913         * wctype/wctype.c (__wctype): Likewise.
3914         * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
3915
3916 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
3917
3918         * assert/assert.c (__assert_fail): Fix typo in comment.
3919
3920         * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
3921         * sunrpc/rpc_thread.c: Define it without static.
3922         * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
3923
3924 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
3925
3926         * assert/assert.c (__assert_fail): Remove undef.
3927         Replace INTDEF with libc_hidden_def.
3928         * assert/__assert.c (__assert): Remove INTUSE.
3929         * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
3930         libc_hidden_weak.
3931         * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
3932         hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
3933         libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
3934         rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
3935         libm_hiden_ver): Define.
3936         * include/assert.h (__assert_fail_internal): Remove.
3937         (__assert_fail): Add prototype.  Add hidden_proto.
3938         * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
3939         libc_hidden_proto.
3940         * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
3941         (__mbrtowc, __mbrlen): Use libc_hidden_proto.  Remove macros.
3942         * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
3943         Add libc_hidden_proto.
3944         * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
3945         __fcntl): Add libc_hidden_proto.  Remove macros.
3946         (__open_internal, __fcntl_internal): Remove.
3947         * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
3948         * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
3949         * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
3950         libc_hiden_proto.
3951         * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
3952         libc_hidden_def.
3953         * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
3954         Add libc_hidden_def.
3955         * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
3956         * sysdeps/generic/open.c (__open): Remove undef.
3957         Add libc_hidden_def.  Remove INTDEF.
3958         * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
3959         Add libc_hidden_def.
3960         * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
3961         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
3962         * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
3963         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
3964         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
3965         (__libc_fcntl): Add libc_hidden_def.
3966         * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
3967         (__open): Remove INTDEF2.  Add libc_hidden_weak.
3968         (__libc_open): Add libc_hidden_def.
3969         * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
3970         * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
3971         * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
3972         Add libc_hidden_def.
3973         * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
3974         Add libc_hidden_def.
3975         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
3976         undef.
3977         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
3978         (__libc_fcntl): Add libc_hidden_def.
3979         * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
3980         __getpgid_internal, __chown_internal): Remove.
3981         (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
3982         __GI___sched_setscheduler, __GI___select, __GI___setpgid,
3983         __GI___chown): Add.
3984         * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
3985         __getpid_internal, __open_internal, __write_internal): Remove.
3986         (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
3987         __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
3988         __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
3989         __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
3990         * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
3991         Replace INTDEF with libc_hidden_def.
3992         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
3993         * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
3994         * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
3995         * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
3996         * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
3997         Add libc_hidden_proto.
3998         * include/sys/poll.h (__poll): Add libc_hidden_proto.
3999         * include/sys/select.h (__select): Likewise.
4000         * include/sys/socket.h (__send): Likewise.
4001         * include/sys/statfs.h (__statfs): Likewise.
4002         * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
4003         __getpid, __getpgid, __setpgid, __close, __read, __write,
4004         __getpagesize, __sbrk): Likewise.
4005         (__chown_internal, __dup2_internal, __getpid_internal,
4006         __getpgid_internal, __close_internal, __write_internal,
4007         __getpagesize_internal): Remove.
4008         (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
4009         Remove macros.
4010         * include/printf.h (__printf_fp): Add libc_hidden_proto.
4011         * include/sched.h (__sched_setscheduler): Likewise.
4012         * include/resolv.h (__res_ninit, __res_randomid): Likewise.
4013         * include/stdlib.h (__secure_getenv): Likewise.
4014         * include/signal.h (__sigaction, __sigsuspend): Likewise.
4015         * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
4016         * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
4017         * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
4018         * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
4019         * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
4020         * inet/getproto_r.c (NSS_attribute_hidden): Remove.
4021         * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
4022         * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
4023         * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
4024         * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
4025         * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
4026         * inet/getservent_r.c (NSS_attribute_hidden): Remove.
4027         * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
4028         * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
4029         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
4030         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
4031         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
4032         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
4033         * libio/genops.c (__overflow): Add libc_hidden_def.
4034         * libio/iovdprintf.c: Remove libio.h include.
4035         * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
4036         libc_hidden_weak): Define to nothing if not defined.
4037         (__overflow, __woverflow): Add libc_hidden_proto.
4038         * libio/wgenops.c (__woverflow): Add libc_hidden_def.
4039         * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
4040         (DB_LOOKUP_FCT): Add libc_hidden_proto.
4041         * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
4042         (DB_LOOKUP_FCT): Add libc_hidden_proto.
4043         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
4044         and libc_hidden_def.
4045         * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
4046         * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
4047         (__getpgid): Add libc_hidden_proto.
4048         (__bsd_getpgrp): Remove INTUSE.
4049         * resolv/res_init.c (__res_ninit, __res_randomid): Add
4050         libc_hidden_def.
4051         * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
4052         * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
4053         * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
4054         * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
4055         * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
4056         * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
4057         __rpc_thread_createerr): Add libc_hidden_def.
4058         * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
4059         libc_hidden_def.
4060         * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
4061         * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
4062         * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
4063         * sysdeps/generic/chown.c (__chown): Likewise.
4064         * sysdeps/generic/close.c (__close): Likewise.
4065         * sysdeps/generic/dup2.c (__dup2): Likewise.
4066         * sysdeps/generic/pipe.c (__pipe): Likewise.
4067         * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
4068         * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
4069         * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
4070         * sysdeps/generic/read.c (__libc_read): Likewise.
4071         (__read): Add libc_hidden_weak.
4072         * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
4073         * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
4074         * sysdeps/generic/select.c (__select): Likewise.
4075         * sysdeps/generic/send.c (__send): Likewise.
4076         * sysdeps/generic/setpgid.c (__setpgid): Likewise.
4077         * sysdeps/generic/sigaction.c (__sigaction): Likewise.
4078         * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
4079         * sysdeps/generic/statfs.c (__statfs): Likewise.
4080         * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
4081         * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
4082         * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
4083         Remove undef and INTDEF.
4084         * sysdeps/generic/getpgid.c (__getpgid): Likewise.
4085         * sysdeps/generic/getpid.c (__getpid): Likewise.
4086         * sysdeps/generic/write.c (__libc_write): Likewise.
4087         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
4088         * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
4089         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
4090         * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
4091         * sysdeps/mach/hurd/chown.c (__chown): Likewise.  Remove INTDEF.
4092         * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
4093         Remove undef and INTDEF.
4094         * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
4095         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
4096         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
4097         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
4098         * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
4099         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
4100         * sysdeps/mach/hurd/pipe.c: Include unistd.h.
4101         (__pipe): Add libc_hidden_def.
4102         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
4103         libc_hidden_weak.
4104         * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
4105         * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
4106         * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
4107         (__read): Add libc_hidden_weak.
4108         * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
4109         (__libc_pwrite64): Add libc_hidden_def.
4110         * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
4111         * sysdeps/mach/hurd/select.c (__select): Likewise.
4112         * sysdeps/mach/hurd/send.c (__send): Likewise.
4113         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
4114         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
4115         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
4116         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
4117         * sysdeps/posix/dup2.c: Likewise.
4118         Remove undef and INTDEF.
4119         * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
4120         * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
4121         (__pwrite64): Add libc_hidden_weak.
4122         * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
4123         * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
4124         * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
4125         * sysdeps/standalone/close.c (__close): Likewise.
4126         * sysdeps/standalone/write.c (__libc_write): Likewise.
4127         (__write): Add libc_hidden_weak.
4128         * sysdeps/standalone/read.c (__read): Likewise.
4129         (__libc_read): Add libc_hidden_def.
4130         * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
4131         * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
4132         * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
4133         * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
4134         * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
4135         * sysdeps/unix/bsd/poll.c (__poll): Likewise.
4136         * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
4137         * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
4138         * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
4139         __GI___sigaction): Add.
4140         * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
4141         * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
4142         * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
4143         * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
4144         * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
4145         __GI___setpgid): Add.
4146         * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
4147         Remove undef and INTDEF.
4148         * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
4149         * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
4150         * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
4151         * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
4152         * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
4153         * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
4154         * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
4155         * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
4156         * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
4157         * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
4158         * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
4159         * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
4160         * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
4161         * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
4162         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
4163         __GI___statfs, __GI___send): Add.
4164         * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
4165         libc_hidden_ver resp. libc_hidden_def.
4166         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
4167         libc_hidden_def.
4168         * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
4169         Likewise.  Remove undef and INTDEF.
4170         * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
4171         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
4172         __GI___statfs, __GI___send): Add.
4173         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
4174         libc_hidden_def.
4175         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
4176         Likewise.
4177         * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
4178         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
4179         libc_hidden_ver resp. libc_hidden_def.
4180         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
4181         __GI___send): Add.
4182         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
4183         Add libc_hidden_weak.
4184         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
4185         Add libc_hidden_def.
4186         * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
4187         * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
4188         libc_hidden_weak.
4189         * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
4190         resp. libc_hidden_def.
4191         * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
4192         libc_hidden_weak.
4193         * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise.  Remove
4194         INTDEF.
4195         * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
4196         Likewise.  Remove undef.
4197         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
4198         libc_hidden_weak.
4199         * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
4200         * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
4201         libc_hidden_weak.
4202         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
4203         libc_hidden_def.
4204         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
4205         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
4206         Likewise.  Remove undef and INTDEF.
4207         * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
4208         libc_hidden_def.
4209         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
4210         libc_hidden_weak.
4211         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
4212         libc_hidden_def.
4213         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
4214         (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
4215         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
4216         libc_hidden_weak.
4217         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
4218         Add libc_hidden_def.
4219         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
4220         __GI___statfs): Add.
4221         * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
4222         libc_hidden_weak.
4223         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
4224         * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
4225         Remove undef and INTDEF.
4226         * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
4227         * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
4228         libc_hidden_def.
4229         * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
4230         * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
4231         libc_hidden_weak.
4232         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
4233         libc_hidden_def.
4234         * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
4235         * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
4236         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
4237         Add.
4238         * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
4239         libc_hidden_def.  Remove undef and INTDEF.
4240         * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
4241         * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
4242         libc_hidden_def.
4243         * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
4244         * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
4245         * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
4246         * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
4247         Remove undef and INTDEF.
4248         * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
4249         broken visibility attribute handling.
4250         * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
4251
4252 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
4253
4254         * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
4255         Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
4256
4257         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
4258         previous patch.
4259
4260 2002-06-29  Todd Fries  <todd@openbsd.org>
4261
4262         * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
4263
4264 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4265
4266         * include/errno.h: Don't include tls.h if _ISOMAC is defined.
4267
4268 2002-07-30  Roland McGrath  <roland@redhat.com>
4269
4270         * resolv/resolv.h (_res): Define macro unconditionally.
4271         [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
4272         * include/resolv.h: ... here.
4273         [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
4274         as a __thread variable.
4275         * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
4276         a __thread variable instead of a global.
4277         * resolv/res_data.c [_LIBC]: Don't #undef _res.
4278
4279         * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
4280         time we test it.
4281
4282         * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
4283
4284         * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
4285         decls of memset and memcpy.
4286
4287         * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
4288         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
4289
4290         * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
4291
4292         * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
4293         (__libc_tsd_define): Define using __thread.
4294
4295         * sunrpc/rpc_thread.c: Use __libc_tsd_define.
4296         (__rpc_thread_variables): Use __libc_tsd_get.
4297         (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
4298         __rpc_thread_variables, which might allocate what we're about to free.
4299
4300         * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
4301         thread-local variable.
4302         * resolv/netdb.h (h_errno): Define macro unconditionally.
4303         [_LIBC] (__set_h_errno): Macro moved to ...
4304         * include/netdb.h: ... here.
4305         [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
4306         [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
4307         [! _LIBC_REENTRANT]: #undef h_errno here.
4308
4309         * include/errno.h: Protect from multiple inclusion.
4310
4311         * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
4312         before defining them, since Linux's <linux/posix_types.h> might have
4313         defined them.
4314
4315 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4316
4317         * malloc/malloc.c (public_cALLOc): Check for overflow on
4318         multiplication.
4319         * sunrpc/xdr_array.c (xdr_array): Likewise.
4320         * sunrpc/rpc/types.h (mem_free): Add comment.
4321         Patch by Solar Designer <solar@openwall.com>.
4322
4323 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4324
4325         * sysdeps/unix/sysv/linux/kernel-features.h
4326         (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
4327
4328 2002-08-01  Roland McGrath  <roland@redhat.com>
4329
4330         * libio/fileops.c (_IO_file_sync_mmap): New function.
4331         (_IO_file_jumps_mmap): Use it.
4332         (_IO_file_underflow_mmap): Rewritten.  If after EOF or fflush,
4333         repeat the stat check and resize the mapped buffer as necessary.
4334
4335 2002-07-31  Roland McGrath  <roland@redhat.com>
4336
4337         * libio/fileops.c (decide_maybe_mmap): New static function.
4338         Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
4339         mmap the file contents.  Then switch the jump tables to the mmap
4340         tables if it worked, or the vanilla file tables if not.
4341         (_IO_file_underflow_maybe_mmap): New function.
4342         (_IO_file_seekoff_maybe_mmap): New function.
4343         (_IO_file_xsgetn_maybe_mmap): New function.
4344         (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
4345         * libio/libioP.h: Declare those.
4346         * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
4347         (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
4348         * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
4349         If the stream is read-only, set its jump tables to those new ones.
4350         * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
4351         jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
4352         We need the tables set before _IO_file_attach.
4353
4354         * libio/tst-mmap-eofsync.c: New file.
4355         * libio/tst-mmap-fflushsync.c: New file.
4356         * libio/bug-mmap-fflush.c: New file.
4357         * libio/tst-mmap2-eofsync.c: New file.
4358         * libio/Makefile (tests): Add them.
4359
4360         * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
4361         _IO_file_underflow_mmap fails, it already set the appropriate bit.
4362
4363 2002-07-31  Jeff Bailey  <jbailey@gnu.org>
4364
4365         * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
4366         Declarations moved to <bits/sys_errlist.h>.  Include that file.
4367         * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
4368         * sysdeps/generic/bits/sys_errlist.h: New file.  This does *not*
4369         declare sys_errlist and sys_nerr.
4370         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file.  Does
4371         provide declarations.
4372
4373 2002-07-31  Roland McGrath  <roland@redhat.com>
4374
4375         * elf/rtld.c (dl_main): Fix typo in error message.
4376
4377 2002-07-31  Roland McGrath  <roland@frob.com>
4378
4379         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
4380         __xstat -> __xstat64, __lseek -> __libc_lseek64.  Completes 2002-06-09
4381         sysdeps/mach/hurd/dl-sysdep.c change.
4382
4383 2002-07-28  Ulrich Drepper  <drepper@redhat.com>
4384
4385         * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
4386         -r`/build/include for kernel headers.
4387
4388         * po/fi.po: New file.
4389
4390 2002-07-15  Alexandre Oliva  <aoliva@redhat.com>
4391
4392         * configure.in (static_nss): Set to `yes' if --disable-shared.
4393
4394 2002-07-23  Bruno Haible  <bruno@clisp.org>
4395
4396         * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
4397         is set.
4398
4399 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4400
4401         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
4402         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
4403         arguments.
4404
4405 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4406
4407         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
4408         alias.
4409
4410 2002-07-21  Bruno Haible  <bruno@clisp.org>
4411
4412         * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
4413         * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
4414         sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
4415         trans_sysdep_tab_offset.
4416         (struct sysdep_segment): New type.
4417         (struct sysdep_string): New type.
4418         (SEGMENTS_END): New macro.
4419         * intl/gettextP.h (struct sysdep_string_desc): New type.
4420         (struct loaded_domain): New fields malloced, n_sysdep_strings,
4421         orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
4422         orig_tab, trans_tab, hash_tab to const pointers because they point
4423         into read-only memory.
4424         * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
4425         (PRI*): Define fallback values.
4426         (get_sysdep_segment_value): New function.
4427         (_nl_load_domain): Distinguish major and minor revision parts. Add
4428         support for minor revision 1 with system dependent strings.
4429         (_nl_unload_domain): Also free the 'malloced' field.
4430         * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
4431         now done in loadmsgcat.c. Add support for system dependent strings.
4432
4433 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
4434
4435         * posix/bug-regex7.c: New file.
4436         * posix/bug-regex8.c: New file.
4437         * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
4438
4439 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
4440
4441         * posix/bug-regex4.c (main): Fix typos.
4442         * posix/bug-regex6.c (main): Likewise.
4443
4444 2002-07-27  Ulrich Drepper  <drepper@redhat.com>
4445
4446         * posix/bug-regex6.c (main): Fix warnings.
4447
4448         * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
4449
4450         * iconv/iconv_prog.c (main): Improve error message for the cases
4451         where -t and/or -f parameter are missing.
4452
4453 2002-07-10  Stepan Kasal  <kasal@math.cas.cz>
4454
4455         * posix/regexec.c (re_match): Reorganize to remove duplicate code.
4456         (re_search): Likewise.
4457         (re_match_2): Likewise.
4458         (re_search_2): Likewise.
4459         (re_search_stub): New function.
4460         (re_search_2_stub): New function.
4461         * regcomp.c (re_compile_pattern): Typo in a comment fixed.
4462
4463 2002-07-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
4464
4465         * posix/regex_internal.h: Add new member STOP to struct re_string_t.
4466         (re_string_eoi): Use STOP instead of LEN.
4467         * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
4468         (re_string_construct): Likewise.
4469         (re_string_reconstruct): Adjust pstr->stop like pstr->len.
4470         * posix/regexec.c (re_search_internal): Add a new argument STOP
4471         so that it can handle the argument STOP of re_search_2 and re_match_2
4472         correctly.
4473         (regexec): Adapt to new I/F of re_search_internal.
4474         (re_search_stub): Likewise.
4475
4476 2002-07-25  Ulrich Drepper  <drepper@redhat.com>
4477
4478         * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
4479
4480         * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
4481
4482         * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
4483         * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
4484         of __divdi3.
4485
4486         * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
4487         * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
4488         * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
4489         alias for adjtimex syscall.
4490
4491         * elf/dl-minimal.c: Define __assert_fail_internal.
4492         * assert/assert.c: Likewise.
4493         * include/assert.h: Define __assert_file macro if !SHARED and not
4494         NOT_IN_libc.
4495
4496         * iconv/Makefile: Define NOT_IN_libc for objects in standalone
4497         programs.
4498         * locale/Makefile: Likewise.
4499         * nscd/Makefile: Likewise.
4500         * catgets/Makefile: Likewise.
4501
4502 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
4503
4504         * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
4505         compute current position.
4506
4507         * stdio-common/tst-fseek.c (main): Improve error messages.
4508
4509         * libio/tst-freopen.c (main): Remove unused variable.
4510
4511         * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
4512         succesful seek call.  Simplify error checking.
4513
4514 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4515
4516         * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
4517         * sysdeps/ia64/fpu/libm_support.h: Likewise.
4518
4519 2002-07-19  Roland McGrath  <roland@frob.com>
4520
4521         * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
4522         __libc_enable_secure is set.
4523
4524 2002-07-24  Roland McGrath  <roland@frob.com>
4525
4526         Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
4527         This implementation supports only IPv4.
4528         * inet/ifaddrs.h: New file.
4529         * sysdeps/generic/ifaddrs.c: New file.
4530         * sysdeps/gnu/ifaddrs.c: New file.
4531         * inet/test-ifaddrs.c: New file.
4532         * inet/Makefile (routines): Add ifaddrs.
4533         (headers): Add ifaddrs.h here.
4534         (tests): Add test-ifaddrs.
4535         * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
4536
4537         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
4538         socket call to get an AF_INET socket, instead of using __opensock.
4539         The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
4540
4541         * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
4542         if not -1 use it instead of calling __opensock.
4543         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
4544         * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
4545         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
4546
4547         * sysdeps/mach/hurd/ifreq.h: New file.
4548         * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
4549         * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
4550         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
4551
4552         * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
4553         which gets moved around.  Calculate size of mmap'd buffer instead.
4554
4555 2002-07-24  Philip Blundell  <philb@gnu.org>
4556
4557         * sysdeps/unix/arm/brk.S: Improve schedule.
4558         * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
4559         efficient instruction.
4560         (__socket): Optimize return sequence.
4561
4562 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
4563
4564         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
4565         sockets on old kernels.
4566
4567 2002-07-22  Philip Blundell  <philb@gnu.org>
4568
4569         * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
4570         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
4571         alias.
4572
4573 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
4574
4575         * locale/hashval.h: Make more self-contained by defining LONG_BITS.
4576         * locale/programs/simple-hash.c: Remove LONG_BITS definition.
4577
4578         * locale/programs/locarchive.c (add_locale_to_archive): Correct
4579         test to detect duplicate locales.
4580
4581         * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
4582         position would be before beginning of file.
4583         (_IO_file_seekoff_mmap): Likewise.
4584         * libio/Makefile (tests): Add bug-fseek.
4585         * libio/bug-fseek.c: New file.
4586
4587         * intl/explodename.c: Remove support for CEN-style locale variables.
4588         It was never used and shouldn't be since it's not portable.
4589         * intl/finddomain.c: Likewise.
4590         * intl/l10nflist.c: Likewise.
4591         * intl/loadinfo.h: Likewise.
4592         * locale/findlocale.c: Likewise.
4593
4594 2002-07-24  Roland McGrath  <roland@frob.com>
4595
4596         * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
4597         position, calculate it to take into account an active pushback buffer.
4598
4599         * libio/Makefile (tests): Add bug-ungetc.
4600         * libio/bug-ungetc.c: New file.
4601
4602 2002-07-23  Ulrich Drepper  <drepper@redhat.com>
4603
4604         * sysdeps/generic/libc-tls.c: New file.
4605         * csu/Makefile (routines): Add libc-tls.
4606         (static-only-routines): Add libc-tls.
4607         * elf/dl-support.c (_dl_phdr): New variable.
4608         (_dl_phnum): New variable.
4609         (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
4610         * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
4611         for !SHARED.  First look through auxiliary vector.  If TLS always
4612         call __pthread_initialize_minimal.
4613
4614         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
4615         in mmap call is never zero.
4616
4617 2002-07-23  Andreas Jaeger  <aj@suse.de>
4618
4619         * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
4620         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
4621
4622 2002-07-22  Ulrich Drepper  <drepper@redhat.com>
4623
4624         * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
4625         creation and removal of the temp file.
4626
4627         * libio/bug-rewind.c: Use test skeleton.  Use create_temp_file for
4628         file creation.
4629         * test-skeleton.c (create_temp_file): New function.
4630
4631 2002-07-22  Andreas Jaeger  <aj@suse.de>
4632
4633         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
4634         local label.
4635
4636 2002-07-21  Roland McGrath  <roland@frob.com>
4637
4638         * wcsmbs/Makefile (strtox-CFLAGS): New variable,
4639         put -I../include before -I../stdlib so we get the right errno.h et al.
4640         (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
4641         (CFLAGS-wcstof.c): Likewise.
4642         (CFLAGS-wcstold.c): Likewise.
4643         (CFLAGS-wcstod_l.c): Likewise.
4644         (CFLAGS-wcstof_l.c): Likewise.
4645         (CFLAGS-wcstold_l.c): Likewise.
4646
4647 2002-07-19  Roland McGrath  <roland@frob.com>
4648
4649         * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
4650
4651 2002-07-20  Ulrich Drepper  <drepper@redhat.com>
4652
4653         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
4654         __ASSUME_AT_XID is defined.
4655         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
4656         for 2.4.1 and up.
4657         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
4658         of AT_UID, AT_EUID, AT_GID, and AT_EGID.
4659
4660         * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
4661         (CFLAGS-wcstof.c): Likewise.
4662         (CFLAGS-wcstold.c): Likewise.
4663         (CFLAGS-wcstod_l.c): Likewise.
4664         (CFLAGS-wcstof_l.c): Likewise.
4665         (CFLAGS-wcstold_l.c): Likewise.
4666
4667 2002-07-18  Jakub Jelinek  <jakub@redhat.com>
4668
4669         * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
4670         __priority_which_t): Always typedef to int for C++.
4671
4672 2002-07-19  Ulrich Drepper  <drepper@redhat.com>
4673
4674         * configure.in: Add test for __thread support in compiler.
4675         * config.h.in: Add HAVE___THREAD.
4676         * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
4677         * include/sys/errno.h: Moved to...
4678         * stdlib/sys/errno.h: ...here.  New file.
4679         * stdlib/errno.h: New file.  Moved from...
4680         * include/errno.h: ...here.  Changed into an internal header defining
4681         libc-local things like __set_errno.
4682         * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
4683         bits/errno.h.
4684         * elf/dl-minimal.c: Include <tls.h>.  Define errno as thread-local
4685         variable if USE_TLS && HAVE___THREAD.  Don't define __errno_location
4686         either.
4687         * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
4688         from...
4689         (_dl_start_final): ...here.  Add code to initialize tls elements from
4690         bootstrap_map.
4691         * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
4692         if USE_TLS && HAVE___THREAD.
4693         * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
4694         * sysdeps/mach/hurd/bits/errno.h: Likewise.
4695         * sysdeps/standalone/arm/bits/errno.h: Likewise.
4696         * sysdeps/standalone/bits/errno.h: Likewise.
4697         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
4698         * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
4699         * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
4700         * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
4701         * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
4702         * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
4703         * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
4704         * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
4705         use GL(dl_rtld_map), use map parameter.
4706         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
4707         * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
4708         USE_TLS && HAVE___THREAD.
4709         * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
4710         definitions.  If USE_TLS && HAVE___THREAD store errooor value using
4711         TLS code sequence.
4712         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
4713
4714         * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
4715         * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
4716         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
4717         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
4718         * sysdeps/unix/sysv/linux/readv.c: Likewise.
4719         * sysdeps/unix/sysv/linux/writev.c: Likewise.
4720
4721 2002-07-17  Ulrich Drepper  <drepper@redhat.com>
4722
4723         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
4724         MS_INVALIDATE values.
4725
4726 2002-07-17  Andreas Schwab  <schwab@suse.de>
4727             Ulrich Drepper  <drepper@redhat.com>
4728
4729         * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
4730         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4731         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4732         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4733
4734 2002-07-01  H.J. Lu  <hjl@gnu.org>
4735
4736         * elf/circleload1.c (load_dso): Call "circlemod1" and check
4737         return value.
4738
4739         * elf/circlemod1.c (circlemod1): Return int.
4740         * elf/circlemod2.c (circlemod2): Likewise.
4741         * elf/circlemod2a.c (circlemod2): Likewise.
4742         * elf/circlemod3.c (circlemod3): Likewise.
4743         (circlemod3a): A new function.
4744
4745 2002-07-16  Ulrich Drepper  <drepper@redhat.com>
4746
4747         * catgets/tst-catgets.c (main): Don't expect results for
4748         untranslated messages.
4749
4750         * glibcbug.in: Fix little typo.  Remove STDIO.
4751
4752         * config.h.in: Fail if __FAST_MATH__ is defined.
4753         * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
4754         (CPPFLAGS-test-idouble.c): Likewise.
4755         (CPPFLAGS-test-ildouble.c): Likewise.
4756
4757 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
4758
4759         * intl/tst-gettext.sh: Pass -f option to msgfmt.
4760         * intl/tst-gettext.c: Correctly handle untranslated messages in
4761         positive tests.
4762
4763         * po/de.po: Update from translation team.
4764
4765 2002-07-02  H.J. Lu  <hjl@gnu.org>
4766
4767         * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>.  Always
4768         use ll/sc.
4769         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
4770
4771         * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
4772         to 2.4.0 for mips.
4773
4774 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
4775
4776         * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
4777         TLS fail if USE_TLS is not defined.
4778
4779         * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
4780         and adjust state for seek position.  [PR libc/4070]
4781         * libio/Makefile (tests): Add bug-rewind.
4782         * libio/bug-rewind.c: New file.
4783
4784 2002-07-12  Philip Blundell  <philb@gnu.org>
4785
4786         * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
4787         (__backtrace): Use it.
4788         * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define.  [PR libc/2632]
4789
4790 2002-07-12  Philip Blundell  <philb@gnu.org>
4791
4792         * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
4793         R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
4794         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
4795         (elf_machine_rela): Remove unused variable.
4796
4797         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
4798         (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
4799         define.
4800
4801 2002-07-12  Ulrich Drepper  <drepper@redhat.com>
4802
4803         * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
4804
4805 2002-07-14  Andreas Jaeger  <aj@suse.de>
4806
4807         * sysdeps/x86_64/bits/link.h: Add biarch support.
4808
4809 2002-07-13  Andreas Jaeger  <aj@suse.de>
4810
4811         * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
4812         Use correct indices.
4813         Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
4814
4815 2002-07-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4816
4817         * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
4818         * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
4819         * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
4820         * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
4821         * sysdeps/s390/s390-32/bits/link.h: Remove.
4822         * sysdeps/s390/s390-64/bits/link.h: Remove.
4823         * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
4824         * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
4825         * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
4826         * sysdeps/s390/bits/wordsize.h: New file.
4827         * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
4828         elfclass.h.
4829         * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
4830         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
4831         * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
4832         * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
4833         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
4834         * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
4835         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
4836         * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
4837         * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
4838         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
4839         * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
4840         * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
4841         resource.h.
4842         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
4843         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
4844         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
4845         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
4846         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
4847         * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
4848         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
4849         sigaction.h.
4850         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
4851         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
4852         siginfo.h.
4853         * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
4854         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
4855         * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
4856         socket.h.
4857         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
4858         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
4859         * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
4860         * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
4861         * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
4862         * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
4863         * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
4864         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
4865         procfs.h.
4866         * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
4867         * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
4868         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
4869         ucontext.h.
4870         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
4871         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
4872
4873 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
4874
4875         * Versions.def (libc): Add GLIBC_2.3.
4876         * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
4877         * stdlib/canonicalize.c: Add compatibility version for realpath
4878         and make new code available in GLIBC_2.3.
4879
4880 2002-07-06  Bruno Haible  <bruno@clisp.org>
4881
4882         * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
4883
4884 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
4885
4886         * resolv/res_hconf.c (_res_hconf_init): Move code into new
4887         function do_init.  Use __libc_once.
4888         (do_init): New function.
4889
4890         * iconvdata/iso8859-11.h: Removed.
4891         * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
4892         (distribute): Remove iso8859-11.h.
4893         * iconvdata/tst-tables.sh: Add ISO-8859-11.
4894
4895         * stdio-common/vfscanf.c (inchar): Restore errno from previous
4896         underflow operation if c == (W)EOF.
4897
4898 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
4899
4900         * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
4901         non-zero, adjust exponent.
4902         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
4903         Remove NO_LONG_DOUBLE aliases.
4904         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
4905         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
4906         (__log1pl): Raise divide by zero and invalid exceptions when needed.
4907         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
4908         1**y and -1**+-Inf.
4909         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
4910         Fix BITS_PER_MP_LIMB 32 extraction.
4911         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
4912         exceptions for qNaNs.
4913         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
4914         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
4915         Raise exceptions when needed.  Don't recurse unnecessarily.
4916         Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
4917         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
4918         exceptions for qNaNs.
4919         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
4920         to fix *quo return value sign.
4921         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
4922         case -Inf argument.
4923         * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
4924
4925 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
4926
4927         * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
4928         * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
4929         -DNDEBUG.
4930
4931 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
4932
4933         * malloc/hooks.c (realloc_check): If mremap succeeds actually use
4934         the result.
4935
4936         * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
4937         output parameter.  Reported by Denis Zaitsev <zzz@cd-club.ru>.
4938
4939         * Versions.def (libthread_db): Add GLIBC_2.3.
4940
4941 2002-07-09  Jakub Jelinek  <jakub@redhat.com>
4942
4943         * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
4944         new stream if possible.
4945         * libio/freopen64.c (freopen64): Likewise.
4946         * libio/Makefile (tests): Add tst-freopen.
4947         * libio/tst-freopen.c: New file.
4948
4949 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
4950
4951         * libio/stdio.h (obstack_printf): Add format attribute.
4952         (obstack_vprintf): Likewise.
4953
4954 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
4955
4956         * posix/regex_internal.h (re_token_t): Shrink the structure to 8
4957         resp. 16 bytes on 32-bit resp. 64-bit platforms.
4958         (re_charset_t, re_string_t): Reorder structure members for 64-bit
4959         architectures.
4960
4961 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
4962
4963         * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
4964         (init_dfa): ...here.
4965
4966 2002-07-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
4967
4968         * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
4969         OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
4970         nodes in parse trees.
4971         (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
4972         and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
4973         (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
4974         nodes which can epsilon transit.
4975         * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
4976         to IS_EPSILON_NODE macro.
4977         * posix/regexec.c (update_regs): New function to update registers
4978         by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
4979         (proceed_next_node): Use the entities of the nodes to determine
4980         whether the node can transit to.
4981         (set_regs): Use update_regs function to update registers.
4982
4983 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
4984
4985         * posix/bug-regex4.c (main): Remove duplicate setlocale.
4986         * posix/bug-regex6.c: New file.
4987         * posix/Makefile (tests): Add bug-regex6.
4988         (bug-regex6-ENV): Set LOCPATH.
4989
4990 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
4991
4992         * Versions.def [libpthread]: Add GLIBC_2.2.6.
4993         * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
4994
4995 2002-07-06  Bruno Haible  <bruno@clisp.org>
4996
4997         * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
4998
4999 2002-07-06  Bruno Haible  <bruno@clisp.org>
5000
5001         * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
5002         declarations.
5003
5004         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
5005
5006         * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
5007
5008         * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
5009         not _UTSNAME_H.
5010         * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
5011
5012         * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
5013         * sysdeps/generic/bits/ustat.h: Likewise.
5014
5015         * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
5016
5017 2002-07-08  Andreas Jaeger  <aj@suse.de>
5018
5019         * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
5020
5021 2002-07-08  Andreas Jaeger  <aj@suse.de>
5022
5023         * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
5024
5025 2002-07-06  Andreas Jaeger  <aj@suse.de>
5026
5027         * sysdeps/x86_64/fpu/bits/mathinline.h: New file.
5028         * sysdeps/x86_64/fpu/s_copysign.S: New file.
5029         * sysdeps/x86_64/fpu/s_copysignf.S: New file.
5030         * sysdeps/x86_64/fpu/s_copysignl.S: New file.
5031         * sysdeps/x86_64/fpu/s_finitel.S: New file.
5032         * sysdeps/x86_64/fpu/s_fmax.S: New file.
5033         * sysdeps/x86_64/fpu/s_fmaxf.S: New file.
5034         * sysdeps/x86_64/fpu/s_fmaxl.S: New file.
5035         * sysdeps/x86_64/fpu/s_fmin.S: New file.
5036         * sysdeps/x86_64/fpu/s_fminf.S: New file.
5037         * sysdeps/x86_64/fpu/s_fminl.S: New file.
5038
5039 2002-06-05  Brian Youmans <3diff@gnu.org>
5040
5041         * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
5042         * sysdeps/ia64/fpu/e_acosf.S: Likewise.
5043         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
5044         * sysdeps/ia64/fpu/e_asin.S: Likewise.
5045         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
5046         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
5047         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
5048         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
5049         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
5050         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
5051         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
5052         * sysdeps/ia64/fpu/e_exp.S: Likewise.
5053         * sysdeps/ia64/fpu/e_expf.S: Likewise.
5054         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
5055         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
5056         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
5057         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
5058         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
5059         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
5060         * sysdeps/ia64/fpu/e_log.S: Likewise.
5061         * sysdeps/ia64/fpu/e_logf.S: Likewise.
5062         * sysdeps/ia64/fpu/e_pow.S: Likewise.
5063         * sysdeps/ia64/fpu/e_powf.S: Likewise.
5064         * sysdeps/ia64/fpu/e_powl.S: Likewise.
5065         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
5066         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
5067         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
5068         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
5069         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
5070         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
5071         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
5072         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
5073         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
5074         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
5075         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
5076         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
5077         * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
5078         * sysdeps/ia64/fpu/libm_error.c: Likewise.
5079         * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
5080         * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
5081         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
5082         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
5083         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
5084         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
5085         * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
5086         * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
5087         * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
5088         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
5089         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
5090         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
5091         * sysdeps/ia64/fpu/s_logb.S: Likewise.
5092         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
5093         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
5094         * sysdeps/ia64/fpu/s_modf.S: Likewise.
5095         * sysdeps/ia64/fpu/s_modff.S: Likewise.
5096         * sysdeps/ia64/fpu/s_modfl.S: Likewise.
5097         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
5098         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
5099         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
5100         * sysdeps/ia64/fpu/s_rint.S: Likewise.
5101         * sysdeps/ia64/fpu/s_rintf.S: Likewise.
5102         * sysdeps/ia64/fpu/s_rintl.S: Likewise.
5103         * sysdeps/ia64/fpu/s_round.S: Likewise.
5104         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
5105         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
5106         * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
5107         * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
5108         * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
5109         * sysdeps/ia64/fpu/s_significand.S: Likewise.
5110         * sysdeps/ia64/fpu/s_significandf.S: Likewise.
5111         * sysdeps/ia64/fpu/s_significandl.S: Likewise.
5112         * sysdeps/ia64/fpu/s_tan.S: Likewise.
5113         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
5114         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
5115         * sysdeps/ia64/fpu/s_trunc.S: Likewise.
5116         * sysdeps/ia64/fpu/s_truncf.S: Likewise.
5117         * sysdeps/ia64/fpu/s_truncl.S: Likewise.
5118         * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
5119         reflect IBM donation of math library to FSF
5120         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5121         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
5122         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5123         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5124         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5125         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5126         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
5127         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
5128         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5129         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
5130         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
5131         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
5132         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
5133         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
5134         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
5135         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
5136         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5137         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
5138         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5139         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
5140         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
5141         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
5142         * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
5143         * sysdeps/vax/__longjmp.c: Likewise.
5144         * sysdeps/vax/setjmp.c: Likewise.
5145         * libio/filedoalloc.c: Fixed BSD copying permission notice to
5146         remove advertising clause
5147         * sysdeps/vax/htonl.s: Likewise.
5148         * sysdeps/vax/htons.s: Likewise.
5149         * libio/wfiledoalloc.c: Likewise.
5150         * stdlib/random.c: Likewise.
5151         * stdlib/random_r.c: Likewise.
5152         * sysdeps/mach/sys/reboot.h: Likewise.
5153         * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
5154         * sysdeps/posix/getaddrinfo.c: Likewise.
5155         * sunrpc/des_impl.c: Updated license permission notice to Lesser
5156         GPL and corrected pointer to point to the correct license.
5157
5158 2002-07-04  Andreas Jaeger  <aj@suse.de>
5159
5160         * scripts/config.guess: New upstream version.
5161         * scripts/config.sub: Likewise.
5162
5163 2002-07-02  Andreas Schwab  <schwab@suse.de>
5164
5165         * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
5166         in parallel to bumping up the buffer pointer.
5167
5168 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
5169
5170         * math/libm-test.inc (acos_test): Add missing L suffix for
5171         expected result.
5172         (cpow_test): Likewise.
5173         * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
5174         error for acos (0.0625).
5175
5176 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
5177
5178         * locale/iso-639.def: Add entry for Ganda.
5179         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
5180         definition.
5181         (address_finish): Handle entries with two letter ISO 639 code.
5182
5183         * iconvdata/Makefile: Recreate gconv-modules.cache file in target
5184         directory if it existed before.
5185         * iconv/iconvconfig.c: Implement --prefix option.
5186
5187         * math/libm-test.inc (cexp_test): Add missing L suffix for
5188         expected result.  Reported by Stephen L Moshier <steve@moshier.net>.
5189         * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
5190         1.25 i).
5191
5192 2002-05-29  H.J. Lu  <hjl@gnu.org>
5193
5194         * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
5195         is turned on.
5196
5197 2002-05-28  H.J. Lu  <hjl@gnu.org>
5198
5199         * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
5200         are not dlopened on the dependency list of a dlopened object.
5201
5202 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
5203
5204         * elf/dl-lookup.c (add_dependency): It is not necessary to add
5205         dependencies if they are created between objects which are created
5206         while processing RTLD_NOW for objects loaded as part of the same
5207         dlopen call.
5208
5209 2002-06-14  H.J. Lu  <hjl@gnu.org>
5210
5211         * elf/Makefile (tests): Add circleload1.
5212         (modules-names): Add circlemod1, circlemod2, circlemod3,
5213         circlemod1a, circlemod2a and circlemod3a.
5214         ($(objpfx)circleload1): New target.
5215         ($(objpfx)circleload1.out): Likewise.
5216         ($(objpfx)circlemod1.so): Likewise.
5217         ($(objpfx)circlemod2.so): Likewise.
5218         ($(objpfx)circlemod1a.so): Likewise.
5219         ($(objpfx)circlemod2a.so): Likewise.
5220         * elf/circleload1.c: New file.
5221         * elf/circlemod1.c: New file.
5222         * elf/circlemod1a.c: New file.
5223         * elf/circlemod2.c: New file.
5224         * elf/circlemod2a.c: New file.
5225         * elf/circlemod3.c: New file.
5226         * elf/circlemod3a.c: New file.
5227
5228 2002-06-18  Amos Waterland  <apw@us.ibm.com>
5229
5230         * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
5231         file descriptor.
5232         * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
5233         add check for fd not open for writing.
5234
5235         * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
5236         completed element(s) and do not suspend thread if so.  Patch
5237         heavily modified by drepper.
5238
5239         * rt/tst-aio7.c: New file.  Regression test for problems which the
5240         above three changes fix.
5241         * rt/Makefile (tests): Add tst-aio7.
5242
5243 2002-06-29  Ulrich Drepper  <drepper@redhat.com>
5244
5245         * rt/tst-aio6.c: Fix comment.
5246
5247         * catgets/gencat.c (read_input_file): Handle more than one slash
5248         at end of line correctly [PR libc/3926].
5249         Based on a patch by Steven Kim <steven.kim@peregrine.com>.
5250
5251         * catgets/sample.SJIS: Add test case for above bug.
5252         * catgets/test-gencat.c: Adjust test code.
5253         * catgets/test-gencat.sh: Adjust expected results.
5254
5255         * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
5256         to skip relative relocations.
5257         Patch by Geoff Keating <geoffk@redhat.com>.
5258
5259 2002-05-26  Bruno Haible  <bruno@clisp.org>
5260
5261         * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
5262         (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
5263         All callers changed.
5264         * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
5265         STANDARD_FROM_LOOP_ERR_HANDLER.
5266         (utf8_internal_loop): Likewise.
5267         (ucs2_internal_loop): Likewise.
5268         (internal_ucs2_loop): Perform error handling like in
5269         STANDARD_FROM_LOOP_ERR_HANDLER.
5270         * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
5271         in STANDARD_FROM_LOOP_ERR_HANDLER.
5272         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5273         handling.
5274         * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
5275         in STANDARD_FROM_LOOP_ERR_HANDLER.
5276         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5277         handling.
5278         * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
5279         in STANDARD_FROM_LOOP_ERR_HANDLER.
5280         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5281         handling.
5282         * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
5283         STANDARD_FROM_LOOP_ERR_HANDLER.
5284         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
5285         * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
5286         * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
5287         * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
5288         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
5289         * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
5290         * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
5291         * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
5292         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
5293         * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
5294         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
5295         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
5296         * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
5297         * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
5298         * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
5299         * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
5300         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
5301         * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
5302         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
5303         * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
5304         * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
5305         * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
5306         * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
5307         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5308         * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
5309         * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
5310         * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
5311         * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
5312         * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise.  When ignoring
5313         an error, still set result = __GCONV_ILLEGAL_INPUT.
5314         (BODY for TO_LOOP): Likewise.
5315         * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
5316         STANDARD_FROM_LOOP_ERR_HANDLER.
5317         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5318         * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
5319         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5320         handling.
5321         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5322         * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
5323         STANDARD_FROM_LOOP_ERR_HANDLER.
5324         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5325         * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
5326         STANDARD_FROM_LOOP_ERR_HANDLER.
5327         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5328         * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
5329         STANDARD_FROM_LOOP_ERR_HANDLER.
5330         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5331         * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
5332         STANDARD_FROM_LOOP_ERR_HANDLER.
5333         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5334         * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
5335         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5336         handling.
5337         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5338         * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
5339         * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
5340         * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
5341
5342 2002-06-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5343
5344         * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
5345         labels in assembler instructions.
5346
5347 2002-06-25  Ulrich Drepper  <drepper@redhat.com>
5348
5349         * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
5350         not enough content is available.
5351         * libio/tst-eof.c: New file.
5352         * libio/Makefile (tests): Add tst-eof.
5353
5354         * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
5355         update atime.
5356         * libio/tst-atime.c: New file.
5357         * libio/Makefile (tests): Add tst-atime.
5358
5359         * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
5360         handling of overly long words.
5361
5362 2002-06-25  Andreas Jaeger  <aj@suse.de>
5363
5364         * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
5365         to not use 32-bit pc relative relocations.
5366         (elf_machine_dynamic): Likewise.
5367
5368 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
5369
5370         * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
5371         (__GETDENTS): Check for failed getdents64 syscall.
5372         * dirent/Makefile (tests): Add bug-readdir1.
5373         * dirent/bug-readdir1.c: New file.
5374
5375 2002-06-17  Jakub Jelinek  <jakub@redhat.com>
5376
5377         * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
5378         lookups.
5379         * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
5380         code.  Print TLS modid and offset for modules containing PT_TLS
5381         segments.
5382
5383 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
5384
5385         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5386         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5387         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5388         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5389
5390 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
5391
5392         * nss/getXXbyYY_r.c (NEW, NEW1): Define.
5393         (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
5394         (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
5395         * nss/getXXent_r.c (NEW, NEW1): Define.
5396         (NEW (REENTRANT_GETNAME)): Strong alias to
5397         INTERNAL (REENTRANT_GETNAME).
5398         (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
5399
5400 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
5401
5402         * libio/fileops.c (_IO_file_setbuf_mmap): New function.
5403         (_IO_file_jumps_mmap): Use it.
5404         * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
5405         * libio/libioP.h: Remove _IO_wdefault_setbuf and
5406         _IO_wdefault_setbuf_internal prorotypes.  Add _IO_file_setbuf_mmap
5407         prototype.
5408         * libio/wfileops.c (_IO_wfile_setbuf): Removed.
5409         (_IO_wfile_jumps_mmap): Don't use it anymore.
5410         * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
5411         * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
5412         _IO_wdefault_setbuf.
5413         * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
5414         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
5415         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
5416
5417 2002-06-05  Jakub Jelinek  <jakub@redhat.com>
5418
5419         * libio/Makefile (tests): Add tst-mmap-setvbuf.
5420         * libio/tst-mmap-setvbuf.c: New test.
5421
5422 2002-06-21  Andreas Jaeger  <aj@suse.de>
5423
5424         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
5425
5426 2002-06-18  Jakub Jelinek  <jakub@redhat.com>
5427
5428         * include/unistd.h (__fork_internal): Remove.
5429         (__fork): Don't define to __fork_internal.
5430         * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
5431         * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
5432         * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
5433         * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
5434         * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
5435
5436 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
5437
5438         * po/hr.po: New file.
5439
5440 2002-06-11  Wolfram Gloger  <wg@malloc.de>
5441
5442         * malloc/malloc.c: Fix error path when new_heap() returns NULL.
5443         Reported by Michael Meissner <meissner@redhat.com>.
5444
5445 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
5446
5447         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
5448         Patch by Hans Boehm <hans_boehm@hp.com>.
5449
5450 2002-06-20  Andreas Jaeger  <aj@suse.de>
5451
5452         * math/libm-test.inc: Use exact values as input parameters,
5453         compute output parameters with 36 digits for 128-bit long doubles.
5454         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
5455         * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
5456         * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
5457
5458 2002-06-13  Stephen L Moshier  <steve@moshier.net>
5459
5460         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
5461         argument or result is subnormal.
5462
5463 2002-06-19  Ulrich Drepper  <drepper@redhat.com>
5464
5465         * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
5466         quotient.
5467         * sysdeps/i386/fpu/s_remquof.S: Likewise.
5468         * sysdeps/i386/fpu/s_remquol.S: Likewise.
5469
5470         * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
5471
5472 2002-06-17  David Mosberger  <davidm@hpl.hp.com>
5473
5474         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
5475         typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
5476         Reported by Peter A. Buhr.
5477
5478 2002-06-15  Roland McGrath  <roland@frob.com>
5479
5480         * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
5481         warning.
5482
5483         * sysdeps/mach/hurd/getcwd.c
5484         (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
5485
5486         * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
5487         * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
5488
5489         * sysdeps/alpha/divrem.h: Use local label instead of global one for
5490         jump to local subroutine.
5491
5492 2002-06-14  Roland McGrath  <roland@frob.com>
5493
5494         * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
5495         * sysdeps/mach/hurd/Makeconfig: ... here.
5496
5497 2002-06-13  Andreas Schwab  <schwab@suse.de>
5498
5499         * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
5500         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
5501         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
5502
5503 2002-06-13  Roland McGrath  <roland@frob.com>
5504
5505         * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
5506         * hurd/hurdstartup.c (_hurd_startup): Likewise.
5507         Use intptr_t instead of int for argc in stack layout.
5508         * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
5509         (_dl_init_first): Likewise.
5510         (_hurd_stack_setup): Likewise.
5511         (init1): Add a cast.
5512         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
5513
5514         * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
5515         argument to pfinet_siocgifconf RPC.
5516
5517 2002-06-13  Andreas Schwab  <schwab@suse.de>
5518
5519         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
5520         expansion order.
5521
5522 2002-06-12  Roland McGrath  <roland@frob.com>
5523
5524         * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
5525         if already defined.
5526         [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
5527         [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
5528
5529 2002-06-11  Roland McGrath  <roland@frob.com>
5530
5531         * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
5532         file on [!RTLD_STAT64].
5533         * sysdeps/mach/hurd/fxstat64.c: Likewise.
5534
5535         * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
5536         (__fdopen): Use INTUSE.
5537         * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
5538
5539         * stdio-common/tmpfile64.c: File removed.
5540         * sysdeps/generic/tmpfile64.c: New file.
5541         * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
5542         if not already defined.
5543         (tmpfile): Use it in place of __GT_FILE.
5544
5545         * include/unistd.h: Declare __chown_internal.
5546
5547         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
5548         * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
5549
5550 2002-06-09  Roland McGrath  <roland@frob.com>
5551
5552         Update to new Hurd RPC interfaces supporting 64-bit file sizes.
5553         * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
5554         value of HURD_INTERFACE_VERSION >= 20020609.
5555         * sysdeps/mach/hurd/configure: Regenerated.
5556         * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
5557         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
5558         convert a struct stat64 into a struct stat and return 0 or -1
5559         with errno set to EOVERFLOW.
5560         * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
5561         for struct statfs64 to struct statfs.
5562         * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
5563         * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
5564         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
5565         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
5566         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
5567         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
5568         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
5569         * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
5570         * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
5571         * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
5572         * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
5573         * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
5574         * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
5575         * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
5576         * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
5577         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
5578         * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
5579         * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
5580         * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
5581         * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
5582         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
5583         Use struct stat64 for io_stat argument.
5584         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
5585         * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
5586         to io_seek.
5587         * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
5588         * hurd/fd-write.c (_hurd_fd_write): Likewise.
5589         * hurd/hurd/fd.h: Update decls.
5590         * sysdeps/mach/hurd/getcwd.c
5591         (_hurd_canonicalize_directory_name_internal): Use ino64_t
5592         and struct dirent64.
5593         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
5594         (__xstat): Renamed to __xstat64, use struct stat64 for argument.
5595         (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
5596         (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
5597
5598 2002-06-08  Roland McGrath  <roland@frob.com>
5599
5600         * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
5601         instead of unsigned long int for __allocation and __size members.
5602
5603 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
5604
5605         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5606         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5607         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5608         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5609
5610 2002-06-07  Roland McGrath  <roland@frob.com>
5611
5612         * sysdeps/mach/hurd/bits/environments.h: File removed.
5613
5614 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
5615
5616         * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
5617         * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
5618         * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
5619         * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
5620         * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
5621         (sendfile64): Likewise.
5622         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
5623         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
5624         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
5625         Likewise.
5626         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
5627
5628         * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
5629         already defined.
5630
5631 2002-06-04  Bruno Haible  <bruno@clisp.org>
5632
5633         * sysdeps/cris/stackinfo.h: New file.
5634
5635         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
5636         to an integer type before performing bit operations on it.
5637
5638 2002-06-05  Roland McGrath  <roland@frob.com>
5639
5640         * sysdeps/generic/sendfile.c: Include <errno.h>.
5641         * sysdeps/generic/sendfile64.c: Likewise.
5642
5643         * io/Makefile (routines): Add sendfile and sendfile64.
5644         (headers): Add sys/sendfile.h to the list.
5645         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
5646         * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
5647         * io/sys/sendfile.h: ... here.
5648         * sysdeps/generic/sendfile.c: New file.
5649         * sysdeps/generic/sendfile64.c: New file.
5650
5651         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
5652         Move sendfile, sendfile64 to ...
5653         * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
5654         * sysdeps/mach/hurd/sendfile.c: New file.
5655         * sysdeps/mach/hurd/sendfile64.c: New file.
5656
5657         * sysdeps/mach/nanosleep.c: New file.
5658
5659 2002-06-04  Roland McGrath  <roland@frob.com>
5660
5661         * sysdeps/alpha/elf/configure.in: New file.  Check for TLS support.
5662         * sysdeps/alpha/elf/configure: New file (generated).
5663
5664 2002-06-02  Roland McGrath  <roland@frob.com>
5665
5666         * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
5667
5668 2002-06-01  Roland McGrath  <roland@frob.com>
5669
5670         * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
5671         i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
5672
5673 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
5674
5675         * resolv/resolv.h (struct __res_state): Remove unused nstimes.
5676         Add nsmap.
5677         * resolv/res_init.c (__res_vinit): Initialize nsmap array.
5678         Remove nstimes setting.
5679         (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
5680         * resolv/res_send.c (res_nsend): Don't close unconditionally if
5681         there is mix of IPv6 and IPv4 nameservers.
5682         Use nsmap array to find free slots and preserve nameserver ordering.
5683         Fix RES_ROTATE.
5684
5685 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
5686
5687         * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
5688         use this header with LFS.
5689
5690         * po/sk.po: Update from translation team.
5691
5692 2002-05-28  Andreas Schwab  <schwab@suse.de>
5693
5694         * sysdeps/generic/readelflib.c (process_elf_file): Give correct
5695         message when finding object of wrong class.
5696
5697 2002-05-28  Jakub Jelinek  <jakub@redhat.com>
5698
5699         * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
5700         Patch by <radu@netsoft.ro>.
5701
5702 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
5703
5704         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
5705         Add readahead.
5706         * sysdeps/unix/sysv/linux/readahead.c: New file.
5707         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
5708         * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
5709         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
5710         Add sendfile64 alias to sendfile syscall.
5711         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5712         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
5713         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5714         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
5715         syscall.
5716
5717         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
5718         special section for PIC register loading.
5719         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
5720
5721         * config.h.in: Define HAVE_HIDDEN.
5722         * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
5723
5724         * elf/elf.h: Correct Alpha TLS relocations according to last spec.
5725
5726 2002-05-28  Roland McGrath  <roland@frob.com>
5727
5728         * sysdeps/mach/alpha/setfpucw.c: New file.
5729
5730 2002-05-26  Roland McGrath  <roland@frob.com>
5731
5732         * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
5733         Use integer_t instead of int for IOC_VOID case.
5734
5735 2002-05-27  Alexandre Oliva  <aoliva@redhat.com>
5736
5737         * configure.in (DO_STATIC_NSS): Define if --disable-shared.
5738
5739 2002-05-26  Bruno Haible  <bruno@clisp.org>
5740
5741         * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
5742         end of the ISO-8859-7 from idx table.
5743
5744 2002-05-27  Ulrich Drepper  <drepper@redhat.com>
5745
5746         * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
5747
5748 2002-05-24  David S. Miller  <davem@redhat.com>
5749
5750         * string/bits/string2.h (memset): Do not try to optimize when
5751         not _STRING_ARCH_unaligned if GCC will do the right thing.
5752
5753 2002-05-21  Isamu Hasegawa  <isamu@yamato.ibm.com>
5754
5755         * posix/regex.c: Define `inline' as a macro into nothing for the
5756         compilers which lack the keyword.
5757         * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
5758         for the compatibility of gawk.
5759         * posix/regcomp.c: Add fake implementation of isblank() for the
5760         environments which lack the function.
5761         Don't use free_charset() in case of non-i18n envs.
5762         (build_range_exp): Don't use i18n related code in case of non-i18n
5763         envs.
5764         (build_collating_symbol): Likewise.
5765         (build_equiv_class): Likewise.
5766         (build_charclass): Likewise.
5767         (re_compile_fastmap_iter): Likewise.
5768         (parse_bracket_exp): Likewise.
5769         (build_word_op): Likewise.
5770         (regfree): Don't use free_charset() in case of non-i18n envs.
5771         * posix/regex_internal.h: Remove COMPLEX_BRACKET from
5772         re_token_type_t in case of non-i18n envs.
5773         Don't define re_charset_t in case of non-i18n envs.
5774         Change the type of wcs of re_string_t from wchar_t to wint_t,
5775         since we store also WEOF.
5776         * posix/regex_internal.c: (re_string_realloc_buffers): Change
5777         the type of wcs of re_string_t from wchar_t to wint_t.
5778         (re_string_reconstruct): Likewise.
5779         (create_ci_newstate): Don't use i18n related code in case of
5780         non-i18n envs.
5781         (create_cd_newstate): Likewise.
5782
5783 2002-05-24  Ulrich Drepper  <drepper@redhat.com>
5784
5785         * iconv/loop.c: Fix typo.
5786
5787 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
5788
5789         * inet/ether_line.c (ether_line): Fix a typo causing only
5790         lower 4 bits of each ethernet address byte being assigned.
5791         Don't modify what line points to.
5792         * inet/tst-ether_aton.c (main): Add ether_line tests.
5793
5794 2002-05-23  Marcus Brinkmann  <marcus@gnu.org>
5795
5796         * manual/filesys.texi: Don't make readlink example leak memory
5797         when readlink fails.
5798
5799 2002-05-20  Ulrich Drepper  <drepper@redhat.com>
5800
5801         * iconv/loop.c: Fix condition for defining unaligned loop.  Add
5802         some more security checks.
5803
5804 2002-05-17  David S. Miller  <davem@redhat.com>
5805
5806         * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
5807
5808 2002-05-16  David S. Miller  <davem@redhat.com>
5809
5810         * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
5811         (elf_machine_dynamic): Use it to force PIC register to be loaded.
5812         (elf_machine_load_address): Likewise.
5813         * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
5814
5815         * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
5816         is unaligned, do not forget to fully initialize %g1 magic value.
5817
5818         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
5819         register definitions and provide 32-bit variants of structures
5820         during 64-bit builds.
5821
5822         * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
5823         * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
5824         * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
5825         * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
5826         _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
5827         (_FP_FROM_INT): Perform right shifts on unsigned integer type.
5828         Do not clear implicit one bit here, it must be done post-rounding.
5829         Only pad to the left using left shift if value uses less than the
5830         available fractional bits.
5831
5832 2002-05-20  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5833
5834         * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
5835         instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
5836         (shared-only-routines): Likewise.
5837         * sysdeps/powerpc/libgcc-compat.c: New file.
5838         * sysdeps/wordsize-32/cmpdi2.c: Removed.
5839         * sysdeps/wordsize-32/fixdfdi.c: Removed.
5840         * sysdeps/wordsize-32/fixsfdi.c: Removed.
5841         * sysdeps/wordsize-32/shdi3.c: Removed.
5842
5843 2002-05-16  Bruno Haible  <bruno@clisp.org>
5844
5845         * MakeTAGS (libc.pot): Don't sort the output.
5846         * po/header.pot: Update to match xgettext 0.11 output.
5847
5848 2002-05-16  Bruno Haible  <bruno@clisp.org>
5849
5850         * MakeTAGS (subdirs): Remove duplicates.
5851
5852 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
5853
5854         * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
5855         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
5856         alias.
5857
5858 2002-05-19  Andreas Jaeger  <aj@suse.de>
5859
5860         * sysdeps/unix/sysv/linux/configure.in: Warn against an
5861         installation in /usr/local.
5862
5863 2002-05-16  Bruno Haible  <bruno@clisp.org>
5864
5865         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
5866         string as argument of #error.
5867
5868 2002-05-15  Ulrich Drepper  <drepper@redhat.com>
5869
5870         * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
5871         don't define static.  Remove old __realpath function.  TC1 of
5872         POSIX 2001 will allow the second parameter to be NULL.
5873         * stdlib/test-canon.c: Comment out test for NULL as second
5874         parameter of realpath.
5875
5876         * time/offtime.c (__offtime): Set errno if overflow is detected.
5877
5878         * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
5879         * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
5880         dl-brk and dl-sbrk.
5881
5882         * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
5883         (fdimf): Likewise.
5884
5885 2002-05-15  Roland McGrath  <roland@frob.com>
5886
5887         * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
5888
5889 2002-05-12  Bruno Haible  <bruno@clisp.org>
5890
5891         * iconvdata/testdata/EUC-JISX0213: New file.
5892         * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
5893         * iconvdata/testdata/SHIFT_JISX0213: New file.
5894         * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
5895         * iconvdata/testdata/ISO-2022-JP-3: New file.
5896         * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
5897         * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
5898         * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
5899         contains comments indicating precomposed characters.
5900
5901 2002-04-21  Bruno Haible  <bruno@clisp.org>
5902
5903         * iconvdata/iso-2022-jp-3.c: New file.
5904         * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
5905         * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
5906         (LDFLAGS-ISO-2022-JP-3.so): New variable.
5907         (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
5908         (distribute): Add iso-2022-jp-3.c.
5909
5910 2002-05-12  Bruno Haible  <bruno@clisp.org>
5911
5912         * iconvdata/tst-table-to.c (main): Restore handling of
5913         transliterations, broken by last patch.
5914
5915 2002-05-12  Bruno Haible  <bruno@clisp.org>
5916
5917         * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
5918
5919 2002-05-12  Bruno Haible  <bruno@clisp.org>
5920
5921         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
5922         when there is not enough room in the output buffer.
5923         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5924
5925 2002-04-20  Bruno Haible  <bruno@clisp.org>
5926
5927         * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
5928         macros.
5929         (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
5930         Also make this macro work if FROM_DIRECTION evaluates to 0.
5931         (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
5932         (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
5933         of consume_incomplete.
5934         * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
5935         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
5936         4, not 8.
5937         * iconvdata/cp1258.c: Likewise.
5938         * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
5939         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
5940         not 2.
5941         * iconvdata/ibm933.c: Likewise.
5942         * iconvdata/ibm935.c: Likewise.
5943         * iconvdata/ibm937.c: Likewise.
5944         * iconvdata/ibm939.c: Likewise.
5945         * iconvdata/iso-2022-cn.c: Define
5946         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5947         {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
5948         * iconvdata/iso-2022-cn-ext.c: Likewise.
5949         * iconvdata/iso-2022-jp.c: Define
5950         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5951         {MIN,MAX}_NEEDED_{FROM,TO}.
5952         * iconvdata/tcvn5712-1.c: Define
5953         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5954         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
5955         * iconvdata/euc-jisx0213.c: Define
5956         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5957         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
5958         * iconvdata/shift_jisx0213.c: Likewise.
5959
5960 2002-05-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5961
5962         * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
5963         shdi3, fixdfdi, fixsfdi in csu dir.
5964         (shared-only-routines): Likewise.
5965         * sysdeps/wordsize-32/cmpdi2.c: New file.
5966         * sysdeps/wordsize-32/shdi3.c: New file.
5967         * sysdeps/wordsize-32/fixdfdi.c: New file.
5968         * sysdeps/wordsize-32/fixsfdi.c: New file.
5969         * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
5970         __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
5971         __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
5972
5973         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
5974         Only use va_arg if the argument will be used [PR libc/3259].
5975
5976 2002-05-06  Michael A. Schmidt  <mmaass@us.ibm.com>
5977
5978         * catgets/catgets.c (catopen): Free buffer if internal catalog
5979         open fails.
5980
5981 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
5982
5983         * debug/xtrace.sh: Make more robust.  For realtime tracking use
5984         non-buffering methods.
5985         * debug/pcprofiledump.c: Implement -u option.
5986         Patch by Roger Luethi <rl@hellgate.ch>.
5987
5988 2002-05-11  Jakub Jelinek  <jakub@redhat.com>
5989
5990         * include/netinet/in.h (bindresvport_internal): Add prototype.
5991         * include/rpc/auth.h  (authunix_create_internal,
5992         authunix_create_default_internal, authnone_create_internal,
5993         authdes_pk_create_internal): Add prototypes.
5994         * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
5995         clntudp_create_internal, clntudp_bufcreate_internal,
5996         clntunix_create_internal): Add prototypes.
5997         * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
5998         svc_getreq_internal, svc_getreq_common_internal,
5999         svc_getreqset_internal, svc_getreq_poll_internal,
6000         svc_register_internal, svc_unregister_internal,
6001         svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
6002         * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
6003         * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
6004         __setsockopt, __getsockname, __bind, __listen): Add prototypes.
6005         * inet/rexec.c (rexec_af): Use __listen and __getsockname.
6006         * inet/rcmd.c (rcmd_af): Use __listen.
6007         (rresvport_af): Use __bind.
6008         * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
6009         authunix_create, authunix_create_default, authnone_create,
6010         authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
6011         clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
6012         svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
6013         svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
6014         _authenticate, add INTDEF after such function definitions.
6015         Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
6016         __setsockopt, __getsockname instead of non-__ variants.
6017         * sunrpc/pmap_rmt.c: Likewise.
6018         * sunrpc/rtime.c: Likewise.
6019         * sunrpc/svc_udp.c: Likewise.
6020         * sunrpc/clnt_unix.c: Likewise.
6021         * sunrpc/svc_unix.c: Likewise.
6022         * sunrpc/bindrsvprt.c: Likewise.
6023         * sunrpc/svc_tcp.c: Likewise.
6024         * sunrpc/auth_none.c: Likewise.
6025         * sunrpc/clnt_raw.c: Likewise.
6026         * sunrpc/clnt_tcp.c: Likewise.
6027         * sunrpc/auth_unix.c: Likewise.
6028         * sunrpc/key_call.c: Likewise.
6029         * sunrpc/clnt_gen.c: Likewise.
6030         * sunrpc/pm_getmaps.c: Likewise.
6031         * sunrpc/clnt_simp.c: Likewise.
6032         * sunrpc/pmap_clnt.c: Likewise.
6033         * sunrpc/svc_run.c: Likewise.
6034         * sunrpc/svc.c: Likewise.
6035         * sunrpc/svc_simple.c: Likewise.
6036         * sunrpc/pm_getport.c: Likewise.
6037         * sunrpc/auth_des.c: Likewise.
6038         * sunrpc/svc_auth.c: Likewise.
6039         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
6040         __register_frame_info_table_bases, __deregister_frame_info_bases):
6041         Add INTDEF.
6042         (__register_frame_info_bases_internal,
6043         __register_frame_info_table_bases_internal,
6044         __deregister_frame_info_bases_internal): Add prototypes.
6045         (__register_frame_info, __register_frame): Use INTUSE in call to
6046         __register_frame_info_bases.
6047         (__register_frame_info_table): Similarly.
6048         (__deregister_frame_info, __deregister_frame): Similarly.
6049         * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
6050         sendto as weak alias.
6051         * sysdeps/mach/hurd/sendto.c: Likewise.
6052         * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
6053         recvfrom as weak alias.
6054         * sysdeps/mach/hurd/recvfrom.c: Likewise.
6055         * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
6056         * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
6057         recvmsg as weak alias.
6058         * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
6059         * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
6060         sendmsg as weak alias.
6061         * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
6062         * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
6063         setsockopt, add setsockopt as weak alias.
6064         * sysdeps/mach/hurd/setsockopt.c: Likewise.
6065         * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
6066         weak alias.
6067         * sysdeps/mach/hurd/bind.c: Likewise.
6068         * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
6069         as weak alias.
6070         * sysdeps/mach/hurd/listen.c: Likewise.
6071         * sysdeps/generic/getsockname.c (__getsockname): Renamed from
6072         getsockname, add getsockname as weak alias.
6073         * sysdeps/mach/hurd/getsockname.c: Likewise.
6074         * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
6075         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
6076         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
6077         * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
6078         __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
6079         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
6080         Add aliases.
6081         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6082         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6083         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6084         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6085         * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
6086         * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
6087         * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
6088         * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
6089         * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
6090         * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
6091         * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
6092         * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
6093
6094 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
6095
6096         * locale/programs/localedef.h (show_archive_content): Add verbose
6097         argument.
6098         * locale/programs/localedef.c (main): Adjust caller.
6099         * locale/programs/locarchive.c (struct nameent, struct dataent): New
6100         types.
6101         (nameentcmp, dataentcmp): New functions.
6102         (xstrcmp): Remove.
6103         (show_archive_content): Print verbose listing with --list-archive -v.
6104
6105 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
6106
6107         * locale/programs/locarchive.c (open_archive): Take extra argument
6108         readonly.  If true open file with O_RDONLY and don't create the
6109         archive if it doesn't exist.
6110         Adapt all callers.
6111         (close_archive): Don't do anything if fd element is -1.
6112         * locale/programs/localedef.h (open_archive): Adjust prototype.
6113         * locale/programs/locfile.c (write_all_categories): Adjust open_archive
6114         call.
6115
6116         * malloc/malloc.c (__posix_memalign): Correct check for size of
6117         alignment value [PR libc/3444].
6118
6119         * include/stdio.h: Remove references to old stdio implementation.
6120
6121         * libio/Makefile (bug-ungetwc2-ENV): Define.
6122
6123 2002-05-13  Roland McGrath  <roland@frob.com>
6124
6125         * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
6126
6127         * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
6128
6129 2002-05-13  Marcus Brinkmann  <marcus@gnu.org>
6130
6131         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
6132         Allocate three, not two, more than LEN when appending '/.'.
6133         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.  Don't check
6134         if NAME ends with '/.' if it is shorter than 2 chars.
6135
6136 2002-05-12  Roland McGrath  <roland@frob.com>
6137
6138         * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
6139         files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
6140
6141         * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
6142         file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
6143
6144 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
6145
6146         * sysdeps/ia64/Makefile: Remove extra endif.
6147         * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
6148
6149 2002-05-10  Andreas Schwab  <schwab@suse.de>
6150
6151         * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
6152
6153 2002-05-09  Andreas Jaeger  <aj@suse.de>
6154
6155         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New file.
6156         * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
6157         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
6158
6159         * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
6160         * sysdeps/wordsize-64/glob.c: ...here.
6161         * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
6162         * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
6163         * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
6164
6165 2002-05-08  Roland McGrath  <roland@frob.com>
6166
6167         * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
6168         O_NOTRANS flag in "." lookup.
6169
6170 2002-05-05  Ulrich Drepper  <drepper@redhat.com>
6171
6172         * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
6173
6174 2002-05-04  Ulrich Drepper  <drepper@redhat.com>
6175
6176         * locale/duplocale.c (__duplocale): Update special members only
6177         when allocation succeeded.
6178
6179 2002-05-03  Roland McGrath  <roland@frob.com>
6180
6181         * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
6182         we can only build libc.so.0.3(GLIBC_2.2.6) now.
6183
6184 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
6185
6186         * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
6187         * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
6188         __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
6189         * sysdeps/ia64/ia64libgcc.S: New file.
6190
6191 2002-05-02  Ulrich Drepper  <drepper@redhat.com>
6192
6193         * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
6194
6195         * malloc/memusage.c: Distinguish anonymous mmap.
6196
6197 2002-05-01  Roland McGrath  <roland@frob.com>
6198
6199         * sysdeps/mach/hurd/close.c: #undef __close before function defn,
6200         and use INTDEF on it.
6201         * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
6202
6203         * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
6204
6205         * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
6206
6207 2002-05-01  Ulrich Drepper  <drepper@redhat.com>
6208
6209         * malloc/memusage.c: Add support for tracking mmap & friends.
6210         * malloc/memusage.sh: Implement -m/--mmap option.
6211
6212 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
6213
6214         * locale/programs/locarchive.c (create_archive): Add archivefname
6215         argument, create fname from it.
6216         (enlarge_archive): Honour output_prefix.
6217         (open_archive): Likewise.
6218
6219 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
6220
6221         * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
6222         too many stpcpy macros.
6223
6224 2002-04-26  Bruno Haible  <bruno@clisp.org>
6225
6226         * locale/programs/ld-collate.c (collate_read): Cast first argument
6227         for "%.*s" to int.
6228
6229 2002-04-26  Bruno Haible  <bruno@clisp.org>
6230
6231         * include/libintl.h (__ngettext, __dngettext, __dcngettext,
6232         __dcngettext_internal): New declarations.
6233         (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
6234         attribute declarations.
6235
6236 2002-04-30  Roland McGrath  <roland@frob.com>
6237
6238         Removed old GNU stdio implementation; GNU libio is now the only option.
6239         * configure.in: Removed --enable-libio option and @stdio@ subst var.
6240         Define USE_IN_LIBIO unconditionally.
6241         * configure: Regenerated.
6242         * Makeconfig (stdio): Set to libio by default.
6243         * config.make.in (stdio): Variable removed.
6244         * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
6245         * sysdeps/unix/sysv/linux/configure: Regenerated.
6246         * sysdeps/mach/hurd/configure.in: Don't test $stdio.
6247         * sysdeps/mach/hurd/configure: Regenerated.
6248         * stdio/.cvsignore: File removed.
6249         * stdio/Makefile: File removed.
6250         * stdio/Versions: File removed.
6251         * stdio/__fbufsize.c: File removed.
6252         * stdio/__flbf.c: File removed.
6253         * stdio/__fpending.c: File removed.
6254         * stdio/__fpurge.c: File removed.
6255         * stdio/__freadable.c: File removed.
6256         * stdio/__freading.c: File removed.
6257         * stdio/__fsetlocking.c: File removed.
6258         * stdio/__fwritable.c: File removed.
6259         * stdio/__fwriting.c: File removed.
6260         * stdio/clearerr.c: File removed.
6261         * stdio/fclose.c: File removed.
6262         * stdio/fcloseall.c: File removed.
6263         * stdio/feof.c: File removed.
6264         * stdio/ferror.c: File removed.
6265         * stdio/fflush.c: File removed.
6266         * stdio/fgetc.c: File removed.
6267         * stdio/fgetpos.c: File removed.
6268         * stdio/fgets.c: File removed.
6269         * stdio/fileno.c: File removed.
6270         * stdio/fmemopen.c: File removed.
6271         * stdio/fopen.c: File removed.
6272         * stdio/fopncook.c: File removed.
6273         * stdio/fputc.c: File removed.
6274         * stdio/fputs.c: File removed.
6275         * stdio/fread.c: File removed.
6276         * stdio/freopen.c: File removed.
6277         * stdio/fseek.c: File removed.
6278         * stdio/fsetpos.c: File removed.
6279         * stdio/ftell.c: File removed.
6280         * stdio/fwrite.c: File removed.
6281         * stdio/getc.c: File removed.
6282         * stdio/getchar.c: File removed.
6283         * stdio/getdelim.c: File removed.
6284         * stdio/gets.c: File removed.
6285         * stdio/glue.c: File removed.
6286         * stdio/internals.c: File removed.
6287         * stdio/linewrap.c: File removed.
6288         * stdio/linewrap.h: File removed.
6289         * stdio/memstream.c: File removed.
6290         * stdio/newstream.c: File removed.
6291         * stdio/obstream.c: File removed.
6292         * stdio/putc.c: File removed.
6293         * stdio/putchar.c: File removed.
6294         * stdio/puts.c: File removed.
6295         * stdio/rewind.c: File removed.
6296         * stdio/setbuf.c: File removed.
6297         * stdio/setbuffer.c: File removed.
6298         * stdio/setlinebuf.c: File removed.
6299         * stdio/setvbuf.c: File removed.
6300         * stdio/stdio.h: File removed.
6301         * stdio/ungetc.c: File removed.
6302         * stdio/vasprintf.c: File removed.
6303         * stdio/vscanf.c: File removed.
6304         * stdio/vsnprintf.c: File removed.
6305         * stdio/vsprintf.c: File removed.
6306         * stdio/vsscanf.c: File removed.
6307         * sysdeps/generic/defs.c: File removed.
6308         * sysdeps/generic/fdopen.c: File removed.
6309         * sysdeps/generic/pipestream.c: File removed.
6310         * sysdeps/generic/stdio_init.c: File removed.
6311         * sysdeps/generic/sysd-stdio.c: File removed.
6312         * sysdeps/generic/vdprintf.c: File removed.
6313         * sysdeps/mach/hurd/defs.c: File removed.
6314         * sysdeps/mach/hurd/fdopen.c: File removed.
6315         * sysdeps/mach/hurd/pipestream.c: File removed.
6316         * sysdeps/mach/hurd/stdio_init.c: File removed.
6317         * sysdeps/mach/hurd/sysd-stdio.c: File removed.
6318         * sysdeps/mach/hurd/vdprintf.c: File removed.
6319         * sysdeps/posix/defs.c: File removed.
6320         * sysdeps/posix/fdopen.c: File removed.
6321         * sysdeps/posix/pipestream.c: File removed.
6322         * sysdeps/posix/stdio_init.c: File removed.
6323         * sysdeps/posix/vdprintf.c: File removed.
6324         * sysdeps/unix/pipestream.c: File removed.
6325         * sysdeps/unix/sysv/sysd-stdio.c: File removed.
6326         * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
6327         * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
6328
6329 2002-04-29  Roland McGrath  <roland@frob.com>
6330
6331         * include/libc-symbols.h (link_warning): Use `unused' attribute.
6332
6333 2002-04-28  Ulrich Drepper  <drepper@redhat.com>
6334
6335         * sysdeps/generic/tls.h: Describe what must be defined.
6336
6337         * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
6338         glob_in_dir [PR libc/3385].
6339         * posix/globtest.sh: Add test case.
6340
6341         * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
6342         //TRANSLIT twice.
6343
6344 2002-04-27  Ulrich Drepper  <drepper@redhat.com>
6345
6346         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
6347         _internal symbol handling.
6348         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6349
6350 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
6351
6352         * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
6353         * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
6354
6355 2002-04-26  Isamu Hasegawa  <isamu@yamato.ibm.com>
6356
6357         * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
6358         not _LIBC and RE_ENABLE_I18N.
6359         (build_range_exp): Implement for not _LIBC.
6360         (build_collating_symbol): Likewise.
6361         (parse_bracket_exp): Unify redundant error handlings.
6362         Don't erase mbcset for non matching list in multibyte envs.
6363         (build_word_op): Add '_' to matching list for \w operator.
6364         * posix/regex_internal.c (re_string_construct): Invoke
6365         build_upper_buffer in case of not RE_ENABLE_I18N.
6366         (re_string_reconstruct): Don't touch cur_state in case of not
6367         RE_ENABLE_I18N.
6368         * posix/regex_internal.h (attribute_hidden): New macro in case of
6369         not _LIBC.
6370         (re_charset_t): Define range_starts/ends in case of not _LIBC.
6371         * posix/regexec.c (sift_states_iter_mb): Hide in case of not
6372         RE_ENABLE_I18N.
6373         (transit_state_mb): Likewise.
6374         (check_node_accept_bytes): Implement the code evaluating range
6375         expression in case of not _LIBC.
6376         (find_collation_sequence_value): Hide in case of not _LIBC.
6377
6378 2002-04-26  Jakub Jelinek  <jakub@redhat.com>
6379
6380         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
6381         i386/semctl.c.
6382         (__old_semctl, __new_semctl): Only use va_arg if the argument will
6383         be used.
6384
6385 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
6386
6387         * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
6388
6389         * sysdeps/ia64/strncpy.S: Fix recovery code.
6390         Patch by David Mosberger <davidm@hpl.hp.com>.
6391
6392 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6393
6394         * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
6395         GLIBC_2.2.6.
6396
6397 2002-04-14  Bruno Haible  <bruno@clisp.org>
6398
6399         * posix/regex.c (re_max_failures): Add back symbol for binary
6400         compatibility.
6401
6402 2002-04-22  Isamu Hasegawa  <isamu@yamato.ibm.com>
6403
6404         * posix/regcomp.c (re_compile_internal): Adapt it to new interface
6405         of buffer building functions.
6406         * posix/regex_internal.c (re_string_allocate): New function.
6407         (re_string_realloc_buffers): New function.
6408         (re_string_skip_chars): New function.
6409         (re_string_reconstruct): New function.
6410         (re_string_construct): Adapt it to new interface of buffer building
6411         functions.
6412         (re_string_construct_common): Likewise.
6413         (build_wcs_buffer): Likewise.
6414         (build_wcs_upper_buffer): Likewise.
6415         (build_upper_buffer): Likewise.
6416         (re_string_translate_buffer): Likewise.
6417         (re_string_context_at): Adapt it to variable length buffers.
6418         * posix/regex_internal.h (re_string_t): Add new fields to handle
6419         variable length buffers.
6420         (re_match_context_t): Likewise.
6421         * posix/regexec.c (re_search_internal): Adapt it to new interface
6422         of re_string_t and re_match_context_t.
6423         (acquire_init_state_context): Likewise.
6424         (check_matching): Likewise.
6425         (check_halt_state_context): Likewise.
6426         (proceed_next_node): Likewise.
6427         (set_regs): Likewise.
6428         (sift_states_backward): Likewise.
6429         (clean_state_log_if_need): Likewise.
6430         (sift_states_iter_mb): Likewise.
6431         (sift_states_iter_bkref): Likewise.
6432         (add_epsilon_backreference): Likewise.
6433         (transit_state): Likewise.
6434         (transit_state_sb): Likewise.
6435         (transit_state_mb): Likewise.
6436         (transit_state_bkref): Likewise.
6437         (transit_state_bkref_loop): Likewise.
6438         (check_node_accept): Likewise.
6439         (match_ctx_init): Likewise.
6440         (extend_buffers): New function.
6441
6442 2002-04-21  Bruno Haible  <bruno@clisp.org>
6443
6444         * iconvdata/tst-table.sh: For the second check, use the truncated
6445         GB18030 charmap table, like for the first check.
6446
6447 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6448
6449         * elf/dl-load.c (open_verify): Correct __lseek parameters.
6450         Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
6451
6452 2002-04-23  H.J. Lu  <hjl@gnu.org>
6453
6454         * include/math.h (isfinite): Fix a typo.
6455
6456 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6457
6458         * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
6459         which is created by the test suite.
6460
6461 2002-04-20  Bruno Haible  <bruno@clisp.org>
6462
6463         * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
6464         (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
6465
6466 2002-04-20  Bruno Haible  <bruno@clisp.org>
6467
6468         * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
6469         to avoid gcc warning.
6470
6471 2002-04-20  Bruno Haible  <bruno@clisp.org>
6472
6473         * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
6474         of data->__statep->__count.
6475
6476 2002-04-20  Bruno Haible  <bruno@clisp.org>
6477
6478         * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
6479         tag characters.
6480         * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
6481
6482 2002-04-24  Roland McGrath  <roland@frob.com>
6483
6484         * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
6485         use END macro instead of our own .end directive.
6486         Use `callsys' insn mnemonic instead of `call_pal'.
6487
6488         * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
6489
6490         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
6491         macro; we need this for Hurd.
6492
6493         Log entry was missing for 2002/03/24 commit of rev 1.8,
6494         goes with 2002-03-17 changes.
6495         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
6496         (sysdep_routines): Append ioperm here.
6497         (sysdep_headers): Append sys/io.h here.
6498
6499 2002-04-23  Roland McGrath  <roland@frob.com>
6500
6501         * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
6502         * sysdeps/mach/hurd/sendto.c: Likewise.
6503         * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
6504         * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
6505         * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
6506
6507 2002-04-22  Roland McGrath  <roland@frob.com>
6508
6509         * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
6510         failure from i386_io_perm_* RPCs to ENOSYS.
6511
6512 2002-04-22  Andreas Jaeger  <aj@suse.de>
6513
6514         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
6515
6516         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
6517
6518         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
6519         register instead of destroying %rbx.
6520
6521 2002-04-21  Ulrich Drepper  <drepper@redhat.com>
6522
6523         * string/string.h: Declare strerror_r also for XPG6.
6524
6525 2002-04-19  Roland McGrath  <roland@frob.com>
6526
6527         * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
6528
6529 2002-04-20  Ulrich Drepper  <drepper@redhat.com>
6530
6531         * Makefile: Add handling of xtests and xcheck targets.
6532         * MakeTAGS: Likewise.
6533         * Makeconfig: Likewise.
6534         * Makerules: Likewise.
6535         * Rules: Likewise.
6536         * manual/Makefile: Likewise.
6537         * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
6538         * sunrpc/thrsvc.c: New file.  By Zack Weinberg.
6539
6540 2002-04-11  Zack Weinberg  <zack@codesourcery.com>
6541
6542         * include/rpc/rpc.h (struct rpc_thread_variables): Remove
6543         authnone_private_s.
6544         * sunrpc/auth_none.c: Include bits/libc-lock.h.
6545         Delete #ifdef _RPC_THREAD_SAFE_ block.
6546         (authnone_private): Make a struct, not a pointer to struct.
6547         (authnone_private_guard): New once-control variable.
6548         (authnone_create_once): New function, split out of
6549         authnone_create.  No need to allocate memory.
6550         (authnone_create): Just call authnone_create_once via
6551         __libc_once, then return &authnone_private->no_client.
6552         (authnone_marshal): Access private data via CLIENT argument,
6553         not authnone_private pointer.
6554         Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
6555         * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
6556         authnone_private_s.
6557
6558 2002-04-12  H.J. Lu  <hjl@gnu.org>
6559
6560         * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
6561
6562 2002-04-18  Bruno Haible  <bruno@clisp.org>
6563
6564         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
6565         FROM_DIRECTION): Make the FROM direction stateless.
6566         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
6567         FROM_DIRECTION): Likewise.
6568
6569 2002-04-15  Bruno Haible  <bruno@clisp.org>
6570
6571         * iconvdata/JISX0213.TXT: New file.
6572         * iconvdata/jisx0213.h: New file.
6573         * iconvdata/jisx0213.c: New file.
6574         * iconvdata/euc-jisx0213.c: New file.
6575         * iconvdata/shift_jisx0213.c: New file.
6576         * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
6577         * iconvdata/EUC-JISX0213.precomposed: New file.
6578         * iconvdata/SHIFT_JISX0213.precomposed: New file.
6579         * iconvdata/SHIFT_JISX0213.irreversible: New file.
6580         * iconvdata/tst-table-to.c (main): Make it work for encodings for
6581         which the "to" direction is stateful.
6582         * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
6583         * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
6584         SHIFT_JISX0213.
6585         (libJISX0213-routines): New variable.
6586         (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
6587         (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
6588         (LDFLAGS-libJISX0213.so): New variable.
6589         (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
6590         SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
6591         jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
6592
6593 2002-04-15  Bruno Haible  <bruno@clisp.org>
6594
6595         * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
6596         uint32_t.  Update to Unicode 3.2.
6597         (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
6598         (BODY for TO_LOOP): Handle the ASCII range specially.
6599         * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
6600         * iconvdata/testdata/BIG5HKSCS: Remove a character.
6601         * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
6602
6603 2002-04-15  Bruno Haible  <bruno@clisp.org>
6604
6605         * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
6606         __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
6607
6608 2002-04-15  Bruno Haible  <bruno@clisp.org>
6609
6610         * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
6611         (ucs4_to_cns11643): Update.
6612         * iconvdata/cns11643.c: Update to Unicode 3.2.
6613         (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
6614         __cns11643_from_ucs4p2_tab): Regenerated.
6615         (__cns11643_from_ucs4p2c_tab): New array.
6616         * iconvdata/cvs11643l1.c: Update comments.
6617         * iconvdata/EUC-TW.irreversible: Remove two entries.
6618
6619 2002-04-15  Bruno Haible  <bruno@clisp.org>
6620
6621         * locale/C-translit.h.in: Update to Unicode 3.2.
6622         Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
6623         <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
6624
6625 2002-04-15  Bruno Haible  <bruno@clisp.org>
6626
6627         * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
6628         (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
6629
6630 2002-04-15  Bruno Haible  <bruno@clisp.org>
6631
6632         * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
6633         invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
6634         always one byte, not 0 bytes in some cases and 2 bytes in others.
6635
6636         * iconvdata/tst-table-from.c (main): Correct the usage message.
6637
6638 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
6639
6640         * posix/regcomp.c (parse_expression): Fix incorrect error code.
6641         (parse_dup_op): Fix error handling like "a{}".
6642         (parse_bracket_exp): Add error handling.
6643         (fetch_number): Add error handling for "a{<very_large_number>}".
6644
6645 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
6646
6647         * posix/regcomp.c (parse_bracket_symbol): Add error handling
6648         in case that the symbol name is too long.
6649         (build_charclass): Handle [:lower:]/[:uppper:] correctly
6650         in case of REG_ICASE.
6651
6652 2002-04-19  Andreas Jaeger  <aj@suse.de>
6653
6654         * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
6655         <hartvige@mips.com>.
6656
6657 2002-04-15  H.J. Lu  <hjl@gnu.org>
6658
6659         * include/math.h (__finitel_internal): Declare only if
6660         __NO_LONG_DOUBLE_MATH is not defined.
6661         (__isinfl_internal): Likewise.
6662         (__isnanl_internal): Likewise.
6663
6664         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
6665         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6666         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6667         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
6668         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6669         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6670         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6671
6672         * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
6673         __fcntl_internal.
6674
6675         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
6676         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
6677
6678 2002-04-15  Bruno Haible  <bruno@clisp.org>
6679
6680         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
6681         (BODY for TO_LOOP): Likewise.
6682         * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
6683         * iconvdata/tst-table.sh: Add support for encodings which contain
6684         precomposed Unicode characters, known to the iconv converter in both
6685         directions but not listed in the charmap.
6686         * iconvdata/IBM856.irreversible: New file.
6687         * iconvdata/IBM922.irreversible: New file.
6688         * iconvdata/IBM1132.irreversible: New file.
6689         * iconvdata/IBM1133.irreversible: New file.
6690         * iconvdata/IBM1160.irreversible: New file.
6691         * iconvdata/IBM1161.irreversible: New file.
6692         * iconvdata/IBM1163.irreversible: New file.
6693         * iconvdata/IBM1164.irreversible: New file.
6694         * iconvdata/ARMSCII-8.irreversible: New file.
6695         * iconvdata/TCVN5712-1.precomposed: New file.
6696         * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
6697         IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
6698         ARMSCII-8, TCVN5712-1.
6699         * iconvdata/Makefile (distribute): Add IBM856.irreversible,
6700         IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
6701         IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
6702         IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
6703
6704 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
6705
6706         * time/tst-mktime.c: Include <stdlib.h>.  Use %d, not %ld format
6707         for EVENING69.  Include offsets in TZ environment variable.
6708
6709 2002-04-18  Ulrich Drepper  <drepper@redhat.com>
6710
6711         * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
6712         avoid compiler warnings.
6713
6714         * locale/programs/localedef.c (main): Always call
6715         construct_output_path.
6716
6717         * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
6718
6719         * locale/programs/locfile.c (to_archive): New variable.  To collect
6720         data which has to be added to the locale archive.
6721         (write_all_categories): Take new third parameter with locale name.
6722         Unless no_archive flag set add new locale data to the archive
6723         (write_locale_data): Unless no-archive flag set store generated data
6724         in to_archive data structure instead of generation output file.
6725         Add new parameter with locale category index.
6726         * locale/programs/locfile.h: Add new parameters in declaractions of
6727         write_all_categories and write_locale_data.
6728         * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
6729         --add-to-archive, and --delete-from-archive options.  Pass extra
6730         parameter to write_all_categories.
6731         * locale/programs/localedef.h: Add prototypes for functions in
6732         locarchive.c.
6733         * locale/locarchive.h: New file.
6734         * locale/programs/locarchive.c: New file.
6735         * locale/Makefile (distribute): Add programs/locarchive.c and
6736         locarchive.h.
6737         (localedef-modules): Add md5 and locarchive.
6738         Add vpath to crypt subdir for md5.c.
6739
6740         * locale/programs/ld-address.c: Pass locale category ID as new second
6741         parameter to write_locale_data.
6742         * locale/programs/ld-collate.c: Likewise.
6743         * locale/programs/ld-ctype.c: Likewise.
6744         * locale/programs/ld-identification.c: Likewise.
6745         * locale/programs/ld-measurement.c: Likewise.
6746         * locale/programs/ld-messages.c: Likewise.
6747         * locale/programs/ld-monetary.c: Likewise.
6748         * locale/programs/ld-name.c: Likewise.
6749         * locale/programs/ld-numeric.c: Likewise.
6750         * locale/programs/ld-paper.c: Likewise.
6751         * locale/programs/ld-telephone.c: Likewise.
6752         * locale/programs/ld-time.c: Likewise.
6753
6754         * locale/simple-hash.c: Move compute_hashval function from here...
6755         * locale/hashval.h: ...to here.  New file.
6756         * locale/simple-hash.h: Add prototype for compute_hashval.
6757
6758         * include/libintl.h: Minor cleanups.
6759
6760 2002-04-16  Ulrich Drepper  <drepper@redhat.com>
6761
6762         * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
6763
6764 2002-04-15  Ulrich Drepper  <drepper@redhat.com>
6765
6766         * include/sys/stat.h: Fix typo.  Patch by HJ Lu.
6767
6768 2002-04-14  Bruno Haible  <bruno@clisp.org>
6769
6770         * locale/programs/charmap.c (charmap_read): Don't access result if
6771         result == NULL.
6772
6773 2002-02-17  Andreas Schwab  <schwab@suse.de>
6774
6775         * elf/reldep7.c: New file.
6776         * elf/reldep7mod1.c: New file.
6777         * elf/reldep7mod2.c: New file.
6778         * elf/Makefile: Add rules to build and run reldep7.
6779
6780 2002-04-14  Jakub Jelinek  <jakub@redhat.com>
6781
6782         * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
6783         the end of the function.  Pass original flags to recursive call if
6784         add_dependency failed.
6785         (_dl_lookup_versioned_symbol): Likewise.
6786
6787 2002-04-13  Jakub Jelinek  <jakub@redhat.com>
6788
6789         * time/mktime.c (__mktime_internal): If year is 69, don't bail out
6790         early, but check whether it overflowed afterwards.
6791         * time/tst-mktime.c (main): Add new tests.
6792
6793 2002-04-14  Ulrich Drepper  <drepper@redhat.com>
6794
6795         * debug/xtrace.sh: Fix program name in help message.
6796         Patch by Roger Luethi <rl@hellgate.ch>.
6797
6798         * include/sys/stat.h: Add prototypes for __lxstat_internal and
6799         __lxstat64_internal.  Add macros __lxstat and __lxstat64 if not
6800         NOT_IN_libc.
6801         * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
6802         * sysdeps/mach/hurd/lxstat.c: Likewise.
6803         * sysdeps/unix/common/lxstat.c: Likewise.
6804         * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
6805         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
6806         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
6807         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6808         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
6809         * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
6810         * sysdeps/mach/hurd/lxstat64.c: Likewise.
6811         * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
6812         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
6813
6814         * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
6815         prototypes.  Add __mbrlen and __mbrtowc macros.
6816         * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
6817         * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
6818
6819         * include/unistd.h: Add prototype for __write_internal and add
6820         __libc_write macro is SHARED.
6821         * sysdeps/generic/write.c: Use INTDEF for __write.
6822         * sysdeps/mach/hurd/write.c: Likewise.
6823         * sysdeps/unix/sysv/aix/write.c: Likewise.
6824         * sysdeps/unix/syscalls.list: Add __libc_write alias.
6825
6826         * assert/assert.c: Replace STR_N_SIZE with something usable in
6827         macro arguments.
6828         * assert/assert-perr.c: Likewise.
6829
6830         * include/sys/socket.h: Declare __libc_sa_len_internal and define
6831         SA_LEN macro to use it if not NOT_IN_libc.
6832         * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
6833
6834         * include/fcntl.h: Declare __open_internal and define __open and
6835         __libc_open macros if not NOT_IN_libc.
6836         * sysdeps/generic/open.c: Use INTDEF for __open.
6837         * sysdeps/mach/hurd/open.c: Likewise.
6838         * sysdeps/unix/sysv/aix/open.c: Likewise.
6839         * sysdeps/unix/syscalls.list: Add __open_internal alias.
6840
6841         * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
6842         has correct number.
6843
6844         * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
6845         * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
6846         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
6847         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
6848
6849         * include/wctype.h: Declare __iswalpha_l_internal,
6850         __iswdigit_l_internal, __iswspace_l_internal,
6851         __iswxdigit_l_internal, and __iswctype_internal.  Define
6852         __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
6853         __iswxdigit_l macros if not NOT_IN_libc.
6854         * wctype/iswctype.c: Use INTDEF for __iswctype.
6855         * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
6856
6857         * include/math.h: Declare __isinf_internal, __isinfl_internal,
6858         __isnan_internal, and __isnanl_internal.
6859         * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
6860         __isnan, and __isnanl.
6861         * stdio-common/printf_size.c: Likewise.
6862         * sysdeps/generic/printf_fphex.c: Likewise.
6863         * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
6864         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
6865         * sysdeps/ia64/fpu/s_isinf.S: Likewise.
6866         * sysdeps/ia64/fpu/s_isnan.S: Likewise.
6867         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
6868         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
6869         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
6870         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
6871         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
6872         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
6873         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
6874         * sysdeps/m68k/s_isinfl.c: Likewise.
6875         * sysdeps/m68k/fpu/s_isinf.c: Likewise.
6876         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
6877
6878         * include/sys/time.h: Declare __gettimeofday_internal and define
6879         __gettimeofday macro if not NOT_IN_libc.
6880         * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
6881         * sysdeps/mach/gettimeofday.c: Likewise.
6882         * sysdeps/posix/gettimeofday.c: Likewise.
6883         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
6884         * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
6885         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
6886         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
6887
6888         * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
6889         and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
6890         Remove __lstat and __fstat inline functions.
6891         * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
6892         * sysdeps/mach/hurd/fxstat.c: Likewise.
6893         * sysdeps/unix/fxstat.c: Likewise.
6894         * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
6895         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
6896         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
6897         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
6898         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
6899         * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
6900         * sysdeps/mach/hurd/fxstat64.c: Likewise.
6901         * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
6902         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
6903
6904         * include/unistd.h: Declare __getpid_internal and define
6905         __getpid macro if not NOT_IN_libc.
6906         * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
6907         * sysdeps/generic/getpid.c: Likewise.
6908         * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
6909         * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
6910
6911         * include/unistd.h: Declare __getpgid_internal and define
6912         __getpgid macro if not NOT_IN_libc.
6913         * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
6914         * sysdeps/mach/hurd/getpgid.c: Likewise.
6915         * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
6916         * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
6917         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
6918         * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
6919
6920         * include/unistd.h: Declare __getpagesize_internal and define
6921         __getpagesize macro if not NOT_IN_libc.
6922         * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
6923         __getpagesize.
6924         * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
6925         * sysdeps/mach/getpagesize.c: Likewise.
6926         * sysdeps/posix/getpagesize.c: Likewise.
6927         * sysdeps/unix/getpagesize.c: Likewise.
6928         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
6929         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
6930         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
6931         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
6932
6933 2002-04-13  Andreas Jaeger  <aj@suse.de>
6934
6935         * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
6936         as clobber to reduce register pressure.
6937         (__strpbrk_cg): Likewise.
6938         (__mempcpy_by4): Likewise.
6939         (__strstr_cg): Likewise.
6940         Add prototype for __memrchr.
6941
6942 2002-04-13  Andreas Schwab  <schwab@suse.de>
6943
6944         * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
6945         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
6946         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
6947
6948 2002-04-13  Ulrich Drepper  <drepper@redhat.com>
6949
6950         * elf/do-lookup.h [!VERSIONED]: Add new parameter flags.  Use it to
6951         check whether the caller prefers getting the most recent version of
6952         a symbol of the earliest version.
6953         * elf/dl-lookup.c: Adjust all callers of do_lookup.  Change
6954         _dl_do_lookup to also take the new parameter and pass it on.
6955         Change 'explicit' parameter of _dl_lookup_symbol and
6956         _dl_lookup_versioned_symbol to flags.  Adjust tests.
6957         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
6958         * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
6959         _dl_lookup_versioned_symbol.
6960         * elf/dl-reloc.c: Likewise.
6961         * elf/dl-runtime.c: Likewise.
6962         * elf/dl-sym.c: Likewise.
6963         * sysdeps/mips/dl-machine.h: Likewise.
6964
6965 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
6966
6967         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
6968         in a token.
6969         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
6970
6971 2002-04-10  Andreas Jaeger  <aj@suse.de>
6972
6973         * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
6974
6975         * include/argz.h: Remove extra char from last patch.
6976
6977 2002-04-09  Ulrich Drepper  <drepper@redhat.com>
6978
6979         * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
6980         * sysdeps/unix/sysv/aix/chown.c: Likewise.
6981         * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
6982         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
6983         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
6984         * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
6985         __chown_internal.
6986         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
6987
6988         * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
6989         * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
6990         * intl/ngettext.c: Likewise.
6991
6992         * include/sys/socket.h: Declare __connect_internal and define
6993         __connect macro if not NOT_IN_libc.
6994         * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
6995         * sysdeps/unix/sysv/aix/connect.c: Likewise.
6996         * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
6997
6998         * include/unistd.h: Declare __close_internal and define __close macro
6999         if not NOT_IN_libc.
7000         * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
7001         WJUMP3): Add extra parenthesis to avoid expanding element names with
7002         macors like __close.
7003         * sysdeps/unix/syscalls.list: Add __close_internal alias.
7004
7005         * include/unistd.h: Declare __dup2_internal and define __dup2 macro
7006         if not NOT_IN_libc.
7007         * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
7008         * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
7009         * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
7010
7011         * include/unistd.h: Declare __fork_internal and define __fork macro
7012         if not NOT_IN_libc.
7013         * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
7014         * sysdeps/unix/sysv/aix/fork.c: Likewise.
7015         * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
7016
7017         * include/stdio_ext.h: Declare __fsetlocking_internal and define
7018         __fsetlocking macro to use it if not NOT_IN_libc.
7019         * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
7020
7021         * libio/__fbufsize.c: Correct copyright.
7022         * libio/__flbf.c: Likewise.
7023         * libio/__fpending.c: Likewise.
7024         * libio/__fpurge.c: Likewise.
7025         * libio/__freadable.c: Likewise.
7026         * libio/__freading.c: Likewise.
7027         * libio/__fsetlocking.c: Likewise.
7028         * libio/__fwritable.c: Likewise.
7029         * libio/__fwriting.c: Likewise.
7030
7031         * include/stdio.h: Declare __asprintf_internal and define __asprintf
7032         macro to use it if not NOT_IN_libc.
7033         * stdio-common/asprintf.c: Use INTDEF for __asprintf.
7034
7035         * include/mntent.h: Declare __setmntent_internal,
7036         __getmntent_r_internal, __endmntent_internal.  Define __setmntent,
7037         __getmntent_r, and __endmntent macros to use these functions if not
7038         NOT_IN_libc.
7039         * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
7040         __endmntent.
7041
7042         * include/math.h: Declare __finite_internal, __finitef_internal, and
7043         __finitel_internal.  Redefine isfinite macro if in libc or libm using
7044         these functions.
7045         * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
7046         * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
7047         * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
7048         * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
7049         * sysdeps/i386/fpu/s_finitef.S: Likewise.
7050         * sysdeps/i386/fpu/s_finitel.S: Likewise.
7051         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
7052         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
7053         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
7054         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
7055
7056         * include/fcntl.h: Declare __fcntl_internal.  Define __fcntl macro
7057         to use this function if not NOT_IN_libc.
7058         * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
7059         * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
7060         * sysdeps/mach/hurd/fcntl.c: Likewise.
7061         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
7062         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
7063
7064         * include/argz.h: Declare __argz_count_internal and
7065         __argz_stringify_internal.
7066         * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
7067         __argz_stringify.
7068         * string/argz-count.c: Use INTDEF for __argz_count.
7069         * string/argz-stringify.c: Use INTDEF for __argz_stringify.
7070
7071         * include/stdlib.h: Declare __cxa_atexit_internal and define
7072         __cxa_atexit macro if not NOT_IN_libc.
7073         * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
7074         * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
7075
7076         * assert/assert.c: Use INTDEF for __assert_fail.
7077         * assert/__assert.c: Use INTUSE for call to __assert_fail.
7078         * include/assert.h: Declare __assert_fail_internal.
7079
7080         * extra-lib.mk: Mark assignment to lib with override.
7081
7082 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7083
7084         * Makerules: Use cppflags-iterator.mk to add defines for all test
7085         source files.
7086
7087 2002-04-08  kaz Kojima  <kkojima@rr.iij4u.or.jp>
7088
7089         * elf/elf.h: Define R_SH_TLS_xxx macros.
7090         * elf/rtld.c: Remove an extra parenthesis.
7091         * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
7092         TLS_GD macros.
7093         * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
7094         * sysdeps/sh/dl-lookupcfg.h: New file.
7095         * sysdeps/sh/dl-tls.h: New file.
7096         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
7097         ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
7098         (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
7099         R_SH_TLS_TPOFF32 relocations.
7100
7101 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7102
7103         * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
7104         of NOT_IN_LIBC.
7105         * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
7106         * include/stdlib.h: Likewise.
7107
7108 2002-04-08  Jakub Jelinek  <jakub@redhat.com>
7109
7110         * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
7111         instead of _RTLD_LOCAL.
7112         * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
7113         * include/unistd.h: Likewise.
7114         * sysdeps/generic/ldsodefs.h: Likewise.
7115
7116         * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
7117         if in libc or ld.so.
7118
7119 2002-04-08  Andreas Jaeger  <aj@suse.de>
7120
7121         * elf/cache.c (print_entry): Support x86-64.
7122
7123 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7124
7125         * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
7126         with one accessing the locale data structures directly.
7127         * stdio-common/printf-prs.c: Include localeinfo.h for new
7128         MB_CUR_MAX definition.
7129
7130         * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
7131         is the name of the source file without extension.
7132         * Makefile (distribute): Add cppflags-iterator.mk.
7133         * cppflags-iterator.mk: New file.
7134         * extra-lib.mk: For the sources of the library run
7135         cppflags-iterator.mk.
7136
7137         * include/libintl.h: Declare __dcgettext_internal and
7138         _libc_intl_domainname_internal.  Define __dcgettext using these
7139         two symbols if used in libc itself.
7140         * argp/argp-help.c: Define dgettext using __dcgettext_internal and
7141         _libc_intl_domainname_internal.
7142         * argp/argp-parse.c: Likewise.
7143         * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
7144         * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
7145         * intl/gettext.c: Likewise.
7146         * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
7147         alias.
7148         * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
7149         __dcgettext.
7150         * posix/regex_internal.c (gettext): Likewise.
7151
7152 2002-04-08  Andreas Jaeger  <aj@suse.de>
7153
7154         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
7155
7156         * sysdeps/x86_64/fpu/s_llrint.S: New file.
7157         * sysdeps/x86_64/fpu/s_llrintf.S: New file.
7158         * sysdeps/x86_64/fpu/s_llrintl.S: New file.
7159         * sysdeps/x86_64/fpu/s_lrint.S: New file.
7160         * sysdeps/x86_64/fpu/s_lrintf.S: New file.
7161         * sysdeps/x86_64/fpu/s_lrintl.S: New file.
7162
7163 2002-04-08  Roland McGrath  <roland@frob.com>
7164
7165         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
7166         widening __hurd_fail value.
7167
7168 2002-04-07  Roland McGrath  <roland@frob.com>
7169
7170         * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
7171         <mach/machine/alpha_instruction.h>.
7172         (_hurd_setup_sighandler): Take proper arguments for current decls.
7173         Update code to use _hurdsig_catch_fault.
7174         Use `callsys' instruction instead of `call_pal'.
7175         * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
7176
7177         * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
7178         (ALIGN, at, AT, fp): New macros.
7179
7180 2002-04-06  Roland McGrath  <roland@frob.com>
7181
7182         * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
7183
7184         * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
7185         (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
7186
7187         * sysdeps/mach/hurd/bind.c: Use prototype definition.
7188         * sysdeps/mach/hurd/connect.c: Likewise.
7189         * sysdeps/mach/hurd/getsockopt.c: Likewise.
7190         * sysdeps/mach/hurd/setsockopt.c: Likewise.
7191
7192         * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
7193         __msg_sig_post RPC.
7194
7195         * hurd/catch-exc.c: Use integer_t instead of int.
7196         * hurd/hurdfault.c: Likewise.
7197
7198         * sysdeps/mach/hurd/alpha/exc2signal.c
7199         (_hurd_exception2signal): Rewritten.
7200         * sysdeps/mach/hurd/alpha/longjmp-ts.c
7201         (_hurd_longjmp_thread_state): Rewritten.
7202
7203 2002-04-07  Ulrich Drepper  <drepper@redhat.com>
7204
7205         * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
7206         DB_LOOKUP_FCT prototype.
7207         * nss/getXXent_r.c: Likewise.
7208         * inet/getaliasent_r.c: Define NSS_attribute_hidden.
7209         * inet/getaliasname_r.c: Likewise.
7210         * inet/getnetbyad_r.c: Likewise.
7211         * inet/getnetbynm_r.c: Likewise.
7212         * inet/getnetent_r.c: Likewise.
7213         * inet/getproto_r.c: Likewise.
7214         * inet/getprtent_r.c: Likewise.
7215         * inet/getprtname_r.c: Likewise.
7216         * inet/getrpcbyname_r.c: Likewise.
7217         * inet/getrpcbynumber_r.c: Likewise.
7218         * inet/getrpcent_r.c: Likewise.
7219         * inet/getservent_r.c: Likewise.
7220         * inet/getsrvbynm_r.c: Likewise.
7221         * inet/getsrvbypt_r.c: Likewise.
7222         * shadow/getspent_r.c: Likewise.
7223         * shadow/getspnam_r.c: Likewise.
7224
7225         * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
7226
7227         * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
7228         Use i686-friendly PIC code.
7229         * sysdeps/i386/elf/setjmp.S: Likewise.
7230
7231         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
7232
7233         * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
7234         list.
7235         * elf/Versions: Remove it here.
7236
7237 2002-04-06  Ulrich Drepper  <drepper@redhat.com>
7238
7239         * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
7240         direction.  Reported by H . J . Lu <hjl@lucon.org>.
7241
7242 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
7243
7244         * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
7245         test just before the test runs.
7246         * intl/tst-translit.sh: Likewise.
7247         * intl/tst-codeset.sh: Likewise.
7248
7249         * timezone/zic.c: Update from tzcode2002c.
7250         * timezone/asia: Update from tzdata2002c.
7251         * timezone/backward: Likewise.
7252         * timezone/europe: Likewise.
7253         * timezone/northamerica: Likewise.
7254         * timezone/northamerica: Likewise.
7255         * timezone/northamerica: Likewise.
7256         * timezone/southamerica: Likewise.
7257         * timezone/zone.tab: Likewise.
7258
7259 2002-03-23  Jakub Jelinek  <jakub@redhat.com>
7260
7261         * sysdeps/generic/brk.c (__curbrk): Declare.
7262         * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
7263         * sysdeps/generic/dl-sbrk.c: Likewise.
7264         * sysdeps/unix/arm/dl-brk.S: New file.
7265         * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
7266         * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
7267         * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
7268         * sysdeps/unix/bsd/vax/dl-brk.S: New file.
7269         * sysdeps/unix/i386/dl-brk.S: New file.
7270         * sysdeps/unix/mips/dl-brk.S: New file.
7271         * sysdeps/unix/sparc/dl-brk.S: New file.
7272         * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
7273         * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
7274         * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
7275         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
7276
7277 2002-04-03  Andreas Schwab  <schwab@suse.de>
7278
7279         * Makefile (headers): Add gnu/lib-names.h here instead of
7280         install-others.
7281         ($(inst_includedir)/gnu/lib-names.h): Remove explicit
7282         installation rule.
7283         (install-headers): Add dependency on install-headers-nosubdir.
7284         * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
7285         instead of install-others.
7286         ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
7287         installation rule.
7288
7289 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
7290
7291         * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
7292         Reported by Sam Roberts <sroberts@uniserve.com>.
7293
7294 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
7295
7296         * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
7297         l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
7298         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7299         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7300
7301 2002-04-03  David Mosberger  <davidm@hpl.hp.com>
7302
7303         * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
7304         (RTLD_START): Ditto.
7305         (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
7306         dependency violation.
7307
7308 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
7309
7310         * time/mktime.c (__mktime_internal): Move check for year < 70 below
7311         all variable declarations.
7312
7313 2002-04-04  Andreas Schwab  <schwab@suse.de>
7314
7315         * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
7316
7317 2002-04-04  Andreas Jaeger  <aj@suse.de>
7318
7319         * sysdeps/x86_64/fpu/e_sqrt.c: New file.
7320         * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
7321
7322         * sysdeps/x86_64/fpu/s_fabs.c: New file.
7323         * sysdeps/x86_64/fpu/s_fabsf.c: New file.
7324         * sysdeps/x86_64/fpu/s_fabsl.c: New file.
7325
7326         * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
7327
7328         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
7329
7330         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
7331         * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
7332
7333         * configure.in: Handle all mips entries the same.
7334
7335         * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
7336         * sysdeps/mips/mips3/*: Likewise.
7337         * sysdeps/mips/p40/bits/endian.h: Likewise.
7338
7339 2002-04-04  Ulrich Drepper  <drepper@redhat.com>
7340
7341         * misc/dirname.c (dirname): Ignore trailing slashes at end of
7342         non-null result [PR libc/2600].
7343
7344         * misc/tst-dirname.c: Add more tests.
7345
7346 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
7347
7348         * locale/programs/charmap.c (charmap_read): If the charmap doesn't
7349         define a code_set_name provide one based on the filename.
7350
7351         * malloc/hooks.c: Define weak_variable correctly for _LIBC.
7352
7353 2001-12-28  Andreas Jaeger  <aj@suse.de>
7354
7355         * time/mktime.c (__mktime_internal): Check for year < 70
7356         [PR libc/2738].
7357
7358 2002-04-03  Andreas Jaeger  <aj@suse.de>
7359
7360         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
7361         shmat.
7362         Reported by Andi Kleen <ak@suse.de>.
7363
7364 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
7365
7366         * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
7367         * sysdeps/generic/w_lgammaf.c: Likewise.
7368         * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
7369
7370         * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
7371         Adjust for new output format of the backtrace functions.
7372
7373         * misc/syslog.c (vsyslog): Only use cleanup handler if
7374         _LIBC_REENTRANT is defined [PR libc/2924].
7375
7376         * libio/Makefile (tests): Add bug-ungetwc2.
7377         * libio/bug-ungetwc2.c: New file.
7378
7379         * manual/install.texi: Typographical and grammatical cleanup.
7380         Patch by Dennis Grace <dgrace@us.ibm.com>.
7381
7382         * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
7383         parameter if mtflag.  Patch by <jeongyun@innovay.com>.
7384
7385         * sunrpc/rpc_svcout.c (printif): Remove third parameter.  It was
7386         always "&".  Adjust callers.
7387         Add "_" prefix to several generated definitions.
7388         Patch by paul@serice.net [PR libc/3158].
7389
7390 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7391
7392         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
7393         size of _dl_arm_cap_flags.
7394         Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
7395
7396         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
7397         Define as 8.
7398
7399 2002-03-22  H.J. Lu  <hjl@gnu.org>
7400
7401         * scripts/firstversions.awk: Check the first version.
7402
7403 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7404
7405         * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
7406         dependencies must be stable to work correctly.
7407         Reported by martin.lubich@datacon.at.
7408
7409         * libio/bug-ungetwc1.c: New file.
7410         * libio/Makefile (tests): Add bug-ungetwc1.
7411
7412         * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
7413         if stream was last used for writing.
7414
7415         * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
7416         number [PR libc/3111].
7417
7418         * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
7419         to ...
7420         * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
7421
7422 2002-04-02  Jakub Jelinek  <jakub@redhat.com>
7423
7424         * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
7425         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
7426         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
7427         * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
7428         * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
7429
7430 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
7431
7432         * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
7433         dynamic tags.
7434
7435 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
7436
7437         * sysdeps/i386/fpu/s_fabs.S: New file.
7438         * sysdeps/i386/fpu/s_fabsf.S: New file.
7439         * sysdeps/i386/fpu/s_fabsl.S: New file.
7440         * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
7441         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
7442         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
7443
7444 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7445
7446         * rt/tst-shm.c (do_test): Add one more test for size of shared
7447         memory object.
7448
7449 2002-03-29  Wolfram Gloger  <wg@malloc.de>
7450
7451         * malloc/malloc.c: Add short description and prototypes for
7452         malloc_get_state, malloc_set_state and posix_memalign, for
7453         consistency and to avoid warnings with -Wstrict-prototypes.
7454         Reported by Andreas Jaeger <aj@suse.de>.
7455
7456 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7457
7458         * po/gl.po: Update from translation team.
7459
7460 2002-03-31  Roland McGrath  <roland@frob.com>
7461
7462         * hurd/hurdselect.c (_hurd_select): Fix
7463         MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
7464         Use a union rather than casts to compare mach_msg_type_t as int.
7465
7466 2002-03-25  Roland McGrath  <roland@frob.com>
7467
7468         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
7469         check off the end of NAME when it's shorter than 2 chars.
7470         Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
7471
7472 2002-03-17  Roland McGrath  <roland@frob.com>
7473
7474         * sysdeps/mach/hurd/i386/sys/io.h: New file.
7475         * sysdeps/mach/hurd/i386/ioperm.c: New file.
7476         * sysdeps/mach/hurd/i386/Dist: Add them.
7477         * sysdeps/mach/hurd/i386/Versions
7478         (libc: GLIBC_2.2.6): New set, add ioperm.
7479         * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
7480         (mach_interface_list): Check for mach_i386.defs.
7481         * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
7482         * sysdeps/mach/configure: Regenerated.
7483
7484 2002-03-22  Ulrich Drepper  <drepper@redhat.com>
7485
7486         * po/fr.po: Update from translation team.
7487
7488 2002-03-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7489
7490         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
7491         getpriority from syscalls list.
7492
7493 2002-03-28  Andreas Jaeger  <aj@suse.de>
7494
7495         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
7496         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
7497         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
7498         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
7499
7500 2002-03-27  Andreas Jaeger  <aj@suse.de>
7501
7502         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7503         sigcontext): Follow further kernel change.
7504
7505         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
7506         kernel change.
7507
7508         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
7509         Change for struct sigcontext change.
7510
7511         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7512         Follow changes in struct sigcontext.
7513
7514         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
7515         sysycall, use wrapper instead.
7516
7517 2002-03-26  Andreas Jaeger  <aj@suse.de>
7518
7519         * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
7520         read and write accesses as detailed as possible.
7521         (__memcpy_by2): Likewise.
7522         (__memcpy_g): Likewise.
7523         (memmove): Likewise.
7524         (memcmp): Likewise.
7525         (__memset_ccn_by4): Likewise.
7526         (__memset_ccn_by2): Likewise.
7527         (__memset_gcn_by4): Likewise.
7528         (__memset_gcn_by2): Likewise.
7529         (memchr): Likewise.
7530         (__memrchr): Likewise.
7531         (rawmemchr): Likewise.
7532         (__strlen_g): Likewise.
7533         (__strcpy_g): Likewise.
7534         (__mempcpy_by4): Likewise.
7535         (__mempcpy_by2): Likewise.
7536         (__mempcpy_byn): Likewise.
7537         (__stpcpy_g): Likewise.
7538         (__strncpy_by4): Likewise.
7539         (__strncpy_by2): Likewise.
7540         (__strncpy_byn): Likewise.
7541         (__strncpy_gg): Likewise.
7542         (__strcat_c): Likewise.
7543         (__strcat_g): Likewise.
7544         (__strncat_g): Likewise.
7545         (__strcmp_gg): Likewise.
7546         (__strncmp_g): Likewise.
7547         (__strchr_c): Likewise.
7548         (__strchr_g): Likewise.
7549         (__strchrnul_c): Likewise.
7550         (__strchrnul_g): Likewise.
7551         (__strrchr_c): Likewise.
7552         (__strrchr_g): Likewise.
7553         (__strrchr_c): Likewise.
7554         (__strrchr_g): Likewise.
7555         (__strcspn_c1): Likewise.
7556         (__strcspn_cg): Likewise.
7557         (__strcspn_g): Likewise.
7558         (__strcspn_g): Likewise.
7559         (__strspn_c1): Likewise.
7560         (__strspn_cg): Likewise.
7561         (__strspn_g): Likewise.
7562         (__strspn_g): Likewise.
7563         (__strpbrk_cg): Likewise.
7564         (__strpbrk_g): Likewise.
7565         (__strstr_cg): Likewise.
7566         (__strstr_g): Likewise.
7567
7568         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo.  Reported by
7569         Michal Ludvig <mludvig@suse.cz>.
7570
7571         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
7572         compatibilty, adjust for kernel changes.
7573
7574         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7575         sigcontext): Adjust for kernel changes.
7576
7577 2002-03-25  Andreas Jaeger  <aj@suse.de>
7578
7579         * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
7580         little endian.
7581         Reported by Artur Zaprzala <zybi@talex.com.pl>.
7582
7583 2002-03-24  Andreas Jaeger  <aj@suse.de>
7584
7585         * manual/memory.texi (Aligned Memory Blocks): Fix typo.
7586
7587         * stdio-common/tst-fdopen.c (main): Remove unused variable.
7588
7589         * iconv/tst-iconv3.c (main): Use correct printf strings.
7590
7591 2002-03-18  Roland McGrath  <roland@frob.com>
7592
7593         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
7594         (CMGROUP_MAX): New macro.
7595
7596 2002-03-23  Roland McGrath  <roland@frob.com>
7597
7598         * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
7599         * sysdeps/posix/shm_unlink.c: Likewise.
7600
7601 2002-03-22  Roland McGrath  <roland@frob.com>
7602
7603         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
7604         * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
7605         under --enable-libio.
7606         * sysdeps/mach/hurd/configure: Regenerated.
7607
7608 2002-03-23  Roland McGrath  <roland@frob.com>
7609
7610         * sysdeps/mach/hurd/i386/Makefile
7611         (sysdep_routines, shared-only-routines): Don't add framestate,
7612         reverting 2001-10-02 change.
7613         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
7614         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
7615         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
7616         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
7617         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
7618         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
7619         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
7620         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
7621         * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
7622         Do it here instead, only if [$(unwind-find-fde) = yes].
7623
7624 2002-03-23  Andreas Jaeger  <aj@suse.de>
7625
7626         * signal/signal.h: Fix typo. Patch by Steve Kemp
7627         <skx@tardis.ed.ac.uk>.
7628
7629 2002-03-22  Andreas Jaeger  <aj@suse.de>
7630
7631         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
7632         getresuid.
7633
7634         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7635         _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
7636         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7637         user_fpregs_struct): Rename fwd.
7638
7639         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7640         Follow sigcontext changes.
7641
7642 2002-03-22  Andreas Jaeger  <aj@suse.de>
7643
7644         * sysdeps/mips/bits/nan.h: New file.  Copy from generic one with
7645         changes for NaNs on MIPS.
7646         Patch by Hartvig Ekner <hartvige@mips.com>.
7647
7648 2002-03-21  Ulrich Drepper  <drepper@redhat.com>
7649
7650         * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
7651         Use realloc if too large.
7652         (addgrbyid): Likewise.
7653         * nscd/hstcache.c (addhstbyname): Likewise.
7654         (addhstbyaddr): Likewise.
7655         (addhstbynamev6): Likewise.
7656         (addhstbyaddrv6): Likewise.
7657         * nscd/pwdcache.c (addpwbyname): Likewise.
7658         (addpwbyuid): Likewise.
7659
7660 2002-03-21  Andreas Jaeger  <aj@suse.de>
7661
7662         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7663         _fpstate): Add separate struct for x86-64.
7664
7665         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7666         user_fpregs_struct): Change member names to follow kernel.
7667
7668 2002-03-20  Ulrich Drepper  <drepper@redhat.com>
7669
7670         * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
7671         Correctly close the UDP connection right away [PR libc/3120].
7672
7673 2002-03-20  Andreas Jaeger  <aj@suse.de>
7674
7675         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7676         user_fpregs_struct): Fix for changed kernel struct.
7677         (struct user_regs_struct): Likewise.
7678         (struct user): Likewise.
7679         Add 32-bit x86 compatibility.
7680
7681         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
7682
7683 2002-03-19  Andreas Jaeger  <aj@suse.de>
7684
7685         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
7686
7687 2002-03-18  Andreas Jaeger  <aj@suse.de>
7688
7689         * iconvdata/Makefile: Only run tests when shared libs are
7690         available.
7691
7692 2002-03-17  Andreas Jaeger  <aj@suse.de>
7693
7694         * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
7695
7696         * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
7697
7698         * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
7699         bits.
7700
7701         * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New macro.
7702         (CAUSE_SHIFT): New macro.
7703         Patch by Hartvig Ekner <hartvige@mips.com>.
7704
7705         * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
7706         * sysdeps/generic/unwind-pe.h: Likewise.
7707
7708         * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
7709         type to _IO_setb.
7710
7711         * libio/stdio.c (AL2): Define variant when visibility attribute is
7712         not supported.
7713
7714         * include/libc-symbols.h (_INTVARDEF): Define variant when
7715         visibility attribute is not supported.
7716
7717 2002-03-16  Ulrich Drepper  <drepper@redhat.com>
7718
7719         * po/fr.po: Update from translation team.
7720
7721 2002-02-25  Bruno Haible  <bruno@clisp.org>
7722
7723         * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
7724
7725 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
7726
7727         * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
7728         buffers if _IO_file_attach failed.
7729
7730         * libio/fileops.c (_IO_file_open): Close file descriptor if
7731         _IO_SEEKOFF call failed.
7732
7733 2002-03-15  H.J. Lu  <hjl@gnu.org>
7734             Ulrich Drepper  <drepper@redhat.com>
7735
7736         * configure.in: Check for availability of
7737         init_array/fini_array/preinit_array handling in binutils.
7738         * config.h.in (HAVE_INITFINI_ARRAY): New macro.
7739         * config.make.in (have-initfini-array): New variable.
7740
7741 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
7742
7743         * stdio-common/tst-printf.c (main): Comment out one test which
7744         checked the compiler's ability to fold floating-point constants
7745         but not really printf.
7746         (rfg3): Make s const.
7747         * stdio-common/tst-printf.sh: Adjust for removed test.
7748
7749         * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
7750         internal function.  Adjust for internal_function calling convention.
7751         * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
7752         as internal_function.
7753
7754         * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
7755         hidden.
7756
7757         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
7758         declaration and definition.
7759         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
7760         declaration.
7761         * nss/getXXent_r.c: Likewise.
7762         * nss/nsswitch.h (db_lookup_function): Add internal_function to
7763         definition.
7764
7765         * include/time.h: Declare __localtime_r as hidden.
7766
7767         * include/aliases.h: Declare __getaliasent_r as hidden.
7768         * include/grp.h: Declare __getgrent_r as hidden.
7769         * include/netdb.h: Declare __gethostent_r, __getnetent_r,
7770         __getservent_r, and __getprotoent_r as hidden.
7771         * include/pwd.h: Declare __getpwent_r as hidden.
7772         * include/shadow.h: Declare __getspent_r as hidden.
7773         * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
7774
7775         * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
7776         and __gconv_transliterate as hidden.
7777         Add internal_function to __gconv_get_path declaration.
7778         * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
7779         definition.  Add attribute_hidden to __gconv_read_conf definition.
7780
7781 2002-03-14  Ulrich Drepper  <drepper@redhat.com>
7782
7783         * elf/rtld.c: Declare _environ as hidden.
7784         * sysdeps/generic/dl-environ.c: Likewise.
7785         * sysdeps/generic/dl-sysdep.c: Likewise.
7786
7787         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
7788         _dl_mcount_internal as hidden.
7789
7790         * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
7791         * sysdeps/generic/dl-brk.c: New file.
7792         * sysdeps/generic/dl-sbrk.c: New file.
7793         * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
7794         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
7795
7796         * elf/dl-minimal.c (malloc): Declare _end as hidden.
7797         (__errno_location): New function.  Declare errno as hidden.
7798         * elf/rtld.c (_dl_argc): Define as hidden.
7799         (_dl_skip_args): Define as hidden.
7800         (_begin, _end): Declare as hidden.
7801         * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
7802         * sysdeps/generic/entry.h (_start): Declare as hidden.
7803         * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
7804         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
7805         _dl_runtime_resolve and _dl_runtime_profile as hidden.
7806         (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
7807
7808 2002-03-14  Roland McGrath  <roland@frob.com>
7809
7810         * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
7811
7812         * Makeconfig (%.v.i, %.v): New implicit rules.
7813         (preprocess-versions): Variable removed.
7814         ($(common-objpfx)shlib-versions.v.i): New target giving just the
7815         shlib-versions input files as dependencies.
7816         ($(common-objpfx)soversions.i): Depend on that instead of the input
7817         files.  Use it as input instead of using a pipeline.
7818         (postclean-generated): Append soversions.i, shlib-versions.v, and
7819         shlib-versions.v.i here.
7820         * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
7821         the Versions.def input files as dependencies.
7822         ($(common-objpfx)Versions.v.i): Likewise for Versions files.
7823         ($(common-objpfx)Versions.all): Depend on that instead of the input
7824         files.  Use it as input instead of using a pipeline.
7825         ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
7826         (postclean-generated): Append those .v and .v.i files here.
7827
7828 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
7829
7830         * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
7831         * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
7832         Remove.
7833
7834 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
7835
7836         * sysdeps/generic/mp_clz_tab.c: New file.
7837         * sysdeps/i386/mp_clz_tab.c: New file.
7838         * sysdeps/hppa/mp_clz_tab.c: New file.
7839         * sysdeps/powerpc/mp_clz_tab.c: New file.
7840         * stdlib/Makefile (aux): Revert last patch.
7841         * math/Makefile (gmp-objs): Likewise.
7842
7843 2002-03-13  Paul Eggert  <eggert@twinsun.com>
7844
7845         * time/strftime.c: Comment fixes for references to obsolescent
7846         standards, In most cases the simplest fix is to remove the
7847         confusing comments.  Cross-referencing all the standards properly
7848         is a bit of a pain, and it should be enough to put that info in
7849         the documentation as I did in my recent time.texi patch.
7850
7851 2002-03-13  Paul Eggert  <eggert@twinsun.com>
7852
7853         * manual/time.texi (Formatting Calendar Time):
7854         ISO C99 also specifies the E and O modifiers.
7855         %P is a GNU extension, and is not in ISO C99.
7856         Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
7857         %T is also in ISO C99.
7858         The RFC 822 example is not valid in arbitrary locales.
7859         Reword the POSIX.2 wording slightly, to make it a bit clearer
7860         that POSIX.2 formats are also supported by later POSIX versions.
7861         If a format was introduced in ISO C99 it is also required by
7862         POSIX.1-2001.
7863
7864 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
7865
7866         * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
7867         _sys_nerr_internal with INTVARDEF2.
7868         * include/libc-symbols.h (INTVARDEF2): New macro.
7869         * include/stdio.h (_sys_errlist_internal): Declare as hidden.
7870         (_sys_nerr_internal): Library.
7871
7872         * sysdeps/posix/signal.c (_sigintr): Define as hidden.
7873         * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
7874
7875         * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
7876
7877 2002-03-13  Wolfram Gloger  <wg@malloc.de>
7878
7879         * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
7880
7881 2002-03-02  Andreas Schwab  <schwab@suse.de>
7882
7883         * stdio-common/vfprintf.c (process_arg): Fix decimal format with
7884         'h' flag and positional arg.
7885         * stdio-common/tst-printf.c (rfg3): New function to test
7886         positional arguments.
7887         (main): Fix some warnings.
7888
7889 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
7890
7891         * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
7892         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
7893
7894 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
7895
7896         * grp/initgroups.c (__nss_group_data): Declare as hidden.
7897
7898         * include/locale.h (_nl_C_locobj): Declare as hidden.
7899
7900         * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
7901         * time/strptime.c (_nl_C_LC_TIME): Likewise.
7902
7903         * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
7904
7905         * include/sys/gmon.h: Declare _gmonparam as hidden.
7906
7907         * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
7908         (__ctype32_wctrans): Likewise.
7909         (__ctype32_width): Likewise.
7910
7911         * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
7912         use of __ttyname.
7913
7914         * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
7915         Define as hidden.
7916         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Define as
7917         hidden.  Change all users of these variables.
7918
7919         * posix/regex_internal.h (__re_error_msgid): Renamed from
7920         re_error_msgid.  Declare as hidden.
7921         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Declare as
7922         hidden.
7923
7924         * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
7925         (__printf_function_table): Likewise.
7926         * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
7927         hidden.
7928         (__printf_function_table): Likewise.
7929
7930         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
7931         __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
7932
7933         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
7934         * nss/nsswitch.c: Declare _nss_*_database as hidden.
7935
7936         * stdlib/wctomb.c (__no_r_state): Declare as hidden.
7937         * stdlib/mbtowc.c (__no_r_state): Define as hidden.
7938
7939 2002-03-12  Ulrich Drepper  <drepper@redhat.com>
7940
7941         * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
7942         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
7943         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
7944         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
7945         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
7946         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
7947         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
7948         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
7949         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
7950         _nl_C_LC_CTYPE_width: Declare as hidden.
7951         * include/locale.h: Declare _nl_locale_file_list.
7952         * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
7953         * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
7954         * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
7955         * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
7956         * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
7957         * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
7958         * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
7959         * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
7960         * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
7961         * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
7962         * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
7963         * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
7964         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
7965         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
7966         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
7967         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
7968         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
7969         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
7970         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
7971         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
7972         _nl_C_LC_CTYPE_width, and as hidden.
7973         * locale/findlocale.c: Declare _nl_C as hidden.
7974         * locale/newlocale.c: Likewise.
7975         * locale/setlocale.c: Define _nl_C as hidden.  Remove declaration of
7976         _nl_locale_file_list.
7977         * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
7978         _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
7979         Define _nl_C_locobj as hidden.
7980
7981         * malloc/mtrace.c (_mtrace_file): Define as hidden.
7982         (_mtrace_line): Likewise.
7983
7984         * include/time.h: Declare __mon_yday as hidden.
7985         * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
7986
7987         * libio/libioP.h: Declare __libio_codecvt as hidden.
7988         * libio/fileops.c: Declare __libio_translit as hidden.
7989         * libio/iofwide.c: Define __libio_translit as hidden.
7990
7991         * login/getutent_r.c: Define __libc_utmp_lock as hidden.
7992         * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
7993         * login/getutline_r.c: Likewise.
7994         * login/utmpname.c: Likewise.
7995
7996         * login/utmp-private.h: Declare __libc_utmp_file_functions,
7997         __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
7998         __libc_utmp_file_name as hidden.
7999
8000         * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
8001         * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
8002         * locale/freelocale.c: Likewise.
8003         * locale/lc-time.c: Likewise.
8004
8005         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
8006         (__libc_ptyname2): Likewise.
8007         * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
8008         hidden.
8009         (__libc_ptyname2): Likewise.
8010
8011         * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
8012         * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
8013         * sysdeps/generic/init-first.c: Likewise.
8014         * sysdeps/i386/init-first.c: Likewise.
8015         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
8016         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8017         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8018         * sysdeps/sh/init-first.c: Likewise.
8019         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8020         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8021
8022         * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
8023         (_itowa_upper_digits): Likewise.
8024
8025         * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
8026         * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
8027         as hidden.
8028
8029         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
8030         _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
8031         _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
8032         _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
8033
8034         * gmon/gmon.c (__bb_head): Define as hidden.
8035         * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
8036
8037         * argp/argp-parse.c (_argp_hang): Define as static.
8038
8039         * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
8040         handling in latest compilers.
8041
8042         * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
8043         define alias.
8044         * libio/fileops.c (_IO_file_jumps): Likewise.
8045         * libio/stdfiles.c (_IO_list_all): Likewise.
8046         * libio/wfileops.c (_IO_wfile_jumps): Likewise.
8047
8048         * malloc/malloc.h: Move __libc_malloc_initialized declaration to
8049         include/malloc.h.
8050         * include/malloc.h: Add __libc_malloc_initialized declaration
8051         here.  Mark variable hidden.
8052         * malloc/malloc.c: Include <malloc.h> not "malloc.h".
8053
8054         * elf/dl-open.c (__libc_argc): Declare as hidden.
8055         (__libc_argv): Likewise.
8056         * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
8057         (__libc_argv): Likewise.
8058         * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
8059         __libc_argv as hidden.
8060         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8061         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8062         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8063         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8064
8065         * include/stdlib.h (__libc_drand48_data): Declare as hidden.
8066         * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
8067         * stdlib/erand48.c: Likewise.
8068         * stdlib/jrand48.c: Likewise.
8069         * stdlib/lcong48.c: Likewise.
8070         * stdlib/lrand48.c: Likewise.
8071         * stdlib/mrand48.c: Likewise.
8072         * stdlib/nrand48.c: Likewise.
8073         * stdlib/seed48.c: Likewise.
8074         * stdlib/srand48.c: Likewise.
8075
8076         * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
8077         (_itoa_lower_digits_internal): New declaration.
8078         (_itoa_upper_digits_internal): New declaration.
8079         (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
8080         * stdio-common.h (_itoa_lower_digits_internal): New declaration.
8081         (_itoa_upper_digits_internal): New declaration.
8082         (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
8083         _itoa_lower_digits.
8084         * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
8085         * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
8086
8087         * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
8088         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
8089
8090         * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
8091         (_itowa_lower_digits): Likewise.
8092         (_itowa_upper_digits): Likewise.
8093         * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
8094         (_itowa_upper_digits): Likewise.
8095
8096         * intl/plural-exp.h (attribute_hidden): Define as empty macro if
8097         not already defined.
8098         (GERMANIC_PLURAL): Declare as hidden.
8099
8100         * posix/getopt.c (__getopt_initialized): Declare as hidden.
8101         (attribute_hidden): Define as empty macro if not already defined.
8102
8103         * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
8104         (__gconv_max_path_elem_len): Likewise.
8105         (__gconv_path_envvar): Likewise.
8106
8107         * math/Makefile (gmp-objs): Remove mp_clz_tab.
8108         * stdlib/Makefile (aux): Remove mp_clz_tab.
8109         * stdlib/mp_clz_tab.c: Removed.  Not needed anywhere.
8110
8111         * stdlib/exit.h (__exit_funcs): Declare as hidden.
8112
8113         * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
8114
8115         * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
8116         _nl_category_names, _nl_category_name_sizes, _nl_current,
8117         _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
8118
8119         * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
8120         (_nl_current_default_domain): Likewise
8121         (_nl_state_lock): Likewise.
8122         * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
8123         (_nl_current_default_domain): Likewise
8124         (_nl_state_lock): Likewise.
8125         * intl/bindtextdom.c (_nl_state_lock): Likewise.
8126
8127         * stdlib/fpioconst.h (__tens): Add attribute_hidden.
8128         (_fpioconst_pow10): Likewise.
8129
8130         * include/time.h (_tmbuf): Add attribute_hidden.
8131
8132         * time/tzset.c (tzstring_list): Define as static.
8133
8134         * include/time.h: Add attribute_hidden to __tzname_cur_max and
8135         __use_tzfile declaration.
8136
8137         * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
8138         and __wcsmbs_last_locale declaration.
8139
8140 2002-02-25  Paul Eggert  <eggert@twinsun.com>
8141
8142         * timezone/Makefile (tzbases): Move systemv from here...
8143         (tzlinks): to here, since the entries in systemv were all changed
8144         from Zone to Link lines in tz-2001a.  Bug reported (and patch
8145         tested) by Peter Breitenlohner.
8146
8147 2002-03-07  Jakub Jelinek  <jakub@redhat.com>
8148
8149         * time/tst-posixtz.c (tests): Add new tests.
8150         (main): Test whether tzset() sets daylight properly.
8151
8152 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
8153
8154         * time/tzset.c (tz_compute): Move __daylight, __tzname and
8155         __tzname_cur_max setting...
8156         (tzset_internal): ...here.
8157
8158 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
8159
8160         * time/tzset.c (compute_change): Don't return any value.
8161         (tz_compute): Likewise.  Don't handle southern hemisphere here.
8162         (__tz_convert): But here.
8163
8164 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8165
8166         * manual/examples/mkfsock.c: Include <string.h> as well.
8167         Patch by Alain De Carolis <alaind@wseurope.com>.
8168
8169 2002-03-06  Isamu Hasegawa  <isamu@yamato.ibm.com>
8170
8171         * posix/regexec.c (re_match): Fix incorrect register sizes.
8172         (re_search): Likewise.
8173
8174 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
8175
8176         * posix/regcomp.c (regfree): Remove a disused condition.
8177         * posix/regex_internal.c (re_acquire_state): Likewise.
8178         (re_acquire_state_context): Likewise.
8179         (register_state): Remove a redundant malloc invocation.
8180         * posix/regex_internal.h: (re_state_table_entry): Simplify
8181         the structure.
8182
8183 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
8184
8185         * posix/regcomp.c (regcomp): Add __builtin_expect to error
8186         handling conditions.
8187         (regerror): Likewise.
8188         (regfree): Likewise.
8189         (re_compile_internal): Likewise.
8190         (init_dfa): Likewise.
8191         (init_word_char): Likewise.
8192         (create_initial_state): Likewise.
8193         (analyze): Likewise.
8194         (analyze_tree): Likewise.
8195         (duplicate_node): Likewise.
8196         (calc_eclosure): Likewise.
8197         (calc_eclosure_iter): Likewise.
8198         (parse): Likewise.
8199         (parse_reg_exp): Likewise.
8200         (parse_branch): Likewise.
8201         (parse_expression): Likewise.
8202         (parse_subexp): Likewise.
8203         (parse_dup_op): Likewise.
8204         (parse_bracket_exp): Likewise.
8205         (build_equiv_class): Likewise.
8206         (build_charclass): Likewise.
8207         (build_word_op): Likewise.
8208         (fetch_number): Likewise.
8209         (create_tree): Likewise.
8210         (duplicate_tree): Likewise.
8211         * posix/regex.c (BE): New macro.
8212         * posix/regexec.c (re_match): Add __builtin_expect to error
8213         handling conditions.
8214         (re_match_2): Likewise.
8215         (re_search): Likewise.
8216         (re_search_internal): Likewise.
8217         (check_matching): Likewise.
8218         (proceed_next_node): Likewise.
8219         (set_regs): Likewise.
8220         (sift_states_backward): Likewise.
8221         (add_epsilon_backreference): Likewise.
8222         (transit_state): Likewise.
8223         (transit_state_sb): Likewise.
8224         (transit_state_mb): Likewise.
8225         (transit_state_bkref): Likewise.
8226         (transit_state_bkref_loop): Likewise.
8227         (build_trtable): Likewise.
8228         (group_nodes_into_DFAstates): Likewise.
8229         (match_ctx_init): Likewise.
8230         (match_ctx_add_entry): Likewise.
8231         * posix/regex_internal.c (re_string_construct): Add __builtin_expect
8232         to error handling conditions.
8233         (re_string_construct_toupper): Likewise.
8234         (build_wcs_buffer): Likewise.
8235         (build_wcs_upper_buffer): Likewise.
8236         (build_upper_buffer): Likewise.
8237         (re_string_translate_buffer): Likewise.
8238         (re_node_set_alloc): Likewise.
8239         (re_node_set_init_1): Likewise.
8240         (re_node_set_init_2): Likewise.
8241         (re_node_set_init_copy): Likewise.
8242         (re_node_set_intersect): Likewise.
8243         (re_node_set_init_union): Likewise.
8244         (re_node_set_merge): Likewise.
8245         (re_node_set_insert): Likewise.
8246         (re_dfa_add_node): Likewise.
8247         (re_acquire_state): Likewise.
8248         (re_acquire_state_context): Likewise.
8249         (create_new_state_common): Likewise.
8250         (register_state): Likewise.
8251         (create_ci_new_state): Likewise.
8252         (create_cd_new_state): Likewise.
8253         (re_string_context_at): Remove redundant condition.
8254
8255 2002-01-16  Roger Sayle  <roger@eyesopen.com>
8256
8257         * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
8258
8259         * sysdeps/i386/i586/strlen.S: Fix typo in comment.
8260
8261 2002-03-11  Jakub Jelinek  <jakub@redhat.com>
8262
8263         * sysdeps/i386/elf/configure.in: Fix comment.
8264
8265         * sysdeps/sparc/sparc64/configure.in: New file.
8266         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
8267         if .dynamic comes before .got.
8268         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
8269
8270         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
8271         HP_TIMING_ACCUM): Fix typos.
8272
8273 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8274
8275         * string/strfry.c: Add some more randomness to the seed.
8276         Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
8277
8278         * po/es.po: Update from translation team.
8279         * po/fr.po: Likewise.
8280
8281         * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
8282
8283         * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
8284         when determining type of format.
8285         Patch by James Antill <james@anqd.org> [PR libc/2787].
8286
8287 2002-03-04  Jakub Jelinek  <jakub@redhat.com>
8288
8289         * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
8290
8291 2002-03-11  Roland McGrath  <roland@frob.com>
8292
8293         * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
8294
8295         * Versions.def (libc): Add GLIBC_2.2.6.
8296         * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
8297         * sysdeps/mach/hurd/errnos.awk: In generated macro, use
8298         __errno_location instead of __hurd_errno_location, and don't inline it.
8299         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
8300         * hurd/errno.c: New file.
8301         * hurd/Makefile (routines): Add errno.
8302
8303 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8304
8305         * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
8306         ridiculously large widths and precisions [PR libc/3026].
8307
8308 2002-03-11  Andreas Jaeger  <aj@suse.de>
8309
8310         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
8311         support.
8312         Patch by Susanne Oberhauser <froh@SuSE.de>.
8313
8314 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8315
8316         * inet/rexec.c (ahostbuf): Define as static.
8317
8318         * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
8319         (__ctype32_wctrans): Likewise.
8320         * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
8321         * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
8322         (__ctype32_wctrans): Likewise.
8323         (__ctype32_width): Likewise.
8324
8325         * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
8326         They were never exported anyway.
8327
8328         * gmon/gmon.c (_gmonparam): Add attribute_hidden.
8329         * gmon/sys/gmon.h: Remove declaration of _gmonparam.  It wasn't
8330         exported.
8331         * include/sys/gmon.h: Declare _gmonparam.
8332
8333         * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
8334         symbols for getdents64.  They were never exported.
8335
8336 2002-03-09  Roland McGrath  <roland@frob.com>
8337
8338         * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
8339         Reported by Jon Arney <jarney1@cox.net>.
8340
8341 2002-02-23  Roland McGrath  <roland@frob.com>
8342
8343         * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
8344         declaration.
8345         (__hurd_errno_location): Function removed.
8346
8347 2002-03-06  Andreas Jaeger  <aj@suse.de>
8348
8349         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
8350         32-bit.
8351
8352 2002-03-04  Andreas Jaeger  <aj@suse.de>
8353
8354         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New file.
8355
8356         * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
8357         x86-64.
8358
8359         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New file.
8360
8361         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New file.
8362
8363         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New file.
8364
8365         * sysdeps/x86_64/bits/setjmp.h: New file.
8366
8367         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New file.
8368
8369         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New file.
8370
8371         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
8372         for x86.
8373         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
8374         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
8375
8376 2002-02-28  Bo Thorsen  <bo@suse.de>
8377
8378         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
8379         version.
8380
8381 2002-03-03  Andreas Jaeger  <aj@suse.de>
8382
8383         * sysdeps/x86_64/bits/wordsize.h: New file.
8384
8385         * elf/nodlopenmod2.c: Provide prototype to avoid warning.
8386         * elf/tst-tlsmod1.c: Likewise.
8387
8388         * posix/regcomp.c: Get regex.h from include dir for internal
8389         prototypes.
8390
8391         * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
8392         to libc-internal.h and include it.
8393         * include/libc-internal.h: Add __init_misc.
8394
8395         * misc/init-misc.c: Include libc-internal.h for prototypes.
8396
8397         * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
8398
8399         * misc/error.c [_LIBC]: Include libioP.h for prototype of
8400         _IO_putc_internal.
8401
8402 2002-03-03  Ulrich Drepper  <drepper@redhat.com>
8403
8404         * posix/regcomp.c: Compatibility changes to allow using the code
8405         outside glibc.
8406
8407 2002-02-28  Hartvig Ekner <hartvige@mips.com>
8408
8409         * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
8410         compiled non-PIC.
8411
8412 2002-03-02  Ulrich Drepper  <drepper@redhat.com>
8413
8414         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
8415         of .str elements in the returned data structure.
8416
8417         * elf/elf.h: Add Alpha TLS bits.
8418
8419 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8420
8421         * sysdeps/unix/sysv/linux/nice.c: New file.
8422
8423 2002-03-01  Ulrich Drepper  <drepper@redhat.com>
8424
8425         * elf/Makefile (dl-routines): Add dl-origin.
8426         (elide-routines.os): Add dl-origin.
8427         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
8428         * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
8429         _dl_debug_state.
8430         * include/libc-symbols.c: Define attribute_hidden depending on
8431         HAVE_VISIBILITY_ATTRIBUTE.  Add definition of INTVARDEF.
8432
8433         * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
8434         * elf/dl-load.c: Likewise.
8435         * elf/rtld.c: Likewise.
8436         * include/unistd.h: Declare __libc_enable_secure_internal.
8437         * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
8438         Use INTUSE with __libc_enable_secure.
8439         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
8440
8441         * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
8442         * elf/dl-error.c: Likewise,
8443         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
8444
8445         * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
8446         * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
8447         function definition.  Use INTDEF with _dl_get_origin.
8448         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
8449
8450         * elf/dl-init.c: Use INTUSE with _dl_starting_up.
8451         * elf/rtld.c: Likewise.  Use INTVARDEF for _dl_starting_up.
8452
8453         * elf/dl-profile.c: Use INTDEF for _dl_mcount.
8454         * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
8455         * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
8456
8457         * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
8458         * elf/dl-deps.c: Likewise.
8459         * elf/dl-error.c: Likewise.
8460         * elf/dl-fini.c: Likewise.
8461         * elf/dl-init.c: Likewise.
8462         * elf/dl-load.c: Likewise.
8463         * elf/dl-lookup.c: Likewise.
8464         * elf/dl-reloc.c: Likewise.
8465         * elf/dl-version.c: Likewise.
8466         * elf/do-lookup.h: Likewise.
8467         * sysdeps/arm/dl-machine.h: Likewise.
8468         * sysdeps/cris/dl-machine.h: Likewise.
8469         * sysdeps/hppa/dl-machine.h: Likewise.
8470         * sysdeps/i386/dl-machine.h: Likewise.
8471         * sysdeps/m68k/dl-machine.h: Likewise.
8472         * sysdeps/powerpc/dl-machine.h: Likewise.
8473         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8474         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8475         * sysdeps/sh/dl-machine.h: Likewise.
8476         * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
8477         * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
8478         * sysdeps/x86_64/dl-machine.h: Likewise.
8479         * elf/rtld.c: Use INTDEF for _dl_argv.  Use rtld_progrname instead of
8480         _dl_argv[0].  Use INTUSE with _dl_argv.
8481         * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
8482         * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
8483
8484 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8485
8486         * elf/rtld.c (_rtld_global): Remove .protected.
8487         (_rtld_local): Strong alias to _rtld_global.
8488         * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
8489         only .os object.
8490         * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
8491         _rtld_local instead of _rtld_global.
8492         (_rtld_local): Add hidden extern, possibly in .sdata section.
8493         * configure.in: Add tests for visibility attribute and .sdata.
8494         * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
8495         * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
8496         * sysdeps/arm/dl-machine.h: Likewise.
8497         * sysdeps/generic/ldsodefs.h: Likewise.
8498         * sysdeps/hppa/dl-machine.h: Likewise.
8499         * sysdeps/cris/dl-machine.h: Likewise.
8500         * sysdeps/i386/dl-machine.h: Likewise.
8501         * sysdeps/ia64/dl-machine.h: Likewise.
8502         * sysdeps/m68k/dl-machine.h: Likewise.
8503         * sysdeps/mips/mips64/dl-machine.h: Likewise.
8504         * sysdeps/mips/dl-machine.h: Likewise.
8505         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8506         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8507         * sysdeps/sh/dl-machine.h: Likewise.
8508         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8509         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8510         * sysdeps/x86_64/dl-machine.h: Likewise.
8511
8512 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
8513
8514         * login/login.c (login): Always initialize ut_line field
8515         [PR libc/2991].
8516
8517 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8518
8519         * sysdeps/i386/Makefile (sysdep_routines): Add
8520         divdi3 in csu dir.
8521         (shared-only-routines): Likewise.
8522         * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
8523         (shared-only-routines): Likewise.
8524         * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
8525         (shared-only-routines): Likewise.
8526         * sysdeps/wordsize-32/divdi3.c: New file.
8527
8528 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
8529
8530         * locale/iso-4217.def: Remove obsolete currencies for countries
8531         with Euro.
8532
8533 2002-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
8534
8535         * posix/regcomp.c (regcomp): Remove a redundant condition.
8536         (init_word_char): Add a check on malloc failure.
8537         (create_initial_state): Likewise.
8538         (duplicate_node): Likewise.
8539         (calc_eclosure): Likewise.
8540         (calc_eclosure_iter): Likewise.
8541         (parse_expression): Likewise.
8542         (parse_bracket_exp): Remove unnecessary malloc invocations.
8543         (build_equiv_class): Likewise.
8544         (build_charclass): Likewise.
8545         * posix/regex_internal.c (re_node_set_intersect): Add a check
8546         on malloc failure.
8547         (re_node_set_add_intersect): Likewise.
8548         (re_node_set_merge): Likewise.
8549         (re_acquire_state): Likewise.
8550         (re_acquire_state_context): Likewise.
8551         (create_newstate_common): Likewise.
8552         (register_state): Likewise.
8553         (create_ci_newstate): Likewise.
8554         (create_cd_newstate): Likewise.
8555         * posix/regex_internal.h: Fix prototypes of re_acquire_state
8556         and re_acquire_state_context.
8557         * posix/regexec.c (regexec): Suit it to the error handling of
8558         re_search_internal.
8559         (re_match): Likewise.
8560         (re_search): Likewise.
8561         (re_search_internal): Add a check on malloc failure.
8562         (acquire_init_state_context): Likewise.
8563         (check_matching): Likewise.
8564         (proceed_next_node): Likewise.
8565         (set_regs): Likewise.
8566         (sift_states_backward): Likewise.
8567         (sift_states_iter_bkref): Likewise.
8568         (add_epsilon_backreference): Likewise.
8569         (transit_state): Likewise.
8570         (transit_state_sb): Likewise.
8571         (transit_state_mb): Likewise.
8572         (transit_state_bkref_loop): Likewise.
8573         (build_trtable): Likewise.
8574         (group_nodes_into_DFAstates): Likewise.
8575         (match_ctx_init): Likewise.
8576         (match_ctx_add_entry): Likewise.
8577
8578 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
8579
8580         * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
8581         l_libname if profiling is enabled [PR libc/2916].
8582
8583         * sysdeps/ia64/dl-tls.h: New file.
8584
8585 2002-02-27  Jakub Jelinek  <jakub@redhat.com>
8586
8587         * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
8588         Work around an Alpha gas bug.
8589
8590 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
8591
8592         * catgets/open_catalog.c (__open_catalog): Fix typo in code which
8593         uses read to load the catalog.
8594         Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
8595
8596 2002-02-26  Ulrich Drepper  <drepper@redhat.com>
8597
8598         * posix/Makefile (distribute): Add regcomp.c, regexec.c,
8599         regex_internal.c, and regex_internal.h.
8600         (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
8601         * posix/regex.c: Complete rewrite.
8602         * posix/regexec.c: New file.
8603         * posix/regcomp.c: New file.
8604         * posix/regex_internal.c: New file.
8605         * posix/regex_internal.h: New file.
8606         * posix/regex.h (RE_ICASE): New macro.
8607         Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
8608
8609         * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
8610         ungetwc.  It's a macro.
8611         * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
8612         implementation.
8613         Reported by Jason Merrill <jason@redhat.com>.
8614
8615 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
8616
8617         * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
8618         position to fp->_offset if it is set.
8619         * stdio-common/Makefile (tests): Add tst-fdopen.
8620         * stdio-common/tst-fdopen.c: New test.
8621
8622 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
8623
8624         * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
8625         * stdio-common/tst-ungetc.c (main): Add another test.
8626
8627 2002-02-25  Ulrich Drepper  <drepper@redhat.com>
8628
8629         * assert/assert-perr.c: Use INTUSE to reference functions and variables
8630         inside libc itself.  Use INTDEF and INTDEF2 to define appropriate
8631         aliases.  Add prototypes for the new aliases.
8632         * assert/assert.c: Likewise.
8633         * include/libc-symbols.h: Likewise.
8634         * include/stdio.h: Likewise.
8635         * include/netinet/in.h: Likewise.
8636         * include/rpc/auth.h: Likewise.
8637         * include/rpc/auth_unix.h: Likewise.
8638         * include/rpc/key_prot.h: Likewise.
8639         * include/rpc/pmap_prot.h: Likewise.
8640         * include/rpc/pmap_rmt.h: Likewise.
8641         * include/rpc/rpc_msg.h: Likewise.
8642         * include/rpc/xdr.h: Likewise.
8643         * inet/gethstbyad_r.c: Likewise.
8644         * inet/gethstbynm2_r.c: Likewise.
8645         * inet/gethstbynm_r.c: Likewise.
8646         * inet/gethstent_r.c: Likewise.
8647         * inet/in6_addr.c: Likewise.
8648         * libio/__fpurge.c: Likewise.
8649         * libio/filedoalloc.c: Likewise.
8650         * libio/fileops.c: Likewise.
8651         * libio/ftello.c: Likewise.
8652         * libio/ftello64.c: Likewise.
8653         * libio/genops.c: Likewise.
8654         * libio/iofclose.c: Likewise.
8655         * libio/iofdopen.c: Likewise.
8656         * libio/iofflush.c: Likewise.
8657         * libio/iofflush_u.c: Likewise.
8658         * libio/iofgetpos.c: Likewise.
8659         * libio/iofgetpos64.c: Likewise.
8660         * libio/iofgets.c: Likewise.
8661         * libio/iofgets_u.c: Likewise.
8662         * libio/iofopen.c: Likewise.
8663         * libio/iofopncook.c: Likewise.
8664         * libio/iofputs.c: Likewise.
8665         * libio/iofread.c: Likewise.
8666         * libio/iofread_u.c: Likewise.
8667         * libio/iofsetpos.c: Likewise.
8668         * libio/iofsetpos64.c: Likewise.
8669         * libio/ioftell.c: Likewise.
8670         * libio/iofwrite.c: Likewise.
8671         * libio/iogetline.c: Likewise.
8672         * libio/iogets.c: Likewise.
8673         * libio/iogetwline.c: Likewise.
8674         * libio/iolibio.h: Likewise.
8675         * libio/iopadn.c: Likewise.
8676         * libio/iopopen.c: Likewise.
8677         * libio/ioseekoff.c: Likewise.
8678         * libio/ioseekpos.c: Likewise.
8679         * libio/iosetbuffer.c: Likewise.
8680         * libio/iosetvbuf.c: Likewise.
8681         * libio/ioungetc.c: Likewise.
8682         * libio/ioungetwc.c: Likewise.
8683         * libio/iovdprintf.c: Likewise.
8684         * libio/iovsprintf.c: Likewise.
8685         * libio/iovsscanf.c: Likewise.
8686         * libio/libioP.h: Likewise.
8687         * libio/memstream.c: Likewise.
8688         * libio/obprintf.c: Likewise.
8689         * libio/oldfileops.c: Likewise.
8690         * libio/oldiofclose.c: Likewise.
8691         * libio/oldiofdopen.c: Likewise.
8692         * libio/oldiofgetpos.c: Likewise.
8693         * libio/oldiofgetpos64.c: Likewise.
8694         * libio/oldiofopen.c: Likewise.
8695         * libio/oldiofsetpos.c: Likewise.
8696         * libio/oldiofsetpos64.c: Likewise.
8697         * libio/oldiopopen.c: Likewise.
8698         * libio/oldstdfiles.c: Likewise.
8699         * libio/putc.c: Likewise.
8700         * libio/setbuf.c: Likewise.
8701         * libio/setlinebuf.c: Likewise.
8702         * libio/stdfiles.c: Likewise.
8703         * libio/stdio.c: Likewise.
8704         * libio/strops.c: Likewise.
8705         * libio/vasprintf.c: Likewise.
8706         * libio/vscanf.c: Likewise.
8707         * libio/vsnprintf.c: Likewise.
8708         * libio/vswprintf.c: Likewise.
8709         * libio/wfiledoalloc.c: Likewise.
8710         * libio/wfileops.c: Likewise.
8711         * libio/wgenops.c: Likewise.
8712         * libio/wstrops.c: Likewise.
8713         * malloc/mtrace.c: Likewise.
8714         * misc/error.c: Likewise.
8715         * misc/syslog.c: Likewise.
8716         * nss/getXXbyYY_r.c: Likewise.
8717         * nss/getXXent_r.c: Likewise.
8718         * nss/hosts-lookup.c: Likewise.
8719         * stdio-common/getw.c
8720         * stdio-common/printf-prs.c: Likewise.
8721         * stdio-common/printf_fp.c: Likewise.
8722         * stdio-common/printf_size.c: Likewise.
8723         * stdio-common/putw.c: Likewise.
8724         * stdio-common/scanf.c: Likewise.
8725         * stdio-common/sprintf.c: Likewise.
8726         * stdio-common/tmpfile64.c: Likewise.
8727         * stdio-common/vfprintf.c: Likewise.
8728         * stdio-common/vfscanf.c: Likewise.
8729         * stdlib/strfmon.c: Likewise.
8730         * sunrpc/auth_des.c: Likewise.
8731         * sunrpc/auth_none.c: Likewise.
8732         * sunrpc/auth_unix.c: Likewise.
8733         * sunrpc/authdes_prot.c: Likewise.
8734         * sunrpc/authuxprot.c: Likewise.
8735         * sunrpc/clnt_perr.c: Likewise.
8736         * sunrpc/clnt_raw.c: Likewise.
8737         * sunrpc/clnt_tcp.c: Likewise.
8738         * sunrpc/clnt_udp.c: Likewise.
8739         * sunrpc/clnt_unix.c: Likewise.
8740         * sunrpc/key_call.c: Likewise.
8741         * sunrpc/key_prot.c: Likewise.
8742         * sunrpc/openchild.c: Likewise.
8743         * sunrpc/pm_getmaps.c: Likewise.
8744         * sunrpc/pm_getport.c: Likewise.
8745         * sunrpc/pmap_clnt.c: Likewise.
8746         * sunrpc/pmap_prot.c: Likewise.
8747         * sunrpc/pmap_prot2.c: Likewise.
8748         * sunrpc/pmap_rmt.c: Likewise.
8749         * sunrpc/rpc_cmsg.c: Likewise.
8750         * sunrpc/rpc_prot.c: Likewise.
8751         * sunrpc/svc_authux.c: Likewise.
8752         * sunrpc/svc_raw.c: Likewise.
8753         * sunrpc/svc_simple.c: Likewise.
8754         * sunrpc/svc_tcp.c: Likewise.
8755         * sunrpc/svc_udp.c: Likewise.
8756         * sunrpc/svc_unix.c: Likewise.
8757         * sunrpc/xdr.c: Likewise.
8758         * sunrpc/xdr_array.c: Likewise.
8759         * sunrpc/xdr_mem.c: Likewise.
8760         * sunrpc/xdr_rec.c: Likewise.
8761         * sunrpc/xdr_ref.c: Likewise.
8762         * sunrpc/xdr_stdio.c: Likewise.
8763         * sysdeps/generic/_strerror.c: Likewise.
8764         * sysdeps/generic/printf_fphex.c: Likewise.
8765         * sysdeps/generic/tmpfile.c: Likewise.
8766         * sysdeps/gnu/errlist.awk: Likewise.
8767         * sysdeps/gnu/errlist.c: Likewise.
8768
8769         * libio/Makefile (routines): Remove iosprint.
8770         * libio/iosprintf.c: Removed
8771
8772
8773 2002-02-24  Ulrich Drepper  <drepper@redhat.com>
8774
8775         * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
8776         non_dynamic_init and exported now.
8777         * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
8778         * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
8779         !SHARED.
8780         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
8781         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8782         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8783
8784 2002-02-23  Ulrich Drepper  <drepper@redhat.com>
8785
8786         * elf/dl-close.c (free_slotinfo): Check for end of list and return
8787         true in this case.
8788
8789         * locale/iso-639.def: Add language codes for Walloon.
8790
8791         * elf/dl-fini.c (_dl_fini): Print some final statistics on the
8792         total number of relocations performed.
8793
8794         * elf/sprof.c (load_profdata): If do_test provide information as
8795         to why loading failed.
8796         * elf/dl-profile.c (_dl_start_profile): Initialize all of
8797         hist_hdr.dimen.
8798
8799         * csu/set-init.c: Moved to...
8800         * sysdeps/mach/hurd/set-init.c: ...here.  New file.
8801         * csu/Makefile: Don't compile set-init.
8802         * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
8803         * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
8804         to __libc_init.
8805         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8806         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8807         * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
8808         __libc_init.
8809         * misc/init-misc.c: Always export __init_misc.  Don't define hooks for
8810         __libc_subinit.
8811
8812 2002-02-22  Ulrich Drepper  <drepper@redhat.com>
8813
8814         * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
8815         * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
8816         * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
8817         (_dl_deallocate_tls): New function.
8818         * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
8819         _dl_deallocate_tls.
8820
8821 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
8822
8823         * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
8824         * stdio-common/tst-fseek.c (main): Add test for this.
8825
8826 2002-02-19  Ulrich Drepper  <drepper@redhat.com.>
8827
8828         * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
8829
8830 2002-02-19  Jakub Jelinek  <jakub@redhat.com>
8831
8832         * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
8833         pointer before dereferencing.
8834
8835 2002-02-18  Roland McGrath  <roland@frob.com>
8836
8837         * sysdeps/mach/hurd/times.c: Fix typo in last change.
8838
8839         * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
8840         Use task_policy in place of task_priority.
8841
8842         * sysdeps/generic/bits/mman.h
8843         (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
8844         * sysdeps/mach/msync.c: New file.
8845
8846         * sysdeps/mach/powerpc/syscall.S: New file.
8847
8848         * mach/msg.c [MACH_MSG_OVERWRITE]
8849         (__mach_msg_trap, __mach_msg_overwrite): New functions.
8850         * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
8851
8852         * sysdeps/mach/configure.in: Check for clock.defs to put into
8853         mach_interface_list.
8854         * sysdeps/mach/configure: Regenerated.
8855
8856         * mach/Makefile (mach-machine): New variable, set from $(base-machine).
8857         ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
8858         ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
8859         Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
8860         (mach-shortcuts): Add device_read_overwrite_request,
8861         device_read_overwrite, vm_read_overwrite, thread_switch.
8862
8863         * configure.in (base_machine): Set to $machine by default.
8864         * configure: Regenerated.
8865
8866         * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
8867         or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
8868         * sysdeps/mach/configure: Regenerated.
8869         * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
8870
8871         * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
8872
8873         * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
8874
8875         * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
8876         Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
8877
8878 2002-02-17  Roland McGrath  <roland@frob.com>
8879
8880         * sysdeps/mach/hurd/times.c
8881         [NO_CREATION_TIME] (startup_time): New static variable.
8882         [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
8883         (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
8884         creation_time from task_basic_info.
8885         (__times): Use __gettimeofday instead of __host_get_time.
8886
8887         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
8888         Use untyped Mach IPC message format.
8889
8890         * hurd/catch-exc.c: Include <assert.h>, missing from last change.
8891
8892         * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
8893         _S_catch_exception_raise_state_identity,
8894         _hurdsig_fault_catch_exception_raise_state,
8895         _hurdsig_fault_catch_exception_raise_state_identity.
8896
8897         * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
8898
8899         * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
8900         __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
8901
8902         * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
8903         `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
8904
8905         * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
8906         (fmh, unfmh): Define these functions only #if FMH.  Otherwise define
8907         them as no-op macros.
8908         [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
8909         (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
8910
8911         * sysdeps/powerpc/dl-machine.h
8912         (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
8913
8914         * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
8915         Use untyped Mach IPC message format.
8916
8917         * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
8918         Handle untyped Mach IPC message formats.
8919
8920         * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
8921         Expect different argument conventions when this is defined.
8922         [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
8923         [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
8924         * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
8925         [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
8926         for OSF Mach variant.
8927         (faulted): Use mig_reply_error_t for REPLY.
8928         (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
8929         in __thread_set_exception_ports call.
8930         (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
8931         __mach_port_set_attributes in place of __mach_port_set_qlimit.
8932
8933         * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
8934         before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
8935         on Darwin, which includes bogons.
8936
8937         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
8938         variable LOADBASE so it's not declared when it's not used.
8939
8940 2002-02-16  Roland McGrath  <roland@frob.com>
8941
8942         * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
8943         to use BI.creation_time.
8944
8945         * mach/Machrules (MIG): Add -x c to CPP value passed down.
8946
8947         * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
8948         * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
8949         * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
8950         host_page_size instead of vm_statistics.
8951
8952         * sysdeps/mach/Makefile (mach-before-compile): Don't include
8953         mach_interface.h here, since not all variants use that name.
8954
8955         * sysdeps/mach/configure.in: Add some checks for Mach headers
8956         to ensure a sane installation.
8957         (mach_interface_list): Define this variable by checking for .defs
8958         files found in various variants.
8959         * configure.in (mach_interface_list): AC_SUBST this.
8960         * config.make.in (mach-interface-list): New substituted variable.
8961         * mach/Makefile (user-interfaces): Define this using the value
8962         of $(mach-interface-list) instead of mach, mach4.
8963         Updated other references to mach_interface to use it as well.
8964
8965         * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
8966
8967         * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
8968         mig_reply_error_t for OSF Mach variant.
8969
8970         * mach/Makefile (routines): Remove bootprivport.
8971         * mach/bootprivport.c: File removed.  It has never been used.
8972
8973         * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
8974         Grok the OSF flavor of message format.
8975         (mach_msg_destroy_port): For MAKE_SEND and
8976         MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
8977         no-senders notification.
8978
8979 2002-02-06  Roland McGrath  <roland@frob.com>
8980
8981         * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
8982         to here if 2.0 compatibility enabled ...
8983         (libc: GLIBC_2.1.3): ... from here.
8984
8985 2002-02-15  Ulrich Drepper  <drepper@redhat.com>
8986
8987         * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
8988         generation counter.
8989         * elf/dl-close.c (_dl_close): Likewise.
8990
8991 2002-02-14  Ulrich Drepper  <drepper@redhat.com>
8992
8993         * elf/Makefile: Add rules to build and run tst-tls8.
8994         * elf/tst-tls8.c: New file.
8995         * elf/tst-tlsmod4.c: New file.
8996
8997         * stdlib/test-a64l.c (tests): Add more test cases.
8998
8999         * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
9000         Reported by Walter Harms <WHarms@bfs.de>.
9001
9002 2002-02-11  Jes Sorensen  <jes@trained-monkey.org>
9003
9004         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
9005         definitions for struct sigcontext.
9006         Suggested by David Mosberger-Tang.
9007
9008 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
9009
9010         * elf/dl-close.c (remove_slotinfo): New function.  Handles everything
9011         for removing reference of module in slotinfo list.
9012         (_dl_close): Use remove_slotinfo.
9013         * sysdeps/generic/dl-tls.c: General pretty printing.
9014         (oom): Define only if SHARED.
9015         (_dl_next_tls_modid): Correct starting point for the case we assume
9016         there is a gap.  Add missing instruction grouping (doh!).  Correct
9017         tests for reaching maximum index.
9018         * elf/Makefile: Add rules to build and run tst-tls7.
9019         * elf/tst-tls7.c: New file.
9020         * elf/tst-tlsmod3.c: New file.
9021
9022         * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
9023         USE_TLS.
9024         * elf/tst-tlsmod2.c: Likewise.
9025
9026         * elf/dl-close.c (_dl_close): When closing an object using TLS
9027         either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
9028         true.  Increment dl_tls_generation only if we closed any TLS-using
9029         object.
9030         * elf/tst-tls6.c: New file.
9031         * elf/Makefile: Add rules to build and run tst-tls6.
9032
9033         * po/da.po: Update from translation team.
9034
9035         * locale/categories.def: Fix typo [PR libc/2948].
9036         * po/Makefile (BROKEN_LINGUAS): Works with current gettext
9037         [PR libc/2949].
9038         * locale/iso-4217.def: Update from official version [PR libc/2950].
9039         * glibcbug.in: Honor TMPDIR [PR libc/2951].
9040         * locale/programs/ld-collate.c (collate_finish): Bail out with a
9041         message if input is too confusion instead of using assert.
9042         (collate_read): Don't crash on unknown symbol [PR libc/2952].
9043         Patches by Alastair McKinstry <alastair@pdd.3com.com>.
9044
9045         * elf/tst-tls1.c: Move #include "tls-macros.h" inside #ifdef USE_TLS.
9046         * elf/tst-tls2.c: Likewise.
9047         * elf/tst-tls3.c: Likewise.
9048
9049 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
9050
9051         * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
9052
9053 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
9054
9055         * elf/dl-open.c (dl_open_worker): Only bump the generation counter
9056         if this is really necessary.
9057
9058         * elf/dl-close.c (_dl_close): Implement freeing entries in the
9059         slotinfo array.
9060         (free_mem): Free memory for the slotinfo array if possible.
9061
9062 2002-02-12  Andreas Schwab  <schwab@suse.de>
9063
9064         * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
9065
9066 2002-02-12  Ulrich Drepper  <drepper@redhat.com>
9067
9068         * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
9069         TLS_DTV_UNALLOCATE.
9070         (oom): New function.
9071         (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
9072         (_dl_determine_tlsoffset): Likewise.
9073         (_dl_allocate_tls): Likewise.
9074         (__TLS_GET_ADDR): Define if not already defined.
9075         (_dl_tls_symaddr): New function.
9076         (allocate_and_init): New function.
9077         (__tls_get_addr): Actually implement handling of generation counter
9078         and deferred allocation.
9079         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
9080         add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9081         _dl_tls_generation.
9082         Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
9083         Declare _dl_tls_symaddr.
9084         * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
9085         SHARED.
9086         * include/link.h (struct link_map):  Remove l_tls_nextimage and
9087         l_tls_previmage.
9088         * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
9089         instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
9090         (_dl_vsym): Likewise.
9091         * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
9092         layout.
9093         (dl_main): Allow PT_TLS be present for empty segment.  Remove
9094         nextimage list handling.  Instead add all modules using TLS to
9095         dl_tls_dtv_slotinfo_list.
9096         * elf/dl-open.c (dl_open_worker): After successfully loading all
9097         objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
9098         * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
9099         empty segment don't do anything.  Remove handling of initimage list.
9100         * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
9101         (GLIBC_PRIVATE): Add _dl_tls_symaddr.
9102         * elf/dl-minimal.c: Define __libc_memalign.
9103         * elf/dl-support.c: Remove _dl_initimage_list.  Add
9104         _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9105         _dl_tls_generation.
9106         * include/stdlib.h: Declare __libc_memalign.
9107
9108         * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
9109         * elf/tst-tls4.c: New file.
9110         * elf/tst-tls5.c: New file.
9111         * elf/tst-tlsmod2.c: New file.
9112
9113         * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
9114
9115         * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
9116
9117         * elf/tst-tls1.c: Use test-skeleton.c.
9118         * elf/tst-tls2.c: Likewise.
9119         * elf/tst-tls3.c: Likewise.
9120
9121         * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
9122
9123 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
9124
9125         * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
9126
9127 2002-02-10  Ulrich Drepper  <drepper@redhat.com>
9128
9129         * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
9130
9131         * elf/tst-tls3.c: New file.
9132         * elf/tst-tlsmod1.c: New file.
9133         * elf/Makefile: Add rules to build and run tst-tls3.
9134
9135         * sysdeps/i386/dl-machine.h: Include <tls.h>.
9136         (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
9137         TLS relocations.
9138
9139         * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
9140
9141         * po/fr.po: Update from translation team.
9142
9143         * elf/tls-macros.h: Add alternative macros for use in PIC.
9144
9145         * elf/dl-lookup.c: Include <tls.h>.
9146         * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
9147
9148         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
9149         required by passing pointer to last element of the list.
9150
9151         * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
9152         l_tls_initimage to a place where it actually is performed.
9153
9154         * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
9155         after globfree() calls.
9156
9157         * elf/dl-deps.c (struct openaux_args): Add open_mode element.
9158         (openaux): Pass open_mode as new last argument to _dl_map_object.
9159         (_dl_map_object_deps): Add new argument open_mode.  Initialize
9160         open_mode element of args variable with it.
9161         * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
9162         _dl_map_object_deps.
9163         * elf/rtld.c (dl_main): Add zero as last parameter to
9164         _dl_map_object_deps call.
9165         * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
9166         * elf/nodlopen2.c: New file.
9167         * elf/nodlopenmod2.c: New file.
9168         * elf/Makefile: Add rules to build and run nodlopen2.
9169
9170         * elf/tst-tls1.c: Move TLS helper macros to...
9171         * elf/tls-macros.h: ...here.  New file.
9172         * elf/tst-tls2.c: New file.
9173         * elf/Makefile (tests): Add tst-tls2.
9174         (distribute): Add tls-macros.h.
9175
9176         * po/sv.po: Update from translation team.
9177
9178         * elf/tst-tls1.c (main): Add complete set of tests.  Split
9179         architecture specific definitions from the actual test code.
9180
9181         * po/tr.po: Update from translation team.
9182
9183 2002-02-09  Ulrich Drepper  <drepper@redhat.com>
9184
9185         * elf/Makefile (tests): Add tst-tls1.
9186         * elf/tst-tls1.c: New file.
9187
9188         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
9189         alignment of TCB for now.
9190
9191         * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
9192         initialization image for the application itself.
9193
9194         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
9195         loop to initialize TLS block.
9196
9197 2002-02-08  Richard Henderson  <rth@redhat.com>
9198
9199         * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
9200         _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
9201
9202         * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
9203
9204 2002-02-09  Jakub Jelinek  <jakub@redhat.com>
9205
9206         * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
9207
9208 2002-02-08  Ulrich Drepper  <drepper@redhat.com>
9209
9210         * po/ca.po: Update from translation team.
9211         * po/sk.po: Likewise.
9212
9213         * elf/rtld.c (_dl_start_final): Install DTV explicitly.
9214         (dl_main): Move dtv/static TLS handling before relocation.
9215         Unconditionally call _dl_tlsoffset.  Call _dl_allocate_tls and
9216         TLS_INIT_TP to allocate and install the dtv/static TLS block.
9217         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
9218         so far uses TLS initialize GL(dl_tls_static_size) and
9219         GL(dl_tls_static_align) to account for the TCB.
9220         (_dl_allocate_tls): New function.
9221         * sysdeps/generic/ldsodefs.h (rtld_global): Add
9222         _dl_initial_dtv_malloced.
9223
9224         * configure.in: Test for __builtin_memset more realistically.
9225
9226         * csu/version.c (banner): If TLS support is available say so.
9227
9228 2002-02-04  H.J. Lu  <hjl@gnu.org>
9229
9230         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
9231         __attribute_used__.
9232         (__dl_runtime_resolve): Likewise.
9233
9234         * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
9235         declaration.
9236
9237 2001-11-15  H.J. Lu  <hjl@gnu.org>
9238
9239         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
9240         <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
9241
9242         * sysdeps/unix/sysv/linux/mips/sys/user.h: New file.
9243
9244 2002-02-07  H.J. Lu  <hjl@gnu.org>
9245
9246         * sysdeps/mips/atomicity.h (compare_and_swap): Remove
9247         ".set noreorder".
9248         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
9249         Likewise.
9250
9251 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9252
9253         * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
9254
9255         * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
9256         ___tls_get_addr_internal.
9257         (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
9258
9259         * po/ko.po: Update from translation team.
9260
9261 2002-02-07  Jakub Jelinek  <jakub@redhat.com>
9262
9263         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
9264         attribute, change __pad{1,2} type to unsigned int.
9265         (struct stat64): Remove packed attribute.
9266
9267 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9268
9269         * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
9270
9271 2002-02-07  Andreas Schwab  <schwab@suse.de>
9272
9273         * configure.in: Fix check for -zcombreloc.
9274
9275 2002-02-06  H.J. Lu  <hjl@gnu.org>
9276
9277         * config.h.in (HAVE_BUILTIN_MEMSET): New macro.
9278         * configure.in: Check if __builtin_memset really works.
9279         * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
9280         __GNUC_PREREQ (2, 96) before using __builtin_memset.
9281
9282 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
9283
9284         * io/bug-ftw3.c (main): Don't try the test if root.
9285
9286 2002-02-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9287
9288         * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
9289         constraints.
9290         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
9291         Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
9292         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
9293         Likewise.
9294         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
9295         a weak alias for __clone.
9296         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
9297         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
9298         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
9299         * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
9300         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
9301         a weak alias for __mmap64.
9302
9303 2002-02-05  H.J. Lu  <hjl@gnu.org>
9304
9305         * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
9306         (atomic_add): Likewise.
9307         (compare_and_swap): Likewise.
9308         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
9309
9310 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9311
9312         * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
9313
9314         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
9315         alignment of the TCB and store total size and alignment of static
9316         TLS block in _dl_tls_static_size and _dl_tls_static_align.
9317         tls_index is a typedef.
9318         * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
9319         _dl_tls_static_align.
9320         * sysdeps/i386/dl-tls.h: tls_index is a typedef.
9321         * elf/dl-support.c: Define _dl_tls_static_size and
9322         _dl_tls_static_align.
9323
9324 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9325
9326         * configure.in: Add --without-tls option.
9327         * sysdeps/i386/elf/configure.in: Don't check for TLS support if
9328         --without-tls is given.
9329
9330         * sysdeps/generic/dl-tls.c: Include <tls.h>.
9331
9332         * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
9333
9334 2002-02-06  Roland McGrath  <roland@frob.com>
9335
9336         * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
9337         * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
9338
9339         * scripts/versions.awk: Improve error message for missing version.
9340         Each version inherits from the last one only if they have the same
9341         nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
9342         but not GLIBC_x and FOO_y.
9343
9344         * scripts/firstversions.awk: Handle libraries that don't have each
9345         particular version named in the third column of shlib-versions.
9346
9347         * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
9348
9349 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9350
9351         * Versions.def [ld]: Add GLIBC_2.3.
9352         * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
9353         * elf/Makefile (dl-routines): Add dl-tls.
9354         (distribute): Add dl-tls.h.
9355         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9356         _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9357         Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
9358         * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
9359         along with the other info in the link map.  Change queueing of init
9360         images for double linked list.  Use _dl_next_tls_modid to compute
9361         l_tls_modid.
9362         * elf/rtld.c (_dl_start_final): Store alignment requirement
9363         along with the other info in rtld map and executable map.
9364         (dl_main): Add ld.so to the init image list if necessary.  Compute
9365         final module ID with _dl_next_tls_modid.
9366         * include/link.h (struct link_map): Add l_tls_previmage and
9367         l_tls_align.
9368         * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9369         * sysdeps/i386/elf/Versions: New file.
9370         * sysdeps/generic/dl-tls.c: New file.
9371         * sysdeps/generic/dl-tls.h: New file.
9372         * sysdeps/i386/dl-tls.h: New file.
9373
9374 2002-02-06  Roland McGrath  <roland@frob.com>
9375
9376         * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
9377         * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
9378
9379 2002-01-05  Roland McGrath  <roland@frob.com>
9380
9381         * sysdeps/mach/configure.in: New file.
9382         * sysdeps/mach/configure: New generated file.
9383
9384         * mach/Makefile (user-interfaces): Remove default_pager_helper.
9385         It has never been used by anything.
9386
9387 2002-02-06  H.J. Lu  <hjl@gnu.org>
9388
9389         * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
9390         is included.
9391
9392 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9393
9394         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
9395         attribute((packed)) to counter stupid people misusing gcc options.
9396         (struct stat64): Likewise.
9397
9398 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9399
9400         * elf/rtld.c (dl_main): Correct indentation.  Use bool as type for
9401         the variables which are used as booleans.
9402
9403 2002-02-06  Andreas Jaeger  <aj@suse.de>
9404
9405         * include/libc-symbols.h (INTUSE): Renamed from INT.
9406         * elf/dl-deps.c: Change users.
9407         * sysdeps/generic/dl-sysdep.c: Likewise.
9408         * sysdeps/generic/dl-cache.c: Likewise.
9409         * elf/dl-reloc.c: Likewise.
9410         * elf/rtld.c: Likewise.
9411         * elf/dl-version.c: Likewise.
9412         * elf/dl-load.c: Likewise.
9413         * elf/dl-dst.h: Likewise.
9414         * elf/dl-init.c: Likewise.
9415         * elf/dl-error.c: Likewise.
9416         * elf/dl-fini.c: Likewise.
9417         * elf/dl-runtime.c: Likewise.
9418         * elf/do-lookup.h: Likewise.
9419
9420         * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
9421         definition.
9422         * stdio-common/_itowa.h: Likewise.
9423
9424 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9425
9426         * elf/dl-minimal.c: Define _itoa_lower_digits.
9427
9428         * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
9429         DT_FLAGS set.
9430
9431         * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
9432         loading modules with the DF_STATIC_TLS flag set.
9433         * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
9434         element.
9435         * include/link.h (struct link_map): Add l_flags field.
9436         * elf/elf.h (DF_STATIC_TLS): New definition.
9437
9438         * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
9439         * dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.
9440
9441         * elf/rtld.c (process_dl_debug): Correct printing help message.
9442         * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
9443         for %s.
9444
9445         * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
9446         definition and pass &errno in use of this variable.
9447         Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
9448
9449 2002-02-04  Andreas Schwab  <schwab@suse.de>
9450
9451         * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
9452         * locale/programs/charmap-dir.c: Wrap calls that output messages
9453         with WITH_CUR_LOCALE.  Include "localedef.h" first.
9454         * locale/programs/charmap.c: Likewise.
9455         * locale/programs/ld-address.c: Likewise.
9456         * locale/programs/ld-collate.c: Likewise.
9457         * locale/programs/ld-ctype.c: Likewise.
9458         * locale/programs/ld-identification.c: Likewise.
9459         * locale/programs/ld-measurement.c: Likewise.
9460         * locale/programs/ld-messages.c: Likewise.
9461         * locale/programs/ld-monetary.c: Likewise.
9462         * locale/programs/ld-name.c: Likewise.
9463         * locale/programs/ld-numeric.c: Likewise.
9464         * locale/programs/ld-paper.c: Likewise.
9465         * locale/programs/ld-telephone.c: Likewise.
9466         * locale/programs/ld-time.c: Likewise.
9467         * locale/programs/linereader.c: Likewise.
9468         * locale/programs/linereader.h: Likewise.
9469         * locale/programs/localedef.c: Likewise.
9470         * locale/programs/locfile.c: Likewise.
9471         * locale/programs/repertoire.c: Likewise.
9472
9473 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9474
9475         * elf/rtld.c (_dl_start_final): Determine load address to locate
9476         ehdr with GL(dl_rtld_map).l_map_start.
9477
9478         * po/ca.po: Update from translation team.
9479
9480         * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
9481         * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
9482         header entry.
9483         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
9484         _dl_tls_module_cnt.
9485         * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
9486
9487 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
9488
9489         * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
9490         * include/link.h (struct link_map): Add various members for TLS
9491         information.
9492         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9493         _rtld_tlsoffset, add _dl_initimage_list.
9494         * sysdeps/i386/dl-lookupcfg.h: New file.
9495         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
9496         TLS relocation.  When using TLS we now use RESOLVE_MAP.
9497         (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
9498         is used.
9499
9500         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
9501         unused.
9502
9503         * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
9504         thread-pointer as soon as possible.
9505         * sysdeps/generic/ldsodefs.h: Include <tls.h>.  Define first TLS
9506         elements in rtld_global.
9507         * sysdeps/generic/tls.h: New file.
9508         * elf/Makefile (distribute): Add tls.h.
9509         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
9510         relocations.  Not complete yet.
9511
9512         * resolv/resolv.h: Allow user to define __need_res_state and only
9513         define __res_start structure then.
9514         * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
9515
9516         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
9517         dl_cpuclock_offset initialization to _dl_start_final.
9518         (_dl_show_auxv): Avoid unnecessary sign extension.
9519         * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
9520
9521 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
9522
9523         * config.h.in: Add HAVE_TLS_SUPPORT.
9524         * sysdeps/i386/elf/configure.in: New file.
9525
9526 2002-02-03  Andreas Schwab  <schwab@suse.de>
9527
9528         * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
9529         * sysdeps/posix/writev.c: Use ssize_t for bytes_written.  Fix comment.
9530
9531 2002-02-03  Thorsten Kukuk  <kukuk@suse.de>
9532
9533         * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
9534         alloca if the memory reqirements are too high.
9535
9536 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
9537
9538         * elf/dl-load.c (decompose_rpath): Avoid using strstr.
9539         * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
9540         the former is available anyway and speed isn't important here.
9541         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
9542         * elf/dl-version.c (match_symbol): Likewise.
9543         (_dl_check_map_versions): Likewise.
9544         * elf/rtld.c (process_envvars): Likewise.
9545         (print_statistics): Likewise.
9546         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
9547         * elf/dl-minimal.c (_itoa): Always define it.  Make it work for all
9548         bases.  Add assert to catch uses of unimplemented features.
9549         (__strsep): Add assert to catch uses of unimplemented features.
9550         * elf/dl-object.c (_dl_new_object): Don't use rawmemchr.  Use strchr
9551         and avoid inline optimization.
9552         * elf/rtld.c (process_envvars): Likewise.
9553         * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
9554         * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
9555         * elf/rtld.c (dl_main): Avoid strsep inline optimization.
9556
9557 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
9558
9559         * stdio-common/_itoa.h: Minor simplifications of the code.
9560         * stdio-common/_itoa.c: Likewise.
9561
9562         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
9563         instead of _dl_printf for debugging info output.
9564
9565         * manual/examples/mkfsock.c (make_named_socket): Make sure name is
9566         always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.
9567
9568 2002-02-01  H.J. Lu  <hjl@gnu.org>
9569
9570         * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
9571         (atomic_add): Likewise.
9572         (compare_and_swap): Return 0 only when failed to compare. Use
9573         branch likely.
9574
9575         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
9576         branch likely.
9577
9578 2002-02-03  kaz Kojima  <kkojima@rr.iij4u.or.jp>
9579
9580         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
9581
9582 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
9583
9584         * elf/dl-minimal.c (__strsep): New minimal implementation.
9585
9586 2002-02-02  Paul Eggert  <eggert@twinsun.com>
9587
9588         * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
9589         (__mktime_internal): If no tm_isdst is requested, prefer solutions
9590         with tm_isdst > 0 when the requested time falls within a
9591         spring-forward gap [PR libc/2894].
9592
9593 2002-02-03  Andreas Schwab  <schwab@suse.de>
9594
9595         * stdio-common/tst-rndseek.c: Increase timeout.
9596
9597 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
9598
9599         Change ld.so to not use functions which are exported.  One cannot
9600         interpose them anyway.  Use INT() to mark uses, INTDEF() to mark
9601         definitions.
9602         * include/libc-symbols.h: Define INT and INTDEF.
9603         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
9604         _dl_signal_error_internal, _dl_map_object_internal,
9605         _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
9606         _dl_lookup_versioned_symbol_internal,
9607         _dl_relocate_object_internal, _dl_debug_state_internal,
9608         _dl_start_profile_internal, and _dl_unload_cache_internal.
9609         * include/dlfcn.h: Declare _dl_catch_error_internal.
9610         * elf/rtld.c: Use INT for calls to any of the *_internal functions
9611         above.  Add INTDEF to function definitions.
9612         * elf/dl-debug.c: Likewise.
9613         * elf/dl-deps.c: Likewise.
9614         * elf/dl-dst.h: Likewise.
9615         * elf/dl-error.c: Likewise.
9616         * elf/dl-fini.c: Likewise.
9617         * elf/dl-init.c: Likewise.
9618         * elf/dl-load.c: Likewise.
9619         * elf/dl-lookup.c: Likewise.
9620         * elf/dl-misc.c: Likewise.
9621         * elf/dl-open.c: Likewise.
9622         * elf/dl-profile.c: Likewise.
9623         * elf/dl-reloc.c: Likewise.
9624         * elf/dl-runtime.c: Likewise.
9625         * elf/dl-version.c: Likewise.
9626         * elf/do-lookup.h: Likewise.
9627         * sysdeps/generic/dl-cache.c: Likewise.
9628         * sysdeps/generic/dl-sysdep.c: Likewise.
9629         * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
9630         instead of _dl_init.
9631         * sysdeps/arm/dl-machine.h: Likewise.
9632         * sysdeps/cris/dl-machine.h: Likewise.
9633         * sysdeps/hppa/dl-machine.h: Likewise.
9634         * sysdeps/i386/dl-machine.h: Likewise.
9635         * sysdeps/ia64/dl-machine.h: Likewise.
9636         * sysdeps/m68k/dl-machine.h: Likewise.
9637         * sysdeps/mips/dl-machine.h: Likewise.
9638         * sysdeps/mips/mips64/dl-machine.h: Likewise.
9639         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9640         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9641         * sysdeps/sh/dl-machine.h: Likewise.
9642         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9643         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9644         * sysdeps/x86_64/dl-machine.h: Likewise.
9645         * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
9646
9647         * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
9648         and _dl_debug_initialize.
9649
9650         * elf/dl-object.c (_dl_new_object): Avoid using strrchr.  We have
9651         more information.
9652         * elf/rtld.c (dl_main): Avoid strrchr.
9653         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
9654         result of readlink.  Search from the back for '/'.
9655
9656         * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
9657         strncpy if possible.
9658
9659         * sysdeps/generic/dl-environ.c (unsetenv): Optimize.  Don't use
9660         strncmp.
9661         * elf/dl-load.c (is_dst): Optimize.  Don't call strncmp twice.
9662         * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
9663         strspn, and strcspn.
9664         (process_envvars): Don't use strcspn.
9665
9666         * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
9667         (_dl_dst_substitute): Likewise.
9668
9669 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9670
9671         * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
9672         code which is never used when relocating ld.so itself.
9673
9674         * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
9675         starting ld.so itself.  Move l_addr variable initialization closer
9676         to use.
9677         (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
9678
9679 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
9680
9681         * Versions.def (libc): Add GLIBC_PRIVATE.
9682         (libdb, libnss_db, libdb1): Remove.
9683         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
9684         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
9685         (libpthread): Add GLIBC_PRIVATE.
9686         (libresolv): Likewise, remove GLIBC_2.1.
9687         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
9688         GLIBC_2.2.3, GLIBC_2.3.
9689         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
9690         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
9691         _dl_sym, _dl_vsym): Likewise.
9692         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
9693         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
9694         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
9695         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
9696         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
9697         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
9698         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
9699         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
9700         Likewise.
9701         (_dl_object_relocation_scope): Remove.
9702         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
9703         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
9704         __gconv_cache): Move to GLIBC_PRIVATE.
9705         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
9706         __internal_setnetgrent): Likewise.
9707         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
9708         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
9709         * locale/Versions (__collate_element_hash, __collate_element_strings,
9710         __collate_symbol_classes, __collate_symbol_hash,
9711         __collate_symbol_strings, _nl_current_LC_COLLATE,
9712         _nl_current_LC_CTYPE): Likewise.
9713         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
9714         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
9715         (libnss_nis, libnss_nisplus): Likewise.
9716         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
9717         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
9718         (libnss_files): Move all symbols to GLIBC_PRIVATE.
9719         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
9720         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
9721         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
9722         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
9723         __ns_get16, __ns_samename): Likewise.
9724         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
9725         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
9726         GLIBC_PRIVATE.
9727         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
9728         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
9729         __libc_connect): Likewise.
9730         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
9731         Likewise.
9732         * stdlib/Versions (__libc_system): Likewise.
9733         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
9734         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
9735         * sysdeps/ia64/fpu/Versions: Likewise.
9736         * sysdeps/ia64/Versions: Likewise.
9737         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
9738         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
9739         to GLIBC_PRIVATE.
9740         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
9741         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
9742         __libc_sigaction): Likewise.
9743         * termios/Versions (__libc_tcdrain): Likewise.
9744
9745         * misc/sys/cdefs (__attribute_noinline__): Define.
9746         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
9747         __attribute_noinline__.
9748
9749         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
9750         * elf/dl-xstat64.c: New file.
9751         * elf/dl-fxstat64.c: New file.
9752         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
9753         don't export __fxstat64 at multiple versions.
9754         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
9755         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
9756
9757 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
9758
9759         * locale/program/ld-collate.c (collate_finish): Assign a wide
9760         char collation sequence value to multi character collating
9761         elements, and avoid over writing by non-character elements.
9762
9763 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9764
9765         * elf/Makefile (distribute): Add dl-procinfo.c.
9766         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
9767         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
9768
9769 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
9770
9771         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
9772         definition.
9773         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
9774         _rtld_global struct.
9775         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
9776         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
9777         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9778         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
9779         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
9780         _dl_fpu_control_set): Remove unused externs.
9781         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
9782         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
9783         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
9784         related variables in _rtld_global struct.
9785         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
9786         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
9787         unused extern.
9788
9789 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9790
9791         * sysdeps/generic/dl-procinfo.c: New file.
9792
9793 2002-02-01  Andreas Schwab  <schwab@suse.de>
9794
9795         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
9796
9797 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9798
9799         * elf/rtld.c (_dl_start): Mark as internal_function.
9800         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
9801         in register.
9802         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
9803         General pretty printing.
9804
9805 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
9806
9807         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
9808         * elf/dl-reloc.c: Pretty printing.
9809         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
9810         procinfo-related variables in rtld_global struct.
9811         * elf/dl-support.c: Likewise.
9812         * elf/rtld.c: Likewise.
9813         * sysdeps/i386/i686/Makefile: Likewise.
9814         * sysdeps/i386/i686/hp-timing.c: Likewise.
9815         * sysdeps/i386/i686/hp-timing.h: Likewise.
9816         * sysdeps/ia64/Makefile: Likewise.
9817         * sysdeps/ia64/hp-timing.c: Likewise.
9818         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
9819         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
9820         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
9821         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
9822         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
9823         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
9824         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
9825         * sysdeps/x86_64/Makefile: Likewise.
9826
9827         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
9828         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
9829         _dl_debug_fd to rtld_global.
9830         * elf/Versions: Likewise.
9831         * elf/dl-close.c: Likewise.
9832         * elf/dl-iteratephdr.c: Likewise.
9833         * elf/dl-lookup.c: Likewise.
9834         * elf/dl-misc.c: Likewise.
9835         * elf/dl-open.c: Likewise.
9836         * elf/dl-support.c: Likewise.
9837         * elf/do-lookup.h: Likewise.
9838         * elf/rtld.c: Likewise.
9839         * sysdeps/generic/dl-cache.c: Likewise.
9840         * sysdeps/generic/dl-sysdep.c: Likewise.
9841         * sysdeps/ia64/Versions: Likewise.
9842         * sysdeps/unix/clock_gettime.c: Likewise.
9843         * sysdeps/unix/clock_settime.c: Likewise.
9844         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
9845         * sysdeps/sparc/Versions: Removed.
9846         * sysdeps/i386/i686/Versions : Removed.
9847         * sysdeps/x86_64/Versions: Removed.
9848         * configure.in: Define HAVE_PROTECTED if .protected is available.
9849         * config.h.in: Add entry for HAVE_PROTECTED.
9850
9851 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
9852
9853         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
9854         code in struct _rtld_global.  Export this struct, remove all
9855         exports for the signal variables.
9856         * sysdeps/arm/dl-machine: Likewise.
9857         * sysdeps/generic/dl-origin: Likewise.
9858         * sysdeps/generic/dl-sysdep: Likewise.
9859         * sysdeps/generic/dl-cache: Likewise.
9860         * sysdeps/hppa/dl-fptr: Likewise.
9861         * sysdeps/hppa/dl-machine: Likewise.
9862         * sysdeps/cris/dl-machine: Likewise.
9863         * sysdeps/i386/dl-machine: Likewise.
9864         * sysdeps/ia64/dl-machine: Likewise.
9865         * sysdeps/m68k/dl-machine: Likewise.
9866         * sysdeps/mach/hurd/dl-sysdep: Likewise.
9867         * sysdeps/mips/mips64/dl-machine: Likewise.
9868         * sysdeps/mips/dl-machine: Likewise.
9869         * sysdeps/powerpc/elf/libc-start: Likewise.
9870         * sysdeps/powerpc/dl-machine: Likewise.
9871         * sysdeps/powerpc/dl-start: Likewise.
9872         * sysdeps/sparc/sparc32/dl-machine: Likewise.
9873         * sysdeps/sparc/sparc64/dl-machine: Likewise.
9874         * sysdeps/sh/dl-machine: Likewise.
9875         * sysdeps/s390/s390-32/dl-machine: Likewise.
9876         * sysdeps/s390/s390-64/dl-machine: Likewise.
9877         * sysdeps/unix/sysv/aix/libc-start: Likewise.
9878         * sysdeps/unix/sysv/aix/start-libc: Likewise.
9879         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
9880         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
9881         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
9882         * sysdeps/x86_64/dl-machine: Likewise.
9883
9884 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
9885
9886         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
9887         are too high.
9888
9889 2002-01-31  Andreas Schwab  <schwab@suse.de>
9890
9891         * sysdeps/posix/readv.c: Check for ssize_t overflow.
9892
9893 2002-01-31  Andreas Schwab  <schwab@suse.de>
9894
9895         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
9896         reference to _dl_pagesize.
9897
9898 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
9899
9900         * Versions.def [ld]: Add GLIBC_2.3.
9901         * elf/dl-addr.c: Move global variables for SHARED code in struct
9902         _rtld_global.  Export this struct, remove all exports for the
9903         signal variables.
9904         * elf/dl-close.c: Likewise.
9905         * elf/dl-conflict.c: Likewise.
9906         * elf/dl-debug.c: Likewise.
9907         * elf/dl-deps.c: Likewise.
9908         * elf/dl-dst.h: Likewise.
9909         * elf/dl-error.c: Likewise.
9910         * elf/dl-fini.c: Likewise.
9911         * elf/dl-init.c: Likewise.
9912         * elf/dl-iteratephdr.c: Likewise.
9913         * elf/dl-libc.c: Likewise.
9914         * elf/dl-load.c: Likewise.
9915         * elf/dl-lookup.c: Likewise.
9916         * elf/dl-minimal.c: Likewise.
9917         * elf/dl-object.c: Likewise.
9918         * elf/dl-open.c: Likewise.
9919         * elf/dl-profile.c: Likewise.
9920         * elf/dl-profstub.c: Likewise.
9921         * elf/dl-reloc.c: Likewise.
9922         * elf/dl-runtime.c: Likewise.
9923         * elf/dl-support.c: Likewise.
9924         * elf/dl-sym.c: Likewise.
9925         * elf/dl-version.c: Likewise.
9926         * elf/do-lookup.h: Likewise.
9927         * elf/do-rel.h: Likewise.
9928         * elf/dynamic-link.h: Likewise.
9929         * elf/rtld.c: Likewise.
9930         * sysdeps/generic/dl-cache.c: Likewise.
9931         * sysdeps/generic/dl-sysdep.c: Likewise.
9932         * sysdeps/generic/ldsodefs.h: Likewise.
9933         * sysdeps/generic/libc-start.c: Likewise.
9934         * sysdeps/i386/dl-machine.h: Likewise.
9935         * sysdeps/ia64/dl-fptr.c: Likewise.
9936         * sysdeps/ia64/dl-machine.h: Likewise.
9937         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
9938         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
9939         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
9940         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
9941         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
9942         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
9943         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
9944         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
9945
9946 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
9947
9948         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
9949         to avoid warning
9950         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
9951
9952         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
9953         SHARED version.
9954         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
9955
9956         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
9957
9958 2002-01-29  Ben Collins  <bcollins@debian.org>
9959
9960         * string/bits/string2.h (__mempcpy): Protect size arg for
9961         addition when using __builtin_memcpy.
9962
9963 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
9964
9965         * stdlib/Makefile (tests): Add tst-qsort.
9966         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
9967
9968         * manual/signal.texi (Process Signal Mask): Document that
9969         pthread_sigmask, not sigprocmask, must be used in MT programs.
9970         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
9971
9972         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
9973         found.
9974         * misc/Makefile (tests): Add tst-hsearch.
9975         * misc/tst-hsearch.c: New file.
9976
9977 2002-01-18  Wolfram Gloger  <wg@malloc.de>
9978
9979         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
9980         * malloc/malloc.h: Likewise.
9981         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
9982         * malloc/arena.c: New file.
9983         * malloc/hooks.c: New file.
9984         * malloc/tst-mallocstate.c: New file.
9985         * malloc/Makefile: Add new testcase tst-mallocstate.
9986         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
9987
9988 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
9989
9990         * stdlib/msort.c: Remove last patch.  The optimization violates the
9991         same rule which qsort.c had problems with.
9992
9993 2002-01-27  Paul Eggert  <eggert@twinsun.com>
9994
9995         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
9996         to a pivot element that lies outside the array to be sorted, as
9997         ISO C99 requires that the comparison function be called only with
9998         addresses of array elements [PR libc/2880].
9999
10000 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
10001
10002         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
10003         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
10004
10005         * timezone/asia: Update from tzdata2002b.
10006         * timezone/australasia: Likewise.
10007         * timezone/backward: Likewise.
10008         * timezone/europe: Likewise.
10009         * timezone/leapseconds: Likewise.
10010         * timezone/iso3166.tab: Likewise.
10011         * timezone/zone.tab: Likewise.
10012
10013 2002-01-23  Richard Henderson  <rth@redhat.com>
10014
10015         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
10016
10017 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
10018
10019         * string/strxfrm.c: Allocate one more byte for rulearr and clear
10020         this element [PR libc/2855].
10021
10022         * string/strcoll.c: Handle zero-length arguments specially
10023         [PR libc/2856].
10024
10025 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
10026
10027         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
10028         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
10029         short lengths and constant src.
10030         (strcpy): Don't optimize for gcc 3.0+.
10031         (__stpcpy): For gcc 3.0+, don't use
10032         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
10033         for short string literal src.
10034
10035 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
10036
10037         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
10038         Set for arm, too.
10039
10040 2001-01-22  Paul Eggert  <eggert@twinsun.com>
10041
10042         * manual/llio.texi (Linked Channels, Cleaning Streams):
10043         Make it clearer that a just-opened input stream might need cleaning.
10044
10045 2002-01-21  H.J. Lu  <hjl@gnu.org>
10046
10047         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
10048         Don't use label at end of compound statement.
10049
10050 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
10051
10052         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
10053         Remove test for negative integer arg; sin_pi does it correctly.
10054
10055 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
10056
10057         * nscd/Makefile (distribute): Filter out xmalloc.c.
10058
10059 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
10060
10061         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
10062         Set offset if read end wasn't the buffer end.
10063         (_IO_file_seekoff_mmap): New function.
10064         (_IO_file_xsgetn_mmap): New function.
10065         (_IO_file_jumps_mmap): Use the two new functions.
10066         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
10067         != end buffer.
10068         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
10069         _IO_file_underflow_mmap.
10070         * libio/iofopen.c: Don't position file descriptor at end of file.
10071         * libio/tst-widetext.c: Improve error messages.
10072         * stdio-common/tst-rndseek.c: Likewise.
10073
10074 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
10075
10076         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
10077         end of enum for !_GNU_SOURCE.
10078         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
10079         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
10080         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
10081         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
10082         values unless _GNU_SOURCE.
10083
10084         * iconvdata/tcvn5712-1.c: Minor cleanups.
10085
10086 2002-01-18  Andreas Schwab  <schwab@suse.de>
10087
10088         * sysdeps/unix/sysv/linux/configure.in
10089         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
10090
10091 2002-01-16  Roger Sayle  <roger@eyesopen.com>
10092
10093         * stdlib/msort.c (msort_with_tmp): Replace implementation with
10094         more efficient "Towers of Hanoi" mergesort.
10095         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
10096         for generic, sizeof(int) and sizeof(long) variants respectively.
10097
10098 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
10099
10100         * manual/syslog.texi (openlog): Describe possible problems with
10101         first parameter.
10102         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10103
10104         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
10105         * nscd/connections.c (begin_drop_privileges): New function.
10106         (finish_drop_privileges): New function.
10107         (nscd_init): Call the new functions which also install all groups
10108         for the server user.
10109         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
10110         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10111
10112 2002-01-17  H.J. Lu  <hjl@gnu.org>
10113
10114         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
10115         `const' from `got'.
10116
10117 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10118
10119         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
10120         instructions for pointer operations.
10121         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
10122
10123 2002-01-17  Andreas Jaeger  <aj@suse.de>
10124
10125         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
10126         __uint128_t build-in.
10127
10128         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
10129         PowerPC, sync with 2.2 branch.
10130
10131 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
10132
10133         * posix/getconf.c: Update copyright year.
10134         * nss/getent.c: Likewise.
10135         * nscd/nscd_nischeck.c: Likewise.
10136         * iconv/iconvconfig.c: Likewise.
10137         * iconv/iconv_prog.c: Likewise.
10138         * elf/ldconfig.c: Likewise.
10139         * catgets/gencat.c: Likewise.
10140         * csu/version.c: Likewise.
10141         * elf/ldd.bash.in: Likewise.
10142         * elf/sprof.c (print_version): Likewise.
10143         * locale/programs/locale.c: Likewise.
10144         * locale/programs/localedef.c: Likewise.
10145         * nscd/nscd.c (print_version): Likewise.
10146         * debug/xtrace.sh: Likewise.
10147         * malloc/memusage.sh: Likewise.
10148         * malloc/mtrace.pl: Likewise.
10149
10150 2002-01-16  Andreas Schwab  <schwab@suse.de>
10151
10152         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
10153         reliably remove "-ia64" from rtld name.
10154
10155 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
10156
10157         * iconvdata/gb18030.c: Bug fixes and support for more characters.
10158         Patch by Yu Shao <yshao@redhat.com>.
10159
10160 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10161
10162         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
10163         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
10164         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
10165
10166 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10167
10168         * sysdeps/s390/fpu/libm-test-ulps: Update.
10169
10170 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
10171
10172         * elf/elf.h: Update x86 relocations.
10173
10174 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
10175
10176         * locale/programs/charmap.c (new_width): Check whether byte
10177         sequences for both ends of range have the same length.
10178
10179 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
10180
10181         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
10182
10183 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
10184
10185         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
10186         string literals.
10187         (__full_ieee754_sqrt): Add __attribute_used__.
10188
10189 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
10190
10191         * sysdeps/generic/group_member.c (__group_member): Also check
10192         groups[0] [PR libc/2781].
10193
10194 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
10195
10196         * Makefile (distribute): Add scripts/cpp.
10197         * elf/Makefile (distribute): Add reldep6mod[01234].c,
10198         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
10199         unwind-dw2-fde.h, and dwarf2.h.
10200         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
10201         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
10202         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
10203         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
10204
10205 2002-01-07  Roland McGrath  <roland@frob.com>
10206
10207         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
10208         volatile on type of ARGC so the compiler doesn't get clever.
10209
10210 2002-01-07  Andreas Jaeger  <aj@suse.de>
10211
10212         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
10213         * sysdeps/i386/bits/byteswap.h: Likewise.
10214         * sysdeps/ia64/bits/byteswap.h: Likewise.
10215         * sysdeps/m68k/bits/byteswap.h: Likewise.
10216         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
10217         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
10218
10219 2002-01-02  Bruno Haible  <bruno@clisp.org>
10220
10221         * intl/plural.y: Fix %expect count.
10222
10223 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
10224
10225         * elf/Makefile (routines, shared-only-routines): Add
10226         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
10227         * elf/elf.h (PT_GNU_EH_FRAME): Define.
10228         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
10229         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
10230         Optimize if .eh_frame section contains no FDEs.
10231         (__register_frame, __deregister_frame_info_bases,
10232         __deregister_frame): Likewise.
10233         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
10234         DW_CFA_restore handling.
10235
10236 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
10237
10238         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
10239
10240         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
10241         for x < 0.25 and restore original range reduction method.
10242         (__ieee754_lgammal_r): Make sure signgam is set before returning.
10243
10244 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
10245
10246         * libio/fileops.c (_IO_file_underflow_mmap): New function.
10247         (_IO_file_close_mmap): New function.
10248         (_IO_file_jumps_mmap): New variable.
10249         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
10250         trying to convert rest of byte buffer.
10251         (_IO_wfile_underflow_mmap): New function.
10252         (_IO_wfile_jumps_mmap): New variable.
10253         * libio/iofopen.c (__fopen_maybe_mmap): New function.
10254         (__fopen_internal): New function.  Split out from _IO_new_fopen.
10255         (_IO_new_fopen): Call __fopen_internal.
10256         * libio/iofopen64.c: Just call __fopen_internal.
10257         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
10258         successfully.
10259         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
10260         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
10261         _IO_file_close_mmap.
10262
10263         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
10264         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
10265
10266         * stdio-common/Makefile (tests): Add tst-rndseek.
10267         * stdio-common/tst-rndseek.c: New file.
10268
10269 2002-01-05  Roland McGrath  <roland@frob.com>
10270
10271         * config.h.in (HAVE_MIG_RETCODE): New #undef.
10272         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
10273         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
10274         * sysdeps/mach/hurd/configure: Regenerated.
10275
10276 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
10277
10278         * elf/elf.h: Add more TLS definitions.
10279
10280 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
10281
10282         * include/features.h (__GLIBC_MINOR__): Bump to 3.
10283
10284 2002-01-02  Roland McGrath  <roland@frob.com>
10285
10286         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
10287         __sigisemptyset.  Don't use MASK uninitialized.
10288
10289         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
10290         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
10291         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
10292         __sigdelset, __sigaddset, __sigorset.
10293
10294         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
10295         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
10296
10297         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
10298         _hurd_ports is null.
10299
10300         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
10301         for old CMU and new OSF Mach interface flavors.
10302         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
10303         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10304
10305         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
10306
10307         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
10308         Pass extra arguments to task_create for OSF variant.
10309         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10310
10311         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
10312         conditional on [HAVE_AUX_VECTOR].
10313
10314         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
10315         mach_msg_timeout_t as type of final argument.
10316
10317         * hurd/privports.c (__get_privileged_ports):
10318         Change host_priv_t to mach_port_t in argument type.
10319         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
10320         Update decls.
10321
10322         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
10323         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
10324         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
10325         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
10326         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
10327         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
10328
10329 2002-01-01  Roland McGrath  <roland@frob.com>
10330
10331         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
10332
10333 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
10334
10335         * include/stdlib.h: Define inlines for the _l variants of the strto*
10336         functions.
10337
10338 2002-01-01  Roland McGrath  <roland@frob.com>
10339
10340         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
10341
10342         * mach/Machrules (MIG): Set CPP as well as CC.
10343
10344 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
10345
10346         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
10347         locale to parse /proc/loadavg [PR libc/2760].
10348
10349 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
10350
10351         * elf/dl-conflict.c: Include sys/param.h.
10352         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
10353         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
10354         warning.
10355         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
10356         literals to avoid warnings.
10357
10358 2001-12-31  Andreas Jaeger  <aj@suse.de>
10359
10360         * configure.in: Don't check for gsed since we do not use it anywhere.
10361
10362 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
10363
10364         * io/fts.c: Update from BSD to fix memory leaks.
10365
10366 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
10367
10368         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
10369         * elf/chroot_canon.c: Likewise.
10370         * elf/dl-object.c: Likewise.
10371         * iconv/iconv_charmap.c: Likewise.
10372         * iconv/iconv_prog.c: Likewise.
10373         * libio/iogetdelim.c: Likewise.
10374         * locale/lc-time.c: Likewise.
10375         * stdlib/canonicalize.c: Likewise.
10376         * sunrpc/svc.c: Likewise.
10377         * sysdeps/generic/glob.c: Likewise.
10378
10379 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10380
10381         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
10382         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
10383         remove high order bit from the program counter.
10384         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
10385
10386 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10387
10388         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
10389         unnecessary code and add missing reloc types.
10390         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
10391         case for reloc type R_390_NONE.
10392
10393 2001-12-28  Andreas Jaeger  <aj@suse.de>
10394
10395         * io/bug-ftw3.c: Include string.h for prototypes.
10396
10397         * crypt/md5test.c (main): Remove unused variable.
10398
10399         * dlfcn/modstatic.c: Add prototype to avoid warning.
10400
10401 2001-12-26  Roland McGrath  <roland@frob.com>
10402
10403         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
10404         check only (SS->pending & MASK) for the signal to return.
10405         From Jeroen Dekkers <jeroen@dekkers.cx>.
10406
10407 2001-12-22  Roland McGrath  <roland@frob.com>
10408
10409         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
10410         Use preprocessor #if conditionals instead of `if' to avoid
10411         warnings about divide by zero in dead code.
10412
10413         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
10414         _hurd_port_init, and __hurd_self_sigstate.
10415
10416         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
10417
10418 2001-12-21  Andreas Jaeger  <aj@suse.de>
10419
10420         * elf/dblloadmod1.c: Add prototype to avoid warning.
10421         * elf/dblloadmod2.c: Likewise.
10422         * elf/dblloadmod3.c: Likewise.
10423         * elf/reldepmod5.c: Likewise.
10424         * elf/reldepmod6.c: Likewise.
10425
10426         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
10427         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
10428         used on all architectures.
10429
10430         * sunrpc/svc_tcp.c: Add noreturn attribute for
10431         svctcp_rendezvous_abort.
10432         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
10433
10434         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
10435         to avoid warning.
10436
10437 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
10438
10439         * manual/llio.texi (aio_fsync): Fix a typo.
10440         Patch by Tammy Fox <tfox@redhat.com>.
10441
10442 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
10443
10444         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
10445         stack bias from child stack pointer before passing it to clone syscall.
10446
10447 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
10448
10449         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
10450         _SC_TZNAME_MAX.
10451         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
10452         Reported by Thorsten Kukuk <kukuk@suse.de>.
10453
10454         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
10455         add some casts.
10456
10457         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
10458
10459 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
10460
10461         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
10462         conforming: return EBADF if file descriptor is invalid and EINVAL
10463         if file descriptor is no valid tty.
10464         * login/tst-grantpt.c: New file.
10465         * login/Makefile (tests): Add tst-grantpt.
10466
10467 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
10468
10469         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
10470         different than implemented in last patch.
10471         * io/bug-ftw3.c: Adjust test for changed handling of
10472         inaccessibility of toplevel dir.
10473
10474 2001-12-16  Roland McGrath  <roland@frob.com>
10475
10476         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
10477         * grp/initgroups.c (internal_getgrouplist): Likewise.
10478
10479         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
10480         `default:' to silence new GCC warning.
10481         Rewrite cast of lvalue to silence new GCC warning.
10482
10483         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
10484
10485         * sysdeps/mach/hurd/spawni.c: New file, by me with a
10486         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
10487
10488 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
10489
10490         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
10491         Patch by Stephen R. van den Berg.
10492
10493         * crypt/md5.h: Define md5_uintptr.
10494
10495 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
10496
10497         * libio/tst_swprintf.c (main): Add test for string argument with
10498         zero precision.
10499         * stdio-common/Makefile (tests): Add tst-sprintf.
10500         * stdio-common/tst-sprintf.c: New file.
10501
10502 2001-12-13  Andreas Schwab  <schwab@suse.de>
10503
10504         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
10505         zero precision with wide character string format.
10506
10507 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
10508
10509         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
10510         but have a user supplied buffer, return the empty buffer, not NULL.
10511
10512 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
10513
10514         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
10515         Patch by Eric Sharkey <sharkey@netrics.com>.
10516
10517         * crypt/md5test.c (main): Add test for multiple calls to
10518         __md5_process_bytes to itererate over input string.
10519
10520 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
10521
10522         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
10523         from __nis_findfastest.  Take timeout value from parameter.
10524         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
10525         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
10526         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
10527
10528 2001-12-12  Andreas Jaeger  <aj@suse.de>
10529
10530         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
10531         combreloc test so that it works in this case.
10532
10533         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
10534
10535 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
10536
10537         * sysdeps/sh/Makefile: New file.
10538         * sysdeps/sh/_mcount.S: New file.
10539         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
10540         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
10541
10542 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
10543
10544         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
10545         limitation [PR libc/2564].
10546
10547 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
10548
10549         * elf/Makefile (dl-routines): Add conflict.
10550         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
10551         (ld.so): Add _begin local symbol.
10552         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
10553         Define.
10554         * elf/dl-deps.c (_dl_build_local_scope): New function.
10555         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
10556         of all libraries.
10557         * elf/do-rel.h (VALIDX): Define.
10558         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
10559         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
10560         can be skipped.
10561         * elf/dl-conflict.c: New file.
10562         * elf/dl-lookup.c (_dl_debug_bindings): New function.
10563         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
10564         non-NULL.
10565         (_dl_lookup_symbol_skip): Likewise.
10566         (_dl_lookup_versioned_symbol): Likewise.
10567         (_dl_lookup_versioned_symbol_skip): Likewise.
10568         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
10569         define to ElfW(Rel).
10570         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
10571         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
10572         ranges.
10573         Don't adjust address dynamic tags if l_addr is 0.
10574         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
10575         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
10576         (VALIDX, ADDRIDX): Define.
10577         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
10578         (dl_main): Print library list for LD_TRACE_PRELINKING.
10579         If prelinking information can be used, skip relocating libraries and
10580         call _dl_resolve_conflicts instead.
10581         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
10582         * elf/dl-load.c (_dl_map_object): Don't create fake libs
10583         if LD_TRACE_PRELINKING.
10584         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
10585         + DT_ADDRNUM.
10586         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
10587         (DL_DEBUG_PRELINK): Define.
10588         (_dl_resolve_conflicts): Add prototype.
10589
10590         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
10591         .plt for prelinked libraries where prelinking info cannot be used.
10592         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
10593         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
10594         * sysdeps/arm/bits/link.h: New file.
10595         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
10596         content of .got[1].
10597         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
10598         (ELF_MACHINE_PLT_REL): Define.
10599         (elf_machine_rela, elf_machine_rela_relative): New functions.
10600         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
10601         of adjusting it if prelinked and prelinking cannot be used.
10602         * sysdeps/i386/bits/link.h: New file.
10603         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
10604         content of .got[1].
10605         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
10606         (ELF_MACHINE_PLT_REL): Define.
10607         (elf_machine_rela, elf_machine_rela_relative): New functions.
10608         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
10609         of adjusting it if prelinked and prelinking cannot be used.
10610         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
10611         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
10612         to find out map for R_PPC_JMP_SLOT relocs.
10613         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
10614         (OPCODE_BA): Define.
10615         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
10616         libraries where prelinking info cannot be used.
10617         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
10618         (elf_machine_fixup_plt): Call sparc_fixup_plt.
10619         (elf_machine_rela): Set value to 0 if relocating conflicts.
10620         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
10621         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
10622         (sparc64_fixup_plt): Fix a typo.
10623         (elf_machine_rela): Set value to 0 if relocating conflicts.
10624         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
10625         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
10626         libraries where prelinking info cannot be used.
10627         * sysdeps/sh/bits/link.h: New file.
10628         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
10629         content of .got[1].
10630         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
10631         of adjusting it if prelinked and prelinking cannot be used.
10632         * sysdeps/s390/s390-32/bits/link.h: New file.
10633         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
10634         Save original content of .got[1].
10635         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
10636         of adjusting it if prelinked and prelinking cannot be used.
10637         * sysdeps/s390/s390-64/bits/link.h: New file.
10638         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
10639         Save original content of .got[1].
10640         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
10641         of adjusting it if prelinked and prelinking cannot be used.
10642         * sysdeps/x86_64/bits/link.h: New file.
10643         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
10644         Save original content of .got[1].
10645         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
10646         of adjusting it if prelinked and prelinking cannot be used.
10647
10648 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
10649
10650         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
10651         where appropriate instead of numbers.  Little optimizations.
10652
10653 2001-12-10  Roland McGrath  <roland@frob.com>
10654
10655         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
10656         set it.
10657
10658         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
10659         set to GLIBC_2.2.5, not GLIBC_2.2.4.
10660
10661         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
10662         Fix conditionals so this is set by default for stdio and not for libio.
10663         * sysdeps/mach/hurd/configure: Regenerated.
10664
10665 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
10666
10667         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
10668
10669 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
10670
10671         * io/Makefile (tests): Add bug-ftw3.
10672         * io/bug-ftw3.c: New file.
10673
10674         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
10675         matches and GLOB_NOCHECK is set.
10676         * posix/globtest.sh: Correct expected result for NOCHECK test.
10677
10678         * po/ca.po: Update from translation team.
10679
10680 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
10681
10682         Implement transliteration of characters in strings of the locale
10683         definitions.
10684         * locale/programs/linereader.c: Adjust for additional parameter to
10685         lr_token.
10686         (get_string): If character <Uxxxx> is not found try to transliterate
10687         it.
10688         * locale/programs/ld-ctype.c: Adjust for additional parameter to
10689         lr_token.  Add const to charmap parameter of all functions.
10690         (find_translit, find_translit2): New functions.
10691         * locale/programs/charmap.c: Adjust for additional parameter to
10692         lr_token.
10693         * locale/programs/repertoire.c: Likewise.
10694         * locale/programs/linereader.h: Likewise.
10695         * locale/programs/ld-address.c: Likewise.  Add const to charmap
10696         parameter of all functions.
10697         * locale/programs/ld-collate.c: Likewise.
10698         * locale/programs/ld-identification.c: Likewise.
10699         * locale/programs/ld-measurement.c: Likewise.
10700         * locale/programs/ld-messages.c: Likewise.
10701         * locale/programs/ld-monetary.c: Likewise.
10702         * locale/programs/ld-name.c: Likewise.
10703         * locale/programs/ld-numeric.c: Likewise.
10704         * locale/programs/ld-paper.c: Likewise.
10705         * locale/programs/ld-paper.c: Likewise.
10706         * locale/programs/ld-telephone.c: Likewise.
10707         * locale/programs/ld-time.c: Likewise.
10708         * locale/programs/locfile.c: Likewise.
10709         * locale/programs/localedef.c: Likewise.
10710         * locale/programs/localedef.h: Likewise.
10711         * locale/programs/locfile.h: Likewise.  Add declaration for
10712         find_translit.
10713         * locale/programs/simple-hash.c: Add const to first parameter of
10714         find_entry, iterate_table, and lookup.
10715         * locale/programs/simple-hash.h: Likewise.
10716         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
10717         instead.
10718         * include/locale.h: Define __LC_LAST.
10719         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
10720
10721 2001-12-07  Geoff Keating  <geoffk@redhat.com>
10722
10723         * sysdeps/powerpc/Dist: Update for recent FP changes.
10724         * sysdeps/powerpc/fpu/Dist: Likewise.
10725
10726 2001-12-07  Andreas Schwab  <schwab@suse.de>
10727
10728         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
10729
10730 2001-12-06  Geoff Keating  <geoffk@redhat.com>
10731
10732         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
10733         save/restore functions here.
10734         (libm-support): Don't define these functions here.
10735         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
10736         functions here.
10737         * sysdeps/powerpc/fe_nomask.c: Move to...
10738         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
10739         * sysdeps/powerpc/fprrest.S: Move to...
10740         * sysdeps/powerpc/fpu/fprrest.S: ... here.
10741         * sysdeps/powerpc/fprsave.S: Move to...
10742         * sysdeps/powerpc/fpu/fprsave.S: ... here.
10743
10744 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
10745
10746         * sysdeps/unix/sysv/linux/opensock.c: New file.
10747
10748 2001-12-06  Geoff Keating  <geoffk@redhat.com>
10749
10750         * config.make.in (with-fp): Define from configure.
10751         * configure.in: Substitute with_fp.
10752         * configure: Regenerate.
10753         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
10754         specified, and don't change FPU environment.
10755
10756 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
10757
10758         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
10759         * assert/assert.c: Check result of __asprintf call and don't use
10760         string if it failed.
10761         * assert/assert-perr.c: Likewise.
10762         * inet/rcmd.c: Likewise.
10763         * locale/programs/localedef.c (main): Check result of
10764         construct_output_path and exit if it failed.
10765         (construct_output_path): Check result of asprintf and mkdir calls and
10766         fail if they failed.
10767         * posix/getopt.c: Check result of __asprintf calls and fail if
10768         they failed.
10769         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
10770
10771 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
10772
10773         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
10774         patch.
10775         * sysdeps/generic/strncase.c: Likewise.
10776         * string/tester.c: Add tests for strcasecmp and strncasecmp.
10777
10778 2001-12-05  Geoff Keating  <geoffk@redhat.com>
10779
10780         * scripts/cpp: Test the exit status from 'type', not 'awk'.
10781
10782         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
10783         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
10784         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
10785         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
10786         * sysdeps/powerpc/fclrexcpt.c: Move to...
10787         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
10788         * sysdeps/powerpc/fpu_control.h: Move to...
10789         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
10790
10791 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
10792
10793         * iconvdata/ibm1129.h: Remove duplicate mappings.
10794         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
10795         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
10796         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10797
10798         * timezone/zic.c: Fix handling of turnaround times.
10799         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
10800
10801 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
10802
10803         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
10804         overflow problem.
10805
10806 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
10807
10808         * posix/regex.c: For use outside glibc defined bounded pointer
10809         macros here.  Patch by Jim Meyering <jim@meyering.net>.
10810
10811         * iconvdata/Makefile (modules): Add TCVN5712-1.
10812         * iconvdata/TESTS: Add TCVN5712-1.
10813         * iconvdata/gconv-modules: Likewise.
10814         * iconvdata/tcvn5712-1.c: New file.
10815         * iconvdata/testdata/TCVN-5712: New file.
10816         * iconvdata/testdata/TCVN-5712..UTF8: New file.
10817
10818 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
10819
10820         * iconvdata/cp1258.c: Optimize conversion from UCS4.
10821
10822 2001-12-02  Roland McGrath  <roland@frob.com>
10823
10824         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
10825
10826         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
10827         Reported by Jeff Bailey <jbailey@nisa.net>.
10828
10829         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
10830         Reported by Jeff Bailey <jbailey@nisa.net>.
10831
10832         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
10833         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
10834         Reported by Jeff Bailey <jbailey@nisa.net>.
10835
10836 2001-12-01  Roland McGrath  <roland@frob.com>
10837
10838         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
10839         missing backslash in test arguments.
10840         * sysdeps/mach/hurd/configure: Regenerated.
10841
10842 2001-11-26  Roland McGrath  <roland@frob.com>
10843
10844         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
10845         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
10846
10847 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
10848
10849         * iconvdata/Makefile (modules): Add ARMSCII-8.
10850         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
10851         * iconvdata/armscii-8.c: New file.
10852
10853 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
10854
10855         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
10856         don't match, fix {{a,b},c} globbing, clean up.
10857         Patch by Flavio Veloso <flaviovs@magnux.com>.
10858         * posix/globtest.sh: Add new tests.
10859
10860 2001-11-29  Andreas Jaeger  <aj@suse.de>
10861
10862         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
10863         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
10864
10865         * sysdeps/generic/abort.c: Include libioP.h for
10866         _IO_flush_all_lockp prototype.
10867
10868 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
10869
10870         * posix/regex.h: Define __restrict_arr correctly.
10871
10872 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
10873
10874         * iconvdata/ibm1163.c: New file.
10875         * iconvdata/ibm1163.h: New file.
10876         * iconvdata/ibm1164.c: New file.
10877         * iconvdata/ibm1164.h: New file.
10878         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
10879         * iconvdata/Makefile: Likewise.
10880         * iconvdata/testdata/IBM1163: New file.
10881         * iconvdata/testdata/IBM1163..UTF8: New file.
10882         * iconvdata/testdata/IBM1164: New file.
10883         * iconvdata/testdata/IBM1164..UTF8: New file.
10884         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10885
10886         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
10887         * iconvdata/ibm1124.h: Likewise.
10888         * iconvdata/ibm1132.h: Likewise.
10889         * iconvdata/ibm1133.h: Likewise.
10890         * iconvdata/ibm1160.h: Likewise.
10891         * iconvdata/ibm1161.h: Likewise.
10892         * iconvdata/ibm1162.h: Likewise.
10893         * iconvdata/ibm856.h: Likewise.
10894         * iconvdata/ibm922.h: Likewise.
10895         * iconvdata/ibm930.h: Likewise.
10896         * iconvdata/ibm932.h: Likewise.
10897         * iconvdata/ibm933.h: Likewise.
10898         * iconvdata/ibm935.h: Likewise.
10899         * iconvdata/ibm937.h: Likewise.
10900         * iconvdata/ibm939.h: Likewise.
10901         * iconvdata/ibm943.h: Likewise.
10902         * iconvdata/ibm930.c: Pretty printing.
10903         * iconvdata/ibm937.c: Avoid access accross array boundary.
10904
10905         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
10906         the current locale's codeset.
10907         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
10908         empty input string.
10909         * iconv/iconv_prog.c: Pass empty strings as default value for to-
10910         and from-charset.  Don't determine locale's charset here.
10911
10912         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
10913         as the old _IO_flush_all but lock only if parameter is nonzero.
10914         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
10915         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
10916         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
10917         if libio is used [PR libc/2575].
10918
10919 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
10920
10921         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
10922         __signbitl): Only define for ISO C99.
10923
10924 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
10925
10926         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
10927         herrnop to NETDB_INTERNAL if we run out of buffer space.
10928
10929 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
10930
10931         * nss/nss_files/files-XXX.c (internal_getent): Correct input
10932         overflow test for platforms with signed char.
10933         Reported by Andrew Haley <aph@cambridge.redhat.com>.
10934
10935 2001-11-28  Bruno Haible  <bruno@clisp.org>
10936
10937         * locale/programs/simple-hash.c (lookup_2): Remove function.
10938         (insert_entry_2): Call lookup instead of lookup_2.
10939
10940 2001-03-04  Bruno Haible  <bruno@clisp.org>
10941
10942         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
10943
10944 2001-10-31  Bruno Haible  <bruno@clisp.org>
10945
10946         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
10947
10948 2001-03-21  Bruno Haible  <bruno@clisp.org>
10949
10950         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
10951         chokes on empty macro arguments.
10952         * intl/plural.y: Add #pragma for alloca on AIX 3.
10953
10954 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
10955
10956         * intl/dcigettext.c (guess_category_value): Only implement for
10957         glibc.  Otherwise rely on function _nl_locale_name which isn't
10958         present in the glibc sources.
10959
10960 2001-09-24  Bruno Haible  <bruno@clisp.org>
10961
10962         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
10963         transliteration when building on a glibc system but outside glibc.
10964
10965 2001-09-22  Bruno Haible  <bruno@clisp.org>
10966
10967         * intl/plural-eval.c: New file, extracted from dcigettext.c.
10968         * intl/dcigettext.c (plural_eval): Remove function, moved to
10969         intl/plural-eval.c.
10970         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
10971         Include plural-eval.c.
10972
10973 2001-09-22  Bruno Haible  <bruno@clisp.org>
10974
10975         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
10976         don't start with a digit; nplurals must be positive.
10977
10978 2001-09-02  Bruno Haible  <bruno@clisp.org>
10979
10980         * intl/plural-exp.h: New file, extracted from gettextP.h.
10981         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
10982         * intl/gettextP.h (struct expression, struct parse_args,
10983         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
10984         * intl/loadmsgcat.c: Include plural-exp.h.
10985         (PLURAL_PARSE): Move macro to plural-exp.h.
10986         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
10987         plural-exp.c.
10988         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
10989         EXTRACT_PLURAL_EXPRESSION.
10990         (_nl_unload_domain): Update.
10991         * intl/dcigettext.c: Include plural-exp.h.
10992         * intl/plural.y: Include plural-exp.h, not gettextP.h.
10993         (FREE_EXPRESSION): Move macro to plural-exp.h.
10994         * intl/Makefile (routines): Add plural-exp.
10995         (distribute): Add plural-exp.h.
10996
10997 2001-07-28  Bruno Haible  <bruno@clisp.org>
10998
10999         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
11000         isdigit, tolower argument to 'unsigned char'.
11001         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
11002         'unsigned char'.
11003         * intl/localealias.c (read_alias_file): Cast isspace argument to
11004         'unsigned char'.
11005
11006 2001-10-20  Bruno Haible  <bruno@clisp.org>
11007
11008         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
11009         anyway.)
11010         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
11011         with the variable 'index' in plural_lookup.
11012         * intl/l10nflist.c (strchr): Likewise.
11013         * intl/localealias.c (strchr): Likewise.
11014
11015         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
11016         * intl/bindtextdom.c: Likewise.
11017         * intl/dcigettext.c: Likewise.
11018         * intl/dgettext.c: Likewise.
11019         * intl/dngettext.c: Likewise.
11020         * intl/explodename.c: Likewise.
11021         * intl/finddomain.c: Likewise.
11022         * intl/gettext.c: Likewise.
11023         * intl/l10nflist.c: Likewise.
11024         * intl/loadmsgcat.c: Likewise.
11025         * intl/localealias.c: Likewise.
11026         * intl/ngettext.c: Likewise.
11027         * intl/textdomain.c: Likewise.
11028         * intl/gettext.h: Assume <limits.h> exists.
11029
11030 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
11031
11032         * stdio-common/Makefile (tests): Add scanf11.
11033         * stdio-common/scanf11.c: New file.
11034
11035 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
11036
11037         * version.h (RELEASE): Define as development.
11038         (VERSION): Set to 2.2.90.
11039
11040 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
11041
11042         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
11043         * nis/nss_nis/nis-grp.c: Likewise.
11044         * nis/nss_nisplus/nisplus-grp.c: Likewise.
11045
11046         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
11047         * nis/nss_nis/nis-pwd.c: Likewise.
11048         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
11049
11050         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
11051         * nis/nss_nisplus/nisplus-parser.c: Likewise.
11052         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
11053
11054         * nscd/grpcache.c: Use strtoul instead of atol.
11055         * nscd/pwdcache.c: Likewise.
11056         * nss/getent.c: Likewise.
11057
11058 2001-11-27  Paul Eggert  <eggert@twinsun.com>
11059
11060         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
11061         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
11062
11063 2001-11-19  Bruno Haible  <bruno@clisp.org>
11064
11065         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
11066         90%.
11067         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
11068         improves the quality of the hash function, especially for short
11069         strings.
11070
11071 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
11072
11073         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
11074         are found call conv_error and not input_error [PR libc/2669].
11075
11076         * math/bits/mathcalls.h: Mark ceil and floor as const.
11077         Reported by David Mosberger.
11078
11079 2001-11-21  Jim Meyering  <meyering@lucent.com>
11080
11081         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
11082         Define to be __-prefixed.
11083         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
11084
11085 2001-11-26  Andreas Jaeger  <aj@suse.de>
11086
11087         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
11088         avoid warning.
11089
11090 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
11091
11092         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
11093         initialization.
11094
11095         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
11096         unused variables.  Fix threshold for returning 1.0.
11097
11098         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
11099         argument.
11100
11101         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
11102         remove unused variables.
11103
11104         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
11105
11106         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
11107         include local math header files.
11108
11109 2001-11-22  Andreas Jaeger  <aj@suse.de>
11110
11111         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
11112         avoid warning.
11113
11114 2001-11-21  Andreas Jaeger  <aj@suse.de>
11115
11116         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
11117
11118         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
11119         sys/debugreg.h
11120
11121 2001-11-15  Andreas Jaeger  <aj@suse.de>
11122
11123         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
11124         compilers that support it.
11125
11126         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
11127         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
11128         * stdlib/stdlib.h: Likewise.
11129
11130 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
11131
11132         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
11133         statement with gotos.
11134         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
11135
11136 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
11137
11138         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
11139
11140 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
11141
11142         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
11143
11144 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
11145             H.J. Lu  <hjl@gnu.org>
11146
11147         * Versions.def (libc): Add GCC_3.0.
11148         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
11149         if gcc supports this flag.
11150         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
11151         (gcc3): Allow glibc to be compiled with gcc 3.x.
11152         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
11153         * config.make.in (static-libgcc, unwind-find-fde): Add.
11154         * Makerules (build-shlib-helper, build-module-helper): Use it.
11155         * scripts/versions.awk: Make sure GLIBC_ versions come first.
11156         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
11157         necessary.
11158         (_fini): Call __deregister_frame_info_bases if
11159         __register_frame_info_bases was used to register.
11160         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
11161         for GLIBC_2.0.
11162         (__register_frame_info_bases, __register_frame_info_table_bases,
11163         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
11164         * elf/Makefile (routines): Add unwind-dw2-fde.
11165         (shared-only-routines): Add unwind-dw2-fde.
11166         * sysdeps/alpha/gccframe.h: New file.
11167         * sysdeps/arm/gccframe.h: New file.
11168         * sysdeps/generic/framestate.c: New file.
11169         * sysdeps/generic/dwarf2.h: New file.
11170         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
11171         * sysdeps/generic/unwind-dw2-fde.c: New file.
11172         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
11173         * sysdeps/generic/unwind-dw2-fde.h: New file.
11174         * sysdeps/generic/unwind-dw2.c: New file.
11175         * sysdeps/generic/unwind-pe.h: New file.
11176         * sysdeps/generic/unwind.h: New file.
11177         * sysdeps/hppa/gccframe.h: New file.
11178         * sysdeps/i386/gccframe.h: New file.
11179         * sysdeps/m68k/gccframe.h: New file.
11180         * sysdeps/mips/gccframe.h: New file.
11181         * sysdeps/powerpc/gccframe.h: New file.
11182         * sysdeps/s390/gccframe.h: New file.
11183         * sysdeps/sh/gccframe.h: New file.
11184         * sysdeps/sparc/gccframe.h: New file.
11185         * sysdeps/vax/gccframe.h: New file.
11186         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
11187         Set on all architectures except ia64.
11188         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
11189         for i386.
11190         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
11191         __deregister_frame_info): Move to elf/Versions.
11192         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
11193         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
11194         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
11195         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
11196         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
11197         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
11198         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
11199         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
11200         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
11201         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
11202         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
11203         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
11204         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
11205         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
11206         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
11207         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
11208         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
11209         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
11210
11211 2001-11-15  Jeff Law  <law@redhat.com>
11212
11213         * posix/regex.c (uintptr_t): Do not provide a definition if the
11214         system provided one.
11215
11216 2001-11-13  Roland McGrath  <roland@frob.com>
11217
11218         * stdio-common/tmpfile.c: Moved to ...
11219         * sysdeps/generic/tmpfile.c: ... here.
11220         * sysdeps/mach/hurd/tmpfile.c: New file.
11221
11222         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
11223         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
11224         (fopenport): Define as weak alias.
11225
11226         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
11227         * libio/libioP.h: ... to here.
11228
11229 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
11230
11231         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
11232         program header twice.  Construct list with the needed information.
11233
11234 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
11235
11236         * po/ca.po: Update from translation team.
11237
11238         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
11239         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
11240         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
11241         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11242
11243 2001-11-10  Andreas Jaeger  <aj@suse.de>
11244
11245         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
11246         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11247         Contributed by Stephen L Moshier <moshier@mediaone.net>.
11248
11249 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
11250
11251         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
11252         correctly.
11253         * elf/dl-load.c (is_dst): New function.
11254         (_dl_dst_count): Use is_dst to check for DST variable.
11255         (_dl_dst_substitute): Likewise.
11256
11257 2001-11-09  Roland McGrath  <roland@frob.com>
11258
11259         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
11260         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
11261         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
11262         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
11263         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
11264         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
11265         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
11266         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
11267         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
11268         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
11269         * sysdeps/mach/hurd/powerpc/Dist: New file.
11270
11271         * hurd/privports.c (__get_privileged_ports):
11272         Only contact the proc server if necessary for this call.
11273         Suggested by Neal H Walfield <neal@cs.uml.edu>.
11274         Check error return for mach_port_mod_refs.
11275
11276 2001-11-09  Andreas Schwab  <schwab@suse.de>
11277
11278         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
11279
11280 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
11281
11282         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
11283         object is always the last in the list.
11284         (_dl_map_object_from_fd): Delete code to remove from object list
11285         when DF_1_NOOPEN is seen.  This is done in lose.
11286
11287 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
11288
11289         * elf/dl-object.c (_dl_new_object): Various small optimizations.
11290
11291 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
11292
11293         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
11294         HWCAP_CHECK macro code.
11295
11296         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
11297         Now returns MAP_FAILED on error.
11298         * elf/rtld.c: Adjust caller.
11299         * sysdeps/generic/dl-cache.c: Likewise.
11300         * sysdeps/generic/ldsodefs.h: Adjust description.
11301
11302         * elf/dl-version.c (match_symbol): Optimize error handling for size.
11303         (_dl_check_map_versions): Likewise.
11304
11305 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
11306
11307         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
11308         _dl_signal_error directly, always use lose.  Set fd to -1 after
11309         file is closed.
11310         (lose): Don't call close if fd == -1.
11311
11312 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
11313
11314         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
11315          Also fix typo @code {mbsinit} to @code{mbsinit}.
11316
11317 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
11318
11319         * elf/dl-profile.c: Replace state variable with simple flag named
11320         running.  Remove commented-out code.
11321
11322         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
11323         (_dl_init_paths): Likewise.
11324         (_dl_map_object_from_fd): Likewise.
11325         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11326
11327 2001-11-06  Roland McGrath  <roland@frob.com>
11328
11329         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
11330         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
11331
11332         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
11333         sysdeps/powerpc/elf/sysdep.h.
11334         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
11335
11336 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
11337
11338         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
11339         speed.
11340         (process_envvars): Some more optimizations.
11341         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
11342
11343         * elf/elf.h: Add dynamic tag definitions for prelinking.
11344
11345         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
11346         Rewrite code to remove environment varables for SUID binaries.
11347         Small optimization in LD_PROFILE handling.
11348         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
11349         changes.
11350         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
11351
11352         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
11353
11354         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
11355         strings.  Change type of second parameter.
11356         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
11357         for last change.
11358
11359         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
11360
11361 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
11362
11363         * manual/string.texi: Fix typos.
11364         * manual/examples/argp-ex2.c: Likewise.
11365
11366 2001-11-05  Roland McGrath  <roland@frob.com>
11367
11368         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
11369         the more-specific unix/sysv/linux/powerpc file and breaks everything.
11370         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
11371         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
11372         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
11373         here, put under [__ELF__].
11374
11375 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
11376
11377         * manual/charset.texi: Extensive editing work.
11378         * manual/nss.texi: Likewise.
11379         Changes by Dennis Grace <dgrace@us.ibm.com>.
11380
11381 2001-11-04  Roland McGrath  <roland@frob.com>
11382
11383         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
11384         parameter to dir_mkfile.
11385
11386 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
11387
11388         * string/bits/string2.h (__strndup): If n is smaller than len, set
11389         len to n + 1.
11390         * string/tester.c (test_strndup): New function.
11391         (main): Call it.
11392
11393 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
11394
11395         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
11396
11397         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
11398         * scripts/cpp: New file.
11399
11400         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
11401         for rtld_search_dirs content.  Minor optimizations.
11402
11403 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
11404
11405         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
11406         avoiding unnecessary duplication.
11407
11408 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
11409
11410         * elf/dl-load.c (_dl_map_object): If library was found using
11411         LD_LIBRARY_PATH, don't try RUNPATH list.
11412
11413 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11414
11415         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
11416         Correct second argument of register_dump call.
11417         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
11418         Likewise.
11419
11420 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
11421
11422         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
11423         modules.
11424         * iconvdata/TESTS: Likewise.
11425         * iconvdata/gconv-modules: Likewise.
11426         * iconvdata/ibm1132.c: New file.
11427         * iconvdata/ibm1132.h: New file.
11428         * iconvdata/ibm1133.c: New file.
11429         * iconvdata/ibm1133.h: New file.
11430         * iconvdata/ibm1162.c: New file.
11431         * iconvdata/ibm1162.h: New file.
11432         * iconvdata/testdata/IBM1132: New file.
11433         * iconvdata/testdata/IBM1132..UTF8: New file.
11434         * iconvdata/testdata/IBM1133: New file.
11435         * iconvdata/testdata/IBM1133..UTF8: New file.
11436         * iconvdata/testdata/IBM1162: New file.
11437         * iconvdata/testdata/IBM1162..UTF8: New file.
11438         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
11439
11440         * string/string.h: Fix typo in comment.
11441         * wcsmbs/wchar.h: Likewise.
11442
11443 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
11444
11445         * manual/getopt.texi (getopt_long, getopt_long_only): Include
11446         const in type of longopts parameter.
11447
11448 2001-10-29  Andreas Jaeger  <aj@suse.de>
11449
11450         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
11451
11452 2001-10-29  Kevin Ryde  <user42@zip.com.au>
11453
11454         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
11455         output, clarify `#' behaviour on 0.
11456         (Floating-Point Conversions): Clarify that %g only uses %e when
11457         the exponent would be greater than 1.
11458
11459 2001-10-28  Roland McGrath  <roland@frob.com>
11460
11461         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
11462         * sysdeps/mach/powerpc/machine-sp.h: New file.
11463         * sysdeps/mach/powerpc/sysdep.h: New file.
11464         * sysdeps/mach/powerpc/thread_state.h: New file.
11465
11466         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
11467         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
11468         expect to need the same thing on every platform.
11469
11470         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
11471         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
11472
11473         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
11474         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
11475         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
11476         Move all these assembly-related definitions to ...
11477         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
11478
11479         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
11480         by Peter Bruin <pjbruin@dds.nl>.
11481
11482         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
11483         packing results for a `poll' call.
11484
11485 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
11486
11487         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
11488         correctly.
11489         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
11490         bracket expression.
11491
11492         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
11493         nrules value.
11494         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
11495
11496 2001-10-24  H.J. Lu  <hjl@gnu.org>
11497
11498         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
11499         Use __BEGIN_DECLS/__END_DECLS around prototypes.
11500         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
11501
11502 2001-10-21  Jim Meyering  <meyering@lucent.com>
11503
11504         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
11505         this code would end up calling gettext even in packages built
11506         with --disable-nls.
11507         * posix/getopt.c (_): Likewise.
11508         * posix/regex.c (_): Likewise.
11509
11510 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
11511
11512         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
11513         lookup not ip6.int.
11514         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
11515         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
11516
11517 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
11518
11519         * misc/sys/cdefs.h (__attribute_used__): Define.
11520         * elf/rtld.c (_dl_start): Add __attribute_used__.
11521         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
11522
11523 2001-10-25  Andreas Schwab  <schwab@suse.de>
11524
11525         * stdlib/a64l.c: Expect least significant digit first.
11526         * stdlib/l64a.c: Produce least significant digit first.
11527         * stdlib/Makefile (tests): Add test-a64l.
11528         * stdlib/test-a64l.c: New file.
11529         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
11530
11531 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
11532
11533         * po/sk.po: Update from translation team.
11534
11535 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
11536
11537         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
11538
11539 2001-10-18  Andreas Schwab  <schwab@suse.de>
11540
11541         * math/libm-test.inc (print_ulps): Print ulp values rounded to
11542         next whole number.
11543         (print_function_ulps): Likewise.
11544         (print_complex_function_ulps): Likewise.
11545         (print_max_error): Likewise.
11546         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
11547
11548 2001-10-16  Andreas Schwab  <schwab@suse.de>
11549
11550         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
11551         implementation.
11552
11553         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
11554         BSD_SETJMP or BSD__SETJMP is defined, resp.
11555         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
11556         a tail call to __sigsetjmp that would require extending the
11557         caller's frame.
11558         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
11559         * sysdeps/m68k/bsd-setjmp.S: Deleted.
11560         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
11561         Reported by Jes Sorensen <jes@trained-monkey.org>.
11562
11563 2001-10-16  Andreas Jaeger  <aj@suse.de>
11564
11565         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
11566         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
11567         close PR libc/2589.
11568
11569 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
11570
11571         * po/ca.po: New file.  Contributed by the translation team.
11572
11573 2001-10-15  Ralf Baechle  <ralf@gnu.org>
11574
11575         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
11576         a varargs prototype.  Remove dependency from kernel header files.
11577
11578         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
11579         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
11580
11581 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
11582
11583         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
11584         to generate hexadecimal identifier.
11585         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
11586
11587 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
11588
11589         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
11590
11591 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
11592
11593         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
11594         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
11595         Contributed by Stephen L Moshier <moshier@mediaone.net>.
11596
11597         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
11598         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11599         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
11600         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
11601         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
11602         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
11603
11604         * timezone/africa: Update from tzdata2001d.
11605         * timezone/asia: Likewise.
11606         * timezone/australasia: Likewise.
11607         * timezone/backward: Likewise.
11608         * timezone/europe: Likewise.
11609         * timezone/leapseconds: Likewise.
11610         * timezone/northamerica: Likewise.
11611         * timezone/southamerica: Likewise.
11612         * timezone/zone.tab: Likewise.
11613
11614 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11615
11616         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
11617         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
11618
11619 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
11620
11621         * elf/elf.h (PT_TLS): New definition.
11622
11623 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
11624
11625         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
11626         bits/errno.h
11627
11628 2001-10-07  Roland McGrath  <roland@frob.com>
11629
11630         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
11631
11632 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
11633
11634         * elf/elf.h: Add more ELFOSABI_* constants.
11635
11636 2001-10-04  Ben Collins  <bcollins@debian.org>
11637
11638         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
11639         decleration of __need_wchar_t.
11640
11641 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
11642
11643         * string/bits/string2.h (__strsep_g): Add prototype.
11644         (__strsep): Use it.
11645         * string/Versions (__strsep): Remove.
11646         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
11647
11648 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
11649
11650         * manua/llio.texi: Clarify file references added by mmap.
11651         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
11652
11653 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
11654
11655         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
11656         Add sc_loadrs and sc_rbs_bas to match current kernel.
11657
11658 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
11659
11660         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
11661
11662         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
11663
11664 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
11665
11666         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
11667         object has been bumped because of relocation dependency, avoid
11668         duplicates in l_scope.
11669         (show_scope): Fix typos.
11670         * elf/Makefile: Add rules to build and run reldep6.
11671         * elf/reldep6.c: New file.
11672         * elf/reldep6mod0.c: New file.
11673         * elf/reldep6mod1.c: New file.
11674         * elf/reldep6mod2.c: New file.
11675         * elf/reldep6mod3.c: New file.
11676         * elf/reldep6mod4.c: New file.
11677
11678 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
11679
11680         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
11681         sparc64_fixup_plt.
11682         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
11683         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
11684         for non-lazy binding. Fix .plt[32768+] handling.
11685         (elf_machine_plt_value): Don't add addend.
11686         (elf_machine_rela): Call sparc64_fixup_plt instead of
11687         elf_machine_fixup_plt.
11688         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
11689         dynamic linker at 0xfffff800XXXXXXXX.
11690
11691         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
11692
11693 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
11694
11695         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
11696
11697 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
11698
11699         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
11700         declare __cmsg_data field if its size would be bigger than 0.
11701         (CMSG_DATA): Adjust accordingly.
11702         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
11703         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
11704         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
11705         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
11706         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11707         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
11708         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11709
11710 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
11711
11712         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
11713         * iconvdata/testdata/IBM1160: New file.
11714         * iconvdata/testdata/IBM1160..UTF8: New file.
11715         * iconvdata/testdata/IBM1161: New file.
11716         * iconvdata/testdata/IBM1161..UTF8: New file.
11717         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11718
11719 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
11720
11721         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
11722         UL_SETFSIZE computations better.
11723
11724         * rt/Makefile: Remove use of filter for librt again.
11725
11726         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
11727         UL_SETFSIZE computations better.
11728
11729         * string/Versions: Export __strsep for GLIBC_2.2.5.
11730         * string/bits/string2.h: Define all __STRING_INLINE functions if
11731         _FORCE_INLINES is defined.
11732         Use int instead of char of parameter types.
11733         (__strsep): Don't use __strsep_g.  Don't define it.
11734         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
11735         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
11736         __strcpy_small.
11737         (__stpcpy_a_small): Renamed from __stpcpy_small.
11738         (__strcspn_c1): Don't define if _FORCE_INLINES.
11739         (__strspn_c1): Likewise.
11740
11741 2001-09-22  Ben Collins  <bcollins@debian.org>
11742
11743         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
11744         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
11745         * sysdeps/ia64/bits/sigaction.h: Likewise.
11746         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
11747
11748 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
11749
11750         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
11751
11752 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
11753
11754         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
11755
11756 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
11757
11758         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
11759
11760 2001-09-20  H.J. Lu  <hjl@gnu.org>
11761
11762         * include/dlfcn.h (__RTLD_SPROF): New definiton.
11763         * elf/dl-open.c (dl_open_worker): Return immediately after loading
11764         for __RTLD_SPROF.
11765         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
11766         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
11767
11768 2001-09-20  H.J. Lu  <hjl@gnu.org>
11769
11770         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
11771         don't add 1.
11772
11773 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
11774
11775         * nss/getent.c: Accept -s parameter to overwrite rules in
11776         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
11777
11778         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
11779         with as many ".0" as necessary to form a complete address
11780         inet_network understands.
11781
11782         * nss/getent.c: Various cleanups.  Use simpler and fewer function
11783         calls.
11784
11785 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11786
11787         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
11788         _JMPBUF_UNWINDS.
11789         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
11790
11791 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
11792
11793         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
11794         IBM1161.
11795         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
11796         * iconvdata/ibm1160.c: New file.
11797         * iconvdata/ibm1160.h: New file.
11798         * iconvdata/ibm1161.c: New file.
11799         * iconvdata/ibm1161.h: New file.
11800         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11801
11802 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
11803
11804         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
11805         difference between base address and first PT_LOAD's virtual address,
11806         not the base address.
11807
11808 2001-09-11  Tom Rix  <trix@redhat.com>
11809
11810         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
11811         ifdef for __getopt_clean_environment.
11812         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
11813
11814 2001-09-22  Andreas Jaeger  <aj@suse.de>
11815
11816         * elf/reldep4.c (main): Add proper prototype to fix warning.
11817
11818         * elf/reldep5.c (main): Remove unused variable.
11819
11820         * math/math_private.h: Add prototypes.
11821
11822 2001-09-21  Andreas Jaeger  <aj@suse.de>
11823
11824         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
11825         * sysdeps/x86_64/Dist: New file.
11826         * sysdeps/x86_64/soft-fp/Dist: New file.
11827
11828         * sysdeps/gnu/Dist: Remove eval.c.
11829
11830 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
11831
11832         * malloc/memusage.c (realloc): Don't count already allocated
11833         memory in the sums.
11834         (me): Always use dlsym() to find the real implementations.
11835
11836         * malloc/memusage.sh: Make -n option actually do something.
11837
11838 2001-09-20  Andreas Jaeger  <aj@suse.de>
11839
11840         * elf/elf.h (R_390_NUM): Correct value.
11841
11842         * Versions.def: Add missing versions 2.2.3 for libthread_db and
11843         libpthread.
11844
11845         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
11846         for x86-64, install x86-64 into */lib64.
11847
11848         * shlib-versions: Add x86-64.
11849
11850         * elf/elf.h: Add x86-64 relocations.
11851
11852 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
11853
11854         * po/fr.po: Update from translation team.
11855
11856 2001-09-19  Andreas Jaeger  <aj@suse.de>
11857
11858         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
11859         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
11860         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
11861         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
11862         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
11863         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
11864         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
11865         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
11866         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
11867         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
11868         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
11869         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
11870         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
11871         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
11872         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
11873         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
11874         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
11875         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
11876         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
11877         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
11878         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
11879         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
11880         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
11881         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
11882         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
11883         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
11884         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
11885         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
11886         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
11887         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
11888         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
11889         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
11890         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
11891         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
11892         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
11893         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
11894         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
11895         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
11896         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
11897         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
11898         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
11899         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
11900         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
11901         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
11902         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
11903         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
11904         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
11905         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
11906         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
11907         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
11908         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
11909         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
11910         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
11911         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
11912         * sysdeps/unix/x86_64/sysdep.S: New file.
11913         * sysdeps/unix/x86_64/sysdep.h: New file.
11914         * sysdeps/x86_64/Implies: New file.
11915         * sysdeps/x86_64/Makefile: New file.
11916         * sysdeps/x86_64/Versions: New file.
11917         * sysdeps/x86_64/__longjmp.S: New file.
11918         * sysdeps/x86_64/abort-instr.h: New file.
11919         * sysdeps/x86_64/atomicity.h: New file.
11920         * sysdeps/x86_64/bits/endian.h: New file.
11921         * sysdeps/x86_64/bits/setjmp.h: New file.
11922         * sysdeps/x86_64/bits/string.h: New file.
11923         * sysdeps/x86_64/bp-asm.h: New file.
11924         * sysdeps/x86_64/bsd-_setjmp.S: New file.
11925         * sysdeps/x86_64/bsd-setjmp.S: New file.
11926         * sysdeps/x86_64/dl-machine.h: New file.
11927         * sysdeps/x86_64/elf/initfini.c: New file.
11928         * sysdeps/x86_64/elf/start.S: New file.
11929         * sysdeps/x86_64/ffs.c: New file.
11930         * sysdeps/x86_64/ffsll.c: New file.
11931         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
11932         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
11933         * sysdeps/x86_64/fpu/e_acosl.c: New file.
11934         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
11935         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
11936         * sysdeps/x86_64/fpu/e_expl.c: New file.
11937         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
11938         * sysdeps/x86_64/fpu/e_log10l.S: New file.
11939         * sysdeps/x86_64/fpu/e_log2l.S: New file.
11940         * sysdeps/x86_64/fpu/e_logl.S: New file.
11941         * sysdeps/x86_64/fpu/e_powl.S: New file.
11942         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
11943         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
11944         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
11945         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
11946         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
11947         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
11948         * sysdeps/x86_64/fpu/fegetenv.c: New file.
11949         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
11950         * sysdeps/x86_64/fpu/fegetround.c: New file.
11951         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
11952         * sysdeps/x86_64/fpu/fesetenv.c: New file.
11953         * sysdeps/x86_64/fpu/fesetround.c: New file.
11954         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
11955         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
11956         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
11957         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
11958         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
11959         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
11960         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
11961         * sysdeps/x86_64/fpu/s_atanl.c: New file.
11962         * sysdeps/x86_64/fpu/s_cosl.S: New file.
11963         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
11964         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
11965         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
11966         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
11967         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
11968         * sysdeps/x86_64/fpu/s_logbl.c: New file.
11969         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
11970         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
11971         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
11972         * sysdeps/x86_64/fpu/s_rintl.c: New file.
11973         * sysdeps/x86_64/fpu/s_significandl.c: New file.
11974         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
11975         * sysdeps/x86_64/fpu/s_sinl.S: New file.
11976         * sysdeps/x86_64/fpu/s_tanl.S: New file.
11977         * sysdeps/x86_64/gmp-mparam.h: New file.
11978         * sysdeps/x86_64/hp-timing.c: New file.
11979         * sysdeps/x86_64/hp-timing.h: New file.
11980         * sysdeps/x86_64/htonl.S: New file.
11981         * sysdeps/x86_64/memusage.h: New file.
11982         * sysdeps/x86_64/setjmp.S: New file.
11983         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
11984         * sysdeps/x86_64/stackinfo.h: New file.
11985         * sysdeps/x86_64/sysdep.h: New file.
11986         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
11987
11988         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
11989         L Moshier.
11990
11991 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
11992
11993         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
11994         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
11995
11996 2001-09-18  Andreas Schwab  <schwab@suse.de>
11997
11998         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
11999         list, now that l_scope is a pointer.
12000
12001         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
12002         scope list.
12003
12004 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
12005
12006         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
12007         (elf_machine_rela_relative): Add a missing declaration.
12008
12009 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
12010
12011         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
12012         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
12013         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
12014         ldd-rewrite scripts.
12015
12016 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
12017
12018         * elf/ldd.bash.in: Update copyright message.
12019
12020 2001-09-17  H.J. Lu  <hjl@gnu.org>
12021
12022         * hurd/hurdmalloc.c (bcopy): Removed.
12023         (realloc): Replace bcopy with memcpy.
12024         * hurd/path-lookup.c (file_name_path_scan): Likewise.
12025         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
12026         * sunrpc/rpcinfo.c (pmapdump): Likewise.
12027
12028         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
12029         (gethostbyaddr): Likewise.
12030         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
12031
12032 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
12033
12034         * sysdeps/gnu/eval.c: Removed.
12035
12036 2001-09-18  Andreas Jaeger  <aj@suse.de>
12037
12038         * sysdeps/i386/fpu/s_logbl.S: Move to ...
12039         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
12040
12041         * sysdeps/i386/fpu/s_rintl.S: Move to ...
12042         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
12043
12044         * sysdeps/i386/fpu/s_significandl.S: Move to ...
12045         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
12046
12047 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
12048
12049         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
12050         nrules value.
12051
12052 2001-09-14  H.J. Lu  <hjl@gnu.org>
12053
12054         * sysdeps/mips/fpu/libm-test-ulps: Updated.
12055
12056 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
12057
12058         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
12059         Patch by Florian La Roche <laroche@redhat.com>.
12060
12061         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
12062
12063         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
12064         ETHER_CRC_LEN.
12065
12066 2001-09-14  Andreas Schwab  <schwab@suse.de>
12067
12068         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
12069         Sumner <bls@sgi.com>.
12070         * posix/execlp.c: Likewise.
12071
12072 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
12073
12074         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
12075         is already found earlier in the search scope.
12076
12077 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
12078
12079         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
12080         filter.
12081
12082 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
12083
12084         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
12085
12086 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
12087
12088         * config.h.in: Enforce optimization to be used.
12089         * Makeconfig (preprocess-versions): Define ASSEMBLER.
12090         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
12091         * posix/Makefile (annexc-CFLAGS): Define to -O.
12092         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
12093
12094 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
12095
12096         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
12097         Patch by Stephan Kulow.
12098
12099 2001-09-08  Ben Collins  <bcollins@debian.org>
12100
12101         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
12102         usage of RESOLVE() (r_type, not reloc->r_type).
12103
12104 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
12105
12106         * elf/dl-object.c: Avoid allocating extra memory block for name.
12107         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
12108         allocated separately.
12109         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
12110
12111 2001-09-08  H.J. Lu  <hjl@gnu.org>
12112
12113         * po/zh_TW.po: Fix a typo.
12114
12115 2001-09-07  Tom Rix  <trix@redhat.com>
12116
12117         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
12118
12119 2001-08-26  Tom Rix  <trix@redhat.com>
12120
12121         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
12122         command line options.
12123         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
12124         * sysdeps/unix/sysv/aix/start.c: Removed.
12125         * sysdeps/unix/sysv/aix/start-libc.c: New file.
12126         * sysdeps/unix/sysv/aix/init-first.c: New file.
12127         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
12128
12129 2001-09-08  Ben Collins  <bcollins@debian.org>
12130
12131         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
12132         * sysdeps/generic/dl-machine.h: Likewise.
12133         * sysdeps/hppa/dl-fptr.c: Likewise.
12134         * sysdeps/ia64/dl-fptr.c: Likewise.
12135         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
12136         * sysdeps/mips/dl-machine.h: Likewise.
12137         * sysdeps/mips/mips64/dl-machine.h: Likewise.
12138         * sysdeps/powerpc/dl-machine.c: Likewise.
12139
12140 2001-09-07  Ben Collins  <bcollins@debian.org>
12141
12142         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
12143
12144         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
12145
12146 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
12147
12148         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
12149         dependencies if necessary.
12150
12151         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
12152         loaded directly) determine length if l_initfini list by iterating
12153         over its elements.  Minor optimizations.
12154         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
12155         for dependency objects.
12156         If object was already loaded check whether any of the dependencies
12157         is already on the relocation dependency list.  If yes, remove the
12158         latter.  Minor optimizations.
12159         * elf/dl-lookup.c (add_dependency): Add check for self reference of
12160         maps here.  Search l_initfini list only if the object was loaded
12161         directly and not only as a dependency.
12162         (_dl_lookup_symbol): Add relocation dependency also if object
12163         is not in global scope.  Remove test for self-reference here.
12164         (_dl_lookup_versioned_symbol): Likewise.
12165         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
12166         element of first name record.
12167         * elf/loadtest.c: Add some more test to recognize early if an object
12168         wasn't unloaded.
12169         * elf/Makefile: Add rules to build and run reldep5.
12170         * elf/reldep5.c: New file.
12171         * elf/reldepmod5.c: New file.
12172         * elf/reldepmod6.c: New file.
12173
12174         * elf/reldep2.c: Fix typo.
12175
12176 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
12177
12178         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
12179         elements.  Change l_scope to be a pointer only.
12180         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
12181         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
12182         here add searchlist of newly open file to the dependency's scope.
12183         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
12184         only searchlist from its scope.  Free own scope array if necessary.
12185         * elf/Makefile (tests): Add dblload and dblunload now.
12186
12187 2001-09-06  Andreas Jaeger  <aj@suse.de>
12188
12189         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
12190         Stephen L Moshier.
12191
12192 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
12193
12194         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
12195         they both fail.
12196         * elf/dblload.c: New file.
12197         * elf/dblloadmod1.c: New file.
12198         * elf/dblloadmod2.c: New file.
12199         * elf/dblloadmod3.c: New file.
12200         * elf/dblunload.c: New file.
12201
12202 2001-09-04  Richard Henderson  <rth@redhat.com>
12203
12204         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
12205         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
12206
12207 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
12208
12209         Correct very misleading message for error in failed runtime relocation.
12210         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
12211         place of the error.
12212         (_dl_signal_cerror): Likewise.
12213         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
12214         * elf/dl-close.c: Likewise.
12215         * elf/dl-deps.c: Likewise.
12216         * elf/dl-load.c: Likewise.
12217         * elf/dl-lookup.c: Likewise.
12218         * elf/dl-open.c: Likewise.
12219         * elf/dl-reloc.c: Likewise.
12220         * elf/dl-sym.c: Likewise.
12221         * elf/dl-version.c: Likewise.
12222         * sysdeps/generic/dl-sysdep.c: Likewise.
12223
12224 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
12225
12226         * iconv/strtab.c (strtabinit): Initialize null Strent.
12227         (newstring): Move len == 0 handling...
12228         (strtabadd): ...here.
12229         If len == 1, return null Strent.
12230         When inserting a suffix of an existing string, check if
12231         it is not equal to some suffix already recorded.
12232         Copy left and right members over if adding longer string.
12233
12234 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
12235
12236         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
12237
12238         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
12239         (__syscall_gethostname): Add prototype.
12240
12241 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
12242
12243         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
12244
12245 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
12246
12247         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
12248
12249 2001-08-27  Roland McGrath  <roland@frob.com>
12250
12251         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
12252         short, copy that much into NAME anyway before returning error.
12253
12254 2001-09-01  Richard Henderson  <rth@redhat.com>
12255
12256         * sysdeps/alpha/elf/Dist: Remove file.
12257         * sysdeps/alpha/elf/Makefile: Remove file.
12258         * sysdeps/alpha/elf/crtbegin.S: Remove file.
12259         * sysdeps/alpha/elf/crtend.S: Remove file.
12260         * sysdeps/alpha/elf/initfini.c: New file.
12261
12262 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
12263
12264         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
12265         * iconv/tst-iconv3.c: Likewise.
12266
12267 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
12268
12269         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
12270
12271 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
12272
12273         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
12274         export it.
12275         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
12276         * iconv/iconv_prog.c (insert_cache): New function.
12277         (print_known_names): If cache is used call insert_cache to use the
12278         information from the cache [PR libc/2509].
12279
12280 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
12281
12282         * time/strptime.c (strptime_internal): Recognize 'l' format and
12283         handle it like 'I' for symmetry with strftime.
12284
12285 2001-08-31  Richard Henderson  <rth@redhat.com>
12286
12287         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
12288         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
12289         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
12290         (print_statistics): Make scalar unsigned long long.
12291         * sysdeps/alpha/hp-timing.h: New file.
12292
12293 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
12294
12295         * stdio-common/perror.c (perror): Save errno early, pass it
12296         down to perror_internal.
12297         (perror_internal): Add errnum argument.
12298
12299 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
12300
12301         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
12302         Don't add old memory content for R_ALPHA_REFQUAD.
12303
12304 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12305
12306         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
12307         memory correctly.
12308
12309         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
12310         instead of open, __close instead of close, __getpagesize instead
12311         of getpagesize.
12312
12313         * string/argz-stringify.c (__argz_stringify): Use __strnlen
12314         instead of strnlen.
12315         * include/string.h (strndupa): Redefine here to use __strnlen
12316         instead of strnlen.
12317         * string/strndup.c (__strndup): Use __strnlen not strnlen.
12318
12319         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
12320         connected).
12321
12322 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
12323
12324         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
12325         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
12326         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
12327         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
12328         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
12329         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
12330         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
12331
12332 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12333
12334         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
12335
12336 2001-08-30  Andreas Jaeger  <aj@suse.de>
12337
12338         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
12339         contributed Stephen L Moshier.
12340
12341 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
12342
12343         * sunrpc/etc.rpc (sgi_fam): Add.
12344
12345 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12346
12347         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
12348
12349 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
12350
12351         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
12352         first is from a previous call.
12353         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
12354
12355 2001-08-29  Andreas Schwab  <schwab@suse.de>
12356
12357         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
12358
12359 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12360
12361         * config.make.in (INSTALL_SCRIPT): Define.
12362         * Makeconfig (INSTALL_SCRIPT): Define.
12363         * Makerules (do-install-script): New macro to install scripts using
12364         INSTALL_SCRIPT.
12365         (install-bin-script): New rule to install scripts with
12366         do-install-script.
12367         (install-bin-script-nosubdir): New rule.
12368         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
12369         (distinfo-vars): Add $(install-bin-script).
12370         * Rules (others): Likewise.
12371         * Makefile (glibcbug): Install with install-bin-script.
12372         * debug/Makefile (xtrace): Likewise.
12373         (catchsegv): Likewise.
12374         * elf/Makefile (ldd): Likewise.
12375         * malloc/Makefile (mtrace): Likewise.
12376         * timezone/Makefile (tzselect): Likewise.
12377
12378 2001-08-29  H.J. Lu  <hjl@gnu.org>
12379
12380         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
12381         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
12382         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
12383
12384 2001-08-29  Andreas Schwab  <schwab@suse.de>
12385
12386         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
12387
12388 2001-08-28  H.J. Lu  <hjl@gnu.org>
12389
12390         * Makeconfig (combreloc-LDFLAGS): New variable.
12391         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
12392         * config.make.in (have-z-combreloc): New variable.
12393         * configure.in: Substitute libc_cv_z_combreloc.
12394
12395 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
12396
12397         * po/sv.po: Update from translation team.
12398         * po/fr.po: Likewise.
12399         * po/da.po: Likewise.
12400
12401 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12402
12403         * Makerules: Fix a typo: MD% -> MD5.
12404
12405 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
12406
12407         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
12408         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
12409
12410 2001-08-28  Andreas Jaeger  <aj@suse.de>
12411
12412         * manual/libc-texinfo.sh: Add entry about free manuals.
12413
12414         * manual/contrib.texi (Contributors): Fix cross reference.
12415
12416         * manual/libc.texinfo (Copying): Include freemanuals.
12417
12418         * manual/Makefile (appendices): Add freemanuals.
12419
12420         * manual/freemanuals.texi: New file.
12421         Patch by Brian Youmans <3diff@gnu.org>.
12422
12423         * manual/libm-err-tab.pl: Pretty print more platforms, print a
12424         smaller table.
12425
12426         * manual/math.texi (Errors in Math Functions): Fix grammar, start
12427         table on separate page.
12428         Patch by Brian Youmans <3diff@gnu.org>.
12429
12430 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
12431
12432         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
12433         the connection went down after we first used it try to connect
12434         again and resend the message before printing to the console.
12435         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
12436
12437 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
12438
12439         * string/tst-strlen.c (main): Test strnlen (, -1) too.
12440         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
12441         bit set.
12442
12443 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
12444
12445         * iconv/strtab.c (searchstring): Use correct length for comparison.
12446         (strtabadd): Account total size correct if new string has old string as
12447         substring.
12448
12449 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
12450
12451         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
12452
12453 2001-08-27  Andreas Jaeger  <aj@suse.de>
12454
12455         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
12456
12457         * math/libm-test.inc (j0_test): Add extra tests.
12458         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
12459         not x, in Hankel approximation.
12460         Patches by Stephen L Moshier.
12461
12462 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
12463
12464         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
12465         link_map.
12466
12467         * configure.in: Fix test for .rela.dyn section.
12468
12469         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
12470
12471 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
12472
12473         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
12474         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
12475         Pass type_class to _dl_lookup_*.
12476         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
12477         Pass around just type_class instead of noexec, noplt pair.
12478         (_dl_lookup_versioned_symbol): Likewise.
12479         (_dl_lookup_symbol_skip): Pass around just type_class instead of
12480         noexec, noplt pair.
12481         (_dl_lookup_versioned_symbol_skip): Likewise.
12482         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
12483         * elf/do-lookup.h (do_lookup): Likewise.
12484         * include/link.h (struct link_map): Replace noexec and noplt fields
12485         in l_lookup_cache with type_class field.
12486         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
12487         ELF_RTYPE_CLASS_COPY): Define.
12488         Adjust prototypes for _dl_lookup_symbol and
12489         _dl_lookup_versioned_symbol.
12490         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
12491         elf_machine_lookup_noexec_p): Remove.
12492         (elf_machine_type_class): Define.
12493         * sysdeps/arm/dl-machine.h: Likewise.
12494         * sysdeps/hppa/dl-machine.h: Likewise.
12495         * sysdeps/cris/dl-machine.h: Likewise.
12496         * sysdeps/i386/dl-machine.h: Likewise.
12497         * sysdeps/ia64/dl-machine.h: Likewise.
12498         * sysdeps/m68k/dl-machine.h: Likewise.
12499         * sysdeps/mips/mips64/dl-machine.h: Likewise.
12500         * sysdeps/mips/dl-machine.h: Likewise.
12501         * sysdeps/powerpc/dl-machine.h: Likewise.
12502         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12503         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12504         * sysdeps/sh/dl-machine.h: Likewise.
12505         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12506         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12507
12508 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
12509
12510         * manual/message.texi (Advanced gettext functions): Change
12511         description of plural forms for Slovak.
12512         Reported by Marcel Telka <marcel@telka.sk>.
12513
12514         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
12515         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
12516
12517 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
12518
12519         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
12520         typo.  Patch by Florian La Roche <laroche@redhat.com>.
12521
12522 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
12523
12524         * include/link.h (struct link_map): Add l_lookup_cache element.
12525         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
12526         (RESOLVE_MAP): Likewise.
12527         (_dl_relocate_object): Remove cache initialization.
12528         * elf/dl-lookup.c: Rip out cache handling code.
12529         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
12530         declarations.
12531
12532         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
12533         remove some __builtin_expect.
12534         (_dl_lookup_versioned_symbol): Likewise.
12535
12536         * config.h.in: Add HAVE_Z_COMBRELOC.
12537         * configure.in: Add test for -z combreloc.
12538
12539         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
12540         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
12541         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
12542         case to almost no code.
12543
12544 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
12545
12546         * po/tr.po: Update from translation team.
12547
12548 2001-08-24  Andreas Jaeger  <aj@suse.de>
12549
12550         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
12551         make clean works.
12552
12553 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12554
12555         * elf/rtld.c (print_statistics): Printf % after percent values.
12556         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
12557
12558         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
12559         don't have to compute the hash value and initialize current_value.
12560         Move reference_name variable to where it is needed.
12561         (_dl_lookup_versioned_symbol): Likewise.
12562
12563 2001-08-24  Roland McGrath  <roland@frob.com>
12564
12565         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
12566         Just test that strerror returns non-null for a few errno codes.
12567
12568 2001-08-23  Roland McGrath  <roland@frob.com>
12569
12570         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
12571         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
12572
12573         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
12574
12575         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
12576         __mach_reply_port.
12577
12578 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12579
12580         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
12581         returns NULL.
12582
12583         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
12584         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
12585         doesn't do it.
12586         * elf/rtld.c: Include <sys/param.h>.
12587         * elf/dl-reloc.c: Likewise.
12588
12589 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12590
12591         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
12592         empty to prevent junk from being generated.
12593         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
12594
12595 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
12596
12597         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
12598         records.  Rename endrel to relative, initialize it to r, and use it
12599         in elf_machine_rel_relative calls.  Point r after relative relocs.
12600
12601 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12602
12603         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
12604         of R_386_NONE.
12605
12606 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
12607
12608         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
12609         necessary.  Undefine newly defined macros at the end.
12610         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
12611         Rename from elf_machine_rel_relative.
12612         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
12613         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
12614         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
12615         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
12616         Likewise.
12617         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
12618         Likewise.
12619         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
12620         Fix argument types.
12621         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
12622         Fix argument types.
12623         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
12624         Likewise.  Fix argument types.
12625         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
12626         Likewise.  Fix argument types.
12627         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
12628         Fix argument types.
12629         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
12630         ElfW(Rel) in argument.
12631         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
12632         function.
12633
12634 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
12635
12636         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
12637
12638 2001-08-24  Andreas Jaeger  <aj@suse.de>
12639
12640         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
12641         Stephen L Moshier <moshier@mediaone.net>.
12642
12643 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12644
12645         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
12646         first if RELCOUNT is set.
12647
12648         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
12649         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
12650         elf_machine_rel_relative.
12651         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
12652         Minor optimizations.
12653         * sysdeps/arm/dl-machine.h: Likewise.
12654         * sysdeps/cris/dl-machine.h: Likewise.
12655         * sysdeps/hppa/dl-machine.h: Likewise.
12656         * sysdeps/i386/dl-machine.h: Likewise.
12657         * sysdeps/ia64/dl-machine.h: Likewise.
12658         * sysdeps/m68k/dl-machine.h: Likewise.
12659         * sysdeps/mips/dl-machine.h: Likewise.
12660         * sysdeps/powerpc/dl-machine.h: Likewise.
12661         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12662         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12663         * sysdeps/sh/dl-machine.h: Likewise.
12664         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12665         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12666
12667 2001-08-23  Roland McGrath  <roland@frob.com>
12668
12669         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
12670
12671         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
12672         sysdeps/mach version.  Implement counting ("recursive") mutexes
12673         on top of cthreads mutexes.
12674         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
12675
12676         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
12677         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
12678         (__libc_cleanup_region_start, __libc_cleanup_region_end,
12679         __libc_clean_end): Define these to call the cleanup function after
12680         normal exit when they're supposed to.
12681
12682         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
12683         Take new first arg DOIT, a boolean saying whether to really install
12684         any cleanup handler.
12685         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
12686         (__libc_cleanup_end): Likewise.
12687         * sysdeps/generic/bits/libc-lock.h: Same changes.
12688         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
12689         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
12690         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
12691         Likewise.
12692         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
12693         * sysdeps/generic/bits/stdio-lock.h
12694         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
12695
12696 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
12697
12698         * elf/ldconfig.c (search_dir): Remove stale symlinks.
12699
12700 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
12701
12702         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New
12703         functions.
12704         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
12705         lookups in cache.
12706         (_dl_lookup_versioned_symbol): Likewise.
12707         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
12708         relocation lookup.
12709         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
12710         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
12711         (lookup_cache, lookup_cache_versioned): Add declarations.
12712
12713 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
12714
12715         * stdlib/tst-random.c (main): Swap parameters in fail call.
12716         Patch by Pete Bevin <pete@petebevin.com>.
12717
12718 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
12719
12720         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
12721
12722 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
12723
12724         * malloc/obstack.c: Indent preprocessor directives.
12725         Patch by Jim Meyering <meyering@ascend.com>.
12726
12727         * po/ja.po: Update from translation team.
12728
12729 2001-08-23  Roland McGrath  <roland@frob.com>
12730
12731         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
12732
12733         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
12734         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
12735
12736 2001-08-22  Roland McGrath  <roland@frob.com>
12737
12738         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
12739         __libc_lock_define_recursive.
12740         * elf/dl-open.c: Don't declare it here any more.
12741         * elf/dl-close.c: Likewise.
12742         * elf/dl-lookup.c: Likewise.
12743         * elf/dl-iteratephdr.c: Likewise.
12744         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
12745         __libc_lock_unlock_recursive.
12746         * elf/dl-close.c (_dl_close): Likewise
12747         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
12748         * elf/dl-open.c (_dl_open): Likewise
12749
12750         * sysdeps/generic/bits/libc-lock.h
12751         (__libc_lock_define_recursive): New macro.
12752         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
12753         (_IO_lock_lock): Use __libc_lock_lock_recursive.
12754         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
12755
12756         * conform/conformtest.pl (checknamespace): Sort the output list.
12757
12758         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
12759         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
12760         definitions conditional on [__USE_XOPEN].
12761
12762         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
12763         these unconditionally, not only use [__USE_BSD], so as to match
12764         the sysdeps/unix/sysv/linux files.
12765
12766 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
12767
12768         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
12769         avoid warnings.
12770
12771         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
12772         DL_LOOKUP_ADDRESS.
12773
12774 2001-08-22  Roland McGrath  <roland@frob.com>
12775
12776         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
12777         conditionalization of sa_handler/sa_sigaction member types to
12778         match the sysdeps/unix/sysv/linux file.
12779
12780 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
12781
12782         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
12783         symbol sizes a bit better.
12784
12785         * sysdeps/ia64/strncpy.S: Complete rewrite.
12786         Contributed by Jakub Jelinek <jakub@redhat.com>.
12787
12788         * string/stratcliff.c (main): Add strncpy test.
12789
12790 2001-08-22  Roland McGrath  <roland@frob.com>
12791
12792         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
12793         and don't declare unsetenv or _environ directly.
12794         (unsetenv): Return int, not void.  Use __environ instead of _environ.
12795
12796 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
12797
12798         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
12799         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
12800         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
12801         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
12802         test for cmsg struct size.
12803
12804 2001-04-23  Paul Eggert  <eggert@twinsun.com>
12805
12806         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
12807         Rename __argc to ___argc in prototypes to avoid compatibility
12808         problems with systems that reserve the identifier "__argc".
12809         Similarly for __argv.
12810
12811 2001-08-21  Roland McGrath  <roland@frob.com>
12812
12813         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
12814
12815         * mach/Makefile (tests): Removed.
12816         * mach/hello.c: File removed.
12817
12818 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
12819
12820         * po/sv.po: Update from translation team.
12821
12822         * stdio-common/vfscanf.c: Fix handling of %l[].
12823         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
12824
12825         * libio/Makefile (tests): Add tst-sscanf.
12826         * libio/tst-sscanf.c: New file.
12827
12828         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
12829         * malloc/mtrace.c (tr_where): dli_sname always points to a
12830         non-empty string if != NULL.
12831         Reported by Tim Janik <timj@gtk.org>.
12832
12833 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
12834
12835         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
12836         buf.  Free resources on failure.
12837         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
12838         (makefd_xprt): Likewise.
12839         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
12840         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
12841         * sunrpc/auth_unix.c (authunix_create): Likewise.
12842
12843 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
12844
12845         * string/strnlen.c: Remove.
12846         * sysdeps/generic/strnlen.c: New file.
12847         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
12848
12849 2001-08-21  Roland McGrath  <roland@frob.com>
12850
12851         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
12852         as a macro, not an extern inline function.
12853
12854         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
12855         * Versions.def (libc): Add GLIBC_2.2.5 set.
12856         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
12857         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
12858
12859 2001-08-20  Roland McGrath  <roland@frob.com>
12860
12861         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
12862         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
12863
12864 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
12865
12866         * string/bits/string2.h: Remove strnlen optimization here.
12867         * sysdeps/i386/i486/bits/string.h: Add it here.
12868
12869 2001-08-21  Wolfram Gloger  <wg@malloc.de>
12870
12871         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
12872
12873 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
12874
12875         * po/gl.po: Update from translation team.
12876
12877 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
12878
12879         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
12880         * misc/err.c (convert_and_print): Likewise.
12881
12882         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
12883         function calls.
12884
12885 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12886
12887         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
12888         change of the gregset_t type.
12889         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
12890
12891 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
12892
12893         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
12894
12895 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
12896
12897         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
12898
12899         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
12900
12901 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
12902
12903         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
12904         before calling the cthreads initialization code.
12905
12906 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
12907
12908         * argp/argp-help.c: Fix two problems introduced in last change.
12909
12910         * include/dirent.h: Include <dirstream.h> first.
12911
12912 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
12913
12914         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
12915
12916         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
12917         * sunrpc/xdr_rec.c: Likewise.
12918         * sunrpc/xdr_mem.c: Likewise.
12919         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
12920         * sunrpc/rpc_cmsg.c: Likewise.
12921         * sunrpc/getrpcport.c (getrpcport): Likewise.
12922         * sunrpc/clnt_simp.c (callrpc): Likewise.
12923         * sunrpc/clnt_gen.c (clnt_create): Likewise.
12924         * string/envz.c: Likewise.
12925
12926         * po/ko.po: Update from translation team.
12927
12928         * argp/argp-help.c: Handle wide oriented stderr stream.
12929
12930 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
12931
12932         * sysdeps/generic/strtol.c: Little optimizations.  Add some
12933         __builtin_expect.
12934
12935         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
12936
12937         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
12938         * wcsmbs/wcwidth.c (wcwdith): Likewise.
12939         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
12940
12941         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
12942
12943         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
12944
12945         * time/time.h (struct timespec): Use __time_t for tv_sec element.
12946
12947         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
12948         wchar_t for function declarations and defintions.
12949
12950         * misc/sys/select.h: Define __need_time_t before including <time.h>.
12951         Define suseconds_t if it hasn't happened yet.
12952
12953         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
12954
12955         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
12956
12957         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
12958         <stddef.h>.
12959
12960         * conform/data/stddef.h-data: Remove wint_t.
12961
12962         * conform/conformtest.pl: Change namespace test to take #undef
12963         lines into account.
12964
12965         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
12966
12967         * conform/data/sys/socket.h-data: Add sockatmark.
12968
12969 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
12970
12971         * io/fts.c: Update from recent BSD source.
12972
12973 2001-08-17  Roland McGrath  <roland@frob.com>
12974
12975         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
12976         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
12977         Likewise.
12978
12979 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
12980
12981         * locale/duplocale.c (__duplocale): Also initialize the special
12982         __ctype_* elements.
12983
12984         * conform/data/netdb.h-data: Adjust gai_strerror return type.
12985
12986 2001-08-17  Andreas Jaeger  <aj@suse.de>
12987
12988         * misc/getpass.c: Include wchar.h for prototypes.
12989         * malloc/obstack.c: Likewise.
12990
12991 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
12992
12993         * sunrpc/svc_simple.c (universal): Use __write instead of write.
12994
12995         * wcsmbs/wcscoll.c: Also define __wcscoll.
12996         * include/wchar.h: Declare __wcscoll.
12997
12998         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
12999         * libio/vwprintf.c: Likewise.
13000         * libio/wprintf.c: Likewise.
13001
13002         * iconv/gconv_cache.c: Use __munmap instead of munmap.
13003
13004 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
13005
13006         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
13007         instead of mbrtowc.
13008         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
13009         wcslen, and __wcscoll instead of wcscoll.
13010
13011         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
13012
13013         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
13014         __getuid instead of getuid.
13015
13016         * stdio-common/perror.c (perror): Use __close instead of close.
13017         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
13018         * libio/freopen.c (freopen): Likewise.
13019         * libio/freopen64.c (freopen64): Likewise.
13020
13021         * libio/tst-ungetwc2.c (main): Define str const.
13022
13023         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
13024         * libio/fwprintf.c: Also define __fwprintf.
13025         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
13026         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
13027         * assert/assert-perr.c: Likewise.
13028         * assert/assert.c: Likewise.
13029         * gmon/gmon.c: Likewise.
13030         * inet/rcmd.c: Likewise.
13031         * malloc/obstack.c: Likewise.
13032         * misc/err.c: Likewise.
13033         * misc/error.c: Likewise.
13034         * misc/getpass.c: Likewise.
13035         * posix/getopt.c: Likewise.
13036         * resolv/res_hconf.c: Likewise.
13037         * stdio-common/perror.c: Likewise.
13038         * stdio-common/psignal.c: Likewise.
13039         * stdlib/fmtmsg.c: Likewise.
13040         * sunrpc/auth_unix.c: Likewise.
13041         * sunrpc/clnt_perr.c: Likewise.
13042         * sunrpc/clnt_tcp.c: Likewise.
13043         * sunrpc/clnt_udp.c: Likewise.
13044         * sunrpc/clnt_unix.c: Likewise.
13045         * sunrpc/svc_simple.c: Likewise.
13046         * sunrpc/svc_tcp.c: Likewise.
13047         * sunrpc/svc_udp.c: Likewise.
13048         * sunrpc/svc_unix.c: Likewise.
13049         * sunrpc/xdr.c: Likewise.
13050         * sunrpc/xdr_array.c: Likewise.
13051         * sunrpc/xdr_rec.c: Likewise.
13052         * sunrpc/xdr_ref.c: Likewise.
13053         * sysdeps/generic/wordexp.c: Likewise.
13054
13055         * po/it.po: Update from translation team.
13056
13057         * misc/err.c: Handle wide oriented stderr stream.
13058
13059 2001-08-14  Tom Rix  <trix@redhat.com>
13060
13061         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
13062         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
13063
13064 2001-08-13  Tom Rix  <trix@redhat.com>
13065
13066         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
13067         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
13068         and __intptr_t.
13069
13070 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13071
13072         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
13073         Store the access registers to the ucontext structure.
13074         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
13075         Likewise.
13076
13077         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
13078         Load the access registers from the ucontext structure.
13079         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
13080         Likewise.
13081
13082         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
13083         offsets to the new ucontext layout.
13084         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
13085
13086         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
13087         of the ucontext structure.
13088         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
13089
13090 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
13091
13092         * misc/error.c (error): Handle wide oriented stderr stream correctly.
13093         (error_at_line): Likewise.
13094
13095         * stdio-common/perror.c (perror): Implement according to standard.
13096         The stream orientation must not be changed if the stream was not
13097         oriented before the call.
13098         * stdio-common/Makefile (tests): Add tst-perror.
13099         * stdio-common/tst-perror.c: New file.
13100
13101
13102 See ChangeLog.12 for earlier changes.