* sysdeps/powerpc/bits/setjmp.h [__WORDSIZE]: Add 64-bit jmpbuf.
[platform/upstream/glibc.git] / ChangeLog
1 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
2
3         * sysdeps/powerpc/bits/setjmp.h [__WORDSIZE]: Add 64-bit jmpbuf.
4         * sysdeps/powerpc/bits/wordsize.h: New file.
5         * sysdeps/powerpc/fpu/bits/mathinline.h (lrint, lrintf): Change long
6         array to int array for 32-/64-bit compatibility.
7
8 2002-09-20  Roland McGrath  <roland@redhat.com>
9
10         * login/programs/utmpdump.c: Don't include <error.h>, <errno.h>.
11
12         * sysdeps/generic/utimes.c (__utimes): Don't check TVP for null.
13         Reported by Bruno Haible <bruno@clisp.org>.
14
15         * sysdeps/generic/ifreq.h (__ifreq): Compute termination condition
16         before doubling RQ_LEN.
17         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
18         Reported by Bruno Haible <bruno@clisp.org>.
19
20 2002-09-18  Bruno Haible  <bruno@clisp.org>
21
22         * login/logout.c (logout): Don't assume ut_time has the same size as
23         a time_t.
24         * login/logwtmp.c (logwtmp): Likewise.
25
26         * sysdeps/pthread/configure: New file, moved here from
27         linuxthreads/sysdeps/unix/sysv/linux/configure.
28
29 2002-09-19  Ulrich Drepper  <drepper@redhat.com>
30
31         * sysdeps/unix/sysv/linux/_exit.c: Include <errno.h>.
32         (_exit): Don't use ABORT_INSTRUCTION if it is not defined.
33         Reported by Glen Nakamura <glen@imodulo.com>.
34
35 2002-09-19  Neal H. Walfield  <neal@cs.uml.edu>
36
37         * sysdeps/mach/hurd/fork.c (__fork): Do not free the signal
38         thread's sigstate data structure if it has been allocated.
39
40 2002-09-19  Roland McGrath  <roland@redhat.com>
41
42         * include/libc-symbols.h [HAVE_ASM_SET_DIRECTIVE]
43         [! HAVE_ASM_GLOBAL_DOT_NAME] (__hidden_dot_def1): Fix typo'd name.
44
45 2002-09-18  Ulrich Drepper  <drepper@redhat.com>
46
47         * version.h (VERSION): Bump to 2.2.94.
48
49         * sysdeps/powerpc/fpu/Dist: Move fprrest.S and fprsave.S to...
50         * sysdeps/powerpc/powerpc32/fpu/Dist: ...here.  New file.
51         * sysdeps/unix/sysv/linux/powerpc/Dist: Move kernel_stat.h to...
52         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
53
54         * sysdeps/i386/Makefile: Remove obsolete db2 rules.
55
56         * sysdeps/unix/sysv/linux/Makefile: Add exit-thread.S.
57
58         * sysdeps/unix/sysv/linux/powerpc/Dist: Add ldd-rewrite.sh.
59
60         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: New file.
61
62 2002-09-19  Jakub Jelinek  <jakub@redhat.com>
63
64         * sysdeps/wordsize-32/Makefile: New file.
65         * sysdeps/arm/Makefile: Removed.
66         * sysdeps/i386/Makefile (sysdep_routines, shared-only-routines):
67         Don't add divdi3 here.
68         * sysdeps/m68k/Makefile: Likewise.
69         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
70         * sysdeps/sh/Makefile: Likewise.
71         * sysdeps/s390/s390-32/Makefile: Likewise.
72
73 2002-09-18  Roland McGrath  <roland@redhat.com>
74
75         * locale/lc-ctype.c (_nl_postload_ctype): Add compat_symbol decls for
76         the __ctype_* compat symbols, so the relocs generated bind to the
77         right versioned global symbol in the shared object.
78
79         * elf/do-rel.h (elf_dynamic_do_rel): Mask off 0x8000 bit (hidden flag)
80         from the value taken from the DT_VERSYM table.
81         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
82         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Likewise.
83         (RESOLVE_GOTSYM): Likewise.
84
85         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
86         Add libc_hidden_def.
87         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
88         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
89         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
90         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
91         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
92         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
93         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
94         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
95
96 2002-09-18  Ulrich Drepper  <drepper@redhat.com>
97
98         * include/signal.h: Add libc_hidden_proto for __libc_sigaction.
99
100         * sysdeps/unix/sysv/linux/sigaction.c: If SIGCANCEL is defined
101         define sigaction and __sigaction as wrappers around
102         __libc_sigaction which rejects changing SIGCANCEL.
103         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
104
105         * sysdeps/unix/sysv/linux/i386/clone.S: Add support for SETTLS and
106         SETTID/CLEARTID.
107
108         * signal/allocrtsig.c: Move to...
109         * sysdeps/generic/allocrtsig.c: ...here.  New file.
110
111 2002-09-17  Jakub Jelinek  <jakub@redhat.com>
112
113         * elf/dl-lookup.c (_dl_debug_bindings): Print TLS lookups always.
114
115         * elf/elf.h (R_386_TLS_TPOFF, R_386_TLS_IE, R_386_TLS_GOTIE,
116         R_386_TLS_LE): Define.
117         (R_386_TLS_IE_32, R_386_TLS_LE_32, R_386_TLS_TPOFF32): Update
118         comments.
119         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Return
120         ELF_RTYPE_CLASS_PLT for R_386_TLS_TPOFF.
121         (elf_machine_rel): Handle R_386_TLS_TPOFF.
122         (elf_machine_rela): Likewise.
123         Remove unnecessary RTLD_BOOTSTRAP #ifdefs.
124
125 2002-09-17  Roland McGrath  <roland@redhat.com>
126
127         * malloc/Makefile ($(objpfx)memusagestat.o: sysincludes): Define
128         file-specific variable override so it compiles properly when using
129         --with-headers.
130
131 2002-09-17  Steven Munroe  <sjmunroe@us.ibm.com>
132
133         Ported to PowerPC64 running Linux.
134         * sysdeps/powerpc/powerpc64/Dist: New file.
135         * sysdeps/powerpc/powerpc64/Implies: New file.
136         * sysdeps/powerpc/powerpc64/Makefile: New file.
137         * sysdeps/powerpc/powerpc64/__longjmp.S: New file.
138         * sysdeps/powerpc/powerpc64/atomicity.h: New file.
139         * sysdeps/powerpc/powerpc64/backtrace.c: New file.
140         * sysdeps/powerpc/powerpc64/bp-asm.h: New file.
141         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: New file.
142         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: New file.
143         * sysdeps/powerpc/powerpc64/dl-dtprocnum.h: New file.
144         * sysdeps/powerpc/powerpc64/dl-lookupcfg.h: New file.
145         * sysdeps/powerpc/powerpc64/dl-machine.c: New file.
146         * sysdeps/powerpc/powerpc64/dl-machine.h: New file.
147         * sysdeps/powerpc/powerpc64/memset.S: New file.
148         * sysdeps/powerpc/powerpc64/ppc-mcount.S: New file.
149         * sysdeps/powerpc/powerpc64/register-dump.h: New file.
150         * sysdeps/powerpc/powerpc64/setjmp.S: New file.
151         * sysdeps/powerpc/powerpc64/stpcpy.S: New file.
152         * sysdeps/powerpc/powerpc64/strchr.S: New file.
153         * sysdeps/powerpc/powerpc64/strcmp.S: New file.
154         * sysdeps/powerpc/powerpc64/strcpy.S: New file.
155         * sysdeps/powerpc/powerpc64/strlen.S: New file.
156         * sysdeps/powerpc/powerpc64/elf/bzero.S: New file.
157         * sysdeps/powerpc/powerpc64/elf/start.S: New file.
158         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: New file.
159         * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: New file.
160         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: New File.
161         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: New file.
162         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: New file.
163         * sysdeps/unix/sysv/linux/powerpc/powerpc64/glob64.c: New file.
164         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: New file.
165         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: New file.
166         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: New file.
167
168         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME]
169         (C_SYMBOL_DOT_NAME): Insure that C_SYMBOL_DOT_NAME works for
170         various gcc versions.  Dot names required for powerpc64.
171         [HAVE_ASM_GLOBAL_DOT_NAME] (_weak_extern): Add .weakext '.'ed symbol.
172         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias): Add .global
173         C_SYMBOL_DOT_NAME(alias).
174         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): New macro. Same as
175         original strong_alias macro.
176         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Add .weakext/.weak
177         C_SYMBOL_DOT_NAME(alias).
178         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Add .symver '.'ed name.
179         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Add .symver
180         '.'ed name.
181         Add comments on libc_hidden_data_def and libc_hidden_data_weak usage.
182         [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_def1): New macro.  Generate
183         .global C_SYMBOL_DOT_NAME(alias).  Otherwise an empty macro.
184         (hidden_def): Append hidden_dot_def1 macro to definition.
185         (hidden_ver): Append hidden_dot_def1 macro to definition.
186         (hidden_data_def): New macro.  Same as original hidden_def macro.
187         (hidden_data_ver): New macro.  Same as original hidden_ver macro.
188         [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_weak1): New macro.  Generate
189         .weakext C_SYMBOL_DOT_NAME(alias).  Otherwise an empty macro.
190         (hidden_weak): Append hidden_dot_weak1 macro to definition.
191         (hidden_data_weak): New macro.  Same as original hidden_weak macro.
192         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Define as .__GI_name.
193         Otherwise defined as __GI_name.
194         (libc_hidden_data_def): New macro.  Use hidden_data_def.
195         (libc_hidden_data_weak): New macro.  Use hidden_data_weak.
196         (libc_hidden_data_ver): New macro.  Use hidden_data_ver.
197         (rtld_hidden_data_def): New macro.  Use hidden_data_def.
198         (rtld_hidden_data_weak): New macro.  Use hidden_data_weak.
199         (rtld_hidden_data_ver): New macro.  Use hidden_data_ver.
200         (libm_hidden_data_def): New macro.  Use hidden_data_def.
201         (libm_hidden_data_weak): New macro.  Use hidden_data_weak.
202         (libm_hidden_data_ver): New macro.  Use hidden_data_ver.
203         * inet/in6_addr.c: Replace libc_hidden_def with libc_hidden_data_def.
204
205 2002-09-17  Ulrich Drepper  <drepper@redhat.com>
206
207         * include/libc-symbols.h: Change *hidden_proto macros to accept
208         option parameters and pass those to the attribute definition.
209         * include/unistd.h (_exit): Add __noreturn__ to libc_hidden_proto call.
210
211         * include/unistd.h: Declare __libc_pause.
212
213         * include/sys/socket.h: Declare __libc_send, __libc_recv,
214         __libc_sendto, __libc_sendmsg, __libc_recvmsg, and __libc_accept.
215
216         * include/unistd.h: Declare __libc_fork.
217
218 2002-09-17  Roland McGrath  <roland@redhat.com>
219
220         * sunrpc/xcrypt.c (passwd2des_internal): Renamed fom passwd2des.
221         (passwd2des): Define it as an alias.
222         (xencrypt, xdecrypt): Call passwd2des_internal instead of passwd2des.
223
224 2002-09-12  Bruno Haible  <bruno@clisp.org>
225
226         * include/sys/sysctl.h (__sysctl): Add libc_hidden_proto.
227         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Add libc_hidden_def.
228
229         * include/rpc/xdr.h (xdrstdio_create): Add libc_hidden_proto.
230         * sunrpc/xdr_stdio.c (xdrstdio_create): Add libc_hidden_def.
231
232 2002-09-05  Steven Munroe  <sjmunroe@us.ibm.com>
233
234         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc64__]
235         (__ASSUME_TRUNCATE64_SYSCALL, __ASSUME_STAT64_SYSCALL, __ASSUME_IPC64,
236         __ASSUME_FCNTL64, __ASSUME_MMAP2_SYSCALL): Don't define these.
237         PowerPC64 does not have separate 64-bit syscalls.
238
239 2002-09-16  Roland McGrath  <roland@redhat.com>
240
241         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Add a cast.
242
243         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
244         New macro.
245
246         * elf/rtld.c [HP_TIMING_NONAVAIL]: Fix last change for this case.
247
248         * include/unistd.h: Uncomment libc_hidden_proto for _exit.
249         * sysdeps/mach/hurd/_exit.c: Add libc_hidden_def.
250         * sysdeps/generic/_exit.c: Likewise.
251
252 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
253
254         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Regenerate.
255
256         * elf/rtld.c (struct dl_start_final_info): New.
257         (_dl_start_final): Change second argument to struct
258         dl_start_final_info *.  Set start_time from info.
259         (_dl_start): Remove bootstrap_map variable, add info.
260         Define bootstrap_map as macro.  If not DONT_USE_BOOTSTRAP_MAP,
261         store HP_TIMING_NOW result into info.start_time.
262
263 2002-09-16  Andreas Jaeger  <aj@suse.de>
264
265         * sysdeps/unix/sysv/linux/_exit.c: Add libc_hidden_def and weak_alias
266         to _Exit.
267         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
268
269 2002-09-15  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
270
271         * sysdeps/powerpc/abort-instr.h: New file.
272
273 2002-09-14  Ulrich Drepper  <drepper@redhat.com>
274
275         * sysdeps/generic/libc-start.c (__libc_start_main): Remove bogus
276         comment.
277
278         * test-skeleton.c (main): Provide more information in case waitpid
279         fails.
280
281         * include/unistd.h: Declare __exit_thread.
282         * sysdeps/generic/libc-start.c (__libc_start_main): Remove dummy_addr.
283         Wrap call to main in setjmp if HAVE_CANCELBUF is defined.
284         * sysdeps/unix/sysv/linux/exit-thread.S: New file.
285         * sysdeps/unix/sysv/linux/_exit.c: New file.
286         * sysdeps/unix/sysv/linux/i386/_exit.S: New file.
287         * sysdeps/unix/sysv/linux/Makefile [subdir==posix] (sysdep_routines):
288         Add exit-thread.
289
290         * configure.in: Add dl_iterate_phdr to test using -nostdlib.
291
292 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
293
294         * sysdeps/i386/dl-machine.h (elf_machine_rel)
295         (case R_386_TLS_DTPMOD32): Don't use addend.
296         [case R_386_TLS_TPOFF32]: Remove redundant SYM_MAP != NULL check.
297         (elf_machine_rela): Add support for TLS relocs.
298
299 2002-09-14  Roland McGrath  <roland@redhat.com>
300
301         * Makefile (manual/%): Add this pattern target to the iconvdata/% rule.
302
303 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
304
305         * stdlib/longlong.h [_ARCH_PPC && W_TYPE_SIZE!=32]: Add powerpc64
306         specific asm macros for multiple percision integer math.
307
308 2002-06-04  Steven Munroe  <sjmunroe@us.ibm.com>
309
310         * sysdeps/generic/ldconfig.h (FLAG_POWERPC_LIB64) New macro.
311         * elf/cache.c (print_entry): Add case for FLAG_POWERPC_LIB64.
312         Remove per-machine conditionals for FLAG_* cases.
313         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h: New file.
314         * sysdeps/unix/sysv/linux/powerpc/readelflib.c: New file.
315         * sysdeps/unix/sysv/linux/powerpc/powerpc64/dl-cache.h: New file.
316
317 2002-09-10  Alan Modra <amodra@bigpond.net.au>
318
319         * csu/gmon-start.c [!TEXT_START]: Define TEXT_START if not already
320         defined in entry.h.
321         (__gmon_start__) [!ENTRY_POINT_DECL]: Use TEXT_START macro to obtain
322         lowest address for profiling in  __monstartup call.
323         * sysdeps/powerpc/powerpc64/elf/entry.h: New file.
324
325 2002-09-14  Roland McGrath  <roland@redhat.com>
326
327         * sysdeps/unix/sysv/linux/pread.c: __NR_pread64 may be defined
328         instead of __NR_pread.
329         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
330         * sysdeps/unix/sysv/linux/pwrite.c: __NR_pwrite64 may be defined
331         instead of __NR_pwrite.
332         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
333
334 2002-09-13  Roland McGrath  <roland@redhat.com>
335
336         * manual/libc.texinfo: @ifinfo -> @ifnottex around copyright notice.
337
338 2002-09-13  Andreas Jaeger  <aj@suse.de>
339
340         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add readahead
341         syscall.  Patch by Guido Guenther <agx@sigxcpu.org>.
342
343 2002-09-12  Ulrich Drepper  <drepper@redhat.com>
344
345         * elf/elf.h: Correct DT_LOOS and DT_HIOS values.
346
347 2002-09-10  Ulrich Drepper  <drepper@redhat.com>
348
349         * sysdeps/powerpc/fpu/s_isnan.c: #undef __isnanf and isnanf after
350         reading the headers.
351
352 2002-09-12  Roland McGrath  <roland@redhat.com>
353
354         * elf/rtld.c (_dl_start_final): Move _begin, _end decls outside the fn.
355         (_dl_start) [DONT_USE_BOOTSTRAP_MAP]: Use &_begin instead of l_addr to
356         find the ELF header.
357
358         * elf/rtld.c (dl_main) [USE_TLS]: Adjust l_tls_initimage of main
359         executable if needed, in case it's actually a shared object.
360
361 2002-09-11  Roland McGrath  <roland@redhat.com>
362
363         * elf/dl-load.c (_dl_map_object_from_fd): Use l_addr instead of
364         l_map_start to adjust l_tls_initimage.
365
366         * nss/getnssent_r.c (__nss_getent_r): Use EAGAIN instead of errno
367         when using h_errno and it's not set to NETDB_INTERNAL.
368         * nss/getXXbyYY_r.c [NEED_H_ERRNO]: Likewise.
369
370         * Makefile ($(common-objpfx)testrun.sh): New target.
371         (others): Depend on it.
372         (postclean-generated): Append it.
373
374         * nss/bug-erange.c: New file.
375         * nss/Makefile (tests): Add it.
376
377         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Return errno
378         instead of always EAGAIN when status is NSS_STATUS_TRYAGAIN.
379
380         * sysdeps/generic/dl-environ.c (unsetenv): Redo last fix without
381         strncmp, keeps the code smaller for a non-performance-critical case.
382
383         * sysdeps/generic/dl-environ.c (unsetenv): Rewritten using strncmp,
384         no longer wrongly matches arbitrary prefixes of NAME.
385         Reported by Jakub Jelinek <jakub@redhat.com>.
386
387 2002-09-11  Jakub Jelinek  <jakub@redhat.com>
388
389         * posix/bug-regex11.c (tests): New array.
390         (main): Rewritten to run more different tests.
391
392 2002-09-10  Roland McGrath  <roland@redhat.com>
393
394         * nscd/Makefile (CPPFLAGS-nscd, CPPFLAGS-nscd_conf, CPPFLAGS-dbg_log)
395         (CPPFLAGS-connections, CPPFLAGS-hstcache): Variables removed.
396         Instead, catch all of $(nscd-modules) via cppflags-iterator.mk.
397
398         * sysdeps/powerpc/fpu/s_isnan.c: Do macro hackery on __GI___isnanf as
399         well so we don't get it declared by include/math.h's hidden_proto.
400         Then do hidden_proto for __isnanf locally so hidden_def works right.
401
402         * posix/bug-regex5.c (main): Use `union locale_data_value' rather than
403         a cast to turn nl_langinfo return value into an integer.
404
405 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
406
407         * posix/regexec.c (build_trtable): Fix the destination of
408         newline to prevent wrong states from overwriting.
409         Append break statements to optimization.
410
411 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
412
413         * posix/regcomp.c: Wrap #include wchar.h and wctype.h in #if.
414         (build_range_exp): Add castings to strlen invocations.
415         (build_collating_symbol): Restore the type of characters from "char"
416         to "unsigned char", and supplement castings.
417         (build_collating_symbol): Likewise.
418         (build_equiv_class): Likewise.
419         (build_charclass): Likewise.
420         (seek_collating_symbol_entry): Likewise.
421         (parse_bracket_exp): Likewise.
422         (build_word_op): Supplement a casting.
423         * posix/regex_internal.c: Wrap #include wchar.h and wctype.h in #if.
424         (re_string_allocate): Fix castings.
425         (re_string_construct): Likewise.
426         (re_string_construct_common): Likewise.
427         (re_string_realloc_buffers): Likewise.
428         (build_wcs_buffer): Likewise.
429         (build_wcs_upper_buffer): Likewise.
430         (re_string_skip_chars): Likewise.
431         (re_string_reconstruct): Likewise.
432         * posix/regex_internal.h: Restore the type of characters in
433         re_string_t and bracket_elem_t from "char" to "unsigned char".
434         (re_string_elem_size_at): Fix castings.
435         * posix/regexec.c: Wrap #include wchar.h and wctype.h in #if.
436         (transit_state_bkref_loop): Restore the type of characters from
437         "char" to "unsigned char", and append a cast to "char*" pointer in
438         array subscript.
439         (check_node_accept_bytes): Likewise.
440         (find_collation_sequence_value): Likewise.
441
442 2002-09-10  Hartvig Ekner  <hartvige@mips.com>
443
444         * sysdeps/mips/memcpy.S: New file.
445         * sysdeps/mips/memset.S: New file.
446         * sysdeps/mips/fpu/e_sqrt.c:  New file.
447         * sysdeps/mips/fpu/e_sqrtf.c: New file.
448
449         * fpu/fclrexcpt.c: Cleaned up the FPU exception stuff - was not
450         functional before. Also removed all SHLIB_COMPAT stuff.
451         * fpu/fegetenv.c: Likewise.
452         * fpu/fesetenv.c:: Likewise.
453         * fpu/feupdateenv.c: Likewise.
454         * fpu/fgetexcptflg.c: Likewise.
455         * fpu/fraiseexcpt.c: Likewise.
456
457         * sysdeps/mips/fpu/fsetexcptflg.c: New file.
458
459 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
460
461         * include/math.h (__finite_internal, __finitef_internal,
462         __finitel_internal, __isinf_internal, __isnan_internal): Remove.
463         (isfinite): Remove.
464         (__finite, __isinf, __isnan, __finitef, __isinff, __isnanf, __finitel,
465         __isinfl, __isnanl): Add hidden_proto.
466         (__fpclassify, __fpclassifyf, __fpclassifyl, __expm1l): Add
467         libm_hidden_proto.
468         * math/Makefile (libm-calls): Add s_isinf and s_isnan.
469         * stdio-common/printf_fp.c (__printf_fp): Remove INTUSE from
470         __is{inf,nan} calls.
471         * stdio-common/printf_size.c (printf_size): Likewise.
472         * sysdeps/generic/printf_fphex.c (__printf_fphex): Likewise.
473         * sysdeps/generic/s_ldexp.c (__ldexp): Likewise.
474         * sysdeps/generic/s_ldexpf.c (__ldexpf): Likewise.
475         * sysdeps/generic/s_ldexpl.c (__ldexpl): Likewise.
476         * sysdeps/generic/s_expm1l.c (__expm1l): Add libm_hidden_def.
477         * sysdeps/i386/fpu/s_finite.S (__finite_internal): Remove alias.
478         (__finite): Add hidden_def.
479         * sysdeps/i386/fpu/s_finitef.S (__finitef_internal): Remove alias.
480         (__finitef): Add hidden_def.
481         * sysdeps/i386/fpu/s_finitel.S (__finitel_internal): Remove alias.
482         (__finitel): Add hidden_def.
483         * sysdeps/i386/fpu/s_isinfl.c (__isinfl): Remove INTDEF.  Add
484         hidden_def.
485         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
486         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Add
487         libm_hidden_def.
488         * sysdeps/i386/fpu/s_expm1l.S (__expm1l): Likewise.
489         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Remove INTDEF.  Add
490         hidden_def.
491         * sysdeps/ieee754/dbl-64/s_isinf.c (__isinf): Likewise.
492         (__isinfl): Remove INTDEF.
493         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Remove INTDEF.  Add
494         hidden_def.
495         (__isnanl): Remove INTDEF.
496         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Add
497         libm_hidden_def.
498         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Use __sin and __cos
499         instead of sin and cos.
500         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Remove INTDEF.
501         Add hidden_def.
502         * sysdeps/ieee754/flt-32/s_isinff.c (__isinff): Likewise.
503         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
504         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Add
505         libm_hidden_def.
506         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Remove INTDEF.
507         Add hidden_def.
508         * sysdeps/ieee754/ldbl-128/s_isinfl.c (__isinfl): Likewise.
509         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
510         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl): Add
511         libm_hidden_def.
512         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add
513         libm_hidden_def.
514         * sysdeps/ieee754/ldbl-96/s_finitel.c (__finitel): Remove INTDEF.
515         Add hidden_def.
516         * sysdeps/ieee754/ldbl-96/s_isinfl.c (__isinfl): Likewise.
517         * sysdeps/ieee754/ldbl-96/s_isnanl.c (__isnanl): Likewise.
518         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c (__fpclassifyl): Add
519         libm_hidden_def.
520         * sysdeps/ia64/fpu/s_finite.S (__finite_internal, __finitef_internal,
521         __finitel_internal): Remove aliases.
522         (__finite, __finitef, __finitel): Add hidden_def.
523         * sysdeps/ia64/fpu/s_isnan.S (__isnan_internal, __isnanf_internal,
524         __isnanl_internal): Remove aliases.
525         (__isnan, __isnanf, __isnanl): Add hidden_def.
526         * sysdeps/ia64/fpu/s_isinf.S (__isinf_internal, __isinff_internal,
527         __isinfl_internal): Remove aliases.
528         (__isinf, __isinff, __isinfl): Add hidden_def.
529         * sysdeps/ia64/fpu/s_fpclassify.S (__fpclassify, __fpclassifyf,
530         __fpclassifyl): Add libm_hidden_def.
531         * sysdeps/ia64/fpu/s_expm1l.S (__expm1l): Likewise.
532         * sysdeps/m68k/s_isinfl.c (__isinfl): Remove INTDEF.  Add hidden_def.
533         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Remove.
534         (hidden_defx): Define and use.
535         * sysdeps/m68k/fpu/s_fpclassifyl.c (__fpclassifyl): Add
536         libm_hidden_def.
537         * sysdeps/m68k/fpu/s_expm1l.c (__expm1l): Likewise.
538         * sysdeps/m68k/s_isnanl.c (__isnanl): Add hidden_def.
539         * sysdeps/powerpc/fpu/s_isnan.c (__isnan, __isnanf, __isnanl):
540         Remove INTDEF.
541         (__isnan, __isnanf): Add hidden_def.
542         * sysdeps/x86_64/fpu/s_finitel.S (__finitel_internal): Remove alias.
543         (__finitel): Add libm_hidden_def.
544         * sysdeps/x86_64/fpu/s_expm1l.S (__expm1l): Likewise.
545
546         * include/fenv.h (feraiseexcept, fesetenv): Add libm_hidden_proto.
547         * sysdeps/alpha/fpu/fesetenv.c (fesetenv): Add libm_hidden_ver.
548         * sysdeps/alpha/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
549         * sysdeps/arm/fpu/fesetenv.c (fesetenv): Likewise.
550         * sysdeps/arm/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
551         * sysdeps/generic/fesetenv.c (fesetenv): Likewise.
552         * sysdeps/generic/fraiseexcpt.c (feraiseexcept): Likewise.
553         * sysdeps/i386/fpu/fesetenv.c (fesetenv): Likewise.
554         * sysdeps/i386/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
555         * sysdeps/m68k/fpu/fesetenv.c (fesetenv): Likewise.
556         * sysdeps/m68k/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
557         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Likewise.
558         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
559         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Likewise.
560         * sysdeps/powerpc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
561         * sysdeps/sparc/fpu/fesetenv.c (fesetenv): Likewise.
562         * sysdeps/sparc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
563         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Add libm_hidden_def.
564         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
565         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Likewise.
566         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
567         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
568         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
569         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
570         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
571         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Likewise.
572         * sysdeps/x86_64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
573
574 2002-09-09  Steven Munroe  <sjmunroe@us.ibm.com>
575
576         * elf/elf.h: Add powerpc64 specific elf relocation and dynamic types.
577
578 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
579
580         * elf/dl-error.c (_dl_signal_cerror): Don't print anything if only
581         LD_DEBUG=statistics or LD_TRACE_PRELINKING.
582
583 2002-09-09  Ulrich Drepper  <drepper@redhat.com>
584
585         * string/stratcliff.c: Some more strncpy tests.
586         Patch by Daniel Jacobowitz <drow@mvista.com>.
587
588 2002-09-08  Roland McGrath  <roland@redhat.com>
589
590         * resolv/resolv.h: Include <sys/types.h> for u_long even in
591         the [__need_res_state] case.
592         Reported by Bruno Haible <bruno@clisp.org>.
593
594 2002-09-04  Bruno Haible  <bruno@clisp.org>
595
596         * sysdeps/generic/bits/ustat.h: Comment fix.
597         * io/sys/sendfile.h: Comment fix.
598         * sysdeps/posix/pread.c: Comment fix.
599         * sysdeps/posix/pread64.c: Comment fix.
600         * sysdeps/posix/pwrite.c: Comment fix.
601         * sysdeps/posix/pwrite64.c: Comment fix.
602
603 2002-09-06  Roland McGrath  <roland@redhat.com>
604
605         * posix/sys/utsname.h (_UTSNAME_SYSNAME_LENGTH): New macro, defined
606         to _UTSNAME_LENGTH if not already defined by <bits/utsname.h>.
607         (_UTSNAME_RELEASE_LENGTH, _UTSNAME_VERSION_LENGTH): Likewise.
608         (_UTSNAME_MACHINE_LENGTH): Likewise.
609         (struct utsname): Use new macros instead of _UTSNAME_LENGTH.
610
611 2002-09-06  Ulrich Drepper  <drepper@redhat.com>
612
613         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Correct
614         test for filesystem type name of mount points.
615
616         * include/errno.h: Use errno definition with __thread for now only
617         in libc and ld.so.
618
619         * test-skeleton.c (main): Improve error message for unexpected
620         signal case.
621
622 2002-09-05  Roland McGrath  <roland@redhat.com>
623
624         * ctype/ctype-info.c: Renamed __ctype_old_* symbols to __ctype_*.
625         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
626
627 2002-09-05  Jakub Jelinek  <jakub@redhat.com>
628
629         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Unlock and return in
630         case of failure.
631
632 2002-09-04  Bruno Haible  <bruno@clisp.org>
633
634         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h (sigset_set_old_mask,
635         sigset_get_old_mask): Turn into inline functions.
636         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h (sigset_set_old_mask,
637         sigset_get_old_mask): Likewise.
638         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h (sigset_set_old_mask,
639         sigset_get_old_mask): Likewise.
640         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Declutter
641         syntax.
642
643         * elf/readlib.c (process_file): Conditionalize check for QMAGIC.
644
645         * sysdeps/generic/_strerror.c (_sys_errlist, _sys_nerr): Remove
646         default definitions.
647         (__strerror_r): Use _sys_errlist_internal instead of _sys_errlist,
648         _sys_nerr_internal instead of _sys_nerr.
649
650         * nscd/connections.c (handle_request): Declare CALLER inside #if.
651
652 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
653
654         * sysdeps/powerpc/__longjmp.S: Moved to...
655         * sysdeps/powerpc/powerpc32/__longjmp.S: ...here.
656         * sysdeps/powerpc/add_n.S: Moved to...
657         * sysdeps/powerpc/powerpc32/add_n.S: ...here.
658         * sysdeps/powerpc/addmul_1.S: Moved to...
659         * sysdeps/powerpc/powerpc32/addmul_1.S: ...here.
660         * sysdeps/powerpc/atomicity.h: Moved to...
661         * sysdeps/powerpc/powerpc32/atomicity.h: ...here.
662         * sysdeps/powerpc/backtrace.c: Moved to...
663         * sysdeps/powerpc/powerpc32/backtrace.c: ...here.
664         * sysdeps/powerpc/bp-asm.h: Moved to...
665         * sysdeps/powerpc/powerpc32/bp-asm.h: ...here.
666         * sysdeps/powerpc/bsd-_setjmp.S: Moved to...
667         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: ...here.
668         * sysdeps/powerpc/bsd-setjmp.S: Moved to...
669         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: ...here.
670         * sysdeps/powerpc/dl-machine.c: Moved to...
671         * sysdeps/powerpc/powerpc32/dl-machine.c: ...here.
672         * sysdeps/powerpc/dl-machine.h: Moved to...
673         * sysdeps/powerpc/powerpc32/dl-machine.h: ...here.
674         * sysdeps/powerpc/dl-start.S: Moved to...
675         * sysdeps/powerpc/powerpc32/dl-start.S: ...here.
676         * sysdeps/powerpc/gprrest0.S: Moved to...
677         * sysdeps/powerpc/powerpc32/gprrest0.S: ...here.
678         * sysdeps/powerpc/gprrest1.S: Moved to...
679         * sysdeps/powerpc/powerpc32/gprrest1.S: ...here.
680         * sysdeps/powerpc/gprsave0.S: Moved to...
681         * sysdeps/powerpc/powerpc32/gprsave0.S: ...here.
682         * sysdeps/powerpc/gprsave1.S: Moved to...
683         * sysdeps/powerpc/powerpc32/gprsave1.S: ...here.
684         * sysdeps/powerpc/lshift.S: Moved to...
685         * sysdeps/powerpc/powerpc32/lshift.S: ...here.
686         * sysdeps/powerpc/memset.S: Moved to...
687         * sysdeps/powerpc/powerpc32/memset.S: ...here.
688         * sysdeps/powerpc/mul_1.S: Moved to...
689         * sysdeps/powerpc/powerpc32/mul_1.S: ...here.
690         * sysdeps/powerpc/ppc-mcount.S: Moved to...
691         * sysdeps/powerpc/powerpc32/ppc-mcount.S: ...here.
692         * sysdeps/powerpc/register-dump.h: Moved to...
693         * sysdeps/powerpc/powerpc32/register-dump.h: ...here.
694         * sysdeps/powerpc/rshift.S: Moved to...
695         * sysdeps/powerpc/powerpc32/rshift.S: ...here.
696         * sysdeps/powerpc/setjmp.S: Moved to...
697         * sysdeps/powerpc/powerpc32/setjmp.S: ...here.
698         * sysdeps/powerpc/stpcpy.S: Moved to...
699         * sysdeps/powerpc/powerpc32/stpcpy.S: ...here.
700         * sysdeps/powerpc/strchr.S: Moved to...
701         * sysdeps/powerpc/powerpc32/strchr.S: ...here.
702         * sysdeps/powerpc/strcmp.S: Moved to...
703         * sysdeps/powerpc/powerpc32/strcmp.S: ...here.
704         * sysdeps/powerpc/strcpy.S: Moved to...
705         * sysdeps/powerpc/powerpc32/strcpy.S: ...here.
706         * sysdeps/powerpc/strlen.S: Moved to...
707         * sysdeps/powerpc/powerpc32/strlen.S: ...here.
708         * sysdeps/powerpc/sub_n.S: Moved to...
709         * sysdeps/powerpc/powerpc32/sub_n.S: ...here.
710         * sysdeps/powerpc/submul_1.S: Moved to...
711         * sysdeps/powerpc/powerpc32/submul_1.S: ...here.
712         * sysdeps/powerpc/elf/bzero.S: Moved to...
713         * sysdeps/powerpc/powerpc32/elf/bzero.S: ...here.
714         * sysdeps/powerpc/elf/start.S: Moved to...
715         * sysdeps/powerpc/powerpc32/elf/start.S: ...here.
716         * sysdeps/powerpc/fpu/__longjmp.S: Moved to...
717         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: ...here.
718         * sysdeps/powerpc/fpu/fprrest.S: Moved to...
719         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: ...here.
720         * sysdeps/powerpc/fpu/fprsave.S: Moved to...
721         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: ...here.
722         * sysdeps/powerpc/fpu/setjmp.S: Moved to...
723         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: ...here.
724         * sysdeps/powerpc/fpu/s_copysign.S: Moved to...
725         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: ...here.
726         * sysdeps/powerpc/fpu/s_copysignf.S: Moved to...
727         * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: ...here.
728         * sysdeps/unix/sysv/linux/powerpc/brk.S: Moved to...
729         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: ...here.
730         * sysdeps/unix/sysv/linux/powerpc/clone.S: Moved to...
731         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: ...here.
732         * sysdeps/unix/sysv/linux/powerpc/glob64.c: Moved to...
733         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
734         * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h: Moved to...
735         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: ...here.
736         * sysdeps/unix/sysv/linux/powerpc/socket.S: Moved to...
737         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: ...here.
738         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Moved to...
739         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: ...here.
740         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Moved to...
741         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: ...here.
742         Support PowerPC64.  Separate powerpc into powerpc/powerpc32 and
743         powerpc/powerpc64.
744
745 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
746
747         * FAQ.in: Add powerpc64 to supported targets list. Also state the
748         minimum gcc version is 3.2
749         * README: Add powerpc64 to supported targets list.
750         * configure.in: Change machine=powerpc to machine=powerpc/powerpc32.
751         Add powerpc64 and machine=powerpc/powerpc64.
752         (HAVE_ASM_GLOBAL_DOT_NAME): Define if linux*powerpc/powerpc64*.
753         * shlib-versions: Set DEFAULT version to 2.2.5 for powerpc64.
754         * sysdeps/powerpc/Dist: Remove dl-machine.c, dl-start.S, ppc-mcount.S,
755         gprsave1.S, gprsave0.S, gprrest1.S, and gprrest0.S.
756         * sysdeps/powerpc/powerpc32/Dist: New file.
757         * sysdeps/powerpc/Implies: Remove wordsize-32 and powerpc/soft-fp.
758         * sysdeps/powerpc/powerpc32/Implies: New file.
759         * sysdeps/powerpc/Makefile(cflags): Remove powerpc32 specific cflags.
760         ($(with-fp) = no): Move test to powerpc32/Makefile.
761         ($(subdir) = misc): Move to powerpc32/Makefile.
762         ($(build-shared) = yes): Move to powerpc32/Makefile.
763         ($(subdir) = csu): Move to powerpc32/Makefile.
764         (sysdep-rtld-routines): Remove dl-start.  Moved these bits to ...
765         * sysdeps/powerpc/powerpc32/Makefile: New file.
766         * sysdeps/powerpc/Versions: Remove libgcc functions.
767         * sysdeps/powerpc/powerpc32/Versions: New file.
768         * sysdeps/powerpc/fpu/Makefile: Remove fprsave and fprrest.
769         * sysdeps/powerpc/powerpc32/fpu/Makefile: New file.
770         * sysdeps/unix/sysv/linux/configure.in (powerpc*):
771         Set arch_minimum_kernel=2.4.19 for powerpc/powerpc64. Also set
772         libc_cv_gcc_unwind_find_fde=yes only if !powerpc/powerpc64.
773         ($machine): Add powerpc/powerpc64 to if ... | for
774         libc_cv_slibdir=/libc64.
775         (powerpc*): Set ldd_rewrite_script.
776         * sysdeps/unix/sysv/linux/powerpc/ldd-rewrite.sed: New file.
777         * sysdeps/unix/sysv/linux/powerpc/Dist: Remove clone.S.
778         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: New file.
779         Add clone.S.
780         * sysdeps/unix/sysv/linux/powerpc/Makefile: Remove oldgetrlimit64.
781         * sysdeps/unix/sysv/linux/powerpc/Versions: Remove GLIBC_2.0
782         functions.  Remove GLIBC_2.2 functions except getrlimit and
783         setrlimit.  Moved them to ...
784         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: New file.
785
786 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
787
788         * libio/tst-atime.c: Include <errno.h>.
789         (do_test): Only perform fstatvfs check if ST_NOATIME is defined.
790
791 2002-09-03  Isamu Hasegawa  <isamu@yamato.ibm.com>
792
793         * posix/regcomp.c (regcomp): Append "__restrict" modifier to avoid
794         warnings of some compilers.
795         (build_collating_symbol): Change the type of characters from
796         "unsigned char" to "char", and append a cast to "char*" pointer in
797         array subscript.
798         (build_collating_symbol): Likewise.
799         (build_equiv_class): Likewise.
800         (build_charclass): Likewise.
801         (re_compile_pattern): Remove incorrect cast.
802         (re_compile_fastmap_iter): Change the type of characters from
803         "unsigned char" to "char", and append a cast to "char*" pointer
804         in array subscript.
805         (parse_bracket_exp): Likewise.
806         * posix/regex_internal.c (re_string_construct_common): Likewise.
807         (re_string_allocate): Likewise.
808         (re_string_construct): Likewise.
809         (re_string_realloc_buffers): Likewise.
810         (build_wcs_buffer): Likewise.
811         (re_string_reconstruct): Likewise.
812         * posix/regex_internal.h: Change the type of characters in
813         re_string_t and bracket_elem_t from "unsigned char" to "char".
814         * posix/regexec.c (regexec): Append "__restrict" modifier to avoid
815         warnings of some compilers.
816         (transit_state_bkref_loop): Change the type of characters from
817         "unsigned char" to "char", and append a cast to "char*" pointer in
818         array subscript.
819         (check_node_accept_bytes): Likewise.
820         (find_collation_sequence_value): Likewise.
821
822 2002-09-04  Roland McGrath  <roland@redhat.com>
823
824         * resolv/nss_dns/dns-network.c (MAXPACKET): Increase minimum value
825         from 1024 to 65536, to avoid buffer overrun.
826
827 2002-09-03  Gerhard Tonn  <ton@de.ibm.com>
828
829         * sysdeps/s390/s390/fpu/libm-test-ulps: Regenerate.
830
831 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
832
833         * libio/tst-atime.c (do_test): Make sure noatime flag isn't set
834         for filesystem.
835
836 2002-09-04  Jakub Jelinek  <jakub@redhat.com>
837
838         * posix/bug-regex11.c: New test.
839         * posix/Makefile (tests): Add bug-regex11.
840
841 2002-09-03  Jakub Jelinek  <jakub@redhat.com>
842
843         * locale/tst-C_locale.c (run_test): Pass LC_ALL_MASK not LC_ALL to
844         newlocale.
845
846 2002-09-02  Roland McGrath  <roland@redhat.com>
847
848         * sysdeps/powerpc/elf/libc-start.c [! SHARED]: Call
849         __pthread_initialize_minimal and __libc_check_standard_fds to
850         match the generic version.
851
852         * sysdeps/unix/sysv/linux/shmat.c (shmat): Add a cast to avoid a
853         warning when INLINE_SYSCALL macro uses the __syscall_ipc function.
854
855         * locale/localeconv.c (__localeconv): Cast -1 to char to avoid
856         warnings on platorms where char is unsigned.
857
858 2002-09-02  Ulrich Drepper  <drepper@redhat.com>
859
860         * version.h (VERSION): Bump to 2.2.93.
861
862         * sysdeps/unix/sysv/linux/x86_64/Dist: Add __start_context.S.
863
864 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
865
866         * elf/rtld.c (dl_main): If prelinking succeeded, mark all objects
867         as relocated.
868
869 2002-09-02  Jack Howarth  <howarth@bromo.msbb.uc.edu>
870
871         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
872
873 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
874
875         * locale/localeinfo.h (struct locale_data): Add private.ctype.
876         * wcsmbs/wcsmbsload.h (__wcsmbs_gconv_fcts, __wcsmbs_last_locale,
877         __wcsmbs_to_wc, update_conversion_ptrs): Removed.
878         (__wcsmbs_gconv_fcts_c, _nl_C_LC_CTYPE): New externs.
879         (__wcsmbs_load_conv): Remove const from argument.
880         (_nl_cleanup_ctype): New proto.
881         (get_gconv_fcts): New function.
882         * wcsmbs/wcsmbsload.c (__wcsmbs_last_locale): Removed.
883         (__wcsmbs_to_wc): Rename back to...
884         (to_wc): ... this.
885         (__wcsmbs_gconv_fcts): Rename to...
886         (__wcsmbs_gconv_fcts_c): ... this.  Make const.  Use to_wc.
887         (lock): Removed.
888         (__libc_setlocale_lock): New extern.
889         (__wcsmbs_load_conv): Remove const from argument.
890         Initialize new_category->private.ctype instead of a global
891         variable.
892         (__wcsmbs_clone_conv): Use get_gconv_fcts instead of
893         update_function_ptrs.  No locking is necessary.
894         (_nl_cleanup_ctype): New function.
895         * wcsmbs/btowc.c (__btowc): Use get_gconv_fcts instead of
896         update_function_ptrs and a global __wcsmbs_gconv_fcts variable.
897         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
898         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
899         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
900         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
901         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
902         * wcsmbs/wctob.c (wctob): Likewise.
903         * stdlib/mblen.c (mblen): Likewise.
904         * stdlib/mbtowc.c (mbtowc): Likewise.
905         * stdlib/wctomb.c (wctomb): Likewise.
906         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
907         Remove calls to wcsmbs_get_towc_func and wcsmbs_free_funcs.
908         * wcsmbs/mbsrtowcs_l.c (wcsmbs_get_towc_func, wcsmbs_free_funcs):
909         Removed.
910
911 2002-09-02  Roland McGrath  <roland@frob.com>
912
913         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Add __fxstat64.
914
915 2002-09-01  Roland McGrath  <roland@redhat.com>
916
917         * ctype/ctype.h (__ctype_b, __ctype_toupper, __ctype_tolower):
918         Variable declarations removed.
919         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Declare
920         these functions to replace them.
921         (__isctype, tolower, toupper, _tolower, _toupper): Use those accessor
922         functions plus an indirection rather than the old global variables.
923         * include/ctype.h (__isctype, tolower, _tolower, toupper, _toupper):
924         Macros removed.
925         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): New extern
926         inline functions.
927         * ctype/ctype-info.c: Revert last reversion back the other way.
928         Define tsd vars CTYPE_B, CTYPE_TOLOWER, CTYPE_TOUPPER.
929         Define real function versions of include/ctype.h inlines here.
930         * ctype/Versions (libc: GLIBC_2.3): Add __ctype_b_loc,
931         __ctype_tolower_loc, __ctype_toupper_loc.
932         * locale/lc-ctype.c: Revert last reversion back the other way.
933         (_nl_postload_ctype): If current thread uses the global locale,
934         update its tsd vars.
935         * locale/uselocale.c (__uselocale): Update tsd vars from new locale.
936         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add CTYPE_B,
937         CTYPE_TOLOWER, CTYPE_TOUPPER.
938
939         * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_address): New macro.
940         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_address): Renamed
941         from __libc_tsd_threadvar_location.
942         (__libc_tsd_set, __libc_tsd_get): Update uses.
943
944 2002-09-01  Ulrich Drepper  <drepper@redhat.com>
945
946         * ctype/ctype.h: Undo the patch before the last one.  Put back the
947         macro definitions for the standard functions to access the
948         classification and mapping arrays.
949         * include/ctype.h: Partly revert last patch.  Move the macro
950         definitions for the exported functions back to the public header.
951         #undef all the macros defined here before redefining.
952         * ctype/ctype-info.c: Revert last patch.
953         * locale/lc-ctype.c: Revert last patch.
954
955         * ctype/Makefile (routines): Add isctype.
956         * ctype/Versions (libc): Export isctype and __isctype for GLIBC_2.3.
957         * ctype/ctype.h: Add declaration of isctype.
958         * include/ctype.h: Declare __isctype.
959         * ctype/isctype.c: New file.
960
961 2002-09-01  Roland McGrath  <roland@redhat.com>
962
963         * sysdeps/generic/libc-tls.c (__pthread_initialize_minimal): Pass
964         TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN instead of 0, 1.
965
966         * include/getopt.h: Include <features.h> before <posix/getopt.h>.
967
968         * locale/findlocale.c (_nl_remove_locale): Don't search in
969         _nl_locale_file_list if DATA->alloc is ld_archive.
970         Use _nl_unload_locale to do the rest of the work.
971
972         * locale/loadarchive.c (_nl_load_locale_from_archive): Set usage_count
973         of new structure to UNDELETABLE.
974
975         * wctype/wctype.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower,
976         iswgraph, iswprint, iswpunct, iswspace, iswupper, iswxdigit, iswblank,
977         towlower, towupper): Macros removed.
978         * ctype/ctype.h (__tobody): Put parens around macro argument.
979         (__isctype): Macro removed.
980         (__ctype_b, __ctype_tolower, __ctype_toupper): Decls removed.
981         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
982         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
983         tolower, toupper): Macros and inlines removed.
984         * include/ctype.h [! NOT_IN_libc]
985         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
986         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
987         tolower, toupper): Define here instead, using _NL_CURRENT.
988         * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Define as macros
989         using _NL_CURRENT.
990         * ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Likewise.
991         * ctype/ctype-info.c (__ctype_b, __ctype_tolower, __ctype_toupper):
992         Renamed these to __ctype_old_*. Define old names only for SHLIB_COMPAT.
993         (__ctype32_b, __ctype32_tolower, __ctype32_toupper): Likewise.
994         (__ctype32_wctrans, __ctype32_wctrans, __ctype32_width): Removed.
995         * locale/lc-ctype.c (_nl_postload_ctype): Use renamed variables,
996         conditional on SHLIB_COMPAT.  Don't set removed variables at all.
997         * wctype/wcfuncs.c: Use _NL_CURRENT instead of those globals.
998         * wcsmbs/wcwidth.h (internal_wcwidth): Likewise.
999         * resolv/res_init.c [RESOLVSORT] (sort_mask): Renamed sort_mask_chars.
1000         (ISSORTMASK): Update use.
1001         * intl/localealias.c [__GNUC__]: #undef alloca before #define.
1002         * nss/nss_files/files-XXX.c (last_use): Rename `none' to `nouse'.
1003         (_nss_files_getENTNAME_r): Likewise.
1004         * nss/nss_files/files-alias.c (last_use, _nss_files_getaliasent_r):
1005         Likewise.
1006
1007         * Makerules (all-nonlib): Renamed from all-tests.
1008         Include $(others) here too.
1009         * locale/Makefile (CPPFLAGS-locale, CPPFLAGS-localedef,
1010         CPPFLAGS-ld-ctype, CPPFLAGS-ld-time, CPPFLAGS-ld-numeric,
1011         CPPFLAGS-ld-monetary, CPPFLAGS-ld-collate, CPPFLAGS-ld-identification,
1012         CPPFLAGS-charmap, CPPFLAGS-locarchive, CPPFLAGS-linereader,
1013         CPPFLAGS-charmap-dir): Variables removed.  Instead, catch all
1014         the program modules via cppflags-iterator.mk.
1015         * sunrpc/Makefile (CPPFLAGS-rpc_main): Variable removed.
1016         Instead, catch all rpcgen-objs via cppflags-iterator.mk.
1017
1018 2002-08-31  Roland McGrath  <roland@redhat.com>
1019
1020         * posix/tst-getconf.sh: If no third arg, work with static linking.
1021
1022         * locale/categories.def (LC_TIME): No more _nl_postload_time.
1023
1024         * locale/setlocale.c (_nl_category_postload): Use weak refs only under
1025         [_NL_CURRENT_INDIRECT].
1026
1027 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1028
1029         * time/tst-ftime_l.c (main): Also test strftime with uselocale.
1030
1031 2002-08-31  Roland McGrath  <roland@redhat.com>
1032
1033         * locale/newlocale.c (__newlocale): Don't use strdup for names.
1034         Instead, make the single allocation of the structure larger to hold
1035         the name strings.
1036         * locale/duplocale.c (__duplocale): Don't strdup names individually.
1037         Instead, calculate size for a single allocation and copy into it.
1038         * locale/freelocale.c (__freelocale): Don't free names individually.
1039
1040         * locale/newlocale.c (__newlocale): Don't leak old data or names.
1041
1042         * locale/xlocale.h (__locale_struct): Move __names member last,
1043         for binary compatibility.
1044
1045         * locale/duplocale.c (__duplocale): Free names from the right array.
1046
1047         * locale/uselocale.c (__uselocale): Return previous locale when
1048         setting a new one.
1049
1050         * locale/newlocale.c: Commit changes from 2002-08-30
1051         batch where I failed to commit this file:
1052         (__newlocale): Fill in __names array.
1053
1054 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1055
1056         * sysdeps/gnu/Makefile: Only depend on Versions.v.i for
1057         errlist-compat.c if versioning==yes.
1058
1059 2002-08-31  Andreas Jaeger  <aj@suse.de>
1060
1061         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Declare
1062         external functions with hidden attribute.
1063         (elf_machine_rela): Optimize.
1064
1065         * sysdeps/x86_64/memset.S: New file.
1066         * sysdeps/x86_64/bzero.S: New file.
1067         * sysdeps/x86_64/stpcpy.S: New file.
1068         * sysdeps/x86_64/strcat.S: New file.
1069         * sysdeps/x86_64/strchr.S: New file.
1070         * sysdeps/x86_64/strcpy.S: New file.
1071         * sysdeps/x86_64/strcspn.S: New file.
1072         * sysdeps/x86_64/strlen.S: New file.
1073         * sysdeps/x86_64/strpbrk.S: New file.
1074         * sysdeps/x86_64/strspn.S: New file.
1075         * sysdeps/x86_64/strcmp.S: New file.
1076         * sysdeps/x86_64/strtok_r.S: New file.
1077         * sysdeps/x86_64/strtok.S: New file.
1078         * sysdeps/x86_64/memcpy.S: New file.
1079         * sysdeps/x86_64/mempcpy.S: New file.
1080
1081         * sysdeps/x86_64/fpu/s_copysign.S: Fix algorithm.
1082
1083         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for double tests.
1084
1085 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1086
1087         * stdio-common/Makefile (generated): Add errlist-compat.c.
1088
1089         * locale/Makefile (extra-objs): Add $(localedef-aux:=.o).
1090
1091         * locale/localeinfo.h: Pretty printing.
1092
1093         * stdio-common/vfprintf.c (vfprintf): Remove duplicate ifs in
1094         form_number handling.
1095
1096 2002-08-31  Andreas Jaeger  <aj@suse.de>
1097
1098         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for float and long
1099         double tests.
1100
1101         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_routines): Add
1102         __start_context.
1103
1104         * sysdeps/unix/sysv/linux/x86_64/__start_context.S: New file.
1105
1106         * sysdeps/unix/sysv/linux/x86_64/makecontext.c: New file.
1107
1108         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: Add defines for
1109         registers used for passing args.
1110
1111         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Save and restore
1112         all needed registers.
1113
1114         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Restore all
1115         registers.
1116
1117         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Save all needed
1118         registers.
1119
1120 2002-08-30  Ulrich Drepper  <drepper@redhat.com>
1121
1122         * elf/dynamic-link.h (elf_get_dynamic_info): Mark with
1123         always_inline attribute.
1124
1125 2002-08-30  Roland McGrath  <roland@redhat.com>
1126
1127         * stdlib/tst-setcontext.c (main): If makecontext does nothing,
1128         presume it's the stub and bail without error.
1129
1130         * nss/getnssent_r.c (__nss_getent_r): Return ENOENT if status is
1131         neither SUCCESS nor TRYAGAIN (see 2002-08-25 change [PR libc/4259]).
1132
1133         * nss/getnssent_r.c (__nss_getent_r): Set *H_ERRNOP, not global one.
1134
1135         * sysdeps/x86_64/hp-timing.h (HP_TIMING_NOW, HP_TIMING_ACCUM): New
1136         macros replace the i686 versions for 64-bit mode.
1137
1138         * locale/duplocale.c: Include <string.h>.
1139
1140         * intl/dcigettext.c (DCIGETTEXT) [_LIBC]: Check for bogus CATEGORY.
1141         [_LIBC] (category_to_name): Don't define the function.  Instead
1142         define a macro using _nl_category_names.
1143
1144         * locale/xlocale.h (struct __locale_struct): New member `__names'.
1145         * locale/xlocale.c (_nl_C_locobj): Update initializer.
1146         * locale/global-locale.c (_nl_global_locale): Likewise.
1147         * locale/duplocale.c (__duplocale): strdup __names elements.
1148         * locale/freelocale.c (__freelocale): Free __names elements.
1149         * locale/localename.c (_nl_current_names): Variable removed.
1150         (__current_locale_name): Use _NL_CURRENT_LOCALE->__names instead.
1151         * locale/localeinfo.h (_nl_current_names): Removed decl.
1152         * locale/setlocale.c: Use _nl_global_locale->__names in place of
1153         _nl_current_names throughout.
1154
1155         * locale/setlocale.c (setlocale): strdup -> __strdup (not ISO C).
1156
1157         * sysdeps/gnu/errlist-compat.awk: Emit link_warnings for sys_errlist
1158         and sys_nerr in the output file.
1159
1160         * sunrpc/Makefile (rpcgen-cmd): Pass CPP in rpcgen's environment.
1161         * scripts/cpp: Just use the environment variable.
1162
1163         * libio/tst-mmap-setvbuf.c (main): Use 'm' fopen flag.
1164         * libio/tst-mmap-offend.c (do_test): Likewise.
1165         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
1166         * libio/tst-mmap-eofsync.c (do_test): Likewise.
1167         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
1168
1169         * locale/localename.c: If the current locale is the global locale, use
1170         _nl_current_names; otherwise use the locale object.
1171
1172 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
1173
1174         * libio/fileops.c (_IO_new_file_fopen): Recognize new mode specifier
1175         'm' to enable mmap I/O.
1176         * libio/libio.h (_IO_FILE): Rename _blksize field to _flags2.  The
1177         former wasn't used (anymore?).
1178         (_IO_FLAGS2_MMAP): New define.
1179         * libio/genops.c (_IO_no_init): Initialize _flags2 field.
1180         * libio/iofopen.c (__fopen_maybe_mmap): Use mmap callbacks only if
1181         _IO_FLAGS2_MMAP bit is set.
1182         * libio/iofdopen.c (_IO_new_fdopen): Recognize 'm' mode specifier.
1183         Enable mmap-using mode only if 'm' was set.
1184
1185 2002-08-29  Roland McGrath  <roland@frob.com>
1186
1187         * sysdeps/mach/hurd/bits/local_lim.h (NAME_MAX): New macro.
1188
1189         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup: doinit):
1190         Change argument type from int to intptr_t.
1191
1192         * locale/global-locale.c (__libc_tsd_LOCALE_data): Conditionalize the
1193         initializer on [! _HURD_THREADVAR_H] (bad kludge).
1194         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize
1195         _HURD_THREADVAR_LOCALE slot to &_nl_global_locale.
1196         * hurd/hurdsig.c (_hurdsig_init): Likewise.  Zero other slots.
1197
1198         * sysdeps/mach/_strerror.c (__strerror_r): Add libc_hidden_def.
1199
1200         * sysdeps/mach/hurd/pwrite64.c: No libc_hidden_def (__libc_pwrite64).
1201
1202         * sysdeps/mach/hurd/dl-sysdep.c (__GI_abort): Define alias for abort.
1203
1204         * include/assert.h (__assert_perror_fail): Declare it, do hidden_proto.
1205         * assert/assert-perr.c: Add libc_hidden_def.
1206         * elf/dl-minimal.c [! NDEBUG] (__assert_perror_fail): New function.
1207
1208         * sysdeps/gnu/errlist-compat.awk: Don't fail if there are no versions
1209         found at all.
1210         * sysdeps/gnu/Versions: File removed.  Moved all #errlist-compat
1211         sys_errlist stuff to ...
1212         * sysdeps/unix/sysv/linux/Versions: ... here.
1213
1214         * mach/mach.h: Include <features.h>.
1215
1216 2002-08-29  Roland McGrath  <roland@redhat.com>
1217
1218         * elf/dl-runtime.c (IN_DL_RUNTIME): Define this macro first thing.
1219         * sysdeps/i386/dl-machine.h: Only declare fixup, profile_fixup and
1220         define ELF_MACHINE_RUNTIME_TRAMPOLINE under #ifdef IN_DL_RUNTIME.
1221
1222         * sysdeps/generic/readelflib.c (process_elf_file): Fix typo.
1223
1224         * iconv/gconv_int.h: Include <stdlib.h> for alloca decl.
1225         (norm_add_slashes): alloca -> __alloca
1226
1227 2002-08-29  Jakub Jelinek  <jakub@redhat.com>
1228
1229         * stdio-common/vfprintf.c (vfprintf): Add builtin_expect for
1230         string_malloced, it is unlikely to be set.
1231         Only call free with non-NULL workspace.
1232         * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Use
1233         -mcpu=ultrasparc, not only tune for it.
1234         (ASFLAGS*): Set unconditionally.
1235
1236         * sysdeps/generic/readelflib.c (process_elf_file): Make LOADADDR
1237         ElfW(Addr).  Don't mask upper 32-bits and lower 12 bits off from
1238         p_vaddr/p_offset when computing LOADADDR.
1239
1240 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
1241
1242         * version.h (VERSION): Bump to 2.2.92.
1243
1244         * time/Makefile (tst-ftime_l-ENV): New variable.
1245
1246         * iconvdata/ibm870.c: All bytes are now used, no holes anymore.
1247
1248         * localedata/charmaps/IBM870: Add correct mapping for <U017E>,
1249         <U017A>, <U017D> and <U0179>. Add missing mappings.
1250         Patch by Antonin Kopecky <akopecky@tajmac-zps.cz>.
1251
1252         * gmon/sys/gmon.h (ARCDENSITY): Bump to 3.
1253         Define ARCINDEX.  Bump MAXARCS to 1 << 20.
1254         (struct tostruct): Use ACRINDEX as type for link field.
1255         (statuc gmonparam): Likewise for froms.
1256         * gmon/gmon.c (__monstartup): Use currect cast for assignments to
1257         kcount and froms.
1258         (write_call_graph): Use correct type for from_index and to_index.
1259         * gmon/mcount.c: Use correct types for frompcindex and toindex
1260         variables.
1261         Patches by Dan Kegel <dank@kegel.com>.
1262
1263         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix code to determine
1264         canonical name.
1265
1266         * time/strptime.c (ISSPACE): New #define.  Use isspace or
1267         __isspace_l.  Replace calls to isspace.
1268         (match_string): Define variant for USE_IN_EXTENDED_LOCALE_MODEL.
1269
1270 2002-08-29  Roland McGrath  <roland@redhat.com>
1271
1272         * string/tst-strxfrm.c: Remove __ from function names.
1273
1274 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1275
1276         * include/wchar.h: Declare __mbsrtowcs_l.
1277         * wcsmbs/Makefile (routines): Add mbsrtowcs_l.
1278         * wcsmbs/mbsrtowcs.c: Add support for compilation with
1279         USE_IN_EXTENDED_LOCALE_MODEL.
1280         * wcsmbs/mbsrtowcs_l: New file.
1281         * wcsmbs/wcsmbsload.c (__wcsmbs_to_wc): Renamed from to_wc.  Don't
1282         define as static.  Change all uses.
1283         (__wcsmbs_getfct): Renamed from getfct.  Don't define as static.
1284         Change all callers.
1285         * wcsmbs/wcsmbsload.h: Declare __wcsmbs_to_wc and __wcsmbs_getfct.
1286         * time/strftime.c: When translating for the extended locale model
1287         use the _l functions.
1288         * time/Makefile (tests): Add tst-ftime_l.
1289         * time/tst-ftime_l.c: New file.
1290
1291 2002-08-28  Roland McGrath  <roland@redhat.com>
1292
1293         * locale/findlocale.c [NL_CURRENT_INDIRECT] (_nl_C): New variable.
1294         * locale/setlocale.c (setlocale) [NL_CURRENT_INDIRECT]: Null return
1295         from _nl_find_locale ok if for _nl_C_name.
1296
1297         * locale/nl_langinfo.c [NL_CURRENT_INDIRECT]: Use a categories.def
1298         iterator to refer to each category's _nl_current_LC_FOO symbol, so
1299         we know they are all linked in.
1300
1301         * NEWS: Added 2.2.6 text from 2.2 branch version.
1302
1303         * time/strptime.c (strptime_internal): Remove spurious const.
1304
1305         * locale/lc-time.c (_nl_init_era_entries, _nl_get_era_entry,
1306         _nl_select_era_entry): Moved to ...
1307         * time/era.c: ... here, new file.
1308         (_nl_init_era_entries, _nl_get_era_entry, _nl_select_era_entry):
1309         Add internal_function to definitions.  Take an additional argument
1310         giving the `struct locale_data *' to use.
1311         * locale/lc-time.c (_get_alt_digit, _nl_get_walt_digit,
1312         _nl_parse_alt_digit): Moved to ...
1313         * time/alt_digit.c: ... here, new file.
1314         * time/lc-time-cleanup.c: New file.
1315         * locale/lc-time.c (_nl_postload_time, free_mem): Functions removed.
1316         * locale/localeinfo.h (_nl_postload_time): Remove decl.
1317         (_nl_cleanup_time): Declare it.
1318         (_nl_get_era_entry, _nl_select_era_entry): Update decls.
1319         (_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit): Likewise.
1320         * time/Makefile (aux): New variable: era, alt_digit, lc-time-cleanup.
1321         * time/strftime.c: Pass locale data to helper functions.
1322         * time/strptime.c: Likewise.
1323
1324         * locale/localeinfo.h (struct locale_data): New member `private'
1325         * locale/loadlocale.c (_nl_intern_locale_data): Initialize it.
1326         (_nl_unload_locale): Call LOCALE->private.cleanup if it is set.
1327         * locale/C-collate.c: Update initializer.
1328         * locale/C-identification.c: Likewise.
1329         * locale/C-measurement.c: Likewise.
1330         * locale/C-telephone.c: Likewise.
1331         * locale/C-address.c: Likewise.
1332         * locale/C-name.c: Likewise.
1333         * locale/C-paper.c: Likewise.
1334         * locale/C-time.c: Likewise.
1335         * locale/C-numeric.c: Likewise.
1336         * locale/C-monetary.c: Likewise.
1337         * locale/C-messages.c : Likewise.
1338         * locale/C-ctype.c: Likewise.
1339
1340         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL] (_NL_CURRENT_WORD):
1341         Redefine this too.
1342
1343 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1344
1345         * sysdeps/generic/ldsodefs.h (__rtld_global_attribute__): Define.
1346         (_rtld_global): Use it.
1347
1348         * sysdeps/gnu/Dist: Remove errlist-compat.c.
1349         * sysdeps/gnu/Makefile (errlist-compat.c): Build this file in the
1350         object directory.  Pass all Versions files to the awk script.
1351         * sysdeps/gnu/errlist-compat.c: Removed.
1352         * sysdeps/gnu/errlist.awk: Use #errlist-compat comments from the
1353         first Versions file in the search path which has them.
1354         Allow multiple errlist symbol versions to have the same count of
1355         errors.
1356         * sysdeps/gnu/errlist-compat.awk: Include <errlist-compat.c> instead
1357         of "errlist-compat.c".
1358         * sysdeps/gnu/errlist.c: Regenerated.
1359         * sysdeps/unix/sysv/linux/mips/Versions (libc): Add #errlist-compat
1360         comments at GLIBC_2.0, GLIBC_2.1 and GLIBC_2.3.
1361         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
1362         (librt): Add aio_cancel and aio_cancel64 as GLIBC_2.3.
1363         * sysdeps/unix/sysv/linux/hppa/Versions: Likewise.
1364         * sysdeps/unix/sysv/linux/sparc/Versions: New file.
1365         * sysdeps/unix/sysv/linux/alpha/bits/errno.h: New file.
1366         * sysdeps/unix/sysv/linux/hppa/bits/errno.h (ECANCELED): Define to
1367         ECANCELLED if not defined by kernel headers.
1368         * sysdeps/unix/sysv/linux/bits/errno.h: Don't redefine ECANCELED if
1369         already defined by kernel headers.
1370         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: New file.
1371         * sysdeps/pthread/aio_cancel.c: Don't include aio.h and its
1372         aio_cancel64 renaming hack nor provide weak_alias if aio_cancel
1373         is a macro.
1374         * Versions.def (GLIBC_2.3) [librt]: Add.
1375
1376         * sysdeps/unix/sysv/linux/alpha/pipe.S: New file.
1377
1378 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1379
1380         * include/libc-symbols.h [!__ASSEMBLER__] (declare_symbol_1): Add
1381         missing comma to .type directive.
1382
1383 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1384
1385         * sysdeps/ia64/elf/configure.in (PI_STATIC_AND_HIDDEN): Define
1386         unconditionally.
1387         * sysdeps/alpha/elf/configure.in (libc_cv_alpha_hidden_gprel): New
1388         check.
1389         (PI_STATIC_AND_HIDDEN): Define if check succeeded.
1390
1391 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1392
1393         * locale/loadarchive.c (_nl_load_locale_from_archive): Add fd >= 0
1394         check to close_and_out close.  Replace return NULL statements where
1395         fd might be >= 0 with goto close_and_out.  Close the file descriptor
1396         when it is no longer needed.
1397
1398 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1399
1400         * sysdeps/s390/s390-64/dl-machine.h: Avoid unescaped newlines in
1401         string constants.
1402         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1403         * sysdeps/arm/dl-machine.h: Likewise.
1404         * sysdeps/cris/dl-machine.h: Likewise.
1405         * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
1406         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
1407
1408 2002-08-28  Roland McGrath  <roland@redhat.com>
1409
1410         * Makeconfig (default_cflags): Revert unintended change.
1411
1412 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1413
1414         * version.h (VERSION): Bump to 2.2.91.
1415
1416         * configure.in: Disable TLS support by default for now.
1417
1418         * sysdeps/i386/fpu/libm-test-ulps: Adjust ulp for yn for float.
1419
1420         * sysdeps/generic/strtol.c (strtol): Add some more casts to avoid
1421         warnings.
1422
1423         * stdlib/strtod.c (STRTOF): Correct type in cast of last patch.
1424
1425         * stdlib/fmtmsg.c (fmtmsg): Use correct test for failure of
1426         fprintf/fwprintf calls.
1427
1428 2002-08-28  Roland McGrath  <roland@redhat.com>
1429
1430         * Makeconfig (run-program-prefix): Fix bogus use of $(findstring ...)
1431         to use $(filter ...) instead.  Same bug fixed in aix conditionals.
1432
1433         * locale/setlocale.c: Declare postload functions weak.
1434
1435         * elf/tst-tls1-static.c: New file.
1436         * elf/tst-tls2-static.c: New file.
1437         * elf/Makefile ($(tests-static):%=$(objfpx)%.o): Remove rule.
1438
1439         Make uselocale support static linking.
1440         * locale/xlocale.c: Revert changes putting _nl_global_locale here.
1441         This file again just defines _nl_C_locobj.
1442         (_nl_C_locobj): Use a categories.def iterator in the initializer.
1443         * locale/global-locale.c: New file.  Define _nl_global_locale here,
1444         using all weak references in the initializer.
1445         * locale/Makefile (aux): Add global-locale.
1446         * locale/localeinfo.h (_nl_global_locale, _NL_CURRENT_LOCALE): Make
1447         these unconditional, along with the tsd decl.
1448         [!SHARED && HAVE___THREAD && HAVE_WEAK_SYMBOLS] (NL_CURRENT_INDIRECT):
1449         Define it under these conditions.
1450         [NL_CURRENT_INDIRECT]: Test this instead of [! SHARED].
1451         Don't declare _nl_current.  Declare _nl_current_LC_FOO as
1452         `extern __thread struct locale_data *const *'.
1453         [NL_CURRENT_INDIRECT]
1454         (_NL_CURRENT_DATA, _NL_CURRENT, _NL_CURRENT_WSTR): Add indirection.
1455         [NL_CURRENT_INDIRECT] (_NL_CURRENT_DEFINE): Rewritten.  Define
1456         the thread variable _nl_current_LC_FOO and also a special absolute
1457         symbol _nl_current_LC_FOO_used.
1458         * locale/uselocale.c (__uselocale) [NL_CURRENT_INDIRECT]:
1459         Set each _nl_current_LC_FOO symbol to point into the new locale,
1460         using weak references to test if _nl_current_LC_FOO_used was linked in.
1461         * locale/setlocale.c [! SHARED]: Replace this conditional ...
1462         [NL_CURRENT_INDIRECT]: ... with this one.
1463         (_nl_current, _nl_C): Variables removed.
1464         [NL_CURRENT_INDIRECT] (_nl_current_used): New variable, table of
1465         weak references to _nl_current_LC_FOO_used.
1466         [NL_CURRENT_INDIRECT] (CATEGORY_USED): Define using that table.
1467         (free_category): New function, broken out of ...
1468         (free_mem): ... here.  Call that.
1469         (free_mem) [NL_CURRENT_INDIRECT]: Use a categories.def iterator
1470         instead of a loop.
1471
1472         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Don't check for
1473         PT_LOAD program headers and don't try to relocate PT_TLS's p_vaddr;
1474         it is already absolute.
1475
1476         * elf/Makefile (tests): List tst-tls1 and tst-tls2 unconditionally.
1477         [$(build-static) = yes] (tests): Add tst-tls1-static, tst-tls2-static.
1478         [$(build-static) = yes] (tests-static): New variable.
1479         ($(tests-static):%=$(objfpx)%.o)): New static pattern rule.
1480
1481 2002-08-26  Christoph Hellwig  <hch@lst.de>
1482
1483         * sysdeps/unix/sysv/linux/sys/personality.h: Remark origin, fix
1484         formating braindamage, add missing PER_HPUX and PER_OSF1 values.
1485
1486 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1487
1488         * sysdeps/x86_64/Dist: Add _mcount.S and bits/link.h.
1489
1490         * sysdeps/s390/Dist: Add bits/link.h.
1491
1492         * sysdeps/sh/Dist: New file.
1493
1494         * sysdeps/ia64/Dist: Add ia64libgcc.S.
1495
1496         * sysdeps/wordsize-32/Dist: New file.
1497
1498         * sysdeps/unix/sysv/linux/alpha/Dist: Add dl-brk.S.
1499         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
1500         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
1501
1502         * sysdeps/unix/sysv/linux/Dist: Add dl-brk.c, dl-sbrk.c, and
1503         sys/personality.h.
1504
1505         * sysdeps/unix/Dist: Add i386/dl-brk.S, mips/dl-brk.S, and
1506         sparc/dl-brk.S.
1507
1508         * sysdeps/unix/bsd/Dist: Add vax/dl-brk.S.
1509
1510         * sysdeps/unix/bsd/sun/Dist: New file.
1511
1512         * sysdeps/unix/bsd/osf/Dist: New file.
1513
1514         * sysdeps/unix/bsd/hp/Dist: New file.
1515
1516         * sysdeps/unix/arm/Dist: New file.
1517
1518         * sysdeps/powerpc/Dist: Add divdi3.c and libgcc-compat.S.
1519
1520         * sysdeps/mach/hurd/Dist: Add set-init.c.
1521
1522         * sysdeps/i386/Dist: Add bits/link.h.
1523
1524         * sysdeps/gnu/Dist: Add errlist-compat.c errlist-compat.awk.
1525
1526         * sysdeps/generic/Dist: Add dl-brk.c and dl-sbrk.c.
1527
1528         * locale/Makefile (distribute): Add hashval.h.
1529
1530         * iconvdata/Makefile (distribute): Add tcvn5712-1.c and armscii-8.c.
1531
1532         * sysdeps/unix/sysv/linux/Dist: Remove errlist.h.
1533
1534         * misc/sys/cdefs.h: Define __BEGIN_NAMESPACE_STD, __END_NAMESPACE_STD,
1535         __USING_NAMESPACE_STD, __BEGIN_NAMESPACE_C99, __END_NAMESPACE_C99, and
1536         __USING_NAMESPACE_C99 depending on _GLIBCPP_USE_NAMESPACES.
1537         * ctype/ctype.h: Prepare headers for use in ISO C++ compliant
1538         implementations.
1539         * libio/stdio.h: Likewise.
1540         * locale/locale.h: Likewise.
1541         * math/math.h: Likewise.
1542         * math/bits/mathcalls.h: Likewise.
1543         * setjmp/setjmp.h: Likewise.
1544         * signal/signal.h: Likewise.
1545         * stdlib/stdlib.h: Likewise.
1546         * string/string.h: Likewise.
1547         * time/time.h: Likewise.
1548         * wcsmbs/wchar.h: Likewise.
1549         * wctype/wctype.h: Likewise.
1550
1551 2002-08-28  Roland McGrath  <roland@redhat.com>
1552
1553         * locale/tst-C-locale.c (run_test): Remove __ from function names.
1554
1555 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1556             Roland McGrath <roland@redhat.com>
1557
1558         * locale/hashval.h (compute_hashval): Use prototype defn.
1559         (hashval_t): New macro, defined to unsigned long int
1560         if not already defined.
1561         (compute_hashval): Return hashval_t instead of unsigned long int.
1562         * locale/loadarchive.c (hashval_t): New macro.
1563         * locale/programs/locarchive.c: Include hashval.h directly instead
1564         of simple-hash.h.
1565         (compute_hashval, hashval_t): Define these macros first.
1566         (insert_name): Use archive_hashval instead of compute_hashval.
1567         (add_locale, delete_locales_from_archive): Likewise.
1568
1569 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1570
1571         * locale/programs/locarchive.c (insert_name): Suppress warnings about
1572         hash collisions if be_quiet.
1573
1574 2002-08-27  Roland McGrath  <roland@redhat.com>
1575
1576         * locale/locale.h (__newlocale, __duplocale, __freelocale,
1577         __uselocale): Don't declare these any more.
1578         * include/locale.h (__uselocale): Declare here instead, using __typeof.
1579
1580         * sysdeps/unix/readdir.c: If getdents fails with ENOENT, restore errno
1581         and treat it as an EOF return.
1582         * sysdeps/unix/readdir_r.c: Likewise.
1583
1584         * sysdeps/gnu/errlist-compat.awk: Include <bits/wordsize.h> in output.
1585         From Alexandre Oliva <aoliva@redhat.com>.
1586         * sysdeps/gnu/errlist-compat.c: Regenerated.
1587
1588 2002-08-27  Brian Youmans  <3diff@gnu.org>
1589
1590         * sysdeps/ieee754/flt-32/e_asinf.c: Modified copying permission
1591         wording at request of copyright holder Stephen Moshier.
1592         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
1593         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
1594         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
1595         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
1596         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
1597         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
1598         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
1599         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
1600         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
1601         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
1602         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
1603         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
1604         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
1605         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
1606
1607 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1608
1609         * ctype/ctype.h (isascii_l, toascii_l): Define to __*_l counterparts.
1610         * ctype/ctype-extn.c (isblank_l): Add weak alias.
1611         * sysdeps/generic/strtol_l.c (strtol_l): Likewise.
1612         * sysdeps/generic/strtoll_l.c (strtoll_l): Likewise.
1613         * sysdeps/generic/strtoul_l.c (strtoul_l): Likewise.
1614         * sysdeps/generic/strtoull_l.c (strtoull_l): Likewise.
1615         * wctype/iswctype_l.c (iswctype_l): Likewise.
1616
1617 2002-08-27  Roland McGrath  <roland@redhat.com>
1618
1619         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: No libc_hidden_def.
1620
1621         * ctype/ctype.h (__exctype_l): Don't declare __ name.
1622         * stdlib/stdlib.h: Don't declare __*_l names.
1623         * include/stdlib.h: Declare them here instead.
1624         * include/string.h: Don't declare __*_l names.
1625         * string/string.h: Declare them here instead.
1626         * time/time.h: Don't declare __*_l names.
1627         * include/time.h: Declare them here instead.
1628         * wcsmbs/wchar.h: Don't declare __*_l names.
1629         * include/wchar.h: Declare them here instead.
1630         * wctype/wctype.h: Declare iswalnum_l, not __iswalnum_l.
1631         Don't declare __*_l names.
1632         * include/wctype.h: Declare them here instead.
1633         * stdlib/monetary.h: Declare strfmon_l, not __strfmon_l.
1634         * stdlib/strfmon_l.c (strfmon_l): Define as weak alias.
1635         * locale/langinfo.h: Don't declare __nl_langinfo_l.
1636         * include/langinfo.h: Declare it here with __typeof.
1637
1638         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strptime_l
1639         instead, taking an extra __locale_t argument.
1640         * time/Makefile (routines): Add strptime_l.
1641         * time/time.h (__strptime_l, strptime_l): Declare them.
1642         * time/strptime_l.c: New file.
1643
1644         * time/time.h (__strftime_l, strftime_l): Declare them.
1645         * wcsmbs/wchar.h (__wcsftime_l, wcsftime_l): Declare them.
1646         * time/strftime_l.c: New file.
1647         * time/wcsftime_l.c: New file.
1648         * time/Makefile (routines): Add strftime_l, wcsftime_l.
1649         * time/Versions (libc: GLIBC_2.3): Add __strftime_l, __wcsftime_l,
1650         strftime_l, wcsftime_l.
1651         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strftime_l
1652         or __wcsftime_l instead, taking an extra __locale_t argument.
1653
1654         * locale/Versions (libc: GLIBC_PRIVATE): Move __uselocale to ...
1655         (libc: GLIBC_2.3): ... here.
1656
1657 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
1658
1659         * stdio-common/Makefile: Fix typo in stdio_lim.h installation rule.
1660
1661         * Makefile (distribute): Add LICENSES.
1662
1663         * sysdeps/unix/sysv/linux/x86_64/Dist: Add ucontext_i.h and
1664         sys/debugreg.h.
1665
1666         * sysdeps/unix/sysv/linux/s390/Dist: Add new/route.h.
1667
1668         * sysdeps/unix/sysv/linux/ia64/Dist: Add dl-brk.S and sys/user.h.
1669
1670         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/user.h.
1671
1672         * sysdeps/unix/sysv/linux/Dist: Add readahead.c.
1673
1674         * sysdeps/mach/hurd/alpha/Dist: New file.
1675
1676         * sysdeps/arm/Dist: Add bits/link.h.
1677
1678         * sunrpc/Makefile: Distribute thrsvc.
1679
1680         * stdio-common/Makefile: Remove more left-overs from old stdio.
1681
1682         * include/linewrap.h: Removed.
1683
1684         * libio/bug-mmap-fflush.c: Rewrite to not touch source directory.
1685
1686         * intl/Makefile (distribute): Add plural-eval.c.
1687
1688 2002-08-27  Roland McGrath  <roland@redhat.com>
1689
1690         * manual/sysinfo.texi (Mount Information): Correct file name to macro
1691         assocations for _PATH_MNTTAB, MNTTAB, _PATH_MOUNTED, MOUNTED.
1692         Say mtab is in either /var/run or /etc.
1693
1694 2002-08-26  Roland McGrath  <roland@redhat.com>
1695
1696         * manual/errno.texi (Error Codes): Added ECANCELED (118 for Hurd).
1697         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
1698
1699         * sysdeps/gnu/Versions: New file.
1700         * sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.1): Remove
1701         _sys_errlist; sys_errlist; _sys_nerr; sys_nerr; from here.
1702         * sysdeps/gnu/Makefile ($(..)sysdeps/gnu/errlist-compat.c): New target.
1703         ($(objpfx)errlist.d): Depend on $(..)sysdeps/gnu/errlist-compat.c.
1704         * sysdeps/gnu/errlist.awk: Make output define _sys_errlist_internal
1705         and _sys_nerr_internal instead of anything else.  Make it include
1706         "errlist-compat.c" if [!NOT_IN_libc && !ERRLIST_NO_COMPAT].
1707         Make it emit some asm magic if [EMIT_ERR_MAX].
1708         * sysdeps/gnu/errlist.c: Regenerated.
1709         * sysdeps/gnu/errlist-compat.awk: New file.
1710         * sysdeps/gnu/errlist-compat.c: New file (generated).
1711         * sysdeps/mach/hurd/errlist.c (ERRLIST_NO_COMPAT): New macro.
1712         (_sys_errlist_internal): Define this as a macro for _hurd_errlist.
1713         (_sys_nerr_internal): Define this is a macro for _hurd_nerr.
1714         (SYS_ERRLIST, SYS_NERR): Macros removed.
1715         (sys_nerr, _sys_nerr): Remove these weak aliases.
1716         * sysdeps/unix/sysv/linux/errlist.c: File removed.
1717         * sysdeps/unix/sysv/linux/errlist.h: File removed.
1718         * sysdeps/unix/sysv/linux/arm/errlist.c: File removed.
1719
1720         * include/libc-symbols.h (declare_symbol): New macro.
1721         * config.h.in (ASM_TYPE_DIRECTIVE_PREFIX): New #undef.
1722         * configure.in: New check to define it.
1723         * configure: Regenerated.
1724
1725 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
1726
1727         * stdio-common/Makefile (headers): Remove bits/stdio_lim.h.  This
1728         file isn't distributed.  Add special rules to install bits/stdio_lim.h.
1729
1730         * Make-dist: Remove traces of old stdio.
1731         * Makeconfig: Likewise.
1732
1733         * locale/Makefile (localedef-aux): New variable.  Only md5
1734         assigned to it.  These files are not ddistributed in this directory.
1735
1736         * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
1737         * sysdeps/unix/sysv/linux/s390/s390-64/Dist: Remove sys/procfs.h.
1738         * sysdeps/unix/sysv/linux/s390/s390-32/Dist: Likewise.
1739
1740         * sysdeps/unix/sysv/linux/Dist: Remove sys/sendfile.h.
1741
1742         * nss/getXXbyYY_r.c (REENTRANT_NAME): If no service is available
1743         set h_errno to NO_RECOVERY [PR libc/4360].
1744
1745 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
1746
1747         * libio/Makefile (tests): Add bug-fopena+.
1748         * libio/bug-fopena+.c: New file.
1749         * libio/fileops.c (_IO_file_open): Only set file pointer to end of the
1750         file for _IO_IS_APPENDING if file isn't opened for reading, too.
1751
1752         * stdio-common/tst-swprintf.c (main): Add casts to avoid warnings.
1753
1754         * locale/xlocale.c: Fix the last change.  The variable still has
1755         to end in _data.
1756         * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
1757         (__libc_tsd_set): Add _data prefix to variable name.
1758
1759 2002-08-26  Roland McGrath  <roland@redhat.com>
1760
1761         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Replace
1762         macro with inline function.
1763         (sigset_get_old_mask): Likewise.
1764         * sysdeps/posix/sigblock.c (__sigblock): Update callers.
1765         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
1766         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1767         * sysdeps/posix/sigvec.c (__sigvec, sigvec_wrapper_handler): Likewise.
1768         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h
1769         (sigset_set_old_mask, sigset_get_old_mask): Make these macros return
1770         values.
1771         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h: Likewise.
1772         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h: Likewise.
1773
1774 2002-07-06  Bruno Haible  <bruno@clisp.org>
1775
1776         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask,
1777         sigset_get_old_mask): Make it work with larger sigset_t.
1778         * sysdeps/posix/sigblock.c (__sigblock): Use those macros.
1779         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
1780         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1781
1782 2002-08-26  Roland McGrath  <roland@redhat.com>
1783
1784         * time/sys/time.h [__USE_BSD] (lutimes, futimes): Declare them.
1785         * manual/filesys.texi (File Times): Document lutimes and futimes.
1786         * misc/Makefile (routines): Add them.
1787         * misc/Versions (libc: GLIBC_2.3): Likewise.
1788         * sysdeps/generic/lutimes.c: New file.
1789         * sysdeps/generic/futimes.c: New file.
1790         * sysdeps/mach/hurd/lutimes.c: New file.
1791         * sysdeps/mach/hurd/futimes.c: New file.
1792
1793         * manual/filesys.texi (File Times): Add explicit note about null
1794         pointer argument to utimes.
1795
1796 2002-08-26  Roland McGrath  <roland@frob.com>
1797
1798         * sysdeps/mach/hurd/ifreq.h (__if_freereq): Add missing semicolon.
1799         (__ifreq): Add a cast.  Remove an unused variable.
1800
1801         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
1802         _HURD_THREADVAR_LOCALE.
1803
1804 2002-08-26  Jakub Jelinek  <jakub@redhat.com>
1805
1806         * posix/regexec.c (re_search_stub): Return correct match length
1807         if start != 0.
1808         * posix/bug-regex10.c: New test.
1809         * posix/Makefile (tests): Add bug-regex10.
1810
1811 2002-08-26  Brian Youmans  <3diff@gnu.org>
1812
1813         * COPYING.LIB: Replaced with fresh copy from
1814         ftp://ftp.gnu.org/gnu/Licenses/COPYING.LIB-2.1;
1815         suggested copying permission notice now says version 2.1 instead
1816         of version 2.
1817
1818         * crypt/crypt.c: Changed copying permission notice to Lesser GPL
1819         from Library GPL.
1820         * crypt/crypt_util.c: Likewise.
1821         * crypt/ufc.c: Likewise.
1822         * elf/dl-conflict.c: Likewise.
1823         * elf/dl-iteratephdr.c: Likewise.
1824         * iconv/iconvconfig.h: Likewise.
1825         * malloc/arena.c: Likewise.
1826         * malloc/hooks.c: Likewise.
1827         * malloc/malloc.c: Likewise.
1828         * posix/glob/Makefile.ami: Likewise.
1829         * posix/glob/Makefile.in: Likewise.
1830         * stdlib/gmp-impl.h: Likewise.
1831         * stdlib/gmp.h: Likewise.
1832         * sysdeps/generic/dl-iteratephdr-static.c: Likewise.
1833         * sysdeps/generic/strnlen.c: Likewise.
1834         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
1835         * sysdeps/mach/hurd/recvmsg.c: Likewise.
1836         * sysdeps/mach/hurd/sendmsg.c: Likewise.
1837         * sysdeps/mach/hurd/spawni.c: Likewise.
1838         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
1839         * sysdeps/mach/powerpc/sysdep.h: Likewise.
1840         * sysdeps/mach/powerpc/thread_state.h: Likewise.
1841         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
1842         * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: Likewise.
1843         * sysdeps/x86_64/gmp-mparam.h: Likewise.
1844
1845         * sysdeps/ieee754/dbl-64/MathLib.h: Corrected version number in
1846         Lesser GPL copying permission notice from 2 to 2.1.
1847         * sysdeps/ieee754/dbl-64/asincos.tbl: Likewise.
1848         * sysdeps/ieee754/dbl-64/atnat.h: Likewise.
1849         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
1850         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
1851         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
1852         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
1853         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
1854         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
1855         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
1856         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
1857         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
1858         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
1859         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
1860         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
1861         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
1862         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
1863         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
1864         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
1865         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
1866         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
1867         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
1868         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
1869         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
1870         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
1871         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
1872         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
1873         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
1874         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
1875         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
1876         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
1877         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
1878         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
1879         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
1880         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
1881         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
1882         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
1883         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1884         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
1885         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
1886         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
1887         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
1888         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
1889         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
1890         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
1891         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
1892         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
1893         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
1894         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
1895         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
1896         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
1897         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
1898         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
1899         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
1900         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
1901         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
1902
1903         * sysdeps/ieee754/flt-32/e_asinf.c: Added copyright notice for Stephen
1904         Moshier and Lesser GPL copying permission notice, per license from
1905         Moshier.
1906         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
1907         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
1908         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
1909         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
1910         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
1911         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
1912         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
1913         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
1914         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
1915         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
1916         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
1917         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
1918         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
1919         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
1920
1921         * sysdeps/ieee754/ldbl-128/e_j0l.c: Added Lesser GPL copying permission
1922         notice, per license from copyright holder Stephen Moshier.
1923         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
1924         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
1925         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
1926         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
1927         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
1928         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
1929         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
1930         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
1931         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
1932
1933 2002-08-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1934
1935         * sysdeps/sh/Makefile (sysdeps_routines): Add divdi3 in csu dir.
1936         (shared-only-routines): Likewise.
1937
1938 2002-08-26  Roland McGrath  <roland@redhat.com>
1939
1940         * locale/programs/ld-ctype.c (ctype_read): When given a repertoire
1941         name of "", store a null pointer instead.
1942
1943         * configure.in (elf): Set to yes for freebsd*, netbsd*.
1944         * configure: Regenerated.
1945
1946         * locale/xlocale.c [! (USE_TLS && HAVE___THREAD)] (__libc_tsd_LOCALE):
1947         Initialize this instead of __libc_tsd_LOCALE_data.
1948
1949         * sysdeps/unix/grantpt.c (pts_name): Convert ENOTTY return from
1950         ptsname_r to EINVAL.
1951
1952         * sysdeps/generic/ptsname.c (__ptsname_r): Return ENOSYS instead of 0.
1953
1954         * rt/Makefile: Revert last change, it was inappropriate to presume aio
1955         implementations depend on pthreads.
1956         * rt/tst-aio.c (do_test): Exit happy if first failure is ENOSYS.
1957         * rt/tst-aio64.c (do_test): Likewise.
1958         * rt/tst-aio2.c (do_test): Likewise.
1959         * rt/tst-aio3.c (do_test): Likewise.
1960         * rt/tst-aio4.c (do_test): Likewise.
1961         * rt/tst-aio5.c (do_test): Likewise.
1962         * rt/tst-aio6.c (do_test): Likewise.
1963         * rt/tst-aio7.c (do_test): Likewise.
1964
1965         * sysdeps/generic/bits/libc-lock.h (__libc_setspecific): Use a cast to
1966         void so as to avoid compiler warnings.
1967
1968         * libio/oldstdfiles.c [! _IO_MTSAFE_IO] (DEF_STDFILE): Don't define
1969         _IO_wide_data_FD, which is never used here.
1970
1971         * libio/iofread.c
1972         [! _IO_MTSAFE_IO] (fread_unlocked): Add libc_hidden_ver defn.
1973         * libio/iofputs.c [! _IO_MTSAFE_IO] (fputs_unlocked): Likewise.
1974         * libio/iofgets.c [! _IO_MTSAFE_IO] (fgets_unlocked): Likewise.
1975
1976         * include/resolv.h [! _LIBC_REENTRANT] (_res): #undef it before decl.
1977         * include/netdb.h [! _LIBC_REENTRANT] (h_errno): Declare normal extern.
1978
1979         * misc/syslog.c (openlog): Conditionalize locking on [_LIBC_REENTRANT].
1980         (closelog): Likewise.
1981
1982 2002-07-06  Bruno Haible  <bruno@clisp.org>
1983
1984         * sysdeps/alpha/fpu/fpu_control.h: Comment fix.
1985
1986         * sysdeps/unix/sysv/linux/alpha/pipe.S: Moved to ...
1987         * sysdeps/unix/alpha/pipe.S: ... here.
1988         * sysdeps/unix/bsd/osf/alpha/pipe.S: File removed.
1989
1990         * sysdeps/unix/i386/brk.S: Rename local label to '.Lhere' in ELF.
1991
1992         * sysdeps/unix/i386/brk.S: Add PSEUDO_END invocation.
1993         * sysdeps/unix/i386/fork.S: Likewise.
1994         * sysdeps/unix/i386/pipe.S: Likewise.
1995         * sysdeps/unix/i386/wait.S: Likewise.
1996
1997         * sysdeps/unix/fork.S: Fix PSEUDO_END argument.
1998         * sysdeps/unix/arm/fork.S: Likewise.
1999
2000         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Swap DO_CALL
2001         arguments.
2002         (DO_CALL): Swap argument order.
2003         * sysdeps/unix/sysv/linux/hppa/sysdep.h (PSEUDO): Swap DO_CALL
2004         arguments.
2005         (DO_CALL): Swap argument order.
2006         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Swap DO_CALL
2007         arguments.
2008         (DO_CALL): Swap argument order.
2009         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO): Swap DO_CALL
2010         arguments.
2011         (DO_CALL): Swap argument order.
2012         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO): Swap DO_CALL
2013         arguments.
2014         (DO_CALL): Swap argument order.
2015         * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Swap DO_CALL
2016         arguments.
2017         (DO_CALL): Swap argument order.
2018         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Swap DO_CALL
2019         arguments.
2020         (DO_CALL): Swap argument order.
2021
2022         * sysdeps/i386/sysdep.h (PSEUDO): Fix syntax error.
2023         (L): Define right for ELF.
2024         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Remove definition.
2025         Now defined in sysdeps/i386/sysdep.h.
2026
2027         * sysdeps/posix/readv.c: Ansify function definition.
2028         * sysdeps/posix/writev.c: Likewise.
2029
2030         * stdio-common/tst-fseek.c (main): Don't assume that off_t and size_t
2031         have the same size. Avoid direct cast from size_t to off_t.
2032
2033         * login/tst-utmp.c (simulate_login): Don't leave garbage after the
2034         nul byte in entry[n].ut_user.
2035         (simulate_logout): Likewise.
2036
2037         * login/programs/utmpdump.c (print_entry): Test _HAVE_UT_TYPE,
2038         _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST, instead of assuming the
2039         existence of corresponding members of 'struct utmp'.
2040         * login/tst-utmp.c: Trivialize the test if testing 'struct utmp' and
2041         !_HAVE_UT_TYPE.
2042
2043         * sysdeps/unix/opendir.c (__opendir): If st_blksize is 0 or too small,
2044         allocate a buffer of at least BUFSIZ bytes, not just of
2045         sizeof (struct dirent).
2046
2047         * sysdeps/generic/glob.c: Include <limits.h>.
2048         (NAME_MAX): Define a fallback.
2049         (glob_in_dir): Allocate enough room for a 'struct dirent64' on the
2050         stack.
2051         * posix/tst-dir.c: Include <stddef.h>, for offsetof.
2052         (main): Allocate enough room for a 'struct dirent64' on the stack.
2053         * posix/tst-gnuglob.c (my_DIR): Allocate enough room for a
2054         'struct dirent'.
2055
2056         * sysdeps/unix/sysv/linux/init-first.c: Don't include
2057         kernel-features.h.
2058
2059         * inet/htontest.c: Include <sys/types.h>.
2060
2061         * sysdeps/generic/sys/sysinfo.h: Surround with __{BEGIN,END}_DECLS.
2062
2063         * include/sys/sysctl.h: Comment fix.
2064
2065         * elf/rtld.c (_rtld_global) [! _LIBC_REENTRANT]: Don't initialize
2066         _dl_load_lock.
2067         * libio/fileno.c (fileno_unlocked): Define regardless of _IO_MTSAFE_IO.
2068
2069         * sysdeps/unix/bsd/bsd4.4/syscalls.list (__sigaltstack): New alias.
2070
2071         * sysdeps/unix/inet/syscalls.list (__connect_internal): New alias.
2072         (__getpeername): New alias.
2073         (__getsockname): New alias.
2074         (__socket): New alias.
2075
2076         * sysdeps/unix/common/syscalls.list (getpgid): Remove.
2077
2078         * sysdeps/unix/syscalls.list (__chown_internal): New alias.
2079         (__fcntl_internal): New alias.
2080         (__profil): New alias.
2081
2082 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
2083
2084         * nscd/hstcache.c (cache_addhst): Add new parameter saying whether
2085         entry was for getaddr* lookup or not.  Add only matching cache
2086         entry.  Change all callers [PR libc/4317].
2087
2088         * libio/wfileops.c (_IO_wfile_seekoff): Set fp->_offset after
2089         finding the read position [PR libc/4265].
2090         * libio/Makefile (tests): Add bug-rewind2.
2091         * libio/bug-rewind2.c: New file.
2092
2093         * libio/bug-rewind.c: Fix creation of temp file.
2094
2095 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2096
2097         * nss/getXXbyYY_r.c (REENTRANT_NAME): Return ENOENT if status is
2098         neither SUCCESS nor TRYAGAIN [PR libc/4259].
2099         * nss/nss_files/files-XXX.c (internal_getent): Don't set *errnop
2100         to ENOENT if no entry is found.
2101         * nis/nss_compat/compat-grp.c: Don't set errno in case of lookup
2102         failure.
2103         * nis/nss_compat/compat-initgroups.c: Likewise.
2104         * nis/nss_compat/compat-pwd.c: Likewise.
2105         * nis/nss_compat/compat-spwd.c: Likewise.
2106         * nis/nss_nis/nis-alias.c: Likewise.
2107         * nis/nss_nis/nis-ethers.c: Likewise.
2108         * nis/nss_nis/nis-grp.c: Likewise.
2109         * nis/nss_nis/nis-hosts.c: Likewise.
2110         * nis/nss_nis/nis-initgroups.c: Likewise.
2111         * nis/nss_nis/nis-netgrp.c: Likewise.
2112         * nis/nss_nis/nis-network.c: Likewise.
2113         * nis/nss_nis/nis-proto.c: Likewise.
2114         * nis/nss_nis/nis-publickey.c: Likewise.
2115         * nis/nss_nis/nis-pwd.c: Likewise.
2116         * nis/nss_nis/nis-rpc.c: Likewise.
2117         * nis/nss_nis/nis-service.c: Likewise.
2118         * nis/nss_nis/nis-spwd.c: Likewise.
2119         * resolv/nss_dns/dns-host.c: Likewise.
2120         * resolv/nss_dns/dns-network.c: Likewise.
2121         * nis/nss_nisplus/nisplus-alias.c: Save errno around NIS calls.
2122         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
2123         * nis/nss_nisplus/nisplus-grp.c: Likewise.
2124         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
2125         * nis/nss_nisplus/nisplus-network.c: Likewise.
2126         * nis/nss_nisplus/nisplus-proto.c: Likewise.
2127         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
2128         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
2129         * nis/nss_nisplus/nisplus-service.c: Likewise.
2130         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
2131         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Preserve errno value.
2132         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
2133         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Likewise.
2134         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
2135
2136         * sysdeps/unix/sysv/linux/i386/sigaction.c: Avoid warnings by
2137         declaring __restore and __restore_rt as hidden (if possible).
2138
2139 2002-08-25  Roland McGrath  <roland@redhat.com>
2140
2141         * manual/llio.texi (Access Modes): Fix typos in O_READ/O_WRITE defns.
2142
2143         * sysdeps/generic/utmp_file.c (LOCK_FILE): Check for error from fcntl.
2144         (getutent_r_file, internal_getut_r): Updated all callers.
2145         (getutline_r_file, pututline_file, updwtmp_file): Likewise.
2146
2147 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2148
2149         * locale/programs/locale.c: Don't print aliases for non-existing
2150         locales for 'locale -a'.
2151         Patch by Noah Levitt <nlevitt@columbia.edu> [PR libc/4166].
2152
2153 2002-07-19  H.J. Lu  <hjl@gnu.org>
2154
2155         * sysdeps/unix/sysv/linux/mips/bits/msq.h: New file.
2156
2157 2002-07-16  H.J. Lu  <hjl@gnu.org>
2158
2159         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2160         sys/personality.h.
2161         * sysdeps/unix/sysv/linux/sys/personality.h: New file.
2162
2163 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2164
2165         * elf/tst-tlsmod1.c (in_dso): Make sure the TLS variable access is
2166         not moved ahead of the fputs call.
2167         * elf/tst-tlsmod2.c (in_dso): Likewise.
2168         * elf/tst-tlsmod3.c (in_dso2): Likewise.
2169         * elf/tst-tlsmod4.c (in_dso): Likewise.
2170
2171 2002-08-25  Andreas Schwab  <schwab@suse.de>
2172
2173         * elf/dl-reloc.c (_dl_reloc_bad_type): Nul-terminate message.
2174
2175 2002-08-25  Roland McGrath  <roland@redhat.com>
2176
2177         * sysdeps/generic/utmp_file.c (UNLOCK_FILE): Clear alarm before
2178         resetting handler, to avoid the possibility of a spurious SIGALRM
2179         delivered to the user's handler.
2180         Reported by Amit D. Chaudhary <amitc@brocade.com>,
2181
2182         * misc/Makefile (CFLAGS-init-misc.c): Variable removed.  It served to
2183         set -fkeep-inline-functions, which is not needed for the current file.
2184
2185         * sysdeps/generic/ldsodefs.h: Add attribute_hidden to *_internal decls.
2186         (_dl_setup_hash): Add attribute_hidden.
2187         (_dl_sysdep_start, _dl_sysdep_start_cleanup): Likewise.
2188         (_dl_sysdep_read_whole_file, _dl_dprintf): Likewise.
2189         (_dl_new_object, _dl_map_object_deps): Likewise.
2190         (_dl_map_object_deps_internal): Remove decl.
2191         * elf/rtld.c (__mempcpy, _exit): Redeclare locally as hidden.
2192
2193         * sysdeps/i386/dl-machine.h [PI_STATIC_AND_HIDDEN
2194         && HAVE_VISIBILITY_ATTRIBUTE && HAVE_HIDDEN
2195         && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]
2196         (elf_machine_dynamic, elf_machine_load_address): Rewritten without asm,
2197         instead relying on the compiler to produce only GOTOFF variable refs.
2198
2199 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2200
2201         * elf/dl-load.c: Fix typo in comment.  Add a few more __builtin_expect.
2202
2203         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Define as static
2204         inline to avoid defining it in every file which includes this header.
2205
2206         * elf/rtld.c: Also test for HAVE_VISIBILITY_ATTRIBUTE before
2207         defining DONT_USE_BOOTSTRAP_MAP.
2208
2209         * libio/tst-freopen.c (main): Use correct formats for __LINE__.
2210         * libio/tst-mmap-setvbuf.c (main): Likewise.
2211         * libio/tst-widetext.c (main): Likewise.
2212
2213         * libio/tst-mmap-eofsync.c (do_test): Use correct format in error
2214         message.
2215         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
2216         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
2217
2218         * sysdeps/i386/elf/configure.in: Unconditionally define
2219         PI_STATIC_AND_HIDDEN.
2220         * elf/rtld.c (DONT_USE_BOOTSTRAP_MAP): Define only if
2221         PI_STATIC_AND_HIDDEN is defined as well.
2222         * config.h.in: Add PI_STATIC_AND_HIDDEN entry.
2223
2224 2002-08-24  Ulrich Drepper  <drepper@redhat.com>
2225
2226         * sysdeps/ia64/bzero.S: Define __bzero as well.
2227
2228         * locale/programs/charmap.c (charmap_new_char): Don't use
2229         ULONG_MAX as maximum UCS4 value.
2230
2231         * sysdeps/unix/sysv/linux/ia64/sys/user.h: New file.
2232
2233         * sysdeps/generic/strtol.c: We don't need the isascii test in glibc.
2234
2235         * malloc/hooks.c (public_sET_STATe): use size_t as type for i.
2236         * malloc/malloc.c (mALLINFo): Likewise.
2237
2238         * libio/wstrops.c (_IO_wstr_pbackfail): Use WEOF in comparison.
2239
2240         * libio/wfileops.c (_IO_wfile_overflow): Use EOF not WEOF when
2241         examining result of _IO_do_flush call.
2242
2243         * stdio-common/vfprintf.c (vfprintf): Use correct type in va_arg.
2244         Use prec not spec when sizing buffers.
2245
2246         * catgets/open_catalog.c (__open_catalog): Add casts to avoid warnings.
2247         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
2248         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
2249         * stdio-common/vfscanf.c (inchar): Likewise.
2250         * misc/efgcvt_r.c (fcvt_r): Likewise.
2251         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
2252         * elf/readlib.c (process_file): Likewise.
2253         * elf/sprof.c (load_profdata): Likewise.
2254         * sysdeps/ia64/hp-timing.h (HP_TIMING_PRINT): Likewise.
2255         * locale/programs/linereader.c (get_toplvl_escape): Likewise.
2256         * locale/programs/charmap.c (charmap_read): Likewise.
2257         * libio/fileops.c: Likewise.
2258         * libio/fmemopen.c: Likewise.
2259         * stdlib/strtod.c: Likewise.
2260         * elf/dl-load.c: Likewise.
2261         * iconv/iconvconfig.c: Likewise.
2262         * iconv/iconv_prog.c (process_block): Likewise.
2263         * elf/rtld.c (dl_main): Likewise.
2264
2265         * sysdeps/unix/sysv/linux/ia64/Makefile: Define _ASM_IA64_CURRENT_H
2266         macro to calm down the compiler.
2267
2268         * iconv/gconv_cache.c (__gconv_load_cache): Add cast to avoid warning.
2269
2270         * sysdeps/ia64/elf/initfini.c: Don't use newlines embedded in string.
2271
2272         * sysdeps/unix/sysv/linux/i386/sysdep.S: Update comment regarding
2273         placement of errno definition.
2274         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
2275         * sysdeps/unix/sysv/linux/mips/sysdep.S: Likewise.
2276         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
2277         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
2278         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
2279
2280         * resolv/nss_dns/dns-host.c (MAXPACKET): Increase minimum value
2281         from 1024 to 65536, to avoid buffer overrun.
2282
2283 2002-08-16  Paul Eggert  <eggert@twinsun.com>
2284
2285         * resolv/gethnamaddr.c (MAXPACKET): Increase minimum value
2286         from 1024 to 65536, to avoid buffer overrun.
2287         * resolv/res_query.c (MAXPACKET): Likewise.
2288
2289 2002-08-24  Andreas Jaeger  <aj@suse.de>
2290
2291         * sysdeps/unix/sysv/linux/i386/Versions: Remove *xattr syscalls.
2292
2293 2002-08-23  Ulrich Drepper  <drepper@redhat.com>
2294
2295         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Define and initialize
2296         two52 locally.
2297         (log2): Likewise.
2298         * sysdeps/ieee754/dbl-64/upow.h: Remove definition of two52.
2299         Patch by Simon Gee <simong@agile.tv>.
2300
2301         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf):
2302         Prefer reading /proc/stat since it is more uniform across
2303         architectures.
2304
2305         * manual/texinfo.tex: Update to latest official version.
2306
2307         * sysvipc/sys/shm.h: Remove SHMLBA definition.
2308         * sysdeps/generic/bits/shm.h: Define SHMLBA here.
2309         * sysdeps/gnu/bits/shm.h: Likewise.
2310         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2311         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2312         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
2313         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2314         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2315         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2316         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2317         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Define SHMLBA to 2^20
2318         since this is what the kernel says.
2319
2320         * misc/sys/xattr.h: Include <sys/types.h> instead of <stddef.h>
2321         since ssize_t is needed as well.  Replace const with __const.
2322
2323 2002-08-23  Roland McGrath  <roland@redhat.com>
2324
2325         * malloc/hooks.c (__malloc_initialize_hook, __free_hook,
2326         __malloc_hook, __realloc_hook, __memalign_hook,
2327         __after_morecore_hook): Variable definitions moved to ...
2328         * malloc/malloc.c: ... here, so as to be before all references.
2329
2330         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Add a dummy
2331         global variable reference in an unused asm parameter, to ensure the
2332         compiler has set up the GOT register before we use it.
2333
2334         * malloc/hooks.c: Move variable definitions ahead of uses.
2335         * libio/fileops.c: Move versioned_symbol defns ahead of _IO_jump_t
2336         initializers that make reference to variables they define.
2337
2338 2002-08-23  Andreas Jaeger  <aj@suse.de>
2339
2340         * locale/loadarchive.c: Include <stdlib.h> for prototypes of
2341         alloca, free, qsort.
2342
2343         * dlfcn/bug-dlsym1-lib1.c (foo): Add prototype to avoid warning.
2344
2345         * sysdeps/ieee754/flt-32/e_jnf.c: Remove unused variable.
2346         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2347
2348         * misc/sys/xattr.h: New file, contributed by Christoph Hellwig
2349         <hch@lst.de>.
2350         * sysdeps/generic/fgetxattr.c: New file.
2351         * sysdeps/generic/flistxattr.c: New file.
2352         * sysdeps/generic/fremovexattr.c: New file.
2353         * sysdeps/generic/fsetxattr.c: New file.
2354         * sysdeps/generic/getxattr.c: New file.
2355         * sysdeps/generic/listxattr.c: New file.
2356         * sysdeps/generic/lgetxattr.c: New file.
2357         * sysdeps/generic/llistxattr.c: New file.
2358         * sysdeps/generic/lremovexattr.c: New file.
2359         * sysdeps/generic/lsetxattr.c: New file.
2360         * sysdeps/generic/removexattr.c: New file.
2361         * sysdeps/generic/setxattr.c: New file.
2362         * misc/Makefile (headers): Add sys/xattr.h.
2363         (routines): Add *xattr calls.
2364         * misc/Versions: Add *xattr calls with version 2.3.
2365         * sysdeps/unix/sysv/linux/m68k/Versions: Remove *xattr syscalls.
2366         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2367         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2368         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2369         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2370         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2371         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2372         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2373
2374 2002-08-22  Steven Munroe  <sjmunroe@us.ibm.com>
2375
2376         * sysdeps/powerpc/elf/libc-start.c
2377         (__cache_line_size): Declare.
2378         (__aux_init_cache): New function.
2379         (__libc_start_main): Change type of `auxvec' parameter to
2380         `ElfW(auxv_t) *'.  Correct walking of aux vector.  Call
2381         __aux_init_cache.
2382         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
2383         (__cache_line_size): Declare.
2384         (__aux_init_cache): New function.
2385         (DL_PLATFORM_INIT): Define.
2386         * sysdeps/powerpc/memset.S: Define __cache_line_size and use its
2387         value to select the correct stride for dcbz.
2388
2389 2002-08-22  Andreas Jaeger  <aj@suse.de>
2390
2391         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments of
2392         shmat.
2393
2394 2002-08-22  Roland McGrath  <roland@redhat.com>
2395
2396         * locale/loadarchive.c (_nl_load_locale_from_archive): Check max file
2397         position indicated by locrectab against file bounds before rounding to
2398         page size.  In mapping loop, always set TO before breaking out of
2399         contiguous range coalescing loop.
2400
2401         * locale/loadarchive.c (_nl_load_locale_from_archive): Use MAP_PRIVATE
2402         (or MAP_COPY if available) instead of MAP_SHARED.
2403
2404         * scripts/firstversions.awk: When encountering a version newer than
2405         the specified earliest version, be sure to emit the specified earliest
2406         version first if any renaming of an older version to that has been.
2407
2408 2002-08-21  Roland McGrath  <roland@redhat.com>
2409
2410         * configure.in: Make GCC version check require 3.[2-9]* and no others.
2411         * manual/install.texi (Tools for Compilation): Say 3.2 is required.
2412         (Configuring and compiling): Don't mention older GCC versions any more.
2413         * INSTALL: Regenerated.
2414
2415         * manual/install.texi (Configuring and compiling, Installation,
2416         Running make install, Linux): Linux -> GNU/Linux where appropriate.
2417
2418         * elf/rtld.c (_dl_start_final): Move defn before _dl_start so it can
2419         be inlined.  Declare it with always_inline if [DONT_USE_BOOTSTRAP_MAP]
2420         and with noinline otherwise.  Remove hack alloca use to prevent
2421         inlining, we can ask for it explicitly nowadays.
2422
2423         * dlfcn/bug-dlsym1.c: New file.
2424         * dlfcn/bug-dlsym1-lib1.c, dlfcn/bug-dlsym1-lib2.c: New files.
2425         * dlfcn/Makefile (distribute): Add them.
2426         (tests): Add bug-dlsym1 here.
2427         (modules-names): Add bug-dlsym1-lib1 and bug-dlsym1-lib2 here.
2428         ($(objpfx)bug-dlsym1, $(objpfx)bug-dlsym1.out): New targets.
2429         ($(objpfx)bug-dlsym1-lib1.so, $(objpfx)bug-dlsym1-lib2.so): Likewise.
2430
2431 2002-08-21  Ulrich Drepper  <drepper@redhat.com>
2432
2433         * elf/rtld.c (start_time): New global variable.  Moved from _dl_start.
2434         (DONT_USE_BOOTSTRAP_MAP): Define if we can use non-exported symbols
2435         before relocation.
2436         (_dl_start): Don't use local bootstrap_map variable if
2437         DONT_USE_BOOTSTRAP_MAP is defined.  Use GL(dl_rtld_map).  Don't
2438         pass bootstrap_map to _dl_start_final in this case either.  Don't
2439         pass start_time to _dl_start_final ever.
2440         (_dl_start_final): Don't copy bootstrap_map if DONT_USE_BOOTSTRAP_MAP.
2441
2442         * elf/dl-deps.c (_dl_map_object_deps): Revert patch from 2002-05-28.
2443         This cripples the scope lists necessary to search for symbols in
2444         dependencies which are not in the global scope.
2445
2446         * include/setjmp.h (__libc_longjmp): Add declaration.
2447
2448 2002-08-21  Andreas Jaeger  <aj@suse.de>
2449
2450         * sysdeps/x86_64/_mcount.S: Fix assembler.
2451
2452         * sysdeps/unix/sysv/linux/x86_64/Makefile: Generate bits/syscall.h
2453         with biarch support.
2454
2455 2002-08-21  Andreas Jaeger  <aj@suse.de>
2456
2457         * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Fix it.
2458
2459         * sysdeps/x86_64/Makefile (sysdep_routines): Add _mcount.
2460
2461         * sysdeps/x86_64/machine-gmon.h: New file.
2462         * sysdeps/x86_64/_mcount.S: New file.
2463
2464 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
2465
2466         * elf/rtld.c (_dl_start): Pass zero to TLS_INIT_TP.  Set
2467         bootstrap_map.l_tls_tp_initialized to 1 if TLS_INIT_TP was called.
2468         (_dl_start_final): Copy l_tls_tp_initialized to GL(dl_rtld_map).
2469         (dl_main): If HAVE___THREAD is not defined pass l_tls_tp_initialized
2470         to TL_INIT_TP.  Otherwise pass 1.
2471         * include/link.h (struct link_map): Add l_tls_tp_initialized.
2472         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass 0 to TL_INIT_TP.
2473
2474 2002-08-15  Jakub Jelinek  <jakub@redhat.com>
2475
2476         * locale/programs/localedef.c (add_to_readlist): Error about
2477         circular dependencies only if the locale in question hasn't
2478         been finished.
2479         * locale/programs/linereader.c (get_string): Pass LC_CTYPE not
2480         CTYPE_LOCALE to load_locale.
2481         * locale/programs/locfile.c (locfile_read): Don't include
2482         unneeded but available locales in locale_mask.
2483
2484         * locale/programs/locarchive.c (enlarge_archive): If quiet, don't
2485         print any messages about enlarging archive.
2486
2487 2002-08-20  Brian Youmans  <3diff@gnu.org>
2488
2489         * manual/contrib.texi: Removed licenses, added acknowledgements
2490         for contributions by Intel, IBM, Craig Metz.
2491         * LICENSES: New file, contains the text of all non-FSF licenses in the
2492         distribution that require putting the notice in the accompanying
2493         documentation.
2494         * README.template, README: Mention LICENSES.
2495
2496         * sysdeps/mach/hurd/net/if_ppp.h: Replaced CMU license with a
2497         new one modelled on the modern BSD license, per recent letter
2498         of permission from CMU.
2499         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
2500
2501         * sysdeps/ieee754/dbl-64/MathLib.h: Changed the copyright holder
2502         from IBM to FSF, per the recent Software Letter.  Changed the
2503         distribution terms from GPL to LGPL.
2504
2505         * sysdeps/ieee754/dbl-64/asincos.tbl: Added FSF copyright and
2506         copying permission notice (Lesser GPL), per recent IBM Software Letter.
2507         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
2508         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
2509         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
2510         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
2511         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
2512         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
2513         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
2514         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
2515
2516         * sysdeps/ieee754/dbl-64/atnat.h: Changed the copyright holder
2517         from IBM to FSF, per the recent Software Letter.  Corrected the
2518         text of the copying permission notice to say Lesser GPL instead
2519         of GPL in warranty disclaimer paragraph.
2520         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
2521         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
2522         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
2523         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
2524         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
2525         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
2526         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
2527         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
2528         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
2529         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
2530         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
2531         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
2532         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
2533         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
2534         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
2535         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
2536         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
2537         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
2538         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
2539         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
2540         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
2541
2542         * sysdeps/ieee754/dbl-64/branred.c: Corrected the text of the copying
2543         permission notice to say Lesser GPL instead of GPL in warranty
2544         disclaimer paragraph.
2545         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2546         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2547         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2548         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2549         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2550         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2551         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2552         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2553         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2554         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2555         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2556         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2557         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2558         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2559         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2560         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2561         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2562         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2563         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2564         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2565         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2566         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2567         * sysdeps/ieee754/dbl-64/slowpow.c:  Likewise.
2568
2569 2002-08-20  Roland McGrath  <roland@redhat.com>
2570
2571         Fix ABI compatibility with libc compiled with old tools on powerpc.
2572         Changes contributed by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2573         and Jack Howarth <howarth@bromo.med.uc.edu>.
2574         * sysdeps/powerpc/Makefile [$(have-protected) = yes]
2575         (CPPFLAGS-divdi3.c, CPPFLAGS-libgcc-compat.S): New variables,
2576         pass -DHAVE_DOT_HIDDEN for these files.
2577         * sysdeps/powerpc/Versions (libc: GLIBC_2.0): Added __floatdidf,
2578         __floatdisf.
2579         * sysdeps/powerpc/divdi3.c: New file.
2580         * sysdeps/powerpc/libgcc-compat.S: New file, replacement for ...
2581         * sysdeps/powerpc/libgcc-compat.c: ... this, file removed.
2582
2583 2002-08-20  Jakub Jelinek  <jakub@redhat.com>
2584
2585         * locale/loadarchive.c (_nl_load_locale_from_archive): Handle
2586         partially overlapping mappings.  Remove unneeded (char *) casts.
2587         Never allow duplication of ranges in mapped areas.
2588
2589 2002-08-20  Roland McGrath  <roland@redhat.com>
2590
2591         * elf/Makefile ($(objpfx)ld.so): Separate commands in rule so errors
2592         can be detected by make.  Reported by H.J. Lu <hjl@gnu.org>.
2593
2594 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
2595
2596         * include/unistd.h: Don't hide _exit.
2597
2598         * elf/rtld.c (_dl_start): Pass extra argument 1 to TLS_INIT_TP.
2599         (dl_main): Pass extra argument 0 to TLS_INIT_TP.
2600         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass extra
2601         argument 1 to TLS_INIT_TP.
2602         * sysdeps/generic/tls.h (TLS_INIT_TP): Describe new parameter.
2603
2604         * sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit.
2605
2606         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_tls_static_info.
2607         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Move dtv
2608         memory allocation to...
2609         (allocate_dtv): ...here.  New function.
2610         (_dl_allocate_tls): Change to take parameter.  If parameter is non-NULL
2611         call allocate_dtv instead of _dl_allocate_tls_storage.
2612         (_dl_deallocate_tls): New parameter.  Deallocate TCB only if true.
2613         (_dl_get_tls_static_info): New function.
2614         * sysdeps/generic/ldsodefs.h: Adjust prototypes of _dl_allocate_tls
2615         and _dl_deallocate_tls.  Add prototype for _dl_get_tls_static_info.
2616
2617 2002-08-19  Ulrich Drepper  <drepper@redhat.com>
2618
2619         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return
2620         immediately if result == NULL.
2621
2622 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
2623
2624         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
2625
2626 2002-08-18  Roland McGrath  <roland@frob.com>
2627
2628         * sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split
2629         instead of __file_name_split.
2630         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
2631
2632         * sysdeps/mach/hurd/dl-sysdep.c
2633         [HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
2634         [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
2635
2636 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
2637
2638         * locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
2639         in change before last: MAX -> MIN.
2640
2641 2002-08-15  Roland McGrath  <roland@redhat.com>
2642
2643         * libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF
2644         if seek would go past it.
2645         (mmap_remap_check): If file position is at or past EOF after check,
2646         leave read pointers at EOF and don't seek.
2647
2648         * libio/tst-mmap-offend.c: New file.
2649         * libio/Makefile (tests): Add it.
2650
2651         * locale/loadarchive.c (_nl_load_locale_from_archive): Store strdup of
2652         the name as passed, rather than the name in the archive dictionary.
2653
2654 2002-08-15  Ulrich Drepper  <drepper@redhat.com>
2655
2656         * csu/Makefile: Define elide-routines.os not static-only-routines.
2657
2658         * include/sched.h (__clone): Add varargs at the end.
2659
2660         * elf/rtld.c (_dl_start): Allow TLS_INIT_TP to fail, and stop in that
2661         case.
2662         (TLS_INIT_HELPER): If defined, use it.
2663         * sysdeps/generic/libc-tls.c (TLS_INIT_HELPER): Likewise.
2664
2665 2002-08-15  Roland McGrath  <roland@redhat.com>
2666
2667         * elf/dl-load.c (lose): Remove [!SHARED] conditional from null check
2668         on L->l_prev; it can happen under rtld --verify too.
2669
2670         * locale/loadarchive.c (_nl_load_locale_from_archive): Don't read the
2671         header separately, just map an initial window of 2MB from the file
2672         and remap if that is not large enough to cover the whole header.
2673
2674 2002-08-15  Andreas Jaeger  <aj@suse.de>
2675
2676         * sysdeps/unix/sysv/linux/m68k/Versions: Add *xattr syscalls with
2677         version 2.3.
2678         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2679         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2680         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2681         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2682         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2683         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2684         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2685         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
2686         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
2687         Patch by Andreas Gruenbacher <agruen@suse.de>.
2688
2689         * sysdeps/unix/sysv/linux/syscalls.list: Add *xattr syscalls.
2690
2691 2002-08-14  Roland McGrath  <roland@redhat.com>
2692
2693         * locale/locarchive.h (struct locale_category_data): Give this name to
2694         the type of locale_data_t's elements.
2695         * locale/programs/locarchive.c (cmpcategorysize): New static function.
2696         (add_locale): Use that to sort the categories by size and put all
2697         those that fit into two pages into the LC_ALL block, instead of
2698         hard-coding it to do everything but LC_CTYPE and LC_COLLATE.
2699         (show_archive_content): Detect categories inside LC_ALL block
2700         directly, instead of hard-coding.
2701         (oldlocrecentcmp): Compare just on file locations used.
2702
2703 2002-08-14  Jakub Jelinek  <jakub@redhat.com>
2704
2705         * locale/programs/locarchive.c (struct oldlocrecent): New type.
2706         (oldlocrecentcmp): New function.
2707         (enlarge_archive): Re-add locales in the order they were added
2708         to the archive.
2709         (add_locale): Put all the small locale files together, if the small
2710         locale file block would occupy less pages if page size aligned, align
2711         it.
2712         (show_archive_content): Adjust for locale archives optimized for speed.
2713
2714 2002-08-14  Roland McGrath  <roland@frob.com>
2715
2716         * configure.in: Use "MISSING" as not-found value for MIG.
2717         * sysdeps/mach/configure.in: Fatal if mig not found.
2718         * configure, sysdeps/mach/configure: Regenerated.
2719
2720 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
2721
2722         * locale/loadarchive.c (archfname): Add missing slash.
2723
2724         * sysdeps/generic/strtold.c (__strtold_internal): Add libc_hidden_def.
2725         * wcsmbs/wcstold.c (__wcstold_internal): Add libc_hidden_def.
2726
2727 2002-08-12  Roland McGrath  <roland@redhat.com>
2728
2729         * include/sys/wait.h (__waitpid): Add libc_hidden_proto.
2730         * sysdeps/unix/sysv/sco3.2.4/waitpid.S: Add libc_hidden_def.
2731         * sysdeps/unix/sysv/sysv4/waitpid.c: Add libc_hidden_weak.
2732         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
2733         * sysdeps/unix/sysv/aix/waitpid.c: Likewise.
2734         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
2735         * sysdeps/generic/waitpid.c: Likewise.
2736
2737         * include/net/if.h: New file.  Use libc_hidden_proto
2738         for if_nametoindex and if_indextoname.
2739         * sysdeps/generic/if_index.c: Add libc_hidden_def.
2740         * sysdeps/mach/hurd/if_index.c: Likewise.
2741         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
2742
2743         * include/grp.h (setgroups): Add libc_hidden_proto.
2744         * sysdeps/generic/setgroups.c: Add libc_hidden_def.
2745         * sysdeps/mach/hurd/setgroups.c: Likewise.
2746         * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
2747         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
2748
2749 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
2750
2751         * include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
2752         * sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
2753         * sysdeps/generic/setegid.c (setegid): Likewise.
2754         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
2755         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
2756         * sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
2757         * sysdeps/unix/bsd/setegid.c (setegid): Likewise.
2758         * sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
2759         * sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
2760         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
2761         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
2762         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
2763         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
2764         * sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
2765         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
2766         Remove fallback if __ASSUME_SETRESUID_SYSCALL.
2767
2768         * include/sys/stat.h (__fxstat_internal, __fxstat64_internal,
2769         __lxstat_internal, __lxstat64_internal): Remove.
2770         (__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64):
2771         Add hidden_proto.
2772         * sysdeps/generic/fxstat.c (__fxstat): Add hidden_def.
2773         Remove INTDEF where present, remove #undef at the beginning.
2774         * sysdeps/generic/fxstat64.c (__fxstat64): Likewise.
2775         * sysdeps/generic/lxstat.c (__lxstat): Likewise.
2776         * sysdeps/generic/lxstat64.c (__lxstat64): Likewise.
2777         * sysdeps/generic/xstat.c (__xstat): Likewise.
2778         * sysdeps/generic/xstat64.c (__xstat64): Likewise.
2779         * sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise.
2780         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
2781         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
2782         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
2783         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
2784         * sysdeps/mach/hurd/xstat.c (__xstat): Likewise.
2785         * sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise.
2786         * sysdeps/unix/fxstat.c (__fxstat): Likewise.
2787         * sysdeps/unix/common/lxstat.c (__lxstat): Likewise.
2788         * sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise.
2789         * sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise.
2790         * sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise.
2791         * sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise.
2792         * sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise.
2793         * sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise.
2794         * sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise.
2795         * sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise.
2796         * sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise.
2797         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise.
2798         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise.
2799         * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise.
2800         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
2801         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
2802         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
2803         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
2804         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
2805         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
2806         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise.
2807         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
2808         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
2809         * sysdeps/unix/xstat.c (__xstat): Likewise.
2810
2811         * include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto.
2812         * sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def.
2813         * sysdeps/generic/fstatvfs.c (fstatvfs): Likewise.
2814         * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
2815         * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise.
2816         * sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise.
2817         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise.
2818
2819         * include/unistd.h (tcgetpgrp): Add libc_hidden_proto.
2820         * include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise.
2821         * sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def.
2822         * sysdeps/generic/tcsetattr.c (tcsetattr): Likewise.
2823         * sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise.
2824         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise.
2825         * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise.
2826         * sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed):
2827         Likewise.
2828         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
2829         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
2830         * sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise.
2831         * sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise.
2832         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
2833         * sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise.
2834         * sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise.
2835         * sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise.
2836
2837         * include/string.h (strcoll): Add libc_hidden_proto.
2838         * string/strcoll.c (strcoll): Add libc_hidden_def.
2839
2840         * misc/err.c (vwarn): Fix pasto in libc_hidden_def.
2841
2842 2002-08-11  Philip Blundell  <philb@gnu.org>
2843
2844         * sysdeps/arm/Makefile: New file.
2845
2846 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
2847
2848         * posix/regcomp.c (parse_reg_exp): If '|' is immediately followed
2849         by another '|', end of regex or enclosing ')', clear branch.
2850         * posix/bug-regex9.c: New test.
2851         * posix/Makefile (tests): Add bug-regex9.
2852
2853 2002-08-12  Roland McGrath  <roland@redhat.com>
2854
2855         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop
2856         start count condition, use TOTAL instead of variable that was never
2857         set.  Fix outer loop termination condition to TOTAL >= after update.
2858
2859         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize
2860         dl_tls_static_align and dl_tls_static_nelem.
2861
2862 2002-08-11  Roland McGrath  <roland@redhat.com>
2863
2864         * elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
2865         of the TLS macros, otherwise the compiler might not have initialized
2866         the PIC register yet when we use the PLT via asm.
2867         * elf/tst-tlsmod3.c (in_dso2): Likewise.
2868         * elf/tst-tlsmod2.c (in_dso): Likewise.
2869
2870         * sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!).
2871
2872         * sysdeps/i386/bits/byteswap.h (__bswap_16, __bswap_32, __bswap_64):
2873         Evaluate argument exactly once.  Remove __volatile__ from asm's.
2874
2875         * include/unistd.h: Use libc_hidden_proto for getdomainname
2876         and getlogin_r.
2877         * sysdeps/generic/getdomain.c: Add libc_hidden_def.
2878         * sysdeps/mach/hurd/getdomain.c: Likewise.
2879         * sysdeps/unix/getlogin_r.c: Likewise.
2880         * sysdeps/mach/hurd/getlogin_r.c: Likewise.
2881         * sysdeps/generic/getlogin_r.c: Likewise.
2882
2883         * include/rpc/auth_des.h: Use libc_hidden_proto for rtime.
2884         * sunrpc/rtime.c: Add libc_hidden_def.
2885
2886         * include/string.h: Use libc_hidden_proto for basename.
2887         * string/basename.c [_LIBC]: Add libc_hidden_def.
2888
2889         * sysdeps/unix/sysv/linux/opensock.c (__opensock): socket -> __socket.
2890
2891         * locale/loadarchive.c: munmap -> __munmap throughout.
2892
2893         * include/netdb.h: Use libc_hidden_proto for gai_strerror.
2894         * sysdeps/posix/gai_strerror.c: Add libc_hidden_def.
2895         * sysdeps/generic/gai_strerror.c: Likewise.
2896
2897         * include/sys/errno.h: New file.
2898
2899         * include/signal.h: No libc_hidden_proto for raise,
2900         __libc_current_sigrtmin, __libc_current_sigrtmax.
2901         These need to be overridden by linuxthreads.
2902         * sysdeps/posix/raise.c: Reverted.
2903         * sysdeps/generic/raise.c: Reverted.
2904         * signal/allocrtsig.c: Reverted.
2905
2906         * locale/loadarchive.c (LOCALEDIR): Remove debugging defn.  Oops.
2907
2908 2002-08-10  Roland McGrath  <roland@redhat.com>
2909
2910         * locale/loadarchive.c (_nl_archive_subfreeres): New function.
2911         * locale/localeinfo.h: Declare it.
2912         * locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the
2913         current locale if it's not in the file list.
2914         Call _nl_archive_subfreeres.
2915
2916 2002-08-10  Andreas Jaeger  <aj@suse.de>
2917
2918         * sysdeps/i386/strchr.S: Add comment.
2919
2920 2002-08-10  Roland McGrath  <roland@redhat.com>
2921
2922         * include/wchar.h (putwc): Use libc_hidden_proto.
2923         * include/stdio.h (dprintf, fprintf, vfprintf, sprintf,
2924         sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise.
2925         * stdio-common/dprintf.c: Add libc_hidden_def.
2926         * stdio-common/fprintf.c: Likewise.
2927         * stdio-common/sprintf.c: Likewise.
2928         * stdio-common/sscanf.c: Likewise.
2929         * libio/iofwrite.c: Likewise.
2930         * libio/memstream.c: Likewise.
2931         * libio/putwc.c: Likewise.
2932         * stdio-common/perror.c: Likewise.
2933         * sysdeps/posix/remove.c: Likewise.
2934         * sysdeps/generic/remove.c: Likewise.
2935         * libio/rewind.c: Likewise.  Use <stdio.h> instead of "stdio.h".
2936         * stdio-common/vfprintf.c: Add libc_hidden_def.  Include <stdio.h>.
2937
2938 2002-08-09  Jakub Jelinek  <jakub@redhat.com>
2939
2940         * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
2941         towlower, towupper): Add prototypes here too.  Add libc_hidden_proto.
2942         * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
2943         towlower, towupper): Add libc_hidden_weak.
2944
2945         * include/bits/dlfcn.h: New file.
2946         * elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def.
2947
2948         * include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
2949         * include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
2950         * include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
2951         * include/pwd.h (_nss_files_parse_pwent): Likewise.
2952         * include/shadow.h (_nss_files_parse_spent): Likewise.
2953         * include/netdb.h (_nss_files_parse_protoent,
2954         _nss_files_parse_servent, _nss_files_parse_netent): Likewise.
2955         * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
2956         (LINE_PARSER): Use it.
2957         * nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
2958         * nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.
2959
2960         * libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT
2961         #endif.
2962
2963         * manual/debug.texi (%MENU%): Remove trailing dot.
2964         Reported by <hayastan132@hotmail.com>.
2965
2966         * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek
2967         aliases.
2968         (lseek): Dummy.
2969         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek):
2970         Likewise.
2971
2972 2002-08-09  Roland McGrath  <roland@redhat.com>
2973
2974         * locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale
2975         name to find codeset name (if any) and normalize it.  If the
2976         normalized name differs, look up only that in the archive.
2977         * locale/programs/locarchive.c (add_locale_to_archive): If the name
2978         contains a codeset, normalize the codeset store only the normalized
2979         name in the archive.  If not, add an alias containing the locale's
2980         normalized codeset name.  Apply codeset name normalization when
2981         matching entries in the alias file.
2982
2983         * locale/programs/locarchive.c (delete_locales_from_archive): Don't
2984         decrement HEAD->namehash_used here.
2985         (add_locale): Only need to insert name string when name_offset != 0.
2986
2987         * locale/programs/localedef.c (options): Add -A/--alias-file.
2988         (alias_file): New variable.
2989         (parse_opt): Grok -A, set that.
2990         * locale/programs/localedef.h: Declare it.
2991
2992         * locale/locarchive.h (struct locrecent): Add `refs' member.
2993         * locale/programs/locarchive.c (insert_name): New function, broken out
2994         of ...
2995         (add_locale_to_archive): ... here.  Call that.
2996         (add_alias): New function.
2997         (add_locale): New static function, add_locale_to_archive renamed.
2998         (add_locale_to_archive): Call that and use add_alias to add an alias
2999         for the name with codeset if the given name lacks it.
3000         (enlarge_archive): Call add_locale instead of add_locale_to_archive.
3001
3002         * locale/Makefile (routines): Add loadarchive.
3003         * locale/loadarchive.c: New file, started from code by Ulrich Drepper.
3004         (_nl_load_locale_from_archive): New function.
3005         * locale/localeinfo.h: Declare it.
3006         * locale/findlocale.c (_nl_find_locale): If using default locale path,
3007         try _nl_load_locale_from_archive first.
3008
3009         * locale/loadlocale.c (_nl_intern_locale_data): New function,
3010         broken out of _nl_load_locale.
3011         (_nl_load_locale): Call that.
3012         * locale/localeinfo.h: Declare it.
3013         (struct locale_data): Replace member `mmaped' with `alloc', an enum.
3014         (struct locale_data): Remove unused member `options'.
3015         * locale/findlocale.c (_nl_remove_locale): Update uses.
3016         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3017         * locale/C-collate.c: Update initializer.
3018         * locale/C-identification.c: Likewise.
3019         * locale/C-measurement.c: Likewise.
3020         * locale/C-telephone.c: Likewise.
3021         * locale/C-address.c: Likewise.
3022         * locale/C-name.c: Likewise.
3023         * locale/C-paper.c: Likewise.
3024         * locale/C-time.c: Likewise.
3025         * locale/C-numeric.c: Likewise.
3026         * locale/C-monetary.c: Likewise.
3027         * locale/C-messages.c : Likewise.
3028         * locale/C-ctype.c: Likewise.
3029
3030         * locale/hashval.h [! LONGBITS]: Include <limits.h> here and
3031         use CHAR_BIT instead of BITSPERBYTE.
3032
3033         * locale/localeinfo.h (_nl_find_locale, _nl_load_locale,
3034         _nl_unload_locale): Add `internal_function attribute_hidden' to decls.
3035         * locale/findlocale.c (_nl_find_locale): Add internal_function to defn.
3036         (_nl_remove_locale): Likewise.
3037         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3038
3039         * locale/findlocale.c (_nl_default_locale_path): New variable.
3040         (_nl_find_locale): If LOCALE_PATH is null, default to that.
3041         * locale/localeinfo.h: Declare it.
3042         * locale/setlocale.c (setlocale): Use _nl_default_locale_path
3043         in place of LOCALEDIR.  If no LOCPATH, pass null to _nl_find_locale.
3044         * locale/newlocale.c (__newlocale): Likewise.
3045
3046         * misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses.
3047         * inet/rexec.c (rexec_af): Add libc_hidden_def.
3048         * sysdeps/generic/morecore.c: Likewise.
3049         * signal/allocrtsig.c (__libc_current_sigrtmin): Likewise.
3050         (__libc_current_sigrtmax): Likewise.
3051
3052 2002-08-08  Roland McGrath  <roland@redhat.com>
3053
3054         * locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
3055         * catgets/open_catalog.c (__open_catalog): Likewise.
3056
3057         * locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed
3058         from typo INITIAL_NUM_NANES.
3059         (create_archive): Update use.
3060
3061 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
3062
3063         * sysdeps/unix/sysv/linux/sigwait.c: New file.
3064
3065 2002-08-08  Roland McGrath  <roland@frob.com>
3066
3067         * resolv/netdb.h: Don't declare h_errno as a plain global any more.
3068
3069 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
3070
3071         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
3072         else and undefine after including wcstol_l.c.
3073         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.
3074
3075 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
3076
3077         * gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available.
3078
3079 2002-08-08  Alexandre Oliva  <aoliva@redhat.com>
3080
3081         * configure.in: Make the test for broken_alias_attribute stricter.
3082
3083 2002-05-24  Robert Love  <rml@tech9.net>
3084
3085         * posix/Makefile (routines): Add sched_getaffinity and
3086         sched_setaffinity.
3087         * posix/sched.h: Add declarations for sched_getaffinity and
3088         sched_setaffinity.
3089         * sysdeps/generic/sched_getaffinity.c: New file.
3090         * sysdeps/generic/sched_setaffinity.c: New file.
3091         * sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and
3092         sched_setaffinity.
3093
3094 2002-08-06  Andreas Schwab  <schwab@suse.de>
3095
3096         * sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes.
3097
3098 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
3099
3100         * elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error
3101         message.
3102
3103         * stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special.
3104         It is known to be defined.
3105
3106         * include/string.h: Define index and rindex only if _ISOMAC is not
3107         defined.
3108
3109         * elf/rtld.c: Include <errno.h>.
3110         * sysdeps/generic/libc-tls.c: Likewise.
3111
3112 2002-08-07  Roland McGrath  <roland@redhat.com>
3113
3114         * resolv/res_debug.c (latlon2ul): Add const to argument type, and use
3115         it internally.
3116         (precsize_aton): Likewise.
3117
3118         * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
3119         the static symbols added in the last change (doofus is me).
3120
3121         * locale/newlocale.c (__newlocale): Use a bit mask instead of a second
3122         loop to notice missing categories in a composite name.
3123
3124         * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
3125         LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
3126         LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
3127         LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.
3128
3129 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
3130
3131         * malloc/tst-calloc.c: Add tests for one or both parameters being zero.
3132
3133 2002-08-07  Roland McGrath  <roland@redhat.com>
3134
3135         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
3136         unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
3137         Reported by Jakub Jelinek  <jakub@redhat.com>.
3138
3139 2002-08-07  Jakub Jelinek  <jakub@redhat.com>
3140
3141         * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
3142         division.
3143
3144 2002-08-06  Roland McGrath  <roland@redhat.com>
3145
3146         * include/getopt.h: Put private decls inside [_GETOPT_H].
3147         Use libc_hidden_proto for getopt_long, getopt_long_only.
3148         * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
3149         Add libc_hidden_def.
3150
3151         * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
3152         Define as a macro for __dl_iterate_phdr.
3153
3154         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
3155         made static.  Add __ name as a strong alias.
3156         (internal_endnetgrent): Likewise.
3157         (internal_getnetgrent_r): Likewise.
3158
3159         * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
3160         with no __ prefix.
3161         * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
3162         * ctype/ctype.h [__USE_GNU]: Add declarations and macros for
3163         all *_l functions with no __ prefix.
3164         * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
3165         * ctype/ctype_l.c: Likewise.
3166         * locale/nl_langinfo.c: Likewise.
3167         * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
3168         * stdlib/stdlib.h [__USE_GNU]: Likewise.
3169         * wcsmbs/wchar.h [__USE_GNU]: Likewise.
3170         * wctype/wctype.h [__USE_GNU]: Likewise.
3171         * string/strcoll_l.c (strcoll_l): Define as weak alias.
3172         * string/strxfrm_l.c (strxfrm_l): Define as weak alias.
3173         * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
3174         * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
3175         * stdlib/strtod_l.c (strtod_l): Define as weak alias.
3176         * stdlib/strtof_l.c (strtof_l): Define as weak alias.
3177         * stdlib/strtold_l.c (strtold_l): Define as weak alias.
3178         * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
3179         (__wcscasecmp_l): Add libc_hidden_def.
3180         * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
3181         (__wcsncasecmp_l): Add libc_hidden_def.
3182         * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
3183         * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
3184         * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
3185         * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
3186         * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
3187         * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
3188         * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
3189         * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
3190         * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
3191         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
3192         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
3193         * wctype/wctrans_l.c (wctrans_l) Define as weak alias.
3194         * wctype/towctrans_l.c (towctrans_l) Define as weak alias.
3195         * wctype/wctype_l.c (wctype_l) Define as weak alias.
3196
3197 2002-08-05  Roland McGrath  <roland@redhat.com>
3198
3199         * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
3200         netname2user, host2netname, user2netname, key_gendes.
3201         * sunrpc/netname.c: Add libc_hidden_def.
3202         * sunrpc/key_call.c: Likewise.
3203
3204         * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
3205         freeaddrinfo.
3206         * inet/getnameinfo.c: Add libc_hidden_def.
3207         * sysdeps/generic/getaddrinfo.c: Likewise.
3208         * sysdeps/posix/getaddrinfo.c: Likewise.
3209
3210         * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
3211         * wcsmbs/wmemchr.c: Add libc_hidden_def.
3212         * wcsmbs/wmemset.c: Add libc_hidden_def.
3213
3214         * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
3215         (index, rindex): Define as macros for strchr, strrchr.
3216
3217         * string/envz.c (envz_strip): index -> strchr
3218
3219         * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
3220         * sunrpc/rpc_prot.c: Add libc_hidden_def.
3221
3222         * include/wchar.h: Use libc_hidden_proto for mbrtowc.
3223         * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
3224
3225         * include/stdlib.h: Use libc_hidden_proto for wctomb.
3226         * stdlib/wctomb.c: Add libc_hidden_def.
3227
3228         * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
3229         rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
3230         * resolv/herror.c: Likewise.
3231         * inet/rcmd.c: Add libc_hidden_def.
3232         * inet/ruserpass.c: Likewise.
3233         * inet/getnetgrent_r.c: Likewise.
3234
3235         * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
3236         svc_unregister, remove *_internal decls.  Use libc_hidden_proto
3237         for svcerr_auth, svcerr_noprog, svcerr_progvers.
3238         * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
3239         libc_hidden_def.
3240         (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
3241         * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.
3242
3243         * sysdeps/posix/system.c (do_system): New function, guts broken out of
3244         __libc_system.
3245         (__libc_system): Call it, putting just the line == NULL test here.
3246
3247         * include/libc-symbols.h (__hidden_proto): Add extern keywords so
3248         variables work right.
3249
3250         * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
3251         * elf/dl-close.c (_dl_close): Likewise.
3252
3253         * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
3254         in6addr_any, in6addr_loopback.  Remove decls for
3255         bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
3256         * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
3257         * sunrpc/svc_tcp.c (svctcp_create): Likewise.
3258         * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
3259         * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
3260         * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
3261         * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
3262         in6addr_loopback.
3263         * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
3264
3265         * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
3266         ether_aton_r.
3267         * inet/ether_aton_r.c: Add libc_hidden_def.
3268         * inet/ether_ntoa_r.c: Likewise.
3269
3270         * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
3271         xprt_unregister.
3272         * sunrpc/svc.c: Add libc_hidden_def.
3273         * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
3274         pmap_set, pmap_unset.
3275         * sunrpc/pmap_clnt.c: Add libc_hidden_def.
3276         * sunrpc/pm_getport.c: Likewise.
3277         * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
3278         * sunrpc/publickey.c: Add libc_hidden_def.
3279
3280 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
3281
3282         * elf/rtld.c (_dl_start): Don't use memset.  Use same tricks as for
3283         the other memset call in this function.
3284
3285         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
3286         at correct index.  Clear BSS region now that memalign is used.
3287
3288 2002-08-05  Roland McGrath  <roland@redhat.com>
3289
3290         * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
3291         * sysdeps/generic/uname.c: Add libc_hidden_def.
3292         * sysdeps/mach/hurd/uname.c: Likewise.
3293
3294 2002-08-05  Jakub Jelinek  <jakub@redhat.com>
3295
3296         * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
3297         wcspbrk): Add libc_hidden_proto.
3298         * time/strftime.c (my_strftime): Add libc_hidden_def.
3299         (strftime): Remove libc_hidden_def.
3300         * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
3301         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
3302         * wcsmbs/wcsspn.c (wcsspn): Likewise.
3303         * wcsmbs/wcscmp.c (wcscmp): Likewise.
3304         * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
3305         * wcsmbs/wcscoll.c (wcscoll): Likewise.
3306
3307         * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
3308         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3309         __rpc_thread_createerr): Add libc_hidden_proto.
3310         * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
3311         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3312         __rpc_thread_createerr): Add libc_hidden_def.
3313
3314         * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
3315         clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
3316         * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
3317         clnt_perror, clnt_sperror): Add libc_hidden_def.
3318         * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
3319
3320         * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
3321         libc_hidden_proto.
3322         * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
3323         * sunrpc/des_soft.c (des_setparity): Likewise.
3324
3325         * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
3326         Add libc_hidden_proto.
3327         * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
3328         Add libc_hidden_def.
3329
3330 2002-08-05  Roland McGrath  <roland@redhat.com>
3331
3332         * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
3333         `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
3334         * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
3335         * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
3336         dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
3337         old data, abandoning the original memory allocated by rtld at startup,
3338         instead of calling realloc normally.
3339
3340 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
3341
3342         * po/fr.po: Update from translation team.
3343
3344 2002-08-04  Roland McGrath  <roland@redhat.com>
3345
3346         * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
3347         then generate a dummy module under the given name, obeying the
3348         normal rules for the "caller" field.
3349
3350         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
3351         actually iterate over the elements.  Fix typo p_type -> p_vaddr.
3352
3353         * include/pthread.h: Don't declare __pthread_initialize_minimal as
3354         weak here; we declare it weak or strong in the one place we use it.
3355         * sysdeps/generic/libc-start.c: ... which is here.
3356         Don't make the decl weak if [USE_TLS], since static programs need TLS
3357         setup even when single-threaded.
3358
3359         * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
3360
3361         * elf/Makefile (test-srcs): Add $(modules-names) to it.
3362         (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
3363         CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
3364         all these variables.
3365
3366 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3367
3368         * include/stdio.h: Don't define macro magic to redirect function
3369         calls if _ISOMAC is defined.
3370
3371         * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
3372         ldouble asin tests.
3373
3374 2002-08-04  Roland McGrath  <roland@redhat.com>
3375
3376         * stdlib/lrand48_r.c: Add libc_hidden_def.
3377
3378         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
3379         TCB with __libc_memalign instead of mmap.
3380         (_dl_deallocate_tls): Free it with free instead of munmap.
3381
3382         * Makerules (cpp-srcs-left): When setting this to run
3383         cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
3384         words.  Combine the two loops into one on the concatenated list,
3385         including those as well as $(test-srcs).
3386
3387         * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
3388         since we align here with optimally minimal waste anyway.
3389         (malloc): Just call that.
3390
3391         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
3392         the right variable.
3393
3394         * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
3395         to compute memory location for l_tls_initimage.
3396         * elf/rtld.c (_dl_start): Likewise.
3397         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
3398
3399         * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
3400         because the .d file is generated in the non-shared case and
3401         so fails to catch them otherwise.
3402
3403         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
3404         split out of _dl_allocate_tls.
3405         (_dl_allocate_tls_init): Likewise.
3406         (_dl_allocate_tls): Call those.
3407         * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
3408         * elf/rtld.c (dl_main): Call them separately instead of calling
3409         _dl_allocate_tls.  Delay _dl_allocate_tls_init until after relocation
3410         is finished, so that the initializer data has been relocated before we
3411         copy it into the main thread's TLS block.
3412
3413         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
3414         loop conditions, prevented the last used module from being initialized.
3415
3416 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
3417
3418         * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
3419         if glob resp. globfree are not macros.
3420         * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
3421         * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
3422         Add libc_hidden_ver.
3423         * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
3424         libc_hidden_def.
3425         * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
3426         instead of libc_hidden_weak.
3427         * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
3428         libc_hidden_ver instead of libc_hidden_def.
3429         * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
3430         libc_hidden_ver instead of libc_hidden_def.
3431         (wcstoll, wcstoq): Remove libc_hidden_weak.
3432         * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
3433         libc_hidden_ver.
3434         * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
3435         libc_hidden_ver.
3436         * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
3437         libc_hidden_ver.
3438         * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
3439         libc_hidden_ver.
3440
3441 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3442
3443         * stdio-common/psignal.c: Declare _sys_siglist_internal.  Use USEINT
3444         to access _sys_siglist.
3445         * string/strsignal.c: Likewise.
3446         * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
3447         * sysdeps/gnu/siglist.c: Likewise.
3448         * sysdeps/unix/siglist.c: Likewise.
3449         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
3450
3451         * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
3452
3453         * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
3454
3455         * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
3456         alias and use it.
3457         * intl/bindtextdom.c: Use _nl_default_dirname_internal.
3458
3459         * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
3460         * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
3461         * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
3462
3463         * include/time.h: Add libc_hidden_proto for __gmtime_r.
3464         * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
3465
3466         * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
3467         and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
3468         and __gconv_get_cache respectively.
3469         * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
3470         defined static.  Change all users.
3471         (__gconv_get_cache): New function.
3472         * iconv/gconv_db.c (__gconv_get_modules_db): New function.
3473         (__gconv_get_alias_db): New function.
3474         * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
3475         (__conv_modules_db): Likewise.
3476         Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
3477         and __gconv_get_alias_db.
3478         * iconv/iconv_prog.c: Use the new functions instead of accessing the
3479         variables.
3480
3481         * include/stdlib.h: Add prototype and libc_hidden_proto for
3482         __default_morecore.
3483         * sysdeps/generic/morecore.c: Include <stdlib.h>.
3484
3485         * malloc/obstack.c: Remove fputs macro.
3486
3487         * malloc/mtrace.c: Remove fopen macro.
3488
3489 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
3490
3491         * manual/debug.texi: Fix spelling to programmatically.
3492         Reported by <hayastan132@hotmail.com>.
3493
3494 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3495
3496         * include/libio.h: Add libc_hidden_proto for __uflow.
3497         * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
3498         fgetpos to _IO_* names.
3499         Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
3500         fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
3501         * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
3502         putwc_unlocked, vswscanf.
3503         * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
3504         * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
3505         * libio/fseek.c: Likewise.
3506         * libio/fmemopen.c: Include "libioP.h".  Call _IO_fopencookie and
3507         not fopencookie.
3508         * libio/genops.c (__uflow): Add libc_hidden_def.
3509         * libio/iofflush_u.c (fflush_unlocked): Likewise.
3510         * libio/iofgets_u.c (fgets_unlocked): Likewise.
3511         * libio/iofputs_u.c (fputs_unlocked): Likewise.
3512         * libio/iofputws_u.c (fputws_unlocked): Likewise.
3513         * libio/iofread_u.c (fread_unlocked): Likewise.
3514         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
3515         * libio/iovswscanf.c (vswscanf): Likewise.
3516         * libio/putwc_u.c (putwc_unlocked): Likewise.
3517         * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
3518         * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
3519         * malloc/mtrace.c: Likewise.
3520
3521         * sunrpc/clnt_perr.c: Remove fputs macro.
3522         * sunrpc/svc_simple.c: Likewise.
3523         * sunrpc/svc_tcp.c: Likewise.
3524         * sunrpc/svc_udp.c: Likewise.
3525         * sunrpc/xdr_rec.c: Likewise.
3526         * sunrpc/xdr_ref.c: Likewise.
3527
3528         * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
3529         iconv_prog, linereader, and charmap-dir.
3530         * locale/Makefile: Likewise for locale and charmap-dir.
3531         * malloc/Makefile: Likewise for memusagestat.
3532         * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
3533         * sunrpc/Makefile: Likewise for rpc_main.
3534         * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
3535         * timezone/Makefile: Likewise for zic.
3536
3537         * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
3538
3539         * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
3540         * elf/dl-close.c (_dl_close): Add libc_hidden_def.
3541         * elf/dl-open.c (_dl_open): Add libc_hidden_def.
3542         * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
3543         _dl_close.
3544
3545         * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
3546         __wunderflow.
3547         * libio/genops.c (__underflow): Add libc_hidden_def.
3548         * libio/wgenops.c (__wuflow): Likewise.
3549         (__wunderflow): Likewise.
3550
3551         * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
3552         * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
3553
3554         * include/stdio.h: Add libc_hidden_proto for __vfscanf.
3555         * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
3556
3557         * include/string.h: Add libc_hidden_proto for __strverscmp.
3558         * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
3559
3560         * include/unistd.h: Add libc_hidden_proto for __sysconf.
3561         * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
3562         * sysdeps/posix/sysconf.c: Likewise.
3563         * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
3564         * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
3565
3566         * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
3567         __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
3568         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
3569         __iswxdigit_l, __towlower_l, __towupper_l.
3570         * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
3571         * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
3572
3573         * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
3574         * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
3575         * sysdeps/mach/hurd/xmknod.c: Likewise.
3576         * sysdeps/unix/xmknod.c: Likewise.
3577         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
3578         * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
3579         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
3580
3581         * sunrpc/svc.c: Add missing INTUSE for _authenticate.
3582
3583 2002-08-03  Roland McGrath  <roland@redhat.com>
3584
3585         * include/sys/resource.h: Use libc_hidden_proto for getpriority,
3586         setpriority.
3587         * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
3588         * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
3589         * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
3590         * sysdeps/mach/hurd/setpriority.c: Likewise.
3591         * sysdeps/mach/hurd/getpriority.c: Likewise.
3592         * sysdeps/generic/setpriority.c: Likewise.
3593         * sysdeps/generic/getpriority.c: Likewise.
3594
3595         * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
3596         * malloc/mcheck.c: Add libc_hidden_def.
3597
3598         * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
3599         * misc/hsearch_r.c: Add libc_hidden_def.
3600
3601         * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
3602         * posix/fnmatch.c: Add libc_hidden_weak.
3603
3604         * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
3605         execl, execle, execlp, execvp, getpid, getsid.
3606         * sysdeps/generic/alarm.c: Add libc_hidden_def.
3607         * sysdeps/unix/alarm.c: Likewise.
3608         * posix/confstr.c: Likewise.
3609         * posix/execvp.c: Likewise.
3610         * posix/execlp.c: Likewise.
3611         * posix/execle.c: Likewise.
3612         * posix/execl.c: Likewise.
3613         * sysdeps/generic/getsid.c: Likewise.
3614         * sysdeps/mach/hurd/getsid.c: Likewise.
3615         * sysdeps/generic/getpid.c: Add libc_hidden_weak.
3616         * sysdeps/mach/hurd/getpid.c: Likewise.
3617
3618         * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
3619         qecvt_r, qfcvt_r, lrand48_r.
3620         * misc/efgcvt_r.c: Add libc_hidden_def.
3621
3622         * include/wordexp.h: Use libc_hidden_proto for wordfree.
3623         * sysdeps/generic/wordexp.c: Add libc_hidden_def.
3624
3625         * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
3626         * locale/nl_langinfo.c: Add libc_hidden_def.
3627
3628         * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
3629         * sysdeps/generic/glob.c: Add libc_hidden_def.
3630         * sysdeps/generic/glob64.c: Likewise.
3631         * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
3632
3633         * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
3634
3635         * elf/Makefile (CFLAGS-vismod2.c): New variable.
3636
3637         * locale/setlocale.c (_nl_current_names): Variable moved ...
3638         * locale/localename.c (_nl_current_names): ... here, new file.
3639         Make it global, with attribute_hidden.
3640         * locale/localeinfo.h: Declare it.
3641         * locale/Makefile (aux): Add localename.
3642         * locale/localename.c (__current_locale_name): New function.
3643         * include/locale.h (__current_locale_name): Declare it.
3644         * intl/dcigettext.c (guess_category_value): Use that instead of
3645         calling setlocale.
3646
3647         * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
3648         [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
3649         [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
3650         * locale/newlocale.c: Add alias to __ name.
3651         * locale/duplocale.c: Likewise.
3652         * locale/freelocale.c: Likewise.
3653         * locale/uselocale.c: New file.
3654         * locale/Makefile (routines): Add it.
3655         * locale/Versions (libc: GLIBC_2.3): New set.
3656         Add newlocale, duplocale, freelocale, uselocale.
3657         (libc: GLIBC_PRIVATE): Add __uselocale.
3658
3659         * locale/localeinfo.h [SHARED]
3660         (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
3661         (_NL_CURRENT_DATA): Define using that.
3662         (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
3663         (_NL_CURRENT_DEFINE): Define to empty.
3664         [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
3665         conditionalized on this.
3666         * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
3667         taking initializer of _nl_C_locobj.
3668         [SHARED] (_nl_global_locale): New variable, using that initializer.
3669         (_nl_C_locobj): Use new macro for initialzier.
3670         * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
3671         [! SHARED] (CATEGORY_USED): New macro.
3672         [SHARED] (CATEGORY_USED, _nl_C): New macros.
3673         (setdata, setlocale): Use that macro instead of examining _nl_current.
3674         (setdata): Set the slot in _nl_global_locale.
3675         Conditionalize setting of _nl_current on [! SHARED].
3676         * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
3677         declaration as an extern.
3678         * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
3679
3680         * include/locale.h: Use libc_hidden_proto for setlocale.
3681         * locale/setlocale.c: Add libc_hidden_def.
3682
3683         * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
3684
3685         * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
3686         * misc/hsearch_r.c: Add libc_hidden_def.
3687         * misc/lsearch.c: Likewise.
3688
3689         * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
3690         endttyent.
3691         * misc/getttyent.c: Add libc_hidden_def.
3692
3693         * include/mcheck.h: Use libc_hidden_proto for mcheck.
3694         * malloc/mcheck.c: Add libc_hidden_def.
3695
3696         * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
3697         * include/argz.h: Use libc_hidden_proto for argz_delete.
3698         * string/argz-delete.c: Add libc_hidden_def.
3699         * string/envz.c: Likewise.  Use <envz.h>, not "envz.h".
3700
3701         * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
3702         HIDDEN_JUMPTARGET for _exit.
3703         * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
3704         * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
3705         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
3706         * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
3707
3708         * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
3709         [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
3710         [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
3711         * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
3712
3713         * include/stdlib.h: Use libc_hidden_proto for abort,
3714         __strtof_internal, __strtod_internal, __strtold_internal,
3715         __strtol_internal, __strtoll_internal, __strtoul_internal,
3716         __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
3717         __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
3718         __strtoul_l_internal, __strtoull_l_internal.
3719         * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
3720         __wcstod_internal, __wcstold_internal, __wcstol_internal,
3721         __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
3722         ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
3723         ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
3724         __wcsncasecmp_l.
3725         * sysdeps/generic/abort.c: Add libc_hidden_def.
3726         * stdlib/strtod.c: Likewise.
3727         * sysdeps/generic/strtol.c: Likewise.
3728         * sysdeps/wordsize-64/strtol.c: Likewise.
3729         * sysdeps/wordsize-64/wcstol.c: Likewise.
3730         * sysdeps/wordsize-64/wcstol_l.c: Likewise.
3731
3732         * include/stdlib.h: Use libc_hidden_proto for qsort.
3733         * stdlib/msort.c: Add libc_hidden_def.
3734
3735         * include/utime.h: Use libc_hidden_proto for utime.
3736         * sysdeps/generic/utime.c: Add libc_hidden_def.
3737         * sysdeps/unix/utime.c: Likewise.
3738
3739         * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
3740         * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
3741         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
3742         * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
3743         * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
3744
3745         * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
3746         sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
3747         and __libc_current_sigrtmax.
3748         * signal/sigismem.c: Add libc_hidden_def.
3749         * signal/sigfillset.c: Likewise.
3750         * signal/sigempty.c: Likewise.
3751         * sysdeps/generic/sigpause.c (__sigpause): Likewise.
3752         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
3753         * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
3754         * sysdeps/posix/raise.c: Likewise.
3755         * sysdeps/generic/raise.c: Likewise.
3756
3757 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
3758
3759         * include/string.h: Use libc_hidden_proto for __stpcpy.
3760         * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
3761         * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
3762         * sysdeps/generic/stpcpy.c: Likewise.
3763         * sysdeps/i386/stpcpy.S: Likewise.
3764         * sysdeps/i386/i586/stpcpy.S: Likewise.
3765         * sysdeps/powerpc/stpcpy.S: Likewise.
3766         * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
3767         * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
3768
3769         * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
3770         __strncasecmp_l, __strdup, __strndup, __strerror_r.
3771         * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
3772         libc_hidden_def.
3773         * string/strdup.c (__strdup): Likewise.
3774         * string/strndup.c (__strndup): Likewise.
3775         * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
3776         * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
3777
3778 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
3779
3780         * include/libio.h: New file.
3781         * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
3782         * libio/iolibio.h: #include <libio.h>, not "libio.h".
3783         * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
3784         * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
3785         * sysdeps/unix/common/syscalls.list: Likewise.
3786         * sysdeps/unix/inet/syscalls.list: Likewise.
3787         * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
3788         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
3789         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3790         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3791         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
3792         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
3793         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
3794         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3795         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3796         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
3797         * sysdeps/unix/syscalls.list: Likewise.
3798
3799 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
3800             Ulrich Drepper  <drepper@redhat.com>
3801
3802         * malloc/malloc.c (public_cALLOc): Only divide if at least one of
3803         the arguments is big enough to cause an overflow.
3804
3805 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
3806
3807         * assert/assert.c: Use hidden_def not INTDEF.
3808
3809 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
3810
3811         * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
3812         not defined.
3813
3814 2002-08-03  Roland McGrath  <roland@redhat.com>
3815
3816         * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
3817         * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
3818         verr, verrx.
3819         * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
3820         * misc/syslog.c: Add libc_hidden_def.
3821         * misc/err.c: Likewise.
3822         * stdlib/exit.c: Likewise.
3823         * stdlib/bsearch.c: Likewise.
3824         * sysdeps/generic/getenv.c: Likewise.
3825
3826         * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
3827
3828         * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
3829         libc_hidden_weak for every system call symbol defined.
3830
3831         * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
3832         timelocal, localtime, strftime.
3833         * time/asctime.c: Add libc_hidden_def.
3834         * time/mktime.c: Likewise.
3835         * time/localtime.c: Likewise.
3836         * time/strftime.c: Likewise.
3837         * time/strptime.c: Likewise.
3838         * sysdeps/generic/time.c: Likewise.
3839         * sysdeps/unix/time.c: Likewise.
3840         * sysdeps/unix/sysv/i386/time.S: Likewise.
3841         * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
3842
3843         * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
3844         inet_makeaddr, inet_netof, inet_addr, __inet_addr.
3845         * resolv/inet_ntop.c: Likewise.
3846         * resolv/inet_pton.c: Likewise.
3847         * inet/inet_mkadr.c: Add libc_hidden_def.
3848         * inet/inet_netof.c: Likewise.
3849         * resolv/inet_addr.c: Likewise.
3850
3851         * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
3852         clauses from conditionals for now.  Will have to be fixed later
3853         for older compilers.
3854
3855         * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
3856
3857 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
3858
3859         * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
3860         broken alias attribute handling.
3861         * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
3862
3863 2002-08-02  Roland McGrath  <roland@frob.com>
3864
3865         * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
3866         since it sets the variables we use in a -D switch.
3867
3868 2002-08-02  Roland McGrath  <roland@redhat.com>
3869
3870         * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
3871         On 32-bit platforms they are the same; on 64-bit platforms ssize_t
3872         matches long int, not int.
3873
3874         * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
3875         * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
3876         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
3877         * wctype/wctrans.c (wctrans): Likewise.
3878         * wctype/wctype.c (__wctype): Likewise.
3879         * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
3880
3881 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
3882
3883         * assert/assert.c (__assert_fail): Fix typo in comment.
3884
3885         * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
3886         * sunrpc/rpc_thread.c: Define it without static.
3887         * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
3888
3889 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
3890
3891         * assert/assert.c (__assert_fail): Remove undef.
3892         Replace INTDEF with libc_hidden_def.
3893         * assert/__assert.c (__assert): Remove INTUSE.
3894         * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
3895         libc_hidden_weak.
3896         * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
3897         hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
3898         libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
3899         rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
3900         libm_hiden_ver): Define.
3901         * include/assert.h (__assert_fail_internal): Remove.
3902         (__assert_fail): Add prototype.  Add hidden_proto.
3903         * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
3904         libc_hidden_proto.
3905         * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
3906         (__mbrtowc, __mbrlen): Use libc_hidden_proto.  Remove macros.
3907         * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
3908         Add libc_hidden_proto.
3909         * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
3910         __fcntl): Add libc_hidden_proto.  Remove macros.
3911         (__open_internal, __fcntl_internal): Remove.
3912         * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
3913         * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
3914         * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
3915         libc_hiden_proto.
3916         * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
3917         libc_hidden_def.
3918         * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
3919         Add libc_hidden_def.
3920         * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
3921         * sysdeps/generic/open.c (__open): Remove undef.
3922         Add libc_hidden_def.  Remove INTDEF.
3923         * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
3924         Add libc_hidden_def.
3925         * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
3926         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
3927         * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
3928         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
3929         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
3930         (__libc_fcntl): Add libc_hidden_def.
3931         * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
3932         (__open): Remove INTDEF2.  Add libc_hidden_weak.
3933         (__libc_open): Add libc_hidden_def.
3934         * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
3935         * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
3936         * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
3937         Add libc_hidden_def.
3938         * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
3939         Add libc_hidden_def.
3940         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
3941         undef.
3942         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
3943         (__libc_fcntl): Add libc_hidden_def.
3944         * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
3945         __getpgid_internal, __chown_internal): Remove.
3946         (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
3947         __GI___sched_setscheduler, __GI___select, __GI___setpgid,
3948         __GI___chown): Add.
3949         * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
3950         __getpid_internal, __open_internal, __write_internal): Remove.
3951         (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
3952         __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
3953         __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
3954         __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
3955         * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
3956         Replace INTDEF with libc_hidden_def.
3957         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
3958         * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
3959         * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
3960         * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
3961         * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
3962         Add libc_hidden_proto.
3963         * include/sys/poll.h (__poll): Add libc_hidden_proto.
3964         * include/sys/select.h (__select): Likewise.
3965         * include/sys/socket.h (__send): Likewise.
3966         * include/sys/statfs.h (__statfs): Likewise.
3967         * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
3968         __getpid, __getpgid, __setpgid, __close, __read, __write,
3969         __getpagesize, __sbrk): Likewise.
3970         (__chown_internal, __dup2_internal, __getpid_internal,
3971         __getpgid_internal, __close_internal, __write_internal,
3972         __getpagesize_internal): Remove.
3973         (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
3974         Remove macros.
3975         * include/printf.h (__printf_fp): Add libc_hidden_proto.
3976         * include/sched.h (__sched_setscheduler): Likewise.
3977         * include/resolv.h (__res_ninit, __res_randomid): Likewise.
3978         * include/stdlib.h (__secure_getenv): Likewise.
3979         * include/signal.h (__sigaction, __sigsuspend): Likewise.
3980         * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
3981         * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
3982         * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
3983         * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
3984         * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
3985         * inet/getproto_r.c (NSS_attribute_hidden): Remove.
3986         * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
3987         * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
3988         * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
3989         * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
3990         * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
3991         * inet/getservent_r.c (NSS_attribute_hidden): Remove.
3992         * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
3993         * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
3994         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
3995         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
3996         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
3997         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
3998         * libio/genops.c (__overflow): Add libc_hidden_def.
3999         * libio/iovdprintf.c: Remove libio.h include.
4000         * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
4001         libc_hidden_weak): Define to nothing if not defined.
4002         (__overflow, __woverflow): Add libc_hidden_proto.
4003         * libio/wgenops.c (__woverflow): Add libc_hidden_def.
4004         * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
4005         (DB_LOOKUP_FCT): Add libc_hidden_proto.
4006         * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
4007         (DB_LOOKUP_FCT): Add libc_hidden_proto.
4008         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
4009         and libc_hidden_def.
4010         * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
4011         * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
4012         (__getpgid): Add libc_hidden_proto.
4013         (__bsd_getpgrp): Remove INTUSE.
4014         * resolv/res_init.c (__res_ninit, __res_randomid): Add
4015         libc_hidden_def.
4016         * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
4017         * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
4018         * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
4019         * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
4020         * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
4021         * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
4022         __rpc_thread_createerr): Add libc_hidden_def.
4023         * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
4024         libc_hidden_def.
4025         * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
4026         * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
4027         * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
4028         * sysdeps/generic/chown.c (__chown): Likewise.
4029         * sysdeps/generic/close.c (__close): Likewise.
4030         * sysdeps/generic/dup2.c (__dup2): Likewise.
4031         * sysdeps/generic/pipe.c (__pipe): Likewise.
4032         * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
4033         * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
4034         * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
4035         * sysdeps/generic/read.c (__libc_read): Likewise.
4036         (__read): Add libc_hidden_weak.
4037         * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
4038         * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
4039         * sysdeps/generic/select.c (__select): Likewise.
4040         * sysdeps/generic/send.c (__send): Likewise.
4041         * sysdeps/generic/setpgid.c (__setpgid): Likewise.
4042         * sysdeps/generic/sigaction.c (__sigaction): Likewise.
4043         * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
4044         * sysdeps/generic/statfs.c (__statfs): Likewise.
4045         * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
4046         * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
4047         * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
4048         Remove undef and INTDEF.
4049         * sysdeps/generic/getpgid.c (__getpgid): Likewise.
4050         * sysdeps/generic/getpid.c (__getpid): Likewise.
4051         * sysdeps/generic/write.c (__libc_write): Likewise.
4052         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
4053         * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
4054         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
4055         * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
4056         * sysdeps/mach/hurd/chown.c (__chown): Likewise.  Remove INTDEF.
4057         * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
4058         Remove undef and INTDEF.
4059         * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
4060         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
4061         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
4062         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
4063         * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
4064         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
4065         * sysdeps/mach/hurd/pipe.c: Include unistd.h.
4066         (__pipe): Add libc_hidden_def.
4067         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
4068         libc_hidden_weak.
4069         * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
4070         * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
4071         * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
4072         (__read): Add libc_hidden_weak.
4073         * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
4074         (__libc_pwrite64): Add libc_hidden_def.
4075         * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
4076         * sysdeps/mach/hurd/select.c (__select): Likewise.
4077         * sysdeps/mach/hurd/send.c (__send): Likewise.
4078         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
4079         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
4080         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
4081         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
4082         * sysdeps/posix/dup2.c: Likewise.
4083         Remove undef and INTDEF.
4084         * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
4085         * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
4086         (__pwrite64): Add libc_hidden_weak.
4087         * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
4088         * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
4089         * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
4090         * sysdeps/standalone/close.c (__close): Likewise.
4091         * sysdeps/standalone/write.c (__libc_write): Likewise.
4092         (__write): Add libc_hidden_weak.
4093         * sysdeps/standalone/read.c (__read): Likewise.
4094         (__libc_read): Add libc_hidden_def.
4095         * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
4096         * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
4097         * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
4098         * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
4099         * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
4100         * sysdeps/unix/bsd/poll.c (__poll): Likewise.
4101         * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
4102         * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
4103         * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
4104         __GI___sigaction): Add.
4105         * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
4106         * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
4107         * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
4108         * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
4109         * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
4110         __GI___setpgid): Add.
4111         * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
4112         Remove undef and INTDEF.
4113         * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
4114         * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
4115         * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
4116         * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
4117         * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
4118         * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
4119         * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
4120         * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
4121         * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
4122         * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
4123         * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
4124         * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
4125         * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
4126         * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
4127         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
4128         __GI___statfs, __GI___send): Add.
4129         * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
4130         libc_hidden_ver resp. libc_hidden_def.
4131         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
4132         libc_hidden_def.
4133         * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
4134         Likewise.  Remove undef and INTDEF.
4135         * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
4136         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
4137         __GI___statfs, __GI___send): Add.
4138         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
4139         libc_hidden_def.
4140         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
4141         Likewise.
4142         * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
4143         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
4144         libc_hidden_ver resp. libc_hidden_def.
4145         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
4146         __GI___send): Add.
4147         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
4148         Add libc_hidden_weak.
4149         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
4150         Add libc_hidden_def.
4151         * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
4152         * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
4153         libc_hidden_weak.
4154         * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
4155         resp. libc_hidden_def.
4156         * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
4157         libc_hidden_weak.
4158         * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise.  Remove
4159         INTDEF.
4160         * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
4161         Likewise.  Remove undef.
4162         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
4163         libc_hidden_weak.
4164         * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
4165         * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
4166         libc_hidden_weak.
4167         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
4168         libc_hidden_def.
4169         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
4170         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
4171         Likewise.  Remove undef and INTDEF.
4172         * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
4173         libc_hidden_def.
4174         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
4175         libc_hidden_weak.
4176         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
4177         libc_hidden_def.
4178         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
4179         (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
4180         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
4181         libc_hidden_weak.
4182         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
4183         Add libc_hidden_def.
4184         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
4185         __GI___statfs): Add.
4186         * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
4187         libc_hidden_weak.
4188         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
4189         * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
4190         Remove undef and INTDEF.
4191         * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
4192         * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
4193         libc_hidden_def.
4194         * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
4195         * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
4196         libc_hidden_weak.
4197         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
4198         libc_hidden_def.
4199         * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
4200         * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
4201         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
4202         Add.
4203         * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
4204         libc_hidden_def.  Remove undef and INTDEF.
4205         * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
4206         * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
4207         libc_hidden_def.
4208         * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
4209         * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
4210         * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
4211         * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
4212         Remove undef and INTDEF.
4213         * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
4214         broken visibility attribute handling.
4215         * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
4216
4217 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
4218
4219         * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
4220         Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
4221
4222         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
4223         previous patch.
4224
4225 2002-06-29  Todd Fries  <todd@openbsd.org>
4226
4227         * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
4228
4229 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4230
4231         * include/errno.h: Don't include tls.h if _ISOMAC is defined.
4232
4233 2002-07-30  Roland McGrath  <roland@redhat.com>
4234
4235         * resolv/resolv.h (_res): Define macro unconditionally.
4236         [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
4237         * include/resolv.h: ... here.
4238         [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
4239         as a __thread variable.
4240         * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
4241         a __thread variable instead of a global.
4242         * resolv/res_data.c [_LIBC]: Don't #undef _res.
4243
4244         * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
4245         time we test it.
4246
4247         * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
4248
4249         * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
4250         decls of memset and memcpy.
4251
4252         * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
4253         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
4254
4255         * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
4256
4257         * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
4258         (__libc_tsd_define): Define using __thread.
4259
4260         * sunrpc/rpc_thread.c: Use __libc_tsd_define.
4261         (__rpc_thread_variables): Use __libc_tsd_get.
4262         (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
4263         __rpc_thread_variables, which might allocate what we're about to free.
4264
4265         * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
4266         thread-local variable.
4267         * resolv/netdb.h (h_errno): Define macro unconditionally.
4268         [_LIBC] (__set_h_errno): Macro moved to ...
4269         * include/netdb.h: ... here.
4270         [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
4271         [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
4272         [! _LIBC_REENTRANT]: #undef h_errno here.
4273
4274         * include/errno.h: Protect from multiple inclusion.
4275
4276         * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
4277         before defining them, since Linux's <linux/posix_types.h> might have
4278         defined them.
4279
4280 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4281
4282         * malloc/malloc.c (public_cALLOc): Check for overflow on
4283         multiplication.
4284         * sunrpc/xdr_array.c (xdr_array): Likewise.
4285         * sunrpc/rpc/types.h (mem_free): Add comment.
4286         Patch by Solar Designer <solar@openwall.com>.
4287
4288 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4289
4290         * sysdeps/unix/sysv/linux/kernel-features.h
4291         (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
4292
4293 2002-08-01  Roland McGrath  <roland@redhat.com>
4294
4295         * libio/fileops.c (_IO_file_sync_mmap): New function.
4296         (_IO_file_jumps_mmap): Use it.
4297         (_IO_file_underflow_mmap): Rewritten.  If after EOF or fflush,
4298         repeat the stat check and resize the mapped buffer as necessary.
4299
4300 2002-07-31  Roland McGrath  <roland@redhat.com>
4301
4302         * libio/fileops.c (decide_maybe_mmap): New static function.
4303         Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
4304         mmap the file contents.  Then switch the jump tables to the mmap
4305         tables if it worked, or the vanilla file tables if not.
4306         (_IO_file_underflow_maybe_mmap): New function.
4307         (_IO_file_seekoff_maybe_mmap): New function.
4308         (_IO_file_xsgetn_maybe_mmap): New function.
4309         (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
4310         * libio/libioP.h: Declare those.
4311         * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
4312         (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
4313         * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
4314         If the stream is read-only, set its jump tables to those new ones.
4315         * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
4316         jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
4317         We need the tables set before _IO_file_attach.
4318
4319         * libio/tst-mmap-eofsync.c: New file.
4320         * libio/tst-mmap-fflushsync.c: New file.
4321         * libio/bug-mmap-fflush.c: New file.
4322         * libio/tst-mmap2-eofsync.c: New file.
4323         * libio/Makefile (tests): Add them.
4324
4325         * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
4326         _IO_file_underflow_mmap fails, it already set the appropriate bit.
4327
4328 2002-07-31  Jeff Bailey  <jbailey@gnu.org>
4329
4330         * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
4331         Declarations moved to <bits/sys_errlist.h>.  Include that file.
4332         * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
4333         * sysdeps/generic/bits/sys_errlist.h: New file.  This does *not*
4334         declare sys_errlist and sys_nerr.
4335         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file.  Does
4336         provide declarations.
4337
4338 2002-07-31  Roland McGrath  <roland@redhat.com>
4339
4340         * elf/rtld.c (dl_main): Fix typo in error message.
4341
4342 2002-07-31  Roland McGrath  <roland@frob.com>
4343
4344         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
4345         __xstat -> __xstat64, __lseek -> __libc_lseek64.  Completes 2002-06-09
4346         sysdeps/mach/hurd/dl-sysdep.c change.
4347
4348 2002-07-28  Ulrich Drepper  <drepper@redhat.com>
4349
4350         * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
4351         -r`/build/include for kernel headers.
4352
4353         * po/fi.po: New file.
4354
4355 2002-07-15  Alexandre Oliva  <aoliva@redhat.com>
4356
4357         * configure.in (static_nss): Set to `yes' if --disable-shared.
4358
4359 2002-07-23  Bruno Haible  <bruno@clisp.org>
4360
4361         * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
4362         is set.
4363
4364 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4365
4366         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
4367         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
4368         arguments.
4369
4370 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4371
4372         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
4373         alias.
4374
4375 2002-07-21  Bruno Haible  <bruno@clisp.org>
4376
4377         * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
4378         * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
4379         sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
4380         trans_sysdep_tab_offset.
4381         (struct sysdep_segment): New type.
4382         (struct sysdep_string): New type.
4383         (SEGMENTS_END): New macro.
4384         * intl/gettextP.h (struct sysdep_string_desc): New type.
4385         (struct loaded_domain): New fields malloced, n_sysdep_strings,
4386         orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
4387         orig_tab, trans_tab, hash_tab to const pointers because they point
4388         into read-only memory.
4389         * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
4390         (PRI*): Define fallback values.
4391         (get_sysdep_segment_value): New function.
4392         (_nl_load_domain): Distinguish major and minor revision parts. Add
4393         support for minor revision 1 with system dependent strings.
4394         (_nl_unload_domain): Also free the 'malloced' field.
4395         * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
4396         now done in loadmsgcat.c. Add support for system dependent strings.
4397
4398 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
4399
4400         * posix/bug-regex7.c: New file.
4401         * posix/bug-regex8.c: New file.
4402         * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
4403
4404 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
4405
4406         * posix/bug-regex4.c (main): Fix typos.
4407         * posix/bug-regex6.c (main): Likewise.
4408
4409 2002-07-27  Ulrich Drepper  <drepper@redhat.com>
4410
4411         * posix/bug-regex6.c (main): Fix warnings.
4412
4413         * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
4414
4415         * iconv/iconv_prog.c (main): Improve error message for the cases
4416         where -t and/or -f parameter are missing.
4417
4418 2002-07-10  Stepan Kasal  <kasal@math.cas.cz>
4419
4420         * posix/regexec.c (re_match): Reorganize to remove duplicate code.
4421         (re_search): Likewise.
4422         (re_match_2): Likewise.
4423         (re_search_2): Likewise.
4424         (re_search_stub): New function.
4425         (re_search_2_stub): New function.
4426         * regcomp.c (re_compile_pattern): Typo in a comment fixed.
4427
4428 2002-07-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
4429
4430         * posix/regex_internal.h: Add new member STOP to struct re_string_t.
4431         (re_string_eoi): Use STOP instead of LEN.
4432         * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
4433         (re_string_construct): Likewise.
4434         (re_string_reconstruct): Adjust pstr->stop like pstr->len.
4435         * posix/regexec.c (re_search_internal): Add a new argument STOP
4436         so that it can handle the argument STOP of re_search_2 and re_match_2
4437         correctly.
4438         (regexec): Adapt to new I/F of re_search_internal.
4439         (re_search_stub): Likewise.
4440
4441 2002-07-25  Ulrich Drepper  <drepper@redhat.com>
4442
4443         * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
4444
4445         * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
4446
4447         * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
4448         * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
4449         of __divdi3.
4450
4451         * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
4452         * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
4453         * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
4454         alias for adjtimex syscall.
4455
4456         * elf/dl-minimal.c: Define __assert_fail_internal.
4457         * assert/assert.c: Likewise.
4458         * include/assert.h: Define __assert_file macro if !SHARED and not
4459         NOT_IN_libc.
4460
4461         * iconv/Makefile: Define NOT_IN_libc for objects in standalone
4462         programs.
4463         * locale/Makefile: Likewise.
4464         * nscd/Makefile: Likewise.
4465         * catgets/Makefile: Likewise.
4466
4467 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
4468
4469         * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
4470         compute current position.
4471
4472         * stdio-common/tst-fseek.c (main): Improve error messages.
4473
4474         * libio/tst-freopen.c (main): Remove unused variable.
4475
4476         * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
4477         succesful seek call.  Simplify error checking.
4478
4479 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4480
4481         * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
4482         * sysdeps/ia64/fpu/libm_support.h: Likewise.
4483
4484 2002-07-19  Roland McGrath  <roland@frob.com>
4485
4486         * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
4487         __libc_enable_secure is set.
4488
4489 2002-07-24  Roland McGrath  <roland@frob.com>
4490
4491         Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
4492         This implementation supports only IPv4.
4493         * inet/ifaddrs.h: New file.
4494         * sysdeps/generic/ifaddrs.c: New file.
4495         * sysdeps/gnu/ifaddrs.c: New file.
4496         * inet/test-ifaddrs.c: New file.
4497         * inet/Makefile (routines): Add ifaddrs.
4498         (headers): Add ifaddrs.h here.
4499         (tests): Add test-ifaddrs.
4500         * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
4501
4502         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
4503         socket call to get an AF_INET socket, instead of using __opensock.
4504         The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
4505
4506         * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
4507         if not -1 use it instead of calling __opensock.
4508         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
4509         * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
4510         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
4511
4512         * sysdeps/mach/hurd/ifreq.h: New file.
4513         * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
4514         * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
4515         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
4516
4517         * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
4518         which gets moved around.  Calculate size of mmap'd buffer instead.
4519
4520 2002-07-24  Philip Blundell  <philb@gnu.org>
4521
4522         * sysdeps/unix/arm/brk.S: Improve schedule.
4523         * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
4524         efficient instruction.
4525         (__socket): Optimize return sequence.
4526
4527 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
4528
4529         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
4530         sockets on old kernels.
4531
4532 2002-07-22  Philip Blundell  <philb@gnu.org>
4533
4534         * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
4535         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
4536         alias.
4537
4538 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
4539
4540         * locale/hashval.h: Make more self-contained by defining LONG_BITS.
4541         * locale/programs/simple-hash.c: Remove LONG_BITS definition.
4542
4543         * locale/programs/locarchive.c (add_locale_to_archive): Correct
4544         test to detect duplicate locales.
4545
4546         * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
4547         position would be before beginning of file.
4548         (_IO_file_seekoff_mmap): Likewise.
4549         * libio/Makefile (tests): Add bug-fseek.
4550         * libio/bug-fseek.c: New file.
4551
4552         * intl/explodename.c: Remove support for CEN-style locale variables.
4553         It was never used and shouldn't be since it's not portable.
4554         * intl/finddomain.c: Likewise.
4555         * intl/l10nflist.c: Likewise.
4556         * intl/loadinfo.h: Likewise.
4557         * locale/findlocale.c: Likewise.
4558
4559 2002-07-24  Roland McGrath  <roland@frob.com>
4560
4561         * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
4562         position, calculate it to take into account an active pushback buffer.
4563
4564         * libio/Makefile (tests): Add bug-ungetc.
4565         * libio/bug-ungetc.c: New file.
4566
4567 2002-07-23  Ulrich Drepper  <drepper@redhat.com>
4568
4569         * sysdeps/generic/libc-tls.c: New file.
4570         * csu/Makefile (routines): Add libc-tls.
4571         (static-only-routines): Add libc-tls.
4572         * elf/dl-support.c (_dl_phdr): New variable.
4573         (_dl_phnum): New variable.
4574         (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
4575         * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
4576         for !SHARED.  First look through auxiliary vector.  If TLS always
4577         call __pthread_initialize_minimal.
4578
4579         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
4580         in mmap call is never zero.
4581
4582 2002-07-23  Andreas Jaeger  <aj@suse.de>
4583
4584         * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
4585         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
4586
4587 2002-07-22  Ulrich Drepper  <drepper@redhat.com>
4588
4589         * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
4590         creation and removal of the temp file.
4591
4592         * libio/bug-rewind.c: Use test skeleton.  Use create_temp_file for
4593         file creation.
4594         * test-skeleton.c (create_temp_file): New function.
4595
4596 2002-07-22  Andreas Jaeger  <aj@suse.de>
4597
4598         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
4599         local label.
4600
4601 2002-07-21  Roland McGrath  <roland@frob.com>
4602
4603         * wcsmbs/Makefile (strtox-CFLAGS): New variable,
4604         put -I../include before -I../stdlib so we get the right errno.h et al.
4605         (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
4606         (CFLAGS-wcstof.c): Likewise.
4607         (CFLAGS-wcstold.c): Likewise.
4608         (CFLAGS-wcstod_l.c): Likewise.
4609         (CFLAGS-wcstof_l.c): Likewise.
4610         (CFLAGS-wcstold_l.c): Likewise.
4611
4612 2002-07-19  Roland McGrath  <roland@frob.com>
4613
4614         * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
4615
4616 2002-07-20  Ulrich Drepper  <drepper@redhat.com>
4617
4618         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
4619         __ASSUME_AT_XID is defined.
4620         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
4621         for 2.4.1 and up.
4622         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
4623         of AT_UID, AT_EUID, AT_GID, and AT_EGID.
4624
4625         * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
4626         (CFLAGS-wcstof.c): Likewise.
4627         (CFLAGS-wcstold.c): Likewise.
4628         (CFLAGS-wcstod_l.c): Likewise.
4629         (CFLAGS-wcstof_l.c): Likewise.
4630         (CFLAGS-wcstold_l.c): Likewise.
4631
4632 2002-07-18  Jakub Jelinek  <jakub@redhat.com>
4633
4634         * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
4635         __priority_which_t): Always typedef to int for C++.
4636
4637 2002-07-19  Ulrich Drepper  <drepper@redhat.com>
4638
4639         * configure.in: Add test for __thread support in compiler.
4640         * config.h.in: Add HAVE___THREAD.
4641         * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
4642         * include/sys/errno.h: Moved to...
4643         * stdlib/sys/errno.h: ...here.  New file.
4644         * stdlib/errno.h: New file.  Moved from...
4645         * include/errno.h: ...here.  Changed into an internal header defining
4646         libc-local things like __set_errno.
4647         * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
4648         bits/errno.h.
4649         * elf/dl-minimal.c: Include <tls.h>.  Define errno as thread-local
4650         variable if USE_TLS && HAVE___THREAD.  Don't define __errno_location
4651         either.
4652         * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
4653         from...
4654         (_dl_start_final): ...here.  Add code to initialize tls elements from
4655         bootstrap_map.
4656         * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
4657         if USE_TLS && HAVE___THREAD.
4658         * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
4659         * sysdeps/mach/hurd/bits/errno.h: Likewise.
4660         * sysdeps/standalone/arm/bits/errno.h: Likewise.
4661         * sysdeps/standalone/bits/errno.h: Likewise.
4662         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
4663         * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
4664         * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
4665         * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
4666         * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
4667         * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
4668         * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
4669         * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
4670         use GL(dl_rtld_map), use map parameter.
4671         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
4672         * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
4673         USE_TLS && HAVE___THREAD.
4674         * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
4675         definitions.  If USE_TLS && HAVE___THREAD store errooor value using
4676         TLS code sequence.
4677         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
4678
4679         * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
4680         * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
4681         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
4682         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
4683         * sysdeps/unix/sysv/linux/readv.c: Likewise.
4684         * sysdeps/unix/sysv/linux/writev.c: Likewise.
4685
4686 2002-07-17  Ulrich Drepper  <drepper@redhat.com>
4687
4688         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
4689         MS_INVALIDATE values.
4690
4691 2002-07-17  Andreas Schwab  <schwab@suse.de>
4692             Ulrich Drepper  <drepper@redhat.com>
4693
4694         * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
4695         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4696         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4697         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4698
4699 2002-07-01  H.J. Lu  <hjl@gnu.org>
4700
4701         * elf/circleload1.c (load_dso): Call "circlemod1" and check
4702         return value.
4703
4704         * elf/circlemod1.c (circlemod1): Return int.
4705         * elf/circlemod2.c (circlemod2): Likewise.
4706         * elf/circlemod2a.c (circlemod2): Likewise.
4707         * elf/circlemod3.c (circlemod3): Likewise.
4708         (circlemod3a): A new function.
4709
4710 2002-07-16  Ulrich Drepper  <drepper@redhat.com>
4711
4712         * catgets/tst-catgets.c (main): Don't expect results for
4713         untranslated messages.
4714
4715         * glibcbug.in: Fix little typo.  Remove STDIO.
4716
4717         * config.h.in: Fail if __FAST_MATH__ is defined.
4718         * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
4719         (CPPFLAGS-test-idouble.c): Likewise.
4720         (CPPFLAGS-test-ildouble.c): Likewise.
4721
4722 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
4723
4724         * intl/tst-gettext.sh: Pass -f option to msgfmt.
4725         * intl/tst-gettext.c: Correctly handle untranslated messages in
4726         positive tests.
4727
4728         * po/de.po: Update from translation team.
4729
4730 2002-07-02  H.J. Lu  <hjl@gnu.org>
4731
4732         * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>.  Always
4733         use ll/sc.
4734         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
4735
4736         * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
4737         to 2.4.0 for mips.
4738
4739 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
4740
4741         * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
4742         TLS fail if USE_TLS is not defined.
4743
4744         * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
4745         and adjust state for seek position.  [PR libc/4070]
4746         * libio/Makefile (tests): Add bug-rewind.
4747         * libio/bug-rewind.c: New file.
4748
4749 2002-07-12  Philip Blundell  <philb@gnu.org>
4750
4751         * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
4752         (__backtrace): Use it.
4753         * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define.  [PR libc/2632]
4754
4755 2002-07-12  Philip Blundell  <philb@gnu.org>
4756
4757         * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
4758         R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
4759         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
4760         (elf_machine_rela): Remove unused variable.
4761
4762         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
4763         (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
4764         define.
4765
4766 2002-07-12  Ulrich Drepper  <drepper@redhat.com>
4767
4768         * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
4769
4770 2002-07-14  Andreas Jaeger  <aj@suse.de>
4771
4772         * sysdeps/x86_64/bits/link.h: Add biarch support.
4773
4774 2002-07-13  Andreas Jaeger  <aj@suse.de>
4775
4776         * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
4777         Use correct indices.
4778         Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
4779
4780 2002-07-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4781
4782         * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
4783         * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
4784         * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
4785         * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
4786         * sysdeps/s390/s390-32/bits/link.h: Remove.
4787         * sysdeps/s390/s390-64/bits/link.h: Remove.
4788         * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
4789         * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
4790         * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
4791         * sysdeps/s390/bits/wordsize.h: New file.
4792         * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
4793         elfclass.h.
4794         * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
4795         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
4796         * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
4797         * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
4798         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
4799         * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
4800         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
4801         * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
4802         * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
4803         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
4804         * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
4805         * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
4806         resource.h.
4807         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
4808         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
4809         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
4810         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
4811         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
4812         * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
4813         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
4814         sigaction.h.
4815         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
4816         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
4817         siginfo.h.
4818         * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
4819         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
4820         * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
4821         socket.h.
4822         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
4823         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
4824         * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
4825         * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
4826         * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
4827         * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
4828         * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
4829         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
4830         procfs.h.
4831         * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
4832         * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
4833         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
4834         ucontext.h.
4835         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
4836         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
4837
4838 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
4839
4840         * Versions.def (libc): Add GLIBC_2.3.
4841         * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
4842         * stdlib/canonicalize.c: Add compatibility version for realpath
4843         and make new code available in GLIBC_2.3.
4844
4845 2002-07-06  Bruno Haible  <bruno@clisp.org>
4846
4847         * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
4848
4849 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
4850
4851         * resolv/res_hconf.c (_res_hconf_init): Move code into new
4852         function do_init.  Use __libc_once.
4853         (do_init): New function.
4854
4855         * iconvdata/iso8859-11.h: Removed.
4856         * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
4857         (distribute): Remove iso8859-11.h.
4858         * iconvdata/tst-tables.sh: Add ISO-8859-11.
4859
4860         * stdio-common/vfscanf.c (inchar): Restore errno from previous
4861         underflow operation if c == (W)EOF.
4862
4863 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
4864
4865         * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
4866         non-zero, adjust exponent.
4867         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
4868         Remove NO_LONG_DOUBLE aliases.
4869         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
4870         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
4871         (__log1pl): Raise divide by zero and invalid exceptions when needed.
4872         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
4873         1**y and -1**+-Inf.
4874         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
4875         Fix BITS_PER_MP_LIMB 32 extraction.
4876         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
4877         exceptions for qNaNs.
4878         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
4879         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
4880         Raise exceptions when needed.  Don't recurse unnecessarily.
4881         Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
4882         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
4883         exceptions for qNaNs.
4884         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
4885         to fix *quo return value sign.
4886         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
4887         case -Inf argument.
4888         * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
4889
4890 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
4891
4892         * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
4893         * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
4894         -DNDEBUG.
4895
4896 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
4897
4898         * malloc/hooks.c (realloc_check): If mremap succeeds actually use
4899         the result.
4900
4901         * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
4902         output parameter.  Reported by Denis Zaitsev <zzz@cd-club.ru>.
4903
4904         * Versions.def (libthread_db): Add GLIBC_2.3.
4905
4906 2002-07-09  Jakub Jelinek  <jakub@redhat.com>
4907
4908         * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
4909         new stream if possible.
4910         * libio/freopen64.c (freopen64): Likewise.
4911         * libio/Makefile (tests): Add tst-freopen.
4912         * libio/tst-freopen.c: New file.
4913
4914 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
4915
4916         * libio/stdio.h (obstack_printf): Add format attribute.
4917         (obstack_vprintf): Likewise.
4918
4919 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
4920
4921         * posix/regex_internal.h (re_token_t): Shrink the structure to 8
4922         resp. 16 bytes on 32-bit resp. 64-bit platforms.
4923         (re_charset_t, re_string_t): Reorder structure members for 64-bit
4924         architectures.
4925
4926 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
4927
4928         * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
4929         (init_dfa): ...here.
4930
4931 2002-07-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
4932
4933         * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
4934         OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
4935         nodes in parse trees.
4936         (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
4937         and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
4938         (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
4939         nodes which can epsilon transit.
4940         * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
4941         to IS_EPSILON_NODE macro.
4942         * posix/regexec.c (update_regs): New function to update registers
4943         by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
4944         (proceed_next_node): Use the entities of the nodes to determine
4945         whether the node can transit to.
4946         (set_regs): Use update_regs function to update registers.
4947
4948 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
4949
4950         * posix/bug-regex4.c (main): Remove duplicate setlocale.
4951         * posix/bug-regex6.c: New file.
4952         * posix/Makefile (tests): Add bug-regex6.
4953         (bug-regex6-ENV): Set LOCPATH.
4954
4955 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
4956
4957         * Versions.def [libpthread]: Add GLIBC_2.2.6.
4958         * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
4959
4960 2002-07-06  Bruno Haible  <bruno@clisp.org>
4961
4962         * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
4963
4964 2002-07-06  Bruno Haible  <bruno@clisp.org>
4965
4966         * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
4967         declarations.
4968
4969         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
4970
4971         * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
4972
4973         * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
4974         not _UTSNAME_H.
4975         * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
4976
4977         * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
4978         * sysdeps/generic/bits/ustat.h: Likewise.
4979
4980         * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
4981
4982 2002-07-08  Andreas Jaeger  <aj@suse.de>
4983
4984         * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
4985
4986 2002-07-08  Andreas Jaeger  <aj@suse.de>
4987
4988         * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
4989
4990 2002-07-06  Andreas Jaeger  <aj@suse.de>
4991
4992         * sysdeps/x86_64/fpu/bits/mathinline.h: New file.
4993         * sysdeps/x86_64/fpu/s_copysign.S: New file.
4994         * sysdeps/x86_64/fpu/s_copysignf.S: New file.
4995         * sysdeps/x86_64/fpu/s_copysignl.S: New file.
4996         * sysdeps/x86_64/fpu/s_finitel.S: New file.
4997         * sysdeps/x86_64/fpu/s_fmax.S: New file.
4998         * sysdeps/x86_64/fpu/s_fmaxf.S: New file.
4999         * sysdeps/x86_64/fpu/s_fmaxl.S: New file.
5000         * sysdeps/x86_64/fpu/s_fmin.S: New file.
5001         * sysdeps/x86_64/fpu/s_fminf.S: New file.
5002         * sysdeps/x86_64/fpu/s_fminl.S: New file.
5003
5004 2002-06-05  Brian Youmans <3diff@gnu.org>
5005
5006         * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
5007         * sysdeps/ia64/fpu/e_acosf.S: Likewise.
5008         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
5009         * sysdeps/ia64/fpu/e_asin.S: Likewise.
5010         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
5011         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
5012         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
5013         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
5014         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
5015         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
5016         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
5017         * sysdeps/ia64/fpu/e_exp.S: Likewise.
5018         * sysdeps/ia64/fpu/e_expf.S: Likewise.
5019         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
5020         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
5021         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
5022         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
5023         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
5024         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
5025         * sysdeps/ia64/fpu/e_log.S: Likewise.
5026         * sysdeps/ia64/fpu/e_logf.S: Likewise.
5027         * sysdeps/ia64/fpu/e_pow.S: Likewise.
5028         * sysdeps/ia64/fpu/e_powf.S: Likewise.
5029         * sysdeps/ia64/fpu/e_powl.S: Likewise.
5030         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
5031         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
5032         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
5033         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
5034         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
5035         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
5036         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
5037         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
5038         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
5039         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
5040         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
5041         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
5042         * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
5043         * sysdeps/ia64/fpu/libm_error.c: Likewise.
5044         * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
5045         * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
5046         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
5047         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
5048         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
5049         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
5050         * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
5051         * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
5052         * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
5053         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
5054         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
5055         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
5056         * sysdeps/ia64/fpu/s_logb.S: Likewise.
5057         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
5058         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
5059         * sysdeps/ia64/fpu/s_modf.S: Likewise.
5060         * sysdeps/ia64/fpu/s_modff.S: Likewise.
5061         * sysdeps/ia64/fpu/s_modfl.S: Likewise.
5062         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
5063         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
5064         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
5065         * sysdeps/ia64/fpu/s_rint.S: Likewise.
5066         * sysdeps/ia64/fpu/s_rintf.S: Likewise.
5067         * sysdeps/ia64/fpu/s_rintl.S: Likewise.
5068         * sysdeps/ia64/fpu/s_round.S: Likewise.
5069         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
5070         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
5071         * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
5072         * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
5073         * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
5074         * sysdeps/ia64/fpu/s_significand.S: Likewise.
5075         * sysdeps/ia64/fpu/s_significandf.S: Likewise.
5076         * sysdeps/ia64/fpu/s_significandl.S: Likewise.
5077         * sysdeps/ia64/fpu/s_tan.S: Likewise.
5078         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
5079         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
5080         * sysdeps/ia64/fpu/s_trunc.S: Likewise.
5081         * sysdeps/ia64/fpu/s_truncf.S: Likewise.
5082         * sysdeps/ia64/fpu/s_truncl.S: Likewise.
5083         * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
5084         reflect IBM donation of math library to FSF
5085         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5086         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
5087         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5088         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5089         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5090         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5091         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
5092         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
5093         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5094         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
5095         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
5096         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
5097         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
5098         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
5099         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
5100         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
5101         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5102         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
5103         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5104         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
5105         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
5106         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
5107         * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
5108         * sysdeps/vax/__longjmp.c: Likewise.
5109         * sysdeps/vax/setjmp.c: Likewise.
5110         * libio/filedoalloc.c: Fixed BSD copying permission notice to
5111         remove advertising clause
5112         * sysdeps/vax/htonl.s: Likewise.
5113         * sysdeps/vax/htons.s: Likewise.
5114         * libio/wfiledoalloc.c: Likewise.
5115         * stdlib/random.c: Likewise.
5116         * stdlib/random_r.c: Likewise.
5117         * sysdeps/mach/sys/reboot.h: Likewise.
5118         * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
5119         * sysdeps/posix/getaddrinfo.c: Likewise.
5120         * sunrpc/des_impl.c: Updated license permission notice to Lesser
5121         GPL and corrected pointer to point to the correct license.
5122
5123 2002-07-04  Andreas Jaeger  <aj@suse.de>
5124
5125         * scripts/config.guess: New upstream version.
5126         * scripts/config.sub: Likewise.
5127
5128 2002-07-02  Andreas Schwab  <schwab@suse.de>
5129
5130         * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
5131         in parallel to bumping up the buffer pointer.
5132
5133 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
5134
5135         * math/libm-test.inc (acos_test): Add missing L suffix for
5136         expected result.
5137         (cpow_test): Likewise.
5138         * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
5139         error for acos (0.0625).
5140
5141 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
5142
5143         * locale/iso-639.def: Add entry for Ganda.
5144         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
5145         definition.
5146         (address_finish): Handle entries with two letter ISO 639 code.
5147
5148         * iconvdata/Makefile: Recreate gconv-modules.cache file in target
5149         directory if it existed before.
5150         * iconv/iconvconfig.c: Implement --prefix option.
5151
5152         * math/libm-test.inc (cexp_test): Add missing L suffix for
5153         expected result.  Reported by Stephen L Moshier <steve@moshier.net>.
5154         * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
5155         1.25 i).
5156
5157 2002-05-29  H.J. Lu  <hjl@gnu.org>
5158
5159         * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
5160         is turned on.
5161
5162 2002-05-28  H.J. Lu  <hjl@gnu.org>
5163
5164         * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
5165         are not dlopened on the dependency list of a dlopened object.
5166
5167 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
5168
5169         * elf/dl-lookup.c (add_dependency): It is not necessary to add
5170         dependencies if they are created between objects which are created
5171         while processing RTLD_NOW for objects loaded as part of the same
5172         dlopen call.
5173
5174 2002-06-14  H.J. Lu  <hjl@gnu.org>
5175
5176         * elf/Makefile (tests): Add circleload1.
5177         (modules-names): Add circlemod1, circlemod2, circlemod3,
5178         circlemod1a, circlemod2a and circlemod3a.
5179         ($(objpfx)circleload1): New target.
5180         ($(objpfx)circleload1.out): Likewise.
5181         ($(objpfx)circlemod1.so): Likewise.
5182         ($(objpfx)circlemod2.so): Likewise.
5183         ($(objpfx)circlemod1a.so): Likewise.
5184         ($(objpfx)circlemod2a.so): Likewise.
5185         * elf/circleload1.c: New file.
5186         * elf/circlemod1.c: New file.
5187         * elf/circlemod1a.c: New file.
5188         * elf/circlemod2.c: New file.
5189         * elf/circlemod2a.c: New file.
5190         * elf/circlemod3.c: New file.
5191         * elf/circlemod3a.c: New file.
5192
5193 2002-06-18  Amos Waterland  <apw@us.ibm.com>
5194
5195         * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
5196         file descriptor.
5197         * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
5198         add check for fd not open for writing.
5199
5200         * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
5201         completed element(s) and do not suspend thread if so.  Patch
5202         heavily modified by drepper.
5203
5204         * rt/tst-aio7.c: New file.  Regression test for problems which the
5205         above three changes fix.
5206         * rt/Makefile (tests): Add tst-aio7.
5207
5208 2002-06-29  Ulrich Drepper  <drepper@redhat.com>
5209
5210         * rt/tst-aio6.c: Fix comment.
5211
5212         * catgets/gencat.c (read_input_file): Handle more than one slash
5213         at end of line correctly [PR libc/3926].
5214         Based on a patch by Steven Kim <steven.kim@peregrine.com>.
5215
5216         * catgets/sample.SJIS: Add test case for above bug.
5217         * catgets/test-gencat.c: Adjust test code.
5218         * catgets/test-gencat.sh: Adjust expected results.
5219
5220         * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
5221         to skip relative relocations.
5222         Patch by Geoff Keating <geoffk@redhat.com>.
5223
5224 2002-05-26  Bruno Haible  <bruno@clisp.org>
5225
5226         * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
5227         (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
5228         All callers changed.
5229         * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
5230         STANDARD_FROM_LOOP_ERR_HANDLER.
5231         (utf8_internal_loop): Likewise.
5232         (ucs2_internal_loop): Likewise.
5233         (internal_ucs2_loop): Perform error handling like in
5234         STANDARD_FROM_LOOP_ERR_HANDLER.
5235         * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
5236         in STANDARD_FROM_LOOP_ERR_HANDLER.
5237         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5238         handling.
5239         * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
5240         in STANDARD_FROM_LOOP_ERR_HANDLER.
5241         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5242         handling.
5243         * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
5244         in STANDARD_FROM_LOOP_ERR_HANDLER.
5245         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5246         handling.
5247         * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
5248         STANDARD_FROM_LOOP_ERR_HANDLER.
5249         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
5250         * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
5251         * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
5252         * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
5253         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
5254         * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
5255         * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
5256         * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
5257         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
5258         * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
5259         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
5260         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
5261         * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
5262         * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
5263         * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
5264         * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
5265         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
5266         * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
5267         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
5268         * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
5269         * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
5270         * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
5271         * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
5272         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5273         * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
5274         * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
5275         * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
5276         * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
5277         * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise.  When ignoring
5278         an error, still set result = __GCONV_ILLEGAL_INPUT.
5279         (BODY for TO_LOOP): Likewise.
5280         * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
5281         STANDARD_FROM_LOOP_ERR_HANDLER.
5282         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5283         * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
5284         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5285         handling.
5286         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5287         * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
5288         STANDARD_FROM_LOOP_ERR_HANDLER.
5289         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5290         * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
5291         STANDARD_FROM_LOOP_ERR_HANDLER.
5292         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5293         * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
5294         STANDARD_FROM_LOOP_ERR_HANDLER.
5295         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5296         * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
5297         STANDARD_FROM_LOOP_ERR_HANDLER.
5298         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5299         * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
5300         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5301         handling.
5302         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5303         * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
5304         * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
5305         * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
5306
5307 2002-06-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5308
5309         * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
5310         labels in assembler instructions.
5311
5312 2002-06-25  Ulrich Drepper  <drepper@redhat.com>
5313
5314         * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
5315         not enough content is available.
5316         * libio/tst-eof.c: New file.
5317         * libio/Makefile (tests): Add tst-eof.
5318
5319         * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
5320         update atime.
5321         * libio/tst-atime.c: New file.
5322         * libio/Makefile (tests): Add tst-atime.
5323
5324         * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
5325         handling of overly long words.
5326
5327 2002-06-25  Andreas Jaeger  <aj@suse.de>
5328
5329         * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
5330         to not use 32-bit pc relative relocations.
5331         (elf_machine_dynamic): Likewise.
5332
5333 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
5334
5335         * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
5336         (__GETDENTS): Check for failed getdents64 syscall.
5337         * dirent/Makefile (tests): Add bug-readdir1.
5338         * dirent/bug-readdir1.c: New file.
5339
5340 2002-06-17  Jakub Jelinek  <jakub@redhat.com>
5341
5342         * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
5343         lookups.
5344         * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
5345         code.  Print TLS modid and offset for modules containing PT_TLS
5346         segments.
5347
5348 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
5349
5350         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5351         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5352         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5353         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5354
5355 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
5356
5357         * nss/getXXbyYY_r.c (NEW, NEW1): Define.
5358         (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
5359         (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
5360         * nss/getXXent_r.c (NEW, NEW1): Define.
5361         (NEW (REENTRANT_GETNAME)): Strong alias to
5362         INTERNAL (REENTRANT_GETNAME).
5363         (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
5364
5365 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
5366
5367         * libio/fileops.c (_IO_file_setbuf_mmap): New function.
5368         (_IO_file_jumps_mmap): Use it.
5369         * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
5370         * libio/libioP.h: Remove _IO_wdefault_setbuf and
5371         _IO_wdefault_setbuf_internal prorotypes.  Add _IO_file_setbuf_mmap
5372         prototype.
5373         * libio/wfileops.c (_IO_wfile_setbuf): Removed.
5374         (_IO_wfile_jumps_mmap): Don't use it anymore.
5375         * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
5376         * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
5377         _IO_wdefault_setbuf.
5378         * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
5379         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
5380         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
5381
5382 2002-06-05  Jakub Jelinek  <jakub@redhat.com>
5383
5384         * libio/Makefile (tests): Add tst-mmap-setvbuf.
5385         * libio/tst-mmap-setvbuf.c: New test.
5386
5387 2002-06-21  Andreas Jaeger  <aj@suse.de>
5388
5389         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
5390
5391 2002-06-18  Jakub Jelinek  <jakub@redhat.com>
5392
5393         * include/unistd.h (__fork_internal): Remove.
5394         (__fork): Don't define to __fork_internal.
5395         * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
5396         * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
5397         * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
5398         * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
5399         * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
5400
5401 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
5402
5403         * po/hr.po: New file.
5404
5405 2002-06-11  Wolfram Gloger  <wg@malloc.de>
5406
5407         * malloc/malloc.c: Fix error path when new_heap() returns NULL.
5408         Reported by Michael Meissner <meissner@redhat.com>.
5409
5410 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
5411
5412         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
5413         Patch by Hans Boehm <hans_boehm@hp.com>.
5414
5415 2002-06-20  Andreas Jaeger  <aj@suse.de>
5416
5417         * math/libm-test.inc: Use exact values as input parameters,
5418         compute output parameters with 36 digits for 128-bit long doubles.
5419         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
5420         * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
5421         * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
5422
5423 2002-06-13  Stephen L Moshier  <steve@moshier.net>
5424
5425         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
5426         argument or result is subnormal.
5427
5428 2002-06-19  Ulrich Drepper  <drepper@redhat.com>
5429
5430         * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
5431         quotient.
5432         * sysdeps/i386/fpu/s_remquof.S: Likewise.
5433         * sysdeps/i386/fpu/s_remquol.S: Likewise.
5434
5435         * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
5436
5437 2002-06-17  David Mosberger  <davidm@hpl.hp.com>
5438
5439         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
5440         typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
5441         Reported by Peter A. Buhr.
5442
5443 2002-06-15  Roland McGrath  <roland@frob.com>
5444
5445         * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
5446         warning.
5447
5448         * sysdeps/mach/hurd/getcwd.c
5449         (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
5450
5451         * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
5452         * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
5453
5454         * sysdeps/alpha/divrem.h: Use local label instead of global one for
5455         jump to local subroutine.
5456
5457 2002-06-14  Roland McGrath  <roland@frob.com>
5458
5459         * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
5460         * sysdeps/mach/hurd/Makeconfig: ... here.
5461
5462 2002-06-13  Andreas Schwab  <schwab@suse.de>
5463
5464         * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
5465         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
5466         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
5467
5468 2002-06-13  Roland McGrath  <roland@frob.com>
5469
5470         * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
5471         * hurd/hurdstartup.c (_hurd_startup): Likewise.
5472         Use intptr_t instead of int for argc in stack layout.
5473         * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
5474         (_dl_init_first): Likewise.
5475         (_hurd_stack_setup): Likewise.
5476         (init1): Add a cast.
5477         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
5478
5479         * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
5480         argument to pfinet_siocgifconf RPC.
5481
5482 2002-06-13  Andreas Schwab  <schwab@suse.de>
5483
5484         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
5485         expansion order.
5486
5487 2002-06-12  Roland McGrath  <roland@frob.com>
5488
5489         * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
5490         if already defined.
5491         [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
5492         [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
5493
5494 2002-06-11  Roland McGrath  <roland@frob.com>
5495
5496         * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
5497         file on [!RTLD_STAT64].
5498         * sysdeps/mach/hurd/fxstat64.c: Likewise.
5499
5500         * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
5501         (__fdopen): Use INTUSE.
5502         * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
5503
5504         * stdio-common/tmpfile64.c: File removed.
5505         * sysdeps/generic/tmpfile64.c: New file.
5506         * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
5507         if not already defined.
5508         (tmpfile): Use it in place of __GT_FILE.
5509
5510         * include/unistd.h: Declare __chown_internal.
5511
5512         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
5513         * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
5514
5515 2002-06-09  Roland McGrath  <roland@frob.com>
5516
5517         Update to new Hurd RPC interfaces supporting 64-bit file sizes.
5518         * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
5519         value of HURD_INTERFACE_VERSION >= 20020609.
5520         * sysdeps/mach/hurd/configure: Regenerated.
5521         * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
5522         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
5523         convert a struct stat64 into a struct stat and return 0 or -1
5524         with errno set to EOVERFLOW.
5525         * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
5526         for struct statfs64 to struct statfs.
5527         * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
5528         * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
5529         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
5530         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
5531         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
5532         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
5533         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
5534         * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
5535         * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
5536         * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
5537         * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
5538         * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
5539         * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
5540         * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
5541         * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
5542         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
5543         * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
5544         * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
5545         * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
5546         * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
5547         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
5548         Use struct stat64 for io_stat argument.
5549         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
5550         * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
5551         to io_seek.
5552         * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
5553         * hurd/fd-write.c (_hurd_fd_write): Likewise.
5554         * hurd/hurd/fd.h: Update decls.
5555         * sysdeps/mach/hurd/getcwd.c
5556         (_hurd_canonicalize_directory_name_internal): Use ino64_t
5557         and struct dirent64.
5558         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
5559         (__xstat): Renamed to __xstat64, use struct stat64 for argument.
5560         (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
5561         (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
5562
5563 2002-06-08  Roland McGrath  <roland@frob.com>
5564
5565         * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
5566         instead of unsigned long int for __allocation and __size members.
5567
5568 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
5569
5570         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5571         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5572         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5573         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5574
5575 2002-06-07  Roland McGrath  <roland@frob.com>
5576
5577         * sysdeps/mach/hurd/bits/environments.h: File removed.
5578
5579 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
5580
5581         * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
5582         * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
5583         * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
5584         * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
5585         * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
5586         (sendfile64): Likewise.
5587         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
5588         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
5589         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
5590         Likewise.
5591         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
5592
5593         * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
5594         already defined.
5595
5596 2002-06-04  Bruno Haible  <bruno@clisp.org>
5597
5598         * sysdeps/cris/stackinfo.h: New file.
5599
5600         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
5601         to an integer type before performing bit operations on it.
5602
5603 2002-06-05  Roland McGrath  <roland@frob.com>
5604
5605         * sysdeps/generic/sendfile.c: Include <errno.h>.
5606         * sysdeps/generic/sendfile64.c: Likewise.
5607
5608         * io/Makefile (routines): Add sendfile and sendfile64.
5609         (headers): Add sys/sendfile.h to the list.
5610         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
5611         * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
5612         * io/sys/sendfile.h: ... here.
5613         * sysdeps/generic/sendfile.c: New file.
5614         * sysdeps/generic/sendfile64.c: New file.
5615
5616         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
5617         Move sendfile, sendfile64 to ...
5618         * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
5619         * sysdeps/mach/hurd/sendfile.c: New file.
5620         * sysdeps/mach/hurd/sendfile64.c: New file.
5621
5622         * sysdeps/mach/nanosleep.c: New file.
5623
5624 2002-06-04  Roland McGrath  <roland@frob.com>
5625
5626         * sysdeps/alpha/elf/configure.in: New file.  Check for TLS support.
5627         * sysdeps/alpha/elf/configure: New file (generated).
5628
5629 2002-06-02  Roland McGrath  <roland@frob.com>
5630
5631         * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
5632
5633 2002-06-01  Roland McGrath  <roland@frob.com>
5634
5635         * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
5636         i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
5637
5638 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
5639
5640         * resolv/resolv.h (struct __res_state): Remove unused nstimes.
5641         Add nsmap.
5642         * resolv/res_init.c (__res_vinit): Initialize nsmap array.
5643         Remove nstimes setting.
5644         (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
5645         * resolv/res_send.c (res_nsend): Don't close unconditionally if
5646         there is mix of IPv6 and IPv4 nameservers.
5647         Use nsmap array to find free slots and preserve nameserver ordering.
5648         Fix RES_ROTATE.
5649
5650 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
5651
5652         * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
5653         use this header with LFS.
5654
5655         * po/sk.po: Update from translation team.
5656
5657 2002-05-28  Andreas Schwab  <schwab@suse.de>
5658
5659         * sysdeps/generic/readelflib.c (process_elf_file): Give correct
5660         message when finding object of wrong class.
5661
5662 2002-05-28  Jakub Jelinek  <jakub@redhat.com>
5663
5664         * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
5665         Patch by <radu@netsoft.ro>.
5666
5667 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
5668
5669         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
5670         Add readahead.
5671         * sysdeps/unix/sysv/linux/readahead.c: New file.
5672         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
5673         * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
5674         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
5675         Add sendfile64 alias to sendfile syscall.
5676         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5677         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
5678         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5679         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
5680         syscall.
5681
5682         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
5683         special section for PIC register loading.
5684         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
5685
5686         * config.h.in: Define HAVE_HIDDEN.
5687         * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
5688
5689         * elf/elf.h: Correct Alpha TLS relocations according to last spec.
5690
5691 2002-05-28  Roland McGrath  <roland@frob.com>
5692
5693         * sysdeps/mach/alpha/setfpucw.c: New file.
5694
5695 2002-05-26  Roland McGrath  <roland@frob.com>
5696
5697         * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
5698         Use integer_t instead of int for IOC_VOID case.
5699
5700 2002-05-27  Alexandre Oliva  <aoliva@redhat.com>
5701
5702         * configure.in (DO_STATIC_NSS): Define if --disable-shared.
5703
5704 2002-05-26  Bruno Haible  <bruno@clisp.org>
5705
5706         * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
5707         end of the ISO-8859-7 from idx table.
5708
5709 2002-05-27  Ulrich Drepper  <drepper@redhat.com>
5710
5711         * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
5712
5713 2002-05-24  David S. Miller  <davem@redhat.com>
5714
5715         * string/bits/string2.h (memset): Do not try to optimize when
5716         not _STRING_ARCH_unaligned if GCC will do the right thing.
5717
5718 2002-05-21  Isamu Hasegawa  <isamu@yamato.ibm.com>
5719
5720         * posix/regex.c: Define `inline' as a macro into nothing for the
5721         compilers which lack the keyword.
5722         * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
5723         for the compatibility of gawk.
5724         * posix/regcomp.c: Add fake implementation of isblank() for the
5725         environments which lack the function.
5726         Don't use free_charset() in case of non-i18n envs.
5727         (build_range_exp): Don't use i18n related code in case of non-i18n
5728         envs.
5729         (build_collating_symbol): Likewise.
5730         (build_equiv_class): Likewise.
5731         (build_charclass): Likewise.
5732         (re_compile_fastmap_iter): Likewise.
5733         (parse_bracket_exp): Likewise.
5734         (build_word_op): Likewise.
5735         (regfree): Don't use free_charset() in case of non-i18n envs.
5736         * posix/regex_internal.h: Remove COMPLEX_BRACKET from
5737         re_token_type_t in case of non-i18n envs.
5738         Don't define re_charset_t in case of non-i18n envs.
5739         Change the type of wcs of re_string_t from wchar_t to wint_t,
5740         since we store also WEOF.
5741         * posix/regex_internal.c: (re_string_realloc_buffers): Change
5742         the type of wcs of re_string_t from wchar_t to wint_t.
5743         (re_string_reconstruct): Likewise.
5744         (create_ci_newstate): Don't use i18n related code in case of
5745         non-i18n envs.
5746         (create_cd_newstate): Likewise.
5747
5748 2002-05-24  Ulrich Drepper  <drepper@redhat.com>
5749
5750         * iconv/loop.c: Fix typo.
5751
5752 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
5753
5754         * inet/ether_line.c (ether_line): Fix a typo causing only
5755         lower 4 bits of each ethernet address byte being assigned.
5756         Don't modify what line points to.
5757         * inet/tst-ether_aton.c (main): Add ether_line tests.
5758
5759 2002-05-23  Marcus Brinkmann  <marcus@gnu.org>
5760
5761         * manual/filesys.texi: Don't make readlink example leak memory
5762         when readlink fails.
5763
5764 2002-05-20  Ulrich Drepper  <drepper@redhat.com>
5765
5766         * iconv/loop.c: Fix condition for defining unaligned loop.  Add
5767         some more security checks.
5768
5769 2002-05-17  David S. Miller  <davem@redhat.com>
5770
5771         * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
5772
5773 2002-05-16  David S. Miller  <davem@redhat.com>
5774
5775         * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
5776         (elf_machine_dynamic): Use it to force PIC register to be loaded.
5777         (elf_machine_load_address): Likewise.
5778         * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
5779
5780         * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
5781         is unaligned, do not forget to fully initialize %g1 magic value.
5782
5783         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
5784         register definitions and provide 32-bit variants of structures
5785         during 64-bit builds.
5786
5787         * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
5788         * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
5789         * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
5790         * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
5791         _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
5792         (_FP_FROM_INT): Perform right shifts on unsigned integer type.
5793         Do not clear implicit one bit here, it must be done post-rounding.
5794         Only pad to the left using left shift if value uses less than the
5795         available fractional bits.
5796
5797 2002-05-20  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5798
5799         * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
5800         instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
5801         (shared-only-routines): Likewise.
5802         * sysdeps/powerpc/libgcc-compat.c: New file.
5803         * sysdeps/wordsize-32/cmpdi2.c: Removed.
5804         * sysdeps/wordsize-32/fixdfdi.c: Removed.
5805         * sysdeps/wordsize-32/fixsfdi.c: Removed.
5806         * sysdeps/wordsize-32/shdi3.c: Removed.
5807
5808 2002-05-16  Bruno Haible  <bruno@clisp.org>
5809
5810         * MakeTAGS (libc.pot): Don't sort the output.
5811         * po/header.pot: Update to match xgettext 0.11 output.
5812
5813 2002-05-16  Bruno Haible  <bruno@clisp.org>
5814
5815         * MakeTAGS (subdirs): Remove duplicates.
5816
5817 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
5818
5819         * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
5820         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
5821         alias.
5822
5823 2002-05-19  Andreas Jaeger  <aj@suse.de>
5824
5825         * sysdeps/unix/sysv/linux/configure.in: Warn against an
5826         installation in /usr/local.
5827
5828 2002-05-16  Bruno Haible  <bruno@clisp.org>
5829
5830         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
5831         string as argument of #error.
5832
5833 2002-05-15  Ulrich Drepper  <drepper@redhat.com>
5834
5835         * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
5836         don't define static.  Remove old __realpath function.  TC1 of
5837         POSIX 2001 will allow the second parameter to be NULL.
5838         * stdlib/test-canon.c: Comment out test for NULL as second
5839         parameter of realpath.
5840
5841         * time/offtime.c (__offtime): Set errno if overflow is detected.
5842
5843         * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
5844         * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
5845         dl-brk and dl-sbrk.
5846
5847         * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
5848         (fdimf): Likewise.
5849
5850 2002-05-15  Roland McGrath  <roland@frob.com>
5851
5852         * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
5853
5854 2002-05-12  Bruno Haible  <bruno@clisp.org>
5855
5856         * iconvdata/testdata/EUC-JISX0213: New file.
5857         * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
5858         * iconvdata/testdata/SHIFT_JISX0213: New file.
5859         * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
5860         * iconvdata/testdata/ISO-2022-JP-3: New file.
5861         * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
5862         * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
5863         * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
5864         contains comments indicating precomposed characters.
5865
5866 2002-04-21  Bruno Haible  <bruno@clisp.org>
5867
5868         * iconvdata/iso-2022-jp-3.c: New file.
5869         * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
5870         * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
5871         (LDFLAGS-ISO-2022-JP-3.so): New variable.
5872         (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
5873         (distribute): Add iso-2022-jp-3.c.
5874
5875 2002-05-12  Bruno Haible  <bruno@clisp.org>
5876
5877         * iconvdata/tst-table-to.c (main): Restore handling of
5878         transliterations, broken by last patch.
5879
5880 2002-05-12  Bruno Haible  <bruno@clisp.org>
5881
5882         * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
5883
5884 2002-05-12  Bruno Haible  <bruno@clisp.org>
5885
5886         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
5887         when there is not enough room in the output buffer.
5888         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5889
5890 2002-04-20  Bruno Haible  <bruno@clisp.org>
5891
5892         * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
5893         macros.
5894         (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
5895         Also make this macro work if FROM_DIRECTION evaluates to 0.
5896         (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
5897         (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
5898         of consume_incomplete.
5899         * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
5900         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
5901         4, not 8.
5902         * iconvdata/cp1258.c: Likewise.
5903         * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
5904         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
5905         not 2.
5906         * iconvdata/ibm933.c: Likewise.
5907         * iconvdata/ibm935.c: Likewise.
5908         * iconvdata/ibm937.c: Likewise.
5909         * iconvdata/ibm939.c: Likewise.
5910         * iconvdata/iso-2022-cn.c: Define
5911         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5912         {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
5913         * iconvdata/iso-2022-cn-ext.c: Likewise.
5914         * iconvdata/iso-2022-jp.c: Define
5915         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5916         {MIN,MAX}_NEEDED_{FROM,TO}.
5917         * iconvdata/tcvn5712-1.c: Define
5918         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5919         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
5920         * iconvdata/euc-jisx0213.c: Define
5921         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5922         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
5923         * iconvdata/shift_jisx0213.c: Likewise.
5924
5925 2002-05-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5926
5927         * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
5928         shdi3, fixdfdi, fixsfdi in csu dir.
5929         (shared-only-routines): Likewise.
5930         * sysdeps/wordsize-32/cmpdi2.c: New file.
5931         * sysdeps/wordsize-32/shdi3.c: New file.
5932         * sysdeps/wordsize-32/fixdfdi.c: New file.
5933         * sysdeps/wordsize-32/fixsfdi.c: New file.
5934         * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
5935         __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
5936         __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
5937
5938         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
5939         Only use va_arg if the argument will be used [PR libc/3259].
5940
5941 2002-05-06  Michael A. Schmidt  <mmaass@us.ibm.com>
5942
5943         * catgets/catgets.c (catopen): Free buffer if internal catalog
5944         open fails.
5945
5946 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
5947
5948         * debug/xtrace.sh: Make more robust.  For realtime tracking use
5949         non-buffering methods.
5950         * debug/pcprofiledump.c: Implement -u option.
5951         Patch by Roger Luethi <rl@hellgate.ch>.
5952
5953 2002-05-11  Jakub Jelinek  <jakub@redhat.com>
5954
5955         * include/netinet/in.h (bindresvport_internal): Add prototype.
5956         * include/rpc/auth.h  (authunix_create_internal,
5957         authunix_create_default_internal, authnone_create_internal,
5958         authdes_pk_create_internal): Add prototypes.
5959         * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
5960         clntudp_create_internal, clntudp_bufcreate_internal,
5961         clntunix_create_internal): Add prototypes.
5962         * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
5963         svc_getreq_internal, svc_getreq_common_internal,
5964         svc_getreqset_internal, svc_getreq_poll_internal,
5965         svc_register_internal, svc_unregister_internal,
5966         svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
5967         * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
5968         * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
5969         __setsockopt, __getsockname, __bind, __listen): Add prototypes.
5970         * inet/rexec.c (rexec_af): Use __listen and __getsockname.
5971         * inet/rcmd.c (rcmd_af): Use __listen.
5972         (rresvport_af): Use __bind.
5973         * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
5974         authunix_create, authunix_create_default, authnone_create,
5975         authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
5976         clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
5977         svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
5978         svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
5979         _authenticate, add INTDEF after such function definitions.
5980         Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
5981         __setsockopt, __getsockname instead of non-__ variants.
5982         * sunrpc/pmap_rmt.c: Likewise.
5983         * sunrpc/rtime.c: Likewise.
5984         * sunrpc/svc_udp.c: Likewise.
5985         * sunrpc/clnt_unix.c: Likewise.
5986         * sunrpc/svc_unix.c: Likewise.
5987         * sunrpc/bindrsvprt.c: Likewise.
5988         * sunrpc/svc_tcp.c: Likewise.
5989         * sunrpc/auth_none.c: Likewise.
5990         * sunrpc/clnt_raw.c: Likewise.
5991         * sunrpc/clnt_tcp.c: Likewise.
5992         * sunrpc/auth_unix.c: Likewise.
5993         * sunrpc/key_call.c: Likewise.
5994         * sunrpc/clnt_gen.c: Likewise.
5995         * sunrpc/pm_getmaps.c: Likewise.
5996         * sunrpc/clnt_simp.c: Likewise.
5997         * sunrpc/pmap_clnt.c: Likewise.
5998         * sunrpc/svc_run.c: Likewise.
5999         * sunrpc/svc.c: Likewise.
6000         * sunrpc/svc_simple.c: Likewise.
6001         * sunrpc/pm_getport.c: Likewise.
6002         * sunrpc/auth_des.c: Likewise.
6003         * sunrpc/svc_auth.c: Likewise.
6004         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
6005         __register_frame_info_table_bases, __deregister_frame_info_bases):
6006         Add INTDEF.
6007         (__register_frame_info_bases_internal,
6008         __register_frame_info_table_bases_internal,
6009         __deregister_frame_info_bases_internal): Add prototypes.
6010         (__register_frame_info, __register_frame): Use INTUSE in call to
6011         __register_frame_info_bases.
6012         (__register_frame_info_table): Similarly.
6013         (__deregister_frame_info, __deregister_frame): Similarly.
6014         * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
6015         sendto as weak alias.
6016         * sysdeps/mach/hurd/sendto.c: Likewise.
6017         * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
6018         recvfrom as weak alias.
6019         * sysdeps/mach/hurd/recvfrom.c: Likewise.
6020         * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
6021         * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
6022         recvmsg as weak alias.
6023         * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
6024         * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
6025         sendmsg as weak alias.
6026         * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
6027         * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
6028         setsockopt, add setsockopt as weak alias.
6029         * sysdeps/mach/hurd/setsockopt.c: Likewise.
6030         * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
6031         weak alias.
6032         * sysdeps/mach/hurd/bind.c: Likewise.
6033         * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
6034         as weak alias.
6035         * sysdeps/mach/hurd/listen.c: Likewise.
6036         * sysdeps/generic/getsockname.c (__getsockname): Renamed from
6037         getsockname, add getsockname as weak alias.
6038         * sysdeps/mach/hurd/getsockname.c: Likewise.
6039         * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
6040         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
6041         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
6042         * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
6043         __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
6044         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
6045         Add aliases.
6046         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6047         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6048         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6049         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6050         * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
6051         * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
6052         * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
6053         * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
6054         * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
6055         * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
6056         * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
6057         * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
6058
6059 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
6060
6061         * locale/programs/localedef.h (show_archive_content): Add verbose
6062         argument.
6063         * locale/programs/localedef.c (main): Adjust caller.
6064         * locale/programs/locarchive.c (struct nameent, struct dataent): New
6065         types.
6066         (nameentcmp, dataentcmp): New functions.
6067         (xstrcmp): Remove.
6068         (show_archive_content): Print verbose listing with --list-archive -v.
6069
6070 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
6071
6072         * locale/programs/locarchive.c (open_archive): Take extra argument
6073         readonly.  If true open file with O_RDONLY and don't create the
6074         archive if it doesn't exist.
6075         Adapt all callers.
6076         (close_archive): Don't do anything if fd element is -1.
6077         * locale/programs/localedef.h (open_archive): Adjust prototype.
6078         * locale/programs/locfile.c (write_all_categories): Adjust open_archive
6079         call.
6080
6081         * malloc/malloc.c (__posix_memalign): Correct check for size of
6082         alignment value [PR libc/3444].
6083
6084         * include/stdio.h: Remove references to old stdio implementation.
6085
6086         * libio/Makefile (bug-ungetwc2-ENV): Define.
6087
6088 2002-05-13  Roland McGrath  <roland@frob.com>
6089
6090         * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
6091
6092         * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
6093
6094 2002-05-13  Marcus Brinkmann  <marcus@gnu.org>
6095
6096         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
6097         Allocate three, not two, more than LEN when appending '/.'.
6098         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.  Don't check
6099         if NAME ends with '/.' if it is shorter than 2 chars.
6100
6101 2002-05-12  Roland McGrath  <roland@frob.com>
6102
6103         * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
6104         files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
6105
6106         * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
6107         file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
6108
6109 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
6110
6111         * sysdeps/ia64/Makefile: Remove extra endif.
6112         * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
6113
6114 2002-05-10  Andreas Schwab  <schwab@suse.de>
6115
6116         * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
6117
6118 2002-05-09  Andreas Jaeger  <aj@suse.de>
6119
6120         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New file.
6121         * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
6122         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
6123
6124         * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
6125         * sysdeps/wordsize-64/glob.c: ...here.
6126         * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
6127         * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
6128         * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
6129
6130 2002-05-08  Roland McGrath  <roland@frob.com>
6131
6132         * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
6133         O_NOTRANS flag in "." lookup.
6134
6135 2002-05-05  Ulrich Drepper  <drepper@redhat.com>
6136
6137         * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
6138
6139 2002-05-04  Ulrich Drepper  <drepper@redhat.com>
6140
6141         * locale/duplocale.c (__duplocale): Update special members only
6142         when allocation succeeded.
6143
6144 2002-05-03  Roland McGrath  <roland@frob.com>
6145
6146         * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
6147         we can only build libc.so.0.3(GLIBC_2.2.6) now.
6148
6149 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
6150
6151         * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
6152         * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
6153         __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
6154         * sysdeps/ia64/ia64libgcc.S: New file.
6155
6156 2002-05-02  Ulrich Drepper  <drepper@redhat.com>
6157
6158         * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
6159
6160         * malloc/memusage.c: Distinguish anonymous mmap.
6161
6162 2002-05-01  Roland McGrath  <roland@frob.com>
6163
6164         * sysdeps/mach/hurd/close.c: #undef __close before function defn,
6165         and use INTDEF on it.
6166         * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
6167
6168         * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
6169
6170         * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
6171
6172 2002-05-01  Ulrich Drepper  <drepper@redhat.com>
6173
6174         * malloc/memusage.c: Add support for tracking mmap & friends.
6175         * malloc/memusage.sh: Implement -m/--mmap option.
6176
6177 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
6178
6179         * locale/programs/locarchive.c (create_archive): Add archivefname
6180         argument, create fname from it.
6181         (enlarge_archive): Honour output_prefix.
6182         (open_archive): Likewise.
6183
6184 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
6185
6186         * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
6187         too many stpcpy macros.
6188
6189 2002-04-26  Bruno Haible  <bruno@clisp.org>
6190
6191         * locale/programs/ld-collate.c (collate_read): Cast first argument
6192         for "%.*s" to int.
6193
6194 2002-04-26  Bruno Haible  <bruno@clisp.org>
6195
6196         * include/libintl.h (__ngettext, __dngettext, __dcngettext,
6197         __dcngettext_internal): New declarations.
6198         (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
6199         attribute declarations.
6200
6201 2002-04-30  Roland McGrath  <roland@frob.com>
6202
6203         Removed old GNU stdio implementation; GNU libio is now the only option.
6204         * configure.in: Removed --enable-libio option and @stdio@ subst var.
6205         Define USE_IN_LIBIO unconditionally.
6206         * configure: Regenerated.
6207         * Makeconfig (stdio): Set to libio by default.
6208         * config.make.in (stdio): Variable removed.
6209         * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
6210         * sysdeps/unix/sysv/linux/configure: Regenerated.
6211         * sysdeps/mach/hurd/configure.in: Don't test $stdio.
6212         * sysdeps/mach/hurd/configure: Regenerated.
6213         * stdio/.cvsignore: File removed.
6214         * stdio/Makefile: File removed.
6215         * stdio/Versions: File removed.
6216         * stdio/__fbufsize.c: File removed.
6217         * stdio/__flbf.c: File removed.
6218         * stdio/__fpending.c: File removed.
6219         * stdio/__fpurge.c: File removed.
6220         * stdio/__freadable.c: File removed.
6221         * stdio/__freading.c: File removed.
6222         * stdio/__fsetlocking.c: File removed.
6223         * stdio/__fwritable.c: File removed.
6224         * stdio/__fwriting.c: File removed.
6225         * stdio/clearerr.c: File removed.
6226         * stdio/fclose.c: File removed.
6227         * stdio/fcloseall.c: File removed.
6228         * stdio/feof.c: File removed.
6229         * stdio/ferror.c: File removed.
6230         * stdio/fflush.c: File removed.
6231         * stdio/fgetc.c: File removed.
6232         * stdio/fgetpos.c: File removed.
6233         * stdio/fgets.c: File removed.
6234         * stdio/fileno.c: File removed.
6235         * stdio/fmemopen.c: File removed.
6236         * stdio/fopen.c: File removed.
6237         * stdio/fopncook.c: File removed.
6238         * stdio/fputc.c: File removed.
6239         * stdio/fputs.c: File removed.
6240         * stdio/fread.c: File removed.
6241         * stdio/freopen.c: File removed.
6242         * stdio/fseek.c: File removed.
6243         * stdio/fsetpos.c: File removed.
6244         * stdio/ftell.c: File removed.
6245         * stdio/fwrite.c: File removed.
6246         * stdio/getc.c: File removed.
6247         * stdio/getchar.c: File removed.
6248         * stdio/getdelim.c: File removed.
6249         * stdio/gets.c: File removed.
6250         * stdio/glue.c: File removed.
6251         * stdio/internals.c: File removed.
6252         * stdio/linewrap.c: File removed.
6253         * stdio/linewrap.h: File removed.
6254         * stdio/memstream.c: File removed.
6255         * stdio/newstream.c: File removed.
6256         * stdio/obstream.c: File removed.
6257         * stdio/putc.c: File removed.
6258         * stdio/putchar.c: File removed.
6259         * stdio/puts.c: File removed.
6260         * stdio/rewind.c: File removed.
6261         * stdio/setbuf.c: File removed.
6262         * stdio/setbuffer.c: File removed.
6263         * stdio/setlinebuf.c: File removed.
6264         * stdio/setvbuf.c: File removed.
6265         * stdio/stdio.h: File removed.
6266         * stdio/ungetc.c: File removed.
6267         * stdio/vasprintf.c: File removed.
6268         * stdio/vscanf.c: File removed.
6269         * stdio/vsnprintf.c: File removed.
6270         * stdio/vsprintf.c: File removed.
6271         * stdio/vsscanf.c: File removed.
6272         * sysdeps/generic/defs.c: File removed.
6273         * sysdeps/generic/fdopen.c: File removed.
6274         * sysdeps/generic/pipestream.c: File removed.
6275         * sysdeps/generic/stdio_init.c: File removed.
6276         * sysdeps/generic/sysd-stdio.c: File removed.
6277         * sysdeps/generic/vdprintf.c: File removed.
6278         * sysdeps/mach/hurd/defs.c: File removed.
6279         * sysdeps/mach/hurd/fdopen.c: File removed.
6280         * sysdeps/mach/hurd/pipestream.c: File removed.
6281         * sysdeps/mach/hurd/stdio_init.c: File removed.
6282         * sysdeps/mach/hurd/sysd-stdio.c: File removed.
6283         * sysdeps/mach/hurd/vdprintf.c: File removed.
6284         * sysdeps/posix/defs.c: File removed.
6285         * sysdeps/posix/fdopen.c: File removed.
6286         * sysdeps/posix/pipestream.c: File removed.
6287         * sysdeps/posix/stdio_init.c: File removed.
6288         * sysdeps/posix/vdprintf.c: File removed.
6289         * sysdeps/unix/pipestream.c: File removed.
6290         * sysdeps/unix/sysv/sysd-stdio.c: File removed.
6291         * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
6292         * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
6293
6294 2002-04-29  Roland McGrath  <roland@frob.com>
6295
6296         * include/libc-symbols.h (link_warning): Use `unused' attribute.
6297
6298 2002-04-28  Ulrich Drepper  <drepper@redhat.com>
6299
6300         * sysdeps/generic/tls.h: Describe what must be defined.
6301
6302         * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
6303         glob_in_dir [PR libc/3385].
6304         * posix/globtest.sh: Add test case.
6305
6306         * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
6307         //TRANSLIT twice.
6308
6309 2002-04-27  Ulrich Drepper  <drepper@redhat.com>
6310
6311         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
6312         _internal symbol handling.
6313         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6314
6315 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
6316
6317         * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
6318         * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
6319
6320 2002-04-26  Isamu Hasegawa  <isamu@yamato.ibm.com>
6321
6322         * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
6323         not _LIBC and RE_ENABLE_I18N.
6324         (build_range_exp): Implement for not _LIBC.
6325         (build_collating_symbol): Likewise.
6326         (parse_bracket_exp): Unify redundant error handlings.
6327         Don't erase mbcset for non matching list in multibyte envs.
6328         (build_word_op): Add '_' to matching list for \w operator.
6329         * posix/regex_internal.c (re_string_construct): Invoke
6330         build_upper_buffer in case of not RE_ENABLE_I18N.
6331         (re_string_reconstruct): Don't touch cur_state in case of not
6332         RE_ENABLE_I18N.
6333         * posix/regex_internal.h (attribute_hidden): New macro in case of
6334         not _LIBC.
6335         (re_charset_t): Define range_starts/ends in case of not _LIBC.
6336         * posix/regexec.c (sift_states_iter_mb): Hide in case of not
6337         RE_ENABLE_I18N.
6338         (transit_state_mb): Likewise.
6339         (check_node_accept_bytes): Implement the code evaluating range
6340         expression in case of not _LIBC.
6341         (find_collation_sequence_value): Hide in case of not _LIBC.
6342
6343 2002-04-26  Jakub Jelinek  <jakub@redhat.com>
6344
6345         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
6346         i386/semctl.c.
6347         (__old_semctl, __new_semctl): Only use va_arg if the argument will
6348         be used.
6349
6350 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
6351
6352         * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
6353
6354         * sysdeps/ia64/strncpy.S: Fix recovery code.
6355         Patch by David Mosberger <davidm@hpl.hp.com>.
6356
6357 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6358
6359         * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
6360         GLIBC_2.2.6.
6361
6362 2002-04-14  Bruno Haible  <bruno@clisp.org>
6363
6364         * posix/regex.c (re_max_failures): Add back symbol for binary
6365         compatibility.
6366
6367 2002-04-22  Isamu Hasegawa  <isamu@yamato.ibm.com>
6368
6369         * posix/regcomp.c (re_compile_internal): Adapt it to new interface
6370         of buffer building functions.
6371         * posix/regex_internal.c (re_string_allocate): New function.
6372         (re_string_realloc_buffers): New function.
6373         (re_string_skip_chars): New function.
6374         (re_string_reconstruct): New function.
6375         (re_string_construct): Adapt it to new interface of buffer building
6376         functions.
6377         (re_string_construct_common): Likewise.
6378         (build_wcs_buffer): Likewise.
6379         (build_wcs_upper_buffer): Likewise.
6380         (build_upper_buffer): Likewise.
6381         (re_string_translate_buffer): Likewise.
6382         (re_string_context_at): Adapt it to variable length buffers.
6383         * posix/regex_internal.h (re_string_t): Add new fields to handle
6384         variable length buffers.
6385         (re_match_context_t): Likewise.
6386         * posix/regexec.c (re_search_internal): Adapt it to new interface
6387         of re_string_t and re_match_context_t.
6388         (acquire_init_state_context): Likewise.
6389         (check_matching): Likewise.
6390         (check_halt_state_context): Likewise.
6391         (proceed_next_node): Likewise.
6392         (set_regs): Likewise.
6393         (sift_states_backward): Likewise.
6394         (clean_state_log_if_need): Likewise.
6395         (sift_states_iter_mb): Likewise.
6396         (sift_states_iter_bkref): Likewise.
6397         (add_epsilon_backreference): Likewise.
6398         (transit_state): Likewise.
6399         (transit_state_sb): Likewise.
6400         (transit_state_mb): Likewise.
6401         (transit_state_bkref): Likewise.
6402         (transit_state_bkref_loop): Likewise.
6403         (check_node_accept): Likewise.
6404         (match_ctx_init): Likewise.
6405         (extend_buffers): New function.
6406
6407 2002-04-21  Bruno Haible  <bruno@clisp.org>
6408
6409         * iconvdata/tst-table.sh: For the second check, use the truncated
6410         GB18030 charmap table, like for the first check.
6411
6412 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6413
6414         * elf/dl-load.c (open_verify): Correct __lseek parameters.
6415         Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
6416
6417 2002-04-23  H.J. Lu  <hjl@gnu.org>
6418
6419         * include/math.h (isfinite): Fix a typo.
6420
6421 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6422
6423         * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
6424         which is created by the test suite.
6425
6426 2002-04-20  Bruno Haible  <bruno@clisp.org>
6427
6428         * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
6429         (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
6430
6431 2002-04-20  Bruno Haible  <bruno@clisp.org>
6432
6433         * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
6434         to avoid gcc warning.
6435
6436 2002-04-20  Bruno Haible  <bruno@clisp.org>
6437
6438         * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
6439         of data->__statep->__count.
6440
6441 2002-04-20  Bruno Haible  <bruno@clisp.org>
6442
6443         * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
6444         tag characters.
6445         * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
6446
6447 2002-04-24  Roland McGrath  <roland@frob.com>
6448
6449         * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
6450         use END macro instead of our own .end directive.
6451         Use `callsys' insn mnemonic instead of `call_pal'.
6452
6453         * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
6454
6455         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
6456         macro; we need this for Hurd.
6457
6458         Log entry was missing for 2002/03/24 commit of rev 1.8,
6459         goes with 2002-03-17 changes.
6460         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
6461         (sysdep_routines): Append ioperm here.
6462         (sysdep_headers): Append sys/io.h here.
6463
6464 2002-04-23  Roland McGrath  <roland@frob.com>
6465
6466         * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
6467         * sysdeps/mach/hurd/sendto.c: Likewise.
6468         * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
6469         * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
6470         * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
6471
6472 2002-04-22  Roland McGrath  <roland@frob.com>
6473
6474         * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
6475         failure from i386_io_perm_* RPCs to ENOSYS.
6476
6477 2002-04-22  Andreas Jaeger  <aj@suse.de>
6478
6479         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
6480
6481         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
6482
6483         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
6484         register instead of destroying %rbx.
6485
6486 2002-04-21  Ulrich Drepper  <drepper@redhat.com>
6487
6488         * string/string.h: Declare strerror_r also for XPG6.
6489
6490 2002-04-19  Roland McGrath  <roland@frob.com>
6491
6492         * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
6493
6494 2002-04-20  Ulrich Drepper  <drepper@redhat.com>
6495
6496         * Makefile: Add handling of xtests and xcheck targets.
6497         * MakeTAGS: Likewise.
6498         * Makeconfig: Likewise.
6499         * Makerules: Likewise.
6500         * Rules: Likewise.
6501         * manual/Makefile: Likewise.
6502         * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
6503         * sunrpc/thrsvc.c: New file.  By Zack Weinberg.
6504
6505 2002-04-11  Zack Weinberg  <zack@codesourcery.com>
6506
6507         * include/rpc/rpc.h (struct rpc_thread_variables): Remove
6508         authnone_private_s.
6509         * sunrpc/auth_none.c: Include bits/libc-lock.h.
6510         Delete #ifdef _RPC_THREAD_SAFE_ block.
6511         (authnone_private): Make a struct, not a pointer to struct.
6512         (authnone_private_guard): New once-control variable.
6513         (authnone_create_once): New function, split out of
6514         authnone_create.  No need to allocate memory.
6515         (authnone_create): Just call authnone_create_once via
6516         __libc_once, then return &authnone_private->no_client.
6517         (authnone_marshal): Access private data via CLIENT argument,
6518         not authnone_private pointer.
6519         Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
6520         * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
6521         authnone_private_s.
6522
6523 2002-04-12  H.J. Lu  <hjl@gnu.org>
6524
6525         * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
6526
6527 2002-04-18  Bruno Haible  <bruno@clisp.org>
6528
6529         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
6530         FROM_DIRECTION): Make the FROM direction stateless.
6531         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
6532         FROM_DIRECTION): Likewise.
6533
6534 2002-04-15  Bruno Haible  <bruno@clisp.org>
6535
6536         * iconvdata/JISX0213.TXT: New file.
6537         * iconvdata/jisx0213.h: New file.
6538         * iconvdata/jisx0213.c: New file.
6539         * iconvdata/euc-jisx0213.c: New file.
6540         * iconvdata/shift_jisx0213.c: New file.
6541         * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
6542         * iconvdata/EUC-JISX0213.precomposed: New file.
6543         * iconvdata/SHIFT_JISX0213.precomposed: New file.
6544         * iconvdata/SHIFT_JISX0213.irreversible: New file.
6545         * iconvdata/tst-table-to.c (main): Make it work for encodings for
6546         which the "to" direction is stateful.
6547         * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
6548         * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
6549         SHIFT_JISX0213.
6550         (libJISX0213-routines): New variable.
6551         (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
6552         (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
6553         (LDFLAGS-libJISX0213.so): New variable.
6554         (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
6555         SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
6556         jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
6557
6558 2002-04-15  Bruno Haible  <bruno@clisp.org>
6559
6560         * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
6561         uint32_t.  Update to Unicode 3.2.
6562         (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
6563         (BODY for TO_LOOP): Handle the ASCII range specially.
6564         * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
6565         * iconvdata/testdata/BIG5HKSCS: Remove a character.
6566         * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
6567
6568 2002-04-15  Bruno Haible  <bruno@clisp.org>
6569
6570         * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
6571         __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
6572
6573 2002-04-15  Bruno Haible  <bruno@clisp.org>
6574
6575         * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
6576         (ucs4_to_cns11643): Update.
6577         * iconvdata/cns11643.c: Update to Unicode 3.2.
6578         (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
6579         __cns11643_from_ucs4p2_tab): Regenerated.
6580         (__cns11643_from_ucs4p2c_tab): New array.
6581         * iconvdata/cvs11643l1.c: Update comments.
6582         * iconvdata/EUC-TW.irreversible: Remove two entries.
6583
6584 2002-04-15  Bruno Haible  <bruno@clisp.org>
6585
6586         * locale/C-translit.h.in: Update to Unicode 3.2.
6587         Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
6588         <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
6589
6590 2002-04-15  Bruno Haible  <bruno@clisp.org>
6591
6592         * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
6593         (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
6594
6595 2002-04-15  Bruno Haible  <bruno@clisp.org>
6596
6597         * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
6598         invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
6599         always one byte, not 0 bytes in some cases and 2 bytes in others.
6600
6601         * iconvdata/tst-table-from.c (main): Correct the usage message.
6602
6603 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
6604
6605         * posix/regcomp.c (parse_expression): Fix incorrect error code.
6606         (parse_dup_op): Fix error handling like "a{}".
6607         (parse_bracket_exp): Add error handling.
6608         (fetch_number): Add error handling for "a{<very_large_number>}".
6609
6610 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
6611
6612         * posix/regcomp.c (parse_bracket_symbol): Add error handling
6613         in case that the symbol name is too long.
6614         (build_charclass): Handle [:lower:]/[:uppper:] correctly
6615         in case of REG_ICASE.
6616
6617 2002-04-19  Andreas Jaeger  <aj@suse.de>
6618
6619         * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
6620         <hartvige@mips.com>.
6621
6622 2002-04-15  H.J. Lu  <hjl@gnu.org>
6623
6624         * include/math.h (__finitel_internal): Declare only if
6625         __NO_LONG_DOUBLE_MATH is not defined.
6626         (__isinfl_internal): Likewise.
6627         (__isnanl_internal): Likewise.
6628
6629         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
6630         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6631         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6632         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
6633         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6634         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6635         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6636
6637         * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
6638         __fcntl_internal.
6639
6640         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
6641         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
6642
6643 2002-04-15  Bruno Haible  <bruno@clisp.org>
6644
6645         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
6646         (BODY for TO_LOOP): Likewise.
6647         * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
6648         * iconvdata/tst-table.sh: Add support for encodings which contain
6649         precomposed Unicode characters, known to the iconv converter in both
6650         directions but not listed in the charmap.
6651         * iconvdata/IBM856.irreversible: New file.
6652         * iconvdata/IBM922.irreversible: New file.
6653         * iconvdata/IBM1132.irreversible: New file.
6654         * iconvdata/IBM1133.irreversible: New file.
6655         * iconvdata/IBM1160.irreversible: New file.
6656         * iconvdata/IBM1161.irreversible: New file.
6657         * iconvdata/IBM1163.irreversible: New file.
6658         * iconvdata/IBM1164.irreversible: New file.
6659         * iconvdata/ARMSCII-8.irreversible: New file.
6660         * iconvdata/TCVN5712-1.precomposed: New file.
6661         * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
6662         IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
6663         ARMSCII-8, TCVN5712-1.
6664         * iconvdata/Makefile (distribute): Add IBM856.irreversible,
6665         IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
6666         IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
6667         IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
6668
6669 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
6670
6671         * time/tst-mktime.c: Include <stdlib.h>.  Use %d, not %ld format
6672         for EVENING69.  Include offsets in TZ environment variable.
6673
6674 2002-04-18  Ulrich Drepper  <drepper@redhat.com>
6675
6676         * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
6677         avoid compiler warnings.
6678
6679         * locale/programs/localedef.c (main): Always call
6680         construct_output_path.
6681
6682         * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
6683
6684         * locale/programs/locfile.c (to_archive): New variable.  To collect
6685         data which has to be added to the locale archive.
6686         (write_all_categories): Take new third parameter with locale name.
6687         Unless no_archive flag set add new locale data to the archive
6688         (write_locale_data): Unless no-archive flag set store generated data
6689         in to_archive data structure instead of generation output file.
6690         Add new parameter with locale category index.
6691         * locale/programs/locfile.h: Add new parameters in declaractions of
6692         write_all_categories and write_locale_data.
6693         * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
6694         --add-to-archive, and --delete-from-archive options.  Pass extra
6695         parameter to write_all_categories.
6696         * locale/programs/localedef.h: Add prototypes for functions in
6697         locarchive.c.
6698         * locale/locarchive.h: New file.
6699         * locale/programs/locarchive.c: New file.
6700         * locale/Makefile (distribute): Add programs/locarchive.c and
6701         locarchive.h.
6702         (localedef-modules): Add md5 and locarchive.
6703         Add vpath to crypt subdir for md5.c.
6704
6705         * locale/programs/ld-address.c: Pass locale category ID as new second
6706         parameter to write_locale_data.
6707         * locale/programs/ld-collate.c: Likewise.
6708         * locale/programs/ld-ctype.c: Likewise.
6709         * locale/programs/ld-identification.c: Likewise.
6710         * locale/programs/ld-measurement.c: Likewise.
6711         * locale/programs/ld-messages.c: Likewise.
6712         * locale/programs/ld-monetary.c: Likewise.
6713         * locale/programs/ld-name.c: Likewise.
6714         * locale/programs/ld-numeric.c: Likewise.
6715         * locale/programs/ld-paper.c: Likewise.
6716         * locale/programs/ld-telephone.c: Likewise.
6717         * locale/programs/ld-time.c: Likewise.
6718
6719         * locale/simple-hash.c: Move compute_hashval function from here...
6720         * locale/hashval.h: ...to here.  New file.
6721         * locale/simple-hash.h: Add prototype for compute_hashval.
6722
6723         * include/libintl.h: Minor cleanups.
6724
6725 2002-04-16  Ulrich Drepper  <drepper@redhat.com>
6726
6727         * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
6728
6729 2002-04-15  Ulrich Drepper  <drepper@redhat.com>
6730
6731         * include/sys/stat.h: Fix typo.  Patch by HJ Lu.
6732
6733 2002-04-14  Bruno Haible  <bruno@clisp.org>
6734
6735         * locale/programs/charmap.c (charmap_read): Don't access result if
6736         result == NULL.
6737
6738 2002-02-17  Andreas Schwab  <schwab@suse.de>
6739
6740         * elf/reldep7.c: New file.
6741         * elf/reldep7mod1.c: New file.
6742         * elf/reldep7mod2.c: New file.
6743         * elf/Makefile: Add rules to build and run reldep7.
6744
6745 2002-04-14  Jakub Jelinek  <jakub@redhat.com>
6746
6747         * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
6748         the end of the function.  Pass original flags to recursive call if
6749         add_dependency failed.
6750         (_dl_lookup_versioned_symbol): Likewise.
6751
6752 2002-04-13  Jakub Jelinek  <jakub@redhat.com>
6753
6754         * time/mktime.c (__mktime_internal): If year is 69, don't bail out
6755         early, but check whether it overflowed afterwards.
6756         * time/tst-mktime.c (main): Add new tests.
6757
6758 2002-04-14  Ulrich Drepper  <drepper@redhat.com>
6759
6760         * debug/xtrace.sh: Fix program name in help message.
6761         Patch by Roger Luethi <rl@hellgate.ch>.
6762
6763         * include/sys/stat.h: Add prototypes for __lxstat_internal and
6764         __lxstat64_internal.  Add macros __lxstat and __lxstat64 if not
6765         NOT_IN_libc.
6766         * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
6767         * sysdeps/mach/hurd/lxstat.c: Likewise.
6768         * sysdeps/unix/common/lxstat.c: Likewise.
6769         * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
6770         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
6771         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
6772         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6773         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
6774         * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
6775         * sysdeps/mach/hurd/lxstat64.c: Likewise.
6776         * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
6777         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
6778
6779         * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
6780         prototypes.  Add __mbrlen and __mbrtowc macros.
6781         * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
6782         * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
6783
6784         * include/unistd.h: Add prototype for __write_internal and add
6785         __libc_write macro is SHARED.
6786         * sysdeps/generic/write.c: Use INTDEF for __write.
6787         * sysdeps/mach/hurd/write.c: Likewise.
6788         * sysdeps/unix/sysv/aix/write.c: Likewise.
6789         * sysdeps/unix/syscalls.list: Add __libc_write alias.
6790
6791         * assert/assert.c: Replace STR_N_SIZE with something usable in
6792         macro arguments.
6793         * assert/assert-perr.c: Likewise.
6794
6795         * include/sys/socket.h: Declare __libc_sa_len_internal and define
6796         SA_LEN macro to use it if not NOT_IN_libc.
6797         * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
6798
6799         * include/fcntl.h: Declare __open_internal and define __open and
6800         __libc_open macros if not NOT_IN_libc.
6801         * sysdeps/generic/open.c: Use INTDEF for __open.
6802         * sysdeps/mach/hurd/open.c: Likewise.
6803         * sysdeps/unix/sysv/aix/open.c: Likewise.
6804         * sysdeps/unix/syscalls.list: Add __open_internal alias.
6805
6806         * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
6807         has correct number.
6808
6809         * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
6810         * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
6811         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
6812         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
6813
6814         * include/wctype.h: Declare __iswalpha_l_internal,
6815         __iswdigit_l_internal, __iswspace_l_internal,
6816         __iswxdigit_l_internal, and __iswctype_internal.  Define
6817         __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
6818         __iswxdigit_l macros if not NOT_IN_libc.
6819         * wctype/iswctype.c: Use INTDEF for __iswctype.
6820         * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
6821
6822         * include/math.h: Declare __isinf_internal, __isinfl_internal,
6823         __isnan_internal, and __isnanl_internal.
6824         * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
6825         __isnan, and __isnanl.
6826         * stdio-common/printf_size.c: Likewise.
6827         * sysdeps/generic/printf_fphex.c: Likewise.
6828         * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
6829         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
6830         * sysdeps/ia64/fpu/s_isinf.S: Likewise.
6831         * sysdeps/ia64/fpu/s_isnan.S: Likewise.
6832         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
6833         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
6834         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
6835         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
6836         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
6837         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
6838         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
6839         * sysdeps/m68k/s_isinfl.c: Likewise.
6840         * sysdeps/m68k/fpu/s_isinf.c: Likewise.
6841         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
6842
6843         * include/sys/time.h: Declare __gettimeofday_internal and define
6844         __gettimeofday macro if not NOT_IN_libc.
6845         * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
6846         * sysdeps/mach/gettimeofday.c: Likewise.
6847         * sysdeps/posix/gettimeofday.c: Likewise.
6848         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
6849         * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
6850         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
6851         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
6852
6853         * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
6854         and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
6855         Remove __lstat and __fstat inline functions.
6856         * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
6857         * sysdeps/mach/hurd/fxstat.c: Likewise.
6858         * sysdeps/unix/fxstat.c: Likewise.
6859         * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
6860         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
6861         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
6862         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
6863         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
6864         * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
6865         * sysdeps/mach/hurd/fxstat64.c: Likewise.
6866         * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
6867         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
6868
6869         * include/unistd.h: Declare __getpid_internal and define
6870         __getpid macro if not NOT_IN_libc.
6871         * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
6872         * sysdeps/generic/getpid.c: Likewise.
6873         * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
6874         * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
6875
6876         * include/unistd.h: Declare __getpgid_internal and define
6877         __getpgid macro if not NOT_IN_libc.
6878         * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
6879         * sysdeps/mach/hurd/getpgid.c: Likewise.
6880         * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
6881         * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
6882         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
6883         * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
6884
6885         * include/unistd.h: Declare __getpagesize_internal and define
6886         __getpagesize macro if not NOT_IN_libc.
6887         * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
6888         __getpagesize.
6889         * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
6890         * sysdeps/mach/getpagesize.c: Likewise.
6891         * sysdeps/posix/getpagesize.c: Likewise.
6892         * sysdeps/unix/getpagesize.c: Likewise.
6893         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
6894         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
6895         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
6896         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
6897
6898 2002-04-13  Andreas Jaeger  <aj@suse.de>
6899
6900         * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
6901         as clobber to reduce register pressure.
6902         (__strpbrk_cg): Likewise.
6903         (__mempcpy_by4): Likewise.
6904         (__strstr_cg): Likewise.
6905         Add prototype for __memrchr.
6906
6907 2002-04-13  Andreas Schwab  <schwab@suse.de>
6908
6909         * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
6910         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
6911         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
6912
6913 2002-04-13  Ulrich Drepper  <drepper@redhat.com>
6914
6915         * elf/do-lookup.h [!VERSIONED]: Add new parameter flags.  Use it to
6916         check whether the caller prefers getting the most recent version of
6917         a symbol of the earliest version.
6918         * elf/dl-lookup.c: Adjust all callers of do_lookup.  Change
6919         _dl_do_lookup to also take the new parameter and pass it on.
6920         Change 'explicit' parameter of _dl_lookup_symbol and
6921         _dl_lookup_versioned_symbol to flags.  Adjust tests.
6922         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
6923         * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
6924         _dl_lookup_versioned_symbol.
6925         * elf/dl-reloc.c: Likewise.
6926         * elf/dl-runtime.c: Likewise.
6927         * elf/dl-sym.c: Likewise.
6928         * sysdeps/mips/dl-machine.h: Likewise.
6929
6930 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
6931
6932         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
6933         in a token.
6934         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
6935
6936 2002-04-10  Andreas Jaeger  <aj@suse.de>
6937
6938         * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
6939
6940         * include/argz.h: Remove extra char from last patch.
6941
6942 2002-04-09  Ulrich Drepper  <drepper@redhat.com>
6943
6944         * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
6945         * sysdeps/unix/sysv/aix/chown.c: Likewise.
6946         * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
6947         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
6948         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
6949         * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
6950         __chown_internal.
6951         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
6952
6953         * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
6954         * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
6955         * intl/ngettext.c: Likewise.
6956
6957         * include/sys/socket.h: Declare __connect_internal and define
6958         __connect macro if not NOT_IN_libc.
6959         * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
6960         * sysdeps/unix/sysv/aix/connect.c: Likewise.
6961         * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
6962
6963         * include/unistd.h: Declare __close_internal and define __close macro
6964         if not NOT_IN_libc.
6965         * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
6966         WJUMP3): Add extra parenthesis to avoid expanding element names with
6967         macors like __close.
6968         * sysdeps/unix/syscalls.list: Add __close_internal alias.
6969
6970         * include/unistd.h: Declare __dup2_internal and define __dup2 macro
6971         if not NOT_IN_libc.
6972         * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
6973         * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
6974         * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
6975
6976         * include/unistd.h: Declare __fork_internal and define __fork macro
6977         if not NOT_IN_libc.
6978         * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
6979         * sysdeps/unix/sysv/aix/fork.c: Likewise.
6980         * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
6981
6982         * include/stdio_ext.h: Declare __fsetlocking_internal and define
6983         __fsetlocking macro to use it if not NOT_IN_libc.
6984         * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
6985
6986         * libio/__fbufsize.c: Correct copyright.
6987         * libio/__flbf.c: Likewise.
6988         * libio/__fpending.c: Likewise.
6989         * libio/__fpurge.c: Likewise.
6990         * libio/__freadable.c: Likewise.
6991         * libio/__freading.c: Likewise.
6992         * libio/__fsetlocking.c: Likewise.
6993         * libio/__fwritable.c: Likewise.
6994         * libio/__fwriting.c: Likewise.
6995
6996         * include/stdio.h: Declare __asprintf_internal and define __asprintf
6997         macro to use it if not NOT_IN_libc.
6998         * stdio-common/asprintf.c: Use INTDEF for __asprintf.
6999
7000         * include/mntent.h: Declare __setmntent_internal,
7001         __getmntent_r_internal, __endmntent_internal.  Define __setmntent,
7002         __getmntent_r, and __endmntent macros to use these functions if not
7003         NOT_IN_libc.
7004         * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
7005         __endmntent.
7006
7007         * include/math.h: Declare __finite_internal, __finitef_internal, and
7008         __finitel_internal.  Redefine isfinite macro if in libc or libm using
7009         these functions.
7010         * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
7011         * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
7012         * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
7013         * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
7014         * sysdeps/i386/fpu/s_finitef.S: Likewise.
7015         * sysdeps/i386/fpu/s_finitel.S: Likewise.
7016         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
7017         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
7018         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
7019         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
7020
7021         * include/fcntl.h: Declare __fcntl_internal.  Define __fcntl macro
7022         to use this function if not NOT_IN_libc.
7023         * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
7024         * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
7025         * sysdeps/mach/hurd/fcntl.c: Likewise.
7026         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
7027         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
7028
7029         * include/argz.h: Declare __argz_count_internal and
7030         __argz_stringify_internal.
7031         * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
7032         __argz_stringify.
7033         * string/argz-count.c: Use INTDEF for __argz_count.
7034         * string/argz-stringify.c: Use INTDEF for __argz_stringify.
7035
7036         * include/stdlib.h: Declare __cxa_atexit_internal and define
7037         __cxa_atexit macro if not NOT_IN_libc.
7038         * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
7039         * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
7040
7041         * assert/assert.c: Use INTDEF for __assert_fail.
7042         * assert/__assert.c: Use INTUSE for call to __assert_fail.
7043         * include/assert.h: Declare __assert_fail_internal.
7044
7045         * extra-lib.mk: Mark assignment to lib with override.
7046
7047 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7048
7049         * Makerules: Use cppflags-iterator.mk to add defines for all test
7050         source files.
7051
7052 2002-04-08  kaz Kojima  <kkojima@rr.iij4u.or.jp>
7053
7054         * elf/elf.h: Define R_SH_TLS_xxx macros.
7055         * elf/rtld.c: Remove an extra parenthesis.
7056         * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
7057         TLS_GD macros.
7058         * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
7059         * sysdeps/sh/dl-lookupcfg.h: New file.
7060         * sysdeps/sh/dl-tls.h: New file.
7061         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
7062         ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
7063         (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
7064         R_SH_TLS_TPOFF32 relocations.
7065
7066 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7067
7068         * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
7069         of NOT_IN_LIBC.
7070         * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
7071         * include/stdlib.h: Likewise.
7072
7073 2002-04-08  Jakub Jelinek  <jakub@redhat.com>
7074
7075         * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
7076         instead of _RTLD_LOCAL.
7077         * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
7078         * include/unistd.h: Likewise.
7079         * sysdeps/generic/ldsodefs.h: Likewise.
7080
7081         * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
7082         if in libc or ld.so.
7083
7084 2002-04-08  Andreas Jaeger  <aj@suse.de>
7085
7086         * elf/cache.c (print_entry): Support x86-64.
7087
7088 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7089
7090         * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
7091         with one accessing the locale data structures directly.
7092         * stdio-common/printf-prs.c: Include localeinfo.h for new
7093         MB_CUR_MAX definition.
7094
7095         * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
7096         is the name of the source file without extension.
7097         * Makefile (distribute): Add cppflags-iterator.mk.
7098         * cppflags-iterator.mk: New file.
7099         * extra-lib.mk: For the sources of the library run
7100         cppflags-iterator.mk.
7101
7102         * include/libintl.h: Declare __dcgettext_internal and
7103         _libc_intl_domainname_internal.  Define __dcgettext using these
7104         two symbols if used in libc itself.
7105         * argp/argp-help.c: Define dgettext using __dcgettext_internal and
7106         _libc_intl_domainname_internal.
7107         * argp/argp-parse.c: Likewise.
7108         * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
7109         * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
7110         * intl/gettext.c: Likewise.
7111         * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
7112         alias.
7113         * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
7114         __dcgettext.
7115         * posix/regex_internal.c (gettext): Likewise.
7116
7117 2002-04-08  Andreas Jaeger  <aj@suse.de>
7118
7119         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
7120
7121         * sysdeps/x86_64/fpu/s_llrint.S: New file.
7122         * sysdeps/x86_64/fpu/s_llrintf.S: New file.
7123         * sysdeps/x86_64/fpu/s_llrintl.S: New file.
7124         * sysdeps/x86_64/fpu/s_lrint.S: New file.
7125         * sysdeps/x86_64/fpu/s_lrintf.S: New file.
7126         * sysdeps/x86_64/fpu/s_lrintl.S: New file.
7127
7128 2002-04-08  Roland McGrath  <roland@frob.com>
7129
7130         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
7131         widening __hurd_fail value.
7132
7133 2002-04-07  Roland McGrath  <roland@frob.com>
7134
7135         * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
7136         <mach/machine/alpha_instruction.h>.
7137         (_hurd_setup_sighandler): Take proper arguments for current decls.
7138         Update code to use _hurdsig_catch_fault.
7139         Use `callsys' instruction instead of `call_pal'.
7140         * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
7141
7142         * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
7143         (ALIGN, at, AT, fp): New macros.
7144
7145 2002-04-06  Roland McGrath  <roland@frob.com>
7146
7147         * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
7148
7149         * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
7150         (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
7151
7152         * sysdeps/mach/hurd/bind.c: Use prototype definition.
7153         * sysdeps/mach/hurd/connect.c: Likewise.
7154         * sysdeps/mach/hurd/getsockopt.c: Likewise.
7155         * sysdeps/mach/hurd/setsockopt.c: Likewise.
7156
7157         * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
7158         __msg_sig_post RPC.
7159
7160         * hurd/catch-exc.c: Use integer_t instead of int.
7161         * hurd/hurdfault.c: Likewise.
7162
7163         * sysdeps/mach/hurd/alpha/exc2signal.c
7164         (_hurd_exception2signal): Rewritten.
7165         * sysdeps/mach/hurd/alpha/longjmp-ts.c
7166         (_hurd_longjmp_thread_state): Rewritten.
7167
7168 2002-04-07  Ulrich Drepper  <drepper@redhat.com>
7169
7170         * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
7171         DB_LOOKUP_FCT prototype.
7172         * nss/getXXent_r.c: Likewise.
7173         * inet/getaliasent_r.c: Define NSS_attribute_hidden.
7174         * inet/getaliasname_r.c: Likewise.
7175         * inet/getnetbyad_r.c: Likewise.
7176         * inet/getnetbynm_r.c: Likewise.
7177         * inet/getnetent_r.c: Likewise.
7178         * inet/getproto_r.c: Likewise.
7179         * inet/getprtent_r.c: Likewise.
7180         * inet/getprtname_r.c: Likewise.
7181         * inet/getrpcbyname_r.c: Likewise.
7182         * inet/getrpcbynumber_r.c: Likewise.
7183         * inet/getrpcent_r.c: Likewise.
7184         * inet/getservent_r.c: Likewise.
7185         * inet/getsrvbynm_r.c: Likewise.
7186         * inet/getsrvbypt_r.c: Likewise.
7187         * shadow/getspent_r.c: Likewise.
7188         * shadow/getspnam_r.c: Likewise.
7189
7190         * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
7191
7192         * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
7193         Use i686-friendly PIC code.
7194         * sysdeps/i386/elf/setjmp.S: Likewise.
7195
7196         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
7197
7198         * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
7199         list.
7200         * elf/Versions: Remove it here.
7201
7202 2002-04-06  Ulrich Drepper  <drepper@redhat.com>
7203
7204         * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
7205         direction.  Reported by H . J . Lu <hjl@lucon.org>.
7206
7207 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
7208
7209         * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
7210         test just before the test runs.
7211         * intl/tst-translit.sh: Likewise.
7212         * intl/tst-codeset.sh: Likewise.
7213
7214         * timezone/zic.c: Update from tzcode2002c.
7215         * timezone/asia: Update from tzdata2002c.
7216         * timezone/backward: Likewise.
7217         * timezone/europe: Likewise.
7218         * timezone/northamerica: Likewise.
7219         * timezone/northamerica: Likewise.
7220         * timezone/northamerica: Likewise.
7221         * timezone/southamerica: Likewise.
7222         * timezone/zone.tab: Likewise.
7223
7224 2002-03-23  Jakub Jelinek  <jakub@redhat.com>
7225
7226         * sysdeps/generic/brk.c (__curbrk): Declare.
7227         * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
7228         * sysdeps/generic/dl-sbrk.c: Likewise.
7229         * sysdeps/unix/arm/dl-brk.S: New file.
7230         * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
7231         * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
7232         * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
7233         * sysdeps/unix/bsd/vax/dl-brk.S: New file.
7234         * sysdeps/unix/i386/dl-brk.S: New file.
7235         * sysdeps/unix/mips/dl-brk.S: New file.
7236         * sysdeps/unix/sparc/dl-brk.S: New file.
7237         * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
7238         * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
7239         * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
7240         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
7241
7242 2002-04-03  Andreas Schwab  <schwab@suse.de>
7243
7244         * Makefile (headers): Add gnu/lib-names.h here instead of
7245         install-others.
7246         ($(inst_includedir)/gnu/lib-names.h): Remove explicit
7247         installation rule.
7248         (install-headers): Add dependency on install-headers-nosubdir.
7249         * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
7250         instead of install-others.
7251         ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
7252         installation rule.
7253
7254 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
7255
7256         * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
7257         Reported by Sam Roberts <sroberts@uniserve.com>.
7258
7259 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
7260
7261         * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
7262         l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
7263         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7264         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7265
7266 2002-04-03  David Mosberger  <davidm@hpl.hp.com>
7267
7268         * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
7269         (RTLD_START): Ditto.
7270         (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
7271         dependency violation.
7272
7273 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
7274
7275         * time/mktime.c (__mktime_internal): Move check for year < 70 below
7276         all variable declarations.
7277
7278 2002-04-04  Andreas Schwab  <schwab@suse.de>
7279
7280         * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
7281
7282 2002-04-04  Andreas Jaeger  <aj@suse.de>
7283
7284         * sysdeps/x86_64/fpu/e_sqrt.c: New file.
7285         * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
7286
7287         * sysdeps/x86_64/fpu/s_fabs.c: New file.
7288         * sysdeps/x86_64/fpu/s_fabsf.c: New file.
7289         * sysdeps/x86_64/fpu/s_fabsl.c: New file.
7290
7291         * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
7292
7293         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
7294
7295         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
7296         * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
7297
7298         * configure.in: Handle all mips entries the same.
7299
7300         * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
7301         * sysdeps/mips/mips3/*: Likewise.
7302         * sysdeps/mips/p40/bits/endian.h: Likewise.
7303
7304 2002-04-04  Ulrich Drepper  <drepper@redhat.com>
7305
7306         * misc/dirname.c (dirname): Ignore trailing slashes at end of
7307         non-null result [PR libc/2600].
7308
7309         * misc/tst-dirname.c: Add more tests.
7310
7311 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
7312
7313         * locale/programs/charmap.c (charmap_read): If the charmap doesn't
7314         define a code_set_name provide one based on the filename.
7315
7316         * malloc/hooks.c: Define weak_variable correctly for _LIBC.
7317
7318 2001-12-28  Andreas Jaeger  <aj@suse.de>
7319
7320         * time/mktime.c (__mktime_internal): Check for year < 70
7321         [PR libc/2738].
7322
7323 2002-04-03  Andreas Jaeger  <aj@suse.de>
7324
7325         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
7326         shmat.
7327         Reported by Andi Kleen <ak@suse.de>.
7328
7329 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
7330
7331         * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
7332         * sysdeps/generic/w_lgammaf.c: Likewise.
7333         * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
7334
7335         * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
7336         Adjust for new output format of the backtrace functions.
7337
7338         * misc/syslog.c (vsyslog): Only use cleanup handler if
7339         _LIBC_REENTRANT is defined [PR libc/2924].
7340
7341         * libio/Makefile (tests): Add bug-ungetwc2.
7342         * libio/bug-ungetwc2.c: New file.
7343
7344         * manual/install.texi: Typographical and grammatical cleanup.
7345         Patch by Dennis Grace <dgrace@us.ibm.com>.
7346
7347         * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
7348         parameter if mtflag.  Patch by <jeongyun@innovay.com>.
7349
7350         * sunrpc/rpc_svcout.c (printif): Remove third parameter.  It was
7351         always "&".  Adjust callers.
7352         Add "_" prefix to several generated definitions.
7353         Patch by paul@serice.net [PR libc/3158].
7354
7355 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7356
7357         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
7358         size of _dl_arm_cap_flags.
7359         Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
7360
7361         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
7362         Define as 8.
7363
7364 2002-03-22  H.J. Lu  <hjl@gnu.org>
7365
7366         * scripts/firstversions.awk: Check the first version.
7367
7368 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7369
7370         * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
7371         dependencies must be stable to work correctly.
7372         Reported by martin.lubich@datacon.at.
7373
7374         * libio/bug-ungetwc1.c: New file.
7375         * libio/Makefile (tests): Add bug-ungetwc1.
7376
7377         * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
7378         if stream was last used for writing.
7379
7380         * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
7381         number [PR libc/3111].
7382
7383         * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
7384         to ...
7385         * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
7386
7387 2002-04-02  Jakub Jelinek  <jakub@redhat.com>
7388
7389         * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
7390         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
7391         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
7392         * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
7393         * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
7394
7395 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
7396
7397         * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
7398         dynamic tags.
7399
7400 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
7401
7402         * sysdeps/i386/fpu/s_fabs.S: New file.
7403         * sysdeps/i386/fpu/s_fabsf.S: New file.
7404         * sysdeps/i386/fpu/s_fabsl.S: New file.
7405         * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
7406         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
7407         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
7408
7409 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7410
7411         * rt/tst-shm.c (do_test): Add one more test for size of shared
7412         memory object.
7413
7414 2002-03-29  Wolfram Gloger  <wg@malloc.de>
7415
7416         * malloc/malloc.c: Add short description and prototypes for
7417         malloc_get_state, malloc_set_state and posix_memalign, for
7418         consistency and to avoid warnings with -Wstrict-prototypes.
7419         Reported by Andreas Jaeger <aj@suse.de>.
7420
7421 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7422
7423         * po/gl.po: Update from translation team.
7424
7425 2002-03-31  Roland McGrath  <roland@frob.com>
7426
7427         * hurd/hurdselect.c (_hurd_select): Fix
7428         MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
7429         Use a union rather than casts to compare mach_msg_type_t as int.
7430
7431 2002-03-25  Roland McGrath  <roland@frob.com>
7432
7433         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
7434         check off the end of NAME when it's shorter than 2 chars.
7435         Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
7436
7437 2002-03-17  Roland McGrath  <roland@frob.com>
7438
7439         * sysdeps/mach/hurd/i386/sys/io.h: New file.
7440         * sysdeps/mach/hurd/i386/ioperm.c: New file.
7441         * sysdeps/mach/hurd/i386/Dist: Add them.
7442         * sysdeps/mach/hurd/i386/Versions
7443         (libc: GLIBC_2.2.6): New set, add ioperm.
7444         * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
7445         (mach_interface_list): Check for mach_i386.defs.
7446         * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
7447         * sysdeps/mach/configure: Regenerated.
7448
7449 2002-03-22  Ulrich Drepper  <drepper@redhat.com>
7450
7451         * po/fr.po: Update from translation team.
7452
7453 2002-03-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7454
7455         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
7456         getpriority from syscalls list.
7457
7458 2002-03-28  Andreas Jaeger  <aj@suse.de>
7459
7460         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
7461         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
7462         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
7463         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
7464
7465 2002-03-27  Andreas Jaeger  <aj@suse.de>
7466
7467         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7468         sigcontext): Follow further kernel change.
7469
7470         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
7471         kernel change.
7472
7473         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
7474         Change for struct sigcontext change.
7475
7476         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7477         Follow changes in struct sigcontext.
7478
7479         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
7480         sysycall, use wrapper instead.
7481
7482 2002-03-26  Andreas Jaeger  <aj@suse.de>
7483
7484         * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
7485         read and write accesses as detailed as possible.
7486         (__memcpy_by2): Likewise.
7487         (__memcpy_g): Likewise.
7488         (memmove): Likewise.
7489         (memcmp): Likewise.
7490         (__memset_ccn_by4): Likewise.
7491         (__memset_ccn_by2): Likewise.
7492         (__memset_gcn_by4): Likewise.
7493         (__memset_gcn_by2): Likewise.
7494         (memchr): Likewise.
7495         (__memrchr): Likewise.
7496         (rawmemchr): Likewise.
7497         (__strlen_g): Likewise.
7498         (__strcpy_g): Likewise.
7499         (__mempcpy_by4): Likewise.
7500         (__mempcpy_by2): Likewise.
7501         (__mempcpy_byn): Likewise.
7502         (__stpcpy_g): Likewise.
7503         (__strncpy_by4): Likewise.
7504         (__strncpy_by2): Likewise.
7505         (__strncpy_byn): Likewise.
7506         (__strncpy_gg): Likewise.
7507         (__strcat_c): Likewise.
7508         (__strcat_g): Likewise.
7509         (__strncat_g): Likewise.
7510         (__strcmp_gg): Likewise.
7511         (__strncmp_g): Likewise.
7512         (__strchr_c): Likewise.
7513         (__strchr_g): Likewise.
7514         (__strchrnul_c): Likewise.
7515         (__strchrnul_g): Likewise.
7516         (__strrchr_c): Likewise.
7517         (__strrchr_g): Likewise.
7518         (__strrchr_c): Likewise.
7519         (__strrchr_g): Likewise.
7520         (__strcspn_c1): Likewise.
7521         (__strcspn_cg): Likewise.
7522         (__strcspn_g): Likewise.
7523         (__strcspn_g): Likewise.
7524         (__strspn_c1): Likewise.
7525         (__strspn_cg): Likewise.
7526         (__strspn_g): Likewise.
7527         (__strspn_g): Likewise.
7528         (__strpbrk_cg): Likewise.
7529         (__strpbrk_g): Likewise.
7530         (__strstr_cg): Likewise.
7531         (__strstr_g): Likewise.
7532
7533         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo.  Reported by
7534         Michal Ludvig <mludvig@suse.cz>.
7535
7536         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
7537         compatibilty, adjust for kernel changes.
7538
7539         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7540         sigcontext): Adjust for kernel changes.
7541
7542 2002-03-25  Andreas Jaeger  <aj@suse.de>
7543
7544         * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
7545         little endian.
7546         Reported by Artur Zaprzala <zybi@talex.com.pl>.
7547
7548 2002-03-24  Andreas Jaeger  <aj@suse.de>
7549
7550         * manual/memory.texi (Aligned Memory Blocks): Fix typo.
7551
7552         * stdio-common/tst-fdopen.c (main): Remove unused variable.
7553
7554         * iconv/tst-iconv3.c (main): Use correct printf strings.
7555
7556 2002-03-18  Roland McGrath  <roland@frob.com>
7557
7558         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
7559         (CMGROUP_MAX): New macro.
7560
7561 2002-03-23  Roland McGrath  <roland@frob.com>
7562
7563         * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
7564         * sysdeps/posix/shm_unlink.c: Likewise.
7565
7566 2002-03-22  Roland McGrath  <roland@frob.com>
7567
7568         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
7569         * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
7570         under --enable-libio.
7571         * sysdeps/mach/hurd/configure: Regenerated.
7572
7573 2002-03-23  Roland McGrath  <roland@frob.com>
7574
7575         * sysdeps/mach/hurd/i386/Makefile
7576         (sysdep_routines, shared-only-routines): Don't add framestate,
7577         reverting 2001-10-02 change.
7578         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
7579         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
7580         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
7581         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
7582         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
7583         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
7584         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
7585         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
7586         * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
7587         Do it here instead, only if [$(unwind-find-fde) = yes].
7588
7589 2002-03-23  Andreas Jaeger  <aj@suse.de>
7590
7591         * signal/signal.h: Fix typo. Patch by Steve Kemp
7592         <skx@tardis.ed.ac.uk>.
7593
7594 2002-03-22  Andreas Jaeger  <aj@suse.de>
7595
7596         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
7597         getresuid.
7598
7599         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7600         _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
7601         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7602         user_fpregs_struct): Rename fwd.
7603
7604         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7605         Follow sigcontext changes.
7606
7607 2002-03-22  Andreas Jaeger  <aj@suse.de>
7608
7609         * sysdeps/mips/bits/nan.h: New file.  Copy from generic one with
7610         changes for NaNs on MIPS.
7611         Patch by Hartvig Ekner <hartvige@mips.com>.
7612
7613 2002-03-21  Ulrich Drepper  <drepper@redhat.com>
7614
7615         * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
7616         Use realloc if too large.
7617         (addgrbyid): Likewise.
7618         * nscd/hstcache.c (addhstbyname): Likewise.
7619         (addhstbyaddr): Likewise.
7620         (addhstbynamev6): Likewise.
7621         (addhstbyaddrv6): Likewise.
7622         * nscd/pwdcache.c (addpwbyname): Likewise.
7623         (addpwbyuid): Likewise.
7624
7625 2002-03-21  Andreas Jaeger  <aj@suse.de>
7626
7627         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7628         _fpstate): Add separate struct for x86-64.
7629
7630         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7631         user_fpregs_struct): Change member names to follow kernel.
7632
7633 2002-03-20  Ulrich Drepper  <drepper@redhat.com>
7634
7635         * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
7636         Correctly close the UDP connection right away [PR libc/3120].
7637
7638 2002-03-20  Andreas Jaeger  <aj@suse.de>
7639
7640         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7641         user_fpregs_struct): Fix for changed kernel struct.
7642         (struct user_regs_struct): Likewise.
7643         (struct user): Likewise.
7644         Add 32-bit x86 compatibility.
7645
7646         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
7647
7648 2002-03-19  Andreas Jaeger  <aj@suse.de>
7649
7650         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
7651
7652 2002-03-18  Andreas Jaeger  <aj@suse.de>
7653
7654         * iconvdata/Makefile: Only run tests when shared libs are
7655         available.
7656
7657 2002-03-17  Andreas Jaeger  <aj@suse.de>
7658
7659         * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
7660
7661         * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
7662
7663         * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
7664         bits.
7665
7666         * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New macro.
7667         (CAUSE_SHIFT): New macro.
7668         Patch by Hartvig Ekner <hartvige@mips.com>.
7669
7670         * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
7671         * sysdeps/generic/unwind-pe.h: Likewise.
7672
7673         * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
7674         type to _IO_setb.
7675
7676         * libio/stdio.c (AL2): Define variant when visibility attribute is
7677         not supported.
7678
7679         * include/libc-symbols.h (_INTVARDEF): Define variant when
7680         visibility attribute is not supported.
7681
7682 2002-03-16  Ulrich Drepper  <drepper@redhat.com>
7683
7684         * po/fr.po: Update from translation team.
7685
7686 2002-02-25  Bruno Haible  <bruno@clisp.org>
7687
7688         * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
7689
7690 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
7691
7692         * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
7693         buffers if _IO_file_attach failed.
7694
7695         * libio/fileops.c (_IO_file_open): Close file descriptor if
7696         _IO_SEEKOFF call failed.
7697
7698 2002-03-15  H.J. Lu  <hjl@gnu.org>
7699             Ulrich Drepper  <drepper@redhat.com>
7700
7701         * configure.in: Check for availability of
7702         init_array/fini_array/preinit_array handling in binutils.
7703         * config.h.in (HAVE_INITFINI_ARRAY): New macro.
7704         * config.make.in (have-initfini-array): New variable.
7705
7706 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
7707
7708         * stdio-common/tst-printf.c (main): Comment out one test which
7709         checked the compiler's ability to fold floating-point constants
7710         but not really printf.
7711         (rfg3): Make s const.
7712         * stdio-common/tst-printf.sh: Adjust for removed test.
7713
7714         * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
7715         internal function.  Adjust for internal_function calling convention.
7716         * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
7717         as internal_function.
7718
7719         * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
7720         hidden.
7721
7722         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
7723         declaration and definition.
7724         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
7725         declaration.
7726         * nss/getXXent_r.c: Likewise.
7727         * nss/nsswitch.h (db_lookup_function): Add internal_function to
7728         definition.
7729
7730         * include/time.h: Declare __localtime_r as hidden.
7731
7732         * include/aliases.h: Declare __getaliasent_r as hidden.
7733         * include/grp.h: Declare __getgrent_r as hidden.
7734         * include/netdb.h: Declare __gethostent_r, __getnetent_r,
7735         __getservent_r, and __getprotoent_r as hidden.
7736         * include/pwd.h: Declare __getpwent_r as hidden.
7737         * include/shadow.h: Declare __getspent_r as hidden.
7738         * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
7739
7740         * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
7741         and __gconv_transliterate as hidden.
7742         Add internal_function to __gconv_get_path declaration.
7743         * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
7744         definition.  Add attribute_hidden to __gconv_read_conf definition.
7745
7746 2002-03-14  Ulrich Drepper  <drepper@redhat.com>
7747
7748         * elf/rtld.c: Declare _environ as hidden.
7749         * sysdeps/generic/dl-environ.c: Likewise.
7750         * sysdeps/generic/dl-sysdep.c: Likewise.
7751
7752         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
7753         _dl_mcount_internal as hidden.
7754
7755         * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
7756         * sysdeps/generic/dl-brk.c: New file.
7757         * sysdeps/generic/dl-sbrk.c: New file.
7758         * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
7759         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
7760
7761         * elf/dl-minimal.c (malloc): Declare _end as hidden.
7762         (__errno_location): New function.  Declare errno as hidden.
7763         * elf/rtld.c (_dl_argc): Define as hidden.
7764         (_dl_skip_args): Define as hidden.
7765         (_begin, _end): Declare as hidden.
7766         * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
7767         * sysdeps/generic/entry.h (_start): Declare as hidden.
7768         * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
7769         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
7770         _dl_runtime_resolve and _dl_runtime_profile as hidden.
7771         (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
7772
7773 2002-03-14  Roland McGrath  <roland@frob.com>
7774
7775         * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
7776
7777         * Makeconfig (%.v.i, %.v): New implicit rules.
7778         (preprocess-versions): Variable removed.
7779         ($(common-objpfx)shlib-versions.v.i): New target giving just the
7780         shlib-versions input files as dependencies.
7781         ($(common-objpfx)soversions.i): Depend on that instead of the input
7782         files.  Use it as input instead of using a pipeline.
7783         (postclean-generated): Append soversions.i, shlib-versions.v, and
7784         shlib-versions.v.i here.
7785         * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
7786         the Versions.def input files as dependencies.
7787         ($(common-objpfx)Versions.v.i): Likewise for Versions files.
7788         ($(common-objpfx)Versions.all): Depend on that instead of the input
7789         files.  Use it as input instead of using a pipeline.
7790         ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
7791         (postclean-generated): Append those .v and .v.i files here.
7792
7793 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
7794
7795         * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
7796         * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
7797         Remove.
7798
7799 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
7800
7801         * sysdeps/generic/mp_clz_tab.c: New file.
7802         * sysdeps/i386/mp_clz_tab.c: New file.
7803         * sysdeps/hppa/mp_clz_tab.c: New file.
7804         * sysdeps/powerpc/mp_clz_tab.c: New file.
7805         * stdlib/Makefile (aux): Revert last patch.
7806         * math/Makefile (gmp-objs): Likewise.
7807
7808 2002-03-13  Paul Eggert  <eggert@twinsun.com>
7809
7810         * time/strftime.c: Comment fixes for references to obsolescent
7811         standards, In most cases the simplest fix is to remove the
7812         confusing comments.  Cross-referencing all the standards properly
7813         is a bit of a pain, and it should be enough to put that info in
7814         the documentation as I did in my recent time.texi patch.
7815
7816 2002-03-13  Paul Eggert  <eggert@twinsun.com>
7817
7818         * manual/time.texi (Formatting Calendar Time):
7819         ISO C99 also specifies the E and O modifiers.
7820         %P is a GNU extension, and is not in ISO C99.
7821         Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
7822         %T is also in ISO C99.
7823         The RFC 822 example is not valid in arbitrary locales.
7824         Reword the POSIX.2 wording slightly, to make it a bit clearer
7825         that POSIX.2 formats are also supported by later POSIX versions.
7826         If a format was introduced in ISO C99 it is also required by
7827         POSIX.1-2001.
7828
7829 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
7830
7831         * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
7832         _sys_nerr_internal with INTVARDEF2.
7833         * include/libc-symbols.h (INTVARDEF2): New macro.
7834         * include/stdio.h (_sys_errlist_internal): Declare as hidden.
7835         (_sys_nerr_internal): Library.
7836
7837         * sysdeps/posix/signal.c (_sigintr): Define as hidden.
7838         * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
7839
7840         * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
7841
7842 2002-03-13  Wolfram Gloger  <wg@malloc.de>
7843
7844         * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
7845
7846 2002-03-02  Andreas Schwab  <schwab@suse.de>
7847
7848         * stdio-common/vfprintf.c (process_arg): Fix decimal format with
7849         'h' flag and positional arg.
7850         * stdio-common/tst-printf.c (rfg3): New function to test
7851         positional arguments.
7852         (main): Fix some warnings.
7853
7854 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
7855
7856         * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
7857         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
7858
7859 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
7860
7861         * grp/initgroups.c (__nss_group_data): Declare as hidden.
7862
7863         * include/locale.h (_nl_C_locobj): Declare as hidden.
7864
7865         * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
7866         * time/strptime.c (_nl_C_LC_TIME): Likewise.
7867
7868         * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
7869
7870         * include/sys/gmon.h: Declare _gmonparam as hidden.
7871
7872         * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
7873         (__ctype32_wctrans): Likewise.
7874         (__ctype32_width): Likewise.
7875
7876         * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
7877         use of __ttyname.
7878
7879         * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
7880         Define as hidden.
7881         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Define as
7882         hidden.  Change all users of these variables.
7883
7884         * posix/regex_internal.h (__re_error_msgid): Renamed from
7885         re_error_msgid.  Declare as hidden.
7886         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Declare as
7887         hidden.
7888
7889         * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
7890         (__printf_function_table): Likewise.
7891         * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
7892         hidden.
7893         (__printf_function_table): Likewise.
7894
7895         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
7896         __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
7897
7898         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
7899         * nss/nsswitch.c: Declare _nss_*_database as hidden.
7900
7901         * stdlib/wctomb.c (__no_r_state): Declare as hidden.
7902         * stdlib/mbtowc.c (__no_r_state): Define as hidden.
7903
7904 2002-03-12  Ulrich Drepper  <drepper@redhat.com>
7905
7906         * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
7907         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
7908         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
7909         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
7910         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
7911         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
7912         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
7913         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
7914         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
7915         _nl_C_LC_CTYPE_width: Declare as hidden.
7916         * include/locale.h: Declare _nl_locale_file_list.
7917         * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
7918         * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
7919         * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
7920         * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
7921         * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
7922         * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
7923         * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
7924         * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
7925         * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
7926         * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
7927         * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
7928         * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
7929         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
7930         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
7931         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
7932         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
7933         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
7934         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
7935         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
7936         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
7937         _nl_C_LC_CTYPE_width, and as hidden.
7938         * locale/findlocale.c: Declare _nl_C as hidden.
7939         * locale/newlocale.c: Likewise.
7940         * locale/setlocale.c: Define _nl_C as hidden.  Remove declaration of
7941         _nl_locale_file_list.
7942         * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
7943         _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
7944         Define _nl_C_locobj as hidden.
7945
7946         * malloc/mtrace.c (_mtrace_file): Define as hidden.
7947         (_mtrace_line): Likewise.
7948
7949         * include/time.h: Declare __mon_yday as hidden.
7950         * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
7951
7952         * libio/libioP.h: Declare __libio_codecvt as hidden.
7953         * libio/fileops.c: Declare __libio_translit as hidden.
7954         * libio/iofwide.c: Define __libio_translit as hidden.
7955
7956         * login/getutent_r.c: Define __libc_utmp_lock as hidden.
7957         * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
7958         * login/getutline_r.c: Likewise.
7959         * login/utmpname.c: Likewise.
7960
7961         * login/utmp-private.h: Declare __libc_utmp_file_functions,
7962         __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
7963         __libc_utmp_file_name as hidden.
7964
7965         * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
7966         * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
7967         * locale/freelocale.c: Likewise.
7968         * locale/lc-time.c: Likewise.
7969
7970         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
7971         (__libc_ptyname2): Likewise.
7972         * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
7973         hidden.
7974         (__libc_ptyname2): Likewise.
7975
7976         * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
7977         * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
7978         * sysdeps/generic/init-first.c: Likewise.
7979         * sysdeps/i386/init-first.c: Likewise.
7980         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
7981         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
7982         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
7983         * sysdeps/sh/init-first.c: Likewise.
7984         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
7985         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
7986
7987         * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
7988         (_itowa_upper_digits): Likewise.
7989
7990         * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
7991         * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
7992         as hidden.
7993
7994         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
7995         _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
7996         _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
7997         _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
7998
7999         * gmon/gmon.c (__bb_head): Define as hidden.
8000         * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
8001
8002         * argp/argp-parse.c (_argp_hang): Define as static.
8003
8004         * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
8005         handling in latest compilers.
8006
8007         * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
8008         define alias.
8009         * libio/fileops.c (_IO_file_jumps): Likewise.
8010         * libio/stdfiles.c (_IO_list_all): Likewise.
8011         * libio/wfileops.c (_IO_wfile_jumps): Likewise.
8012
8013         * malloc/malloc.h: Move __libc_malloc_initialized declaration to
8014         include/malloc.h.
8015         * include/malloc.h: Add __libc_malloc_initialized declaration
8016         here.  Mark variable hidden.
8017         * malloc/malloc.c: Include <malloc.h> not "malloc.h".
8018
8019         * elf/dl-open.c (__libc_argc): Declare as hidden.
8020         (__libc_argv): Likewise.
8021         * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
8022         (__libc_argv): Likewise.
8023         * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
8024         __libc_argv as hidden.
8025         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8026         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8027         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8028         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8029
8030         * include/stdlib.h (__libc_drand48_data): Declare as hidden.
8031         * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
8032         * stdlib/erand48.c: Likewise.
8033         * stdlib/jrand48.c: Likewise.
8034         * stdlib/lcong48.c: Likewise.
8035         * stdlib/lrand48.c: Likewise.
8036         * stdlib/mrand48.c: Likewise.
8037         * stdlib/nrand48.c: Likewise.
8038         * stdlib/seed48.c: Likewise.
8039         * stdlib/srand48.c: Likewise.
8040
8041         * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
8042         (_itoa_lower_digits_internal): New declaration.
8043         (_itoa_upper_digits_internal): New declaration.
8044         (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
8045         * stdio-common.h (_itoa_lower_digits_internal): New declaration.
8046         (_itoa_upper_digits_internal): New declaration.
8047         (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
8048         _itoa_lower_digits.
8049         * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
8050         * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
8051
8052         * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
8053         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
8054
8055         * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
8056         (_itowa_lower_digits): Likewise.
8057         (_itowa_upper_digits): Likewise.
8058         * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
8059         (_itowa_upper_digits): Likewise.
8060
8061         * intl/plural-exp.h (attribute_hidden): Define as empty macro if
8062         not already defined.
8063         (GERMANIC_PLURAL): Declare as hidden.
8064
8065         * posix/getopt.c (__getopt_initialized): Declare as hidden.
8066         (attribute_hidden): Define as empty macro if not already defined.
8067
8068         * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
8069         (__gconv_max_path_elem_len): Likewise.
8070         (__gconv_path_envvar): Likewise.
8071
8072         * math/Makefile (gmp-objs): Remove mp_clz_tab.
8073         * stdlib/Makefile (aux): Remove mp_clz_tab.
8074         * stdlib/mp_clz_tab.c: Removed.  Not needed anywhere.
8075
8076         * stdlib/exit.h (__exit_funcs): Declare as hidden.
8077
8078         * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
8079
8080         * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
8081         _nl_category_names, _nl_category_name_sizes, _nl_current,
8082         _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
8083
8084         * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
8085         (_nl_current_default_domain): Likewise
8086         (_nl_state_lock): Likewise.
8087         * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
8088         (_nl_current_default_domain): Likewise
8089         (_nl_state_lock): Likewise.
8090         * intl/bindtextdom.c (_nl_state_lock): Likewise.
8091
8092         * stdlib/fpioconst.h (__tens): Add attribute_hidden.
8093         (_fpioconst_pow10): Likewise.
8094
8095         * include/time.h (_tmbuf): Add attribute_hidden.
8096
8097         * time/tzset.c (tzstring_list): Define as static.
8098
8099         * include/time.h: Add attribute_hidden to __tzname_cur_max and
8100         __use_tzfile declaration.
8101
8102         * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
8103         and __wcsmbs_last_locale declaration.
8104
8105 2002-02-25  Paul Eggert  <eggert@twinsun.com>
8106
8107         * timezone/Makefile (tzbases): Move systemv from here...
8108         (tzlinks): to here, since the entries in systemv were all changed
8109         from Zone to Link lines in tz-2001a.  Bug reported (and patch
8110         tested) by Peter Breitenlohner.
8111
8112 2002-03-07  Jakub Jelinek  <jakub@redhat.com>
8113
8114         * time/tst-posixtz.c (tests): Add new tests.
8115         (main): Test whether tzset() sets daylight properly.
8116
8117 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
8118
8119         * time/tzset.c (tz_compute): Move __daylight, __tzname and
8120         __tzname_cur_max setting...
8121         (tzset_internal): ...here.
8122
8123 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
8124
8125         * time/tzset.c (compute_change): Don't return any value.
8126         (tz_compute): Likewise.  Don't handle southern hemisphere here.
8127         (__tz_convert): But here.
8128
8129 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8130
8131         * manual/examples/mkfsock.c: Include <string.h> as well.
8132         Patch by Alain De Carolis <alaind@wseurope.com>.
8133
8134 2002-03-06  Isamu Hasegawa  <isamu@yamato.ibm.com>
8135
8136         * posix/regexec.c (re_match): Fix incorrect register sizes.
8137         (re_search): Likewise.
8138
8139 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
8140
8141         * posix/regcomp.c (regfree): Remove a disused condition.
8142         * posix/regex_internal.c (re_acquire_state): Likewise.
8143         (re_acquire_state_context): Likewise.
8144         (register_state): Remove a redundant malloc invocation.
8145         * posix/regex_internal.h: (re_state_table_entry): Simplify
8146         the structure.
8147
8148 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
8149
8150         * posix/regcomp.c (regcomp): Add __builtin_expect to error
8151         handling conditions.
8152         (regerror): Likewise.
8153         (regfree): Likewise.
8154         (re_compile_internal): Likewise.
8155         (init_dfa): Likewise.
8156         (init_word_char): Likewise.
8157         (create_initial_state): Likewise.
8158         (analyze): Likewise.
8159         (analyze_tree): Likewise.
8160         (duplicate_node): Likewise.
8161         (calc_eclosure): Likewise.
8162         (calc_eclosure_iter): Likewise.
8163         (parse): Likewise.
8164         (parse_reg_exp): Likewise.
8165         (parse_branch): Likewise.
8166         (parse_expression): Likewise.
8167         (parse_subexp): Likewise.
8168         (parse_dup_op): Likewise.
8169         (parse_bracket_exp): Likewise.
8170         (build_equiv_class): Likewise.
8171         (build_charclass): Likewise.
8172         (build_word_op): Likewise.
8173         (fetch_number): Likewise.
8174         (create_tree): Likewise.
8175         (duplicate_tree): Likewise.
8176         * posix/regex.c (BE): New macro.
8177         * posix/regexec.c (re_match): Add __builtin_expect to error
8178         handling conditions.
8179         (re_match_2): Likewise.
8180         (re_search): Likewise.
8181         (re_search_internal): Likewise.
8182         (check_matching): Likewise.
8183         (proceed_next_node): Likewise.
8184         (set_regs): Likewise.
8185         (sift_states_backward): Likewise.
8186         (add_epsilon_backreference): Likewise.
8187         (transit_state): Likewise.
8188         (transit_state_sb): Likewise.
8189         (transit_state_mb): Likewise.
8190         (transit_state_bkref): Likewise.
8191         (transit_state_bkref_loop): Likewise.
8192         (build_trtable): Likewise.
8193         (group_nodes_into_DFAstates): Likewise.
8194         (match_ctx_init): Likewise.
8195         (match_ctx_add_entry): Likewise.
8196         * posix/regex_internal.c (re_string_construct): Add __builtin_expect
8197         to error handling conditions.
8198         (re_string_construct_toupper): Likewise.
8199         (build_wcs_buffer): Likewise.
8200         (build_wcs_upper_buffer): Likewise.
8201         (build_upper_buffer): Likewise.
8202         (re_string_translate_buffer): Likewise.
8203         (re_node_set_alloc): Likewise.
8204         (re_node_set_init_1): Likewise.
8205         (re_node_set_init_2): Likewise.
8206         (re_node_set_init_copy): Likewise.
8207         (re_node_set_intersect): Likewise.
8208         (re_node_set_init_union): Likewise.
8209         (re_node_set_merge): Likewise.
8210         (re_node_set_insert): Likewise.
8211         (re_dfa_add_node): Likewise.
8212         (re_acquire_state): Likewise.
8213         (re_acquire_state_context): Likewise.
8214         (create_new_state_common): Likewise.
8215         (register_state): Likewise.
8216         (create_ci_new_state): Likewise.
8217         (create_cd_new_state): Likewise.
8218         (re_string_context_at): Remove redundant condition.
8219
8220 2002-01-16  Roger Sayle  <roger@eyesopen.com>
8221
8222         * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
8223
8224         * sysdeps/i386/i586/strlen.S: Fix typo in comment.
8225
8226 2002-03-11  Jakub Jelinek  <jakub@redhat.com>
8227
8228         * sysdeps/i386/elf/configure.in: Fix comment.
8229
8230         * sysdeps/sparc/sparc64/configure.in: New file.
8231         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
8232         if .dynamic comes before .got.
8233         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
8234
8235         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
8236         HP_TIMING_ACCUM): Fix typos.
8237
8238 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8239
8240         * string/strfry.c: Add some more randomness to the seed.
8241         Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
8242
8243         * po/es.po: Update from translation team.
8244         * po/fr.po: Likewise.
8245
8246         * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
8247
8248         * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
8249         when determining type of format.
8250         Patch by James Antill <james@anqd.org> [PR libc/2787].
8251
8252 2002-03-04  Jakub Jelinek  <jakub@redhat.com>
8253
8254         * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
8255
8256 2002-03-11  Roland McGrath  <roland@frob.com>
8257
8258         * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
8259
8260         * Versions.def (libc): Add GLIBC_2.2.6.
8261         * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
8262         * sysdeps/mach/hurd/errnos.awk: In generated macro, use
8263         __errno_location instead of __hurd_errno_location, and don't inline it.
8264         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
8265         * hurd/errno.c: New file.
8266         * hurd/Makefile (routines): Add errno.
8267
8268 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8269
8270         * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
8271         ridiculously large widths and precisions [PR libc/3026].
8272
8273 2002-03-11  Andreas Jaeger  <aj@suse.de>
8274
8275         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
8276         support.
8277         Patch by Susanne Oberhauser <froh@SuSE.de>.
8278
8279 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8280
8281         * inet/rexec.c (ahostbuf): Define as static.
8282
8283         * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
8284         (__ctype32_wctrans): Likewise.
8285         * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
8286         * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
8287         (__ctype32_wctrans): Likewise.
8288         (__ctype32_width): Likewise.
8289
8290         * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
8291         They were never exported anyway.
8292
8293         * gmon/gmon.c (_gmonparam): Add attribute_hidden.
8294         * gmon/sys/gmon.h: Remove declaration of _gmonparam.  It wasn't
8295         exported.
8296         * include/sys/gmon.h: Declare _gmonparam.
8297
8298         * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
8299         symbols for getdents64.  They were never exported.
8300
8301 2002-03-09  Roland McGrath  <roland@frob.com>
8302
8303         * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
8304         Reported by Jon Arney <jarney1@cox.net>.
8305
8306 2002-02-23  Roland McGrath  <roland@frob.com>
8307
8308         * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
8309         declaration.
8310         (__hurd_errno_location): Function removed.
8311
8312 2002-03-06  Andreas Jaeger  <aj@suse.de>
8313
8314         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
8315         32-bit.
8316
8317 2002-03-04  Andreas Jaeger  <aj@suse.de>
8318
8319         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New file.
8320
8321         * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
8322         x86-64.
8323
8324         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New file.
8325
8326         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New file.
8327
8328         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New file.
8329
8330         * sysdeps/x86_64/bits/setjmp.h: New file.
8331
8332         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New file.
8333
8334         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New file.
8335
8336         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
8337         for x86.
8338         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
8339         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
8340
8341 2002-02-28  Bo Thorsen  <bo@suse.de>
8342
8343         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
8344         version.
8345
8346 2002-03-03  Andreas Jaeger  <aj@suse.de>
8347
8348         * sysdeps/x86_64/bits/wordsize.h: New file.
8349
8350         * elf/nodlopenmod2.c: Provide prototype to avoid warning.
8351         * elf/tst-tlsmod1.c: Likewise.
8352
8353         * posix/regcomp.c: Get regex.h from include dir for internal
8354         prototypes.
8355
8356         * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
8357         to libc-internal.h and include it.
8358         * include/libc-internal.h: Add __init_misc.
8359
8360         * misc/init-misc.c: Include libc-internal.h for prototypes.
8361
8362         * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
8363
8364         * misc/error.c [_LIBC]: Include libioP.h for prototype of
8365         _IO_putc_internal.
8366
8367 2002-03-03  Ulrich Drepper  <drepper@redhat.com>
8368
8369         * posix/regcomp.c: Compatibility changes to allow using the code
8370         outside glibc.
8371
8372 2002-02-28  Hartvig Ekner <hartvige@mips.com>
8373
8374         * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
8375         compiled non-PIC.
8376
8377 2002-03-02  Ulrich Drepper  <drepper@redhat.com>
8378
8379         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
8380         of .str elements in the returned data structure.
8381
8382         * elf/elf.h: Add Alpha TLS bits.
8383
8384 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8385
8386         * sysdeps/unix/sysv/linux/nice.c: New file.
8387
8388 2002-03-01  Ulrich Drepper  <drepper@redhat.com>
8389
8390         * elf/Makefile (dl-routines): Add dl-origin.
8391         (elide-routines.os): Add dl-origin.
8392         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
8393         * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
8394         _dl_debug_state.
8395         * include/libc-symbols.c: Define attribute_hidden depending on
8396         HAVE_VISIBILITY_ATTRIBUTE.  Add definition of INTVARDEF.
8397
8398         * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
8399         * elf/dl-load.c: Likewise.
8400         * elf/rtld.c: Likewise.
8401         * include/unistd.h: Declare __libc_enable_secure_internal.
8402         * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
8403         Use INTUSE with __libc_enable_secure.
8404         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
8405
8406         * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
8407         * elf/dl-error.c: Likewise,
8408         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
8409
8410         * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
8411         * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
8412         function definition.  Use INTDEF with _dl_get_origin.
8413         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
8414
8415         * elf/dl-init.c: Use INTUSE with _dl_starting_up.
8416         * elf/rtld.c: Likewise.  Use INTVARDEF for _dl_starting_up.
8417
8418         * elf/dl-profile.c: Use INTDEF for _dl_mcount.
8419         * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
8420         * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
8421
8422         * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
8423         * elf/dl-deps.c: Likewise.
8424         * elf/dl-error.c: Likewise.
8425         * elf/dl-fini.c: Likewise.
8426         * elf/dl-init.c: Likewise.
8427         * elf/dl-load.c: Likewise.
8428         * elf/dl-lookup.c: Likewise.
8429         * elf/dl-reloc.c: Likewise.
8430         * elf/dl-version.c: Likewise.
8431         * elf/do-lookup.h: Likewise.
8432         * sysdeps/arm/dl-machine.h: Likewise.
8433         * sysdeps/cris/dl-machine.h: Likewise.
8434         * sysdeps/hppa/dl-machine.h: Likewise.
8435         * sysdeps/i386/dl-machine.h: Likewise.
8436         * sysdeps/m68k/dl-machine.h: Likewise.
8437         * sysdeps/powerpc/dl-machine.h: Likewise.
8438         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8439         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8440         * sysdeps/sh/dl-machine.h: Likewise.
8441         * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
8442         * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
8443         * sysdeps/x86_64/dl-machine.h: Likewise.
8444         * elf/rtld.c: Use INTDEF for _dl_argv.  Use rtld_progrname instead of
8445         _dl_argv[0].  Use INTUSE with _dl_argv.
8446         * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
8447         * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
8448
8449 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8450
8451         * elf/rtld.c (_rtld_global): Remove .protected.
8452         (_rtld_local): Strong alias to _rtld_global.
8453         * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
8454         only .os object.
8455         * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
8456         _rtld_local instead of _rtld_global.
8457         (_rtld_local): Add hidden extern, possibly in .sdata section.
8458         * configure.in: Add tests for visibility attribute and .sdata.
8459         * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
8460         * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
8461         * sysdeps/arm/dl-machine.h: Likewise.
8462         * sysdeps/generic/ldsodefs.h: Likewise.
8463         * sysdeps/hppa/dl-machine.h: Likewise.
8464         * sysdeps/cris/dl-machine.h: Likewise.
8465         * sysdeps/i386/dl-machine.h: Likewise.
8466         * sysdeps/ia64/dl-machine.h: Likewise.
8467         * sysdeps/m68k/dl-machine.h: Likewise.
8468         * sysdeps/mips/mips64/dl-machine.h: Likewise.
8469         * sysdeps/mips/dl-machine.h: Likewise.
8470         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8471         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8472         * sysdeps/sh/dl-machine.h: Likewise.
8473         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8474         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8475         * sysdeps/x86_64/dl-machine.h: Likewise.
8476
8477 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
8478
8479         * login/login.c (login): Always initialize ut_line field
8480         [PR libc/2991].
8481
8482 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8483
8484         * sysdeps/i386/Makefile (sysdep_routines): Add
8485         divdi3 in csu dir.
8486         (shared-only-routines): Likewise.
8487         * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
8488         (shared-only-routines): Likewise.
8489         * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
8490         (shared-only-routines): Likewise.
8491         * sysdeps/wordsize-32/divdi3.c: New file.
8492
8493 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
8494
8495         * locale/iso-4217.def: Remove obsolete currencies for countries
8496         with Euro.
8497
8498 2002-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
8499
8500         * posix/regcomp.c (regcomp): Remove a redundant condition.
8501         (init_word_char): Add a check on malloc failure.
8502         (create_initial_state): Likewise.
8503         (duplicate_node): Likewise.
8504         (calc_eclosure): Likewise.
8505         (calc_eclosure_iter): Likewise.
8506         (parse_expression): Likewise.
8507         (parse_bracket_exp): Remove unnecessary malloc invocations.
8508         (build_equiv_class): Likewise.
8509         (build_charclass): Likewise.
8510         * posix/regex_internal.c (re_node_set_intersect): Add a check
8511         on malloc failure.
8512         (re_node_set_add_intersect): Likewise.
8513         (re_node_set_merge): Likewise.
8514         (re_acquire_state): Likewise.
8515         (re_acquire_state_context): Likewise.
8516         (create_newstate_common): Likewise.
8517         (register_state): Likewise.
8518         (create_ci_newstate): Likewise.
8519         (create_cd_newstate): Likewise.
8520         * posix/regex_internal.h: Fix prototypes of re_acquire_state
8521         and re_acquire_state_context.
8522         * posix/regexec.c (regexec): Suit it to the error handling of
8523         re_search_internal.
8524         (re_match): Likewise.
8525         (re_search): Likewise.
8526         (re_search_internal): Add a check on malloc failure.
8527         (acquire_init_state_context): Likewise.
8528         (check_matching): Likewise.
8529         (proceed_next_node): Likewise.
8530         (set_regs): Likewise.
8531         (sift_states_backward): Likewise.
8532         (sift_states_iter_bkref): Likewise.
8533         (add_epsilon_backreference): Likewise.
8534         (transit_state): Likewise.
8535         (transit_state_sb): Likewise.
8536         (transit_state_mb): Likewise.
8537         (transit_state_bkref_loop): Likewise.
8538         (build_trtable): Likewise.
8539         (group_nodes_into_DFAstates): Likewise.
8540         (match_ctx_init): Likewise.
8541         (match_ctx_add_entry): Likewise.
8542
8543 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
8544
8545         * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
8546         l_libname if profiling is enabled [PR libc/2916].
8547
8548         * sysdeps/ia64/dl-tls.h: New file.
8549
8550 2002-02-27  Jakub Jelinek  <jakub@redhat.com>
8551
8552         * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
8553         Work around an Alpha gas bug.
8554
8555 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
8556
8557         * catgets/open_catalog.c (__open_catalog): Fix typo in code which
8558         uses read to load the catalog.
8559         Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
8560
8561 2002-02-26  Ulrich Drepper  <drepper@redhat.com>
8562
8563         * posix/Makefile (distribute): Add regcomp.c, regexec.c,
8564         regex_internal.c, and regex_internal.h.
8565         (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
8566         * posix/regex.c: Complete rewrite.
8567         * posix/regexec.c: New file.
8568         * posix/regcomp.c: New file.
8569         * posix/regex_internal.c: New file.
8570         * posix/regex_internal.h: New file.
8571         * posix/regex.h (RE_ICASE): New macro.
8572         Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
8573
8574         * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
8575         ungetwc.  It's a macro.
8576         * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
8577         implementation.
8578         Reported by Jason Merrill <jason@redhat.com>.
8579
8580 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
8581
8582         * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
8583         position to fp->_offset if it is set.
8584         * stdio-common/Makefile (tests): Add tst-fdopen.
8585         * stdio-common/tst-fdopen.c: New test.
8586
8587 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
8588
8589         * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
8590         * stdio-common/tst-ungetc.c (main): Add another test.
8591
8592 2002-02-25  Ulrich Drepper  <drepper@redhat.com>
8593
8594         * assert/assert-perr.c: Use INTUSE to reference functions and variables
8595         inside libc itself.  Use INTDEF and INTDEF2 to define appropriate
8596         aliases.  Add prototypes for the new aliases.
8597         * assert/assert.c: Likewise.
8598         * include/libc-symbols.h: Likewise.
8599         * include/stdio.h: Likewise.
8600         * include/netinet/in.h: Likewise.
8601         * include/rpc/auth.h: Likewise.
8602         * include/rpc/auth_unix.h: Likewise.
8603         * include/rpc/key_prot.h: Likewise.
8604         * include/rpc/pmap_prot.h: Likewise.
8605         * include/rpc/pmap_rmt.h: Likewise.
8606         * include/rpc/rpc_msg.h: Likewise.
8607         * include/rpc/xdr.h: Likewise.
8608         * inet/gethstbyad_r.c: Likewise.
8609         * inet/gethstbynm2_r.c: Likewise.
8610         * inet/gethstbynm_r.c: Likewise.
8611         * inet/gethstent_r.c: Likewise.
8612         * inet/in6_addr.c: Likewise.
8613         * libio/__fpurge.c: Likewise.
8614         * libio/filedoalloc.c: Likewise.
8615         * libio/fileops.c: Likewise.
8616         * libio/ftello.c: Likewise.
8617         * libio/ftello64.c: Likewise.
8618         * libio/genops.c: Likewise.
8619         * libio/iofclose.c: Likewise.
8620         * libio/iofdopen.c: Likewise.
8621         * libio/iofflush.c: Likewise.
8622         * libio/iofflush_u.c: Likewise.
8623         * libio/iofgetpos.c: Likewise.
8624         * libio/iofgetpos64.c: Likewise.
8625         * libio/iofgets.c: Likewise.
8626         * libio/iofgets_u.c: Likewise.
8627         * libio/iofopen.c: Likewise.
8628         * libio/iofopncook.c: Likewise.
8629         * libio/iofputs.c: Likewise.
8630         * libio/iofread.c: Likewise.
8631         * libio/iofread_u.c: Likewise.
8632         * libio/iofsetpos.c: Likewise.
8633         * libio/iofsetpos64.c: Likewise.
8634         * libio/ioftell.c: Likewise.
8635         * libio/iofwrite.c: Likewise.
8636         * libio/iogetline.c: Likewise.
8637         * libio/iogets.c: Likewise.
8638         * libio/iogetwline.c: Likewise.
8639         * libio/iolibio.h: Likewise.
8640         * libio/iopadn.c: Likewise.
8641         * libio/iopopen.c: Likewise.
8642         * libio/ioseekoff.c: Likewise.
8643         * libio/ioseekpos.c: Likewise.
8644         * libio/iosetbuffer.c: Likewise.
8645         * libio/iosetvbuf.c: Likewise.
8646         * libio/ioungetc.c: Likewise.
8647         * libio/ioungetwc.c: Likewise.
8648         * libio/iovdprintf.c: Likewise.
8649         * libio/iovsprintf.c: Likewise.
8650         * libio/iovsscanf.c: Likewise.
8651         * libio/libioP.h: Likewise.
8652         * libio/memstream.c: Likewise.
8653         * libio/obprintf.c: Likewise.
8654         * libio/oldfileops.c: Likewise.
8655         * libio/oldiofclose.c: Likewise.
8656         * libio/oldiofdopen.c: Likewise.
8657         * libio/oldiofgetpos.c: Likewise.
8658         * libio/oldiofgetpos64.c: Likewise.
8659         * libio/oldiofopen.c: Likewise.
8660         * libio/oldiofsetpos.c: Likewise.
8661         * libio/oldiofsetpos64.c: Likewise.
8662         * libio/oldiopopen.c: Likewise.
8663         * libio/oldstdfiles.c: Likewise.
8664         * libio/putc.c: Likewise.
8665         * libio/setbuf.c: Likewise.
8666         * libio/setlinebuf.c: Likewise.
8667         * libio/stdfiles.c: Likewise.
8668         * libio/stdio.c: Likewise.
8669         * libio/strops.c: Likewise.
8670         * libio/vasprintf.c: Likewise.
8671         * libio/vscanf.c: Likewise.
8672         * libio/vsnprintf.c: Likewise.
8673         * libio/vswprintf.c: Likewise.
8674         * libio/wfiledoalloc.c: Likewise.
8675         * libio/wfileops.c: Likewise.
8676         * libio/wgenops.c: Likewise.
8677         * libio/wstrops.c: Likewise.
8678         * malloc/mtrace.c: Likewise.
8679         * misc/error.c: Likewise.
8680         * misc/syslog.c: Likewise.
8681         * nss/getXXbyYY_r.c: Likewise.
8682         * nss/getXXent_r.c: Likewise.
8683         * nss/hosts-lookup.c: Likewise.
8684         * stdio-common/getw.c
8685         * stdio-common/printf-prs.c: Likewise.
8686         * stdio-common/printf_fp.c: Likewise.
8687         * stdio-common/printf_size.c: Likewise.
8688         * stdio-common/putw.c: Likewise.
8689         * stdio-common/scanf.c: Likewise.
8690         * stdio-common/sprintf.c: Likewise.
8691         * stdio-common/tmpfile64.c: Likewise.
8692         * stdio-common/vfprintf.c: Likewise.
8693         * stdio-common/vfscanf.c: Likewise.
8694         * stdlib/strfmon.c: Likewise.
8695         * sunrpc/auth_des.c: Likewise.
8696         * sunrpc/auth_none.c: Likewise.
8697         * sunrpc/auth_unix.c: Likewise.
8698         * sunrpc/authdes_prot.c: Likewise.
8699         * sunrpc/authuxprot.c: Likewise.
8700         * sunrpc/clnt_perr.c: Likewise.
8701         * sunrpc/clnt_raw.c: Likewise.
8702         * sunrpc/clnt_tcp.c: Likewise.
8703         * sunrpc/clnt_udp.c: Likewise.
8704         * sunrpc/clnt_unix.c: Likewise.
8705         * sunrpc/key_call.c: Likewise.
8706         * sunrpc/key_prot.c: Likewise.
8707         * sunrpc/openchild.c: Likewise.
8708         * sunrpc/pm_getmaps.c: Likewise.
8709         * sunrpc/pm_getport.c: Likewise.
8710         * sunrpc/pmap_clnt.c: Likewise.
8711         * sunrpc/pmap_prot.c: Likewise.
8712         * sunrpc/pmap_prot2.c: Likewise.
8713         * sunrpc/pmap_rmt.c: Likewise.
8714         * sunrpc/rpc_cmsg.c: Likewise.
8715         * sunrpc/rpc_prot.c: Likewise.
8716         * sunrpc/svc_authux.c: Likewise.
8717         * sunrpc/svc_raw.c: Likewise.
8718         * sunrpc/svc_simple.c: Likewise.
8719         * sunrpc/svc_tcp.c: Likewise.
8720         * sunrpc/svc_udp.c: Likewise.
8721         * sunrpc/svc_unix.c: Likewise.
8722         * sunrpc/xdr.c: Likewise.
8723         * sunrpc/xdr_array.c: Likewise.
8724         * sunrpc/xdr_mem.c: Likewise.
8725         * sunrpc/xdr_rec.c: Likewise.
8726         * sunrpc/xdr_ref.c: Likewise.
8727         * sunrpc/xdr_stdio.c: Likewise.
8728         * sysdeps/generic/_strerror.c: Likewise.
8729         * sysdeps/generic/printf_fphex.c: Likewise.
8730         * sysdeps/generic/tmpfile.c: Likewise.
8731         * sysdeps/gnu/errlist.awk: Likewise.
8732         * sysdeps/gnu/errlist.c: Likewise.
8733
8734         * libio/Makefile (routines): Remove iosprint.
8735         * libio/iosprintf.c: Removed
8736
8737
8738 2002-02-24  Ulrich Drepper  <drepper@redhat.com>
8739
8740         * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
8741         non_dynamic_init and exported now.
8742         * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
8743         * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
8744         !SHARED.
8745         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
8746         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8747         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8748
8749 2002-02-23  Ulrich Drepper  <drepper@redhat.com>
8750
8751         * elf/dl-close.c (free_slotinfo): Check for end of list and return
8752         true in this case.
8753
8754         * locale/iso-639.def: Add language codes for Walloon.
8755
8756         * elf/dl-fini.c (_dl_fini): Print some final statistics on the
8757         total number of relocations performed.
8758
8759         * elf/sprof.c (load_profdata): If do_test provide information as
8760         to why loading failed.
8761         * elf/dl-profile.c (_dl_start_profile): Initialize all of
8762         hist_hdr.dimen.
8763
8764         * csu/set-init.c: Moved to...
8765         * sysdeps/mach/hurd/set-init.c: ...here.  New file.
8766         * csu/Makefile: Don't compile set-init.
8767         * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
8768         * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
8769         to __libc_init.
8770         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8771         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8772         * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
8773         __libc_init.
8774         * misc/init-misc.c: Always export __init_misc.  Don't define hooks for
8775         __libc_subinit.
8776
8777 2002-02-22  Ulrich Drepper  <drepper@redhat.com>
8778
8779         * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
8780         * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
8781         * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
8782         (_dl_deallocate_tls): New function.
8783         * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
8784         _dl_deallocate_tls.
8785
8786 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
8787
8788         * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
8789         * stdio-common/tst-fseek.c (main): Add test for this.
8790
8791 2002-02-19  Ulrich Drepper  <drepper@redhat.com.>
8792
8793         * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
8794
8795 2002-02-19  Jakub Jelinek  <jakub@redhat.com>
8796
8797         * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
8798         pointer before dereferencing.
8799
8800 2002-02-18  Roland McGrath  <roland@frob.com>
8801
8802         * sysdeps/mach/hurd/times.c: Fix typo in last change.
8803
8804         * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
8805         Use task_policy in place of task_priority.
8806
8807         * sysdeps/generic/bits/mman.h
8808         (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
8809         * sysdeps/mach/msync.c: New file.
8810
8811         * sysdeps/mach/powerpc/syscall.S: New file.
8812
8813         * mach/msg.c [MACH_MSG_OVERWRITE]
8814         (__mach_msg_trap, __mach_msg_overwrite): New functions.
8815         * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
8816
8817         * sysdeps/mach/configure.in: Check for clock.defs to put into
8818         mach_interface_list.
8819         * sysdeps/mach/configure: Regenerated.
8820
8821         * mach/Makefile (mach-machine): New variable, set from $(base-machine).
8822         ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
8823         ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
8824         Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
8825         (mach-shortcuts): Add device_read_overwrite_request,
8826         device_read_overwrite, vm_read_overwrite, thread_switch.
8827
8828         * configure.in (base_machine): Set to $machine by default.
8829         * configure: Regenerated.
8830
8831         * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
8832         or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
8833         * sysdeps/mach/configure: Regenerated.
8834         * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
8835
8836         * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
8837
8838         * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
8839
8840         * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
8841         Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
8842
8843 2002-02-17  Roland McGrath  <roland@frob.com>
8844
8845         * sysdeps/mach/hurd/times.c
8846         [NO_CREATION_TIME] (startup_time): New static variable.
8847         [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
8848         (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
8849         creation_time from task_basic_info.
8850         (__times): Use __gettimeofday instead of __host_get_time.
8851
8852         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
8853         Use untyped Mach IPC message format.
8854
8855         * hurd/catch-exc.c: Include <assert.h>, missing from last change.
8856
8857         * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
8858         _S_catch_exception_raise_state_identity,
8859         _hurdsig_fault_catch_exception_raise_state,
8860         _hurdsig_fault_catch_exception_raise_state_identity.
8861
8862         * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
8863
8864         * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
8865         __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
8866
8867         * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
8868         `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
8869
8870         * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
8871         (fmh, unfmh): Define these functions only #if FMH.  Otherwise define
8872         them as no-op macros.
8873         [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
8874         (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
8875
8876         * sysdeps/powerpc/dl-machine.h
8877         (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
8878
8879         * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
8880         Use untyped Mach IPC message format.
8881
8882         * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
8883         Handle untyped Mach IPC message formats.
8884
8885         * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
8886         Expect different argument conventions when this is defined.
8887         [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
8888         [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
8889         * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
8890         [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
8891         for OSF Mach variant.
8892         (faulted): Use mig_reply_error_t for REPLY.
8893         (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
8894         in __thread_set_exception_ports call.
8895         (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
8896         __mach_port_set_attributes in place of __mach_port_set_qlimit.
8897
8898         * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
8899         before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
8900         on Darwin, which includes bogons.
8901
8902         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
8903         variable LOADBASE so it's not declared when it's not used.
8904
8905 2002-02-16  Roland McGrath  <roland@frob.com>
8906
8907         * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
8908         to use BI.creation_time.
8909
8910         * mach/Machrules (MIG): Add -x c to CPP value passed down.
8911
8912         * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
8913         * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
8914         * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
8915         host_page_size instead of vm_statistics.
8916
8917         * sysdeps/mach/Makefile (mach-before-compile): Don't include
8918         mach_interface.h here, since not all variants use that name.
8919
8920         * sysdeps/mach/configure.in: Add some checks for Mach headers
8921         to ensure a sane installation.
8922         (mach_interface_list): Define this variable by checking for .defs
8923         files found in various variants.
8924         * configure.in (mach_interface_list): AC_SUBST this.
8925         * config.make.in (mach-interface-list): New substituted variable.
8926         * mach/Makefile (user-interfaces): Define this using the value
8927         of $(mach-interface-list) instead of mach, mach4.
8928         Updated other references to mach_interface to use it as well.
8929
8930         * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
8931
8932         * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
8933         mig_reply_error_t for OSF Mach variant.
8934
8935         * mach/Makefile (routines): Remove bootprivport.
8936         * mach/bootprivport.c: File removed.  It has never been used.
8937
8938         * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
8939         Grok the OSF flavor of message format.
8940         (mach_msg_destroy_port): For MAKE_SEND and
8941         MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
8942         no-senders notification.
8943
8944 2002-02-06  Roland McGrath  <roland@frob.com>
8945
8946         * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
8947         to here if 2.0 compatibility enabled ...
8948         (libc: GLIBC_2.1.3): ... from here.
8949
8950 2002-02-15  Ulrich Drepper  <drepper@redhat.com>
8951
8952         * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
8953         generation counter.
8954         * elf/dl-close.c (_dl_close): Likewise.
8955
8956 2002-02-14  Ulrich Drepper  <drepper@redhat.com>
8957
8958         * elf/Makefile: Add rules to build and run tst-tls8.
8959         * elf/tst-tls8.c: New file.
8960         * elf/tst-tlsmod4.c: New file.
8961
8962         * stdlib/test-a64l.c (tests): Add more test cases.
8963
8964         * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
8965         Reported by Walter Harms <WHarms@bfs.de>.
8966
8967 2002-02-11  Jes Sorensen  <jes@trained-monkey.org>
8968
8969         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
8970         definitions for struct sigcontext.
8971         Suggested by David Mosberger-Tang.
8972
8973 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
8974
8975         * elf/dl-close.c (remove_slotinfo): New function.  Handles everything
8976         for removing reference of module in slotinfo list.
8977         (_dl_close): Use remove_slotinfo.
8978         * sysdeps/generic/dl-tls.c: General pretty printing.
8979         (oom): Define only if SHARED.
8980         (_dl_next_tls_modid): Correct starting point for the case we assume
8981         there is a gap.  Add missing instruction grouping (doh!).  Correct
8982         tests for reaching maximum index.
8983         * elf/Makefile: Add rules to build and run tst-tls7.
8984         * elf/tst-tls7.c: New file.
8985         * elf/tst-tlsmod3.c: New file.
8986
8987         * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
8988         USE_TLS.
8989         * elf/tst-tlsmod2.c: Likewise.
8990
8991         * elf/dl-close.c (_dl_close): When closing an object using TLS
8992         either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
8993         true.  Increment dl_tls_generation only if we closed any TLS-using
8994         object.
8995         * elf/tst-tls6.c: New file.
8996         * elf/Makefile: Add rules to build and run tst-tls6.
8997
8998         * po/da.po: Update from translation team.
8999
9000         * locale/categories.def: Fix typo [PR libc/2948].
9001         * po/Makefile (BROKEN_LINGUAS): Works with current gettext
9002         [PR libc/2949].
9003         * locale/iso-4217.def: Update from official version [PR libc/2950].
9004         * glibcbug.in: Honor TMPDIR [PR libc/2951].
9005         * locale/programs/ld-collate.c (collate_finish): Bail out with a
9006         message if input is too confusion instead of using assert.
9007         (collate_read): Don't crash on unknown symbol [PR libc/2952].
9008         Patches by Alastair McKinstry <alastair@pdd.3com.com>.
9009
9010         * elf/tst-tls1.c: Move #include "tls-macros.h" inside #ifdef USE_TLS.
9011         * elf/tst-tls2.c: Likewise.
9012         * elf/tst-tls3.c: Likewise.
9013
9014 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
9015
9016         * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
9017
9018 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
9019
9020         * elf/dl-open.c (dl_open_worker): Only bump the generation counter
9021         if this is really necessary.
9022
9023         * elf/dl-close.c (_dl_close): Implement freeing entries in the
9024         slotinfo array.
9025         (free_mem): Free memory for the slotinfo array if possible.
9026
9027 2002-02-12  Andreas Schwab  <schwab@suse.de>
9028
9029         * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
9030
9031 2002-02-12  Ulrich Drepper  <drepper@redhat.com>
9032
9033         * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
9034         TLS_DTV_UNALLOCATE.
9035         (oom): New function.
9036         (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
9037         (_dl_determine_tlsoffset): Likewise.
9038         (_dl_allocate_tls): Likewise.
9039         (__TLS_GET_ADDR): Define if not already defined.
9040         (_dl_tls_symaddr): New function.
9041         (allocate_and_init): New function.
9042         (__tls_get_addr): Actually implement handling of generation counter
9043         and deferred allocation.
9044         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
9045         add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9046         _dl_tls_generation.
9047         Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
9048         Declare _dl_tls_symaddr.
9049         * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
9050         SHARED.
9051         * include/link.h (struct link_map):  Remove l_tls_nextimage and
9052         l_tls_previmage.
9053         * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
9054         instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
9055         (_dl_vsym): Likewise.
9056         * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
9057         layout.
9058         (dl_main): Allow PT_TLS be present for empty segment.  Remove
9059         nextimage list handling.  Instead add all modules using TLS to
9060         dl_tls_dtv_slotinfo_list.
9061         * elf/dl-open.c (dl_open_worker): After successfully loading all
9062         objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
9063         * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
9064         empty segment don't do anything.  Remove handling of initimage list.
9065         * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
9066         (GLIBC_PRIVATE): Add _dl_tls_symaddr.
9067         * elf/dl-minimal.c: Define __libc_memalign.
9068         * elf/dl-support.c: Remove _dl_initimage_list.  Add
9069         _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9070         _dl_tls_generation.
9071         * include/stdlib.h: Declare __libc_memalign.
9072
9073         * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
9074         * elf/tst-tls4.c: New file.
9075         * elf/tst-tls5.c: New file.
9076         * elf/tst-tlsmod2.c: New file.
9077
9078         * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
9079
9080         * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
9081
9082         * elf/tst-tls1.c: Use test-skeleton.c.
9083         * elf/tst-tls2.c: Likewise.
9084         * elf/tst-tls3.c: Likewise.
9085
9086         * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
9087
9088 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
9089
9090         * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
9091
9092 2002-02-10  Ulrich Drepper  <drepper@redhat.com>
9093
9094         * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
9095
9096         * elf/tst-tls3.c: New file.
9097         * elf/tst-tlsmod1.c: New file.
9098         * elf/Makefile: Add rules to build and run tst-tls3.
9099
9100         * sysdeps/i386/dl-machine.h: Include <tls.h>.
9101         (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
9102         TLS relocations.
9103
9104         * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
9105
9106         * po/fr.po: Update from translation team.
9107
9108         * elf/tls-macros.h: Add alternative macros for use in PIC.
9109
9110         * elf/dl-lookup.c: Include <tls.h>.
9111         * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
9112
9113         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
9114         required by passing pointer to last element of the list.
9115
9116         * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
9117         l_tls_initimage to a place where it actually is performed.
9118
9119         * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
9120         after globfree() calls.
9121
9122         * elf/dl-deps.c (struct openaux_args): Add open_mode element.
9123         (openaux): Pass open_mode as new last argument to _dl_map_object.
9124         (_dl_map_object_deps): Add new argument open_mode.  Initialize
9125         open_mode element of args variable with it.
9126         * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
9127         _dl_map_object_deps.
9128         * elf/rtld.c (dl_main): Add zero as last parameter to
9129         _dl_map_object_deps call.
9130         * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
9131         * elf/nodlopen2.c: New file.
9132         * elf/nodlopenmod2.c: New file.
9133         * elf/Makefile: Add rules to build and run nodlopen2.
9134
9135         * elf/tst-tls1.c: Move TLS helper macros to...
9136         * elf/tls-macros.h: ...here.  New file.
9137         * elf/tst-tls2.c: New file.
9138         * elf/Makefile (tests): Add tst-tls2.
9139         (distribute): Add tls-macros.h.
9140
9141         * po/sv.po: Update from translation team.
9142
9143         * elf/tst-tls1.c (main): Add complete set of tests.  Split
9144         architecture specific definitions from the actual test code.
9145
9146         * po/tr.po: Update from translation team.
9147
9148 2002-02-09  Ulrich Drepper  <drepper@redhat.com>
9149
9150         * elf/Makefile (tests): Add tst-tls1.
9151         * elf/tst-tls1.c: New file.
9152
9153         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
9154         alignment of TCB for now.
9155
9156         * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
9157         initialization image for the application itself.
9158
9159         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
9160         loop to initialize TLS block.
9161
9162 2002-02-08  Richard Henderson  <rth@redhat.com>
9163
9164         * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
9165         _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
9166
9167         * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
9168
9169 2002-02-09  Jakub Jelinek  <jakub@redhat.com>
9170
9171         * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
9172
9173 2002-02-08  Ulrich Drepper  <drepper@redhat.com>
9174
9175         * po/ca.po: Update from translation team.
9176         * po/sk.po: Likewise.
9177
9178         * elf/rtld.c (_dl_start_final): Install DTV explicitly.
9179         (dl_main): Move dtv/static TLS handling before relocation.
9180         Unconditionally call _dl_tlsoffset.  Call _dl_allocate_tls and
9181         TLS_INIT_TP to allocate and install the dtv/static TLS block.
9182         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
9183         so far uses TLS initialize GL(dl_tls_static_size) and
9184         GL(dl_tls_static_align) to account for the TCB.
9185         (_dl_allocate_tls): New function.
9186         * sysdeps/generic/ldsodefs.h (rtld_global): Add
9187         _dl_initial_dtv_malloced.
9188
9189         * configure.in: Test for __builtin_memset more realistically.
9190
9191         * csu/version.c (banner): If TLS support is available say so.
9192
9193 2002-02-04  H.J. Lu  <hjl@gnu.org>
9194
9195         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
9196         __attribute_used__.
9197         (__dl_runtime_resolve): Likewise.
9198
9199         * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
9200         declaration.
9201
9202 2001-11-15  H.J. Lu  <hjl@gnu.org>
9203
9204         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
9205         <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
9206
9207         * sysdeps/unix/sysv/linux/mips/sys/user.h: New file.
9208
9209 2002-02-07  H.J. Lu  <hjl@gnu.org>
9210
9211         * sysdeps/mips/atomicity.h (compare_and_swap): Remove
9212         ".set noreorder".
9213         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
9214         Likewise.
9215
9216 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9217
9218         * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
9219
9220         * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
9221         ___tls_get_addr_internal.
9222         (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
9223
9224         * po/ko.po: Update from translation team.
9225
9226 2002-02-07  Jakub Jelinek  <jakub@redhat.com>
9227
9228         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
9229         attribute, change __pad{1,2} type to unsigned int.
9230         (struct stat64): Remove packed attribute.
9231
9232 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9233
9234         * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
9235
9236 2002-02-07  Andreas Schwab  <schwab@suse.de>
9237
9238         * configure.in: Fix check for -zcombreloc.
9239
9240 2002-02-06  H.J. Lu  <hjl@gnu.org>
9241
9242         * config.h.in (HAVE_BUILTIN_MEMSET): New macro.
9243         * configure.in: Check if __builtin_memset really works.
9244         * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
9245         __GNUC_PREREQ (2, 96) before using __builtin_memset.
9246
9247 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
9248
9249         * io/bug-ftw3.c (main): Don't try the test if root.
9250
9251 2002-02-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9252
9253         * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
9254         constraints.
9255         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
9256         Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
9257         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
9258         Likewise.
9259         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
9260         a weak alias for __clone.
9261         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
9262         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
9263         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
9264         * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
9265         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
9266         a weak alias for __mmap64.
9267
9268 2002-02-05  H.J. Lu  <hjl@gnu.org>
9269
9270         * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
9271         (atomic_add): Likewise.
9272         (compare_and_swap): Likewise.
9273         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
9274
9275 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9276
9277         * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
9278
9279         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
9280         alignment of the TCB and store total size and alignment of static
9281         TLS block in _dl_tls_static_size and _dl_tls_static_align.
9282         tls_index is a typedef.
9283         * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
9284         _dl_tls_static_align.
9285         * sysdeps/i386/dl-tls.h: tls_index is a typedef.
9286         * elf/dl-support.c: Define _dl_tls_static_size and
9287         _dl_tls_static_align.
9288
9289 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9290
9291         * configure.in: Add --without-tls option.
9292         * sysdeps/i386/elf/configure.in: Don't check for TLS support if
9293         --without-tls is given.
9294
9295         * sysdeps/generic/dl-tls.c: Include <tls.h>.
9296
9297         * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
9298
9299 2002-02-06  Roland McGrath  <roland@frob.com>
9300
9301         * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
9302         * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
9303
9304         * scripts/versions.awk: Improve error message for missing version.
9305         Each version inherits from the last one only if they have the same
9306         nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
9307         but not GLIBC_x and FOO_y.
9308
9309         * scripts/firstversions.awk: Handle libraries that don't have each
9310         particular version named in the third column of shlib-versions.
9311
9312         * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
9313
9314 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9315
9316         * Versions.def [ld]: Add GLIBC_2.3.
9317         * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
9318         * elf/Makefile (dl-routines): Add dl-tls.
9319         (distribute): Add dl-tls.h.
9320         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9321         _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9322         Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
9323         * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
9324         along with the other info in the link map.  Change queueing of init
9325         images for double linked list.  Use _dl_next_tls_modid to compute
9326         l_tls_modid.
9327         * elf/rtld.c (_dl_start_final): Store alignment requirement
9328         along with the other info in rtld map and executable map.
9329         (dl_main): Add ld.so to the init image list if necessary.  Compute
9330         final module ID with _dl_next_tls_modid.
9331         * include/link.h (struct link_map): Add l_tls_previmage and
9332         l_tls_align.
9333         * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9334         * sysdeps/i386/elf/Versions: New file.
9335         * sysdeps/generic/dl-tls.c: New file.
9336         * sysdeps/generic/dl-tls.h: New file.
9337         * sysdeps/i386/dl-tls.h: New file.
9338
9339 2002-02-06  Roland McGrath  <roland@frob.com>
9340
9341         * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
9342         * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
9343
9344 2002-01-05  Roland McGrath  <roland@frob.com>
9345
9346         * sysdeps/mach/configure.in: New file.
9347         * sysdeps/mach/configure: New generated file.
9348
9349         * mach/Makefile (user-interfaces): Remove default_pager_helper.
9350         It has never been used by anything.
9351
9352 2002-02-06  H.J. Lu  <hjl@gnu.org>
9353
9354         * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
9355         is included.
9356
9357 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9358
9359         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
9360         attribute((packed)) to counter stupid people misusing gcc options.
9361         (struct stat64): Likewise.
9362
9363 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9364
9365         * elf/rtld.c (dl_main): Correct indentation.  Use bool as type for
9366         the variables which are used as booleans.
9367
9368 2002-02-06  Andreas Jaeger  <aj@suse.de>
9369
9370         * include/libc-symbols.h (INTUSE): Renamed from INT.
9371         * elf/dl-deps.c: Change users.
9372         * sysdeps/generic/dl-sysdep.c: Likewise.
9373         * sysdeps/generic/dl-cache.c: Likewise.
9374         * elf/dl-reloc.c: Likewise.
9375         * elf/rtld.c: Likewise.
9376         * elf/dl-version.c: Likewise.
9377         * elf/dl-load.c: Likewise.
9378         * elf/dl-dst.h: Likewise.
9379         * elf/dl-init.c: Likewise.
9380         * elf/dl-error.c: Likewise.
9381         * elf/dl-fini.c: Likewise.
9382         * elf/dl-runtime.c: Likewise.
9383         * elf/do-lookup.h: Likewise.
9384
9385         * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
9386         definition.
9387         * stdio-common/_itowa.h: Likewise.
9388
9389 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9390
9391         * elf/dl-minimal.c: Define _itoa_lower_digits.
9392
9393         * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
9394         DT_FLAGS set.
9395
9396         * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
9397         loading modules with the DF_STATIC_TLS flag set.
9398         * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
9399         element.
9400         * include/link.h (struct link_map): Add l_flags field.
9401         * elf/elf.h (DF_STATIC_TLS): New definition.
9402
9403         * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
9404         * dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.
9405
9406         * elf/rtld.c (process_dl_debug): Correct printing help message.
9407         * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
9408         for %s.
9409
9410         * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
9411         definition and pass &errno in use of this variable.
9412         Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
9413
9414 2002-02-04  Andreas Schwab  <schwab@suse.de>
9415
9416         * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
9417         * locale/programs/charmap-dir.c: Wrap calls that output messages
9418         with WITH_CUR_LOCALE.  Include "localedef.h" first.
9419         * locale/programs/charmap.c: Likewise.
9420         * locale/programs/ld-address.c: Likewise.
9421         * locale/programs/ld-collate.c: Likewise.
9422         * locale/programs/ld-ctype.c: Likewise.
9423         * locale/programs/ld-identification.c: Likewise.
9424         * locale/programs/ld-measurement.c: Likewise.
9425         * locale/programs/ld-messages.c: Likewise.
9426         * locale/programs/ld-monetary.c: Likewise.
9427         * locale/programs/ld-name.c: Likewise.
9428         * locale/programs/ld-numeric.c: Likewise.
9429         * locale/programs/ld-paper.c: Likewise.
9430         * locale/programs/ld-telephone.c: Likewise.
9431         * locale/programs/ld-time.c: Likewise.
9432         * locale/programs/linereader.c: Likewise.
9433         * locale/programs/linereader.h: Likewise.
9434         * locale/programs/localedef.c: Likewise.
9435         * locale/programs/locfile.c: Likewise.
9436         * locale/programs/repertoire.c: Likewise.
9437
9438 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9439
9440         * elf/rtld.c (_dl_start_final): Determine load address to locate
9441         ehdr with GL(dl_rtld_map).l_map_start.
9442
9443         * po/ca.po: Update from translation team.
9444
9445         * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
9446         * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
9447         header entry.
9448         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
9449         _dl_tls_module_cnt.
9450         * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
9451
9452 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
9453
9454         * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
9455         * include/link.h (struct link_map): Add various members for TLS
9456         information.
9457         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9458         _rtld_tlsoffset, add _dl_initimage_list.
9459         * sysdeps/i386/dl-lookupcfg.h: New file.
9460         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
9461         TLS relocation.  When using TLS we now use RESOLVE_MAP.
9462         (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
9463         is used.
9464
9465         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
9466         unused.
9467
9468         * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
9469         thread-pointer as soon as possible.
9470         * sysdeps/generic/ldsodefs.h: Include <tls.h>.  Define first TLS
9471         elements in rtld_global.
9472         * sysdeps/generic/tls.h: New file.
9473         * elf/Makefile (distribute): Add tls.h.
9474         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
9475         relocations.  Not complete yet.
9476
9477         * resolv/resolv.h: Allow user to define __need_res_state and only
9478         define __res_start structure then.
9479         * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
9480
9481         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
9482         dl_cpuclock_offset initialization to _dl_start_final.
9483         (_dl_show_auxv): Avoid unnecessary sign extension.
9484         * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
9485
9486 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
9487
9488         * config.h.in: Add HAVE_TLS_SUPPORT.
9489         * sysdeps/i386/elf/configure.in: New file.
9490
9491 2002-02-03  Andreas Schwab  <schwab@suse.de>
9492
9493         * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
9494         * sysdeps/posix/writev.c: Use ssize_t for bytes_written.  Fix comment.
9495
9496 2002-02-03  Thorsten Kukuk  <kukuk@suse.de>
9497
9498         * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
9499         alloca if the memory reqirements are too high.
9500
9501 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
9502
9503         * elf/dl-load.c (decompose_rpath): Avoid using strstr.
9504         * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
9505         the former is available anyway and speed isn't important here.
9506         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
9507         * elf/dl-version.c (match_symbol): Likewise.
9508         (_dl_check_map_versions): Likewise.
9509         * elf/rtld.c (process_envvars): Likewise.
9510         (print_statistics): Likewise.
9511         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
9512         * elf/dl-minimal.c (_itoa): Always define it.  Make it work for all
9513         bases.  Add assert to catch uses of unimplemented features.
9514         (__strsep): Add assert to catch uses of unimplemented features.
9515         * elf/dl-object.c (_dl_new_object): Don't use rawmemchr.  Use strchr
9516         and avoid inline optimization.
9517         * elf/rtld.c (process_envvars): Likewise.
9518         * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
9519         * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
9520         * elf/rtld.c (dl_main): Avoid strsep inline optimization.
9521
9522 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
9523
9524         * stdio-common/_itoa.h: Minor simplifications of the code.
9525         * stdio-common/_itoa.c: Likewise.
9526
9527         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
9528         instead of _dl_printf for debugging info output.
9529
9530         * manual/examples/mkfsock.c (make_named_socket): Make sure name is
9531         always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.
9532
9533 2002-02-01  H.J. Lu  <hjl@gnu.org>
9534
9535         * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
9536         (atomic_add): Likewise.
9537         (compare_and_swap): Return 0 only when failed to compare. Use
9538         branch likely.
9539
9540         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
9541         branch likely.
9542
9543 2002-02-03  kaz Kojima  <kkojima@rr.iij4u.or.jp>
9544
9545         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
9546
9547 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
9548
9549         * elf/dl-minimal.c (__strsep): New minimal implementation.
9550
9551 2002-02-02  Paul Eggert  <eggert@twinsun.com>
9552
9553         * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
9554         (__mktime_internal): If no tm_isdst is requested, prefer solutions
9555         with tm_isdst > 0 when the requested time falls within a
9556         spring-forward gap [PR libc/2894].
9557
9558 2002-02-03  Andreas Schwab  <schwab@suse.de>
9559
9560         * stdio-common/tst-rndseek.c: Increase timeout.
9561
9562 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
9563
9564         Change ld.so to not use functions which are exported.  One cannot
9565         interpose them anyway.  Use INT() to mark uses, INTDEF() to mark
9566         definitions.
9567         * include/libc-symbols.h: Define INT and INTDEF.
9568         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
9569         _dl_signal_error_internal, _dl_map_object_internal,
9570         _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
9571         _dl_lookup_versioned_symbol_internal,
9572         _dl_relocate_object_internal, _dl_debug_state_internal,
9573         _dl_start_profile_internal, and _dl_unload_cache_internal.
9574         * include/dlfcn.h: Declare _dl_catch_error_internal.
9575         * elf/rtld.c: Use INT for calls to any of the *_internal functions
9576         above.  Add INTDEF to function definitions.
9577         * elf/dl-debug.c: Likewise.
9578         * elf/dl-deps.c: Likewise.
9579         * elf/dl-dst.h: Likewise.
9580         * elf/dl-error.c: Likewise.
9581         * elf/dl-fini.c: Likewise.
9582         * elf/dl-init.c: Likewise.
9583         * elf/dl-load.c: Likewise.
9584         * elf/dl-lookup.c: Likewise.
9585         * elf/dl-misc.c: Likewise.
9586         * elf/dl-open.c: Likewise.
9587         * elf/dl-profile.c: Likewise.
9588         * elf/dl-reloc.c: Likewise.
9589         * elf/dl-runtime.c: Likewise.
9590         * elf/dl-version.c: Likewise.
9591         * elf/do-lookup.h: Likewise.
9592         * sysdeps/generic/dl-cache.c: Likewise.
9593         * sysdeps/generic/dl-sysdep.c: Likewise.
9594         * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
9595         instead of _dl_init.
9596         * sysdeps/arm/dl-machine.h: Likewise.
9597         * sysdeps/cris/dl-machine.h: Likewise.
9598         * sysdeps/hppa/dl-machine.h: Likewise.
9599         * sysdeps/i386/dl-machine.h: Likewise.
9600         * sysdeps/ia64/dl-machine.h: Likewise.
9601         * sysdeps/m68k/dl-machine.h: Likewise.
9602         * sysdeps/mips/dl-machine.h: Likewise.
9603         * sysdeps/mips/mips64/dl-machine.h: Likewise.
9604         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9605         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9606         * sysdeps/sh/dl-machine.h: Likewise.
9607         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9608         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9609         * sysdeps/x86_64/dl-machine.h: Likewise.
9610         * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
9611
9612         * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
9613         and _dl_debug_initialize.
9614
9615         * elf/dl-object.c (_dl_new_object): Avoid using strrchr.  We have
9616         more information.
9617         * elf/rtld.c (dl_main): Avoid strrchr.
9618         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
9619         result of readlink.  Search from the back for '/'.
9620
9621         * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
9622         strncpy if possible.
9623
9624         * sysdeps/generic/dl-environ.c (unsetenv): Optimize.  Don't use
9625         strncmp.
9626         * elf/dl-load.c (is_dst): Optimize.  Don't call strncmp twice.
9627         * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
9628         strspn, and strcspn.
9629         (process_envvars): Don't use strcspn.
9630
9631         * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
9632         (_dl_dst_substitute): Likewise.
9633
9634 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9635
9636         * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
9637         code which is never used when relocating ld.so itself.
9638
9639         * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
9640         starting ld.so itself.  Move l_addr variable initialization closer
9641         to use.
9642         (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
9643
9644 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
9645
9646         * Versions.def (libc): Add GLIBC_PRIVATE.
9647         (libdb, libnss_db, libdb1): Remove.
9648         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
9649         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
9650         (libpthread): Add GLIBC_PRIVATE.
9651         (libresolv): Likewise, remove GLIBC_2.1.
9652         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
9653         GLIBC_2.2.3, GLIBC_2.3.
9654         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
9655         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
9656         _dl_sym, _dl_vsym): Likewise.
9657         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
9658         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
9659         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
9660         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
9661         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
9662         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
9663         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
9664         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
9665         Likewise.
9666         (_dl_object_relocation_scope): Remove.
9667         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
9668         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
9669         __gconv_cache): Move to GLIBC_PRIVATE.
9670         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
9671         __internal_setnetgrent): Likewise.
9672         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
9673         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
9674         * locale/Versions (__collate_element_hash, __collate_element_strings,
9675         __collate_symbol_classes, __collate_symbol_hash,
9676         __collate_symbol_strings, _nl_current_LC_COLLATE,
9677         _nl_current_LC_CTYPE): Likewise.
9678         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
9679         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
9680         (libnss_nis, libnss_nisplus): Likewise.
9681         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
9682         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
9683         (libnss_files): Move all symbols to GLIBC_PRIVATE.
9684         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
9685         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
9686         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
9687         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
9688         __ns_get16, __ns_samename): Likewise.
9689         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
9690         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
9691         GLIBC_PRIVATE.
9692         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
9693         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
9694         __libc_connect): Likewise.
9695         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
9696         Likewise.
9697         * stdlib/Versions (__libc_system): Likewise.
9698         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
9699         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
9700         * sysdeps/ia64/fpu/Versions: Likewise.
9701         * sysdeps/ia64/Versions: Likewise.
9702         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
9703         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
9704         to GLIBC_PRIVATE.
9705         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
9706         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
9707         __libc_sigaction): Likewise.
9708         * termios/Versions (__libc_tcdrain): Likewise.
9709
9710         * misc/sys/cdefs (__attribute_noinline__): Define.
9711         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
9712         __attribute_noinline__.
9713
9714         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
9715         * elf/dl-xstat64.c: New file.
9716         * elf/dl-fxstat64.c: New file.
9717         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
9718         don't export __fxstat64 at multiple versions.
9719         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
9720         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
9721
9722 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
9723
9724         * locale/program/ld-collate.c (collate_finish): Assign a wide
9725         char collation sequence value to multi character collating
9726         elements, and avoid over writing by non-character elements.
9727
9728 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9729
9730         * elf/Makefile (distribute): Add dl-procinfo.c.
9731         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
9732         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
9733
9734 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
9735
9736         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
9737         definition.
9738         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
9739         _rtld_global struct.
9740         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
9741         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
9742         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9743         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
9744         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
9745         _dl_fpu_control_set): Remove unused externs.
9746         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
9747         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
9748         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
9749         related variables in _rtld_global struct.
9750         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
9751         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
9752         unused extern.
9753
9754 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9755
9756         * sysdeps/generic/dl-procinfo.c: New file.
9757
9758 2002-02-01  Andreas Schwab  <schwab@suse.de>
9759
9760         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
9761
9762 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9763
9764         * elf/rtld.c (_dl_start): Mark as internal_function.
9765         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
9766         in register.
9767         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
9768         General pretty printing.
9769
9770 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
9771
9772         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
9773         * elf/dl-reloc.c: Pretty printing.
9774         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
9775         procinfo-related variables in rtld_global struct.
9776         * elf/dl-support.c: Likewise.
9777         * elf/rtld.c: Likewise.
9778         * sysdeps/i386/i686/Makefile: Likewise.
9779         * sysdeps/i386/i686/hp-timing.c: Likewise.
9780         * sysdeps/i386/i686/hp-timing.h: Likewise.
9781         * sysdeps/ia64/Makefile: Likewise.
9782         * sysdeps/ia64/hp-timing.c: Likewise.
9783         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
9784         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
9785         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
9786         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
9787         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
9788         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
9789         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
9790         * sysdeps/x86_64/Makefile: Likewise.
9791
9792         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
9793         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
9794         _dl_debug_fd to rtld_global.
9795         * elf/Versions: Likewise.
9796         * elf/dl-close.c: Likewise.
9797         * elf/dl-iteratephdr.c: Likewise.
9798         * elf/dl-lookup.c: Likewise.
9799         * elf/dl-misc.c: Likewise.
9800         * elf/dl-open.c: Likewise.
9801         * elf/dl-support.c: Likewise.
9802         * elf/do-lookup.h: Likewise.
9803         * elf/rtld.c: Likewise.
9804         * sysdeps/generic/dl-cache.c: Likewise.
9805         * sysdeps/generic/dl-sysdep.c: Likewise.
9806         * sysdeps/ia64/Versions: Likewise.
9807         * sysdeps/unix/clock_gettime.c: Likewise.
9808         * sysdeps/unix/clock_settime.c: Likewise.
9809         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
9810         * sysdeps/sparc/Versions: Removed.
9811         * sysdeps/i386/i686/Versions : Removed.
9812         * sysdeps/x86_64/Versions: Removed.
9813         * configure.in: Define HAVE_PROTECTED if .protected is available.
9814         * config.h.in: Add entry for HAVE_PROTECTED.
9815
9816 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
9817
9818         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
9819         code in struct _rtld_global.  Export this struct, remove all
9820         exports for the signal variables.
9821         * sysdeps/arm/dl-machine: Likewise.
9822         * sysdeps/generic/dl-origin: Likewise.
9823         * sysdeps/generic/dl-sysdep: Likewise.
9824         * sysdeps/generic/dl-cache: Likewise.
9825         * sysdeps/hppa/dl-fptr: Likewise.
9826         * sysdeps/hppa/dl-machine: Likewise.
9827         * sysdeps/cris/dl-machine: Likewise.
9828         * sysdeps/i386/dl-machine: Likewise.
9829         * sysdeps/ia64/dl-machine: Likewise.
9830         * sysdeps/m68k/dl-machine: Likewise.
9831         * sysdeps/mach/hurd/dl-sysdep: Likewise.
9832         * sysdeps/mips/mips64/dl-machine: Likewise.
9833         * sysdeps/mips/dl-machine: Likewise.
9834         * sysdeps/powerpc/elf/libc-start: Likewise.
9835         * sysdeps/powerpc/dl-machine: Likewise.
9836         * sysdeps/powerpc/dl-start: Likewise.
9837         * sysdeps/sparc/sparc32/dl-machine: Likewise.
9838         * sysdeps/sparc/sparc64/dl-machine: Likewise.
9839         * sysdeps/sh/dl-machine: Likewise.
9840         * sysdeps/s390/s390-32/dl-machine: Likewise.
9841         * sysdeps/s390/s390-64/dl-machine: Likewise.
9842         * sysdeps/unix/sysv/aix/libc-start: Likewise.
9843         * sysdeps/unix/sysv/aix/start-libc: Likewise.
9844         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
9845         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
9846         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
9847         * sysdeps/x86_64/dl-machine: Likewise.
9848
9849 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
9850
9851         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
9852         are too high.
9853
9854 2002-01-31  Andreas Schwab  <schwab@suse.de>
9855
9856         * sysdeps/posix/readv.c: Check for ssize_t overflow.
9857
9858 2002-01-31  Andreas Schwab  <schwab@suse.de>
9859
9860         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
9861         reference to _dl_pagesize.
9862
9863 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
9864
9865         * Versions.def [ld]: Add GLIBC_2.3.
9866         * elf/dl-addr.c: Move global variables for SHARED code in struct
9867         _rtld_global.  Export this struct, remove all exports for the
9868         signal variables.
9869         * elf/dl-close.c: Likewise.
9870         * elf/dl-conflict.c: Likewise.
9871         * elf/dl-debug.c: Likewise.
9872         * elf/dl-deps.c: Likewise.
9873         * elf/dl-dst.h: Likewise.
9874         * elf/dl-error.c: Likewise.
9875         * elf/dl-fini.c: Likewise.
9876         * elf/dl-init.c: Likewise.
9877         * elf/dl-iteratephdr.c: Likewise.
9878         * elf/dl-libc.c: Likewise.
9879         * elf/dl-load.c: Likewise.
9880         * elf/dl-lookup.c: Likewise.
9881         * elf/dl-minimal.c: Likewise.
9882         * elf/dl-object.c: Likewise.
9883         * elf/dl-open.c: Likewise.
9884         * elf/dl-profile.c: Likewise.
9885         * elf/dl-profstub.c: Likewise.
9886         * elf/dl-reloc.c: Likewise.
9887         * elf/dl-runtime.c: Likewise.
9888         * elf/dl-support.c: Likewise.
9889         * elf/dl-sym.c: Likewise.
9890         * elf/dl-version.c: Likewise.
9891         * elf/do-lookup.h: Likewise.
9892         * elf/do-rel.h: Likewise.
9893         * elf/dynamic-link.h: Likewise.
9894         * elf/rtld.c: Likewise.
9895         * sysdeps/generic/dl-cache.c: Likewise.
9896         * sysdeps/generic/dl-sysdep.c: Likewise.
9897         * sysdeps/generic/ldsodefs.h: Likewise.
9898         * sysdeps/generic/libc-start.c: Likewise.
9899         * sysdeps/i386/dl-machine.h: Likewise.
9900         * sysdeps/ia64/dl-fptr.c: Likewise.
9901         * sysdeps/ia64/dl-machine.h: Likewise.
9902         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
9903         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
9904         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
9905         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
9906         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
9907         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
9908         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
9909         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
9910
9911 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
9912
9913         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
9914         to avoid warning
9915         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
9916
9917         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
9918         SHARED version.
9919         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
9920
9921         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
9922
9923 2002-01-29  Ben Collins  <bcollins@debian.org>
9924
9925         * string/bits/string2.h (__mempcpy): Protect size arg for
9926         addition when using __builtin_memcpy.
9927
9928 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
9929
9930         * stdlib/Makefile (tests): Add tst-qsort.
9931         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
9932
9933         * manual/signal.texi (Process Signal Mask): Document that
9934         pthread_sigmask, not sigprocmask, must be used in MT programs.
9935         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
9936
9937         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
9938         found.
9939         * misc/Makefile (tests): Add tst-hsearch.
9940         * misc/tst-hsearch.c: New file.
9941
9942 2002-01-18  Wolfram Gloger  <wg@malloc.de>
9943
9944         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
9945         * malloc/malloc.h: Likewise.
9946         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
9947         * malloc/arena.c: New file.
9948         * malloc/hooks.c: New file.
9949         * malloc/tst-mallocstate.c: New file.
9950         * malloc/Makefile: Add new testcase tst-mallocstate.
9951         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
9952
9953 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
9954
9955         * stdlib/msort.c: Remove last patch.  The optimization violates the
9956         same rule which qsort.c had problems with.
9957
9958 2002-01-27  Paul Eggert  <eggert@twinsun.com>
9959
9960         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
9961         to a pivot element that lies outside the array to be sorted, as
9962         ISO C99 requires that the comparison function be called only with
9963         addresses of array elements [PR libc/2880].
9964
9965 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
9966
9967         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
9968         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
9969
9970         * timezone/asia: Update from tzdata2002b.
9971         * timezone/australasia: Likewise.
9972         * timezone/backward: Likewise.
9973         * timezone/europe: Likewise.
9974         * timezone/leapseconds: Likewise.
9975         * timezone/iso3166.tab: Likewise.
9976         * timezone/zone.tab: Likewise.
9977
9978 2002-01-23  Richard Henderson  <rth@redhat.com>
9979
9980         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
9981
9982 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
9983
9984         * string/strxfrm.c: Allocate one more byte for rulearr and clear
9985         this element [PR libc/2855].
9986
9987         * string/strcoll.c: Handle zero-length arguments specially
9988         [PR libc/2856].
9989
9990 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
9991
9992         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
9993         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
9994         short lengths and constant src.
9995         (strcpy): Don't optimize for gcc 3.0+.
9996         (__stpcpy): For gcc 3.0+, don't use
9997         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
9998         for short string literal src.
9999
10000 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
10001
10002         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
10003         Set for arm, too.
10004
10005 2001-01-22  Paul Eggert  <eggert@twinsun.com>
10006
10007         * manual/llio.texi (Linked Channels, Cleaning Streams):
10008         Make it clearer that a just-opened input stream might need cleaning.
10009
10010 2002-01-21  H.J. Lu  <hjl@gnu.org>
10011
10012         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
10013         Don't use label at end of compound statement.
10014
10015 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
10016
10017         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
10018         Remove test for negative integer arg; sin_pi does it correctly.
10019
10020 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
10021
10022         * nscd/Makefile (distribute): Filter out xmalloc.c.
10023
10024 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
10025
10026         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
10027         Set offset if read end wasn't the buffer end.
10028         (_IO_file_seekoff_mmap): New function.
10029         (_IO_file_xsgetn_mmap): New function.
10030         (_IO_file_jumps_mmap): Use the two new functions.
10031         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
10032         != end buffer.
10033         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
10034         _IO_file_underflow_mmap.
10035         * libio/iofopen.c: Don't position file descriptor at end of file.
10036         * libio/tst-widetext.c: Improve error messages.
10037         * stdio-common/tst-rndseek.c: Likewise.
10038
10039 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
10040
10041         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
10042         end of enum for !_GNU_SOURCE.
10043         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
10044         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
10045         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
10046         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
10047         values unless _GNU_SOURCE.
10048
10049         * iconvdata/tcvn5712-1.c: Minor cleanups.
10050
10051 2002-01-18  Andreas Schwab  <schwab@suse.de>
10052
10053         * sysdeps/unix/sysv/linux/configure.in
10054         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
10055
10056 2002-01-16  Roger Sayle  <roger@eyesopen.com>
10057
10058         * stdlib/msort.c (msort_with_tmp): Replace implementation with
10059         more efficient "Towers of Hanoi" mergesort.
10060         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
10061         for generic, sizeof(int) and sizeof(long) variants respectively.
10062
10063 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
10064
10065         * manual/syslog.texi (openlog): Describe possible problems with
10066         first parameter.
10067         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10068
10069         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
10070         * nscd/connections.c (begin_drop_privileges): New function.
10071         (finish_drop_privileges): New function.
10072         (nscd_init): Call the new functions which also install all groups
10073         for the server user.
10074         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
10075         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10076
10077 2002-01-17  H.J. Lu  <hjl@gnu.org>
10078
10079         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
10080         `const' from `got'.
10081
10082 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10083
10084         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
10085         instructions for pointer operations.
10086         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
10087
10088 2002-01-17  Andreas Jaeger  <aj@suse.de>
10089
10090         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
10091         __uint128_t build-in.
10092
10093         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
10094         PowerPC, sync with 2.2 branch.
10095
10096 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
10097
10098         * posix/getconf.c: Update copyright year.
10099         * nss/getent.c: Likewise.
10100         * nscd/nscd_nischeck.c: Likewise.
10101         * iconv/iconvconfig.c: Likewise.
10102         * iconv/iconv_prog.c: Likewise.
10103         * elf/ldconfig.c: Likewise.
10104         * catgets/gencat.c: Likewise.
10105         * csu/version.c: Likewise.
10106         * elf/ldd.bash.in: Likewise.
10107         * elf/sprof.c (print_version): Likewise.
10108         * locale/programs/locale.c: Likewise.
10109         * locale/programs/localedef.c: Likewise.
10110         * nscd/nscd.c (print_version): Likewise.
10111         * debug/xtrace.sh: Likewise.
10112         * malloc/memusage.sh: Likewise.
10113         * malloc/mtrace.pl: Likewise.
10114
10115 2002-01-16  Andreas Schwab  <schwab@suse.de>
10116
10117         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
10118         reliably remove "-ia64" from rtld name.
10119
10120 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
10121
10122         * iconvdata/gb18030.c: Bug fixes and support for more characters.
10123         Patch by Yu Shao <yshao@redhat.com>.
10124
10125 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10126
10127         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
10128         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
10129         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
10130
10131 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10132
10133         * sysdeps/s390/fpu/libm-test-ulps: Update.
10134
10135 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
10136
10137         * elf/elf.h: Update x86 relocations.
10138
10139 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
10140
10141         * locale/programs/charmap.c (new_width): Check whether byte
10142         sequences for both ends of range have the same length.
10143
10144 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
10145
10146         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
10147
10148 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
10149
10150         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
10151         string literals.
10152         (__full_ieee754_sqrt): Add __attribute_used__.
10153
10154 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
10155
10156         * sysdeps/generic/group_member.c (__group_member): Also check
10157         groups[0] [PR libc/2781].
10158
10159 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
10160
10161         * Makefile (distribute): Add scripts/cpp.
10162         * elf/Makefile (distribute): Add reldep6mod[01234].c,
10163         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
10164         unwind-dw2-fde.h, and dwarf2.h.
10165         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
10166         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
10167         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
10168         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
10169
10170 2002-01-07  Roland McGrath  <roland@frob.com>
10171
10172         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
10173         volatile on type of ARGC so the compiler doesn't get clever.
10174
10175 2002-01-07  Andreas Jaeger  <aj@suse.de>
10176
10177         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
10178         * sysdeps/i386/bits/byteswap.h: Likewise.
10179         * sysdeps/ia64/bits/byteswap.h: Likewise.
10180         * sysdeps/m68k/bits/byteswap.h: Likewise.
10181         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
10182         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
10183
10184 2002-01-02  Bruno Haible  <bruno@clisp.org>
10185
10186         * intl/plural.y: Fix %expect count.
10187
10188 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
10189
10190         * elf/Makefile (routines, shared-only-routines): Add
10191         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
10192         * elf/elf.h (PT_GNU_EH_FRAME): Define.
10193         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
10194         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
10195         Optimize if .eh_frame section contains no FDEs.
10196         (__register_frame, __deregister_frame_info_bases,
10197         __deregister_frame): Likewise.
10198         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
10199         DW_CFA_restore handling.
10200
10201 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
10202
10203         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
10204
10205         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
10206         for x < 0.25 and restore original range reduction method.
10207         (__ieee754_lgammal_r): Make sure signgam is set before returning.
10208
10209 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
10210
10211         * libio/fileops.c (_IO_file_underflow_mmap): New function.
10212         (_IO_file_close_mmap): New function.
10213         (_IO_file_jumps_mmap): New variable.
10214         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
10215         trying to convert rest of byte buffer.
10216         (_IO_wfile_underflow_mmap): New function.
10217         (_IO_wfile_jumps_mmap): New variable.
10218         * libio/iofopen.c (__fopen_maybe_mmap): New function.
10219         (__fopen_internal): New function.  Split out from _IO_new_fopen.
10220         (_IO_new_fopen): Call __fopen_internal.
10221         * libio/iofopen64.c: Just call __fopen_internal.
10222         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
10223         successfully.
10224         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
10225         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
10226         _IO_file_close_mmap.
10227
10228         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
10229         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
10230
10231         * stdio-common/Makefile (tests): Add tst-rndseek.
10232         * stdio-common/tst-rndseek.c: New file.
10233
10234 2002-01-05  Roland McGrath  <roland@frob.com>
10235
10236         * config.h.in (HAVE_MIG_RETCODE): New #undef.
10237         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
10238         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
10239         * sysdeps/mach/hurd/configure: Regenerated.
10240
10241 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
10242
10243         * elf/elf.h: Add more TLS definitions.
10244
10245 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
10246
10247         * include/features.h (__GLIBC_MINOR__): Bump to 3.
10248
10249 2002-01-02  Roland McGrath  <roland@frob.com>
10250
10251         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
10252         __sigisemptyset.  Don't use MASK uninitialized.
10253
10254         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
10255         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
10256         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
10257         __sigdelset, __sigaddset, __sigorset.
10258
10259         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
10260         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
10261
10262         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
10263         _hurd_ports is null.
10264
10265         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
10266         for old CMU and new OSF Mach interface flavors.
10267         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
10268         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10269
10270         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
10271
10272         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
10273         Pass extra arguments to task_create for OSF variant.
10274         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10275
10276         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
10277         conditional on [HAVE_AUX_VECTOR].
10278
10279         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
10280         mach_msg_timeout_t as type of final argument.
10281
10282         * hurd/privports.c (__get_privileged_ports):
10283         Change host_priv_t to mach_port_t in argument type.
10284         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
10285         Update decls.
10286
10287         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
10288         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
10289         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
10290         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
10291         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
10292         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
10293
10294 2002-01-01  Roland McGrath  <roland@frob.com>
10295
10296         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
10297
10298 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
10299
10300         * include/stdlib.h: Define inlines for the _l variants of the strto*
10301         functions.
10302
10303 2002-01-01  Roland McGrath  <roland@frob.com>
10304
10305         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
10306
10307         * mach/Machrules (MIG): Set CPP as well as CC.
10308
10309 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
10310
10311         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
10312         locale to parse /proc/loadavg [PR libc/2760].
10313
10314 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
10315
10316         * elf/dl-conflict.c: Include sys/param.h.
10317         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
10318         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
10319         warning.
10320         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
10321         literals to avoid warnings.
10322
10323 2001-12-31  Andreas Jaeger  <aj@suse.de>
10324
10325         * configure.in: Don't check for gsed since we do not use it anywhere.
10326
10327 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
10328
10329         * io/fts.c: Update from BSD to fix memory leaks.
10330
10331 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
10332
10333         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
10334         * elf/chroot_canon.c: Likewise.
10335         * elf/dl-object.c: Likewise.
10336         * iconv/iconv_charmap.c: Likewise.
10337         * iconv/iconv_prog.c: Likewise.
10338         * libio/iogetdelim.c: Likewise.
10339         * locale/lc-time.c: Likewise.
10340         * stdlib/canonicalize.c: Likewise.
10341         * sunrpc/svc.c: Likewise.
10342         * sysdeps/generic/glob.c: Likewise.
10343
10344 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10345
10346         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
10347         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
10348         remove high order bit from the program counter.
10349         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
10350
10351 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10352
10353         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
10354         unnecessary code and add missing reloc types.
10355         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
10356         case for reloc type R_390_NONE.
10357
10358 2001-12-28  Andreas Jaeger  <aj@suse.de>
10359
10360         * io/bug-ftw3.c: Include string.h for prototypes.
10361
10362         * crypt/md5test.c (main): Remove unused variable.
10363
10364         * dlfcn/modstatic.c: Add prototype to avoid warning.
10365
10366 2001-12-26  Roland McGrath  <roland@frob.com>
10367
10368         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
10369         check only (SS->pending & MASK) for the signal to return.
10370         From Jeroen Dekkers <jeroen@dekkers.cx>.
10371
10372 2001-12-22  Roland McGrath  <roland@frob.com>
10373
10374         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
10375         Use preprocessor #if conditionals instead of `if' to avoid
10376         warnings about divide by zero in dead code.
10377
10378         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
10379         _hurd_port_init, and __hurd_self_sigstate.
10380
10381         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
10382
10383 2001-12-21  Andreas Jaeger  <aj@suse.de>
10384
10385         * elf/dblloadmod1.c: Add prototype to avoid warning.
10386         * elf/dblloadmod2.c: Likewise.
10387         * elf/dblloadmod3.c: Likewise.
10388         * elf/reldepmod5.c: Likewise.
10389         * elf/reldepmod6.c: Likewise.
10390
10391         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
10392         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
10393         used on all architectures.
10394
10395         * sunrpc/svc_tcp.c: Add noreturn attribute for
10396         svctcp_rendezvous_abort.
10397         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
10398
10399         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
10400         to avoid warning.
10401
10402 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
10403
10404         * manual/llio.texi (aio_fsync): Fix a typo.
10405         Patch by Tammy Fox <tfox@redhat.com>.
10406
10407 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
10408
10409         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
10410         stack bias from child stack pointer before passing it to clone syscall.
10411
10412 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
10413
10414         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
10415         _SC_TZNAME_MAX.
10416         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
10417         Reported by Thorsten Kukuk <kukuk@suse.de>.
10418
10419         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
10420         add some casts.
10421
10422         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
10423
10424 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
10425
10426         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
10427         conforming: return EBADF if file descriptor is invalid and EINVAL
10428         if file descriptor is no valid tty.
10429         * login/tst-grantpt.c: New file.
10430         * login/Makefile (tests): Add tst-grantpt.
10431
10432 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
10433
10434         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
10435         different than implemented in last patch.
10436         * io/bug-ftw3.c: Adjust test for changed handling of
10437         inaccessibility of toplevel dir.
10438
10439 2001-12-16  Roland McGrath  <roland@frob.com>
10440
10441         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
10442         * grp/initgroups.c (internal_getgrouplist): Likewise.
10443
10444         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
10445         `default:' to silence new GCC warning.
10446         Rewrite cast of lvalue to silence new GCC warning.
10447
10448         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
10449
10450         * sysdeps/mach/hurd/spawni.c: New file, by me with a
10451         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
10452
10453 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
10454
10455         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
10456         Patch by Stephen R. van den Berg.
10457
10458         * crypt/md5.h: Define md5_uintptr.
10459
10460 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
10461
10462         * libio/tst_swprintf.c (main): Add test for string argument with
10463         zero precision.
10464         * stdio-common/Makefile (tests): Add tst-sprintf.
10465         * stdio-common/tst-sprintf.c: New file.
10466
10467 2001-12-13  Andreas Schwab  <schwab@suse.de>
10468
10469         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
10470         zero precision with wide character string format.
10471
10472 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
10473
10474         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
10475         but have a user supplied buffer, return the empty buffer, not NULL.
10476
10477 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
10478
10479         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
10480         Patch by Eric Sharkey <sharkey@netrics.com>.
10481
10482         * crypt/md5test.c (main): Add test for multiple calls to
10483         __md5_process_bytes to itererate over input string.
10484
10485 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
10486
10487         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
10488         from __nis_findfastest.  Take timeout value from parameter.
10489         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
10490         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
10491         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
10492
10493 2001-12-12  Andreas Jaeger  <aj@suse.de>
10494
10495         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
10496         combreloc test so that it works in this case.
10497
10498         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
10499
10500 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
10501
10502         * sysdeps/sh/Makefile: New file.
10503         * sysdeps/sh/_mcount.S: New file.
10504         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
10505         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
10506
10507 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
10508
10509         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
10510         limitation [PR libc/2564].
10511
10512 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
10513
10514         * elf/Makefile (dl-routines): Add conflict.
10515         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
10516         (ld.so): Add _begin local symbol.
10517         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
10518         Define.
10519         * elf/dl-deps.c (_dl_build_local_scope): New function.
10520         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
10521         of all libraries.
10522         * elf/do-rel.h (VALIDX): Define.
10523         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
10524         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
10525         can be skipped.
10526         * elf/dl-conflict.c: New file.
10527         * elf/dl-lookup.c (_dl_debug_bindings): New function.
10528         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
10529         non-NULL.
10530         (_dl_lookup_symbol_skip): Likewise.
10531         (_dl_lookup_versioned_symbol): Likewise.
10532         (_dl_lookup_versioned_symbol_skip): Likewise.
10533         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
10534         define to ElfW(Rel).
10535         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
10536         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
10537         ranges.
10538         Don't adjust address dynamic tags if l_addr is 0.
10539         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
10540         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
10541         (VALIDX, ADDRIDX): Define.
10542         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
10543         (dl_main): Print library list for LD_TRACE_PRELINKING.
10544         If prelinking information can be used, skip relocating libraries and
10545         call _dl_resolve_conflicts instead.
10546         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
10547         * elf/dl-load.c (_dl_map_object): Don't create fake libs
10548         if LD_TRACE_PRELINKING.
10549         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
10550         + DT_ADDRNUM.
10551         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
10552         (DL_DEBUG_PRELINK): Define.
10553         (_dl_resolve_conflicts): Add prototype.
10554
10555         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
10556         .plt for prelinked libraries where prelinking info cannot be used.
10557         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
10558         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
10559         * sysdeps/arm/bits/link.h: New file.
10560         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
10561         content of .got[1].
10562         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
10563         (ELF_MACHINE_PLT_REL): Define.
10564         (elf_machine_rela, elf_machine_rela_relative): New functions.
10565         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
10566         of adjusting it if prelinked and prelinking cannot be used.
10567         * sysdeps/i386/bits/link.h: New file.
10568         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
10569         content of .got[1].
10570         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
10571         (ELF_MACHINE_PLT_REL): Define.
10572         (elf_machine_rela, elf_machine_rela_relative): New functions.
10573         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
10574         of adjusting it if prelinked and prelinking cannot be used.
10575         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
10576         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
10577         to find out map for R_PPC_JMP_SLOT relocs.
10578         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
10579         (OPCODE_BA): Define.
10580         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
10581         libraries where prelinking info cannot be used.
10582         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
10583         (elf_machine_fixup_plt): Call sparc_fixup_plt.
10584         (elf_machine_rela): Set value to 0 if relocating conflicts.
10585         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
10586         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
10587         (sparc64_fixup_plt): Fix a typo.
10588         (elf_machine_rela): Set value to 0 if relocating conflicts.
10589         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
10590         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
10591         libraries where prelinking info cannot be used.
10592         * sysdeps/sh/bits/link.h: New file.
10593         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
10594         content of .got[1].
10595         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
10596         of adjusting it if prelinked and prelinking cannot be used.
10597         * sysdeps/s390/s390-32/bits/link.h: New file.
10598         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
10599         Save original content of .got[1].
10600         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
10601         of adjusting it if prelinked and prelinking cannot be used.
10602         * sysdeps/s390/s390-64/bits/link.h: New file.
10603         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
10604         Save original content of .got[1].
10605         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
10606         of adjusting it if prelinked and prelinking cannot be used.
10607         * sysdeps/x86_64/bits/link.h: New file.
10608         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
10609         Save original content of .got[1].
10610         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
10611         of adjusting it if prelinked and prelinking cannot be used.
10612
10613 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
10614
10615         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
10616         where appropriate instead of numbers.  Little optimizations.
10617
10618 2001-12-10  Roland McGrath  <roland@frob.com>
10619
10620         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
10621         set it.
10622
10623         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
10624         set to GLIBC_2.2.5, not GLIBC_2.2.4.
10625
10626         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
10627         Fix conditionals so this is set by default for stdio and not for libio.
10628         * sysdeps/mach/hurd/configure: Regenerated.
10629
10630 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
10631
10632         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
10633
10634 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
10635
10636         * io/Makefile (tests): Add bug-ftw3.
10637         * io/bug-ftw3.c: New file.
10638
10639         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
10640         matches and GLOB_NOCHECK is set.
10641         * posix/globtest.sh: Correct expected result for NOCHECK test.
10642
10643         * po/ca.po: Update from translation team.
10644
10645 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
10646
10647         Implement transliteration of characters in strings of the locale
10648         definitions.
10649         * locale/programs/linereader.c: Adjust for additional parameter to
10650         lr_token.
10651         (get_string): If character <Uxxxx> is not found try to transliterate
10652         it.
10653         * locale/programs/ld-ctype.c: Adjust for additional parameter to
10654         lr_token.  Add const to charmap parameter of all functions.
10655         (find_translit, find_translit2): New functions.
10656         * locale/programs/charmap.c: Adjust for additional parameter to
10657         lr_token.
10658         * locale/programs/repertoire.c: Likewise.
10659         * locale/programs/linereader.h: Likewise.
10660         * locale/programs/ld-address.c: Likewise.  Add const to charmap
10661         parameter of all functions.
10662         * locale/programs/ld-collate.c: Likewise.
10663         * locale/programs/ld-identification.c: Likewise.
10664         * locale/programs/ld-measurement.c: Likewise.
10665         * locale/programs/ld-messages.c: Likewise.
10666         * locale/programs/ld-monetary.c: Likewise.
10667         * locale/programs/ld-name.c: Likewise.
10668         * locale/programs/ld-numeric.c: Likewise.
10669         * locale/programs/ld-paper.c: Likewise.
10670         * locale/programs/ld-paper.c: Likewise.
10671         * locale/programs/ld-telephone.c: Likewise.
10672         * locale/programs/ld-time.c: Likewise.
10673         * locale/programs/locfile.c: Likewise.
10674         * locale/programs/localedef.c: Likewise.
10675         * locale/programs/localedef.h: Likewise.
10676         * locale/programs/locfile.h: Likewise.  Add declaration for
10677         find_translit.
10678         * locale/programs/simple-hash.c: Add const to first parameter of
10679         find_entry, iterate_table, and lookup.
10680         * locale/programs/simple-hash.h: Likewise.
10681         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
10682         instead.
10683         * include/locale.h: Define __LC_LAST.
10684         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
10685
10686 2001-12-07  Geoff Keating  <geoffk@redhat.com>
10687
10688         * sysdeps/powerpc/Dist: Update for recent FP changes.
10689         * sysdeps/powerpc/fpu/Dist: Likewise.
10690
10691 2001-12-07  Andreas Schwab  <schwab@suse.de>
10692
10693         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
10694
10695 2001-12-06  Geoff Keating  <geoffk@redhat.com>
10696
10697         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
10698         save/restore functions here.
10699         (libm-support): Don't define these functions here.
10700         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
10701         functions here.
10702         * sysdeps/powerpc/fe_nomask.c: Move to...
10703         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
10704         * sysdeps/powerpc/fprrest.S: Move to...
10705         * sysdeps/powerpc/fpu/fprrest.S: ... here.
10706         * sysdeps/powerpc/fprsave.S: Move to...
10707         * sysdeps/powerpc/fpu/fprsave.S: ... here.
10708
10709 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
10710
10711         * sysdeps/unix/sysv/linux/opensock.c: New file.
10712
10713 2001-12-06  Geoff Keating  <geoffk@redhat.com>
10714
10715         * config.make.in (with-fp): Define from configure.
10716         * configure.in: Substitute with_fp.
10717         * configure: Regenerate.
10718         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
10719         specified, and don't change FPU environment.
10720
10721 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
10722
10723         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
10724         * assert/assert.c: Check result of __asprintf call and don't use
10725         string if it failed.
10726         * assert/assert-perr.c: Likewise.
10727         * inet/rcmd.c: Likewise.
10728         * locale/programs/localedef.c (main): Check result of
10729         construct_output_path and exit if it failed.
10730         (construct_output_path): Check result of asprintf and mkdir calls and
10731         fail if they failed.
10732         * posix/getopt.c: Check result of __asprintf calls and fail if
10733         they failed.
10734         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
10735
10736 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
10737
10738         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
10739         patch.
10740         * sysdeps/generic/strncase.c: Likewise.
10741         * string/tester.c: Add tests for strcasecmp and strncasecmp.
10742
10743 2001-12-05  Geoff Keating  <geoffk@redhat.com>
10744
10745         * scripts/cpp: Test the exit status from 'type', not 'awk'.
10746
10747         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
10748         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
10749         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
10750         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
10751         * sysdeps/powerpc/fclrexcpt.c: Move to...
10752         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
10753         * sysdeps/powerpc/fpu_control.h: Move to...
10754         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
10755
10756 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
10757
10758         * iconvdata/ibm1129.h: Remove duplicate mappings.
10759         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
10760         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
10761         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10762
10763         * timezone/zic.c: Fix handling of turnaround times.
10764         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
10765
10766 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
10767
10768         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
10769         overflow problem.
10770
10771 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
10772
10773         * posix/regex.c: For use outside glibc defined bounded pointer
10774         macros here.  Patch by Jim Meyering <jim@meyering.net>.
10775
10776         * iconvdata/Makefile (modules): Add TCVN5712-1.
10777         * iconvdata/TESTS: Add TCVN5712-1.
10778         * iconvdata/gconv-modules: Likewise.
10779         * iconvdata/tcvn5712-1.c: New file.
10780         * iconvdata/testdata/TCVN-5712: New file.
10781         * iconvdata/testdata/TCVN-5712..UTF8: New file.
10782
10783 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
10784
10785         * iconvdata/cp1258.c: Optimize conversion from UCS4.
10786
10787 2001-12-02  Roland McGrath  <roland@frob.com>
10788
10789         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
10790
10791         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
10792         Reported by Jeff Bailey <jbailey@nisa.net>.
10793
10794         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
10795         Reported by Jeff Bailey <jbailey@nisa.net>.
10796
10797         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
10798         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
10799         Reported by Jeff Bailey <jbailey@nisa.net>.
10800
10801 2001-12-01  Roland McGrath  <roland@frob.com>
10802
10803         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
10804         missing backslash in test arguments.
10805         * sysdeps/mach/hurd/configure: Regenerated.
10806
10807 2001-11-26  Roland McGrath  <roland@frob.com>
10808
10809         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
10810         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
10811
10812 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
10813
10814         * iconvdata/Makefile (modules): Add ARMSCII-8.
10815         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
10816         * iconvdata/armscii-8.c: New file.
10817
10818 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
10819
10820         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
10821         don't match, fix {{a,b},c} globbing, clean up.
10822         Patch by Flavio Veloso <flaviovs@magnux.com>.
10823         * posix/globtest.sh: Add new tests.
10824
10825 2001-11-29  Andreas Jaeger  <aj@suse.de>
10826
10827         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
10828         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
10829
10830         * sysdeps/generic/abort.c: Include libioP.h for
10831         _IO_flush_all_lockp prototype.
10832
10833 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
10834
10835         * posix/regex.h: Define __restrict_arr correctly.
10836
10837 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
10838
10839         * iconvdata/ibm1163.c: New file.
10840         * iconvdata/ibm1163.h: New file.
10841         * iconvdata/ibm1164.c: New file.
10842         * iconvdata/ibm1164.h: New file.
10843         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
10844         * iconvdata/Makefile: Likewise.
10845         * iconvdata/testdata/IBM1163: New file.
10846         * iconvdata/testdata/IBM1163..UTF8: New file.
10847         * iconvdata/testdata/IBM1164: New file.
10848         * iconvdata/testdata/IBM1164..UTF8: New file.
10849         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10850
10851         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
10852         * iconvdata/ibm1124.h: Likewise.
10853         * iconvdata/ibm1132.h: Likewise.
10854         * iconvdata/ibm1133.h: Likewise.
10855         * iconvdata/ibm1160.h: Likewise.
10856         * iconvdata/ibm1161.h: Likewise.
10857         * iconvdata/ibm1162.h: Likewise.
10858         * iconvdata/ibm856.h: Likewise.
10859         * iconvdata/ibm922.h: Likewise.
10860         * iconvdata/ibm930.h: Likewise.
10861         * iconvdata/ibm932.h: Likewise.
10862         * iconvdata/ibm933.h: Likewise.
10863         * iconvdata/ibm935.h: Likewise.
10864         * iconvdata/ibm937.h: Likewise.
10865         * iconvdata/ibm939.h: Likewise.
10866         * iconvdata/ibm943.h: Likewise.
10867         * iconvdata/ibm930.c: Pretty printing.
10868         * iconvdata/ibm937.c: Avoid access accross array boundary.
10869
10870         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
10871         the current locale's codeset.
10872         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
10873         empty input string.
10874         * iconv/iconv_prog.c: Pass empty strings as default value for to-
10875         and from-charset.  Don't determine locale's charset here.
10876
10877         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
10878         as the old _IO_flush_all but lock only if parameter is nonzero.
10879         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
10880         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
10881         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
10882         if libio is used [PR libc/2575].
10883
10884 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
10885
10886         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
10887         __signbitl): Only define for ISO C99.
10888
10889 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
10890
10891         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
10892         herrnop to NETDB_INTERNAL if we run out of buffer space.
10893
10894 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
10895
10896         * nss/nss_files/files-XXX.c (internal_getent): Correct input
10897         overflow test for platforms with signed char.
10898         Reported by Andrew Haley <aph@cambridge.redhat.com>.
10899
10900 2001-11-28  Bruno Haible  <bruno@clisp.org>
10901
10902         * locale/programs/simple-hash.c (lookup_2): Remove function.
10903         (insert_entry_2): Call lookup instead of lookup_2.
10904
10905 2001-03-04  Bruno Haible  <bruno@clisp.org>
10906
10907         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
10908
10909 2001-10-31  Bruno Haible  <bruno@clisp.org>
10910
10911         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
10912
10913 2001-03-21  Bruno Haible  <bruno@clisp.org>
10914
10915         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
10916         chokes on empty macro arguments.
10917         * intl/plural.y: Add #pragma for alloca on AIX 3.
10918
10919 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
10920
10921         * intl/dcigettext.c (guess_category_value): Only implement for
10922         glibc.  Otherwise rely on function _nl_locale_name which isn't
10923         present in the glibc sources.
10924
10925 2001-09-24  Bruno Haible  <bruno@clisp.org>
10926
10927         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
10928         transliteration when building on a glibc system but outside glibc.
10929
10930 2001-09-22  Bruno Haible  <bruno@clisp.org>
10931
10932         * intl/plural-eval.c: New file, extracted from dcigettext.c.
10933         * intl/dcigettext.c (plural_eval): Remove function, moved to
10934         intl/plural-eval.c.
10935         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
10936         Include plural-eval.c.
10937
10938 2001-09-22  Bruno Haible  <bruno@clisp.org>
10939
10940         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
10941         don't start with a digit; nplurals must be positive.
10942
10943 2001-09-02  Bruno Haible  <bruno@clisp.org>
10944
10945         * intl/plural-exp.h: New file, extracted from gettextP.h.
10946         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
10947         * intl/gettextP.h (struct expression, struct parse_args,
10948         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
10949         * intl/loadmsgcat.c: Include plural-exp.h.
10950         (PLURAL_PARSE): Move macro to plural-exp.h.
10951         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
10952         plural-exp.c.
10953         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
10954         EXTRACT_PLURAL_EXPRESSION.
10955         (_nl_unload_domain): Update.
10956         * intl/dcigettext.c: Include plural-exp.h.
10957         * intl/plural.y: Include plural-exp.h, not gettextP.h.
10958         (FREE_EXPRESSION): Move macro to plural-exp.h.
10959         * intl/Makefile (routines): Add plural-exp.
10960         (distribute): Add plural-exp.h.
10961
10962 2001-07-28  Bruno Haible  <bruno@clisp.org>
10963
10964         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
10965         isdigit, tolower argument to 'unsigned char'.
10966         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
10967         'unsigned char'.
10968         * intl/localealias.c (read_alias_file): Cast isspace argument to
10969         'unsigned char'.
10970
10971 2001-10-20  Bruno Haible  <bruno@clisp.org>
10972
10973         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
10974         anyway.)
10975         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
10976         with the variable 'index' in plural_lookup.
10977         * intl/l10nflist.c (strchr): Likewise.
10978         * intl/localealias.c (strchr): Likewise.
10979
10980         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
10981         * intl/bindtextdom.c: Likewise.
10982         * intl/dcigettext.c: Likewise.
10983         * intl/dgettext.c: Likewise.
10984         * intl/dngettext.c: Likewise.
10985         * intl/explodename.c: Likewise.
10986         * intl/finddomain.c: Likewise.
10987         * intl/gettext.c: Likewise.
10988         * intl/l10nflist.c: Likewise.
10989         * intl/loadmsgcat.c: Likewise.
10990         * intl/localealias.c: Likewise.
10991         * intl/ngettext.c: Likewise.
10992         * intl/textdomain.c: Likewise.
10993         * intl/gettext.h: Assume <limits.h> exists.
10994
10995 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
10996
10997         * stdio-common/Makefile (tests): Add scanf11.
10998         * stdio-common/scanf11.c: New file.
10999
11000 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
11001
11002         * version.h (RELEASE): Define as development.
11003         (VERSION): Set to 2.2.90.
11004
11005 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
11006
11007         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
11008         * nis/nss_nis/nis-grp.c: Likewise.
11009         * nis/nss_nisplus/nisplus-grp.c: Likewise.
11010
11011         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
11012         * nis/nss_nis/nis-pwd.c: Likewise.
11013         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
11014
11015         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
11016         * nis/nss_nisplus/nisplus-parser.c: Likewise.
11017         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
11018
11019         * nscd/grpcache.c: Use strtoul instead of atol.
11020         * nscd/pwdcache.c: Likewise.
11021         * nss/getent.c: Likewise.
11022
11023 2001-11-27  Paul Eggert  <eggert@twinsun.com>
11024
11025         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
11026         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
11027
11028 2001-11-19  Bruno Haible  <bruno@clisp.org>
11029
11030         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
11031         90%.
11032         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
11033         improves the quality of the hash function, especially for short
11034         strings.
11035
11036 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
11037
11038         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
11039         are found call conv_error and not input_error [PR libc/2669].
11040
11041         * math/bits/mathcalls.h: Mark ceil and floor as const.
11042         Reported by David Mosberger.
11043
11044 2001-11-21  Jim Meyering  <meyering@lucent.com>
11045
11046         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
11047         Define to be __-prefixed.
11048         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
11049
11050 2001-11-26  Andreas Jaeger  <aj@suse.de>
11051
11052         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
11053         avoid warning.
11054
11055 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
11056
11057         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
11058         initialization.
11059
11060         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
11061         unused variables.  Fix threshold for returning 1.0.
11062
11063         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
11064         argument.
11065
11066         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
11067         remove unused variables.
11068
11069         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
11070
11071         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
11072         include local math header files.
11073
11074 2001-11-22  Andreas Jaeger  <aj@suse.de>
11075
11076         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
11077         avoid warning.
11078
11079 2001-11-21  Andreas Jaeger  <aj@suse.de>
11080
11081         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
11082
11083         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
11084         sys/debugreg.h
11085
11086 2001-11-15  Andreas Jaeger  <aj@suse.de>
11087
11088         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
11089         compilers that support it.
11090
11091         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
11092         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
11093         * stdlib/stdlib.h: Likewise.
11094
11095 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
11096
11097         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
11098         statement with gotos.
11099         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
11100
11101 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
11102
11103         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
11104
11105 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
11106
11107         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
11108
11109 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
11110             H.J. Lu  <hjl@gnu.org>
11111
11112         * Versions.def (libc): Add GCC_3.0.
11113         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
11114         if gcc supports this flag.
11115         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
11116         (gcc3): Allow glibc to be compiled with gcc 3.x.
11117         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
11118         * config.make.in (static-libgcc, unwind-find-fde): Add.
11119         * Makerules (build-shlib-helper, build-module-helper): Use it.
11120         * scripts/versions.awk: Make sure GLIBC_ versions come first.
11121         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
11122         necessary.
11123         (_fini): Call __deregister_frame_info_bases if
11124         __register_frame_info_bases was used to register.
11125         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
11126         for GLIBC_2.0.
11127         (__register_frame_info_bases, __register_frame_info_table_bases,
11128         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
11129         * elf/Makefile (routines): Add unwind-dw2-fde.
11130         (shared-only-routines): Add unwind-dw2-fde.
11131         * sysdeps/alpha/gccframe.h: New file.
11132         * sysdeps/arm/gccframe.h: New file.
11133         * sysdeps/generic/framestate.c: New file.
11134         * sysdeps/generic/dwarf2.h: New file.
11135         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
11136         * sysdeps/generic/unwind-dw2-fde.c: New file.
11137         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
11138         * sysdeps/generic/unwind-dw2-fde.h: New file.
11139         * sysdeps/generic/unwind-dw2.c: New file.
11140         * sysdeps/generic/unwind-pe.h: New file.
11141         * sysdeps/generic/unwind.h: New file.
11142         * sysdeps/hppa/gccframe.h: New file.
11143         * sysdeps/i386/gccframe.h: New file.
11144         * sysdeps/m68k/gccframe.h: New file.
11145         * sysdeps/mips/gccframe.h: New file.
11146         * sysdeps/powerpc/gccframe.h: New file.
11147         * sysdeps/s390/gccframe.h: New file.
11148         * sysdeps/sh/gccframe.h: New file.
11149         * sysdeps/sparc/gccframe.h: New file.
11150         * sysdeps/vax/gccframe.h: New file.
11151         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
11152         Set on all architectures except ia64.
11153         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
11154         for i386.
11155         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
11156         __deregister_frame_info): Move to elf/Versions.
11157         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
11158         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
11159         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
11160         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
11161         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
11162         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
11163         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
11164         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
11165         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
11166         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
11167         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
11168         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
11169         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
11170         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
11171         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
11172         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
11173         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
11174         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
11175
11176 2001-11-15  Jeff Law  <law@redhat.com>
11177
11178         * posix/regex.c (uintptr_t): Do not provide a definition if the
11179         system provided one.
11180
11181 2001-11-13  Roland McGrath  <roland@frob.com>
11182
11183         * stdio-common/tmpfile.c: Moved to ...
11184         * sysdeps/generic/tmpfile.c: ... here.
11185         * sysdeps/mach/hurd/tmpfile.c: New file.
11186
11187         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
11188         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
11189         (fopenport): Define as weak alias.
11190
11191         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
11192         * libio/libioP.h: ... to here.
11193
11194 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
11195
11196         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
11197         program header twice.  Construct list with the needed information.
11198
11199 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
11200
11201         * po/ca.po: Update from translation team.
11202
11203         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
11204         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
11205         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
11206         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11207
11208 2001-11-10  Andreas Jaeger  <aj@suse.de>
11209
11210         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
11211         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11212         Contributed by Stephen L Moshier <moshier@mediaone.net>.
11213
11214 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
11215
11216         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
11217         correctly.
11218         * elf/dl-load.c (is_dst): New function.
11219         (_dl_dst_count): Use is_dst to check for DST variable.
11220         (_dl_dst_substitute): Likewise.
11221
11222 2001-11-09  Roland McGrath  <roland@frob.com>
11223
11224         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
11225         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
11226         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
11227         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
11228         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
11229         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
11230         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
11231         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
11232         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
11233         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
11234         * sysdeps/mach/hurd/powerpc/Dist: New file.
11235
11236         * hurd/privports.c (__get_privileged_ports):
11237         Only contact the proc server if necessary for this call.
11238         Suggested by Neal H Walfield <neal@cs.uml.edu>.
11239         Check error return for mach_port_mod_refs.
11240
11241 2001-11-09  Andreas Schwab  <schwab@suse.de>
11242
11243         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
11244
11245 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
11246
11247         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
11248         object is always the last in the list.
11249         (_dl_map_object_from_fd): Delete code to remove from object list
11250         when DF_1_NOOPEN is seen.  This is done in lose.
11251
11252 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
11253
11254         * elf/dl-object.c (_dl_new_object): Various small optimizations.
11255
11256 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
11257
11258         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
11259         HWCAP_CHECK macro code.
11260
11261         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
11262         Now returns MAP_FAILED on error.
11263         * elf/rtld.c: Adjust caller.
11264         * sysdeps/generic/dl-cache.c: Likewise.
11265         * sysdeps/generic/ldsodefs.h: Adjust description.
11266
11267         * elf/dl-version.c (match_symbol): Optimize error handling for size.
11268         (_dl_check_map_versions): Likewise.
11269
11270 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
11271
11272         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
11273         _dl_signal_error directly, always use lose.  Set fd to -1 after
11274         file is closed.
11275         (lose): Don't call close if fd == -1.
11276
11277 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
11278
11279         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
11280          Also fix typo @code {mbsinit} to @code{mbsinit}.
11281
11282 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
11283
11284         * elf/dl-profile.c: Replace state variable with simple flag named
11285         running.  Remove commented-out code.
11286
11287         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
11288         (_dl_init_paths): Likewise.
11289         (_dl_map_object_from_fd): Likewise.
11290         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11291
11292 2001-11-06  Roland McGrath  <roland@frob.com>
11293
11294         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
11295         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
11296
11297         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
11298         sysdeps/powerpc/elf/sysdep.h.
11299         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
11300
11301 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
11302
11303         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
11304         speed.
11305         (process_envvars): Some more optimizations.
11306         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
11307
11308         * elf/elf.h: Add dynamic tag definitions for prelinking.
11309
11310         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
11311         Rewrite code to remove environment varables for SUID binaries.
11312         Small optimization in LD_PROFILE handling.
11313         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
11314         changes.
11315         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
11316
11317         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
11318
11319         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
11320         strings.  Change type of second parameter.
11321         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
11322         for last change.
11323
11324         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
11325
11326 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
11327
11328         * manual/string.texi: Fix typos.
11329         * manual/examples/argp-ex2.c: Likewise.
11330
11331 2001-11-05  Roland McGrath  <roland@frob.com>
11332
11333         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
11334         the more-specific unix/sysv/linux/powerpc file and breaks everything.
11335         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
11336         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
11337         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
11338         here, put under [__ELF__].
11339
11340 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
11341
11342         * manual/charset.texi: Extensive editing work.
11343         * manual/nss.texi: Likewise.
11344         Changes by Dennis Grace <dgrace@us.ibm.com>.
11345
11346 2001-11-04  Roland McGrath  <roland@frob.com>
11347
11348         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
11349         parameter to dir_mkfile.
11350
11351 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
11352
11353         * string/bits/string2.h (__strndup): If n is smaller than len, set
11354         len to n + 1.
11355         * string/tester.c (test_strndup): New function.
11356         (main): Call it.
11357
11358 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
11359
11360         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
11361
11362         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
11363         * scripts/cpp: New file.
11364
11365         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
11366         for rtld_search_dirs content.  Minor optimizations.
11367
11368 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
11369
11370         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
11371         avoiding unnecessary duplication.
11372
11373 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
11374
11375         * elf/dl-load.c (_dl_map_object): If library was found using
11376         LD_LIBRARY_PATH, don't try RUNPATH list.
11377
11378 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11379
11380         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
11381         Correct second argument of register_dump call.
11382         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
11383         Likewise.
11384
11385 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
11386
11387         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
11388         modules.
11389         * iconvdata/TESTS: Likewise.
11390         * iconvdata/gconv-modules: Likewise.
11391         * iconvdata/ibm1132.c: New file.
11392         * iconvdata/ibm1132.h: New file.
11393         * iconvdata/ibm1133.c: New file.
11394         * iconvdata/ibm1133.h: New file.
11395         * iconvdata/ibm1162.c: New file.
11396         * iconvdata/ibm1162.h: New file.
11397         * iconvdata/testdata/IBM1132: New file.
11398         * iconvdata/testdata/IBM1132..UTF8: New file.
11399         * iconvdata/testdata/IBM1133: New file.
11400         * iconvdata/testdata/IBM1133..UTF8: New file.
11401         * iconvdata/testdata/IBM1162: New file.
11402         * iconvdata/testdata/IBM1162..UTF8: New file.
11403         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
11404
11405         * string/string.h: Fix typo in comment.
11406         * wcsmbs/wchar.h: Likewise.
11407
11408 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
11409
11410         * manual/getopt.texi (getopt_long, getopt_long_only): Include
11411         const in type of longopts parameter.
11412
11413 2001-10-29  Andreas Jaeger  <aj@suse.de>
11414
11415         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
11416
11417 2001-10-29  Kevin Ryde  <user42@zip.com.au>
11418
11419         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
11420         output, clarify `#' behaviour on 0.
11421         (Floating-Point Conversions): Clarify that %g only uses %e when
11422         the exponent would be greater than 1.
11423
11424 2001-10-28  Roland McGrath  <roland@frob.com>
11425
11426         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
11427         * sysdeps/mach/powerpc/machine-sp.h: New file.
11428         * sysdeps/mach/powerpc/sysdep.h: New file.
11429         * sysdeps/mach/powerpc/thread_state.h: New file.
11430
11431         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
11432         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
11433         expect to need the same thing on every platform.
11434
11435         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
11436         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
11437
11438         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
11439         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
11440         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
11441         Move all these assembly-related definitions to ...
11442         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
11443
11444         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
11445         by Peter Bruin <pjbruin@dds.nl>.
11446
11447         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
11448         packing results for a `poll' call.
11449
11450 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
11451
11452         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
11453         correctly.
11454         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
11455         bracket expression.
11456
11457         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
11458         nrules value.
11459         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
11460
11461 2001-10-24  H.J. Lu  <hjl@gnu.org>
11462
11463         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
11464         Use __BEGIN_DECLS/__END_DECLS around prototypes.
11465         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
11466
11467 2001-10-21  Jim Meyering  <meyering@lucent.com>
11468
11469         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
11470         this code would end up calling gettext even in packages built
11471         with --disable-nls.
11472         * posix/getopt.c (_): Likewise.
11473         * posix/regex.c (_): Likewise.
11474
11475 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
11476
11477         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
11478         lookup not ip6.int.
11479         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
11480         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
11481
11482 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
11483
11484         * misc/sys/cdefs.h (__attribute_used__): Define.
11485         * elf/rtld.c (_dl_start): Add __attribute_used__.
11486         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
11487
11488 2001-10-25  Andreas Schwab  <schwab@suse.de>
11489
11490         * stdlib/a64l.c: Expect least significant digit first.
11491         * stdlib/l64a.c: Produce least significant digit first.
11492         * stdlib/Makefile (tests): Add test-a64l.
11493         * stdlib/test-a64l.c: New file.
11494         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
11495
11496 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
11497
11498         * po/sk.po: Update from translation team.
11499
11500 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
11501
11502         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
11503
11504 2001-10-18  Andreas Schwab  <schwab@suse.de>
11505
11506         * math/libm-test.inc (print_ulps): Print ulp values rounded to
11507         next whole number.
11508         (print_function_ulps): Likewise.
11509         (print_complex_function_ulps): Likewise.
11510         (print_max_error): Likewise.
11511         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
11512
11513 2001-10-16  Andreas Schwab  <schwab@suse.de>
11514
11515         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
11516         implementation.
11517
11518         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
11519         BSD_SETJMP or BSD__SETJMP is defined, resp.
11520         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
11521         a tail call to __sigsetjmp that would require extending the
11522         caller's frame.
11523         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
11524         * sysdeps/m68k/bsd-setjmp.S: Deleted.
11525         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
11526         Reported by Jes Sorensen <jes@trained-monkey.org>.
11527
11528 2001-10-16  Andreas Jaeger  <aj@suse.de>
11529
11530         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
11531         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
11532         close PR libc/2589.
11533
11534 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
11535
11536         * po/ca.po: New file.  Contributed by the translation team.
11537
11538 2001-10-15  Ralf Baechle  <ralf@gnu.org>
11539
11540         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
11541         a varargs prototype.  Remove dependency from kernel header files.
11542
11543         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
11544         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
11545
11546 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
11547
11548         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
11549         to generate hexadecimal identifier.
11550         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
11551
11552 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
11553
11554         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
11555
11556 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
11557
11558         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
11559         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
11560         Contributed by Stephen L Moshier <moshier@mediaone.net>.
11561
11562         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
11563         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11564         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
11565         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
11566         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
11567         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
11568
11569         * timezone/africa: Update from tzdata2001d.
11570         * timezone/asia: Likewise.
11571         * timezone/australasia: Likewise.
11572         * timezone/backward: Likewise.
11573         * timezone/europe: Likewise.
11574         * timezone/leapseconds: Likewise.
11575         * timezone/northamerica: Likewise.
11576         * timezone/southamerica: Likewise.
11577         * timezone/zone.tab: Likewise.
11578
11579 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11580
11581         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
11582         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
11583
11584 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
11585
11586         * elf/elf.h (PT_TLS): New definition.
11587
11588 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
11589
11590         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
11591         bits/errno.h
11592
11593 2001-10-07  Roland McGrath  <roland@frob.com>
11594
11595         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
11596
11597 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
11598
11599         * elf/elf.h: Add more ELFOSABI_* constants.
11600
11601 2001-10-04  Ben Collins  <bcollins@debian.org>
11602
11603         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
11604         decleration of __need_wchar_t.
11605
11606 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
11607
11608         * string/bits/string2.h (__strsep_g): Add prototype.
11609         (__strsep): Use it.
11610         * string/Versions (__strsep): Remove.
11611         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
11612
11613 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
11614
11615         * manua/llio.texi: Clarify file references added by mmap.
11616         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
11617
11618 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
11619
11620         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
11621         Add sc_loadrs and sc_rbs_bas to match current kernel.
11622
11623 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
11624
11625         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
11626
11627         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
11628
11629 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
11630
11631         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
11632         object has been bumped because of relocation dependency, avoid
11633         duplicates in l_scope.
11634         (show_scope): Fix typos.
11635         * elf/Makefile: Add rules to build and run reldep6.
11636         * elf/reldep6.c: New file.
11637         * elf/reldep6mod0.c: New file.
11638         * elf/reldep6mod1.c: New file.
11639         * elf/reldep6mod2.c: New file.
11640         * elf/reldep6mod3.c: New file.
11641         * elf/reldep6mod4.c: New file.
11642
11643 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
11644
11645         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
11646         sparc64_fixup_plt.
11647         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
11648         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
11649         for non-lazy binding. Fix .plt[32768+] handling.
11650         (elf_machine_plt_value): Don't add addend.
11651         (elf_machine_rela): Call sparc64_fixup_plt instead of
11652         elf_machine_fixup_plt.
11653         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
11654         dynamic linker at 0xfffff800XXXXXXXX.
11655
11656         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
11657
11658 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
11659
11660         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
11661
11662 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
11663
11664         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
11665         declare __cmsg_data field if its size would be bigger than 0.
11666         (CMSG_DATA): Adjust accordingly.
11667         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
11668         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
11669         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
11670         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
11671         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11672         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
11673         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11674
11675 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
11676
11677         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
11678         * iconvdata/testdata/IBM1160: New file.
11679         * iconvdata/testdata/IBM1160..UTF8: New file.
11680         * iconvdata/testdata/IBM1161: New file.
11681         * iconvdata/testdata/IBM1161..UTF8: New file.
11682         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11683
11684 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
11685
11686         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
11687         UL_SETFSIZE computations better.
11688
11689         * rt/Makefile: Remove use of filter for librt again.
11690
11691         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
11692         UL_SETFSIZE computations better.
11693
11694         * string/Versions: Export __strsep for GLIBC_2.2.5.
11695         * string/bits/string2.h: Define all __STRING_INLINE functions if
11696         _FORCE_INLINES is defined.
11697         Use int instead of char of parameter types.
11698         (__strsep): Don't use __strsep_g.  Don't define it.
11699         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
11700         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
11701         __strcpy_small.
11702         (__stpcpy_a_small): Renamed from __stpcpy_small.
11703         (__strcspn_c1): Don't define if _FORCE_INLINES.
11704         (__strspn_c1): Likewise.
11705
11706 2001-09-22  Ben Collins  <bcollins@debian.org>
11707
11708         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
11709         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
11710         * sysdeps/ia64/bits/sigaction.h: Likewise.
11711         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
11712
11713 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
11714
11715         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
11716
11717 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
11718
11719         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
11720
11721 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
11722
11723         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
11724
11725 2001-09-20  H.J. Lu  <hjl@gnu.org>
11726
11727         * include/dlfcn.h (__RTLD_SPROF): New definiton.
11728         * elf/dl-open.c (dl_open_worker): Return immediately after loading
11729         for __RTLD_SPROF.
11730         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
11731         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
11732
11733 2001-09-20  H.J. Lu  <hjl@gnu.org>
11734
11735         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
11736         don't add 1.
11737
11738 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
11739
11740         * nss/getent.c: Accept -s parameter to overwrite rules in
11741         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
11742
11743         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
11744         with as many ".0" as necessary to form a complete address
11745         inet_network understands.
11746
11747         * nss/getent.c: Various cleanups.  Use simpler and fewer function
11748         calls.
11749
11750 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11751
11752         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
11753         _JMPBUF_UNWINDS.
11754         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
11755
11756 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
11757
11758         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
11759         IBM1161.
11760         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
11761         * iconvdata/ibm1160.c: New file.
11762         * iconvdata/ibm1160.h: New file.
11763         * iconvdata/ibm1161.c: New file.
11764         * iconvdata/ibm1161.h: New file.
11765         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11766
11767 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
11768
11769         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
11770         difference between base address and first PT_LOAD's virtual address,
11771         not the base address.
11772
11773 2001-09-11  Tom Rix  <trix@redhat.com>
11774
11775         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
11776         ifdef for __getopt_clean_environment.
11777         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
11778
11779 2001-09-22  Andreas Jaeger  <aj@suse.de>
11780
11781         * elf/reldep4.c (main): Add proper prototype to fix warning.
11782
11783         * elf/reldep5.c (main): Remove unused variable.
11784
11785         * math/math_private.h: Add prototypes.
11786
11787 2001-09-21  Andreas Jaeger  <aj@suse.de>
11788
11789         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
11790         * sysdeps/x86_64/Dist: New file.
11791         * sysdeps/x86_64/soft-fp/Dist: New file.
11792
11793         * sysdeps/gnu/Dist: Remove eval.c.
11794
11795 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
11796
11797         * malloc/memusage.c (realloc): Don't count already allocated
11798         memory in the sums.
11799         (me): Always use dlsym() to find the real implementations.
11800
11801         * malloc/memusage.sh: Make -n option actually do something.
11802
11803 2001-09-20  Andreas Jaeger  <aj@suse.de>
11804
11805         * elf/elf.h (R_390_NUM): Correct value.
11806
11807         * Versions.def: Add missing versions 2.2.3 for libthread_db and
11808         libpthread.
11809
11810         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
11811         for x86-64, install x86-64 into */lib64.
11812
11813         * shlib-versions: Add x86-64.
11814
11815         * elf/elf.h: Add x86-64 relocations.
11816
11817 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
11818
11819         * po/fr.po: Update from translation team.
11820
11821 2001-09-19  Andreas Jaeger  <aj@suse.de>
11822
11823         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
11824         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
11825         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
11826         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
11827         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
11828         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
11829         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
11830         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
11831         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
11832         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
11833         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
11834         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
11835         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
11836         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
11837         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
11838         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
11839         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
11840         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
11841         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
11842         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
11843         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
11844         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
11845         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
11846         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
11847         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
11848         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
11849         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
11850         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
11851         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
11852         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
11853         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
11854         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
11855         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
11856         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
11857         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
11858         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
11859         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
11860         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
11861         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
11862         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
11863         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
11864         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
11865         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
11866         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
11867         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
11868         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
11869         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
11870         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
11871         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
11872         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
11873         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
11874         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
11875         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
11876         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
11877         * sysdeps/unix/x86_64/sysdep.S: New file.
11878         * sysdeps/unix/x86_64/sysdep.h: New file.
11879         * sysdeps/x86_64/Implies: New file.
11880         * sysdeps/x86_64/Makefile: New file.
11881         * sysdeps/x86_64/Versions: New file.
11882         * sysdeps/x86_64/__longjmp.S: New file.
11883         * sysdeps/x86_64/abort-instr.h: New file.
11884         * sysdeps/x86_64/atomicity.h: New file.
11885         * sysdeps/x86_64/bits/endian.h: New file.
11886         * sysdeps/x86_64/bits/setjmp.h: New file.
11887         * sysdeps/x86_64/bits/string.h: New file.
11888         * sysdeps/x86_64/bp-asm.h: New file.
11889         * sysdeps/x86_64/bsd-_setjmp.S: New file.
11890         * sysdeps/x86_64/bsd-setjmp.S: New file.
11891         * sysdeps/x86_64/dl-machine.h: New file.
11892         * sysdeps/x86_64/elf/initfini.c: New file.
11893         * sysdeps/x86_64/elf/start.S: New file.
11894         * sysdeps/x86_64/ffs.c: New file.
11895         * sysdeps/x86_64/ffsll.c: New file.
11896         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
11897         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
11898         * sysdeps/x86_64/fpu/e_acosl.c: New file.
11899         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
11900         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
11901         * sysdeps/x86_64/fpu/e_expl.c: New file.
11902         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
11903         * sysdeps/x86_64/fpu/e_log10l.S: New file.
11904         * sysdeps/x86_64/fpu/e_log2l.S: New file.
11905         * sysdeps/x86_64/fpu/e_logl.S: New file.
11906         * sysdeps/x86_64/fpu/e_powl.S: New file.
11907         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
11908         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
11909         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
11910         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
11911         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
11912         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
11913         * sysdeps/x86_64/fpu/fegetenv.c: New file.
11914         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
11915         * sysdeps/x86_64/fpu/fegetround.c: New file.
11916         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
11917         * sysdeps/x86_64/fpu/fesetenv.c: New file.
11918         * sysdeps/x86_64/fpu/fesetround.c: New file.
11919         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
11920         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
11921         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
11922         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
11923         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
11924         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
11925         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
11926         * sysdeps/x86_64/fpu/s_atanl.c: New file.
11927         * sysdeps/x86_64/fpu/s_cosl.S: New file.
11928         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
11929         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
11930         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
11931         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
11932         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
11933         * sysdeps/x86_64/fpu/s_logbl.c: New file.
11934         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
11935         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
11936         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
11937         * sysdeps/x86_64/fpu/s_rintl.c: New file.
11938         * sysdeps/x86_64/fpu/s_significandl.c: New file.
11939         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
11940         * sysdeps/x86_64/fpu/s_sinl.S: New file.
11941         * sysdeps/x86_64/fpu/s_tanl.S: New file.
11942         * sysdeps/x86_64/gmp-mparam.h: New file.
11943         * sysdeps/x86_64/hp-timing.c: New file.
11944         * sysdeps/x86_64/hp-timing.h: New file.
11945         * sysdeps/x86_64/htonl.S: New file.
11946         * sysdeps/x86_64/memusage.h: New file.
11947         * sysdeps/x86_64/setjmp.S: New file.
11948         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
11949         * sysdeps/x86_64/stackinfo.h: New file.
11950         * sysdeps/x86_64/sysdep.h: New file.
11951         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
11952
11953         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
11954         L Moshier.
11955
11956 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
11957
11958         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
11959         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
11960
11961 2001-09-18  Andreas Schwab  <schwab@suse.de>
11962
11963         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
11964         list, now that l_scope is a pointer.
11965
11966         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
11967         scope list.
11968
11969 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
11970
11971         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
11972         (elf_machine_rela_relative): Add a missing declaration.
11973
11974 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
11975
11976         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
11977         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
11978         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
11979         ldd-rewrite scripts.
11980
11981 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
11982
11983         * elf/ldd.bash.in: Update copyright message.
11984
11985 2001-09-17  H.J. Lu  <hjl@gnu.org>
11986
11987         * hurd/hurdmalloc.c (bcopy): Removed.
11988         (realloc): Replace bcopy with memcpy.
11989         * hurd/path-lookup.c (file_name_path_scan): Likewise.
11990         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
11991         * sunrpc/rpcinfo.c (pmapdump): Likewise.
11992
11993         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
11994         (gethostbyaddr): Likewise.
11995         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
11996
11997 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
11998
11999         * sysdeps/gnu/eval.c: Removed.
12000
12001 2001-09-18  Andreas Jaeger  <aj@suse.de>
12002
12003         * sysdeps/i386/fpu/s_logbl.S: Move to ...
12004         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
12005
12006         * sysdeps/i386/fpu/s_rintl.S: Move to ...
12007         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
12008
12009         * sysdeps/i386/fpu/s_significandl.S: Move to ...
12010         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
12011
12012 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
12013
12014         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
12015         nrules value.
12016
12017 2001-09-14  H.J. Lu  <hjl@gnu.org>
12018
12019         * sysdeps/mips/fpu/libm-test-ulps: Updated.
12020
12021 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
12022
12023         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
12024         Patch by Florian La Roche <laroche@redhat.com>.
12025
12026         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
12027
12028         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
12029         ETHER_CRC_LEN.
12030
12031 2001-09-14  Andreas Schwab  <schwab@suse.de>
12032
12033         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
12034         Sumner <bls@sgi.com>.
12035         * posix/execlp.c: Likewise.
12036
12037 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
12038
12039         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
12040         is already found earlier in the search scope.
12041
12042 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
12043
12044         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
12045         filter.
12046
12047 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
12048
12049         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
12050
12051 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
12052
12053         * config.h.in: Enforce optimization to be used.
12054         * Makeconfig (preprocess-versions): Define ASSEMBLER.
12055         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
12056         * posix/Makefile (annexc-CFLAGS): Define to -O.
12057         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
12058
12059 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
12060
12061         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
12062         Patch by Stephan Kulow.
12063
12064 2001-09-08  Ben Collins  <bcollins@debian.org>
12065
12066         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
12067         usage of RESOLVE() (r_type, not reloc->r_type).
12068
12069 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
12070
12071         * elf/dl-object.c: Avoid allocating extra memory block for name.
12072         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
12073         allocated separately.
12074         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
12075
12076 2001-09-08  H.J. Lu  <hjl@gnu.org>
12077
12078         * po/zh_TW.po: Fix a typo.
12079
12080 2001-09-07  Tom Rix  <trix@redhat.com>
12081
12082         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
12083
12084 2001-08-26  Tom Rix  <trix@redhat.com>
12085
12086         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
12087         command line options.
12088         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
12089         * sysdeps/unix/sysv/aix/start.c: Removed.
12090         * sysdeps/unix/sysv/aix/start-libc.c: New file.
12091         * sysdeps/unix/sysv/aix/init-first.c: New file.
12092         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
12093
12094 2001-09-08  Ben Collins  <bcollins@debian.org>
12095
12096         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
12097         * sysdeps/generic/dl-machine.h: Likewise.
12098         * sysdeps/hppa/dl-fptr.c: Likewise.
12099         * sysdeps/ia64/dl-fptr.c: Likewise.
12100         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
12101         * sysdeps/mips/dl-machine.h: Likewise.
12102         * sysdeps/mips/mips64/dl-machine.h: Likewise.
12103         * sysdeps/powerpc/dl-machine.c: Likewise.
12104
12105 2001-09-07  Ben Collins  <bcollins@debian.org>
12106
12107         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
12108
12109         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
12110
12111 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
12112
12113         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
12114         dependencies if necessary.
12115
12116         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
12117         loaded directly) determine length if l_initfini list by iterating
12118         over its elements.  Minor optimizations.
12119         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
12120         for dependency objects.
12121         If object was already loaded check whether any of the dependencies
12122         is already on the relocation dependency list.  If yes, remove the
12123         latter.  Minor optimizations.
12124         * elf/dl-lookup.c (add_dependency): Add check for self reference of
12125         maps here.  Search l_initfini list only if the object was loaded
12126         directly and not only as a dependency.
12127         (_dl_lookup_symbol): Add relocation dependency also if object
12128         is not in global scope.  Remove test for self-reference here.
12129         (_dl_lookup_versioned_symbol): Likewise.
12130         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
12131         element of first name record.
12132         * elf/loadtest.c: Add some more test to recognize early if an object
12133         wasn't unloaded.
12134         * elf/Makefile: Add rules to build and run reldep5.
12135         * elf/reldep5.c: New file.
12136         * elf/reldepmod5.c: New file.
12137         * elf/reldepmod6.c: New file.
12138
12139         * elf/reldep2.c: Fix typo.
12140
12141 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
12142
12143         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
12144         elements.  Change l_scope to be a pointer only.
12145         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
12146         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
12147         here add searchlist of newly open file to the dependency's scope.
12148         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
12149         only searchlist from its scope.  Free own scope array if necessary.
12150         * elf/Makefile (tests): Add dblload and dblunload now.
12151
12152 2001-09-06  Andreas Jaeger  <aj@suse.de>
12153
12154         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
12155         Stephen L Moshier.
12156
12157 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
12158
12159         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
12160         they both fail.
12161         * elf/dblload.c: New file.
12162         * elf/dblloadmod1.c: New file.
12163         * elf/dblloadmod2.c: New file.
12164         * elf/dblloadmod3.c: New file.
12165         * elf/dblunload.c: New file.
12166
12167 2001-09-04  Richard Henderson  <rth@redhat.com>
12168
12169         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
12170         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
12171
12172 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
12173
12174         Correct very misleading message for error in failed runtime relocation.
12175         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
12176         place of the error.
12177         (_dl_signal_cerror): Likewise.
12178         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
12179         * elf/dl-close.c: Likewise.
12180         * elf/dl-deps.c: Likewise.
12181         * elf/dl-load.c: Likewise.
12182         * elf/dl-lookup.c: Likewise.
12183         * elf/dl-open.c: Likewise.
12184         * elf/dl-reloc.c: Likewise.
12185         * elf/dl-sym.c: Likewise.
12186         * elf/dl-version.c: Likewise.
12187         * sysdeps/generic/dl-sysdep.c: Likewise.
12188
12189 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
12190
12191         * iconv/strtab.c (strtabinit): Initialize null Strent.
12192         (newstring): Move len == 0 handling...
12193         (strtabadd): ...here.
12194         If len == 1, return null Strent.
12195         When inserting a suffix of an existing string, check if
12196         it is not equal to some suffix already recorded.
12197         Copy left and right members over if adding longer string.
12198
12199 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
12200
12201         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
12202
12203         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
12204         (__syscall_gethostname): Add prototype.
12205
12206 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
12207
12208         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
12209
12210 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
12211
12212         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
12213
12214 2001-08-27  Roland McGrath  <roland@frob.com>
12215
12216         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
12217         short, copy that much into NAME anyway before returning error.
12218
12219 2001-09-01  Richard Henderson  <rth@redhat.com>
12220
12221         * sysdeps/alpha/elf/Dist: Remove file.
12222         * sysdeps/alpha/elf/Makefile: Remove file.
12223         * sysdeps/alpha/elf/crtbegin.S: Remove file.
12224         * sysdeps/alpha/elf/crtend.S: Remove file.
12225         * sysdeps/alpha/elf/initfini.c: New file.
12226
12227 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
12228
12229         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
12230         * iconv/tst-iconv3.c: Likewise.
12231
12232 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
12233
12234         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
12235
12236 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
12237
12238         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
12239         export it.
12240         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
12241         * iconv/iconv_prog.c (insert_cache): New function.
12242         (print_known_names): If cache is used call insert_cache to use the
12243         information from the cache [PR libc/2509].
12244
12245 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
12246
12247         * time/strptime.c (strptime_internal): Recognize 'l' format and
12248         handle it like 'I' for symmetry with strftime.
12249
12250 2001-08-31  Richard Henderson  <rth@redhat.com>
12251
12252         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
12253         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
12254         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
12255         (print_statistics): Make scalar unsigned long long.
12256         * sysdeps/alpha/hp-timing.h: New file.
12257
12258 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
12259
12260         * stdio-common/perror.c (perror): Save errno early, pass it
12261         down to perror_internal.
12262         (perror_internal): Add errnum argument.
12263
12264 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
12265
12266         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
12267         Don't add old memory content for R_ALPHA_REFQUAD.
12268
12269 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12270
12271         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
12272         memory correctly.
12273
12274         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
12275         instead of open, __close instead of close, __getpagesize instead
12276         of getpagesize.
12277
12278         * string/argz-stringify.c (__argz_stringify): Use __strnlen
12279         instead of strnlen.
12280         * include/string.h (strndupa): Redefine here to use __strnlen
12281         instead of strnlen.
12282         * string/strndup.c (__strndup): Use __strnlen not strnlen.
12283
12284         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
12285         connected).
12286
12287 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
12288
12289         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
12290         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
12291         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
12292         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
12293         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
12294         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
12295         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
12296
12297 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12298
12299         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
12300
12301 2001-08-30  Andreas Jaeger  <aj@suse.de>
12302
12303         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
12304         contributed Stephen L Moshier.
12305
12306 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
12307
12308         * sunrpc/etc.rpc (sgi_fam): Add.
12309
12310 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12311
12312         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
12313
12314 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
12315
12316         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
12317         first is from a previous call.
12318         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
12319
12320 2001-08-29  Andreas Schwab  <schwab@suse.de>
12321
12322         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
12323
12324 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12325
12326         * config.make.in (INSTALL_SCRIPT): Define.
12327         * Makeconfig (INSTALL_SCRIPT): Define.
12328         * Makerules (do-install-script): New macro to install scripts using
12329         INSTALL_SCRIPT.
12330         (install-bin-script): New rule to install scripts with
12331         do-install-script.
12332         (install-bin-script-nosubdir): New rule.
12333         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
12334         (distinfo-vars): Add $(install-bin-script).
12335         * Rules (others): Likewise.
12336         * Makefile (glibcbug): Install with install-bin-script.
12337         * debug/Makefile (xtrace): Likewise.
12338         (catchsegv): Likewise.
12339         * elf/Makefile (ldd): Likewise.
12340         * malloc/Makefile (mtrace): Likewise.
12341         * timezone/Makefile (tzselect): Likewise.
12342
12343 2001-08-29  H.J. Lu  <hjl@gnu.org>
12344
12345         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
12346         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
12347         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
12348
12349 2001-08-29  Andreas Schwab  <schwab@suse.de>
12350
12351         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
12352
12353 2001-08-28  H.J. Lu  <hjl@gnu.org>
12354
12355         * Makeconfig (combreloc-LDFLAGS): New variable.
12356         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
12357         * config.make.in (have-z-combreloc): New variable.
12358         * configure.in: Substitute libc_cv_z_combreloc.
12359
12360 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
12361
12362         * po/sv.po: Update from translation team.
12363         * po/fr.po: Likewise.
12364         * po/da.po: Likewise.
12365
12366 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12367
12368         * Makerules: Fix a typo: MD% -> MD5.
12369
12370 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
12371
12372         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
12373         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
12374
12375 2001-08-28  Andreas Jaeger  <aj@suse.de>
12376
12377         * manual/libc-texinfo.sh: Add entry about free manuals.
12378
12379         * manual/contrib.texi (Contributors): Fix cross reference.
12380
12381         * manual/libc.texinfo (Copying): Include freemanuals.
12382
12383         * manual/Makefile (appendices): Add freemanuals.
12384
12385         * manual/freemanuals.texi: New file.
12386         Patch by Brian Youmans <3diff@gnu.org>.
12387
12388         * manual/libm-err-tab.pl: Pretty print more platforms, print a
12389         smaller table.
12390
12391         * manual/math.texi (Errors in Math Functions): Fix grammar, start
12392         table on separate page.
12393         Patch by Brian Youmans <3diff@gnu.org>.
12394
12395 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
12396
12397         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
12398         the connection went down after we first used it try to connect
12399         again and resend the message before printing to the console.
12400         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
12401
12402 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
12403
12404         * string/tst-strlen.c (main): Test strnlen (, -1) too.
12405         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
12406         bit set.
12407
12408 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
12409
12410         * iconv/strtab.c (searchstring): Use correct length for comparison.
12411         (strtabadd): Account total size correct if new string has old string as
12412         substring.
12413
12414 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
12415
12416         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
12417
12418 2001-08-27  Andreas Jaeger  <aj@suse.de>
12419
12420         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
12421
12422         * math/libm-test.inc (j0_test): Add extra tests.
12423         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
12424         not x, in Hankel approximation.
12425         Patches by Stephen L Moshier.
12426
12427 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
12428
12429         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
12430         link_map.
12431
12432         * configure.in: Fix test for .rela.dyn section.
12433
12434         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
12435
12436 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
12437
12438         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
12439         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
12440         Pass type_class to _dl_lookup_*.
12441         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
12442         Pass around just type_class instead of noexec, noplt pair.
12443         (_dl_lookup_versioned_symbol): Likewise.
12444         (_dl_lookup_symbol_skip): Pass around just type_class instead of
12445         noexec, noplt pair.
12446         (_dl_lookup_versioned_symbol_skip): Likewise.
12447         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
12448         * elf/do-lookup.h (do_lookup): Likewise.
12449         * include/link.h (struct link_map): Replace noexec and noplt fields
12450         in l_lookup_cache with type_class field.
12451         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
12452         ELF_RTYPE_CLASS_COPY): Define.
12453         Adjust prototypes for _dl_lookup_symbol and
12454         _dl_lookup_versioned_symbol.
12455         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
12456         elf_machine_lookup_noexec_p): Remove.
12457         (elf_machine_type_class): Define.
12458         * sysdeps/arm/dl-machine.h: Likewise.
12459         * sysdeps/hppa/dl-machine.h: Likewise.
12460         * sysdeps/cris/dl-machine.h: Likewise.
12461         * sysdeps/i386/dl-machine.h: Likewise.
12462         * sysdeps/ia64/dl-machine.h: Likewise.
12463         * sysdeps/m68k/dl-machine.h: Likewise.
12464         * sysdeps/mips/mips64/dl-machine.h: Likewise.
12465         * sysdeps/mips/dl-machine.h: Likewise.
12466         * sysdeps/powerpc/dl-machine.h: Likewise.
12467         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12468         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12469         * sysdeps/sh/dl-machine.h: Likewise.
12470         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12471         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12472
12473 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
12474
12475         * manual/message.texi (Advanced gettext functions): Change
12476         description of plural forms for Slovak.
12477         Reported by Marcel Telka <marcel@telka.sk>.
12478
12479         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
12480         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
12481
12482 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
12483
12484         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
12485         typo.  Patch by Florian La Roche <laroche@redhat.com>.
12486
12487 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
12488
12489         * include/link.h (struct link_map): Add l_lookup_cache element.
12490         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
12491         (RESOLVE_MAP): Likewise.
12492         (_dl_relocate_object): Remove cache initialization.
12493         * elf/dl-lookup.c: Rip out cache handling code.
12494         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
12495         declarations.
12496
12497         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
12498         remove some __builtin_expect.
12499         (_dl_lookup_versioned_symbol): Likewise.
12500
12501         * config.h.in: Add HAVE_Z_COMBRELOC.
12502         * configure.in: Add test for -z combreloc.
12503
12504         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
12505         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
12506         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
12507         case to almost no code.
12508
12509 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
12510
12511         * po/tr.po: Update from translation team.
12512
12513 2001-08-24  Andreas Jaeger  <aj@suse.de>
12514
12515         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
12516         make clean works.
12517
12518 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12519
12520         * elf/rtld.c (print_statistics): Printf % after percent values.
12521         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
12522
12523         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
12524         don't have to compute the hash value and initialize current_value.
12525         Move reference_name variable to where it is needed.
12526         (_dl_lookup_versioned_symbol): Likewise.
12527
12528 2001-08-24  Roland McGrath  <roland@frob.com>
12529
12530         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
12531         Just test that strerror returns non-null for a few errno codes.
12532
12533 2001-08-23  Roland McGrath  <roland@frob.com>
12534
12535         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
12536         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
12537
12538         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
12539
12540         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
12541         __mach_reply_port.
12542
12543 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12544
12545         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
12546         returns NULL.
12547
12548         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
12549         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
12550         doesn't do it.
12551         * elf/rtld.c: Include <sys/param.h>.
12552         * elf/dl-reloc.c: Likewise.
12553
12554 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12555
12556         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
12557         empty to prevent junk from being generated.
12558         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
12559
12560 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
12561
12562         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
12563         records.  Rename endrel to relative, initialize it to r, and use it
12564         in elf_machine_rel_relative calls.  Point r after relative relocs.
12565
12566 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12567
12568         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
12569         of R_386_NONE.
12570
12571 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
12572
12573         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
12574         necessary.  Undefine newly defined macros at the end.
12575         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
12576         Rename from elf_machine_rel_relative.
12577         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
12578         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
12579         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
12580         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
12581         Likewise.
12582         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
12583         Likewise.
12584         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
12585         Fix argument types.
12586         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
12587         Fix argument types.
12588         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
12589         Likewise.  Fix argument types.
12590         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
12591         Likewise.  Fix argument types.
12592         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
12593         Fix argument types.
12594         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
12595         ElfW(Rel) in argument.
12596         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
12597         function.
12598
12599 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
12600
12601         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
12602
12603 2001-08-24  Andreas Jaeger  <aj@suse.de>
12604
12605         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
12606         Stephen L Moshier <moshier@mediaone.net>.
12607
12608 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12609
12610         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
12611         first if RELCOUNT is set.
12612
12613         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
12614         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
12615         elf_machine_rel_relative.
12616         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
12617         Minor optimizations.
12618         * sysdeps/arm/dl-machine.h: Likewise.
12619         * sysdeps/cris/dl-machine.h: Likewise.
12620         * sysdeps/hppa/dl-machine.h: Likewise.
12621         * sysdeps/i386/dl-machine.h: Likewise.
12622         * sysdeps/ia64/dl-machine.h: Likewise.
12623         * sysdeps/m68k/dl-machine.h: Likewise.
12624         * sysdeps/mips/dl-machine.h: Likewise.
12625         * sysdeps/powerpc/dl-machine.h: Likewise.
12626         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12627         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12628         * sysdeps/sh/dl-machine.h: Likewise.
12629         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12630         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12631
12632 2001-08-23  Roland McGrath  <roland@frob.com>
12633
12634         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
12635
12636         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
12637         sysdeps/mach version.  Implement counting ("recursive") mutexes
12638         on top of cthreads mutexes.
12639         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
12640
12641         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
12642         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
12643         (__libc_cleanup_region_start, __libc_cleanup_region_end,
12644         __libc_clean_end): Define these to call the cleanup function after
12645         normal exit when they're supposed to.
12646
12647         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
12648         Take new first arg DOIT, a boolean saying whether to really install
12649         any cleanup handler.
12650         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
12651         (__libc_cleanup_end): Likewise.
12652         * sysdeps/generic/bits/libc-lock.h: Same changes.
12653         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
12654         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
12655         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
12656         Likewise.
12657         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
12658         * sysdeps/generic/bits/stdio-lock.h
12659         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
12660
12661 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
12662
12663         * elf/ldconfig.c (search_dir): Remove stale symlinks.
12664
12665 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
12666
12667         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New
12668         functions.
12669         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
12670         lookups in cache.
12671         (_dl_lookup_versioned_symbol): Likewise.
12672         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
12673         relocation lookup.
12674         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
12675         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
12676         (lookup_cache, lookup_cache_versioned): Add declarations.
12677
12678 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
12679
12680         * stdlib/tst-random.c (main): Swap parameters in fail call.
12681         Patch by Pete Bevin <pete@petebevin.com>.
12682
12683 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
12684
12685         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
12686
12687 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
12688
12689         * malloc/obstack.c: Indent preprocessor directives.
12690         Patch by Jim Meyering <meyering@ascend.com>.
12691
12692         * po/ja.po: Update from translation team.
12693
12694 2001-08-23  Roland McGrath  <roland@frob.com>
12695
12696         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
12697
12698         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
12699         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
12700
12701 2001-08-22  Roland McGrath  <roland@frob.com>
12702
12703         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
12704         __libc_lock_define_recursive.
12705         * elf/dl-open.c: Don't declare it here any more.
12706         * elf/dl-close.c: Likewise.
12707         * elf/dl-lookup.c: Likewise.
12708         * elf/dl-iteratephdr.c: Likewise.
12709         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
12710         __libc_lock_unlock_recursive.
12711         * elf/dl-close.c (_dl_close): Likewise
12712         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
12713         * elf/dl-open.c (_dl_open): Likewise
12714
12715         * sysdeps/generic/bits/libc-lock.h
12716         (__libc_lock_define_recursive): New macro.
12717         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
12718         (_IO_lock_lock): Use __libc_lock_lock_recursive.
12719         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
12720
12721         * conform/conformtest.pl (checknamespace): Sort the output list.
12722
12723         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
12724         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
12725         definitions conditional on [__USE_XOPEN].
12726
12727         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
12728         these unconditionally, not only use [__USE_BSD], so as to match
12729         the sysdeps/unix/sysv/linux files.
12730
12731 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
12732
12733         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
12734         avoid warnings.
12735
12736         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
12737         DL_LOOKUP_ADDRESS.
12738
12739 2001-08-22  Roland McGrath  <roland@frob.com>
12740
12741         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
12742         conditionalization of sa_handler/sa_sigaction member types to
12743         match the sysdeps/unix/sysv/linux file.
12744
12745 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
12746
12747         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
12748         symbol sizes a bit better.
12749
12750         * sysdeps/ia64/strncpy.S: Complete rewrite.
12751         Contributed by Jakub Jelinek <jakub@redhat.com>.
12752
12753         * string/stratcliff.c (main): Add strncpy test.
12754
12755 2001-08-22  Roland McGrath  <roland@frob.com>
12756
12757         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
12758         and don't declare unsetenv or _environ directly.
12759         (unsetenv): Return int, not void.  Use __environ instead of _environ.
12760
12761 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
12762
12763         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
12764         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
12765         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
12766         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
12767         test for cmsg struct size.
12768
12769 2001-04-23  Paul Eggert  <eggert@twinsun.com>
12770
12771         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
12772         Rename __argc to ___argc in prototypes to avoid compatibility
12773         problems with systems that reserve the identifier "__argc".
12774         Similarly for __argv.
12775
12776 2001-08-21  Roland McGrath  <roland@frob.com>
12777
12778         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
12779
12780         * mach/Makefile (tests): Removed.
12781         * mach/hello.c: File removed.
12782
12783 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
12784
12785         * po/sv.po: Update from translation team.
12786
12787         * stdio-common/vfscanf.c: Fix handling of %l[].
12788         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
12789
12790         * libio/Makefile (tests): Add tst-sscanf.
12791         * libio/tst-sscanf.c: New file.
12792
12793         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
12794         * malloc/mtrace.c (tr_where): dli_sname always points to a
12795         non-empty string if != NULL.
12796         Reported by Tim Janik <timj@gtk.org>.
12797
12798 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
12799
12800         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
12801         buf.  Free resources on failure.
12802         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
12803         (makefd_xprt): Likewise.
12804         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
12805         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
12806         * sunrpc/auth_unix.c (authunix_create): Likewise.
12807
12808 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
12809
12810         * string/strnlen.c: Remove.
12811         * sysdeps/generic/strnlen.c: New file.
12812         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
12813
12814 2001-08-21  Roland McGrath  <roland@frob.com>
12815
12816         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
12817         as a macro, not an extern inline function.
12818
12819         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
12820         * Versions.def (libc): Add GLIBC_2.2.5 set.
12821         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
12822         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
12823
12824 2001-08-20  Roland McGrath  <roland@frob.com>
12825
12826         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
12827         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
12828
12829 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
12830
12831         * string/bits/string2.h: Remove strnlen optimization here.
12832         * sysdeps/i386/i486/bits/string.h: Add it here.
12833
12834 2001-08-21  Wolfram Gloger  <wg@malloc.de>
12835
12836         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
12837
12838 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
12839
12840         * po/gl.po: Update from translation team.
12841
12842 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
12843
12844         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
12845         * misc/err.c (convert_and_print): Likewise.
12846
12847         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
12848         function calls.
12849
12850 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12851
12852         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
12853         change of the gregset_t type.
12854         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
12855
12856 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
12857
12858         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
12859
12860 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
12861
12862         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
12863
12864         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
12865
12866 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
12867
12868         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
12869         before calling the cthreads initialization code.
12870
12871 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
12872
12873         * argp/argp-help.c: Fix two problems introduced in last change.
12874
12875         * include/dirent.h: Include <dirstream.h> first.
12876
12877 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
12878
12879         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
12880
12881         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
12882         * sunrpc/xdr_rec.c: Likewise.
12883         * sunrpc/xdr_mem.c: Likewise.
12884         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
12885         * sunrpc/rpc_cmsg.c: Likewise.
12886         * sunrpc/getrpcport.c (getrpcport): Likewise.
12887         * sunrpc/clnt_simp.c (callrpc): Likewise.
12888         * sunrpc/clnt_gen.c (clnt_create): Likewise.
12889         * string/envz.c: Likewise.
12890
12891         * po/ko.po: Update from translation team.
12892
12893         * argp/argp-help.c: Handle wide oriented stderr stream.
12894
12895 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
12896
12897         * sysdeps/generic/strtol.c: Little optimizations.  Add some
12898         __builtin_expect.
12899
12900         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
12901
12902         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
12903         * wcsmbs/wcwidth.c (wcwdith): Likewise.
12904         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
12905
12906         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
12907
12908         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
12909
12910         * time/time.h (struct timespec): Use __time_t for tv_sec element.
12911
12912         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
12913         wchar_t for function declarations and defintions.
12914
12915         * misc/sys/select.h: Define __need_time_t before including <time.h>.
12916         Define suseconds_t if it hasn't happened yet.
12917
12918         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
12919
12920         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
12921
12922         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
12923         <stddef.h>.
12924
12925         * conform/data/stddef.h-data: Remove wint_t.
12926
12927         * conform/conformtest.pl: Change namespace test to take #undef
12928         lines into account.
12929
12930         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
12931
12932         * conform/data/sys/socket.h-data: Add sockatmark.
12933
12934 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
12935
12936         * io/fts.c: Update from recent BSD source.
12937
12938 2001-08-17  Roland McGrath  <roland@frob.com>
12939
12940         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
12941         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
12942         Likewise.
12943
12944 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
12945
12946         * locale/duplocale.c (__duplocale): Also initialize the special
12947         __ctype_* elements.
12948
12949         * conform/data/netdb.h-data: Adjust gai_strerror return type.
12950
12951 2001-08-17  Andreas Jaeger  <aj@suse.de>
12952
12953         * misc/getpass.c: Include wchar.h for prototypes.
12954         * malloc/obstack.c: Likewise.
12955
12956 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
12957
12958         * sunrpc/svc_simple.c (universal): Use __write instead of write.
12959
12960         * wcsmbs/wcscoll.c: Also define __wcscoll.
12961         * include/wchar.h: Declare __wcscoll.
12962
12963         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
12964         * libio/vwprintf.c: Likewise.
12965         * libio/wprintf.c: Likewise.
12966
12967         * iconv/gconv_cache.c: Use __munmap instead of munmap.
12968
12969 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
12970
12971         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
12972         instead of mbrtowc.
12973         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
12974         wcslen, and __wcscoll instead of wcscoll.
12975
12976         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
12977
12978         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
12979         __getuid instead of getuid.
12980
12981         * stdio-common/perror.c (perror): Use __close instead of close.
12982         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
12983         * libio/freopen.c (freopen): Likewise.
12984         * libio/freopen64.c (freopen64): Likewise.
12985
12986         * libio/tst-ungetwc2.c (main): Define str const.
12987
12988         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
12989         * libio/fwprintf.c: Also define __fwprintf.
12990         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
12991         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
12992         * assert/assert-perr.c: Likewise.
12993         * assert/assert.c: Likewise.
12994         * gmon/gmon.c: Likewise.
12995         * inet/rcmd.c: Likewise.
12996         * malloc/obstack.c: Likewise.
12997         * misc/err.c: Likewise.
12998         * misc/error.c: Likewise.
12999         * misc/getpass.c: Likewise.
13000         * posix/getopt.c: Likewise.
13001         * resolv/res_hconf.c: Likewise.
13002         * stdio-common/perror.c: Likewise.
13003         * stdio-common/psignal.c: Likewise.
13004         * stdlib/fmtmsg.c: Likewise.
13005         * sunrpc/auth_unix.c: Likewise.
13006         * sunrpc/clnt_perr.c: Likewise.
13007         * sunrpc/clnt_tcp.c: Likewise.
13008         * sunrpc/clnt_udp.c: Likewise.
13009         * sunrpc/clnt_unix.c: Likewise.
13010         * sunrpc/svc_simple.c: Likewise.
13011         * sunrpc/svc_tcp.c: Likewise.
13012         * sunrpc/svc_udp.c: Likewise.
13013         * sunrpc/svc_unix.c: Likewise.
13014         * sunrpc/xdr.c: Likewise.
13015         * sunrpc/xdr_array.c: Likewise.
13016         * sunrpc/xdr_rec.c: Likewise.
13017         * sunrpc/xdr_ref.c: Likewise.
13018         * sysdeps/generic/wordexp.c: Likewise.
13019
13020         * po/it.po: Update from translation team.
13021
13022         * misc/err.c: Handle wide oriented stderr stream.
13023
13024 2001-08-14  Tom Rix  <trix@redhat.com>
13025
13026         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
13027         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
13028
13029 2001-08-13  Tom Rix  <trix@redhat.com>
13030
13031         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
13032         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
13033         and __intptr_t.
13034
13035 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13036
13037         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
13038         Store the access registers to the ucontext structure.
13039         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
13040         Likewise.
13041
13042         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
13043         Load the access registers from the ucontext structure.
13044         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
13045         Likewise.
13046
13047         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
13048         offsets to the new ucontext layout.
13049         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
13050
13051         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
13052         of the ucontext structure.
13053         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
13054
13055 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
13056
13057         * misc/error.c (error): Handle wide oriented stderr stream correctly.
13058         (error_at_line): Likewise.
13059
13060         * stdio-common/perror.c (perror): Implement according to standard.
13061         The stream orientation must not be changed if the stream was not
13062         oriented before the call.
13063         * stdio-common/Makefile (tests): Add tst-perror.
13064         * stdio-common/tst-perror.c: New file.
13065
13066
13067 See ChangeLog.12 for earlier changes.