* malloc/Makefile ($(objpfx)memusagestat.o: sysincludes): Define
[platform/upstream/glibc.git] / ChangeLog
1 2002-09-17  Roland McGrath  <roland@redhat.com>
2
3         * malloc/Makefile ($(objpfx)memusagestat.o: sysincludes): Define
4         file-specific variable override so it compiles properly when using
5         --with-headers.
6
7         * NEWS: Added item for powerpc64-linux port.
8
9 2002-09-17  Steven Munroe  <sjmunroe@us.ibm.com>
10
11         Ported to PowerPC64 running Linux.
12         * sysdeps/powerpc/powerpc64/Dist: New file.
13         * sysdeps/powerpc/powerpc64/Implies: New file.
14         * sysdeps/powerpc/powerpc64/Makefile: New file.
15         * sysdeps/powerpc/powerpc64/__longjmp.S: New file.
16         * sysdeps/powerpc/powerpc64/atomicity.h: New file.
17         * sysdeps/powerpc/powerpc64/backtrace.c: New file.
18         * sysdeps/powerpc/powerpc64/bp-asm.h: New file.
19         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: New file.
20         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: New file.
21         * sysdeps/powerpc/powerpc64/dl-dtprocnum.h: New file.
22         * sysdeps/powerpc/powerpc64/dl-lookupcfg.h: New file.
23         * sysdeps/powerpc/powerpc64/dl-machine.c: New file.
24         * sysdeps/powerpc/powerpc64/dl-machine.h: New file.
25         * sysdeps/powerpc/powerpc64/memset.S: New file.
26         * sysdeps/powerpc/powerpc64/ppc-mcount.S: New file.
27         * sysdeps/powerpc/powerpc64/register-dump.h: New file.
28         * sysdeps/powerpc/powerpc64/setjmp.S: New file.
29         * sysdeps/powerpc/powerpc64/stpcpy.S: New file.
30         * sysdeps/powerpc/powerpc64/strchr.S: New file.
31         * sysdeps/powerpc/powerpc64/strcmp.S: New file.
32         * sysdeps/powerpc/powerpc64/strcpy.S: New file.
33         * sysdeps/powerpc/powerpc64/strlen.S: New file.
34         * sysdeps/powerpc/powerpc64/elf/bzero.S: New file.
35         * sysdeps/powerpc/powerpc64/elf/start.S: New file.
36         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: New file.
37         * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: New file.
38         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: New File.
39         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: New file.
40         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: New file.
41         * sysdeps/unix/sysv/linux/powerpc/powerpc64/glob64.c: New file.
42         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: New file.
43         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: New file.
44         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: New file.
45
46         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME]
47         (C_SYMBOL_DOT_NAME): Insure that C_SYMBOL_DOT_NAME works for
48         various gcc versions.  Dot names required for powerpc64.
49         [HAVE_ASM_GLOBAL_DOT_NAME] (_weak_extern): Add .weakext '.'ed symbol.
50         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias): Add .global
51         C_SYMBOL_DOT_NAME(alias).
52         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): New macro. Same as
53         original strong_alias macro.
54         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Add .weakext/.weak
55         C_SYMBOL_DOT_NAME(alias).
56         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Add .symver '.'ed name.
57         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Add .symver
58         '.'ed name.
59         Add comments on libc_hidden_data_def and libc_hidden_data_weak usage.
60         [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_def1): New macro.  Generate
61         .global C_SYMBOL_DOT_NAME(alias).  Otherwise an empty macro.
62         (hidden_def): Append hidden_dot_def1 macro to definition.
63         (hidden_ver): Append hidden_dot_def1 macro to definition.
64         (hidden_data_def): New macro.  Same as original hidden_def macro.
65         (hidden_data_ver): New macro.  Same as original hidden_ver macro.
66         [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_weak1): New macro.  Generate
67         .weakext C_SYMBOL_DOT_NAME(alias).  Otherwise an empty macro.
68         (hidden_weak): Append hidden_dot_weak1 macro to definition.
69         (hidden_data_weak): New macro.  Same as original hidden_weak macro.
70         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Define as .__GI_name.
71         Otherwise defined as __GI_name.
72         (libc_hidden_data_def): New macro.  Use hidden_data_def.
73         (libc_hidden_data_weak): New macro.  Use hidden_data_weak.
74         (libc_hidden_data_ver): New macro.  Use hidden_data_ver.
75         (rtld_hidden_data_def): New macro.  Use hidden_data_def.
76         (rtld_hidden_data_weak): New macro.  Use hidden_data_weak.
77         (rtld_hidden_data_ver): New macro.  Use hidden_data_ver.
78         (libm_hidden_data_def): New macro.  Use hidden_data_def.
79         (libm_hidden_data_weak): New macro.  Use hidden_data_weak.
80         (libm_hidden_data_ver): New macro.  Use hidden_data_ver.
81         * inet/in6_addr.c: Replace libc_hidden_def with libc_hidden_data_def.
82
83 2002-09-17  Ulrich Drepper  <drepper@redhat.com>
84
85         * include/libc-symbols.h: Change *hidden_proto macros to accept
86         option parameters and pass those to the attribute definition.
87         * include/unistd.h (_exit): Add __noreturn__ to libc_hidden_proto call.
88
89         * include/unistd.h: Declare __libc_pause.
90
91         * include/sys/socket.h: Declare __libc_send, __libc_recv,
92         __libc_sendto, __libc_sendmsg, __libc_recvmsg, and __libc_accept.
93
94         * include/unistd.h: Declare __libc_fork.
95
96 2002-09-17  Roland McGrath  <roland@redhat.com>
97
98         * sunrpc/xcrypt.c (passwd2des_internal): Renamed fom passwd2des.
99         (passwd2des): Define it as an alias.
100         (xencrypt, xdecrypt): Call passwd2des_internal instead of passwd2des.
101
102 2002-09-12  Bruno Haible  <bruno@clisp.org>
103
104         * include/sys/sysctl.h (__sysctl): Add libc_hidden_proto.
105         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Add libc_hidden_def.
106
107         * include/rpc/xdr.h (xdrstdio_create): Add libc_hidden_proto.
108         * sunrpc/xdr_stdio.c (xdrstdio_create): Add libc_hidden_def.
109
110 2002-09-05  Steven Munroe  <sjmunroe@us.ibm.com>
111
112         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc64__]
113         (__ASSUME_TRUNCATE64_SYSCALL, __ASSUME_STAT64_SYSCALL, __ASSUME_IPC64,
114         __ASSUME_FCNTL64, __ASSUME_MMAP2_SYSCALL): Don't define these.
115         PowerPC64 does not have separate 64-bit syscalls.
116
117 2002-09-16  Roland McGrath  <roland@redhat.com>
118
119         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Add a cast.
120
121         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
122         New macro.
123
124         * elf/rtld.c [HP_TIMING_NONAVAIL]: Fix last change for this case.
125
126         * include/unistd.h: Uncomment libc_hidden_proto for _exit.
127         * sysdeps/mach/hurd/_exit.c: Add libc_hidden_def.
128         * sysdeps/generic/_exit.c: Likewise.
129
130 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
131
132         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Regenerate.
133
134         * elf/rtld.c (struct dl_start_final_info): New.
135         (_dl_start_final): Change second argument to struct
136         dl_start_final_info *.  Set start_time from info.
137         (_dl_start): Remove bootstrap_map variable, add info.
138         Define bootstrap_map as macro.  If not DONT_USE_BOOTSTRAP_MAP,
139         store HP_TIMING_NOW result into info.start_time.
140
141 2002-09-16  Andreas Jaeger  <aj@suse.de>
142
143         * sysdeps/unix/sysv/linux/_exit.c: Add libc_hidden_def and weak_alias
144         to _Exit.
145         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
146
147 2002-09-15  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
148
149         * sysdeps/powerpc/abort-instr.h: New file.
150
151 2002-09-14  Ulrich Drepper  <drepper@redhat.com>
152
153         * sysdeps/generic/libc-start.c (__libc_start_main): Remove bogus
154         comment.
155
156         * test-skeleton.c (main): Provide more information in case waitpid
157         fails.
158
159         * include/unistd.h: Declare __exit_thread.
160         * sysdeps/generic/libc-start.c (__libc_start_main): Remove dummy_addr.
161         Wrap call to main in setjmp if HAVE_CANCELBUF is defined.
162         * sysdeps/unix/sysv/linux/exit-thread.S: New file.
163         * sysdeps/unix/sysv/linux/_exit.c: New file.
164         * sysdeps/unix/sysv/linux/i386/_exit.S: New file.
165         * sysdeps/unix/sysv/linux/Makefile [subdir==posix] (sysdep_routines):
166         Add exit-thread.
167
168         * configure.in: Add dl_iterate_phdr to test using -nostdlib.
169
170 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
171
172         * sysdeps/i386/dl-machine.h (elf_machine_rel)
173         (case R_386_TLS_DTPMOD32): Don't use addend.
174         [case R_386_TLS_TPOFF32]: Remove redundant SYM_MAP != NULL check.
175         (elf_machine_rela): Add support for TLS relocs.
176
177 2002-09-14  Roland McGrath  <roland@redhat.com>
178
179         * Makefile (manual/%): Add this pattern target to the iconvdata/% rule.
180
181 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
182
183         * stdlib/longlong.h [_ARCH_PPC && W_TYPE_SIZE!=32]: Add powerpc64
184         specific asm macros for multiple percision integer math.
185
186 2002-06-04  Steven Munroe  <sjmunroe@us.ibm.com>
187
188         * sysdeps/generic/ldconfig.h (FLAG_POWERPC_LIB64) New macro.
189         * elf/cache.c (print_entry): Add case for FLAG_POWERPC_LIB64.
190         Remove per-machine conditionals for FLAG_* cases.
191         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h: New file.
192         * sysdeps/unix/sysv/linux/powerpc/readelflib.c: New file.
193         * sysdeps/unix/sysv/linux/powerpc/powerpc64/dl-cache.h: New file.
194
195 2002-09-10  Alan Modra <amodra@bigpond.net.au>
196
197         * csu/gmon-start.c [!TEXT_START]: Define TEXT_START if not already
198         defined in entry.h.
199         (__gmon_start__) [!ENTRY_POINT_DECL]: Use TEXT_START macro to obtain
200         lowest address for profiling in  __monstartup call.
201         * sysdeps/powerpc/powerpc64/elf/entry.h: New file.
202
203 2002-09-14  Roland McGrath  <roland@redhat.com>
204
205         * sysdeps/unix/sysv/linux/pread.c: __NR_pread64 may be defined
206         instead of __NR_pread.
207         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
208         * sysdeps/unix/sysv/linux/pwrite.c: __NR_pwrite64 may be defined
209         instead of __NR_pwrite.
210         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
211
212 2002-09-13  Roland McGrath  <roland@redhat.com>
213
214         * manual/libc.texinfo: @ifinfo -> @ifnottex around copyright notice.
215
216 2002-09-13  Andreas Jaeger  <aj@suse.de>
217
218         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add readahead
219         syscall.  Patch by Guido Guenther <agx@sigxcpu.org>.
220
221 2002-09-12  Ulrich Drepper  <drepper@redhat.com>
222
223         * elf/elf.h: Correct DT_LOOS and DT_HIOS values.
224
225 2002-09-10  Ulrich Drepper  <drepper@redhat.com>
226
227         * sysdeps/powerpc/fpu/s_isnan.c: #undef __isnanf and isnanf after
228         reading the headers.
229
230 2002-09-12  Roland McGrath  <roland@redhat.com>
231
232         * elf/rtld.c (_dl_start_final): Move _begin, _end decls outside the fn.
233         (_dl_start) [DONT_USE_BOOTSTRAP_MAP]: Use &_begin instead of l_addr to
234         find the ELF header.
235
236         * elf/rtld.c (dl_main) [USE_TLS]: Adjust l_tls_initimage of main
237         executable if needed, in case it's actually a shared object.
238
239 2002-09-11  Roland McGrath  <roland@redhat.com>
240
241         * elf/dl-load.c (_dl_map_object_from_fd): Use l_addr instead of
242         l_map_start to adjust l_tls_initimage.
243
244         * nss/getnssent_r.c (__nss_getent_r): Use EAGAIN instead of errno
245         when using h_errno and it's not set to NETDB_INTERNAL.
246         * nss/getXXbyYY_r.c [NEED_H_ERRNO]: Likewise.
247
248         * Makefile ($(common-objpfx)testrun.sh): New target.
249         (others): Depend on it.
250         (postclean-generated): Append it.
251
252         * nss/bug-erange.c: New file.
253         * nss/Makefile (tests): Add it.
254
255         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Return errno
256         instead of always EAGAIN when status is NSS_STATUS_TRYAGAIN.
257
258         * sysdeps/generic/dl-environ.c (unsetenv): Redo last fix without
259         strncmp, keeps the code smaller for a non-performance-critical case.
260
261         * sysdeps/generic/dl-environ.c (unsetenv): Rewritten using strncmp,
262         no longer wrongly matches arbitrary prefixes of NAME.
263         Reported by Jakub Jelinek <jakub@redhat.com>.
264
265 2002-09-11  Jakub Jelinek  <jakub@redhat.com>
266
267         * posix/bug-regex11.c (tests): New array.
268         (main): Rewritten to run more different tests.
269
270 2002-09-10  Roland McGrath  <roland@redhat.com>
271
272         * nscd/Makefile (CPPFLAGS-nscd, CPPFLAGS-nscd_conf, CPPFLAGS-dbg_log)
273         (CPPFLAGS-connections, CPPFLAGS-hstcache): Variables removed.
274         Instead, catch all of $(nscd-modules) via cppflags-iterator.mk.
275
276         * sysdeps/powerpc/fpu/s_isnan.c: Do macro hackery on __GI___isnanf as
277         well so we don't get it declared by include/math.h's hidden_proto.
278         Then do hidden_proto for __isnanf locally so hidden_def works right.
279
280         * posix/bug-regex5.c (main): Use `union locale_data_value' rather than
281         a cast to turn nl_langinfo return value into an integer.
282
283 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
284
285         * posix/regexec.c (build_trtable): Fix the destination of
286         newline to prevent wrong states from overwriting.
287         Append break statements to optimization.
288
289 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
290
291         * posix/regcomp.c: Wrap #include wchar.h and wctype.h in #if.
292         (build_range_exp): Add castings to strlen invocations.
293         (build_collating_symbol): Restore the type of characters from "char"
294         to "unsigned char", and supplement castings.
295         (build_collating_symbol): Likewise.
296         (build_equiv_class): Likewise.
297         (build_charclass): Likewise.
298         (seek_collating_symbol_entry): Likewise.
299         (parse_bracket_exp): Likewise.
300         (build_word_op): Supplement a casting.
301         * posix/regex_internal.c: Wrap #include wchar.h and wctype.h in #if.
302         (re_string_allocate): Fix castings.
303         (re_string_construct): Likewise.
304         (re_string_construct_common): Likewise.
305         (re_string_realloc_buffers): Likewise.
306         (build_wcs_buffer): Likewise.
307         (build_wcs_upper_buffer): Likewise.
308         (re_string_skip_chars): Likewise.
309         (re_string_reconstruct): Likewise.
310         * posix/regex_internal.h: Restore the type of characters in
311         re_string_t and bracket_elem_t from "char" to "unsigned char".
312         (re_string_elem_size_at): Fix castings.
313         * posix/regexec.c: Wrap #include wchar.h and wctype.h in #if.
314         (transit_state_bkref_loop): Restore the type of characters from
315         "char" to "unsigned char", and append a cast to "char*" pointer in
316         array subscript.
317         (check_node_accept_bytes): Likewise.
318         (find_collation_sequence_value): Likewise.
319
320 2002-09-10  Hartvig Ekner  <hartvige@mips.com>
321
322         * sysdeps/mips/memcpy.S: New file.
323         * sysdeps/mips/memset.S: New file.
324         * sysdeps/mips/fpu/e_sqrt.c:  New file.
325         * sysdeps/mips/fpu/e_sqrtf.c: New file.
326
327         * fpu/fclrexcpt.c: Cleaned up the FPU exception stuff - was not
328         functional before. Also removed all SHLIB_COMPAT stuff.
329         * fpu/fegetenv.c: Likewise.
330         * fpu/fesetenv.c:: Likewise.
331         * fpu/feupdateenv.c: Likewise.
332         * fpu/fgetexcptflg.c: Likewise.
333         * fpu/fraiseexcpt.c: Likewise.
334
335         * sysdeps/mips/fpu/fsetexcptflg.c: New file.
336
337 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
338
339         * include/math.h (__finite_internal, __finitef_internal,
340         __finitel_internal, __isinf_internal, __isnan_internal): Remove.
341         (isfinite): Remove.
342         (__finite, __isinf, __isnan, __finitef, __isinff, __isnanf, __finitel,
343         __isinfl, __isnanl): Add hidden_proto.
344         (__fpclassify, __fpclassifyf, __fpclassifyl, __expm1l): Add
345         libm_hidden_proto.
346         * math/Makefile (libm-calls): Add s_isinf and s_isnan.
347         * stdio-common/printf_fp.c (__printf_fp): Remove INTUSE from
348         __is{inf,nan} calls.
349         * stdio-common/printf_size.c (printf_size): Likewise.
350         * sysdeps/generic/printf_fphex.c (__printf_fphex): Likewise.
351         * sysdeps/generic/s_ldexp.c (__ldexp): Likewise.
352         * sysdeps/generic/s_ldexpf.c (__ldexpf): Likewise.
353         * sysdeps/generic/s_ldexpl.c (__ldexpl): Likewise.
354         * sysdeps/generic/s_expm1l.c (__expm1l): Add libm_hidden_def.
355         * sysdeps/i386/fpu/s_finite.S (__finite_internal): Remove alias.
356         (__finite): Add hidden_def.
357         * sysdeps/i386/fpu/s_finitef.S (__finitef_internal): Remove alias.
358         (__finitef): Add hidden_def.
359         * sysdeps/i386/fpu/s_finitel.S (__finitel_internal): Remove alias.
360         (__finitel): Add hidden_def.
361         * sysdeps/i386/fpu/s_isinfl.c (__isinfl): Remove INTDEF.  Add
362         hidden_def.
363         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
364         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Add
365         libm_hidden_def.
366         * sysdeps/i386/fpu/s_expm1l.S (__expm1l): Likewise.
367         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Remove INTDEF.  Add
368         hidden_def.
369         * sysdeps/ieee754/dbl-64/s_isinf.c (__isinf): Likewise.
370         (__isinfl): Remove INTDEF.
371         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Remove INTDEF.  Add
372         hidden_def.
373         (__isnanl): Remove INTDEF.
374         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Add
375         libm_hidden_def.
376         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Use __sin and __cos
377         instead of sin and cos.
378         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Remove INTDEF.
379         Add hidden_def.
380         * sysdeps/ieee754/flt-32/s_isinff.c (__isinff): Likewise.
381         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
382         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Add
383         libm_hidden_def.
384         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Remove INTDEF.
385         Add hidden_def.
386         * sysdeps/ieee754/ldbl-128/s_isinfl.c (__isinfl): Likewise.
387         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
388         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl): Add
389         libm_hidden_def.
390         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add
391         libm_hidden_def.
392         * sysdeps/ieee754/ldbl-96/s_finitel.c (__finitel): Remove INTDEF.
393         Add hidden_def.
394         * sysdeps/ieee754/ldbl-96/s_isinfl.c (__isinfl): Likewise.
395         * sysdeps/ieee754/ldbl-96/s_isnanl.c (__isnanl): Likewise.
396         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c (__fpclassifyl): Add
397         libm_hidden_def.
398         * sysdeps/ia64/fpu/s_finite.S (__finite_internal, __finitef_internal,
399         __finitel_internal): Remove aliases.
400         (__finite, __finitef, __finitel): Add hidden_def.
401         * sysdeps/ia64/fpu/s_isnan.S (__isnan_internal, __isnanf_internal,
402         __isnanl_internal): Remove aliases.
403         (__isnan, __isnanf, __isnanl): Add hidden_def.
404         * sysdeps/ia64/fpu/s_isinf.S (__isinf_internal, __isinff_internal,
405         __isinfl_internal): Remove aliases.
406         (__isinf, __isinff, __isinfl): Add hidden_def.
407         * sysdeps/ia64/fpu/s_fpclassify.S (__fpclassify, __fpclassifyf,
408         __fpclassifyl): Add libm_hidden_def.
409         * sysdeps/ia64/fpu/s_expm1l.S (__expm1l): Likewise.
410         * sysdeps/m68k/s_isinfl.c (__isinfl): Remove INTDEF.  Add hidden_def.
411         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Remove.
412         (hidden_defx): Define and use.
413         * sysdeps/m68k/fpu/s_fpclassifyl.c (__fpclassifyl): Add
414         libm_hidden_def.
415         * sysdeps/m68k/fpu/s_expm1l.c (__expm1l): Likewise.
416         * sysdeps/m68k/s_isnanl.c (__isnanl): Add hidden_def.
417         * sysdeps/powerpc/fpu/s_isnan.c (__isnan, __isnanf, __isnanl):
418         Remove INTDEF.
419         (__isnan, __isnanf): Add hidden_def.
420         * sysdeps/x86_64/fpu/s_finitel.S (__finitel_internal): Remove alias.
421         (__finitel): Add libm_hidden_def.
422         * sysdeps/x86_64/fpu/s_expm1l.S (__expm1l): Likewise.
423
424         * include/fenv.h (feraiseexcept, fesetenv): Add libm_hidden_proto.
425         * sysdeps/alpha/fpu/fesetenv.c (fesetenv): Add libm_hidden_ver.
426         * sysdeps/alpha/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
427         * sysdeps/arm/fpu/fesetenv.c (fesetenv): Likewise.
428         * sysdeps/arm/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
429         * sysdeps/generic/fesetenv.c (fesetenv): Likewise.
430         * sysdeps/generic/fraiseexcpt.c (feraiseexcept): Likewise.
431         * sysdeps/i386/fpu/fesetenv.c (fesetenv): Likewise.
432         * sysdeps/i386/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
433         * sysdeps/m68k/fpu/fesetenv.c (fesetenv): Likewise.
434         * sysdeps/m68k/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
435         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Likewise.
436         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
437         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Likewise.
438         * sysdeps/powerpc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
439         * sysdeps/sparc/fpu/fesetenv.c (fesetenv): Likewise.
440         * sysdeps/sparc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
441         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Add libm_hidden_def.
442         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
443         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Likewise.
444         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
445         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
446         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
447         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
448         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
449         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Likewise.
450         * sysdeps/x86_64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
451
452 2002-09-09  Steven Munroe  <sjmunroe@us.ibm.com>
453
454         * elf/elf.h: Add powerpc64 specific elf relocation and dynamic types.
455
456 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
457
458         * elf/dl-error.c (_dl_signal_cerror): Don't print anything if only
459         LD_DEBUG=statistics or LD_TRACE_PRELINKING.
460
461 2002-09-09  Ulrich Drepper  <drepper@redhat.com>
462
463         * string/stratcliff.c: Some more strncpy tests.
464         Patch by Daniel Jacobowitz <drow@mvista.com>.
465
466 2002-09-08  Roland McGrath  <roland@redhat.com>
467
468         * resolv/resolv.h: Include <sys/types.h> for u_long even in
469         the [__need_res_state] case.
470         Reported by Bruno Haible <bruno@clisp.org>.
471
472 2002-09-04  Bruno Haible  <bruno@clisp.org>
473
474         * sysdeps/generic/bits/ustat.h: Comment fix.
475         * io/sys/sendfile.h: Comment fix.
476         * sysdeps/posix/pread.c: Comment fix.
477         * sysdeps/posix/pread64.c: Comment fix.
478         * sysdeps/posix/pwrite.c: Comment fix.
479         * sysdeps/posix/pwrite64.c: Comment fix.
480
481 2002-09-06  Roland McGrath  <roland@redhat.com>
482
483         * posix/sys/utsname.h (_UTSNAME_SYSNAME_LENGTH): New macro, defined
484         to _UTSNAME_LENGTH if not already defined by <bits/utsname.h>.
485         (_UTSNAME_RELEASE_LENGTH, _UTSNAME_VERSION_LENGTH): Likewise.
486         (_UTSNAME_MACHINE_LENGTH): Likewise.
487         (struct utsname): Use new macros instead of _UTSNAME_LENGTH.
488
489 2002-09-06  Ulrich Drepper  <drepper@redhat.com>
490
491         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Correct
492         test for filesystem type name of mount points.
493
494         * include/errno.h: Use errno definition with __thread for now only
495         in libc and ld.so.
496
497         * test-skeleton.c (main): Improve error message for unexpected
498         signal case.
499
500 2002-09-05  Roland McGrath  <roland@redhat.com>
501
502         * ctype/ctype-info.c: Renamed __ctype_old_* symbols to __ctype_*.
503         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
504
505 2002-09-05  Jakub Jelinek  <jakub@redhat.com>
506
507         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Unlock and return in
508         case of failure.
509
510 2002-09-04  Bruno Haible  <bruno@clisp.org>
511
512         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h (sigset_set_old_mask,
513         sigset_get_old_mask): Turn into inline functions.
514         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h (sigset_set_old_mask,
515         sigset_get_old_mask): Likewise.
516         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h (sigset_set_old_mask,
517         sigset_get_old_mask): Likewise.
518         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Declutter
519         syntax.
520
521         * elf/readlib.c (process_file): Conditionalize check for QMAGIC.
522
523         * sysdeps/generic/_strerror.c (_sys_errlist, _sys_nerr): Remove
524         default definitions.
525         (__strerror_r): Use _sys_errlist_internal instead of _sys_errlist,
526         _sys_nerr_internal instead of _sys_nerr.
527
528         * nscd/connections.c (handle_request): Declare CALLER inside #if.
529
530 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
531
532         * sysdeps/powerpc/__longjmp.S: Moved to...
533         * sysdeps/powerpc/powerpc32/__longjmp.S: ...here.
534         * sysdeps/powerpc/add_n.S: Moved to...
535         * sysdeps/powerpc/powerpc32/add_n.S: ...here.
536         * sysdeps/powerpc/addmul_1.S: Moved to...
537         * sysdeps/powerpc/powerpc32/addmul_1.S: ...here.
538         * sysdeps/powerpc/atomicity.h: Moved to...
539         * sysdeps/powerpc/powerpc32/atomicity.h: ...here.
540         * sysdeps/powerpc/backtrace.c: Moved to...
541         * sysdeps/powerpc/powerpc32/backtrace.c: ...here.
542         * sysdeps/powerpc/bp-asm.h: Moved to...
543         * sysdeps/powerpc/powerpc32/bp-asm.h: ...here.
544         * sysdeps/powerpc/bsd-_setjmp.S: Moved to...
545         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: ...here.
546         * sysdeps/powerpc/bsd-setjmp.S: Moved to...
547         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: ...here.
548         * sysdeps/powerpc/dl-machine.c: Moved to...
549         * sysdeps/powerpc/powerpc32/dl-machine.c: ...here.
550         * sysdeps/powerpc/dl-machine.h: Moved to...
551         * sysdeps/powerpc/powerpc32/dl-machine.h: ...here.
552         * sysdeps/powerpc/dl-start.S: Moved to...
553         * sysdeps/powerpc/powerpc32/dl-start.S: ...here.
554         * sysdeps/powerpc/gprrest0.S: Moved to...
555         * sysdeps/powerpc/powerpc32/gprrest0.S: ...here.
556         * sysdeps/powerpc/gprrest1.S: Moved to...
557         * sysdeps/powerpc/powerpc32/gprrest1.S: ...here.
558         * sysdeps/powerpc/gprsave0.S: Moved to...
559         * sysdeps/powerpc/powerpc32/gprsave0.S: ...here.
560         * sysdeps/powerpc/gprsave1.S: Moved to...
561         * sysdeps/powerpc/powerpc32/gprsave1.S: ...here.
562         * sysdeps/powerpc/lshift.S: Moved to...
563         * sysdeps/powerpc/powerpc32/lshift.S: ...here.
564         * sysdeps/powerpc/memset.S: Moved to...
565         * sysdeps/powerpc/powerpc32/memset.S: ...here.
566         * sysdeps/powerpc/mul_1.S: Moved to...
567         * sysdeps/powerpc/powerpc32/mul_1.S: ...here.
568         * sysdeps/powerpc/ppc-mcount.S: Moved to...
569         * sysdeps/powerpc/powerpc32/ppc-mcount.S: ...here.
570         * sysdeps/powerpc/register-dump.h: Moved to...
571         * sysdeps/powerpc/powerpc32/register-dump.h: ...here.
572         * sysdeps/powerpc/rshift.S: Moved to...
573         * sysdeps/powerpc/powerpc32/rshift.S: ...here.
574         * sysdeps/powerpc/setjmp.S: Moved to...
575         * sysdeps/powerpc/powerpc32/setjmp.S: ...here.
576         * sysdeps/powerpc/stpcpy.S: Moved to...
577         * sysdeps/powerpc/powerpc32/stpcpy.S: ...here.
578         * sysdeps/powerpc/strchr.S: Moved to...
579         * sysdeps/powerpc/powerpc32/strchr.S: ...here.
580         * sysdeps/powerpc/strcmp.S: Moved to...
581         * sysdeps/powerpc/powerpc32/strcmp.S: ...here.
582         * sysdeps/powerpc/strcpy.S: Moved to...
583         * sysdeps/powerpc/powerpc32/strcpy.S: ...here.
584         * sysdeps/powerpc/strlen.S: Moved to...
585         * sysdeps/powerpc/powerpc32/strlen.S: ...here.
586         * sysdeps/powerpc/sub_n.S: Moved to...
587         * sysdeps/powerpc/powerpc32/sub_n.S: ...here.
588         * sysdeps/powerpc/submul_1.S: Moved to...
589         * sysdeps/powerpc/powerpc32/submul_1.S: ...here.
590         * sysdeps/powerpc/elf/bzero.S: Moved to...
591         * sysdeps/powerpc/powerpc32/elf/bzero.S: ...here.
592         * sysdeps/powerpc/elf/start.S: Moved to...
593         * sysdeps/powerpc/powerpc32/elf/start.S: ...here.
594         * sysdeps/powerpc/fpu/__longjmp.S: Moved to...
595         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: ...here.
596         * sysdeps/powerpc/fpu/fprrest.S: Moved to...
597         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: ...here.
598         * sysdeps/powerpc/fpu/fprsave.S: Moved to...
599         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: ...here.
600         * sysdeps/powerpc/fpu/setjmp.S: Moved to...
601         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: ...here.
602         * sysdeps/powerpc/fpu/s_copysign.S: Moved to...
603         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: ...here.
604         * sysdeps/powerpc/fpu/s_copysignf.S: Moved to...
605         * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: ...here.
606         * sysdeps/unix/sysv/linux/powerpc/brk.S: Moved to...
607         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: ...here.
608         * sysdeps/unix/sysv/linux/powerpc/clone.S: Moved to...
609         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: ...here.
610         * sysdeps/unix/sysv/linux/powerpc/glob64.c: Moved to...
611         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
612         * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h: Moved to...
613         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: ...here.
614         * sysdeps/unix/sysv/linux/powerpc/socket.S: Moved to...
615         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: ...here.
616         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Moved to...
617         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: ...here.
618         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Moved to...
619         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: ...here.
620         Support PowerPC64.  Separate powerpc into powerpc/powerpc32 and
621         powerpc/powerpc64.
622
623 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
624
625         * FAQ.in: Add powerpc64 to supported targets list. Also state the
626         minimum gcc version is 3.2
627         * README: Add powerpc64 to supported targets list.
628         * configure.in: Change machine=powerpc to machine=powerpc/powerpc32.
629         Add powerpc64 and machine=powerpc/powerpc64.
630         (HAVE_ASM_GLOBAL_DOT_NAME): Define if linux*powerpc/powerpc64*.
631         * shlib-versions: Set DEFAULT version to 2.2.5 for powerpc64.
632         * sysdeps/powerpc/Dist: Remove dl-machine.c, dl-start.S, ppc-mcount.S,
633         gprsave1.S, gprsave0.S, gprrest1.S, and gprrest0.S.
634         * sysdeps/powerpc/powerpc32/Dist: New file.
635         * sysdeps/powerpc/Implies: Remove wordsize-32 and powerpc/soft-fp.
636         * sysdeps/powerpc/powerpc32/Implies: New file.
637         * sysdeps/powerpc/Makefile(cflags): Remove powerpc32 specific cflags.
638         ($(with-fp) = no): Move test to powerpc32/Makefile.
639         ($(subdir) = misc): Move to powerpc32/Makefile.
640         ($(build-shared) = yes): Move to powerpc32/Makefile.
641         ($(subdir) = csu): Move to powerpc32/Makefile.
642         (sysdep-rtld-routines): Remove dl-start.  Moved these bits to ...
643         * sysdeps/powerpc/powerpc32/Makefile: New file.
644         * sysdeps/powerpc/Versions: Remove libgcc functions.
645         * sysdeps/powerpc/powerpc32/Versions: New file.
646         * sysdeps/powerpc/fpu/Makefile: Remove fprsave and fprrest.
647         * sysdeps/powerpc/powerpc32/fpu/Makefile: New file.
648         * sysdeps/unix/sysv/linux/configure.in (powerpc*):
649         Set arch_minimum_kernel=2.4.19 for powerpc/powerpc64. Also set
650         libc_cv_gcc_unwind_find_fde=yes only if !powerpc/powerpc64.
651         ($machine): Add powerpc/powerpc64 to if ... | for
652         libc_cv_slibdir=/libc64.
653         (powerpc*): Set ldd_rewrite_script.
654         * sysdeps/unix/sysv/linux/powerpc/ldd-rewrite.sed: New file.
655         * sysdeps/unix/sysv/linux/powerpc/Dist: Remove clone.S.
656         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: New file.
657         Add clone.S.
658         * sysdeps/unix/sysv/linux/powerpc/Makefile: Remove oldgetrlimit64.
659         * sysdeps/unix/sysv/linux/powerpc/Versions: Remove GLIBC_2.0
660         functions.  Remove GLIBC_2.2 functions except getrlimit and
661         setrlimit.  Moved them to ...
662         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: New file.
663
664 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
665
666         * libio/tst-atime.c: Include <errno.h>.
667         (do_test): Only perform fstatvfs check if ST_NOATIME is defined.
668
669 2002-09-03  Isamu Hasegawa  <isamu@yamato.ibm.com>
670
671         * posix/regcomp.c (regcomp): Append "__restrict" modifier to avoid
672         warnings of some compilers.
673         (build_collating_symbol): Change the type of characters from
674         "unsigned char" to "char", and append a cast to "char*" pointer in
675         array subscript.
676         (build_collating_symbol): Likewise.
677         (build_equiv_class): Likewise.
678         (build_charclass): Likewise.
679         (re_compile_pattern): Remove incorrect cast.
680         (re_compile_fastmap_iter): Change the type of characters from
681         "unsigned char" to "char", and append a cast to "char*" pointer
682         in array subscript.
683         (parse_bracket_exp): Likewise.
684         * posix/regex_internal.c (re_string_construct_common): Likewise.
685         (re_string_allocate): Likewise.
686         (re_string_construct): Likewise.
687         (re_string_realloc_buffers): Likewise.
688         (build_wcs_buffer): Likewise.
689         (re_string_reconstruct): Likewise.
690         * posix/regex_internal.h: Change the type of characters in
691         re_string_t and bracket_elem_t from "unsigned char" to "char".
692         * posix/regexec.c (regexec): Append "__restrict" modifier to avoid
693         warnings of some compilers.
694         (transit_state_bkref_loop): Change the type of characters from
695         "unsigned char" to "char", and append a cast to "char*" pointer in
696         array subscript.
697         (check_node_accept_bytes): Likewise.
698         (find_collation_sequence_value): Likewise.
699
700 2002-09-04  Roland McGrath  <roland@redhat.com>
701
702         * resolv/nss_dns/dns-network.c (MAXPACKET): Increase minimum value
703         from 1024 to 65536, to avoid buffer overrun.
704
705 2002-09-03  Gerhard Tonn  <ton@de.ibm.com>
706
707         * sysdeps/s390/s390/fpu/libm-test-ulps: Regenerate.
708
709 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
710
711         * libio/tst-atime.c (do_test): Make sure noatime flag isn't set
712         for filesystem.
713
714 2002-09-04  Jakub Jelinek  <jakub@redhat.com>
715
716         * posix/bug-regex11.c: New test.
717         * posix/Makefile (tests): Add bug-regex11.
718
719 2002-09-03  Jakub Jelinek  <jakub@redhat.com>
720
721         * locale/tst-C_locale.c (run_test): Pass LC_ALL_MASK not LC_ALL to
722         newlocale.
723
724 2002-09-02  Roland McGrath  <roland@redhat.com>
725
726         * sysdeps/powerpc/elf/libc-start.c [! SHARED]: Call
727         __pthread_initialize_minimal and __libc_check_standard_fds to
728         match the generic version.
729
730         * sysdeps/unix/sysv/linux/shmat.c (shmat): Add a cast to avoid a
731         warning when INLINE_SYSCALL macro uses the __syscall_ipc function.
732
733         * locale/localeconv.c (__localeconv): Cast -1 to char to avoid
734         warnings on platorms where char is unsigned.
735
736 2002-09-02  Ulrich Drepper  <drepper@redhat.com>
737
738         * version.h (VERSION): Bump to 2.2.93.
739
740         * sysdeps/unix/sysv/linux/x86_64/Dist: Add __start_context.S.
741
742 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
743
744         * elf/rtld.c (dl_main): If prelinking succeeded, mark all objects
745         as relocated.
746
747 2002-09-02  Jack Howarth  <howarth@bromo.msbb.uc.edu>
748
749         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
750
751 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
752
753         * locale/localeinfo.h (struct locale_data): Add private.ctype.
754         * wcsmbs/wcsmbsload.h (__wcsmbs_gconv_fcts, __wcsmbs_last_locale,
755         __wcsmbs_to_wc, update_conversion_ptrs): Removed.
756         (__wcsmbs_gconv_fcts_c, _nl_C_LC_CTYPE): New externs.
757         (__wcsmbs_load_conv): Remove const from argument.
758         (_nl_cleanup_ctype): New proto.
759         (get_gconv_fcts): New function.
760         * wcsmbs/wcsmbsload.c (__wcsmbs_last_locale): Removed.
761         (__wcsmbs_to_wc): Rename back to...
762         (to_wc): ... this.
763         (__wcsmbs_gconv_fcts): Rename to...
764         (__wcsmbs_gconv_fcts_c): ... this.  Make const.  Use to_wc.
765         (lock): Removed.
766         (__libc_setlocale_lock): New extern.
767         (__wcsmbs_load_conv): Remove const from argument.
768         Initialize new_category->private.ctype instead of a global
769         variable.
770         (__wcsmbs_clone_conv): Use get_gconv_fcts instead of
771         update_function_ptrs.  No locking is necessary.
772         (_nl_cleanup_ctype): New function.
773         * wcsmbs/btowc.c (__btowc): Use get_gconv_fcts instead of
774         update_function_ptrs and a global __wcsmbs_gconv_fcts variable.
775         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
776         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
777         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
778         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
779         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
780         * wcsmbs/wctob.c (wctob): Likewise.
781         * stdlib/mblen.c (mblen): Likewise.
782         * stdlib/mbtowc.c (mbtowc): Likewise.
783         * stdlib/wctomb.c (wctomb): Likewise.
784         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
785         Remove calls to wcsmbs_get_towc_func and wcsmbs_free_funcs.
786         * wcsmbs/mbsrtowcs_l.c (wcsmbs_get_towc_func, wcsmbs_free_funcs):
787         Removed.
788
789 2002-09-02  Roland McGrath  <roland@frob.com>
790
791         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Add __fxstat64.
792
793 2002-09-01  Roland McGrath  <roland@redhat.com>
794
795         * ctype/ctype.h (__ctype_b, __ctype_toupper, __ctype_tolower):
796         Variable declarations removed.
797         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Declare
798         these functions to replace them.
799         (__isctype, tolower, toupper, _tolower, _toupper): Use those accessor
800         functions plus an indirection rather than the old global variables.
801         * include/ctype.h (__isctype, tolower, _tolower, toupper, _toupper):
802         Macros removed.
803         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): New extern
804         inline functions.
805         * ctype/ctype-info.c: Revert last reversion back the other way.
806         Define tsd vars CTYPE_B, CTYPE_TOLOWER, CTYPE_TOUPPER.
807         Define real function versions of include/ctype.h inlines here.
808         * ctype/Versions (libc: GLIBC_2.3): Add __ctype_b_loc,
809         __ctype_tolower_loc, __ctype_toupper_loc.
810         * locale/lc-ctype.c: Revert last reversion back the other way.
811         (_nl_postload_ctype): If current thread uses the global locale,
812         update its tsd vars.
813         * locale/uselocale.c (__uselocale): Update tsd vars from new locale.
814         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add CTYPE_B,
815         CTYPE_TOLOWER, CTYPE_TOUPPER.
816
817         * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_address): New macro.
818         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_address): Renamed
819         from __libc_tsd_threadvar_location.
820         (__libc_tsd_set, __libc_tsd_get): Update uses.
821
822 2002-09-01  Ulrich Drepper  <drepper@redhat.com>
823
824         * ctype/ctype.h: Undo the patch before the last one.  Put back the
825         macro definitions for the standard functions to access the
826         classification and mapping arrays.
827         * include/ctype.h: Partly revert last patch.  Move the macro
828         definitions for the exported functions back to the public header.
829         #undef all the macros defined here before redefining.
830         * ctype/ctype-info.c: Revert last patch.
831         * locale/lc-ctype.c: Revert last patch.
832
833         * ctype/Makefile (routines): Add isctype.
834         * ctype/Versions (libc): Export isctype and __isctype for GLIBC_2.3.
835         * ctype/ctype.h: Add declaration of isctype.
836         * include/ctype.h: Declare __isctype.
837         * ctype/isctype.c: New file.
838
839 2002-09-01  Roland McGrath  <roland@redhat.com>
840
841         * sysdeps/generic/libc-tls.c (__pthread_initialize_minimal): Pass
842         TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN instead of 0, 1.
843
844         * include/getopt.h: Include <features.h> before <posix/getopt.h>.
845
846         * locale/findlocale.c (_nl_remove_locale): Don't search in
847         _nl_locale_file_list if DATA->alloc is ld_archive.
848         Use _nl_unload_locale to do the rest of the work.
849
850         * locale/loadarchive.c (_nl_load_locale_from_archive): Set usage_count
851         of new structure to UNDELETABLE.
852
853         * wctype/wctype.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower,
854         iswgraph, iswprint, iswpunct, iswspace, iswupper, iswxdigit, iswblank,
855         towlower, towupper): Macros removed.
856         * ctype/ctype.h (__tobody): Put parens around macro argument.
857         (__isctype): Macro removed.
858         (__ctype_b, __ctype_tolower, __ctype_toupper): Decls removed.
859         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
860         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
861         tolower, toupper): Macros and inlines removed.
862         * include/ctype.h [! NOT_IN_libc]
863         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
864         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
865         tolower, toupper): Define here instead, using _NL_CURRENT.
866         * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Define as macros
867         using _NL_CURRENT.
868         * ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Likewise.
869         * ctype/ctype-info.c (__ctype_b, __ctype_tolower, __ctype_toupper):
870         Renamed these to __ctype_old_*. Define old names only for SHLIB_COMPAT.
871         (__ctype32_b, __ctype32_tolower, __ctype32_toupper): Likewise.
872         (__ctype32_wctrans, __ctype32_wctrans, __ctype32_width): Removed.
873         * locale/lc-ctype.c (_nl_postload_ctype): Use renamed variables,
874         conditional on SHLIB_COMPAT.  Don't set removed variables at all.
875         * wctype/wcfuncs.c: Use _NL_CURRENT instead of those globals.
876         * wcsmbs/wcwidth.h (internal_wcwidth): Likewise.
877         * resolv/res_init.c [RESOLVSORT] (sort_mask): Renamed sort_mask_chars.
878         (ISSORTMASK): Update use.
879         * intl/localealias.c [__GNUC__]: #undef alloca before #define.
880         * nss/nss_files/files-XXX.c (last_use): Rename `none' to `nouse'.
881         (_nss_files_getENTNAME_r): Likewise.
882         * nss/nss_files/files-alias.c (last_use, _nss_files_getaliasent_r):
883         Likewise.
884
885         * Makerules (all-nonlib): Renamed from all-tests.
886         Include $(others) here too.
887         * locale/Makefile (CPPFLAGS-locale, CPPFLAGS-localedef,
888         CPPFLAGS-ld-ctype, CPPFLAGS-ld-time, CPPFLAGS-ld-numeric,
889         CPPFLAGS-ld-monetary, CPPFLAGS-ld-collate, CPPFLAGS-ld-identification,
890         CPPFLAGS-charmap, CPPFLAGS-locarchive, CPPFLAGS-linereader,
891         CPPFLAGS-charmap-dir): Variables removed.  Instead, catch all
892         the program modules via cppflags-iterator.mk.
893         * sunrpc/Makefile (CPPFLAGS-rpc_main): Variable removed.
894         Instead, catch all rpcgen-objs via cppflags-iterator.mk.
895
896 2002-08-31  Roland McGrath  <roland@redhat.com>
897
898         * posix/tst-getconf.sh: If no third arg, work with static linking.
899
900         * locale/categories.def (LC_TIME): No more _nl_postload_time.
901
902         * locale/setlocale.c (_nl_category_postload): Use weak refs only under
903         [_NL_CURRENT_INDIRECT].
904
905 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
906
907         * time/tst-ftime_l.c (main): Also test strftime with uselocale.
908
909 2002-08-31  Roland McGrath  <roland@redhat.com>
910
911         * locale/newlocale.c (__newlocale): Don't use strdup for names.
912         Instead, make the single allocation of the structure larger to hold
913         the name strings.
914         * locale/duplocale.c (__duplocale): Don't strdup names individually.
915         Instead, calculate size for a single allocation and copy into it.
916         * locale/freelocale.c (__freelocale): Don't free names individually.
917
918         * locale/newlocale.c (__newlocale): Don't leak old data or names.
919
920         * locale/xlocale.h (__locale_struct): Move __names member last,
921         for binary compatibility.
922
923         * locale/duplocale.c (__duplocale): Free names from the right array.
924
925         * locale/uselocale.c (__uselocale): Return previous locale when
926         setting a new one.
927
928         * locale/newlocale.c: Commit changes from 2002-08-30
929         batch where I failed to commit this file:
930         (__newlocale): Fill in __names array.
931
932 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
933
934         * sysdeps/gnu/Makefile: Only depend on Versions.v.i for
935         errlist-compat.c if versioning==yes.
936
937 2002-08-31  Andreas Jaeger  <aj@suse.de>
938
939         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Declare
940         external functions with hidden attribute.
941         (elf_machine_rela): Optimize.
942
943         * sysdeps/x86_64/memset.S: New file.
944         * sysdeps/x86_64/bzero.S: New file.
945         * sysdeps/x86_64/stpcpy.S: New file.
946         * sysdeps/x86_64/strcat.S: New file.
947         * sysdeps/x86_64/strchr.S: New file.
948         * sysdeps/x86_64/strcpy.S: New file.
949         * sysdeps/x86_64/strcspn.S: New file.
950         * sysdeps/x86_64/strlen.S: New file.
951         * sysdeps/x86_64/strpbrk.S: New file.
952         * sysdeps/x86_64/strspn.S: New file.
953         * sysdeps/x86_64/strcmp.S: New file.
954         * sysdeps/x86_64/strtok_r.S: New file.
955         * sysdeps/x86_64/strtok.S: New file.
956         * sysdeps/x86_64/memcpy.S: New file.
957         * sysdeps/x86_64/mempcpy.S: New file.
958
959         * sysdeps/x86_64/fpu/s_copysign.S: Fix algorithm.
960
961         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for double tests.
962
963 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
964
965         * stdio-common/Makefile (generated): Add errlist-compat.c.
966
967         * locale/Makefile (extra-objs): Add $(localedef-aux:=.o).
968
969         * locale/localeinfo.h: Pretty printing.
970
971         * stdio-common/vfprintf.c (vfprintf): Remove duplicate ifs in
972         form_number handling.
973
974 2002-08-31  Andreas Jaeger  <aj@suse.de>
975
976         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for float and long
977         double tests.
978
979         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_routines): Add
980         __start_context.
981
982         * sysdeps/unix/sysv/linux/x86_64/__start_context.S: New file.
983
984         * sysdeps/unix/sysv/linux/x86_64/makecontext.c: New file.
985
986         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: Add defines for
987         registers used for passing args.
988
989         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Save and restore
990         all needed registers.
991
992         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Restore all
993         registers.
994
995         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Save all needed
996         registers.
997
998 2002-08-30  Ulrich Drepper  <drepper@redhat.com>
999
1000         * elf/dynamic-link.h (elf_get_dynamic_info): Mark with
1001         always_inline attribute.
1002
1003 2002-08-30  Roland McGrath  <roland@redhat.com>
1004
1005         * stdlib/tst-setcontext.c (main): If makecontext does nothing,
1006         presume it's the stub and bail without error.
1007
1008         * nss/getnssent_r.c (__nss_getent_r): Return ENOENT if status is
1009         neither SUCCESS nor TRYAGAIN (see 2002-08-25 change [PR libc/4259]).
1010
1011         * nss/getnssent_r.c (__nss_getent_r): Set *H_ERRNOP, not global one.
1012
1013         * sysdeps/x86_64/hp-timing.h (HP_TIMING_NOW, HP_TIMING_ACCUM): New
1014         macros replace the i686 versions for 64-bit mode.
1015
1016         * locale/duplocale.c: Include <string.h>.
1017
1018         * intl/dcigettext.c (DCIGETTEXT) [_LIBC]: Check for bogus CATEGORY.
1019         [_LIBC] (category_to_name): Don't define the function.  Instead
1020         define a macro using _nl_category_names.
1021
1022         * locale/xlocale.h (struct __locale_struct): New member `__names'.
1023         * locale/xlocale.c (_nl_C_locobj): Update initializer.
1024         * locale/global-locale.c (_nl_global_locale): Likewise.
1025         * locale/duplocale.c (__duplocale): strdup __names elements.
1026         * locale/freelocale.c (__freelocale): Free __names elements.
1027         * locale/localename.c (_nl_current_names): Variable removed.
1028         (__current_locale_name): Use _NL_CURRENT_LOCALE->__names instead.
1029         * locale/localeinfo.h (_nl_current_names): Removed decl.
1030         * locale/setlocale.c: Use _nl_global_locale->__names in place of
1031         _nl_current_names throughout.
1032
1033         * locale/setlocale.c (setlocale): strdup -> __strdup (not ISO C).
1034
1035         * sysdeps/gnu/errlist-compat.awk: Emit link_warnings for sys_errlist
1036         and sys_nerr in the output file.
1037
1038         * sunrpc/Makefile (rpcgen-cmd): Pass CPP in rpcgen's environment.
1039         * scripts/cpp: Just use the environment variable.
1040
1041         * libio/tst-mmap-setvbuf.c (main): Use 'm' fopen flag.
1042         * libio/tst-mmap-offend.c (do_test): Likewise.
1043         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
1044         * libio/tst-mmap-eofsync.c (do_test): Likewise.
1045         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
1046
1047         * locale/localename.c: If the current locale is the global locale, use
1048         _nl_current_names; otherwise use the locale object.
1049
1050 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
1051
1052         * libio/fileops.c (_IO_new_file_fopen): Recognize new mode specifier
1053         'm' to enable mmap I/O.
1054         * libio/libio.h (_IO_FILE): Rename _blksize field to _flags2.  The
1055         former wasn't used (anymore?).
1056         (_IO_FLAGS2_MMAP): New define.
1057         * libio/genops.c (_IO_no_init): Initialize _flags2 field.
1058         * libio/iofopen.c (__fopen_maybe_mmap): Use mmap callbacks only if
1059         _IO_FLAGS2_MMAP bit is set.
1060         * libio/iofdopen.c (_IO_new_fdopen): Recognize 'm' mode specifier.
1061         Enable mmap-using mode only if 'm' was set.
1062
1063 2002-08-29  Roland McGrath  <roland@frob.com>
1064
1065         * sysdeps/mach/hurd/bits/local_lim.h (NAME_MAX): New macro.
1066
1067         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup: doinit):
1068         Change argument type from int to intptr_t.
1069
1070         * locale/global-locale.c (__libc_tsd_LOCALE_data): Conditionalize the
1071         initializer on [! _HURD_THREADVAR_H] (bad kludge).
1072         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize
1073         _HURD_THREADVAR_LOCALE slot to &_nl_global_locale.
1074         * hurd/hurdsig.c (_hurdsig_init): Likewise.  Zero other slots.
1075
1076         * sysdeps/mach/_strerror.c (__strerror_r): Add libc_hidden_def.
1077
1078         * sysdeps/mach/hurd/pwrite64.c: No libc_hidden_def (__libc_pwrite64).
1079
1080         * sysdeps/mach/hurd/dl-sysdep.c (__GI_abort): Define alias for abort.
1081
1082         * include/assert.h (__assert_perror_fail): Declare it, do hidden_proto.
1083         * assert/assert-perr.c: Add libc_hidden_def.
1084         * elf/dl-minimal.c [! NDEBUG] (__assert_perror_fail): New function.
1085
1086         * sysdeps/gnu/errlist-compat.awk: Don't fail if there are no versions
1087         found at all.
1088         * sysdeps/gnu/Versions: File removed.  Moved all #errlist-compat
1089         sys_errlist stuff to ...
1090         * sysdeps/unix/sysv/linux/Versions: ... here.
1091
1092         * mach/mach.h: Include <features.h>.
1093
1094 2002-08-29  Roland McGrath  <roland@redhat.com>
1095
1096         * elf/dl-runtime.c (IN_DL_RUNTIME): Define this macro first thing.
1097         * sysdeps/i386/dl-machine.h: Only declare fixup, profile_fixup and
1098         define ELF_MACHINE_RUNTIME_TRAMPOLINE under #ifdef IN_DL_RUNTIME.
1099
1100         * sysdeps/generic/readelflib.c (process_elf_file): Fix typo.
1101
1102         * iconv/gconv_int.h: Include <stdlib.h> for alloca decl.
1103         (norm_add_slashes): alloca -> __alloca
1104
1105 2002-08-29  Jakub Jelinek  <jakub@redhat.com>
1106
1107         * stdio-common/vfprintf.c (vfprintf): Add builtin_expect for
1108         string_malloced, it is unlikely to be set.
1109         Only call free with non-NULL workspace.
1110         * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Use
1111         -mcpu=ultrasparc, not only tune for it.
1112         (ASFLAGS*): Set unconditionally.
1113
1114         * sysdeps/generic/readelflib.c (process_elf_file): Make LOADADDR
1115         ElfW(Addr).  Don't mask upper 32-bits and lower 12 bits off from
1116         p_vaddr/p_offset when computing LOADADDR.
1117
1118 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
1119
1120         * version.h (VERSION): Bump to 2.2.92.
1121
1122         * time/Makefile (tst-ftime_l-ENV): New variable.
1123
1124         * iconvdata/ibm870.c: All bytes are now used, no holes anymore.
1125
1126         * localedata/charmaps/IBM870: Add correct mapping for <U017E>,
1127         <U017A>, <U017D> and <U0179>. Add missing mappings.
1128         Patch by Antonin Kopecky <akopecky@tajmac-zps.cz>.
1129
1130         * gmon/sys/gmon.h (ARCDENSITY): Bump to 3.
1131         Define ARCINDEX.  Bump MAXARCS to 1 << 20.
1132         (struct tostruct): Use ACRINDEX as type for link field.
1133         (statuc gmonparam): Likewise for froms.
1134         * gmon/gmon.c (__monstartup): Use currect cast for assignments to
1135         kcount and froms.
1136         (write_call_graph): Use correct type for from_index and to_index.
1137         * gmon/mcount.c: Use correct types for frompcindex and toindex
1138         variables.
1139         Patches by Dan Kegel <dank@kegel.com>.
1140
1141         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix code to determine
1142         canonical name.
1143
1144         * time/strptime.c (ISSPACE): New #define.  Use isspace or
1145         __isspace_l.  Replace calls to isspace.
1146         (match_string): Define variant for USE_IN_EXTENDED_LOCALE_MODEL.
1147
1148 2002-08-29  Roland McGrath  <roland@redhat.com>
1149
1150         * string/tst-strxfrm.c: Remove __ from function names.
1151
1152 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1153
1154         * include/wchar.h: Declare __mbsrtowcs_l.
1155         * wcsmbs/Makefile (routines): Add mbsrtowcs_l.
1156         * wcsmbs/mbsrtowcs.c: Add support for compilation with
1157         USE_IN_EXTENDED_LOCALE_MODEL.
1158         * wcsmbs/mbsrtowcs_l: New file.
1159         * wcsmbs/wcsmbsload.c (__wcsmbs_to_wc): Renamed from to_wc.  Don't
1160         define as static.  Change all uses.
1161         (__wcsmbs_getfct): Renamed from getfct.  Don't define as static.
1162         Change all callers.
1163         * wcsmbs/wcsmbsload.h: Declare __wcsmbs_to_wc and __wcsmbs_getfct.
1164         * time/strftime.c: When translating for the extended locale model
1165         use the _l functions.
1166         * time/Makefile (tests): Add tst-ftime_l.
1167         * time/tst-ftime_l.c: New file.
1168
1169 2002-08-28  Roland McGrath  <roland@redhat.com>
1170
1171         * locale/findlocale.c [NL_CURRENT_INDIRECT] (_nl_C): New variable.
1172         * locale/setlocale.c (setlocale) [NL_CURRENT_INDIRECT]: Null return
1173         from _nl_find_locale ok if for _nl_C_name.
1174
1175         * locale/nl_langinfo.c [NL_CURRENT_INDIRECT]: Use a categories.def
1176         iterator to refer to each category's _nl_current_LC_FOO symbol, so
1177         we know they are all linked in.
1178
1179         * NEWS: Added 2.2.6 text from 2.2 branch version.
1180
1181         * time/strptime.c (strptime_internal): Remove spurious const.
1182
1183         * locale/lc-time.c (_nl_init_era_entries, _nl_get_era_entry,
1184         _nl_select_era_entry): Moved to ...
1185         * time/era.c: ... here, new file.
1186         (_nl_init_era_entries, _nl_get_era_entry, _nl_select_era_entry):
1187         Add internal_function to definitions.  Take an additional argument
1188         giving the `struct locale_data *' to use.
1189         * locale/lc-time.c (_get_alt_digit, _nl_get_walt_digit,
1190         _nl_parse_alt_digit): Moved to ...
1191         * time/alt_digit.c: ... here, new file.
1192         * time/lc-time-cleanup.c: New file.
1193         * locale/lc-time.c (_nl_postload_time, free_mem): Functions removed.
1194         * locale/localeinfo.h (_nl_postload_time): Remove decl.
1195         (_nl_cleanup_time): Declare it.
1196         (_nl_get_era_entry, _nl_select_era_entry): Update decls.
1197         (_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit): Likewise.
1198         * time/Makefile (aux): New variable: era, alt_digit, lc-time-cleanup.
1199         * time/strftime.c: Pass locale data to helper functions.
1200         * time/strptime.c: Likewise.
1201
1202         * locale/localeinfo.h (struct locale_data): New member `private'
1203         * locale/loadlocale.c (_nl_intern_locale_data): Initialize it.
1204         (_nl_unload_locale): Call LOCALE->private.cleanup if it is set.
1205         * locale/C-collate.c: Update initializer.
1206         * locale/C-identification.c: Likewise.
1207         * locale/C-measurement.c: Likewise.
1208         * locale/C-telephone.c: Likewise.
1209         * locale/C-address.c: Likewise.
1210         * locale/C-name.c: Likewise.
1211         * locale/C-paper.c: Likewise.
1212         * locale/C-time.c: Likewise.
1213         * locale/C-numeric.c: Likewise.
1214         * locale/C-monetary.c: Likewise.
1215         * locale/C-messages.c : Likewise.
1216         * locale/C-ctype.c: Likewise.
1217
1218         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL] (_NL_CURRENT_WORD):
1219         Redefine this too.
1220
1221 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1222
1223         * sysdeps/generic/ldsodefs.h (__rtld_global_attribute__): Define.
1224         (_rtld_global): Use it.
1225
1226         * sysdeps/gnu/Dist: Remove errlist-compat.c.
1227         * sysdeps/gnu/Makefile (errlist-compat.c): Build this file in the
1228         object directory.  Pass all Versions files to the awk script.
1229         * sysdeps/gnu/errlist-compat.c: Removed.
1230         * sysdeps/gnu/errlist.awk: Use #errlist-compat comments from the
1231         first Versions file in the search path which has them.
1232         Allow multiple errlist symbol versions to have the same count of
1233         errors.
1234         * sysdeps/gnu/errlist-compat.awk: Include <errlist-compat.c> instead
1235         of "errlist-compat.c".
1236         * sysdeps/gnu/errlist.c: Regenerated.
1237         * sysdeps/unix/sysv/linux/mips/Versions (libc): Add #errlist-compat
1238         comments at GLIBC_2.0, GLIBC_2.1 and GLIBC_2.3.
1239         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
1240         (librt): Add aio_cancel and aio_cancel64 as GLIBC_2.3.
1241         * sysdeps/unix/sysv/linux/hppa/Versions: Likewise.
1242         * sysdeps/unix/sysv/linux/sparc/Versions: New file.
1243         * sysdeps/unix/sysv/linux/alpha/bits/errno.h: New file.
1244         * sysdeps/unix/sysv/linux/hppa/bits/errno.h (ECANCELED): Define to
1245         ECANCELLED if not defined by kernel headers.
1246         * sysdeps/unix/sysv/linux/bits/errno.h: Don't redefine ECANCELED if
1247         already defined by kernel headers.
1248         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: New file.
1249         * sysdeps/pthread/aio_cancel.c: Don't include aio.h and its
1250         aio_cancel64 renaming hack nor provide weak_alias if aio_cancel
1251         is a macro.
1252         * Versions.def (GLIBC_2.3) [librt]: Add.
1253
1254         * sysdeps/unix/sysv/linux/alpha/pipe.S: New file.
1255
1256 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1257
1258         * include/libc-symbols.h [!__ASSEMBLER__] (declare_symbol_1): Add
1259         missing comma to .type directive.
1260
1261 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1262
1263         * sysdeps/ia64/elf/configure.in (PI_STATIC_AND_HIDDEN): Define
1264         unconditionally.
1265         * sysdeps/alpha/elf/configure.in (libc_cv_alpha_hidden_gprel): New
1266         check.
1267         (PI_STATIC_AND_HIDDEN): Define if check succeeded.
1268
1269 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1270
1271         * locale/loadarchive.c (_nl_load_locale_from_archive): Add fd >= 0
1272         check to close_and_out close.  Replace return NULL statements where
1273         fd might be >= 0 with goto close_and_out.  Close the file descriptor
1274         when it is no longer needed.
1275
1276 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1277
1278         * sysdeps/s390/s390-64/dl-machine.h: Avoid unescaped newlines in
1279         string constants.
1280         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1281         * sysdeps/arm/dl-machine.h: Likewise.
1282         * sysdeps/cris/dl-machine.h: Likewise.
1283         * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
1284         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
1285
1286 2002-08-28  Roland McGrath  <roland@redhat.com>
1287
1288         * Makeconfig (default_cflags): Revert unintended change.
1289
1290 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1291
1292         * version.h (VERSION): Bump to 2.2.91.
1293
1294         * configure.in: Disable TLS support by default for now.
1295
1296         * sysdeps/i386/fpu/libm-test-ulps: Adjust ulp for yn for float.
1297
1298         * sysdeps/generic/strtol.c (strtol): Add some more casts to avoid
1299         warnings.
1300
1301         * stdlib/strtod.c (STRTOF): Correct type in cast of last patch.
1302
1303         * stdlib/fmtmsg.c (fmtmsg): Use correct test for failure of
1304         fprintf/fwprintf calls.
1305
1306 2002-08-28  Roland McGrath  <roland@redhat.com>
1307
1308         * Makeconfig (run-program-prefix): Fix bogus use of $(findstring ...)
1309         to use $(filter ...) instead.  Same bug fixed in aix conditionals.
1310
1311         * locale/setlocale.c: Declare postload functions weak.
1312
1313         * elf/tst-tls1-static.c: New file.
1314         * elf/tst-tls2-static.c: New file.
1315         * elf/Makefile ($(tests-static):%=$(objfpx)%.o): Remove rule.
1316
1317         Make uselocale support static linking.
1318         * locale/xlocale.c: Revert changes putting _nl_global_locale here.
1319         This file again just defines _nl_C_locobj.
1320         (_nl_C_locobj): Use a categories.def iterator in the initializer.
1321         * locale/global-locale.c: New file.  Define _nl_global_locale here,
1322         using all weak references in the initializer.
1323         * locale/Makefile (aux): Add global-locale.
1324         * locale/localeinfo.h (_nl_global_locale, _NL_CURRENT_LOCALE): Make
1325         these unconditional, along with the tsd decl.
1326         [!SHARED && HAVE___THREAD && HAVE_WEAK_SYMBOLS] (NL_CURRENT_INDIRECT):
1327         Define it under these conditions.
1328         [NL_CURRENT_INDIRECT]: Test this instead of [! SHARED].
1329         Don't declare _nl_current.  Declare _nl_current_LC_FOO as
1330         `extern __thread struct locale_data *const *'.
1331         [NL_CURRENT_INDIRECT]
1332         (_NL_CURRENT_DATA, _NL_CURRENT, _NL_CURRENT_WSTR): Add indirection.
1333         [NL_CURRENT_INDIRECT] (_NL_CURRENT_DEFINE): Rewritten.  Define
1334         the thread variable _nl_current_LC_FOO and also a special absolute
1335         symbol _nl_current_LC_FOO_used.
1336         * locale/uselocale.c (__uselocale) [NL_CURRENT_INDIRECT]:
1337         Set each _nl_current_LC_FOO symbol to point into the new locale,
1338         using weak references to test if _nl_current_LC_FOO_used was linked in.
1339         * locale/setlocale.c [! SHARED]: Replace this conditional ...
1340         [NL_CURRENT_INDIRECT]: ... with this one.
1341         (_nl_current, _nl_C): Variables removed.
1342         [NL_CURRENT_INDIRECT] (_nl_current_used): New variable, table of
1343         weak references to _nl_current_LC_FOO_used.
1344         [NL_CURRENT_INDIRECT] (CATEGORY_USED): Define using that table.
1345         (free_category): New function, broken out of ...
1346         (free_mem): ... here.  Call that.
1347         (free_mem) [NL_CURRENT_INDIRECT]: Use a categories.def iterator
1348         instead of a loop.
1349
1350         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Don't check for
1351         PT_LOAD program headers and don't try to relocate PT_TLS's p_vaddr;
1352         it is already absolute.
1353
1354         * elf/Makefile (tests): List tst-tls1 and tst-tls2 unconditionally.
1355         [$(build-static) = yes] (tests): Add tst-tls1-static, tst-tls2-static.
1356         [$(build-static) = yes] (tests-static): New variable.
1357         ($(tests-static):%=$(objfpx)%.o)): New static pattern rule.
1358
1359 2002-08-26  Christoph Hellwig  <hch@lst.de>
1360
1361         * sysdeps/unix/sysv/linux/sys/personality.h: Remark origin, fix
1362         formating braindamage, add missing PER_HPUX and PER_OSF1 values.
1363
1364 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1365
1366         * sysdeps/x86_64/Dist: Add _mcount.S and bits/link.h.
1367
1368         * sysdeps/s390/Dist: Add bits/link.h.
1369
1370         * sysdeps/sh/Dist: New file.
1371
1372         * sysdeps/ia64/Dist: Add ia64libgcc.S.
1373
1374         * sysdeps/wordsize-32/Dist: New file.
1375
1376         * sysdeps/unix/sysv/linux/alpha/Dist: Add dl-brk.S.
1377         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
1378         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
1379
1380         * sysdeps/unix/sysv/linux/Dist: Add dl-brk.c, dl-sbrk.c, and
1381         sys/personality.h.
1382
1383         * sysdeps/unix/Dist: Add i386/dl-brk.S, mips/dl-brk.S, and
1384         sparc/dl-brk.S.
1385
1386         * sysdeps/unix/bsd/Dist: Add vax/dl-brk.S.
1387
1388         * sysdeps/unix/bsd/sun/Dist: New file.
1389
1390         * sysdeps/unix/bsd/osf/Dist: New file.
1391
1392         * sysdeps/unix/bsd/hp/Dist: New file.
1393
1394         * sysdeps/unix/arm/Dist: New file.
1395
1396         * sysdeps/powerpc/Dist: Add divdi3.c and libgcc-compat.S.
1397
1398         * sysdeps/mach/hurd/Dist: Add set-init.c.
1399
1400         * sysdeps/i386/Dist: Add bits/link.h.
1401
1402         * sysdeps/gnu/Dist: Add errlist-compat.c errlist-compat.awk.
1403
1404         * sysdeps/generic/Dist: Add dl-brk.c and dl-sbrk.c.
1405
1406         * locale/Makefile (distribute): Add hashval.h.
1407
1408         * iconvdata/Makefile (distribute): Add tcvn5712-1.c and armscii-8.c.
1409
1410         * sysdeps/unix/sysv/linux/Dist: Remove errlist.h.
1411
1412         * misc/sys/cdefs.h: Define __BEGIN_NAMESPACE_STD, __END_NAMESPACE_STD,
1413         __USING_NAMESPACE_STD, __BEGIN_NAMESPACE_C99, __END_NAMESPACE_C99, and
1414         __USING_NAMESPACE_C99 depending on _GLIBCPP_USE_NAMESPACES.
1415         * ctype/ctype.h: Prepare headers for use in ISO C++ compliant
1416         implementations.
1417         * libio/stdio.h: Likewise.
1418         * locale/locale.h: Likewise.
1419         * math/math.h: Likewise.
1420         * math/bits/mathcalls.h: Likewise.
1421         * setjmp/setjmp.h: Likewise.
1422         * signal/signal.h: Likewise.
1423         * stdlib/stdlib.h: Likewise.
1424         * string/string.h: Likewise.
1425         * time/time.h: Likewise.
1426         * wcsmbs/wchar.h: Likewise.
1427         * wctype/wctype.h: Likewise.
1428
1429 2002-08-28  Roland McGrath  <roland@redhat.com>
1430
1431         * locale/tst-C-locale.c (run_test): Remove __ from function names.
1432
1433 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1434             Roland McGrath <roland@redhat.com>
1435
1436         * locale/hashval.h (compute_hashval): Use prototype defn.
1437         (hashval_t): New macro, defined to unsigned long int
1438         if not already defined.
1439         (compute_hashval): Return hashval_t instead of unsigned long int.
1440         * locale/loadarchive.c (hashval_t): New macro.
1441         * locale/programs/locarchive.c: Include hashval.h directly instead
1442         of simple-hash.h.
1443         (compute_hashval, hashval_t): Define these macros first.
1444         (insert_name): Use archive_hashval instead of compute_hashval.
1445         (add_locale, delete_locales_from_archive): Likewise.
1446
1447 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1448
1449         * locale/programs/locarchive.c (insert_name): Suppress warnings about
1450         hash collisions if be_quiet.
1451
1452 2002-08-27  Roland McGrath  <roland@redhat.com>
1453
1454         * locale/locale.h (__newlocale, __duplocale, __freelocale,
1455         __uselocale): Don't declare these any more.
1456         * include/locale.h (__uselocale): Declare here instead, using __typeof.
1457
1458         * sysdeps/unix/readdir.c: If getdents fails with ENOENT, restore errno
1459         and treat it as an EOF return.
1460         * sysdeps/unix/readdir_r.c: Likewise.
1461
1462         * sysdeps/gnu/errlist-compat.awk: Include <bits/wordsize.h> in output.
1463         From Alexandre Oliva <aoliva@redhat.com>.
1464         * sysdeps/gnu/errlist-compat.c: Regenerated.
1465
1466 2002-08-27  Brian Youmans  <3diff@gnu.org>
1467
1468         * sysdeps/ieee754/flt-32/e_asinf.c: Modified copying permission
1469         wording at request of copyright holder Stephen Moshier.
1470         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
1471         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
1472         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
1473         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
1474         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
1475         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
1476         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
1477         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
1478         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
1479         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
1480         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
1481         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
1482         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
1483         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
1484
1485 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1486
1487         * ctype/ctype.h (isascii_l, toascii_l): Define to __*_l counterparts.
1488         * ctype/ctype-extn.c (isblank_l): Add weak alias.
1489         * sysdeps/generic/strtol_l.c (strtol_l): Likewise.
1490         * sysdeps/generic/strtoll_l.c (strtoll_l): Likewise.
1491         * sysdeps/generic/strtoul_l.c (strtoul_l): Likewise.
1492         * sysdeps/generic/strtoull_l.c (strtoull_l): Likewise.
1493         * wctype/iswctype_l.c (iswctype_l): Likewise.
1494
1495 2002-08-27  Roland McGrath  <roland@redhat.com>
1496
1497         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: No libc_hidden_def.
1498
1499         * ctype/ctype.h (__exctype_l): Don't declare __ name.
1500         * stdlib/stdlib.h: Don't declare __*_l names.
1501         * include/stdlib.h: Declare them here instead.
1502         * include/string.h: Don't declare __*_l names.
1503         * string/string.h: Declare them here instead.
1504         * time/time.h: Don't declare __*_l names.
1505         * include/time.h: Declare them here instead.
1506         * wcsmbs/wchar.h: Don't declare __*_l names.
1507         * include/wchar.h: Declare them here instead.
1508         * wctype/wctype.h: Declare iswalnum_l, not __iswalnum_l.
1509         Don't declare __*_l names.
1510         * include/wctype.h: Declare them here instead.
1511         * stdlib/monetary.h: Declare strfmon_l, not __strfmon_l.
1512         * stdlib/strfmon_l.c (strfmon_l): Define as weak alias.
1513         * locale/langinfo.h: Don't declare __nl_langinfo_l.
1514         * include/langinfo.h: Declare it here with __typeof.
1515
1516         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strptime_l
1517         instead, taking an extra __locale_t argument.
1518         * time/Makefile (routines): Add strptime_l.
1519         * time/time.h (__strptime_l, strptime_l): Declare them.
1520         * time/strptime_l.c: New file.
1521
1522         * time/time.h (__strftime_l, strftime_l): Declare them.
1523         * wcsmbs/wchar.h (__wcsftime_l, wcsftime_l): Declare them.
1524         * time/strftime_l.c: New file.
1525         * time/wcsftime_l.c: New file.
1526         * time/Makefile (routines): Add strftime_l, wcsftime_l.
1527         * time/Versions (libc: GLIBC_2.3): Add __strftime_l, __wcsftime_l,
1528         strftime_l, wcsftime_l.
1529         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strftime_l
1530         or __wcsftime_l instead, taking an extra __locale_t argument.
1531
1532         * locale/Versions (libc: GLIBC_PRIVATE): Move __uselocale to ...
1533         (libc: GLIBC_2.3): ... here.
1534
1535 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
1536
1537         * stdio-common/Makefile: Fix typo in stdio_lim.h installation rule.
1538
1539         * Makefile (distribute): Add LICENSES.
1540
1541         * sysdeps/unix/sysv/linux/x86_64/Dist: Add ucontext_i.h and
1542         sys/debugreg.h.
1543
1544         * sysdeps/unix/sysv/linux/s390/Dist: Add new/route.h.
1545
1546         * sysdeps/unix/sysv/linux/ia64/Dist: Add dl-brk.S and sys/user.h.
1547
1548         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/user.h.
1549
1550         * sysdeps/unix/sysv/linux/Dist: Add readahead.c.
1551
1552         * sysdeps/mach/hurd/alpha/Dist: New file.
1553
1554         * sysdeps/arm/Dist: Add bits/link.h.
1555
1556         * sunrpc/Makefile: Distribute thrsvc.
1557
1558         * stdio-common/Makefile: Remove more left-overs from old stdio.
1559
1560         * include/linewrap.h: Removed.
1561
1562         * libio/bug-mmap-fflush.c: Rewrite to not touch source directory.
1563
1564         * intl/Makefile (distribute): Add plural-eval.c.
1565
1566 2002-08-27  Roland McGrath  <roland@redhat.com>
1567
1568         * manual/sysinfo.texi (Mount Information): Correct file name to macro
1569         assocations for _PATH_MNTTAB, MNTTAB, _PATH_MOUNTED, MOUNTED.
1570         Say mtab is in either /var/run or /etc.
1571
1572 2002-08-26  Roland McGrath  <roland@redhat.com>
1573
1574         * manual/errno.texi (Error Codes): Added ECANCELED (118 for Hurd).
1575         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
1576
1577         * sysdeps/gnu/Versions: New file.
1578         * sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.1): Remove
1579         _sys_errlist; sys_errlist; _sys_nerr; sys_nerr; from here.
1580         * sysdeps/gnu/Makefile ($(..)sysdeps/gnu/errlist-compat.c): New target.
1581         ($(objpfx)errlist.d): Depend on $(..)sysdeps/gnu/errlist-compat.c.
1582         * sysdeps/gnu/errlist.awk: Make output define _sys_errlist_internal
1583         and _sys_nerr_internal instead of anything else.  Make it include
1584         "errlist-compat.c" if [!NOT_IN_libc && !ERRLIST_NO_COMPAT].
1585         Make it emit some asm magic if [EMIT_ERR_MAX].
1586         * sysdeps/gnu/errlist.c: Regenerated.
1587         * sysdeps/gnu/errlist-compat.awk: New file.
1588         * sysdeps/gnu/errlist-compat.c: New file (generated).
1589         * sysdeps/mach/hurd/errlist.c (ERRLIST_NO_COMPAT): New macro.
1590         (_sys_errlist_internal): Define this as a macro for _hurd_errlist.
1591         (_sys_nerr_internal): Define this is a macro for _hurd_nerr.
1592         (SYS_ERRLIST, SYS_NERR): Macros removed.
1593         (sys_nerr, _sys_nerr): Remove these weak aliases.
1594         * sysdeps/unix/sysv/linux/errlist.c: File removed.
1595         * sysdeps/unix/sysv/linux/errlist.h: File removed.
1596         * sysdeps/unix/sysv/linux/arm/errlist.c: File removed.
1597
1598         * include/libc-symbols.h (declare_symbol): New macro.
1599         * config.h.in (ASM_TYPE_DIRECTIVE_PREFIX): New #undef.
1600         * configure.in: New check to define it.
1601         * configure: Regenerated.
1602
1603 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
1604
1605         * stdio-common/Makefile (headers): Remove bits/stdio_lim.h.  This
1606         file isn't distributed.  Add special rules to install bits/stdio_lim.h.
1607
1608         * Make-dist: Remove traces of old stdio.
1609         * Makeconfig: Likewise.
1610
1611         * locale/Makefile (localedef-aux): New variable.  Only md5
1612         assigned to it.  These files are not ddistributed in this directory.
1613
1614         * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
1615         * sysdeps/unix/sysv/linux/s390/s390-64/Dist: Remove sys/procfs.h.
1616         * sysdeps/unix/sysv/linux/s390/s390-32/Dist: Likewise.
1617
1618         * sysdeps/unix/sysv/linux/Dist: Remove sys/sendfile.h.
1619
1620         * nss/getXXbyYY_r.c (REENTRANT_NAME): If no service is available
1621         set h_errno to NO_RECOVERY [PR libc/4360].
1622
1623 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
1624
1625         * libio/Makefile (tests): Add bug-fopena+.
1626         * libio/bug-fopena+.c: New file.
1627         * libio/fileops.c (_IO_file_open): Only set file pointer to end of the
1628         file for _IO_IS_APPENDING if file isn't opened for reading, too.
1629
1630         * stdio-common/tst-swprintf.c (main): Add casts to avoid warnings.
1631
1632         * locale/xlocale.c: Fix the last change.  The variable still has
1633         to end in _data.
1634         * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
1635         (__libc_tsd_set): Add _data prefix to variable name.
1636
1637 2002-08-26  Roland McGrath  <roland@redhat.com>
1638
1639         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Replace
1640         macro with inline function.
1641         (sigset_get_old_mask): Likewise.
1642         * sysdeps/posix/sigblock.c (__sigblock): Update callers.
1643         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
1644         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1645         * sysdeps/posix/sigvec.c (__sigvec, sigvec_wrapper_handler): Likewise.
1646         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h
1647         (sigset_set_old_mask, sigset_get_old_mask): Make these macros return
1648         values.
1649         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h: Likewise.
1650         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h: Likewise.
1651
1652 2002-07-06  Bruno Haible  <bruno@clisp.org>
1653
1654         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask,
1655         sigset_get_old_mask): Make it work with larger sigset_t.
1656         * sysdeps/posix/sigblock.c (__sigblock): Use those macros.
1657         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
1658         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1659
1660 2002-08-26  Roland McGrath  <roland@redhat.com>
1661
1662         * time/sys/time.h [__USE_BSD] (lutimes, futimes): Declare them.
1663         * manual/filesys.texi (File Times): Document lutimes and futimes.
1664         * misc/Makefile (routines): Add them.
1665         * misc/Versions (libc: GLIBC_2.3): Likewise.
1666         * sysdeps/generic/lutimes.c: New file.
1667         * sysdeps/generic/futimes.c: New file.
1668         * sysdeps/mach/hurd/lutimes.c: New file.
1669         * sysdeps/mach/hurd/futimes.c: New file.
1670
1671         * manual/filesys.texi (File Times): Add explicit note about null
1672         pointer argument to utimes.
1673
1674 2002-08-26  Roland McGrath  <roland@frob.com>
1675
1676         * sysdeps/mach/hurd/ifreq.h (__if_freereq): Add missing semicolon.
1677         (__ifreq): Add a cast.  Remove an unused variable.
1678
1679         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
1680         _HURD_THREADVAR_LOCALE.
1681
1682 2002-08-26  Jakub Jelinek  <jakub@redhat.com>
1683
1684         * posix/regexec.c (re_search_stub): Return correct match length
1685         if start != 0.
1686         * posix/bug-regex10.c: New test.
1687         * posix/Makefile (tests): Add bug-regex10.
1688
1689 2002-08-26  Brian Youmans  <3diff@gnu.org>
1690
1691         * COPYING.LIB: Replaced with fresh copy from
1692         ftp://ftp.gnu.org/gnu/Licenses/COPYING.LIB-2.1;
1693         suggested copying permission notice now says version 2.1 instead
1694         of version 2.
1695
1696         * crypt/crypt.c: Changed copying permission notice to Lesser GPL
1697         from Library GPL.
1698         * crypt/crypt_util.c: Likewise.
1699         * crypt/ufc.c: Likewise.
1700         * elf/dl-conflict.c: Likewise.
1701         * elf/dl-iteratephdr.c: Likewise.
1702         * iconv/iconvconfig.h: Likewise.
1703         * malloc/arena.c: Likewise.
1704         * malloc/hooks.c: Likewise.
1705         * malloc/malloc.c: Likewise.
1706         * posix/glob/Makefile.ami: Likewise.
1707         * posix/glob/Makefile.in: Likewise.
1708         * stdlib/gmp-impl.h: Likewise.
1709         * stdlib/gmp.h: Likewise.
1710         * sysdeps/generic/dl-iteratephdr-static.c: Likewise.
1711         * sysdeps/generic/strnlen.c: Likewise.
1712         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
1713         * sysdeps/mach/hurd/recvmsg.c: Likewise.
1714         * sysdeps/mach/hurd/sendmsg.c: Likewise.
1715         * sysdeps/mach/hurd/spawni.c: Likewise.
1716         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
1717         * sysdeps/mach/powerpc/sysdep.h: Likewise.
1718         * sysdeps/mach/powerpc/thread_state.h: Likewise.
1719         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
1720         * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: Likewise.
1721         * sysdeps/x86_64/gmp-mparam.h: Likewise.
1722
1723         * sysdeps/ieee754/dbl-64/MathLib.h: Corrected version number in
1724         Lesser GPL copying permission notice from 2 to 2.1.
1725         * sysdeps/ieee754/dbl-64/asincos.tbl: Likewise.
1726         * sysdeps/ieee754/dbl-64/atnat.h: Likewise.
1727         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
1728         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
1729         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
1730         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
1731         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
1732         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
1733         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
1734         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
1735         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
1736         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
1737         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
1738         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
1739         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
1740         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
1741         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
1742         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
1743         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
1744         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
1745         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
1746         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
1747         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
1748         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
1749         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
1750         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
1751         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
1752         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
1753         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
1754         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
1755         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
1756         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
1757         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
1758         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
1759         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
1760         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
1761         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1762         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
1763         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
1764         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
1765         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
1766         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
1767         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
1768         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
1769         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
1770         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
1771         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
1772         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
1773         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
1774         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
1775         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
1776         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
1777         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
1778         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
1779         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
1780
1781         * sysdeps/ieee754/flt-32/e_asinf.c: Added copyright notice for Stephen
1782         Moshier and Lesser GPL copying permission notice, per license from
1783         Moshier.
1784         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
1785         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
1786         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
1787         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
1788         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
1789         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
1790         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
1791         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
1792         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
1793         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
1794         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
1795         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
1796         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
1797         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
1798
1799         * sysdeps/ieee754/ldbl-128/e_j0l.c: Added Lesser GPL copying permission
1800         notice, per license from copyright holder Stephen Moshier.
1801         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
1802         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
1803         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
1804         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
1805         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
1806         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
1807         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
1808         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
1809         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
1810
1811 2002-08-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1812
1813         * sysdeps/sh/Makefile (sysdeps_routines): Add divdi3 in csu dir.
1814         (shared-only-routines): Likewise.
1815
1816 2002-08-26  Roland McGrath  <roland@redhat.com>
1817
1818         * locale/programs/ld-ctype.c (ctype_read): When given a repertoire
1819         name of "", store a null pointer instead.
1820
1821         * configure.in (elf): Set to yes for freebsd*, netbsd*.
1822         * configure: Regenerated.
1823
1824         * locale/xlocale.c [! (USE_TLS && HAVE___THREAD)] (__libc_tsd_LOCALE):
1825         Initialize this instead of __libc_tsd_LOCALE_data.
1826
1827         * sysdeps/unix/grantpt.c (pts_name): Convert ENOTTY return from
1828         ptsname_r to EINVAL.
1829
1830         * sysdeps/generic/ptsname.c (__ptsname_r): Return ENOSYS instead of 0.
1831
1832         * rt/Makefile: Revert last change, it was inappropriate to presume aio
1833         implementations depend on pthreads.
1834         * rt/tst-aio.c (do_test): Exit happy if first failure is ENOSYS.
1835         * rt/tst-aio64.c (do_test): Likewise.
1836         * rt/tst-aio2.c (do_test): Likewise.
1837         * rt/tst-aio3.c (do_test): Likewise.
1838         * rt/tst-aio4.c (do_test): Likewise.
1839         * rt/tst-aio5.c (do_test): Likewise.
1840         * rt/tst-aio6.c (do_test): Likewise.
1841         * rt/tst-aio7.c (do_test): Likewise.
1842
1843         * sysdeps/generic/bits/libc-lock.h (__libc_setspecific): Use a cast to
1844         void so as to avoid compiler warnings.
1845
1846         * libio/oldstdfiles.c [! _IO_MTSAFE_IO] (DEF_STDFILE): Don't define
1847         _IO_wide_data_FD, which is never used here.
1848
1849         * libio/iofread.c
1850         [! _IO_MTSAFE_IO] (fread_unlocked): Add libc_hidden_ver defn.
1851         * libio/iofputs.c [! _IO_MTSAFE_IO] (fputs_unlocked): Likewise.
1852         * libio/iofgets.c [! _IO_MTSAFE_IO] (fgets_unlocked): Likewise.
1853
1854         * include/resolv.h [! _LIBC_REENTRANT] (_res): #undef it before decl.
1855         * include/netdb.h [! _LIBC_REENTRANT] (h_errno): Declare normal extern.
1856
1857         * misc/syslog.c (openlog): Conditionalize locking on [_LIBC_REENTRANT].
1858         (closelog): Likewise.
1859
1860 2002-07-06  Bruno Haible  <bruno@clisp.org>
1861
1862         * sysdeps/alpha/fpu/fpu_control.h: Comment fix.
1863
1864         * sysdeps/unix/sysv/linux/alpha/pipe.S: Moved to ...
1865         * sysdeps/unix/alpha/pipe.S: ... here.
1866         * sysdeps/unix/bsd/osf/alpha/pipe.S: File removed.
1867
1868         * sysdeps/unix/i386/brk.S: Rename local label to '.Lhere' in ELF.
1869
1870         * sysdeps/unix/i386/brk.S: Add PSEUDO_END invocation.
1871         * sysdeps/unix/i386/fork.S: Likewise.
1872         * sysdeps/unix/i386/pipe.S: Likewise.
1873         * sysdeps/unix/i386/wait.S: Likewise.
1874
1875         * sysdeps/unix/fork.S: Fix PSEUDO_END argument.
1876         * sysdeps/unix/arm/fork.S: Likewise.
1877
1878         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Swap DO_CALL
1879         arguments.
1880         (DO_CALL): Swap argument order.
1881         * sysdeps/unix/sysv/linux/hppa/sysdep.h (PSEUDO): Swap DO_CALL
1882         arguments.
1883         (DO_CALL): Swap argument order.
1884         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Swap DO_CALL
1885         arguments.
1886         (DO_CALL): Swap argument order.
1887         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO): Swap DO_CALL
1888         arguments.
1889         (DO_CALL): Swap argument order.
1890         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO): Swap DO_CALL
1891         arguments.
1892         (DO_CALL): Swap argument order.
1893         * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Swap DO_CALL
1894         arguments.
1895         (DO_CALL): Swap argument order.
1896         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Swap DO_CALL
1897         arguments.
1898         (DO_CALL): Swap argument order.
1899
1900         * sysdeps/i386/sysdep.h (PSEUDO): Fix syntax error.
1901         (L): Define right for ELF.
1902         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Remove definition.
1903         Now defined in sysdeps/i386/sysdep.h.
1904
1905         * sysdeps/posix/readv.c: Ansify function definition.
1906         * sysdeps/posix/writev.c: Likewise.
1907
1908         * stdio-common/tst-fseek.c (main): Don't assume that off_t and size_t
1909         have the same size. Avoid direct cast from size_t to off_t.
1910
1911         * login/tst-utmp.c (simulate_login): Don't leave garbage after the
1912         nul byte in entry[n].ut_user.
1913         (simulate_logout): Likewise.
1914
1915         * login/programs/utmpdump.c (print_entry): Test _HAVE_UT_TYPE,
1916         _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST, instead of assuming the
1917         existence of corresponding members of 'struct utmp'.
1918         * login/tst-utmp.c: Trivialize the test if testing 'struct utmp' and
1919         !_HAVE_UT_TYPE.
1920
1921         * sysdeps/unix/opendir.c (__opendir): If st_blksize is 0 or too small,
1922         allocate a buffer of at least BUFSIZ bytes, not just of
1923         sizeof (struct dirent).
1924
1925         * sysdeps/generic/glob.c: Include <limits.h>.
1926         (NAME_MAX): Define a fallback.
1927         (glob_in_dir): Allocate enough room for a 'struct dirent64' on the
1928         stack.
1929         * posix/tst-dir.c: Include <stddef.h>, for offsetof.
1930         (main): Allocate enough room for a 'struct dirent64' on the stack.
1931         * posix/tst-gnuglob.c (my_DIR): Allocate enough room for a
1932         'struct dirent'.
1933
1934         * sysdeps/unix/sysv/linux/init-first.c: Don't include
1935         kernel-features.h.
1936
1937         * inet/htontest.c: Include <sys/types.h>.
1938
1939         * sysdeps/generic/sys/sysinfo.h: Surround with __{BEGIN,END}_DECLS.
1940
1941         * include/sys/sysctl.h: Comment fix.
1942
1943         * elf/rtld.c (_rtld_global) [! _LIBC_REENTRANT]: Don't initialize
1944         _dl_load_lock.
1945         * libio/fileno.c (fileno_unlocked): Define regardless of _IO_MTSAFE_IO.
1946
1947         * sysdeps/unix/bsd/bsd4.4/syscalls.list (__sigaltstack): New alias.
1948
1949         * sysdeps/unix/inet/syscalls.list (__connect_internal): New alias.
1950         (__getpeername): New alias.
1951         (__getsockname): New alias.
1952         (__socket): New alias.
1953
1954         * sysdeps/unix/common/syscalls.list (getpgid): Remove.
1955
1956         * sysdeps/unix/syscalls.list (__chown_internal): New alias.
1957         (__fcntl_internal): New alias.
1958         (__profil): New alias.
1959
1960 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
1961
1962         * nscd/hstcache.c (cache_addhst): Add new parameter saying whether
1963         entry was for getaddr* lookup or not.  Add only matching cache
1964         entry.  Change all callers [PR libc/4317].
1965
1966         * libio/wfileops.c (_IO_wfile_seekoff): Set fp->_offset after
1967         finding the read position [PR libc/4265].
1968         * libio/Makefile (tests): Add bug-rewind2.
1969         * libio/bug-rewind2.c: New file.
1970
1971         * libio/bug-rewind.c: Fix creation of temp file.
1972
1973 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
1974
1975         * nss/getXXbyYY_r.c (REENTRANT_NAME): Return ENOENT if status is
1976         neither SUCCESS nor TRYAGAIN [PR libc/4259].
1977         * nss/nss_files/files-XXX.c (internal_getent): Don't set *errnop
1978         to ENOENT if no entry is found.
1979         * nis/nss_compat/compat-grp.c: Don't set errno in case of lookup
1980         failure.
1981         * nis/nss_compat/compat-initgroups.c: Likewise.
1982         * nis/nss_compat/compat-pwd.c: Likewise.
1983         * nis/nss_compat/compat-spwd.c: Likewise.
1984         * nis/nss_nis/nis-alias.c: Likewise.
1985         * nis/nss_nis/nis-ethers.c: Likewise.
1986         * nis/nss_nis/nis-grp.c: Likewise.
1987         * nis/nss_nis/nis-hosts.c: Likewise.
1988         * nis/nss_nis/nis-initgroups.c: Likewise.
1989         * nis/nss_nis/nis-netgrp.c: Likewise.
1990         * nis/nss_nis/nis-network.c: Likewise.
1991         * nis/nss_nis/nis-proto.c: Likewise.
1992         * nis/nss_nis/nis-publickey.c: Likewise.
1993         * nis/nss_nis/nis-pwd.c: Likewise.
1994         * nis/nss_nis/nis-rpc.c: Likewise.
1995         * nis/nss_nis/nis-service.c: Likewise.
1996         * nis/nss_nis/nis-spwd.c: Likewise.
1997         * resolv/nss_dns/dns-host.c: Likewise.
1998         * resolv/nss_dns/dns-network.c: Likewise.
1999         * nis/nss_nisplus/nisplus-alias.c: Save errno around NIS calls.
2000         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
2001         * nis/nss_nisplus/nisplus-grp.c: Likewise.
2002         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
2003         * nis/nss_nisplus/nisplus-network.c: Likewise.
2004         * nis/nss_nisplus/nisplus-proto.c: Likewise.
2005         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
2006         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
2007         * nis/nss_nisplus/nisplus-service.c: Likewise.
2008         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
2009         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Preserve errno value.
2010         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
2011         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Likewise.
2012         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
2013
2014         * sysdeps/unix/sysv/linux/i386/sigaction.c: Avoid warnings by
2015         declaring __restore and __restore_rt as hidden (if possible).
2016
2017 2002-08-25  Roland McGrath  <roland@redhat.com>
2018
2019         * manual/llio.texi (Access Modes): Fix typos in O_READ/O_WRITE defns.
2020
2021         * sysdeps/generic/utmp_file.c (LOCK_FILE): Check for error from fcntl.
2022         (getutent_r_file, internal_getut_r): Updated all callers.
2023         (getutline_r_file, pututline_file, updwtmp_file): Likewise.
2024
2025 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2026
2027         * locale/programs/locale.c: Don't print aliases for non-existing
2028         locales for 'locale -a'.
2029         Patch by Noah Levitt <nlevitt@columbia.edu> [PR libc/4166].
2030
2031 2002-07-19  H.J. Lu  <hjl@gnu.org>
2032
2033         * sysdeps/unix/sysv/linux/mips/bits/msq.h: New file.
2034
2035 2002-07-16  H.J. Lu  <hjl@gnu.org>
2036
2037         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2038         sys/personality.h.
2039         * sysdeps/unix/sysv/linux/sys/personality.h: New file.
2040
2041 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2042
2043         * elf/tst-tlsmod1.c (in_dso): Make sure the TLS variable access is
2044         not moved ahead of the fputs call.
2045         * elf/tst-tlsmod2.c (in_dso): Likewise.
2046         * elf/tst-tlsmod3.c (in_dso2): Likewise.
2047         * elf/tst-tlsmod4.c (in_dso): Likewise.
2048
2049 2002-08-25  Andreas Schwab  <schwab@suse.de>
2050
2051         * elf/dl-reloc.c (_dl_reloc_bad_type): Nul-terminate message.
2052
2053 2002-08-25  Roland McGrath  <roland@redhat.com>
2054
2055         * sysdeps/generic/utmp_file.c (UNLOCK_FILE): Clear alarm before
2056         resetting handler, to avoid the possibility of a spurious SIGALRM
2057         delivered to the user's handler.
2058         Reported by Amit D. Chaudhary <amitc@brocade.com>,
2059
2060         * misc/Makefile (CFLAGS-init-misc.c): Variable removed.  It served to
2061         set -fkeep-inline-functions, which is not needed for the current file.
2062
2063         * sysdeps/generic/ldsodefs.h: Add attribute_hidden to *_internal decls.
2064         (_dl_setup_hash): Add attribute_hidden.
2065         (_dl_sysdep_start, _dl_sysdep_start_cleanup): Likewise.
2066         (_dl_sysdep_read_whole_file, _dl_dprintf): Likewise.
2067         (_dl_new_object, _dl_map_object_deps): Likewise.
2068         (_dl_map_object_deps_internal): Remove decl.
2069         * elf/rtld.c (__mempcpy, _exit): Redeclare locally as hidden.
2070
2071         * sysdeps/i386/dl-machine.h [PI_STATIC_AND_HIDDEN
2072         && HAVE_VISIBILITY_ATTRIBUTE && HAVE_HIDDEN
2073         && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]
2074         (elf_machine_dynamic, elf_machine_load_address): Rewritten without asm,
2075         instead relying on the compiler to produce only GOTOFF variable refs.
2076
2077 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2078
2079         * elf/dl-load.c: Fix typo in comment.  Add a few more __builtin_expect.
2080
2081         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Define as static
2082         inline to avoid defining it in every file which includes this header.
2083
2084         * elf/rtld.c: Also test for HAVE_VISIBILITY_ATTRIBUTE before
2085         defining DONT_USE_BOOTSTRAP_MAP.
2086
2087         * libio/tst-freopen.c (main): Use correct formats for __LINE__.
2088         * libio/tst-mmap-setvbuf.c (main): Likewise.
2089         * libio/tst-widetext.c (main): Likewise.
2090
2091         * libio/tst-mmap-eofsync.c (do_test): Use correct format in error
2092         message.
2093         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
2094         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
2095
2096         * sysdeps/i386/elf/configure.in: Unconditionally define
2097         PI_STATIC_AND_HIDDEN.
2098         * elf/rtld.c (DONT_USE_BOOTSTRAP_MAP): Define only if
2099         PI_STATIC_AND_HIDDEN is defined as well.
2100         * config.h.in: Add PI_STATIC_AND_HIDDEN entry.
2101
2102 2002-08-24  Ulrich Drepper  <drepper@redhat.com>
2103
2104         * sysdeps/ia64/bzero.S: Define __bzero as well.
2105
2106         * locale/programs/charmap.c (charmap_new_char): Don't use
2107         ULONG_MAX as maximum UCS4 value.
2108
2109         * sysdeps/unix/sysv/linux/ia64/sys/user.h: New file.
2110
2111         * sysdeps/generic/strtol.c: We don't need the isascii test in glibc.
2112
2113         * malloc/hooks.c (public_sET_STATe): use size_t as type for i.
2114         * malloc/malloc.c (mALLINFo): Likewise.
2115
2116         * libio/wstrops.c (_IO_wstr_pbackfail): Use WEOF in comparison.
2117
2118         * libio/wfileops.c (_IO_wfile_overflow): Use EOF not WEOF when
2119         examining result of _IO_do_flush call.
2120
2121         * stdio-common/vfprintf.c (vfprintf): Use correct type in va_arg.
2122         Use prec not spec when sizing buffers.
2123
2124         * catgets/open_catalog.c (__open_catalog): Add casts to avoid warnings.
2125         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
2126         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
2127         * stdio-common/vfscanf.c (inchar): Likewise.
2128         * misc/efgcvt_r.c (fcvt_r): Likewise.
2129         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
2130         * elf/readlib.c (process_file): Likewise.
2131         * elf/sprof.c (load_profdata): Likewise.
2132         * sysdeps/ia64/hp-timing.h (HP_TIMING_PRINT): Likewise.
2133         * locale/programs/linereader.c (get_toplvl_escape): Likewise.
2134         * locale/programs/charmap.c (charmap_read): Likewise.
2135         * libio/fileops.c: Likewise.
2136         * libio/fmemopen.c: Likewise.
2137         * stdlib/strtod.c: Likewise.
2138         * elf/dl-load.c: Likewise.
2139         * iconv/iconvconfig.c: Likewise.
2140         * iconv/iconv_prog.c (process_block): Likewise.
2141         * elf/rtld.c (dl_main): Likewise.
2142
2143         * sysdeps/unix/sysv/linux/ia64/Makefile: Define _ASM_IA64_CURRENT_H
2144         macro to calm down the compiler.
2145
2146         * iconv/gconv_cache.c (__gconv_load_cache): Add cast to avoid warning.
2147
2148         * sysdeps/ia64/elf/initfini.c: Don't use newlines embedded in string.
2149
2150         * sysdeps/unix/sysv/linux/i386/sysdep.S: Update comment regarding
2151         placement of errno definition.
2152         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
2153         * sysdeps/unix/sysv/linux/mips/sysdep.S: Likewise.
2154         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
2155         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
2156         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
2157
2158         * resolv/nss_dns/dns-host.c (MAXPACKET): Increase minimum value
2159         from 1024 to 65536, to avoid buffer overrun.
2160
2161 2002-08-16  Paul Eggert  <eggert@twinsun.com>
2162
2163         * resolv/gethnamaddr.c (MAXPACKET): Increase minimum value
2164         from 1024 to 65536, to avoid buffer overrun.
2165         * resolv/res_query.c (MAXPACKET): Likewise.
2166
2167 2002-08-24  Andreas Jaeger  <aj@suse.de>
2168
2169         * sysdeps/unix/sysv/linux/i386/Versions: Remove *xattr syscalls.
2170
2171 2002-08-23  Ulrich Drepper  <drepper@redhat.com>
2172
2173         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Define and initialize
2174         two52 locally.
2175         (log2): Likewise.
2176         * sysdeps/ieee754/dbl-64/upow.h: Remove definition of two52.
2177         Patch by Simon Gee <simong@agile.tv>.
2178
2179         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf):
2180         Prefer reading /proc/stat since it is more uniform across
2181         architectures.
2182
2183         * manual/texinfo.tex: Update to latest official version.
2184
2185         * sysvipc/sys/shm.h: Remove SHMLBA definition.
2186         * sysdeps/generic/bits/shm.h: Define SHMLBA here.
2187         * sysdeps/gnu/bits/shm.h: Likewise.
2188         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2189         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2190         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
2191         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2192         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2193         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2194         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2195         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Define SHMLBA to 2^20
2196         since this is what the kernel says.
2197
2198         * misc/sys/xattr.h: Include <sys/types.h> instead of <stddef.h>
2199         since ssize_t is needed as well.  Replace const with __const.
2200
2201 2002-08-23  Roland McGrath  <roland@redhat.com>
2202
2203         * malloc/hooks.c (__malloc_initialize_hook, __free_hook,
2204         __malloc_hook, __realloc_hook, __memalign_hook,
2205         __after_morecore_hook): Variable definitions moved to ...
2206         * malloc/malloc.c: ... here, so as to be before all references.
2207
2208         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Add a dummy
2209         global variable reference in an unused asm parameter, to ensure the
2210         compiler has set up the GOT register before we use it.
2211
2212         * malloc/hooks.c: Move variable definitions ahead of uses.
2213         * libio/fileops.c: Move versioned_symbol defns ahead of _IO_jump_t
2214         initializers that make reference to variables they define.
2215
2216 2002-08-23  Andreas Jaeger  <aj@suse.de>
2217
2218         * locale/loadarchive.c: Include <stdlib.h> for prototypes of
2219         alloca, free, qsort.
2220
2221         * dlfcn/bug-dlsym1-lib1.c (foo): Add prototype to avoid warning.
2222
2223         * sysdeps/ieee754/flt-32/e_jnf.c: Remove unused variable.
2224         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2225
2226         * misc/sys/xattr.h: New file, contributed by Christoph Hellwig
2227         <hch@lst.de>.
2228         * sysdeps/generic/fgetxattr.c: New file.
2229         * sysdeps/generic/flistxattr.c: New file.
2230         * sysdeps/generic/fremovexattr.c: New file.
2231         * sysdeps/generic/fsetxattr.c: New file.
2232         * sysdeps/generic/getxattr.c: New file.
2233         * sysdeps/generic/listxattr.c: New file.
2234         * sysdeps/generic/lgetxattr.c: New file.
2235         * sysdeps/generic/llistxattr.c: New file.
2236         * sysdeps/generic/lremovexattr.c: New file.
2237         * sysdeps/generic/lsetxattr.c: New file.
2238         * sysdeps/generic/removexattr.c: New file.
2239         * sysdeps/generic/setxattr.c: New file.
2240         * misc/Makefile (headers): Add sys/xattr.h.
2241         (routines): Add *xattr calls.
2242         * misc/Versions: Add *xattr calls with version 2.3.
2243         * sysdeps/unix/sysv/linux/m68k/Versions: Remove *xattr syscalls.
2244         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2245         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2246         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2247         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2248         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2249         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2250         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2251
2252 2002-08-22  Steven Munroe  <sjmunroe@us.ibm.com>
2253
2254         * sysdeps/powerpc/elf/libc-start.c
2255         (__cache_line_size): Declare.
2256         (__aux_init_cache): New function.
2257         (__libc_start_main): Change type of `auxvec' parameter to
2258         `ElfW(auxv_t) *'.  Correct walking of aux vector.  Call
2259         __aux_init_cache.
2260         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
2261         (__cache_line_size): Declare.
2262         (__aux_init_cache): New function.
2263         (DL_PLATFORM_INIT): Define.
2264         * sysdeps/powerpc/memset.S: Define __cache_line_size and use its
2265         value to select the correct stride for dcbz.
2266
2267 2002-08-22  Andreas Jaeger  <aj@suse.de>
2268
2269         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments of
2270         shmat.
2271
2272 2002-08-22  Roland McGrath  <roland@redhat.com>
2273
2274         * locale/loadarchive.c (_nl_load_locale_from_archive): Check max file
2275         position indicated by locrectab against file bounds before rounding to
2276         page size.  In mapping loop, always set TO before breaking out of
2277         contiguous range coalescing loop.
2278
2279         * locale/loadarchive.c (_nl_load_locale_from_archive): Use MAP_PRIVATE
2280         (or MAP_COPY if available) instead of MAP_SHARED.
2281
2282         * scripts/firstversions.awk: When encountering a version newer than
2283         the specified earliest version, be sure to emit the specified earliest
2284         version first if any renaming of an older version to that has been.
2285
2286 2002-08-21  Roland McGrath  <roland@redhat.com>
2287
2288         * configure.in: Make GCC version check require 3.[2-9]* and no others.
2289         * manual/install.texi (Tools for Compilation): Say 3.2 is required.
2290         (Configuring and compiling): Don't mention older GCC versions any more.
2291         * INSTALL: Regenerated.
2292
2293         * manual/install.texi (Configuring and compiling, Installation,
2294         Running make install, Linux): Linux -> GNU/Linux where appropriate.
2295
2296         * elf/rtld.c (_dl_start_final): Move defn before _dl_start so it can
2297         be inlined.  Declare it with always_inline if [DONT_USE_BOOTSTRAP_MAP]
2298         and with noinline otherwise.  Remove hack alloca use to prevent
2299         inlining, we can ask for it explicitly nowadays.
2300
2301         * dlfcn/bug-dlsym1.c: New file.
2302         * dlfcn/bug-dlsym1-lib1.c, dlfcn/bug-dlsym1-lib2.c: New files.
2303         * dlfcn/Makefile (distribute): Add them.
2304         (tests): Add bug-dlsym1 here.
2305         (modules-names): Add bug-dlsym1-lib1 and bug-dlsym1-lib2 here.
2306         ($(objpfx)bug-dlsym1, $(objpfx)bug-dlsym1.out): New targets.
2307         ($(objpfx)bug-dlsym1-lib1.so, $(objpfx)bug-dlsym1-lib2.so): Likewise.
2308
2309 2002-08-21  Ulrich Drepper  <drepper@redhat.com>
2310
2311         * elf/rtld.c (start_time): New global variable.  Moved from _dl_start.
2312         (DONT_USE_BOOTSTRAP_MAP): Define if we can use non-exported symbols
2313         before relocation.
2314         (_dl_start): Don't use local bootstrap_map variable if
2315         DONT_USE_BOOTSTRAP_MAP is defined.  Use GL(dl_rtld_map).  Don't
2316         pass bootstrap_map to _dl_start_final in this case either.  Don't
2317         pass start_time to _dl_start_final ever.
2318         (_dl_start_final): Don't copy bootstrap_map if DONT_USE_BOOTSTRAP_MAP.
2319
2320         * elf/dl-deps.c (_dl_map_object_deps): Revert patch from 2002-05-28.
2321         This cripples the scope lists necessary to search for symbols in
2322         dependencies which are not in the global scope.
2323
2324         * include/setjmp.h (__libc_longjmp): Add declaration.
2325
2326 2002-08-21  Andreas Jaeger  <aj@suse.de>
2327
2328         * sysdeps/x86_64/_mcount.S: Fix assembler.
2329
2330         * sysdeps/unix/sysv/linux/x86_64/Makefile: Generate bits/syscall.h
2331         with biarch support.
2332
2333 2002-08-21  Andreas Jaeger  <aj@suse.de>
2334
2335         * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Fix it.
2336
2337         * sysdeps/x86_64/Makefile (sysdep_routines): Add _mcount.
2338
2339         * sysdeps/x86_64/machine-gmon.h: New file.
2340         * sysdeps/x86_64/_mcount.S: New file.
2341
2342 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
2343
2344         * elf/rtld.c (_dl_start): Pass zero to TLS_INIT_TP.  Set
2345         bootstrap_map.l_tls_tp_initialized to 1 if TLS_INIT_TP was called.
2346         (_dl_start_final): Copy l_tls_tp_initialized to GL(dl_rtld_map).
2347         (dl_main): If HAVE___THREAD is not defined pass l_tls_tp_initialized
2348         to TL_INIT_TP.  Otherwise pass 1.
2349         * include/link.h (struct link_map): Add l_tls_tp_initialized.
2350         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass 0 to TL_INIT_TP.
2351
2352 2002-08-15  Jakub Jelinek  <jakub@redhat.com>
2353
2354         * locale/programs/localedef.c (add_to_readlist): Error about
2355         circular dependencies only if the locale in question hasn't
2356         been finished.
2357         * locale/programs/linereader.c (get_string): Pass LC_CTYPE not
2358         CTYPE_LOCALE to load_locale.
2359         * locale/programs/locfile.c (locfile_read): Don't include
2360         unneeded but available locales in locale_mask.
2361
2362         * locale/programs/locarchive.c (enlarge_archive): If quiet, don't
2363         print any messages about enlarging archive.
2364
2365 2002-08-20  Brian Youmans  <3diff@gnu.org>
2366
2367         * manual/contrib.texi: Removed licenses, added acknowledgements
2368         for contributions by Intel, IBM, Craig Metz.
2369         * LICENSES: New file, contains the text of all non-FSF licenses in the
2370         distribution that require putting the notice in the accompanying
2371         documentation.
2372         * README.template, README: Mention LICENSES.
2373
2374         * sysdeps/mach/hurd/net/if_ppp.h: Replaced CMU license with a
2375         new one modelled on the modern BSD license, per recent letter
2376         of permission from CMU.
2377         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
2378
2379         * sysdeps/ieee754/dbl-64/MathLib.h: Changed the copyright holder
2380         from IBM to FSF, per the recent Software Letter.  Changed the
2381         distribution terms from GPL to LGPL.
2382
2383         * sysdeps/ieee754/dbl-64/asincos.tbl: Added FSF copyright and
2384         copying permission notice (Lesser GPL), per recent IBM Software Letter.
2385         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
2386         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
2387         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
2388         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
2389         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
2390         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
2391         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
2392         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
2393
2394         * sysdeps/ieee754/dbl-64/atnat.h: Changed the copyright holder
2395         from IBM to FSF, per the recent Software Letter.  Corrected the
2396         text of the copying permission notice to say Lesser GPL instead
2397         of GPL in warranty disclaimer paragraph.
2398         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
2399         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
2400         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
2401         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
2402         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
2403         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
2404         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
2405         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
2406         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
2407         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
2408         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
2409         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
2410         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
2411         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
2412         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
2413         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
2414         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
2415         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
2416         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
2417         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
2418         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
2419
2420         * sysdeps/ieee754/dbl-64/branred.c: Corrected the text of the copying
2421         permission notice to say Lesser GPL instead of GPL in warranty
2422         disclaimer paragraph.
2423         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2424         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2425         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2426         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2427         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2428         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2429         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2430         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2431         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2432         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2433         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2434         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2435         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2436         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2437         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2438         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2439         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2440         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2441         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2442         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2443         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2444         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2445         * sysdeps/ieee754/dbl-64/slowpow.c:  Likewise.
2446
2447 2002-08-20  Roland McGrath  <roland@redhat.com>
2448
2449         Fix ABI compatibility with libc compiled with old tools on powerpc.
2450         Changes contributed by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2451         and Jack Howarth <howarth@bromo.med.uc.edu>.
2452         * sysdeps/powerpc/Makefile [$(have-protected) = yes]
2453         (CPPFLAGS-divdi3.c, CPPFLAGS-libgcc-compat.S): New variables,
2454         pass -DHAVE_DOT_HIDDEN for these files.
2455         * sysdeps/powerpc/Versions (libc: GLIBC_2.0): Added __floatdidf,
2456         __floatdisf.
2457         * sysdeps/powerpc/divdi3.c: New file.
2458         * sysdeps/powerpc/libgcc-compat.S: New file, replacement for ...
2459         * sysdeps/powerpc/libgcc-compat.c: ... this, file removed.
2460
2461 2002-08-20  Jakub Jelinek  <jakub@redhat.com>
2462
2463         * locale/loadarchive.c (_nl_load_locale_from_archive): Handle
2464         partially overlapping mappings.  Remove unneeded (char *) casts.
2465         Never allow duplication of ranges in mapped areas.
2466
2467 2002-08-20  Roland McGrath  <roland@redhat.com>
2468
2469         * elf/Makefile ($(objpfx)ld.so): Separate commands in rule so errors
2470         can be detected by make.  Reported by H.J. Lu <hjl@gnu.org>.
2471
2472 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
2473
2474         * include/unistd.h: Don't hide _exit.
2475
2476         * elf/rtld.c (_dl_start): Pass extra argument 1 to TLS_INIT_TP.
2477         (dl_main): Pass extra argument 0 to TLS_INIT_TP.
2478         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass extra
2479         argument 1 to TLS_INIT_TP.
2480         * sysdeps/generic/tls.h (TLS_INIT_TP): Describe new parameter.
2481
2482         * sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit.
2483
2484         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_tls_static_info.
2485         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Move dtv
2486         memory allocation to...
2487         (allocate_dtv): ...here.  New function.
2488         (_dl_allocate_tls): Change to take parameter.  If parameter is non-NULL
2489         call allocate_dtv instead of _dl_allocate_tls_storage.
2490         (_dl_deallocate_tls): New parameter.  Deallocate TCB only if true.
2491         (_dl_get_tls_static_info): New function.
2492         * sysdeps/generic/ldsodefs.h: Adjust prototypes of _dl_allocate_tls
2493         and _dl_deallocate_tls.  Add prototype for _dl_get_tls_static_info.
2494
2495 2002-08-19  Ulrich Drepper  <drepper@redhat.com>
2496
2497         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return
2498         immediately if result == NULL.
2499
2500 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
2501
2502         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
2503
2504 2002-08-18  Roland McGrath  <roland@frob.com>
2505
2506         * sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split
2507         instead of __file_name_split.
2508         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
2509
2510         * sysdeps/mach/hurd/dl-sysdep.c
2511         [HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
2512         [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
2513
2514 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
2515
2516         * locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
2517         in change before last: MAX -> MIN.
2518
2519 2002-08-15  Roland McGrath  <roland@redhat.com>
2520
2521         * libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF
2522         if seek would go past it.
2523         (mmap_remap_check): If file position is at or past EOF after check,
2524         leave read pointers at EOF and don't seek.
2525
2526         * libio/tst-mmap-offend.c: New file.
2527         * libio/Makefile (tests): Add it.
2528
2529         * locale/loadarchive.c (_nl_load_locale_from_archive): Store strdup of
2530         the name as passed, rather than the name in the archive dictionary.
2531
2532 2002-08-15  Ulrich Drepper  <drepper@redhat.com>
2533
2534         * csu/Makefile: Define elide-routines.os not static-only-routines.
2535
2536         * include/sched.h (__clone): Add varargs at the end.
2537
2538         * elf/rtld.c (_dl_start): Allow TLS_INIT_TP to fail, and stop in that
2539         case.
2540         (TLS_INIT_HELPER): If defined, use it.
2541         * sysdeps/generic/libc-tls.c (TLS_INIT_HELPER): Likewise.
2542
2543 2002-08-15  Roland McGrath  <roland@redhat.com>
2544
2545         * elf/dl-load.c (lose): Remove [!SHARED] conditional from null check
2546         on L->l_prev; it can happen under rtld --verify too.
2547
2548         * locale/loadarchive.c (_nl_load_locale_from_archive): Don't read the
2549         header separately, just map an initial window of 2MB from the file
2550         and remap if that is not large enough to cover the whole header.
2551
2552 2002-08-15  Andreas Jaeger  <aj@suse.de>
2553
2554         * sysdeps/unix/sysv/linux/m68k/Versions: Add *xattr syscalls with
2555         version 2.3.
2556         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2557         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2558         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2559         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2560         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2561         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2562         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2563         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
2564         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
2565         Patch by Andreas Gruenbacher <agruen@suse.de>.
2566
2567         * sysdeps/unix/sysv/linux/syscalls.list: Add *xattr syscalls.
2568
2569 2002-08-14  Roland McGrath  <roland@redhat.com>
2570
2571         * locale/locarchive.h (struct locale_category_data): Give this name to
2572         the type of locale_data_t's elements.
2573         * locale/programs/locarchive.c (cmpcategorysize): New static function.
2574         (add_locale): Use that to sort the categories by size and put all
2575         those that fit into two pages into the LC_ALL block, instead of
2576         hard-coding it to do everything but LC_CTYPE and LC_COLLATE.
2577         (show_archive_content): Detect categories inside LC_ALL block
2578         directly, instead of hard-coding.
2579         (oldlocrecentcmp): Compare just on file locations used.
2580
2581 2002-08-14  Jakub Jelinek  <jakub@redhat.com>
2582
2583         * locale/programs/locarchive.c (struct oldlocrecent): New type.
2584         (oldlocrecentcmp): New function.
2585         (enlarge_archive): Re-add locales in the order they were added
2586         to the archive.
2587         (add_locale): Put all the small locale files together, if the small
2588         locale file block would occupy less pages if page size aligned, align
2589         it.
2590         (show_archive_content): Adjust for locale archives optimized for speed.
2591
2592 2002-08-14  Roland McGrath  <roland@frob.com>
2593
2594         * configure.in: Use "MISSING" as not-found value for MIG.
2595         * sysdeps/mach/configure.in: Fatal if mig not found.
2596         * configure, sysdeps/mach/configure: Regenerated.
2597
2598 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
2599
2600         * locale/loadarchive.c (archfname): Add missing slash.
2601
2602         * sysdeps/generic/strtold.c (__strtold_internal): Add libc_hidden_def.
2603         * wcsmbs/wcstold.c (__wcstold_internal): Add libc_hidden_def.
2604
2605 2002-08-12  Roland McGrath  <roland@redhat.com>
2606
2607         * include/sys/wait.h (__waitpid): Add libc_hidden_proto.
2608         * sysdeps/unix/sysv/sco3.2.4/waitpid.S: Add libc_hidden_def.
2609         * sysdeps/unix/sysv/sysv4/waitpid.c: Add libc_hidden_weak.
2610         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
2611         * sysdeps/unix/sysv/aix/waitpid.c: Likewise.
2612         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
2613         * sysdeps/generic/waitpid.c: Likewise.
2614
2615         * include/net/if.h: New file.  Use libc_hidden_proto
2616         for if_nametoindex and if_indextoname.
2617         * sysdeps/generic/if_index.c: Add libc_hidden_def.
2618         * sysdeps/mach/hurd/if_index.c: Likewise.
2619         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
2620
2621         * include/grp.h (setgroups): Add libc_hidden_proto.
2622         * sysdeps/generic/setgroups.c: Add libc_hidden_def.
2623         * sysdeps/mach/hurd/setgroups.c: Likewise.
2624         * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
2625         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
2626
2627 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
2628
2629         * include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
2630         * sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
2631         * sysdeps/generic/setegid.c (setegid): Likewise.
2632         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
2633         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
2634         * sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
2635         * sysdeps/unix/bsd/setegid.c (setegid): Likewise.
2636         * sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
2637         * sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
2638         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
2639         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
2640         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
2641         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
2642         * sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
2643         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
2644         Remove fallback if __ASSUME_SETRESUID_SYSCALL.
2645
2646         * include/sys/stat.h (__fxstat_internal, __fxstat64_internal,
2647         __lxstat_internal, __lxstat64_internal): Remove.
2648         (__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64):
2649         Add hidden_proto.
2650         * sysdeps/generic/fxstat.c (__fxstat): Add hidden_def.
2651         Remove INTDEF where present, remove #undef at the beginning.
2652         * sysdeps/generic/fxstat64.c (__fxstat64): Likewise.
2653         * sysdeps/generic/lxstat.c (__lxstat): Likewise.
2654         * sysdeps/generic/lxstat64.c (__lxstat64): Likewise.
2655         * sysdeps/generic/xstat.c (__xstat): Likewise.
2656         * sysdeps/generic/xstat64.c (__xstat64): Likewise.
2657         * sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise.
2658         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
2659         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
2660         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
2661         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
2662         * sysdeps/mach/hurd/xstat.c (__xstat): Likewise.
2663         * sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise.
2664         * sysdeps/unix/fxstat.c (__fxstat): Likewise.
2665         * sysdeps/unix/common/lxstat.c (__lxstat): Likewise.
2666         * sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise.
2667         * sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise.
2668         * sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise.
2669         * sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise.
2670         * sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise.
2671         * sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise.
2672         * sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise.
2673         * sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise.
2674         * sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise.
2675         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise.
2676         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise.
2677         * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise.
2678         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
2679         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
2680         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
2681         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
2682         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
2683         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
2684         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise.
2685         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
2686         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
2687         * sysdeps/unix/xstat.c (__xstat): Likewise.
2688
2689         * include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto.
2690         * sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def.
2691         * sysdeps/generic/fstatvfs.c (fstatvfs): Likewise.
2692         * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
2693         * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise.
2694         * sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise.
2695         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise.
2696
2697         * include/unistd.h (tcgetpgrp): Add libc_hidden_proto.
2698         * include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise.
2699         * sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def.
2700         * sysdeps/generic/tcsetattr.c (tcsetattr): Likewise.
2701         * sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise.
2702         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise.
2703         * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise.
2704         * sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed):
2705         Likewise.
2706         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
2707         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
2708         * sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise.
2709         * sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise.
2710         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
2711         * sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise.
2712         * sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise.
2713         * sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise.
2714
2715         * include/string.h (strcoll): Add libc_hidden_proto.
2716         * string/strcoll.c (strcoll): Add libc_hidden_def.
2717
2718         * misc/err.c (vwarn): Fix pasto in libc_hidden_def.
2719
2720 2002-08-11  Philip Blundell  <philb@gnu.org>
2721
2722         * sysdeps/arm/Makefile: New file.
2723
2724 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
2725
2726         * posix/regcomp.c (parse_reg_exp): If '|' is immediately followed
2727         by another '|', end of regex or enclosing ')', clear branch.
2728         * posix/bug-regex9.c: New test.
2729         * posix/Makefile (tests): Add bug-regex9.
2730
2731 2002-08-12  Roland McGrath  <roland@redhat.com>
2732
2733         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop
2734         start count condition, use TOTAL instead of variable that was never
2735         set.  Fix outer loop termination condition to TOTAL >= after update.
2736
2737         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize
2738         dl_tls_static_align and dl_tls_static_nelem.
2739
2740 2002-08-11  Roland McGrath  <roland@redhat.com>
2741
2742         * elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
2743         of the TLS macros, otherwise the compiler might not have initialized
2744         the PIC register yet when we use the PLT via asm.
2745         * elf/tst-tlsmod3.c (in_dso2): Likewise.
2746         * elf/tst-tlsmod2.c (in_dso): Likewise.
2747
2748         * sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!).
2749
2750         * sysdeps/i386/bits/byteswap.h (__bswap_16, __bswap_32, __bswap_64):
2751         Evaluate argument exactly once.  Remove __volatile__ from asm's.
2752
2753         * include/unistd.h: Use libc_hidden_proto for getdomainname
2754         and getlogin_r.
2755         * sysdeps/generic/getdomain.c: Add libc_hidden_def.
2756         * sysdeps/mach/hurd/getdomain.c: Likewise.
2757         * sysdeps/unix/getlogin_r.c: Likewise.
2758         * sysdeps/mach/hurd/getlogin_r.c: Likewise.
2759         * sysdeps/generic/getlogin_r.c: Likewise.
2760
2761         * include/rpc/auth_des.h: Use libc_hidden_proto for rtime.
2762         * sunrpc/rtime.c: Add libc_hidden_def.
2763
2764         * include/string.h: Use libc_hidden_proto for basename.
2765         * string/basename.c [_LIBC]: Add libc_hidden_def.
2766
2767         * sysdeps/unix/sysv/linux/opensock.c (__opensock): socket -> __socket.
2768
2769         * locale/loadarchive.c: munmap -> __munmap throughout.
2770
2771         * include/netdb.h: Use libc_hidden_proto for gai_strerror.
2772         * sysdeps/posix/gai_strerror.c: Add libc_hidden_def.
2773         * sysdeps/generic/gai_strerror.c: Likewise.
2774
2775         * include/sys/errno.h: New file.
2776
2777         * include/signal.h: No libc_hidden_proto for raise,
2778         __libc_current_sigrtmin, __libc_current_sigrtmax.
2779         These need to be overridden by linuxthreads.
2780         * sysdeps/posix/raise.c: Reverted.
2781         * sysdeps/generic/raise.c: Reverted.
2782         * signal/allocrtsig.c: Reverted.
2783
2784         * locale/loadarchive.c (LOCALEDIR): Remove debugging defn.  Oops.
2785
2786 2002-08-10  Roland McGrath  <roland@redhat.com>
2787
2788         * locale/loadarchive.c (_nl_archive_subfreeres): New function.
2789         * locale/localeinfo.h: Declare it.
2790         * locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the
2791         current locale if it's not in the file list.
2792         Call _nl_archive_subfreeres.
2793
2794 2002-08-10  Andreas Jaeger  <aj@suse.de>
2795
2796         * sysdeps/i386/strchr.S: Add comment.
2797
2798 2002-08-10  Roland McGrath  <roland@redhat.com>
2799
2800         * include/wchar.h (putwc): Use libc_hidden_proto.
2801         * include/stdio.h (dprintf, fprintf, vfprintf, sprintf,
2802         sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise.
2803         * stdio-common/dprintf.c: Add libc_hidden_def.
2804         * stdio-common/fprintf.c: Likewise.
2805         * stdio-common/sprintf.c: Likewise.
2806         * stdio-common/sscanf.c: Likewise.
2807         * libio/iofwrite.c: Likewise.
2808         * libio/memstream.c: Likewise.
2809         * libio/putwc.c: Likewise.
2810         * stdio-common/perror.c: Likewise.
2811         * sysdeps/posix/remove.c: Likewise.
2812         * sysdeps/generic/remove.c: Likewise.
2813         * libio/rewind.c: Likewise.  Use <stdio.h> instead of "stdio.h".
2814         * stdio-common/vfprintf.c: Add libc_hidden_def.  Include <stdio.h>.
2815
2816 2002-08-09  Jakub Jelinek  <jakub@redhat.com>
2817
2818         * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
2819         towlower, towupper): Add prototypes here too.  Add libc_hidden_proto.
2820         * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
2821         towlower, towupper): Add libc_hidden_weak.
2822
2823         * include/bits/dlfcn.h: New file.
2824         * elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def.
2825
2826         * include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
2827         * include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
2828         * include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
2829         * include/pwd.h (_nss_files_parse_pwent): Likewise.
2830         * include/shadow.h (_nss_files_parse_spent): Likewise.
2831         * include/netdb.h (_nss_files_parse_protoent,
2832         _nss_files_parse_servent, _nss_files_parse_netent): Likewise.
2833         * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
2834         (LINE_PARSER): Use it.
2835         * nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
2836         * nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.
2837
2838         * libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT
2839         #endif.
2840
2841         * manual/debug.texi (%MENU%): Remove trailing dot.
2842         Reported by <hayastan132@hotmail.com>.
2843
2844         * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek
2845         aliases.
2846         (lseek): Dummy.
2847         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek):
2848         Likewise.
2849
2850 2002-08-09  Roland McGrath  <roland@redhat.com>
2851
2852         * locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale
2853         name to find codeset name (if any) and normalize it.  If the
2854         normalized name differs, look up only that in the archive.
2855         * locale/programs/locarchive.c (add_locale_to_archive): If the name
2856         contains a codeset, normalize the codeset store only the normalized
2857         name in the archive.  If not, add an alias containing the locale's
2858         normalized codeset name.  Apply codeset name normalization when
2859         matching entries in the alias file.
2860
2861         * locale/programs/locarchive.c (delete_locales_from_archive): Don't
2862         decrement HEAD->namehash_used here.
2863         (add_locale): Only need to insert name string when name_offset != 0.
2864
2865         * locale/programs/localedef.c (options): Add -A/--alias-file.
2866         (alias_file): New variable.
2867         (parse_opt): Grok -A, set that.
2868         * locale/programs/localedef.h: Declare it.
2869
2870         * locale/locarchive.h (struct locrecent): Add `refs' member.
2871         * locale/programs/locarchive.c (insert_name): New function, broken out
2872         of ...
2873         (add_locale_to_archive): ... here.  Call that.
2874         (add_alias): New function.
2875         (add_locale): New static function, add_locale_to_archive renamed.
2876         (add_locale_to_archive): Call that and use add_alias to add an alias
2877         for the name with codeset if the given name lacks it.
2878         (enlarge_archive): Call add_locale instead of add_locale_to_archive.
2879
2880         * locale/Makefile (routines): Add loadarchive.
2881         * locale/loadarchive.c: New file, started from code by Ulrich Drepper.
2882         (_nl_load_locale_from_archive): New function.
2883         * locale/localeinfo.h: Declare it.
2884         * locale/findlocale.c (_nl_find_locale): If using default locale path,
2885         try _nl_load_locale_from_archive first.
2886
2887         * locale/loadlocale.c (_nl_intern_locale_data): New function,
2888         broken out of _nl_load_locale.
2889         (_nl_load_locale): Call that.
2890         * locale/localeinfo.h: Declare it.
2891         (struct locale_data): Replace member `mmaped' with `alloc', an enum.
2892         (struct locale_data): Remove unused member `options'.
2893         * locale/findlocale.c (_nl_remove_locale): Update uses.
2894         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
2895         * locale/C-collate.c: Update initializer.
2896         * locale/C-identification.c: Likewise.
2897         * locale/C-measurement.c: Likewise.
2898         * locale/C-telephone.c: Likewise.
2899         * locale/C-address.c: Likewise.
2900         * locale/C-name.c: Likewise.
2901         * locale/C-paper.c: Likewise.
2902         * locale/C-time.c: Likewise.
2903         * locale/C-numeric.c: Likewise.
2904         * locale/C-monetary.c: Likewise.
2905         * locale/C-messages.c : Likewise.
2906         * locale/C-ctype.c: Likewise.
2907
2908         * locale/hashval.h [! LONGBITS]: Include <limits.h> here and
2909         use CHAR_BIT instead of BITSPERBYTE.
2910
2911         * locale/localeinfo.h (_nl_find_locale, _nl_load_locale,
2912         _nl_unload_locale): Add `internal_function attribute_hidden' to decls.
2913         * locale/findlocale.c (_nl_find_locale): Add internal_function to defn.
2914         (_nl_remove_locale): Likewise.
2915         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
2916
2917         * locale/findlocale.c (_nl_default_locale_path): New variable.
2918         (_nl_find_locale): If LOCALE_PATH is null, default to that.
2919         * locale/localeinfo.h: Declare it.
2920         * locale/setlocale.c (setlocale): Use _nl_default_locale_path
2921         in place of LOCALEDIR.  If no LOCPATH, pass null to _nl_find_locale.
2922         * locale/newlocale.c (__newlocale): Likewise.
2923
2924         * misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses.
2925         * inet/rexec.c (rexec_af): Add libc_hidden_def.
2926         * sysdeps/generic/morecore.c: Likewise.
2927         * signal/allocrtsig.c (__libc_current_sigrtmin): Likewise.
2928         (__libc_current_sigrtmax): Likewise.
2929
2930 2002-08-08  Roland McGrath  <roland@redhat.com>
2931
2932         * locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
2933         * catgets/open_catalog.c (__open_catalog): Likewise.
2934
2935         * locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed
2936         from typo INITIAL_NUM_NANES.
2937         (create_archive): Update use.
2938
2939 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
2940
2941         * sysdeps/unix/sysv/linux/sigwait.c: New file.
2942
2943 2002-08-08  Roland McGrath  <roland@frob.com>
2944
2945         * resolv/netdb.h: Don't declare h_errno as a plain global any more.
2946
2947 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
2948
2949         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
2950         else and undefine after including wcstol_l.c.
2951         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.
2952
2953 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
2954
2955         * gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available.
2956
2957 2002-08-08  Alexandre Oliva  <aoliva@redhat.com>
2958
2959         * configure.in: Make the test for broken_alias_attribute stricter.
2960
2961 2002-05-24  Robert Love  <rml@tech9.net>
2962
2963         * posix/Makefile (routines): Add sched_getaffinity and
2964         sched_setaffinity.
2965         * posix/sched.h: Add declarations for sched_getaffinity and
2966         sched_setaffinity.
2967         * sysdeps/generic/sched_getaffinity.c: New file.
2968         * sysdeps/generic/sched_setaffinity.c: New file.
2969         * sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and
2970         sched_setaffinity.
2971
2972 2002-08-06  Andreas Schwab  <schwab@suse.de>
2973
2974         * sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes.
2975
2976 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
2977
2978         * elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error
2979         message.
2980
2981         * stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special.
2982         It is known to be defined.
2983
2984         * include/string.h: Define index and rindex only if _ISOMAC is not
2985         defined.
2986
2987         * elf/rtld.c: Include <errno.h>.
2988         * sysdeps/generic/libc-tls.c: Likewise.
2989
2990 2002-08-07  Roland McGrath  <roland@redhat.com>
2991
2992         * resolv/res_debug.c (latlon2ul): Add const to argument type, and use
2993         it internally.
2994         (precsize_aton): Likewise.
2995
2996         * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
2997         the static symbols added in the last change (doofus is me).
2998
2999         * locale/newlocale.c (__newlocale): Use a bit mask instead of a second
3000         loop to notice missing categories in a composite name.
3001
3002         * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
3003         LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
3004         LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
3005         LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.
3006
3007 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
3008
3009         * malloc/tst-calloc.c: Add tests for one or both parameters being zero.
3010
3011 2002-08-07  Roland McGrath  <roland@redhat.com>
3012
3013         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
3014         unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
3015         Reported by Jakub Jelinek  <jakub@redhat.com>.
3016
3017 2002-08-07  Jakub Jelinek  <jakub@redhat.com>
3018
3019         * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
3020         division.
3021
3022 2002-08-06  Roland McGrath  <roland@redhat.com>
3023
3024         * include/getopt.h: Put private decls inside [_GETOPT_H].
3025         Use libc_hidden_proto for getopt_long, getopt_long_only.
3026         * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
3027         Add libc_hidden_def.
3028
3029         * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
3030         Define as a macro for __dl_iterate_phdr.
3031
3032         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
3033         made static.  Add __ name as a strong alias.
3034         (internal_endnetgrent): Likewise.
3035         (internal_getnetgrent_r): Likewise.
3036
3037         * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
3038         with no __ prefix.
3039         * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
3040         * ctype/ctype.h [__USE_GNU]: Add declarations and macros for
3041         all *_l functions with no __ prefix.
3042         * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
3043         * ctype/ctype_l.c: Likewise.
3044         * locale/nl_langinfo.c: Likewise.
3045         * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
3046         * stdlib/stdlib.h [__USE_GNU]: Likewise.
3047         * wcsmbs/wchar.h [__USE_GNU]: Likewise.
3048         * wctype/wctype.h [__USE_GNU]: Likewise.
3049         * string/strcoll_l.c (strcoll_l): Define as weak alias.
3050         * string/strxfrm_l.c (strxfrm_l): Define as weak alias.
3051         * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
3052         * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
3053         * stdlib/strtod_l.c (strtod_l): Define as weak alias.
3054         * stdlib/strtof_l.c (strtof_l): Define as weak alias.
3055         * stdlib/strtold_l.c (strtold_l): Define as weak alias.
3056         * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
3057         (__wcscasecmp_l): Add libc_hidden_def.
3058         * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
3059         (__wcsncasecmp_l): Add libc_hidden_def.
3060         * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
3061         * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
3062         * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
3063         * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
3064         * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
3065         * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
3066         * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
3067         * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
3068         * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
3069         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
3070         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
3071         * wctype/wctrans_l.c (wctrans_l) Define as weak alias.
3072         * wctype/towctrans_l.c (towctrans_l) Define as weak alias.
3073         * wctype/wctype_l.c (wctype_l) Define as weak alias.
3074
3075 2002-08-05  Roland McGrath  <roland@redhat.com>
3076
3077         * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
3078         netname2user, host2netname, user2netname, key_gendes.
3079         * sunrpc/netname.c: Add libc_hidden_def.
3080         * sunrpc/key_call.c: Likewise.
3081
3082         * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
3083         freeaddrinfo.
3084         * inet/getnameinfo.c: Add libc_hidden_def.
3085         * sysdeps/generic/getaddrinfo.c: Likewise.
3086         * sysdeps/posix/getaddrinfo.c: Likewise.
3087
3088         * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
3089         * wcsmbs/wmemchr.c: Add libc_hidden_def.
3090         * wcsmbs/wmemset.c: Add libc_hidden_def.
3091
3092         * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
3093         (index, rindex): Define as macros for strchr, strrchr.
3094
3095         * string/envz.c (envz_strip): index -> strchr
3096
3097         * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
3098         * sunrpc/rpc_prot.c: Add libc_hidden_def.
3099
3100         * include/wchar.h: Use libc_hidden_proto for mbrtowc.
3101         * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
3102
3103         * include/stdlib.h: Use libc_hidden_proto for wctomb.
3104         * stdlib/wctomb.c: Add libc_hidden_def.
3105
3106         * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
3107         rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
3108         * resolv/herror.c: Likewise.
3109         * inet/rcmd.c: Add libc_hidden_def.
3110         * inet/ruserpass.c: Likewise.
3111         * inet/getnetgrent_r.c: Likewise.
3112
3113         * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
3114         svc_unregister, remove *_internal decls.  Use libc_hidden_proto
3115         for svcerr_auth, svcerr_noprog, svcerr_progvers.
3116         * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
3117         libc_hidden_def.
3118         (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
3119         * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.
3120
3121         * sysdeps/posix/system.c (do_system): New function, guts broken out of
3122         __libc_system.
3123         (__libc_system): Call it, putting just the line == NULL test here.
3124
3125         * include/libc-symbols.h (__hidden_proto): Add extern keywords so
3126         variables work right.
3127
3128         * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
3129         * elf/dl-close.c (_dl_close): Likewise.
3130
3131         * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
3132         in6addr_any, in6addr_loopback.  Remove decls for
3133         bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
3134         * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
3135         * sunrpc/svc_tcp.c (svctcp_create): Likewise.
3136         * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
3137         * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
3138         * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
3139         * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
3140         in6addr_loopback.
3141         * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
3142
3143         * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
3144         ether_aton_r.
3145         * inet/ether_aton_r.c: Add libc_hidden_def.
3146         * inet/ether_ntoa_r.c: Likewise.
3147
3148         * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
3149         xprt_unregister.
3150         * sunrpc/svc.c: Add libc_hidden_def.
3151         * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
3152         pmap_set, pmap_unset.
3153         * sunrpc/pmap_clnt.c: Add libc_hidden_def.
3154         * sunrpc/pm_getport.c: Likewise.
3155         * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
3156         * sunrpc/publickey.c: Add libc_hidden_def.
3157
3158 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
3159
3160         * elf/rtld.c (_dl_start): Don't use memset.  Use same tricks as for
3161         the other memset call in this function.
3162
3163         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
3164         at correct index.  Clear BSS region now that memalign is used.
3165
3166 2002-08-05  Roland McGrath  <roland@redhat.com>
3167
3168         * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
3169         * sysdeps/generic/uname.c: Add libc_hidden_def.
3170         * sysdeps/mach/hurd/uname.c: Likewise.
3171
3172 2002-08-05  Jakub Jelinek  <jakub@redhat.com>
3173
3174         * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
3175         wcspbrk): Add libc_hidden_proto.
3176         * time/strftime.c (my_strftime): Add libc_hidden_def.
3177         (strftime): Remove libc_hidden_def.
3178         * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
3179         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
3180         * wcsmbs/wcsspn.c (wcsspn): Likewise.
3181         * wcsmbs/wcscmp.c (wcscmp): Likewise.
3182         * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
3183         * wcsmbs/wcscoll.c (wcscoll): Likewise.
3184
3185         * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
3186         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3187         __rpc_thread_createerr): Add libc_hidden_proto.
3188         * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
3189         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3190         __rpc_thread_createerr): Add libc_hidden_def.
3191
3192         * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
3193         clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
3194         * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
3195         clnt_perror, clnt_sperror): Add libc_hidden_def.
3196         * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
3197
3198         * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
3199         libc_hidden_proto.
3200         * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
3201         * sunrpc/des_soft.c (des_setparity): Likewise.
3202
3203         * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
3204         Add libc_hidden_proto.
3205         * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
3206         Add libc_hidden_def.
3207
3208 2002-08-05  Roland McGrath  <roland@redhat.com>
3209
3210         * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
3211         `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
3212         * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
3213         * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
3214         dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
3215         old data, abandoning the original memory allocated by rtld at startup,
3216         instead of calling realloc normally.
3217
3218 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
3219
3220         * po/fr.po: Update from translation team.
3221
3222 2002-08-04  Roland McGrath  <roland@redhat.com>
3223
3224         * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
3225         then generate a dummy module under the given name, obeying the
3226         normal rules for the "caller" field.
3227
3228         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
3229         actually iterate over the elements.  Fix typo p_type -> p_vaddr.
3230
3231         * include/pthread.h: Don't declare __pthread_initialize_minimal as
3232         weak here; we declare it weak or strong in the one place we use it.
3233         * sysdeps/generic/libc-start.c: ... which is here.
3234         Don't make the decl weak if [USE_TLS], since static programs need TLS
3235         setup even when single-threaded.
3236
3237         * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
3238
3239         * elf/Makefile (test-srcs): Add $(modules-names) to it.
3240         (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
3241         CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
3242         all these variables.
3243
3244 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3245
3246         * include/stdio.h: Don't define macro magic to redirect function
3247         calls if _ISOMAC is defined.
3248
3249         * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
3250         ldouble asin tests.
3251
3252 2002-08-04  Roland McGrath  <roland@redhat.com>
3253
3254         * stdlib/lrand48_r.c: Add libc_hidden_def.
3255
3256         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
3257         TCB with __libc_memalign instead of mmap.
3258         (_dl_deallocate_tls): Free it with free instead of munmap.
3259
3260         * Makerules (cpp-srcs-left): When setting this to run
3261         cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
3262         words.  Combine the two loops into one on the concatenated list,
3263         including those as well as $(test-srcs).
3264
3265         * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
3266         since we align here with optimally minimal waste anyway.
3267         (malloc): Just call that.
3268
3269         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
3270         the right variable.
3271
3272         * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
3273         to compute memory location for l_tls_initimage.
3274         * elf/rtld.c (_dl_start): Likewise.
3275         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
3276
3277         * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
3278         because the .d file is generated in the non-shared case and
3279         so fails to catch them otherwise.
3280
3281         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
3282         split out of _dl_allocate_tls.
3283         (_dl_allocate_tls_init): Likewise.
3284         (_dl_allocate_tls): Call those.
3285         * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
3286         * elf/rtld.c (dl_main): Call them separately instead of calling
3287         _dl_allocate_tls.  Delay _dl_allocate_tls_init until after relocation
3288         is finished, so that the initializer data has been relocated before we
3289         copy it into the main thread's TLS block.
3290
3291         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
3292         loop conditions, prevented the last used module from being initialized.
3293
3294 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
3295
3296         * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
3297         if glob resp. globfree are not macros.
3298         * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
3299         * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
3300         Add libc_hidden_ver.
3301         * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
3302         libc_hidden_def.
3303         * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
3304         instead of libc_hidden_weak.
3305         * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
3306         libc_hidden_ver instead of libc_hidden_def.
3307         * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
3308         libc_hidden_ver instead of libc_hidden_def.
3309         (wcstoll, wcstoq): Remove libc_hidden_weak.
3310         * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
3311         libc_hidden_ver.
3312         * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
3313         libc_hidden_ver.
3314         * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
3315         libc_hidden_ver.
3316         * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
3317         libc_hidden_ver.
3318
3319 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3320
3321         * stdio-common/psignal.c: Declare _sys_siglist_internal.  Use USEINT
3322         to access _sys_siglist.
3323         * string/strsignal.c: Likewise.
3324         * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
3325         * sysdeps/gnu/siglist.c: Likewise.
3326         * sysdeps/unix/siglist.c: Likewise.
3327         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
3328
3329         * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
3330
3331         * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
3332
3333         * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
3334         alias and use it.
3335         * intl/bindtextdom.c: Use _nl_default_dirname_internal.
3336
3337         * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
3338         * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
3339         * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
3340
3341         * include/time.h: Add libc_hidden_proto for __gmtime_r.
3342         * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
3343
3344         * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
3345         and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
3346         and __gconv_get_cache respectively.
3347         * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
3348         defined static.  Change all users.
3349         (__gconv_get_cache): New function.
3350         * iconv/gconv_db.c (__gconv_get_modules_db): New function.
3351         (__gconv_get_alias_db): New function.
3352         * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
3353         (__conv_modules_db): Likewise.
3354         Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
3355         and __gconv_get_alias_db.
3356         * iconv/iconv_prog.c: Use the new functions instead of accessing the
3357         variables.
3358
3359         * include/stdlib.h: Add prototype and libc_hidden_proto for
3360         __default_morecore.
3361         * sysdeps/generic/morecore.c: Include <stdlib.h>.
3362
3363         * malloc/obstack.c: Remove fputs macro.
3364
3365         * malloc/mtrace.c: Remove fopen macro.
3366
3367 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
3368
3369         * manual/debug.texi: Fix spelling to programmatically.
3370         Reported by <hayastan132@hotmail.com>.
3371
3372 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3373
3374         * include/libio.h: Add libc_hidden_proto for __uflow.
3375         * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
3376         fgetpos to _IO_* names.
3377         Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
3378         fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
3379         * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
3380         putwc_unlocked, vswscanf.
3381         * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
3382         * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
3383         * libio/fseek.c: Likewise.
3384         * libio/fmemopen.c: Include "libioP.h".  Call _IO_fopencookie and
3385         not fopencookie.
3386         * libio/genops.c (__uflow): Add libc_hidden_def.
3387         * libio/iofflush_u.c (fflush_unlocked): Likewise.
3388         * libio/iofgets_u.c (fgets_unlocked): Likewise.
3389         * libio/iofputs_u.c (fputs_unlocked): Likewise.
3390         * libio/iofputws_u.c (fputws_unlocked): Likewise.
3391         * libio/iofread_u.c (fread_unlocked): Likewise.
3392         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
3393         * libio/iovswscanf.c (vswscanf): Likewise.
3394         * libio/putwc_u.c (putwc_unlocked): Likewise.
3395         * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
3396         * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
3397         * malloc/mtrace.c: Likewise.
3398
3399         * sunrpc/clnt_perr.c: Remove fputs macro.
3400         * sunrpc/svc_simple.c: Likewise.
3401         * sunrpc/svc_tcp.c: Likewise.
3402         * sunrpc/svc_udp.c: Likewise.
3403         * sunrpc/xdr_rec.c: Likewise.
3404         * sunrpc/xdr_ref.c: Likewise.
3405
3406         * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
3407         iconv_prog, linereader, and charmap-dir.
3408         * locale/Makefile: Likewise for locale and charmap-dir.
3409         * malloc/Makefile: Likewise for memusagestat.
3410         * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
3411         * sunrpc/Makefile: Likewise for rpc_main.
3412         * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
3413         * timezone/Makefile: Likewise for zic.
3414
3415         * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
3416
3417         * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
3418         * elf/dl-close.c (_dl_close): Add libc_hidden_def.
3419         * elf/dl-open.c (_dl_open): Add libc_hidden_def.
3420         * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
3421         _dl_close.
3422
3423         * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
3424         __wunderflow.
3425         * libio/genops.c (__underflow): Add libc_hidden_def.
3426         * libio/wgenops.c (__wuflow): Likewise.
3427         (__wunderflow): Likewise.
3428
3429         * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
3430         * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
3431
3432         * include/stdio.h: Add libc_hidden_proto for __vfscanf.
3433         * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
3434
3435         * include/string.h: Add libc_hidden_proto for __strverscmp.
3436         * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
3437
3438         * include/unistd.h: Add libc_hidden_proto for __sysconf.
3439         * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
3440         * sysdeps/posix/sysconf.c: Likewise.
3441         * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
3442         * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
3443
3444         * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
3445         __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
3446         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
3447         __iswxdigit_l, __towlower_l, __towupper_l.
3448         * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
3449         * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
3450
3451         * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
3452         * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
3453         * sysdeps/mach/hurd/xmknod.c: Likewise.
3454         * sysdeps/unix/xmknod.c: Likewise.
3455         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
3456         * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
3457         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
3458
3459         * sunrpc/svc.c: Add missing INTUSE for _authenticate.
3460
3461 2002-08-03  Roland McGrath  <roland@redhat.com>
3462
3463         * include/sys/resource.h: Use libc_hidden_proto for getpriority,
3464         setpriority.
3465         * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
3466         * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
3467         * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
3468         * sysdeps/mach/hurd/setpriority.c: Likewise.
3469         * sysdeps/mach/hurd/getpriority.c: Likewise.
3470         * sysdeps/generic/setpriority.c: Likewise.
3471         * sysdeps/generic/getpriority.c: Likewise.
3472
3473         * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
3474         * malloc/mcheck.c: Add libc_hidden_def.
3475
3476         * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
3477         * misc/hsearch_r.c: Add libc_hidden_def.
3478
3479         * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
3480         * posix/fnmatch.c: Add libc_hidden_weak.
3481
3482         * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
3483         execl, execle, execlp, execvp, getpid, getsid.
3484         * sysdeps/generic/alarm.c: Add libc_hidden_def.
3485         * sysdeps/unix/alarm.c: Likewise.
3486         * posix/confstr.c: Likewise.
3487         * posix/execvp.c: Likewise.
3488         * posix/execlp.c: Likewise.
3489         * posix/execle.c: Likewise.
3490         * posix/execl.c: Likewise.
3491         * sysdeps/generic/getsid.c: Likewise.
3492         * sysdeps/mach/hurd/getsid.c: Likewise.
3493         * sysdeps/generic/getpid.c: Add libc_hidden_weak.
3494         * sysdeps/mach/hurd/getpid.c: Likewise.
3495
3496         * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
3497         qecvt_r, qfcvt_r, lrand48_r.
3498         * misc/efgcvt_r.c: Add libc_hidden_def.
3499
3500         * include/wordexp.h: Use libc_hidden_proto for wordfree.
3501         * sysdeps/generic/wordexp.c: Add libc_hidden_def.
3502
3503         * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
3504         * locale/nl_langinfo.c: Add libc_hidden_def.
3505
3506         * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
3507         * sysdeps/generic/glob.c: Add libc_hidden_def.
3508         * sysdeps/generic/glob64.c: Likewise.
3509         * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
3510
3511         * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
3512
3513         * elf/Makefile (CFLAGS-vismod2.c): New variable.
3514
3515         * locale/setlocale.c (_nl_current_names): Variable moved ...
3516         * locale/localename.c (_nl_current_names): ... here, new file.
3517         Make it global, with attribute_hidden.
3518         * locale/localeinfo.h: Declare it.
3519         * locale/Makefile (aux): Add localename.
3520         * locale/localename.c (__current_locale_name): New function.
3521         * include/locale.h (__current_locale_name): Declare it.
3522         * intl/dcigettext.c (guess_category_value): Use that instead of
3523         calling setlocale.
3524
3525         * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
3526         [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
3527         [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
3528         * locale/newlocale.c: Add alias to __ name.
3529         * locale/duplocale.c: Likewise.
3530         * locale/freelocale.c: Likewise.
3531         * locale/uselocale.c: New file.
3532         * locale/Makefile (routines): Add it.
3533         * locale/Versions (libc: GLIBC_2.3): New set.
3534         Add newlocale, duplocale, freelocale, uselocale.
3535         (libc: GLIBC_PRIVATE): Add __uselocale.
3536
3537         * locale/localeinfo.h [SHARED]
3538         (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
3539         (_NL_CURRENT_DATA): Define using that.
3540         (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
3541         (_NL_CURRENT_DEFINE): Define to empty.
3542         [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
3543         conditionalized on this.
3544         * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
3545         taking initializer of _nl_C_locobj.
3546         [SHARED] (_nl_global_locale): New variable, using that initializer.
3547         (_nl_C_locobj): Use new macro for initialzier.
3548         * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
3549         [! SHARED] (CATEGORY_USED): New macro.
3550         [SHARED] (CATEGORY_USED, _nl_C): New macros.
3551         (setdata, setlocale): Use that macro instead of examining _nl_current.
3552         (setdata): Set the slot in _nl_global_locale.
3553         Conditionalize setting of _nl_current on [! SHARED].
3554         * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
3555         declaration as an extern.
3556         * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
3557
3558         * include/locale.h: Use libc_hidden_proto for setlocale.
3559         * locale/setlocale.c: Add libc_hidden_def.
3560
3561         * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
3562
3563         * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
3564         * misc/hsearch_r.c: Add libc_hidden_def.
3565         * misc/lsearch.c: Likewise.
3566
3567         * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
3568         endttyent.
3569         * misc/getttyent.c: Add libc_hidden_def.
3570
3571         * include/mcheck.h: Use libc_hidden_proto for mcheck.
3572         * malloc/mcheck.c: Add libc_hidden_def.
3573
3574         * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
3575         * include/argz.h: Use libc_hidden_proto for argz_delete.
3576         * string/argz-delete.c: Add libc_hidden_def.
3577         * string/envz.c: Likewise.  Use <envz.h>, not "envz.h".
3578
3579         * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
3580         HIDDEN_JUMPTARGET for _exit.
3581         * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
3582         * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
3583         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
3584         * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
3585
3586         * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
3587         [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
3588         [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
3589         * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
3590
3591         * include/stdlib.h: Use libc_hidden_proto for abort,
3592         __strtof_internal, __strtod_internal, __strtold_internal,
3593         __strtol_internal, __strtoll_internal, __strtoul_internal,
3594         __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
3595         __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
3596         __strtoul_l_internal, __strtoull_l_internal.
3597         * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
3598         __wcstod_internal, __wcstold_internal, __wcstol_internal,
3599         __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
3600         ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
3601         ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
3602         __wcsncasecmp_l.
3603         * sysdeps/generic/abort.c: Add libc_hidden_def.
3604         * stdlib/strtod.c: Likewise.
3605         * sysdeps/generic/strtol.c: Likewise.
3606         * sysdeps/wordsize-64/strtol.c: Likewise.
3607         * sysdeps/wordsize-64/wcstol.c: Likewise.
3608         * sysdeps/wordsize-64/wcstol_l.c: Likewise.
3609
3610         * include/stdlib.h: Use libc_hidden_proto for qsort.
3611         * stdlib/msort.c: Add libc_hidden_def.
3612
3613         * include/utime.h: Use libc_hidden_proto for utime.
3614         * sysdeps/generic/utime.c: Add libc_hidden_def.
3615         * sysdeps/unix/utime.c: Likewise.
3616
3617         * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
3618         * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
3619         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
3620         * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
3621         * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
3622
3623         * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
3624         sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
3625         and __libc_current_sigrtmax.
3626         * signal/sigismem.c: Add libc_hidden_def.
3627         * signal/sigfillset.c: Likewise.
3628         * signal/sigempty.c: Likewise.
3629         * sysdeps/generic/sigpause.c (__sigpause): Likewise.
3630         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
3631         * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
3632         * sysdeps/posix/raise.c: Likewise.
3633         * sysdeps/generic/raise.c: Likewise.
3634
3635 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
3636
3637         * include/string.h: Use libc_hidden_proto for __stpcpy.
3638         * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
3639         * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
3640         * sysdeps/generic/stpcpy.c: Likewise.
3641         * sysdeps/i386/stpcpy.S: Likewise.
3642         * sysdeps/i386/i586/stpcpy.S: Likewise.
3643         * sysdeps/powerpc/stpcpy.S: Likewise.
3644         * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
3645         * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
3646
3647         * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
3648         __strncasecmp_l, __strdup, __strndup, __strerror_r.
3649         * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
3650         libc_hidden_def.
3651         * string/strdup.c (__strdup): Likewise.
3652         * string/strndup.c (__strndup): Likewise.
3653         * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
3654         * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
3655
3656 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
3657
3658         * include/libio.h: New file.
3659         * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
3660         * libio/iolibio.h: #include <libio.h>, not "libio.h".
3661         * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
3662         * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
3663         * sysdeps/unix/common/syscalls.list: Likewise.
3664         * sysdeps/unix/inet/syscalls.list: Likewise.
3665         * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
3666         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
3667         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3668         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3669         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
3670         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
3671         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
3672         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3673         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3674         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
3675         * sysdeps/unix/syscalls.list: Likewise.
3676
3677 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
3678             Ulrich Drepper  <drepper@redhat.com>
3679
3680         * malloc/malloc.c (public_cALLOc): Only divide if at least one of
3681         the arguments is big enough to cause an overflow.
3682
3683 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
3684
3685         * assert/assert.c: Use hidden_def not INTDEF.
3686
3687 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
3688
3689         * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
3690         not defined.
3691
3692 2002-08-03  Roland McGrath  <roland@redhat.com>
3693
3694         * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
3695         * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
3696         verr, verrx.
3697         * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
3698         * misc/syslog.c: Add libc_hidden_def.
3699         * misc/err.c: Likewise.
3700         * stdlib/exit.c: Likewise.
3701         * stdlib/bsearch.c: Likewise.
3702         * sysdeps/generic/getenv.c: Likewise.
3703
3704         * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
3705
3706         * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
3707         libc_hidden_weak for every system call symbol defined.
3708
3709         * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
3710         timelocal, localtime, strftime.
3711         * time/asctime.c: Add libc_hidden_def.
3712         * time/mktime.c: Likewise.
3713         * time/localtime.c: Likewise.
3714         * time/strftime.c: Likewise.
3715         * time/strptime.c: Likewise.
3716         * sysdeps/generic/time.c: Likewise.
3717         * sysdeps/unix/time.c: Likewise.
3718         * sysdeps/unix/sysv/i386/time.S: Likewise.
3719         * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
3720
3721         * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
3722         inet_makeaddr, inet_netof, inet_addr, __inet_addr.
3723         * resolv/inet_ntop.c: Likewise.
3724         * resolv/inet_pton.c: Likewise.
3725         * inet/inet_mkadr.c: Add libc_hidden_def.
3726         * inet/inet_netof.c: Likewise.
3727         * resolv/inet_addr.c: Likewise.
3728
3729         * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
3730         clauses from conditionals for now.  Will have to be fixed later
3731         for older compilers.
3732
3733         * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
3734
3735 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
3736
3737         * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
3738         broken alias attribute handling.
3739         * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
3740
3741 2002-08-02  Roland McGrath  <roland@frob.com>
3742
3743         * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
3744         since it sets the variables we use in a -D switch.
3745
3746 2002-08-02  Roland McGrath  <roland@redhat.com>
3747
3748         * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
3749         On 32-bit platforms they are the same; on 64-bit platforms ssize_t
3750         matches long int, not int.
3751
3752         * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
3753         * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
3754         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
3755         * wctype/wctrans.c (wctrans): Likewise.
3756         * wctype/wctype.c (__wctype): Likewise.
3757         * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
3758
3759 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
3760
3761         * assert/assert.c (__assert_fail): Fix typo in comment.
3762
3763         * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
3764         * sunrpc/rpc_thread.c: Define it without static.
3765         * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
3766
3767 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
3768
3769         * assert/assert.c (__assert_fail): Remove undef.
3770         Replace INTDEF with libc_hidden_def.
3771         * assert/__assert.c (__assert): Remove INTUSE.
3772         * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
3773         libc_hidden_weak.
3774         * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
3775         hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
3776         libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
3777         rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
3778         libm_hiden_ver): Define.
3779         * include/assert.h (__assert_fail_internal): Remove.
3780         (__assert_fail): Add prototype.  Add hidden_proto.
3781         * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
3782         libc_hidden_proto.
3783         * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
3784         (__mbrtowc, __mbrlen): Use libc_hidden_proto.  Remove macros.
3785         * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
3786         Add libc_hidden_proto.
3787         * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
3788         __fcntl): Add libc_hidden_proto.  Remove macros.
3789         (__open_internal, __fcntl_internal): Remove.
3790         * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
3791         * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
3792         * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
3793         libc_hiden_proto.
3794         * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
3795         libc_hidden_def.
3796         * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
3797         Add libc_hidden_def.
3798         * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
3799         * sysdeps/generic/open.c (__open): Remove undef.
3800         Add libc_hidden_def.  Remove INTDEF.
3801         * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
3802         Add libc_hidden_def.
3803         * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
3804         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
3805         * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
3806         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
3807         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
3808         (__libc_fcntl): Add libc_hidden_def.
3809         * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
3810         (__open): Remove INTDEF2.  Add libc_hidden_weak.
3811         (__libc_open): Add libc_hidden_def.
3812         * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
3813         * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
3814         * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
3815         Add libc_hidden_def.
3816         * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
3817         Add libc_hidden_def.
3818         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
3819         undef.
3820         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
3821         (__libc_fcntl): Add libc_hidden_def.
3822         * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
3823         __getpgid_internal, __chown_internal): Remove.
3824         (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
3825         __GI___sched_setscheduler, __GI___select, __GI___setpgid,
3826         __GI___chown): Add.
3827         * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
3828         __getpid_internal, __open_internal, __write_internal): Remove.
3829         (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
3830         __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
3831         __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
3832         __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
3833         * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
3834         Replace INTDEF with libc_hidden_def.
3835         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
3836         * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
3837         * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
3838         * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
3839         * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
3840         Add libc_hidden_proto.
3841         * include/sys/poll.h (__poll): Add libc_hidden_proto.
3842         * include/sys/select.h (__select): Likewise.
3843         * include/sys/socket.h (__send): Likewise.
3844         * include/sys/statfs.h (__statfs): Likewise.
3845         * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
3846         __getpid, __getpgid, __setpgid, __close, __read, __write,
3847         __getpagesize, __sbrk): Likewise.
3848         (__chown_internal, __dup2_internal, __getpid_internal,
3849         __getpgid_internal, __close_internal, __write_internal,
3850         __getpagesize_internal): Remove.
3851         (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
3852         Remove macros.
3853         * include/printf.h (__printf_fp): Add libc_hidden_proto.
3854         * include/sched.h (__sched_setscheduler): Likewise.
3855         * include/resolv.h (__res_ninit, __res_randomid): Likewise.
3856         * include/stdlib.h (__secure_getenv): Likewise.
3857         * include/signal.h (__sigaction, __sigsuspend): Likewise.
3858         * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
3859         * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
3860         * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
3861         * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
3862         * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
3863         * inet/getproto_r.c (NSS_attribute_hidden): Remove.
3864         * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
3865         * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
3866         * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
3867         * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
3868         * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
3869         * inet/getservent_r.c (NSS_attribute_hidden): Remove.
3870         * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
3871         * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
3872         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
3873         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
3874         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
3875         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
3876         * libio/genops.c (__overflow): Add libc_hidden_def.
3877         * libio/iovdprintf.c: Remove libio.h include.
3878         * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
3879         libc_hidden_weak): Define to nothing if not defined.
3880         (__overflow, __woverflow): Add libc_hidden_proto.
3881         * libio/wgenops.c (__woverflow): Add libc_hidden_def.
3882         * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
3883         (DB_LOOKUP_FCT): Add libc_hidden_proto.
3884         * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
3885         (DB_LOOKUP_FCT): Add libc_hidden_proto.
3886         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
3887         and libc_hidden_def.
3888         * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
3889         * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
3890         (__getpgid): Add libc_hidden_proto.
3891         (__bsd_getpgrp): Remove INTUSE.
3892         * resolv/res_init.c (__res_ninit, __res_randomid): Add
3893         libc_hidden_def.
3894         * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
3895         * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
3896         * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
3897         * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
3898         * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
3899         * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
3900         __rpc_thread_createerr): Add libc_hidden_def.
3901         * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
3902         libc_hidden_def.
3903         * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
3904         * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
3905         * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
3906         * sysdeps/generic/chown.c (__chown): Likewise.
3907         * sysdeps/generic/close.c (__close): Likewise.
3908         * sysdeps/generic/dup2.c (__dup2): Likewise.
3909         * sysdeps/generic/pipe.c (__pipe): Likewise.
3910         * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
3911         * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
3912         * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
3913         * sysdeps/generic/read.c (__libc_read): Likewise.
3914         (__read): Add libc_hidden_weak.
3915         * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
3916         * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
3917         * sysdeps/generic/select.c (__select): Likewise.
3918         * sysdeps/generic/send.c (__send): Likewise.
3919         * sysdeps/generic/setpgid.c (__setpgid): Likewise.
3920         * sysdeps/generic/sigaction.c (__sigaction): Likewise.
3921         * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
3922         * sysdeps/generic/statfs.c (__statfs): Likewise.
3923         * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
3924         * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
3925         * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
3926         Remove undef and INTDEF.
3927         * sysdeps/generic/getpgid.c (__getpgid): Likewise.
3928         * sysdeps/generic/getpid.c (__getpid): Likewise.
3929         * sysdeps/generic/write.c (__libc_write): Likewise.
3930         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
3931         * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
3932         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
3933         * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
3934         * sysdeps/mach/hurd/chown.c (__chown): Likewise.  Remove INTDEF.
3935         * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
3936         Remove undef and INTDEF.
3937         * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
3938         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
3939         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
3940         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
3941         * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
3942         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
3943         * sysdeps/mach/hurd/pipe.c: Include unistd.h.
3944         (__pipe): Add libc_hidden_def.
3945         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
3946         libc_hidden_weak.
3947         * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
3948         * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
3949         * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
3950         (__read): Add libc_hidden_weak.
3951         * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
3952         (__libc_pwrite64): Add libc_hidden_def.
3953         * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
3954         * sysdeps/mach/hurd/select.c (__select): Likewise.
3955         * sysdeps/mach/hurd/send.c (__send): Likewise.
3956         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
3957         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
3958         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
3959         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
3960         * sysdeps/posix/dup2.c: Likewise.
3961         Remove undef and INTDEF.
3962         * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
3963         * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
3964         (__pwrite64): Add libc_hidden_weak.
3965         * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
3966         * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
3967         * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
3968         * sysdeps/standalone/close.c (__close): Likewise.
3969         * sysdeps/standalone/write.c (__libc_write): Likewise.
3970         (__write): Add libc_hidden_weak.
3971         * sysdeps/standalone/read.c (__read): Likewise.
3972         (__libc_read): Add libc_hidden_def.
3973         * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
3974         * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
3975         * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
3976         * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
3977         * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
3978         * sysdeps/unix/bsd/poll.c (__poll): Likewise.
3979         * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
3980         * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
3981         * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
3982         __GI___sigaction): Add.
3983         * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
3984         * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
3985         * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
3986         * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
3987         * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
3988         __GI___setpgid): Add.
3989         * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
3990         Remove undef and INTDEF.
3991         * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
3992         * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
3993         * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
3994         * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
3995         * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
3996         * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
3997         * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
3998         * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
3999         * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
4000         * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
4001         * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
4002         * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
4003         * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
4004         * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
4005         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
4006         __GI___statfs, __GI___send): Add.
4007         * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
4008         libc_hidden_ver resp. libc_hidden_def.
4009         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
4010         libc_hidden_def.
4011         * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
4012         Likewise.  Remove undef and INTDEF.
4013         * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
4014         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
4015         __GI___statfs, __GI___send): Add.
4016         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
4017         libc_hidden_def.
4018         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
4019         Likewise.
4020         * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
4021         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
4022         libc_hidden_ver resp. libc_hidden_def.
4023         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
4024         __GI___send): Add.
4025         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
4026         Add libc_hidden_weak.
4027         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
4028         Add libc_hidden_def.
4029         * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
4030         * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
4031         libc_hidden_weak.
4032         * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
4033         resp. libc_hidden_def.
4034         * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
4035         libc_hidden_weak.
4036         * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise.  Remove
4037         INTDEF.
4038         * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
4039         Likewise.  Remove undef.
4040         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
4041         libc_hidden_weak.
4042         * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
4043         * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
4044         libc_hidden_weak.
4045         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
4046         libc_hidden_def.
4047         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
4048         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
4049         Likewise.  Remove undef and INTDEF.
4050         * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
4051         libc_hidden_def.
4052         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
4053         libc_hidden_weak.
4054         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
4055         libc_hidden_def.
4056         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
4057         (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
4058         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
4059         libc_hidden_weak.
4060         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
4061         Add libc_hidden_def.
4062         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
4063         __GI___statfs): Add.
4064         * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
4065         libc_hidden_weak.
4066         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
4067         * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
4068         Remove undef and INTDEF.
4069         * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
4070         * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
4071         libc_hidden_def.
4072         * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
4073         * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
4074         libc_hidden_weak.
4075         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
4076         libc_hidden_def.
4077         * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
4078         * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
4079         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
4080         Add.
4081         * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
4082         libc_hidden_def.  Remove undef and INTDEF.
4083         * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
4084         * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
4085         libc_hidden_def.
4086         * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
4087         * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
4088         * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
4089         * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
4090         Remove undef and INTDEF.
4091         * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
4092         broken visibility attribute handling.
4093         * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
4094
4095 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
4096
4097         * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
4098         Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
4099
4100         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
4101         previous patch.
4102
4103 2002-06-29  Todd Fries  <todd@openbsd.org>
4104
4105         * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
4106
4107 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4108
4109         * include/errno.h: Don't include tls.h if _ISOMAC is defined.
4110
4111 2002-07-30  Roland McGrath  <roland@redhat.com>
4112
4113         * resolv/resolv.h (_res): Define macro unconditionally.
4114         [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
4115         * include/resolv.h: ... here.
4116         [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
4117         as a __thread variable.
4118         * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
4119         a __thread variable instead of a global.
4120         * resolv/res_data.c [_LIBC]: Don't #undef _res.
4121
4122         * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
4123         time we test it.
4124
4125         * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
4126
4127         * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
4128         decls of memset and memcpy.
4129
4130         * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
4131         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
4132
4133         * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
4134
4135         * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
4136         (__libc_tsd_define): Define using __thread.
4137
4138         * sunrpc/rpc_thread.c: Use __libc_tsd_define.
4139         (__rpc_thread_variables): Use __libc_tsd_get.
4140         (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
4141         __rpc_thread_variables, which might allocate what we're about to free.
4142
4143         * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
4144         thread-local variable.
4145         * resolv/netdb.h (h_errno): Define macro unconditionally.
4146         [_LIBC] (__set_h_errno): Macro moved to ...
4147         * include/netdb.h: ... here.
4148         [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
4149         [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
4150         [! _LIBC_REENTRANT]: #undef h_errno here.
4151
4152         * include/errno.h: Protect from multiple inclusion.
4153
4154         * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
4155         before defining them, since Linux's <linux/posix_types.h> might have
4156         defined them.
4157
4158 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4159
4160         * malloc/malloc.c (public_cALLOc): Check for overflow on
4161         multiplication.
4162         * sunrpc/xdr_array.c (xdr_array): Likewise.
4163         * sunrpc/rpc/types.h (mem_free): Add comment.
4164         Patch by Solar Designer <solar@openwall.com>.
4165
4166 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4167
4168         * sysdeps/unix/sysv/linux/kernel-features.h
4169         (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
4170
4171 2002-08-01  Roland McGrath  <roland@redhat.com>
4172
4173         * libio/fileops.c (_IO_file_sync_mmap): New function.
4174         (_IO_file_jumps_mmap): Use it.
4175         (_IO_file_underflow_mmap): Rewritten.  If after EOF or fflush,
4176         repeat the stat check and resize the mapped buffer as necessary.
4177
4178 2002-07-31  Roland McGrath  <roland@redhat.com>
4179
4180         * libio/fileops.c (decide_maybe_mmap): New static function.
4181         Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
4182         mmap the file contents.  Then switch the jump tables to the mmap
4183         tables if it worked, or the vanilla file tables if not.
4184         (_IO_file_underflow_maybe_mmap): New function.
4185         (_IO_file_seekoff_maybe_mmap): New function.
4186         (_IO_file_xsgetn_maybe_mmap): New function.
4187         (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
4188         * libio/libioP.h: Declare those.
4189         * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
4190         (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
4191         * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
4192         If the stream is read-only, set its jump tables to those new ones.
4193         * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
4194         jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
4195         We need the tables set before _IO_file_attach.
4196
4197         * libio/tst-mmap-eofsync.c: New file.
4198         * libio/tst-mmap-fflushsync.c: New file.
4199         * libio/bug-mmap-fflush.c: New file.
4200         * libio/tst-mmap2-eofsync.c: New file.
4201         * libio/Makefile (tests): Add them.
4202
4203         * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
4204         _IO_file_underflow_mmap fails, it already set the appropriate bit.
4205
4206 2002-07-31  Jeff Bailey  <jbailey@gnu.org>
4207
4208         * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
4209         Declarations moved to <bits/sys_errlist.h>.  Include that file.
4210         * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
4211         * sysdeps/generic/bits/sys_errlist.h: New file.  This does *not*
4212         declare sys_errlist and sys_nerr.
4213         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file.  Does
4214         provide declarations.
4215
4216 2002-07-31  Roland McGrath  <roland@redhat.com>
4217
4218         * elf/rtld.c (dl_main): Fix typo in error message.
4219
4220 2002-07-31  Roland McGrath  <roland@frob.com>
4221
4222         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
4223         __xstat -> __xstat64, __lseek -> __libc_lseek64.  Completes 2002-06-09
4224         sysdeps/mach/hurd/dl-sysdep.c change.
4225
4226 2002-07-28  Ulrich Drepper  <drepper@redhat.com>
4227
4228         * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
4229         -r`/build/include for kernel headers.
4230
4231         * po/fi.po: New file.
4232
4233 2002-07-15  Alexandre Oliva  <aoliva@redhat.com>
4234
4235         * configure.in (static_nss): Set to `yes' if --disable-shared.
4236
4237 2002-07-23  Bruno Haible  <bruno@clisp.org>
4238
4239         * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
4240         is set.
4241
4242 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4243
4244         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
4245         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
4246         arguments.
4247
4248 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4249
4250         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
4251         alias.
4252
4253 2002-07-21  Bruno Haible  <bruno@clisp.org>
4254
4255         * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
4256         * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
4257         sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
4258         trans_sysdep_tab_offset.
4259         (struct sysdep_segment): New type.
4260         (struct sysdep_string): New type.
4261         (SEGMENTS_END): New macro.
4262         * intl/gettextP.h (struct sysdep_string_desc): New type.
4263         (struct loaded_domain): New fields malloced, n_sysdep_strings,
4264         orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
4265         orig_tab, trans_tab, hash_tab to const pointers because they point
4266         into read-only memory.
4267         * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
4268         (PRI*): Define fallback values.
4269         (get_sysdep_segment_value): New function.
4270         (_nl_load_domain): Distinguish major and minor revision parts. Add
4271         support for minor revision 1 with system dependent strings.
4272         (_nl_unload_domain): Also free the 'malloced' field.
4273         * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
4274         now done in loadmsgcat.c. Add support for system dependent strings.
4275
4276 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
4277
4278         * posix/bug-regex7.c: New file.
4279         * posix/bug-regex8.c: New file.
4280         * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
4281
4282 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
4283
4284         * posix/bug-regex4.c (main): Fix typos.
4285         * posix/bug-regex6.c (main): Likewise.
4286
4287 2002-07-27  Ulrich Drepper  <drepper@redhat.com>
4288
4289         * posix/bug-regex6.c (main): Fix warnings.
4290
4291         * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
4292
4293         * iconv/iconv_prog.c (main): Improve error message for the cases
4294         where -t and/or -f parameter are missing.
4295
4296 2002-07-10  Stepan Kasal  <kasal@math.cas.cz>
4297
4298         * posix/regexec.c (re_match): Reorganize to remove duplicate code.
4299         (re_search): Likewise.
4300         (re_match_2): Likewise.
4301         (re_search_2): Likewise.
4302         (re_search_stub): New function.
4303         (re_search_2_stub): New function.
4304         * regcomp.c (re_compile_pattern): Typo in a comment fixed.
4305
4306 2002-07-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
4307
4308         * posix/regex_internal.h: Add new member STOP to struct re_string_t.
4309         (re_string_eoi): Use STOP instead of LEN.
4310         * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
4311         (re_string_construct): Likewise.
4312         (re_string_reconstruct): Adjust pstr->stop like pstr->len.
4313         * posix/regexec.c (re_search_internal): Add a new argument STOP
4314         so that it can handle the argument STOP of re_search_2 and re_match_2
4315         correctly.
4316         (regexec): Adapt to new I/F of re_search_internal.
4317         (re_search_stub): Likewise.
4318
4319 2002-07-25  Ulrich Drepper  <drepper@redhat.com>
4320
4321         * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
4322
4323         * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
4324
4325         * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
4326         * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
4327         of __divdi3.
4328
4329         * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
4330         * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
4331         * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
4332         alias for adjtimex syscall.
4333
4334         * elf/dl-minimal.c: Define __assert_fail_internal.
4335         * assert/assert.c: Likewise.
4336         * include/assert.h: Define __assert_file macro if !SHARED and not
4337         NOT_IN_libc.
4338
4339         * iconv/Makefile: Define NOT_IN_libc for objects in standalone
4340         programs.
4341         * locale/Makefile: Likewise.
4342         * nscd/Makefile: Likewise.
4343         * catgets/Makefile: Likewise.
4344
4345 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
4346
4347         * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
4348         compute current position.
4349
4350         * stdio-common/tst-fseek.c (main): Improve error messages.
4351
4352         * libio/tst-freopen.c (main): Remove unused variable.
4353
4354         * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
4355         succesful seek call.  Simplify error checking.
4356
4357 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4358
4359         * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
4360         * sysdeps/ia64/fpu/libm_support.h: Likewise.
4361
4362 2002-07-19  Roland McGrath  <roland@frob.com>
4363
4364         * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
4365         __libc_enable_secure is set.
4366
4367 2002-07-24  Roland McGrath  <roland@frob.com>
4368
4369         Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
4370         This implementation supports only IPv4.
4371         * inet/ifaddrs.h: New file.
4372         * sysdeps/generic/ifaddrs.c: New file.
4373         * sysdeps/gnu/ifaddrs.c: New file.
4374         * inet/test-ifaddrs.c: New file.
4375         * inet/Makefile (routines): Add ifaddrs.
4376         (headers): Add ifaddrs.h here.
4377         (tests): Add test-ifaddrs.
4378         * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
4379
4380         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
4381         socket call to get an AF_INET socket, instead of using __opensock.
4382         The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
4383
4384         * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
4385         if not -1 use it instead of calling __opensock.
4386         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
4387         * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
4388         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
4389
4390         * sysdeps/mach/hurd/ifreq.h: New file.
4391         * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
4392         * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
4393         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
4394
4395         * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
4396         which gets moved around.  Calculate size of mmap'd buffer instead.
4397
4398 2002-07-24  Philip Blundell  <philb@gnu.org>
4399
4400         * sysdeps/unix/arm/brk.S: Improve schedule.
4401         * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
4402         efficient instruction.
4403         (__socket): Optimize return sequence.
4404
4405 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
4406
4407         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
4408         sockets on old kernels.
4409
4410 2002-07-22  Philip Blundell  <philb@gnu.org>
4411
4412         * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
4413         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
4414         alias.
4415
4416 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
4417
4418         * locale/hashval.h: Make more self-contained by defining LONG_BITS.
4419         * locale/programs/simple-hash.c: Remove LONG_BITS definition.
4420
4421         * locale/programs/locarchive.c (add_locale_to_archive): Correct
4422         test to detect duplicate locales.
4423
4424         * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
4425         position would be before beginning of file.
4426         (_IO_file_seekoff_mmap): Likewise.
4427         * libio/Makefile (tests): Add bug-fseek.
4428         * libio/bug-fseek.c: New file.
4429
4430         * intl/explodename.c: Remove support for CEN-style locale variables.
4431         It was never used and shouldn't be since it's not portable.
4432         * intl/finddomain.c: Likewise.
4433         * intl/l10nflist.c: Likewise.
4434         * intl/loadinfo.h: Likewise.
4435         * locale/findlocale.c: Likewise.
4436
4437 2002-07-24  Roland McGrath  <roland@frob.com>
4438
4439         * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
4440         position, calculate it to take into account an active pushback buffer.
4441
4442         * libio/Makefile (tests): Add bug-ungetc.
4443         * libio/bug-ungetc.c: New file.
4444
4445 2002-07-23  Ulrich Drepper  <drepper@redhat.com>
4446
4447         * sysdeps/generic/libc-tls.c: New file.
4448         * csu/Makefile (routines): Add libc-tls.
4449         (static-only-routines): Add libc-tls.
4450         * elf/dl-support.c (_dl_phdr): New variable.
4451         (_dl_phnum): New variable.
4452         (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
4453         * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
4454         for !SHARED.  First look through auxiliary vector.  If TLS always
4455         call __pthread_initialize_minimal.
4456
4457         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
4458         in mmap call is never zero.
4459
4460 2002-07-23  Andreas Jaeger  <aj@suse.de>
4461
4462         * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
4463         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
4464
4465 2002-07-22  Ulrich Drepper  <drepper@redhat.com>
4466
4467         * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
4468         creation and removal of the temp file.
4469
4470         * libio/bug-rewind.c: Use test skeleton.  Use create_temp_file for
4471         file creation.
4472         * test-skeleton.c (create_temp_file): New function.
4473
4474 2002-07-22  Andreas Jaeger  <aj@suse.de>
4475
4476         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
4477         local label.
4478
4479 2002-07-21  Roland McGrath  <roland@frob.com>
4480
4481         * wcsmbs/Makefile (strtox-CFLAGS): New variable,
4482         put -I../include before -I../stdlib so we get the right errno.h et al.
4483         (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
4484         (CFLAGS-wcstof.c): Likewise.
4485         (CFLAGS-wcstold.c): Likewise.
4486         (CFLAGS-wcstod_l.c): Likewise.
4487         (CFLAGS-wcstof_l.c): Likewise.
4488         (CFLAGS-wcstold_l.c): Likewise.
4489
4490 2002-07-19  Roland McGrath  <roland@frob.com>
4491
4492         * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
4493
4494 2002-07-20  Ulrich Drepper  <drepper@redhat.com>
4495
4496         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
4497         __ASSUME_AT_XID is defined.
4498         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
4499         for 2.4.1 and up.
4500         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
4501         of AT_UID, AT_EUID, AT_GID, and AT_EGID.
4502
4503         * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
4504         (CFLAGS-wcstof.c): Likewise.
4505         (CFLAGS-wcstold.c): Likewise.
4506         (CFLAGS-wcstod_l.c): Likewise.
4507         (CFLAGS-wcstof_l.c): Likewise.
4508         (CFLAGS-wcstold_l.c): Likewise.
4509
4510 2002-07-18  Jakub Jelinek  <jakub@redhat.com>
4511
4512         * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
4513         __priority_which_t): Always typedef to int for C++.
4514
4515 2002-07-19  Ulrich Drepper  <drepper@redhat.com>
4516
4517         * configure.in: Add test for __thread support in compiler.
4518         * config.h.in: Add HAVE___THREAD.
4519         * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
4520         * include/sys/errno.h: Moved to...
4521         * stdlib/sys/errno.h: ...here.  New file.
4522         * stdlib/errno.h: New file.  Moved from...
4523         * include/errno.h: ...here.  Changed into an internal header defining
4524         libc-local things like __set_errno.
4525         * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
4526         bits/errno.h.
4527         * elf/dl-minimal.c: Include <tls.h>.  Define errno as thread-local
4528         variable if USE_TLS && HAVE___THREAD.  Don't define __errno_location
4529         either.
4530         * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
4531         from...
4532         (_dl_start_final): ...here.  Add code to initialize tls elements from
4533         bootstrap_map.
4534         * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
4535         if USE_TLS && HAVE___THREAD.
4536         * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
4537         * sysdeps/mach/hurd/bits/errno.h: Likewise.
4538         * sysdeps/standalone/arm/bits/errno.h: Likewise.
4539         * sysdeps/standalone/bits/errno.h: Likewise.
4540         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
4541         * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
4542         * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
4543         * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
4544         * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
4545         * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
4546         * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
4547         * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
4548         use GL(dl_rtld_map), use map parameter.
4549         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
4550         * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
4551         USE_TLS && HAVE___THREAD.
4552         * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
4553         definitions.  If USE_TLS && HAVE___THREAD store errooor value using
4554         TLS code sequence.
4555         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
4556
4557         * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
4558         * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
4559         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
4560         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
4561         * sysdeps/unix/sysv/linux/readv.c: Likewise.
4562         * sysdeps/unix/sysv/linux/writev.c: Likewise.
4563
4564 2002-07-17  Ulrich Drepper  <drepper@redhat.com>
4565
4566         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
4567         MS_INVALIDATE values.
4568
4569 2002-07-17  Andreas Schwab  <schwab@suse.de>
4570             Ulrich Drepper  <drepper@redhat.com>
4571
4572         * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
4573         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4574         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4575         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4576
4577 2002-07-01  H.J. Lu  <hjl@gnu.org>
4578
4579         * elf/circleload1.c (load_dso): Call "circlemod1" and check
4580         return value.
4581
4582         * elf/circlemod1.c (circlemod1): Return int.
4583         * elf/circlemod2.c (circlemod2): Likewise.
4584         * elf/circlemod2a.c (circlemod2): Likewise.
4585         * elf/circlemod3.c (circlemod3): Likewise.
4586         (circlemod3a): A new function.
4587
4588 2002-07-16  Ulrich Drepper  <drepper@redhat.com>
4589
4590         * catgets/tst-catgets.c (main): Don't expect results for
4591         untranslated messages.
4592
4593         * glibcbug.in: Fix little typo.  Remove STDIO.
4594
4595         * config.h.in: Fail if __FAST_MATH__ is defined.
4596         * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
4597         (CPPFLAGS-test-idouble.c): Likewise.
4598         (CPPFLAGS-test-ildouble.c): Likewise.
4599
4600 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
4601
4602         * intl/tst-gettext.sh: Pass -f option to msgfmt.
4603         * intl/tst-gettext.c: Correctly handle untranslated messages in
4604         positive tests.
4605
4606         * po/de.po: Update from translation team.
4607
4608 2002-07-02  H.J. Lu  <hjl@gnu.org>
4609
4610         * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>.  Always
4611         use ll/sc.
4612         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
4613
4614         * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
4615         to 2.4.0 for mips.
4616
4617 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
4618
4619         * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
4620         TLS fail if USE_TLS is not defined.
4621
4622         * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
4623         and adjust state for seek position.  [PR libc/4070]
4624         * libio/Makefile (tests): Add bug-rewind.
4625         * libio/bug-rewind.c: New file.
4626
4627 2002-07-12  Philip Blundell  <philb@gnu.org>
4628
4629         * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
4630         (__backtrace): Use it.
4631         * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define.  [PR libc/2632]
4632
4633 2002-07-12  Philip Blundell  <philb@gnu.org>
4634
4635         * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
4636         R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
4637         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
4638         (elf_machine_rela): Remove unused variable.
4639
4640         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
4641         (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
4642         define.
4643
4644 2002-07-12  Ulrich Drepper  <drepper@redhat.com>
4645
4646         * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
4647
4648 2002-07-14  Andreas Jaeger  <aj@suse.de>
4649
4650         * sysdeps/x86_64/bits/link.h: Add biarch support.
4651
4652 2002-07-13  Andreas Jaeger  <aj@suse.de>
4653
4654         * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
4655         Use correct indices.
4656         Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
4657
4658 2002-07-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4659
4660         * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
4661         * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
4662         * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
4663         * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
4664         * sysdeps/s390/s390-32/bits/link.h: Remove.
4665         * sysdeps/s390/s390-64/bits/link.h: Remove.
4666         * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
4667         * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
4668         * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
4669         * sysdeps/s390/bits/wordsize.h: New file.
4670         * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
4671         elfclass.h.
4672         * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
4673         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
4674         * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
4675         * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
4676         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
4677         * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
4678         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
4679         * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
4680         * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
4681         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
4682         * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
4683         * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
4684         resource.h.
4685         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
4686         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
4687         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
4688         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
4689         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
4690         * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
4691         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
4692         sigaction.h.
4693         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
4694         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
4695         siginfo.h.
4696         * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
4697         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
4698         * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
4699         socket.h.
4700         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
4701         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
4702         * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
4703         * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
4704         * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
4705         * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
4706         * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
4707         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
4708         procfs.h.
4709         * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
4710         * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
4711         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
4712         ucontext.h.
4713         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
4714         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
4715
4716 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
4717
4718         * Versions.def (libc): Add GLIBC_2.3.
4719         * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
4720         * stdlib/canonicalize.c: Add compatibility version for realpath
4721         and make new code available in GLIBC_2.3.
4722
4723 2002-07-06  Bruno Haible  <bruno@clisp.org>
4724
4725         * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
4726
4727 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
4728
4729         * resolv/res_hconf.c (_res_hconf_init): Move code into new
4730         function do_init.  Use __libc_once.
4731         (do_init): New function.
4732
4733         * iconvdata/iso8859-11.h: Removed.
4734         * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
4735         (distribute): Remove iso8859-11.h.
4736         * iconvdata/tst-tables.sh: Add ISO-8859-11.
4737
4738         * stdio-common/vfscanf.c (inchar): Restore errno from previous
4739         underflow operation if c == (W)EOF.
4740
4741 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
4742
4743         * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
4744         non-zero, adjust exponent.
4745         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
4746         Remove NO_LONG_DOUBLE aliases.
4747         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
4748         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
4749         (__log1pl): Raise divide by zero and invalid exceptions when needed.
4750         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
4751         1**y and -1**+-Inf.
4752         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
4753         Fix BITS_PER_MP_LIMB 32 extraction.
4754         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
4755         exceptions for qNaNs.
4756         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
4757         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
4758         Raise exceptions when needed.  Don't recurse unnecessarily.
4759         Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
4760         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
4761         exceptions for qNaNs.
4762         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
4763         to fix *quo return value sign.
4764         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
4765         case -Inf argument.
4766         * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
4767
4768 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
4769
4770         * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
4771         * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
4772         -DNDEBUG.
4773
4774 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
4775
4776         * malloc/hooks.c (realloc_check): If mremap succeeds actually use
4777         the result.
4778
4779         * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
4780         output parameter.  Reported by Denis Zaitsev <zzz@cd-club.ru>.
4781
4782         * Versions.def (libthread_db): Add GLIBC_2.3.
4783
4784 2002-07-09  Jakub Jelinek  <jakub@redhat.com>
4785
4786         * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
4787         new stream if possible.
4788         * libio/freopen64.c (freopen64): Likewise.
4789         * libio/Makefile (tests): Add tst-freopen.
4790         * libio/tst-freopen.c: New file.
4791
4792 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
4793
4794         * libio/stdio.h (obstack_printf): Add format attribute.
4795         (obstack_vprintf): Likewise.
4796
4797 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
4798
4799         * posix/regex_internal.h (re_token_t): Shrink the structure to 8
4800         resp. 16 bytes on 32-bit resp. 64-bit platforms.
4801         (re_charset_t, re_string_t): Reorder structure members for 64-bit
4802         architectures.
4803
4804 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
4805
4806         * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
4807         (init_dfa): ...here.
4808
4809 2002-07-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
4810
4811         * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
4812         OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
4813         nodes in parse trees.
4814         (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
4815         and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
4816         (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
4817         nodes which can epsilon transit.
4818         * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
4819         to IS_EPSILON_NODE macro.
4820         * posix/regexec.c (update_regs): New function to update registers
4821         by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
4822         (proceed_next_node): Use the entities of the nodes to determine
4823         whether the node can transit to.
4824         (set_regs): Use update_regs function to update registers.
4825
4826 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
4827
4828         * posix/bug-regex4.c (main): Remove duplicate setlocale.
4829         * posix/bug-regex6.c: New file.
4830         * posix/Makefile (tests): Add bug-regex6.
4831         (bug-regex6-ENV): Set LOCPATH.
4832
4833 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
4834
4835         * Versions.def [libpthread]: Add GLIBC_2.2.6.
4836         * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
4837
4838 2002-07-06  Bruno Haible  <bruno@clisp.org>
4839
4840         * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
4841
4842 2002-07-06  Bruno Haible  <bruno@clisp.org>
4843
4844         * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
4845         declarations.
4846
4847         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
4848
4849         * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
4850
4851         * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
4852         not _UTSNAME_H.
4853         * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
4854
4855         * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
4856         * sysdeps/generic/bits/ustat.h: Likewise.
4857
4858         * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
4859
4860 2002-07-08  Andreas Jaeger  <aj@suse.de>
4861
4862         * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
4863
4864 2002-07-08  Andreas Jaeger  <aj@suse.de>
4865
4866         * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
4867
4868 2002-07-06  Andreas Jaeger  <aj@suse.de>
4869
4870         * sysdeps/x86_64/fpu/bits/mathinline.h: New file.
4871         * sysdeps/x86_64/fpu/s_copysign.S: New file.
4872         * sysdeps/x86_64/fpu/s_copysignf.S: New file.
4873         * sysdeps/x86_64/fpu/s_copysignl.S: New file.
4874         * sysdeps/x86_64/fpu/s_finitel.S: New file.
4875         * sysdeps/x86_64/fpu/s_fmax.S: New file.
4876         * sysdeps/x86_64/fpu/s_fmaxf.S: New file.
4877         * sysdeps/x86_64/fpu/s_fmaxl.S: New file.
4878         * sysdeps/x86_64/fpu/s_fmin.S: New file.
4879         * sysdeps/x86_64/fpu/s_fminf.S: New file.
4880         * sysdeps/x86_64/fpu/s_fminl.S: New file.
4881
4882 2002-06-05  Brian Youmans <3diff@gnu.org>
4883
4884         * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
4885         * sysdeps/ia64/fpu/e_acosf.S: Likewise.
4886         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
4887         * sysdeps/ia64/fpu/e_asin.S: Likewise.
4888         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
4889         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
4890         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
4891         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
4892         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
4893         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
4894         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
4895         * sysdeps/ia64/fpu/e_exp.S: Likewise.
4896         * sysdeps/ia64/fpu/e_expf.S: Likewise.
4897         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
4898         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
4899         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
4900         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
4901         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
4902         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
4903         * sysdeps/ia64/fpu/e_log.S: Likewise.
4904         * sysdeps/ia64/fpu/e_logf.S: Likewise.
4905         * sysdeps/ia64/fpu/e_pow.S: Likewise.
4906         * sysdeps/ia64/fpu/e_powf.S: Likewise.
4907         * sysdeps/ia64/fpu/e_powl.S: Likewise.
4908         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
4909         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
4910         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
4911         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
4912         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
4913         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
4914         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
4915         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
4916         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
4917         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
4918         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
4919         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
4920         * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
4921         * sysdeps/ia64/fpu/libm_error.c: Likewise.
4922         * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
4923         * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
4924         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
4925         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
4926         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
4927         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
4928         * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
4929         * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
4930         * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
4931         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
4932         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
4933         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
4934         * sysdeps/ia64/fpu/s_logb.S: Likewise.
4935         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
4936         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
4937         * sysdeps/ia64/fpu/s_modf.S: Likewise.
4938         * sysdeps/ia64/fpu/s_modff.S: Likewise.
4939         * sysdeps/ia64/fpu/s_modfl.S: Likewise.
4940         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
4941         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
4942         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
4943         * sysdeps/ia64/fpu/s_rint.S: Likewise.
4944         * sysdeps/ia64/fpu/s_rintf.S: Likewise.
4945         * sysdeps/ia64/fpu/s_rintl.S: Likewise.
4946         * sysdeps/ia64/fpu/s_round.S: Likewise.
4947         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
4948         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
4949         * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
4950         * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
4951         * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
4952         * sysdeps/ia64/fpu/s_significand.S: Likewise.
4953         * sysdeps/ia64/fpu/s_significandf.S: Likewise.
4954         * sysdeps/ia64/fpu/s_significandl.S: Likewise.
4955         * sysdeps/ia64/fpu/s_tan.S: Likewise.
4956         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
4957         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
4958         * sysdeps/ia64/fpu/s_trunc.S: Likewise.
4959         * sysdeps/ia64/fpu/s_truncf.S: Likewise.
4960         * sysdeps/ia64/fpu/s_truncl.S: Likewise.
4961         * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
4962         reflect IBM donation of math library to FSF
4963         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
4964         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
4965         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
4966         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
4967         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
4968         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
4969         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
4970         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
4971         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
4972         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
4973         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
4974         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
4975         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
4976         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
4977         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
4978         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
4979         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
4980         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
4981         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
4982         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
4983         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
4984         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
4985         * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
4986         * sysdeps/vax/__longjmp.c: Likewise.
4987         * sysdeps/vax/setjmp.c: Likewise.
4988         * libio/filedoalloc.c: Fixed BSD copying permission notice to
4989         remove advertising clause
4990         * sysdeps/vax/htonl.s: Likewise.
4991         * sysdeps/vax/htons.s: Likewise.
4992         * libio/wfiledoalloc.c: Likewise.
4993         * stdlib/random.c: Likewise.
4994         * stdlib/random_r.c: Likewise.
4995         * sysdeps/mach/sys/reboot.h: Likewise.
4996         * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
4997         * sysdeps/posix/getaddrinfo.c: Likewise.
4998         * sunrpc/des_impl.c: Updated license permission notice to Lesser
4999         GPL and corrected pointer to point to the correct license.
5000
5001 2002-07-04  Andreas Jaeger  <aj@suse.de>
5002
5003         * scripts/config.guess: New upstream version.
5004         * scripts/config.sub: Likewise.
5005
5006 2002-07-02  Andreas Schwab  <schwab@suse.de>
5007
5008         * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
5009         in parallel to bumping up the buffer pointer.
5010
5011 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
5012
5013         * math/libm-test.inc (acos_test): Add missing L suffix for
5014         expected result.
5015         (cpow_test): Likewise.
5016         * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
5017         error for acos (0.0625).
5018
5019 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
5020
5021         * locale/iso-639.def: Add entry for Ganda.
5022         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
5023         definition.
5024         (address_finish): Handle entries with two letter ISO 639 code.
5025
5026         * iconvdata/Makefile: Recreate gconv-modules.cache file in target
5027         directory if it existed before.
5028         * iconv/iconvconfig.c: Implement --prefix option.
5029
5030         * math/libm-test.inc (cexp_test): Add missing L suffix for
5031         expected result.  Reported by Stephen L Moshier <steve@moshier.net>.
5032         * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
5033         1.25 i).
5034
5035 2002-05-29  H.J. Lu  <hjl@gnu.org>
5036
5037         * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
5038         is turned on.
5039
5040 2002-05-28  H.J. Lu  <hjl@gnu.org>
5041
5042         * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
5043         are not dlopened on the dependency list of a dlopened object.
5044
5045 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
5046
5047         * elf/dl-lookup.c (add_dependency): It is not necessary to add
5048         dependencies if they are created between objects which are created
5049         while processing RTLD_NOW for objects loaded as part of the same
5050         dlopen call.
5051
5052 2002-06-14  H.J. Lu  <hjl@gnu.org>
5053
5054         * elf/Makefile (tests): Add circleload1.
5055         (modules-names): Add circlemod1, circlemod2, circlemod3,
5056         circlemod1a, circlemod2a and circlemod3a.
5057         ($(objpfx)circleload1): New target.
5058         ($(objpfx)circleload1.out): Likewise.
5059         ($(objpfx)circlemod1.so): Likewise.
5060         ($(objpfx)circlemod2.so): Likewise.
5061         ($(objpfx)circlemod1a.so): Likewise.
5062         ($(objpfx)circlemod2a.so): Likewise.
5063         * elf/circleload1.c: New file.
5064         * elf/circlemod1.c: New file.
5065         * elf/circlemod1a.c: New file.
5066         * elf/circlemod2.c: New file.
5067         * elf/circlemod2a.c: New file.
5068         * elf/circlemod3.c: New file.
5069         * elf/circlemod3a.c: New file.
5070
5071 2002-06-18  Amos Waterland  <apw@us.ibm.com>
5072
5073         * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
5074         file descriptor.
5075         * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
5076         add check for fd not open for writing.
5077
5078         * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
5079         completed element(s) and do not suspend thread if so.  Patch
5080         heavily modified by drepper.
5081
5082         * rt/tst-aio7.c: New file.  Regression test for problems which the
5083         above three changes fix.
5084         * rt/Makefile (tests): Add tst-aio7.
5085
5086 2002-06-29  Ulrich Drepper  <drepper@redhat.com>
5087
5088         * rt/tst-aio6.c: Fix comment.
5089
5090         * catgets/gencat.c (read_input_file): Handle more than one slash
5091         at end of line correctly [PR libc/3926].
5092         Based on a patch by Steven Kim <steven.kim@peregrine.com>.
5093
5094         * catgets/sample.SJIS: Add test case for above bug.
5095         * catgets/test-gencat.c: Adjust test code.
5096         * catgets/test-gencat.sh: Adjust expected results.
5097
5098         * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
5099         to skip relative relocations.
5100         Patch by Geoff Keating <geoffk@redhat.com>.
5101
5102 2002-05-26  Bruno Haible  <bruno@clisp.org>
5103
5104         * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
5105         (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
5106         All callers changed.
5107         * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
5108         STANDARD_FROM_LOOP_ERR_HANDLER.
5109         (utf8_internal_loop): Likewise.
5110         (ucs2_internal_loop): Likewise.
5111         (internal_ucs2_loop): Perform error handling like in
5112         STANDARD_FROM_LOOP_ERR_HANDLER.
5113         * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
5114         in STANDARD_FROM_LOOP_ERR_HANDLER.
5115         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5116         handling.
5117         * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
5118         in STANDARD_FROM_LOOP_ERR_HANDLER.
5119         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5120         handling.
5121         * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
5122         in STANDARD_FROM_LOOP_ERR_HANDLER.
5123         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5124         handling.
5125         * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
5126         STANDARD_FROM_LOOP_ERR_HANDLER.
5127         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
5128         * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
5129         * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
5130         * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
5131         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
5132         * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
5133         * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
5134         * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
5135         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
5136         * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
5137         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
5138         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
5139         * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
5140         * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
5141         * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
5142         * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
5143         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
5144         * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
5145         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
5146         * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
5147         * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
5148         * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
5149         * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
5150         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5151         * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
5152         * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
5153         * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
5154         * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
5155         * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise.  When ignoring
5156         an error, still set result = __GCONV_ILLEGAL_INPUT.
5157         (BODY for TO_LOOP): Likewise.
5158         * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
5159         STANDARD_FROM_LOOP_ERR_HANDLER.
5160         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5161         * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
5162         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5163         handling.
5164         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5165         * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
5166         STANDARD_FROM_LOOP_ERR_HANDLER.
5167         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5168         * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
5169         STANDARD_FROM_LOOP_ERR_HANDLER.
5170         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5171         * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
5172         STANDARD_FROM_LOOP_ERR_HANDLER.
5173         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5174         * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
5175         STANDARD_FROM_LOOP_ERR_HANDLER.
5176         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5177         * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
5178         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5179         handling.
5180         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5181         * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
5182         * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
5183         * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
5184
5185 2002-06-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5186
5187         * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
5188         labels in assembler instructions.
5189
5190 2002-06-25  Ulrich Drepper  <drepper@redhat.com>
5191
5192         * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
5193         not enough content is available.
5194         * libio/tst-eof.c: New file.
5195         * libio/Makefile (tests): Add tst-eof.
5196
5197         * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
5198         update atime.
5199         * libio/tst-atime.c: New file.
5200         * libio/Makefile (tests): Add tst-atime.
5201
5202         * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
5203         handling of overly long words.
5204
5205 2002-06-25  Andreas Jaeger  <aj@suse.de>
5206
5207         * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
5208         to not use 32-bit pc relative relocations.
5209         (elf_machine_dynamic): Likewise.
5210
5211 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
5212
5213         * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
5214         (__GETDENTS): Check for failed getdents64 syscall.
5215         * dirent/Makefile (tests): Add bug-readdir1.
5216         * dirent/bug-readdir1.c: New file.
5217
5218 2002-06-17  Jakub Jelinek  <jakub@redhat.com>
5219
5220         * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
5221         lookups.
5222         * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
5223         code.  Print TLS modid and offset for modules containing PT_TLS
5224         segments.
5225
5226 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
5227
5228         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5229         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5230         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5231         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5232
5233 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
5234
5235         * nss/getXXbyYY_r.c (NEW, NEW1): Define.
5236         (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
5237         (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
5238         * nss/getXXent_r.c (NEW, NEW1): Define.
5239         (NEW (REENTRANT_GETNAME)): Strong alias to
5240         INTERNAL (REENTRANT_GETNAME).
5241         (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
5242
5243 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
5244
5245         * libio/fileops.c (_IO_file_setbuf_mmap): New function.
5246         (_IO_file_jumps_mmap): Use it.
5247         * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
5248         * libio/libioP.h: Remove _IO_wdefault_setbuf and
5249         _IO_wdefault_setbuf_internal prorotypes.  Add _IO_file_setbuf_mmap
5250         prototype.
5251         * libio/wfileops.c (_IO_wfile_setbuf): Removed.
5252         (_IO_wfile_jumps_mmap): Don't use it anymore.
5253         * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
5254         * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
5255         _IO_wdefault_setbuf.
5256         * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
5257         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
5258         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
5259
5260 2002-06-05  Jakub Jelinek  <jakub@redhat.com>
5261
5262         * libio/Makefile (tests): Add tst-mmap-setvbuf.
5263         * libio/tst-mmap-setvbuf.c: New test.
5264
5265 2002-06-21  Andreas Jaeger  <aj@suse.de>
5266
5267         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
5268
5269 2002-06-18  Jakub Jelinek  <jakub@redhat.com>
5270
5271         * include/unistd.h (__fork_internal): Remove.
5272         (__fork): Don't define to __fork_internal.
5273         * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
5274         * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
5275         * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
5276         * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
5277         * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
5278
5279 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
5280
5281         * po/hr.po: New file.
5282
5283 2002-06-11  Wolfram Gloger  <wg@malloc.de>
5284
5285         * malloc/malloc.c: Fix error path when new_heap() returns NULL.
5286         Reported by Michael Meissner <meissner@redhat.com>.
5287
5288 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
5289
5290         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
5291         Patch by Hans Boehm <hans_boehm@hp.com>.
5292
5293 2002-06-20  Andreas Jaeger  <aj@suse.de>
5294
5295         * math/libm-test.inc: Use exact values as input parameters,
5296         compute output parameters with 36 digits for 128-bit long doubles.
5297         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
5298         * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
5299         * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
5300
5301 2002-06-13  Stephen L Moshier  <steve@moshier.net>
5302
5303         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
5304         argument or result is subnormal.
5305
5306 2002-06-19  Ulrich Drepper  <drepper@redhat.com>
5307
5308         * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
5309         quotient.
5310         * sysdeps/i386/fpu/s_remquof.S: Likewise.
5311         * sysdeps/i386/fpu/s_remquol.S: Likewise.
5312
5313         * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
5314
5315 2002-06-17  David Mosberger  <davidm@hpl.hp.com>
5316
5317         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
5318         typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
5319         Reported by Peter A. Buhr.
5320
5321 2002-06-15  Roland McGrath  <roland@frob.com>
5322
5323         * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
5324         warning.
5325
5326         * sysdeps/mach/hurd/getcwd.c
5327         (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
5328
5329         * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
5330         * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
5331
5332         * sysdeps/alpha/divrem.h: Use local label instead of global one for
5333         jump to local subroutine.
5334
5335 2002-06-14  Roland McGrath  <roland@frob.com>
5336
5337         * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
5338         * sysdeps/mach/hurd/Makeconfig: ... here.
5339
5340 2002-06-13  Andreas Schwab  <schwab@suse.de>
5341
5342         * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
5343         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
5344         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
5345
5346 2002-06-13  Roland McGrath  <roland@frob.com>
5347
5348         * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
5349         * hurd/hurdstartup.c (_hurd_startup): Likewise.
5350         Use intptr_t instead of int for argc in stack layout.
5351         * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
5352         (_dl_init_first): Likewise.
5353         (_hurd_stack_setup): Likewise.
5354         (init1): Add a cast.
5355         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
5356
5357         * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
5358         argument to pfinet_siocgifconf RPC.
5359
5360 2002-06-13  Andreas Schwab  <schwab@suse.de>
5361
5362         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
5363         expansion order.
5364
5365 2002-06-12  Roland McGrath  <roland@frob.com>
5366
5367         * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
5368         if already defined.
5369         [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
5370         [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
5371
5372 2002-06-11  Roland McGrath  <roland@frob.com>
5373
5374         * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
5375         file on [!RTLD_STAT64].
5376         * sysdeps/mach/hurd/fxstat64.c: Likewise.
5377
5378         * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
5379         (__fdopen): Use INTUSE.
5380         * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
5381
5382         * stdio-common/tmpfile64.c: File removed.
5383         * sysdeps/generic/tmpfile64.c: New file.
5384         * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
5385         if not already defined.
5386         (tmpfile): Use it in place of __GT_FILE.
5387
5388         * include/unistd.h: Declare __chown_internal.
5389
5390         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
5391         * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
5392
5393 2002-06-09  Roland McGrath  <roland@frob.com>
5394
5395         Update to new Hurd RPC interfaces supporting 64-bit file sizes.
5396         * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
5397         value of HURD_INTERFACE_VERSION >= 20020609.
5398         * sysdeps/mach/hurd/configure: Regenerated.
5399         * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
5400         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
5401         convert a struct stat64 into a struct stat and return 0 or -1
5402         with errno set to EOVERFLOW.
5403         * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
5404         for struct statfs64 to struct statfs.
5405         * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
5406         * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
5407         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
5408         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
5409         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
5410         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
5411         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
5412         * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
5413         * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
5414         * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
5415         * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
5416         * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
5417         * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
5418         * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
5419         * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
5420         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
5421         * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
5422         * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
5423         * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
5424         * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
5425         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
5426         Use struct stat64 for io_stat argument.
5427         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
5428         * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
5429         to io_seek.
5430         * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
5431         * hurd/fd-write.c (_hurd_fd_write): Likewise.
5432         * hurd/hurd/fd.h: Update decls.
5433         * sysdeps/mach/hurd/getcwd.c
5434         (_hurd_canonicalize_directory_name_internal): Use ino64_t
5435         and struct dirent64.
5436         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
5437         (__xstat): Renamed to __xstat64, use struct stat64 for argument.
5438         (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
5439         (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
5440
5441 2002-06-08  Roland McGrath  <roland@frob.com>
5442
5443         * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
5444         instead of unsigned long int for __allocation and __size members.
5445
5446 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
5447
5448         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5449         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5450         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5451         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5452
5453 2002-06-07  Roland McGrath  <roland@frob.com>
5454
5455         * sysdeps/mach/hurd/bits/environments.h: File removed.
5456
5457 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
5458
5459         * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
5460         * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
5461         * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
5462         * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
5463         * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
5464         (sendfile64): Likewise.
5465         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
5466         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
5467         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
5468         Likewise.
5469         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
5470
5471         * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
5472         already defined.
5473
5474 2002-06-04  Bruno Haible  <bruno@clisp.org>
5475
5476         * sysdeps/cris/stackinfo.h: New file.
5477
5478         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
5479         to an integer type before performing bit operations on it.
5480
5481 2002-06-05  Roland McGrath  <roland@frob.com>
5482
5483         * sysdeps/generic/sendfile.c: Include <errno.h>.
5484         * sysdeps/generic/sendfile64.c: Likewise.
5485
5486         * io/Makefile (routines): Add sendfile and sendfile64.
5487         (headers): Add sys/sendfile.h to the list.
5488         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
5489         * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
5490         * io/sys/sendfile.h: ... here.
5491         * sysdeps/generic/sendfile.c: New file.
5492         * sysdeps/generic/sendfile64.c: New file.
5493
5494         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
5495         Move sendfile, sendfile64 to ...
5496         * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
5497         * sysdeps/mach/hurd/sendfile.c: New file.
5498         * sysdeps/mach/hurd/sendfile64.c: New file.
5499
5500         * sysdeps/mach/nanosleep.c: New file.
5501
5502 2002-06-04  Roland McGrath  <roland@frob.com>
5503
5504         * sysdeps/alpha/elf/configure.in: New file.  Check for TLS support.
5505         * sysdeps/alpha/elf/configure: New file (generated).
5506
5507 2002-06-02  Roland McGrath  <roland@frob.com>
5508
5509         * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
5510
5511 2002-06-01  Roland McGrath  <roland@frob.com>
5512
5513         * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
5514         i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
5515
5516 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
5517
5518         * resolv/resolv.h (struct __res_state): Remove unused nstimes.
5519         Add nsmap.
5520         * resolv/res_init.c (__res_vinit): Initialize nsmap array.
5521         Remove nstimes setting.
5522         (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
5523         * resolv/res_send.c (res_nsend): Don't close unconditionally if
5524         there is mix of IPv6 and IPv4 nameservers.
5525         Use nsmap array to find free slots and preserve nameserver ordering.
5526         Fix RES_ROTATE.
5527
5528 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
5529
5530         * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
5531         use this header with LFS.
5532
5533         * po/sk.po: Update from translation team.
5534
5535 2002-05-28  Andreas Schwab  <schwab@suse.de>
5536
5537         * sysdeps/generic/readelflib.c (process_elf_file): Give correct
5538         message when finding object of wrong class.
5539
5540 2002-05-28  Jakub Jelinek  <jakub@redhat.com>
5541
5542         * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
5543         Patch by <radu@netsoft.ro>.
5544
5545 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
5546
5547         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
5548         Add readahead.
5549         * sysdeps/unix/sysv/linux/readahead.c: New file.
5550         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
5551         * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
5552         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
5553         Add sendfile64 alias to sendfile syscall.
5554         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5555         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
5556         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5557         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
5558         syscall.
5559
5560         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
5561         special section for PIC register loading.
5562         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
5563
5564         * config.h.in: Define HAVE_HIDDEN.
5565         * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
5566
5567         * elf/elf.h: Correct Alpha TLS relocations according to last spec.
5568
5569 2002-05-28  Roland McGrath  <roland@frob.com>
5570
5571         * sysdeps/mach/alpha/setfpucw.c: New file.
5572
5573 2002-05-26  Roland McGrath  <roland@frob.com>
5574
5575         * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
5576         Use integer_t instead of int for IOC_VOID case.
5577
5578 2002-05-27  Alexandre Oliva  <aoliva@redhat.com>
5579
5580         * configure.in (DO_STATIC_NSS): Define if --disable-shared.
5581
5582 2002-05-26  Bruno Haible  <bruno@clisp.org>
5583
5584         * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
5585         end of the ISO-8859-7 from idx table.
5586
5587 2002-05-27  Ulrich Drepper  <drepper@redhat.com>
5588
5589         * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
5590
5591 2002-05-24  David S. Miller  <davem@redhat.com>
5592
5593         * string/bits/string2.h (memset): Do not try to optimize when
5594         not _STRING_ARCH_unaligned if GCC will do the right thing.
5595
5596 2002-05-21  Isamu Hasegawa  <isamu@yamato.ibm.com>
5597
5598         * posix/regex.c: Define `inline' as a macro into nothing for the
5599         compilers which lack the keyword.
5600         * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
5601         for the compatibility of gawk.
5602         * posix/regcomp.c: Add fake implementation of isblank() for the
5603         environments which lack the function.
5604         Don't use free_charset() in case of non-i18n envs.
5605         (build_range_exp): Don't use i18n related code in case of non-i18n
5606         envs.
5607         (build_collating_symbol): Likewise.
5608         (build_equiv_class): Likewise.
5609         (build_charclass): Likewise.
5610         (re_compile_fastmap_iter): Likewise.
5611         (parse_bracket_exp): Likewise.
5612         (build_word_op): Likewise.
5613         (regfree): Don't use free_charset() in case of non-i18n envs.
5614         * posix/regex_internal.h: Remove COMPLEX_BRACKET from
5615         re_token_type_t in case of non-i18n envs.
5616         Don't define re_charset_t in case of non-i18n envs.
5617         Change the type of wcs of re_string_t from wchar_t to wint_t,
5618         since we store also WEOF.
5619         * posix/regex_internal.c: (re_string_realloc_buffers): Change
5620         the type of wcs of re_string_t from wchar_t to wint_t.
5621         (re_string_reconstruct): Likewise.
5622         (create_ci_newstate): Don't use i18n related code in case of
5623         non-i18n envs.
5624         (create_cd_newstate): Likewise.
5625
5626 2002-05-24  Ulrich Drepper  <drepper@redhat.com>
5627
5628         * iconv/loop.c: Fix typo.
5629
5630 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
5631
5632         * inet/ether_line.c (ether_line): Fix a typo causing only
5633         lower 4 bits of each ethernet address byte being assigned.
5634         Don't modify what line points to.
5635         * inet/tst-ether_aton.c (main): Add ether_line tests.
5636
5637 2002-05-23  Marcus Brinkmann  <marcus@gnu.org>
5638
5639         * manual/filesys.texi: Don't make readlink example leak memory
5640         when readlink fails.
5641
5642 2002-05-20  Ulrich Drepper  <drepper@redhat.com>
5643
5644         * iconv/loop.c: Fix condition for defining unaligned loop.  Add
5645         some more security checks.
5646
5647 2002-05-17  David S. Miller  <davem@redhat.com>
5648
5649         * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
5650
5651 2002-05-16  David S. Miller  <davem@redhat.com>
5652
5653         * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
5654         (elf_machine_dynamic): Use it to force PIC register to be loaded.
5655         (elf_machine_load_address): Likewise.
5656         * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
5657
5658         * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
5659         is unaligned, do not forget to fully initialize %g1 magic value.
5660
5661         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
5662         register definitions and provide 32-bit variants of structures
5663         during 64-bit builds.
5664
5665         * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
5666         * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
5667         * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
5668         * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
5669         _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
5670         (_FP_FROM_INT): Perform right shifts on unsigned integer type.
5671         Do not clear implicit one bit here, it must be done post-rounding.
5672         Only pad to the left using left shift if value uses less than the
5673         available fractional bits.
5674
5675 2002-05-20  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5676
5677         * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
5678         instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
5679         (shared-only-routines): Likewise.
5680         * sysdeps/powerpc/libgcc-compat.c: New file.
5681         * sysdeps/wordsize-32/cmpdi2.c: Removed.
5682         * sysdeps/wordsize-32/fixdfdi.c: Removed.
5683         * sysdeps/wordsize-32/fixsfdi.c: Removed.
5684         * sysdeps/wordsize-32/shdi3.c: Removed.
5685
5686 2002-05-16  Bruno Haible  <bruno@clisp.org>
5687
5688         * MakeTAGS (libc.pot): Don't sort the output.
5689         * po/header.pot: Update to match xgettext 0.11 output.
5690
5691 2002-05-16  Bruno Haible  <bruno@clisp.org>
5692
5693         * MakeTAGS (subdirs): Remove duplicates.
5694
5695 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
5696
5697         * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
5698         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
5699         alias.
5700
5701 2002-05-19  Andreas Jaeger  <aj@suse.de>
5702
5703         * sysdeps/unix/sysv/linux/configure.in: Warn against an
5704         installation in /usr/local.
5705
5706 2002-05-16  Bruno Haible  <bruno@clisp.org>
5707
5708         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
5709         string as argument of #error.
5710
5711 2002-05-15  Ulrich Drepper  <drepper@redhat.com>
5712
5713         * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
5714         don't define static.  Remove old __realpath function.  TC1 of
5715         POSIX 2001 will allow the second parameter to be NULL.
5716         * stdlib/test-canon.c: Comment out test for NULL as second
5717         parameter of realpath.
5718
5719         * time/offtime.c (__offtime): Set errno if overflow is detected.
5720
5721         * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
5722         * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
5723         dl-brk and dl-sbrk.
5724
5725         * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
5726         (fdimf): Likewise.
5727
5728 2002-05-15  Roland McGrath  <roland@frob.com>
5729
5730         * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
5731
5732 2002-05-12  Bruno Haible  <bruno@clisp.org>
5733
5734         * iconvdata/testdata/EUC-JISX0213: New file.
5735         * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
5736         * iconvdata/testdata/SHIFT_JISX0213: New file.
5737         * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
5738         * iconvdata/testdata/ISO-2022-JP-3: New file.
5739         * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
5740         * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
5741         * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
5742         contains comments indicating precomposed characters.
5743
5744 2002-04-21  Bruno Haible  <bruno@clisp.org>
5745
5746         * iconvdata/iso-2022-jp-3.c: New file.
5747         * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
5748         * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
5749         (LDFLAGS-ISO-2022-JP-3.so): New variable.
5750         (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
5751         (distribute): Add iso-2022-jp-3.c.
5752
5753 2002-05-12  Bruno Haible  <bruno@clisp.org>
5754
5755         * iconvdata/tst-table-to.c (main): Restore handling of
5756         transliterations, broken by last patch.
5757
5758 2002-05-12  Bruno Haible  <bruno@clisp.org>
5759
5760         * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
5761
5762 2002-05-12  Bruno Haible  <bruno@clisp.org>
5763
5764         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
5765         when there is not enough room in the output buffer.
5766         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5767
5768 2002-04-20  Bruno Haible  <bruno@clisp.org>
5769
5770         * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
5771         macros.
5772         (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
5773         Also make this macro work if FROM_DIRECTION evaluates to 0.
5774         (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
5775         (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
5776         of consume_incomplete.
5777         * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
5778         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
5779         4, not 8.
5780         * iconvdata/cp1258.c: Likewise.
5781         * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
5782         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
5783         not 2.
5784         * iconvdata/ibm933.c: Likewise.
5785         * iconvdata/ibm935.c: Likewise.
5786         * iconvdata/ibm937.c: Likewise.
5787         * iconvdata/ibm939.c: Likewise.
5788         * iconvdata/iso-2022-cn.c: Define
5789         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5790         {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
5791         * iconvdata/iso-2022-cn-ext.c: Likewise.
5792         * iconvdata/iso-2022-jp.c: Define
5793         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5794         {MIN,MAX}_NEEDED_{FROM,TO}.
5795         * iconvdata/tcvn5712-1.c: Define
5796         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5797         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
5798         * iconvdata/euc-jisx0213.c: Define
5799         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5800         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
5801         * iconvdata/shift_jisx0213.c: Likewise.
5802
5803 2002-05-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5804
5805         * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
5806         shdi3, fixdfdi, fixsfdi in csu dir.
5807         (shared-only-routines): Likewise.
5808         * sysdeps/wordsize-32/cmpdi2.c: New file.
5809         * sysdeps/wordsize-32/shdi3.c: New file.
5810         * sysdeps/wordsize-32/fixdfdi.c: New file.
5811         * sysdeps/wordsize-32/fixsfdi.c: New file.
5812         * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
5813         __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
5814         __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
5815
5816         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
5817         Only use va_arg if the argument will be used [PR libc/3259].
5818
5819 2002-05-06  Michael A. Schmidt  <mmaass@us.ibm.com>
5820
5821         * catgets/catgets.c (catopen): Free buffer if internal catalog
5822         open fails.
5823
5824 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
5825
5826         * debug/xtrace.sh: Make more robust.  For realtime tracking use
5827         non-buffering methods.
5828         * debug/pcprofiledump.c: Implement -u option.
5829         Patch by Roger Luethi <rl@hellgate.ch>.
5830
5831 2002-05-11  Jakub Jelinek  <jakub@redhat.com>
5832
5833         * include/netinet/in.h (bindresvport_internal): Add prototype.
5834         * include/rpc/auth.h  (authunix_create_internal,
5835         authunix_create_default_internal, authnone_create_internal,
5836         authdes_pk_create_internal): Add prototypes.
5837         * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
5838         clntudp_create_internal, clntudp_bufcreate_internal,
5839         clntunix_create_internal): Add prototypes.
5840         * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
5841         svc_getreq_internal, svc_getreq_common_internal,
5842         svc_getreqset_internal, svc_getreq_poll_internal,
5843         svc_register_internal, svc_unregister_internal,
5844         svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
5845         * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
5846         * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
5847         __setsockopt, __getsockname, __bind, __listen): Add prototypes.
5848         * inet/rexec.c (rexec_af): Use __listen and __getsockname.
5849         * inet/rcmd.c (rcmd_af): Use __listen.
5850         (rresvport_af): Use __bind.
5851         * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
5852         authunix_create, authunix_create_default, authnone_create,
5853         authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
5854         clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
5855         svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
5856         svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
5857         _authenticate, add INTDEF after such function definitions.
5858         Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
5859         __setsockopt, __getsockname instead of non-__ variants.
5860         * sunrpc/pmap_rmt.c: Likewise.
5861         * sunrpc/rtime.c: Likewise.
5862         * sunrpc/svc_udp.c: Likewise.
5863         * sunrpc/clnt_unix.c: Likewise.
5864         * sunrpc/svc_unix.c: Likewise.
5865         * sunrpc/bindrsvprt.c: Likewise.
5866         * sunrpc/svc_tcp.c: Likewise.
5867         * sunrpc/auth_none.c: Likewise.
5868         * sunrpc/clnt_raw.c: Likewise.
5869         * sunrpc/clnt_tcp.c: Likewise.
5870         * sunrpc/auth_unix.c: Likewise.
5871         * sunrpc/key_call.c: Likewise.
5872         * sunrpc/clnt_gen.c: Likewise.
5873         * sunrpc/pm_getmaps.c: Likewise.
5874         * sunrpc/clnt_simp.c: Likewise.
5875         * sunrpc/pmap_clnt.c: Likewise.
5876         * sunrpc/svc_run.c: Likewise.
5877         * sunrpc/svc.c: Likewise.
5878         * sunrpc/svc_simple.c: Likewise.
5879         * sunrpc/pm_getport.c: Likewise.
5880         * sunrpc/auth_des.c: Likewise.
5881         * sunrpc/svc_auth.c: Likewise.
5882         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
5883         __register_frame_info_table_bases, __deregister_frame_info_bases):
5884         Add INTDEF.
5885         (__register_frame_info_bases_internal,
5886         __register_frame_info_table_bases_internal,
5887         __deregister_frame_info_bases_internal): Add prototypes.
5888         (__register_frame_info, __register_frame): Use INTUSE in call to
5889         __register_frame_info_bases.
5890         (__register_frame_info_table): Similarly.
5891         (__deregister_frame_info, __deregister_frame): Similarly.
5892         * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
5893         sendto as weak alias.
5894         * sysdeps/mach/hurd/sendto.c: Likewise.
5895         * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
5896         recvfrom as weak alias.
5897         * sysdeps/mach/hurd/recvfrom.c: Likewise.
5898         * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
5899         * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
5900         recvmsg as weak alias.
5901         * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
5902         * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
5903         sendmsg as weak alias.
5904         * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
5905         * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
5906         setsockopt, add setsockopt as weak alias.
5907         * sysdeps/mach/hurd/setsockopt.c: Likewise.
5908         * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
5909         weak alias.
5910         * sysdeps/mach/hurd/bind.c: Likewise.
5911         * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
5912         as weak alias.
5913         * sysdeps/mach/hurd/listen.c: Likewise.
5914         * sysdeps/generic/getsockname.c (__getsockname): Renamed from
5915         getsockname, add getsockname as weak alias.
5916         * sysdeps/mach/hurd/getsockname.c: Likewise.
5917         * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
5918         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
5919         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
5920         * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
5921         __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
5922         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
5923         Add aliases.
5924         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5925         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5926         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
5927         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5928         * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
5929         * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
5930         * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
5931         * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
5932         * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
5933         * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
5934         * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
5935         * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
5936
5937 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
5938
5939         * locale/programs/localedef.h (show_archive_content): Add verbose
5940         argument.
5941         * locale/programs/localedef.c (main): Adjust caller.
5942         * locale/programs/locarchive.c (struct nameent, struct dataent): New
5943         types.
5944         (nameentcmp, dataentcmp): New functions.
5945         (xstrcmp): Remove.
5946         (show_archive_content): Print verbose listing with --list-archive -v.
5947
5948 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
5949
5950         * locale/programs/locarchive.c (open_archive): Take extra argument
5951         readonly.  If true open file with O_RDONLY and don't create the
5952         archive if it doesn't exist.
5953         Adapt all callers.
5954         (close_archive): Don't do anything if fd element is -1.
5955         * locale/programs/localedef.h (open_archive): Adjust prototype.
5956         * locale/programs/locfile.c (write_all_categories): Adjust open_archive
5957         call.
5958
5959         * malloc/malloc.c (__posix_memalign): Correct check for size of
5960         alignment value [PR libc/3444].
5961
5962         * include/stdio.h: Remove references to old stdio implementation.
5963
5964         * libio/Makefile (bug-ungetwc2-ENV): Define.
5965
5966 2002-05-13  Roland McGrath  <roland@frob.com>
5967
5968         * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
5969
5970         * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
5971
5972 2002-05-13  Marcus Brinkmann  <marcus@gnu.org>
5973
5974         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
5975         Allocate three, not two, more than LEN when appending '/.'.
5976         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.  Don't check
5977         if NAME ends with '/.' if it is shorter than 2 chars.
5978
5979 2002-05-12  Roland McGrath  <roland@frob.com>
5980
5981         * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
5982         files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
5983
5984         * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
5985         file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
5986
5987 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
5988
5989         * sysdeps/ia64/Makefile: Remove extra endif.
5990         * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
5991
5992 2002-05-10  Andreas Schwab  <schwab@suse.de>
5993
5994         * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
5995
5996 2002-05-09  Andreas Jaeger  <aj@suse.de>
5997
5998         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New file.
5999         * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
6000         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
6001
6002         * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
6003         * sysdeps/wordsize-64/glob.c: ...here.
6004         * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
6005         * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
6006         * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
6007
6008 2002-05-08  Roland McGrath  <roland@frob.com>
6009
6010         * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
6011         O_NOTRANS flag in "." lookup.
6012
6013 2002-05-05  Ulrich Drepper  <drepper@redhat.com>
6014
6015         * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
6016
6017 2002-05-04  Ulrich Drepper  <drepper@redhat.com>
6018
6019         * locale/duplocale.c (__duplocale): Update special members only
6020         when allocation succeeded.
6021
6022 2002-05-03  Roland McGrath  <roland@frob.com>
6023
6024         * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
6025         we can only build libc.so.0.3(GLIBC_2.2.6) now.
6026
6027 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
6028
6029         * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
6030         * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
6031         __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
6032         * sysdeps/ia64/ia64libgcc.S: New file.
6033
6034 2002-05-02  Ulrich Drepper  <drepper@redhat.com>
6035
6036         * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
6037
6038         * malloc/memusage.c: Distinguish anonymous mmap.
6039
6040 2002-05-01  Roland McGrath  <roland@frob.com>
6041
6042         * sysdeps/mach/hurd/close.c: #undef __close before function defn,
6043         and use INTDEF on it.
6044         * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
6045
6046         * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
6047
6048         * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
6049
6050 2002-05-01  Ulrich Drepper  <drepper@redhat.com>
6051
6052         * malloc/memusage.c: Add support for tracking mmap & friends.
6053         * malloc/memusage.sh: Implement -m/--mmap option.
6054
6055 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
6056
6057         * locale/programs/locarchive.c (create_archive): Add archivefname
6058         argument, create fname from it.
6059         (enlarge_archive): Honour output_prefix.
6060         (open_archive): Likewise.
6061
6062 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
6063
6064         * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
6065         too many stpcpy macros.
6066
6067 2002-04-26  Bruno Haible  <bruno@clisp.org>
6068
6069         * locale/programs/ld-collate.c (collate_read): Cast first argument
6070         for "%.*s" to int.
6071
6072 2002-04-26  Bruno Haible  <bruno@clisp.org>
6073
6074         * include/libintl.h (__ngettext, __dngettext, __dcngettext,
6075         __dcngettext_internal): New declarations.
6076         (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
6077         attribute declarations.
6078
6079 2002-04-30  Roland McGrath  <roland@frob.com>
6080
6081         Removed old GNU stdio implementation; GNU libio is now the only option.
6082         * configure.in: Removed --enable-libio option and @stdio@ subst var.
6083         Define USE_IN_LIBIO unconditionally.
6084         * configure: Regenerated.
6085         * Makeconfig (stdio): Set to libio by default.
6086         * config.make.in (stdio): Variable removed.
6087         * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
6088         * sysdeps/unix/sysv/linux/configure: Regenerated.
6089         * sysdeps/mach/hurd/configure.in: Don't test $stdio.
6090         * sysdeps/mach/hurd/configure: Regenerated.
6091         * stdio/.cvsignore: File removed.
6092         * stdio/Makefile: File removed.
6093         * stdio/Versions: File removed.
6094         * stdio/__fbufsize.c: File removed.
6095         * stdio/__flbf.c: File removed.
6096         * stdio/__fpending.c: File removed.
6097         * stdio/__fpurge.c: File removed.
6098         * stdio/__freadable.c: File removed.
6099         * stdio/__freading.c: File removed.
6100         * stdio/__fsetlocking.c: File removed.
6101         * stdio/__fwritable.c: File removed.
6102         * stdio/__fwriting.c: File removed.
6103         * stdio/clearerr.c: File removed.
6104         * stdio/fclose.c: File removed.
6105         * stdio/fcloseall.c: File removed.
6106         * stdio/feof.c: File removed.
6107         * stdio/ferror.c: File removed.
6108         * stdio/fflush.c: File removed.
6109         * stdio/fgetc.c: File removed.
6110         * stdio/fgetpos.c: File removed.
6111         * stdio/fgets.c: File removed.
6112         * stdio/fileno.c: File removed.
6113         * stdio/fmemopen.c: File removed.
6114         * stdio/fopen.c: File removed.
6115         * stdio/fopncook.c: File removed.
6116         * stdio/fputc.c: File removed.
6117         * stdio/fputs.c: File removed.
6118         * stdio/fread.c: File removed.
6119         * stdio/freopen.c: File removed.
6120         * stdio/fseek.c: File removed.
6121         * stdio/fsetpos.c: File removed.
6122         * stdio/ftell.c: File removed.
6123         * stdio/fwrite.c: File removed.
6124         * stdio/getc.c: File removed.
6125         * stdio/getchar.c: File removed.
6126         * stdio/getdelim.c: File removed.
6127         * stdio/gets.c: File removed.
6128         * stdio/glue.c: File removed.
6129         * stdio/internals.c: File removed.
6130         * stdio/linewrap.c: File removed.
6131         * stdio/linewrap.h: File removed.
6132         * stdio/memstream.c: File removed.
6133         * stdio/newstream.c: File removed.
6134         * stdio/obstream.c: File removed.
6135         * stdio/putc.c: File removed.
6136         * stdio/putchar.c: File removed.
6137         * stdio/puts.c: File removed.
6138         * stdio/rewind.c: File removed.
6139         * stdio/setbuf.c: File removed.
6140         * stdio/setbuffer.c: File removed.
6141         * stdio/setlinebuf.c: File removed.
6142         * stdio/setvbuf.c: File removed.
6143         * stdio/stdio.h: File removed.
6144         * stdio/ungetc.c: File removed.
6145         * stdio/vasprintf.c: File removed.
6146         * stdio/vscanf.c: File removed.
6147         * stdio/vsnprintf.c: File removed.
6148         * stdio/vsprintf.c: File removed.
6149         * stdio/vsscanf.c: File removed.
6150         * sysdeps/generic/defs.c: File removed.
6151         * sysdeps/generic/fdopen.c: File removed.
6152         * sysdeps/generic/pipestream.c: File removed.
6153         * sysdeps/generic/stdio_init.c: File removed.
6154         * sysdeps/generic/sysd-stdio.c: File removed.
6155         * sysdeps/generic/vdprintf.c: File removed.
6156         * sysdeps/mach/hurd/defs.c: File removed.
6157         * sysdeps/mach/hurd/fdopen.c: File removed.
6158         * sysdeps/mach/hurd/pipestream.c: File removed.
6159         * sysdeps/mach/hurd/stdio_init.c: File removed.
6160         * sysdeps/mach/hurd/sysd-stdio.c: File removed.
6161         * sysdeps/mach/hurd/vdprintf.c: File removed.
6162         * sysdeps/posix/defs.c: File removed.
6163         * sysdeps/posix/fdopen.c: File removed.
6164         * sysdeps/posix/pipestream.c: File removed.
6165         * sysdeps/posix/stdio_init.c: File removed.
6166         * sysdeps/posix/vdprintf.c: File removed.
6167         * sysdeps/unix/pipestream.c: File removed.
6168         * sysdeps/unix/sysv/sysd-stdio.c: File removed.
6169         * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
6170         * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
6171
6172 2002-04-29  Roland McGrath  <roland@frob.com>
6173
6174         * include/libc-symbols.h (link_warning): Use `unused' attribute.
6175
6176 2002-04-28  Ulrich Drepper  <drepper@redhat.com>
6177
6178         * sysdeps/generic/tls.h: Describe what must be defined.
6179
6180         * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
6181         glob_in_dir [PR libc/3385].
6182         * posix/globtest.sh: Add test case.
6183
6184         * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
6185         //TRANSLIT twice.
6186
6187 2002-04-27  Ulrich Drepper  <drepper@redhat.com>
6188
6189         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
6190         _internal symbol handling.
6191         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6192
6193 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
6194
6195         * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
6196         * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
6197
6198 2002-04-26  Isamu Hasegawa  <isamu@yamato.ibm.com>
6199
6200         * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
6201         not _LIBC and RE_ENABLE_I18N.
6202         (build_range_exp): Implement for not _LIBC.
6203         (build_collating_symbol): Likewise.
6204         (parse_bracket_exp): Unify redundant error handlings.
6205         Don't erase mbcset for non matching list in multibyte envs.
6206         (build_word_op): Add '_' to matching list for \w operator.
6207         * posix/regex_internal.c (re_string_construct): Invoke
6208         build_upper_buffer in case of not RE_ENABLE_I18N.
6209         (re_string_reconstruct): Don't touch cur_state in case of not
6210         RE_ENABLE_I18N.
6211         * posix/regex_internal.h (attribute_hidden): New macro in case of
6212         not _LIBC.
6213         (re_charset_t): Define range_starts/ends in case of not _LIBC.
6214         * posix/regexec.c (sift_states_iter_mb): Hide in case of not
6215         RE_ENABLE_I18N.
6216         (transit_state_mb): Likewise.
6217         (check_node_accept_bytes): Implement the code evaluating range
6218         expression in case of not _LIBC.
6219         (find_collation_sequence_value): Hide in case of not _LIBC.
6220
6221 2002-04-26  Jakub Jelinek  <jakub@redhat.com>
6222
6223         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
6224         i386/semctl.c.
6225         (__old_semctl, __new_semctl): Only use va_arg if the argument will
6226         be used.
6227
6228 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
6229
6230         * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
6231
6232         * sysdeps/ia64/strncpy.S: Fix recovery code.
6233         Patch by David Mosberger <davidm@hpl.hp.com>.
6234
6235 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6236
6237         * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
6238         GLIBC_2.2.6.
6239
6240 2002-04-14  Bruno Haible  <bruno@clisp.org>
6241
6242         * posix/regex.c (re_max_failures): Add back symbol for binary
6243         compatibility.
6244
6245 2002-04-22  Isamu Hasegawa  <isamu@yamato.ibm.com>
6246
6247         * posix/regcomp.c (re_compile_internal): Adapt it to new interface
6248         of buffer building functions.
6249         * posix/regex_internal.c (re_string_allocate): New function.
6250         (re_string_realloc_buffers): New function.
6251         (re_string_skip_chars): New function.
6252         (re_string_reconstruct): New function.
6253         (re_string_construct): Adapt it to new interface of buffer building
6254         functions.
6255         (re_string_construct_common): Likewise.
6256         (build_wcs_buffer): Likewise.
6257         (build_wcs_upper_buffer): Likewise.
6258         (build_upper_buffer): Likewise.
6259         (re_string_translate_buffer): Likewise.
6260         (re_string_context_at): Adapt it to variable length buffers.
6261         * posix/regex_internal.h (re_string_t): Add new fields to handle
6262         variable length buffers.
6263         (re_match_context_t): Likewise.
6264         * posix/regexec.c (re_search_internal): Adapt it to new interface
6265         of re_string_t and re_match_context_t.
6266         (acquire_init_state_context): Likewise.
6267         (check_matching): Likewise.
6268         (check_halt_state_context): Likewise.
6269         (proceed_next_node): Likewise.
6270         (set_regs): Likewise.
6271         (sift_states_backward): Likewise.
6272         (clean_state_log_if_need): Likewise.
6273         (sift_states_iter_mb): Likewise.
6274         (sift_states_iter_bkref): Likewise.
6275         (add_epsilon_backreference): Likewise.
6276         (transit_state): Likewise.
6277         (transit_state_sb): Likewise.
6278         (transit_state_mb): Likewise.
6279         (transit_state_bkref): Likewise.
6280         (transit_state_bkref_loop): Likewise.
6281         (check_node_accept): Likewise.
6282         (match_ctx_init): Likewise.
6283         (extend_buffers): New function.
6284
6285 2002-04-21  Bruno Haible  <bruno@clisp.org>
6286
6287         * iconvdata/tst-table.sh: For the second check, use the truncated
6288         GB18030 charmap table, like for the first check.
6289
6290 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6291
6292         * elf/dl-load.c (open_verify): Correct __lseek parameters.
6293         Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
6294
6295 2002-04-23  H.J. Lu  <hjl@gnu.org>
6296
6297         * include/math.h (isfinite): Fix a typo.
6298
6299 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6300
6301         * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
6302         which is created by the test suite.
6303
6304 2002-04-20  Bruno Haible  <bruno@clisp.org>
6305
6306         * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
6307         (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
6308
6309 2002-04-20  Bruno Haible  <bruno@clisp.org>
6310
6311         * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
6312         to avoid gcc warning.
6313
6314 2002-04-20  Bruno Haible  <bruno@clisp.org>
6315
6316         * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
6317         of data->__statep->__count.
6318
6319 2002-04-20  Bruno Haible  <bruno@clisp.org>
6320
6321         * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
6322         tag characters.
6323         * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
6324
6325 2002-04-24  Roland McGrath  <roland@frob.com>
6326
6327         * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
6328         use END macro instead of our own .end directive.
6329         Use `callsys' insn mnemonic instead of `call_pal'.
6330
6331         * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
6332
6333         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
6334         macro; we need this for Hurd.
6335
6336         Log entry was missing for 2002/03/24 commit of rev 1.8,
6337         goes with 2002-03-17 changes.
6338         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
6339         (sysdep_routines): Append ioperm here.
6340         (sysdep_headers): Append sys/io.h here.
6341
6342 2002-04-23  Roland McGrath  <roland@frob.com>
6343
6344         * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
6345         * sysdeps/mach/hurd/sendto.c: Likewise.
6346         * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
6347         * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
6348         * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
6349
6350 2002-04-22  Roland McGrath  <roland@frob.com>
6351
6352         * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
6353         failure from i386_io_perm_* RPCs to ENOSYS.
6354
6355 2002-04-22  Andreas Jaeger  <aj@suse.de>
6356
6357         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
6358
6359         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
6360
6361         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
6362         register instead of destroying %rbx.
6363
6364 2002-04-21  Ulrich Drepper  <drepper@redhat.com>
6365
6366         * string/string.h: Declare strerror_r also for XPG6.
6367
6368 2002-04-19  Roland McGrath  <roland@frob.com>
6369
6370         * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
6371
6372 2002-04-20  Ulrich Drepper  <drepper@redhat.com>
6373
6374         * Makefile: Add handling of xtests and xcheck targets.
6375         * MakeTAGS: Likewise.
6376         * Makeconfig: Likewise.
6377         * Makerules: Likewise.
6378         * Rules: Likewise.
6379         * manual/Makefile: Likewise.
6380         * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
6381         * sunrpc/thrsvc.c: New file.  By Zack Weinberg.
6382
6383 2002-04-11  Zack Weinberg  <zack@codesourcery.com>
6384
6385         * include/rpc/rpc.h (struct rpc_thread_variables): Remove
6386         authnone_private_s.
6387         * sunrpc/auth_none.c: Include bits/libc-lock.h.
6388         Delete #ifdef _RPC_THREAD_SAFE_ block.
6389         (authnone_private): Make a struct, not a pointer to struct.
6390         (authnone_private_guard): New once-control variable.
6391         (authnone_create_once): New function, split out of
6392         authnone_create.  No need to allocate memory.
6393         (authnone_create): Just call authnone_create_once via
6394         __libc_once, then return &authnone_private->no_client.
6395         (authnone_marshal): Access private data via CLIENT argument,
6396         not authnone_private pointer.
6397         Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
6398         * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
6399         authnone_private_s.
6400
6401 2002-04-12  H.J. Lu  <hjl@gnu.org>
6402
6403         * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
6404
6405 2002-04-18  Bruno Haible  <bruno@clisp.org>
6406
6407         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
6408         FROM_DIRECTION): Make the FROM direction stateless.
6409         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
6410         FROM_DIRECTION): Likewise.
6411
6412 2002-04-15  Bruno Haible  <bruno@clisp.org>
6413
6414         * iconvdata/JISX0213.TXT: New file.
6415         * iconvdata/jisx0213.h: New file.
6416         * iconvdata/jisx0213.c: New file.
6417         * iconvdata/euc-jisx0213.c: New file.
6418         * iconvdata/shift_jisx0213.c: New file.
6419         * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
6420         * iconvdata/EUC-JISX0213.precomposed: New file.
6421         * iconvdata/SHIFT_JISX0213.precomposed: New file.
6422         * iconvdata/SHIFT_JISX0213.irreversible: New file.
6423         * iconvdata/tst-table-to.c (main): Make it work for encodings for
6424         which the "to" direction is stateful.
6425         * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
6426         * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
6427         SHIFT_JISX0213.
6428         (libJISX0213-routines): New variable.
6429         (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
6430         (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
6431         (LDFLAGS-libJISX0213.so): New variable.
6432         (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
6433         SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
6434         jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
6435
6436 2002-04-15  Bruno Haible  <bruno@clisp.org>
6437
6438         * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
6439         uint32_t.  Update to Unicode 3.2.
6440         (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
6441         (BODY for TO_LOOP): Handle the ASCII range specially.
6442         * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
6443         * iconvdata/testdata/BIG5HKSCS: Remove a character.
6444         * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
6445
6446 2002-04-15  Bruno Haible  <bruno@clisp.org>
6447
6448         * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
6449         __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
6450
6451 2002-04-15  Bruno Haible  <bruno@clisp.org>
6452
6453         * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
6454         (ucs4_to_cns11643): Update.
6455         * iconvdata/cns11643.c: Update to Unicode 3.2.
6456         (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
6457         __cns11643_from_ucs4p2_tab): Regenerated.
6458         (__cns11643_from_ucs4p2c_tab): New array.
6459         * iconvdata/cvs11643l1.c: Update comments.
6460         * iconvdata/EUC-TW.irreversible: Remove two entries.
6461
6462 2002-04-15  Bruno Haible  <bruno@clisp.org>
6463
6464         * locale/C-translit.h.in: Update to Unicode 3.2.
6465         Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
6466         <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
6467
6468 2002-04-15  Bruno Haible  <bruno@clisp.org>
6469
6470         * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
6471         (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
6472
6473 2002-04-15  Bruno Haible  <bruno@clisp.org>
6474
6475         * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
6476         invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
6477         always one byte, not 0 bytes in some cases and 2 bytes in others.
6478
6479         * iconvdata/tst-table-from.c (main): Correct the usage message.
6480
6481 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
6482
6483         * posix/regcomp.c (parse_expression): Fix incorrect error code.
6484         (parse_dup_op): Fix error handling like "a{}".
6485         (parse_bracket_exp): Add error handling.
6486         (fetch_number): Add error handling for "a{<very_large_number>}".
6487
6488 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
6489
6490         * posix/regcomp.c (parse_bracket_symbol): Add error handling
6491         in case that the symbol name is too long.
6492         (build_charclass): Handle [:lower:]/[:uppper:] correctly
6493         in case of REG_ICASE.
6494
6495 2002-04-19  Andreas Jaeger  <aj@suse.de>
6496
6497         * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
6498         <hartvige@mips.com>.
6499
6500 2002-04-15  H.J. Lu  <hjl@gnu.org>
6501
6502         * include/math.h (__finitel_internal): Declare only if
6503         __NO_LONG_DOUBLE_MATH is not defined.
6504         (__isinfl_internal): Likewise.
6505         (__isnanl_internal): Likewise.
6506
6507         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
6508         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6509         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6510         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
6511         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6512         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6513         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6514
6515         * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
6516         __fcntl_internal.
6517
6518         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
6519         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
6520
6521 2002-04-15  Bruno Haible  <bruno@clisp.org>
6522
6523         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
6524         (BODY for TO_LOOP): Likewise.
6525         * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
6526         * iconvdata/tst-table.sh: Add support for encodings which contain
6527         precomposed Unicode characters, known to the iconv converter in both
6528         directions but not listed in the charmap.
6529         * iconvdata/IBM856.irreversible: New file.
6530         * iconvdata/IBM922.irreversible: New file.
6531         * iconvdata/IBM1132.irreversible: New file.
6532         * iconvdata/IBM1133.irreversible: New file.
6533         * iconvdata/IBM1160.irreversible: New file.
6534         * iconvdata/IBM1161.irreversible: New file.
6535         * iconvdata/IBM1163.irreversible: New file.
6536         * iconvdata/IBM1164.irreversible: New file.
6537         * iconvdata/ARMSCII-8.irreversible: New file.
6538         * iconvdata/TCVN5712-1.precomposed: New file.
6539         * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
6540         IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
6541         ARMSCII-8, TCVN5712-1.
6542         * iconvdata/Makefile (distribute): Add IBM856.irreversible,
6543         IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
6544         IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
6545         IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
6546
6547 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
6548
6549         * time/tst-mktime.c: Include <stdlib.h>.  Use %d, not %ld format
6550         for EVENING69.  Include offsets in TZ environment variable.
6551
6552 2002-04-18  Ulrich Drepper  <drepper@redhat.com>
6553
6554         * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
6555         avoid compiler warnings.
6556
6557         * locale/programs/localedef.c (main): Always call
6558         construct_output_path.
6559
6560         * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
6561
6562         * locale/programs/locfile.c (to_archive): New variable.  To collect
6563         data which has to be added to the locale archive.
6564         (write_all_categories): Take new third parameter with locale name.
6565         Unless no_archive flag set add new locale data to the archive
6566         (write_locale_data): Unless no-archive flag set store generated data
6567         in to_archive data structure instead of generation output file.
6568         Add new parameter with locale category index.
6569         * locale/programs/locfile.h: Add new parameters in declaractions of
6570         write_all_categories and write_locale_data.
6571         * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
6572         --add-to-archive, and --delete-from-archive options.  Pass extra
6573         parameter to write_all_categories.
6574         * locale/programs/localedef.h: Add prototypes for functions in
6575         locarchive.c.
6576         * locale/locarchive.h: New file.
6577         * locale/programs/locarchive.c: New file.
6578         * locale/Makefile (distribute): Add programs/locarchive.c and
6579         locarchive.h.
6580         (localedef-modules): Add md5 and locarchive.
6581         Add vpath to crypt subdir for md5.c.
6582
6583         * locale/programs/ld-address.c: Pass locale category ID as new second
6584         parameter to write_locale_data.
6585         * locale/programs/ld-collate.c: Likewise.
6586         * locale/programs/ld-ctype.c: Likewise.
6587         * locale/programs/ld-identification.c: Likewise.
6588         * locale/programs/ld-measurement.c: Likewise.
6589         * locale/programs/ld-messages.c: Likewise.
6590         * locale/programs/ld-monetary.c: Likewise.
6591         * locale/programs/ld-name.c: Likewise.
6592         * locale/programs/ld-numeric.c: Likewise.
6593         * locale/programs/ld-paper.c: Likewise.
6594         * locale/programs/ld-telephone.c: Likewise.
6595         * locale/programs/ld-time.c: Likewise.
6596
6597         * locale/simple-hash.c: Move compute_hashval function from here...
6598         * locale/hashval.h: ...to here.  New file.
6599         * locale/simple-hash.h: Add prototype for compute_hashval.
6600
6601         * include/libintl.h: Minor cleanups.
6602
6603 2002-04-16  Ulrich Drepper  <drepper@redhat.com>
6604
6605         * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
6606
6607 2002-04-15  Ulrich Drepper  <drepper@redhat.com>
6608
6609         * include/sys/stat.h: Fix typo.  Patch by HJ Lu.
6610
6611 2002-04-14  Bruno Haible  <bruno@clisp.org>
6612
6613         * locale/programs/charmap.c (charmap_read): Don't access result if
6614         result == NULL.
6615
6616 2002-02-17  Andreas Schwab  <schwab@suse.de>
6617
6618         * elf/reldep7.c: New file.
6619         * elf/reldep7mod1.c: New file.
6620         * elf/reldep7mod2.c: New file.
6621         * elf/Makefile: Add rules to build and run reldep7.
6622
6623 2002-04-14  Jakub Jelinek  <jakub@redhat.com>
6624
6625         * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
6626         the end of the function.  Pass original flags to recursive call if
6627         add_dependency failed.
6628         (_dl_lookup_versioned_symbol): Likewise.
6629
6630 2002-04-13  Jakub Jelinek  <jakub@redhat.com>
6631
6632         * time/mktime.c (__mktime_internal): If year is 69, don't bail out
6633         early, but check whether it overflowed afterwards.
6634         * time/tst-mktime.c (main): Add new tests.
6635
6636 2002-04-14  Ulrich Drepper  <drepper@redhat.com>
6637
6638         * debug/xtrace.sh: Fix program name in help message.
6639         Patch by Roger Luethi <rl@hellgate.ch>.
6640
6641         * include/sys/stat.h: Add prototypes for __lxstat_internal and
6642         __lxstat64_internal.  Add macros __lxstat and __lxstat64 if not
6643         NOT_IN_libc.
6644         * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
6645         * sysdeps/mach/hurd/lxstat.c: Likewise.
6646         * sysdeps/unix/common/lxstat.c: Likewise.
6647         * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
6648         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
6649         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
6650         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6651         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
6652         * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
6653         * sysdeps/mach/hurd/lxstat64.c: Likewise.
6654         * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
6655         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
6656
6657         * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
6658         prototypes.  Add __mbrlen and __mbrtowc macros.
6659         * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
6660         * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
6661
6662         * include/unistd.h: Add prototype for __write_internal and add
6663         __libc_write macro is SHARED.
6664         * sysdeps/generic/write.c: Use INTDEF for __write.
6665         * sysdeps/mach/hurd/write.c: Likewise.
6666         * sysdeps/unix/sysv/aix/write.c: Likewise.
6667         * sysdeps/unix/syscalls.list: Add __libc_write alias.
6668
6669         * assert/assert.c: Replace STR_N_SIZE with something usable in
6670         macro arguments.
6671         * assert/assert-perr.c: Likewise.
6672
6673         * include/sys/socket.h: Declare __libc_sa_len_internal and define
6674         SA_LEN macro to use it if not NOT_IN_libc.
6675         * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
6676
6677         * include/fcntl.h: Declare __open_internal and define __open and
6678         __libc_open macros if not NOT_IN_libc.
6679         * sysdeps/generic/open.c: Use INTDEF for __open.
6680         * sysdeps/mach/hurd/open.c: Likewise.
6681         * sysdeps/unix/sysv/aix/open.c: Likewise.
6682         * sysdeps/unix/syscalls.list: Add __open_internal alias.
6683
6684         * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
6685         has correct number.
6686
6687         * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
6688         * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
6689         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
6690         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
6691
6692         * include/wctype.h: Declare __iswalpha_l_internal,
6693         __iswdigit_l_internal, __iswspace_l_internal,
6694         __iswxdigit_l_internal, and __iswctype_internal.  Define
6695         __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
6696         __iswxdigit_l macros if not NOT_IN_libc.
6697         * wctype/iswctype.c: Use INTDEF for __iswctype.
6698         * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
6699
6700         * include/math.h: Declare __isinf_internal, __isinfl_internal,
6701         __isnan_internal, and __isnanl_internal.
6702         * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
6703         __isnan, and __isnanl.
6704         * stdio-common/printf_size.c: Likewise.
6705         * sysdeps/generic/printf_fphex.c: Likewise.
6706         * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
6707         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
6708         * sysdeps/ia64/fpu/s_isinf.S: Likewise.
6709         * sysdeps/ia64/fpu/s_isnan.S: Likewise.
6710         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
6711         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
6712         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
6713         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
6714         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
6715         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
6716         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
6717         * sysdeps/m68k/s_isinfl.c: Likewise.
6718         * sysdeps/m68k/fpu/s_isinf.c: Likewise.
6719         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
6720
6721         * include/sys/time.h: Declare __gettimeofday_internal and define
6722         __gettimeofday macro if not NOT_IN_libc.
6723         * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
6724         * sysdeps/mach/gettimeofday.c: Likewise.
6725         * sysdeps/posix/gettimeofday.c: Likewise.
6726         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
6727         * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
6728         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
6729         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
6730
6731         * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
6732         and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
6733         Remove __lstat and __fstat inline functions.
6734         * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
6735         * sysdeps/mach/hurd/fxstat.c: Likewise.
6736         * sysdeps/unix/fxstat.c: Likewise.
6737         * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
6738         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
6739         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
6740         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
6741         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
6742         * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
6743         * sysdeps/mach/hurd/fxstat64.c: Likewise.
6744         * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
6745         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
6746
6747         * include/unistd.h: Declare __getpid_internal and define
6748         __getpid macro if not NOT_IN_libc.
6749         * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
6750         * sysdeps/generic/getpid.c: Likewise.
6751         * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
6752         * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
6753
6754         * include/unistd.h: Declare __getpgid_internal and define
6755         __getpgid macro if not NOT_IN_libc.
6756         * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
6757         * sysdeps/mach/hurd/getpgid.c: Likewise.
6758         * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
6759         * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
6760         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
6761         * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
6762
6763         * include/unistd.h: Declare __getpagesize_internal and define
6764         __getpagesize macro if not NOT_IN_libc.
6765         * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
6766         __getpagesize.
6767         * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
6768         * sysdeps/mach/getpagesize.c: Likewise.
6769         * sysdeps/posix/getpagesize.c: Likewise.
6770         * sysdeps/unix/getpagesize.c: Likewise.
6771         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
6772         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
6773         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
6774         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
6775
6776 2002-04-13  Andreas Jaeger  <aj@suse.de>
6777
6778         * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
6779         as clobber to reduce register pressure.
6780         (__strpbrk_cg): Likewise.
6781         (__mempcpy_by4): Likewise.
6782         (__strstr_cg): Likewise.
6783         Add prototype for __memrchr.
6784
6785 2002-04-13  Andreas Schwab  <schwab@suse.de>
6786
6787         * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
6788         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
6789         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
6790
6791 2002-04-13  Ulrich Drepper  <drepper@redhat.com>
6792
6793         * elf/do-lookup.h [!VERSIONED]: Add new parameter flags.  Use it to
6794         check whether the caller prefers getting the most recent version of
6795         a symbol of the earliest version.
6796         * elf/dl-lookup.c: Adjust all callers of do_lookup.  Change
6797         _dl_do_lookup to also take the new parameter and pass it on.
6798         Change 'explicit' parameter of _dl_lookup_symbol and
6799         _dl_lookup_versioned_symbol to flags.  Adjust tests.
6800         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
6801         * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
6802         _dl_lookup_versioned_symbol.
6803         * elf/dl-reloc.c: Likewise.
6804         * elf/dl-runtime.c: Likewise.
6805         * elf/dl-sym.c: Likewise.
6806         * sysdeps/mips/dl-machine.h: Likewise.
6807
6808 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
6809
6810         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
6811         in a token.
6812         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
6813
6814 2002-04-10  Andreas Jaeger  <aj@suse.de>
6815
6816         * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
6817
6818         * include/argz.h: Remove extra char from last patch.
6819
6820 2002-04-09  Ulrich Drepper  <drepper@redhat.com>
6821
6822         * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
6823         * sysdeps/unix/sysv/aix/chown.c: Likewise.
6824         * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
6825         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
6826         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
6827         * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
6828         __chown_internal.
6829         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
6830
6831         * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
6832         * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
6833         * intl/ngettext.c: Likewise.
6834
6835         * include/sys/socket.h: Declare __connect_internal and define
6836         __connect macro if not NOT_IN_libc.
6837         * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
6838         * sysdeps/unix/sysv/aix/connect.c: Likewise.
6839         * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
6840
6841         * include/unistd.h: Declare __close_internal and define __close macro
6842         if not NOT_IN_libc.
6843         * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
6844         WJUMP3): Add extra parenthesis to avoid expanding element names with
6845         macors like __close.
6846         * sysdeps/unix/syscalls.list: Add __close_internal alias.
6847
6848         * include/unistd.h: Declare __dup2_internal and define __dup2 macro
6849         if not NOT_IN_libc.
6850         * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
6851         * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
6852         * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
6853
6854         * include/unistd.h: Declare __fork_internal and define __fork macro
6855         if not NOT_IN_libc.
6856         * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
6857         * sysdeps/unix/sysv/aix/fork.c: Likewise.
6858         * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
6859
6860         * include/stdio_ext.h: Declare __fsetlocking_internal and define
6861         __fsetlocking macro to use it if not NOT_IN_libc.
6862         * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
6863
6864         * libio/__fbufsize.c: Correct copyright.
6865         * libio/__flbf.c: Likewise.
6866         * libio/__fpending.c: Likewise.
6867         * libio/__fpurge.c: Likewise.
6868         * libio/__freadable.c: Likewise.
6869         * libio/__freading.c: Likewise.
6870         * libio/__fsetlocking.c: Likewise.
6871         * libio/__fwritable.c: Likewise.
6872         * libio/__fwriting.c: Likewise.
6873
6874         * include/stdio.h: Declare __asprintf_internal and define __asprintf
6875         macro to use it if not NOT_IN_libc.
6876         * stdio-common/asprintf.c: Use INTDEF for __asprintf.
6877
6878         * include/mntent.h: Declare __setmntent_internal,
6879         __getmntent_r_internal, __endmntent_internal.  Define __setmntent,
6880         __getmntent_r, and __endmntent macros to use these functions if not
6881         NOT_IN_libc.
6882         * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
6883         __endmntent.
6884
6885         * include/math.h: Declare __finite_internal, __finitef_internal, and
6886         __finitel_internal.  Redefine isfinite macro if in libc or libm using
6887         these functions.
6888         * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
6889         * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
6890         * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
6891         * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
6892         * sysdeps/i386/fpu/s_finitef.S: Likewise.
6893         * sysdeps/i386/fpu/s_finitel.S: Likewise.
6894         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
6895         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
6896         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
6897         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
6898
6899         * include/fcntl.h: Declare __fcntl_internal.  Define __fcntl macro
6900         to use this function if not NOT_IN_libc.
6901         * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
6902         * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
6903         * sysdeps/mach/hurd/fcntl.c: Likewise.
6904         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
6905         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
6906
6907         * include/argz.h: Declare __argz_count_internal and
6908         __argz_stringify_internal.
6909         * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
6910         __argz_stringify.
6911         * string/argz-count.c: Use INTDEF for __argz_count.
6912         * string/argz-stringify.c: Use INTDEF for __argz_stringify.
6913
6914         * include/stdlib.h: Declare __cxa_atexit_internal and define
6915         __cxa_atexit macro if not NOT_IN_libc.
6916         * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
6917         * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
6918
6919         * assert/assert.c: Use INTDEF for __assert_fail.
6920         * assert/__assert.c: Use INTUSE for call to __assert_fail.
6921         * include/assert.h: Declare __assert_fail_internal.
6922
6923         * extra-lib.mk: Mark assignment to lib with override.
6924
6925 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
6926
6927         * Makerules: Use cppflags-iterator.mk to add defines for all test
6928         source files.
6929
6930 2002-04-08  kaz Kojima  <kkojima@rr.iij4u.or.jp>
6931
6932         * elf/elf.h: Define R_SH_TLS_xxx macros.
6933         * elf/rtld.c: Remove an extra parenthesis.
6934         * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
6935         TLS_GD macros.
6936         * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
6937         * sysdeps/sh/dl-lookupcfg.h: New file.
6938         * sysdeps/sh/dl-tls.h: New file.
6939         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
6940         ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
6941         (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
6942         R_SH_TLS_TPOFF32 relocations.
6943
6944 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
6945
6946         * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
6947         of NOT_IN_LIBC.
6948         * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
6949         * include/stdlib.h: Likewise.
6950
6951 2002-04-08  Jakub Jelinek  <jakub@redhat.com>
6952
6953         * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
6954         instead of _RTLD_LOCAL.
6955         * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
6956         * include/unistd.h: Likewise.
6957         * sysdeps/generic/ldsodefs.h: Likewise.
6958
6959         * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
6960         if in libc or ld.so.
6961
6962 2002-04-08  Andreas Jaeger  <aj@suse.de>
6963
6964         * elf/cache.c (print_entry): Support x86-64.
6965
6966 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
6967
6968         * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
6969         with one accessing the locale data structures directly.
6970         * stdio-common/printf-prs.c: Include localeinfo.h for new
6971         MB_CUR_MAX definition.
6972
6973         * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
6974         is the name of the source file without extension.
6975         * Makefile (distribute): Add cppflags-iterator.mk.
6976         * cppflags-iterator.mk: New file.
6977         * extra-lib.mk: For the sources of the library run
6978         cppflags-iterator.mk.
6979
6980         * include/libintl.h: Declare __dcgettext_internal and
6981         _libc_intl_domainname_internal.  Define __dcgettext using these
6982         two symbols if used in libc itself.
6983         * argp/argp-help.c: Define dgettext using __dcgettext_internal and
6984         _libc_intl_domainname_internal.
6985         * argp/argp-parse.c: Likewise.
6986         * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
6987         * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
6988         * intl/gettext.c: Likewise.
6989         * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
6990         alias.
6991         * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
6992         __dcgettext.
6993         * posix/regex_internal.c (gettext): Likewise.
6994
6995 2002-04-08  Andreas Jaeger  <aj@suse.de>
6996
6997         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
6998
6999         * sysdeps/x86_64/fpu/s_llrint.S: New file.
7000         * sysdeps/x86_64/fpu/s_llrintf.S: New file.
7001         * sysdeps/x86_64/fpu/s_llrintl.S: New file.
7002         * sysdeps/x86_64/fpu/s_lrint.S: New file.
7003         * sysdeps/x86_64/fpu/s_lrintf.S: New file.
7004         * sysdeps/x86_64/fpu/s_lrintl.S: New file.
7005
7006 2002-04-08  Roland McGrath  <roland@frob.com>
7007
7008         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
7009         widening __hurd_fail value.
7010
7011 2002-04-07  Roland McGrath  <roland@frob.com>
7012
7013         * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
7014         <mach/machine/alpha_instruction.h>.
7015         (_hurd_setup_sighandler): Take proper arguments for current decls.
7016         Update code to use _hurdsig_catch_fault.
7017         Use `callsys' instruction instead of `call_pal'.
7018         * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
7019
7020         * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
7021         (ALIGN, at, AT, fp): New macros.
7022
7023 2002-04-06  Roland McGrath  <roland@frob.com>
7024
7025         * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
7026
7027         * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
7028         (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
7029
7030         * sysdeps/mach/hurd/bind.c: Use prototype definition.
7031         * sysdeps/mach/hurd/connect.c: Likewise.
7032         * sysdeps/mach/hurd/getsockopt.c: Likewise.
7033         * sysdeps/mach/hurd/setsockopt.c: Likewise.
7034
7035         * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
7036         __msg_sig_post RPC.
7037
7038         * hurd/catch-exc.c: Use integer_t instead of int.
7039         * hurd/hurdfault.c: Likewise.
7040
7041         * sysdeps/mach/hurd/alpha/exc2signal.c
7042         (_hurd_exception2signal): Rewritten.
7043         * sysdeps/mach/hurd/alpha/longjmp-ts.c
7044         (_hurd_longjmp_thread_state): Rewritten.
7045
7046 2002-04-07  Ulrich Drepper  <drepper@redhat.com>
7047
7048         * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
7049         DB_LOOKUP_FCT prototype.
7050         * nss/getXXent_r.c: Likewise.
7051         * inet/getaliasent_r.c: Define NSS_attribute_hidden.
7052         * inet/getaliasname_r.c: Likewise.
7053         * inet/getnetbyad_r.c: Likewise.
7054         * inet/getnetbynm_r.c: Likewise.
7055         * inet/getnetent_r.c: Likewise.
7056         * inet/getproto_r.c: Likewise.
7057         * inet/getprtent_r.c: Likewise.
7058         * inet/getprtname_r.c: Likewise.
7059         * inet/getrpcbyname_r.c: Likewise.
7060         * inet/getrpcbynumber_r.c: Likewise.
7061         * inet/getrpcent_r.c: Likewise.
7062         * inet/getservent_r.c: Likewise.
7063         * inet/getsrvbynm_r.c: Likewise.
7064         * inet/getsrvbypt_r.c: Likewise.
7065         * shadow/getspent_r.c: Likewise.
7066         * shadow/getspnam_r.c: Likewise.
7067
7068         * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
7069
7070         * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
7071         Use i686-friendly PIC code.
7072         * sysdeps/i386/elf/setjmp.S: Likewise.
7073
7074         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
7075
7076         * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
7077         list.
7078         * elf/Versions: Remove it here.
7079
7080 2002-04-06  Ulrich Drepper  <drepper@redhat.com>
7081
7082         * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
7083         direction.  Reported by H . J . Lu <hjl@lucon.org>.
7084
7085 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
7086
7087         * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
7088         test just before the test runs.
7089         * intl/tst-translit.sh: Likewise.
7090         * intl/tst-codeset.sh: Likewise.
7091
7092         * timezone/zic.c: Update from tzcode2002c.
7093         * timezone/asia: Update from tzdata2002c.
7094         * timezone/backward: Likewise.
7095         * timezone/europe: Likewise.
7096         * timezone/northamerica: Likewise.
7097         * timezone/northamerica: Likewise.
7098         * timezone/northamerica: Likewise.
7099         * timezone/southamerica: Likewise.
7100         * timezone/zone.tab: Likewise.
7101
7102 2002-03-23  Jakub Jelinek  <jakub@redhat.com>
7103
7104         * sysdeps/generic/brk.c (__curbrk): Declare.
7105         * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
7106         * sysdeps/generic/dl-sbrk.c: Likewise.
7107         * sysdeps/unix/arm/dl-brk.S: New file.
7108         * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
7109         * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
7110         * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
7111         * sysdeps/unix/bsd/vax/dl-brk.S: New file.
7112         * sysdeps/unix/i386/dl-brk.S: New file.
7113         * sysdeps/unix/mips/dl-brk.S: New file.
7114         * sysdeps/unix/sparc/dl-brk.S: New file.
7115         * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
7116         * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
7117         * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
7118         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
7119
7120 2002-04-03  Andreas Schwab  <schwab@suse.de>
7121
7122         * Makefile (headers): Add gnu/lib-names.h here instead of
7123         install-others.
7124         ($(inst_includedir)/gnu/lib-names.h): Remove explicit
7125         installation rule.
7126         (install-headers): Add dependency on install-headers-nosubdir.
7127         * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
7128         instead of install-others.
7129         ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
7130         installation rule.
7131
7132 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
7133
7134         * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
7135         Reported by Sam Roberts <sroberts@uniserve.com>.
7136
7137 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
7138
7139         * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
7140         l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
7141         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7142         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7143
7144 2002-04-03  David Mosberger  <davidm@hpl.hp.com>
7145
7146         * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
7147         (RTLD_START): Ditto.
7148         (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
7149         dependency violation.
7150
7151 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
7152
7153         * time/mktime.c (__mktime_internal): Move check for year < 70 below
7154         all variable declarations.
7155
7156 2002-04-04  Andreas Schwab  <schwab@suse.de>
7157
7158         * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
7159
7160 2002-04-04  Andreas Jaeger  <aj@suse.de>
7161
7162         * sysdeps/x86_64/fpu/e_sqrt.c: New file.
7163         * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
7164
7165         * sysdeps/x86_64/fpu/s_fabs.c: New file.
7166         * sysdeps/x86_64/fpu/s_fabsf.c: New file.
7167         * sysdeps/x86_64/fpu/s_fabsl.c: New file.
7168
7169         * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
7170
7171         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
7172
7173         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
7174         * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
7175
7176         * configure.in: Handle all mips entries the same.
7177
7178         * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
7179         * sysdeps/mips/mips3/*: Likewise.
7180         * sysdeps/mips/p40/bits/endian.h: Likewise.
7181
7182 2002-04-04  Ulrich Drepper  <drepper@redhat.com>
7183
7184         * misc/dirname.c (dirname): Ignore trailing slashes at end of
7185         non-null result [PR libc/2600].
7186
7187         * misc/tst-dirname.c: Add more tests.
7188
7189 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
7190
7191         * locale/programs/charmap.c (charmap_read): If the charmap doesn't
7192         define a code_set_name provide one based on the filename.
7193
7194         * malloc/hooks.c: Define weak_variable correctly for _LIBC.
7195
7196 2001-12-28  Andreas Jaeger  <aj@suse.de>
7197
7198         * time/mktime.c (__mktime_internal): Check for year < 70
7199         [PR libc/2738].
7200
7201 2002-04-03  Andreas Jaeger  <aj@suse.de>
7202
7203         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
7204         shmat.
7205         Reported by Andi Kleen <ak@suse.de>.
7206
7207 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
7208
7209         * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
7210         * sysdeps/generic/w_lgammaf.c: Likewise.
7211         * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
7212
7213         * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
7214         Adjust for new output format of the backtrace functions.
7215
7216         * misc/syslog.c (vsyslog): Only use cleanup handler if
7217         _LIBC_REENTRANT is defined [PR libc/2924].
7218
7219         * libio/Makefile (tests): Add bug-ungetwc2.
7220         * libio/bug-ungetwc2.c: New file.
7221
7222         * manual/install.texi: Typographical and grammatical cleanup.
7223         Patch by Dennis Grace <dgrace@us.ibm.com>.
7224
7225         * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
7226         parameter if mtflag.  Patch by <jeongyun@innovay.com>.
7227
7228         * sunrpc/rpc_svcout.c (printif): Remove third parameter.  It was
7229         always "&".  Adjust callers.
7230         Add "_" prefix to several generated definitions.
7231         Patch by paul@serice.net [PR libc/3158].
7232
7233 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7234
7235         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
7236         size of _dl_arm_cap_flags.
7237         Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
7238
7239         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
7240         Define as 8.
7241
7242 2002-03-22  H.J. Lu  <hjl@gnu.org>
7243
7244         * scripts/firstversions.awk: Check the first version.
7245
7246 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7247
7248         * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
7249         dependencies must be stable to work correctly.
7250         Reported by martin.lubich@datacon.at.
7251
7252         * libio/bug-ungetwc1.c: New file.
7253         * libio/Makefile (tests): Add bug-ungetwc1.
7254
7255         * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
7256         if stream was last used for writing.
7257
7258         * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
7259         number [PR libc/3111].
7260
7261         * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
7262         to ...
7263         * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
7264
7265 2002-04-02  Jakub Jelinek  <jakub@redhat.com>
7266
7267         * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
7268         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
7269         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
7270         * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
7271         * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
7272
7273 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
7274
7275         * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
7276         dynamic tags.
7277
7278 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
7279
7280         * sysdeps/i386/fpu/s_fabs.S: New file.
7281         * sysdeps/i386/fpu/s_fabsf.S: New file.
7282         * sysdeps/i386/fpu/s_fabsl.S: New file.
7283         * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
7284         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
7285         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
7286
7287 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7288
7289         * rt/tst-shm.c (do_test): Add one more test for size of shared
7290         memory object.
7291
7292 2002-03-29  Wolfram Gloger  <wg@malloc.de>
7293
7294         * malloc/malloc.c: Add short description and prototypes for
7295         malloc_get_state, malloc_set_state and posix_memalign, for
7296         consistency and to avoid warnings with -Wstrict-prototypes.
7297         Reported by Andreas Jaeger <aj@suse.de>.
7298
7299 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7300
7301         * po/gl.po: Update from translation team.
7302
7303 2002-03-31  Roland McGrath  <roland@frob.com>
7304
7305         * hurd/hurdselect.c (_hurd_select): Fix
7306         MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
7307         Use a union rather than casts to compare mach_msg_type_t as int.
7308
7309 2002-03-25  Roland McGrath  <roland@frob.com>
7310
7311         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
7312         check off the end of NAME when it's shorter than 2 chars.
7313         Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
7314
7315 2002-03-17  Roland McGrath  <roland@frob.com>
7316
7317         * sysdeps/mach/hurd/i386/sys/io.h: New file.
7318         * sysdeps/mach/hurd/i386/ioperm.c: New file.
7319         * sysdeps/mach/hurd/i386/Dist: Add them.
7320         * sysdeps/mach/hurd/i386/Versions
7321         (libc: GLIBC_2.2.6): New set, add ioperm.
7322         * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
7323         (mach_interface_list): Check for mach_i386.defs.
7324         * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
7325         * sysdeps/mach/configure: Regenerated.
7326
7327 2002-03-22  Ulrich Drepper  <drepper@redhat.com>
7328
7329         * po/fr.po: Update from translation team.
7330
7331 2002-03-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7332
7333         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
7334         getpriority from syscalls list.
7335
7336 2002-03-28  Andreas Jaeger  <aj@suse.de>
7337
7338         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
7339         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
7340         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
7341         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
7342
7343 2002-03-27  Andreas Jaeger  <aj@suse.de>
7344
7345         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7346         sigcontext): Follow further kernel change.
7347
7348         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
7349         kernel change.
7350
7351         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
7352         Change for struct sigcontext change.
7353
7354         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7355         Follow changes in struct sigcontext.
7356
7357         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
7358         sysycall, use wrapper instead.
7359
7360 2002-03-26  Andreas Jaeger  <aj@suse.de>
7361
7362         * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
7363         read and write accesses as detailed as possible.
7364         (__memcpy_by2): Likewise.
7365         (__memcpy_g): Likewise.
7366         (memmove): Likewise.
7367         (memcmp): Likewise.
7368         (__memset_ccn_by4): Likewise.
7369         (__memset_ccn_by2): Likewise.
7370         (__memset_gcn_by4): Likewise.
7371         (__memset_gcn_by2): Likewise.
7372         (memchr): Likewise.
7373         (__memrchr): Likewise.
7374         (rawmemchr): Likewise.
7375         (__strlen_g): Likewise.
7376         (__strcpy_g): Likewise.
7377         (__mempcpy_by4): Likewise.
7378         (__mempcpy_by2): Likewise.
7379         (__mempcpy_byn): Likewise.
7380         (__stpcpy_g): Likewise.
7381         (__strncpy_by4): Likewise.
7382         (__strncpy_by2): Likewise.
7383         (__strncpy_byn): Likewise.
7384         (__strncpy_gg): Likewise.
7385         (__strcat_c): Likewise.
7386         (__strcat_g): Likewise.
7387         (__strncat_g): Likewise.
7388         (__strcmp_gg): Likewise.
7389         (__strncmp_g): Likewise.
7390         (__strchr_c): Likewise.
7391         (__strchr_g): Likewise.
7392         (__strchrnul_c): Likewise.
7393         (__strchrnul_g): Likewise.
7394         (__strrchr_c): Likewise.
7395         (__strrchr_g): Likewise.
7396         (__strrchr_c): Likewise.
7397         (__strrchr_g): Likewise.
7398         (__strcspn_c1): Likewise.
7399         (__strcspn_cg): Likewise.
7400         (__strcspn_g): Likewise.
7401         (__strcspn_g): Likewise.
7402         (__strspn_c1): Likewise.
7403         (__strspn_cg): Likewise.
7404         (__strspn_g): Likewise.
7405         (__strspn_g): Likewise.
7406         (__strpbrk_cg): Likewise.
7407         (__strpbrk_g): Likewise.
7408         (__strstr_cg): Likewise.
7409         (__strstr_g): Likewise.
7410
7411         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo.  Reported by
7412         Michal Ludvig <mludvig@suse.cz>.
7413
7414         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
7415         compatibilty, adjust for kernel changes.
7416
7417         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7418         sigcontext): Adjust for kernel changes.
7419
7420 2002-03-25  Andreas Jaeger  <aj@suse.de>
7421
7422         * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
7423         little endian.
7424         Reported by Artur Zaprzala <zybi@talex.com.pl>.
7425
7426 2002-03-24  Andreas Jaeger  <aj@suse.de>
7427
7428         * manual/memory.texi (Aligned Memory Blocks): Fix typo.
7429
7430         * stdio-common/tst-fdopen.c (main): Remove unused variable.
7431
7432         * iconv/tst-iconv3.c (main): Use correct printf strings.
7433
7434 2002-03-18  Roland McGrath  <roland@frob.com>
7435
7436         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
7437         (CMGROUP_MAX): New macro.
7438
7439 2002-03-23  Roland McGrath  <roland@frob.com>
7440
7441         * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
7442         * sysdeps/posix/shm_unlink.c: Likewise.
7443
7444 2002-03-22  Roland McGrath  <roland@frob.com>
7445
7446         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
7447         * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
7448         under --enable-libio.
7449         * sysdeps/mach/hurd/configure: Regenerated.
7450
7451 2002-03-23  Roland McGrath  <roland@frob.com>
7452
7453         * sysdeps/mach/hurd/i386/Makefile
7454         (sysdep_routines, shared-only-routines): Don't add framestate,
7455         reverting 2001-10-02 change.
7456         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
7457         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
7458         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
7459         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
7460         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
7461         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
7462         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
7463         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
7464         * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
7465         Do it here instead, only if [$(unwind-find-fde) = yes].
7466
7467 2002-03-23  Andreas Jaeger  <aj@suse.de>
7468
7469         * signal/signal.h: Fix typo. Patch by Steve Kemp
7470         <skx@tardis.ed.ac.uk>.
7471
7472 2002-03-22  Andreas Jaeger  <aj@suse.de>
7473
7474         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
7475         getresuid.
7476
7477         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7478         _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
7479         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7480         user_fpregs_struct): Rename fwd.
7481
7482         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7483         Follow sigcontext changes.
7484
7485 2002-03-22  Andreas Jaeger  <aj@suse.de>
7486
7487         * sysdeps/mips/bits/nan.h: New file.  Copy from generic one with
7488         changes for NaNs on MIPS.
7489         Patch by Hartvig Ekner <hartvige@mips.com>.
7490
7491 2002-03-21  Ulrich Drepper  <drepper@redhat.com>
7492
7493         * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
7494         Use realloc if too large.
7495         (addgrbyid): Likewise.
7496         * nscd/hstcache.c (addhstbyname): Likewise.
7497         (addhstbyaddr): Likewise.
7498         (addhstbynamev6): Likewise.
7499         (addhstbyaddrv6): Likewise.
7500         * nscd/pwdcache.c (addpwbyname): Likewise.
7501         (addpwbyuid): Likewise.
7502
7503 2002-03-21  Andreas Jaeger  <aj@suse.de>
7504
7505         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7506         _fpstate): Add separate struct for x86-64.
7507
7508         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7509         user_fpregs_struct): Change member names to follow kernel.
7510
7511 2002-03-20  Ulrich Drepper  <drepper@redhat.com>
7512
7513         * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
7514         Correctly close the UDP connection right away [PR libc/3120].
7515
7516 2002-03-20  Andreas Jaeger  <aj@suse.de>
7517
7518         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7519         user_fpregs_struct): Fix for changed kernel struct.
7520         (struct user_regs_struct): Likewise.
7521         (struct user): Likewise.
7522         Add 32-bit x86 compatibility.
7523
7524         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
7525
7526 2002-03-19  Andreas Jaeger  <aj@suse.de>
7527
7528         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
7529
7530 2002-03-18  Andreas Jaeger  <aj@suse.de>
7531
7532         * iconvdata/Makefile: Only run tests when shared libs are
7533         available.
7534
7535 2002-03-17  Andreas Jaeger  <aj@suse.de>
7536
7537         * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
7538
7539         * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
7540
7541         * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
7542         bits.
7543
7544         * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New macro.
7545         (CAUSE_SHIFT): New macro.
7546         Patch by Hartvig Ekner <hartvige@mips.com>.
7547
7548         * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
7549         * sysdeps/generic/unwind-pe.h: Likewise.
7550
7551         * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
7552         type to _IO_setb.
7553
7554         * libio/stdio.c (AL2): Define variant when visibility attribute is
7555         not supported.
7556
7557         * include/libc-symbols.h (_INTVARDEF): Define variant when
7558         visibility attribute is not supported.
7559
7560 2002-03-16  Ulrich Drepper  <drepper@redhat.com>
7561
7562         * po/fr.po: Update from translation team.
7563
7564 2002-02-25  Bruno Haible  <bruno@clisp.org>
7565
7566         * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
7567
7568 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
7569
7570         * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
7571         buffers if _IO_file_attach failed.
7572
7573         * libio/fileops.c (_IO_file_open): Close file descriptor if
7574         _IO_SEEKOFF call failed.
7575
7576 2002-03-15  H.J. Lu  <hjl@gnu.org>
7577             Ulrich Drepper  <drepper@redhat.com>
7578
7579         * configure.in: Check for availability of
7580         init_array/fini_array/preinit_array handling in binutils.
7581         * config.h.in (HAVE_INITFINI_ARRAY): New macro.
7582         * config.make.in (have-initfini-array): New variable.
7583
7584 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
7585
7586         * stdio-common/tst-printf.c (main): Comment out one test which
7587         checked the compiler's ability to fold floating-point constants
7588         but not really printf.
7589         (rfg3): Make s const.
7590         * stdio-common/tst-printf.sh: Adjust for removed test.
7591
7592         * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
7593         internal function.  Adjust for internal_function calling convention.
7594         * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
7595         as internal_function.
7596
7597         * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
7598         hidden.
7599
7600         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
7601         declaration and definition.
7602         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
7603         declaration.
7604         * nss/getXXent_r.c: Likewise.
7605         * nss/nsswitch.h (db_lookup_function): Add internal_function to
7606         definition.
7607
7608         * include/time.h: Declare __localtime_r as hidden.
7609
7610         * include/aliases.h: Declare __getaliasent_r as hidden.
7611         * include/grp.h: Declare __getgrent_r as hidden.
7612         * include/netdb.h: Declare __gethostent_r, __getnetent_r,
7613         __getservent_r, and __getprotoent_r as hidden.
7614         * include/pwd.h: Declare __getpwent_r as hidden.
7615         * include/shadow.h: Declare __getspent_r as hidden.
7616         * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
7617
7618         * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
7619         and __gconv_transliterate as hidden.
7620         Add internal_function to __gconv_get_path declaration.
7621         * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
7622         definition.  Add attribute_hidden to __gconv_read_conf definition.
7623
7624 2002-03-14  Ulrich Drepper  <drepper@redhat.com>
7625
7626         * elf/rtld.c: Declare _environ as hidden.
7627         * sysdeps/generic/dl-environ.c: Likewise.
7628         * sysdeps/generic/dl-sysdep.c: Likewise.
7629
7630         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
7631         _dl_mcount_internal as hidden.
7632
7633         * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
7634         * sysdeps/generic/dl-brk.c: New file.
7635         * sysdeps/generic/dl-sbrk.c: New file.
7636         * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
7637         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
7638
7639         * elf/dl-minimal.c (malloc): Declare _end as hidden.
7640         (__errno_location): New function.  Declare errno as hidden.
7641         * elf/rtld.c (_dl_argc): Define as hidden.
7642         (_dl_skip_args): Define as hidden.
7643         (_begin, _end): Declare as hidden.
7644         * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
7645         * sysdeps/generic/entry.h (_start): Declare as hidden.
7646         * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
7647         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
7648         _dl_runtime_resolve and _dl_runtime_profile as hidden.
7649         (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
7650
7651 2002-03-14  Roland McGrath  <roland@frob.com>
7652
7653         * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
7654
7655         * Makeconfig (%.v.i, %.v): New implicit rules.
7656         (preprocess-versions): Variable removed.
7657         ($(common-objpfx)shlib-versions.v.i): New target giving just the
7658         shlib-versions input files as dependencies.
7659         ($(common-objpfx)soversions.i): Depend on that instead of the input
7660         files.  Use it as input instead of using a pipeline.
7661         (postclean-generated): Append soversions.i, shlib-versions.v, and
7662         shlib-versions.v.i here.
7663         * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
7664         the Versions.def input files as dependencies.
7665         ($(common-objpfx)Versions.v.i): Likewise for Versions files.
7666         ($(common-objpfx)Versions.all): Depend on that instead of the input
7667         files.  Use it as input instead of using a pipeline.
7668         ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
7669         (postclean-generated): Append those .v and .v.i files here.
7670
7671 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
7672
7673         * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
7674         * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
7675         Remove.
7676
7677 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
7678
7679         * sysdeps/generic/mp_clz_tab.c: New file.
7680         * sysdeps/i386/mp_clz_tab.c: New file.
7681         * sysdeps/hppa/mp_clz_tab.c: New file.
7682         * sysdeps/powerpc/mp_clz_tab.c: New file.
7683         * stdlib/Makefile (aux): Revert last patch.
7684         * math/Makefile (gmp-objs): Likewise.
7685
7686 2002-03-13  Paul Eggert  <eggert@twinsun.com>
7687
7688         * time/strftime.c: Comment fixes for references to obsolescent
7689         standards, In most cases the simplest fix is to remove the
7690         confusing comments.  Cross-referencing all the standards properly
7691         is a bit of a pain, and it should be enough to put that info in
7692         the documentation as I did in my recent time.texi patch.
7693
7694 2002-03-13  Paul Eggert  <eggert@twinsun.com>
7695
7696         * manual/time.texi (Formatting Calendar Time):
7697         ISO C99 also specifies the E and O modifiers.
7698         %P is a GNU extension, and is not in ISO C99.
7699         Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
7700         %T is also in ISO C99.
7701         The RFC 822 example is not valid in arbitrary locales.
7702         Reword the POSIX.2 wording slightly, to make it a bit clearer
7703         that POSIX.2 formats are also supported by later POSIX versions.
7704         If a format was introduced in ISO C99 it is also required by
7705         POSIX.1-2001.
7706
7707 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
7708
7709         * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
7710         _sys_nerr_internal with INTVARDEF2.
7711         * include/libc-symbols.h (INTVARDEF2): New macro.
7712         * include/stdio.h (_sys_errlist_internal): Declare as hidden.
7713         (_sys_nerr_internal): Library.
7714
7715         * sysdeps/posix/signal.c (_sigintr): Define as hidden.
7716         * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
7717
7718         * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
7719
7720 2002-03-13  Wolfram Gloger  <wg@malloc.de>
7721
7722         * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
7723
7724 2002-03-02  Andreas Schwab  <schwab@suse.de>
7725
7726         * stdio-common/vfprintf.c (process_arg): Fix decimal format with
7727         'h' flag and positional arg.
7728         * stdio-common/tst-printf.c (rfg3): New function to test
7729         positional arguments.
7730         (main): Fix some warnings.
7731
7732 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
7733
7734         * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
7735         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
7736
7737 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
7738
7739         * grp/initgroups.c (__nss_group_data): Declare as hidden.
7740
7741         * include/locale.h (_nl_C_locobj): Declare as hidden.
7742
7743         * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
7744         * time/strptime.c (_nl_C_LC_TIME): Likewise.
7745
7746         * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
7747
7748         * include/sys/gmon.h: Declare _gmonparam as hidden.
7749
7750         * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
7751         (__ctype32_wctrans): Likewise.
7752         (__ctype32_width): Likewise.
7753
7754         * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
7755         use of __ttyname.
7756
7757         * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
7758         Define as hidden.
7759         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Define as
7760         hidden.  Change all users of these variables.
7761
7762         * posix/regex_internal.h (__re_error_msgid): Renamed from
7763         re_error_msgid.  Declare as hidden.
7764         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Declare as
7765         hidden.
7766
7767         * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
7768         (__printf_function_table): Likewise.
7769         * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
7770         hidden.
7771         (__printf_function_table): Likewise.
7772
7773         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
7774         __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
7775
7776         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
7777         * nss/nsswitch.c: Declare _nss_*_database as hidden.
7778
7779         * stdlib/wctomb.c (__no_r_state): Declare as hidden.
7780         * stdlib/mbtowc.c (__no_r_state): Define as hidden.
7781
7782 2002-03-12  Ulrich Drepper  <drepper@redhat.com>
7783
7784         * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
7785         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
7786         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
7787         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
7788         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
7789         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
7790         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
7791         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
7792         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
7793         _nl_C_LC_CTYPE_width: Declare as hidden.
7794         * include/locale.h: Declare _nl_locale_file_list.
7795         * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
7796         * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
7797         * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
7798         * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
7799         * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
7800         * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
7801         * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
7802         * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
7803         * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
7804         * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
7805         * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
7806         * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
7807         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
7808         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
7809         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
7810         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
7811         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
7812         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
7813         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
7814         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
7815         _nl_C_LC_CTYPE_width, and as hidden.
7816         * locale/findlocale.c: Declare _nl_C as hidden.
7817         * locale/newlocale.c: Likewise.
7818         * locale/setlocale.c: Define _nl_C as hidden.  Remove declaration of
7819         _nl_locale_file_list.
7820         * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
7821         _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
7822         Define _nl_C_locobj as hidden.
7823
7824         * malloc/mtrace.c (_mtrace_file): Define as hidden.
7825         (_mtrace_line): Likewise.
7826
7827         * include/time.h: Declare __mon_yday as hidden.
7828         * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
7829
7830         * libio/libioP.h: Declare __libio_codecvt as hidden.
7831         * libio/fileops.c: Declare __libio_translit as hidden.
7832         * libio/iofwide.c: Define __libio_translit as hidden.
7833
7834         * login/getutent_r.c: Define __libc_utmp_lock as hidden.
7835         * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
7836         * login/getutline_r.c: Likewise.
7837         * login/utmpname.c: Likewise.
7838
7839         * login/utmp-private.h: Declare __libc_utmp_file_functions,
7840         __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
7841         __libc_utmp_file_name as hidden.
7842
7843         * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
7844         * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
7845         * locale/freelocale.c: Likewise.
7846         * locale/lc-time.c: Likewise.
7847
7848         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
7849         (__libc_ptyname2): Likewise.
7850         * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
7851         hidden.
7852         (__libc_ptyname2): Likewise.
7853
7854         * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
7855         * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
7856         * sysdeps/generic/init-first.c: Likewise.
7857         * sysdeps/i386/init-first.c: Likewise.
7858         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
7859         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
7860         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
7861         * sysdeps/sh/init-first.c: Likewise.
7862         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
7863         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
7864
7865         * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
7866         (_itowa_upper_digits): Likewise.
7867
7868         * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
7869         * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
7870         as hidden.
7871
7872         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
7873         _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
7874         _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
7875         _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
7876
7877         * gmon/gmon.c (__bb_head): Define as hidden.
7878         * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
7879
7880         * argp/argp-parse.c (_argp_hang): Define as static.
7881
7882         * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
7883         handling in latest compilers.
7884
7885         * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
7886         define alias.
7887         * libio/fileops.c (_IO_file_jumps): Likewise.
7888         * libio/stdfiles.c (_IO_list_all): Likewise.
7889         * libio/wfileops.c (_IO_wfile_jumps): Likewise.
7890
7891         * malloc/malloc.h: Move __libc_malloc_initialized declaration to
7892         include/malloc.h.
7893         * include/malloc.h: Add __libc_malloc_initialized declaration
7894         here.  Mark variable hidden.
7895         * malloc/malloc.c: Include <malloc.h> not "malloc.h".
7896
7897         * elf/dl-open.c (__libc_argc): Declare as hidden.
7898         (__libc_argv): Likewise.
7899         * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
7900         (__libc_argv): Likewise.
7901         * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
7902         __libc_argv as hidden.
7903         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
7904         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
7905         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
7906         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
7907
7908         * include/stdlib.h (__libc_drand48_data): Declare as hidden.
7909         * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
7910         * stdlib/erand48.c: Likewise.
7911         * stdlib/jrand48.c: Likewise.
7912         * stdlib/lcong48.c: Likewise.
7913         * stdlib/lrand48.c: Likewise.
7914         * stdlib/mrand48.c: Likewise.
7915         * stdlib/nrand48.c: Likewise.
7916         * stdlib/seed48.c: Likewise.
7917         * stdlib/srand48.c: Likewise.
7918
7919         * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
7920         (_itoa_lower_digits_internal): New declaration.
7921         (_itoa_upper_digits_internal): New declaration.
7922         (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
7923         * stdio-common.h (_itoa_lower_digits_internal): New declaration.
7924         (_itoa_upper_digits_internal): New declaration.
7925         (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
7926         _itoa_lower_digits.
7927         * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
7928         * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
7929
7930         * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
7931         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
7932
7933         * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
7934         (_itowa_lower_digits): Likewise.
7935         (_itowa_upper_digits): Likewise.
7936         * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
7937         (_itowa_upper_digits): Likewise.
7938
7939         * intl/plural-exp.h (attribute_hidden): Define as empty macro if
7940         not already defined.
7941         (GERMANIC_PLURAL): Declare as hidden.
7942
7943         * posix/getopt.c (__getopt_initialized): Declare as hidden.
7944         (attribute_hidden): Define as empty macro if not already defined.
7945
7946         * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
7947         (__gconv_max_path_elem_len): Likewise.
7948         (__gconv_path_envvar): Likewise.
7949
7950         * math/Makefile (gmp-objs): Remove mp_clz_tab.
7951         * stdlib/Makefile (aux): Remove mp_clz_tab.
7952         * stdlib/mp_clz_tab.c: Removed.  Not needed anywhere.
7953
7954         * stdlib/exit.h (__exit_funcs): Declare as hidden.
7955
7956         * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
7957
7958         * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
7959         _nl_category_names, _nl_category_name_sizes, _nl_current,
7960         _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
7961
7962         * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
7963         (_nl_current_default_domain): Likewise
7964         (_nl_state_lock): Likewise.
7965         * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
7966         (_nl_current_default_domain): Likewise
7967         (_nl_state_lock): Likewise.
7968         * intl/bindtextdom.c (_nl_state_lock): Likewise.
7969
7970         * stdlib/fpioconst.h (__tens): Add attribute_hidden.
7971         (_fpioconst_pow10): Likewise.
7972
7973         * include/time.h (_tmbuf): Add attribute_hidden.
7974
7975         * time/tzset.c (tzstring_list): Define as static.
7976
7977         * include/time.h: Add attribute_hidden to __tzname_cur_max and
7978         __use_tzfile declaration.
7979
7980         * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
7981         and __wcsmbs_last_locale declaration.
7982
7983 2002-02-25  Paul Eggert  <eggert@twinsun.com>
7984
7985         * timezone/Makefile (tzbases): Move systemv from here...
7986         (tzlinks): to here, since the entries in systemv were all changed
7987         from Zone to Link lines in tz-2001a.  Bug reported (and patch
7988         tested) by Peter Breitenlohner.
7989
7990 2002-03-07  Jakub Jelinek  <jakub@redhat.com>
7991
7992         * time/tst-posixtz.c (tests): Add new tests.
7993         (main): Test whether tzset() sets daylight properly.
7994
7995 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
7996
7997         * time/tzset.c (tz_compute): Move __daylight, __tzname and
7998         __tzname_cur_max setting...
7999         (tzset_internal): ...here.
8000
8001 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
8002
8003         * time/tzset.c (compute_change): Don't return any value.
8004         (tz_compute): Likewise.  Don't handle southern hemisphere here.
8005         (__tz_convert): But here.
8006
8007 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8008
8009         * manual/examples/mkfsock.c: Include <string.h> as well.
8010         Patch by Alain De Carolis <alaind@wseurope.com>.
8011
8012 2002-03-06  Isamu Hasegawa  <isamu@yamato.ibm.com>
8013
8014         * posix/regexec.c (re_match): Fix incorrect register sizes.
8015         (re_search): Likewise.
8016
8017 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
8018
8019         * posix/regcomp.c (regfree): Remove a disused condition.
8020         * posix/regex_internal.c (re_acquire_state): Likewise.
8021         (re_acquire_state_context): Likewise.
8022         (register_state): Remove a redundant malloc invocation.
8023         * posix/regex_internal.h: (re_state_table_entry): Simplify
8024         the structure.
8025
8026 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
8027
8028         * posix/regcomp.c (regcomp): Add __builtin_expect to error
8029         handling conditions.
8030         (regerror): Likewise.
8031         (regfree): Likewise.
8032         (re_compile_internal): Likewise.
8033         (init_dfa): Likewise.
8034         (init_word_char): Likewise.
8035         (create_initial_state): Likewise.
8036         (analyze): Likewise.
8037         (analyze_tree): Likewise.
8038         (duplicate_node): Likewise.
8039         (calc_eclosure): Likewise.
8040         (calc_eclosure_iter): Likewise.
8041         (parse): Likewise.
8042         (parse_reg_exp): Likewise.
8043         (parse_branch): Likewise.
8044         (parse_expression): Likewise.
8045         (parse_subexp): Likewise.
8046         (parse_dup_op): Likewise.
8047         (parse_bracket_exp): Likewise.
8048         (build_equiv_class): Likewise.
8049         (build_charclass): Likewise.
8050         (build_word_op): Likewise.
8051         (fetch_number): Likewise.
8052         (create_tree): Likewise.
8053         (duplicate_tree): Likewise.
8054         * posix/regex.c (BE): New macro.
8055         * posix/regexec.c (re_match): Add __builtin_expect to error
8056         handling conditions.
8057         (re_match_2): Likewise.
8058         (re_search): Likewise.
8059         (re_search_internal): Likewise.
8060         (check_matching): Likewise.
8061         (proceed_next_node): Likewise.
8062         (set_regs): Likewise.
8063         (sift_states_backward): Likewise.
8064         (add_epsilon_backreference): Likewise.
8065         (transit_state): Likewise.
8066         (transit_state_sb): Likewise.
8067         (transit_state_mb): Likewise.
8068         (transit_state_bkref): Likewise.
8069         (transit_state_bkref_loop): Likewise.
8070         (build_trtable): Likewise.
8071         (group_nodes_into_DFAstates): Likewise.
8072         (match_ctx_init): Likewise.
8073         (match_ctx_add_entry): Likewise.
8074         * posix/regex_internal.c (re_string_construct): Add __builtin_expect
8075         to error handling conditions.
8076         (re_string_construct_toupper): Likewise.
8077         (build_wcs_buffer): Likewise.
8078         (build_wcs_upper_buffer): Likewise.
8079         (build_upper_buffer): Likewise.
8080         (re_string_translate_buffer): Likewise.
8081         (re_node_set_alloc): Likewise.
8082         (re_node_set_init_1): Likewise.
8083         (re_node_set_init_2): Likewise.
8084         (re_node_set_init_copy): Likewise.
8085         (re_node_set_intersect): Likewise.
8086         (re_node_set_init_union): Likewise.
8087         (re_node_set_merge): Likewise.
8088         (re_node_set_insert): Likewise.
8089         (re_dfa_add_node): Likewise.
8090         (re_acquire_state): Likewise.
8091         (re_acquire_state_context): Likewise.
8092         (create_new_state_common): Likewise.
8093         (register_state): Likewise.
8094         (create_ci_new_state): Likewise.
8095         (create_cd_new_state): Likewise.
8096         (re_string_context_at): Remove redundant condition.
8097
8098 2002-01-16  Roger Sayle  <roger@eyesopen.com>
8099
8100         * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
8101
8102         * sysdeps/i386/i586/strlen.S: Fix typo in comment.
8103
8104 2002-03-11  Jakub Jelinek  <jakub@redhat.com>
8105
8106         * sysdeps/i386/elf/configure.in: Fix comment.
8107
8108         * sysdeps/sparc/sparc64/configure.in: New file.
8109         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
8110         if .dynamic comes before .got.
8111         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
8112
8113         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
8114         HP_TIMING_ACCUM): Fix typos.
8115
8116 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8117
8118         * string/strfry.c: Add some more randomness to the seed.
8119         Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
8120
8121         * po/es.po: Update from translation team.
8122         * po/fr.po: Likewise.
8123
8124         * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
8125
8126         * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
8127         when determining type of format.
8128         Patch by James Antill <james@anqd.org> [PR libc/2787].
8129
8130 2002-03-04  Jakub Jelinek  <jakub@redhat.com>
8131
8132         * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
8133
8134 2002-03-11  Roland McGrath  <roland@frob.com>
8135
8136         * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
8137
8138         * Versions.def (libc): Add GLIBC_2.2.6.
8139         * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
8140         * sysdeps/mach/hurd/errnos.awk: In generated macro, use
8141         __errno_location instead of __hurd_errno_location, and don't inline it.
8142         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
8143         * hurd/errno.c: New file.
8144         * hurd/Makefile (routines): Add errno.
8145
8146 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8147
8148         * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
8149         ridiculously large widths and precisions [PR libc/3026].
8150
8151 2002-03-11  Andreas Jaeger  <aj@suse.de>
8152
8153         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
8154         support.
8155         Patch by Susanne Oberhauser <froh@SuSE.de>.
8156
8157 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8158
8159         * inet/rexec.c (ahostbuf): Define as static.
8160
8161         * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
8162         (__ctype32_wctrans): Likewise.
8163         * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
8164         * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
8165         (__ctype32_wctrans): Likewise.
8166         (__ctype32_width): Likewise.
8167
8168         * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
8169         They were never exported anyway.
8170
8171         * gmon/gmon.c (_gmonparam): Add attribute_hidden.
8172         * gmon/sys/gmon.h: Remove declaration of _gmonparam.  It wasn't
8173         exported.
8174         * include/sys/gmon.h: Declare _gmonparam.
8175
8176         * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
8177         symbols for getdents64.  They were never exported.
8178
8179 2002-03-09  Roland McGrath  <roland@frob.com>
8180
8181         * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
8182         Reported by Jon Arney <jarney1@cox.net>.
8183
8184 2002-02-23  Roland McGrath  <roland@frob.com>
8185
8186         * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
8187         declaration.
8188         (__hurd_errno_location): Function removed.
8189
8190 2002-03-06  Andreas Jaeger  <aj@suse.de>
8191
8192         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
8193         32-bit.
8194
8195 2002-03-04  Andreas Jaeger  <aj@suse.de>
8196
8197         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New file.
8198
8199         * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
8200         x86-64.
8201
8202         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New file.
8203
8204         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New file.
8205
8206         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New file.
8207
8208         * sysdeps/x86_64/bits/setjmp.h: New file.
8209
8210         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New file.
8211
8212         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New file.
8213
8214         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
8215         for x86.
8216         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
8217         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
8218
8219 2002-02-28  Bo Thorsen  <bo@suse.de>
8220
8221         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
8222         version.
8223
8224 2002-03-03  Andreas Jaeger  <aj@suse.de>
8225
8226         * sysdeps/x86_64/bits/wordsize.h: New file.
8227
8228         * elf/nodlopenmod2.c: Provide prototype to avoid warning.
8229         * elf/tst-tlsmod1.c: Likewise.
8230
8231         * posix/regcomp.c: Get regex.h from include dir for internal
8232         prototypes.
8233
8234         * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
8235         to libc-internal.h and include it.
8236         * include/libc-internal.h: Add __init_misc.
8237
8238         * misc/init-misc.c: Include libc-internal.h for prototypes.
8239
8240         * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
8241
8242         * misc/error.c [_LIBC]: Include libioP.h for prototype of
8243         _IO_putc_internal.
8244
8245 2002-03-03  Ulrich Drepper  <drepper@redhat.com>
8246
8247         * posix/regcomp.c: Compatibility changes to allow using the code
8248         outside glibc.
8249
8250 2002-02-28  Hartvig Ekner <hartvige@mips.com>
8251
8252         * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
8253         compiled non-PIC.
8254
8255 2002-03-02  Ulrich Drepper  <drepper@redhat.com>
8256
8257         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
8258         of .str elements in the returned data structure.
8259
8260         * elf/elf.h: Add Alpha TLS bits.
8261
8262 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8263
8264         * sysdeps/unix/sysv/linux/nice.c: New file.
8265
8266 2002-03-01  Ulrich Drepper  <drepper@redhat.com>
8267
8268         * elf/Makefile (dl-routines): Add dl-origin.
8269         (elide-routines.os): Add dl-origin.
8270         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
8271         * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
8272         _dl_debug_state.
8273         * include/libc-symbols.c: Define attribute_hidden depending on
8274         HAVE_VISIBILITY_ATTRIBUTE.  Add definition of INTVARDEF.
8275
8276         * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
8277         * elf/dl-load.c: Likewise.
8278         * elf/rtld.c: Likewise.
8279         * include/unistd.h: Declare __libc_enable_secure_internal.
8280         * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
8281         Use INTUSE with __libc_enable_secure.
8282         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
8283
8284         * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
8285         * elf/dl-error.c: Likewise,
8286         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
8287
8288         * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
8289         * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
8290         function definition.  Use INTDEF with _dl_get_origin.
8291         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
8292
8293         * elf/dl-init.c: Use INTUSE with _dl_starting_up.
8294         * elf/rtld.c: Likewise.  Use INTVARDEF for _dl_starting_up.
8295
8296         * elf/dl-profile.c: Use INTDEF for _dl_mcount.
8297         * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
8298         * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
8299
8300         * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
8301         * elf/dl-deps.c: Likewise.
8302         * elf/dl-error.c: Likewise.
8303         * elf/dl-fini.c: Likewise.
8304         * elf/dl-init.c: Likewise.
8305         * elf/dl-load.c: Likewise.
8306         * elf/dl-lookup.c: Likewise.
8307         * elf/dl-reloc.c: Likewise.
8308         * elf/dl-version.c: Likewise.
8309         * elf/do-lookup.h: Likewise.
8310         * sysdeps/arm/dl-machine.h: Likewise.
8311         * sysdeps/cris/dl-machine.h: Likewise.
8312         * sysdeps/hppa/dl-machine.h: Likewise.
8313         * sysdeps/i386/dl-machine.h: Likewise.
8314         * sysdeps/m68k/dl-machine.h: Likewise.
8315         * sysdeps/powerpc/dl-machine.h: Likewise.
8316         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8317         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8318         * sysdeps/sh/dl-machine.h: Likewise.
8319         * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
8320         * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
8321         * sysdeps/x86_64/dl-machine.h: Likewise.
8322         * elf/rtld.c: Use INTDEF for _dl_argv.  Use rtld_progrname instead of
8323         _dl_argv[0].  Use INTUSE with _dl_argv.
8324         * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
8325         * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
8326
8327 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8328
8329         * elf/rtld.c (_rtld_global): Remove .protected.
8330         (_rtld_local): Strong alias to _rtld_global.
8331         * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
8332         only .os object.
8333         * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
8334         _rtld_local instead of _rtld_global.
8335         (_rtld_local): Add hidden extern, possibly in .sdata section.
8336         * configure.in: Add tests for visibility attribute and .sdata.
8337         * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
8338         * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
8339         * sysdeps/arm/dl-machine.h: Likewise.
8340         * sysdeps/generic/ldsodefs.h: Likewise.
8341         * sysdeps/hppa/dl-machine.h: Likewise.
8342         * sysdeps/cris/dl-machine.h: Likewise.
8343         * sysdeps/i386/dl-machine.h: Likewise.
8344         * sysdeps/ia64/dl-machine.h: Likewise.
8345         * sysdeps/m68k/dl-machine.h: Likewise.
8346         * sysdeps/mips/mips64/dl-machine.h: Likewise.
8347         * sysdeps/mips/dl-machine.h: Likewise.
8348         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8349         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8350         * sysdeps/sh/dl-machine.h: Likewise.
8351         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8352         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8353         * sysdeps/x86_64/dl-machine.h: Likewise.
8354
8355 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
8356
8357         * login/login.c (login): Always initialize ut_line field
8358         [PR libc/2991].
8359
8360 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8361
8362         * sysdeps/i386/Makefile (sysdep_routines): Add
8363         divdi3 in csu dir.
8364         (shared-only-routines): Likewise.
8365         * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
8366         (shared-only-routines): Likewise.
8367         * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
8368         (shared-only-routines): Likewise.
8369         * sysdeps/wordsize-32/divdi3.c: New file.
8370
8371 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
8372
8373         * locale/iso-4217.def: Remove obsolete currencies for countries
8374         with Euro.
8375
8376 2002-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
8377
8378         * posix/regcomp.c (regcomp): Remove a redundant condition.
8379         (init_word_char): Add a check on malloc failure.
8380         (create_initial_state): Likewise.
8381         (duplicate_node): Likewise.
8382         (calc_eclosure): Likewise.
8383         (calc_eclosure_iter): Likewise.
8384         (parse_expression): Likewise.
8385         (parse_bracket_exp): Remove unnecessary malloc invocations.
8386         (build_equiv_class): Likewise.
8387         (build_charclass): Likewise.
8388         * posix/regex_internal.c (re_node_set_intersect): Add a check
8389         on malloc failure.
8390         (re_node_set_add_intersect): Likewise.
8391         (re_node_set_merge): Likewise.
8392         (re_acquire_state): Likewise.
8393         (re_acquire_state_context): Likewise.
8394         (create_newstate_common): Likewise.
8395         (register_state): Likewise.
8396         (create_ci_newstate): Likewise.
8397         (create_cd_newstate): Likewise.
8398         * posix/regex_internal.h: Fix prototypes of re_acquire_state
8399         and re_acquire_state_context.
8400         * posix/regexec.c (regexec): Suit it to the error handling of
8401         re_search_internal.
8402         (re_match): Likewise.
8403         (re_search): Likewise.
8404         (re_search_internal): Add a check on malloc failure.
8405         (acquire_init_state_context): Likewise.
8406         (check_matching): Likewise.
8407         (proceed_next_node): Likewise.
8408         (set_regs): Likewise.
8409         (sift_states_backward): Likewise.
8410         (sift_states_iter_bkref): Likewise.
8411         (add_epsilon_backreference): Likewise.
8412         (transit_state): Likewise.
8413         (transit_state_sb): Likewise.
8414         (transit_state_mb): Likewise.
8415         (transit_state_bkref_loop): Likewise.
8416         (build_trtable): Likewise.
8417         (group_nodes_into_DFAstates): Likewise.
8418         (match_ctx_init): Likewise.
8419         (match_ctx_add_entry): Likewise.
8420
8421 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
8422
8423         * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
8424         l_libname if profiling is enabled [PR libc/2916].
8425
8426         * sysdeps/ia64/dl-tls.h: New file.
8427
8428 2002-02-27  Jakub Jelinek  <jakub@redhat.com>
8429
8430         * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
8431         Work around an Alpha gas bug.
8432
8433 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
8434
8435         * catgets/open_catalog.c (__open_catalog): Fix typo in code which
8436         uses read to load the catalog.
8437         Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
8438
8439 2002-02-26  Ulrich Drepper  <drepper@redhat.com>
8440
8441         * posix/Makefile (distribute): Add regcomp.c, regexec.c,
8442         regex_internal.c, and regex_internal.h.
8443         (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
8444         * posix/regex.c: Complete rewrite.
8445         * posix/regexec.c: New file.
8446         * posix/regcomp.c: New file.
8447         * posix/regex_internal.c: New file.
8448         * posix/regex_internal.h: New file.
8449         * posix/regex.h (RE_ICASE): New macro.
8450         Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
8451
8452         * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
8453         ungetwc.  It's a macro.
8454         * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
8455         implementation.
8456         Reported by Jason Merrill <jason@redhat.com>.
8457
8458 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
8459
8460         * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
8461         position to fp->_offset if it is set.
8462         * stdio-common/Makefile (tests): Add tst-fdopen.
8463         * stdio-common/tst-fdopen.c: New test.
8464
8465 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
8466
8467         * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
8468         * stdio-common/tst-ungetc.c (main): Add another test.
8469
8470 2002-02-25  Ulrich Drepper  <drepper@redhat.com>
8471
8472         * assert/assert-perr.c: Use INTUSE to reference functions and variables
8473         inside libc itself.  Use INTDEF and INTDEF2 to define appropriate
8474         aliases.  Add prototypes for the new aliases.
8475         * assert/assert.c: Likewise.
8476         * include/libc-symbols.h: Likewise.
8477         * include/stdio.h: Likewise.
8478         * include/netinet/in.h: Likewise.
8479         * include/rpc/auth.h: Likewise.
8480         * include/rpc/auth_unix.h: Likewise.
8481         * include/rpc/key_prot.h: Likewise.
8482         * include/rpc/pmap_prot.h: Likewise.
8483         * include/rpc/pmap_rmt.h: Likewise.
8484         * include/rpc/rpc_msg.h: Likewise.
8485         * include/rpc/xdr.h: Likewise.
8486         * inet/gethstbyad_r.c: Likewise.
8487         * inet/gethstbynm2_r.c: Likewise.
8488         * inet/gethstbynm_r.c: Likewise.
8489         * inet/gethstent_r.c: Likewise.
8490         * inet/in6_addr.c: Likewise.
8491         * libio/__fpurge.c: Likewise.
8492         * libio/filedoalloc.c: Likewise.
8493         * libio/fileops.c: Likewise.
8494         * libio/ftello.c: Likewise.
8495         * libio/ftello64.c: Likewise.
8496         * libio/genops.c: Likewise.
8497         * libio/iofclose.c: Likewise.
8498         * libio/iofdopen.c: Likewise.
8499         * libio/iofflush.c: Likewise.
8500         * libio/iofflush_u.c: Likewise.
8501         * libio/iofgetpos.c: Likewise.
8502         * libio/iofgetpos64.c: Likewise.
8503         * libio/iofgets.c: Likewise.
8504         * libio/iofgets_u.c: Likewise.
8505         * libio/iofopen.c: Likewise.
8506         * libio/iofopncook.c: Likewise.
8507         * libio/iofputs.c: Likewise.
8508         * libio/iofread.c: Likewise.
8509         * libio/iofread_u.c: Likewise.
8510         * libio/iofsetpos.c: Likewise.
8511         * libio/iofsetpos64.c: Likewise.
8512         * libio/ioftell.c: Likewise.
8513         * libio/iofwrite.c: Likewise.
8514         * libio/iogetline.c: Likewise.
8515         * libio/iogets.c: Likewise.
8516         * libio/iogetwline.c: Likewise.
8517         * libio/iolibio.h: Likewise.
8518         * libio/iopadn.c: Likewise.
8519         * libio/iopopen.c: Likewise.
8520         * libio/ioseekoff.c: Likewise.
8521         * libio/ioseekpos.c: Likewise.
8522         * libio/iosetbuffer.c: Likewise.
8523         * libio/iosetvbuf.c: Likewise.
8524         * libio/ioungetc.c: Likewise.
8525         * libio/ioungetwc.c: Likewise.
8526         * libio/iovdprintf.c: Likewise.
8527         * libio/iovsprintf.c: Likewise.
8528         * libio/iovsscanf.c: Likewise.
8529         * libio/libioP.h: Likewise.
8530         * libio/memstream.c: Likewise.
8531         * libio/obprintf.c: Likewise.
8532         * libio/oldfileops.c: Likewise.
8533         * libio/oldiofclose.c: Likewise.
8534         * libio/oldiofdopen.c: Likewise.
8535         * libio/oldiofgetpos.c: Likewise.
8536         * libio/oldiofgetpos64.c: Likewise.
8537         * libio/oldiofopen.c: Likewise.
8538         * libio/oldiofsetpos.c: Likewise.
8539         * libio/oldiofsetpos64.c: Likewise.
8540         * libio/oldiopopen.c: Likewise.
8541         * libio/oldstdfiles.c: Likewise.
8542         * libio/putc.c: Likewise.
8543         * libio/setbuf.c: Likewise.
8544         * libio/setlinebuf.c: Likewise.
8545         * libio/stdfiles.c: Likewise.
8546         * libio/stdio.c: Likewise.
8547         * libio/strops.c: Likewise.
8548         * libio/vasprintf.c: Likewise.
8549         * libio/vscanf.c: Likewise.
8550         * libio/vsnprintf.c: Likewise.
8551         * libio/vswprintf.c: Likewise.
8552         * libio/wfiledoalloc.c: Likewise.
8553         * libio/wfileops.c: Likewise.
8554         * libio/wgenops.c: Likewise.
8555         * libio/wstrops.c: Likewise.
8556         * malloc/mtrace.c: Likewise.
8557         * misc/error.c: Likewise.
8558         * misc/syslog.c: Likewise.
8559         * nss/getXXbyYY_r.c: Likewise.
8560         * nss/getXXent_r.c: Likewise.
8561         * nss/hosts-lookup.c: Likewise.
8562         * stdio-common/getw.c
8563         * stdio-common/printf-prs.c: Likewise.
8564         * stdio-common/printf_fp.c: Likewise.
8565         * stdio-common/printf_size.c: Likewise.
8566         * stdio-common/putw.c: Likewise.
8567         * stdio-common/scanf.c: Likewise.
8568         * stdio-common/sprintf.c: Likewise.
8569         * stdio-common/tmpfile64.c: Likewise.
8570         * stdio-common/vfprintf.c: Likewise.
8571         * stdio-common/vfscanf.c: Likewise.
8572         * stdlib/strfmon.c: Likewise.
8573         * sunrpc/auth_des.c: Likewise.
8574         * sunrpc/auth_none.c: Likewise.
8575         * sunrpc/auth_unix.c: Likewise.
8576         * sunrpc/authdes_prot.c: Likewise.
8577         * sunrpc/authuxprot.c: Likewise.
8578         * sunrpc/clnt_perr.c: Likewise.
8579         * sunrpc/clnt_raw.c: Likewise.
8580         * sunrpc/clnt_tcp.c: Likewise.
8581         * sunrpc/clnt_udp.c: Likewise.
8582         * sunrpc/clnt_unix.c: Likewise.
8583         * sunrpc/key_call.c: Likewise.
8584         * sunrpc/key_prot.c: Likewise.
8585         * sunrpc/openchild.c: Likewise.
8586         * sunrpc/pm_getmaps.c: Likewise.
8587         * sunrpc/pm_getport.c: Likewise.
8588         * sunrpc/pmap_clnt.c: Likewise.
8589         * sunrpc/pmap_prot.c: Likewise.
8590         * sunrpc/pmap_prot2.c: Likewise.
8591         * sunrpc/pmap_rmt.c: Likewise.
8592         * sunrpc/rpc_cmsg.c: Likewise.
8593         * sunrpc/rpc_prot.c: Likewise.
8594         * sunrpc/svc_authux.c: Likewise.
8595         * sunrpc/svc_raw.c: Likewise.
8596         * sunrpc/svc_simple.c: Likewise.
8597         * sunrpc/svc_tcp.c: Likewise.
8598         * sunrpc/svc_udp.c: Likewise.
8599         * sunrpc/svc_unix.c: Likewise.
8600         * sunrpc/xdr.c: Likewise.
8601         * sunrpc/xdr_array.c: Likewise.
8602         * sunrpc/xdr_mem.c: Likewise.
8603         * sunrpc/xdr_rec.c: Likewise.
8604         * sunrpc/xdr_ref.c: Likewise.
8605         * sunrpc/xdr_stdio.c: Likewise.
8606         * sysdeps/generic/_strerror.c: Likewise.
8607         * sysdeps/generic/printf_fphex.c: Likewise.
8608         * sysdeps/generic/tmpfile.c: Likewise.
8609         * sysdeps/gnu/errlist.awk: Likewise.
8610         * sysdeps/gnu/errlist.c: Likewise.
8611
8612         * libio/Makefile (routines): Remove iosprint.
8613         * libio/iosprintf.c: Removed
8614
8615
8616 2002-02-24  Ulrich Drepper  <drepper@redhat.com>
8617
8618         * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
8619         non_dynamic_init and exported now.
8620         * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
8621         * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
8622         !SHARED.
8623         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
8624         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8625         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8626
8627 2002-02-23  Ulrich Drepper  <drepper@redhat.com>
8628
8629         * elf/dl-close.c (free_slotinfo): Check for end of list and return
8630         true in this case.
8631
8632         * locale/iso-639.def: Add language codes for Walloon.
8633
8634         * elf/dl-fini.c (_dl_fini): Print some final statistics on the
8635         total number of relocations performed.
8636
8637         * elf/sprof.c (load_profdata): If do_test provide information as
8638         to why loading failed.
8639         * elf/dl-profile.c (_dl_start_profile): Initialize all of
8640         hist_hdr.dimen.
8641
8642         * csu/set-init.c: Moved to...
8643         * sysdeps/mach/hurd/set-init.c: ...here.  New file.
8644         * csu/Makefile: Don't compile set-init.
8645         * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
8646         * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
8647         to __libc_init.
8648         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8649         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8650         * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
8651         __libc_init.
8652         * misc/init-misc.c: Always export __init_misc.  Don't define hooks for
8653         __libc_subinit.
8654
8655 2002-02-22  Ulrich Drepper  <drepper@redhat.com>
8656
8657         * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
8658         * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
8659         * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
8660         (_dl_deallocate_tls): New function.
8661         * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
8662         _dl_deallocate_tls.
8663
8664 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
8665
8666         * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
8667         * stdio-common/tst-fseek.c (main): Add test for this.
8668
8669 2002-02-19  Ulrich Drepper  <drepper@redhat.com.>
8670
8671         * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
8672
8673 2002-02-19  Jakub Jelinek  <jakub@redhat.com>
8674
8675         * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
8676         pointer before dereferencing.
8677
8678 2002-02-18  Roland McGrath  <roland@frob.com>
8679
8680         * sysdeps/mach/hurd/times.c: Fix typo in last change.
8681
8682         * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
8683         Use task_policy in place of task_priority.
8684
8685         * sysdeps/generic/bits/mman.h
8686         (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
8687         * sysdeps/mach/msync.c: New file.
8688
8689         * sysdeps/mach/powerpc/syscall.S: New file.
8690
8691         * mach/msg.c [MACH_MSG_OVERWRITE]
8692         (__mach_msg_trap, __mach_msg_overwrite): New functions.
8693         * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
8694
8695         * sysdeps/mach/configure.in: Check for clock.defs to put into
8696         mach_interface_list.
8697         * sysdeps/mach/configure: Regenerated.
8698
8699         * mach/Makefile (mach-machine): New variable, set from $(base-machine).
8700         ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
8701         ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
8702         Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
8703         (mach-shortcuts): Add device_read_overwrite_request,
8704         device_read_overwrite, vm_read_overwrite, thread_switch.
8705
8706         * configure.in (base_machine): Set to $machine by default.
8707         * configure: Regenerated.
8708
8709         * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
8710         or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
8711         * sysdeps/mach/configure: Regenerated.
8712         * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
8713
8714         * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
8715
8716         * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
8717
8718         * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
8719         Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
8720
8721 2002-02-17  Roland McGrath  <roland@frob.com>
8722
8723         * sysdeps/mach/hurd/times.c
8724         [NO_CREATION_TIME] (startup_time): New static variable.
8725         [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
8726         (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
8727         creation_time from task_basic_info.
8728         (__times): Use __gettimeofday instead of __host_get_time.
8729
8730         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
8731         Use untyped Mach IPC message format.
8732
8733         * hurd/catch-exc.c: Include <assert.h>, missing from last change.
8734
8735         * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
8736         _S_catch_exception_raise_state_identity,
8737         _hurdsig_fault_catch_exception_raise_state,
8738         _hurdsig_fault_catch_exception_raise_state_identity.
8739
8740         * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
8741
8742         * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
8743         __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
8744
8745         * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
8746         `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
8747
8748         * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
8749         (fmh, unfmh): Define these functions only #if FMH.  Otherwise define
8750         them as no-op macros.
8751         [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
8752         (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
8753
8754         * sysdeps/powerpc/dl-machine.h
8755         (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
8756
8757         * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
8758         Use untyped Mach IPC message format.
8759
8760         * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
8761         Handle untyped Mach IPC message formats.
8762
8763         * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
8764         Expect different argument conventions when this is defined.
8765         [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
8766         [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
8767         * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
8768         [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
8769         for OSF Mach variant.
8770         (faulted): Use mig_reply_error_t for REPLY.
8771         (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
8772         in __thread_set_exception_ports call.
8773         (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
8774         __mach_port_set_attributes in place of __mach_port_set_qlimit.
8775
8776         * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
8777         before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
8778         on Darwin, which includes bogons.
8779
8780         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
8781         variable LOADBASE so it's not declared when it's not used.
8782
8783 2002-02-16  Roland McGrath  <roland@frob.com>
8784
8785         * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
8786         to use BI.creation_time.
8787
8788         * mach/Machrules (MIG): Add -x c to CPP value passed down.
8789
8790         * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
8791         * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
8792         * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
8793         host_page_size instead of vm_statistics.
8794
8795         * sysdeps/mach/Makefile (mach-before-compile): Don't include
8796         mach_interface.h here, since not all variants use that name.
8797
8798         * sysdeps/mach/configure.in: Add some checks for Mach headers
8799         to ensure a sane installation.
8800         (mach_interface_list): Define this variable by checking for .defs
8801         files found in various variants.
8802         * configure.in (mach_interface_list): AC_SUBST this.
8803         * config.make.in (mach-interface-list): New substituted variable.
8804         * mach/Makefile (user-interfaces): Define this using the value
8805         of $(mach-interface-list) instead of mach, mach4.
8806         Updated other references to mach_interface to use it as well.
8807
8808         * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
8809
8810         * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
8811         mig_reply_error_t for OSF Mach variant.
8812
8813         * mach/Makefile (routines): Remove bootprivport.
8814         * mach/bootprivport.c: File removed.  It has never been used.
8815
8816         * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
8817         Grok the OSF flavor of message format.
8818         (mach_msg_destroy_port): For MAKE_SEND and
8819         MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
8820         no-senders notification.
8821
8822 2002-02-06  Roland McGrath  <roland@frob.com>
8823
8824         * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
8825         to here if 2.0 compatibility enabled ...
8826         (libc: GLIBC_2.1.3): ... from here.
8827
8828 2002-02-15  Ulrich Drepper  <drepper@redhat.com>
8829
8830         * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
8831         generation counter.
8832         * elf/dl-close.c (_dl_close): Likewise.
8833
8834 2002-02-14  Ulrich Drepper  <drepper@redhat.com>
8835
8836         * elf/Makefile: Add rules to build and run tst-tls8.
8837         * elf/tst-tls8.c: New file.
8838         * elf/tst-tlsmod4.c: New file.
8839
8840         * stdlib/test-a64l.c (tests): Add more test cases.
8841
8842         * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
8843         Reported by Walter Harms <WHarms@bfs.de>.
8844
8845 2002-02-11  Jes Sorensen  <jes@trained-monkey.org>
8846
8847         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
8848         definitions for struct sigcontext.
8849         Suggested by David Mosberger-Tang.
8850
8851 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
8852
8853         * elf/dl-close.c (remove_slotinfo): New function.  Handles everything
8854         for removing reference of module in slotinfo list.
8855         (_dl_close): Use remove_slotinfo.
8856         * sysdeps/generic/dl-tls.c: General pretty printing.
8857         (oom): Define only if SHARED.
8858         (_dl_next_tls_modid): Correct starting point for the case we assume
8859         there is a gap.  Add missing instruction grouping (doh!).  Correct
8860         tests for reaching maximum index.
8861         * elf/Makefile: Add rules to build and run tst-tls7.
8862         * elf/tst-tls7.c: New file.
8863         * elf/tst-tlsmod3.c: New file.
8864
8865         * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
8866         USE_TLS.
8867         * elf/tst-tlsmod2.c: Likewise.
8868
8869         * elf/dl-close.c (_dl_close): When closing an object using TLS
8870         either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
8871         true.  Increment dl_tls_generation only if we closed any TLS-using
8872         object.
8873         * elf/tst-tls6.c: New file.
8874         * elf/Makefile: Add rules to build and run tst-tls6.
8875
8876         * po/da.po: Update from translation team.
8877
8878         * locale/categories.def: Fix typo [PR libc/2948].
8879         * po/Makefile (BROKEN_LINGUAS): Works with current gettext
8880         [PR libc/2949].
8881         * locale/iso-4217.def: Update from official version [PR libc/2950].
8882         * glibcbug.in: Honor TMPDIR [PR libc/2951].
8883         * locale/programs/ld-collate.c (collate_finish): Bail out with a
8884         message if input is too confusion instead of using assert.
8885         (collate_read): Don't crash on unknown symbol [PR libc/2952].
8886         Patches by Alastair McKinstry <alastair@pdd.3com.com>.
8887
8888         * elf/tst-tls1.c: Move #include "tls-macros.h" inside #ifdef USE_TLS.
8889         * elf/tst-tls2.c: Likewise.
8890         * elf/tst-tls3.c: Likewise.
8891
8892 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
8893
8894         * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
8895
8896 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
8897
8898         * elf/dl-open.c (dl_open_worker): Only bump the generation counter
8899         if this is really necessary.
8900
8901         * elf/dl-close.c (_dl_close): Implement freeing entries in the
8902         slotinfo array.
8903         (free_mem): Free memory for the slotinfo array if possible.
8904
8905 2002-02-12  Andreas Schwab  <schwab@suse.de>
8906
8907         * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
8908
8909 2002-02-12  Ulrich Drepper  <drepper@redhat.com>
8910
8911         * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
8912         TLS_DTV_UNALLOCATE.
8913         (oom): New function.
8914         (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
8915         (_dl_determine_tlsoffset): Likewise.
8916         (_dl_allocate_tls): Likewise.
8917         (__TLS_GET_ADDR): Define if not already defined.
8918         (_dl_tls_symaddr): New function.
8919         (allocate_and_init): New function.
8920         (__tls_get_addr): Actually implement handling of generation counter
8921         and deferred allocation.
8922         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
8923         add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
8924         _dl_tls_generation.
8925         Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
8926         Declare _dl_tls_symaddr.
8927         * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
8928         SHARED.
8929         * include/link.h (struct link_map):  Remove l_tls_nextimage and
8930         l_tls_previmage.
8931         * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
8932         instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
8933         (_dl_vsym): Likewise.
8934         * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
8935         layout.
8936         (dl_main): Allow PT_TLS be present for empty segment.  Remove
8937         nextimage list handling.  Instead add all modules using TLS to
8938         dl_tls_dtv_slotinfo_list.
8939         * elf/dl-open.c (dl_open_worker): After successfully loading all
8940         objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
8941         * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
8942         empty segment don't do anything.  Remove handling of initimage list.
8943         * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
8944         (GLIBC_PRIVATE): Add _dl_tls_symaddr.
8945         * elf/dl-minimal.c: Define __libc_memalign.
8946         * elf/dl-support.c: Remove _dl_initimage_list.  Add
8947         _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
8948         _dl_tls_generation.
8949         * include/stdlib.h: Declare __libc_memalign.
8950
8951         * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
8952         * elf/tst-tls4.c: New file.
8953         * elf/tst-tls5.c: New file.
8954         * elf/tst-tlsmod2.c: New file.
8955
8956         * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
8957
8958         * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
8959
8960         * elf/tst-tls1.c: Use test-skeleton.c.
8961         * elf/tst-tls2.c: Likewise.
8962         * elf/tst-tls3.c: Likewise.
8963
8964         * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
8965
8966 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
8967
8968         * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
8969
8970 2002-02-10  Ulrich Drepper  <drepper@redhat.com>
8971
8972         * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
8973
8974         * elf/tst-tls3.c: New file.
8975         * elf/tst-tlsmod1.c: New file.
8976         * elf/Makefile: Add rules to build and run tst-tls3.
8977
8978         * sysdeps/i386/dl-machine.h: Include <tls.h>.
8979         (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
8980         TLS relocations.
8981
8982         * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
8983
8984         * po/fr.po: Update from translation team.
8985
8986         * elf/tls-macros.h: Add alternative macros for use in PIC.
8987
8988         * elf/dl-lookup.c: Include <tls.h>.
8989         * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
8990
8991         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
8992         required by passing pointer to last element of the list.
8993
8994         * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
8995         l_tls_initimage to a place where it actually is performed.
8996
8997         * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
8998         after globfree() calls.
8999
9000         * elf/dl-deps.c (struct openaux_args): Add open_mode element.
9001         (openaux): Pass open_mode as new last argument to _dl_map_object.
9002         (_dl_map_object_deps): Add new argument open_mode.  Initialize
9003         open_mode element of args variable with it.
9004         * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
9005         _dl_map_object_deps.
9006         * elf/rtld.c (dl_main): Add zero as last parameter to
9007         _dl_map_object_deps call.
9008         * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
9009         * elf/nodlopen2.c: New file.
9010         * elf/nodlopenmod2.c: New file.
9011         * elf/Makefile: Add rules to build and run nodlopen2.
9012
9013         * elf/tst-tls1.c: Move TLS helper macros to...
9014         * elf/tls-macros.h: ...here.  New file.
9015         * elf/tst-tls2.c: New file.
9016         * elf/Makefile (tests): Add tst-tls2.
9017         (distribute): Add tls-macros.h.
9018
9019         * po/sv.po: Update from translation team.
9020
9021         * elf/tst-tls1.c (main): Add complete set of tests.  Split
9022         architecture specific definitions from the actual test code.
9023
9024         * po/tr.po: Update from translation team.
9025
9026 2002-02-09  Ulrich Drepper  <drepper@redhat.com>
9027
9028         * elf/Makefile (tests): Add tst-tls1.
9029         * elf/tst-tls1.c: New file.
9030
9031         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
9032         alignment of TCB for now.
9033
9034         * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
9035         initialization image for the application itself.
9036
9037         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
9038         loop to initialize TLS block.
9039
9040 2002-02-08  Richard Henderson  <rth@redhat.com>
9041
9042         * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
9043         _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
9044
9045         * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
9046
9047 2002-02-09  Jakub Jelinek  <jakub@redhat.com>
9048
9049         * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
9050
9051 2002-02-08  Ulrich Drepper  <drepper@redhat.com>
9052
9053         * po/ca.po: Update from translation team.
9054         * po/sk.po: Likewise.
9055
9056         * elf/rtld.c (_dl_start_final): Install DTV explicitly.
9057         (dl_main): Move dtv/static TLS handling before relocation.
9058         Unconditionally call _dl_tlsoffset.  Call _dl_allocate_tls and
9059         TLS_INIT_TP to allocate and install the dtv/static TLS block.
9060         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
9061         so far uses TLS initialize GL(dl_tls_static_size) and
9062         GL(dl_tls_static_align) to account for the TCB.
9063         (_dl_allocate_tls): New function.
9064         * sysdeps/generic/ldsodefs.h (rtld_global): Add
9065         _dl_initial_dtv_malloced.
9066
9067         * configure.in: Test for __builtin_memset more realistically.
9068
9069         * csu/version.c (banner): If TLS support is available say so.
9070
9071 2002-02-04  H.J. Lu  <hjl@gnu.org>
9072
9073         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
9074         __attribute_used__.
9075         (__dl_runtime_resolve): Likewise.
9076
9077         * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
9078         declaration.
9079
9080 2001-11-15  H.J. Lu  <hjl@gnu.org>
9081
9082         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
9083         <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
9084
9085         * sysdeps/unix/sysv/linux/mips/sys/user.h: New file.
9086
9087 2002-02-07  H.J. Lu  <hjl@gnu.org>
9088
9089         * sysdeps/mips/atomicity.h (compare_and_swap): Remove
9090         ".set noreorder".
9091         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
9092         Likewise.
9093
9094 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9095
9096         * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
9097
9098         * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
9099         ___tls_get_addr_internal.
9100         (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
9101
9102         * po/ko.po: Update from translation team.
9103
9104 2002-02-07  Jakub Jelinek  <jakub@redhat.com>
9105
9106         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
9107         attribute, change __pad{1,2} type to unsigned int.
9108         (struct stat64): Remove packed attribute.
9109
9110 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9111
9112         * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
9113
9114 2002-02-07  Andreas Schwab  <schwab@suse.de>
9115
9116         * configure.in: Fix check for -zcombreloc.
9117
9118 2002-02-06  H.J. Lu  <hjl@gnu.org>
9119
9120         * config.h.in (HAVE_BUILTIN_MEMSET): New macro.
9121         * configure.in: Check if __builtin_memset really works.
9122         * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
9123         __GNUC_PREREQ (2, 96) before using __builtin_memset.
9124
9125 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
9126
9127         * io/bug-ftw3.c (main): Don't try the test if root.
9128
9129 2002-02-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9130
9131         * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
9132         constraints.
9133         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
9134         Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
9135         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
9136         Likewise.
9137         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
9138         a weak alias for __clone.
9139         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
9140         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
9141         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
9142         * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
9143         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
9144         a weak alias for __mmap64.
9145
9146 2002-02-05  H.J. Lu  <hjl@gnu.org>
9147
9148         * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
9149         (atomic_add): Likewise.
9150         (compare_and_swap): Likewise.
9151         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
9152
9153 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9154
9155         * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
9156
9157         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
9158         alignment of the TCB and store total size and alignment of static
9159         TLS block in _dl_tls_static_size and _dl_tls_static_align.
9160         tls_index is a typedef.
9161         * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
9162         _dl_tls_static_align.
9163         * sysdeps/i386/dl-tls.h: tls_index is a typedef.
9164         * elf/dl-support.c: Define _dl_tls_static_size and
9165         _dl_tls_static_align.
9166
9167 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9168
9169         * configure.in: Add --without-tls option.
9170         * sysdeps/i386/elf/configure.in: Don't check for TLS support if
9171         --without-tls is given.
9172
9173         * sysdeps/generic/dl-tls.c: Include <tls.h>.
9174
9175         * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
9176
9177 2002-02-06  Roland McGrath  <roland@frob.com>
9178
9179         * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
9180         * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
9181
9182         * scripts/versions.awk: Improve error message for missing version.
9183         Each version inherits from the last one only if they have the same
9184         nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
9185         but not GLIBC_x and FOO_y.
9186
9187         * scripts/firstversions.awk: Handle libraries that don't have each
9188         particular version named in the third column of shlib-versions.
9189
9190         * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
9191
9192 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9193
9194         * Versions.def [ld]: Add GLIBC_2.3.
9195         * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
9196         * elf/Makefile (dl-routines): Add dl-tls.
9197         (distribute): Add dl-tls.h.
9198         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9199         _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9200         Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
9201         * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
9202         along with the other info in the link map.  Change queueing of init
9203         images for double linked list.  Use _dl_next_tls_modid to compute
9204         l_tls_modid.
9205         * elf/rtld.c (_dl_start_final): Store alignment requirement
9206         along with the other info in rtld map and executable map.
9207         (dl_main): Add ld.so to the init image list if necessary.  Compute
9208         final module ID with _dl_next_tls_modid.
9209         * include/link.h (struct link_map): Add l_tls_previmage and
9210         l_tls_align.
9211         * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9212         * sysdeps/i386/elf/Versions: New file.
9213         * sysdeps/generic/dl-tls.c: New file.
9214         * sysdeps/generic/dl-tls.h: New file.
9215         * sysdeps/i386/dl-tls.h: New file.
9216
9217 2002-02-06  Roland McGrath  <roland@frob.com>
9218
9219         * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
9220         * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
9221
9222 2002-01-05  Roland McGrath  <roland@frob.com>
9223
9224         * sysdeps/mach/configure.in: New file.
9225         * sysdeps/mach/configure: New generated file.
9226
9227         * mach/Makefile (user-interfaces): Remove default_pager_helper.
9228         It has never been used by anything.
9229
9230 2002-02-06  H.J. Lu  <hjl@gnu.org>
9231
9232         * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
9233         is included.
9234
9235 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9236
9237         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
9238         attribute((packed)) to counter stupid people misusing gcc options.
9239         (struct stat64): Likewise.
9240
9241 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9242
9243         * elf/rtld.c (dl_main): Correct indentation.  Use bool as type for
9244         the variables which are used as booleans.
9245
9246 2002-02-06  Andreas Jaeger  <aj@suse.de>
9247
9248         * include/libc-symbols.h (INTUSE): Renamed from INT.
9249         * elf/dl-deps.c: Change users.
9250         * sysdeps/generic/dl-sysdep.c: Likewise.
9251         * sysdeps/generic/dl-cache.c: Likewise.
9252         * elf/dl-reloc.c: Likewise.
9253         * elf/rtld.c: Likewise.
9254         * elf/dl-version.c: Likewise.
9255         * elf/dl-load.c: Likewise.
9256         * elf/dl-dst.h: Likewise.
9257         * elf/dl-init.c: Likewise.
9258         * elf/dl-error.c: Likewise.
9259         * elf/dl-fini.c: Likewise.
9260         * elf/dl-runtime.c: Likewise.
9261         * elf/do-lookup.h: Likewise.
9262
9263         * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
9264         definition.
9265         * stdio-common/_itowa.h: Likewise.
9266
9267 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9268
9269         * elf/dl-minimal.c: Define _itoa_lower_digits.
9270
9271         * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
9272         DT_FLAGS set.
9273
9274         * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
9275         loading modules with the DF_STATIC_TLS flag set.
9276         * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
9277         element.
9278         * include/link.h (struct link_map): Add l_flags field.
9279         * elf/elf.h (DF_STATIC_TLS): New definition.
9280
9281         * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
9282         * dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.
9283
9284         * elf/rtld.c (process_dl_debug): Correct printing help message.
9285         * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
9286         for %s.
9287
9288         * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
9289         definition and pass &errno in use of this variable.
9290         Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
9291
9292 2002-02-04  Andreas Schwab  <schwab@suse.de>
9293
9294         * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
9295         * locale/programs/charmap-dir.c: Wrap calls that output messages
9296         with WITH_CUR_LOCALE.  Include "localedef.h" first.
9297         * locale/programs/charmap.c: Likewise.
9298         * locale/programs/ld-address.c: Likewise.
9299         * locale/programs/ld-collate.c: Likewise.
9300         * locale/programs/ld-ctype.c: Likewise.
9301         * locale/programs/ld-identification.c: Likewise.
9302         * locale/programs/ld-measurement.c: Likewise.
9303         * locale/programs/ld-messages.c: Likewise.
9304         * locale/programs/ld-monetary.c: Likewise.
9305         * locale/programs/ld-name.c: Likewise.
9306         * locale/programs/ld-numeric.c: Likewise.
9307         * locale/programs/ld-paper.c: Likewise.
9308         * locale/programs/ld-telephone.c: Likewise.
9309         * locale/programs/ld-time.c: Likewise.
9310         * locale/programs/linereader.c: Likewise.
9311         * locale/programs/linereader.h: Likewise.
9312         * locale/programs/localedef.c: Likewise.
9313         * locale/programs/locfile.c: Likewise.
9314         * locale/programs/repertoire.c: Likewise.
9315
9316 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9317
9318         * elf/rtld.c (_dl_start_final): Determine load address to locate
9319         ehdr with GL(dl_rtld_map).l_map_start.
9320
9321         * po/ca.po: Update from translation team.
9322
9323         * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
9324         * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
9325         header entry.
9326         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
9327         _dl_tls_module_cnt.
9328         * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
9329
9330 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
9331
9332         * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
9333         * include/link.h (struct link_map): Add various members for TLS
9334         information.
9335         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9336         _rtld_tlsoffset, add _dl_initimage_list.
9337         * sysdeps/i386/dl-lookupcfg.h: New file.
9338         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
9339         TLS relocation.  When using TLS we now use RESOLVE_MAP.
9340         (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
9341         is used.
9342
9343         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
9344         unused.
9345
9346         * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
9347         thread-pointer as soon as possible.
9348         * sysdeps/generic/ldsodefs.h: Include <tls.h>.  Define first TLS
9349         elements in rtld_global.
9350         * sysdeps/generic/tls.h: New file.
9351         * elf/Makefile (distribute): Add tls.h.
9352         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
9353         relocations.  Not complete yet.
9354
9355         * resolv/resolv.h: Allow user to define __need_res_state and only
9356         define __res_start structure then.
9357         * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
9358
9359         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
9360         dl_cpuclock_offset initialization to _dl_start_final.
9361         (_dl_show_auxv): Avoid unnecessary sign extension.
9362         * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
9363
9364 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
9365
9366         * config.h.in: Add HAVE_TLS_SUPPORT.
9367         * sysdeps/i386/elf/configure.in: New file.
9368
9369 2002-02-03  Andreas Schwab  <schwab@suse.de>
9370
9371         * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
9372         * sysdeps/posix/writev.c: Use ssize_t for bytes_written.  Fix comment.
9373
9374 2002-02-03  Thorsten Kukuk  <kukuk@suse.de>
9375
9376         * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
9377         alloca if the memory reqirements are too high.
9378
9379 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
9380
9381         * elf/dl-load.c (decompose_rpath): Avoid using strstr.
9382         * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
9383         the former is available anyway and speed isn't important here.
9384         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
9385         * elf/dl-version.c (match_symbol): Likewise.
9386         (_dl_check_map_versions): Likewise.
9387         * elf/rtld.c (process_envvars): Likewise.
9388         (print_statistics): Likewise.
9389         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
9390         * elf/dl-minimal.c (_itoa): Always define it.  Make it work for all
9391         bases.  Add assert to catch uses of unimplemented features.
9392         (__strsep): Add assert to catch uses of unimplemented features.
9393         * elf/dl-object.c (_dl_new_object): Don't use rawmemchr.  Use strchr
9394         and avoid inline optimization.
9395         * elf/rtld.c (process_envvars): Likewise.
9396         * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
9397         * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
9398         * elf/rtld.c (dl_main): Avoid strsep inline optimization.
9399
9400 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
9401
9402         * stdio-common/_itoa.h: Minor simplifications of the code.
9403         * stdio-common/_itoa.c: Likewise.
9404
9405         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
9406         instead of _dl_printf for debugging info output.
9407
9408         * manual/examples/mkfsock.c (make_named_socket): Make sure name is
9409         always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.
9410
9411 2002-02-01  H.J. Lu  <hjl@gnu.org>
9412
9413         * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
9414         (atomic_add): Likewise.
9415         (compare_and_swap): Return 0 only when failed to compare. Use
9416         branch likely.
9417
9418         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
9419         branch likely.
9420
9421 2002-02-03  kaz Kojima  <kkojima@rr.iij4u.or.jp>
9422
9423         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
9424
9425 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
9426
9427         * elf/dl-minimal.c (__strsep): New minimal implementation.
9428
9429 2002-02-02  Paul Eggert  <eggert@twinsun.com>
9430
9431         * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
9432         (__mktime_internal): If no tm_isdst is requested, prefer solutions
9433         with tm_isdst > 0 when the requested time falls within a
9434         spring-forward gap [PR libc/2894].
9435
9436 2002-02-03  Andreas Schwab  <schwab@suse.de>
9437
9438         * stdio-common/tst-rndseek.c: Increase timeout.
9439
9440 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
9441
9442         Change ld.so to not use functions which are exported.  One cannot
9443         interpose them anyway.  Use INT() to mark uses, INTDEF() to mark
9444         definitions.
9445         * include/libc-symbols.h: Define INT and INTDEF.
9446         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
9447         _dl_signal_error_internal, _dl_map_object_internal,
9448         _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
9449         _dl_lookup_versioned_symbol_internal,
9450         _dl_relocate_object_internal, _dl_debug_state_internal,
9451         _dl_start_profile_internal, and _dl_unload_cache_internal.
9452         * include/dlfcn.h: Declare _dl_catch_error_internal.
9453         * elf/rtld.c: Use INT for calls to any of the *_internal functions
9454         above.  Add INTDEF to function definitions.
9455         * elf/dl-debug.c: Likewise.
9456         * elf/dl-deps.c: Likewise.
9457         * elf/dl-dst.h: Likewise.
9458         * elf/dl-error.c: Likewise.
9459         * elf/dl-fini.c: Likewise.
9460         * elf/dl-init.c: Likewise.
9461         * elf/dl-load.c: Likewise.
9462         * elf/dl-lookup.c: Likewise.
9463         * elf/dl-misc.c: Likewise.
9464         * elf/dl-open.c: Likewise.
9465         * elf/dl-profile.c: Likewise.
9466         * elf/dl-reloc.c: Likewise.
9467         * elf/dl-runtime.c: Likewise.
9468         * elf/dl-version.c: Likewise.
9469         * elf/do-lookup.h: Likewise.
9470         * sysdeps/generic/dl-cache.c: Likewise.
9471         * sysdeps/generic/dl-sysdep.c: Likewise.
9472         * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
9473         instead of _dl_init.
9474         * sysdeps/arm/dl-machine.h: Likewise.
9475         * sysdeps/cris/dl-machine.h: Likewise.
9476         * sysdeps/hppa/dl-machine.h: Likewise.
9477         * sysdeps/i386/dl-machine.h: Likewise.
9478         * sysdeps/ia64/dl-machine.h: Likewise.
9479         * sysdeps/m68k/dl-machine.h: Likewise.
9480         * sysdeps/mips/dl-machine.h: Likewise.
9481         * sysdeps/mips/mips64/dl-machine.h: Likewise.
9482         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9483         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9484         * sysdeps/sh/dl-machine.h: Likewise.
9485         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9486         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9487         * sysdeps/x86_64/dl-machine.h: Likewise.
9488         * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
9489
9490         * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
9491         and _dl_debug_initialize.
9492
9493         * elf/dl-object.c (_dl_new_object): Avoid using strrchr.  We have
9494         more information.
9495         * elf/rtld.c (dl_main): Avoid strrchr.
9496         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
9497         result of readlink.  Search from the back for '/'.
9498
9499         * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
9500         strncpy if possible.
9501
9502         * sysdeps/generic/dl-environ.c (unsetenv): Optimize.  Don't use
9503         strncmp.
9504         * elf/dl-load.c (is_dst): Optimize.  Don't call strncmp twice.
9505         * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
9506         strspn, and strcspn.
9507         (process_envvars): Don't use strcspn.
9508
9509         * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
9510         (_dl_dst_substitute): Likewise.
9511
9512 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9513
9514         * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
9515         code which is never used when relocating ld.so itself.
9516
9517         * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
9518         starting ld.so itself.  Move l_addr variable initialization closer
9519         to use.
9520         (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
9521
9522 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
9523
9524         * Versions.def (libc): Add GLIBC_PRIVATE.
9525         (libdb, libnss_db, libdb1): Remove.
9526         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
9527         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
9528         (libpthread): Add GLIBC_PRIVATE.
9529         (libresolv): Likewise, remove GLIBC_2.1.
9530         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
9531         GLIBC_2.2.3, GLIBC_2.3.
9532         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
9533         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
9534         _dl_sym, _dl_vsym): Likewise.
9535         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
9536         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
9537         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
9538         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
9539         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
9540         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
9541         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
9542         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
9543         Likewise.
9544         (_dl_object_relocation_scope): Remove.
9545         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
9546         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
9547         __gconv_cache): Move to GLIBC_PRIVATE.
9548         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
9549         __internal_setnetgrent): Likewise.
9550         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
9551         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
9552         * locale/Versions (__collate_element_hash, __collate_element_strings,
9553         __collate_symbol_classes, __collate_symbol_hash,
9554         __collate_symbol_strings, _nl_current_LC_COLLATE,
9555         _nl_current_LC_CTYPE): Likewise.
9556         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
9557         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
9558         (libnss_nis, libnss_nisplus): Likewise.
9559         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
9560         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
9561         (libnss_files): Move all symbols to GLIBC_PRIVATE.
9562         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
9563         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
9564         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
9565         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
9566         __ns_get16, __ns_samename): Likewise.
9567         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
9568         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
9569         GLIBC_PRIVATE.
9570         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
9571         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
9572         __libc_connect): Likewise.
9573         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
9574         Likewise.
9575         * stdlib/Versions (__libc_system): Likewise.
9576         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
9577         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
9578         * sysdeps/ia64/fpu/Versions: Likewise.
9579         * sysdeps/ia64/Versions: Likewise.
9580         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
9581         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
9582         to GLIBC_PRIVATE.
9583         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
9584         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
9585         __libc_sigaction): Likewise.
9586         * termios/Versions (__libc_tcdrain): Likewise.
9587
9588         * misc/sys/cdefs (__attribute_noinline__): Define.
9589         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
9590         __attribute_noinline__.
9591
9592         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
9593         * elf/dl-xstat64.c: New file.
9594         * elf/dl-fxstat64.c: New file.
9595         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
9596         don't export __fxstat64 at multiple versions.
9597         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
9598         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
9599
9600 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
9601
9602         * locale/program/ld-collate.c (collate_finish): Assign a wide
9603         char collation sequence value to multi character collating
9604         elements, and avoid over writing by non-character elements.
9605
9606 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9607
9608         * elf/Makefile (distribute): Add dl-procinfo.c.
9609         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
9610         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
9611
9612 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
9613
9614         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
9615         definition.
9616         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
9617         _rtld_global struct.
9618         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
9619         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
9620         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9621         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
9622         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
9623         _dl_fpu_control_set): Remove unused externs.
9624         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
9625         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
9626         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
9627         related variables in _rtld_global struct.
9628         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
9629         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
9630         unused extern.
9631
9632 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9633
9634         * sysdeps/generic/dl-procinfo.c: New file.
9635
9636 2002-02-01  Andreas Schwab  <schwab@suse.de>
9637
9638         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
9639
9640 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9641
9642         * elf/rtld.c (_dl_start): Mark as internal_function.
9643         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
9644         in register.
9645         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
9646         General pretty printing.
9647
9648 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
9649
9650         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
9651         * elf/dl-reloc.c: Pretty printing.
9652         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
9653         procinfo-related variables in rtld_global struct.
9654         * elf/dl-support.c: Likewise.
9655         * elf/rtld.c: Likewise.
9656         * sysdeps/i386/i686/Makefile: Likewise.
9657         * sysdeps/i386/i686/hp-timing.c: Likewise.
9658         * sysdeps/i386/i686/hp-timing.h: Likewise.
9659         * sysdeps/ia64/Makefile: Likewise.
9660         * sysdeps/ia64/hp-timing.c: Likewise.
9661         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
9662         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
9663         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
9664         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
9665         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
9666         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
9667         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
9668         * sysdeps/x86_64/Makefile: Likewise.
9669
9670         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
9671         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
9672         _dl_debug_fd to rtld_global.
9673         * elf/Versions: Likewise.
9674         * elf/dl-close.c: Likewise.
9675         * elf/dl-iteratephdr.c: Likewise.
9676         * elf/dl-lookup.c: Likewise.
9677         * elf/dl-misc.c: Likewise.
9678         * elf/dl-open.c: Likewise.
9679         * elf/dl-support.c: Likewise.
9680         * elf/do-lookup.h: Likewise.
9681         * elf/rtld.c: Likewise.
9682         * sysdeps/generic/dl-cache.c: Likewise.
9683         * sysdeps/generic/dl-sysdep.c: Likewise.
9684         * sysdeps/ia64/Versions: Likewise.
9685         * sysdeps/unix/clock_gettime.c: Likewise.
9686         * sysdeps/unix/clock_settime.c: Likewise.
9687         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
9688         * sysdeps/sparc/Versions: Removed.
9689         * sysdeps/i386/i686/Versions : Removed.
9690         * sysdeps/x86_64/Versions: Removed.
9691         * configure.in: Define HAVE_PROTECTED if .protected is available.
9692         * config.h.in: Add entry for HAVE_PROTECTED.
9693
9694 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
9695
9696         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
9697         code in struct _rtld_global.  Export this struct, remove all
9698         exports for the signal variables.
9699         * sysdeps/arm/dl-machine: Likewise.
9700         * sysdeps/generic/dl-origin: Likewise.
9701         * sysdeps/generic/dl-sysdep: Likewise.
9702         * sysdeps/generic/dl-cache: Likewise.
9703         * sysdeps/hppa/dl-fptr: Likewise.
9704         * sysdeps/hppa/dl-machine: Likewise.
9705         * sysdeps/cris/dl-machine: Likewise.
9706         * sysdeps/i386/dl-machine: Likewise.
9707         * sysdeps/ia64/dl-machine: Likewise.
9708         * sysdeps/m68k/dl-machine: Likewise.
9709         * sysdeps/mach/hurd/dl-sysdep: Likewise.
9710         * sysdeps/mips/mips64/dl-machine: Likewise.
9711         * sysdeps/mips/dl-machine: Likewise.
9712         * sysdeps/powerpc/elf/libc-start: Likewise.
9713         * sysdeps/powerpc/dl-machine: Likewise.
9714         * sysdeps/powerpc/dl-start: Likewise.
9715         * sysdeps/sparc/sparc32/dl-machine: Likewise.
9716         * sysdeps/sparc/sparc64/dl-machine: Likewise.
9717         * sysdeps/sh/dl-machine: Likewise.
9718         * sysdeps/s390/s390-32/dl-machine: Likewise.
9719         * sysdeps/s390/s390-64/dl-machine: Likewise.
9720         * sysdeps/unix/sysv/aix/libc-start: Likewise.
9721         * sysdeps/unix/sysv/aix/start-libc: Likewise.
9722         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
9723         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
9724         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
9725         * sysdeps/x86_64/dl-machine: Likewise.
9726
9727 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
9728
9729         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
9730         are too high.
9731
9732 2002-01-31  Andreas Schwab  <schwab@suse.de>
9733
9734         * sysdeps/posix/readv.c: Check for ssize_t overflow.
9735
9736 2002-01-31  Andreas Schwab  <schwab@suse.de>
9737
9738         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
9739         reference to _dl_pagesize.
9740
9741 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
9742
9743         * Versions.def [ld]: Add GLIBC_2.3.
9744         * elf/dl-addr.c: Move global variables for SHARED code in struct
9745         _rtld_global.  Export this struct, remove all exports for the
9746         signal variables.
9747         * elf/dl-close.c: Likewise.
9748         * elf/dl-conflict.c: Likewise.
9749         * elf/dl-debug.c: Likewise.
9750         * elf/dl-deps.c: Likewise.
9751         * elf/dl-dst.h: Likewise.
9752         * elf/dl-error.c: Likewise.
9753         * elf/dl-fini.c: Likewise.
9754         * elf/dl-init.c: Likewise.
9755         * elf/dl-iteratephdr.c: Likewise.
9756         * elf/dl-libc.c: Likewise.
9757         * elf/dl-load.c: Likewise.
9758         * elf/dl-lookup.c: Likewise.
9759         * elf/dl-minimal.c: Likewise.
9760         * elf/dl-object.c: Likewise.
9761         * elf/dl-open.c: Likewise.
9762         * elf/dl-profile.c: Likewise.
9763         * elf/dl-profstub.c: Likewise.
9764         * elf/dl-reloc.c: Likewise.
9765         * elf/dl-runtime.c: Likewise.
9766         * elf/dl-support.c: Likewise.
9767         * elf/dl-sym.c: Likewise.
9768         * elf/dl-version.c: Likewise.
9769         * elf/do-lookup.h: Likewise.
9770         * elf/do-rel.h: Likewise.
9771         * elf/dynamic-link.h: Likewise.
9772         * elf/rtld.c: Likewise.
9773         * sysdeps/generic/dl-cache.c: Likewise.
9774         * sysdeps/generic/dl-sysdep.c: Likewise.
9775         * sysdeps/generic/ldsodefs.h: Likewise.
9776         * sysdeps/generic/libc-start.c: Likewise.
9777         * sysdeps/i386/dl-machine.h: Likewise.
9778         * sysdeps/ia64/dl-fptr.c: Likewise.
9779         * sysdeps/ia64/dl-machine.h: Likewise.
9780         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
9781         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
9782         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
9783         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
9784         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
9785         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
9786         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
9787         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
9788
9789 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
9790
9791         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
9792         to avoid warning
9793         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
9794
9795         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
9796         SHARED version.
9797         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
9798
9799         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
9800
9801 2002-01-29  Ben Collins  <bcollins@debian.org>
9802
9803         * string/bits/string2.h (__mempcpy): Protect size arg for
9804         addition when using __builtin_memcpy.
9805
9806 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
9807
9808         * stdlib/Makefile (tests): Add tst-qsort.
9809         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
9810
9811         * manual/signal.texi (Process Signal Mask): Document that
9812         pthread_sigmask, not sigprocmask, must be used in MT programs.
9813         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
9814
9815         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
9816         found.
9817         * misc/Makefile (tests): Add tst-hsearch.
9818         * misc/tst-hsearch.c: New file.
9819
9820 2002-01-18  Wolfram Gloger  <wg@malloc.de>
9821
9822         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
9823         * malloc/malloc.h: Likewise.
9824         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
9825         * malloc/arena.c: New file.
9826         * malloc/hooks.c: New file.
9827         * malloc/tst-mallocstate.c: New file.
9828         * malloc/Makefile: Add new testcase tst-mallocstate.
9829         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
9830
9831 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
9832
9833         * stdlib/msort.c: Remove last patch.  The optimization violates the
9834         same rule which qsort.c had problems with.
9835
9836 2002-01-27  Paul Eggert  <eggert@twinsun.com>
9837
9838         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
9839         to a pivot element that lies outside the array to be sorted, as
9840         ISO C99 requires that the comparison function be called only with
9841         addresses of array elements [PR libc/2880].
9842
9843 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
9844
9845         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
9846         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
9847
9848         * timezone/asia: Update from tzdata2002b.
9849         * timezone/australasia: Likewise.
9850         * timezone/backward: Likewise.
9851         * timezone/europe: Likewise.
9852         * timezone/leapseconds: Likewise.
9853         * timezone/iso3166.tab: Likewise.
9854         * timezone/zone.tab: Likewise.
9855
9856 2002-01-23  Richard Henderson  <rth@redhat.com>
9857
9858         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
9859
9860 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
9861
9862         * string/strxfrm.c: Allocate one more byte for rulearr and clear
9863         this element [PR libc/2855].
9864
9865         * string/strcoll.c: Handle zero-length arguments specially
9866         [PR libc/2856].
9867
9868 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
9869
9870         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
9871         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
9872         short lengths and constant src.
9873         (strcpy): Don't optimize for gcc 3.0+.
9874         (__stpcpy): For gcc 3.0+, don't use
9875         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
9876         for short string literal src.
9877
9878 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
9879
9880         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
9881         Set for arm, too.
9882
9883 2001-01-22  Paul Eggert  <eggert@twinsun.com>
9884
9885         * manual/llio.texi (Linked Channels, Cleaning Streams):
9886         Make it clearer that a just-opened input stream might need cleaning.
9887
9888 2002-01-21  H.J. Lu  <hjl@gnu.org>
9889
9890         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
9891         Don't use label at end of compound statement.
9892
9893 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
9894
9895         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
9896         Remove test for negative integer arg; sin_pi does it correctly.
9897
9898 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
9899
9900         * nscd/Makefile (distribute): Filter out xmalloc.c.
9901
9902 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
9903
9904         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
9905         Set offset if read end wasn't the buffer end.
9906         (_IO_file_seekoff_mmap): New function.
9907         (_IO_file_xsgetn_mmap): New function.
9908         (_IO_file_jumps_mmap): Use the two new functions.
9909         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
9910         != end buffer.
9911         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
9912         _IO_file_underflow_mmap.
9913         * libio/iofopen.c: Don't position file descriptor at end of file.
9914         * libio/tst-widetext.c: Improve error messages.
9915         * stdio-common/tst-rndseek.c: Likewise.
9916
9917 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
9918
9919         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
9920         end of enum for !_GNU_SOURCE.
9921         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
9922         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
9923         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
9924         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
9925         values unless _GNU_SOURCE.
9926
9927         * iconvdata/tcvn5712-1.c: Minor cleanups.
9928
9929 2002-01-18  Andreas Schwab  <schwab@suse.de>
9930
9931         * sysdeps/unix/sysv/linux/configure.in
9932         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
9933
9934 2002-01-16  Roger Sayle  <roger@eyesopen.com>
9935
9936         * stdlib/msort.c (msort_with_tmp): Replace implementation with
9937         more efficient "Towers of Hanoi" mergesort.
9938         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
9939         for generic, sizeof(int) and sizeof(long) variants respectively.
9940
9941 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
9942
9943         * manual/syslog.texi (openlog): Describe possible problems with
9944         first parameter.
9945         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
9946
9947         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
9948         * nscd/connections.c (begin_drop_privileges): New function.
9949         (finish_drop_privileges): New function.
9950         (nscd_init): Call the new functions which also install all groups
9951         for the server user.
9952         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
9953         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
9954
9955 2002-01-17  H.J. Lu  <hjl@gnu.org>
9956
9957         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
9958         `const' from `got'.
9959
9960 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9961
9962         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
9963         instructions for pointer operations.
9964         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
9965
9966 2002-01-17  Andreas Jaeger  <aj@suse.de>
9967
9968         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
9969         __uint128_t build-in.
9970
9971         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
9972         PowerPC, sync with 2.2 branch.
9973
9974 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
9975
9976         * posix/getconf.c: Update copyright year.
9977         * nss/getent.c: Likewise.
9978         * nscd/nscd_nischeck.c: Likewise.
9979         * iconv/iconvconfig.c: Likewise.
9980         * iconv/iconv_prog.c: Likewise.
9981         * elf/ldconfig.c: Likewise.
9982         * catgets/gencat.c: Likewise.
9983         * csu/version.c: Likewise.
9984         * elf/ldd.bash.in: Likewise.
9985         * elf/sprof.c (print_version): Likewise.
9986         * locale/programs/locale.c: Likewise.
9987         * locale/programs/localedef.c: Likewise.
9988         * nscd/nscd.c (print_version): Likewise.
9989         * debug/xtrace.sh: Likewise.
9990         * malloc/memusage.sh: Likewise.
9991         * malloc/mtrace.pl: Likewise.
9992
9993 2002-01-16  Andreas Schwab  <schwab@suse.de>
9994
9995         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
9996         reliably remove "-ia64" from rtld name.
9997
9998 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
9999
10000         * iconvdata/gb18030.c: Bug fixes and support for more characters.
10001         Patch by Yu Shao <yshao@redhat.com>.
10002
10003 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10004
10005         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
10006         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
10007         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
10008
10009 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10010
10011         * sysdeps/s390/fpu/libm-test-ulps: Update.
10012
10013 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
10014
10015         * elf/elf.h: Update x86 relocations.
10016
10017 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
10018
10019         * locale/programs/charmap.c (new_width): Check whether byte
10020         sequences for both ends of range have the same length.
10021
10022 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
10023
10024         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
10025
10026 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
10027
10028         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
10029         string literals.
10030         (__full_ieee754_sqrt): Add __attribute_used__.
10031
10032 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
10033
10034         * sysdeps/generic/group_member.c (__group_member): Also check
10035         groups[0] [PR libc/2781].
10036
10037 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
10038
10039         * Makefile (distribute): Add scripts/cpp.
10040         * elf/Makefile (distribute): Add reldep6mod[01234].c,
10041         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
10042         unwind-dw2-fde.h, and dwarf2.h.
10043         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
10044         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
10045         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
10046         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
10047
10048 2002-01-07  Roland McGrath  <roland@frob.com>
10049
10050         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
10051         volatile on type of ARGC so the compiler doesn't get clever.
10052
10053 2002-01-07  Andreas Jaeger  <aj@suse.de>
10054
10055         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
10056         * sysdeps/i386/bits/byteswap.h: Likewise.
10057         * sysdeps/ia64/bits/byteswap.h: Likewise.
10058         * sysdeps/m68k/bits/byteswap.h: Likewise.
10059         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
10060         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
10061
10062 2002-01-02  Bruno Haible  <bruno@clisp.org>
10063
10064         * intl/plural.y: Fix %expect count.
10065
10066 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
10067
10068         * elf/Makefile (routines, shared-only-routines): Add
10069         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
10070         * elf/elf.h (PT_GNU_EH_FRAME): Define.
10071         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
10072         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
10073         Optimize if .eh_frame section contains no FDEs.
10074         (__register_frame, __deregister_frame_info_bases,
10075         __deregister_frame): Likewise.
10076         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
10077         DW_CFA_restore handling.
10078
10079 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
10080
10081         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
10082
10083         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
10084         for x < 0.25 and restore original range reduction method.
10085         (__ieee754_lgammal_r): Make sure signgam is set before returning.
10086
10087 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
10088
10089         * libio/fileops.c (_IO_file_underflow_mmap): New function.
10090         (_IO_file_close_mmap): New function.
10091         (_IO_file_jumps_mmap): New variable.
10092         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
10093         trying to convert rest of byte buffer.
10094         (_IO_wfile_underflow_mmap): New function.
10095         (_IO_wfile_jumps_mmap): New variable.
10096         * libio/iofopen.c (__fopen_maybe_mmap): New function.
10097         (__fopen_internal): New function.  Split out from _IO_new_fopen.
10098         (_IO_new_fopen): Call __fopen_internal.
10099         * libio/iofopen64.c: Just call __fopen_internal.
10100         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
10101         successfully.
10102         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
10103         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
10104         _IO_file_close_mmap.
10105
10106         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
10107         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
10108
10109         * stdio-common/Makefile (tests): Add tst-rndseek.
10110         * stdio-common/tst-rndseek.c: New file.
10111
10112 2002-01-05  Roland McGrath  <roland@frob.com>
10113
10114         * config.h.in (HAVE_MIG_RETCODE): New #undef.
10115         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
10116         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
10117         * sysdeps/mach/hurd/configure: Regenerated.
10118
10119 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
10120
10121         * elf/elf.h: Add more TLS definitions.
10122
10123 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
10124
10125         * include/features.h (__GLIBC_MINOR__): Bump to 3.
10126
10127 2002-01-02  Roland McGrath  <roland@frob.com>
10128
10129         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
10130         __sigisemptyset.  Don't use MASK uninitialized.
10131
10132         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
10133         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
10134         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
10135         __sigdelset, __sigaddset, __sigorset.
10136
10137         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
10138         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
10139
10140         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
10141         _hurd_ports is null.
10142
10143         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
10144         for old CMU and new OSF Mach interface flavors.
10145         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
10146         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10147
10148         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
10149
10150         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
10151         Pass extra arguments to task_create for OSF variant.
10152         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10153
10154         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
10155         conditional on [HAVE_AUX_VECTOR].
10156
10157         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
10158         mach_msg_timeout_t as type of final argument.
10159
10160         * hurd/privports.c (__get_privileged_ports):
10161         Change host_priv_t to mach_port_t in argument type.
10162         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
10163         Update decls.
10164
10165         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
10166         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
10167         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
10168         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
10169         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
10170         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
10171
10172 2002-01-01  Roland McGrath  <roland@frob.com>
10173
10174         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
10175
10176 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
10177
10178         * include/stdlib.h: Define inlines for the _l variants of the strto*
10179         functions.
10180
10181 2002-01-01  Roland McGrath  <roland@frob.com>
10182
10183         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
10184
10185         * mach/Machrules (MIG): Set CPP as well as CC.
10186
10187 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
10188
10189         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
10190         locale to parse /proc/loadavg [PR libc/2760].
10191
10192 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
10193
10194         * elf/dl-conflict.c: Include sys/param.h.
10195         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
10196         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
10197         warning.
10198         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
10199         literals to avoid warnings.
10200
10201 2001-12-31  Andreas Jaeger  <aj@suse.de>
10202
10203         * configure.in: Don't check for gsed since we do not use it anywhere.
10204
10205 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
10206
10207         * io/fts.c: Update from BSD to fix memory leaks.
10208
10209 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
10210
10211         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
10212         * elf/chroot_canon.c: Likewise.
10213         * elf/dl-object.c: Likewise.
10214         * iconv/iconv_charmap.c: Likewise.
10215         * iconv/iconv_prog.c: Likewise.
10216         * libio/iogetdelim.c: Likewise.
10217         * locale/lc-time.c: Likewise.
10218         * stdlib/canonicalize.c: Likewise.
10219         * sunrpc/svc.c: Likewise.
10220         * sysdeps/generic/glob.c: Likewise.
10221
10222 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10223
10224         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
10225         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
10226         remove high order bit from the program counter.
10227         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
10228
10229 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10230
10231         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
10232         unnecessary code and add missing reloc types.
10233         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
10234         case for reloc type R_390_NONE.
10235
10236 2001-12-28  Andreas Jaeger  <aj@suse.de>
10237
10238         * io/bug-ftw3.c: Include string.h for prototypes.
10239
10240         * crypt/md5test.c (main): Remove unused variable.
10241
10242         * dlfcn/modstatic.c: Add prototype to avoid warning.
10243
10244 2001-12-26  Roland McGrath  <roland@frob.com>
10245
10246         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
10247         check only (SS->pending & MASK) for the signal to return.
10248         From Jeroen Dekkers <jeroen@dekkers.cx>.
10249
10250 2001-12-22  Roland McGrath  <roland@frob.com>
10251
10252         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
10253         Use preprocessor #if conditionals instead of `if' to avoid
10254         warnings about divide by zero in dead code.
10255
10256         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
10257         _hurd_port_init, and __hurd_self_sigstate.
10258
10259         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
10260
10261 2001-12-21  Andreas Jaeger  <aj@suse.de>
10262
10263         * elf/dblloadmod1.c: Add prototype to avoid warning.
10264         * elf/dblloadmod2.c: Likewise.
10265         * elf/dblloadmod3.c: Likewise.
10266         * elf/reldepmod5.c: Likewise.
10267         * elf/reldepmod6.c: Likewise.
10268
10269         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
10270         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
10271         used on all architectures.
10272
10273         * sunrpc/svc_tcp.c: Add noreturn attribute for
10274         svctcp_rendezvous_abort.
10275         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
10276
10277         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
10278         to avoid warning.
10279
10280 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
10281
10282         * manual/llio.texi (aio_fsync): Fix a typo.
10283         Patch by Tammy Fox <tfox@redhat.com>.
10284
10285 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
10286
10287         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
10288         stack bias from child stack pointer before passing it to clone syscall.
10289
10290 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
10291
10292         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
10293         _SC_TZNAME_MAX.
10294         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
10295         Reported by Thorsten Kukuk <kukuk@suse.de>.
10296
10297         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
10298         add some casts.
10299
10300         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
10301
10302 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
10303
10304         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
10305         conforming: return EBADF if file descriptor is invalid and EINVAL
10306         if file descriptor is no valid tty.
10307         * login/tst-grantpt.c: New file.
10308         * login/Makefile (tests): Add tst-grantpt.
10309
10310 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
10311
10312         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
10313         different than implemented in last patch.
10314         * io/bug-ftw3.c: Adjust test for changed handling of
10315         inaccessibility of toplevel dir.
10316
10317 2001-12-16  Roland McGrath  <roland@frob.com>
10318
10319         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
10320         * grp/initgroups.c (internal_getgrouplist): Likewise.
10321
10322         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
10323         `default:' to silence new GCC warning.
10324         Rewrite cast of lvalue to silence new GCC warning.
10325
10326         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
10327
10328         * sysdeps/mach/hurd/spawni.c: New file, by me with a
10329         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
10330
10331 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
10332
10333         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
10334         Patch by Stephen R. van den Berg.
10335
10336         * crypt/md5.h: Define md5_uintptr.
10337
10338 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
10339
10340         * libio/tst_swprintf.c (main): Add test for string argument with
10341         zero precision.
10342         * stdio-common/Makefile (tests): Add tst-sprintf.
10343         * stdio-common/tst-sprintf.c: New file.
10344
10345 2001-12-13  Andreas Schwab  <schwab@suse.de>
10346
10347         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
10348         zero precision with wide character string format.
10349
10350 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
10351
10352         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
10353         but have a user supplied buffer, return the empty buffer, not NULL.
10354
10355 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
10356
10357         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
10358         Patch by Eric Sharkey <sharkey@netrics.com>.
10359
10360         * crypt/md5test.c (main): Add test for multiple calls to
10361         __md5_process_bytes to itererate over input string.
10362
10363 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
10364
10365         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
10366         from __nis_findfastest.  Take timeout value from parameter.
10367         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
10368         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
10369         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
10370
10371 2001-12-12  Andreas Jaeger  <aj@suse.de>
10372
10373         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
10374         combreloc test so that it works in this case.
10375
10376         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
10377
10378 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
10379
10380         * sysdeps/sh/Makefile: New file.
10381         * sysdeps/sh/_mcount.S: New file.
10382         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
10383         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
10384
10385 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
10386
10387         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
10388         limitation [PR libc/2564].
10389
10390 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
10391
10392         * elf/Makefile (dl-routines): Add conflict.
10393         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
10394         (ld.so): Add _begin local symbol.
10395         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
10396         Define.
10397         * elf/dl-deps.c (_dl_build_local_scope): New function.
10398         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
10399         of all libraries.
10400         * elf/do-rel.h (VALIDX): Define.
10401         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
10402         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
10403         can be skipped.
10404         * elf/dl-conflict.c: New file.
10405         * elf/dl-lookup.c (_dl_debug_bindings): New function.
10406         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
10407         non-NULL.
10408         (_dl_lookup_symbol_skip): Likewise.
10409         (_dl_lookup_versioned_symbol): Likewise.
10410         (_dl_lookup_versioned_symbol_skip): Likewise.
10411         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
10412         define to ElfW(Rel).
10413         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
10414         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
10415         ranges.
10416         Don't adjust address dynamic tags if l_addr is 0.
10417         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
10418         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
10419         (VALIDX, ADDRIDX): Define.
10420         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
10421         (dl_main): Print library list for LD_TRACE_PRELINKING.
10422         If prelinking information can be used, skip relocating libraries and
10423         call _dl_resolve_conflicts instead.
10424         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
10425         * elf/dl-load.c (_dl_map_object): Don't create fake libs
10426         if LD_TRACE_PRELINKING.
10427         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
10428         + DT_ADDRNUM.
10429         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
10430         (DL_DEBUG_PRELINK): Define.
10431         (_dl_resolve_conflicts): Add prototype.
10432
10433         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
10434         .plt for prelinked libraries where prelinking info cannot be used.
10435         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
10436         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
10437         * sysdeps/arm/bits/link.h: New file.
10438         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
10439         content of .got[1].
10440         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
10441         (ELF_MACHINE_PLT_REL): Define.
10442         (elf_machine_rela, elf_machine_rela_relative): New functions.
10443         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
10444         of adjusting it if prelinked and prelinking cannot be used.
10445         * sysdeps/i386/bits/link.h: New file.
10446         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
10447         content of .got[1].
10448         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
10449         (ELF_MACHINE_PLT_REL): Define.
10450         (elf_machine_rela, elf_machine_rela_relative): New functions.
10451         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
10452         of adjusting it if prelinked and prelinking cannot be used.
10453         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
10454         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
10455         to find out map for R_PPC_JMP_SLOT relocs.
10456         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
10457         (OPCODE_BA): Define.
10458         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
10459         libraries where prelinking info cannot be used.
10460         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
10461         (elf_machine_fixup_plt): Call sparc_fixup_plt.
10462         (elf_machine_rela): Set value to 0 if relocating conflicts.
10463         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
10464         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
10465         (sparc64_fixup_plt): Fix a typo.
10466         (elf_machine_rela): Set value to 0 if relocating conflicts.
10467         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
10468         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
10469         libraries where prelinking info cannot be used.
10470         * sysdeps/sh/bits/link.h: New file.
10471         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
10472         content of .got[1].
10473         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
10474         of adjusting it if prelinked and prelinking cannot be used.
10475         * sysdeps/s390/s390-32/bits/link.h: New file.
10476         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
10477         Save original content of .got[1].
10478         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
10479         of adjusting it if prelinked and prelinking cannot be used.
10480         * sysdeps/s390/s390-64/bits/link.h: New file.
10481         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
10482         Save original content of .got[1].
10483         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
10484         of adjusting it if prelinked and prelinking cannot be used.
10485         * sysdeps/x86_64/bits/link.h: New file.
10486         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
10487         Save original content of .got[1].
10488         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
10489         of adjusting it if prelinked and prelinking cannot be used.
10490
10491 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
10492
10493         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
10494         where appropriate instead of numbers.  Little optimizations.
10495
10496 2001-12-10  Roland McGrath  <roland@frob.com>
10497
10498         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
10499         set it.
10500
10501         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
10502         set to GLIBC_2.2.5, not GLIBC_2.2.4.
10503
10504         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
10505         Fix conditionals so this is set by default for stdio and not for libio.
10506         * sysdeps/mach/hurd/configure: Regenerated.
10507
10508 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
10509
10510         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
10511
10512 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
10513
10514         * io/Makefile (tests): Add bug-ftw3.
10515         * io/bug-ftw3.c: New file.
10516
10517         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
10518         matches and GLOB_NOCHECK is set.
10519         * posix/globtest.sh: Correct expected result for NOCHECK test.
10520
10521         * po/ca.po: Update from translation team.
10522
10523 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
10524
10525         Implement transliteration of characters in strings of the locale
10526         definitions.
10527         * locale/programs/linereader.c: Adjust for additional parameter to
10528         lr_token.
10529         (get_string): If character <Uxxxx> is not found try to transliterate
10530         it.
10531         * locale/programs/ld-ctype.c: Adjust for additional parameter to
10532         lr_token.  Add const to charmap parameter of all functions.
10533         (find_translit, find_translit2): New functions.
10534         * locale/programs/charmap.c: Adjust for additional parameter to
10535         lr_token.
10536         * locale/programs/repertoire.c: Likewise.
10537         * locale/programs/linereader.h: Likewise.
10538         * locale/programs/ld-address.c: Likewise.  Add const to charmap
10539         parameter of all functions.
10540         * locale/programs/ld-collate.c: Likewise.
10541         * locale/programs/ld-identification.c: Likewise.
10542         * locale/programs/ld-measurement.c: Likewise.
10543         * locale/programs/ld-messages.c: Likewise.
10544         * locale/programs/ld-monetary.c: Likewise.
10545         * locale/programs/ld-name.c: Likewise.
10546         * locale/programs/ld-numeric.c: Likewise.
10547         * locale/programs/ld-paper.c: Likewise.
10548         * locale/programs/ld-paper.c: Likewise.
10549         * locale/programs/ld-telephone.c: Likewise.
10550         * locale/programs/ld-time.c: Likewise.
10551         * locale/programs/locfile.c: Likewise.
10552         * locale/programs/localedef.c: Likewise.
10553         * locale/programs/localedef.h: Likewise.
10554         * locale/programs/locfile.h: Likewise.  Add declaration for
10555         find_translit.
10556         * locale/programs/simple-hash.c: Add const to first parameter of
10557         find_entry, iterate_table, and lookup.
10558         * locale/programs/simple-hash.h: Likewise.
10559         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
10560         instead.
10561         * include/locale.h: Define __LC_LAST.
10562         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
10563
10564 2001-12-07  Geoff Keating  <geoffk@redhat.com>
10565
10566         * sysdeps/powerpc/Dist: Update for recent FP changes.
10567         * sysdeps/powerpc/fpu/Dist: Likewise.
10568
10569 2001-12-07  Andreas Schwab  <schwab@suse.de>
10570
10571         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
10572
10573 2001-12-06  Geoff Keating  <geoffk@redhat.com>
10574
10575         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
10576         save/restore functions here.
10577         (libm-support): Don't define these functions here.
10578         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
10579         functions here.
10580         * sysdeps/powerpc/fe_nomask.c: Move to...
10581         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
10582         * sysdeps/powerpc/fprrest.S: Move to...
10583         * sysdeps/powerpc/fpu/fprrest.S: ... here.
10584         * sysdeps/powerpc/fprsave.S: Move to...
10585         * sysdeps/powerpc/fpu/fprsave.S: ... here.
10586
10587 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
10588
10589         * sysdeps/unix/sysv/linux/opensock.c: New file.
10590
10591 2001-12-06  Geoff Keating  <geoffk@redhat.com>
10592
10593         * config.make.in (with-fp): Define from configure.
10594         * configure.in: Substitute with_fp.
10595         * configure: Regenerate.
10596         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
10597         specified, and don't change FPU environment.
10598
10599 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
10600
10601         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
10602         * assert/assert.c: Check result of __asprintf call and don't use
10603         string if it failed.
10604         * assert/assert-perr.c: Likewise.
10605         * inet/rcmd.c: Likewise.
10606         * locale/programs/localedef.c (main): Check result of
10607         construct_output_path and exit if it failed.
10608         (construct_output_path): Check result of asprintf and mkdir calls and
10609         fail if they failed.
10610         * posix/getopt.c: Check result of __asprintf calls and fail if
10611         they failed.
10612         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
10613
10614 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
10615
10616         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
10617         patch.
10618         * sysdeps/generic/strncase.c: Likewise.
10619         * string/tester.c: Add tests for strcasecmp and strncasecmp.
10620
10621 2001-12-05  Geoff Keating  <geoffk@redhat.com>
10622
10623         * scripts/cpp: Test the exit status from 'type', not 'awk'.
10624
10625         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
10626         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
10627         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
10628         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
10629         * sysdeps/powerpc/fclrexcpt.c: Move to...
10630         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
10631         * sysdeps/powerpc/fpu_control.h: Move to...
10632         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
10633
10634 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
10635
10636         * iconvdata/ibm1129.h: Remove duplicate mappings.
10637         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
10638         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
10639         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10640
10641         * timezone/zic.c: Fix handling of turnaround times.
10642         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
10643
10644 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
10645
10646         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
10647         overflow problem.
10648
10649 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
10650
10651         * posix/regex.c: For use outside glibc defined bounded pointer
10652         macros here.  Patch by Jim Meyering <jim@meyering.net>.
10653
10654         * iconvdata/Makefile (modules): Add TCVN5712-1.
10655         * iconvdata/TESTS: Add TCVN5712-1.
10656         * iconvdata/gconv-modules: Likewise.
10657         * iconvdata/tcvn5712-1.c: New file.
10658         * iconvdata/testdata/TCVN-5712: New file.
10659         * iconvdata/testdata/TCVN-5712..UTF8: New file.
10660
10661 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
10662
10663         * iconvdata/cp1258.c: Optimize conversion from UCS4.
10664
10665 2001-12-02  Roland McGrath  <roland@frob.com>
10666
10667         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
10668
10669         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
10670         Reported by Jeff Bailey <jbailey@nisa.net>.
10671
10672         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
10673         Reported by Jeff Bailey <jbailey@nisa.net>.
10674
10675         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
10676         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
10677         Reported by Jeff Bailey <jbailey@nisa.net>.
10678
10679 2001-12-01  Roland McGrath  <roland@frob.com>
10680
10681         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
10682         missing backslash in test arguments.
10683         * sysdeps/mach/hurd/configure: Regenerated.
10684
10685 2001-11-26  Roland McGrath  <roland@frob.com>
10686
10687         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
10688         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
10689
10690 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
10691
10692         * iconvdata/Makefile (modules): Add ARMSCII-8.
10693         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
10694         * iconvdata/armscii-8.c: New file.
10695
10696 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
10697
10698         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
10699         don't match, fix {{a,b},c} globbing, clean up.
10700         Patch by Flavio Veloso <flaviovs@magnux.com>.
10701         * posix/globtest.sh: Add new tests.
10702
10703 2001-11-29  Andreas Jaeger  <aj@suse.de>
10704
10705         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
10706         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
10707
10708         * sysdeps/generic/abort.c: Include libioP.h for
10709         _IO_flush_all_lockp prototype.
10710
10711 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
10712
10713         * posix/regex.h: Define __restrict_arr correctly.
10714
10715 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
10716
10717         * iconvdata/ibm1163.c: New file.
10718         * iconvdata/ibm1163.h: New file.
10719         * iconvdata/ibm1164.c: New file.
10720         * iconvdata/ibm1164.h: New file.
10721         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
10722         * iconvdata/Makefile: Likewise.
10723         * iconvdata/testdata/IBM1163: New file.
10724         * iconvdata/testdata/IBM1163..UTF8: New file.
10725         * iconvdata/testdata/IBM1164: New file.
10726         * iconvdata/testdata/IBM1164..UTF8: New file.
10727         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10728
10729         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
10730         * iconvdata/ibm1124.h: Likewise.
10731         * iconvdata/ibm1132.h: Likewise.
10732         * iconvdata/ibm1133.h: Likewise.
10733         * iconvdata/ibm1160.h: Likewise.
10734         * iconvdata/ibm1161.h: Likewise.
10735         * iconvdata/ibm1162.h: Likewise.
10736         * iconvdata/ibm856.h: Likewise.
10737         * iconvdata/ibm922.h: Likewise.
10738         * iconvdata/ibm930.h: Likewise.
10739         * iconvdata/ibm932.h: Likewise.
10740         * iconvdata/ibm933.h: Likewise.
10741         * iconvdata/ibm935.h: Likewise.
10742         * iconvdata/ibm937.h: Likewise.
10743         * iconvdata/ibm939.h: Likewise.
10744         * iconvdata/ibm943.h: Likewise.
10745         * iconvdata/ibm930.c: Pretty printing.
10746         * iconvdata/ibm937.c: Avoid access accross array boundary.
10747
10748         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
10749         the current locale's codeset.
10750         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
10751         empty input string.
10752         * iconv/iconv_prog.c: Pass empty strings as default value for to-
10753         and from-charset.  Don't determine locale's charset here.
10754
10755         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
10756         as the old _IO_flush_all but lock only if parameter is nonzero.
10757         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
10758         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
10759         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
10760         if libio is used [PR libc/2575].
10761
10762 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
10763
10764         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
10765         __signbitl): Only define for ISO C99.
10766
10767 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
10768
10769         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
10770         herrnop to NETDB_INTERNAL if we run out of buffer space.
10771
10772 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
10773
10774         * nss/nss_files/files-XXX.c (internal_getent): Correct input
10775         overflow test for platforms with signed char.
10776         Reported by Andrew Haley <aph@cambridge.redhat.com>.
10777
10778 2001-11-28  Bruno Haible  <bruno@clisp.org>
10779
10780         * locale/programs/simple-hash.c (lookup_2): Remove function.
10781         (insert_entry_2): Call lookup instead of lookup_2.
10782
10783 2001-03-04  Bruno Haible  <bruno@clisp.org>
10784
10785         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
10786
10787 2001-10-31  Bruno Haible  <bruno@clisp.org>
10788
10789         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
10790
10791 2001-03-21  Bruno Haible  <bruno@clisp.org>
10792
10793         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
10794         chokes on empty macro arguments.
10795         * intl/plural.y: Add #pragma for alloca on AIX 3.
10796
10797 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
10798
10799         * intl/dcigettext.c (guess_category_value): Only implement for
10800         glibc.  Otherwise rely on function _nl_locale_name which isn't
10801         present in the glibc sources.
10802
10803 2001-09-24  Bruno Haible  <bruno@clisp.org>
10804
10805         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
10806         transliteration when building on a glibc system but outside glibc.
10807
10808 2001-09-22  Bruno Haible  <bruno@clisp.org>
10809
10810         * intl/plural-eval.c: New file, extracted from dcigettext.c.
10811         * intl/dcigettext.c (plural_eval): Remove function, moved to
10812         intl/plural-eval.c.
10813         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
10814         Include plural-eval.c.
10815
10816 2001-09-22  Bruno Haible  <bruno@clisp.org>
10817
10818         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
10819         don't start with a digit; nplurals must be positive.
10820
10821 2001-09-02  Bruno Haible  <bruno@clisp.org>
10822
10823         * intl/plural-exp.h: New file, extracted from gettextP.h.
10824         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
10825         * intl/gettextP.h (struct expression, struct parse_args,
10826         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
10827         * intl/loadmsgcat.c: Include plural-exp.h.
10828         (PLURAL_PARSE): Move macro to plural-exp.h.
10829         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
10830         plural-exp.c.
10831         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
10832         EXTRACT_PLURAL_EXPRESSION.
10833         (_nl_unload_domain): Update.
10834         * intl/dcigettext.c: Include plural-exp.h.
10835         * intl/plural.y: Include plural-exp.h, not gettextP.h.
10836         (FREE_EXPRESSION): Move macro to plural-exp.h.
10837         * intl/Makefile (routines): Add plural-exp.
10838         (distribute): Add plural-exp.h.
10839
10840 2001-07-28  Bruno Haible  <bruno@clisp.org>
10841
10842         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
10843         isdigit, tolower argument to 'unsigned char'.
10844         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
10845         'unsigned char'.
10846         * intl/localealias.c (read_alias_file): Cast isspace argument to
10847         'unsigned char'.
10848
10849 2001-10-20  Bruno Haible  <bruno@clisp.org>
10850
10851         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
10852         anyway.)
10853         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
10854         with the variable 'index' in plural_lookup.
10855         * intl/l10nflist.c (strchr): Likewise.
10856         * intl/localealias.c (strchr): Likewise.
10857
10858         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
10859         * intl/bindtextdom.c: Likewise.
10860         * intl/dcigettext.c: Likewise.
10861         * intl/dgettext.c: Likewise.
10862         * intl/dngettext.c: Likewise.
10863         * intl/explodename.c: Likewise.
10864         * intl/finddomain.c: Likewise.
10865         * intl/gettext.c: Likewise.
10866         * intl/l10nflist.c: Likewise.
10867         * intl/loadmsgcat.c: Likewise.
10868         * intl/localealias.c: Likewise.
10869         * intl/ngettext.c: Likewise.
10870         * intl/textdomain.c: Likewise.
10871         * intl/gettext.h: Assume <limits.h> exists.
10872
10873 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
10874
10875         * stdio-common/Makefile (tests): Add scanf11.
10876         * stdio-common/scanf11.c: New file.
10877
10878 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
10879
10880         * version.h (RELEASE): Define as development.
10881         (VERSION): Set to 2.2.90.
10882
10883 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
10884
10885         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
10886         * nis/nss_nis/nis-grp.c: Likewise.
10887         * nis/nss_nisplus/nisplus-grp.c: Likewise.
10888
10889         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
10890         * nis/nss_nis/nis-pwd.c: Likewise.
10891         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
10892
10893         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
10894         * nis/nss_nisplus/nisplus-parser.c: Likewise.
10895         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
10896
10897         * nscd/grpcache.c: Use strtoul instead of atol.
10898         * nscd/pwdcache.c: Likewise.
10899         * nss/getent.c: Likewise.
10900
10901 2001-11-27  Paul Eggert  <eggert@twinsun.com>
10902
10903         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
10904         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
10905
10906 2001-11-19  Bruno Haible  <bruno@clisp.org>
10907
10908         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
10909         90%.
10910         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
10911         improves the quality of the hash function, especially for short
10912         strings.
10913
10914 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
10915
10916         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
10917         are found call conv_error and not input_error [PR libc/2669].
10918
10919         * math/bits/mathcalls.h: Mark ceil and floor as const.
10920         Reported by David Mosberger.
10921
10922 2001-11-21  Jim Meyering  <meyering@lucent.com>
10923
10924         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
10925         Define to be __-prefixed.
10926         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
10927
10928 2001-11-26  Andreas Jaeger  <aj@suse.de>
10929
10930         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
10931         avoid warning.
10932
10933 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
10934
10935         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
10936         initialization.
10937
10938         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
10939         unused variables.  Fix threshold for returning 1.0.
10940
10941         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
10942         argument.
10943
10944         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
10945         remove unused variables.
10946
10947         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
10948
10949         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
10950         include local math header files.
10951
10952 2001-11-22  Andreas Jaeger  <aj@suse.de>
10953
10954         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
10955         avoid warning.
10956
10957 2001-11-21  Andreas Jaeger  <aj@suse.de>
10958
10959         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
10960
10961         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
10962         sys/debugreg.h
10963
10964 2001-11-15  Andreas Jaeger  <aj@suse.de>
10965
10966         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
10967         compilers that support it.
10968
10969         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
10970         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
10971         * stdlib/stdlib.h: Likewise.
10972
10973 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
10974
10975         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
10976         statement with gotos.
10977         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
10978
10979 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
10980
10981         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
10982
10983 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
10984
10985         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
10986
10987 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
10988             H.J. Lu  <hjl@gnu.org>
10989
10990         * Versions.def (libc): Add GCC_3.0.
10991         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
10992         if gcc supports this flag.
10993         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
10994         (gcc3): Allow glibc to be compiled with gcc 3.x.
10995         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
10996         * config.make.in (static-libgcc, unwind-find-fde): Add.
10997         * Makerules (build-shlib-helper, build-module-helper): Use it.
10998         * scripts/versions.awk: Make sure GLIBC_ versions come first.
10999         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
11000         necessary.
11001         (_fini): Call __deregister_frame_info_bases if
11002         __register_frame_info_bases was used to register.
11003         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
11004         for GLIBC_2.0.
11005         (__register_frame_info_bases, __register_frame_info_table_bases,
11006         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
11007         * elf/Makefile (routines): Add unwind-dw2-fde.
11008         (shared-only-routines): Add unwind-dw2-fde.
11009         * sysdeps/alpha/gccframe.h: New file.
11010         * sysdeps/arm/gccframe.h: New file.
11011         * sysdeps/generic/framestate.c: New file.
11012         * sysdeps/generic/dwarf2.h: New file.
11013         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
11014         * sysdeps/generic/unwind-dw2-fde.c: New file.
11015         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
11016         * sysdeps/generic/unwind-dw2-fde.h: New file.
11017         * sysdeps/generic/unwind-dw2.c: New file.
11018         * sysdeps/generic/unwind-pe.h: New file.
11019         * sysdeps/generic/unwind.h: New file.
11020         * sysdeps/hppa/gccframe.h: New file.
11021         * sysdeps/i386/gccframe.h: New file.
11022         * sysdeps/m68k/gccframe.h: New file.
11023         * sysdeps/mips/gccframe.h: New file.
11024         * sysdeps/powerpc/gccframe.h: New file.
11025         * sysdeps/s390/gccframe.h: New file.
11026         * sysdeps/sh/gccframe.h: New file.
11027         * sysdeps/sparc/gccframe.h: New file.
11028         * sysdeps/vax/gccframe.h: New file.
11029         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
11030         Set on all architectures except ia64.
11031         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
11032         for i386.
11033         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
11034         __deregister_frame_info): Move to elf/Versions.
11035         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
11036         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
11037         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
11038         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
11039         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
11040         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
11041         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
11042         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
11043         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
11044         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
11045         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
11046         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
11047         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
11048         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
11049         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
11050         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
11051         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
11052         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
11053
11054 2001-11-15  Jeff Law  <law@redhat.com>
11055
11056         * posix/regex.c (uintptr_t): Do not provide a definition if the
11057         system provided one.
11058
11059 2001-11-13  Roland McGrath  <roland@frob.com>
11060
11061         * stdio-common/tmpfile.c: Moved to ...
11062         * sysdeps/generic/tmpfile.c: ... here.
11063         * sysdeps/mach/hurd/tmpfile.c: New file.
11064
11065         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
11066         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
11067         (fopenport): Define as weak alias.
11068
11069         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
11070         * libio/libioP.h: ... to here.
11071
11072 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
11073
11074         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
11075         program header twice.  Construct list with the needed information.
11076
11077 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
11078
11079         * po/ca.po: Update from translation team.
11080
11081         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
11082         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
11083         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
11084         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11085
11086 2001-11-10  Andreas Jaeger  <aj@suse.de>
11087
11088         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
11089         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11090         Contributed by Stephen L Moshier <moshier@mediaone.net>.
11091
11092 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
11093
11094         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
11095         correctly.
11096         * elf/dl-load.c (is_dst): New function.
11097         (_dl_dst_count): Use is_dst to check for DST variable.
11098         (_dl_dst_substitute): Likewise.
11099
11100 2001-11-09  Roland McGrath  <roland@frob.com>
11101
11102         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
11103         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
11104         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
11105         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
11106         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
11107         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
11108         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
11109         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
11110         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
11111         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
11112         * sysdeps/mach/hurd/powerpc/Dist: New file.
11113
11114         * hurd/privports.c (__get_privileged_ports):
11115         Only contact the proc server if necessary for this call.
11116         Suggested by Neal H Walfield <neal@cs.uml.edu>.
11117         Check error return for mach_port_mod_refs.
11118
11119 2001-11-09  Andreas Schwab  <schwab@suse.de>
11120
11121         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
11122
11123 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
11124
11125         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
11126         object is always the last in the list.
11127         (_dl_map_object_from_fd): Delete code to remove from object list
11128         when DF_1_NOOPEN is seen.  This is done in lose.
11129
11130 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
11131
11132         * elf/dl-object.c (_dl_new_object): Various small optimizations.
11133
11134 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
11135
11136         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
11137         HWCAP_CHECK macro code.
11138
11139         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
11140         Now returns MAP_FAILED on error.
11141         * elf/rtld.c: Adjust caller.
11142         * sysdeps/generic/dl-cache.c: Likewise.
11143         * sysdeps/generic/ldsodefs.h: Adjust description.
11144
11145         * elf/dl-version.c (match_symbol): Optimize error handling for size.
11146         (_dl_check_map_versions): Likewise.
11147
11148 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
11149
11150         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
11151         _dl_signal_error directly, always use lose.  Set fd to -1 after
11152         file is closed.
11153         (lose): Don't call close if fd == -1.
11154
11155 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
11156
11157         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
11158          Also fix typo @code {mbsinit} to @code{mbsinit}.
11159
11160 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
11161
11162         * elf/dl-profile.c: Replace state variable with simple flag named
11163         running.  Remove commented-out code.
11164
11165         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
11166         (_dl_init_paths): Likewise.
11167         (_dl_map_object_from_fd): Likewise.
11168         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11169
11170 2001-11-06  Roland McGrath  <roland@frob.com>
11171
11172         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
11173         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
11174
11175         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
11176         sysdeps/powerpc/elf/sysdep.h.
11177         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
11178
11179 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
11180
11181         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
11182         speed.
11183         (process_envvars): Some more optimizations.
11184         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
11185
11186         * elf/elf.h: Add dynamic tag definitions for prelinking.
11187
11188         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
11189         Rewrite code to remove environment varables for SUID binaries.
11190         Small optimization in LD_PROFILE handling.
11191         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
11192         changes.
11193         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
11194
11195         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
11196
11197         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
11198         strings.  Change type of second parameter.
11199         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
11200         for last change.
11201
11202         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
11203
11204 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
11205
11206         * manual/string.texi: Fix typos.
11207         * manual/examples/argp-ex2.c: Likewise.
11208
11209 2001-11-05  Roland McGrath  <roland@frob.com>
11210
11211         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
11212         the more-specific unix/sysv/linux/powerpc file and breaks everything.
11213         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
11214         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
11215         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
11216         here, put under [__ELF__].
11217
11218 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
11219
11220         * manual/charset.texi: Extensive editing work.
11221         * manual/nss.texi: Likewise.
11222         Changes by Dennis Grace <dgrace@us.ibm.com>.
11223
11224 2001-11-04  Roland McGrath  <roland@frob.com>
11225
11226         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
11227         parameter to dir_mkfile.
11228
11229 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
11230
11231         * string/bits/string2.h (__strndup): If n is smaller than len, set
11232         len to n + 1.
11233         * string/tester.c (test_strndup): New function.
11234         (main): Call it.
11235
11236 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
11237
11238         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
11239
11240         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
11241         * scripts/cpp: New file.
11242
11243         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
11244         for rtld_search_dirs content.  Minor optimizations.
11245
11246 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
11247
11248         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
11249         avoiding unnecessary duplication.
11250
11251 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
11252
11253         * elf/dl-load.c (_dl_map_object): If library was found using
11254         LD_LIBRARY_PATH, don't try RUNPATH list.
11255
11256 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11257
11258         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
11259         Correct second argument of register_dump call.
11260         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
11261         Likewise.
11262
11263 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
11264
11265         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
11266         modules.
11267         * iconvdata/TESTS: Likewise.
11268         * iconvdata/gconv-modules: Likewise.
11269         * iconvdata/ibm1132.c: New file.
11270         * iconvdata/ibm1132.h: New file.
11271         * iconvdata/ibm1133.c: New file.
11272         * iconvdata/ibm1133.h: New file.
11273         * iconvdata/ibm1162.c: New file.
11274         * iconvdata/ibm1162.h: New file.
11275         * iconvdata/testdata/IBM1132: New file.
11276         * iconvdata/testdata/IBM1132..UTF8: New file.
11277         * iconvdata/testdata/IBM1133: New file.
11278         * iconvdata/testdata/IBM1133..UTF8: New file.
11279         * iconvdata/testdata/IBM1162: New file.
11280         * iconvdata/testdata/IBM1162..UTF8: New file.
11281         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
11282
11283         * string/string.h: Fix typo in comment.
11284         * wcsmbs/wchar.h: Likewise.
11285
11286 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
11287
11288         * manual/getopt.texi (getopt_long, getopt_long_only): Include
11289         const in type of longopts parameter.
11290
11291 2001-10-29  Andreas Jaeger  <aj@suse.de>
11292
11293         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
11294
11295 2001-10-29  Kevin Ryde  <user42@zip.com.au>
11296
11297         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
11298         output, clarify `#' behaviour on 0.
11299         (Floating-Point Conversions): Clarify that %g only uses %e when
11300         the exponent would be greater than 1.
11301
11302 2001-10-28  Roland McGrath  <roland@frob.com>
11303
11304         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
11305         * sysdeps/mach/powerpc/machine-sp.h: New file.
11306         * sysdeps/mach/powerpc/sysdep.h: New file.
11307         * sysdeps/mach/powerpc/thread_state.h: New file.
11308
11309         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
11310         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
11311         expect to need the same thing on every platform.
11312
11313         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
11314         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
11315
11316         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
11317         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
11318         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
11319         Move all these assembly-related definitions to ...
11320         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
11321
11322         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
11323         by Peter Bruin <pjbruin@dds.nl>.
11324
11325         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
11326         packing results for a `poll' call.
11327
11328 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
11329
11330         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
11331         correctly.
11332         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
11333         bracket expression.
11334
11335         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
11336         nrules value.
11337         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
11338
11339 2001-10-24  H.J. Lu  <hjl@gnu.org>
11340
11341         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
11342         Use __BEGIN_DECLS/__END_DECLS around prototypes.
11343         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
11344
11345 2001-10-21  Jim Meyering  <meyering@lucent.com>
11346
11347         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
11348         this code would end up calling gettext even in packages built
11349         with --disable-nls.
11350         * posix/getopt.c (_): Likewise.
11351         * posix/regex.c (_): Likewise.
11352
11353 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
11354
11355         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
11356         lookup not ip6.int.
11357         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
11358         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
11359
11360 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
11361
11362         * misc/sys/cdefs.h (__attribute_used__): Define.
11363         * elf/rtld.c (_dl_start): Add __attribute_used__.
11364         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
11365
11366 2001-10-25  Andreas Schwab  <schwab@suse.de>
11367
11368         * stdlib/a64l.c: Expect least significant digit first.
11369         * stdlib/l64a.c: Produce least significant digit first.
11370         * stdlib/Makefile (tests): Add test-a64l.
11371         * stdlib/test-a64l.c: New file.
11372         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
11373
11374 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
11375
11376         * po/sk.po: Update from translation team.
11377
11378 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
11379
11380         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
11381
11382 2001-10-18  Andreas Schwab  <schwab@suse.de>
11383
11384         * math/libm-test.inc (print_ulps): Print ulp values rounded to
11385         next whole number.
11386         (print_function_ulps): Likewise.
11387         (print_complex_function_ulps): Likewise.
11388         (print_max_error): Likewise.
11389         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
11390
11391 2001-10-16  Andreas Schwab  <schwab@suse.de>
11392
11393         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
11394         implementation.
11395
11396         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
11397         BSD_SETJMP or BSD__SETJMP is defined, resp.
11398         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
11399         a tail call to __sigsetjmp that would require extending the
11400         caller's frame.
11401         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
11402         * sysdeps/m68k/bsd-setjmp.S: Deleted.
11403         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
11404         Reported by Jes Sorensen <jes@trained-monkey.org>.
11405
11406 2001-10-16  Andreas Jaeger  <aj@suse.de>
11407
11408         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
11409         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
11410         close PR libc/2589.
11411
11412 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
11413
11414         * po/ca.po: New file.  Contributed by the translation team.
11415
11416 2001-10-15  Ralf Baechle  <ralf@gnu.org>
11417
11418         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
11419         a varargs prototype.  Remove dependency from kernel header files.
11420
11421         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
11422         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
11423
11424 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
11425
11426         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
11427         to generate hexadecimal identifier.
11428         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
11429
11430 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
11431
11432         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
11433
11434 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
11435
11436         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
11437         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
11438         Contributed by Stephen L Moshier <moshier@mediaone.net>.
11439
11440         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
11441         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11442         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
11443         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
11444         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
11445         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
11446
11447         * timezone/africa: Update from tzdata2001d.
11448         * timezone/asia: Likewise.
11449         * timezone/australasia: Likewise.
11450         * timezone/backward: Likewise.
11451         * timezone/europe: Likewise.
11452         * timezone/leapseconds: Likewise.
11453         * timezone/northamerica: Likewise.
11454         * timezone/southamerica: Likewise.
11455         * timezone/zone.tab: Likewise.
11456
11457 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11458
11459         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
11460         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
11461
11462 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
11463
11464         * elf/elf.h (PT_TLS): New definition.
11465
11466 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
11467
11468         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
11469         bits/errno.h
11470
11471 2001-10-07  Roland McGrath  <roland@frob.com>
11472
11473         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
11474
11475 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
11476
11477         * elf/elf.h: Add more ELFOSABI_* constants.
11478
11479 2001-10-04  Ben Collins  <bcollins@debian.org>
11480
11481         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
11482         decleration of __need_wchar_t.
11483
11484 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
11485
11486         * string/bits/string2.h (__strsep_g): Add prototype.
11487         (__strsep): Use it.
11488         * string/Versions (__strsep): Remove.
11489         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
11490
11491 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
11492
11493         * manua/llio.texi: Clarify file references added by mmap.
11494         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
11495
11496 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
11497
11498         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
11499         Add sc_loadrs and sc_rbs_bas to match current kernel.
11500
11501 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
11502
11503         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
11504
11505         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
11506
11507 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
11508
11509         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
11510         object has been bumped because of relocation dependency, avoid
11511         duplicates in l_scope.
11512         (show_scope): Fix typos.
11513         * elf/Makefile: Add rules to build and run reldep6.
11514         * elf/reldep6.c: New file.
11515         * elf/reldep6mod0.c: New file.
11516         * elf/reldep6mod1.c: New file.
11517         * elf/reldep6mod2.c: New file.
11518         * elf/reldep6mod3.c: New file.
11519         * elf/reldep6mod4.c: New file.
11520
11521 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
11522
11523         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
11524         sparc64_fixup_plt.
11525         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
11526         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
11527         for non-lazy binding. Fix .plt[32768+] handling.
11528         (elf_machine_plt_value): Don't add addend.
11529         (elf_machine_rela): Call sparc64_fixup_plt instead of
11530         elf_machine_fixup_plt.
11531         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
11532         dynamic linker at 0xfffff800XXXXXXXX.
11533
11534         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
11535
11536 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
11537
11538         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
11539
11540 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
11541
11542         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
11543         declare __cmsg_data field if its size would be bigger than 0.
11544         (CMSG_DATA): Adjust accordingly.
11545         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
11546         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
11547         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
11548         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
11549         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11550         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
11551         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11552
11553 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
11554
11555         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
11556         * iconvdata/testdata/IBM1160: New file.
11557         * iconvdata/testdata/IBM1160..UTF8: New file.
11558         * iconvdata/testdata/IBM1161: New file.
11559         * iconvdata/testdata/IBM1161..UTF8: New file.
11560         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11561
11562 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
11563
11564         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
11565         UL_SETFSIZE computations better.
11566
11567         * rt/Makefile: Remove use of filter for librt again.
11568
11569         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
11570         UL_SETFSIZE computations better.
11571
11572         * string/Versions: Export __strsep for GLIBC_2.2.5.
11573         * string/bits/string2.h: Define all __STRING_INLINE functions if
11574         _FORCE_INLINES is defined.
11575         Use int instead of char of parameter types.
11576         (__strsep): Don't use __strsep_g.  Don't define it.
11577         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
11578         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
11579         __strcpy_small.
11580         (__stpcpy_a_small): Renamed from __stpcpy_small.
11581         (__strcspn_c1): Don't define if _FORCE_INLINES.
11582         (__strspn_c1): Likewise.
11583
11584 2001-09-22  Ben Collins  <bcollins@debian.org>
11585
11586         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
11587         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
11588         * sysdeps/ia64/bits/sigaction.h: Likewise.
11589         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
11590
11591 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
11592
11593         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
11594
11595 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
11596
11597         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
11598
11599 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
11600
11601         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
11602
11603 2001-09-20  H.J. Lu  <hjl@gnu.org>
11604
11605         * include/dlfcn.h (__RTLD_SPROF): New definiton.
11606         * elf/dl-open.c (dl_open_worker): Return immediately after loading
11607         for __RTLD_SPROF.
11608         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
11609         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
11610
11611 2001-09-20  H.J. Lu  <hjl@gnu.org>
11612
11613         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
11614         don't add 1.
11615
11616 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
11617
11618         * nss/getent.c: Accept -s parameter to overwrite rules in
11619         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
11620
11621         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
11622         with as many ".0" as necessary to form a complete address
11623         inet_network understands.
11624
11625         * nss/getent.c: Various cleanups.  Use simpler and fewer function
11626         calls.
11627
11628 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11629
11630         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
11631         _JMPBUF_UNWINDS.
11632         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
11633
11634 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
11635
11636         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
11637         IBM1161.
11638         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
11639         * iconvdata/ibm1160.c: New file.
11640         * iconvdata/ibm1160.h: New file.
11641         * iconvdata/ibm1161.c: New file.
11642         * iconvdata/ibm1161.h: New file.
11643         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11644
11645 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
11646
11647         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
11648         difference between base address and first PT_LOAD's virtual address,
11649         not the base address.
11650
11651 2001-09-11  Tom Rix  <trix@redhat.com>
11652
11653         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
11654         ifdef for __getopt_clean_environment.
11655         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
11656
11657 2001-09-22  Andreas Jaeger  <aj@suse.de>
11658
11659         * elf/reldep4.c (main): Add proper prototype to fix warning.
11660
11661         * elf/reldep5.c (main): Remove unused variable.
11662
11663         * math/math_private.h: Add prototypes.
11664
11665 2001-09-21  Andreas Jaeger  <aj@suse.de>
11666
11667         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
11668         * sysdeps/x86_64/Dist: New file.
11669         * sysdeps/x86_64/soft-fp/Dist: New file.
11670
11671         * sysdeps/gnu/Dist: Remove eval.c.
11672
11673 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
11674
11675         * malloc/memusage.c (realloc): Don't count already allocated
11676         memory in the sums.
11677         (me): Always use dlsym() to find the real implementations.
11678
11679         * malloc/memusage.sh: Make -n option actually do something.
11680
11681 2001-09-20  Andreas Jaeger  <aj@suse.de>
11682
11683         * elf/elf.h (R_390_NUM): Correct value.
11684
11685         * Versions.def: Add missing versions 2.2.3 for libthread_db and
11686         libpthread.
11687
11688         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
11689         for x86-64, install x86-64 into */lib64.
11690
11691         * shlib-versions: Add x86-64.
11692
11693         * elf/elf.h: Add x86-64 relocations.
11694
11695 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
11696
11697         * po/fr.po: Update from translation team.
11698
11699 2001-09-19  Andreas Jaeger  <aj@suse.de>
11700
11701         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
11702         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
11703         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
11704         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
11705         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
11706         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
11707         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
11708         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
11709         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
11710         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
11711         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
11712         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
11713         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
11714         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
11715         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
11716         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
11717         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
11718         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
11719         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
11720         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
11721         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
11722         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
11723         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
11724         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
11725         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
11726         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
11727         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
11728         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
11729         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
11730         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
11731         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
11732         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
11733         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
11734         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
11735         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
11736         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
11737         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
11738         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
11739         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
11740         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
11741         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
11742         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
11743         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
11744         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
11745         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
11746         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
11747         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
11748         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
11749         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
11750         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
11751         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
11752         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
11753         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
11754         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
11755         * sysdeps/unix/x86_64/sysdep.S: New file.
11756         * sysdeps/unix/x86_64/sysdep.h: New file.
11757         * sysdeps/x86_64/Implies: New file.
11758         * sysdeps/x86_64/Makefile: New file.
11759         * sysdeps/x86_64/Versions: New file.
11760         * sysdeps/x86_64/__longjmp.S: New file.
11761         * sysdeps/x86_64/abort-instr.h: New file.
11762         * sysdeps/x86_64/atomicity.h: New file.
11763         * sysdeps/x86_64/bits/endian.h: New file.
11764         * sysdeps/x86_64/bits/setjmp.h: New file.
11765         * sysdeps/x86_64/bits/string.h: New file.
11766         * sysdeps/x86_64/bp-asm.h: New file.
11767         * sysdeps/x86_64/bsd-_setjmp.S: New file.
11768         * sysdeps/x86_64/bsd-setjmp.S: New file.
11769         * sysdeps/x86_64/dl-machine.h: New file.
11770         * sysdeps/x86_64/elf/initfini.c: New file.
11771         * sysdeps/x86_64/elf/start.S: New file.
11772         * sysdeps/x86_64/ffs.c: New file.
11773         * sysdeps/x86_64/ffsll.c: New file.
11774         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
11775         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
11776         * sysdeps/x86_64/fpu/e_acosl.c: New file.
11777         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
11778         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
11779         * sysdeps/x86_64/fpu/e_expl.c: New file.
11780         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
11781         * sysdeps/x86_64/fpu/e_log10l.S: New file.
11782         * sysdeps/x86_64/fpu/e_log2l.S: New file.
11783         * sysdeps/x86_64/fpu/e_logl.S: New file.
11784         * sysdeps/x86_64/fpu/e_powl.S: New file.
11785         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
11786         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
11787         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
11788         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
11789         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
11790         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
11791         * sysdeps/x86_64/fpu/fegetenv.c: New file.
11792         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
11793         * sysdeps/x86_64/fpu/fegetround.c: New file.
11794         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
11795         * sysdeps/x86_64/fpu/fesetenv.c: New file.
11796         * sysdeps/x86_64/fpu/fesetround.c: New file.
11797         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
11798         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
11799         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
11800         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
11801         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
11802         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
11803         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
11804         * sysdeps/x86_64/fpu/s_atanl.c: New file.
11805         * sysdeps/x86_64/fpu/s_cosl.S: New file.
11806         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
11807         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
11808         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
11809         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
11810         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
11811         * sysdeps/x86_64/fpu/s_logbl.c: New file.
11812         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
11813         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
11814         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
11815         * sysdeps/x86_64/fpu/s_rintl.c: New file.
11816         * sysdeps/x86_64/fpu/s_significandl.c: New file.
11817         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
11818         * sysdeps/x86_64/fpu/s_sinl.S: New file.
11819         * sysdeps/x86_64/fpu/s_tanl.S: New file.
11820         * sysdeps/x86_64/gmp-mparam.h: New file.
11821         * sysdeps/x86_64/hp-timing.c: New file.
11822         * sysdeps/x86_64/hp-timing.h: New file.
11823         * sysdeps/x86_64/htonl.S: New file.
11824         * sysdeps/x86_64/memusage.h: New file.
11825         * sysdeps/x86_64/setjmp.S: New file.
11826         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
11827         * sysdeps/x86_64/stackinfo.h: New file.
11828         * sysdeps/x86_64/sysdep.h: New file.
11829         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
11830
11831         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
11832         L Moshier.
11833
11834 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
11835
11836         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
11837         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
11838
11839 2001-09-18  Andreas Schwab  <schwab@suse.de>
11840
11841         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
11842         list, now that l_scope is a pointer.
11843
11844         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
11845         scope list.
11846
11847 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
11848
11849         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
11850         (elf_machine_rela_relative): Add a missing declaration.
11851
11852 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
11853
11854         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
11855         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
11856         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
11857         ldd-rewrite scripts.
11858
11859 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
11860
11861         * elf/ldd.bash.in: Update copyright message.
11862
11863 2001-09-17  H.J. Lu  <hjl@gnu.org>
11864
11865         * hurd/hurdmalloc.c (bcopy): Removed.
11866         (realloc): Replace bcopy with memcpy.
11867         * hurd/path-lookup.c (file_name_path_scan): Likewise.
11868         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
11869         * sunrpc/rpcinfo.c (pmapdump): Likewise.
11870
11871         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
11872         (gethostbyaddr): Likewise.
11873         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
11874
11875 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
11876
11877         * sysdeps/gnu/eval.c: Removed.
11878
11879 2001-09-18  Andreas Jaeger  <aj@suse.de>
11880
11881         * sysdeps/i386/fpu/s_logbl.S: Move to ...
11882         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
11883
11884         * sysdeps/i386/fpu/s_rintl.S: Move to ...
11885         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
11886
11887         * sysdeps/i386/fpu/s_significandl.S: Move to ...
11888         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
11889
11890 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
11891
11892         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
11893         nrules value.
11894
11895 2001-09-14  H.J. Lu  <hjl@gnu.org>
11896
11897         * sysdeps/mips/fpu/libm-test-ulps: Updated.
11898
11899 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
11900
11901         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
11902         Patch by Florian La Roche <laroche@redhat.com>.
11903
11904         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
11905
11906         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
11907         ETHER_CRC_LEN.
11908
11909 2001-09-14  Andreas Schwab  <schwab@suse.de>
11910
11911         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
11912         Sumner <bls@sgi.com>.
11913         * posix/execlp.c: Likewise.
11914
11915 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
11916
11917         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
11918         is already found earlier in the search scope.
11919
11920 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
11921
11922         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
11923         filter.
11924
11925 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
11926
11927         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
11928
11929 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
11930
11931         * config.h.in: Enforce optimization to be used.
11932         * Makeconfig (preprocess-versions): Define ASSEMBLER.
11933         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
11934         * posix/Makefile (annexc-CFLAGS): Define to -O.
11935         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
11936
11937 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
11938
11939         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
11940         Patch by Stephan Kulow.
11941
11942 2001-09-08  Ben Collins  <bcollins@debian.org>
11943
11944         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
11945         usage of RESOLVE() (r_type, not reloc->r_type).
11946
11947 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
11948
11949         * elf/dl-object.c: Avoid allocating extra memory block for name.
11950         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
11951         allocated separately.
11952         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
11953
11954 2001-09-08  H.J. Lu  <hjl@gnu.org>
11955
11956         * po/zh_TW.po: Fix a typo.
11957
11958 2001-09-07  Tom Rix  <trix@redhat.com>
11959
11960         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
11961
11962 2001-08-26  Tom Rix  <trix@redhat.com>
11963
11964         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
11965         command line options.
11966         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
11967         * sysdeps/unix/sysv/aix/start.c: Removed.
11968         * sysdeps/unix/sysv/aix/start-libc.c: New file.
11969         * sysdeps/unix/sysv/aix/init-first.c: New file.
11970         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
11971
11972 2001-09-08  Ben Collins  <bcollins@debian.org>
11973
11974         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
11975         * sysdeps/generic/dl-machine.h: Likewise.
11976         * sysdeps/hppa/dl-fptr.c: Likewise.
11977         * sysdeps/ia64/dl-fptr.c: Likewise.
11978         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
11979         * sysdeps/mips/dl-machine.h: Likewise.
11980         * sysdeps/mips/mips64/dl-machine.h: Likewise.
11981         * sysdeps/powerpc/dl-machine.c: Likewise.
11982
11983 2001-09-07  Ben Collins  <bcollins@debian.org>
11984
11985         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
11986
11987         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
11988
11989 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
11990
11991         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
11992         dependencies if necessary.
11993
11994         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
11995         loaded directly) determine length if l_initfini list by iterating
11996         over its elements.  Minor optimizations.
11997         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
11998         for dependency objects.
11999         If object was already loaded check whether any of the dependencies
12000         is already on the relocation dependency list.  If yes, remove the
12001         latter.  Minor optimizations.
12002         * elf/dl-lookup.c (add_dependency): Add check for self reference of
12003         maps here.  Search l_initfini list only if the object was loaded
12004         directly and not only as a dependency.
12005         (_dl_lookup_symbol): Add relocation dependency also if object
12006         is not in global scope.  Remove test for self-reference here.
12007         (_dl_lookup_versioned_symbol): Likewise.
12008         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
12009         element of first name record.
12010         * elf/loadtest.c: Add some more test to recognize early if an object
12011         wasn't unloaded.
12012         * elf/Makefile: Add rules to build and run reldep5.
12013         * elf/reldep5.c: New file.
12014         * elf/reldepmod5.c: New file.
12015         * elf/reldepmod6.c: New file.
12016
12017         * elf/reldep2.c: Fix typo.
12018
12019 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
12020
12021         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
12022         elements.  Change l_scope to be a pointer only.
12023         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
12024         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
12025         here add searchlist of newly open file to the dependency's scope.
12026         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
12027         only searchlist from its scope.  Free own scope array if necessary.
12028         * elf/Makefile (tests): Add dblload and dblunload now.
12029
12030 2001-09-06  Andreas Jaeger  <aj@suse.de>
12031
12032         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
12033         Stephen L Moshier.
12034
12035 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
12036
12037         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
12038         they both fail.
12039         * elf/dblload.c: New file.
12040         * elf/dblloadmod1.c: New file.
12041         * elf/dblloadmod2.c: New file.
12042         * elf/dblloadmod3.c: New file.
12043         * elf/dblunload.c: New file.
12044
12045 2001-09-04  Richard Henderson  <rth@redhat.com>
12046
12047         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
12048         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
12049
12050 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
12051
12052         Correct very misleading message for error in failed runtime relocation.
12053         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
12054         place of the error.
12055         (_dl_signal_cerror): Likewise.
12056         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
12057         * elf/dl-close.c: Likewise.
12058         * elf/dl-deps.c: Likewise.
12059         * elf/dl-load.c: Likewise.
12060         * elf/dl-lookup.c: Likewise.
12061         * elf/dl-open.c: Likewise.
12062         * elf/dl-reloc.c: Likewise.
12063         * elf/dl-sym.c: Likewise.
12064         * elf/dl-version.c: Likewise.
12065         * sysdeps/generic/dl-sysdep.c: Likewise.
12066
12067 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
12068
12069         * iconv/strtab.c (strtabinit): Initialize null Strent.
12070         (newstring): Move len == 0 handling...
12071         (strtabadd): ...here.
12072         If len == 1, return null Strent.
12073         When inserting a suffix of an existing string, check if
12074         it is not equal to some suffix already recorded.
12075         Copy left and right members over if adding longer string.
12076
12077 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
12078
12079         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
12080
12081         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
12082         (__syscall_gethostname): Add prototype.
12083
12084 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
12085
12086         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
12087
12088 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
12089
12090         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
12091
12092 2001-08-27  Roland McGrath  <roland@frob.com>
12093
12094         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
12095         short, copy that much into NAME anyway before returning error.
12096
12097 2001-09-01  Richard Henderson  <rth@redhat.com>
12098
12099         * sysdeps/alpha/elf/Dist: Remove file.
12100         * sysdeps/alpha/elf/Makefile: Remove file.
12101         * sysdeps/alpha/elf/crtbegin.S: Remove file.
12102         * sysdeps/alpha/elf/crtend.S: Remove file.
12103         * sysdeps/alpha/elf/initfini.c: New file.
12104
12105 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
12106
12107         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
12108         * iconv/tst-iconv3.c: Likewise.
12109
12110 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
12111
12112         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
12113
12114 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
12115
12116         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
12117         export it.
12118         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
12119         * iconv/iconv_prog.c (insert_cache): New function.
12120         (print_known_names): If cache is used call insert_cache to use the
12121         information from the cache [PR libc/2509].
12122
12123 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
12124
12125         * time/strptime.c (strptime_internal): Recognize 'l' format and
12126         handle it like 'I' for symmetry with strftime.
12127
12128 2001-08-31  Richard Henderson  <rth@redhat.com>
12129
12130         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
12131         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
12132         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
12133         (print_statistics): Make scalar unsigned long long.
12134         * sysdeps/alpha/hp-timing.h: New file.
12135
12136 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
12137
12138         * stdio-common/perror.c (perror): Save errno early, pass it
12139         down to perror_internal.
12140         (perror_internal): Add errnum argument.
12141
12142 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
12143
12144         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
12145         Don't add old memory content for R_ALPHA_REFQUAD.
12146
12147 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12148
12149         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
12150         memory correctly.
12151
12152         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
12153         instead of open, __close instead of close, __getpagesize instead
12154         of getpagesize.
12155
12156         * string/argz-stringify.c (__argz_stringify): Use __strnlen
12157         instead of strnlen.
12158         * include/string.h (strndupa): Redefine here to use __strnlen
12159         instead of strnlen.
12160         * string/strndup.c (__strndup): Use __strnlen not strnlen.
12161
12162         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
12163         connected).
12164
12165 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
12166
12167         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
12168         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
12169         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
12170         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
12171         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
12172         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
12173         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
12174
12175 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12176
12177         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
12178
12179 2001-08-30  Andreas Jaeger  <aj@suse.de>
12180
12181         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
12182         contributed Stephen L Moshier.
12183
12184 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
12185
12186         * sunrpc/etc.rpc (sgi_fam): Add.
12187
12188 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12189
12190         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
12191
12192 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
12193
12194         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
12195         first is from a previous call.
12196         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
12197
12198 2001-08-29  Andreas Schwab  <schwab@suse.de>
12199
12200         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
12201
12202 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12203
12204         * config.make.in (INSTALL_SCRIPT): Define.
12205         * Makeconfig (INSTALL_SCRIPT): Define.
12206         * Makerules (do-install-script): New macro to install scripts using
12207         INSTALL_SCRIPT.
12208         (install-bin-script): New rule to install scripts with
12209         do-install-script.
12210         (install-bin-script-nosubdir): New rule.
12211         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
12212         (distinfo-vars): Add $(install-bin-script).
12213         * Rules (others): Likewise.
12214         * Makefile (glibcbug): Install with install-bin-script.
12215         * debug/Makefile (xtrace): Likewise.
12216         (catchsegv): Likewise.
12217         * elf/Makefile (ldd): Likewise.
12218         * malloc/Makefile (mtrace): Likewise.
12219         * timezone/Makefile (tzselect): Likewise.
12220
12221 2001-08-29  H.J. Lu  <hjl@gnu.org>
12222
12223         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
12224         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
12225         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
12226
12227 2001-08-29  Andreas Schwab  <schwab@suse.de>
12228
12229         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
12230
12231 2001-08-28  H.J. Lu  <hjl@gnu.org>
12232
12233         * Makeconfig (combreloc-LDFLAGS): New variable.
12234         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
12235         * config.make.in (have-z-combreloc): New variable.
12236         * configure.in: Substitute libc_cv_z_combreloc.
12237
12238 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
12239
12240         * po/sv.po: Update from translation team.
12241         * po/fr.po: Likewise.
12242         * po/da.po: Likewise.
12243
12244 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12245
12246         * Makerules: Fix a typo: MD% -> MD5.
12247
12248 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
12249
12250         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
12251         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
12252
12253 2001-08-28  Andreas Jaeger  <aj@suse.de>
12254
12255         * manual/libc-texinfo.sh: Add entry about free manuals.
12256
12257         * manual/contrib.texi (Contributors): Fix cross reference.
12258
12259         * manual/libc.texinfo (Copying): Include freemanuals.
12260
12261         * manual/Makefile (appendices): Add freemanuals.
12262
12263         * manual/freemanuals.texi: New file.
12264         Patch by Brian Youmans <3diff@gnu.org>.
12265
12266         * manual/libm-err-tab.pl: Pretty print more platforms, print a
12267         smaller table.
12268
12269         * manual/math.texi (Errors in Math Functions): Fix grammar, start
12270         table on separate page.
12271         Patch by Brian Youmans <3diff@gnu.org>.
12272
12273 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
12274
12275         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
12276         the connection went down after we first used it try to connect
12277         again and resend the message before printing to the console.
12278         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
12279
12280 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
12281
12282         * string/tst-strlen.c (main): Test strnlen (, -1) too.
12283         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
12284         bit set.
12285
12286 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
12287
12288         * iconv/strtab.c (searchstring): Use correct length for comparison.
12289         (strtabadd): Account total size correct if new string has old string as
12290         substring.
12291
12292 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
12293
12294         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
12295
12296 2001-08-27  Andreas Jaeger  <aj@suse.de>
12297
12298         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
12299
12300         * math/libm-test.inc (j0_test): Add extra tests.
12301         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
12302         not x, in Hankel approximation.
12303         Patches by Stephen L Moshier.
12304
12305 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
12306
12307         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
12308         link_map.
12309
12310         * configure.in: Fix test for .rela.dyn section.
12311
12312         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
12313
12314 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
12315
12316         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
12317         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
12318         Pass type_class to _dl_lookup_*.
12319         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
12320         Pass around just type_class instead of noexec, noplt pair.
12321         (_dl_lookup_versioned_symbol): Likewise.
12322         (_dl_lookup_symbol_skip): Pass around just type_class instead of
12323         noexec, noplt pair.
12324         (_dl_lookup_versioned_symbol_skip): Likewise.
12325         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
12326         * elf/do-lookup.h (do_lookup): Likewise.
12327         * include/link.h (struct link_map): Replace noexec and noplt fields
12328         in l_lookup_cache with type_class field.
12329         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
12330         ELF_RTYPE_CLASS_COPY): Define.
12331         Adjust prototypes for _dl_lookup_symbol and
12332         _dl_lookup_versioned_symbol.
12333         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
12334         elf_machine_lookup_noexec_p): Remove.
12335         (elf_machine_type_class): Define.
12336         * sysdeps/arm/dl-machine.h: Likewise.
12337         * sysdeps/hppa/dl-machine.h: Likewise.
12338         * sysdeps/cris/dl-machine.h: Likewise.
12339         * sysdeps/i386/dl-machine.h: Likewise.
12340         * sysdeps/ia64/dl-machine.h: Likewise.
12341         * sysdeps/m68k/dl-machine.h: Likewise.
12342         * sysdeps/mips/mips64/dl-machine.h: Likewise.
12343         * sysdeps/mips/dl-machine.h: Likewise.
12344         * sysdeps/powerpc/dl-machine.h: Likewise.
12345         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12346         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12347         * sysdeps/sh/dl-machine.h: Likewise.
12348         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12349         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12350
12351 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
12352
12353         * manual/message.texi (Advanced gettext functions): Change
12354         description of plural forms for Slovak.
12355         Reported by Marcel Telka <marcel@telka.sk>.
12356
12357         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
12358         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
12359
12360 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
12361
12362         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
12363         typo.  Patch by Florian La Roche <laroche@redhat.com>.
12364
12365 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
12366
12367         * include/link.h (struct link_map): Add l_lookup_cache element.
12368         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
12369         (RESOLVE_MAP): Likewise.
12370         (_dl_relocate_object): Remove cache initialization.
12371         * elf/dl-lookup.c: Rip out cache handling code.
12372         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
12373         declarations.
12374
12375         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
12376         remove some __builtin_expect.
12377         (_dl_lookup_versioned_symbol): Likewise.
12378
12379         * config.h.in: Add HAVE_Z_COMBRELOC.
12380         * configure.in: Add test for -z combreloc.
12381
12382         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
12383         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
12384         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
12385         case to almost no code.
12386
12387 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
12388
12389         * po/tr.po: Update from translation team.
12390
12391 2001-08-24  Andreas Jaeger  <aj@suse.de>
12392
12393         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
12394         make clean works.
12395
12396 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12397
12398         * elf/rtld.c (print_statistics): Printf % after percent values.
12399         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
12400
12401         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
12402         don't have to compute the hash value and initialize current_value.
12403         Move reference_name variable to where it is needed.
12404         (_dl_lookup_versioned_symbol): Likewise.
12405
12406 2001-08-24  Roland McGrath  <roland@frob.com>
12407
12408         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
12409         Just test that strerror returns non-null for a few errno codes.
12410
12411 2001-08-23  Roland McGrath  <roland@frob.com>
12412
12413         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
12414         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
12415
12416         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
12417
12418         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
12419         __mach_reply_port.
12420
12421 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12422
12423         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
12424         returns NULL.
12425
12426         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
12427         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
12428         doesn't do it.
12429         * elf/rtld.c: Include <sys/param.h>.
12430         * elf/dl-reloc.c: Likewise.
12431
12432 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12433
12434         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
12435         empty to prevent junk from being generated.
12436         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
12437
12438 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
12439
12440         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
12441         records.  Rename endrel to relative, initialize it to r, and use it
12442         in elf_machine_rel_relative calls.  Point r after relative relocs.
12443
12444 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12445
12446         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
12447         of R_386_NONE.
12448
12449 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
12450
12451         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
12452         necessary.  Undefine newly defined macros at the end.
12453         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
12454         Rename from elf_machine_rel_relative.
12455         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
12456         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
12457         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
12458         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
12459         Likewise.
12460         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
12461         Likewise.
12462         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
12463         Fix argument types.
12464         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
12465         Fix argument types.
12466         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
12467         Likewise.  Fix argument types.
12468         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
12469         Likewise.  Fix argument types.
12470         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
12471         Fix argument types.
12472         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
12473         ElfW(Rel) in argument.
12474         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
12475         function.
12476
12477 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
12478
12479         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
12480
12481 2001-08-24  Andreas Jaeger  <aj@suse.de>
12482
12483         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
12484         Stephen L Moshier <moshier@mediaone.net>.
12485
12486 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12487
12488         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
12489         first if RELCOUNT is set.
12490
12491         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
12492         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
12493         elf_machine_rel_relative.
12494         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
12495         Minor optimizations.
12496         * sysdeps/arm/dl-machine.h: Likewise.
12497         * sysdeps/cris/dl-machine.h: Likewise.
12498         * sysdeps/hppa/dl-machine.h: Likewise.
12499         * sysdeps/i386/dl-machine.h: Likewise.
12500         * sysdeps/ia64/dl-machine.h: Likewise.
12501         * sysdeps/m68k/dl-machine.h: Likewise.
12502         * sysdeps/mips/dl-machine.h: Likewise.
12503         * sysdeps/powerpc/dl-machine.h: Likewise.
12504         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12505         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12506         * sysdeps/sh/dl-machine.h: Likewise.
12507         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12508         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12509
12510 2001-08-23  Roland McGrath  <roland@frob.com>
12511
12512         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
12513
12514         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
12515         sysdeps/mach version.  Implement counting ("recursive") mutexes
12516         on top of cthreads mutexes.
12517         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
12518
12519         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
12520         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
12521         (__libc_cleanup_region_start, __libc_cleanup_region_end,
12522         __libc_clean_end): Define these to call the cleanup function after
12523         normal exit when they're supposed to.
12524
12525         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
12526         Take new first arg DOIT, a boolean saying whether to really install
12527         any cleanup handler.
12528         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
12529         (__libc_cleanup_end): Likewise.
12530         * sysdeps/generic/bits/libc-lock.h: Same changes.
12531         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
12532         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
12533         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
12534         Likewise.
12535         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
12536         * sysdeps/generic/bits/stdio-lock.h
12537         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
12538
12539 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
12540
12541         * elf/ldconfig.c (search_dir): Remove stale symlinks.
12542
12543 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
12544
12545         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New
12546         functions.
12547         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
12548         lookups in cache.
12549         (_dl_lookup_versioned_symbol): Likewise.
12550         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
12551         relocation lookup.
12552         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
12553         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
12554         (lookup_cache, lookup_cache_versioned): Add declarations.
12555
12556 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
12557
12558         * stdlib/tst-random.c (main): Swap parameters in fail call.
12559         Patch by Pete Bevin <pete@petebevin.com>.
12560
12561 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
12562
12563         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
12564
12565 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
12566
12567         * malloc/obstack.c: Indent preprocessor directives.
12568         Patch by Jim Meyering <meyering@ascend.com>.
12569
12570         * po/ja.po: Update from translation team.
12571
12572 2001-08-23  Roland McGrath  <roland@frob.com>
12573
12574         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
12575
12576         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
12577         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
12578
12579 2001-08-22  Roland McGrath  <roland@frob.com>
12580
12581         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
12582         __libc_lock_define_recursive.
12583         * elf/dl-open.c: Don't declare it here any more.
12584         * elf/dl-close.c: Likewise.
12585         * elf/dl-lookup.c: Likewise.
12586         * elf/dl-iteratephdr.c: Likewise.
12587         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
12588         __libc_lock_unlock_recursive.
12589         * elf/dl-close.c (_dl_close): Likewise
12590         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
12591         * elf/dl-open.c (_dl_open): Likewise
12592
12593         * sysdeps/generic/bits/libc-lock.h
12594         (__libc_lock_define_recursive): New macro.
12595         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
12596         (_IO_lock_lock): Use __libc_lock_lock_recursive.
12597         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
12598
12599         * conform/conformtest.pl (checknamespace): Sort the output list.
12600
12601         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
12602         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
12603         definitions conditional on [__USE_XOPEN].
12604
12605         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
12606         these unconditionally, not only use [__USE_BSD], so as to match
12607         the sysdeps/unix/sysv/linux files.
12608
12609 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
12610
12611         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
12612         avoid warnings.
12613
12614         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
12615         DL_LOOKUP_ADDRESS.
12616
12617 2001-08-22  Roland McGrath  <roland@frob.com>
12618
12619         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
12620         conditionalization of sa_handler/sa_sigaction member types to
12621         match the sysdeps/unix/sysv/linux file.
12622
12623 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
12624
12625         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
12626         symbol sizes a bit better.
12627
12628         * sysdeps/ia64/strncpy.S: Complete rewrite.
12629         Contributed by Jakub Jelinek <jakub@redhat.com>.
12630
12631         * string/stratcliff.c (main): Add strncpy test.
12632
12633 2001-08-22  Roland McGrath  <roland@frob.com>
12634
12635         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
12636         and don't declare unsetenv or _environ directly.
12637         (unsetenv): Return int, not void.  Use __environ instead of _environ.
12638
12639 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
12640
12641         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
12642         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
12643         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
12644         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
12645         test for cmsg struct size.
12646
12647 2001-04-23  Paul Eggert  <eggert@twinsun.com>
12648
12649         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
12650         Rename __argc to ___argc in prototypes to avoid compatibility
12651         problems with systems that reserve the identifier "__argc".
12652         Similarly for __argv.
12653
12654 2001-08-21  Roland McGrath  <roland@frob.com>
12655
12656         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
12657
12658         * mach/Makefile (tests): Removed.
12659         * mach/hello.c: File removed.
12660
12661 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
12662
12663         * po/sv.po: Update from translation team.
12664
12665         * stdio-common/vfscanf.c: Fix handling of %l[].
12666         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
12667
12668         * libio/Makefile (tests): Add tst-sscanf.
12669         * libio/tst-sscanf.c: New file.
12670
12671         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
12672         * malloc/mtrace.c (tr_where): dli_sname always points to a
12673         non-empty string if != NULL.
12674         Reported by Tim Janik <timj@gtk.org>.
12675
12676 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
12677
12678         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
12679         buf.  Free resources on failure.
12680         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
12681         (makefd_xprt): Likewise.
12682         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
12683         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
12684         * sunrpc/auth_unix.c (authunix_create): Likewise.
12685
12686 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
12687
12688         * string/strnlen.c: Remove.
12689         * sysdeps/generic/strnlen.c: New file.
12690         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
12691
12692 2001-08-21  Roland McGrath  <roland@frob.com>
12693
12694         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
12695         as a macro, not an extern inline function.
12696
12697         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
12698         * Versions.def (libc): Add GLIBC_2.2.5 set.
12699         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
12700         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
12701
12702 2001-08-20  Roland McGrath  <roland@frob.com>
12703
12704         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
12705         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
12706
12707 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
12708
12709         * string/bits/string2.h: Remove strnlen optimization here.
12710         * sysdeps/i386/i486/bits/string.h: Add it here.
12711
12712 2001-08-21  Wolfram Gloger  <wg@malloc.de>
12713
12714         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
12715
12716 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
12717
12718         * po/gl.po: Update from translation team.
12719
12720 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
12721
12722         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
12723         * misc/err.c (convert_and_print): Likewise.
12724
12725         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
12726         function calls.
12727
12728 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12729
12730         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
12731         change of the gregset_t type.
12732         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
12733
12734 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
12735
12736         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
12737
12738 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
12739
12740         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
12741
12742         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
12743
12744 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
12745
12746         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
12747         before calling the cthreads initialization code.
12748
12749 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
12750
12751         * argp/argp-help.c: Fix two problems introduced in last change.
12752
12753         * include/dirent.h: Include <dirstream.h> first.
12754
12755 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
12756
12757         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
12758
12759         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
12760         * sunrpc/xdr_rec.c: Likewise.
12761         * sunrpc/xdr_mem.c: Likewise.
12762         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
12763         * sunrpc/rpc_cmsg.c: Likewise.
12764         * sunrpc/getrpcport.c (getrpcport): Likewise.
12765         * sunrpc/clnt_simp.c (callrpc): Likewise.
12766         * sunrpc/clnt_gen.c (clnt_create): Likewise.
12767         * string/envz.c: Likewise.
12768
12769         * po/ko.po: Update from translation team.
12770
12771         * argp/argp-help.c: Handle wide oriented stderr stream.
12772
12773 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
12774
12775         * sysdeps/generic/strtol.c: Little optimizations.  Add some
12776         __builtin_expect.
12777
12778         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
12779
12780         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
12781         * wcsmbs/wcwidth.c (wcwdith): Likewise.
12782         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
12783
12784         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
12785
12786         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
12787
12788         * time/time.h (struct timespec): Use __time_t for tv_sec element.
12789
12790         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
12791         wchar_t for function declarations and defintions.
12792
12793         * misc/sys/select.h: Define __need_time_t before including <time.h>.
12794         Define suseconds_t if it hasn't happened yet.
12795
12796         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
12797
12798         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
12799
12800         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
12801         <stddef.h>.
12802
12803         * conform/data/stddef.h-data: Remove wint_t.
12804
12805         * conform/conformtest.pl: Change namespace test to take #undef
12806         lines into account.
12807
12808         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
12809
12810         * conform/data/sys/socket.h-data: Add sockatmark.
12811
12812 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
12813
12814         * io/fts.c: Update from recent BSD source.
12815
12816 2001-08-17  Roland McGrath  <roland@frob.com>
12817
12818         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
12819         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
12820         Likewise.
12821
12822 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
12823
12824         * locale/duplocale.c (__duplocale): Also initialize the special
12825         __ctype_* elements.
12826
12827         * conform/data/netdb.h-data: Adjust gai_strerror return type.
12828
12829 2001-08-17  Andreas Jaeger  <aj@suse.de>
12830
12831         * misc/getpass.c: Include wchar.h for prototypes.
12832         * malloc/obstack.c: Likewise.
12833
12834 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
12835
12836         * sunrpc/svc_simple.c (universal): Use __write instead of write.
12837
12838         * wcsmbs/wcscoll.c: Also define __wcscoll.
12839         * include/wchar.h: Declare __wcscoll.
12840
12841         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
12842         * libio/vwprintf.c: Likewise.
12843         * libio/wprintf.c: Likewise.
12844
12845         * iconv/gconv_cache.c: Use __munmap instead of munmap.
12846
12847 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
12848
12849         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
12850         instead of mbrtowc.
12851         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
12852         wcslen, and __wcscoll instead of wcscoll.
12853
12854         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
12855
12856         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
12857         __getuid instead of getuid.
12858
12859         * stdio-common/perror.c (perror): Use __close instead of close.
12860         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
12861         * libio/freopen.c (freopen): Likewise.
12862         * libio/freopen64.c (freopen64): Likewise.
12863
12864         * libio/tst-ungetwc2.c (main): Define str const.
12865
12866         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
12867         * libio/fwprintf.c: Also define __fwprintf.
12868         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
12869         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
12870         * assert/assert-perr.c: Likewise.
12871         * assert/assert.c: Likewise.
12872         * gmon/gmon.c: Likewise.
12873         * inet/rcmd.c: Likewise.
12874         * malloc/obstack.c: Likewise.
12875         * misc/err.c: Likewise.
12876         * misc/error.c: Likewise.
12877         * misc/getpass.c: Likewise.
12878         * posix/getopt.c: Likewise.
12879         * resolv/res_hconf.c: Likewise.
12880         * stdio-common/perror.c: Likewise.
12881         * stdio-common/psignal.c: Likewise.
12882         * stdlib/fmtmsg.c: Likewise.
12883         * sunrpc/auth_unix.c: Likewise.
12884         * sunrpc/clnt_perr.c: Likewise.
12885         * sunrpc/clnt_tcp.c: Likewise.
12886         * sunrpc/clnt_udp.c: Likewise.
12887         * sunrpc/clnt_unix.c: Likewise.
12888         * sunrpc/svc_simple.c: Likewise.
12889         * sunrpc/svc_tcp.c: Likewise.
12890         * sunrpc/svc_udp.c: Likewise.
12891         * sunrpc/svc_unix.c: Likewise.
12892         * sunrpc/xdr.c: Likewise.
12893         * sunrpc/xdr_array.c: Likewise.
12894         * sunrpc/xdr_rec.c: Likewise.
12895         * sunrpc/xdr_ref.c: Likewise.
12896         * sysdeps/generic/wordexp.c: Likewise.
12897
12898         * po/it.po: Update from translation team.
12899
12900         * misc/err.c: Handle wide oriented stderr stream.
12901
12902 2001-08-14  Tom Rix  <trix@redhat.com>
12903
12904         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
12905         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
12906
12907 2001-08-13  Tom Rix  <trix@redhat.com>
12908
12909         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
12910         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
12911         and __intptr_t.
12912
12913 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12914
12915         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
12916         Store the access registers to the ucontext structure.
12917         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
12918         Likewise.
12919
12920         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
12921         Load the access registers from the ucontext structure.
12922         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
12923         Likewise.
12924
12925         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
12926         offsets to the new ucontext layout.
12927         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
12928
12929         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
12930         of the ucontext structure.
12931         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
12932
12933 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
12934
12935         * misc/error.c (error): Handle wide oriented stderr stream correctly.
12936         (error_at_line): Likewise.
12937
12938         * stdio-common/perror.c (perror): Implement according to standard.
12939         The stream orientation must not be changed if the stream was not
12940         oriented before the call.
12941         * stdio-common/Makefile (tests): Add tst-perror.
12942         * stdio-common/tst-perror.c: New file.
12943
12944
12945 See ChangeLog.12 for earlier changes.