Update.
[platform/upstream/glibc.git] / ChangeLog
1 2002-09-18  Ulrich Drepper  <drepper@redhat.com>
2
3         * sysdeps/unix/sysv/linux/i386/clone.S: Add support for SETTLS and
4         SETTID/CLEARTID.
5
6         * signal/allocrtsig.c: Move to...
7         * sysdeps/generic/allocrtsig.c: ...here.  New file.
8
9 2002-09-17  Jakub Jelinek  <jakub@redhat.com>
10
11         * elf/dl-lookup.c (_dl_debug_bindings): Print TLS lookups always.
12
13         * elf/elf.h (R_386_TLS_TPOFF, R_386_TLS_IE, R_386_TLS_GOTIE,
14         R_386_TLS_LE): Define.
15         (R_386_TLS_IE_32, R_386_TLS_LE_32, R_386_TLS_TPOFF32): Update
16         comments.
17         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Return
18         ELF_RTYPE_CLASS_PLT for R_386_TLS_TPOFF.
19         (elf_machine_rel): Handle R_386_TLS_TPOFF.
20         (elf_machine_rela): Likewise.
21         Remove unnecessary RTLD_BOOTSTRAP #ifdefs.
22
23 2002-09-17  Roland McGrath  <roland@redhat.com>
24
25         * malloc/Makefile ($(objpfx)memusagestat.o: sysincludes): Define
26         file-specific variable override so it compiles properly when using
27         --with-headers.
28
29 2002-09-17  Steven Munroe  <sjmunroe@us.ibm.com>
30
31         Ported to PowerPC64 running Linux.
32         * sysdeps/powerpc/powerpc64/Dist: New file.
33         * sysdeps/powerpc/powerpc64/Implies: New file.
34         * sysdeps/powerpc/powerpc64/Makefile: New file.
35         * sysdeps/powerpc/powerpc64/__longjmp.S: New file.
36         * sysdeps/powerpc/powerpc64/atomicity.h: New file.
37         * sysdeps/powerpc/powerpc64/backtrace.c: New file.
38         * sysdeps/powerpc/powerpc64/bp-asm.h: New file.
39         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: New file.
40         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: New file.
41         * sysdeps/powerpc/powerpc64/dl-dtprocnum.h: New file.
42         * sysdeps/powerpc/powerpc64/dl-lookupcfg.h: New file.
43         * sysdeps/powerpc/powerpc64/dl-machine.c: New file.
44         * sysdeps/powerpc/powerpc64/dl-machine.h: New file.
45         * sysdeps/powerpc/powerpc64/memset.S: New file.
46         * sysdeps/powerpc/powerpc64/ppc-mcount.S: New file.
47         * sysdeps/powerpc/powerpc64/register-dump.h: New file.
48         * sysdeps/powerpc/powerpc64/setjmp.S: New file.
49         * sysdeps/powerpc/powerpc64/stpcpy.S: New file.
50         * sysdeps/powerpc/powerpc64/strchr.S: New file.
51         * sysdeps/powerpc/powerpc64/strcmp.S: New file.
52         * sysdeps/powerpc/powerpc64/strcpy.S: New file.
53         * sysdeps/powerpc/powerpc64/strlen.S: New file.
54         * sysdeps/powerpc/powerpc64/elf/bzero.S: New file.
55         * sysdeps/powerpc/powerpc64/elf/start.S: New file.
56         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: New file.
57         * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: New file.
58         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: New File.
59         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: New file.
60         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: New file.
61         * sysdeps/unix/sysv/linux/powerpc/powerpc64/glob64.c: New file.
62         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: New file.
63         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: New file.
64         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: New file.
65
66         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME]
67         (C_SYMBOL_DOT_NAME): Insure that C_SYMBOL_DOT_NAME works for
68         various gcc versions.  Dot names required for powerpc64.
69         [HAVE_ASM_GLOBAL_DOT_NAME] (_weak_extern): Add .weakext '.'ed symbol.
70         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias): Add .global
71         C_SYMBOL_DOT_NAME(alias).
72         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): New macro. Same as
73         original strong_alias macro.
74         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Add .weakext/.weak
75         C_SYMBOL_DOT_NAME(alias).
76         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Add .symver '.'ed name.
77         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Add .symver
78         '.'ed name.
79         Add comments on libc_hidden_data_def and libc_hidden_data_weak usage.
80         [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_def1): New macro.  Generate
81         .global C_SYMBOL_DOT_NAME(alias).  Otherwise an empty macro.
82         (hidden_def): Append hidden_dot_def1 macro to definition.
83         (hidden_ver): Append hidden_dot_def1 macro to definition.
84         (hidden_data_def): New macro.  Same as original hidden_def macro.
85         (hidden_data_ver): New macro.  Same as original hidden_ver macro.
86         [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_weak1): New macro.  Generate
87         .weakext C_SYMBOL_DOT_NAME(alias).  Otherwise an empty macro.
88         (hidden_weak): Append hidden_dot_weak1 macro to definition.
89         (hidden_data_weak): New macro.  Same as original hidden_weak macro.
90         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Define as .__GI_name.
91         Otherwise defined as __GI_name.
92         (libc_hidden_data_def): New macro.  Use hidden_data_def.
93         (libc_hidden_data_weak): New macro.  Use hidden_data_weak.
94         (libc_hidden_data_ver): New macro.  Use hidden_data_ver.
95         (rtld_hidden_data_def): New macro.  Use hidden_data_def.
96         (rtld_hidden_data_weak): New macro.  Use hidden_data_weak.
97         (rtld_hidden_data_ver): New macro.  Use hidden_data_ver.
98         (libm_hidden_data_def): New macro.  Use hidden_data_def.
99         (libm_hidden_data_weak): New macro.  Use hidden_data_weak.
100         (libm_hidden_data_ver): New macro.  Use hidden_data_ver.
101         * inet/in6_addr.c: Replace libc_hidden_def with libc_hidden_data_def.
102
103 2002-09-17  Ulrich Drepper  <drepper@redhat.com>
104
105         * include/libc-symbols.h: Change *hidden_proto macros to accept
106         option parameters and pass those to the attribute definition.
107         * include/unistd.h (_exit): Add __noreturn__ to libc_hidden_proto call.
108
109         * include/unistd.h: Declare __libc_pause.
110
111         * include/sys/socket.h: Declare __libc_send, __libc_recv,
112         __libc_sendto, __libc_sendmsg, __libc_recvmsg, and __libc_accept.
113
114         * include/unistd.h: Declare __libc_fork.
115
116 2002-09-17  Roland McGrath  <roland@redhat.com>
117
118         * sunrpc/xcrypt.c (passwd2des_internal): Renamed fom passwd2des.
119         (passwd2des): Define it as an alias.
120         (xencrypt, xdecrypt): Call passwd2des_internal instead of passwd2des.
121
122 2002-09-12  Bruno Haible  <bruno@clisp.org>
123
124         * include/sys/sysctl.h (__sysctl): Add libc_hidden_proto.
125         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Add libc_hidden_def.
126
127         * include/rpc/xdr.h (xdrstdio_create): Add libc_hidden_proto.
128         * sunrpc/xdr_stdio.c (xdrstdio_create): Add libc_hidden_def.
129
130 2002-09-05  Steven Munroe  <sjmunroe@us.ibm.com>
131
132         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc64__]
133         (__ASSUME_TRUNCATE64_SYSCALL, __ASSUME_STAT64_SYSCALL, __ASSUME_IPC64,
134         __ASSUME_FCNTL64, __ASSUME_MMAP2_SYSCALL): Don't define these.
135         PowerPC64 does not have separate 64-bit syscalls.
136
137 2002-09-16  Roland McGrath  <roland@redhat.com>
138
139         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Add a cast.
140
141         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
142         New macro.
143
144         * elf/rtld.c [HP_TIMING_NONAVAIL]: Fix last change for this case.
145
146         * include/unistd.h: Uncomment libc_hidden_proto for _exit.
147         * sysdeps/mach/hurd/_exit.c: Add libc_hidden_def.
148         * sysdeps/generic/_exit.c: Likewise.
149
150 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
151
152         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Regenerate.
153
154         * elf/rtld.c (struct dl_start_final_info): New.
155         (_dl_start_final): Change second argument to struct
156         dl_start_final_info *.  Set start_time from info.
157         (_dl_start): Remove bootstrap_map variable, add info.
158         Define bootstrap_map as macro.  If not DONT_USE_BOOTSTRAP_MAP,
159         store HP_TIMING_NOW result into info.start_time.
160
161 2002-09-16  Andreas Jaeger  <aj@suse.de>
162
163         * sysdeps/unix/sysv/linux/_exit.c: Add libc_hidden_def and weak_alias
164         to _Exit.
165         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
166
167 2002-09-15  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
168
169         * sysdeps/powerpc/abort-instr.h: New file.
170
171 2002-09-14  Ulrich Drepper  <drepper@redhat.com>
172
173         * sysdeps/generic/libc-start.c (__libc_start_main): Remove bogus
174         comment.
175
176         * test-skeleton.c (main): Provide more information in case waitpid
177         fails.
178
179         * include/unistd.h: Declare __exit_thread.
180         * sysdeps/generic/libc-start.c (__libc_start_main): Remove dummy_addr.
181         Wrap call to main in setjmp if HAVE_CANCELBUF is defined.
182         * sysdeps/unix/sysv/linux/exit-thread.S: New file.
183         * sysdeps/unix/sysv/linux/_exit.c: New file.
184         * sysdeps/unix/sysv/linux/i386/_exit.S: New file.
185         * sysdeps/unix/sysv/linux/Makefile [subdir==posix] (sysdep_routines):
186         Add exit-thread.
187
188         * configure.in: Add dl_iterate_phdr to test using -nostdlib.
189
190 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
191
192         * sysdeps/i386/dl-machine.h (elf_machine_rel)
193         (case R_386_TLS_DTPMOD32): Don't use addend.
194         [case R_386_TLS_TPOFF32]: Remove redundant SYM_MAP != NULL check.
195         (elf_machine_rela): Add support for TLS relocs.
196
197 2002-09-14  Roland McGrath  <roland@redhat.com>
198
199         * Makefile (manual/%): Add this pattern target to the iconvdata/% rule.
200
201 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
202
203         * stdlib/longlong.h [_ARCH_PPC && W_TYPE_SIZE!=32]: Add powerpc64
204         specific asm macros for multiple percision integer math.
205
206 2002-06-04  Steven Munroe  <sjmunroe@us.ibm.com>
207
208         * sysdeps/generic/ldconfig.h (FLAG_POWERPC_LIB64) New macro.
209         * elf/cache.c (print_entry): Add case for FLAG_POWERPC_LIB64.
210         Remove per-machine conditionals for FLAG_* cases.
211         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h: New file.
212         * sysdeps/unix/sysv/linux/powerpc/readelflib.c: New file.
213         * sysdeps/unix/sysv/linux/powerpc/powerpc64/dl-cache.h: New file.
214
215 2002-09-10  Alan Modra <amodra@bigpond.net.au>
216
217         * csu/gmon-start.c [!TEXT_START]: Define TEXT_START if not already
218         defined in entry.h.
219         (__gmon_start__) [!ENTRY_POINT_DECL]: Use TEXT_START macro to obtain
220         lowest address for profiling in  __monstartup call.
221         * sysdeps/powerpc/powerpc64/elf/entry.h: New file.
222
223 2002-09-14  Roland McGrath  <roland@redhat.com>
224
225         * sysdeps/unix/sysv/linux/pread.c: __NR_pread64 may be defined
226         instead of __NR_pread.
227         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
228         * sysdeps/unix/sysv/linux/pwrite.c: __NR_pwrite64 may be defined
229         instead of __NR_pwrite.
230         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
231
232 2002-09-13  Roland McGrath  <roland@redhat.com>
233
234         * manual/libc.texinfo: @ifinfo -> @ifnottex around copyright notice.
235
236 2002-09-13  Andreas Jaeger  <aj@suse.de>
237
238         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add readahead
239         syscall.  Patch by Guido Guenther <agx@sigxcpu.org>.
240
241 2002-09-12  Ulrich Drepper  <drepper@redhat.com>
242
243         * elf/elf.h: Correct DT_LOOS and DT_HIOS values.
244
245 2002-09-10  Ulrich Drepper  <drepper@redhat.com>
246
247         * sysdeps/powerpc/fpu/s_isnan.c: #undef __isnanf and isnanf after
248         reading the headers.
249
250 2002-09-12  Roland McGrath  <roland@redhat.com>
251
252         * elf/rtld.c (_dl_start_final): Move _begin, _end decls outside the fn.
253         (_dl_start) [DONT_USE_BOOTSTRAP_MAP]: Use &_begin instead of l_addr to
254         find the ELF header.
255
256         * elf/rtld.c (dl_main) [USE_TLS]: Adjust l_tls_initimage of main
257         executable if needed, in case it's actually a shared object.
258
259 2002-09-11  Roland McGrath  <roland@redhat.com>
260
261         * elf/dl-load.c (_dl_map_object_from_fd): Use l_addr instead of
262         l_map_start to adjust l_tls_initimage.
263
264         * nss/getnssent_r.c (__nss_getent_r): Use EAGAIN instead of errno
265         when using h_errno and it's not set to NETDB_INTERNAL.
266         * nss/getXXbyYY_r.c [NEED_H_ERRNO]: Likewise.
267
268         * Makefile ($(common-objpfx)testrun.sh): New target.
269         (others): Depend on it.
270         (postclean-generated): Append it.
271
272         * nss/bug-erange.c: New file.
273         * nss/Makefile (tests): Add it.
274
275         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Return errno
276         instead of always EAGAIN when status is NSS_STATUS_TRYAGAIN.
277
278         * sysdeps/generic/dl-environ.c (unsetenv): Redo last fix without
279         strncmp, keeps the code smaller for a non-performance-critical case.
280
281         * sysdeps/generic/dl-environ.c (unsetenv): Rewritten using strncmp,
282         no longer wrongly matches arbitrary prefixes of NAME.
283         Reported by Jakub Jelinek <jakub@redhat.com>.
284
285 2002-09-11  Jakub Jelinek  <jakub@redhat.com>
286
287         * posix/bug-regex11.c (tests): New array.
288         (main): Rewritten to run more different tests.
289
290 2002-09-10  Roland McGrath  <roland@redhat.com>
291
292         * nscd/Makefile (CPPFLAGS-nscd, CPPFLAGS-nscd_conf, CPPFLAGS-dbg_log)
293         (CPPFLAGS-connections, CPPFLAGS-hstcache): Variables removed.
294         Instead, catch all of $(nscd-modules) via cppflags-iterator.mk.
295
296         * sysdeps/powerpc/fpu/s_isnan.c: Do macro hackery on __GI___isnanf as
297         well so we don't get it declared by include/math.h's hidden_proto.
298         Then do hidden_proto for __isnanf locally so hidden_def works right.
299
300         * posix/bug-regex5.c (main): Use `union locale_data_value' rather than
301         a cast to turn nl_langinfo return value into an integer.
302
303 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
304
305         * posix/regexec.c (build_trtable): Fix the destination of
306         newline to prevent wrong states from overwriting.
307         Append break statements to optimization.
308
309 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
310
311         * posix/regcomp.c: Wrap #include wchar.h and wctype.h in #if.
312         (build_range_exp): Add castings to strlen invocations.
313         (build_collating_symbol): Restore the type of characters from "char"
314         to "unsigned char", and supplement castings.
315         (build_collating_symbol): Likewise.
316         (build_equiv_class): Likewise.
317         (build_charclass): Likewise.
318         (seek_collating_symbol_entry): Likewise.
319         (parse_bracket_exp): Likewise.
320         (build_word_op): Supplement a casting.
321         * posix/regex_internal.c: Wrap #include wchar.h and wctype.h in #if.
322         (re_string_allocate): Fix castings.
323         (re_string_construct): Likewise.
324         (re_string_construct_common): Likewise.
325         (re_string_realloc_buffers): Likewise.
326         (build_wcs_buffer): Likewise.
327         (build_wcs_upper_buffer): Likewise.
328         (re_string_skip_chars): Likewise.
329         (re_string_reconstruct): Likewise.
330         * posix/regex_internal.h: Restore the type of characters in
331         re_string_t and bracket_elem_t from "char" to "unsigned char".
332         (re_string_elem_size_at): Fix castings.
333         * posix/regexec.c: Wrap #include wchar.h and wctype.h in #if.
334         (transit_state_bkref_loop): Restore the type of characters from
335         "char" to "unsigned char", and append a cast to "char*" pointer in
336         array subscript.
337         (check_node_accept_bytes): Likewise.
338         (find_collation_sequence_value): Likewise.
339
340 2002-09-10  Hartvig Ekner  <hartvige@mips.com>
341
342         * sysdeps/mips/memcpy.S: New file.
343         * sysdeps/mips/memset.S: New file.
344         * sysdeps/mips/fpu/e_sqrt.c:  New file.
345         * sysdeps/mips/fpu/e_sqrtf.c: New file.
346
347         * fpu/fclrexcpt.c: Cleaned up the FPU exception stuff - was not
348         functional before. Also removed all SHLIB_COMPAT stuff.
349         * fpu/fegetenv.c: Likewise.
350         * fpu/fesetenv.c:: Likewise.
351         * fpu/feupdateenv.c: Likewise.
352         * fpu/fgetexcptflg.c: Likewise.
353         * fpu/fraiseexcpt.c: Likewise.
354
355         * sysdeps/mips/fpu/fsetexcptflg.c: New file.
356
357 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
358
359         * include/math.h (__finite_internal, __finitef_internal,
360         __finitel_internal, __isinf_internal, __isnan_internal): Remove.
361         (isfinite): Remove.
362         (__finite, __isinf, __isnan, __finitef, __isinff, __isnanf, __finitel,
363         __isinfl, __isnanl): Add hidden_proto.
364         (__fpclassify, __fpclassifyf, __fpclassifyl, __expm1l): Add
365         libm_hidden_proto.
366         * math/Makefile (libm-calls): Add s_isinf and s_isnan.
367         * stdio-common/printf_fp.c (__printf_fp): Remove INTUSE from
368         __is{inf,nan} calls.
369         * stdio-common/printf_size.c (printf_size): Likewise.
370         * sysdeps/generic/printf_fphex.c (__printf_fphex): Likewise.
371         * sysdeps/generic/s_ldexp.c (__ldexp): Likewise.
372         * sysdeps/generic/s_ldexpf.c (__ldexpf): Likewise.
373         * sysdeps/generic/s_ldexpl.c (__ldexpl): Likewise.
374         * sysdeps/generic/s_expm1l.c (__expm1l): Add libm_hidden_def.
375         * sysdeps/i386/fpu/s_finite.S (__finite_internal): Remove alias.
376         (__finite): Add hidden_def.
377         * sysdeps/i386/fpu/s_finitef.S (__finitef_internal): Remove alias.
378         (__finitef): Add hidden_def.
379         * sysdeps/i386/fpu/s_finitel.S (__finitel_internal): Remove alias.
380         (__finitel): Add hidden_def.
381         * sysdeps/i386/fpu/s_isinfl.c (__isinfl): Remove INTDEF.  Add
382         hidden_def.
383         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
384         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Add
385         libm_hidden_def.
386         * sysdeps/i386/fpu/s_expm1l.S (__expm1l): Likewise.
387         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Remove INTDEF.  Add
388         hidden_def.
389         * sysdeps/ieee754/dbl-64/s_isinf.c (__isinf): Likewise.
390         (__isinfl): Remove INTDEF.
391         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Remove INTDEF.  Add
392         hidden_def.
393         (__isnanl): Remove INTDEF.
394         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Add
395         libm_hidden_def.
396         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Use __sin and __cos
397         instead of sin and cos.
398         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Remove INTDEF.
399         Add hidden_def.
400         * sysdeps/ieee754/flt-32/s_isinff.c (__isinff): Likewise.
401         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
402         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Add
403         libm_hidden_def.
404         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Remove INTDEF.
405         Add hidden_def.
406         * sysdeps/ieee754/ldbl-128/s_isinfl.c (__isinfl): Likewise.
407         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
408         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl): Add
409         libm_hidden_def.
410         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add
411         libm_hidden_def.
412         * sysdeps/ieee754/ldbl-96/s_finitel.c (__finitel): Remove INTDEF.
413         Add hidden_def.
414         * sysdeps/ieee754/ldbl-96/s_isinfl.c (__isinfl): Likewise.
415         * sysdeps/ieee754/ldbl-96/s_isnanl.c (__isnanl): Likewise.
416         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c (__fpclassifyl): Add
417         libm_hidden_def.
418         * sysdeps/ia64/fpu/s_finite.S (__finite_internal, __finitef_internal,
419         __finitel_internal): Remove aliases.
420         (__finite, __finitef, __finitel): Add hidden_def.
421         * sysdeps/ia64/fpu/s_isnan.S (__isnan_internal, __isnanf_internal,
422         __isnanl_internal): Remove aliases.
423         (__isnan, __isnanf, __isnanl): Add hidden_def.
424         * sysdeps/ia64/fpu/s_isinf.S (__isinf_internal, __isinff_internal,
425         __isinfl_internal): Remove aliases.
426         (__isinf, __isinff, __isinfl): Add hidden_def.
427         * sysdeps/ia64/fpu/s_fpclassify.S (__fpclassify, __fpclassifyf,
428         __fpclassifyl): Add libm_hidden_def.
429         * sysdeps/ia64/fpu/s_expm1l.S (__expm1l): Likewise.
430         * sysdeps/m68k/s_isinfl.c (__isinfl): Remove INTDEF.  Add hidden_def.
431         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Remove.
432         (hidden_defx): Define and use.
433         * sysdeps/m68k/fpu/s_fpclassifyl.c (__fpclassifyl): Add
434         libm_hidden_def.
435         * sysdeps/m68k/fpu/s_expm1l.c (__expm1l): Likewise.
436         * sysdeps/m68k/s_isnanl.c (__isnanl): Add hidden_def.
437         * sysdeps/powerpc/fpu/s_isnan.c (__isnan, __isnanf, __isnanl):
438         Remove INTDEF.
439         (__isnan, __isnanf): Add hidden_def.
440         * sysdeps/x86_64/fpu/s_finitel.S (__finitel_internal): Remove alias.
441         (__finitel): Add libm_hidden_def.
442         * sysdeps/x86_64/fpu/s_expm1l.S (__expm1l): Likewise.
443
444         * include/fenv.h (feraiseexcept, fesetenv): Add libm_hidden_proto.
445         * sysdeps/alpha/fpu/fesetenv.c (fesetenv): Add libm_hidden_ver.
446         * sysdeps/alpha/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
447         * sysdeps/arm/fpu/fesetenv.c (fesetenv): Likewise.
448         * sysdeps/arm/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
449         * sysdeps/generic/fesetenv.c (fesetenv): Likewise.
450         * sysdeps/generic/fraiseexcpt.c (feraiseexcept): Likewise.
451         * sysdeps/i386/fpu/fesetenv.c (fesetenv): Likewise.
452         * sysdeps/i386/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
453         * sysdeps/m68k/fpu/fesetenv.c (fesetenv): Likewise.
454         * sysdeps/m68k/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
455         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Likewise.
456         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
457         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Likewise.
458         * sysdeps/powerpc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
459         * sysdeps/sparc/fpu/fesetenv.c (fesetenv): Likewise.
460         * sysdeps/sparc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
461         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Add libm_hidden_def.
462         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
463         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Likewise.
464         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
465         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
466         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
467         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
468         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
469         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Likewise.
470         * sysdeps/x86_64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
471
472 2002-09-09  Steven Munroe  <sjmunroe@us.ibm.com>
473
474         * elf/elf.h: Add powerpc64 specific elf relocation and dynamic types.
475
476 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
477
478         * elf/dl-error.c (_dl_signal_cerror): Don't print anything if only
479         LD_DEBUG=statistics or LD_TRACE_PRELINKING.
480
481 2002-09-09  Ulrich Drepper  <drepper@redhat.com>
482
483         * string/stratcliff.c: Some more strncpy tests.
484         Patch by Daniel Jacobowitz <drow@mvista.com>.
485
486 2002-09-08  Roland McGrath  <roland@redhat.com>
487
488         * resolv/resolv.h: Include <sys/types.h> for u_long even in
489         the [__need_res_state] case.
490         Reported by Bruno Haible <bruno@clisp.org>.
491
492 2002-09-04  Bruno Haible  <bruno@clisp.org>
493
494         * sysdeps/generic/bits/ustat.h: Comment fix.
495         * io/sys/sendfile.h: Comment fix.
496         * sysdeps/posix/pread.c: Comment fix.
497         * sysdeps/posix/pread64.c: Comment fix.
498         * sysdeps/posix/pwrite.c: Comment fix.
499         * sysdeps/posix/pwrite64.c: Comment fix.
500
501 2002-09-06  Roland McGrath  <roland@redhat.com>
502
503         * posix/sys/utsname.h (_UTSNAME_SYSNAME_LENGTH): New macro, defined
504         to _UTSNAME_LENGTH if not already defined by <bits/utsname.h>.
505         (_UTSNAME_RELEASE_LENGTH, _UTSNAME_VERSION_LENGTH): Likewise.
506         (_UTSNAME_MACHINE_LENGTH): Likewise.
507         (struct utsname): Use new macros instead of _UTSNAME_LENGTH.
508
509 2002-09-06  Ulrich Drepper  <drepper@redhat.com>
510
511         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Correct
512         test for filesystem type name of mount points.
513
514         * include/errno.h: Use errno definition with __thread for now only
515         in libc and ld.so.
516
517         * test-skeleton.c (main): Improve error message for unexpected
518         signal case.
519
520 2002-09-05  Roland McGrath  <roland@redhat.com>
521
522         * ctype/ctype-info.c: Renamed __ctype_old_* symbols to __ctype_*.
523         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
524
525 2002-09-05  Jakub Jelinek  <jakub@redhat.com>
526
527         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Unlock and return in
528         case of failure.
529
530 2002-09-04  Bruno Haible  <bruno@clisp.org>
531
532         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h (sigset_set_old_mask,
533         sigset_get_old_mask): Turn into inline functions.
534         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h (sigset_set_old_mask,
535         sigset_get_old_mask): Likewise.
536         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h (sigset_set_old_mask,
537         sigset_get_old_mask): Likewise.
538         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Declutter
539         syntax.
540
541         * elf/readlib.c (process_file): Conditionalize check for QMAGIC.
542
543         * sysdeps/generic/_strerror.c (_sys_errlist, _sys_nerr): Remove
544         default definitions.
545         (__strerror_r): Use _sys_errlist_internal instead of _sys_errlist,
546         _sys_nerr_internal instead of _sys_nerr.
547
548         * nscd/connections.c (handle_request): Declare CALLER inside #if.
549
550 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
551
552         * sysdeps/powerpc/__longjmp.S: Moved to...
553         * sysdeps/powerpc/powerpc32/__longjmp.S: ...here.
554         * sysdeps/powerpc/add_n.S: Moved to...
555         * sysdeps/powerpc/powerpc32/add_n.S: ...here.
556         * sysdeps/powerpc/addmul_1.S: Moved to...
557         * sysdeps/powerpc/powerpc32/addmul_1.S: ...here.
558         * sysdeps/powerpc/atomicity.h: Moved to...
559         * sysdeps/powerpc/powerpc32/atomicity.h: ...here.
560         * sysdeps/powerpc/backtrace.c: Moved to...
561         * sysdeps/powerpc/powerpc32/backtrace.c: ...here.
562         * sysdeps/powerpc/bp-asm.h: Moved to...
563         * sysdeps/powerpc/powerpc32/bp-asm.h: ...here.
564         * sysdeps/powerpc/bsd-_setjmp.S: Moved to...
565         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: ...here.
566         * sysdeps/powerpc/bsd-setjmp.S: Moved to...
567         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: ...here.
568         * sysdeps/powerpc/dl-machine.c: Moved to...
569         * sysdeps/powerpc/powerpc32/dl-machine.c: ...here.
570         * sysdeps/powerpc/dl-machine.h: Moved to...
571         * sysdeps/powerpc/powerpc32/dl-machine.h: ...here.
572         * sysdeps/powerpc/dl-start.S: Moved to...
573         * sysdeps/powerpc/powerpc32/dl-start.S: ...here.
574         * sysdeps/powerpc/gprrest0.S: Moved to...
575         * sysdeps/powerpc/powerpc32/gprrest0.S: ...here.
576         * sysdeps/powerpc/gprrest1.S: Moved to...
577         * sysdeps/powerpc/powerpc32/gprrest1.S: ...here.
578         * sysdeps/powerpc/gprsave0.S: Moved to...
579         * sysdeps/powerpc/powerpc32/gprsave0.S: ...here.
580         * sysdeps/powerpc/gprsave1.S: Moved to...
581         * sysdeps/powerpc/powerpc32/gprsave1.S: ...here.
582         * sysdeps/powerpc/lshift.S: Moved to...
583         * sysdeps/powerpc/powerpc32/lshift.S: ...here.
584         * sysdeps/powerpc/memset.S: Moved to...
585         * sysdeps/powerpc/powerpc32/memset.S: ...here.
586         * sysdeps/powerpc/mul_1.S: Moved to...
587         * sysdeps/powerpc/powerpc32/mul_1.S: ...here.
588         * sysdeps/powerpc/ppc-mcount.S: Moved to...
589         * sysdeps/powerpc/powerpc32/ppc-mcount.S: ...here.
590         * sysdeps/powerpc/register-dump.h: Moved to...
591         * sysdeps/powerpc/powerpc32/register-dump.h: ...here.
592         * sysdeps/powerpc/rshift.S: Moved to...
593         * sysdeps/powerpc/powerpc32/rshift.S: ...here.
594         * sysdeps/powerpc/setjmp.S: Moved to...
595         * sysdeps/powerpc/powerpc32/setjmp.S: ...here.
596         * sysdeps/powerpc/stpcpy.S: Moved to...
597         * sysdeps/powerpc/powerpc32/stpcpy.S: ...here.
598         * sysdeps/powerpc/strchr.S: Moved to...
599         * sysdeps/powerpc/powerpc32/strchr.S: ...here.
600         * sysdeps/powerpc/strcmp.S: Moved to...
601         * sysdeps/powerpc/powerpc32/strcmp.S: ...here.
602         * sysdeps/powerpc/strcpy.S: Moved to...
603         * sysdeps/powerpc/powerpc32/strcpy.S: ...here.
604         * sysdeps/powerpc/strlen.S: Moved to...
605         * sysdeps/powerpc/powerpc32/strlen.S: ...here.
606         * sysdeps/powerpc/sub_n.S: Moved to...
607         * sysdeps/powerpc/powerpc32/sub_n.S: ...here.
608         * sysdeps/powerpc/submul_1.S: Moved to...
609         * sysdeps/powerpc/powerpc32/submul_1.S: ...here.
610         * sysdeps/powerpc/elf/bzero.S: Moved to...
611         * sysdeps/powerpc/powerpc32/elf/bzero.S: ...here.
612         * sysdeps/powerpc/elf/start.S: Moved to...
613         * sysdeps/powerpc/powerpc32/elf/start.S: ...here.
614         * sysdeps/powerpc/fpu/__longjmp.S: Moved to...
615         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: ...here.
616         * sysdeps/powerpc/fpu/fprrest.S: Moved to...
617         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: ...here.
618         * sysdeps/powerpc/fpu/fprsave.S: Moved to...
619         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: ...here.
620         * sysdeps/powerpc/fpu/setjmp.S: Moved to...
621         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: ...here.
622         * sysdeps/powerpc/fpu/s_copysign.S: Moved to...
623         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: ...here.
624         * sysdeps/powerpc/fpu/s_copysignf.S: Moved to...
625         * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: ...here.
626         * sysdeps/unix/sysv/linux/powerpc/brk.S: Moved to...
627         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: ...here.
628         * sysdeps/unix/sysv/linux/powerpc/clone.S: Moved to...
629         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: ...here.
630         * sysdeps/unix/sysv/linux/powerpc/glob64.c: Moved to...
631         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
632         * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h: Moved to...
633         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: ...here.
634         * sysdeps/unix/sysv/linux/powerpc/socket.S: Moved to...
635         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: ...here.
636         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Moved to...
637         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: ...here.
638         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Moved to...
639         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: ...here.
640         Support PowerPC64.  Separate powerpc into powerpc/powerpc32 and
641         powerpc/powerpc64.
642
643 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
644
645         * FAQ.in: Add powerpc64 to supported targets list. Also state the
646         minimum gcc version is 3.2
647         * README: Add powerpc64 to supported targets list.
648         * configure.in: Change machine=powerpc to machine=powerpc/powerpc32.
649         Add powerpc64 and machine=powerpc/powerpc64.
650         (HAVE_ASM_GLOBAL_DOT_NAME): Define if linux*powerpc/powerpc64*.
651         * shlib-versions: Set DEFAULT version to 2.2.5 for powerpc64.
652         * sysdeps/powerpc/Dist: Remove dl-machine.c, dl-start.S, ppc-mcount.S,
653         gprsave1.S, gprsave0.S, gprrest1.S, and gprrest0.S.
654         * sysdeps/powerpc/powerpc32/Dist: New file.
655         * sysdeps/powerpc/Implies: Remove wordsize-32 and powerpc/soft-fp.
656         * sysdeps/powerpc/powerpc32/Implies: New file.
657         * sysdeps/powerpc/Makefile(cflags): Remove powerpc32 specific cflags.
658         ($(with-fp) = no): Move test to powerpc32/Makefile.
659         ($(subdir) = misc): Move to powerpc32/Makefile.
660         ($(build-shared) = yes): Move to powerpc32/Makefile.
661         ($(subdir) = csu): Move to powerpc32/Makefile.
662         (sysdep-rtld-routines): Remove dl-start.  Moved these bits to ...
663         * sysdeps/powerpc/powerpc32/Makefile: New file.
664         * sysdeps/powerpc/Versions: Remove libgcc functions.
665         * sysdeps/powerpc/powerpc32/Versions: New file.
666         * sysdeps/powerpc/fpu/Makefile: Remove fprsave and fprrest.
667         * sysdeps/powerpc/powerpc32/fpu/Makefile: New file.
668         * sysdeps/unix/sysv/linux/configure.in (powerpc*):
669         Set arch_minimum_kernel=2.4.19 for powerpc/powerpc64. Also set
670         libc_cv_gcc_unwind_find_fde=yes only if !powerpc/powerpc64.
671         ($machine): Add powerpc/powerpc64 to if ... | for
672         libc_cv_slibdir=/libc64.
673         (powerpc*): Set ldd_rewrite_script.
674         * sysdeps/unix/sysv/linux/powerpc/ldd-rewrite.sed: New file.
675         * sysdeps/unix/sysv/linux/powerpc/Dist: Remove clone.S.
676         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: New file.
677         Add clone.S.
678         * sysdeps/unix/sysv/linux/powerpc/Makefile: Remove oldgetrlimit64.
679         * sysdeps/unix/sysv/linux/powerpc/Versions: Remove GLIBC_2.0
680         functions.  Remove GLIBC_2.2 functions except getrlimit and
681         setrlimit.  Moved them to ...
682         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: New file.
683
684 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
685
686         * libio/tst-atime.c: Include <errno.h>.
687         (do_test): Only perform fstatvfs check if ST_NOATIME is defined.
688
689 2002-09-03  Isamu Hasegawa  <isamu@yamato.ibm.com>
690
691         * posix/regcomp.c (regcomp): Append "__restrict" modifier to avoid
692         warnings of some compilers.
693         (build_collating_symbol): Change the type of characters from
694         "unsigned char" to "char", and append a cast to "char*" pointer in
695         array subscript.
696         (build_collating_symbol): Likewise.
697         (build_equiv_class): Likewise.
698         (build_charclass): Likewise.
699         (re_compile_pattern): Remove incorrect cast.
700         (re_compile_fastmap_iter): Change the type of characters from
701         "unsigned char" to "char", and append a cast to "char*" pointer
702         in array subscript.
703         (parse_bracket_exp): Likewise.
704         * posix/regex_internal.c (re_string_construct_common): Likewise.
705         (re_string_allocate): Likewise.
706         (re_string_construct): Likewise.
707         (re_string_realloc_buffers): Likewise.
708         (build_wcs_buffer): Likewise.
709         (re_string_reconstruct): Likewise.
710         * posix/regex_internal.h: Change the type of characters in
711         re_string_t and bracket_elem_t from "unsigned char" to "char".
712         * posix/regexec.c (regexec): Append "__restrict" modifier to avoid
713         warnings of some compilers.
714         (transit_state_bkref_loop): Change the type of characters from
715         "unsigned char" to "char", and append a cast to "char*" pointer in
716         array subscript.
717         (check_node_accept_bytes): Likewise.
718         (find_collation_sequence_value): Likewise.
719
720 2002-09-04  Roland McGrath  <roland@redhat.com>
721
722         * resolv/nss_dns/dns-network.c (MAXPACKET): Increase minimum value
723         from 1024 to 65536, to avoid buffer overrun.
724
725 2002-09-03  Gerhard Tonn  <ton@de.ibm.com>
726
727         * sysdeps/s390/s390/fpu/libm-test-ulps: Regenerate.
728
729 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
730
731         * libio/tst-atime.c (do_test): Make sure noatime flag isn't set
732         for filesystem.
733
734 2002-09-04  Jakub Jelinek  <jakub@redhat.com>
735
736         * posix/bug-regex11.c: New test.
737         * posix/Makefile (tests): Add bug-regex11.
738
739 2002-09-03  Jakub Jelinek  <jakub@redhat.com>
740
741         * locale/tst-C_locale.c (run_test): Pass LC_ALL_MASK not LC_ALL to
742         newlocale.
743
744 2002-09-02  Roland McGrath  <roland@redhat.com>
745
746         * sysdeps/powerpc/elf/libc-start.c [! SHARED]: Call
747         __pthread_initialize_minimal and __libc_check_standard_fds to
748         match the generic version.
749
750         * sysdeps/unix/sysv/linux/shmat.c (shmat): Add a cast to avoid a
751         warning when INLINE_SYSCALL macro uses the __syscall_ipc function.
752
753         * locale/localeconv.c (__localeconv): Cast -1 to char to avoid
754         warnings on platorms where char is unsigned.
755
756 2002-09-02  Ulrich Drepper  <drepper@redhat.com>
757
758         * version.h (VERSION): Bump to 2.2.93.
759
760         * sysdeps/unix/sysv/linux/x86_64/Dist: Add __start_context.S.
761
762 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
763
764         * elf/rtld.c (dl_main): If prelinking succeeded, mark all objects
765         as relocated.
766
767 2002-09-02  Jack Howarth  <howarth@bromo.msbb.uc.edu>
768
769         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
770
771 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
772
773         * locale/localeinfo.h (struct locale_data): Add private.ctype.
774         * wcsmbs/wcsmbsload.h (__wcsmbs_gconv_fcts, __wcsmbs_last_locale,
775         __wcsmbs_to_wc, update_conversion_ptrs): Removed.
776         (__wcsmbs_gconv_fcts_c, _nl_C_LC_CTYPE): New externs.
777         (__wcsmbs_load_conv): Remove const from argument.
778         (_nl_cleanup_ctype): New proto.
779         (get_gconv_fcts): New function.
780         * wcsmbs/wcsmbsload.c (__wcsmbs_last_locale): Removed.
781         (__wcsmbs_to_wc): Rename back to...
782         (to_wc): ... this.
783         (__wcsmbs_gconv_fcts): Rename to...
784         (__wcsmbs_gconv_fcts_c): ... this.  Make const.  Use to_wc.
785         (lock): Removed.
786         (__libc_setlocale_lock): New extern.
787         (__wcsmbs_load_conv): Remove const from argument.
788         Initialize new_category->private.ctype instead of a global
789         variable.
790         (__wcsmbs_clone_conv): Use get_gconv_fcts instead of
791         update_function_ptrs.  No locking is necessary.
792         (_nl_cleanup_ctype): New function.
793         * wcsmbs/btowc.c (__btowc): Use get_gconv_fcts instead of
794         update_function_ptrs and a global __wcsmbs_gconv_fcts variable.
795         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
796         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
797         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
798         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
799         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
800         * wcsmbs/wctob.c (wctob): Likewise.
801         * stdlib/mblen.c (mblen): Likewise.
802         * stdlib/mbtowc.c (mbtowc): Likewise.
803         * stdlib/wctomb.c (wctomb): Likewise.
804         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
805         Remove calls to wcsmbs_get_towc_func and wcsmbs_free_funcs.
806         * wcsmbs/mbsrtowcs_l.c (wcsmbs_get_towc_func, wcsmbs_free_funcs):
807         Removed.
808
809 2002-09-02  Roland McGrath  <roland@frob.com>
810
811         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Add __fxstat64.
812
813 2002-09-01  Roland McGrath  <roland@redhat.com>
814
815         * ctype/ctype.h (__ctype_b, __ctype_toupper, __ctype_tolower):
816         Variable declarations removed.
817         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Declare
818         these functions to replace them.
819         (__isctype, tolower, toupper, _tolower, _toupper): Use those accessor
820         functions plus an indirection rather than the old global variables.
821         * include/ctype.h (__isctype, tolower, _tolower, toupper, _toupper):
822         Macros removed.
823         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): New extern
824         inline functions.
825         * ctype/ctype-info.c: Revert last reversion back the other way.
826         Define tsd vars CTYPE_B, CTYPE_TOLOWER, CTYPE_TOUPPER.
827         Define real function versions of include/ctype.h inlines here.
828         * ctype/Versions (libc: GLIBC_2.3): Add __ctype_b_loc,
829         __ctype_tolower_loc, __ctype_toupper_loc.
830         * locale/lc-ctype.c: Revert last reversion back the other way.
831         (_nl_postload_ctype): If current thread uses the global locale,
832         update its tsd vars.
833         * locale/uselocale.c (__uselocale): Update tsd vars from new locale.
834         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add CTYPE_B,
835         CTYPE_TOLOWER, CTYPE_TOUPPER.
836
837         * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_address): New macro.
838         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_address): Renamed
839         from __libc_tsd_threadvar_location.
840         (__libc_tsd_set, __libc_tsd_get): Update uses.
841
842 2002-09-01  Ulrich Drepper  <drepper@redhat.com>
843
844         * ctype/ctype.h: Undo the patch before the last one.  Put back the
845         macro definitions for the standard functions to access the
846         classification and mapping arrays.
847         * include/ctype.h: Partly revert last patch.  Move the macro
848         definitions for the exported functions back to the public header.
849         #undef all the macros defined here before redefining.
850         * ctype/ctype-info.c: Revert last patch.
851         * locale/lc-ctype.c: Revert last patch.
852
853         * ctype/Makefile (routines): Add isctype.
854         * ctype/Versions (libc): Export isctype and __isctype for GLIBC_2.3.
855         * ctype/ctype.h: Add declaration of isctype.
856         * include/ctype.h: Declare __isctype.
857         * ctype/isctype.c: New file.
858
859 2002-09-01  Roland McGrath  <roland@redhat.com>
860
861         * sysdeps/generic/libc-tls.c (__pthread_initialize_minimal): Pass
862         TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN instead of 0, 1.
863
864         * include/getopt.h: Include <features.h> before <posix/getopt.h>.
865
866         * locale/findlocale.c (_nl_remove_locale): Don't search in
867         _nl_locale_file_list if DATA->alloc is ld_archive.
868         Use _nl_unload_locale to do the rest of the work.
869
870         * locale/loadarchive.c (_nl_load_locale_from_archive): Set usage_count
871         of new structure to UNDELETABLE.
872
873         * wctype/wctype.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower,
874         iswgraph, iswprint, iswpunct, iswspace, iswupper, iswxdigit, iswblank,
875         towlower, towupper): Macros removed.
876         * ctype/ctype.h (__tobody): Put parens around macro argument.
877         (__isctype): Macro removed.
878         (__ctype_b, __ctype_tolower, __ctype_toupper): Decls removed.
879         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
880         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
881         tolower, toupper): Macros and inlines removed.
882         * include/ctype.h [! NOT_IN_libc]
883         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
884         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
885         tolower, toupper): Define here instead, using _NL_CURRENT.
886         * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Define as macros
887         using _NL_CURRENT.
888         * ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Likewise.
889         * ctype/ctype-info.c (__ctype_b, __ctype_tolower, __ctype_toupper):
890         Renamed these to __ctype_old_*. Define old names only for SHLIB_COMPAT.
891         (__ctype32_b, __ctype32_tolower, __ctype32_toupper): Likewise.
892         (__ctype32_wctrans, __ctype32_wctrans, __ctype32_width): Removed.
893         * locale/lc-ctype.c (_nl_postload_ctype): Use renamed variables,
894         conditional on SHLIB_COMPAT.  Don't set removed variables at all.
895         * wctype/wcfuncs.c: Use _NL_CURRENT instead of those globals.
896         * wcsmbs/wcwidth.h (internal_wcwidth): Likewise.
897         * resolv/res_init.c [RESOLVSORT] (sort_mask): Renamed sort_mask_chars.
898         (ISSORTMASK): Update use.
899         * intl/localealias.c [__GNUC__]: #undef alloca before #define.
900         * nss/nss_files/files-XXX.c (last_use): Rename `none' to `nouse'.
901         (_nss_files_getENTNAME_r): Likewise.
902         * nss/nss_files/files-alias.c (last_use, _nss_files_getaliasent_r):
903         Likewise.
904
905         * Makerules (all-nonlib): Renamed from all-tests.
906         Include $(others) here too.
907         * locale/Makefile (CPPFLAGS-locale, CPPFLAGS-localedef,
908         CPPFLAGS-ld-ctype, CPPFLAGS-ld-time, CPPFLAGS-ld-numeric,
909         CPPFLAGS-ld-monetary, CPPFLAGS-ld-collate, CPPFLAGS-ld-identification,
910         CPPFLAGS-charmap, CPPFLAGS-locarchive, CPPFLAGS-linereader,
911         CPPFLAGS-charmap-dir): Variables removed.  Instead, catch all
912         the program modules via cppflags-iterator.mk.
913         * sunrpc/Makefile (CPPFLAGS-rpc_main): Variable removed.
914         Instead, catch all rpcgen-objs via cppflags-iterator.mk.
915
916 2002-08-31  Roland McGrath  <roland@redhat.com>
917
918         * posix/tst-getconf.sh: If no third arg, work with static linking.
919
920         * locale/categories.def (LC_TIME): No more _nl_postload_time.
921
922         * locale/setlocale.c (_nl_category_postload): Use weak refs only under
923         [_NL_CURRENT_INDIRECT].
924
925 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
926
927         * time/tst-ftime_l.c (main): Also test strftime with uselocale.
928
929 2002-08-31  Roland McGrath  <roland@redhat.com>
930
931         * locale/newlocale.c (__newlocale): Don't use strdup for names.
932         Instead, make the single allocation of the structure larger to hold
933         the name strings.
934         * locale/duplocale.c (__duplocale): Don't strdup names individually.
935         Instead, calculate size for a single allocation and copy into it.
936         * locale/freelocale.c (__freelocale): Don't free names individually.
937
938         * locale/newlocale.c (__newlocale): Don't leak old data or names.
939
940         * locale/xlocale.h (__locale_struct): Move __names member last,
941         for binary compatibility.
942
943         * locale/duplocale.c (__duplocale): Free names from the right array.
944
945         * locale/uselocale.c (__uselocale): Return previous locale when
946         setting a new one.
947
948         * locale/newlocale.c: Commit changes from 2002-08-30
949         batch where I failed to commit this file:
950         (__newlocale): Fill in __names array.
951
952 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
953
954         * sysdeps/gnu/Makefile: Only depend on Versions.v.i for
955         errlist-compat.c if versioning==yes.
956
957 2002-08-31  Andreas Jaeger  <aj@suse.de>
958
959         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Declare
960         external functions with hidden attribute.
961         (elf_machine_rela): Optimize.
962
963         * sysdeps/x86_64/memset.S: New file.
964         * sysdeps/x86_64/bzero.S: New file.
965         * sysdeps/x86_64/stpcpy.S: New file.
966         * sysdeps/x86_64/strcat.S: New file.
967         * sysdeps/x86_64/strchr.S: New file.
968         * sysdeps/x86_64/strcpy.S: New file.
969         * sysdeps/x86_64/strcspn.S: New file.
970         * sysdeps/x86_64/strlen.S: New file.
971         * sysdeps/x86_64/strpbrk.S: New file.
972         * sysdeps/x86_64/strspn.S: New file.
973         * sysdeps/x86_64/strcmp.S: New file.
974         * sysdeps/x86_64/strtok_r.S: New file.
975         * sysdeps/x86_64/strtok.S: New file.
976         * sysdeps/x86_64/memcpy.S: New file.
977         * sysdeps/x86_64/mempcpy.S: New file.
978
979         * sysdeps/x86_64/fpu/s_copysign.S: Fix algorithm.
980
981         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for double tests.
982
983 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
984
985         * stdio-common/Makefile (generated): Add errlist-compat.c.
986
987         * locale/Makefile (extra-objs): Add $(localedef-aux:=.o).
988
989         * locale/localeinfo.h: Pretty printing.
990
991         * stdio-common/vfprintf.c (vfprintf): Remove duplicate ifs in
992         form_number handling.
993
994 2002-08-31  Andreas Jaeger  <aj@suse.de>
995
996         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for float and long
997         double tests.
998
999         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_routines): Add
1000         __start_context.
1001
1002         * sysdeps/unix/sysv/linux/x86_64/__start_context.S: New file.
1003
1004         * sysdeps/unix/sysv/linux/x86_64/makecontext.c: New file.
1005
1006         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: Add defines for
1007         registers used for passing args.
1008
1009         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Save and restore
1010         all needed registers.
1011
1012         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Restore all
1013         registers.
1014
1015         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Save all needed
1016         registers.
1017
1018 2002-08-30  Ulrich Drepper  <drepper@redhat.com>
1019
1020         * elf/dynamic-link.h (elf_get_dynamic_info): Mark with
1021         always_inline attribute.
1022
1023 2002-08-30  Roland McGrath  <roland@redhat.com>
1024
1025         * stdlib/tst-setcontext.c (main): If makecontext does nothing,
1026         presume it's the stub and bail without error.
1027
1028         * nss/getnssent_r.c (__nss_getent_r): Return ENOENT if status is
1029         neither SUCCESS nor TRYAGAIN (see 2002-08-25 change [PR libc/4259]).
1030
1031         * nss/getnssent_r.c (__nss_getent_r): Set *H_ERRNOP, not global one.
1032
1033         * sysdeps/x86_64/hp-timing.h (HP_TIMING_NOW, HP_TIMING_ACCUM): New
1034         macros replace the i686 versions for 64-bit mode.
1035
1036         * locale/duplocale.c: Include <string.h>.
1037
1038         * intl/dcigettext.c (DCIGETTEXT) [_LIBC]: Check for bogus CATEGORY.
1039         [_LIBC] (category_to_name): Don't define the function.  Instead
1040         define a macro using _nl_category_names.
1041
1042         * locale/xlocale.h (struct __locale_struct): New member `__names'.
1043         * locale/xlocale.c (_nl_C_locobj): Update initializer.
1044         * locale/global-locale.c (_nl_global_locale): Likewise.
1045         * locale/duplocale.c (__duplocale): strdup __names elements.
1046         * locale/freelocale.c (__freelocale): Free __names elements.
1047         * locale/localename.c (_nl_current_names): Variable removed.
1048         (__current_locale_name): Use _NL_CURRENT_LOCALE->__names instead.
1049         * locale/localeinfo.h (_nl_current_names): Removed decl.
1050         * locale/setlocale.c: Use _nl_global_locale->__names in place of
1051         _nl_current_names throughout.
1052
1053         * locale/setlocale.c (setlocale): strdup -> __strdup (not ISO C).
1054
1055         * sysdeps/gnu/errlist-compat.awk: Emit link_warnings for sys_errlist
1056         and sys_nerr in the output file.
1057
1058         * sunrpc/Makefile (rpcgen-cmd): Pass CPP in rpcgen's environment.
1059         * scripts/cpp: Just use the environment variable.
1060
1061         * libio/tst-mmap-setvbuf.c (main): Use 'm' fopen flag.
1062         * libio/tst-mmap-offend.c (do_test): Likewise.
1063         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
1064         * libio/tst-mmap-eofsync.c (do_test): Likewise.
1065         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
1066
1067         * locale/localename.c: If the current locale is the global locale, use
1068         _nl_current_names; otherwise use the locale object.
1069
1070 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
1071
1072         * libio/fileops.c (_IO_new_file_fopen): Recognize new mode specifier
1073         'm' to enable mmap I/O.
1074         * libio/libio.h (_IO_FILE): Rename _blksize field to _flags2.  The
1075         former wasn't used (anymore?).
1076         (_IO_FLAGS2_MMAP): New define.
1077         * libio/genops.c (_IO_no_init): Initialize _flags2 field.
1078         * libio/iofopen.c (__fopen_maybe_mmap): Use mmap callbacks only if
1079         _IO_FLAGS2_MMAP bit is set.
1080         * libio/iofdopen.c (_IO_new_fdopen): Recognize 'm' mode specifier.
1081         Enable mmap-using mode only if 'm' was set.
1082
1083 2002-08-29  Roland McGrath  <roland@frob.com>
1084
1085         * sysdeps/mach/hurd/bits/local_lim.h (NAME_MAX): New macro.
1086
1087         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup: doinit):
1088         Change argument type from int to intptr_t.
1089
1090         * locale/global-locale.c (__libc_tsd_LOCALE_data): Conditionalize the
1091         initializer on [! _HURD_THREADVAR_H] (bad kludge).
1092         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize
1093         _HURD_THREADVAR_LOCALE slot to &_nl_global_locale.
1094         * hurd/hurdsig.c (_hurdsig_init): Likewise.  Zero other slots.
1095
1096         * sysdeps/mach/_strerror.c (__strerror_r): Add libc_hidden_def.
1097
1098         * sysdeps/mach/hurd/pwrite64.c: No libc_hidden_def (__libc_pwrite64).
1099
1100         * sysdeps/mach/hurd/dl-sysdep.c (__GI_abort): Define alias for abort.
1101
1102         * include/assert.h (__assert_perror_fail): Declare it, do hidden_proto.
1103         * assert/assert-perr.c: Add libc_hidden_def.
1104         * elf/dl-minimal.c [! NDEBUG] (__assert_perror_fail): New function.
1105
1106         * sysdeps/gnu/errlist-compat.awk: Don't fail if there are no versions
1107         found at all.
1108         * sysdeps/gnu/Versions: File removed.  Moved all #errlist-compat
1109         sys_errlist stuff to ...
1110         * sysdeps/unix/sysv/linux/Versions: ... here.
1111
1112         * mach/mach.h: Include <features.h>.
1113
1114 2002-08-29  Roland McGrath  <roland@redhat.com>
1115
1116         * elf/dl-runtime.c (IN_DL_RUNTIME): Define this macro first thing.
1117         * sysdeps/i386/dl-machine.h: Only declare fixup, profile_fixup and
1118         define ELF_MACHINE_RUNTIME_TRAMPOLINE under #ifdef IN_DL_RUNTIME.
1119
1120         * sysdeps/generic/readelflib.c (process_elf_file): Fix typo.
1121
1122         * iconv/gconv_int.h: Include <stdlib.h> for alloca decl.
1123         (norm_add_slashes): alloca -> __alloca
1124
1125 2002-08-29  Jakub Jelinek  <jakub@redhat.com>
1126
1127         * stdio-common/vfprintf.c (vfprintf): Add builtin_expect for
1128         string_malloced, it is unlikely to be set.
1129         Only call free with non-NULL workspace.
1130         * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Use
1131         -mcpu=ultrasparc, not only tune for it.
1132         (ASFLAGS*): Set unconditionally.
1133
1134         * sysdeps/generic/readelflib.c (process_elf_file): Make LOADADDR
1135         ElfW(Addr).  Don't mask upper 32-bits and lower 12 bits off from
1136         p_vaddr/p_offset when computing LOADADDR.
1137
1138 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
1139
1140         * version.h (VERSION): Bump to 2.2.92.
1141
1142         * time/Makefile (tst-ftime_l-ENV): New variable.
1143
1144         * iconvdata/ibm870.c: All bytes are now used, no holes anymore.
1145
1146         * localedata/charmaps/IBM870: Add correct mapping for <U017E>,
1147         <U017A>, <U017D> and <U0179>. Add missing mappings.
1148         Patch by Antonin Kopecky <akopecky@tajmac-zps.cz>.
1149
1150         * gmon/sys/gmon.h (ARCDENSITY): Bump to 3.
1151         Define ARCINDEX.  Bump MAXARCS to 1 << 20.
1152         (struct tostruct): Use ACRINDEX as type for link field.
1153         (statuc gmonparam): Likewise for froms.
1154         * gmon/gmon.c (__monstartup): Use currect cast for assignments to
1155         kcount and froms.
1156         (write_call_graph): Use correct type for from_index and to_index.
1157         * gmon/mcount.c: Use correct types for frompcindex and toindex
1158         variables.
1159         Patches by Dan Kegel <dank@kegel.com>.
1160
1161         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix code to determine
1162         canonical name.
1163
1164         * time/strptime.c (ISSPACE): New #define.  Use isspace or
1165         __isspace_l.  Replace calls to isspace.
1166         (match_string): Define variant for USE_IN_EXTENDED_LOCALE_MODEL.
1167
1168 2002-08-29  Roland McGrath  <roland@redhat.com>
1169
1170         * string/tst-strxfrm.c: Remove __ from function names.
1171
1172 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1173
1174         * include/wchar.h: Declare __mbsrtowcs_l.
1175         * wcsmbs/Makefile (routines): Add mbsrtowcs_l.
1176         * wcsmbs/mbsrtowcs.c: Add support for compilation with
1177         USE_IN_EXTENDED_LOCALE_MODEL.
1178         * wcsmbs/mbsrtowcs_l: New file.
1179         * wcsmbs/wcsmbsload.c (__wcsmbs_to_wc): Renamed from to_wc.  Don't
1180         define as static.  Change all uses.
1181         (__wcsmbs_getfct): Renamed from getfct.  Don't define as static.
1182         Change all callers.
1183         * wcsmbs/wcsmbsload.h: Declare __wcsmbs_to_wc and __wcsmbs_getfct.
1184         * time/strftime.c: When translating for the extended locale model
1185         use the _l functions.
1186         * time/Makefile (tests): Add tst-ftime_l.
1187         * time/tst-ftime_l.c: New file.
1188
1189 2002-08-28  Roland McGrath  <roland@redhat.com>
1190
1191         * locale/findlocale.c [NL_CURRENT_INDIRECT] (_nl_C): New variable.
1192         * locale/setlocale.c (setlocale) [NL_CURRENT_INDIRECT]: Null return
1193         from _nl_find_locale ok if for _nl_C_name.
1194
1195         * locale/nl_langinfo.c [NL_CURRENT_INDIRECT]: Use a categories.def
1196         iterator to refer to each category's _nl_current_LC_FOO symbol, so
1197         we know they are all linked in.
1198
1199         * NEWS: Added 2.2.6 text from 2.2 branch version.
1200
1201         * time/strptime.c (strptime_internal): Remove spurious const.
1202
1203         * locale/lc-time.c (_nl_init_era_entries, _nl_get_era_entry,
1204         _nl_select_era_entry): Moved to ...
1205         * time/era.c: ... here, new file.
1206         (_nl_init_era_entries, _nl_get_era_entry, _nl_select_era_entry):
1207         Add internal_function to definitions.  Take an additional argument
1208         giving the `struct locale_data *' to use.
1209         * locale/lc-time.c (_get_alt_digit, _nl_get_walt_digit,
1210         _nl_parse_alt_digit): Moved to ...
1211         * time/alt_digit.c: ... here, new file.
1212         * time/lc-time-cleanup.c: New file.
1213         * locale/lc-time.c (_nl_postload_time, free_mem): Functions removed.
1214         * locale/localeinfo.h (_nl_postload_time): Remove decl.
1215         (_nl_cleanup_time): Declare it.
1216         (_nl_get_era_entry, _nl_select_era_entry): Update decls.
1217         (_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit): Likewise.
1218         * time/Makefile (aux): New variable: era, alt_digit, lc-time-cleanup.
1219         * time/strftime.c: Pass locale data to helper functions.
1220         * time/strptime.c: Likewise.
1221
1222         * locale/localeinfo.h (struct locale_data): New member `private'
1223         * locale/loadlocale.c (_nl_intern_locale_data): Initialize it.
1224         (_nl_unload_locale): Call LOCALE->private.cleanup if it is set.
1225         * locale/C-collate.c: Update initializer.
1226         * locale/C-identification.c: Likewise.
1227         * locale/C-measurement.c: Likewise.
1228         * locale/C-telephone.c: Likewise.
1229         * locale/C-address.c: Likewise.
1230         * locale/C-name.c: Likewise.
1231         * locale/C-paper.c: Likewise.
1232         * locale/C-time.c: Likewise.
1233         * locale/C-numeric.c: Likewise.
1234         * locale/C-monetary.c: Likewise.
1235         * locale/C-messages.c : Likewise.
1236         * locale/C-ctype.c: Likewise.
1237
1238         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL] (_NL_CURRENT_WORD):
1239         Redefine this too.
1240
1241 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1242
1243         * sysdeps/generic/ldsodefs.h (__rtld_global_attribute__): Define.
1244         (_rtld_global): Use it.
1245
1246         * sysdeps/gnu/Dist: Remove errlist-compat.c.
1247         * sysdeps/gnu/Makefile (errlist-compat.c): Build this file in the
1248         object directory.  Pass all Versions files to the awk script.
1249         * sysdeps/gnu/errlist-compat.c: Removed.
1250         * sysdeps/gnu/errlist.awk: Use #errlist-compat comments from the
1251         first Versions file in the search path which has them.
1252         Allow multiple errlist symbol versions to have the same count of
1253         errors.
1254         * sysdeps/gnu/errlist-compat.awk: Include <errlist-compat.c> instead
1255         of "errlist-compat.c".
1256         * sysdeps/gnu/errlist.c: Regenerated.
1257         * sysdeps/unix/sysv/linux/mips/Versions (libc): Add #errlist-compat
1258         comments at GLIBC_2.0, GLIBC_2.1 and GLIBC_2.3.
1259         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
1260         (librt): Add aio_cancel and aio_cancel64 as GLIBC_2.3.
1261         * sysdeps/unix/sysv/linux/hppa/Versions: Likewise.
1262         * sysdeps/unix/sysv/linux/sparc/Versions: New file.
1263         * sysdeps/unix/sysv/linux/alpha/bits/errno.h: New file.
1264         * sysdeps/unix/sysv/linux/hppa/bits/errno.h (ECANCELED): Define to
1265         ECANCELLED if not defined by kernel headers.
1266         * sysdeps/unix/sysv/linux/bits/errno.h: Don't redefine ECANCELED if
1267         already defined by kernel headers.
1268         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: New file.
1269         * sysdeps/pthread/aio_cancel.c: Don't include aio.h and its
1270         aio_cancel64 renaming hack nor provide weak_alias if aio_cancel
1271         is a macro.
1272         * Versions.def (GLIBC_2.3) [librt]: Add.
1273
1274         * sysdeps/unix/sysv/linux/alpha/pipe.S: New file.
1275
1276 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1277
1278         * include/libc-symbols.h [!__ASSEMBLER__] (declare_symbol_1): Add
1279         missing comma to .type directive.
1280
1281 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1282
1283         * sysdeps/ia64/elf/configure.in (PI_STATIC_AND_HIDDEN): Define
1284         unconditionally.
1285         * sysdeps/alpha/elf/configure.in (libc_cv_alpha_hidden_gprel): New
1286         check.
1287         (PI_STATIC_AND_HIDDEN): Define if check succeeded.
1288
1289 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1290
1291         * locale/loadarchive.c (_nl_load_locale_from_archive): Add fd >= 0
1292         check to close_and_out close.  Replace return NULL statements where
1293         fd might be >= 0 with goto close_and_out.  Close the file descriptor
1294         when it is no longer needed.
1295
1296 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1297
1298         * sysdeps/s390/s390-64/dl-machine.h: Avoid unescaped newlines in
1299         string constants.
1300         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1301         * sysdeps/arm/dl-machine.h: Likewise.
1302         * sysdeps/cris/dl-machine.h: Likewise.
1303         * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
1304         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
1305
1306 2002-08-28  Roland McGrath  <roland@redhat.com>
1307
1308         * Makeconfig (default_cflags): Revert unintended change.
1309
1310 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1311
1312         * version.h (VERSION): Bump to 2.2.91.
1313
1314         * configure.in: Disable TLS support by default for now.
1315
1316         * sysdeps/i386/fpu/libm-test-ulps: Adjust ulp for yn for float.
1317
1318         * sysdeps/generic/strtol.c (strtol): Add some more casts to avoid
1319         warnings.
1320
1321         * stdlib/strtod.c (STRTOF): Correct type in cast of last patch.
1322
1323         * stdlib/fmtmsg.c (fmtmsg): Use correct test for failure of
1324         fprintf/fwprintf calls.
1325
1326 2002-08-28  Roland McGrath  <roland@redhat.com>
1327
1328         * Makeconfig (run-program-prefix): Fix bogus use of $(findstring ...)
1329         to use $(filter ...) instead.  Same bug fixed in aix conditionals.
1330
1331         * locale/setlocale.c: Declare postload functions weak.
1332
1333         * elf/tst-tls1-static.c: New file.
1334         * elf/tst-tls2-static.c: New file.
1335         * elf/Makefile ($(tests-static):%=$(objfpx)%.o): Remove rule.
1336
1337         Make uselocale support static linking.
1338         * locale/xlocale.c: Revert changes putting _nl_global_locale here.
1339         This file again just defines _nl_C_locobj.
1340         (_nl_C_locobj): Use a categories.def iterator in the initializer.
1341         * locale/global-locale.c: New file.  Define _nl_global_locale here,
1342         using all weak references in the initializer.
1343         * locale/Makefile (aux): Add global-locale.
1344         * locale/localeinfo.h (_nl_global_locale, _NL_CURRENT_LOCALE): Make
1345         these unconditional, along with the tsd decl.
1346         [!SHARED && HAVE___THREAD && HAVE_WEAK_SYMBOLS] (NL_CURRENT_INDIRECT):
1347         Define it under these conditions.
1348         [NL_CURRENT_INDIRECT]: Test this instead of [! SHARED].
1349         Don't declare _nl_current.  Declare _nl_current_LC_FOO as
1350         `extern __thread struct locale_data *const *'.
1351         [NL_CURRENT_INDIRECT]
1352         (_NL_CURRENT_DATA, _NL_CURRENT, _NL_CURRENT_WSTR): Add indirection.
1353         [NL_CURRENT_INDIRECT] (_NL_CURRENT_DEFINE): Rewritten.  Define
1354         the thread variable _nl_current_LC_FOO and also a special absolute
1355         symbol _nl_current_LC_FOO_used.
1356         * locale/uselocale.c (__uselocale) [NL_CURRENT_INDIRECT]:
1357         Set each _nl_current_LC_FOO symbol to point into the new locale,
1358         using weak references to test if _nl_current_LC_FOO_used was linked in.
1359         * locale/setlocale.c [! SHARED]: Replace this conditional ...
1360         [NL_CURRENT_INDIRECT]: ... with this one.
1361         (_nl_current, _nl_C): Variables removed.
1362         [NL_CURRENT_INDIRECT] (_nl_current_used): New variable, table of
1363         weak references to _nl_current_LC_FOO_used.
1364         [NL_CURRENT_INDIRECT] (CATEGORY_USED): Define using that table.
1365         (free_category): New function, broken out of ...
1366         (free_mem): ... here.  Call that.
1367         (free_mem) [NL_CURRENT_INDIRECT]: Use a categories.def iterator
1368         instead of a loop.
1369
1370         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Don't check for
1371         PT_LOAD program headers and don't try to relocate PT_TLS's p_vaddr;
1372         it is already absolute.
1373
1374         * elf/Makefile (tests): List tst-tls1 and tst-tls2 unconditionally.
1375         [$(build-static) = yes] (tests): Add tst-tls1-static, tst-tls2-static.
1376         [$(build-static) = yes] (tests-static): New variable.
1377         ($(tests-static):%=$(objfpx)%.o)): New static pattern rule.
1378
1379 2002-08-26  Christoph Hellwig  <hch@lst.de>
1380
1381         * sysdeps/unix/sysv/linux/sys/personality.h: Remark origin, fix
1382         formating braindamage, add missing PER_HPUX and PER_OSF1 values.
1383
1384 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1385
1386         * sysdeps/x86_64/Dist: Add _mcount.S and bits/link.h.
1387
1388         * sysdeps/s390/Dist: Add bits/link.h.
1389
1390         * sysdeps/sh/Dist: New file.
1391
1392         * sysdeps/ia64/Dist: Add ia64libgcc.S.
1393
1394         * sysdeps/wordsize-32/Dist: New file.
1395
1396         * sysdeps/unix/sysv/linux/alpha/Dist: Add dl-brk.S.
1397         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
1398         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
1399
1400         * sysdeps/unix/sysv/linux/Dist: Add dl-brk.c, dl-sbrk.c, and
1401         sys/personality.h.
1402
1403         * sysdeps/unix/Dist: Add i386/dl-brk.S, mips/dl-brk.S, and
1404         sparc/dl-brk.S.
1405
1406         * sysdeps/unix/bsd/Dist: Add vax/dl-brk.S.
1407
1408         * sysdeps/unix/bsd/sun/Dist: New file.
1409
1410         * sysdeps/unix/bsd/osf/Dist: New file.
1411
1412         * sysdeps/unix/bsd/hp/Dist: New file.
1413
1414         * sysdeps/unix/arm/Dist: New file.
1415
1416         * sysdeps/powerpc/Dist: Add divdi3.c and libgcc-compat.S.
1417
1418         * sysdeps/mach/hurd/Dist: Add set-init.c.
1419
1420         * sysdeps/i386/Dist: Add bits/link.h.
1421
1422         * sysdeps/gnu/Dist: Add errlist-compat.c errlist-compat.awk.
1423
1424         * sysdeps/generic/Dist: Add dl-brk.c and dl-sbrk.c.
1425
1426         * locale/Makefile (distribute): Add hashval.h.
1427
1428         * iconvdata/Makefile (distribute): Add tcvn5712-1.c and armscii-8.c.
1429
1430         * sysdeps/unix/sysv/linux/Dist: Remove errlist.h.
1431
1432         * misc/sys/cdefs.h: Define __BEGIN_NAMESPACE_STD, __END_NAMESPACE_STD,
1433         __USING_NAMESPACE_STD, __BEGIN_NAMESPACE_C99, __END_NAMESPACE_C99, and
1434         __USING_NAMESPACE_C99 depending on _GLIBCPP_USE_NAMESPACES.
1435         * ctype/ctype.h: Prepare headers for use in ISO C++ compliant
1436         implementations.
1437         * libio/stdio.h: Likewise.
1438         * locale/locale.h: Likewise.
1439         * math/math.h: Likewise.
1440         * math/bits/mathcalls.h: Likewise.
1441         * setjmp/setjmp.h: Likewise.
1442         * signal/signal.h: Likewise.
1443         * stdlib/stdlib.h: Likewise.
1444         * string/string.h: Likewise.
1445         * time/time.h: Likewise.
1446         * wcsmbs/wchar.h: Likewise.
1447         * wctype/wctype.h: Likewise.
1448
1449 2002-08-28  Roland McGrath  <roland@redhat.com>
1450
1451         * locale/tst-C-locale.c (run_test): Remove __ from function names.
1452
1453 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1454             Roland McGrath <roland@redhat.com>
1455
1456         * locale/hashval.h (compute_hashval): Use prototype defn.
1457         (hashval_t): New macro, defined to unsigned long int
1458         if not already defined.
1459         (compute_hashval): Return hashval_t instead of unsigned long int.
1460         * locale/loadarchive.c (hashval_t): New macro.
1461         * locale/programs/locarchive.c: Include hashval.h directly instead
1462         of simple-hash.h.
1463         (compute_hashval, hashval_t): Define these macros first.
1464         (insert_name): Use archive_hashval instead of compute_hashval.
1465         (add_locale, delete_locales_from_archive): Likewise.
1466
1467 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1468
1469         * locale/programs/locarchive.c (insert_name): Suppress warnings about
1470         hash collisions if be_quiet.
1471
1472 2002-08-27  Roland McGrath  <roland@redhat.com>
1473
1474         * locale/locale.h (__newlocale, __duplocale, __freelocale,
1475         __uselocale): Don't declare these any more.
1476         * include/locale.h (__uselocale): Declare here instead, using __typeof.
1477
1478         * sysdeps/unix/readdir.c: If getdents fails with ENOENT, restore errno
1479         and treat it as an EOF return.
1480         * sysdeps/unix/readdir_r.c: Likewise.
1481
1482         * sysdeps/gnu/errlist-compat.awk: Include <bits/wordsize.h> in output.
1483         From Alexandre Oliva <aoliva@redhat.com>.
1484         * sysdeps/gnu/errlist-compat.c: Regenerated.
1485
1486 2002-08-27  Brian Youmans  <3diff@gnu.org>
1487
1488         * sysdeps/ieee754/flt-32/e_asinf.c: Modified copying permission
1489         wording at request of copyright holder Stephen Moshier.
1490         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
1491         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
1492         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
1493         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
1494         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
1495         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
1496         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
1497         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
1498         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
1499         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
1500         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
1501         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
1502         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
1503         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
1504
1505 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1506
1507         * ctype/ctype.h (isascii_l, toascii_l): Define to __*_l counterparts.
1508         * ctype/ctype-extn.c (isblank_l): Add weak alias.
1509         * sysdeps/generic/strtol_l.c (strtol_l): Likewise.
1510         * sysdeps/generic/strtoll_l.c (strtoll_l): Likewise.
1511         * sysdeps/generic/strtoul_l.c (strtoul_l): Likewise.
1512         * sysdeps/generic/strtoull_l.c (strtoull_l): Likewise.
1513         * wctype/iswctype_l.c (iswctype_l): Likewise.
1514
1515 2002-08-27  Roland McGrath  <roland@redhat.com>
1516
1517         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: No libc_hidden_def.
1518
1519         * ctype/ctype.h (__exctype_l): Don't declare __ name.
1520         * stdlib/stdlib.h: Don't declare __*_l names.
1521         * include/stdlib.h: Declare them here instead.
1522         * include/string.h: Don't declare __*_l names.
1523         * string/string.h: Declare them here instead.
1524         * time/time.h: Don't declare __*_l names.
1525         * include/time.h: Declare them here instead.
1526         * wcsmbs/wchar.h: Don't declare __*_l names.
1527         * include/wchar.h: Declare them here instead.
1528         * wctype/wctype.h: Declare iswalnum_l, not __iswalnum_l.
1529         Don't declare __*_l names.
1530         * include/wctype.h: Declare them here instead.
1531         * stdlib/monetary.h: Declare strfmon_l, not __strfmon_l.
1532         * stdlib/strfmon_l.c (strfmon_l): Define as weak alias.
1533         * locale/langinfo.h: Don't declare __nl_langinfo_l.
1534         * include/langinfo.h: Declare it here with __typeof.
1535
1536         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strptime_l
1537         instead, taking an extra __locale_t argument.
1538         * time/Makefile (routines): Add strptime_l.
1539         * time/time.h (__strptime_l, strptime_l): Declare them.
1540         * time/strptime_l.c: New file.
1541
1542         * time/time.h (__strftime_l, strftime_l): Declare them.
1543         * wcsmbs/wchar.h (__wcsftime_l, wcsftime_l): Declare them.
1544         * time/strftime_l.c: New file.
1545         * time/wcsftime_l.c: New file.
1546         * time/Makefile (routines): Add strftime_l, wcsftime_l.
1547         * time/Versions (libc: GLIBC_2.3): Add __strftime_l, __wcsftime_l,
1548         strftime_l, wcsftime_l.
1549         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strftime_l
1550         or __wcsftime_l instead, taking an extra __locale_t argument.
1551
1552         * locale/Versions (libc: GLIBC_PRIVATE): Move __uselocale to ...
1553         (libc: GLIBC_2.3): ... here.
1554
1555 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
1556
1557         * stdio-common/Makefile: Fix typo in stdio_lim.h installation rule.
1558
1559         * Makefile (distribute): Add LICENSES.
1560
1561         * sysdeps/unix/sysv/linux/x86_64/Dist: Add ucontext_i.h and
1562         sys/debugreg.h.
1563
1564         * sysdeps/unix/sysv/linux/s390/Dist: Add new/route.h.
1565
1566         * sysdeps/unix/sysv/linux/ia64/Dist: Add dl-brk.S and sys/user.h.
1567
1568         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/user.h.
1569
1570         * sysdeps/unix/sysv/linux/Dist: Add readahead.c.
1571
1572         * sysdeps/mach/hurd/alpha/Dist: New file.
1573
1574         * sysdeps/arm/Dist: Add bits/link.h.
1575
1576         * sunrpc/Makefile: Distribute thrsvc.
1577
1578         * stdio-common/Makefile: Remove more left-overs from old stdio.
1579
1580         * include/linewrap.h: Removed.
1581
1582         * libio/bug-mmap-fflush.c: Rewrite to not touch source directory.
1583
1584         * intl/Makefile (distribute): Add plural-eval.c.
1585
1586 2002-08-27  Roland McGrath  <roland@redhat.com>
1587
1588         * manual/sysinfo.texi (Mount Information): Correct file name to macro
1589         assocations for _PATH_MNTTAB, MNTTAB, _PATH_MOUNTED, MOUNTED.
1590         Say mtab is in either /var/run or /etc.
1591
1592 2002-08-26  Roland McGrath  <roland@redhat.com>
1593
1594         * manual/errno.texi (Error Codes): Added ECANCELED (118 for Hurd).
1595         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
1596
1597         * sysdeps/gnu/Versions: New file.
1598         * sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.1): Remove
1599         _sys_errlist; sys_errlist; _sys_nerr; sys_nerr; from here.
1600         * sysdeps/gnu/Makefile ($(..)sysdeps/gnu/errlist-compat.c): New target.
1601         ($(objpfx)errlist.d): Depend on $(..)sysdeps/gnu/errlist-compat.c.
1602         * sysdeps/gnu/errlist.awk: Make output define _sys_errlist_internal
1603         and _sys_nerr_internal instead of anything else.  Make it include
1604         "errlist-compat.c" if [!NOT_IN_libc && !ERRLIST_NO_COMPAT].
1605         Make it emit some asm magic if [EMIT_ERR_MAX].
1606         * sysdeps/gnu/errlist.c: Regenerated.
1607         * sysdeps/gnu/errlist-compat.awk: New file.
1608         * sysdeps/gnu/errlist-compat.c: New file (generated).
1609         * sysdeps/mach/hurd/errlist.c (ERRLIST_NO_COMPAT): New macro.
1610         (_sys_errlist_internal): Define this as a macro for _hurd_errlist.
1611         (_sys_nerr_internal): Define this is a macro for _hurd_nerr.
1612         (SYS_ERRLIST, SYS_NERR): Macros removed.
1613         (sys_nerr, _sys_nerr): Remove these weak aliases.
1614         * sysdeps/unix/sysv/linux/errlist.c: File removed.
1615         * sysdeps/unix/sysv/linux/errlist.h: File removed.
1616         * sysdeps/unix/sysv/linux/arm/errlist.c: File removed.
1617
1618         * include/libc-symbols.h (declare_symbol): New macro.
1619         * config.h.in (ASM_TYPE_DIRECTIVE_PREFIX): New #undef.
1620         * configure.in: New check to define it.
1621         * configure: Regenerated.
1622
1623 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
1624
1625         * stdio-common/Makefile (headers): Remove bits/stdio_lim.h.  This
1626         file isn't distributed.  Add special rules to install bits/stdio_lim.h.
1627
1628         * Make-dist: Remove traces of old stdio.
1629         * Makeconfig: Likewise.
1630
1631         * locale/Makefile (localedef-aux): New variable.  Only md5
1632         assigned to it.  These files are not ddistributed in this directory.
1633
1634         * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
1635         * sysdeps/unix/sysv/linux/s390/s390-64/Dist: Remove sys/procfs.h.
1636         * sysdeps/unix/sysv/linux/s390/s390-32/Dist: Likewise.
1637
1638         * sysdeps/unix/sysv/linux/Dist: Remove sys/sendfile.h.
1639
1640         * nss/getXXbyYY_r.c (REENTRANT_NAME): If no service is available
1641         set h_errno to NO_RECOVERY [PR libc/4360].
1642
1643 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
1644
1645         * libio/Makefile (tests): Add bug-fopena+.
1646         * libio/bug-fopena+.c: New file.
1647         * libio/fileops.c (_IO_file_open): Only set file pointer to end of the
1648         file for _IO_IS_APPENDING if file isn't opened for reading, too.
1649
1650         * stdio-common/tst-swprintf.c (main): Add casts to avoid warnings.
1651
1652         * locale/xlocale.c: Fix the last change.  The variable still has
1653         to end in _data.
1654         * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
1655         (__libc_tsd_set): Add _data prefix to variable name.
1656
1657 2002-08-26  Roland McGrath  <roland@redhat.com>
1658
1659         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Replace
1660         macro with inline function.
1661         (sigset_get_old_mask): Likewise.
1662         * sysdeps/posix/sigblock.c (__sigblock): Update callers.
1663         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
1664         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1665         * sysdeps/posix/sigvec.c (__sigvec, sigvec_wrapper_handler): Likewise.
1666         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h
1667         (sigset_set_old_mask, sigset_get_old_mask): Make these macros return
1668         values.
1669         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h: Likewise.
1670         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h: Likewise.
1671
1672 2002-07-06  Bruno Haible  <bruno@clisp.org>
1673
1674         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask,
1675         sigset_get_old_mask): Make it work with larger sigset_t.
1676         * sysdeps/posix/sigblock.c (__sigblock): Use those macros.
1677         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
1678         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1679
1680 2002-08-26  Roland McGrath  <roland@redhat.com>
1681
1682         * time/sys/time.h [__USE_BSD] (lutimes, futimes): Declare them.
1683         * manual/filesys.texi (File Times): Document lutimes and futimes.
1684         * misc/Makefile (routines): Add them.
1685         * misc/Versions (libc: GLIBC_2.3): Likewise.
1686         * sysdeps/generic/lutimes.c: New file.
1687         * sysdeps/generic/futimes.c: New file.
1688         * sysdeps/mach/hurd/lutimes.c: New file.
1689         * sysdeps/mach/hurd/futimes.c: New file.
1690
1691         * manual/filesys.texi (File Times): Add explicit note about null
1692         pointer argument to utimes.
1693
1694 2002-08-26  Roland McGrath  <roland@frob.com>
1695
1696         * sysdeps/mach/hurd/ifreq.h (__if_freereq): Add missing semicolon.
1697         (__ifreq): Add a cast.  Remove an unused variable.
1698
1699         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
1700         _HURD_THREADVAR_LOCALE.
1701
1702 2002-08-26  Jakub Jelinek  <jakub@redhat.com>
1703
1704         * posix/regexec.c (re_search_stub): Return correct match length
1705         if start != 0.
1706         * posix/bug-regex10.c: New test.
1707         * posix/Makefile (tests): Add bug-regex10.
1708
1709 2002-08-26  Brian Youmans  <3diff@gnu.org>
1710
1711         * COPYING.LIB: Replaced with fresh copy from
1712         ftp://ftp.gnu.org/gnu/Licenses/COPYING.LIB-2.1;
1713         suggested copying permission notice now says version 2.1 instead
1714         of version 2.
1715
1716         * crypt/crypt.c: Changed copying permission notice to Lesser GPL
1717         from Library GPL.
1718         * crypt/crypt_util.c: Likewise.
1719         * crypt/ufc.c: Likewise.
1720         * elf/dl-conflict.c: Likewise.
1721         * elf/dl-iteratephdr.c: Likewise.
1722         * iconv/iconvconfig.h: Likewise.
1723         * malloc/arena.c: Likewise.
1724         * malloc/hooks.c: Likewise.
1725         * malloc/malloc.c: Likewise.
1726         * posix/glob/Makefile.ami: Likewise.
1727         * posix/glob/Makefile.in: Likewise.
1728         * stdlib/gmp-impl.h: Likewise.
1729         * stdlib/gmp.h: Likewise.
1730         * sysdeps/generic/dl-iteratephdr-static.c: Likewise.
1731         * sysdeps/generic/strnlen.c: Likewise.
1732         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
1733         * sysdeps/mach/hurd/recvmsg.c: Likewise.
1734         * sysdeps/mach/hurd/sendmsg.c: Likewise.
1735         * sysdeps/mach/hurd/spawni.c: Likewise.
1736         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
1737         * sysdeps/mach/powerpc/sysdep.h: Likewise.
1738         * sysdeps/mach/powerpc/thread_state.h: Likewise.
1739         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
1740         * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: Likewise.
1741         * sysdeps/x86_64/gmp-mparam.h: Likewise.
1742
1743         * sysdeps/ieee754/dbl-64/MathLib.h: Corrected version number in
1744         Lesser GPL copying permission notice from 2 to 2.1.
1745         * sysdeps/ieee754/dbl-64/asincos.tbl: Likewise.
1746         * sysdeps/ieee754/dbl-64/atnat.h: Likewise.
1747         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
1748         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
1749         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
1750         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
1751         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
1752         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
1753         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
1754         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
1755         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
1756         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
1757         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
1758         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
1759         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
1760         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
1761         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
1762         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
1763         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
1764         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
1765         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
1766         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
1767         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
1768         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
1769         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
1770         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
1771         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
1772         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
1773         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
1774         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
1775         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
1776         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
1777         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
1778         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
1779         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
1780         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
1781         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1782         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
1783         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
1784         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
1785         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
1786         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
1787         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
1788         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
1789         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
1790         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
1791         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
1792         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
1793         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
1794         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
1795         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
1796         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
1797         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
1798         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
1799         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
1800
1801         * sysdeps/ieee754/flt-32/e_asinf.c: Added copyright notice for Stephen
1802         Moshier and Lesser GPL copying permission notice, per license from
1803         Moshier.
1804         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
1805         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
1806         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
1807         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
1808         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
1809         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
1810         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
1811         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
1812         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
1813         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
1814         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
1815         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
1816         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
1817         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
1818
1819         * sysdeps/ieee754/ldbl-128/e_j0l.c: Added Lesser GPL copying permission
1820         notice, per license from copyright holder Stephen Moshier.
1821         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
1822         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
1823         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
1824         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
1825         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
1826         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
1827         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
1828         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
1829         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
1830
1831 2002-08-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1832
1833         * sysdeps/sh/Makefile (sysdeps_routines): Add divdi3 in csu dir.
1834         (shared-only-routines): Likewise.
1835
1836 2002-08-26  Roland McGrath  <roland@redhat.com>
1837
1838         * locale/programs/ld-ctype.c (ctype_read): When given a repertoire
1839         name of "", store a null pointer instead.
1840
1841         * configure.in (elf): Set to yes for freebsd*, netbsd*.
1842         * configure: Regenerated.
1843
1844         * locale/xlocale.c [! (USE_TLS && HAVE___THREAD)] (__libc_tsd_LOCALE):
1845         Initialize this instead of __libc_tsd_LOCALE_data.
1846
1847         * sysdeps/unix/grantpt.c (pts_name): Convert ENOTTY return from
1848         ptsname_r to EINVAL.
1849
1850         * sysdeps/generic/ptsname.c (__ptsname_r): Return ENOSYS instead of 0.
1851
1852         * rt/Makefile: Revert last change, it was inappropriate to presume aio
1853         implementations depend on pthreads.
1854         * rt/tst-aio.c (do_test): Exit happy if first failure is ENOSYS.
1855         * rt/tst-aio64.c (do_test): Likewise.
1856         * rt/tst-aio2.c (do_test): Likewise.
1857         * rt/tst-aio3.c (do_test): Likewise.
1858         * rt/tst-aio4.c (do_test): Likewise.
1859         * rt/tst-aio5.c (do_test): Likewise.
1860         * rt/tst-aio6.c (do_test): Likewise.
1861         * rt/tst-aio7.c (do_test): Likewise.
1862
1863         * sysdeps/generic/bits/libc-lock.h (__libc_setspecific): Use a cast to
1864         void so as to avoid compiler warnings.
1865
1866         * libio/oldstdfiles.c [! _IO_MTSAFE_IO] (DEF_STDFILE): Don't define
1867         _IO_wide_data_FD, which is never used here.
1868
1869         * libio/iofread.c
1870         [! _IO_MTSAFE_IO] (fread_unlocked): Add libc_hidden_ver defn.
1871         * libio/iofputs.c [! _IO_MTSAFE_IO] (fputs_unlocked): Likewise.
1872         * libio/iofgets.c [! _IO_MTSAFE_IO] (fgets_unlocked): Likewise.
1873
1874         * include/resolv.h [! _LIBC_REENTRANT] (_res): #undef it before decl.
1875         * include/netdb.h [! _LIBC_REENTRANT] (h_errno): Declare normal extern.
1876
1877         * misc/syslog.c (openlog): Conditionalize locking on [_LIBC_REENTRANT].
1878         (closelog): Likewise.
1879
1880 2002-07-06  Bruno Haible  <bruno@clisp.org>
1881
1882         * sysdeps/alpha/fpu/fpu_control.h: Comment fix.
1883
1884         * sysdeps/unix/sysv/linux/alpha/pipe.S: Moved to ...
1885         * sysdeps/unix/alpha/pipe.S: ... here.
1886         * sysdeps/unix/bsd/osf/alpha/pipe.S: File removed.
1887
1888         * sysdeps/unix/i386/brk.S: Rename local label to '.Lhere' in ELF.
1889
1890         * sysdeps/unix/i386/brk.S: Add PSEUDO_END invocation.
1891         * sysdeps/unix/i386/fork.S: Likewise.
1892         * sysdeps/unix/i386/pipe.S: Likewise.
1893         * sysdeps/unix/i386/wait.S: Likewise.
1894
1895         * sysdeps/unix/fork.S: Fix PSEUDO_END argument.
1896         * sysdeps/unix/arm/fork.S: Likewise.
1897
1898         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Swap DO_CALL
1899         arguments.
1900         (DO_CALL): Swap argument order.
1901         * sysdeps/unix/sysv/linux/hppa/sysdep.h (PSEUDO): Swap DO_CALL
1902         arguments.
1903         (DO_CALL): Swap argument order.
1904         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Swap DO_CALL
1905         arguments.
1906         (DO_CALL): Swap argument order.
1907         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO): Swap DO_CALL
1908         arguments.
1909         (DO_CALL): Swap argument order.
1910         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO): Swap DO_CALL
1911         arguments.
1912         (DO_CALL): Swap argument order.
1913         * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Swap DO_CALL
1914         arguments.
1915         (DO_CALL): Swap argument order.
1916         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Swap DO_CALL
1917         arguments.
1918         (DO_CALL): Swap argument order.
1919
1920         * sysdeps/i386/sysdep.h (PSEUDO): Fix syntax error.
1921         (L): Define right for ELF.
1922         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Remove definition.
1923         Now defined in sysdeps/i386/sysdep.h.
1924
1925         * sysdeps/posix/readv.c: Ansify function definition.
1926         * sysdeps/posix/writev.c: Likewise.
1927
1928         * stdio-common/tst-fseek.c (main): Don't assume that off_t and size_t
1929         have the same size. Avoid direct cast from size_t to off_t.
1930
1931         * login/tst-utmp.c (simulate_login): Don't leave garbage after the
1932         nul byte in entry[n].ut_user.
1933         (simulate_logout): Likewise.
1934
1935         * login/programs/utmpdump.c (print_entry): Test _HAVE_UT_TYPE,
1936         _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST, instead of assuming the
1937         existence of corresponding members of 'struct utmp'.
1938         * login/tst-utmp.c: Trivialize the test if testing 'struct utmp' and
1939         !_HAVE_UT_TYPE.
1940
1941         * sysdeps/unix/opendir.c (__opendir): If st_blksize is 0 or too small,
1942         allocate a buffer of at least BUFSIZ bytes, not just of
1943         sizeof (struct dirent).
1944
1945         * sysdeps/generic/glob.c: Include <limits.h>.
1946         (NAME_MAX): Define a fallback.
1947         (glob_in_dir): Allocate enough room for a 'struct dirent64' on the
1948         stack.
1949         * posix/tst-dir.c: Include <stddef.h>, for offsetof.
1950         (main): Allocate enough room for a 'struct dirent64' on the stack.
1951         * posix/tst-gnuglob.c (my_DIR): Allocate enough room for a
1952         'struct dirent'.
1953
1954         * sysdeps/unix/sysv/linux/init-first.c: Don't include
1955         kernel-features.h.
1956
1957         * inet/htontest.c: Include <sys/types.h>.
1958
1959         * sysdeps/generic/sys/sysinfo.h: Surround with __{BEGIN,END}_DECLS.
1960
1961         * include/sys/sysctl.h: Comment fix.
1962
1963         * elf/rtld.c (_rtld_global) [! _LIBC_REENTRANT]: Don't initialize
1964         _dl_load_lock.
1965         * libio/fileno.c (fileno_unlocked): Define regardless of _IO_MTSAFE_IO.
1966
1967         * sysdeps/unix/bsd/bsd4.4/syscalls.list (__sigaltstack): New alias.
1968
1969         * sysdeps/unix/inet/syscalls.list (__connect_internal): New alias.
1970         (__getpeername): New alias.
1971         (__getsockname): New alias.
1972         (__socket): New alias.
1973
1974         * sysdeps/unix/common/syscalls.list (getpgid): Remove.
1975
1976         * sysdeps/unix/syscalls.list (__chown_internal): New alias.
1977         (__fcntl_internal): New alias.
1978         (__profil): New alias.
1979
1980 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
1981
1982         * nscd/hstcache.c (cache_addhst): Add new parameter saying whether
1983         entry was for getaddr* lookup or not.  Add only matching cache
1984         entry.  Change all callers [PR libc/4317].
1985
1986         * libio/wfileops.c (_IO_wfile_seekoff): Set fp->_offset after
1987         finding the read position [PR libc/4265].
1988         * libio/Makefile (tests): Add bug-rewind2.
1989         * libio/bug-rewind2.c: New file.
1990
1991         * libio/bug-rewind.c: Fix creation of temp file.
1992
1993 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
1994
1995         * nss/getXXbyYY_r.c (REENTRANT_NAME): Return ENOENT if status is
1996         neither SUCCESS nor TRYAGAIN [PR libc/4259].
1997         * nss/nss_files/files-XXX.c (internal_getent): Don't set *errnop
1998         to ENOENT if no entry is found.
1999         * nis/nss_compat/compat-grp.c: Don't set errno in case of lookup
2000         failure.
2001         * nis/nss_compat/compat-initgroups.c: Likewise.
2002         * nis/nss_compat/compat-pwd.c: Likewise.
2003         * nis/nss_compat/compat-spwd.c: Likewise.
2004         * nis/nss_nis/nis-alias.c: Likewise.
2005         * nis/nss_nis/nis-ethers.c: Likewise.
2006         * nis/nss_nis/nis-grp.c: Likewise.
2007         * nis/nss_nis/nis-hosts.c: Likewise.
2008         * nis/nss_nis/nis-initgroups.c: Likewise.
2009         * nis/nss_nis/nis-netgrp.c: Likewise.
2010         * nis/nss_nis/nis-network.c: Likewise.
2011         * nis/nss_nis/nis-proto.c: Likewise.
2012         * nis/nss_nis/nis-publickey.c: Likewise.
2013         * nis/nss_nis/nis-pwd.c: Likewise.
2014         * nis/nss_nis/nis-rpc.c: Likewise.
2015         * nis/nss_nis/nis-service.c: Likewise.
2016         * nis/nss_nis/nis-spwd.c: Likewise.
2017         * resolv/nss_dns/dns-host.c: Likewise.
2018         * resolv/nss_dns/dns-network.c: Likewise.
2019         * nis/nss_nisplus/nisplus-alias.c: Save errno around NIS calls.
2020         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
2021         * nis/nss_nisplus/nisplus-grp.c: Likewise.
2022         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
2023         * nis/nss_nisplus/nisplus-network.c: Likewise.
2024         * nis/nss_nisplus/nisplus-proto.c: Likewise.
2025         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
2026         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
2027         * nis/nss_nisplus/nisplus-service.c: Likewise.
2028         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
2029         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Preserve errno value.
2030         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
2031         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Likewise.
2032         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
2033
2034         * sysdeps/unix/sysv/linux/i386/sigaction.c: Avoid warnings by
2035         declaring __restore and __restore_rt as hidden (if possible).
2036
2037 2002-08-25  Roland McGrath  <roland@redhat.com>
2038
2039         * manual/llio.texi (Access Modes): Fix typos in O_READ/O_WRITE defns.
2040
2041         * sysdeps/generic/utmp_file.c (LOCK_FILE): Check for error from fcntl.
2042         (getutent_r_file, internal_getut_r): Updated all callers.
2043         (getutline_r_file, pututline_file, updwtmp_file): Likewise.
2044
2045 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2046
2047         * locale/programs/locale.c: Don't print aliases for non-existing
2048         locales for 'locale -a'.
2049         Patch by Noah Levitt <nlevitt@columbia.edu> [PR libc/4166].
2050
2051 2002-07-19  H.J. Lu  <hjl@gnu.org>
2052
2053         * sysdeps/unix/sysv/linux/mips/bits/msq.h: New file.
2054
2055 2002-07-16  H.J. Lu  <hjl@gnu.org>
2056
2057         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2058         sys/personality.h.
2059         * sysdeps/unix/sysv/linux/sys/personality.h: New file.
2060
2061 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2062
2063         * elf/tst-tlsmod1.c (in_dso): Make sure the TLS variable access is
2064         not moved ahead of the fputs call.
2065         * elf/tst-tlsmod2.c (in_dso): Likewise.
2066         * elf/tst-tlsmod3.c (in_dso2): Likewise.
2067         * elf/tst-tlsmod4.c (in_dso): Likewise.
2068
2069 2002-08-25  Andreas Schwab  <schwab@suse.de>
2070
2071         * elf/dl-reloc.c (_dl_reloc_bad_type): Nul-terminate message.
2072
2073 2002-08-25  Roland McGrath  <roland@redhat.com>
2074
2075         * sysdeps/generic/utmp_file.c (UNLOCK_FILE): Clear alarm before
2076         resetting handler, to avoid the possibility of a spurious SIGALRM
2077         delivered to the user's handler.
2078         Reported by Amit D. Chaudhary <amitc@brocade.com>,
2079
2080         * misc/Makefile (CFLAGS-init-misc.c): Variable removed.  It served to
2081         set -fkeep-inline-functions, which is not needed for the current file.
2082
2083         * sysdeps/generic/ldsodefs.h: Add attribute_hidden to *_internal decls.
2084         (_dl_setup_hash): Add attribute_hidden.
2085         (_dl_sysdep_start, _dl_sysdep_start_cleanup): Likewise.
2086         (_dl_sysdep_read_whole_file, _dl_dprintf): Likewise.
2087         (_dl_new_object, _dl_map_object_deps): Likewise.
2088         (_dl_map_object_deps_internal): Remove decl.
2089         * elf/rtld.c (__mempcpy, _exit): Redeclare locally as hidden.
2090
2091         * sysdeps/i386/dl-machine.h [PI_STATIC_AND_HIDDEN
2092         && HAVE_VISIBILITY_ATTRIBUTE && HAVE_HIDDEN
2093         && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]
2094         (elf_machine_dynamic, elf_machine_load_address): Rewritten without asm,
2095         instead relying on the compiler to produce only GOTOFF variable refs.
2096
2097 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2098
2099         * elf/dl-load.c: Fix typo in comment.  Add a few more __builtin_expect.
2100
2101         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Define as static
2102         inline to avoid defining it in every file which includes this header.
2103
2104         * elf/rtld.c: Also test for HAVE_VISIBILITY_ATTRIBUTE before
2105         defining DONT_USE_BOOTSTRAP_MAP.
2106
2107         * libio/tst-freopen.c (main): Use correct formats for __LINE__.
2108         * libio/tst-mmap-setvbuf.c (main): Likewise.
2109         * libio/tst-widetext.c (main): Likewise.
2110
2111         * libio/tst-mmap-eofsync.c (do_test): Use correct format in error
2112         message.
2113         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
2114         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
2115
2116         * sysdeps/i386/elf/configure.in: Unconditionally define
2117         PI_STATIC_AND_HIDDEN.
2118         * elf/rtld.c (DONT_USE_BOOTSTRAP_MAP): Define only if
2119         PI_STATIC_AND_HIDDEN is defined as well.
2120         * config.h.in: Add PI_STATIC_AND_HIDDEN entry.
2121
2122 2002-08-24  Ulrich Drepper  <drepper@redhat.com>
2123
2124         * sysdeps/ia64/bzero.S: Define __bzero as well.
2125
2126         * locale/programs/charmap.c (charmap_new_char): Don't use
2127         ULONG_MAX as maximum UCS4 value.
2128
2129         * sysdeps/unix/sysv/linux/ia64/sys/user.h: New file.
2130
2131         * sysdeps/generic/strtol.c: We don't need the isascii test in glibc.
2132
2133         * malloc/hooks.c (public_sET_STATe): use size_t as type for i.
2134         * malloc/malloc.c (mALLINFo): Likewise.
2135
2136         * libio/wstrops.c (_IO_wstr_pbackfail): Use WEOF in comparison.
2137
2138         * libio/wfileops.c (_IO_wfile_overflow): Use EOF not WEOF when
2139         examining result of _IO_do_flush call.
2140
2141         * stdio-common/vfprintf.c (vfprintf): Use correct type in va_arg.
2142         Use prec not spec when sizing buffers.
2143
2144         * catgets/open_catalog.c (__open_catalog): Add casts to avoid warnings.
2145         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
2146         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
2147         * stdio-common/vfscanf.c (inchar): Likewise.
2148         * misc/efgcvt_r.c (fcvt_r): Likewise.
2149         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
2150         * elf/readlib.c (process_file): Likewise.
2151         * elf/sprof.c (load_profdata): Likewise.
2152         * sysdeps/ia64/hp-timing.h (HP_TIMING_PRINT): Likewise.
2153         * locale/programs/linereader.c (get_toplvl_escape): Likewise.
2154         * locale/programs/charmap.c (charmap_read): Likewise.
2155         * libio/fileops.c: Likewise.
2156         * libio/fmemopen.c: Likewise.
2157         * stdlib/strtod.c: Likewise.
2158         * elf/dl-load.c: Likewise.
2159         * iconv/iconvconfig.c: Likewise.
2160         * iconv/iconv_prog.c (process_block): Likewise.
2161         * elf/rtld.c (dl_main): Likewise.
2162
2163         * sysdeps/unix/sysv/linux/ia64/Makefile: Define _ASM_IA64_CURRENT_H
2164         macro to calm down the compiler.
2165
2166         * iconv/gconv_cache.c (__gconv_load_cache): Add cast to avoid warning.
2167
2168         * sysdeps/ia64/elf/initfini.c: Don't use newlines embedded in string.
2169
2170         * sysdeps/unix/sysv/linux/i386/sysdep.S: Update comment regarding
2171         placement of errno definition.
2172         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
2173         * sysdeps/unix/sysv/linux/mips/sysdep.S: Likewise.
2174         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
2175         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
2176         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
2177
2178         * resolv/nss_dns/dns-host.c (MAXPACKET): Increase minimum value
2179         from 1024 to 65536, to avoid buffer overrun.
2180
2181 2002-08-16  Paul Eggert  <eggert@twinsun.com>
2182
2183         * resolv/gethnamaddr.c (MAXPACKET): Increase minimum value
2184         from 1024 to 65536, to avoid buffer overrun.
2185         * resolv/res_query.c (MAXPACKET): Likewise.
2186
2187 2002-08-24  Andreas Jaeger  <aj@suse.de>
2188
2189         * sysdeps/unix/sysv/linux/i386/Versions: Remove *xattr syscalls.
2190
2191 2002-08-23  Ulrich Drepper  <drepper@redhat.com>
2192
2193         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Define and initialize
2194         two52 locally.
2195         (log2): Likewise.
2196         * sysdeps/ieee754/dbl-64/upow.h: Remove definition of two52.
2197         Patch by Simon Gee <simong@agile.tv>.
2198
2199         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf):
2200         Prefer reading /proc/stat since it is more uniform across
2201         architectures.
2202
2203         * manual/texinfo.tex: Update to latest official version.
2204
2205         * sysvipc/sys/shm.h: Remove SHMLBA definition.
2206         * sysdeps/generic/bits/shm.h: Define SHMLBA here.
2207         * sysdeps/gnu/bits/shm.h: Likewise.
2208         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2209         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2210         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
2211         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2212         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2213         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2214         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2215         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Define SHMLBA to 2^20
2216         since this is what the kernel says.
2217
2218         * misc/sys/xattr.h: Include <sys/types.h> instead of <stddef.h>
2219         since ssize_t is needed as well.  Replace const with __const.
2220
2221 2002-08-23  Roland McGrath  <roland@redhat.com>
2222
2223         * malloc/hooks.c (__malloc_initialize_hook, __free_hook,
2224         __malloc_hook, __realloc_hook, __memalign_hook,
2225         __after_morecore_hook): Variable definitions moved to ...
2226         * malloc/malloc.c: ... here, so as to be before all references.
2227
2228         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Add a dummy
2229         global variable reference in an unused asm parameter, to ensure the
2230         compiler has set up the GOT register before we use it.
2231
2232         * malloc/hooks.c: Move variable definitions ahead of uses.
2233         * libio/fileops.c: Move versioned_symbol defns ahead of _IO_jump_t
2234         initializers that make reference to variables they define.
2235
2236 2002-08-23  Andreas Jaeger  <aj@suse.de>
2237
2238         * locale/loadarchive.c: Include <stdlib.h> for prototypes of
2239         alloca, free, qsort.
2240
2241         * dlfcn/bug-dlsym1-lib1.c (foo): Add prototype to avoid warning.
2242
2243         * sysdeps/ieee754/flt-32/e_jnf.c: Remove unused variable.
2244         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2245
2246         * misc/sys/xattr.h: New file, contributed by Christoph Hellwig
2247         <hch@lst.de>.
2248         * sysdeps/generic/fgetxattr.c: New file.
2249         * sysdeps/generic/flistxattr.c: New file.
2250         * sysdeps/generic/fremovexattr.c: New file.
2251         * sysdeps/generic/fsetxattr.c: New file.
2252         * sysdeps/generic/getxattr.c: New file.
2253         * sysdeps/generic/listxattr.c: New file.
2254         * sysdeps/generic/lgetxattr.c: New file.
2255         * sysdeps/generic/llistxattr.c: New file.
2256         * sysdeps/generic/lremovexattr.c: New file.
2257         * sysdeps/generic/lsetxattr.c: New file.
2258         * sysdeps/generic/removexattr.c: New file.
2259         * sysdeps/generic/setxattr.c: New file.
2260         * misc/Makefile (headers): Add sys/xattr.h.
2261         (routines): Add *xattr calls.
2262         * misc/Versions: Add *xattr calls with version 2.3.
2263         * sysdeps/unix/sysv/linux/m68k/Versions: Remove *xattr syscalls.
2264         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2265         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2266         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2267         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2268         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2269         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2270         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2271
2272 2002-08-22  Steven Munroe  <sjmunroe@us.ibm.com>
2273
2274         * sysdeps/powerpc/elf/libc-start.c
2275         (__cache_line_size): Declare.
2276         (__aux_init_cache): New function.
2277         (__libc_start_main): Change type of `auxvec' parameter to
2278         `ElfW(auxv_t) *'.  Correct walking of aux vector.  Call
2279         __aux_init_cache.
2280         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
2281         (__cache_line_size): Declare.
2282         (__aux_init_cache): New function.
2283         (DL_PLATFORM_INIT): Define.
2284         * sysdeps/powerpc/memset.S: Define __cache_line_size and use its
2285         value to select the correct stride for dcbz.
2286
2287 2002-08-22  Andreas Jaeger  <aj@suse.de>
2288
2289         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments of
2290         shmat.
2291
2292 2002-08-22  Roland McGrath  <roland@redhat.com>
2293
2294         * locale/loadarchive.c (_nl_load_locale_from_archive): Check max file
2295         position indicated by locrectab against file bounds before rounding to
2296         page size.  In mapping loop, always set TO before breaking out of
2297         contiguous range coalescing loop.
2298
2299         * locale/loadarchive.c (_nl_load_locale_from_archive): Use MAP_PRIVATE
2300         (or MAP_COPY if available) instead of MAP_SHARED.
2301
2302         * scripts/firstversions.awk: When encountering a version newer than
2303         the specified earliest version, be sure to emit the specified earliest
2304         version first if any renaming of an older version to that has been.
2305
2306 2002-08-21  Roland McGrath  <roland@redhat.com>
2307
2308         * configure.in: Make GCC version check require 3.[2-9]* and no others.
2309         * manual/install.texi (Tools for Compilation): Say 3.2 is required.
2310         (Configuring and compiling): Don't mention older GCC versions any more.
2311         * INSTALL: Regenerated.
2312
2313         * manual/install.texi (Configuring and compiling, Installation,
2314         Running make install, Linux): Linux -> GNU/Linux where appropriate.
2315
2316         * elf/rtld.c (_dl_start_final): Move defn before _dl_start so it can
2317         be inlined.  Declare it with always_inline if [DONT_USE_BOOTSTRAP_MAP]
2318         and with noinline otherwise.  Remove hack alloca use to prevent
2319         inlining, we can ask for it explicitly nowadays.
2320
2321         * dlfcn/bug-dlsym1.c: New file.
2322         * dlfcn/bug-dlsym1-lib1.c, dlfcn/bug-dlsym1-lib2.c: New files.
2323         * dlfcn/Makefile (distribute): Add them.
2324         (tests): Add bug-dlsym1 here.
2325         (modules-names): Add bug-dlsym1-lib1 and bug-dlsym1-lib2 here.
2326         ($(objpfx)bug-dlsym1, $(objpfx)bug-dlsym1.out): New targets.
2327         ($(objpfx)bug-dlsym1-lib1.so, $(objpfx)bug-dlsym1-lib2.so): Likewise.
2328
2329 2002-08-21  Ulrich Drepper  <drepper@redhat.com>
2330
2331         * elf/rtld.c (start_time): New global variable.  Moved from _dl_start.
2332         (DONT_USE_BOOTSTRAP_MAP): Define if we can use non-exported symbols
2333         before relocation.
2334         (_dl_start): Don't use local bootstrap_map variable if
2335         DONT_USE_BOOTSTRAP_MAP is defined.  Use GL(dl_rtld_map).  Don't
2336         pass bootstrap_map to _dl_start_final in this case either.  Don't
2337         pass start_time to _dl_start_final ever.
2338         (_dl_start_final): Don't copy bootstrap_map if DONT_USE_BOOTSTRAP_MAP.
2339
2340         * elf/dl-deps.c (_dl_map_object_deps): Revert patch from 2002-05-28.
2341         This cripples the scope lists necessary to search for symbols in
2342         dependencies which are not in the global scope.
2343
2344         * include/setjmp.h (__libc_longjmp): Add declaration.
2345
2346 2002-08-21  Andreas Jaeger  <aj@suse.de>
2347
2348         * sysdeps/x86_64/_mcount.S: Fix assembler.
2349
2350         * sysdeps/unix/sysv/linux/x86_64/Makefile: Generate bits/syscall.h
2351         with biarch support.
2352
2353 2002-08-21  Andreas Jaeger  <aj@suse.de>
2354
2355         * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Fix it.
2356
2357         * sysdeps/x86_64/Makefile (sysdep_routines): Add _mcount.
2358
2359         * sysdeps/x86_64/machine-gmon.h: New file.
2360         * sysdeps/x86_64/_mcount.S: New file.
2361
2362 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
2363
2364         * elf/rtld.c (_dl_start): Pass zero to TLS_INIT_TP.  Set
2365         bootstrap_map.l_tls_tp_initialized to 1 if TLS_INIT_TP was called.
2366         (_dl_start_final): Copy l_tls_tp_initialized to GL(dl_rtld_map).
2367         (dl_main): If HAVE___THREAD is not defined pass l_tls_tp_initialized
2368         to TL_INIT_TP.  Otherwise pass 1.
2369         * include/link.h (struct link_map): Add l_tls_tp_initialized.
2370         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass 0 to TL_INIT_TP.
2371
2372 2002-08-15  Jakub Jelinek  <jakub@redhat.com>
2373
2374         * locale/programs/localedef.c (add_to_readlist): Error about
2375         circular dependencies only if the locale in question hasn't
2376         been finished.
2377         * locale/programs/linereader.c (get_string): Pass LC_CTYPE not
2378         CTYPE_LOCALE to load_locale.
2379         * locale/programs/locfile.c (locfile_read): Don't include
2380         unneeded but available locales in locale_mask.
2381
2382         * locale/programs/locarchive.c (enlarge_archive): If quiet, don't
2383         print any messages about enlarging archive.
2384
2385 2002-08-20  Brian Youmans  <3diff@gnu.org>
2386
2387         * manual/contrib.texi: Removed licenses, added acknowledgements
2388         for contributions by Intel, IBM, Craig Metz.
2389         * LICENSES: New file, contains the text of all non-FSF licenses in the
2390         distribution that require putting the notice in the accompanying
2391         documentation.
2392         * README.template, README: Mention LICENSES.
2393
2394         * sysdeps/mach/hurd/net/if_ppp.h: Replaced CMU license with a
2395         new one modelled on the modern BSD license, per recent letter
2396         of permission from CMU.
2397         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
2398
2399         * sysdeps/ieee754/dbl-64/MathLib.h: Changed the copyright holder
2400         from IBM to FSF, per the recent Software Letter.  Changed the
2401         distribution terms from GPL to LGPL.
2402
2403         * sysdeps/ieee754/dbl-64/asincos.tbl: Added FSF copyright and
2404         copying permission notice (Lesser GPL), per recent IBM Software Letter.
2405         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
2406         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
2407         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
2408         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
2409         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
2410         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
2411         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
2412         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
2413
2414         * sysdeps/ieee754/dbl-64/atnat.h: Changed the copyright holder
2415         from IBM to FSF, per the recent Software Letter.  Corrected the
2416         text of the copying permission notice to say Lesser GPL instead
2417         of GPL in warranty disclaimer paragraph.
2418         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
2419         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
2420         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
2421         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
2422         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
2423         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
2424         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
2425         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
2426         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
2427         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
2428         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
2429         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
2430         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
2431         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
2432         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
2433         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
2434         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
2435         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
2436         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
2437         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
2438         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
2439
2440         * sysdeps/ieee754/dbl-64/branred.c: Corrected the text of the copying
2441         permission notice to say Lesser GPL instead of GPL in warranty
2442         disclaimer paragraph.
2443         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2444         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2445         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2446         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2447         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2448         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2449         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2450         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2451         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2452         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2453         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2454         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2455         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2456         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2457         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2458         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2459         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2460         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2461         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2462         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2463         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2464         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2465         * sysdeps/ieee754/dbl-64/slowpow.c:  Likewise.
2466
2467 2002-08-20  Roland McGrath  <roland@redhat.com>
2468
2469         Fix ABI compatibility with libc compiled with old tools on powerpc.
2470         Changes contributed by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2471         and Jack Howarth <howarth@bromo.med.uc.edu>.
2472         * sysdeps/powerpc/Makefile [$(have-protected) = yes]
2473         (CPPFLAGS-divdi3.c, CPPFLAGS-libgcc-compat.S): New variables,
2474         pass -DHAVE_DOT_HIDDEN for these files.
2475         * sysdeps/powerpc/Versions (libc: GLIBC_2.0): Added __floatdidf,
2476         __floatdisf.
2477         * sysdeps/powerpc/divdi3.c: New file.
2478         * sysdeps/powerpc/libgcc-compat.S: New file, replacement for ...
2479         * sysdeps/powerpc/libgcc-compat.c: ... this, file removed.
2480
2481 2002-08-20  Jakub Jelinek  <jakub@redhat.com>
2482
2483         * locale/loadarchive.c (_nl_load_locale_from_archive): Handle
2484         partially overlapping mappings.  Remove unneeded (char *) casts.
2485         Never allow duplication of ranges in mapped areas.
2486
2487 2002-08-20  Roland McGrath  <roland@redhat.com>
2488
2489         * elf/Makefile ($(objpfx)ld.so): Separate commands in rule so errors
2490         can be detected by make.  Reported by H.J. Lu <hjl@gnu.org>.
2491
2492 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
2493
2494         * include/unistd.h: Don't hide _exit.
2495
2496         * elf/rtld.c (_dl_start): Pass extra argument 1 to TLS_INIT_TP.
2497         (dl_main): Pass extra argument 0 to TLS_INIT_TP.
2498         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass extra
2499         argument 1 to TLS_INIT_TP.
2500         * sysdeps/generic/tls.h (TLS_INIT_TP): Describe new parameter.
2501
2502         * sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit.
2503
2504         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_tls_static_info.
2505         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Move dtv
2506         memory allocation to...
2507         (allocate_dtv): ...here.  New function.
2508         (_dl_allocate_tls): Change to take parameter.  If parameter is non-NULL
2509         call allocate_dtv instead of _dl_allocate_tls_storage.
2510         (_dl_deallocate_tls): New parameter.  Deallocate TCB only if true.
2511         (_dl_get_tls_static_info): New function.
2512         * sysdeps/generic/ldsodefs.h: Adjust prototypes of _dl_allocate_tls
2513         and _dl_deallocate_tls.  Add prototype for _dl_get_tls_static_info.
2514
2515 2002-08-19  Ulrich Drepper  <drepper@redhat.com>
2516
2517         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return
2518         immediately if result == NULL.
2519
2520 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
2521
2522         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
2523
2524 2002-08-18  Roland McGrath  <roland@frob.com>
2525
2526         * sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split
2527         instead of __file_name_split.
2528         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
2529
2530         * sysdeps/mach/hurd/dl-sysdep.c
2531         [HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
2532         [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
2533
2534 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
2535
2536         * locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
2537         in change before last: MAX -> MIN.
2538
2539 2002-08-15  Roland McGrath  <roland@redhat.com>
2540
2541         * libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF
2542         if seek would go past it.
2543         (mmap_remap_check): If file position is at or past EOF after check,
2544         leave read pointers at EOF and don't seek.
2545
2546         * libio/tst-mmap-offend.c: New file.
2547         * libio/Makefile (tests): Add it.
2548
2549         * locale/loadarchive.c (_nl_load_locale_from_archive): Store strdup of
2550         the name as passed, rather than the name in the archive dictionary.
2551
2552 2002-08-15  Ulrich Drepper  <drepper@redhat.com>
2553
2554         * csu/Makefile: Define elide-routines.os not static-only-routines.
2555
2556         * include/sched.h (__clone): Add varargs at the end.
2557
2558         * elf/rtld.c (_dl_start): Allow TLS_INIT_TP to fail, and stop in that
2559         case.
2560         (TLS_INIT_HELPER): If defined, use it.
2561         * sysdeps/generic/libc-tls.c (TLS_INIT_HELPER): Likewise.
2562
2563 2002-08-15  Roland McGrath  <roland@redhat.com>
2564
2565         * elf/dl-load.c (lose): Remove [!SHARED] conditional from null check
2566         on L->l_prev; it can happen under rtld --verify too.
2567
2568         * locale/loadarchive.c (_nl_load_locale_from_archive): Don't read the
2569         header separately, just map an initial window of 2MB from the file
2570         and remap if that is not large enough to cover the whole header.
2571
2572 2002-08-15  Andreas Jaeger  <aj@suse.de>
2573
2574         * sysdeps/unix/sysv/linux/m68k/Versions: Add *xattr syscalls with
2575         version 2.3.
2576         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2577         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2578         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2579         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2580         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2581         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2582         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2583         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
2584         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
2585         Patch by Andreas Gruenbacher <agruen@suse.de>.
2586
2587         * sysdeps/unix/sysv/linux/syscalls.list: Add *xattr syscalls.
2588
2589 2002-08-14  Roland McGrath  <roland@redhat.com>
2590
2591         * locale/locarchive.h (struct locale_category_data): Give this name to
2592         the type of locale_data_t's elements.
2593         * locale/programs/locarchive.c (cmpcategorysize): New static function.
2594         (add_locale): Use that to sort the categories by size and put all
2595         those that fit into two pages into the LC_ALL block, instead of
2596         hard-coding it to do everything but LC_CTYPE and LC_COLLATE.
2597         (show_archive_content): Detect categories inside LC_ALL block
2598         directly, instead of hard-coding.
2599         (oldlocrecentcmp): Compare just on file locations used.
2600
2601 2002-08-14  Jakub Jelinek  <jakub@redhat.com>
2602
2603         * locale/programs/locarchive.c (struct oldlocrecent): New type.
2604         (oldlocrecentcmp): New function.
2605         (enlarge_archive): Re-add locales in the order they were added
2606         to the archive.
2607         (add_locale): Put all the small locale files together, if the small
2608         locale file block would occupy less pages if page size aligned, align
2609         it.
2610         (show_archive_content): Adjust for locale archives optimized for speed.
2611
2612 2002-08-14  Roland McGrath  <roland@frob.com>
2613
2614         * configure.in: Use "MISSING" as not-found value for MIG.
2615         * sysdeps/mach/configure.in: Fatal if mig not found.
2616         * configure, sysdeps/mach/configure: Regenerated.
2617
2618 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
2619
2620         * locale/loadarchive.c (archfname): Add missing slash.
2621
2622         * sysdeps/generic/strtold.c (__strtold_internal): Add libc_hidden_def.
2623         * wcsmbs/wcstold.c (__wcstold_internal): Add libc_hidden_def.
2624
2625 2002-08-12  Roland McGrath  <roland@redhat.com>
2626
2627         * include/sys/wait.h (__waitpid): Add libc_hidden_proto.
2628         * sysdeps/unix/sysv/sco3.2.4/waitpid.S: Add libc_hidden_def.
2629         * sysdeps/unix/sysv/sysv4/waitpid.c: Add libc_hidden_weak.
2630         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
2631         * sysdeps/unix/sysv/aix/waitpid.c: Likewise.
2632         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
2633         * sysdeps/generic/waitpid.c: Likewise.
2634
2635         * include/net/if.h: New file.  Use libc_hidden_proto
2636         for if_nametoindex and if_indextoname.
2637         * sysdeps/generic/if_index.c: Add libc_hidden_def.
2638         * sysdeps/mach/hurd/if_index.c: Likewise.
2639         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
2640
2641         * include/grp.h (setgroups): Add libc_hidden_proto.
2642         * sysdeps/generic/setgroups.c: Add libc_hidden_def.
2643         * sysdeps/mach/hurd/setgroups.c: Likewise.
2644         * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
2645         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
2646
2647 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
2648
2649         * include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
2650         * sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
2651         * sysdeps/generic/setegid.c (setegid): Likewise.
2652         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
2653         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
2654         * sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
2655         * sysdeps/unix/bsd/setegid.c (setegid): Likewise.
2656         * sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
2657         * sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
2658         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
2659         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
2660         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
2661         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
2662         * sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
2663         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
2664         Remove fallback if __ASSUME_SETRESUID_SYSCALL.
2665
2666         * include/sys/stat.h (__fxstat_internal, __fxstat64_internal,
2667         __lxstat_internal, __lxstat64_internal): Remove.
2668         (__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64):
2669         Add hidden_proto.
2670         * sysdeps/generic/fxstat.c (__fxstat): Add hidden_def.
2671         Remove INTDEF where present, remove #undef at the beginning.
2672         * sysdeps/generic/fxstat64.c (__fxstat64): Likewise.
2673         * sysdeps/generic/lxstat.c (__lxstat): Likewise.
2674         * sysdeps/generic/lxstat64.c (__lxstat64): Likewise.
2675         * sysdeps/generic/xstat.c (__xstat): Likewise.
2676         * sysdeps/generic/xstat64.c (__xstat64): Likewise.
2677         * sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise.
2678         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
2679         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
2680         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
2681         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
2682         * sysdeps/mach/hurd/xstat.c (__xstat): Likewise.
2683         * sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise.
2684         * sysdeps/unix/fxstat.c (__fxstat): Likewise.
2685         * sysdeps/unix/common/lxstat.c (__lxstat): Likewise.
2686         * sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise.
2687         * sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise.
2688         * sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise.
2689         * sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise.
2690         * sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise.
2691         * sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise.
2692         * sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise.
2693         * sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise.
2694         * sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise.
2695         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise.
2696         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise.
2697         * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise.
2698         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
2699         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
2700         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
2701         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
2702         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
2703         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
2704         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise.
2705         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
2706         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
2707         * sysdeps/unix/xstat.c (__xstat): Likewise.
2708
2709         * include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto.
2710         * sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def.
2711         * sysdeps/generic/fstatvfs.c (fstatvfs): Likewise.
2712         * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
2713         * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise.
2714         * sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise.
2715         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise.
2716
2717         * include/unistd.h (tcgetpgrp): Add libc_hidden_proto.
2718         * include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise.
2719         * sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def.
2720         * sysdeps/generic/tcsetattr.c (tcsetattr): Likewise.
2721         * sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise.
2722         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise.
2723         * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise.
2724         * sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed):
2725         Likewise.
2726         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
2727         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
2728         * sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise.
2729         * sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise.
2730         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
2731         * sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise.
2732         * sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise.
2733         * sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise.
2734
2735         * include/string.h (strcoll): Add libc_hidden_proto.
2736         * string/strcoll.c (strcoll): Add libc_hidden_def.
2737
2738         * misc/err.c (vwarn): Fix pasto in libc_hidden_def.
2739
2740 2002-08-11  Philip Blundell  <philb@gnu.org>
2741
2742         * sysdeps/arm/Makefile: New file.
2743
2744 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
2745
2746         * posix/regcomp.c (parse_reg_exp): If '|' is immediately followed
2747         by another '|', end of regex or enclosing ')', clear branch.
2748         * posix/bug-regex9.c: New test.
2749         * posix/Makefile (tests): Add bug-regex9.
2750
2751 2002-08-12  Roland McGrath  <roland@redhat.com>
2752
2753         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop
2754         start count condition, use TOTAL instead of variable that was never
2755         set.  Fix outer loop termination condition to TOTAL >= after update.
2756
2757         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize
2758         dl_tls_static_align and dl_tls_static_nelem.
2759
2760 2002-08-11  Roland McGrath  <roland@redhat.com>
2761
2762         * elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
2763         of the TLS macros, otherwise the compiler might not have initialized
2764         the PIC register yet when we use the PLT via asm.
2765         * elf/tst-tlsmod3.c (in_dso2): Likewise.
2766         * elf/tst-tlsmod2.c (in_dso): Likewise.
2767
2768         * sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!).
2769
2770         * sysdeps/i386/bits/byteswap.h (__bswap_16, __bswap_32, __bswap_64):
2771         Evaluate argument exactly once.  Remove __volatile__ from asm's.
2772
2773         * include/unistd.h: Use libc_hidden_proto for getdomainname
2774         and getlogin_r.
2775         * sysdeps/generic/getdomain.c: Add libc_hidden_def.
2776         * sysdeps/mach/hurd/getdomain.c: Likewise.
2777         * sysdeps/unix/getlogin_r.c: Likewise.
2778         * sysdeps/mach/hurd/getlogin_r.c: Likewise.
2779         * sysdeps/generic/getlogin_r.c: Likewise.
2780
2781         * include/rpc/auth_des.h: Use libc_hidden_proto for rtime.
2782         * sunrpc/rtime.c: Add libc_hidden_def.
2783
2784         * include/string.h: Use libc_hidden_proto for basename.
2785         * string/basename.c [_LIBC]: Add libc_hidden_def.
2786
2787         * sysdeps/unix/sysv/linux/opensock.c (__opensock): socket -> __socket.
2788
2789         * locale/loadarchive.c: munmap -> __munmap throughout.
2790
2791         * include/netdb.h: Use libc_hidden_proto for gai_strerror.
2792         * sysdeps/posix/gai_strerror.c: Add libc_hidden_def.
2793         * sysdeps/generic/gai_strerror.c: Likewise.
2794
2795         * include/sys/errno.h: New file.
2796
2797         * include/signal.h: No libc_hidden_proto for raise,
2798         __libc_current_sigrtmin, __libc_current_sigrtmax.
2799         These need to be overridden by linuxthreads.
2800         * sysdeps/posix/raise.c: Reverted.
2801         * sysdeps/generic/raise.c: Reverted.
2802         * signal/allocrtsig.c: Reverted.
2803
2804         * locale/loadarchive.c (LOCALEDIR): Remove debugging defn.  Oops.
2805
2806 2002-08-10  Roland McGrath  <roland@redhat.com>
2807
2808         * locale/loadarchive.c (_nl_archive_subfreeres): New function.
2809         * locale/localeinfo.h: Declare it.
2810         * locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the
2811         current locale if it's not in the file list.
2812         Call _nl_archive_subfreeres.
2813
2814 2002-08-10  Andreas Jaeger  <aj@suse.de>
2815
2816         * sysdeps/i386/strchr.S: Add comment.
2817
2818 2002-08-10  Roland McGrath  <roland@redhat.com>
2819
2820         * include/wchar.h (putwc): Use libc_hidden_proto.
2821         * include/stdio.h (dprintf, fprintf, vfprintf, sprintf,
2822         sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise.
2823         * stdio-common/dprintf.c: Add libc_hidden_def.
2824         * stdio-common/fprintf.c: Likewise.
2825         * stdio-common/sprintf.c: Likewise.
2826         * stdio-common/sscanf.c: Likewise.
2827         * libio/iofwrite.c: Likewise.
2828         * libio/memstream.c: Likewise.
2829         * libio/putwc.c: Likewise.
2830         * stdio-common/perror.c: Likewise.
2831         * sysdeps/posix/remove.c: Likewise.
2832         * sysdeps/generic/remove.c: Likewise.
2833         * libio/rewind.c: Likewise.  Use <stdio.h> instead of "stdio.h".
2834         * stdio-common/vfprintf.c: Add libc_hidden_def.  Include <stdio.h>.
2835
2836 2002-08-09  Jakub Jelinek  <jakub@redhat.com>
2837
2838         * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
2839         towlower, towupper): Add prototypes here too.  Add libc_hidden_proto.
2840         * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
2841         towlower, towupper): Add libc_hidden_weak.
2842
2843         * include/bits/dlfcn.h: New file.
2844         * elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def.
2845
2846         * include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
2847         * include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
2848         * include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
2849         * include/pwd.h (_nss_files_parse_pwent): Likewise.
2850         * include/shadow.h (_nss_files_parse_spent): Likewise.
2851         * include/netdb.h (_nss_files_parse_protoent,
2852         _nss_files_parse_servent, _nss_files_parse_netent): Likewise.
2853         * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
2854         (LINE_PARSER): Use it.
2855         * nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
2856         * nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.
2857
2858         * libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT
2859         #endif.
2860
2861         * manual/debug.texi (%MENU%): Remove trailing dot.
2862         Reported by <hayastan132@hotmail.com>.
2863
2864         * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek
2865         aliases.
2866         (lseek): Dummy.
2867         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek):
2868         Likewise.
2869
2870 2002-08-09  Roland McGrath  <roland@redhat.com>
2871
2872         * locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale
2873         name to find codeset name (if any) and normalize it.  If the
2874         normalized name differs, look up only that in the archive.
2875         * locale/programs/locarchive.c (add_locale_to_archive): If the name
2876         contains a codeset, normalize the codeset store only the normalized
2877         name in the archive.  If not, add an alias containing the locale's
2878         normalized codeset name.  Apply codeset name normalization when
2879         matching entries in the alias file.
2880
2881         * locale/programs/locarchive.c (delete_locales_from_archive): Don't
2882         decrement HEAD->namehash_used here.
2883         (add_locale): Only need to insert name string when name_offset != 0.
2884
2885         * locale/programs/localedef.c (options): Add -A/--alias-file.
2886         (alias_file): New variable.
2887         (parse_opt): Grok -A, set that.
2888         * locale/programs/localedef.h: Declare it.
2889
2890         * locale/locarchive.h (struct locrecent): Add `refs' member.
2891         * locale/programs/locarchive.c (insert_name): New function, broken out
2892         of ...
2893         (add_locale_to_archive): ... here.  Call that.
2894         (add_alias): New function.
2895         (add_locale): New static function, add_locale_to_archive renamed.
2896         (add_locale_to_archive): Call that and use add_alias to add an alias
2897         for the name with codeset if the given name lacks it.
2898         (enlarge_archive): Call add_locale instead of add_locale_to_archive.
2899
2900         * locale/Makefile (routines): Add loadarchive.
2901         * locale/loadarchive.c: New file, started from code by Ulrich Drepper.
2902         (_nl_load_locale_from_archive): New function.
2903         * locale/localeinfo.h: Declare it.
2904         * locale/findlocale.c (_nl_find_locale): If using default locale path,
2905         try _nl_load_locale_from_archive first.
2906
2907         * locale/loadlocale.c (_nl_intern_locale_data): New function,
2908         broken out of _nl_load_locale.
2909         (_nl_load_locale): Call that.
2910         * locale/localeinfo.h: Declare it.
2911         (struct locale_data): Replace member `mmaped' with `alloc', an enum.
2912         (struct locale_data): Remove unused member `options'.
2913         * locale/findlocale.c (_nl_remove_locale): Update uses.
2914         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
2915         * locale/C-collate.c: Update initializer.
2916         * locale/C-identification.c: Likewise.
2917         * locale/C-measurement.c: Likewise.
2918         * locale/C-telephone.c: Likewise.
2919         * locale/C-address.c: Likewise.
2920         * locale/C-name.c: Likewise.
2921         * locale/C-paper.c: Likewise.
2922         * locale/C-time.c: Likewise.
2923         * locale/C-numeric.c: Likewise.
2924         * locale/C-monetary.c: Likewise.
2925         * locale/C-messages.c : Likewise.
2926         * locale/C-ctype.c: Likewise.
2927
2928         * locale/hashval.h [! LONGBITS]: Include <limits.h> here and
2929         use CHAR_BIT instead of BITSPERBYTE.
2930
2931         * locale/localeinfo.h (_nl_find_locale, _nl_load_locale,
2932         _nl_unload_locale): Add `internal_function attribute_hidden' to decls.
2933         * locale/findlocale.c (_nl_find_locale): Add internal_function to defn.
2934         (_nl_remove_locale): Likewise.
2935         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
2936
2937         * locale/findlocale.c (_nl_default_locale_path): New variable.
2938         (_nl_find_locale): If LOCALE_PATH is null, default to that.
2939         * locale/localeinfo.h: Declare it.
2940         * locale/setlocale.c (setlocale): Use _nl_default_locale_path
2941         in place of LOCALEDIR.  If no LOCPATH, pass null to _nl_find_locale.
2942         * locale/newlocale.c (__newlocale): Likewise.
2943
2944         * misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses.
2945         * inet/rexec.c (rexec_af): Add libc_hidden_def.
2946         * sysdeps/generic/morecore.c: Likewise.
2947         * signal/allocrtsig.c (__libc_current_sigrtmin): Likewise.
2948         (__libc_current_sigrtmax): Likewise.
2949
2950 2002-08-08  Roland McGrath  <roland@redhat.com>
2951
2952         * locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
2953         * catgets/open_catalog.c (__open_catalog): Likewise.
2954
2955         * locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed
2956         from typo INITIAL_NUM_NANES.
2957         (create_archive): Update use.
2958
2959 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
2960
2961         * sysdeps/unix/sysv/linux/sigwait.c: New file.
2962
2963 2002-08-08  Roland McGrath  <roland@frob.com>
2964
2965         * resolv/netdb.h: Don't declare h_errno as a plain global any more.
2966
2967 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
2968
2969         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
2970         else and undefine after including wcstol_l.c.
2971         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.
2972
2973 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
2974
2975         * gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available.
2976
2977 2002-08-08  Alexandre Oliva  <aoliva@redhat.com>
2978
2979         * configure.in: Make the test for broken_alias_attribute stricter.
2980
2981 2002-05-24  Robert Love  <rml@tech9.net>
2982
2983         * posix/Makefile (routines): Add sched_getaffinity and
2984         sched_setaffinity.
2985         * posix/sched.h: Add declarations for sched_getaffinity and
2986         sched_setaffinity.
2987         * sysdeps/generic/sched_getaffinity.c: New file.
2988         * sysdeps/generic/sched_setaffinity.c: New file.
2989         * sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and
2990         sched_setaffinity.
2991
2992 2002-08-06  Andreas Schwab  <schwab@suse.de>
2993
2994         * sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes.
2995
2996 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
2997
2998         * elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error
2999         message.
3000
3001         * stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special.
3002         It is known to be defined.
3003
3004         * include/string.h: Define index and rindex only if _ISOMAC is not
3005         defined.
3006
3007         * elf/rtld.c: Include <errno.h>.
3008         * sysdeps/generic/libc-tls.c: Likewise.
3009
3010 2002-08-07  Roland McGrath  <roland@redhat.com>
3011
3012         * resolv/res_debug.c (latlon2ul): Add const to argument type, and use
3013         it internally.
3014         (precsize_aton): Likewise.
3015
3016         * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
3017         the static symbols added in the last change (doofus is me).
3018
3019         * locale/newlocale.c (__newlocale): Use a bit mask instead of a second
3020         loop to notice missing categories in a composite name.
3021
3022         * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
3023         LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
3024         LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
3025         LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.
3026
3027 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
3028
3029         * malloc/tst-calloc.c: Add tests for one or both parameters being zero.
3030
3031 2002-08-07  Roland McGrath  <roland@redhat.com>
3032
3033         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
3034         unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
3035         Reported by Jakub Jelinek  <jakub@redhat.com>.
3036
3037 2002-08-07  Jakub Jelinek  <jakub@redhat.com>
3038
3039         * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
3040         division.
3041
3042 2002-08-06  Roland McGrath  <roland@redhat.com>
3043
3044         * include/getopt.h: Put private decls inside [_GETOPT_H].
3045         Use libc_hidden_proto for getopt_long, getopt_long_only.
3046         * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
3047         Add libc_hidden_def.
3048
3049         * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
3050         Define as a macro for __dl_iterate_phdr.
3051
3052         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
3053         made static.  Add __ name as a strong alias.
3054         (internal_endnetgrent): Likewise.
3055         (internal_getnetgrent_r): Likewise.
3056
3057         * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
3058         with no __ prefix.
3059         * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
3060         * ctype/ctype.h [__USE_GNU]: Add declarations and macros for
3061         all *_l functions with no __ prefix.
3062         * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
3063         * ctype/ctype_l.c: Likewise.
3064         * locale/nl_langinfo.c: Likewise.
3065         * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
3066         * stdlib/stdlib.h [__USE_GNU]: Likewise.
3067         * wcsmbs/wchar.h [__USE_GNU]: Likewise.
3068         * wctype/wctype.h [__USE_GNU]: Likewise.
3069         * string/strcoll_l.c (strcoll_l): Define as weak alias.
3070         * string/strxfrm_l.c (strxfrm_l): Define as weak alias.
3071         * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
3072         * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
3073         * stdlib/strtod_l.c (strtod_l): Define as weak alias.
3074         * stdlib/strtof_l.c (strtof_l): Define as weak alias.
3075         * stdlib/strtold_l.c (strtold_l): Define as weak alias.
3076         * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
3077         (__wcscasecmp_l): Add libc_hidden_def.
3078         * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
3079         (__wcsncasecmp_l): Add libc_hidden_def.
3080         * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
3081         * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
3082         * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
3083         * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
3084         * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
3085         * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
3086         * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
3087         * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
3088         * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
3089         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
3090         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
3091         * wctype/wctrans_l.c (wctrans_l) Define as weak alias.
3092         * wctype/towctrans_l.c (towctrans_l) Define as weak alias.
3093         * wctype/wctype_l.c (wctype_l) Define as weak alias.
3094
3095 2002-08-05  Roland McGrath  <roland@redhat.com>
3096
3097         * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
3098         netname2user, host2netname, user2netname, key_gendes.
3099         * sunrpc/netname.c: Add libc_hidden_def.
3100         * sunrpc/key_call.c: Likewise.
3101
3102         * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
3103         freeaddrinfo.
3104         * inet/getnameinfo.c: Add libc_hidden_def.
3105         * sysdeps/generic/getaddrinfo.c: Likewise.
3106         * sysdeps/posix/getaddrinfo.c: Likewise.
3107
3108         * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
3109         * wcsmbs/wmemchr.c: Add libc_hidden_def.
3110         * wcsmbs/wmemset.c: Add libc_hidden_def.
3111
3112         * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
3113         (index, rindex): Define as macros for strchr, strrchr.
3114
3115         * string/envz.c (envz_strip): index -> strchr
3116
3117         * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
3118         * sunrpc/rpc_prot.c: Add libc_hidden_def.
3119
3120         * include/wchar.h: Use libc_hidden_proto for mbrtowc.
3121         * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
3122
3123         * include/stdlib.h: Use libc_hidden_proto for wctomb.
3124         * stdlib/wctomb.c: Add libc_hidden_def.
3125
3126         * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
3127         rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
3128         * resolv/herror.c: Likewise.
3129         * inet/rcmd.c: Add libc_hidden_def.
3130         * inet/ruserpass.c: Likewise.
3131         * inet/getnetgrent_r.c: Likewise.
3132
3133         * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
3134         svc_unregister, remove *_internal decls.  Use libc_hidden_proto
3135         for svcerr_auth, svcerr_noprog, svcerr_progvers.
3136         * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
3137         libc_hidden_def.
3138         (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
3139         * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.
3140
3141         * sysdeps/posix/system.c (do_system): New function, guts broken out of
3142         __libc_system.
3143         (__libc_system): Call it, putting just the line == NULL test here.
3144
3145         * include/libc-symbols.h (__hidden_proto): Add extern keywords so
3146         variables work right.
3147
3148         * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
3149         * elf/dl-close.c (_dl_close): Likewise.
3150
3151         * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
3152         in6addr_any, in6addr_loopback.  Remove decls for
3153         bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
3154         * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
3155         * sunrpc/svc_tcp.c (svctcp_create): Likewise.
3156         * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
3157         * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
3158         * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
3159         * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
3160         in6addr_loopback.
3161         * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
3162
3163         * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
3164         ether_aton_r.
3165         * inet/ether_aton_r.c: Add libc_hidden_def.
3166         * inet/ether_ntoa_r.c: Likewise.
3167
3168         * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
3169         xprt_unregister.
3170         * sunrpc/svc.c: Add libc_hidden_def.
3171         * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
3172         pmap_set, pmap_unset.
3173         * sunrpc/pmap_clnt.c: Add libc_hidden_def.
3174         * sunrpc/pm_getport.c: Likewise.
3175         * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
3176         * sunrpc/publickey.c: Add libc_hidden_def.
3177
3178 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
3179
3180         * elf/rtld.c (_dl_start): Don't use memset.  Use same tricks as for
3181         the other memset call in this function.
3182
3183         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
3184         at correct index.  Clear BSS region now that memalign is used.
3185
3186 2002-08-05  Roland McGrath  <roland@redhat.com>
3187
3188         * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
3189         * sysdeps/generic/uname.c: Add libc_hidden_def.
3190         * sysdeps/mach/hurd/uname.c: Likewise.
3191
3192 2002-08-05  Jakub Jelinek  <jakub@redhat.com>
3193
3194         * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
3195         wcspbrk): Add libc_hidden_proto.
3196         * time/strftime.c (my_strftime): Add libc_hidden_def.
3197         (strftime): Remove libc_hidden_def.
3198         * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
3199         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
3200         * wcsmbs/wcsspn.c (wcsspn): Likewise.
3201         * wcsmbs/wcscmp.c (wcscmp): Likewise.
3202         * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
3203         * wcsmbs/wcscoll.c (wcscoll): Likewise.
3204
3205         * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
3206         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3207         __rpc_thread_createerr): Add libc_hidden_proto.
3208         * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
3209         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3210         __rpc_thread_createerr): Add libc_hidden_def.
3211
3212         * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
3213         clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
3214         * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
3215         clnt_perror, clnt_sperror): Add libc_hidden_def.
3216         * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
3217
3218         * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
3219         libc_hidden_proto.
3220         * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
3221         * sunrpc/des_soft.c (des_setparity): Likewise.
3222
3223         * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
3224         Add libc_hidden_proto.
3225         * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
3226         Add libc_hidden_def.
3227
3228 2002-08-05  Roland McGrath  <roland@redhat.com>
3229
3230         * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
3231         `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
3232         * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
3233         * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
3234         dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
3235         old data, abandoning the original memory allocated by rtld at startup,
3236         instead of calling realloc normally.
3237
3238 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
3239
3240         * po/fr.po: Update from translation team.
3241
3242 2002-08-04  Roland McGrath  <roland@redhat.com>
3243
3244         * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
3245         then generate a dummy module under the given name, obeying the
3246         normal rules for the "caller" field.
3247
3248         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
3249         actually iterate over the elements.  Fix typo p_type -> p_vaddr.
3250
3251         * include/pthread.h: Don't declare __pthread_initialize_minimal as
3252         weak here; we declare it weak or strong in the one place we use it.
3253         * sysdeps/generic/libc-start.c: ... which is here.
3254         Don't make the decl weak if [USE_TLS], since static programs need TLS
3255         setup even when single-threaded.
3256
3257         * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
3258
3259         * elf/Makefile (test-srcs): Add $(modules-names) to it.
3260         (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
3261         CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
3262         all these variables.
3263
3264 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3265
3266         * include/stdio.h: Don't define macro magic to redirect function
3267         calls if _ISOMAC is defined.
3268
3269         * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
3270         ldouble asin tests.
3271
3272 2002-08-04  Roland McGrath  <roland@redhat.com>
3273
3274         * stdlib/lrand48_r.c: Add libc_hidden_def.
3275
3276         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
3277         TCB with __libc_memalign instead of mmap.
3278         (_dl_deallocate_tls): Free it with free instead of munmap.
3279
3280         * Makerules (cpp-srcs-left): When setting this to run
3281         cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
3282         words.  Combine the two loops into one on the concatenated list,
3283         including those as well as $(test-srcs).
3284
3285         * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
3286         since we align here with optimally minimal waste anyway.
3287         (malloc): Just call that.
3288
3289         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
3290         the right variable.
3291
3292         * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
3293         to compute memory location for l_tls_initimage.
3294         * elf/rtld.c (_dl_start): Likewise.
3295         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
3296
3297         * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
3298         because the .d file is generated in the non-shared case and
3299         so fails to catch them otherwise.
3300
3301         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
3302         split out of _dl_allocate_tls.
3303         (_dl_allocate_tls_init): Likewise.
3304         (_dl_allocate_tls): Call those.
3305         * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
3306         * elf/rtld.c (dl_main): Call them separately instead of calling
3307         _dl_allocate_tls.  Delay _dl_allocate_tls_init until after relocation
3308         is finished, so that the initializer data has been relocated before we
3309         copy it into the main thread's TLS block.
3310
3311         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
3312         loop conditions, prevented the last used module from being initialized.
3313
3314 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
3315
3316         * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
3317         if glob resp. globfree are not macros.
3318         * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
3319         * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
3320         Add libc_hidden_ver.
3321         * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
3322         libc_hidden_def.
3323         * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
3324         instead of libc_hidden_weak.
3325         * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
3326         libc_hidden_ver instead of libc_hidden_def.
3327         * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
3328         libc_hidden_ver instead of libc_hidden_def.
3329         (wcstoll, wcstoq): Remove libc_hidden_weak.
3330         * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
3331         libc_hidden_ver.
3332         * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
3333         libc_hidden_ver.
3334         * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
3335         libc_hidden_ver.
3336         * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
3337         libc_hidden_ver.
3338
3339 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3340
3341         * stdio-common/psignal.c: Declare _sys_siglist_internal.  Use USEINT
3342         to access _sys_siglist.
3343         * string/strsignal.c: Likewise.
3344         * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
3345         * sysdeps/gnu/siglist.c: Likewise.
3346         * sysdeps/unix/siglist.c: Likewise.
3347         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
3348
3349         * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
3350
3351         * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
3352
3353         * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
3354         alias and use it.
3355         * intl/bindtextdom.c: Use _nl_default_dirname_internal.
3356
3357         * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
3358         * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
3359         * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
3360
3361         * include/time.h: Add libc_hidden_proto for __gmtime_r.
3362         * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
3363
3364         * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
3365         and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
3366         and __gconv_get_cache respectively.
3367         * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
3368         defined static.  Change all users.
3369         (__gconv_get_cache): New function.
3370         * iconv/gconv_db.c (__gconv_get_modules_db): New function.
3371         (__gconv_get_alias_db): New function.
3372         * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
3373         (__conv_modules_db): Likewise.
3374         Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
3375         and __gconv_get_alias_db.
3376         * iconv/iconv_prog.c: Use the new functions instead of accessing the
3377         variables.
3378
3379         * include/stdlib.h: Add prototype and libc_hidden_proto for
3380         __default_morecore.
3381         * sysdeps/generic/morecore.c: Include <stdlib.h>.
3382
3383         * malloc/obstack.c: Remove fputs macro.
3384
3385         * malloc/mtrace.c: Remove fopen macro.
3386
3387 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
3388
3389         * manual/debug.texi: Fix spelling to programmatically.
3390         Reported by <hayastan132@hotmail.com>.
3391
3392 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3393
3394         * include/libio.h: Add libc_hidden_proto for __uflow.
3395         * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
3396         fgetpos to _IO_* names.
3397         Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
3398         fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
3399         * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
3400         putwc_unlocked, vswscanf.
3401         * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
3402         * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
3403         * libio/fseek.c: Likewise.
3404         * libio/fmemopen.c: Include "libioP.h".  Call _IO_fopencookie and
3405         not fopencookie.
3406         * libio/genops.c (__uflow): Add libc_hidden_def.
3407         * libio/iofflush_u.c (fflush_unlocked): Likewise.
3408         * libio/iofgets_u.c (fgets_unlocked): Likewise.
3409         * libio/iofputs_u.c (fputs_unlocked): Likewise.
3410         * libio/iofputws_u.c (fputws_unlocked): Likewise.
3411         * libio/iofread_u.c (fread_unlocked): Likewise.
3412         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
3413         * libio/iovswscanf.c (vswscanf): Likewise.
3414         * libio/putwc_u.c (putwc_unlocked): Likewise.
3415         * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
3416         * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
3417         * malloc/mtrace.c: Likewise.
3418
3419         * sunrpc/clnt_perr.c: Remove fputs macro.
3420         * sunrpc/svc_simple.c: Likewise.
3421         * sunrpc/svc_tcp.c: Likewise.
3422         * sunrpc/svc_udp.c: Likewise.
3423         * sunrpc/xdr_rec.c: Likewise.
3424         * sunrpc/xdr_ref.c: Likewise.
3425
3426         * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
3427         iconv_prog, linereader, and charmap-dir.
3428         * locale/Makefile: Likewise for locale and charmap-dir.
3429         * malloc/Makefile: Likewise for memusagestat.
3430         * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
3431         * sunrpc/Makefile: Likewise for rpc_main.
3432         * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
3433         * timezone/Makefile: Likewise for zic.
3434
3435         * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
3436
3437         * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
3438         * elf/dl-close.c (_dl_close): Add libc_hidden_def.
3439         * elf/dl-open.c (_dl_open): Add libc_hidden_def.
3440         * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
3441         _dl_close.
3442
3443         * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
3444         __wunderflow.
3445         * libio/genops.c (__underflow): Add libc_hidden_def.
3446         * libio/wgenops.c (__wuflow): Likewise.
3447         (__wunderflow): Likewise.
3448
3449         * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
3450         * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
3451
3452         * include/stdio.h: Add libc_hidden_proto for __vfscanf.
3453         * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
3454
3455         * include/string.h: Add libc_hidden_proto for __strverscmp.
3456         * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
3457
3458         * include/unistd.h: Add libc_hidden_proto for __sysconf.
3459         * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
3460         * sysdeps/posix/sysconf.c: Likewise.
3461         * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
3462         * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
3463
3464         * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
3465         __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
3466         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
3467         __iswxdigit_l, __towlower_l, __towupper_l.
3468         * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
3469         * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
3470
3471         * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
3472         * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
3473         * sysdeps/mach/hurd/xmknod.c: Likewise.
3474         * sysdeps/unix/xmknod.c: Likewise.
3475         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
3476         * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
3477         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
3478
3479         * sunrpc/svc.c: Add missing INTUSE for _authenticate.
3480
3481 2002-08-03  Roland McGrath  <roland@redhat.com>
3482
3483         * include/sys/resource.h: Use libc_hidden_proto for getpriority,
3484         setpriority.
3485         * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
3486         * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
3487         * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
3488         * sysdeps/mach/hurd/setpriority.c: Likewise.
3489         * sysdeps/mach/hurd/getpriority.c: Likewise.
3490         * sysdeps/generic/setpriority.c: Likewise.
3491         * sysdeps/generic/getpriority.c: Likewise.
3492
3493         * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
3494         * malloc/mcheck.c: Add libc_hidden_def.
3495
3496         * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
3497         * misc/hsearch_r.c: Add libc_hidden_def.
3498
3499         * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
3500         * posix/fnmatch.c: Add libc_hidden_weak.
3501
3502         * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
3503         execl, execle, execlp, execvp, getpid, getsid.
3504         * sysdeps/generic/alarm.c: Add libc_hidden_def.
3505         * sysdeps/unix/alarm.c: Likewise.
3506         * posix/confstr.c: Likewise.
3507         * posix/execvp.c: Likewise.
3508         * posix/execlp.c: Likewise.
3509         * posix/execle.c: Likewise.
3510         * posix/execl.c: Likewise.
3511         * sysdeps/generic/getsid.c: Likewise.
3512         * sysdeps/mach/hurd/getsid.c: Likewise.
3513         * sysdeps/generic/getpid.c: Add libc_hidden_weak.
3514         * sysdeps/mach/hurd/getpid.c: Likewise.
3515
3516         * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
3517         qecvt_r, qfcvt_r, lrand48_r.
3518         * misc/efgcvt_r.c: Add libc_hidden_def.
3519
3520         * include/wordexp.h: Use libc_hidden_proto for wordfree.
3521         * sysdeps/generic/wordexp.c: Add libc_hidden_def.
3522
3523         * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
3524         * locale/nl_langinfo.c: Add libc_hidden_def.
3525
3526         * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
3527         * sysdeps/generic/glob.c: Add libc_hidden_def.
3528         * sysdeps/generic/glob64.c: Likewise.
3529         * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
3530
3531         * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
3532
3533         * elf/Makefile (CFLAGS-vismod2.c): New variable.
3534
3535         * locale/setlocale.c (_nl_current_names): Variable moved ...
3536         * locale/localename.c (_nl_current_names): ... here, new file.
3537         Make it global, with attribute_hidden.
3538         * locale/localeinfo.h: Declare it.
3539         * locale/Makefile (aux): Add localename.
3540         * locale/localename.c (__current_locale_name): New function.
3541         * include/locale.h (__current_locale_name): Declare it.
3542         * intl/dcigettext.c (guess_category_value): Use that instead of
3543         calling setlocale.
3544
3545         * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
3546         [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
3547         [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
3548         * locale/newlocale.c: Add alias to __ name.
3549         * locale/duplocale.c: Likewise.
3550         * locale/freelocale.c: Likewise.
3551         * locale/uselocale.c: New file.
3552         * locale/Makefile (routines): Add it.
3553         * locale/Versions (libc: GLIBC_2.3): New set.
3554         Add newlocale, duplocale, freelocale, uselocale.
3555         (libc: GLIBC_PRIVATE): Add __uselocale.
3556
3557         * locale/localeinfo.h [SHARED]
3558         (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
3559         (_NL_CURRENT_DATA): Define using that.
3560         (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
3561         (_NL_CURRENT_DEFINE): Define to empty.
3562         [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
3563         conditionalized on this.
3564         * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
3565         taking initializer of _nl_C_locobj.
3566         [SHARED] (_nl_global_locale): New variable, using that initializer.
3567         (_nl_C_locobj): Use new macro for initialzier.
3568         * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
3569         [! SHARED] (CATEGORY_USED): New macro.
3570         [SHARED] (CATEGORY_USED, _nl_C): New macros.
3571         (setdata, setlocale): Use that macro instead of examining _nl_current.
3572         (setdata): Set the slot in _nl_global_locale.
3573         Conditionalize setting of _nl_current on [! SHARED].
3574         * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
3575         declaration as an extern.
3576         * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
3577
3578         * include/locale.h: Use libc_hidden_proto for setlocale.
3579         * locale/setlocale.c: Add libc_hidden_def.
3580
3581         * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
3582
3583         * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
3584         * misc/hsearch_r.c: Add libc_hidden_def.
3585         * misc/lsearch.c: Likewise.
3586
3587         * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
3588         endttyent.
3589         * misc/getttyent.c: Add libc_hidden_def.
3590
3591         * include/mcheck.h: Use libc_hidden_proto for mcheck.
3592         * malloc/mcheck.c: Add libc_hidden_def.
3593
3594         * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
3595         * include/argz.h: Use libc_hidden_proto for argz_delete.
3596         * string/argz-delete.c: Add libc_hidden_def.
3597         * string/envz.c: Likewise.  Use <envz.h>, not "envz.h".
3598
3599         * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
3600         HIDDEN_JUMPTARGET for _exit.
3601         * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
3602         * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
3603         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
3604         * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
3605
3606         * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
3607         [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
3608         [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
3609         * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
3610
3611         * include/stdlib.h: Use libc_hidden_proto for abort,
3612         __strtof_internal, __strtod_internal, __strtold_internal,
3613         __strtol_internal, __strtoll_internal, __strtoul_internal,
3614         __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
3615         __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
3616         __strtoul_l_internal, __strtoull_l_internal.
3617         * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
3618         __wcstod_internal, __wcstold_internal, __wcstol_internal,
3619         __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
3620         ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
3621         ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
3622         __wcsncasecmp_l.
3623         * sysdeps/generic/abort.c: Add libc_hidden_def.
3624         * stdlib/strtod.c: Likewise.
3625         * sysdeps/generic/strtol.c: Likewise.
3626         * sysdeps/wordsize-64/strtol.c: Likewise.
3627         * sysdeps/wordsize-64/wcstol.c: Likewise.
3628         * sysdeps/wordsize-64/wcstol_l.c: Likewise.
3629
3630         * include/stdlib.h: Use libc_hidden_proto for qsort.
3631         * stdlib/msort.c: Add libc_hidden_def.
3632
3633         * include/utime.h: Use libc_hidden_proto for utime.
3634         * sysdeps/generic/utime.c: Add libc_hidden_def.
3635         * sysdeps/unix/utime.c: Likewise.
3636
3637         * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
3638         * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
3639         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
3640         * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
3641         * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
3642
3643         * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
3644         sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
3645         and __libc_current_sigrtmax.
3646         * signal/sigismem.c: Add libc_hidden_def.
3647         * signal/sigfillset.c: Likewise.
3648         * signal/sigempty.c: Likewise.
3649         * sysdeps/generic/sigpause.c (__sigpause): Likewise.
3650         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
3651         * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
3652         * sysdeps/posix/raise.c: Likewise.
3653         * sysdeps/generic/raise.c: Likewise.
3654
3655 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
3656
3657         * include/string.h: Use libc_hidden_proto for __stpcpy.
3658         * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
3659         * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
3660         * sysdeps/generic/stpcpy.c: Likewise.
3661         * sysdeps/i386/stpcpy.S: Likewise.
3662         * sysdeps/i386/i586/stpcpy.S: Likewise.
3663         * sysdeps/powerpc/stpcpy.S: Likewise.
3664         * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
3665         * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
3666
3667         * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
3668         __strncasecmp_l, __strdup, __strndup, __strerror_r.
3669         * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
3670         libc_hidden_def.
3671         * string/strdup.c (__strdup): Likewise.
3672         * string/strndup.c (__strndup): Likewise.
3673         * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
3674         * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
3675
3676 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
3677
3678         * include/libio.h: New file.
3679         * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
3680         * libio/iolibio.h: #include <libio.h>, not "libio.h".
3681         * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
3682         * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
3683         * sysdeps/unix/common/syscalls.list: Likewise.
3684         * sysdeps/unix/inet/syscalls.list: Likewise.
3685         * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
3686         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
3687         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3688         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3689         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
3690         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
3691         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
3692         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3693         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3694         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
3695         * sysdeps/unix/syscalls.list: Likewise.
3696
3697 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
3698             Ulrich Drepper  <drepper@redhat.com>
3699
3700         * malloc/malloc.c (public_cALLOc): Only divide if at least one of
3701         the arguments is big enough to cause an overflow.
3702
3703 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
3704
3705         * assert/assert.c: Use hidden_def not INTDEF.
3706
3707 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
3708
3709         * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
3710         not defined.
3711
3712 2002-08-03  Roland McGrath  <roland@redhat.com>
3713
3714         * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
3715         * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
3716         verr, verrx.
3717         * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
3718         * misc/syslog.c: Add libc_hidden_def.
3719         * misc/err.c: Likewise.
3720         * stdlib/exit.c: Likewise.
3721         * stdlib/bsearch.c: Likewise.
3722         * sysdeps/generic/getenv.c: Likewise.
3723
3724         * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
3725
3726         * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
3727         libc_hidden_weak for every system call symbol defined.
3728
3729         * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
3730         timelocal, localtime, strftime.
3731         * time/asctime.c: Add libc_hidden_def.
3732         * time/mktime.c: Likewise.
3733         * time/localtime.c: Likewise.
3734         * time/strftime.c: Likewise.
3735         * time/strptime.c: Likewise.
3736         * sysdeps/generic/time.c: Likewise.
3737         * sysdeps/unix/time.c: Likewise.
3738         * sysdeps/unix/sysv/i386/time.S: Likewise.
3739         * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
3740
3741         * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
3742         inet_makeaddr, inet_netof, inet_addr, __inet_addr.
3743         * resolv/inet_ntop.c: Likewise.
3744         * resolv/inet_pton.c: Likewise.
3745         * inet/inet_mkadr.c: Add libc_hidden_def.
3746         * inet/inet_netof.c: Likewise.
3747         * resolv/inet_addr.c: Likewise.
3748
3749         * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
3750         clauses from conditionals for now.  Will have to be fixed later
3751         for older compilers.
3752
3753         * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
3754
3755 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
3756
3757         * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
3758         broken alias attribute handling.
3759         * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
3760
3761 2002-08-02  Roland McGrath  <roland@frob.com>
3762
3763         * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
3764         since it sets the variables we use in a -D switch.
3765
3766 2002-08-02  Roland McGrath  <roland@redhat.com>
3767
3768         * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
3769         On 32-bit platforms they are the same; on 64-bit platforms ssize_t
3770         matches long int, not int.
3771
3772         * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
3773         * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
3774         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
3775         * wctype/wctrans.c (wctrans): Likewise.
3776         * wctype/wctype.c (__wctype): Likewise.
3777         * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
3778
3779 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
3780
3781         * assert/assert.c (__assert_fail): Fix typo in comment.
3782
3783         * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
3784         * sunrpc/rpc_thread.c: Define it without static.
3785         * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
3786
3787 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
3788
3789         * assert/assert.c (__assert_fail): Remove undef.
3790         Replace INTDEF with libc_hidden_def.
3791         * assert/__assert.c (__assert): Remove INTUSE.
3792         * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
3793         libc_hidden_weak.
3794         * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
3795         hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
3796         libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
3797         rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
3798         libm_hiden_ver): Define.
3799         * include/assert.h (__assert_fail_internal): Remove.
3800         (__assert_fail): Add prototype.  Add hidden_proto.
3801         * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
3802         libc_hidden_proto.
3803         * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
3804         (__mbrtowc, __mbrlen): Use libc_hidden_proto.  Remove macros.
3805         * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
3806         Add libc_hidden_proto.
3807         * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
3808         __fcntl): Add libc_hidden_proto.  Remove macros.
3809         (__open_internal, __fcntl_internal): Remove.
3810         * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
3811         * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
3812         * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
3813         libc_hiden_proto.
3814         * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
3815         libc_hidden_def.
3816         * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
3817         Add libc_hidden_def.
3818         * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
3819         * sysdeps/generic/open.c (__open): Remove undef.
3820         Add libc_hidden_def.  Remove INTDEF.
3821         * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
3822         Add libc_hidden_def.
3823         * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
3824         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
3825         * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
3826         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
3827         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
3828         (__libc_fcntl): Add libc_hidden_def.
3829         * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
3830         (__open): Remove INTDEF2.  Add libc_hidden_weak.
3831         (__libc_open): Add libc_hidden_def.
3832         * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
3833         * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
3834         * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
3835         Add libc_hidden_def.
3836         * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
3837         Add libc_hidden_def.
3838         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
3839         undef.
3840         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
3841         (__libc_fcntl): Add libc_hidden_def.
3842         * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
3843         __getpgid_internal, __chown_internal): Remove.
3844         (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
3845         __GI___sched_setscheduler, __GI___select, __GI___setpgid,
3846         __GI___chown): Add.
3847         * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
3848         __getpid_internal, __open_internal, __write_internal): Remove.
3849         (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
3850         __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
3851         __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
3852         __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
3853         * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
3854         Replace INTDEF with libc_hidden_def.
3855         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
3856         * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
3857         * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
3858         * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
3859         * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
3860         Add libc_hidden_proto.
3861         * include/sys/poll.h (__poll): Add libc_hidden_proto.
3862         * include/sys/select.h (__select): Likewise.
3863         * include/sys/socket.h (__send): Likewise.
3864         * include/sys/statfs.h (__statfs): Likewise.
3865         * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
3866         __getpid, __getpgid, __setpgid, __close, __read, __write,
3867         __getpagesize, __sbrk): Likewise.
3868         (__chown_internal, __dup2_internal, __getpid_internal,
3869         __getpgid_internal, __close_internal, __write_internal,
3870         __getpagesize_internal): Remove.
3871         (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
3872         Remove macros.
3873         * include/printf.h (__printf_fp): Add libc_hidden_proto.
3874         * include/sched.h (__sched_setscheduler): Likewise.
3875         * include/resolv.h (__res_ninit, __res_randomid): Likewise.
3876         * include/stdlib.h (__secure_getenv): Likewise.
3877         * include/signal.h (__sigaction, __sigsuspend): Likewise.
3878         * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
3879         * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
3880         * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
3881         * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
3882         * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
3883         * inet/getproto_r.c (NSS_attribute_hidden): Remove.
3884         * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
3885         * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
3886         * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
3887         * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
3888         * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
3889         * inet/getservent_r.c (NSS_attribute_hidden): Remove.
3890         * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
3891         * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
3892         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
3893         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
3894         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
3895         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
3896         * libio/genops.c (__overflow): Add libc_hidden_def.
3897         * libio/iovdprintf.c: Remove libio.h include.
3898         * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
3899         libc_hidden_weak): Define to nothing if not defined.
3900         (__overflow, __woverflow): Add libc_hidden_proto.
3901         * libio/wgenops.c (__woverflow): Add libc_hidden_def.
3902         * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
3903         (DB_LOOKUP_FCT): Add libc_hidden_proto.
3904         * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
3905         (DB_LOOKUP_FCT): Add libc_hidden_proto.
3906         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
3907         and libc_hidden_def.
3908         * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
3909         * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
3910         (__getpgid): Add libc_hidden_proto.
3911         (__bsd_getpgrp): Remove INTUSE.
3912         * resolv/res_init.c (__res_ninit, __res_randomid): Add
3913         libc_hidden_def.
3914         * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
3915         * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
3916         * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
3917         * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
3918         * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
3919         * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
3920         __rpc_thread_createerr): Add libc_hidden_def.
3921         * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
3922         libc_hidden_def.
3923         * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
3924         * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
3925         * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
3926         * sysdeps/generic/chown.c (__chown): Likewise.
3927         * sysdeps/generic/close.c (__close): Likewise.
3928         * sysdeps/generic/dup2.c (__dup2): Likewise.
3929         * sysdeps/generic/pipe.c (__pipe): Likewise.
3930         * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
3931         * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
3932         * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
3933         * sysdeps/generic/read.c (__libc_read): Likewise.
3934         (__read): Add libc_hidden_weak.
3935         * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
3936         * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
3937         * sysdeps/generic/select.c (__select): Likewise.
3938         * sysdeps/generic/send.c (__send): Likewise.
3939         * sysdeps/generic/setpgid.c (__setpgid): Likewise.
3940         * sysdeps/generic/sigaction.c (__sigaction): Likewise.
3941         * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
3942         * sysdeps/generic/statfs.c (__statfs): Likewise.
3943         * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
3944         * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
3945         * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
3946         Remove undef and INTDEF.
3947         * sysdeps/generic/getpgid.c (__getpgid): Likewise.
3948         * sysdeps/generic/getpid.c (__getpid): Likewise.
3949         * sysdeps/generic/write.c (__libc_write): Likewise.
3950         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
3951         * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
3952         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
3953         * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
3954         * sysdeps/mach/hurd/chown.c (__chown): Likewise.  Remove INTDEF.
3955         * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
3956         Remove undef and INTDEF.
3957         * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
3958         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
3959         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
3960         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
3961         * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
3962         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
3963         * sysdeps/mach/hurd/pipe.c: Include unistd.h.
3964         (__pipe): Add libc_hidden_def.
3965         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
3966         libc_hidden_weak.
3967         * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
3968         * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
3969         * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
3970         (__read): Add libc_hidden_weak.
3971         * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
3972         (__libc_pwrite64): Add libc_hidden_def.
3973         * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
3974         * sysdeps/mach/hurd/select.c (__select): Likewise.
3975         * sysdeps/mach/hurd/send.c (__send): Likewise.
3976         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
3977         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
3978         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
3979         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
3980         * sysdeps/posix/dup2.c: Likewise.
3981         Remove undef and INTDEF.
3982         * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
3983         * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
3984         (__pwrite64): Add libc_hidden_weak.
3985         * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
3986         * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
3987         * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
3988         * sysdeps/standalone/close.c (__close): Likewise.
3989         * sysdeps/standalone/write.c (__libc_write): Likewise.
3990         (__write): Add libc_hidden_weak.
3991         * sysdeps/standalone/read.c (__read): Likewise.
3992         (__libc_read): Add libc_hidden_def.
3993         * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
3994         * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
3995         * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
3996         * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
3997         * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
3998         * sysdeps/unix/bsd/poll.c (__poll): Likewise.
3999         * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
4000         * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
4001         * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
4002         __GI___sigaction): Add.
4003         * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
4004         * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
4005         * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
4006         * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
4007         * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
4008         __GI___setpgid): Add.
4009         * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
4010         Remove undef and INTDEF.
4011         * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
4012         * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
4013         * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
4014         * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
4015         * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
4016         * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
4017         * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
4018         * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
4019         * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
4020         * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
4021         * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
4022         * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
4023         * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
4024         * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
4025         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
4026         __GI___statfs, __GI___send): Add.
4027         * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
4028         libc_hidden_ver resp. libc_hidden_def.
4029         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
4030         libc_hidden_def.
4031         * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
4032         Likewise.  Remove undef and INTDEF.
4033         * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
4034         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
4035         __GI___statfs, __GI___send): Add.
4036         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
4037         libc_hidden_def.
4038         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
4039         Likewise.
4040         * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
4041         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
4042         libc_hidden_ver resp. libc_hidden_def.
4043         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
4044         __GI___send): Add.
4045         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
4046         Add libc_hidden_weak.
4047         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
4048         Add libc_hidden_def.
4049         * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
4050         * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
4051         libc_hidden_weak.
4052         * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
4053         resp. libc_hidden_def.
4054         * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
4055         libc_hidden_weak.
4056         * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise.  Remove
4057         INTDEF.
4058         * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
4059         Likewise.  Remove undef.
4060         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
4061         libc_hidden_weak.
4062         * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
4063         * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
4064         libc_hidden_weak.
4065         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
4066         libc_hidden_def.
4067         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
4068         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
4069         Likewise.  Remove undef and INTDEF.
4070         * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
4071         libc_hidden_def.
4072         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
4073         libc_hidden_weak.
4074         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
4075         libc_hidden_def.
4076         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
4077         (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
4078         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
4079         libc_hidden_weak.
4080         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
4081         Add libc_hidden_def.
4082         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
4083         __GI___statfs): Add.
4084         * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
4085         libc_hidden_weak.
4086         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
4087         * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
4088         Remove undef and INTDEF.
4089         * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
4090         * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
4091         libc_hidden_def.
4092         * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
4093         * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
4094         libc_hidden_weak.
4095         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
4096         libc_hidden_def.
4097         * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
4098         * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
4099         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
4100         Add.
4101         * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
4102         libc_hidden_def.  Remove undef and INTDEF.
4103         * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
4104         * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
4105         libc_hidden_def.
4106         * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
4107         * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
4108         * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
4109         * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
4110         Remove undef and INTDEF.
4111         * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
4112         broken visibility attribute handling.
4113         * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
4114
4115 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
4116
4117         * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
4118         Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
4119
4120         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
4121         previous patch.
4122
4123 2002-06-29  Todd Fries  <todd@openbsd.org>
4124
4125         * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
4126
4127 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4128
4129         * include/errno.h: Don't include tls.h if _ISOMAC is defined.
4130
4131 2002-07-30  Roland McGrath  <roland@redhat.com>
4132
4133         * resolv/resolv.h (_res): Define macro unconditionally.
4134         [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
4135         * include/resolv.h: ... here.
4136         [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
4137         as a __thread variable.
4138         * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
4139         a __thread variable instead of a global.
4140         * resolv/res_data.c [_LIBC]: Don't #undef _res.
4141
4142         * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
4143         time we test it.
4144
4145         * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
4146
4147         * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
4148         decls of memset and memcpy.
4149
4150         * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
4151         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
4152
4153         * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
4154
4155         * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
4156         (__libc_tsd_define): Define using __thread.
4157
4158         * sunrpc/rpc_thread.c: Use __libc_tsd_define.
4159         (__rpc_thread_variables): Use __libc_tsd_get.
4160         (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
4161         __rpc_thread_variables, which might allocate what we're about to free.
4162
4163         * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
4164         thread-local variable.
4165         * resolv/netdb.h (h_errno): Define macro unconditionally.
4166         [_LIBC] (__set_h_errno): Macro moved to ...
4167         * include/netdb.h: ... here.
4168         [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
4169         [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
4170         [! _LIBC_REENTRANT]: #undef h_errno here.
4171
4172         * include/errno.h: Protect from multiple inclusion.
4173
4174         * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
4175         before defining them, since Linux's <linux/posix_types.h> might have
4176         defined them.
4177
4178 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4179
4180         * malloc/malloc.c (public_cALLOc): Check for overflow on
4181         multiplication.
4182         * sunrpc/xdr_array.c (xdr_array): Likewise.
4183         * sunrpc/rpc/types.h (mem_free): Add comment.
4184         Patch by Solar Designer <solar@openwall.com>.
4185
4186 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4187
4188         * sysdeps/unix/sysv/linux/kernel-features.h
4189         (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
4190
4191 2002-08-01  Roland McGrath  <roland@redhat.com>
4192
4193         * libio/fileops.c (_IO_file_sync_mmap): New function.
4194         (_IO_file_jumps_mmap): Use it.
4195         (_IO_file_underflow_mmap): Rewritten.  If after EOF or fflush,
4196         repeat the stat check and resize the mapped buffer as necessary.
4197
4198 2002-07-31  Roland McGrath  <roland@redhat.com>
4199
4200         * libio/fileops.c (decide_maybe_mmap): New static function.
4201         Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
4202         mmap the file contents.  Then switch the jump tables to the mmap
4203         tables if it worked, or the vanilla file tables if not.
4204         (_IO_file_underflow_maybe_mmap): New function.
4205         (_IO_file_seekoff_maybe_mmap): New function.
4206         (_IO_file_xsgetn_maybe_mmap): New function.
4207         (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
4208         * libio/libioP.h: Declare those.
4209         * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
4210         (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
4211         * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
4212         If the stream is read-only, set its jump tables to those new ones.
4213         * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
4214         jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
4215         We need the tables set before _IO_file_attach.
4216
4217         * libio/tst-mmap-eofsync.c: New file.
4218         * libio/tst-mmap-fflushsync.c: New file.
4219         * libio/bug-mmap-fflush.c: New file.
4220         * libio/tst-mmap2-eofsync.c: New file.
4221         * libio/Makefile (tests): Add them.
4222
4223         * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
4224         _IO_file_underflow_mmap fails, it already set the appropriate bit.
4225
4226 2002-07-31  Jeff Bailey  <jbailey@gnu.org>
4227
4228         * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
4229         Declarations moved to <bits/sys_errlist.h>.  Include that file.
4230         * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
4231         * sysdeps/generic/bits/sys_errlist.h: New file.  This does *not*
4232         declare sys_errlist and sys_nerr.
4233         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file.  Does
4234         provide declarations.
4235
4236 2002-07-31  Roland McGrath  <roland@redhat.com>
4237
4238         * elf/rtld.c (dl_main): Fix typo in error message.
4239
4240 2002-07-31  Roland McGrath  <roland@frob.com>
4241
4242         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
4243         __xstat -> __xstat64, __lseek -> __libc_lseek64.  Completes 2002-06-09
4244         sysdeps/mach/hurd/dl-sysdep.c change.
4245
4246 2002-07-28  Ulrich Drepper  <drepper@redhat.com>
4247
4248         * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
4249         -r`/build/include for kernel headers.
4250
4251         * po/fi.po: New file.
4252
4253 2002-07-15  Alexandre Oliva  <aoliva@redhat.com>
4254
4255         * configure.in (static_nss): Set to `yes' if --disable-shared.
4256
4257 2002-07-23  Bruno Haible  <bruno@clisp.org>
4258
4259         * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
4260         is set.
4261
4262 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4263
4264         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
4265         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
4266         arguments.
4267
4268 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4269
4270         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
4271         alias.
4272
4273 2002-07-21  Bruno Haible  <bruno@clisp.org>
4274
4275         * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
4276         * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
4277         sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
4278         trans_sysdep_tab_offset.
4279         (struct sysdep_segment): New type.
4280         (struct sysdep_string): New type.
4281         (SEGMENTS_END): New macro.
4282         * intl/gettextP.h (struct sysdep_string_desc): New type.
4283         (struct loaded_domain): New fields malloced, n_sysdep_strings,
4284         orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
4285         orig_tab, trans_tab, hash_tab to const pointers because they point
4286         into read-only memory.
4287         * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
4288         (PRI*): Define fallback values.
4289         (get_sysdep_segment_value): New function.
4290         (_nl_load_domain): Distinguish major and minor revision parts. Add
4291         support for minor revision 1 with system dependent strings.
4292         (_nl_unload_domain): Also free the 'malloced' field.
4293         * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
4294         now done in loadmsgcat.c. Add support for system dependent strings.
4295
4296 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
4297
4298         * posix/bug-regex7.c: New file.
4299         * posix/bug-regex8.c: New file.
4300         * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
4301
4302 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
4303
4304         * posix/bug-regex4.c (main): Fix typos.
4305         * posix/bug-regex6.c (main): Likewise.
4306
4307 2002-07-27  Ulrich Drepper  <drepper@redhat.com>
4308
4309         * posix/bug-regex6.c (main): Fix warnings.
4310
4311         * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
4312
4313         * iconv/iconv_prog.c (main): Improve error message for the cases
4314         where -t and/or -f parameter are missing.
4315
4316 2002-07-10  Stepan Kasal  <kasal@math.cas.cz>
4317
4318         * posix/regexec.c (re_match): Reorganize to remove duplicate code.
4319         (re_search): Likewise.
4320         (re_match_2): Likewise.
4321         (re_search_2): Likewise.
4322         (re_search_stub): New function.
4323         (re_search_2_stub): New function.
4324         * regcomp.c (re_compile_pattern): Typo in a comment fixed.
4325
4326 2002-07-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
4327
4328         * posix/regex_internal.h: Add new member STOP to struct re_string_t.
4329         (re_string_eoi): Use STOP instead of LEN.
4330         * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
4331         (re_string_construct): Likewise.
4332         (re_string_reconstruct): Adjust pstr->stop like pstr->len.
4333         * posix/regexec.c (re_search_internal): Add a new argument STOP
4334         so that it can handle the argument STOP of re_search_2 and re_match_2
4335         correctly.
4336         (regexec): Adapt to new I/F of re_search_internal.
4337         (re_search_stub): Likewise.
4338
4339 2002-07-25  Ulrich Drepper  <drepper@redhat.com>
4340
4341         * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
4342
4343         * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
4344
4345         * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
4346         * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
4347         of __divdi3.
4348
4349         * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
4350         * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
4351         * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
4352         alias for adjtimex syscall.
4353
4354         * elf/dl-minimal.c: Define __assert_fail_internal.
4355         * assert/assert.c: Likewise.
4356         * include/assert.h: Define __assert_file macro if !SHARED and not
4357         NOT_IN_libc.
4358
4359         * iconv/Makefile: Define NOT_IN_libc for objects in standalone
4360         programs.
4361         * locale/Makefile: Likewise.
4362         * nscd/Makefile: Likewise.
4363         * catgets/Makefile: Likewise.
4364
4365 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
4366
4367         * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
4368         compute current position.
4369
4370         * stdio-common/tst-fseek.c (main): Improve error messages.
4371
4372         * libio/tst-freopen.c (main): Remove unused variable.
4373
4374         * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
4375         succesful seek call.  Simplify error checking.
4376
4377 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4378
4379         * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
4380         * sysdeps/ia64/fpu/libm_support.h: Likewise.
4381
4382 2002-07-19  Roland McGrath  <roland@frob.com>
4383
4384         * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
4385         __libc_enable_secure is set.
4386
4387 2002-07-24  Roland McGrath  <roland@frob.com>
4388
4389         Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
4390         This implementation supports only IPv4.
4391         * inet/ifaddrs.h: New file.
4392         * sysdeps/generic/ifaddrs.c: New file.
4393         * sysdeps/gnu/ifaddrs.c: New file.
4394         * inet/test-ifaddrs.c: New file.
4395         * inet/Makefile (routines): Add ifaddrs.
4396         (headers): Add ifaddrs.h here.
4397         (tests): Add test-ifaddrs.
4398         * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
4399
4400         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
4401         socket call to get an AF_INET socket, instead of using __opensock.
4402         The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
4403
4404         * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
4405         if not -1 use it instead of calling __opensock.
4406         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
4407         * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
4408         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
4409
4410         * sysdeps/mach/hurd/ifreq.h: New file.
4411         * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
4412         * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
4413         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
4414
4415         * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
4416         which gets moved around.  Calculate size of mmap'd buffer instead.
4417
4418 2002-07-24  Philip Blundell  <philb@gnu.org>
4419
4420         * sysdeps/unix/arm/brk.S: Improve schedule.
4421         * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
4422         efficient instruction.
4423         (__socket): Optimize return sequence.
4424
4425 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
4426
4427         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
4428         sockets on old kernels.
4429
4430 2002-07-22  Philip Blundell  <philb@gnu.org>
4431
4432         * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
4433         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
4434         alias.
4435
4436 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
4437
4438         * locale/hashval.h: Make more self-contained by defining LONG_BITS.
4439         * locale/programs/simple-hash.c: Remove LONG_BITS definition.
4440
4441         * locale/programs/locarchive.c (add_locale_to_archive): Correct
4442         test to detect duplicate locales.
4443
4444         * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
4445         position would be before beginning of file.
4446         (_IO_file_seekoff_mmap): Likewise.
4447         * libio/Makefile (tests): Add bug-fseek.
4448         * libio/bug-fseek.c: New file.
4449
4450         * intl/explodename.c: Remove support for CEN-style locale variables.
4451         It was never used and shouldn't be since it's not portable.
4452         * intl/finddomain.c: Likewise.
4453         * intl/l10nflist.c: Likewise.
4454         * intl/loadinfo.h: Likewise.
4455         * locale/findlocale.c: Likewise.
4456
4457 2002-07-24  Roland McGrath  <roland@frob.com>
4458
4459         * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
4460         position, calculate it to take into account an active pushback buffer.
4461
4462         * libio/Makefile (tests): Add bug-ungetc.
4463         * libio/bug-ungetc.c: New file.
4464
4465 2002-07-23  Ulrich Drepper  <drepper@redhat.com>
4466
4467         * sysdeps/generic/libc-tls.c: New file.
4468         * csu/Makefile (routines): Add libc-tls.
4469         (static-only-routines): Add libc-tls.
4470         * elf/dl-support.c (_dl_phdr): New variable.
4471         (_dl_phnum): New variable.
4472         (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
4473         * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
4474         for !SHARED.  First look through auxiliary vector.  If TLS always
4475         call __pthread_initialize_minimal.
4476
4477         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
4478         in mmap call is never zero.
4479
4480 2002-07-23  Andreas Jaeger  <aj@suse.de>
4481
4482         * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
4483         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
4484
4485 2002-07-22  Ulrich Drepper  <drepper@redhat.com>
4486
4487         * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
4488         creation and removal of the temp file.
4489
4490         * libio/bug-rewind.c: Use test skeleton.  Use create_temp_file for
4491         file creation.
4492         * test-skeleton.c (create_temp_file): New function.
4493
4494 2002-07-22  Andreas Jaeger  <aj@suse.de>
4495
4496         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
4497         local label.
4498
4499 2002-07-21  Roland McGrath  <roland@frob.com>
4500
4501         * wcsmbs/Makefile (strtox-CFLAGS): New variable,
4502         put -I../include before -I../stdlib so we get the right errno.h et al.
4503         (CFLAGS-wcstod.c): Use that variable instead of -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-19  Roland McGrath  <roland@frob.com>
4511
4512         * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
4513
4514 2002-07-20  Ulrich Drepper  <drepper@redhat.com>
4515
4516         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
4517         __ASSUME_AT_XID is defined.
4518         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
4519         for 2.4.1 and up.
4520         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
4521         of AT_UID, AT_EUID, AT_GID, and AT_EGID.
4522
4523         * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
4524         (CFLAGS-wcstof.c): Likewise.
4525         (CFLAGS-wcstold.c): Likewise.
4526         (CFLAGS-wcstod_l.c): Likewise.
4527         (CFLAGS-wcstof_l.c): Likewise.
4528         (CFLAGS-wcstold_l.c): Likewise.
4529
4530 2002-07-18  Jakub Jelinek  <jakub@redhat.com>
4531
4532         * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
4533         __priority_which_t): Always typedef to int for C++.
4534
4535 2002-07-19  Ulrich Drepper  <drepper@redhat.com>
4536
4537         * configure.in: Add test for __thread support in compiler.
4538         * config.h.in: Add HAVE___THREAD.
4539         * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
4540         * include/sys/errno.h: Moved to...
4541         * stdlib/sys/errno.h: ...here.  New file.
4542         * stdlib/errno.h: New file.  Moved from...
4543         * include/errno.h: ...here.  Changed into an internal header defining
4544         libc-local things like __set_errno.
4545         * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
4546         bits/errno.h.
4547         * elf/dl-minimal.c: Include <tls.h>.  Define errno as thread-local
4548         variable if USE_TLS && HAVE___THREAD.  Don't define __errno_location
4549         either.
4550         * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
4551         from...
4552         (_dl_start_final): ...here.  Add code to initialize tls elements from
4553         bootstrap_map.
4554         * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
4555         if USE_TLS && HAVE___THREAD.
4556         * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
4557         * sysdeps/mach/hurd/bits/errno.h: Likewise.
4558         * sysdeps/standalone/arm/bits/errno.h: Likewise.
4559         * sysdeps/standalone/bits/errno.h: Likewise.
4560         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
4561         * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
4562         * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
4563         * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
4564         * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
4565         * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
4566         * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
4567         * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
4568         use GL(dl_rtld_map), use map parameter.
4569         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
4570         * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
4571         USE_TLS && HAVE___THREAD.
4572         * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
4573         definitions.  If USE_TLS && HAVE___THREAD store errooor value using
4574         TLS code sequence.
4575         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
4576
4577         * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
4578         * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
4579         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
4580         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
4581         * sysdeps/unix/sysv/linux/readv.c: Likewise.
4582         * sysdeps/unix/sysv/linux/writev.c: Likewise.
4583
4584 2002-07-17  Ulrich Drepper  <drepper@redhat.com>
4585
4586         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
4587         MS_INVALIDATE values.
4588
4589 2002-07-17  Andreas Schwab  <schwab@suse.de>
4590             Ulrich Drepper  <drepper@redhat.com>
4591
4592         * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
4593         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4594         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4595         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4596
4597 2002-07-01  H.J. Lu  <hjl@gnu.org>
4598
4599         * elf/circleload1.c (load_dso): Call "circlemod1" and check
4600         return value.
4601
4602         * elf/circlemod1.c (circlemod1): Return int.
4603         * elf/circlemod2.c (circlemod2): Likewise.
4604         * elf/circlemod2a.c (circlemod2): Likewise.
4605         * elf/circlemod3.c (circlemod3): Likewise.
4606         (circlemod3a): A new function.
4607
4608 2002-07-16  Ulrich Drepper  <drepper@redhat.com>
4609
4610         * catgets/tst-catgets.c (main): Don't expect results for
4611         untranslated messages.
4612
4613         * glibcbug.in: Fix little typo.  Remove STDIO.
4614
4615         * config.h.in: Fail if __FAST_MATH__ is defined.
4616         * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
4617         (CPPFLAGS-test-idouble.c): Likewise.
4618         (CPPFLAGS-test-ildouble.c): Likewise.
4619
4620 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
4621
4622         * intl/tst-gettext.sh: Pass -f option to msgfmt.
4623         * intl/tst-gettext.c: Correctly handle untranslated messages in
4624         positive tests.
4625
4626         * po/de.po: Update from translation team.
4627
4628 2002-07-02  H.J. Lu  <hjl@gnu.org>
4629
4630         * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>.  Always
4631         use ll/sc.
4632         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
4633
4634         * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
4635         to 2.4.0 for mips.
4636
4637 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
4638
4639         * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
4640         TLS fail if USE_TLS is not defined.
4641
4642         * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
4643         and adjust state for seek position.  [PR libc/4070]
4644         * libio/Makefile (tests): Add bug-rewind.
4645         * libio/bug-rewind.c: New file.
4646
4647 2002-07-12  Philip Blundell  <philb@gnu.org>
4648
4649         * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
4650         (__backtrace): Use it.
4651         * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define.  [PR libc/2632]
4652
4653 2002-07-12  Philip Blundell  <philb@gnu.org>
4654
4655         * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
4656         R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
4657         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
4658         (elf_machine_rela): Remove unused variable.
4659
4660         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
4661         (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
4662         define.
4663
4664 2002-07-12  Ulrich Drepper  <drepper@redhat.com>
4665
4666         * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
4667
4668 2002-07-14  Andreas Jaeger  <aj@suse.de>
4669
4670         * sysdeps/x86_64/bits/link.h: Add biarch support.
4671
4672 2002-07-13  Andreas Jaeger  <aj@suse.de>
4673
4674         * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
4675         Use correct indices.
4676         Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
4677
4678 2002-07-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4679
4680         * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
4681         * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
4682         * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
4683         * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
4684         * sysdeps/s390/s390-32/bits/link.h: Remove.
4685         * sysdeps/s390/s390-64/bits/link.h: Remove.
4686         * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
4687         * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
4688         * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
4689         * sysdeps/s390/bits/wordsize.h: New file.
4690         * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
4691         elfclass.h.
4692         * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
4693         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
4694         * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
4695         * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
4696         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
4697         * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
4698         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
4699         * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
4700         * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
4701         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
4702         * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
4703         * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
4704         resource.h.
4705         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
4706         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
4707         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
4708         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
4709         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
4710         * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
4711         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
4712         sigaction.h.
4713         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
4714         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
4715         siginfo.h.
4716         * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
4717         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
4718         * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
4719         socket.h.
4720         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
4721         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
4722         * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
4723         * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
4724         * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
4725         * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
4726         * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
4727         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
4728         procfs.h.
4729         * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
4730         * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
4731         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
4732         ucontext.h.
4733         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
4734         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
4735
4736 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
4737
4738         * Versions.def (libc): Add GLIBC_2.3.
4739         * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
4740         * stdlib/canonicalize.c: Add compatibility version for realpath
4741         and make new code available in GLIBC_2.3.
4742
4743 2002-07-06  Bruno Haible  <bruno@clisp.org>
4744
4745         * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
4746
4747 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
4748
4749         * resolv/res_hconf.c (_res_hconf_init): Move code into new
4750         function do_init.  Use __libc_once.
4751         (do_init): New function.
4752
4753         * iconvdata/iso8859-11.h: Removed.
4754         * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
4755         (distribute): Remove iso8859-11.h.
4756         * iconvdata/tst-tables.sh: Add ISO-8859-11.
4757
4758         * stdio-common/vfscanf.c (inchar): Restore errno from previous
4759         underflow operation if c == (W)EOF.
4760
4761 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
4762
4763         * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
4764         non-zero, adjust exponent.
4765         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
4766         Remove NO_LONG_DOUBLE aliases.
4767         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
4768         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
4769         (__log1pl): Raise divide by zero and invalid exceptions when needed.
4770         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
4771         1**y and -1**+-Inf.
4772         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
4773         Fix BITS_PER_MP_LIMB 32 extraction.
4774         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
4775         exceptions for qNaNs.
4776         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
4777         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
4778         Raise exceptions when needed.  Don't recurse unnecessarily.
4779         Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
4780         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
4781         exceptions for qNaNs.
4782         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
4783         to fix *quo return value sign.
4784         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
4785         case -Inf argument.
4786         * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
4787
4788 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
4789
4790         * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
4791         * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
4792         -DNDEBUG.
4793
4794 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
4795
4796         * malloc/hooks.c (realloc_check): If mremap succeeds actually use
4797         the result.
4798
4799         * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
4800         output parameter.  Reported by Denis Zaitsev <zzz@cd-club.ru>.
4801
4802         * Versions.def (libthread_db): Add GLIBC_2.3.
4803
4804 2002-07-09  Jakub Jelinek  <jakub@redhat.com>
4805
4806         * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
4807         new stream if possible.
4808         * libio/freopen64.c (freopen64): Likewise.
4809         * libio/Makefile (tests): Add tst-freopen.
4810         * libio/tst-freopen.c: New file.
4811
4812 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
4813
4814         * libio/stdio.h (obstack_printf): Add format attribute.
4815         (obstack_vprintf): Likewise.
4816
4817 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
4818
4819         * posix/regex_internal.h (re_token_t): Shrink the structure to 8
4820         resp. 16 bytes on 32-bit resp. 64-bit platforms.
4821         (re_charset_t, re_string_t): Reorder structure members for 64-bit
4822         architectures.
4823
4824 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
4825
4826         * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
4827         (init_dfa): ...here.
4828
4829 2002-07-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
4830
4831         * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
4832         OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
4833         nodes in parse trees.
4834         (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
4835         and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
4836         (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
4837         nodes which can epsilon transit.
4838         * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
4839         to IS_EPSILON_NODE macro.
4840         * posix/regexec.c (update_regs): New function to update registers
4841         by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
4842         (proceed_next_node): Use the entities of the nodes to determine
4843         whether the node can transit to.
4844         (set_regs): Use update_regs function to update registers.
4845
4846 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
4847
4848         * posix/bug-regex4.c (main): Remove duplicate setlocale.
4849         * posix/bug-regex6.c: New file.
4850         * posix/Makefile (tests): Add bug-regex6.
4851         (bug-regex6-ENV): Set LOCPATH.
4852
4853 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
4854
4855         * Versions.def [libpthread]: Add GLIBC_2.2.6.
4856         * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
4857
4858 2002-07-06  Bruno Haible  <bruno@clisp.org>
4859
4860         * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
4861
4862 2002-07-06  Bruno Haible  <bruno@clisp.org>
4863
4864         * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
4865         declarations.
4866
4867         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
4868
4869         * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
4870
4871         * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
4872         not _UTSNAME_H.
4873         * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
4874
4875         * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
4876         * sysdeps/generic/bits/ustat.h: Likewise.
4877
4878         * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
4879
4880 2002-07-08  Andreas Jaeger  <aj@suse.de>
4881
4882         * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
4883
4884 2002-07-08  Andreas Jaeger  <aj@suse.de>
4885
4886         * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
4887
4888 2002-07-06  Andreas Jaeger  <aj@suse.de>
4889
4890         * sysdeps/x86_64/fpu/bits/mathinline.h: New file.
4891         * sysdeps/x86_64/fpu/s_copysign.S: New file.
4892         * sysdeps/x86_64/fpu/s_copysignf.S: New file.
4893         * sysdeps/x86_64/fpu/s_copysignl.S: New file.
4894         * sysdeps/x86_64/fpu/s_finitel.S: New file.
4895         * sysdeps/x86_64/fpu/s_fmax.S: New file.
4896         * sysdeps/x86_64/fpu/s_fmaxf.S: New file.
4897         * sysdeps/x86_64/fpu/s_fmaxl.S: New file.
4898         * sysdeps/x86_64/fpu/s_fmin.S: New file.
4899         * sysdeps/x86_64/fpu/s_fminf.S: New file.
4900         * sysdeps/x86_64/fpu/s_fminl.S: New file.
4901
4902 2002-06-05  Brian Youmans <3diff@gnu.org>
4903
4904         * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
4905         * sysdeps/ia64/fpu/e_acosf.S: Likewise.
4906         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
4907         * sysdeps/ia64/fpu/e_asin.S: Likewise.
4908         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
4909         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
4910         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
4911         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
4912         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
4913         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
4914         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
4915         * sysdeps/ia64/fpu/e_exp.S: Likewise.
4916         * sysdeps/ia64/fpu/e_expf.S: Likewise.
4917         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
4918         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
4919         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
4920         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
4921         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
4922         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
4923         * sysdeps/ia64/fpu/e_log.S: Likewise.
4924         * sysdeps/ia64/fpu/e_logf.S: Likewise.
4925         * sysdeps/ia64/fpu/e_pow.S: Likewise.
4926         * sysdeps/ia64/fpu/e_powf.S: Likewise.
4927         * sysdeps/ia64/fpu/e_powl.S: Likewise.
4928         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
4929         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
4930         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
4931         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
4932         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
4933         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
4934         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
4935         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
4936         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
4937         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
4938         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
4939         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
4940         * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
4941         * sysdeps/ia64/fpu/libm_error.c: Likewise.
4942         * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
4943         * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
4944         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
4945         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
4946         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
4947         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
4948         * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
4949         * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
4950         * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
4951         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
4952         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
4953         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
4954         * sysdeps/ia64/fpu/s_logb.S: Likewise.
4955         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
4956         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
4957         * sysdeps/ia64/fpu/s_modf.S: Likewise.
4958         * sysdeps/ia64/fpu/s_modff.S: Likewise.
4959         * sysdeps/ia64/fpu/s_modfl.S: Likewise.
4960         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
4961         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
4962         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
4963         * sysdeps/ia64/fpu/s_rint.S: Likewise.
4964         * sysdeps/ia64/fpu/s_rintf.S: Likewise.
4965         * sysdeps/ia64/fpu/s_rintl.S: Likewise.
4966         * sysdeps/ia64/fpu/s_round.S: Likewise.
4967         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
4968         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
4969         * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
4970         * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
4971         * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
4972         * sysdeps/ia64/fpu/s_significand.S: Likewise.
4973         * sysdeps/ia64/fpu/s_significandf.S: Likewise.
4974         * sysdeps/ia64/fpu/s_significandl.S: Likewise.
4975         * sysdeps/ia64/fpu/s_tan.S: Likewise.
4976         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
4977         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
4978         * sysdeps/ia64/fpu/s_trunc.S: Likewise.
4979         * sysdeps/ia64/fpu/s_truncf.S: Likewise.
4980         * sysdeps/ia64/fpu/s_truncl.S: Likewise.
4981         * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
4982         reflect IBM donation of math library to FSF
4983         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
4984         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
4985         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
4986         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
4987         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
4988         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
4989         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
4990         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
4991         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
4992         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
4993         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
4994         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
4995         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
4996         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
4997         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
4998         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
4999         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5000         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
5001         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5002         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
5003         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
5004         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
5005         * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
5006         * sysdeps/vax/__longjmp.c: Likewise.
5007         * sysdeps/vax/setjmp.c: Likewise.
5008         * libio/filedoalloc.c: Fixed BSD copying permission notice to
5009         remove advertising clause
5010         * sysdeps/vax/htonl.s: Likewise.
5011         * sysdeps/vax/htons.s: Likewise.
5012         * libio/wfiledoalloc.c: Likewise.
5013         * stdlib/random.c: Likewise.
5014         * stdlib/random_r.c: Likewise.
5015         * sysdeps/mach/sys/reboot.h: Likewise.
5016         * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
5017         * sysdeps/posix/getaddrinfo.c: Likewise.
5018         * sunrpc/des_impl.c: Updated license permission notice to Lesser
5019         GPL and corrected pointer to point to the correct license.
5020
5021 2002-07-04  Andreas Jaeger  <aj@suse.de>
5022
5023         * scripts/config.guess: New upstream version.
5024         * scripts/config.sub: Likewise.
5025
5026 2002-07-02  Andreas Schwab  <schwab@suse.de>
5027
5028         * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
5029         in parallel to bumping up the buffer pointer.
5030
5031 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
5032
5033         * math/libm-test.inc (acos_test): Add missing L suffix for
5034         expected result.
5035         (cpow_test): Likewise.
5036         * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
5037         error for acos (0.0625).
5038
5039 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
5040
5041         * locale/iso-639.def: Add entry for Ganda.
5042         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
5043         definition.
5044         (address_finish): Handle entries with two letter ISO 639 code.
5045
5046         * iconvdata/Makefile: Recreate gconv-modules.cache file in target
5047         directory if it existed before.
5048         * iconv/iconvconfig.c: Implement --prefix option.
5049
5050         * math/libm-test.inc (cexp_test): Add missing L suffix for
5051         expected result.  Reported by Stephen L Moshier <steve@moshier.net>.
5052         * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
5053         1.25 i).
5054
5055 2002-05-29  H.J. Lu  <hjl@gnu.org>
5056
5057         * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
5058         is turned on.
5059
5060 2002-05-28  H.J. Lu  <hjl@gnu.org>
5061
5062         * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
5063         are not dlopened on the dependency list of a dlopened object.
5064
5065 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
5066
5067         * elf/dl-lookup.c (add_dependency): It is not necessary to add
5068         dependencies if they are created between objects which are created
5069         while processing RTLD_NOW for objects loaded as part of the same
5070         dlopen call.
5071
5072 2002-06-14  H.J. Lu  <hjl@gnu.org>
5073
5074         * elf/Makefile (tests): Add circleload1.
5075         (modules-names): Add circlemod1, circlemod2, circlemod3,
5076         circlemod1a, circlemod2a and circlemod3a.
5077         ($(objpfx)circleload1): New target.
5078         ($(objpfx)circleload1.out): Likewise.
5079         ($(objpfx)circlemod1.so): Likewise.
5080         ($(objpfx)circlemod2.so): Likewise.
5081         ($(objpfx)circlemod1a.so): Likewise.
5082         ($(objpfx)circlemod2a.so): Likewise.
5083         * elf/circleload1.c: New file.
5084         * elf/circlemod1.c: New file.
5085         * elf/circlemod1a.c: New file.
5086         * elf/circlemod2.c: New file.
5087         * elf/circlemod2a.c: New file.
5088         * elf/circlemod3.c: New file.
5089         * elf/circlemod3a.c: New file.
5090
5091 2002-06-18  Amos Waterland  <apw@us.ibm.com>
5092
5093         * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
5094         file descriptor.
5095         * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
5096         add check for fd not open for writing.
5097
5098         * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
5099         completed element(s) and do not suspend thread if so.  Patch
5100         heavily modified by drepper.
5101
5102         * rt/tst-aio7.c: New file.  Regression test for problems which the
5103         above three changes fix.
5104         * rt/Makefile (tests): Add tst-aio7.
5105
5106 2002-06-29  Ulrich Drepper  <drepper@redhat.com>
5107
5108         * rt/tst-aio6.c: Fix comment.
5109
5110         * catgets/gencat.c (read_input_file): Handle more than one slash
5111         at end of line correctly [PR libc/3926].
5112         Based on a patch by Steven Kim <steven.kim@peregrine.com>.
5113
5114         * catgets/sample.SJIS: Add test case for above bug.
5115         * catgets/test-gencat.c: Adjust test code.
5116         * catgets/test-gencat.sh: Adjust expected results.
5117
5118         * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
5119         to skip relative relocations.
5120         Patch by Geoff Keating <geoffk@redhat.com>.
5121
5122 2002-05-26  Bruno Haible  <bruno@clisp.org>
5123
5124         * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
5125         (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
5126         All callers changed.
5127         * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
5128         STANDARD_FROM_LOOP_ERR_HANDLER.
5129         (utf8_internal_loop): Likewise.
5130         (ucs2_internal_loop): Likewise.
5131         (internal_ucs2_loop): Perform error handling like in
5132         STANDARD_FROM_LOOP_ERR_HANDLER.
5133         * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
5134         in STANDARD_FROM_LOOP_ERR_HANDLER.
5135         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5136         handling.
5137         * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
5138         in STANDARD_FROM_LOOP_ERR_HANDLER.
5139         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5140         handling.
5141         * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
5142         in STANDARD_FROM_LOOP_ERR_HANDLER.
5143         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5144         handling.
5145         * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
5146         STANDARD_FROM_LOOP_ERR_HANDLER.
5147         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
5148         * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
5149         * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
5150         * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
5151         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
5152         * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
5153         * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
5154         * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
5155         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
5156         * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
5157         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
5158         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
5159         * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
5160         * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
5161         * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
5162         * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
5163         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
5164         * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
5165         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
5166         * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
5167         * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
5168         * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
5169         * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
5170         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5171         * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
5172         * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
5173         * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
5174         * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
5175         * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise.  When ignoring
5176         an error, still set result = __GCONV_ILLEGAL_INPUT.
5177         (BODY for TO_LOOP): Likewise.
5178         * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
5179         STANDARD_FROM_LOOP_ERR_HANDLER.
5180         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5181         * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
5182         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5183         handling.
5184         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5185         * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
5186         STANDARD_FROM_LOOP_ERR_HANDLER.
5187         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5188         * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
5189         STANDARD_FROM_LOOP_ERR_HANDLER.
5190         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5191         * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
5192         STANDARD_FROM_LOOP_ERR_HANDLER.
5193         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5194         * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
5195         STANDARD_FROM_LOOP_ERR_HANDLER.
5196         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5197         * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
5198         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5199         handling.
5200         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5201         * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
5202         * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
5203         * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
5204
5205 2002-06-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5206
5207         * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
5208         labels in assembler instructions.
5209
5210 2002-06-25  Ulrich Drepper  <drepper@redhat.com>
5211
5212         * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
5213         not enough content is available.
5214         * libio/tst-eof.c: New file.
5215         * libio/Makefile (tests): Add tst-eof.
5216
5217         * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
5218         update atime.
5219         * libio/tst-atime.c: New file.
5220         * libio/Makefile (tests): Add tst-atime.
5221
5222         * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
5223         handling of overly long words.
5224
5225 2002-06-25  Andreas Jaeger  <aj@suse.de>
5226
5227         * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
5228         to not use 32-bit pc relative relocations.
5229         (elf_machine_dynamic): Likewise.
5230
5231 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
5232
5233         * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
5234         (__GETDENTS): Check for failed getdents64 syscall.
5235         * dirent/Makefile (tests): Add bug-readdir1.
5236         * dirent/bug-readdir1.c: New file.
5237
5238 2002-06-17  Jakub Jelinek  <jakub@redhat.com>
5239
5240         * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
5241         lookups.
5242         * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
5243         code.  Print TLS modid and offset for modules containing PT_TLS
5244         segments.
5245
5246 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
5247
5248         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5249         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5250         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5251         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5252
5253 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
5254
5255         * nss/getXXbyYY_r.c (NEW, NEW1): Define.
5256         (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
5257         (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
5258         * nss/getXXent_r.c (NEW, NEW1): Define.
5259         (NEW (REENTRANT_GETNAME)): Strong alias to
5260         INTERNAL (REENTRANT_GETNAME).
5261         (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
5262
5263 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
5264
5265         * libio/fileops.c (_IO_file_setbuf_mmap): New function.
5266         (_IO_file_jumps_mmap): Use it.
5267         * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
5268         * libio/libioP.h: Remove _IO_wdefault_setbuf and
5269         _IO_wdefault_setbuf_internal prorotypes.  Add _IO_file_setbuf_mmap
5270         prototype.
5271         * libio/wfileops.c (_IO_wfile_setbuf): Removed.
5272         (_IO_wfile_jumps_mmap): Don't use it anymore.
5273         * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
5274         * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
5275         _IO_wdefault_setbuf.
5276         * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
5277         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
5278         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
5279
5280 2002-06-05  Jakub Jelinek  <jakub@redhat.com>
5281
5282         * libio/Makefile (tests): Add tst-mmap-setvbuf.
5283         * libio/tst-mmap-setvbuf.c: New test.
5284
5285 2002-06-21  Andreas Jaeger  <aj@suse.de>
5286
5287         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
5288
5289 2002-06-18  Jakub Jelinek  <jakub@redhat.com>
5290
5291         * include/unistd.h (__fork_internal): Remove.
5292         (__fork): Don't define to __fork_internal.
5293         * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
5294         * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
5295         * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
5296         * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
5297         * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
5298
5299 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
5300
5301         * po/hr.po: New file.
5302
5303 2002-06-11  Wolfram Gloger  <wg@malloc.de>
5304
5305         * malloc/malloc.c: Fix error path when new_heap() returns NULL.
5306         Reported by Michael Meissner <meissner@redhat.com>.
5307
5308 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
5309
5310         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
5311         Patch by Hans Boehm <hans_boehm@hp.com>.
5312
5313 2002-06-20  Andreas Jaeger  <aj@suse.de>
5314
5315         * math/libm-test.inc: Use exact values as input parameters,
5316         compute output parameters with 36 digits for 128-bit long doubles.
5317         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
5318         * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
5319         * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
5320
5321 2002-06-13  Stephen L Moshier  <steve@moshier.net>
5322
5323         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
5324         argument or result is subnormal.
5325
5326 2002-06-19  Ulrich Drepper  <drepper@redhat.com>
5327
5328         * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
5329         quotient.
5330         * sysdeps/i386/fpu/s_remquof.S: Likewise.
5331         * sysdeps/i386/fpu/s_remquol.S: Likewise.
5332
5333         * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
5334
5335 2002-06-17  David Mosberger  <davidm@hpl.hp.com>
5336
5337         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
5338         typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
5339         Reported by Peter A. Buhr.
5340
5341 2002-06-15  Roland McGrath  <roland@frob.com>
5342
5343         * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
5344         warning.
5345
5346         * sysdeps/mach/hurd/getcwd.c
5347         (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
5348
5349         * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
5350         * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
5351
5352         * sysdeps/alpha/divrem.h: Use local label instead of global one for
5353         jump to local subroutine.
5354
5355 2002-06-14  Roland McGrath  <roland@frob.com>
5356
5357         * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
5358         * sysdeps/mach/hurd/Makeconfig: ... here.
5359
5360 2002-06-13  Andreas Schwab  <schwab@suse.de>
5361
5362         * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
5363         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
5364         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
5365
5366 2002-06-13  Roland McGrath  <roland@frob.com>
5367
5368         * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
5369         * hurd/hurdstartup.c (_hurd_startup): Likewise.
5370         Use intptr_t instead of int for argc in stack layout.
5371         * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
5372         (_dl_init_first): Likewise.
5373         (_hurd_stack_setup): Likewise.
5374         (init1): Add a cast.
5375         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
5376
5377         * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
5378         argument to pfinet_siocgifconf RPC.
5379
5380 2002-06-13  Andreas Schwab  <schwab@suse.de>
5381
5382         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
5383         expansion order.
5384
5385 2002-06-12  Roland McGrath  <roland@frob.com>
5386
5387         * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
5388         if already defined.
5389         [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
5390         [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
5391
5392 2002-06-11  Roland McGrath  <roland@frob.com>
5393
5394         * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
5395         file on [!RTLD_STAT64].
5396         * sysdeps/mach/hurd/fxstat64.c: Likewise.
5397
5398         * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
5399         (__fdopen): Use INTUSE.
5400         * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
5401
5402         * stdio-common/tmpfile64.c: File removed.
5403         * sysdeps/generic/tmpfile64.c: New file.
5404         * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
5405         if not already defined.
5406         (tmpfile): Use it in place of __GT_FILE.
5407
5408         * include/unistd.h: Declare __chown_internal.
5409
5410         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
5411         * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
5412
5413 2002-06-09  Roland McGrath  <roland@frob.com>
5414
5415         Update to new Hurd RPC interfaces supporting 64-bit file sizes.
5416         * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
5417         value of HURD_INTERFACE_VERSION >= 20020609.
5418         * sysdeps/mach/hurd/configure: Regenerated.
5419         * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
5420         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
5421         convert a struct stat64 into a struct stat and return 0 or -1
5422         with errno set to EOVERFLOW.
5423         * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
5424         for struct statfs64 to struct statfs.
5425         * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
5426         * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
5427         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
5428         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
5429         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
5430         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
5431         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
5432         * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
5433         * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
5434         * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
5435         * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
5436         * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
5437         * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
5438         * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
5439         * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
5440         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
5441         * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
5442         * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
5443         * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
5444         * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
5445         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
5446         Use struct stat64 for io_stat argument.
5447         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
5448         * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
5449         to io_seek.
5450         * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
5451         * hurd/fd-write.c (_hurd_fd_write): Likewise.
5452         * hurd/hurd/fd.h: Update decls.
5453         * sysdeps/mach/hurd/getcwd.c
5454         (_hurd_canonicalize_directory_name_internal): Use ino64_t
5455         and struct dirent64.
5456         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
5457         (__xstat): Renamed to __xstat64, use struct stat64 for argument.
5458         (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
5459         (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
5460
5461 2002-06-08  Roland McGrath  <roland@frob.com>
5462
5463         * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
5464         instead of unsigned long int for __allocation and __size members.
5465
5466 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
5467
5468         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5469         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5470         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5471         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5472
5473 2002-06-07  Roland McGrath  <roland@frob.com>
5474
5475         * sysdeps/mach/hurd/bits/environments.h: File removed.
5476
5477 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
5478
5479         * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
5480         * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
5481         * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
5482         * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
5483         * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
5484         (sendfile64): Likewise.
5485         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
5486         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
5487         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
5488         Likewise.
5489         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
5490
5491         * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
5492         already defined.
5493
5494 2002-06-04  Bruno Haible  <bruno@clisp.org>
5495
5496         * sysdeps/cris/stackinfo.h: New file.
5497
5498         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
5499         to an integer type before performing bit operations on it.
5500
5501 2002-06-05  Roland McGrath  <roland@frob.com>
5502
5503         * sysdeps/generic/sendfile.c: Include <errno.h>.
5504         * sysdeps/generic/sendfile64.c: Likewise.
5505
5506         * io/Makefile (routines): Add sendfile and sendfile64.
5507         (headers): Add sys/sendfile.h to the list.
5508         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
5509         * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
5510         * io/sys/sendfile.h: ... here.
5511         * sysdeps/generic/sendfile.c: New file.
5512         * sysdeps/generic/sendfile64.c: New file.
5513
5514         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
5515         Move sendfile, sendfile64 to ...
5516         * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
5517         * sysdeps/mach/hurd/sendfile.c: New file.
5518         * sysdeps/mach/hurd/sendfile64.c: New file.
5519
5520         * sysdeps/mach/nanosleep.c: New file.
5521
5522 2002-06-04  Roland McGrath  <roland@frob.com>
5523
5524         * sysdeps/alpha/elf/configure.in: New file.  Check for TLS support.
5525         * sysdeps/alpha/elf/configure: New file (generated).
5526
5527 2002-06-02  Roland McGrath  <roland@frob.com>
5528
5529         * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
5530
5531 2002-06-01  Roland McGrath  <roland@frob.com>
5532
5533         * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
5534         i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
5535
5536 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
5537
5538         * resolv/resolv.h (struct __res_state): Remove unused nstimes.
5539         Add nsmap.
5540         * resolv/res_init.c (__res_vinit): Initialize nsmap array.
5541         Remove nstimes setting.
5542         (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
5543         * resolv/res_send.c (res_nsend): Don't close unconditionally if
5544         there is mix of IPv6 and IPv4 nameservers.
5545         Use nsmap array to find free slots and preserve nameserver ordering.
5546         Fix RES_ROTATE.
5547
5548 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
5549
5550         * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
5551         use this header with LFS.
5552
5553         * po/sk.po: Update from translation team.
5554
5555 2002-05-28  Andreas Schwab  <schwab@suse.de>
5556
5557         * sysdeps/generic/readelflib.c (process_elf_file): Give correct
5558         message when finding object of wrong class.
5559
5560 2002-05-28  Jakub Jelinek  <jakub@redhat.com>
5561
5562         * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
5563         Patch by <radu@netsoft.ro>.
5564
5565 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
5566
5567         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
5568         Add readahead.
5569         * sysdeps/unix/sysv/linux/readahead.c: New file.
5570         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
5571         * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
5572         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
5573         Add sendfile64 alias to sendfile syscall.
5574         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5575         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
5576         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5577         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
5578         syscall.
5579
5580         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
5581         special section for PIC register loading.
5582         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
5583
5584         * config.h.in: Define HAVE_HIDDEN.
5585         * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
5586
5587         * elf/elf.h: Correct Alpha TLS relocations according to last spec.
5588
5589 2002-05-28  Roland McGrath  <roland@frob.com>
5590
5591         * sysdeps/mach/alpha/setfpucw.c: New file.
5592
5593 2002-05-26  Roland McGrath  <roland@frob.com>
5594
5595         * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
5596         Use integer_t instead of int for IOC_VOID case.
5597
5598 2002-05-27  Alexandre Oliva  <aoliva@redhat.com>
5599
5600         * configure.in (DO_STATIC_NSS): Define if --disable-shared.
5601
5602 2002-05-26  Bruno Haible  <bruno@clisp.org>
5603
5604         * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
5605         end of the ISO-8859-7 from idx table.
5606
5607 2002-05-27  Ulrich Drepper  <drepper@redhat.com>
5608
5609         * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
5610
5611 2002-05-24  David S. Miller  <davem@redhat.com>
5612
5613         * string/bits/string2.h (memset): Do not try to optimize when
5614         not _STRING_ARCH_unaligned if GCC will do the right thing.
5615
5616 2002-05-21  Isamu Hasegawa  <isamu@yamato.ibm.com>
5617
5618         * posix/regex.c: Define `inline' as a macro into nothing for the
5619         compilers which lack the keyword.
5620         * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
5621         for the compatibility of gawk.
5622         * posix/regcomp.c: Add fake implementation of isblank() for the
5623         environments which lack the function.
5624         Don't use free_charset() in case of non-i18n envs.
5625         (build_range_exp): Don't use i18n related code in case of non-i18n
5626         envs.
5627         (build_collating_symbol): Likewise.
5628         (build_equiv_class): Likewise.
5629         (build_charclass): Likewise.
5630         (re_compile_fastmap_iter): Likewise.
5631         (parse_bracket_exp): Likewise.
5632         (build_word_op): Likewise.
5633         (regfree): Don't use free_charset() in case of non-i18n envs.
5634         * posix/regex_internal.h: Remove COMPLEX_BRACKET from
5635         re_token_type_t in case of non-i18n envs.
5636         Don't define re_charset_t in case of non-i18n envs.
5637         Change the type of wcs of re_string_t from wchar_t to wint_t,
5638         since we store also WEOF.
5639         * posix/regex_internal.c: (re_string_realloc_buffers): Change
5640         the type of wcs of re_string_t from wchar_t to wint_t.
5641         (re_string_reconstruct): Likewise.
5642         (create_ci_newstate): Don't use i18n related code in case of
5643         non-i18n envs.
5644         (create_cd_newstate): Likewise.
5645
5646 2002-05-24  Ulrich Drepper  <drepper@redhat.com>
5647
5648         * iconv/loop.c: Fix typo.
5649
5650 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
5651
5652         * inet/ether_line.c (ether_line): Fix a typo causing only
5653         lower 4 bits of each ethernet address byte being assigned.
5654         Don't modify what line points to.
5655         * inet/tst-ether_aton.c (main): Add ether_line tests.
5656
5657 2002-05-23  Marcus Brinkmann  <marcus@gnu.org>
5658
5659         * manual/filesys.texi: Don't make readlink example leak memory
5660         when readlink fails.
5661
5662 2002-05-20  Ulrich Drepper  <drepper@redhat.com>
5663
5664         * iconv/loop.c: Fix condition for defining unaligned loop.  Add
5665         some more security checks.
5666
5667 2002-05-17  David S. Miller  <davem@redhat.com>
5668
5669         * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
5670
5671 2002-05-16  David S. Miller  <davem@redhat.com>
5672
5673         * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
5674         (elf_machine_dynamic): Use it to force PIC register to be loaded.
5675         (elf_machine_load_address): Likewise.
5676         * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
5677
5678         * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
5679         is unaligned, do not forget to fully initialize %g1 magic value.
5680
5681         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
5682         register definitions and provide 32-bit variants of structures
5683         during 64-bit builds.
5684
5685         * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
5686         * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
5687         * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
5688         * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
5689         _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
5690         (_FP_FROM_INT): Perform right shifts on unsigned integer type.
5691         Do not clear implicit one bit here, it must be done post-rounding.
5692         Only pad to the left using left shift if value uses less than the
5693         available fractional bits.
5694
5695 2002-05-20  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5696
5697         * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
5698         instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
5699         (shared-only-routines): Likewise.
5700         * sysdeps/powerpc/libgcc-compat.c: New file.
5701         * sysdeps/wordsize-32/cmpdi2.c: Removed.
5702         * sysdeps/wordsize-32/fixdfdi.c: Removed.
5703         * sysdeps/wordsize-32/fixsfdi.c: Removed.
5704         * sysdeps/wordsize-32/shdi3.c: Removed.
5705
5706 2002-05-16  Bruno Haible  <bruno@clisp.org>
5707
5708         * MakeTAGS (libc.pot): Don't sort the output.
5709         * po/header.pot: Update to match xgettext 0.11 output.
5710
5711 2002-05-16  Bruno Haible  <bruno@clisp.org>
5712
5713         * MakeTAGS (subdirs): Remove duplicates.
5714
5715 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
5716
5717         * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
5718         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
5719         alias.
5720
5721 2002-05-19  Andreas Jaeger  <aj@suse.de>
5722
5723         * sysdeps/unix/sysv/linux/configure.in: Warn against an
5724         installation in /usr/local.
5725
5726 2002-05-16  Bruno Haible  <bruno@clisp.org>
5727
5728         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
5729         string as argument of #error.
5730
5731 2002-05-15  Ulrich Drepper  <drepper@redhat.com>
5732
5733         * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
5734         don't define static.  Remove old __realpath function.  TC1 of
5735         POSIX 2001 will allow the second parameter to be NULL.
5736         * stdlib/test-canon.c: Comment out test for NULL as second
5737         parameter of realpath.
5738
5739         * time/offtime.c (__offtime): Set errno if overflow is detected.
5740
5741         * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
5742         * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
5743         dl-brk and dl-sbrk.
5744
5745         * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
5746         (fdimf): Likewise.
5747
5748 2002-05-15  Roland McGrath  <roland@frob.com>
5749
5750         * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
5751
5752 2002-05-12  Bruno Haible  <bruno@clisp.org>
5753
5754         * iconvdata/testdata/EUC-JISX0213: New file.
5755         * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
5756         * iconvdata/testdata/SHIFT_JISX0213: New file.
5757         * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
5758         * iconvdata/testdata/ISO-2022-JP-3: New file.
5759         * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
5760         * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
5761         * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
5762         contains comments indicating precomposed characters.
5763
5764 2002-04-21  Bruno Haible  <bruno@clisp.org>
5765
5766         * iconvdata/iso-2022-jp-3.c: New file.
5767         * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
5768         * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
5769         (LDFLAGS-ISO-2022-JP-3.so): New variable.
5770         (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
5771         (distribute): Add iso-2022-jp-3.c.
5772
5773 2002-05-12  Bruno Haible  <bruno@clisp.org>
5774
5775         * iconvdata/tst-table-to.c (main): Restore handling of
5776         transliterations, broken by last patch.
5777
5778 2002-05-12  Bruno Haible  <bruno@clisp.org>
5779
5780         * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
5781
5782 2002-05-12  Bruno Haible  <bruno@clisp.org>
5783
5784         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
5785         when there is not enough room in the output buffer.
5786         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5787
5788 2002-04-20  Bruno Haible  <bruno@clisp.org>
5789
5790         * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
5791         macros.
5792         (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
5793         Also make this macro work if FROM_DIRECTION evaluates to 0.
5794         (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
5795         (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
5796         of consume_incomplete.
5797         * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
5798         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
5799         4, not 8.
5800         * iconvdata/cp1258.c: Likewise.
5801         * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
5802         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
5803         not 2.
5804         * iconvdata/ibm933.c: Likewise.
5805         * iconvdata/ibm935.c: Likewise.
5806         * iconvdata/ibm937.c: Likewise.
5807         * iconvdata/ibm939.c: Likewise.
5808         * iconvdata/iso-2022-cn.c: Define
5809         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5810         {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
5811         * iconvdata/iso-2022-cn-ext.c: Likewise.
5812         * iconvdata/iso-2022-jp.c: Define
5813         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5814         {MIN,MAX}_NEEDED_{FROM,TO}.
5815         * iconvdata/tcvn5712-1.c: Define
5816         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5817         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
5818         * iconvdata/euc-jisx0213.c: Define
5819         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5820         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
5821         * iconvdata/shift_jisx0213.c: Likewise.
5822
5823 2002-05-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5824
5825         * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
5826         shdi3, fixdfdi, fixsfdi in csu dir.
5827         (shared-only-routines): Likewise.
5828         * sysdeps/wordsize-32/cmpdi2.c: New file.
5829         * sysdeps/wordsize-32/shdi3.c: New file.
5830         * sysdeps/wordsize-32/fixdfdi.c: New file.
5831         * sysdeps/wordsize-32/fixsfdi.c: New file.
5832         * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
5833         __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
5834         __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
5835
5836         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
5837         Only use va_arg if the argument will be used [PR libc/3259].
5838
5839 2002-05-06  Michael A. Schmidt  <mmaass@us.ibm.com>
5840
5841         * catgets/catgets.c (catopen): Free buffer if internal catalog
5842         open fails.
5843
5844 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
5845
5846         * debug/xtrace.sh: Make more robust.  For realtime tracking use
5847         non-buffering methods.
5848         * debug/pcprofiledump.c: Implement -u option.
5849         Patch by Roger Luethi <rl@hellgate.ch>.
5850
5851 2002-05-11  Jakub Jelinek  <jakub@redhat.com>
5852
5853         * include/netinet/in.h (bindresvport_internal): Add prototype.
5854         * include/rpc/auth.h  (authunix_create_internal,
5855         authunix_create_default_internal, authnone_create_internal,
5856         authdes_pk_create_internal): Add prototypes.
5857         * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
5858         clntudp_create_internal, clntudp_bufcreate_internal,
5859         clntunix_create_internal): Add prototypes.
5860         * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
5861         svc_getreq_internal, svc_getreq_common_internal,
5862         svc_getreqset_internal, svc_getreq_poll_internal,
5863         svc_register_internal, svc_unregister_internal,
5864         svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
5865         * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
5866         * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
5867         __setsockopt, __getsockname, __bind, __listen): Add prototypes.
5868         * inet/rexec.c (rexec_af): Use __listen and __getsockname.
5869         * inet/rcmd.c (rcmd_af): Use __listen.
5870         (rresvport_af): Use __bind.
5871         * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
5872         authunix_create, authunix_create_default, authnone_create,
5873         authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
5874         clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
5875         svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
5876         svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
5877         _authenticate, add INTDEF after such function definitions.
5878         Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
5879         __setsockopt, __getsockname instead of non-__ variants.
5880         * sunrpc/pmap_rmt.c: Likewise.
5881         * sunrpc/rtime.c: Likewise.
5882         * sunrpc/svc_udp.c: Likewise.
5883         * sunrpc/clnt_unix.c: Likewise.
5884         * sunrpc/svc_unix.c: Likewise.
5885         * sunrpc/bindrsvprt.c: Likewise.
5886         * sunrpc/svc_tcp.c: Likewise.
5887         * sunrpc/auth_none.c: Likewise.
5888         * sunrpc/clnt_raw.c: Likewise.
5889         * sunrpc/clnt_tcp.c: Likewise.
5890         * sunrpc/auth_unix.c: Likewise.
5891         * sunrpc/key_call.c: Likewise.
5892         * sunrpc/clnt_gen.c: Likewise.
5893         * sunrpc/pm_getmaps.c: Likewise.
5894         * sunrpc/clnt_simp.c: Likewise.
5895         * sunrpc/pmap_clnt.c: Likewise.
5896         * sunrpc/svc_run.c: Likewise.
5897         * sunrpc/svc.c: Likewise.
5898         * sunrpc/svc_simple.c: Likewise.
5899         * sunrpc/pm_getport.c: Likewise.
5900         * sunrpc/auth_des.c: Likewise.
5901         * sunrpc/svc_auth.c: Likewise.
5902         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
5903         __register_frame_info_table_bases, __deregister_frame_info_bases):
5904         Add INTDEF.
5905         (__register_frame_info_bases_internal,
5906         __register_frame_info_table_bases_internal,
5907         __deregister_frame_info_bases_internal): Add prototypes.
5908         (__register_frame_info, __register_frame): Use INTUSE in call to
5909         __register_frame_info_bases.
5910         (__register_frame_info_table): Similarly.
5911         (__deregister_frame_info, __deregister_frame): Similarly.
5912         * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
5913         sendto as weak alias.
5914         * sysdeps/mach/hurd/sendto.c: Likewise.
5915         * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
5916         recvfrom as weak alias.
5917         * sysdeps/mach/hurd/recvfrom.c: Likewise.
5918         * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
5919         * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
5920         recvmsg as weak alias.
5921         * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
5922         * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
5923         sendmsg as weak alias.
5924         * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
5925         * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
5926         setsockopt, add setsockopt as weak alias.
5927         * sysdeps/mach/hurd/setsockopt.c: Likewise.
5928         * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
5929         weak alias.
5930         * sysdeps/mach/hurd/bind.c: Likewise.
5931         * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
5932         as weak alias.
5933         * sysdeps/mach/hurd/listen.c: Likewise.
5934         * sysdeps/generic/getsockname.c (__getsockname): Renamed from
5935         getsockname, add getsockname as weak alias.
5936         * sysdeps/mach/hurd/getsockname.c: Likewise.
5937         * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
5938         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
5939         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
5940         * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
5941         __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
5942         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
5943         Add aliases.
5944         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5945         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5946         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
5947         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5948         * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
5949         * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
5950         * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
5951         * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
5952         * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
5953         * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
5954         * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
5955         * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
5956
5957 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
5958
5959         * locale/programs/localedef.h (show_archive_content): Add verbose
5960         argument.
5961         * locale/programs/localedef.c (main): Adjust caller.
5962         * locale/programs/locarchive.c (struct nameent, struct dataent): New
5963         types.
5964         (nameentcmp, dataentcmp): New functions.
5965         (xstrcmp): Remove.
5966         (show_archive_content): Print verbose listing with --list-archive -v.
5967
5968 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
5969
5970         * locale/programs/locarchive.c (open_archive): Take extra argument
5971         readonly.  If true open file with O_RDONLY and don't create the
5972         archive if it doesn't exist.
5973         Adapt all callers.
5974         (close_archive): Don't do anything if fd element is -1.
5975         * locale/programs/localedef.h (open_archive): Adjust prototype.
5976         * locale/programs/locfile.c (write_all_categories): Adjust open_archive
5977         call.
5978
5979         * malloc/malloc.c (__posix_memalign): Correct check for size of
5980         alignment value [PR libc/3444].
5981
5982         * include/stdio.h: Remove references to old stdio implementation.
5983
5984         * libio/Makefile (bug-ungetwc2-ENV): Define.
5985
5986 2002-05-13  Roland McGrath  <roland@frob.com>
5987
5988         * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
5989
5990         * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
5991
5992 2002-05-13  Marcus Brinkmann  <marcus@gnu.org>
5993
5994         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
5995         Allocate three, not two, more than LEN when appending '/.'.
5996         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.  Don't check
5997         if NAME ends with '/.' if it is shorter than 2 chars.
5998
5999 2002-05-12  Roland McGrath  <roland@frob.com>
6000
6001         * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
6002         files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
6003
6004         * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
6005         file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
6006
6007 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
6008
6009         * sysdeps/ia64/Makefile: Remove extra endif.
6010         * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
6011
6012 2002-05-10  Andreas Schwab  <schwab@suse.de>
6013
6014         * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
6015
6016 2002-05-09  Andreas Jaeger  <aj@suse.de>
6017
6018         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New file.
6019         * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
6020         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
6021
6022         * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
6023         * sysdeps/wordsize-64/glob.c: ...here.
6024         * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
6025         * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
6026         * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
6027
6028 2002-05-08  Roland McGrath  <roland@frob.com>
6029
6030         * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
6031         O_NOTRANS flag in "." lookup.
6032
6033 2002-05-05  Ulrich Drepper  <drepper@redhat.com>
6034
6035         * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
6036
6037 2002-05-04  Ulrich Drepper  <drepper@redhat.com>
6038
6039         * locale/duplocale.c (__duplocale): Update special members only
6040         when allocation succeeded.
6041
6042 2002-05-03  Roland McGrath  <roland@frob.com>
6043
6044         * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
6045         we can only build libc.so.0.3(GLIBC_2.2.6) now.
6046
6047 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
6048
6049         * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
6050         * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
6051         __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
6052         * sysdeps/ia64/ia64libgcc.S: New file.
6053
6054 2002-05-02  Ulrich Drepper  <drepper@redhat.com>
6055
6056         * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
6057
6058         * malloc/memusage.c: Distinguish anonymous mmap.
6059
6060 2002-05-01  Roland McGrath  <roland@frob.com>
6061
6062         * sysdeps/mach/hurd/close.c: #undef __close before function defn,
6063         and use INTDEF on it.
6064         * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
6065
6066         * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
6067
6068         * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
6069
6070 2002-05-01  Ulrich Drepper  <drepper@redhat.com>
6071
6072         * malloc/memusage.c: Add support for tracking mmap & friends.
6073         * malloc/memusage.sh: Implement -m/--mmap option.
6074
6075 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
6076
6077         * locale/programs/locarchive.c (create_archive): Add archivefname
6078         argument, create fname from it.
6079         (enlarge_archive): Honour output_prefix.
6080         (open_archive): Likewise.
6081
6082 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
6083
6084         * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
6085         too many stpcpy macros.
6086
6087 2002-04-26  Bruno Haible  <bruno@clisp.org>
6088
6089         * locale/programs/ld-collate.c (collate_read): Cast first argument
6090         for "%.*s" to int.
6091
6092 2002-04-26  Bruno Haible  <bruno@clisp.org>
6093
6094         * include/libintl.h (__ngettext, __dngettext, __dcngettext,
6095         __dcngettext_internal): New declarations.
6096         (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
6097         attribute declarations.
6098
6099 2002-04-30  Roland McGrath  <roland@frob.com>
6100
6101         Removed old GNU stdio implementation; GNU libio is now the only option.
6102         * configure.in: Removed --enable-libio option and @stdio@ subst var.
6103         Define USE_IN_LIBIO unconditionally.
6104         * configure: Regenerated.
6105         * Makeconfig (stdio): Set to libio by default.
6106         * config.make.in (stdio): Variable removed.
6107         * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
6108         * sysdeps/unix/sysv/linux/configure: Regenerated.
6109         * sysdeps/mach/hurd/configure.in: Don't test $stdio.
6110         * sysdeps/mach/hurd/configure: Regenerated.
6111         * stdio/.cvsignore: File removed.
6112         * stdio/Makefile: File removed.
6113         * stdio/Versions: File removed.
6114         * stdio/__fbufsize.c: File removed.
6115         * stdio/__flbf.c: File removed.
6116         * stdio/__fpending.c: File removed.
6117         * stdio/__fpurge.c: File removed.
6118         * stdio/__freadable.c: File removed.
6119         * stdio/__freading.c: File removed.
6120         * stdio/__fsetlocking.c: File removed.
6121         * stdio/__fwritable.c: File removed.
6122         * stdio/__fwriting.c: File removed.
6123         * stdio/clearerr.c: File removed.
6124         * stdio/fclose.c: File removed.
6125         * stdio/fcloseall.c: File removed.
6126         * stdio/feof.c: File removed.
6127         * stdio/ferror.c: File removed.
6128         * stdio/fflush.c: File removed.
6129         * stdio/fgetc.c: File removed.
6130         * stdio/fgetpos.c: File removed.
6131         * stdio/fgets.c: File removed.
6132         * stdio/fileno.c: File removed.
6133         * stdio/fmemopen.c: File removed.
6134         * stdio/fopen.c: File removed.
6135         * stdio/fopncook.c: File removed.
6136         * stdio/fputc.c: File removed.
6137         * stdio/fputs.c: File removed.
6138         * stdio/fread.c: File removed.
6139         * stdio/freopen.c: File removed.
6140         * stdio/fseek.c: File removed.
6141         * stdio/fsetpos.c: File removed.
6142         * stdio/ftell.c: File removed.
6143         * stdio/fwrite.c: File removed.
6144         * stdio/getc.c: File removed.
6145         * stdio/getchar.c: File removed.
6146         * stdio/getdelim.c: File removed.
6147         * stdio/gets.c: File removed.
6148         * stdio/glue.c: File removed.
6149         * stdio/internals.c: File removed.
6150         * stdio/linewrap.c: File removed.
6151         * stdio/linewrap.h: File removed.
6152         * stdio/memstream.c: File removed.
6153         * stdio/newstream.c: File removed.
6154         * stdio/obstream.c: File removed.
6155         * stdio/putc.c: File removed.
6156         * stdio/putchar.c: File removed.
6157         * stdio/puts.c: File removed.
6158         * stdio/rewind.c: File removed.
6159         * stdio/setbuf.c: File removed.
6160         * stdio/setbuffer.c: File removed.
6161         * stdio/setlinebuf.c: File removed.
6162         * stdio/setvbuf.c: File removed.
6163         * stdio/stdio.h: File removed.
6164         * stdio/ungetc.c: File removed.
6165         * stdio/vasprintf.c: File removed.
6166         * stdio/vscanf.c: File removed.
6167         * stdio/vsnprintf.c: File removed.
6168         * stdio/vsprintf.c: File removed.
6169         * stdio/vsscanf.c: File removed.
6170         * sysdeps/generic/defs.c: File removed.
6171         * sysdeps/generic/fdopen.c: File removed.
6172         * sysdeps/generic/pipestream.c: File removed.
6173         * sysdeps/generic/stdio_init.c: File removed.
6174         * sysdeps/generic/sysd-stdio.c: File removed.
6175         * sysdeps/generic/vdprintf.c: File removed.
6176         * sysdeps/mach/hurd/defs.c: File removed.
6177         * sysdeps/mach/hurd/fdopen.c: File removed.
6178         * sysdeps/mach/hurd/pipestream.c: File removed.
6179         * sysdeps/mach/hurd/stdio_init.c: File removed.
6180         * sysdeps/mach/hurd/sysd-stdio.c: File removed.
6181         * sysdeps/mach/hurd/vdprintf.c: File removed.
6182         * sysdeps/posix/defs.c: File removed.
6183         * sysdeps/posix/fdopen.c: File removed.
6184         * sysdeps/posix/pipestream.c: File removed.
6185         * sysdeps/posix/stdio_init.c: File removed.
6186         * sysdeps/posix/vdprintf.c: File removed.
6187         * sysdeps/unix/pipestream.c: File removed.
6188         * sysdeps/unix/sysv/sysd-stdio.c: File removed.
6189         * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
6190         * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
6191
6192 2002-04-29  Roland McGrath  <roland@frob.com>
6193
6194         * include/libc-symbols.h (link_warning): Use `unused' attribute.
6195
6196 2002-04-28  Ulrich Drepper  <drepper@redhat.com>
6197
6198         * sysdeps/generic/tls.h: Describe what must be defined.
6199
6200         * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
6201         glob_in_dir [PR libc/3385].
6202         * posix/globtest.sh: Add test case.
6203
6204         * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
6205         //TRANSLIT twice.
6206
6207 2002-04-27  Ulrich Drepper  <drepper@redhat.com>
6208
6209         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
6210         _internal symbol handling.
6211         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6212
6213 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
6214
6215         * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
6216         * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
6217
6218 2002-04-26  Isamu Hasegawa  <isamu@yamato.ibm.com>
6219
6220         * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
6221         not _LIBC and RE_ENABLE_I18N.
6222         (build_range_exp): Implement for not _LIBC.
6223         (build_collating_symbol): Likewise.
6224         (parse_bracket_exp): Unify redundant error handlings.
6225         Don't erase mbcset for non matching list in multibyte envs.
6226         (build_word_op): Add '_' to matching list for \w operator.
6227         * posix/regex_internal.c (re_string_construct): Invoke
6228         build_upper_buffer in case of not RE_ENABLE_I18N.
6229         (re_string_reconstruct): Don't touch cur_state in case of not
6230         RE_ENABLE_I18N.
6231         * posix/regex_internal.h (attribute_hidden): New macro in case of
6232         not _LIBC.
6233         (re_charset_t): Define range_starts/ends in case of not _LIBC.
6234         * posix/regexec.c (sift_states_iter_mb): Hide in case of not
6235         RE_ENABLE_I18N.
6236         (transit_state_mb): Likewise.
6237         (check_node_accept_bytes): Implement the code evaluating range
6238         expression in case of not _LIBC.
6239         (find_collation_sequence_value): Hide in case of not _LIBC.
6240
6241 2002-04-26  Jakub Jelinek  <jakub@redhat.com>
6242
6243         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
6244         i386/semctl.c.
6245         (__old_semctl, __new_semctl): Only use va_arg if the argument will
6246         be used.
6247
6248 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
6249
6250         * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
6251
6252         * sysdeps/ia64/strncpy.S: Fix recovery code.
6253         Patch by David Mosberger <davidm@hpl.hp.com>.
6254
6255 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6256
6257         * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
6258         GLIBC_2.2.6.
6259
6260 2002-04-14  Bruno Haible  <bruno@clisp.org>
6261
6262         * posix/regex.c (re_max_failures): Add back symbol for binary
6263         compatibility.
6264
6265 2002-04-22  Isamu Hasegawa  <isamu@yamato.ibm.com>
6266
6267         * posix/regcomp.c (re_compile_internal): Adapt it to new interface
6268         of buffer building functions.
6269         * posix/regex_internal.c (re_string_allocate): New function.
6270         (re_string_realloc_buffers): New function.
6271         (re_string_skip_chars): New function.
6272         (re_string_reconstruct): New function.
6273         (re_string_construct): Adapt it to new interface of buffer building
6274         functions.
6275         (re_string_construct_common): Likewise.
6276         (build_wcs_buffer): Likewise.
6277         (build_wcs_upper_buffer): Likewise.
6278         (build_upper_buffer): Likewise.
6279         (re_string_translate_buffer): Likewise.
6280         (re_string_context_at): Adapt it to variable length buffers.
6281         * posix/regex_internal.h (re_string_t): Add new fields to handle
6282         variable length buffers.
6283         (re_match_context_t): Likewise.
6284         * posix/regexec.c (re_search_internal): Adapt it to new interface
6285         of re_string_t and re_match_context_t.
6286         (acquire_init_state_context): Likewise.
6287         (check_matching): Likewise.
6288         (check_halt_state_context): Likewise.
6289         (proceed_next_node): Likewise.
6290         (set_regs): Likewise.
6291         (sift_states_backward): Likewise.
6292         (clean_state_log_if_need): Likewise.
6293         (sift_states_iter_mb): Likewise.
6294         (sift_states_iter_bkref): Likewise.
6295         (add_epsilon_backreference): Likewise.
6296         (transit_state): Likewise.
6297         (transit_state_sb): Likewise.
6298         (transit_state_mb): Likewise.
6299         (transit_state_bkref): Likewise.
6300         (transit_state_bkref_loop): Likewise.
6301         (check_node_accept): Likewise.
6302         (match_ctx_init): Likewise.
6303         (extend_buffers): New function.
6304
6305 2002-04-21  Bruno Haible  <bruno@clisp.org>
6306
6307         * iconvdata/tst-table.sh: For the second check, use the truncated
6308         GB18030 charmap table, like for the first check.
6309
6310 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6311
6312         * elf/dl-load.c (open_verify): Correct __lseek parameters.
6313         Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
6314
6315 2002-04-23  H.J. Lu  <hjl@gnu.org>
6316
6317         * include/math.h (isfinite): Fix a typo.
6318
6319 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6320
6321         * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
6322         which is created by the test suite.
6323
6324 2002-04-20  Bruno Haible  <bruno@clisp.org>
6325
6326         * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
6327         (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
6328
6329 2002-04-20  Bruno Haible  <bruno@clisp.org>
6330
6331         * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
6332         to avoid gcc warning.
6333
6334 2002-04-20  Bruno Haible  <bruno@clisp.org>
6335
6336         * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
6337         of data->__statep->__count.
6338
6339 2002-04-20  Bruno Haible  <bruno@clisp.org>
6340
6341         * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
6342         tag characters.
6343         * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
6344
6345 2002-04-24  Roland McGrath  <roland@frob.com>
6346
6347         * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
6348         use END macro instead of our own .end directive.
6349         Use `callsys' insn mnemonic instead of `call_pal'.
6350
6351         * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
6352
6353         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
6354         macro; we need this for Hurd.
6355
6356         Log entry was missing for 2002/03/24 commit of rev 1.8,
6357         goes with 2002-03-17 changes.
6358         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
6359         (sysdep_routines): Append ioperm here.
6360         (sysdep_headers): Append sys/io.h here.
6361
6362 2002-04-23  Roland McGrath  <roland@frob.com>
6363
6364         * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
6365         * sysdeps/mach/hurd/sendto.c: Likewise.
6366         * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
6367         * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
6368         * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
6369
6370 2002-04-22  Roland McGrath  <roland@frob.com>
6371
6372         * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
6373         failure from i386_io_perm_* RPCs to ENOSYS.
6374
6375 2002-04-22  Andreas Jaeger  <aj@suse.de>
6376
6377         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
6378
6379         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
6380
6381         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
6382         register instead of destroying %rbx.
6383
6384 2002-04-21  Ulrich Drepper  <drepper@redhat.com>
6385
6386         * string/string.h: Declare strerror_r also for XPG6.
6387
6388 2002-04-19  Roland McGrath  <roland@frob.com>
6389
6390         * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
6391
6392 2002-04-20  Ulrich Drepper  <drepper@redhat.com>
6393
6394         * Makefile: Add handling of xtests and xcheck targets.
6395         * MakeTAGS: Likewise.
6396         * Makeconfig: Likewise.
6397         * Makerules: Likewise.
6398         * Rules: Likewise.
6399         * manual/Makefile: Likewise.
6400         * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
6401         * sunrpc/thrsvc.c: New file.  By Zack Weinberg.
6402
6403 2002-04-11  Zack Weinberg  <zack@codesourcery.com>
6404
6405         * include/rpc/rpc.h (struct rpc_thread_variables): Remove
6406         authnone_private_s.
6407         * sunrpc/auth_none.c: Include bits/libc-lock.h.
6408         Delete #ifdef _RPC_THREAD_SAFE_ block.
6409         (authnone_private): Make a struct, not a pointer to struct.
6410         (authnone_private_guard): New once-control variable.
6411         (authnone_create_once): New function, split out of
6412         authnone_create.  No need to allocate memory.
6413         (authnone_create): Just call authnone_create_once via
6414         __libc_once, then return &authnone_private->no_client.
6415         (authnone_marshal): Access private data via CLIENT argument,
6416         not authnone_private pointer.
6417         Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
6418         * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
6419         authnone_private_s.
6420
6421 2002-04-12  H.J. Lu  <hjl@gnu.org>
6422
6423         * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
6424
6425 2002-04-18  Bruno Haible  <bruno@clisp.org>
6426
6427         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
6428         FROM_DIRECTION): Make the FROM direction stateless.
6429         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
6430         FROM_DIRECTION): Likewise.
6431
6432 2002-04-15  Bruno Haible  <bruno@clisp.org>
6433
6434         * iconvdata/JISX0213.TXT: New file.
6435         * iconvdata/jisx0213.h: New file.
6436         * iconvdata/jisx0213.c: New file.
6437         * iconvdata/euc-jisx0213.c: New file.
6438         * iconvdata/shift_jisx0213.c: New file.
6439         * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
6440         * iconvdata/EUC-JISX0213.precomposed: New file.
6441         * iconvdata/SHIFT_JISX0213.precomposed: New file.
6442         * iconvdata/SHIFT_JISX0213.irreversible: New file.
6443         * iconvdata/tst-table-to.c (main): Make it work for encodings for
6444         which the "to" direction is stateful.
6445         * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
6446         * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
6447         SHIFT_JISX0213.
6448         (libJISX0213-routines): New variable.
6449         (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
6450         (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
6451         (LDFLAGS-libJISX0213.so): New variable.
6452         (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
6453         SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
6454         jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
6455
6456 2002-04-15  Bruno Haible  <bruno@clisp.org>
6457
6458         * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
6459         uint32_t.  Update to Unicode 3.2.
6460         (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
6461         (BODY for TO_LOOP): Handle the ASCII range specially.
6462         * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
6463         * iconvdata/testdata/BIG5HKSCS: Remove a character.
6464         * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
6465
6466 2002-04-15  Bruno Haible  <bruno@clisp.org>
6467
6468         * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
6469         __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
6470
6471 2002-04-15  Bruno Haible  <bruno@clisp.org>
6472
6473         * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
6474         (ucs4_to_cns11643): Update.
6475         * iconvdata/cns11643.c: Update to Unicode 3.2.
6476         (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
6477         __cns11643_from_ucs4p2_tab): Regenerated.
6478         (__cns11643_from_ucs4p2c_tab): New array.
6479         * iconvdata/cvs11643l1.c: Update comments.
6480         * iconvdata/EUC-TW.irreversible: Remove two entries.
6481
6482 2002-04-15  Bruno Haible  <bruno@clisp.org>
6483
6484         * locale/C-translit.h.in: Update to Unicode 3.2.
6485         Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
6486         <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
6487
6488 2002-04-15  Bruno Haible  <bruno@clisp.org>
6489
6490         * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
6491         (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
6492
6493 2002-04-15  Bruno Haible  <bruno@clisp.org>
6494
6495         * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
6496         invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
6497         always one byte, not 0 bytes in some cases and 2 bytes in others.
6498
6499         * iconvdata/tst-table-from.c (main): Correct the usage message.
6500
6501 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
6502
6503         * posix/regcomp.c (parse_expression): Fix incorrect error code.
6504         (parse_dup_op): Fix error handling like "a{}".
6505         (parse_bracket_exp): Add error handling.
6506         (fetch_number): Add error handling for "a{<very_large_number>}".
6507
6508 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
6509
6510         * posix/regcomp.c (parse_bracket_symbol): Add error handling
6511         in case that the symbol name is too long.
6512         (build_charclass): Handle [:lower:]/[:uppper:] correctly
6513         in case of REG_ICASE.
6514
6515 2002-04-19  Andreas Jaeger  <aj@suse.de>
6516
6517         * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
6518         <hartvige@mips.com>.
6519
6520 2002-04-15  H.J. Lu  <hjl@gnu.org>
6521
6522         * include/math.h (__finitel_internal): Declare only if
6523         __NO_LONG_DOUBLE_MATH is not defined.
6524         (__isinfl_internal): Likewise.
6525         (__isnanl_internal): Likewise.
6526
6527         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
6528         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6529         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6530         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
6531         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6532         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6533         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6534
6535         * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
6536         __fcntl_internal.
6537
6538         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
6539         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
6540
6541 2002-04-15  Bruno Haible  <bruno@clisp.org>
6542
6543         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
6544         (BODY for TO_LOOP): Likewise.
6545         * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
6546         * iconvdata/tst-table.sh: Add support for encodings which contain
6547         precomposed Unicode characters, known to the iconv converter in both
6548         directions but not listed in the charmap.
6549         * iconvdata/IBM856.irreversible: New file.
6550         * iconvdata/IBM922.irreversible: New file.
6551         * iconvdata/IBM1132.irreversible: New file.
6552         * iconvdata/IBM1133.irreversible: New file.
6553         * iconvdata/IBM1160.irreversible: New file.
6554         * iconvdata/IBM1161.irreversible: New file.
6555         * iconvdata/IBM1163.irreversible: New file.
6556         * iconvdata/IBM1164.irreversible: New file.
6557         * iconvdata/ARMSCII-8.irreversible: New file.
6558         * iconvdata/TCVN5712-1.precomposed: New file.
6559         * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
6560         IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
6561         ARMSCII-8, TCVN5712-1.
6562         * iconvdata/Makefile (distribute): Add IBM856.irreversible,
6563         IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
6564         IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
6565         IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
6566
6567 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
6568
6569         * time/tst-mktime.c: Include <stdlib.h>.  Use %d, not %ld format
6570         for EVENING69.  Include offsets in TZ environment variable.
6571
6572 2002-04-18  Ulrich Drepper  <drepper@redhat.com>
6573
6574         * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
6575         avoid compiler warnings.
6576
6577         * locale/programs/localedef.c (main): Always call
6578         construct_output_path.
6579
6580         * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
6581
6582         * locale/programs/locfile.c (to_archive): New variable.  To collect
6583         data which has to be added to the locale archive.
6584         (write_all_categories): Take new third parameter with locale name.
6585         Unless no_archive flag set add new locale data to the archive
6586         (write_locale_data): Unless no-archive flag set store generated data
6587         in to_archive data structure instead of generation output file.
6588         Add new parameter with locale category index.
6589         * locale/programs/locfile.h: Add new parameters in declaractions of
6590         write_all_categories and write_locale_data.
6591         * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
6592         --add-to-archive, and --delete-from-archive options.  Pass extra
6593         parameter to write_all_categories.
6594         * locale/programs/localedef.h: Add prototypes for functions in
6595         locarchive.c.
6596         * locale/locarchive.h: New file.
6597         * locale/programs/locarchive.c: New file.
6598         * locale/Makefile (distribute): Add programs/locarchive.c and
6599         locarchive.h.
6600         (localedef-modules): Add md5 and locarchive.
6601         Add vpath to crypt subdir for md5.c.
6602
6603         * locale/programs/ld-address.c: Pass locale category ID as new second
6604         parameter to write_locale_data.
6605         * locale/programs/ld-collate.c: Likewise.
6606         * locale/programs/ld-ctype.c: Likewise.
6607         * locale/programs/ld-identification.c: Likewise.
6608         * locale/programs/ld-measurement.c: Likewise.
6609         * locale/programs/ld-messages.c: Likewise.
6610         * locale/programs/ld-monetary.c: Likewise.
6611         * locale/programs/ld-name.c: Likewise.
6612         * locale/programs/ld-numeric.c: Likewise.
6613         * locale/programs/ld-paper.c: Likewise.
6614         * locale/programs/ld-telephone.c: Likewise.
6615         * locale/programs/ld-time.c: Likewise.
6616
6617         * locale/simple-hash.c: Move compute_hashval function from here...
6618         * locale/hashval.h: ...to here.  New file.
6619         * locale/simple-hash.h: Add prototype for compute_hashval.
6620
6621         * include/libintl.h: Minor cleanups.
6622
6623 2002-04-16  Ulrich Drepper  <drepper@redhat.com>
6624
6625         * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
6626
6627 2002-04-15  Ulrich Drepper  <drepper@redhat.com>
6628
6629         * include/sys/stat.h: Fix typo.  Patch by HJ Lu.
6630
6631 2002-04-14  Bruno Haible  <bruno@clisp.org>
6632
6633         * locale/programs/charmap.c (charmap_read): Don't access result if
6634         result == NULL.
6635
6636 2002-02-17  Andreas Schwab  <schwab@suse.de>
6637
6638         * elf/reldep7.c: New file.
6639         * elf/reldep7mod1.c: New file.
6640         * elf/reldep7mod2.c: New file.
6641         * elf/Makefile: Add rules to build and run reldep7.
6642
6643 2002-04-14  Jakub Jelinek  <jakub@redhat.com>
6644
6645         * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
6646         the end of the function.  Pass original flags to recursive call if
6647         add_dependency failed.
6648         (_dl_lookup_versioned_symbol): Likewise.
6649
6650 2002-04-13  Jakub Jelinek  <jakub@redhat.com>
6651
6652         * time/mktime.c (__mktime_internal): If year is 69, don't bail out
6653         early, but check whether it overflowed afterwards.
6654         * time/tst-mktime.c (main): Add new tests.
6655
6656 2002-04-14  Ulrich Drepper  <drepper@redhat.com>
6657
6658         * debug/xtrace.sh: Fix program name in help message.
6659         Patch by Roger Luethi <rl@hellgate.ch>.
6660
6661         * include/sys/stat.h: Add prototypes for __lxstat_internal and
6662         __lxstat64_internal.  Add macros __lxstat and __lxstat64 if not
6663         NOT_IN_libc.
6664         * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
6665         * sysdeps/mach/hurd/lxstat.c: Likewise.
6666         * sysdeps/unix/common/lxstat.c: Likewise.
6667         * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
6668         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
6669         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
6670         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6671         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
6672         * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
6673         * sysdeps/mach/hurd/lxstat64.c: Likewise.
6674         * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
6675         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
6676
6677         * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
6678         prototypes.  Add __mbrlen and __mbrtowc macros.
6679         * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
6680         * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
6681
6682         * include/unistd.h: Add prototype for __write_internal and add
6683         __libc_write macro is SHARED.
6684         * sysdeps/generic/write.c: Use INTDEF for __write.
6685         * sysdeps/mach/hurd/write.c: Likewise.
6686         * sysdeps/unix/sysv/aix/write.c: Likewise.
6687         * sysdeps/unix/syscalls.list: Add __libc_write alias.
6688
6689         * assert/assert.c: Replace STR_N_SIZE with something usable in
6690         macro arguments.
6691         * assert/assert-perr.c: Likewise.
6692
6693         * include/sys/socket.h: Declare __libc_sa_len_internal and define
6694         SA_LEN macro to use it if not NOT_IN_libc.
6695         * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
6696
6697         * include/fcntl.h: Declare __open_internal and define __open and
6698         __libc_open macros if not NOT_IN_libc.
6699         * sysdeps/generic/open.c: Use INTDEF for __open.
6700         * sysdeps/mach/hurd/open.c: Likewise.
6701         * sysdeps/unix/sysv/aix/open.c: Likewise.
6702         * sysdeps/unix/syscalls.list: Add __open_internal alias.
6703
6704         * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
6705         has correct number.
6706
6707         * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
6708         * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
6709         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
6710         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
6711
6712         * include/wctype.h: Declare __iswalpha_l_internal,
6713         __iswdigit_l_internal, __iswspace_l_internal,
6714         __iswxdigit_l_internal, and __iswctype_internal.  Define
6715         __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
6716         __iswxdigit_l macros if not NOT_IN_libc.
6717         * wctype/iswctype.c: Use INTDEF for __iswctype.
6718         * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
6719
6720         * include/math.h: Declare __isinf_internal, __isinfl_internal,
6721         __isnan_internal, and __isnanl_internal.
6722         * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
6723         __isnan, and __isnanl.
6724         * stdio-common/printf_size.c: Likewise.
6725         * sysdeps/generic/printf_fphex.c: Likewise.
6726         * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
6727         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
6728         * sysdeps/ia64/fpu/s_isinf.S: Likewise.
6729         * sysdeps/ia64/fpu/s_isnan.S: Likewise.
6730         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
6731         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
6732         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
6733         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
6734         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
6735         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
6736         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
6737         * sysdeps/m68k/s_isinfl.c: Likewise.
6738         * sysdeps/m68k/fpu/s_isinf.c: Likewise.
6739         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
6740
6741         * include/sys/time.h: Declare __gettimeofday_internal and define
6742         __gettimeofday macro if not NOT_IN_libc.
6743         * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
6744         * sysdeps/mach/gettimeofday.c: Likewise.
6745         * sysdeps/posix/gettimeofday.c: Likewise.
6746         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
6747         * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
6748         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
6749         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
6750
6751         * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
6752         and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
6753         Remove __lstat and __fstat inline functions.
6754         * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
6755         * sysdeps/mach/hurd/fxstat.c: Likewise.
6756         * sysdeps/unix/fxstat.c: Likewise.
6757         * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
6758         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
6759         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
6760         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
6761         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
6762         * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
6763         * sysdeps/mach/hurd/fxstat64.c: Likewise.
6764         * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
6765         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
6766
6767         * include/unistd.h: Declare __getpid_internal and define
6768         __getpid macro if not NOT_IN_libc.
6769         * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
6770         * sysdeps/generic/getpid.c: Likewise.
6771         * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
6772         * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
6773
6774         * include/unistd.h: Declare __getpgid_internal and define
6775         __getpgid macro if not NOT_IN_libc.
6776         * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
6777         * sysdeps/mach/hurd/getpgid.c: Likewise.
6778         * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
6779         * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
6780         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
6781         * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
6782
6783         * include/unistd.h: Declare __getpagesize_internal and define
6784         __getpagesize macro if not NOT_IN_libc.
6785         * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
6786         __getpagesize.
6787         * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
6788         * sysdeps/mach/getpagesize.c: Likewise.
6789         * sysdeps/posix/getpagesize.c: Likewise.
6790         * sysdeps/unix/getpagesize.c: Likewise.
6791         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
6792         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
6793         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
6794         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
6795
6796 2002-04-13  Andreas Jaeger  <aj@suse.de>
6797
6798         * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
6799         as clobber to reduce register pressure.
6800         (__strpbrk_cg): Likewise.
6801         (__mempcpy_by4): Likewise.
6802         (__strstr_cg): Likewise.
6803         Add prototype for __memrchr.
6804
6805 2002-04-13  Andreas Schwab  <schwab@suse.de>
6806
6807         * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
6808         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
6809         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
6810
6811 2002-04-13  Ulrich Drepper  <drepper@redhat.com>
6812
6813         * elf/do-lookup.h [!VERSIONED]: Add new parameter flags.  Use it to
6814         check whether the caller prefers getting the most recent version of
6815         a symbol of the earliest version.
6816         * elf/dl-lookup.c: Adjust all callers of do_lookup.  Change
6817         _dl_do_lookup to also take the new parameter and pass it on.
6818         Change 'explicit' parameter of _dl_lookup_symbol and
6819         _dl_lookup_versioned_symbol to flags.  Adjust tests.
6820         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
6821         * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
6822         _dl_lookup_versioned_symbol.
6823         * elf/dl-reloc.c: Likewise.
6824         * elf/dl-runtime.c: Likewise.
6825         * elf/dl-sym.c: Likewise.
6826         * sysdeps/mips/dl-machine.h: Likewise.
6827
6828 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
6829
6830         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
6831         in a token.
6832         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
6833
6834 2002-04-10  Andreas Jaeger  <aj@suse.de>
6835
6836         * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
6837
6838         * include/argz.h: Remove extra char from last patch.
6839
6840 2002-04-09  Ulrich Drepper  <drepper@redhat.com>
6841
6842         * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
6843         * sysdeps/unix/sysv/aix/chown.c: Likewise.
6844         * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
6845         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
6846         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
6847         * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
6848         __chown_internal.
6849         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
6850
6851         * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
6852         * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
6853         * intl/ngettext.c: Likewise.
6854
6855         * include/sys/socket.h: Declare __connect_internal and define
6856         __connect macro if not NOT_IN_libc.
6857         * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
6858         * sysdeps/unix/sysv/aix/connect.c: Likewise.
6859         * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
6860
6861         * include/unistd.h: Declare __close_internal and define __close macro
6862         if not NOT_IN_libc.
6863         * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
6864         WJUMP3): Add extra parenthesis to avoid expanding element names with
6865         macors like __close.
6866         * sysdeps/unix/syscalls.list: Add __close_internal alias.
6867
6868         * include/unistd.h: Declare __dup2_internal and define __dup2 macro
6869         if not NOT_IN_libc.
6870         * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
6871         * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
6872         * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
6873
6874         * include/unistd.h: Declare __fork_internal and define __fork macro
6875         if not NOT_IN_libc.
6876         * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
6877         * sysdeps/unix/sysv/aix/fork.c: Likewise.
6878         * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
6879
6880         * include/stdio_ext.h: Declare __fsetlocking_internal and define
6881         __fsetlocking macro to use it if not NOT_IN_libc.
6882         * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
6883
6884         * libio/__fbufsize.c: Correct copyright.
6885         * libio/__flbf.c: Likewise.
6886         * libio/__fpending.c: Likewise.
6887         * libio/__fpurge.c: Likewise.
6888         * libio/__freadable.c: Likewise.
6889         * libio/__freading.c: Likewise.
6890         * libio/__fsetlocking.c: Likewise.
6891         * libio/__fwritable.c: Likewise.
6892         * libio/__fwriting.c: Likewise.
6893
6894         * include/stdio.h: Declare __asprintf_internal and define __asprintf
6895         macro to use it if not NOT_IN_libc.
6896         * stdio-common/asprintf.c: Use INTDEF for __asprintf.
6897
6898         * include/mntent.h: Declare __setmntent_internal,
6899         __getmntent_r_internal, __endmntent_internal.  Define __setmntent,
6900         __getmntent_r, and __endmntent macros to use these functions if not
6901         NOT_IN_libc.
6902         * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
6903         __endmntent.
6904
6905         * include/math.h: Declare __finite_internal, __finitef_internal, and
6906         __finitel_internal.  Redefine isfinite macro if in libc or libm using
6907         these functions.
6908         * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
6909         * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
6910         * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
6911         * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
6912         * sysdeps/i386/fpu/s_finitef.S: Likewise.
6913         * sysdeps/i386/fpu/s_finitel.S: Likewise.
6914         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
6915         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
6916         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
6917         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
6918
6919         * include/fcntl.h: Declare __fcntl_internal.  Define __fcntl macro
6920         to use this function if not NOT_IN_libc.
6921         * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
6922         * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
6923         * sysdeps/mach/hurd/fcntl.c: Likewise.
6924         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
6925         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
6926
6927         * include/argz.h: Declare __argz_count_internal and
6928         __argz_stringify_internal.
6929         * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
6930         __argz_stringify.
6931         * string/argz-count.c: Use INTDEF for __argz_count.
6932         * string/argz-stringify.c: Use INTDEF for __argz_stringify.
6933
6934         * include/stdlib.h: Declare __cxa_atexit_internal and define
6935         __cxa_atexit macro if not NOT_IN_libc.
6936         * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
6937         * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
6938
6939         * assert/assert.c: Use INTDEF for __assert_fail.
6940         * assert/__assert.c: Use INTUSE for call to __assert_fail.
6941         * include/assert.h: Declare __assert_fail_internal.
6942
6943         * extra-lib.mk: Mark assignment to lib with override.
6944
6945 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
6946
6947         * Makerules: Use cppflags-iterator.mk to add defines for all test
6948         source files.
6949
6950 2002-04-08  kaz Kojima  <kkojima@rr.iij4u.or.jp>
6951
6952         * elf/elf.h: Define R_SH_TLS_xxx macros.
6953         * elf/rtld.c: Remove an extra parenthesis.
6954         * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
6955         TLS_GD macros.
6956         * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
6957         * sysdeps/sh/dl-lookupcfg.h: New file.
6958         * sysdeps/sh/dl-tls.h: New file.
6959         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
6960         ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
6961         (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
6962         R_SH_TLS_TPOFF32 relocations.
6963
6964 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
6965
6966         * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
6967         of NOT_IN_LIBC.
6968         * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
6969         * include/stdlib.h: Likewise.
6970
6971 2002-04-08  Jakub Jelinek  <jakub@redhat.com>
6972
6973         * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
6974         instead of _RTLD_LOCAL.
6975         * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
6976         * include/unistd.h: Likewise.
6977         * sysdeps/generic/ldsodefs.h: Likewise.
6978
6979         * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
6980         if in libc or ld.so.
6981
6982 2002-04-08  Andreas Jaeger  <aj@suse.de>
6983
6984         * elf/cache.c (print_entry): Support x86-64.
6985
6986 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
6987
6988         * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
6989         with one accessing the locale data structures directly.
6990         * stdio-common/printf-prs.c: Include localeinfo.h for new
6991         MB_CUR_MAX definition.
6992
6993         * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
6994         is the name of the source file without extension.
6995         * Makefile (distribute): Add cppflags-iterator.mk.
6996         * cppflags-iterator.mk: New file.
6997         * extra-lib.mk: For the sources of the library run
6998         cppflags-iterator.mk.
6999
7000         * include/libintl.h: Declare __dcgettext_internal and
7001         _libc_intl_domainname_internal.  Define __dcgettext using these
7002         two symbols if used in libc itself.
7003         * argp/argp-help.c: Define dgettext using __dcgettext_internal and
7004         _libc_intl_domainname_internal.
7005         * argp/argp-parse.c: Likewise.
7006         * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
7007         * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
7008         * intl/gettext.c: Likewise.
7009         * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
7010         alias.
7011         * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
7012         __dcgettext.
7013         * posix/regex_internal.c (gettext): Likewise.
7014
7015 2002-04-08  Andreas Jaeger  <aj@suse.de>
7016
7017         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
7018
7019         * sysdeps/x86_64/fpu/s_llrint.S: New file.
7020         * sysdeps/x86_64/fpu/s_llrintf.S: New file.
7021         * sysdeps/x86_64/fpu/s_llrintl.S: New file.
7022         * sysdeps/x86_64/fpu/s_lrint.S: New file.
7023         * sysdeps/x86_64/fpu/s_lrintf.S: New file.
7024         * sysdeps/x86_64/fpu/s_lrintl.S: New file.
7025
7026 2002-04-08  Roland McGrath  <roland@frob.com>
7027
7028         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
7029         widening __hurd_fail value.
7030
7031 2002-04-07  Roland McGrath  <roland@frob.com>
7032
7033         * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
7034         <mach/machine/alpha_instruction.h>.
7035         (_hurd_setup_sighandler): Take proper arguments for current decls.
7036         Update code to use _hurdsig_catch_fault.
7037         Use `callsys' instruction instead of `call_pal'.
7038         * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
7039
7040         * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
7041         (ALIGN, at, AT, fp): New macros.
7042
7043 2002-04-06  Roland McGrath  <roland@frob.com>
7044
7045         * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
7046
7047         * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
7048         (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
7049
7050         * sysdeps/mach/hurd/bind.c: Use prototype definition.
7051         * sysdeps/mach/hurd/connect.c: Likewise.
7052         * sysdeps/mach/hurd/getsockopt.c: Likewise.
7053         * sysdeps/mach/hurd/setsockopt.c: Likewise.
7054
7055         * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
7056         __msg_sig_post RPC.
7057
7058         * hurd/catch-exc.c: Use integer_t instead of int.
7059         * hurd/hurdfault.c: Likewise.
7060
7061         * sysdeps/mach/hurd/alpha/exc2signal.c
7062         (_hurd_exception2signal): Rewritten.
7063         * sysdeps/mach/hurd/alpha/longjmp-ts.c
7064         (_hurd_longjmp_thread_state): Rewritten.
7065
7066 2002-04-07  Ulrich Drepper  <drepper@redhat.com>
7067
7068         * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
7069         DB_LOOKUP_FCT prototype.
7070         * nss/getXXent_r.c: Likewise.
7071         * inet/getaliasent_r.c: Define NSS_attribute_hidden.
7072         * inet/getaliasname_r.c: Likewise.
7073         * inet/getnetbyad_r.c: Likewise.
7074         * inet/getnetbynm_r.c: Likewise.
7075         * inet/getnetent_r.c: Likewise.
7076         * inet/getproto_r.c: Likewise.
7077         * inet/getprtent_r.c: Likewise.
7078         * inet/getprtname_r.c: Likewise.
7079         * inet/getrpcbyname_r.c: Likewise.
7080         * inet/getrpcbynumber_r.c: Likewise.
7081         * inet/getrpcent_r.c: Likewise.
7082         * inet/getservent_r.c: Likewise.
7083         * inet/getsrvbynm_r.c: Likewise.
7084         * inet/getsrvbypt_r.c: Likewise.
7085         * shadow/getspent_r.c: Likewise.
7086         * shadow/getspnam_r.c: Likewise.
7087
7088         * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
7089
7090         * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
7091         Use i686-friendly PIC code.
7092         * sysdeps/i386/elf/setjmp.S: Likewise.
7093
7094         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
7095
7096         * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
7097         list.
7098         * elf/Versions: Remove it here.
7099
7100 2002-04-06  Ulrich Drepper  <drepper@redhat.com>
7101
7102         * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
7103         direction.  Reported by H . J . Lu <hjl@lucon.org>.
7104
7105 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
7106
7107         * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
7108         test just before the test runs.
7109         * intl/tst-translit.sh: Likewise.
7110         * intl/tst-codeset.sh: Likewise.
7111
7112         * timezone/zic.c: Update from tzcode2002c.
7113         * timezone/asia: Update from tzdata2002c.
7114         * timezone/backward: Likewise.
7115         * timezone/europe: Likewise.
7116         * timezone/northamerica: Likewise.
7117         * timezone/northamerica: Likewise.
7118         * timezone/northamerica: Likewise.
7119         * timezone/southamerica: Likewise.
7120         * timezone/zone.tab: Likewise.
7121
7122 2002-03-23  Jakub Jelinek  <jakub@redhat.com>
7123
7124         * sysdeps/generic/brk.c (__curbrk): Declare.
7125         * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
7126         * sysdeps/generic/dl-sbrk.c: Likewise.
7127         * sysdeps/unix/arm/dl-brk.S: New file.
7128         * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
7129         * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
7130         * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
7131         * sysdeps/unix/bsd/vax/dl-brk.S: New file.
7132         * sysdeps/unix/i386/dl-brk.S: New file.
7133         * sysdeps/unix/mips/dl-brk.S: New file.
7134         * sysdeps/unix/sparc/dl-brk.S: New file.
7135         * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
7136         * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
7137         * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
7138         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
7139
7140 2002-04-03  Andreas Schwab  <schwab@suse.de>
7141
7142         * Makefile (headers): Add gnu/lib-names.h here instead of
7143         install-others.
7144         ($(inst_includedir)/gnu/lib-names.h): Remove explicit
7145         installation rule.
7146         (install-headers): Add dependency on install-headers-nosubdir.
7147         * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
7148         instead of install-others.
7149         ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
7150         installation rule.
7151
7152 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
7153
7154         * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
7155         Reported by Sam Roberts <sroberts@uniserve.com>.
7156
7157 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
7158
7159         * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
7160         l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
7161         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7162         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7163
7164 2002-04-03  David Mosberger  <davidm@hpl.hp.com>
7165
7166         * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
7167         (RTLD_START): Ditto.
7168         (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
7169         dependency violation.
7170
7171 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
7172
7173         * time/mktime.c (__mktime_internal): Move check for year < 70 below
7174         all variable declarations.
7175
7176 2002-04-04  Andreas Schwab  <schwab@suse.de>
7177
7178         * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
7179
7180 2002-04-04  Andreas Jaeger  <aj@suse.de>
7181
7182         * sysdeps/x86_64/fpu/e_sqrt.c: New file.
7183         * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
7184
7185         * sysdeps/x86_64/fpu/s_fabs.c: New file.
7186         * sysdeps/x86_64/fpu/s_fabsf.c: New file.
7187         * sysdeps/x86_64/fpu/s_fabsl.c: New file.
7188
7189         * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
7190
7191         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
7192
7193         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
7194         * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
7195
7196         * configure.in: Handle all mips entries the same.
7197
7198         * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
7199         * sysdeps/mips/mips3/*: Likewise.
7200         * sysdeps/mips/p40/bits/endian.h: Likewise.
7201
7202 2002-04-04  Ulrich Drepper  <drepper@redhat.com>
7203
7204         * misc/dirname.c (dirname): Ignore trailing slashes at end of
7205         non-null result [PR libc/2600].
7206
7207         * misc/tst-dirname.c: Add more tests.
7208
7209 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
7210
7211         * locale/programs/charmap.c (charmap_read): If the charmap doesn't
7212         define a code_set_name provide one based on the filename.
7213
7214         * malloc/hooks.c: Define weak_variable correctly for _LIBC.
7215
7216 2001-12-28  Andreas Jaeger  <aj@suse.de>
7217
7218         * time/mktime.c (__mktime_internal): Check for year < 70
7219         [PR libc/2738].
7220
7221 2002-04-03  Andreas Jaeger  <aj@suse.de>
7222
7223         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
7224         shmat.
7225         Reported by Andi Kleen <ak@suse.de>.
7226
7227 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
7228
7229         * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
7230         * sysdeps/generic/w_lgammaf.c: Likewise.
7231         * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
7232
7233         * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
7234         Adjust for new output format of the backtrace functions.
7235
7236         * misc/syslog.c (vsyslog): Only use cleanup handler if
7237         _LIBC_REENTRANT is defined [PR libc/2924].
7238
7239         * libio/Makefile (tests): Add bug-ungetwc2.
7240         * libio/bug-ungetwc2.c: New file.
7241
7242         * manual/install.texi: Typographical and grammatical cleanup.
7243         Patch by Dennis Grace <dgrace@us.ibm.com>.
7244
7245         * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
7246         parameter if mtflag.  Patch by <jeongyun@innovay.com>.
7247
7248         * sunrpc/rpc_svcout.c (printif): Remove third parameter.  It was
7249         always "&".  Adjust callers.
7250         Add "_" prefix to several generated definitions.
7251         Patch by paul@serice.net [PR libc/3158].
7252
7253 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7254
7255         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
7256         size of _dl_arm_cap_flags.
7257         Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
7258
7259         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
7260         Define as 8.
7261
7262 2002-03-22  H.J. Lu  <hjl@gnu.org>
7263
7264         * scripts/firstversions.awk: Check the first version.
7265
7266 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7267
7268         * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
7269         dependencies must be stable to work correctly.
7270         Reported by martin.lubich@datacon.at.
7271
7272         * libio/bug-ungetwc1.c: New file.
7273         * libio/Makefile (tests): Add bug-ungetwc1.
7274
7275         * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
7276         if stream was last used for writing.
7277
7278         * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
7279         number [PR libc/3111].
7280
7281         * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
7282         to ...
7283         * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
7284
7285 2002-04-02  Jakub Jelinek  <jakub@redhat.com>
7286
7287         * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
7288         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
7289         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
7290         * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
7291         * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
7292
7293 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
7294
7295         * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
7296         dynamic tags.
7297
7298 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
7299
7300         * sysdeps/i386/fpu/s_fabs.S: New file.
7301         * sysdeps/i386/fpu/s_fabsf.S: New file.
7302         * sysdeps/i386/fpu/s_fabsl.S: New file.
7303         * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
7304         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
7305         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
7306
7307 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7308
7309         * rt/tst-shm.c (do_test): Add one more test for size of shared
7310         memory object.
7311
7312 2002-03-29  Wolfram Gloger  <wg@malloc.de>
7313
7314         * malloc/malloc.c: Add short description and prototypes for
7315         malloc_get_state, malloc_set_state and posix_memalign, for
7316         consistency and to avoid warnings with -Wstrict-prototypes.
7317         Reported by Andreas Jaeger <aj@suse.de>.
7318
7319 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7320
7321         * po/gl.po: Update from translation team.
7322
7323 2002-03-31  Roland McGrath  <roland@frob.com>
7324
7325         * hurd/hurdselect.c (_hurd_select): Fix
7326         MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
7327         Use a union rather than casts to compare mach_msg_type_t as int.
7328
7329 2002-03-25  Roland McGrath  <roland@frob.com>
7330
7331         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
7332         check off the end of NAME when it's shorter than 2 chars.
7333         Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
7334
7335 2002-03-17  Roland McGrath  <roland@frob.com>
7336
7337         * sysdeps/mach/hurd/i386/sys/io.h: New file.
7338         * sysdeps/mach/hurd/i386/ioperm.c: New file.
7339         * sysdeps/mach/hurd/i386/Dist: Add them.
7340         * sysdeps/mach/hurd/i386/Versions
7341         (libc: GLIBC_2.2.6): New set, add ioperm.
7342         * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
7343         (mach_interface_list): Check for mach_i386.defs.
7344         * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
7345         * sysdeps/mach/configure: Regenerated.
7346
7347 2002-03-22  Ulrich Drepper  <drepper@redhat.com>
7348
7349         * po/fr.po: Update from translation team.
7350
7351 2002-03-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7352
7353         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
7354         getpriority from syscalls list.
7355
7356 2002-03-28  Andreas Jaeger  <aj@suse.de>
7357
7358         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
7359         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
7360         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
7361         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
7362
7363 2002-03-27  Andreas Jaeger  <aj@suse.de>
7364
7365         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7366         sigcontext): Follow further kernel change.
7367
7368         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
7369         kernel change.
7370
7371         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
7372         Change for struct sigcontext change.
7373
7374         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7375         Follow changes in struct sigcontext.
7376
7377         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
7378         sysycall, use wrapper instead.
7379
7380 2002-03-26  Andreas Jaeger  <aj@suse.de>
7381
7382         * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
7383         read and write accesses as detailed as possible.
7384         (__memcpy_by2): Likewise.
7385         (__memcpy_g): Likewise.
7386         (memmove): Likewise.
7387         (memcmp): Likewise.
7388         (__memset_ccn_by4): Likewise.
7389         (__memset_ccn_by2): Likewise.
7390         (__memset_gcn_by4): Likewise.
7391         (__memset_gcn_by2): Likewise.
7392         (memchr): Likewise.
7393         (__memrchr): Likewise.
7394         (rawmemchr): Likewise.
7395         (__strlen_g): Likewise.
7396         (__strcpy_g): Likewise.
7397         (__mempcpy_by4): Likewise.
7398         (__mempcpy_by2): Likewise.
7399         (__mempcpy_byn): Likewise.
7400         (__stpcpy_g): Likewise.
7401         (__strncpy_by4): Likewise.
7402         (__strncpy_by2): Likewise.
7403         (__strncpy_byn): Likewise.
7404         (__strncpy_gg): Likewise.
7405         (__strcat_c): Likewise.
7406         (__strcat_g): Likewise.
7407         (__strncat_g): Likewise.
7408         (__strcmp_gg): Likewise.
7409         (__strncmp_g): Likewise.
7410         (__strchr_c): Likewise.
7411         (__strchr_g): Likewise.
7412         (__strchrnul_c): Likewise.
7413         (__strchrnul_g): Likewise.
7414         (__strrchr_c): Likewise.
7415         (__strrchr_g): Likewise.
7416         (__strrchr_c): Likewise.
7417         (__strrchr_g): Likewise.
7418         (__strcspn_c1): Likewise.
7419         (__strcspn_cg): Likewise.
7420         (__strcspn_g): Likewise.
7421         (__strcspn_g): Likewise.
7422         (__strspn_c1): Likewise.
7423         (__strspn_cg): Likewise.
7424         (__strspn_g): Likewise.
7425         (__strspn_g): Likewise.
7426         (__strpbrk_cg): Likewise.
7427         (__strpbrk_g): Likewise.
7428         (__strstr_cg): Likewise.
7429         (__strstr_g): Likewise.
7430
7431         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo.  Reported by
7432         Michal Ludvig <mludvig@suse.cz>.
7433
7434         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
7435         compatibilty, adjust for kernel changes.
7436
7437         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7438         sigcontext): Adjust for kernel changes.
7439
7440 2002-03-25  Andreas Jaeger  <aj@suse.de>
7441
7442         * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
7443         little endian.
7444         Reported by Artur Zaprzala <zybi@talex.com.pl>.
7445
7446 2002-03-24  Andreas Jaeger  <aj@suse.de>
7447
7448         * manual/memory.texi (Aligned Memory Blocks): Fix typo.
7449
7450         * stdio-common/tst-fdopen.c (main): Remove unused variable.
7451
7452         * iconv/tst-iconv3.c (main): Use correct printf strings.
7453
7454 2002-03-18  Roland McGrath  <roland@frob.com>
7455
7456         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
7457         (CMGROUP_MAX): New macro.
7458
7459 2002-03-23  Roland McGrath  <roland@frob.com>
7460
7461         * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
7462         * sysdeps/posix/shm_unlink.c: Likewise.
7463
7464 2002-03-22  Roland McGrath  <roland@frob.com>
7465
7466         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
7467         * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
7468         under --enable-libio.
7469         * sysdeps/mach/hurd/configure: Regenerated.
7470
7471 2002-03-23  Roland McGrath  <roland@frob.com>
7472
7473         * sysdeps/mach/hurd/i386/Makefile
7474         (sysdep_routines, shared-only-routines): Don't add framestate,
7475         reverting 2001-10-02 change.
7476         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
7477         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
7478         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
7479         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
7480         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
7481         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
7482         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
7483         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
7484         * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
7485         Do it here instead, only if [$(unwind-find-fde) = yes].
7486
7487 2002-03-23  Andreas Jaeger  <aj@suse.de>
7488
7489         * signal/signal.h: Fix typo. Patch by Steve Kemp
7490         <skx@tardis.ed.ac.uk>.
7491
7492 2002-03-22  Andreas Jaeger  <aj@suse.de>
7493
7494         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
7495         getresuid.
7496
7497         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7498         _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
7499         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7500         user_fpregs_struct): Rename fwd.
7501
7502         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7503         Follow sigcontext changes.
7504
7505 2002-03-22  Andreas Jaeger  <aj@suse.de>
7506
7507         * sysdeps/mips/bits/nan.h: New file.  Copy from generic one with
7508         changes for NaNs on MIPS.
7509         Patch by Hartvig Ekner <hartvige@mips.com>.
7510
7511 2002-03-21  Ulrich Drepper  <drepper@redhat.com>
7512
7513         * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
7514         Use realloc if too large.
7515         (addgrbyid): Likewise.
7516         * nscd/hstcache.c (addhstbyname): Likewise.
7517         (addhstbyaddr): Likewise.
7518         (addhstbynamev6): Likewise.
7519         (addhstbyaddrv6): Likewise.
7520         * nscd/pwdcache.c (addpwbyname): Likewise.
7521         (addpwbyuid): Likewise.
7522
7523 2002-03-21  Andreas Jaeger  <aj@suse.de>
7524
7525         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7526         _fpstate): Add separate struct for x86-64.
7527
7528         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7529         user_fpregs_struct): Change member names to follow kernel.
7530
7531 2002-03-20  Ulrich Drepper  <drepper@redhat.com>
7532
7533         * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
7534         Correctly close the UDP connection right away [PR libc/3120].
7535
7536 2002-03-20  Andreas Jaeger  <aj@suse.de>
7537
7538         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7539         user_fpregs_struct): Fix for changed kernel struct.
7540         (struct user_regs_struct): Likewise.
7541         (struct user): Likewise.
7542         Add 32-bit x86 compatibility.
7543
7544         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
7545
7546 2002-03-19  Andreas Jaeger  <aj@suse.de>
7547
7548         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
7549
7550 2002-03-18  Andreas Jaeger  <aj@suse.de>
7551
7552         * iconvdata/Makefile: Only run tests when shared libs are
7553         available.
7554
7555 2002-03-17  Andreas Jaeger  <aj@suse.de>
7556
7557         * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
7558
7559         * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
7560
7561         * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
7562         bits.
7563
7564         * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New macro.
7565         (CAUSE_SHIFT): New macro.
7566         Patch by Hartvig Ekner <hartvige@mips.com>.
7567
7568         * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
7569         * sysdeps/generic/unwind-pe.h: Likewise.
7570
7571         * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
7572         type to _IO_setb.
7573
7574         * libio/stdio.c (AL2): Define variant when visibility attribute is
7575         not supported.
7576
7577         * include/libc-symbols.h (_INTVARDEF): Define variant when
7578         visibility attribute is not supported.
7579
7580 2002-03-16  Ulrich Drepper  <drepper@redhat.com>
7581
7582         * po/fr.po: Update from translation team.
7583
7584 2002-02-25  Bruno Haible  <bruno@clisp.org>
7585
7586         * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
7587
7588 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
7589
7590         * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
7591         buffers if _IO_file_attach failed.
7592
7593         * libio/fileops.c (_IO_file_open): Close file descriptor if
7594         _IO_SEEKOFF call failed.
7595
7596 2002-03-15  H.J. Lu  <hjl@gnu.org>
7597             Ulrich Drepper  <drepper@redhat.com>
7598
7599         * configure.in: Check for availability of
7600         init_array/fini_array/preinit_array handling in binutils.
7601         * config.h.in (HAVE_INITFINI_ARRAY): New macro.
7602         * config.make.in (have-initfini-array): New variable.
7603
7604 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
7605
7606         * stdio-common/tst-printf.c (main): Comment out one test which
7607         checked the compiler's ability to fold floating-point constants
7608         but not really printf.
7609         (rfg3): Make s const.
7610         * stdio-common/tst-printf.sh: Adjust for removed test.
7611
7612         * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
7613         internal function.  Adjust for internal_function calling convention.
7614         * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
7615         as internal_function.
7616
7617         * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
7618         hidden.
7619
7620         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
7621         declaration and definition.
7622         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
7623         declaration.
7624         * nss/getXXent_r.c: Likewise.
7625         * nss/nsswitch.h (db_lookup_function): Add internal_function to
7626         definition.
7627
7628         * include/time.h: Declare __localtime_r as hidden.
7629
7630         * include/aliases.h: Declare __getaliasent_r as hidden.
7631         * include/grp.h: Declare __getgrent_r as hidden.
7632         * include/netdb.h: Declare __gethostent_r, __getnetent_r,
7633         __getservent_r, and __getprotoent_r as hidden.
7634         * include/pwd.h: Declare __getpwent_r as hidden.
7635         * include/shadow.h: Declare __getspent_r as hidden.
7636         * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
7637
7638         * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
7639         and __gconv_transliterate as hidden.
7640         Add internal_function to __gconv_get_path declaration.
7641         * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
7642         definition.  Add attribute_hidden to __gconv_read_conf definition.
7643
7644 2002-03-14  Ulrich Drepper  <drepper@redhat.com>
7645
7646         * elf/rtld.c: Declare _environ as hidden.
7647         * sysdeps/generic/dl-environ.c: Likewise.
7648         * sysdeps/generic/dl-sysdep.c: Likewise.
7649
7650         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
7651         _dl_mcount_internal as hidden.
7652
7653         * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
7654         * sysdeps/generic/dl-brk.c: New file.
7655         * sysdeps/generic/dl-sbrk.c: New file.
7656         * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
7657         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
7658
7659         * elf/dl-minimal.c (malloc): Declare _end as hidden.
7660         (__errno_location): New function.  Declare errno as hidden.
7661         * elf/rtld.c (_dl_argc): Define as hidden.
7662         (_dl_skip_args): Define as hidden.
7663         (_begin, _end): Declare as hidden.
7664         * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
7665         * sysdeps/generic/entry.h (_start): Declare as hidden.
7666         * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
7667         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
7668         _dl_runtime_resolve and _dl_runtime_profile as hidden.
7669         (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
7670
7671 2002-03-14  Roland McGrath  <roland@frob.com>
7672
7673         * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
7674
7675         * Makeconfig (%.v.i, %.v): New implicit rules.
7676         (preprocess-versions): Variable removed.
7677         ($(common-objpfx)shlib-versions.v.i): New target giving just the
7678         shlib-versions input files as dependencies.
7679         ($(common-objpfx)soversions.i): Depend on that instead of the input
7680         files.  Use it as input instead of using a pipeline.
7681         (postclean-generated): Append soversions.i, shlib-versions.v, and
7682         shlib-versions.v.i here.
7683         * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
7684         the Versions.def input files as dependencies.
7685         ($(common-objpfx)Versions.v.i): Likewise for Versions files.
7686         ($(common-objpfx)Versions.all): Depend on that instead of the input
7687         files.  Use it as input instead of using a pipeline.
7688         ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
7689         (postclean-generated): Append those .v and .v.i files here.
7690
7691 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
7692
7693         * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
7694         * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
7695         Remove.
7696
7697 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
7698
7699         * sysdeps/generic/mp_clz_tab.c: New file.
7700         * sysdeps/i386/mp_clz_tab.c: New file.
7701         * sysdeps/hppa/mp_clz_tab.c: New file.
7702         * sysdeps/powerpc/mp_clz_tab.c: New file.
7703         * stdlib/Makefile (aux): Revert last patch.
7704         * math/Makefile (gmp-objs): Likewise.
7705
7706 2002-03-13  Paul Eggert  <eggert@twinsun.com>
7707
7708         * time/strftime.c: Comment fixes for references to obsolescent
7709         standards, In most cases the simplest fix is to remove the
7710         confusing comments.  Cross-referencing all the standards properly
7711         is a bit of a pain, and it should be enough to put that info in
7712         the documentation as I did in my recent time.texi patch.
7713
7714 2002-03-13  Paul Eggert  <eggert@twinsun.com>
7715
7716         * manual/time.texi (Formatting Calendar Time):
7717         ISO C99 also specifies the E and O modifiers.
7718         %P is a GNU extension, and is not in ISO C99.
7719         Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
7720         %T is also in ISO C99.
7721         The RFC 822 example is not valid in arbitrary locales.
7722         Reword the POSIX.2 wording slightly, to make it a bit clearer
7723         that POSIX.2 formats are also supported by later POSIX versions.
7724         If a format was introduced in ISO C99 it is also required by
7725         POSIX.1-2001.
7726
7727 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
7728
7729         * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
7730         _sys_nerr_internal with INTVARDEF2.
7731         * include/libc-symbols.h (INTVARDEF2): New macro.
7732         * include/stdio.h (_sys_errlist_internal): Declare as hidden.
7733         (_sys_nerr_internal): Library.
7734
7735         * sysdeps/posix/signal.c (_sigintr): Define as hidden.
7736         * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
7737
7738         * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
7739
7740 2002-03-13  Wolfram Gloger  <wg@malloc.de>
7741
7742         * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
7743
7744 2002-03-02  Andreas Schwab  <schwab@suse.de>
7745
7746         * stdio-common/vfprintf.c (process_arg): Fix decimal format with
7747         'h' flag and positional arg.
7748         * stdio-common/tst-printf.c (rfg3): New function to test
7749         positional arguments.
7750         (main): Fix some warnings.
7751
7752 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
7753
7754         * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
7755         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
7756
7757 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
7758
7759         * grp/initgroups.c (__nss_group_data): Declare as hidden.
7760
7761         * include/locale.h (_nl_C_locobj): Declare as hidden.
7762
7763         * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
7764         * time/strptime.c (_nl_C_LC_TIME): Likewise.
7765
7766         * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
7767
7768         * include/sys/gmon.h: Declare _gmonparam as hidden.
7769
7770         * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
7771         (__ctype32_wctrans): Likewise.
7772         (__ctype32_width): Likewise.
7773
7774         * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
7775         use of __ttyname.
7776
7777         * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
7778         Define as hidden.
7779         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Define as
7780         hidden.  Change all users of these variables.
7781
7782         * posix/regex_internal.h (__re_error_msgid): Renamed from
7783         re_error_msgid.  Declare as hidden.
7784         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Declare as
7785         hidden.
7786
7787         * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
7788         (__printf_function_table): Likewise.
7789         * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
7790         hidden.
7791         (__printf_function_table): Likewise.
7792
7793         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
7794         __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
7795
7796         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
7797         * nss/nsswitch.c: Declare _nss_*_database as hidden.
7798
7799         * stdlib/wctomb.c (__no_r_state): Declare as hidden.
7800         * stdlib/mbtowc.c (__no_r_state): Define as hidden.
7801
7802 2002-03-12  Ulrich Drepper  <drepper@redhat.com>
7803
7804         * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
7805         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
7806         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
7807         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
7808         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
7809         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
7810         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
7811         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
7812         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
7813         _nl_C_LC_CTYPE_width: Declare as hidden.
7814         * include/locale.h: Declare _nl_locale_file_list.
7815         * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
7816         * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
7817         * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
7818         * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
7819         * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
7820         * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
7821         * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
7822         * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
7823         * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
7824         * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
7825         * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
7826         * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
7827         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
7828         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
7829         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
7830         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
7831         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
7832         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
7833         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
7834         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
7835         _nl_C_LC_CTYPE_width, and as hidden.
7836         * locale/findlocale.c: Declare _nl_C as hidden.
7837         * locale/newlocale.c: Likewise.
7838         * locale/setlocale.c: Define _nl_C as hidden.  Remove declaration of
7839         _nl_locale_file_list.
7840         * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
7841         _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
7842         Define _nl_C_locobj as hidden.
7843
7844         * malloc/mtrace.c (_mtrace_file): Define as hidden.
7845         (_mtrace_line): Likewise.
7846
7847         * include/time.h: Declare __mon_yday as hidden.
7848         * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
7849
7850         * libio/libioP.h: Declare __libio_codecvt as hidden.
7851         * libio/fileops.c: Declare __libio_translit as hidden.
7852         * libio/iofwide.c: Define __libio_translit as hidden.
7853
7854         * login/getutent_r.c: Define __libc_utmp_lock as hidden.
7855         * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
7856         * login/getutline_r.c: Likewise.
7857         * login/utmpname.c: Likewise.
7858
7859         * login/utmp-private.h: Declare __libc_utmp_file_functions,
7860         __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
7861         __libc_utmp_file_name as hidden.
7862
7863         * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
7864         * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
7865         * locale/freelocale.c: Likewise.
7866         * locale/lc-time.c: Likewise.
7867
7868         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
7869         (__libc_ptyname2): Likewise.
7870         * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
7871         hidden.
7872         (__libc_ptyname2): Likewise.
7873
7874         * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
7875         * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
7876         * sysdeps/generic/init-first.c: Likewise.
7877         * sysdeps/i386/init-first.c: Likewise.
7878         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
7879         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
7880         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
7881         * sysdeps/sh/init-first.c: Likewise.
7882         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
7883         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
7884
7885         * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
7886         (_itowa_upper_digits): Likewise.
7887
7888         * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
7889         * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
7890         as hidden.
7891
7892         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
7893         _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
7894         _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
7895         _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
7896
7897         * gmon/gmon.c (__bb_head): Define as hidden.
7898         * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
7899
7900         * argp/argp-parse.c (_argp_hang): Define as static.
7901
7902         * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
7903         handling in latest compilers.
7904
7905         * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
7906         define alias.
7907         * libio/fileops.c (_IO_file_jumps): Likewise.
7908         * libio/stdfiles.c (_IO_list_all): Likewise.
7909         * libio/wfileops.c (_IO_wfile_jumps): Likewise.
7910
7911         * malloc/malloc.h: Move __libc_malloc_initialized declaration to
7912         include/malloc.h.
7913         * include/malloc.h: Add __libc_malloc_initialized declaration
7914         here.  Mark variable hidden.
7915         * malloc/malloc.c: Include <malloc.h> not "malloc.h".
7916
7917         * elf/dl-open.c (__libc_argc): Declare as hidden.
7918         (__libc_argv): Likewise.
7919         * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
7920         (__libc_argv): Likewise.
7921         * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
7922         __libc_argv as hidden.
7923         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
7924         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
7925         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
7926         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
7927
7928         * include/stdlib.h (__libc_drand48_data): Declare as hidden.
7929         * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
7930         * stdlib/erand48.c: Likewise.
7931         * stdlib/jrand48.c: Likewise.
7932         * stdlib/lcong48.c: Likewise.
7933         * stdlib/lrand48.c: Likewise.
7934         * stdlib/mrand48.c: Likewise.
7935         * stdlib/nrand48.c: Likewise.
7936         * stdlib/seed48.c: Likewise.
7937         * stdlib/srand48.c: Likewise.
7938
7939         * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
7940         (_itoa_lower_digits_internal): New declaration.
7941         (_itoa_upper_digits_internal): New declaration.
7942         (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
7943         * stdio-common.h (_itoa_lower_digits_internal): New declaration.
7944         (_itoa_upper_digits_internal): New declaration.
7945         (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
7946         _itoa_lower_digits.
7947         * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
7948         * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
7949
7950         * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
7951         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
7952
7953         * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
7954         (_itowa_lower_digits): Likewise.
7955         (_itowa_upper_digits): Likewise.
7956         * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
7957         (_itowa_upper_digits): Likewise.
7958
7959         * intl/plural-exp.h (attribute_hidden): Define as empty macro if
7960         not already defined.
7961         (GERMANIC_PLURAL): Declare as hidden.
7962
7963         * posix/getopt.c (__getopt_initialized): Declare as hidden.
7964         (attribute_hidden): Define as empty macro if not already defined.
7965
7966         * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
7967         (__gconv_max_path_elem_len): Likewise.
7968         (__gconv_path_envvar): Likewise.
7969
7970         * math/Makefile (gmp-objs): Remove mp_clz_tab.
7971         * stdlib/Makefile (aux): Remove mp_clz_tab.
7972         * stdlib/mp_clz_tab.c: Removed.  Not needed anywhere.
7973
7974         * stdlib/exit.h (__exit_funcs): Declare as hidden.
7975
7976         * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
7977
7978         * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
7979         _nl_category_names, _nl_category_name_sizes, _nl_current,
7980         _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
7981
7982         * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
7983         (_nl_current_default_domain): Likewise
7984         (_nl_state_lock): Likewise.
7985         * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
7986         (_nl_current_default_domain): Likewise
7987         (_nl_state_lock): Likewise.
7988         * intl/bindtextdom.c (_nl_state_lock): Likewise.
7989
7990         * stdlib/fpioconst.h (__tens): Add attribute_hidden.
7991         (_fpioconst_pow10): Likewise.
7992
7993         * include/time.h (_tmbuf): Add attribute_hidden.
7994
7995         * time/tzset.c (tzstring_list): Define as static.
7996
7997         * include/time.h: Add attribute_hidden to __tzname_cur_max and
7998         __use_tzfile declaration.
7999
8000         * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
8001         and __wcsmbs_last_locale declaration.
8002
8003 2002-02-25  Paul Eggert  <eggert@twinsun.com>
8004
8005         * timezone/Makefile (tzbases): Move systemv from here...
8006         (tzlinks): to here, since the entries in systemv were all changed
8007         from Zone to Link lines in tz-2001a.  Bug reported (and patch
8008         tested) by Peter Breitenlohner.
8009
8010 2002-03-07  Jakub Jelinek  <jakub@redhat.com>
8011
8012         * time/tst-posixtz.c (tests): Add new tests.
8013         (main): Test whether tzset() sets daylight properly.
8014
8015 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
8016
8017         * time/tzset.c (tz_compute): Move __daylight, __tzname and
8018         __tzname_cur_max setting...
8019         (tzset_internal): ...here.
8020
8021 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
8022
8023         * time/tzset.c (compute_change): Don't return any value.
8024         (tz_compute): Likewise.  Don't handle southern hemisphere here.
8025         (__tz_convert): But here.
8026
8027 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8028
8029         * manual/examples/mkfsock.c: Include <string.h> as well.
8030         Patch by Alain De Carolis <alaind@wseurope.com>.
8031
8032 2002-03-06  Isamu Hasegawa  <isamu@yamato.ibm.com>
8033
8034         * posix/regexec.c (re_match): Fix incorrect register sizes.
8035         (re_search): Likewise.
8036
8037 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
8038
8039         * posix/regcomp.c (regfree): Remove a disused condition.
8040         * posix/regex_internal.c (re_acquire_state): Likewise.
8041         (re_acquire_state_context): Likewise.
8042         (register_state): Remove a redundant malloc invocation.
8043         * posix/regex_internal.h: (re_state_table_entry): Simplify
8044         the structure.
8045
8046 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
8047
8048         * posix/regcomp.c (regcomp): Add __builtin_expect to error
8049         handling conditions.
8050         (regerror): Likewise.
8051         (regfree): Likewise.
8052         (re_compile_internal): Likewise.
8053         (init_dfa): Likewise.
8054         (init_word_char): Likewise.
8055         (create_initial_state): Likewise.
8056         (analyze): Likewise.
8057         (analyze_tree): Likewise.
8058         (duplicate_node): Likewise.
8059         (calc_eclosure): Likewise.
8060         (calc_eclosure_iter): Likewise.
8061         (parse): Likewise.
8062         (parse_reg_exp): Likewise.
8063         (parse_branch): Likewise.
8064         (parse_expression): Likewise.
8065         (parse_subexp): Likewise.
8066         (parse_dup_op): Likewise.
8067         (parse_bracket_exp): Likewise.
8068         (build_equiv_class): Likewise.
8069         (build_charclass): Likewise.
8070         (build_word_op): Likewise.
8071         (fetch_number): Likewise.
8072         (create_tree): Likewise.
8073         (duplicate_tree): Likewise.
8074         * posix/regex.c (BE): New macro.
8075         * posix/regexec.c (re_match): Add __builtin_expect to error
8076         handling conditions.
8077         (re_match_2): Likewise.
8078         (re_search): Likewise.
8079         (re_search_internal): Likewise.
8080         (check_matching): Likewise.
8081         (proceed_next_node): Likewise.
8082         (set_regs): Likewise.
8083         (sift_states_backward): Likewise.
8084         (add_epsilon_backreference): Likewise.
8085         (transit_state): Likewise.
8086         (transit_state_sb): Likewise.
8087         (transit_state_mb): Likewise.
8088         (transit_state_bkref): Likewise.
8089         (transit_state_bkref_loop): Likewise.
8090         (build_trtable): Likewise.
8091         (group_nodes_into_DFAstates): Likewise.
8092         (match_ctx_init): Likewise.
8093         (match_ctx_add_entry): Likewise.
8094         * posix/regex_internal.c (re_string_construct): Add __builtin_expect
8095         to error handling conditions.
8096         (re_string_construct_toupper): Likewise.
8097         (build_wcs_buffer): Likewise.
8098         (build_wcs_upper_buffer): Likewise.
8099         (build_upper_buffer): Likewise.
8100         (re_string_translate_buffer): Likewise.
8101         (re_node_set_alloc): Likewise.
8102         (re_node_set_init_1): Likewise.
8103         (re_node_set_init_2): Likewise.
8104         (re_node_set_init_copy): Likewise.
8105         (re_node_set_intersect): Likewise.
8106         (re_node_set_init_union): Likewise.
8107         (re_node_set_merge): Likewise.
8108         (re_node_set_insert): Likewise.
8109         (re_dfa_add_node): Likewise.
8110         (re_acquire_state): Likewise.
8111         (re_acquire_state_context): Likewise.
8112         (create_new_state_common): Likewise.
8113         (register_state): Likewise.
8114         (create_ci_new_state): Likewise.
8115         (create_cd_new_state): Likewise.
8116         (re_string_context_at): Remove redundant condition.
8117
8118 2002-01-16  Roger Sayle  <roger@eyesopen.com>
8119
8120         * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
8121
8122         * sysdeps/i386/i586/strlen.S: Fix typo in comment.
8123
8124 2002-03-11  Jakub Jelinek  <jakub@redhat.com>
8125
8126         * sysdeps/i386/elf/configure.in: Fix comment.
8127
8128         * sysdeps/sparc/sparc64/configure.in: New file.
8129         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
8130         if .dynamic comes before .got.
8131         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
8132
8133         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
8134         HP_TIMING_ACCUM): Fix typos.
8135
8136 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8137
8138         * string/strfry.c: Add some more randomness to the seed.
8139         Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
8140
8141         * po/es.po: Update from translation team.
8142         * po/fr.po: Likewise.
8143
8144         * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
8145
8146         * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
8147         when determining type of format.
8148         Patch by James Antill <james@anqd.org> [PR libc/2787].
8149
8150 2002-03-04  Jakub Jelinek  <jakub@redhat.com>
8151
8152         * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
8153
8154 2002-03-11  Roland McGrath  <roland@frob.com>
8155
8156         * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
8157
8158         * Versions.def (libc): Add GLIBC_2.2.6.
8159         * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
8160         * sysdeps/mach/hurd/errnos.awk: In generated macro, use
8161         __errno_location instead of __hurd_errno_location, and don't inline it.
8162         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
8163         * hurd/errno.c: New file.
8164         * hurd/Makefile (routines): Add errno.
8165
8166 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8167
8168         * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
8169         ridiculously large widths and precisions [PR libc/3026].
8170
8171 2002-03-11  Andreas Jaeger  <aj@suse.de>
8172
8173         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
8174         support.
8175         Patch by Susanne Oberhauser <froh@SuSE.de>.
8176
8177 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8178
8179         * inet/rexec.c (ahostbuf): Define as static.
8180
8181         * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
8182         (__ctype32_wctrans): Likewise.
8183         * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
8184         * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
8185         (__ctype32_wctrans): Likewise.
8186         (__ctype32_width): Likewise.
8187
8188         * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
8189         They were never exported anyway.
8190
8191         * gmon/gmon.c (_gmonparam): Add attribute_hidden.
8192         * gmon/sys/gmon.h: Remove declaration of _gmonparam.  It wasn't
8193         exported.
8194         * include/sys/gmon.h: Declare _gmonparam.
8195
8196         * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
8197         symbols for getdents64.  They were never exported.
8198
8199 2002-03-09  Roland McGrath  <roland@frob.com>
8200
8201         * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
8202         Reported by Jon Arney <jarney1@cox.net>.
8203
8204 2002-02-23  Roland McGrath  <roland@frob.com>
8205
8206         * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
8207         declaration.
8208         (__hurd_errno_location): Function removed.
8209
8210 2002-03-06  Andreas Jaeger  <aj@suse.de>
8211
8212         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
8213         32-bit.
8214
8215 2002-03-04  Andreas Jaeger  <aj@suse.de>
8216
8217         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New file.
8218
8219         * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
8220         x86-64.
8221
8222         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New file.
8223
8224         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New file.
8225
8226         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New file.
8227
8228         * sysdeps/x86_64/bits/setjmp.h: New file.
8229
8230         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New file.
8231
8232         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New file.
8233
8234         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
8235         for x86.
8236         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
8237         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
8238
8239 2002-02-28  Bo Thorsen  <bo@suse.de>
8240
8241         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
8242         version.
8243
8244 2002-03-03  Andreas Jaeger  <aj@suse.de>
8245
8246         * sysdeps/x86_64/bits/wordsize.h: New file.
8247
8248         * elf/nodlopenmod2.c: Provide prototype to avoid warning.
8249         * elf/tst-tlsmod1.c: Likewise.
8250
8251         * posix/regcomp.c: Get regex.h from include dir for internal
8252         prototypes.
8253
8254         * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
8255         to libc-internal.h and include it.
8256         * include/libc-internal.h: Add __init_misc.
8257
8258         * misc/init-misc.c: Include libc-internal.h for prototypes.
8259
8260         * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
8261
8262         * misc/error.c [_LIBC]: Include libioP.h for prototype of
8263         _IO_putc_internal.
8264
8265 2002-03-03  Ulrich Drepper  <drepper@redhat.com>
8266
8267         * posix/regcomp.c: Compatibility changes to allow using the code
8268         outside glibc.
8269
8270 2002-02-28  Hartvig Ekner <hartvige@mips.com>
8271
8272         * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
8273         compiled non-PIC.
8274
8275 2002-03-02  Ulrich Drepper  <drepper@redhat.com>
8276
8277         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
8278         of .str elements in the returned data structure.
8279
8280         * elf/elf.h: Add Alpha TLS bits.
8281
8282 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8283
8284         * sysdeps/unix/sysv/linux/nice.c: New file.
8285
8286 2002-03-01  Ulrich Drepper  <drepper@redhat.com>
8287
8288         * elf/Makefile (dl-routines): Add dl-origin.
8289         (elide-routines.os): Add dl-origin.
8290         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
8291         * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
8292         _dl_debug_state.
8293         * include/libc-symbols.c: Define attribute_hidden depending on
8294         HAVE_VISIBILITY_ATTRIBUTE.  Add definition of INTVARDEF.
8295
8296         * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
8297         * elf/dl-load.c: Likewise.
8298         * elf/rtld.c: Likewise.
8299         * include/unistd.h: Declare __libc_enable_secure_internal.
8300         * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
8301         Use INTUSE with __libc_enable_secure.
8302         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
8303
8304         * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
8305         * elf/dl-error.c: Likewise,
8306         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
8307
8308         * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
8309         * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
8310         function definition.  Use INTDEF with _dl_get_origin.
8311         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
8312
8313         * elf/dl-init.c: Use INTUSE with _dl_starting_up.
8314         * elf/rtld.c: Likewise.  Use INTVARDEF for _dl_starting_up.
8315
8316         * elf/dl-profile.c: Use INTDEF for _dl_mcount.
8317         * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
8318         * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
8319
8320         * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
8321         * elf/dl-deps.c: Likewise.
8322         * elf/dl-error.c: Likewise.
8323         * elf/dl-fini.c: Likewise.
8324         * elf/dl-init.c: Likewise.
8325         * elf/dl-load.c: Likewise.
8326         * elf/dl-lookup.c: Likewise.
8327         * elf/dl-reloc.c: Likewise.
8328         * elf/dl-version.c: Likewise.
8329         * elf/do-lookup.h: Likewise.
8330         * sysdeps/arm/dl-machine.h: Likewise.
8331         * sysdeps/cris/dl-machine.h: Likewise.
8332         * sysdeps/hppa/dl-machine.h: Likewise.
8333         * sysdeps/i386/dl-machine.h: Likewise.
8334         * sysdeps/m68k/dl-machine.h: Likewise.
8335         * sysdeps/powerpc/dl-machine.h: Likewise.
8336         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8337         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8338         * sysdeps/sh/dl-machine.h: Likewise.
8339         * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
8340         * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
8341         * sysdeps/x86_64/dl-machine.h: Likewise.
8342         * elf/rtld.c: Use INTDEF for _dl_argv.  Use rtld_progrname instead of
8343         _dl_argv[0].  Use INTUSE with _dl_argv.
8344         * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
8345         * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
8346
8347 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8348
8349         * elf/rtld.c (_rtld_global): Remove .protected.
8350         (_rtld_local): Strong alias to _rtld_global.
8351         * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
8352         only .os object.
8353         * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
8354         _rtld_local instead of _rtld_global.
8355         (_rtld_local): Add hidden extern, possibly in .sdata section.
8356         * configure.in: Add tests for visibility attribute and .sdata.
8357         * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
8358         * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
8359         * sysdeps/arm/dl-machine.h: Likewise.
8360         * sysdeps/generic/ldsodefs.h: Likewise.
8361         * sysdeps/hppa/dl-machine.h: Likewise.
8362         * sysdeps/cris/dl-machine.h: Likewise.
8363         * sysdeps/i386/dl-machine.h: Likewise.
8364         * sysdeps/ia64/dl-machine.h: Likewise.
8365         * sysdeps/m68k/dl-machine.h: Likewise.
8366         * sysdeps/mips/mips64/dl-machine.h: Likewise.
8367         * sysdeps/mips/dl-machine.h: Likewise.
8368         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8369         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8370         * sysdeps/sh/dl-machine.h: Likewise.
8371         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8372         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8373         * sysdeps/x86_64/dl-machine.h: Likewise.
8374
8375 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
8376
8377         * login/login.c (login): Always initialize ut_line field
8378         [PR libc/2991].
8379
8380 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8381
8382         * sysdeps/i386/Makefile (sysdep_routines): Add
8383         divdi3 in csu dir.
8384         (shared-only-routines): Likewise.
8385         * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
8386         (shared-only-routines): Likewise.
8387         * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
8388         (shared-only-routines): Likewise.
8389         * sysdeps/wordsize-32/divdi3.c: New file.
8390
8391 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
8392
8393         * locale/iso-4217.def: Remove obsolete currencies for countries
8394         with Euro.
8395
8396 2002-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
8397
8398         * posix/regcomp.c (regcomp): Remove a redundant condition.
8399         (init_word_char): Add a check on malloc failure.
8400         (create_initial_state): Likewise.
8401         (duplicate_node): Likewise.
8402         (calc_eclosure): Likewise.
8403         (calc_eclosure_iter): Likewise.
8404         (parse_expression): Likewise.
8405         (parse_bracket_exp): Remove unnecessary malloc invocations.
8406         (build_equiv_class): Likewise.
8407         (build_charclass): Likewise.
8408         * posix/regex_internal.c (re_node_set_intersect): Add a check
8409         on malloc failure.
8410         (re_node_set_add_intersect): Likewise.
8411         (re_node_set_merge): Likewise.
8412         (re_acquire_state): Likewise.
8413         (re_acquire_state_context): Likewise.
8414         (create_newstate_common): Likewise.
8415         (register_state): Likewise.
8416         (create_ci_newstate): Likewise.
8417         (create_cd_newstate): Likewise.
8418         * posix/regex_internal.h: Fix prototypes of re_acquire_state
8419         and re_acquire_state_context.
8420         * posix/regexec.c (regexec): Suit it to the error handling of
8421         re_search_internal.
8422         (re_match): Likewise.
8423         (re_search): Likewise.
8424         (re_search_internal): Add a check on malloc failure.
8425         (acquire_init_state_context): Likewise.
8426         (check_matching): Likewise.
8427         (proceed_next_node): Likewise.
8428         (set_regs): Likewise.
8429         (sift_states_backward): Likewise.
8430         (sift_states_iter_bkref): Likewise.
8431         (add_epsilon_backreference): Likewise.
8432         (transit_state): Likewise.
8433         (transit_state_sb): Likewise.
8434         (transit_state_mb): Likewise.
8435         (transit_state_bkref_loop): Likewise.
8436         (build_trtable): Likewise.
8437         (group_nodes_into_DFAstates): Likewise.
8438         (match_ctx_init): Likewise.
8439         (match_ctx_add_entry): Likewise.
8440
8441 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
8442
8443         * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
8444         l_libname if profiling is enabled [PR libc/2916].
8445
8446         * sysdeps/ia64/dl-tls.h: New file.
8447
8448 2002-02-27  Jakub Jelinek  <jakub@redhat.com>
8449
8450         * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
8451         Work around an Alpha gas bug.
8452
8453 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
8454
8455         * catgets/open_catalog.c (__open_catalog): Fix typo in code which
8456         uses read to load the catalog.
8457         Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
8458
8459 2002-02-26  Ulrich Drepper  <drepper@redhat.com>
8460
8461         * posix/Makefile (distribute): Add regcomp.c, regexec.c,
8462         regex_internal.c, and regex_internal.h.
8463         (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
8464         * posix/regex.c: Complete rewrite.
8465         * posix/regexec.c: New file.
8466         * posix/regcomp.c: New file.
8467         * posix/regex_internal.c: New file.
8468         * posix/regex_internal.h: New file.
8469         * posix/regex.h (RE_ICASE): New macro.
8470         Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
8471
8472         * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
8473         ungetwc.  It's a macro.
8474         * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
8475         implementation.
8476         Reported by Jason Merrill <jason@redhat.com>.
8477
8478 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
8479
8480         * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
8481         position to fp->_offset if it is set.
8482         * stdio-common/Makefile (tests): Add tst-fdopen.
8483         * stdio-common/tst-fdopen.c: New test.
8484
8485 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
8486
8487         * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
8488         * stdio-common/tst-ungetc.c (main): Add another test.
8489
8490 2002-02-25  Ulrich Drepper  <drepper@redhat.com>
8491
8492         * assert/assert-perr.c: Use INTUSE to reference functions and variables
8493         inside libc itself.  Use INTDEF and INTDEF2 to define appropriate
8494         aliases.  Add prototypes for the new aliases.
8495         * assert/assert.c: Likewise.
8496         * include/libc-symbols.h: Likewise.
8497         * include/stdio.h: Likewise.
8498         * include/netinet/in.h: Likewise.
8499         * include/rpc/auth.h: Likewise.
8500         * include/rpc/auth_unix.h: Likewise.
8501         * include/rpc/key_prot.h: Likewise.
8502         * include/rpc/pmap_prot.h: Likewise.
8503         * include/rpc/pmap_rmt.h: Likewise.
8504         * include/rpc/rpc_msg.h: Likewise.
8505         * include/rpc/xdr.h: Likewise.
8506         * inet/gethstbyad_r.c: Likewise.
8507         * inet/gethstbynm2_r.c: Likewise.
8508         * inet/gethstbynm_r.c: Likewise.
8509         * inet/gethstent_r.c: Likewise.
8510         * inet/in6_addr.c: Likewise.
8511         * libio/__fpurge.c: Likewise.
8512         * libio/filedoalloc.c: Likewise.
8513         * libio/fileops.c: Likewise.
8514         * libio/ftello.c: Likewise.
8515         * libio/ftello64.c: Likewise.
8516         * libio/genops.c: Likewise.
8517         * libio/iofclose.c: Likewise.
8518         * libio/iofdopen.c: Likewise.
8519         * libio/iofflush.c: Likewise.
8520         * libio/iofflush_u.c: Likewise.
8521         * libio/iofgetpos.c: Likewise.
8522         * libio/iofgetpos64.c: Likewise.
8523         * libio/iofgets.c: Likewise.
8524         * libio/iofgets_u.c: Likewise.
8525         * libio/iofopen.c: Likewise.
8526         * libio/iofopncook.c: Likewise.
8527         * libio/iofputs.c: Likewise.
8528         * libio/iofread.c: Likewise.
8529         * libio/iofread_u.c: Likewise.
8530         * libio/iofsetpos.c: Likewise.
8531         * libio/iofsetpos64.c: Likewise.
8532         * libio/ioftell.c: Likewise.
8533         * libio/iofwrite.c: Likewise.
8534         * libio/iogetline.c: Likewise.
8535         * libio/iogets.c: Likewise.
8536         * libio/iogetwline.c: Likewise.
8537         * libio/iolibio.h: Likewise.
8538         * libio/iopadn.c: Likewise.
8539         * libio/iopopen.c: Likewise.
8540         * libio/ioseekoff.c: Likewise.
8541         * libio/ioseekpos.c: Likewise.
8542         * libio/iosetbuffer.c: Likewise.
8543         * libio/iosetvbuf.c: Likewise.
8544         * libio/ioungetc.c: Likewise.
8545         * libio/ioungetwc.c: Likewise.
8546         * libio/iovdprintf.c: Likewise.
8547         * libio/iovsprintf.c: Likewise.
8548         * libio/iovsscanf.c: Likewise.
8549         * libio/libioP.h: Likewise.
8550         * libio/memstream.c: Likewise.
8551         * libio/obprintf.c: Likewise.
8552         * libio/oldfileops.c: Likewise.
8553         * libio/oldiofclose.c: Likewise.
8554         * libio/oldiofdopen.c: Likewise.
8555         * libio/oldiofgetpos.c: Likewise.
8556         * libio/oldiofgetpos64.c: Likewise.
8557         * libio/oldiofopen.c: Likewise.
8558         * libio/oldiofsetpos.c: Likewise.
8559         * libio/oldiofsetpos64.c: Likewise.
8560         * libio/oldiopopen.c: Likewise.
8561         * libio/oldstdfiles.c: Likewise.
8562         * libio/putc.c: Likewise.
8563         * libio/setbuf.c: Likewise.
8564         * libio/setlinebuf.c: Likewise.
8565         * libio/stdfiles.c: Likewise.
8566         * libio/stdio.c: Likewise.
8567         * libio/strops.c: Likewise.
8568         * libio/vasprintf.c: Likewise.
8569         * libio/vscanf.c: Likewise.
8570         * libio/vsnprintf.c: Likewise.
8571         * libio/vswprintf.c: Likewise.
8572         * libio/wfiledoalloc.c: Likewise.
8573         * libio/wfileops.c: Likewise.
8574         * libio/wgenops.c: Likewise.
8575         * libio/wstrops.c: Likewise.
8576         * malloc/mtrace.c: Likewise.
8577         * misc/error.c: Likewise.
8578         * misc/syslog.c: Likewise.
8579         * nss/getXXbyYY_r.c: Likewise.
8580         * nss/getXXent_r.c: Likewise.
8581         * nss/hosts-lookup.c: Likewise.
8582         * stdio-common/getw.c
8583         * stdio-common/printf-prs.c: Likewise.
8584         * stdio-common/printf_fp.c: Likewise.
8585         * stdio-common/printf_size.c: Likewise.
8586         * stdio-common/putw.c: Likewise.
8587         * stdio-common/scanf.c: Likewise.
8588         * stdio-common/sprintf.c: Likewise.
8589         * stdio-common/tmpfile64.c: Likewise.
8590         * stdio-common/vfprintf.c: Likewise.
8591         * stdio-common/vfscanf.c: Likewise.
8592         * stdlib/strfmon.c: Likewise.
8593         * sunrpc/auth_des.c: Likewise.
8594         * sunrpc/auth_none.c: Likewise.
8595         * sunrpc/auth_unix.c: Likewise.
8596         * sunrpc/authdes_prot.c: Likewise.
8597         * sunrpc/authuxprot.c: Likewise.
8598         * sunrpc/clnt_perr.c: Likewise.
8599         * sunrpc/clnt_raw.c: Likewise.
8600         * sunrpc/clnt_tcp.c: Likewise.
8601         * sunrpc/clnt_udp.c: Likewise.
8602         * sunrpc/clnt_unix.c: Likewise.
8603         * sunrpc/key_call.c: Likewise.
8604         * sunrpc/key_prot.c: Likewise.
8605         * sunrpc/openchild.c: Likewise.
8606         * sunrpc/pm_getmaps.c: Likewise.
8607         * sunrpc/pm_getport.c: Likewise.
8608         * sunrpc/pmap_clnt.c: Likewise.
8609         * sunrpc/pmap_prot.c: Likewise.
8610         * sunrpc/pmap_prot2.c: Likewise.
8611         * sunrpc/pmap_rmt.c: Likewise.
8612         * sunrpc/rpc_cmsg.c: Likewise.
8613         * sunrpc/rpc_prot.c: Likewise.
8614         * sunrpc/svc_authux.c: Likewise.
8615         * sunrpc/svc_raw.c: Likewise.
8616         * sunrpc/svc_simple.c: Likewise.
8617         * sunrpc/svc_tcp.c: Likewise.
8618         * sunrpc/svc_udp.c: Likewise.
8619         * sunrpc/svc_unix.c: Likewise.
8620         * sunrpc/xdr.c: Likewise.
8621         * sunrpc/xdr_array.c: Likewise.
8622         * sunrpc/xdr_mem.c: Likewise.
8623         * sunrpc/xdr_rec.c: Likewise.
8624         * sunrpc/xdr_ref.c: Likewise.
8625         * sunrpc/xdr_stdio.c: Likewise.
8626         * sysdeps/generic/_strerror.c: Likewise.
8627         * sysdeps/generic/printf_fphex.c: Likewise.
8628         * sysdeps/generic/tmpfile.c: Likewise.
8629         * sysdeps/gnu/errlist.awk: Likewise.
8630         * sysdeps/gnu/errlist.c: Likewise.
8631
8632         * libio/Makefile (routines): Remove iosprint.
8633         * libio/iosprintf.c: Removed
8634
8635
8636 2002-02-24  Ulrich Drepper  <drepper@redhat.com>
8637
8638         * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
8639         non_dynamic_init and exported now.
8640         * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
8641         * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
8642         !SHARED.
8643         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
8644         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8645         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8646
8647 2002-02-23  Ulrich Drepper  <drepper@redhat.com>
8648
8649         * elf/dl-close.c (free_slotinfo): Check for end of list and return
8650         true in this case.
8651
8652         * locale/iso-639.def: Add language codes for Walloon.
8653
8654         * elf/dl-fini.c (_dl_fini): Print some final statistics on the
8655         total number of relocations performed.
8656
8657         * elf/sprof.c (load_profdata): If do_test provide information as
8658         to why loading failed.
8659         * elf/dl-profile.c (_dl_start_profile): Initialize all of
8660         hist_hdr.dimen.
8661
8662         * csu/set-init.c: Moved to...
8663         * sysdeps/mach/hurd/set-init.c: ...here.  New file.
8664         * csu/Makefile: Don't compile set-init.
8665         * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
8666         * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
8667         to __libc_init.
8668         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8669         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8670         * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
8671         __libc_init.
8672         * misc/init-misc.c: Always export __init_misc.  Don't define hooks for
8673         __libc_subinit.
8674
8675 2002-02-22  Ulrich Drepper  <drepper@redhat.com>
8676
8677         * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
8678         * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
8679         * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
8680         (_dl_deallocate_tls): New function.
8681         * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
8682         _dl_deallocate_tls.
8683
8684 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
8685
8686         * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
8687         * stdio-common/tst-fseek.c (main): Add test for this.
8688
8689 2002-02-19  Ulrich Drepper  <drepper@redhat.com.>
8690
8691         * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
8692
8693 2002-02-19  Jakub Jelinek  <jakub@redhat.com>
8694
8695         * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
8696         pointer before dereferencing.
8697
8698 2002-02-18  Roland McGrath  <roland@frob.com>
8699
8700         * sysdeps/mach/hurd/times.c: Fix typo in last change.
8701
8702         * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
8703         Use task_policy in place of task_priority.
8704
8705         * sysdeps/generic/bits/mman.h
8706         (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
8707         * sysdeps/mach/msync.c: New file.
8708
8709         * sysdeps/mach/powerpc/syscall.S: New file.
8710
8711         * mach/msg.c [MACH_MSG_OVERWRITE]
8712         (__mach_msg_trap, __mach_msg_overwrite): New functions.
8713         * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
8714
8715         * sysdeps/mach/configure.in: Check for clock.defs to put into
8716         mach_interface_list.
8717         * sysdeps/mach/configure: Regenerated.
8718
8719         * mach/Makefile (mach-machine): New variable, set from $(base-machine).
8720         ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
8721         ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
8722         Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
8723         (mach-shortcuts): Add device_read_overwrite_request,
8724         device_read_overwrite, vm_read_overwrite, thread_switch.
8725
8726         * configure.in (base_machine): Set to $machine by default.
8727         * configure: Regenerated.
8728
8729         * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
8730         or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
8731         * sysdeps/mach/configure: Regenerated.
8732         * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
8733
8734         * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
8735
8736         * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
8737
8738         * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
8739         Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
8740
8741 2002-02-17  Roland McGrath  <roland@frob.com>
8742
8743         * sysdeps/mach/hurd/times.c
8744         [NO_CREATION_TIME] (startup_time): New static variable.
8745         [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
8746         (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
8747         creation_time from task_basic_info.
8748         (__times): Use __gettimeofday instead of __host_get_time.
8749
8750         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
8751         Use untyped Mach IPC message format.
8752
8753         * hurd/catch-exc.c: Include <assert.h>, missing from last change.
8754
8755         * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
8756         _S_catch_exception_raise_state_identity,
8757         _hurdsig_fault_catch_exception_raise_state,
8758         _hurdsig_fault_catch_exception_raise_state_identity.
8759
8760         * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
8761
8762         * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
8763         __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
8764
8765         * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
8766         `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
8767
8768         * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
8769         (fmh, unfmh): Define these functions only #if FMH.  Otherwise define
8770         them as no-op macros.
8771         [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
8772         (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
8773
8774         * sysdeps/powerpc/dl-machine.h
8775         (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
8776
8777         * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
8778         Use untyped Mach IPC message format.
8779
8780         * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
8781         Handle untyped Mach IPC message formats.
8782
8783         * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
8784         Expect different argument conventions when this is defined.
8785         [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
8786         [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
8787         * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
8788         [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
8789         for OSF Mach variant.
8790         (faulted): Use mig_reply_error_t for REPLY.
8791         (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
8792         in __thread_set_exception_ports call.
8793         (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
8794         __mach_port_set_attributes in place of __mach_port_set_qlimit.
8795
8796         * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
8797         before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
8798         on Darwin, which includes bogons.
8799
8800         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
8801         variable LOADBASE so it's not declared when it's not used.
8802
8803 2002-02-16  Roland McGrath  <roland@frob.com>
8804
8805         * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
8806         to use BI.creation_time.
8807
8808         * mach/Machrules (MIG): Add -x c to CPP value passed down.
8809
8810         * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
8811         * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
8812         * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
8813         host_page_size instead of vm_statistics.
8814
8815         * sysdeps/mach/Makefile (mach-before-compile): Don't include
8816         mach_interface.h here, since not all variants use that name.
8817
8818         * sysdeps/mach/configure.in: Add some checks for Mach headers
8819         to ensure a sane installation.
8820         (mach_interface_list): Define this variable by checking for .defs
8821         files found in various variants.
8822         * configure.in (mach_interface_list): AC_SUBST this.
8823         * config.make.in (mach-interface-list): New substituted variable.
8824         * mach/Makefile (user-interfaces): Define this using the value
8825         of $(mach-interface-list) instead of mach, mach4.
8826         Updated other references to mach_interface to use it as well.
8827
8828         * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
8829
8830         * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
8831         mig_reply_error_t for OSF Mach variant.
8832
8833         * mach/Makefile (routines): Remove bootprivport.
8834         * mach/bootprivport.c: File removed.  It has never been used.
8835
8836         * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
8837         Grok the OSF flavor of message format.
8838         (mach_msg_destroy_port): For MAKE_SEND and
8839         MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
8840         no-senders notification.
8841
8842 2002-02-06  Roland McGrath  <roland@frob.com>
8843
8844         * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
8845         to here if 2.0 compatibility enabled ...
8846         (libc: GLIBC_2.1.3): ... from here.
8847
8848 2002-02-15  Ulrich Drepper  <drepper@redhat.com>
8849
8850         * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
8851         generation counter.
8852         * elf/dl-close.c (_dl_close): Likewise.
8853
8854 2002-02-14  Ulrich Drepper  <drepper@redhat.com>
8855
8856         * elf/Makefile: Add rules to build and run tst-tls8.
8857         * elf/tst-tls8.c: New file.
8858         * elf/tst-tlsmod4.c: New file.
8859
8860         * stdlib/test-a64l.c (tests): Add more test cases.
8861
8862         * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
8863         Reported by Walter Harms <WHarms@bfs.de>.
8864
8865 2002-02-11  Jes Sorensen  <jes@trained-monkey.org>
8866
8867         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
8868         definitions for struct sigcontext.
8869         Suggested by David Mosberger-Tang.
8870
8871 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
8872
8873         * elf/dl-close.c (remove_slotinfo): New function.  Handles everything
8874         for removing reference of module in slotinfo list.
8875         (_dl_close): Use remove_slotinfo.
8876         * sysdeps/generic/dl-tls.c: General pretty printing.
8877         (oom): Define only if SHARED.
8878         (_dl_next_tls_modid): Correct starting point for the case we assume
8879         there is a gap.  Add missing instruction grouping (doh!).  Correct
8880         tests for reaching maximum index.
8881         * elf/Makefile: Add rules to build and run tst-tls7.
8882         * elf/tst-tls7.c: New file.
8883         * elf/tst-tlsmod3.c: New file.
8884
8885         * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
8886         USE_TLS.
8887         * elf/tst-tlsmod2.c: Likewise.
8888
8889         * elf/dl-close.c (_dl_close): When closing an object using TLS
8890         either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
8891         true.  Increment dl_tls_generation only if we closed any TLS-using
8892         object.
8893         * elf/tst-tls6.c: New file.
8894         * elf/Makefile: Add rules to build and run tst-tls6.
8895
8896         * po/da.po: Update from translation team.
8897
8898         * locale/categories.def: Fix typo [PR libc/2948].
8899         * po/Makefile (BROKEN_LINGUAS): Works with current gettext
8900         [PR libc/2949].
8901         * locale/iso-4217.def: Update from official version [PR libc/2950].
8902         * glibcbug.in: Honor TMPDIR [PR libc/2951].
8903         * locale/programs/ld-collate.c (collate_finish): Bail out with a
8904         message if input is too confusion instead of using assert.
8905         (collate_read): Don't crash on unknown symbol [PR libc/2952].
8906         Patches by Alastair McKinstry <alastair@pdd.3com.com>.
8907
8908         * elf/tst-tls1.c: Move #include "tls-macros.h" inside #ifdef USE_TLS.
8909         * elf/tst-tls2.c: Likewise.
8910         * elf/tst-tls3.c: Likewise.
8911
8912 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
8913
8914         * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
8915
8916 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
8917
8918         * elf/dl-open.c (dl_open_worker): Only bump the generation counter
8919         if this is really necessary.
8920
8921         * elf/dl-close.c (_dl_close): Implement freeing entries in the
8922         slotinfo array.
8923         (free_mem): Free memory for the slotinfo array if possible.
8924
8925 2002-02-12  Andreas Schwab  <schwab@suse.de>
8926
8927         * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
8928
8929 2002-02-12  Ulrich Drepper  <drepper@redhat.com>
8930
8931         * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
8932         TLS_DTV_UNALLOCATE.
8933         (oom): New function.
8934         (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
8935         (_dl_determine_tlsoffset): Likewise.
8936         (_dl_allocate_tls): Likewise.
8937         (__TLS_GET_ADDR): Define if not already defined.
8938         (_dl_tls_symaddr): New function.
8939         (allocate_and_init): New function.
8940         (__tls_get_addr): Actually implement handling of generation counter
8941         and deferred allocation.
8942         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
8943         add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
8944         _dl_tls_generation.
8945         Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
8946         Declare _dl_tls_symaddr.
8947         * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
8948         SHARED.
8949         * include/link.h (struct link_map):  Remove l_tls_nextimage and
8950         l_tls_previmage.
8951         * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
8952         instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
8953         (_dl_vsym): Likewise.
8954         * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
8955         layout.
8956         (dl_main): Allow PT_TLS be present for empty segment.  Remove
8957         nextimage list handling.  Instead add all modules using TLS to
8958         dl_tls_dtv_slotinfo_list.
8959         * elf/dl-open.c (dl_open_worker): After successfully loading all
8960         objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
8961         * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
8962         empty segment don't do anything.  Remove handling of initimage list.
8963         * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
8964         (GLIBC_PRIVATE): Add _dl_tls_symaddr.
8965         * elf/dl-minimal.c: Define __libc_memalign.
8966         * elf/dl-support.c: Remove _dl_initimage_list.  Add
8967         _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
8968         _dl_tls_generation.
8969         * include/stdlib.h: Declare __libc_memalign.
8970
8971         * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
8972         * elf/tst-tls4.c: New file.
8973         * elf/tst-tls5.c: New file.
8974         * elf/tst-tlsmod2.c: New file.
8975
8976         * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
8977
8978         * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
8979
8980         * elf/tst-tls1.c: Use test-skeleton.c.
8981         * elf/tst-tls2.c: Likewise.
8982         * elf/tst-tls3.c: Likewise.
8983
8984         * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
8985
8986 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
8987
8988         * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
8989
8990 2002-02-10  Ulrich Drepper  <drepper@redhat.com>
8991
8992         * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
8993
8994         * elf/tst-tls3.c: New file.
8995         * elf/tst-tlsmod1.c: New file.
8996         * elf/Makefile: Add rules to build and run tst-tls3.
8997
8998         * sysdeps/i386/dl-machine.h: Include <tls.h>.
8999         (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
9000         TLS relocations.
9001
9002         * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
9003
9004         * po/fr.po: Update from translation team.
9005
9006         * elf/tls-macros.h: Add alternative macros for use in PIC.
9007
9008         * elf/dl-lookup.c: Include <tls.h>.
9009         * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
9010
9011         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
9012         required by passing pointer to last element of the list.
9013
9014         * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
9015         l_tls_initimage to a place where it actually is performed.
9016
9017         * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
9018         after globfree() calls.
9019
9020         * elf/dl-deps.c (struct openaux_args): Add open_mode element.
9021         (openaux): Pass open_mode as new last argument to _dl_map_object.
9022         (_dl_map_object_deps): Add new argument open_mode.  Initialize
9023         open_mode element of args variable with it.
9024         * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
9025         _dl_map_object_deps.
9026         * elf/rtld.c (dl_main): Add zero as last parameter to
9027         _dl_map_object_deps call.
9028         * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
9029         * elf/nodlopen2.c: New file.
9030         * elf/nodlopenmod2.c: New file.
9031         * elf/Makefile: Add rules to build and run nodlopen2.
9032
9033         * elf/tst-tls1.c: Move TLS helper macros to...
9034         * elf/tls-macros.h: ...here.  New file.
9035         * elf/tst-tls2.c: New file.
9036         * elf/Makefile (tests): Add tst-tls2.
9037         (distribute): Add tls-macros.h.
9038
9039         * po/sv.po: Update from translation team.
9040
9041         * elf/tst-tls1.c (main): Add complete set of tests.  Split
9042         architecture specific definitions from the actual test code.
9043
9044         * po/tr.po: Update from translation team.
9045
9046 2002-02-09  Ulrich Drepper  <drepper@redhat.com>
9047
9048         * elf/Makefile (tests): Add tst-tls1.
9049         * elf/tst-tls1.c: New file.
9050
9051         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
9052         alignment of TCB for now.
9053
9054         * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
9055         initialization image for the application itself.
9056
9057         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
9058         loop to initialize TLS block.
9059
9060 2002-02-08  Richard Henderson  <rth@redhat.com>
9061
9062         * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
9063         _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
9064
9065         * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
9066
9067 2002-02-09  Jakub Jelinek  <jakub@redhat.com>
9068
9069         * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
9070
9071 2002-02-08  Ulrich Drepper  <drepper@redhat.com>
9072
9073         * po/ca.po: Update from translation team.
9074         * po/sk.po: Likewise.
9075
9076         * elf/rtld.c (_dl_start_final): Install DTV explicitly.
9077         (dl_main): Move dtv/static TLS handling before relocation.
9078         Unconditionally call _dl_tlsoffset.  Call _dl_allocate_tls and
9079         TLS_INIT_TP to allocate and install the dtv/static TLS block.
9080         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
9081         so far uses TLS initialize GL(dl_tls_static_size) and
9082         GL(dl_tls_static_align) to account for the TCB.
9083         (_dl_allocate_tls): New function.
9084         * sysdeps/generic/ldsodefs.h (rtld_global): Add
9085         _dl_initial_dtv_malloced.
9086
9087         * configure.in: Test for __builtin_memset more realistically.
9088
9089         * csu/version.c (banner): If TLS support is available say so.
9090
9091 2002-02-04  H.J. Lu  <hjl@gnu.org>
9092
9093         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
9094         __attribute_used__.
9095         (__dl_runtime_resolve): Likewise.
9096
9097         * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
9098         declaration.
9099
9100 2001-11-15  H.J. Lu  <hjl@gnu.org>
9101
9102         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
9103         <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
9104
9105         * sysdeps/unix/sysv/linux/mips/sys/user.h: New file.
9106
9107 2002-02-07  H.J. Lu  <hjl@gnu.org>
9108
9109         * sysdeps/mips/atomicity.h (compare_and_swap): Remove
9110         ".set noreorder".
9111         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
9112         Likewise.
9113
9114 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9115
9116         * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
9117
9118         * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
9119         ___tls_get_addr_internal.
9120         (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
9121
9122         * po/ko.po: Update from translation team.
9123
9124 2002-02-07  Jakub Jelinek  <jakub@redhat.com>
9125
9126         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
9127         attribute, change __pad{1,2} type to unsigned int.
9128         (struct stat64): Remove packed attribute.
9129
9130 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9131
9132         * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
9133
9134 2002-02-07  Andreas Schwab  <schwab@suse.de>
9135
9136         * configure.in: Fix check for -zcombreloc.
9137
9138 2002-02-06  H.J. Lu  <hjl@gnu.org>
9139
9140         * config.h.in (HAVE_BUILTIN_MEMSET): New macro.
9141         * configure.in: Check if __builtin_memset really works.
9142         * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
9143         __GNUC_PREREQ (2, 96) before using __builtin_memset.
9144
9145 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
9146
9147         * io/bug-ftw3.c (main): Don't try the test if root.
9148
9149 2002-02-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9150
9151         * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
9152         constraints.
9153         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
9154         Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
9155         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
9156         Likewise.
9157         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
9158         a weak alias for __clone.
9159         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
9160         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
9161         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
9162         * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
9163         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
9164         a weak alias for __mmap64.
9165
9166 2002-02-05  H.J. Lu  <hjl@gnu.org>
9167
9168         * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
9169         (atomic_add): Likewise.
9170         (compare_and_swap): Likewise.
9171         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
9172
9173 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9174
9175         * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
9176
9177         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
9178         alignment of the TCB and store total size and alignment of static
9179         TLS block in _dl_tls_static_size and _dl_tls_static_align.
9180         tls_index is a typedef.
9181         * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
9182         _dl_tls_static_align.
9183         * sysdeps/i386/dl-tls.h: tls_index is a typedef.
9184         * elf/dl-support.c: Define _dl_tls_static_size and
9185         _dl_tls_static_align.
9186
9187 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9188
9189         * configure.in: Add --without-tls option.
9190         * sysdeps/i386/elf/configure.in: Don't check for TLS support if
9191         --without-tls is given.
9192
9193         * sysdeps/generic/dl-tls.c: Include <tls.h>.
9194
9195         * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
9196
9197 2002-02-06  Roland McGrath  <roland@frob.com>
9198
9199         * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
9200         * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
9201
9202         * scripts/versions.awk: Improve error message for missing version.
9203         Each version inherits from the last one only if they have the same
9204         nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
9205         but not GLIBC_x and FOO_y.
9206
9207         * scripts/firstversions.awk: Handle libraries that don't have each
9208         particular version named in the third column of shlib-versions.
9209
9210         * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
9211
9212 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9213
9214         * Versions.def [ld]: Add GLIBC_2.3.
9215         * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
9216         * elf/Makefile (dl-routines): Add dl-tls.
9217         (distribute): Add dl-tls.h.
9218         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9219         _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9220         Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
9221         * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
9222         along with the other info in the link map.  Change queueing of init
9223         images for double linked list.  Use _dl_next_tls_modid to compute
9224         l_tls_modid.
9225         * elf/rtld.c (_dl_start_final): Store alignment requirement
9226         along with the other info in rtld map and executable map.
9227         (dl_main): Add ld.so to the init image list if necessary.  Compute
9228         final module ID with _dl_next_tls_modid.
9229         * include/link.h (struct link_map): Add l_tls_previmage and
9230         l_tls_align.
9231         * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9232         * sysdeps/i386/elf/Versions: New file.
9233         * sysdeps/generic/dl-tls.c: New file.
9234         * sysdeps/generic/dl-tls.h: New file.
9235         * sysdeps/i386/dl-tls.h: New file.
9236
9237 2002-02-06  Roland McGrath  <roland@frob.com>
9238
9239         * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
9240         * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
9241
9242 2002-01-05  Roland McGrath  <roland@frob.com>
9243
9244         * sysdeps/mach/configure.in: New file.
9245         * sysdeps/mach/configure: New generated file.
9246
9247         * mach/Makefile (user-interfaces): Remove default_pager_helper.
9248         It has never been used by anything.
9249
9250 2002-02-06  H.J. Lu  <hjl@gnu.org>
9251
9252         * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
9253         is included.
9254
9255 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9256
9257         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
9258         attribute((packed)) to counter stupid people misusing gcc options.
9259         (struct stat64): Likewise.
9260
9261 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9262
9263         * elf/rtld.c (dl_main): Correct indentation.  Use bool as type for
9264         the variables which are used as booleans.
9265
9266 2002-02-06  Andreas Jaeger  <aj@suse.de>
9267
9268         * include/libc-symbols.h (INTUSE): Renamed from INT.
9269         * elf/dl-deps.c: Change users.
9270         * sysdeps/generic/dl-sysdep.c: Likewise.
9271         * sysdeps/generic/dl-cache.c: Likewise.
9272         * elf/dl-reloc.c: Likewise.
9273         * elf/rtld.c: Likewise.
9274         * elf/dl-version.c: Likewise.
9275         * elf/dl-load.c: Likewise.
9276         * elf/dl-dst.h: Likewise.
9277         * elf/dl-init.c: Likewise.
9278         * elf/dl-error.c: Likewise.
9279         * elf/dl-fini.c: Likewise.
9280         * elf/dl-runtime.c: Likewise.
9281         * elf/do-lookup.h: Likewise.
9282
9283         * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
9284         definition.
9285         * stdio-common/_itowa.h: Likewise.
9286
9287 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9288
9289         * elf/dl-minimal.c: Define _itoa_lower_digits.
9290
9291         * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
9292         DT_FLAGS set.
9293
9294         * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
9295         loading modules with the DF_STATIC_TLS flag set.
9296         * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
9297         element.
9298         * include/link.h (struct link_map): Add l_flags field.
9299         * elf/elf.h (DF_STATIC_TLS): New definition.
9300
9301         * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
9302         * dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.
9303
9304         * elf/rtld.c (process_dl_debug): Correct printing help message.
9305         * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
9306         for %s.
9307
9308         * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
9309         definition and pass &errno in use of this variable.
9310         Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
9311
9312 2002-02-04  Andreas Schwab  <schwab@suse.de>
9313
9314         * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
9315         * locale/programs/charmap-dir.c: Wrap calls that output messages
9316         with WITH_CUR_LOCALE.  Include "localedef.h" first.
9317         * locale/programs/charmap.c: Likewise.
9318         * locale/programs/ld-address.c: Likewise.
9319         * locale/programs/ld-collate.c: Likewise.
9320         * locale/programs/ld-ctype.c: Likewise.
9321         * locale/programs/ld-identification.c: Likewise.
9322         * locale/programs/ld-measurement.c: Likewise.
9323         * locale/programs/ld-messages.c: Likewise.
9324         * locale/programs/ld-monetary.c: Likewise.
9325         * locale/programs/ld-name.c: Likewise.
9326         * locale/programs/ld-numeric.c: Likewise.
9327         * locale/programs/ld-paper.c: Likewise.
9328         * locale/programs/ld-telephone.c: Likewise.
9329         * locale/programs/ld-time.c: Likewise.
9330         * locale/programs/linereader.c: Likewise.
9331         * locale/programs/linereader.h: Likewise.
9332         * locale/programs/localedef.c: Likewise.
9333         * locale/programs/locfile.c: Likewise.
9334         * locale/programs/repertoire.c: Likewise.
9335
9336 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9337
9338         * elf/rtld.c (_dl_start_final): Determine load address to locate
9339         ehdr with GL(dl_rtld_map).l_map_start.
9340
9341         * po/ca.po: Update from translation team.
9342
9343         * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
9344         * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
9345         header entry.
9346         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
9347         _dl_tls_module_cnt.
9348         * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
9349
9350 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
9351
9352         * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
9353         * include/link.h (struct link_map): Add various members for TLS
9354         information.
9355         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9356         _rtld_tlsoffset, add _dl_initimage_list.
9357         * sysdeps/i386/dl-lookupcfg.h: New file.
9358         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
9359         TLS relocation.  When using TLS we now use RESOLVE_MAP.
9360         (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
9361         is used.
9362
9363         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
9364         unused.
9365
9366         * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
9367         thread-pointer as soon as possible.
9368         * sysdeps/generic/ldsodefs.h: Include <tls.h>.  Define first TLS
9369         elements in rtld_global.
9370         * sysdeps/generic/tls.h: New file.
9371         * elf/Makefile (distribute): Add tls.h.
9372         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
9373         relocations.  Not complete yet.
9374
9375         * resolv/resolv.h: Allow user to define __need_res_state and only
9376         define __res_start structure then.
9377         * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
9378
9379         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
9380         dl_cpuclock_offset initialization to _dl_start_final.
9381         (_dl_show_auxv): Avoid unnecessary sign extension.
9382         * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
9383
9384 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
9385
9386         * config.h.in: Add HAVE_TLS_SUPPORT.
9387         * sysdeps/i386/elf/configure.in: New file.
9388
9389 2002-02-03  Andreas Schwab  <schwab@suse.de>
9390
9391         * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
9392         * sysdeps/posix/writev.c: Use ssize_t for bytes_written.  Fix comment.
9393
9394 2002-02-03  Thorsten Kukuk  <kukuk@suse.de>
9395
9396         * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
9397         alloca if the memory reqirements are too high.
9398
9399 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
9400
9401         * elf/dl-load.c (decompose_rpath): Avoid using strstr.
9402         * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
9403         the former is available anyway and speed isn't important here.
9404         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
9405         * elf/dl-version.c (match_symbol): Likewise.
9406         (_dl_check_map_versions): Likewise.
9407         * elf/rtld.c (process_envvars): Likewise.
9408         (print_statistics): Likewise.
9409         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
9410         * elf/dl-minimal.c (_itoa): Always define it.  Make it work for all
9411         bases.  Add assert to catch uses of unimplemented features.
9412         (__strsep): Add assert to catch uses of unimplemented features.
9413         * elf/dl-object.c (_dl_new_object): Don't use rawmemchr.  Use strchr
9414         and avoid inline optimization.
9415         * elf/rtld.c (process_envvars): Likewise.
9416         * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
9417         * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
9418         * elf/rtld.c (dl_main): Avoid strsep inline optimization.
9419
9420 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
9421
9422         * stdio-common/_itoa.h: Minor simplifications of the code.
9423         * stdio-common/_itoa.c: Likewise.
9424
9425         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
9426         instead of _dl_printf for debugging info output.
9427
9428         * manual/examples/mkfsock.c (make_named_socket): Make sure name is
9429         always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.
9430
9431 2002-02-01  H.J. Lu  <hjl@gnu.org>
9432
9433         * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
9434         (atomic_add): Likewise.
9435         (compare_and_swap): Return 0 only when failed to compare. Use
9436         branch likely.
9437
9438         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
9439         branch likely.
9440
9441 2002-02-03  kaz Kojima  <kkojima@rr.iij4u.or.jp>
9442
9443         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
9444
9445 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
9446
9447         * elf/dl-minimal.c (__strsep): New minimal implementation.
9448
9449 2002-02-02  Paul Eggert  <eggert@twinsun.com>
9450
9451         * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
9452         (__mktime_internal): If no tm_isdst is requested, prefer solutions
9453         with tm_isdst > 0 when the requested time falls within a
9454         spring-forward gap [PR libc/2894].
9455
9456 2002-02-03  Andreas Schwab  <schwab@suse.de>
9457
9458         * stdio-common/tst-rndseek.c: Increase timeout.
9459
9460 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
9461
9462         Change ld.so to not use functions which are exported.  One cannot
9463         interpose them anyway.  Use INT() to mark uses, INTDEF() to mark
9464         definitions.
9465         * include/libc-symbols.h: Define INT and INTDEF.
9466         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
9467         _dl_signal_error_internal, _dl_map_object_internal,
9468         _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
9469         _dl_lookup_versioned_symbol_internal,
9470         _dl_relocate_object_internal, _dl_debug_state_internal,
9471         _dl_start_profile_internal, and _dl_unload_cache_internal.
9472         * include/dlfcn.h: Declare _dl_catch_error_internal.
9473         * elf/rtld.c: Use INT for calls to any of the *_internal functions
9474         above.  Add INTDEF to function definitions.
9475         * elf/dl-debug.c: Likewise.
9476         * elf/dl-deps.c: Likewise.
9477         * elf/dl-dst.h: Likewise.
9478         * elf/dl-error.c: Likewise.
9479         * elf/dl-fini.c: Likewise.
9480         * elf/dl-init.c: Likewise.
9481         * elf/dl-load.c: Likewise.
9482         * elf/dl-lookup.c: Likewise.
9483         * elf/dl-misc.c: Likewise.
9484         * elf/dl-open.c: Likewise.
9485         * elf/dl-profile.c: Likewise.
9486         * elf/dl-reloc.c: Likewise.
9487         * elf/dl-runtime.c: Likewise.
9488         * elf/dl-version.c: Likewise.
9489         * elf/do-lookup.h: Likewise.
9490         * sysdeps/generic/dl-cache.c: Likewise.
9491         * sysdeps/generic/dl-sysdep.c: Likewise.
9492         * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
9493         instead of _dl_init.
9494         * sysdeps/arm/dl-machine.h: Likewise.
9495         * sysdeps/cris/dl-machine.h: Likewise.
9496         * sysdeps/hppa/dl-machine.h: Likewise.
9497         * sysdeps/i386/dl-machine.h: Likewise.
9498         * sysdeps/ia64/dl-machine.h: Likewise.
9499         * sysdeps/m68k/dl-machine.h: Likewise.
9500         * sysdeps/mips/dl-machine.h: Likewise.
9501         * sysdeps/mips/mips64/dl-machine.h: Likewise.
9502         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9503         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9504         * sysdeps/sh/dl-machine.h: Likewise.
9505         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9506         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9507         * sysdeps/x86_64/dl-machine.h: Likewise.
9508         * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
9509
9510         * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
9511         and _dl_debug_initialize.
9512
9513         * elf/dl-object.c (_dl_new_object): Avoid using strrchr.  We have
9514         more information.
9515         * elf/rtld.c (dl_main): Avoid strrchr.
9516         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
9517         result of readlink.  Search from the back for '/'.
9518
9519         * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
9520         strncpy if possible.
9521
9522         * sysdeps/generic/dl-environ.c (unsetenv): Optimize.  Don't use
9523         strncmp.
9524         * elf/dl-load.c (is_dst): Optimize.  Don't call strncmp twice.
9525         * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
9526         strspn, and strcspn.
9527         (process_envvars): Don't use strcspn.
9528
9529         * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
9530         (_dl_dst_substitute): Likewise.
9531
9532 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9533
9534         * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
9535         code which is never used when relocating ld.so itself.
9536
9537         * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
9538         starting ld.so itself.  Move l_addr variable initialization closer
9539         to use.
9540         (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
9541
9542 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
9543
9544         * Versions.def (libc): Add GLIBC_PRIVATE.
9545         (libdb, libnss_db, libdb1): Remove.
9546         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
9547         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
9548         (libpthread): Add GLIBC_PRIVATE.
9549         (libresolv): Likewise, remove GLIBC_2.1.
9550         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
9551         GLIBC_2.2.3, GLIBC_2.3.
9552         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
9553         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
9554         _dl_sym, _dl_vsym): Likewise.
9555         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
9556         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
9557         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
9558         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
9559         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
9560         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
9561         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
9562         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
9563         Likewise.
9564         (_dl_object_relocation_scope): Remove.
9565         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
9566         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
9567         __gconv_cache): Move to GLIBC_PRIVATE.
9568         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
9569         __internal_setnetgrent): Likewise.
9570         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
9571         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
9572         * locale/Versions (__collate_element_hash, __collate_element_strings,
9573         __collate_symbol_classes, __collate_symbol_hash,
9574         __collate_symbol_strings, _nl_current_LC_COLLATE,
9575         _nl_current_LC_CTYPE): Likewise.
9576         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
9577         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
9578         (libnss_nis, libnss_nisplus): Likewise.
9579         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
9580         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
9581         (libnss_files): Move all symbols to GLIBC_PRIVATE.
9582         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
9583         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
9584         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
9585         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
9586         __ns_get16, __ns_samename): Likewise.
9587         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
9588         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
9589         GLIBC_PRIVATE.
9590         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
9591         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
9592         __libc_connect): Likewise.
9593         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
9594         Likewise.
9595         * stdlib/Versions (__libc_system): Likewise.
9596         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
9597         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
9598         * sysdeps/ia64/fpu/Versions: Likewise.
9599         * sysdeps/ia64/Versions: Likewise.
9600         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
9601         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
9602         to GLIBC_PRIVATE.
9603         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
9604         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
9605         __libc_sigaction): Likewise.
9606         * termios/Versions (__libc_tcdrain): Likewise.
9607
9608         * misc/sys/cdefs (__attribute_noinline__): Define.
9609         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
9610         __attribute_noinline__.
9611
9612         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
9613         * elf/dl-xstat64.c: New file.
9614         * elf/dl-fxstat64.c: New file.
9615         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
9616         don't export __fxstat64 at multiple versions.
9617         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
9618         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
9619
9620 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
9621
9622         * locale/program/ld-collate.c (collate_finish): Assign a wide
9623         char collation sequence value to multi character collating
9624         elements, and avoid over writing by non-character elements.
9625
9626 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9627
9628         * elf/Makefile (distribute): Add dl-procinfo.c.
9629         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
9630         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
9631
9632 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
9633
9634         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
9635         definition.
9636         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
9637         _rtld_global struct.
9638         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
9639         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
9640         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9641         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
9642         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
9643         _dl_fpu_control_set): Remove unused externs.
9644         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
9645         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
9646         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
9647         related variables in _rtld_global struct.
9648         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
9649         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
9650         unused extern.
9651
9652 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9653
9654         * sysdeps/generic/dl-procinfo.c: New file.
9655
9656 2002-02-01  Andreas Schwab  <schwab@suse.de>
9657
9658         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
9659
9660 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9661
9662         * elf/rtld.c (_dl_start): Mark as internal_function.
9663         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
9664         in register.
9665         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
9666         General pretty printing.
9667
9668 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
9669
9670         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
9671         * elf/dl-reloc.c: Pretty printing.
9672         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
9673         procinfo-related variables in rtld_global struct.
9674         * elf/dl-support.c: Likewise.
9675         * elf/rtld.c: Likewise.
9676         * sysdeps/i386/i686/Makefile: Likewise.
9677         * sysdeps/i386/i686/hp-timing.c: Likewise.
9678         * sysdeps/i386/i686/hp-timing.h: Likewise.
9679         * sysdeps/ia64/Makefile: Likewise.
9680         * sysdeps/ia64/hp-timing.c: Likewise.
9681         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
9682         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
9683         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
9684         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
9685         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
9686         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
9687         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
9688         * sysdeps/x86_64/Makefile: Likewise.
9689
9690         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
9691         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
9692         _dl_debug_fd to rtld_global.
9693         * elf/Versions: Likewise.
9694         * elf/dl-close.c: Likewise.
9695         * elf/dl-iteratephdr.c: Likewise.
9696         * elf/dl-lookup.c: Likewise.
9697         * elf/dl-misc.c: Likewise.
9698         * elf/dl-open.c: Likewise.
9699         * elf/dl-support.c: Likewise.
9700         * elf/do-lookup.h: Likewise.
9701         * elf/rtld.c: Likewise.
9702         * sysdeps/generic/dl-cache.c: Likewise.
9703         * sysdeps/generic/dl-sysdep.c: Likewise.
9704         * sysdeps/ia64/Versions: Likewise.
9705         * sysdeps/unix/clock_gettime.c: Likewise.
9706         * sysdeps/unix/clock_settime.c: Likewise.
9707         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
9708         * sysdeps/sparc/Versions: Removed.
9709         * sysdeps/i386/i686/Versions : Removed.
9710         * sysdeps/x86_64/Versions: Removed.
9711         * configure.in: Define HAVE_PROTECTED if .protected is available.
9712         * config.h.in: Add entry for HAVE_PROTECTED.
9713
9714 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
9715
9716         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
9717         code in struct _rtld_global.  Export this struct, remove all
9718         exports for the signal variables.
9719         * sysdeps/arm/dl-machine: Likewise.
9720         * sysdeps/generic/dl-origin: Likewise.
9721         * sysdeps/generic/dl-sysdep: Likewise.
9722         * sysdeps/generic/dl-cache: Likewise.
9723         * sysdeps/hppa/dl-fptr: Likewise.
9724         * sysdeps/hppa/dl-machine: Likewise.
9725         * sysdeps/cris/dl-machine: Likewise.
9726         * sysdeps/i386/dl-machine: Likewise.
9727         * sysdeps/ia64/dl-machine: Likewise.
9728         * sysdeps/m68k/dl-machine: Likewise.
9729         * sysdeps/mach/hurd/dl-sysdep: Likewise.
9730         * sysdeps/mips/mips64/dl-machine: Likewise.
9731         * sysdeps/mips/dl-machine: Likewise.
9732         * sysdeps/powerpc/elf/libc-start: Likewise.
9733         * sysdeps/powerpc/dl-machine: Likewise.
9734         * sysdeps/powerpc/dl-start: Likewise.
9735         * sysdeps/sparc/sparc32/dl-machine: Likewise.
9736         * sysdeps/sparc/sparc64/dl-machine: Likewise.
9737         * sysdeps/sh/dl-machine: Likewise.
9738         * sysdeps/s390/s390-32/dl-machine: Likewise.
9739         * sysdeps/s390/s390-64/dl-machine: Likewise.
9740         * sysdeps/unix/sysv/aix/libc-start: Likewise.
9741         * sysdeps/unix/sysv/aix/start-libc: Likewise.
9742         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
9743         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
9744         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
9745         * sysdeps/x86_64/dl-machine: Likewise.
9746
9747 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
9748
9749         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
9750         are too high.
9751
9752 2002-01-31  Andreas Schwab  <schwab@suse.de>
9753
9754         * sysdeps/posix/readv.c: Check for ssize_t overflow.
9755
9756 2002-01-31  Andreas Schwab  <schwab@suse.de>
9757
9758         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
9759         reference to _dl_pagesize.
9760
9761 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
9762
9763         * Versions.def [ld]: Add GLIBC_2.3.
9764         * elf/dl-addr.c: Move global variables for SHARED code in struct
9765         _rtld_global.  Export this struct, remove all exports for the
9766         signal variables.
9767         * elf/dl-close.c: Likewise.
9768         * elf/dl-conflict.c: Likewise.
9769         * elf/dl-debug.c: Likewise.
9770         * elf/dl-deps.c: Likewise.
9771         * elf/dl-dst.h: Likewise.
9772         * elf/dl-error.c: Likewise.
9773         * elf/dl-fini.c: Likewise.
9774         * elf/dl-init.c: Likewise.
9775         * elf/dl-iteratephdr.c: Likewise.
9776         * elf/dl-libc.c: Likewise.
9777         * elf/dl-load.c: Likewise.
9778         * elf/dl-lookup.c: Likewise.
9779         * elf/dl-minimal.c: Likewise.
9780         * elf/dl-object.c: Likewise.
9781         * elf/dl-open.c: Likewise.
9782         * elf/dl-profile.c: Likewise.
9783         * elf/dl-profstub.c: Likewise.
9784         * elf/dl-reloc.c: Likewise.
9785         * elf/dl-runtime.c: Likewise.
9786         * elf/dl-support.c: Likewise.
9787         * elf/dl-sym.c: Likewise.
9788         * elf/dl-version.c: Likewise.
9789         * elf/do-lookup.h: Likewise.
9790         * elf/do-rel.h: Likewise.
9791         * elf/dynamic-link.h: Likewise.
9792         * elf/rtld.c: Likewise.
9793         * sysdeps/generic/dl-cache.c: Likewise.
9794         * sysdeps/generic/dl-sysdep.c: Likewise.
9795         * sysdeps/generic/ldsodefs.h: Likewise.
9796         * sysdeps/generic/libc-start.c: Likewise.
9797         * sysdeps/i386/dl-machine.h: Likewise.
9798         * sysdeps/ia64/dl-fptr.c: Likewise.
9799         * sysdeps/ia64/dl-machine.h: Likewise.
9800         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
9801         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
9802         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
9803         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
9804         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
9805         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
9806         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
9807         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
9808
9809 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
9810
9811         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
9812         to avoid warning
9813         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
9814
9815         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
9816         SHARED version.
9817         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
9818
9819         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
9820
9821 2002-01-29  Ben Collins  <bcollins@debian.org>
9822
9823         * string/bits/string2.h (__mempcpy): Protect size arg for
9824         addition when using __builtin_memcpy.
9825
9826 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
9827
9828         * stdlib/Makefile (tests): Add tst-qsort.
9829         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
9830
9831         * manual/signal.texi (Process Signal Mask): Document that
9832         pthread_sigmask, not sigprocmask, must be used in MT programs.
9833         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
9834
9835         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
9836         found.
9837         * misc/Makefile (tests): Add tst-hsearch.
9838         * misc/tst-hsearch.c: New file.
9839
9840 2002-01-18  Wolfram Gloger  <wg@malloc.de>
9841
9842         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
9843         * malloc/malloc.h: Likewise.
9844         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
9845         * malloc/arena.c: New file.
9846         * malloc/hooks.c: New file.
9847         * malloc/tst-mallocstate.c: New file.
9848         * malloc/Makefile: Add new testcase tst-mallocstate.
9849         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
9850
9851 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
9852
9853         * stdlib/msort.c: Remove last patch.  The optimization violates the
9854         same rule which qsort.c had problems with.
9855
9856 2002-01-27  Paul Eggert  <eggert@twinsun.com>
9857
9858         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
9859         to a pivot element that lies outside the array to be sorted, as
9860         ISO C99 requires that the comparison function be called only with
9861         addresses of array elements [PR libc/2880].
9862
9863 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
9864
9865         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
9866         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
9867
9868         * timezone/asia: Update from tzdata2002b.
9869         * timezone/australasia: Likewise.
9870         * timezone/backward: Likewise.
9871         * timezone/europe: Likewise.
9872         * timezone/leapseconds: Likewise.
9873         * timezone/iso3166.tab: Likewise.
9874         * timezone/zone.tab: Likewise.
9875
9876 2002-01-23  Richard Henderson  <rth@redhat.com>
9877
9878         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
9879
9880 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
9881
9882         * string/strxfrm.c: Allocate one more byte for rulearr and clear
9883         this element [PR libc/2855].
9884
9885         * string/strcoll.c: Handle zero-length arguments specially
9886         [PR libc/2856].
9887
9888 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
9889
9890         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
9891         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
9892         short lengths and constant src.
9893         (strcpy): Don't optimize for gcc 3.0+.
9894         (__stpcpy): For gcc 3.0+, don't use
9895         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
9896         for short string literal src.
9897
9898 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
9899
9900         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
9901         Set for arm, too.
9902
9903 2001-01-22  Paul Eggert  <eggert@twinsun.com>
9904
9905         * manual/llio.texi (Linked Channels, Cleaning Streams):
9906         Make it clearer that a just-opened input stream might need cleaning.
9907
9908 2002-01-21  H.J. Lu  <hjl@gnu.org>
9909
9910         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
9911         Don't use label at end of compound statement.
9912
9913 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
9914
9915         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
9916         Remove test for negative integer arg; sin_pi does it correctly.
9917
9918 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
9919
9920         * nscd/Makefile (distribute): Filter out xmalloc.c.
9921
9922 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
9923
9924         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
9925         Set offset if read end wasn't the buffer end.
9926         (_IO_file_seekoff_mmap): New function.
9927         (_IO_file_xsgetn_mmap): New function.
9928         (_IO_file_jumps_mmap): Use the two new functions.
9929         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
9930         != end buffer.
9931         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
9932         _IO_file_underflow_mmap.
9933         * libio/iofopen.c: Don't position file descriptor at end of file.
9934         * libio/tst-widetext.c: Improve error messages.
9935         * stdio-common/tst-rndseek.c: Likewise.
9936
9937 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
9938
9939         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
9940         end of enum for !_GNU_SOURCE.
9941         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
9942         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
9943         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
9944         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
9945         values unless _GNU_SOURCE.
9946
9947         * iconvdata/tcvn5712-1.c: Minor cleanups.
9948
9949 2002-01-18  Andreas Schwab  <schwab@suse.de>
9950
9951         * sysdeps/unix/sysv/linux/configure.in
9952         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
9953
9954 2002-01-16  Roger Sayle  <roger@eyesopen.com>
9955
9956         * stdlib/msort.c (msort_with_tmp): Replace implementation with
9957         more efficient "Towers of Hanoi" mergesort.
9958         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
9959         for generic, sizeof(int) and sizeof(long) variants respectively.
9960
9961 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
9962
9963         * manual/syslog.texi (openlog): Describe possible problems with
9964         first parameter.
9965         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
9966
9967         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
9968         * nscd/connections.c (begin_drop_privileges): New function.
9969         (finish_drop_privileges): New function.
9970         (nscd_init): Call the new functions which also install all groups
9971         for the server user.
9972         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
9973         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
9974
9975 2002-01-17  H.J. Lu  <hjl@gnu.org>
9976
9977         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
9978         `const' from `got'.
9979
9980 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9981
9982         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
9983         instructions for pointer operations.
9984         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
9985
9986 2002-01-17  Andreas Jaeger  <aj@suse.de>
9987
9988         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
9989         __uint128_t build-in.
9990
9991         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
9992         PowerPC, sync with 2.2 branch.
9993
9994 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
9995
9996         * posix/getconf.c: Update copyright year.
9997         * nss/getent.c: Likewise.
9998         * nscd/nscd_nischeck.c: Likewise.
9999         * iconv/iconvconfig.c: Likewise.
10000         * iconv/iconv_prog.c: Likewise.
10001         * elf/ldconfig.c: Likewise.
10002         * catgets/gencat.c: Likewise.
10003         * csu/version.c: Likewise.
10004         * elf/ldd.bash.in: Likewise.
10005         * elf/sprof.c (print_version): Likewise.
10006         * locale/programs/locale.c: Likewise.
10007         * locale/programs/localedef.c: Likewise.
10008         * nscd/nscd.c (print_version): Likewise.
10009         * debug/xtrace.sh: Likewise.
10010         * malloc/memusage.sh: Likewise.
10011         * malloc/mtrace.pl: Likewise.
10012
10013 2002-01-16  Andreas Schwab  <schwab@suse.de>
10014
10015         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
10016         reliably remove "-ia64" from rtld name.
10017
10018 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
10019
10020         * iconvdata/gb18030.c: Bug fixes and support for more characters.
10021         Patch by Yu Shao <yshao@redhat.com>.
10022
10023 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10024
10025         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
10026         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
10027         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
10028
10029 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10030
10031         * sysdeps/s390/fpu/libm-test-ulps: Update.
10032
10033 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
10034
10035         * elf/elf.h: Update x86 relocations.
10036
10037 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
10038
10039         * locale/programs/charmap.c (new_width): Check whether byte
10040         sequences for both ends of range have the same length.
10041
10042 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
10043
10044         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
10045
10046 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
10047
10048         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
10049         string literals.
10050         (__full_ieee754_sqrt): Add __attribute_used__.
10051
10052 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
10053
10054         * sysdeps/generic/group_member.c (__group_member): Also check
10055         groups[0] [PR libc/2781].
10056
10057 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
10058
10059         * Makefile (distribute): Add scripts/cpp.
10060         * elf/Makefile (distribute): Add reldep6mod[01234].c,
10061         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
10062         unwind-dw2-fde.h, and dwarf2.h.
10063         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
10064         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
10065         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
10066         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
10067
10068 2002-01-07  Roland McGrath  <roland@frob.com>
10069
10070         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
10071         volatile on type of ARGC so the compiler doesn't get clever.
10072
10073 2002-01-07  Andreas Jaeger  <aj@suse.de>
10074
10075         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
10076         * sysdeps/i386/bits/byteswap.h: Likewise.
10077         * sysdeps/ia64/bits/byteswap.h: Likewise.
10078         * sysdeps/m68k/bits/byteswap.h: Likewise.
10079         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
10080         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
10081
10082 2002-01-02  Bruno Haible  <bruno@clisp.org>
10083
10084         * intl/plural.y: Fix %expect count.
10085
10086 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
10087
10088         * elf/Makefile (routines, shared-only-routines): Add
10089         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
10090         * elf/elf.h (PT_GNU_EH_FRAME): Define.
10091         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
10092         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
10093         Optimize if .eh_frame section contains no FDEs.
10094         (__register_frame, __deregister_frame_info_bases,
10095         __deregister_frame): Likewise.
10096         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
10097         DW_CFA_restore handling.
10098
10099 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
10100
10101         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
10102
10103         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
10104         for x < 0.25 and restore original range reduction method.
10105         (__ieee754_lgammal_r): Make sure signgam is set before returning.
10106
10107 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
10108
10109         * libio/fileops.c (_IO_file_underflow_mmap): New function.
10110         (_IO_file_close_mmap): New function.
10111         (_IO_file_jumps_mmap): New variable.
10112         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
10113         trying to convert rest of byte buffer.
10114         (_IO_wfile_underflow_mmap): New function.
10115         (_IO_wfile_jumps_mmap): New variable.
10116         * libio/iofopen.c (__fopen_maybe_mmap): New function.
10117         (__fopen_internal): New function.  Split out from _IO_new_fopen.
10118         (_IO_new_fopen): Call __fopen_internal.
10119         * libio/iofopen64.c: Just call __fopen_internal.
10120         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
10121         successfully.
10122         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
10123         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
10124         _IO_file_close_mmap.
10125
10126         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
10127         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
10128
10129         * stdio-common/Makefile (tests): Add tst-rndseek.
10130         * stdio-common/tst-rndseek.c: New file.
10131
10132 2002-01-05  Roland McGrath  <roland@frob.com>
10133
10134         * config.h.in (HAVE_MIG_RETCODE): New #undef.
10135         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
10136         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
10137         * sysdeps/mach/hurd/configure: Regenerated.
10138
10139 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
10140
10141         * elf/elf.h: Add more TLS definitions.
10142
10143 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
10144
10145         * include/features.h (__GLIBC_MINOR__): Bump to 3.
10146
10147 2002-01-02  Roland McGrath  <roland@frob.com>
10148
10149         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
10150         __sigisemptyset.  Don't use MASK uninitialized.
10151
10152         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
10153         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
10154         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
10155         __sigdelset, __sigaddset, __sigorset.
10156
10157         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
10158         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
10159
10160         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
10161         _hurd_ports is null.
10162
10163         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
10164         for old CMU and new OSF Mach interface flavors.
10165         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
10166         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10167
10168         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
10169
10170         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
10171         Pass extra arguments to task_create for OSF variant.
10172         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10173
10174         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
10175         conditional on [HAVE_AUX_VECTOR].
10176
10177         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
10178         mach_msg_timeout_t as type of final argument.
10179
10180         * hurd/privports.c (__get_privileged_ports):
10181         Change host_priv_t to mach_port_t in argument type.
10182         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
10183         Update decls.
10184
10185         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
10186         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
10187         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
10188         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
10189         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
10190         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
10191
10192 2002-01-01  Roland McGrath  <roland@frob.com>
10193
10194         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
10195
10196 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
10197
10198         * include/stdlib.h: Define inlines for the _l variants of the strto*
10199         functions.
10200
10201 2002-01-01  Roland McGrath  <roland@frob.com>
10202
10203         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
10204
10205         * mach/Machrules (MIG): Set CPP as well as CC.
10206
10207 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
10208
10209         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
10210         locale to parse /proc/loadavg [PR libc/2760].
10211
10212 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
10213
10214         * elf/dl-conflict.c: Include sys/param.h.
10215         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
10216         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
10217         warning.
10218         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
10219         literals to avoid warnings.
10220
10221 2001-12-31  Andreas Jaeger  <aj@suse.de>
10222
10223         * configure.in: Don't check for gsed since we do not use it anywhere.
10224
10225 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
10226
10227         * io/fts.c: Update from BSD to fix memory leaks.
10228
10229 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
10230
10231         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
10232         * elf/chroot_canon.c: Likewise.
10233         * elf/dl-object.c: Likewise.
10234         * iconv/iconv_charmap.c: Likewise.
10235         * iconv/iconv_prog.c: Likewise.
10236         * libio/iogetdelim.c: Likewise.
10237         * locale/lc-time.c: Likewise.
10238         * stdlib/canonicalize.c: Likewise.
10239         * sunrpc/svc.c: Likewise.
10240         * sysdeps/generic/glob.c: Likewise.
10241
10242 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10243
10244         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
10245         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
10246         remove high order bit from the program counter.
10247         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
10248
10249 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10250
10251         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
10252         unnecessary code and add missing reloc types.
10253         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
10254         case for reloc type R_390_NONE.
10255
10256 2001-12-28  Andreas Jaeger  <aj@suse.de>
10257
10258         * io/bug-ftw3.c: Include string.h for prototypes.
10259
10260         * crypt/md5test.c (main): Remove unused variable.
10261
10262         * dlfcn/modstatic.c: Add prototype to avoid warning.
10263
10264 2001-12-26  Roland McGrath  <roland@frob.com>
10265
10266         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
10267         check only (SS->pending & MASK) for the signal to return.
10268         From Jeroen Dekkers <jeroen@dekkers.cx>.
10269
10270 2001-12-22  Roland McGrath  <roland@frob.com>
10271
10272         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
10273         Use preprocessor #if conditionals instead of `if' to avoid
10274         warnings about divide by zero in dead code.
10275
10276         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
10277         _hurd_port_init, and __hurd_self_sigstate.
10278
10279         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
10280
10281 2001-12-21  Andreas Jaeger  <aj@suse.de>
10282
10283         * elf/dblloadmod1.c: Add prototype to avoid warning.
10284         * elf/dblloadmod2.c: Likewise.
10285         * elf/dblloadmod3.c: Likewise.
10286         * elf/reldepmod5.c: Likewise.
10287         * elf/reldepmod6.c: Likewise.
10288
10289         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
10290         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
10291         used on all architectures.
10292
10293         * sunrpc/svc_tcp.c: Add noreturn attribute for
10294         svctcp_rendezvous_abort.
10295         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
10296
10297         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
10298         to avoid warning.
10299
10300 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
10301
10302         * manual/llio.texi (aio_fsync): Fix a typo.
10303         Patch by Tammy Fox <tfox@redhat.com>.
10304
10305 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
10306
10307         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
10308         stack bias from child stack pointer before passing it to clone syscall.
10309
10310 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
10311
10312         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
10313         _SC_TZNAME_MAX.
10314         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
10315         Reported by Thorsten Kukuk <kukuk@suse.de>.
10316
10317         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
10318         add some casts.
10319
10320         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
10321
10322 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
10323
10324         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
10325         conforming: return EBADF if file descriptor is invalid and EINVAL
10326         if file descriptor is no valid tty.
10327         * login/tst-grantpt.c: New file.
10328         * login/Makefile (tests): Add tst-grantpt.
10329
10330 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
10331
10332         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
10333         different than implemented in last patch.
10334         * io/bug-ftw3.c: Adjust test for changed handling of
10335         inaccessibility of toplevel dir.
10336
10337 2001-12-16  Roland McGrath  <roland@frob.com>
10338
10339         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
10340         * grp/initgroups.c (internal_getgrouplist): Likewise.
10341
10342         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
10343         `default:' to silence new GCC warning.
10344         Rewrite cast of lvalue to silence new GCC warning.
10345
10346         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
10347
10348         * sysdeps/mach/hurd/spawni.c: New file, by me with a
10349         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
10350
10351 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
10352
10353         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
10354         Patch by Stephen R. van den Berg.
10355
10356         * crypt/md5.h: Define md5_uintptr.
10357
10358 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
10359
10360         * libio/tst_swprintf.c (main): Add test for string argument with
10361         zero precision.
10362         * stdio-common/Makefile (tests): Add tst-sprintf.
10363         * stdio-common/tst-sprintf.c: New file.
10364
10365 2001-12-13  Andreas Schwab  <schwab@suse.de>
10366
10367         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
10368         zero precision with wide character string format.
10369
10370 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
10371
10372         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
10373         but have a user supplied buffer, return the empty buffer, not NULL.
10374
10375 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
10376
10377         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
10378         Patch by Eric Sharkey <sharkey@netrics.com>.
10379
10380         * crypt/md5test.c (main): Add test for multiple calls to
10381         __md5_process_bytes to itererate over input string.
10382
10383 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
10384
10385         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
10386         from __nis_findfastest.  Take timeout value from parameter.
10387         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
10388         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
10389         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
10390
10391 2001-12-12  Andreas Jaeger  <aj@suse.de>
10392
10393         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
10394         combreloc test so that it works in this case.
10395
10396         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
10397
10398 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
10399
10400         * sysdeps/sh/Makefile: New file.
10401         * sysdeps/sh/_mcount.S: New file.
10402         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
10403         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
10404
10405 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
10406
10407         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
10408         limitation [PR libc/2564].
10409
10410 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
10411
10412         * elf/Makefile (dl-routines): Add conflict.
10413         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
10414         (ld.so): Add _begin local symbol.
10415         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
10416         Define.
10417         * elf/dl-deps.c (_dl_build_local_scope): New function.
10418         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
10419         of all libraries.
10420         * elf/do-rel.h (VALIDX): Define.
10421         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
10422         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
10423         can be skipped.
10424         * elf/dl-conflict.c: New file.
10425         * elf/dl-lookup.c (_dl_debug_bindings): New function.
10426         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
10427         non-NULL.
10428         (_dl_lookup_symbol_skip): Likewise.
10429         (_dl_lookup_versioned_symbol): Likewise.
10430         (_dl_lookup_versioned_symbol_skip): Likewise.
10431         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
10432         define to ElfW(Rel).
10433         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
10434         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
10435         ranges.
10436         Don't adjust address dynamic tags if l_addr is 0.
10437         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
10438         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
10439         (VALIDX, ADDRIDX): Define.
10440         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
10441         (dl_main): Print library list for LD_TRACE_PRELINKING.
10442         If prelinking information can be used, skip relocating libraries and
10443         call _dl_resolve_conflicts instead.
10444         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
10445         * elf/dl-load.c (_dl_map_object): Don't create fake libs
10446         if LD_TRACE_PRELINKING.
10447         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
10448         + DT_ADDRNUM.
10449         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
10450         (DL_DEBUG_PRELINK): Define.
10451         (_dl_resolve_conflicts): Add prototype.
10452
10453         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
10454         .plt for prelinked libraries where prelinking info cannot be used.
10455         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
10456         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
10457         * sysdeps/arm/bits/link.h: New file.
10458         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
10459         content of .got[1].
10460         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
10461         (ELF_MACHINE_PLT_REL): Define.
10462         (elf_machine_rela, elf_machine_rela_relative): New functions.
10463         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
10464         of adjusting it if prelinked and prelinking cannot be used.
10465         * sysdeps/i386/bits/link.h: New file.
10466         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
10467         content of .got[1].
10468         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
10469         (ELF_MACHINE_PLT_REL): Define.
10470         (elf_machine_rela, elf_machine_rela_relative): New functions.
10471         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
10472         of adjusting it if prelinked and prelinking cannot be used.
10473         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
10474         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
10475         to find out map for R_PPC_JMP_SLOT relocs.
10476         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
10477         (OPCODE_BA): Define.
10478         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
10479         libraries where prelinking info cannot be used.
10480         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
10481         (elf_machine_fixup_plt): Call sparc_fixup_plt.
10482         (elf_machine_rela): Set value to 0 if relocating conflicts.
10483         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
10484         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
10485         (sparc64_fixup_plt): Fix a typo.
10486         (elf_machine_rela): Set value to 0 if relocating conflicts.
10487         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
10488         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
10489         libraries where prelinking info cannot be used.
10490         * sysdeps/sh/bits/link.h: New file.
10491         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
10492         content of .got[1].
10493         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
10494         of adjusting it if prelinked and prelinking cannot be used.
10495         * sysdeps/s390/s390-32/bits/link.h: New file.
10496         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
10497         Save original content of .got[1].
10498         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
10499         of adjusting it if prelinked and prelinking cannot be used.
10500         * sysdeps/s390/s390-64/bits/link.h: New file.
10501         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
10502         Save original content of .got[1].
10503         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
10504         of adjusting it if prelinked and prelinking cannot be used.
10505         * sysdeps/x86_64/bits/link.h: New file.
10506         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
10507         Save original content of .got[1].
10508         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
10509         of adjusting it if prelinked and prelinking cannot be used.
10510
10511 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
10512
10513         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
10514         where appropriate instead of numbers.  Little optimizations.
10515
10516 2001-12-10  Roland McGrath  <roland@frob.com>
10517
10518         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
10519         set it.
10520
10521         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
10522         set to GLIBC_2.2.5, not GLIBC_2.2.4.
10523
10524         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
10525         Fix conditionals so this is set by default for stdio and not for libio.
10526         * sysdeps/mach/hurd/configure: Regenerated.
10527
10528 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
10529
10530         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
10531
10532 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
10533
10534         * io/Makefile (tests): Add bug-ftw3.
10535         * io/bug-ftw3.c: New file.
10536
10537         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
10538         matches and GLOB_NOCHECK is set.
10539         * posix/globtest.sh: Correct expected result for NOCHECK test.
10540
10541         * po/ca.po: Update from translation team.
10542
10543 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
10544
10545         Implement transliteration of characters in strings of the locale
10546         definitions.
10547         * locale/programs/linereader.c: Adjust for additional parameter to
10548         lr_token.
10549         (get_string): If character <Uxxxx> is not found try to transliterate
10550         it.
10551         * locale/programs/ld-ctype.c: Adjust for additional parameter to
10552         lr_token.  Add const to charmap parameter of all functions.
10553         (find_translit, find_translit2): New functions.
10554         * locale/programs/charmap.c: Adjust for additional parameter to
10555         lr_token.
10556         * locale/programs/repertoire.c: Likewise.
10557         * locale/programs/linereader.h: Likewise.
10558         * locale/programs/ld-address.c: Likewise.  Add const to charmap
10559         parameter of all functions.
10560         * locale/programs/ld-collate.c: Likewise.
10561         * locale/programs/ld-identification.c: Likewise.
10562         * locale/programs/ld-measurement.c: Likewise.
10563         * locale/programs/ld-messages.c: Likewise.
10564         * locale/programs/ld-monetary.c: Likewise.
10565         * locale/programs/ld-name.c: Likewise.
10566         * locale/programs/ld-numeric.c: Likewise.
10567         * locale/programs/ld-paper.c: Likewise.
10568         * locale/programs/ld-paper.c: Likewise.
10569         * locale/programs/ld-telephone.c: Likewise.
10570         * locale/programs/ld-time.c: Likewise.
10571         * locale/programs/locfile.c: Likewise.
10572         * locale/programs/localedef.c: Likewise.
10573         * locale/programs/localedef.h: Likewise.
10574         * locale/programs/locfile.h: Likewise.  Add declaration for
10575         find_translit.
10576         * locale/programs/simple-hash.c: Add const to first parameter of
10577         find_entry, iterate_table, and lookup.
10578         * locale/programs/simple-hash.h: Likewise.
10579         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
10580         instead.
10581         * include/locale.h: Define __LC_LAST.
10582         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
10583
10584 2001-12-07  Geoff Keating  <geoffk@redhat.com>
10585
10586         * sysdeps/powerpc/Dist: Update for recent FP changes.
10587         * sysdeps/powerpc/fpu/Dist: Likewise.
10588
10589 2001-12-07  Andreas Schwab  <schwab@suse.de>
10590
10591         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
10592
10593 2001-12-06  Geoff Keating  <geoffk@redhat.com>
10594
10595         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
10596         save/restore functions here.
10597         (libm-support): Don't define these functions here.
10598         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
10599         functions here.
10600         * sysdeps/powerpc/fe_nomask.c: Move to...
10601         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
10602         * sysdeps/powerpc/fprrest.S: Move to...
10603         * sysdeps/powerpc/fpu/fprrest.S: ... here.
10604         * sysdeps/powerpc/fprsave.S: Move to...
10605         * sysdeps/powerpc/fpu/fprsave.S: ... here.
10606
10607 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
10608
10609         * sysdeps/unix/sysv/linux/opensock.c: New file.
10610
10611 2001-12-06  Geoff Keating  <geoffk@redhat.com>
10612
10613         * config.make.in (with-fp): Define from configure.
10614         * configure.in: Substitute with_fp.
10615         * configure: Regenerate.
10616         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
10617         specified, and don't change FPU environment.
10618
10619 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
10620
10621         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
10622         * assert/assert.c: Check result of __asprintf call and don't use
10623         string if it failed.
10624         * assert/assert-perr.c: Likewise.
10625         * inet/rcmd.c: Likewise.
10626         * locale/programs/localedef.c (main): Check result of
10627         construct_output_path and exit if it failed.
10628         (construct_output_path): Check result of asprintf and mkdir calls and
10629         fail if they failed.
10630         * posix/getopt.c: Check result of __asprintf calls and fail if
10631         they failed.
10632         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
10633
10634 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
10635
10636         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
10637         patch.
10638         * sysdeps/generic/strncase.c: Likewise.
10639         * string/tester.c: Add tests for strcasecmp and strncasecmp.
10640
10641 2001-12-05  Geoff Keating  <geoffk@redhat.com>
10642
10643         * scripts/cpp: Test the exit status from 'type', not 'awk'.
10644
10645         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
10646         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
10647         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
10648         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
10649         * sysdeps/powerpc/fclrexcpt.c: Move to...
10650         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
10651         * sysdeps/powerpc/fpu_control.h: Move to...
10652         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
10653
10654 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
10655
10656         * iconvdata/ibm1129.h: Remove duplicate mappings.
10657         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
10658         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
10659         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10660
10661         * timezone/zic.c: Fix handling of turnaround times.
10662         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
10663
10664 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
10665
10666         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
10667         overflow problem.
10668
10669 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
10670
10671         * posix/regex.c: For use outside glibc defined bounded pointer
10672         macros here.  Patch by Jim Meyering <jim@meyering.net>.
10673
10674         * iconvdata/Makefile (modules): Add TCVN5712-1.
10675         * iconvdata/TESTS: Add TCVN5712-1.
10676         * iconvdata/gconv-modules: Likewise.
10677         * iconvdata/tcvn5712-1.c: New file.
10678         * iconvdata/testdata/TCVN-5712: New file.
10679         * iconvdata/testdata/TCVN-5712..UTF8: New file.
10680
10681 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
10682
10683         * iconvdata/cp1258.c: Optimize conversion from UCS4.
10684
10685 2001-12-02  Roland McGrath  <roland@frob.com>
10686
10687         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
10688
10689         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
10690         Reported by Jeff Bailey <jbailey@nisa.net>.
10691
10692         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
10693         Reported by Jeff Bailey <jbailey@nisa.net>.
10694
10695         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
10696         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
10697         Reported by Jeff Bailey <jbailey@nisa.net>.
10698
10699 2001-12-01  Roland McGrath  <roland@frob.com>
10700
10701         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
10702         missing backslash in test arguments.
10703         * sysdeps/mach/hurd/configure: Regenerated.
10704
10705 2001-11-26  Roland McGrath  <roland@frob.com>
10706
10707         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
10708         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
10709
10710 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
10711
10712         * iconvdata/Makefile (modules): Add ARMSCII-8.
10713         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
10714         * iconvdata/armscii-8.c: New file.
10715
10716 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
10717
10718         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
10719         don't match, fix {{a,b},c} globbing, clean up.
10720         Patch by Flavio Veloso <flaviovs@magnux.com>.
10721         * posix/globtest.sh: Add new tests.
10722
10723 2001-11-29  Andreas Jaeger  <aj@suse.de>
10724
10725         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
10726         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
10727
10728         * sysdeps/generic/abort.c: Include libioP.h for
10729         _IO_flush_all_lockp prototype.
10730
10731 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
10732
10733         * posix/regex.h: Define __restrict_arr correctly.
10734
10735 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
10736
10737         * iconvdata/ibm1163.c: New file.
10738         * iconvdata/ibm1163.h: New file.
10739         * iconvdata/ibm1164.c: New file.
10740         * iconvdata/ibm1164.h: New file.
10741         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
10742         * iconvdata/Makefile: Likewise.
10743         * iconvdata/testdata/IBM1163: New file.
10744         * iconvdata/testdata/IBM1163..UTF8: New file.
10745         * iconvdata/testdata/IBM1164: New file.
10746         * iconvdata/testdata/IBM1164..UTF8: New file.
10747         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10748
10749         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
10750         * iconvdata/ibm1124.h: Likewise.
10751         * iconvdata/ibm1132.h: Likewise.
10752         * iconvdata/ibm1133.h: Likewise.
10753         * iconvdata/ibm1160.h: Likewise.
10754         * iconvdata/ibm1161.h: Likewise.
10755         * iconvdata/ibm1162.h: Likewise.
10756         * iconvdata/ibm856.h: Likewise.
10757         * iconvdata/ibm922.h: Likewise.
10758         * iconvdata/ibm930.h: Likewise.
10759         * iconvdata/ibm932.h: Likewise.
10760         * iconvdata/ibm933.h: Likewise.
10761         * iconvdata/ibm935.h: Likewise.
10762         * iconvdata/ibm937.h: Likewise.
10763         * iconvdata/ibm939.h: Likewise.
10764         * iconvdata/ibm943.h: Likewise.
10765         * iconvdata/ibm930.c: Pretty printing.
10766         * iconvdata/ibm937.c: Avoid access accross array boundary.
10767
10768         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
10769         the current locale's codeset.
10770         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
10771         empty input string.
10772         * iconv/iconv_prog.c: Pass empty strings as default value for to-
10773         and from-charset.  Don't determine locale's charset here.
10774
10775         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
10776         as the old _IO_flush_all but lock only if parameter is nonzero.
10777         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
10778         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
10779         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
10780         if libio is used [PR libc/2575].
10781
10782 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
10783
10784         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
10785         __signbitl): Only define for ISO C99.
10786
10787 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
10788
10789         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
10790         herrnop to NETDB_INTERNAL if we run out of buffer space.
10791
10792 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
10793
10794         * nss/nss_files/files-XXX.c (internal_getent): Correct input
10795         overflow test for platforms with signed char.
10796         Reported by Andrew Haley <aph@cambridge.redhat.com>.
10797
10798 2001-11-28  Bruno Haible  <bruno@clisp.org>
10799
10800         * locale/programs/simple-hash.c (lookup_2): Remove function.
10801         (insert_entry_2): Call lookup instead of lookup_2.
10802
10803 2001-03-04  Bruno Haible  <bruno@clisp.org>
10804
10805         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
10806
10807 2001-10-31  Bruno Haible  <bruno@clisp.org>
10808
10809         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
10810
10811 2001-03-21  Bruno Haible  <bruno@clisp.org>
10812
10813         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
10814         chokes on empty macro arguments.
10815         * intl/plural.y: Add #pragma for alloca on AIX 3.
10816
10817 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
10818
10819         * intl/dcigettext.c (guess_category_value): Only implement for
10820         glibc.  Otherwise rely on function _nl_locale_name which isn't
10821         present in the glibc sources.
10822
10823 2001-09-24  Bruno Haible  <bruno@clisp.org>
10824
10825         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
10826         transliteration when building on a glibc system but outside glibc.
10827
10828 2001-09-22  Bruno Haible  <bruno@clisp.org>
10829
10830         * intl/plural-eval.c: New file, extracted from dcigettext.c.
10831         * intl/dcigettext.c (plural_eval): Remove function, moved to
10832         intl/plural-eval.c.
10833         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
10834         Include plural-eval.c.
10835
10836 2001-09-22  Bruno Haible  <bruno@clisp.org>
10837
10838         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
10839         don't start with a digit; nplurals must be positive.
10840
10841 2001-09-02  Bruno Haible  <bruno@clisp.org>
10842
10843         * intl/plural-exp.h: New file, extracted from gettextP.h.
10844         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
10845         * intl/gettextP.h (struct expression, struct parse_args,
10846         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
10847         * intl/loadmsgcat.c: Include plural-exp.h.
10848         (PLURAL_PARSE): Move macro to plural-exp.h.
10849         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
10850         plural-exp.c.
10851         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
10852         EXTRACT_PLURAL_EXPRESSION.
10853         (_nl_unload_domain): Update.
10854         * intl/dcigettext.c: Include plural-exp.h.
10855         * intl/plural.y: Include plural-exp.h, not gettextP.h.
10856         (FREE_EXPRESSION): Move macro to plural-exp.h.
10857         * intl/Makefile (routines): Add plural-exp.
10858         (distribute): Add plural-exp.h.
10859
10860 2001-07-28  Bruno Haible  <bruno@clisp.org>
10861
10862         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
10863         isdigit, tolower argument to 'unsigned char'.
10864         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
10865         'unsigned char'.
10866         * intl/localealias.c (read_alias_file): Cast isspace argument to
10867         'unsigned char'.
10868
10869 2001-10-20  Bruno Haible  <bruno@clisp.org>
10870
10871         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
10872         anyway.)
10873         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
10874         with the variable 'index' in plural_lookup.
10875         * intl/l10nflist.c (strchr): Likewise.
10876         * intl/localealias.c (strchr): Likewise.
10877
10878         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
10879         * intl/bindtextdom.c: Likewise.
10880         * intl/dcigettext.c: Likewise.
10881         * intl/dgettext.c: Likewise.
10882         * intl/dngettext.c: Likewise.
10883         * intl/explodename.c: Likewise.
10884         * intl/finddomain.c: Likewise.
10885         * intl/gettext.c: Likewise.
10886         * intl/l10nflist.c: Likewise.
10887         * intl/loadmsgcat.c: Likewise.
10888         * intl/localealias.c: Likewise.
10889         * intl/ngettext.c: Likewise.
10890         * intl/textdomain.c: Likewise.
10891         * intl/gettext.h: Assume <limits.h> exists.
10892
10893 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
10894
10895         * stdio-common/Makefile (tests): Add scanf11.
10896         * stdio-common/scanf11.c: New file.
10897
10898 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
10899
10900         * version.h (RELEASE): Define as development.
10901         (VERSION): Set to 2.2.90.
10902
10903 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
10904
10905         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
10906         * nis/nss_nis/nis-grp.c: Likewise.
10907         * nis/nss_nisplus/nisplus-grp.c: Likewise.
10908
10909         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
10910         * nis/nss_nis/nis-pwd.c: Likewise.
10911         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
10912
10913         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
10914         * nis/nss_nisplus/nisplus-parser.c: Likewise.
10915         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
10916
10917         * nscd/grpcache.c: Use strtoul instead of atol.
10918         * nscd/pwdcache.c: Likewise.
10919         * nss/getent.c: Likewise.
10920
10921 2001-11-27  Paul Eggert  <eggert@twinsun.com>
10922
10923         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
10924         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
10925
10926 2001-11-19  Bruno Haible  <bruno@clisp.org>
10927
10928         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
10929         90%.
10930         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
10931         improves the quality of the hash function, especially for short
10932         strings.
10933
10934 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
10935
10936         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
10937         are found call conv_error and not input_error [PR libc/2669].
10938
10939         * math/bits/mathcalls.h: Mark ceil and floor as const.
10940         Reported by David Mosberger.
10941
10942 2001-11-21  Jim Meyering  <meyering@lucent.com>
10943
10944         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
10945         Define to be __-prefixed.
10946         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
10947
10948 2001-11-26  Andreas Jaeger  <aj@suse.de>
10949
10950         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
10951         avoid warning.
10952
10953 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
10954
10955         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
10956         initialization.
10957
10958         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
10959         unused variables.  Fix threshold for returning 1.0.
10960
10961         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
10962         argument.
10963
10964         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
10965         remove unused variables.
10966
10967         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
10968
10969         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
10970         include local math header files.
10971
10972 2001-11-22  Andreas Jaeger  <aj@suse.de>
10973
10974         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
10975         avoid warning.
10976
10977 2001-11-21  Andreas Jaeger  <aj@suse.de>
10978
10979         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
10980
10981         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
10982         sys/debugreg.h
10983
10984 2001-11-15  Andreas Jaeger  <aj@suse.de>
10985
10986         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
10987         compilers that support it.
10988
10989         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
10990         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
10991         * stdlib/stdlib.h: Likewise.
10992
10993 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
10994
10995         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
10996         statement with gotos.
10997         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
10998
10999 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
11000
11001         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
11002
11003 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
11004
11005         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
11006
11007 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
11008             H.J. Lu  <hjl@gnu.org>
11009
11010         * Versions.def (libc): Add GCC_3.0.
11011         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
11012         if gcc supports this flag.
11013         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
11014         (gcc3): Allow glibc to be compiled with gcc 3.x.
11015         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
11016         * config.make.in (static-libgcc, unwind-find-fde): Add.
11017         * Makerules (build-shlib-helper, build-module-helper): Use it.
11018         * scripts/versions.awk: Make sure GLIBC_ versions come first.
11019         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
11020         necessary.
11021         (_fini): Call __deregister_frame_info_bases if
11022         __register_frame_info_bases was used to register.
11023         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
11024         for GLIBC_2.0.
11025         (__register_frame_info_bases, __register_frame_info_table_bases,
11026         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
11027         * elf/Makefile (routines): Add unwind-dw2-fde.
11028         (shared-only-routines): Add unwind-dw2-fde.
11029         * sysdeps/alpha/gccframe.h: New file.
11030         * sysdeps/arm/gccframe.h: New file.
11031         * sysdeps/generic/framestate.c: New file.
11032         * sysdeps/generic/dwarf2.h: New file.
11033         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
11034         * sysdeps/generic/unwind-dw2-fde.c: New file.
11035         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
11036         * sysdeps/generic/unwind-dw2-fde.h: New file.
11037         * sysdeps/generic/unwind-dw2.c: New file.
11038         * sysdeps/generic/unwind-pe.h: New file.
11039         * sysdeps/generic/unwind.h: New file.
11040         * sysdeps/hppa/gccframe.h: New file.
11041         * sysdeps/i386/gccframe.h: New file.
11042         * sysdeps/m68k/gccframe.h: New file.
11043         * sysdeps/mips/gccframe.h: New file.
11044         * sysdeps/powerpc/gccframe.h: New file.
11045         * sysdeps/s390/gccframe.h: New file.
11046         * sysdeps/sh/gccframe.h: New file.
11047         * sysdeps/sparc/gccframe.h: New file.
11048         * sysdeps/vax/gccframe.h: New file.
11049         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
11050         Set on all architectures except ia64.
11051         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
11052         for i386.
11053         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
11054         __deregister_frame_info): Move to elf/Versions.
11055         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
11056         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
11057         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
11058         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
11059         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
11060         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
11061         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
11062         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
11063         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
11064         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
11065         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
11066         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
11067         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
11068         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
11069         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
11070         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
11071         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
11072         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
11073
11074 2001-11-15  Jeff Law  <law@redhat.com>
11075
11076         * posix/regex.c (uintptr_t): Do not provide a definition if the
11077         system provided one.
11078
11079 2001-11-13  Roland McGrath  <roland@frob.com>
11080
11081         * stdio-common/tmpfile.c: Moved to ...
11082         * sysdeps/generic/tmpfile.c: ... here.
11083         * sysdeps/mach/hurd/tmpfile.c: New file.
11084
11085         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
11086         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
11087         (fopenport): Define as weak alias.
11088
11089         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
11090         * libio/libioP.h: ... to here.
11091
11092 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
11093
11094         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
11095         program header twice.  Construct list with the needed information.
11096
11097 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
11098
11099         * po/ca.po: Update from translation team.
11100
11101         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
11102         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
11103         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
11104         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11105
11106 2001-11-10  Andreas Jaeger  <aj@suse.de>
11107
11108         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
11109         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11110         Contributed by Stephen L Moshier <moshier@mediaone.net>.
11111
11112 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
11113
11114         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
11115         correctly.
11116         * elf/dl-load.c (is_dst): New function.
11117         (_dl_dst_count): Use is_dst to check for DST variable.
11118         (_dl_dst_substitute): Likewise.
11119
11120 2001-11-09  Roland McGrath  <roland@frob.com>
11121
11122         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
11123         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
11124         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
11125         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
11126         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
11127         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
11128         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
11129         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
11130         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
11131         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
11132         * sysdeps/mach/hurd/powerpc/Dist: New file.
11133
11134         * hurd/privports.c (__get_privileged_ports):
11135         Only contact the proc server if necessary for this call.
11136         Suggested by Neal H Walfield <neal@cs.uml.edu>.
11137         Check error return for mach_port_mod_refs.
11138
11139 2001-11-09  Andreas Schwab  <schwab@suse.de>
11140
11141         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
11142
11143 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
11144
11145         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
11146         object is always the last in the list.
11147         (_dl_map_object_from_fd): Delete code to remove from object list
11148         when DF_1_NOOPEN is seen.  This is done in lose.
11149
11150 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
11151
11152         * elf/dl-object.c (_dl_new_object): Various small optimizations.
11153
11154 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
11155
11156         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
11157         HWCAP_CHECK macro code.
11158
11159         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
11160         Now returns MAP_FAILED on error.
11161         * elf/rtld.c: Adjust caller.
11162         * sysdeps/generic/dl-cache.c: Likewise.
11163         * sysdeps/generic/ldsodefs.h: Adjust description.
11164
11165         * elf/dl-version.c (match_symbol): Optimize error handling for size.
11166         (_dl_check_map_versions): Likewise.
11167
11168 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
11169
11170         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
11171         _dl_signal_error directly, always use lose.  Set fd to -1 after
11172         file is closed.
11173         (lose): Don't call close if fd == -1.
11174
11175 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
11176
11177         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
11178          Also fix typo @code {mbsinit} to @code{mbsinit}.
11179
11180 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
11181
11182         * elf/dl-profile.c: Replace state variable with simple flag named
11183         running.  Remove commented-out code.
11184
11185         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
11186         (_dl_init_paths): Likewise.
11187         (_dl_map_object_from_fd): Likewise.
11188         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11189
11190 2001-11-06  Roland McGrath  <roland@frob.com>
11191
11192         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
11193         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
11194
11195         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
11196         sysdeps/powerpc/elf/sysdep.h.
11197         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
11198
11199 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
11200
11201         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
11202         speed.
11203         (process_envvars): Some more optimizations.
11204         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
11205
11206         * elf/elf.h: Add dynamic tag definitions for prelinking.
11207
11208         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
11209         Rewrite code to remove environment varables for SUID binaries.
11210         Small optimization in LD_PROFILE handling.
11211         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
11212         changes.
11213         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
11214
11215         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
11216
11217         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
11218         strings.  Change type of second parameter.
11219         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
11220         for last change.
11221
11222         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
11223
11224 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
11225
11226         * manual/string.texi: Fix typos.
11227         * manual/examples/argp-ex2.c: Likewise.
11228
11229 2001-11-05  Roland McGrath  <roland@frob.com>
11230
11231         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
11232         the more-specific unix/sysv/linux/powerpc file and breaks everything.
11233         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
11234         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
11235         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
11236         here, put under [__ELF__].
11237
11238 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
11239
11240         * manual/charset.texi: Extensive editing work.
11241         * manual/nss.texi: Likewise.
11242         Changes by Dennis Grace <dgrace@us.ibm.com>.
11243
11244 2001-11-04  Roland McGrath  <roland@frob.com>
11245
11246         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
11247         parameter to dir_mkfile.
11248
11249 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
11250
11251         * string/bits/string2.h (__strndup): If n is smaller than len, set
11252         len to n + 1.
11253         * string/tester.c (test_strndup): New function.
11254         (main): Call it.
11255
11256 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
11257
11258         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
11259
11260         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
11261         * scripts/cpp: New file.
11262
11263         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
11264         for rtld_search_dirs content.  Minor optimizations.
11265
11266 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
11267
11268         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
11269         avoiding unnecessary duplication.
11270
11271 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
11272
11273         * elf/dl-load.c (_dl_map_object): If library was found using
11274         LD_LIBRARY_PATH, don't try RUNPATH list.
11275
11276 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11277
11278         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
11279         Correct second argument of register_dump call.
11280         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
11281         Likewise.
11282
11283 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
11284
11285         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
11286         modules.
11287         * iconvdata/TESTS: Likewise.
11288         * iconvdata/gconv-modules: Likewise.
11289         * iconvdata/ibm1132.c: New file.
11290         * iconvdata/ibm1132.h: New file.
11291         * iconvdata/ibm1133.c: New file.
11292         * iconvdata/ibm1133.h: New file.
11293         * iconvdata/ibm1162.c: New file.
11294         * iconvdata/ibm1162.h: New file.
11295         * iconvdata/testdata/IBM1132: New file.
11296         * iconvdata/testdata/IBM1132..UTF8: New file.
11297         * iconvdata/testdata/IBM1133: New file.
11298         * iconvdata/testdata/IBM1133..UTF8: New file.
11299         * iconvdata/testdata/IBM1162: New file.
11300         * iconvdata/testdata/IBM1162..UTF8: New file.
11301         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
11302
11303         * string/string.h: Fix typo in comment.
11304         * wcsmbs/wchar.h: Likewise.
11305
11306 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
11307
11308         * manual/getopt.texi (getopt_long, getopt_long_only): Include
11309         const in type of longopts parameter.
11310
11311 2001-10-29  Andreas Jaeger  <aj@suse.de>
11312
11313         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
11314
11315 2001-10-29  Kevin Ryde  <user42@zip.com.au>
11316
11317         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
11318         output, clarify `#' behaviour on 0.
11319         (Floating-Point Conversions): Clarify that %g only uses %e when
11320         the exponent would be greater than 1.
11321
11322 2001-10-28  Roland McGrath  <roland@frob.com>
11323
11324         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
11325         * sysdeps/mach/powerpc/machine-sp.h: New file.
11326         * sysdeps/mach/powerpc/sysdep.h: New file.
11327         * sysdeps/mach/powerpc/thread_state.h: New file.
11328
11329         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
11330         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
11331         expect to need the same thing on every platform.
11332
11333         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
11334         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
11335
11336         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
11337         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
11338         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
11339         Move all these assembly-related definitions to ...
11340         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
11341
11342         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
11343         by Peter Bruin <pjbruin@dds.nl>.
11344
11345         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
11346         packing results for a `poll' call.
11347
11348 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
11349
11350         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
11351         correctly.
11352         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
11353         bracket expression.
11354
11355         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
11356         nrules value.
11357         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
11358
11359 2001-10-24  H.J. Lu  <hjl@gnu.org>
11360
11361         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
11362         Use __BEGIN_DECLS/__END_DECLS around prototypes.
11363         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
11364
11365 2001-10-21  Jim Meyering  <meyering@lucent.com>
11366
11367         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
11368         this code would end up calling gettext even in packages built
11369         with --disable-nls.
11370         * posix/getopt.c (_): Likewise.
11371         * posix/regex.c (_): Likewise.
11372
11373 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
11374
11375         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
11376         lookup not ip6.int.
11377         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
11378         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
11379
11380 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
11381
11382         * misc/sys/cdefs.h (__attribute_used__): Define.
11383         * elf/rtld.c (_dl_start): Add __attribute_used__.
11384         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
11385
11386 2001-10-25  Andreas Schwab  <schwab@suse.de>
11387
11388         * stdlib/a64l.c: Expect least significant digit first.
11389         * stdlib/l64a.c: Produce least significant digit first.
11390         * stdlib/Makefile (tests): Add test-a64l.
11391         * stdlib/test-a64l.c: New file.
11392         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
11393
11394 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
11395
11396         * po/sk.po: Update from translation team.
11397
11398 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
11399
11400         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
11401
11402 2001-10-18  Andreas Schwab  <schwab@suse.de>
11403
11404         * math/libm-test.inc (print_ulps): Print ulp values rounded to
11405         next whole number.
11406         (print_function_ulps): Likewise.
11407         (print_complex_function_ulps): Likewise.
11408         (print_max_error): Likewise.
11409         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
11410
11411 2001-10-16  Andreas Schwab  <schwab@suse.de>
11412
11413         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
11414         implementation.
11415
11416         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
11417         BSD_SETJMP or BSD__SETJMP is defined, resp.
11418         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
11419         a tail call to __sigsetjmp that would require extending the
11420         caller's frame.
11421         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
11422         * sysdeps/m68k/bsd-setjmp.S: Deleted.
11423         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
11424         Reported by Jes Sorensen <jes@trained-monkey.org>.
11425
11426 2001-10-16  Andreas Jaeger  <aj@suse.de>
11427
11428         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
11429         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
11430         close PR libc/2589.
11431
11432 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
11433
11434         * po/ca.po: New file.  Contributed by the translation team.
11435
11436 2001-10-15  Ralf Baechle  <ralf@gnu.org>
11437
11438         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
11439         a varargs prototype.  Remove dependency from kernel header files.
11440
11441         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
11442         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
11443
11444 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
11445
11446         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
11447         to generate hexadecimal identifier.
11448         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
11449
11450 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
11451
11452         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
11453
11454 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
11455
11456         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
11457         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
11458         Contributed by Stephen L Moshier <moshier@mediaone.net>.
11459
11460         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
11461         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11462         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
11463         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
11464         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
11465         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
11466
11467         * timezone/africa: Update from tzdata2001d.
11468         * timezone/asia: Likewise.
11469         * timezone/australasia: Likewise.
11470         * timezone/backward: Likewise.
11471         * timezone/europe: Likewise.
11472         * timezone/leapseconds: Likewise.
11473         * timezone/northamerica: Likewise.
11474         * timezone/southamerica: Likewise.
11475         * timezone/zone.tab: Likewise.
11476
11477 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11478
11479         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
11480         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
11481
11482 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
11483
11484         * elf/elf.h (PT_TLS): New definition.
11485
11486 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
11487
11488         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
11489         bits/errno.h
11490
11491 2001-10-07  Roland McGrath  <roland@frob.com>
11492
11493         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
11494
11495 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
11496
11497         * elf/elf.h: Add more ELFOSABI_* constants.
11498
11499 2001-10-04  Ben Collins  <bcollins@debian.org>
11500
11501         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
11502         decleration of __need_wchar_t.
11503
11504 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
11505
11506         * string/bits/string2.h (__strsep_g): Add prototype.
11507         (__strsep): Use it.
11508         * string/Versions (__strsep): Remove.
11509         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
11510
11511 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
11512
11513         * manua/llio.texi: Clarify file references added by mmap.
11514         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
11515
11516 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
11517
11518         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
11519         Add sc_loadrs and sc_rbs_bas to match current kernel.
11520
11521 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
11522
11523         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
11524
11525         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
11526
11527 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
11528
11529         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
11530         object has been bumped because of relocation dependency, avoid
11531         duplicates in l_scope.
11532         (show_scope): Fix typos.
11533         * elf/Makefile: Add rules to build and run reldep6.
11534         * elf/reldep6.c: New file.
11535         * elf/reldep6mod0.c: New file.
11536         * elf/reldep6mod1.c: New file.
11537         * elf/reldep6mod2.c: New file.
11538         * elf/reldep6mod3.c: New file.
11539         * elf/reldep6mod4.c: New file.
11540
11541 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
11542
11543         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
11544         sparc64_fixup_plt.
11545         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
11546         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
11547         for non-lazy binding. Fix .plt[32768+] handling.
11548         (elf_machine_plt_value): Don't add addend.
11549         (elf_machine_rela): Call sparc64_fixup_plt instead of
11550         elf_machine_fixup_plt.
11551         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
11552         dynamic linker at 0xfffff800XXXXXXXX.
11553
11554         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
11555
11556 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
11557
11558         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
11559
11560 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
11561
11562         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
11563         declare __cmsg_data field if its size would be bigger than 0.
11564         (CMSG_DATA): Adjust accordingly.
11565         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
11566         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
11567         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
11568         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
11569         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11570         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
11571         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11572
11573 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
11574
11575         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
11576         * iconvdata/testdata/IBM1160: New file.
11577         * iconvdata/testdata/IBM1160..UTF8: New file.
11578         * iconvdata/testdata/IBM1161: New file.
11579         * iconvdata/testdata/IBM1161..UTF8: New file.
11580         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11581
11582 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
11583
11584         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
11585         UL_SETFSIZE computations better.
11586
11587         * rt/Makefile: Remove use of filter for librt again.
11588
11589         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
11590         UL_SETFSIZE computations better.
11591
11592         * string/Versions: Export __strsep for GLIBC_2.2.5.
11593         * string/bits/string2.h: Define all __STRING_INLINE functions if
11594         _FORCE_INLINES is defined.
11595         Use int instead of char of parameter types.
11596         (__strsep): Don't use __strsep_g.  Don't define it.
11597         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
11598         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
11599         __strcpy_small.
11600         (__stpcpy_a_small): Renamed from __stpcpy_small.
11601         (__strcspn_c1): Don't define if _FORCE_INLINES.
11602         (__strspn_c1): Likewise.
11603
11604 2001-09-22  Ben Collins  <bcollins@debian.org>
11605
11606         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
11607         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
11608         * sysdeps/ia64/bits/sigaction.h: Likewise.
11609         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
11610
11611 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
11612
11613         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
11614
11615 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
11616
11617         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
11618
11619 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
11620
11621         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
11622
11623 2001-09-20  H.J. Lu  <hjl@gnu.org>
11624
11625         * include/dlfcn.h (__RTLD_SPROF): New definiton.
11626         * elf/dl-open.c (dl_open_worker): Return immediately after loading
11627         for __RTLD_SPROF.
11628         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
11629         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
11630
11631 2001-09-20  H.J. Lu  <hjl@gnu.org>
11632
11633         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
11634         don't add 1.
11635
11636 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
11637
11638         * nss/getent.c: Accept -s parameter to overwrite rules in
11639         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
11640
11641         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
11642         with as many ".0" as necessary to form a complete address
11643         inet_network understands.
11644
11645         * nss/getent.c: Various cleanups.  Use simpler and fewer function
11646         calls.
11647
11648 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11649
11650         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
11651         _JMPBUF_UNWINDS.
11652         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
11653
11654 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
11655
11656         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
11657         IBM1161.
11658         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
11659         * iconvdata/ibm1160.c: New file.
11660         * iconvdata/ibm1160.h: New file.
11661         * iconvdata/ibm1161.c: New file.
11662         * iconvdata/ibm1161.h: New file.
11663         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11664
11665 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
11666
11667         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
11668         difference between base address and first PT_LOAD's virtual address,
11669         not the base address.
11670
11671 2001-09-11  Tom Rix  <trix@redhat.com>
11672
11673         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
11674         ifdef for __getopt_clean_environment.
11675         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
11676
11677 2001-09-22  Andreas Jaeger  <aj@suse.de>
11678
11679         * elf/reldep4.c (main): Add proper prototype to fix warning.
11680
11681         * elf/reldep5.c (main): Remove unused variable.
11682
11683         * math/math_private.h: Add prototypes.
11684
11685 2001-09-21  Andreas Jaeger  <aj@suse.de>
11686
11687         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
11688         * sysdeps/x86_64/Dist: New file.
11689         * sysdeps/x86_64/soft-fp/Dist: New file.
11690
11691         * sysdeps/gnu/Dist: Remove eval.c.
11692
11693 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
11694
11695         * malloc/memusage.c (realloc): Don't count already allocated
11696         memory in the sums.
11697         (me): Always use dlsym() to find the real implementations.
11698
11699         * malloc/memusage.sh: Make -n option actually do something.
11700
11701 2001-09-20  Andreas Jaeger  <aj@suse.de>
11702
11703         * elf/elf.h (R_390_NUM): Correct value.
11704
11705         * Versions.def: Add missing versions 2.2.3 for libthread_db and
11706         libpthread.
11707
11708         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
11709         for x86-64, install x86-64 into */lib64.
11710
11711         * shlib-versions: Add x86-64.
11712
11713         * elf/elf.h: Add x86-64 relocations.
11714
11715 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
11716
11717         * po/fr.po: Update from translation team.
11718
11719 2001-09-19  Andreas Jaeger  <aj@suse.de>
11720
11721         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
11722         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
11723         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
11724         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
11725         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
11726         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
11727         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
11728         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
11729         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
11730         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
11731         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
11732         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
11733         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
11734         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
11735         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
11736         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
11737         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
11738         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
11739         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
11740         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
11741         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
11742         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
11743         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
11744         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
11745         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
11746         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
11747         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
11748         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
11749         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
11750         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
11751         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
11752         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
11753         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
11754         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
11755         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
11756         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
11757         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
11758         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
11759         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
11760         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
11761         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
11762         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
11763         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
11764         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
11765         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
11766         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
11767         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
11768         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
11769         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
11770         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
11771         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
11772         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
11773         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
11774         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
11775         * sysdeps/unix/x86_64/sysdep.S: New file.
11776         * sysdeps/unix/x86_64/sysdep.h: New file.
11777         * sysdeps/x86_64/Implies: New file.
11778         * sysdeps/x86_64/Makefile: New file.
11779         * sysdeps/x86_64/Versions: New file.
11780         * sysdeps/x86_64/__longjmp.S: New file.
11781         * sysdeps/x86_64/abort-instr.h: New file.
11782         * sysdeps/x86_64/atomicity.h: New file.
11783         * sysdeps/x86_64/bits/endian.h: New file.
11784         * sysdeps/x86_64/bits/setjmp.h: New file.
11785         * sysdeps/x86_64/bits/string.h: New file.
11786         * sysdeps/x86_64/bp-asm.h: New file.
11787         * sysdeps/x86_64/bsd-_setjmp.S: New file.
11788         * sysdeps/x86_64/bsd-setjmp.S: New file.
11789         * sysdeps/x86_64/dl-machine.h: New file.
11790         * sysdeps/x86_64/elf/initfini.c: New file.
11791         * sysdeps/x86_64/elf/start.S: New file.
11792         * sysdeps/x86_64/ffs.c: New file.
11793         * sysdeps/x86_64/ffsll.c: New file.
11794         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
11795         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
11796         * sysdeps/x86_64/fpu/e_acosl.c: New file.
11797         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
11798         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
11799         * sysdeps/x86_64/fpu/e_expl.c: New file.
11800         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
11801         * sysdeps/x86_64/fpu/e_log10l.S: New file.
11802         * sysdeps/x86_64/fpu/e_log2l.S: New file.
11803         * sysdeps/x86_64/fpu/e_logl.S: New file.
11804         * sysdeps/x86_64/fpu/e_powl.S: New file.
11805         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
11806         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
11807         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
11808         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
11809         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
11810         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
11811         * sysdeps/x86_64/fpu/fegetenv.c: New file.
11812         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
11813         * sysdeps/x86_64/fpu/fegetround.c: New file.
11814         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
11815         * sysdeps/x86_64/fpu/fesetenv.c: New file.
11816         * sysdeps/x86_64/fpu/fesetround.c: New file.
11817         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
11818         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
11819         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
11820         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
11821         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
11822         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
11823         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
11824         * sysdeps/x86_64/fpu/s_atanl.c: New file.
11825         * sysdeps/x86_64/fpu/s_cosl.S: New file.
11826         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
11827         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
11828         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
11829         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
11830         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
11831         * sysdeps/x86_64/fpu/s_logbl.c: New file.
11832         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
11833         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
11834         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
11835         * sysdeps/x86_64/fpu/s_rintl.c: New file.
11836         * sysdeps/x86_64/fpu/s_significandl.c: New file.
11837         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
11838         * sysdeps/x86_64/fpu/s_sinl.S: New file.
11839         * sysdeps/x86_64/fpu/s_tanl.S: New file.
11840         * sysdeps/x86_64/gmp-mparam.h: New file.
11841         * sysdeps/x86_64/hp-timing.c: New file.
11842         * sysdeps/x86_64/hp-timing.h: New file.
11843         * sysdeps/x86_64/htonl.S: New file.
11844         * sysdeps/x86_64/memusage.h: New file.
11845         * sysdeps/x86_64/setjmp.S: New file.
11846         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
11847         * sysdeps/x86_64/stackinfo.h: New file.
11848         * sysdeps/x86_64/sysdep.h: New file.
11849         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
11850
11851         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
11852         L Moshier.
11853
11854 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
11855
11856         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
11857         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
11858
11859 2001-09-18  Andreas Schwab  <schwab@suse.de>
11860
11861         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
11862         list, now that l_scope is a pointer.
11863
11864         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
11865         scope list.
11866
11867 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
11868
11869         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
11870         (elf_machine_rela_relative): Add a missing declaration.
11871
11872 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
11873
11874         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
11875         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
11876         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
11877         ldd-rewrite scripts.
11878
11879 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
11880
11881         * elf/ldd.bash.in: Update copyright message.
11882
11883 2001-09-17  H.J. Lu  <hjl@gnu.org>
11884
11885         * hurd/hurdmalloc.c (bcopy): Removed.
11886         (realloc): Replace bcopy with memcpy.
11887         * hurd/path-lookup.c (file_name_path_scan): Likewise.
11888         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
11889         * sunrpc/rpcinfo.c (pmapdump): Likewise.
11890
11891         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
11892         (gethostbyaddr): Likewise.
11893         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
11894
11895 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
11896
11897         * sysdeps/gnu/eval.c: Removed.
11898
11899 2001-09-18  Andreas Jaeger  <aj@suse.de>
11900
11901         * sysdeps/i386/fpu/s_logbl.S: Move to ...
11902         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
11903
11904         * sysdeps/i386/fpu/s_rintl.S: Move to ...
11905         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
11906
11907         * sysdeps/i386/fpu/s_significandl.S: Move to ...
11908         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
11909
11910 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
11911
11912         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
11913         nrules value.
11914
11915 2001-09-14  H.J. Lu  <hjl@gnu.org>
11916
11917         * sysdeps/mips/fpu/libm-test-ulps: Updated.
11918
11919 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
11920
11921         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
11922         Patch by Florian La Roche <laroche@redhat.com>.
11923
11924         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
11925
11926         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
11927         ETHER_CRC_LEN.
11928
11929 2001-09-14  Andreas Schwab  <schwab@suse.de>
11930
11931         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
11932         Sumner <bls@sgi.com>.
11933         * posix/execlp.c: Likewise.
11934
11935 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
11936
11937         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
11938         is already found earlier in the search scope.
11939
11940 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
11941
11942         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
11943         filter.
11944
11945 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
11946
11947         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
11948
11949 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
11950
11951         * config.h.in: Enforce optimization to be used.
11952         * Makeconfig (preprocess-versions): Define ASSEMBLER.
11953         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
11954         * posix/Makefile (annexc-CFLAGS): Define to -O.
11955         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
11956
11957 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
11958
11959         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
11960         Patch by Stephan Kulow.
11961
11962 2001-09-08  Ben Collins  <bcollins@debian.org>
11963
11964         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
11965         usage of RESOLVE() (r_type, not reloc->r_type).
11966
11967 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
11968
11969         * elf/dl-object.c: Avoid allocating extra memory block for name.
11970         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
11971         allocated separately.
11972         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
11973
11974 2001-09-08  H.J. Lu  <hjl@gnu.org>
11975
11976         * po/zh_TW.po: Fix a typo.
11977
11978 2001-09-07  Tom Rix  <trix@redhat.com>
11979
11980         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
11981
11982 2001-08-26  Tom Rix  <trix@redhat.com>
11983
11984         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
11985         command line options.
11986         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
11987         * sysdeps/unix/sysv/aix/start.c: Removed.
11988         * sysdeps/unix/sysv/aix/start-libc.c: New file.
11989         * sysdeps/unix/sysv/aix/init-first.c: New file.
11990         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
11991
11992 2001-09-08  Ben Collins  <bcollins@debian.org>
11993
11994         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
11995         * sysdeps/generic/dl-machine.h: Likewise.
11996         * sysdeps/hppa/dl-fptr.c: Likewise.
11997         * sysdeps/ia64/dl-fptr.c: Likewise.
11998         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
11999         * sysdeps/mips/dl-machine.h: Likewise.
12000         * sysdeps/mips/mips64/dl-machine.h: Likewise.
12001         * sysdeps/powerpc/dl-machine.c: Likewise.
12002
12003 2001-09-07  Ben Collins  <bcollins@debian.org>
12004
12005         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
12006
12007         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
12008
12009 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
12010
12011         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
12012         dependencies if necessary.
12013
12014         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
12015         loaded directly) determine length if l_initfini list by iterating
12016         over its elements.  Minor optimizations.
12017         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
12018         for dependency objects.
12019         If object was already loaded check whether any of the dependencies
12020         is already on the relocation dependency list.  If yes, remove the
12021         latter.  Minor optimizations.
12022         * elf/dl-lookup.c (add_dependency): Add check for self reference of
12023         maps here.  Search l_initfini list only if the object was loaded
12024         directly and not only as a dependency.
12025         (_dl_lookup_symbol): Add relocation dependency also if object
12026         is not in global scope.  Remove test for self-reference here.
12027         (_dl_lookup_versioned_symbol): Likewise.
12028         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
12029         element of first name record.
12030         * elf/loadtest.c: Add some more test to recognize early if an object
12031         wasn't unloaded.
12032         * elf/Makefile: Add rules to build and run reldep5.
12033         * elf/reldep5.c: New file.
12034         * elf/reldepmod5.c: New file.
12035         * elf/reldepmod6.c: New file.
12036
12037         * elf/reldep2.c: Fix typo.
12038
12039 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
12040
12041         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
12042         elements.  Change l_scope to be a pointer only.
12043         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
12044         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
12045         here add searchlist of newly open file to the dependency's scope.
12046         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
12047         only searchlist from its scope.  Free own scope array if necessary.
12048         * elf/Makefile (tests): Add dblload and dblunload now.
12049
12050 2001-09-06  Andreas Jaeger  <aj@suse.de>
12051
12052         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
12053         Stephen L Moshier.
12054
12055 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
12056
12057         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
12058         they both fail.
12059         * elf/dblload.c: New file.
12060         * elf/dblloadmod1.c: New file.
12061         * elf/dblloadmod2.c: New file.
12062         * elf/dblloadmod3.c: New file.
12063         * elf/dblunload.c: New file.
12064
12065 2001-09-04  Richard Henderson  <rth@redhat.com>
12066
12067         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
12068         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
12069
12070 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
12071
12072         Correct very misleading message for error in failed runtime relocation.
12073         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
12074         place of the error.
12075         (_dl_signal_cerror): Likewise.
12076         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
12077         * elf/dl-close.c: Likewise.
12078         * elf/dl-deps.c: Likewise.
12079         * elf/dl-load.c: Likewise.
12080         * elf/dl-lookup.c: Likewise.
12081         * elf/dl-open.c: Likewise.
12082         * elf/dl-reloc.c: Likewise.
12083         * elf/dl-sym.c: Likewise.
12084         * elf/dl-version.c: Likewise.
12085         * sysdeps/generic/dl-sysdep.c: Likewise.
12086
12087 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
12088
12089         * iconv/strtab.c (strtabinit): Initialize null Strent.
12090         (newstring): Move len == 0 handling...
12091         (strtabadd): ...here.
12092         If len == 1, return null Strent.
12093         When inserting a suffix of an existing string, check if
12094         it is not equal to some suffix already recorded.
12095         Copy left and right members over if adding longer string.
12096
12097 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
12098
12099         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
12100
12101         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
12102         (__syscall_gethostname): Add prototype.
12103
12104 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
12105
12106         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
12107
12108 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
12109
12110         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
12111
12112 2001-08-27  Roland McGrath  <roland@frob.com>
12113
12114         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
12115         short, copy that much into NAME anyway before returning error.
12116
12117 2001-09-01  Richard Henderson  <rth@redhat.com>
12118
12119         * sysdeps/alpha/elf/Dist: Remove file.
12120         * sysdeps/alpha/elf/Makefile: Remove file.
12121         * sysdeps/alpha/elf/crtbegin.S: Remove file.
12122         * sysdeps/alpha/elf/crtend.S: Remove file.
12123         * sysdeps/alpha/elf/initfini.c: New file.
12124
12125 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
12126
12127         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
12128         * iconv/tst-iconv3.c: Likewise.
12129
12130 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
12131
12132         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
12133
12134 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
12135
12136         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
12137         export it.
12138         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
12139         * iconv/iconv_prog.c (insert_cache): New function.
12140         (print_known_names): If cache is used call insert_cache to use the
12141         information from the cache [PR libc/2509].
12142
12143 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
12144
12145         * time/strptime.c (strptime_internal): Recognize 'l' format and
12146         handle it like 'I' for symmetry with strftime.
12147
12148 2001-08-31  Richard Henderson  <rth@redhat.com>
12149
12150         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
12151         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
12152         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
12153         (print_statistics): Make scalar unsigned long long.
12154         * sysdeps/alpha/hp-timing.h: New file.
12155
12156 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
12157
12158         * stdio-common/perror.c (perror): Save errno early, pass it
12159         down to perror_internal.
12160         (perror_internal): Add errnum argument.
12161
12162 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
12163
12164         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
12165         Don't add old memory content for R_ALPHA_REFQUAD.
12166
12167 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12168
12169         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
12170         memory correctly.
12171
12172         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
12173         instead of open, __close instead of close, __getpagesize instead
12174         of getpagesize.
12175
12176         * string/argz-stringify.c (__argz_stringify): Use __strnlen
12177         instead of strnlen.
12178         * include/string.h (strndupa): Redefine here to use __strnlen
12179         instead of strnlen.
12180         * string/strndup.c (__strndup): Use __strnlen not strnlen.
12181
12182         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
12183         connected).
12184
12185 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
12186
12187         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
12188         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
12189         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
12190         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
12191         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
12192         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
12193         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
12194
12195 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12196
12197         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
12198
12199 2001-08-30  Andreas Jaeger  <aj@suse.de>
12200
12201         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
12202         contributed Stephen L Moshier.
12203
12204 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
12205
12206         * sunrpc/etc.rpc (sgi_fam): Add.
12207
12208 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12209
12210         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
12211
12212 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
12213
12214         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
12215         first is from a previous call.
12216         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
12217
12218 2001-08-29  Andreas Schwab  <schwab@suse.de>
12219
12220         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
12221
12222 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12223
12224         * config.make.in (INSTALL_SCRIPT): Define.
12225         * Makeconfig (INSTALL_SCRIPT): Define.
12226         * Makerules (do-install-script): New macro to install scripts using
12227         INSTALL_SCRIPT.
12228         (install-bin-script): New rule to install scripts with
12229         do-install-script.
12230         (install-bin-script-nosubdir): New rule.
12231         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
12232         (distinfo-vars): Add $(install-bin-script).
12233         * Rules (others): Likewise.
12234         * Makefile (glibcbug): Install with install-bin-script.
12235         * debug/Makefile (xtrace): Likewise.
12236         (catchsegv): Likewise.
12237         * elf/Makefile (ldd): Likewise.
12238         * malloc/Makefile (mtrace): Likewise.
12239         * timezone/Makefile (tzselect): Likewise.
12240
12241 2001-08-29  H.J. Lu  <hjl@gnu.org>
12242
12243         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
12244         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
12245         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
12246
12247 2001-08-29  Andreas Schwab  <schwab@suse.de>
12248
12249         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
12250
12251 2001-08-28  H.J. Lu  <hjl@gnu.org>
12252
12253         * Makeconfig (combreloc-LDFLAGS): New variable.
12254         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
12255         * config.make.in (have-z-combreloc): New variable.
12256         * configure.in: Substitute libc_cv_z_combreloc.
12257
12258 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
12259
12260         * po/sv.po: Update from translation team.
12261         * po/fr.po: Likewise.
12262         * po/da.po: Likewise.
12263
12264 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12265
12266         * Makerules: Fix a typo: MD% -> MD5.
12267
12268 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
12269
12270         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
12271         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
12272
12273 2001-08-28  Andreas Jaeger  <aj@suse.de>
12274
12275         * manual/libc-texinfo.sh: Add entry about free manuals.
12276
12277         * manual/contrib.texi (Contributors): Fix cross reference.
12278
12279         * manual/libc.texinfo (Copying): Include freemanuals.
12280
12281         * manual/Makefile (appendices): Add freemanuals.
12282
12283         * manual/freemanuals.texi: New file.
12284         Patch by Brian Youmans <3diff@gnu.org>.
12285
12286         * manual/libm-err-tab.pl: Pretty print more platforms, print a
12287         smaller table.
12288
12289         * manual/math.texi (Errors in Math Functions): Fix grammar, start
12290         table on separate page.
12291         Patch by Brian Youmans <3diff@gnu.org>.
12292
12293 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
12294
12295         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
12296         the connection went down after we first used it try to connect
12297         again and resend the message before printing to the console.
12298         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
12299
12300 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
12301
12302         * string/tst-strlen.c (main): Test strnlen (, -1) too.
12303         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
12304         bit set.
12305
12306 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
12307
12308         * iconv/strtab.c (searchstring): Use correct length for comparison.
12309         (strtabadd): Account total size correct if new string has old string as
12310         substring.
12311
12312 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
12313
12314         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
12315
12316 2001-08-27  Andreas Jaeger  <aj@suse.de>
12317
12318         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
12319
12320         * math/libm-test.inc (j0_test): Add extra tests.
12321         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
12322         not x, in Hankel approximation.
12323         Patches by Stephen L Moshier.
12324
12325 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
12326
12327         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
12328         link_map.
12329
12330         * configure.in: Fix test for .rela.dyn section.
12331
12332         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
12333
12334 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
12335
12336         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
12337         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
12338         Pass type_class to _dl_lookup_*.
12339         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
12340         Pass around just type_class instead of noexec, noplt pair.
12341         (_dl_lookup_versioned_symbol): Likewise.
12342         (_dl_lookup_symbol_skip): Pass around just type_class instead of
12343         noexec, noplt pair.
12344         (_dl_lookup_versioned_symbol_skip): Likewise.
12345         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
12346         * elf/do-lookup.h (do_lookup): Likewise.
12347         * include/link.h (struct link_map): Replace noexec and noplt fields
12348         in l_lookup_cache with type_class field.
12349         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
12350         ELF_RTYPE_CLASS_COPY): Define.
12351         Adjust prototypes for _dl_lookup_symbol and
12352         _dl_lookup_versioned_symbol.
12353         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
12354         elf_machine_lookup_noexec_p): Remove.
12355         (elf_machine_type_class): Define.
12356         * sysdeps/arm/dl-machine.h: Likewise.
12357         * sysdeps/hppa/dl-machine.h: Likewise.
12358         * sysdeps/cris/dl-machine.h: Likewise.
12359         * sysdeps/i386/dl-machine.h: Likewise.
12360         * sysdeps/ia64/dl-machine.h: Likewise.
12361         * sysdeps/m68k/dl-machine.h: Likewise.
12362         * sysdeps/mips/mips64/dl-machine.h: Likewise.
12363         * sysdeps/mips/dl-machine.h: Likewise.
12364         * sysdeps/powerpc/dl-machine.h: Likewise.
12365         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12366         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12367         * sysdeps/sh/dl-machine.h: Likewise.
12368         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12369         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12370
12371 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
12372
12373         * manual/message.texi (Advanced gettext functions): Change
12374         description of plural forms for Slovak.
12375         Reported by Marcel Telka <marcel@telka.sk>.
12376
12377         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
12378         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
12379
12380 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
12381
12382         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
12383         typo.  Patch by Florian La Roche <laroche@redhat.com>.
12384
12385 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
12386
12387         * include/link.h (struct link_map): Add l_lookup_cache element.
12388         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
12389         (RESOLVE_MAP): Likewise.
12390         (_dl_relocate_object): Remove cache initialization.
12391         * elf/dl-lookup.c: Rip out cache handling code.
12392         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
12393         declarations.
12394
12395         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
12396         remove some __builtin_expect.
12397         (_dl_lookup_versioned_symbol): Likewise.
12398
12399         * config.h.in: Add HAVE_Z_COMBRELOC.
12400         * configure.in: Add test for -z combreloc.
12401
12402         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
12403         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
12404         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
12405         case to almost no code.
12406
12407 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
12408
12409         * po/tr.po: Update from translation team.
12410
12411 2001-08-24  Andreas Jaeger  <aj@suse.de>
12412
12413         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
12414         make clean works.
12415
12416 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12417
12418         * elf/rtld.c (print_statistics): Printf % after percent values.
12419         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
12420
12421         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
12422         don't have to compute the hash value and initialize current_value.
12423         Move reference_name variable to where it is needed.
12424         (_dl_lookup_versioned_symbol): Likewise.
12425
12426 2001-08-24  Roland McGrath  <roland@frob.com>
12427
12428         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
12429         Just test that strerror returns non-null for a few errno codes.
12430
12431 2001-08-23  Roland McGrath  <roland@frob.com>
12432
12433         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
12434         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
12435
12436         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
12437
12438         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
12439         __mach_reply_port.
12440
12441 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12442
12443         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
12444         returns NULL.
12445
12446         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
12447         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
12448         doesn't do it.
12449         * elf/rtld.c: Include <sys/param.h>.
12450         * elf/dl-reloc.c: Likewise.
12451
12452 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12453
12454         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
12455         empty to prevent junk from being generated.
12456         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
12457
12458 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
12459
12460         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
12461         records.  Rename endrel to relative, initialize it to r, and use it
12462         in elf_machine_rel_relative calls.  Point r after relative relocs.
12463
12464 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12465
12466         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
12467         of R_386_NONE.
12468
12469 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
12470
12471         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
12472         necessary.  Undefine newly defined macros at the end.
12473         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
12474         Rename from elf_machine_rel_relative.
12475         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
12476         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
12477         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
12478         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
12479         Likewise.
12480         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
12481         Likewise.
12482         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
12483         Fix argument types.
12484         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
12485         Fix argument types.
12486         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
12487         Likewise.  Fix argument types.
12488         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
12489         Likewise.  Fix argument types.
12490         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
12491         Fix argument types.
12492         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
12493         ElfW(Rel) in argument.
12494         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
12495         function.
12496
12497 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
12498
12499         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
12500
12501 2001-08-24  Andreas Jaeger  <aj@suse.de>
12502
12503         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
12504         Stephen L Moshier <moshier@mediaone.net>.
12505
12506 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12507
12508         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
12509         first if RELCOUNT is set.
12510
12511         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
12512         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
12513         elf_machine_rel_relative.
12514         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
12515         Minor optimizations.
12516         * sysdeps/arm/dl-machine.h: Likewise.
12517         * sysdeps/cris/dl-machine.h: Likewise.
12518         * sysdeps/hppa/dl-machine.h: Likewise.
12519         * sysdeps/i386/dl-machine.h: Likewise.
12520         * sysdeps/ia64/dl-machine.h: Likewise.
12521         * sysdeps/m68k/dl-machine.h: Likewise.
12522         * sysdeps/mips/dl-machine.h: Likewise.
12523         * sysdeps/powerpc/dl-machine.h: Likewise.
12524         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12525         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12526         * sysdeps/sh/dl-machine.h: Likewise.
12527         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12528         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12529
12530 2001-08-23  Roland McGrath  <roland@frob.com>
12531
12532         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
12533
12534         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
12535         sysdeps/mach version.  Implement counting ("recursive") mutexes
12536         on top of cthreads mutexes.
12537         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
12538
12539         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
12540         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
12541         (__libc_cleanup_region_start, __libc_cleanup_region_end,
12542         __libc_clean_end): Define these to call the cleanup function after
12543         normal exit when they're supposed to.
12544
12545         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
12546         Take new first arg DOIT, a boolean saying whether to really install
12547         any cleanup handler.
12548         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
12549         (__libc_cleanup_end): Likewise.
12550         * sysdeps/generic/bits/libc-lock.h: Same changes.
12551         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
12552         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
12553         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
12554         Likewise.
12555         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
12556         * sysdeps/generic/bits/stdio-lock.h
12557         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
12558
12559 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
12560
12561         * elf/ldconfig.c (search_dir): Remove stale symlinks.
12562
12563 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
12564
12565         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New
12566         functions.
12567         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
12568         lookups in cache.
12569         (_dl_lookup_versioned_symbol): Likewise.
12570         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
12571         relocation lookup.
12572         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
12573         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
12574         (lookup_cache, lookup_cache_versioned): Add declarations.
12575
12576 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
12577
12578         * stdlib/tst-random.c (main): Swap parameters in fail call.
12579         Patch by Pete Bevin <pete@petebevin.com>.
12580
12581 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
12582
12583         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
12584
12585 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
12586
12587         * malloc/obstack.c: Indent preprocessor directives.
12588         Patch by Jim Meyering <meyering@ascend.com>.
12589
12590         * po/ja.po: Update from translation team.
12591
12592 2001-08-23  Roland McGrath  <roland@frob.com>
12593
12594         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
12595
12596         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
12597         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
12598
12599 2001-08-22  Roland McGrath  <roland@frob.com>
12600
12601         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
12602         __libc_lock_define_recursive.
12603         * elf/dl-open.c: Don't declare it here any more.
12604         * elf/dl-close.c: Likewise.
12605         * elf/dl-lookup.c: Likewise.
12606         * elf/dl-iteratephdr.c: Likewise.
12607         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
12608         __libc_lock_unlock_recursive.
12609         * elf/dl-close.c (_dl_close): Likewise
12610         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
12611         * elf/dl-open.c (_dl_open): Likewise
12612
12613         * sysdeps/generic/bits/libc-lock.h
12614         (__libc_lock_define_recursive): New macro.
12615         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
12616         (_IO_lock_lock): Use __libc_lock_lock_recursive.
12617         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
12618
12619         * conform/conformtest.pl (checknamespace): Sort the output list.
12620
12621         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
12622         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
12623         definitions conditional on [__USE_XOPEN].
12624
12625         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
12626         these unconditionally, not only use [__USE_BSD], so as to match
12627         the sysdeps/unix/sysv/linux files.
12628
12629 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
12630
12631         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
12632         avoid warnings.
12633
12634         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
12635         DL_LOOKUP_ADDRESS.
12636
12637 2001-08-22  Roland McGrath  <roland@frob.com>
12638
12639         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
12640         conditionalization of sa_handler/sa_sigaction member types to
12641         match the sysdeps/unix/sysv/linux file.
12642
12643 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
12644
12645         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
12646         symbol sizes a bit better.
12647
12648         * sysdeps/ia64/strncpy.S: Complete rewrite.
12649         Contributed by Jakub Jelinek <jakub@redhat.com>.
12650
12651         * string/stratcliff.c (main): Add strncpy test.
12652
12653 2001-08-22  Roland McGrath  <roland@frob.com>
12654
12655         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
12656         and don't declare unsetenv or _environ directly.
12657         (unsetenv): Return int, not void.  Use __environ instead of _environ.
12658
12659 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
12660
12661         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
12662         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
12663         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
12664         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
12665         test for cmsg struct size.
12666
12667 2001-04-23  Paul Eggert  <eggert@twinsun.com>
12668
12669         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
12670         Rename __argc to ___argc in prototypes to avoid compatibility
12671         problems with systems that reserve the identifier "__argc".
12672         Similarly for __argv.
12673
12674 2001-08-21  Roland McGrath  <roland@frob.com>
12675
12676         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
12677
12678         * mach/Makefile (tests): Removed.
12679         * mach/hello.c: File removed.
12680
12681 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
12682
12683         * po/sv.po: Update from translation team.
12684
12685         * stdio-common/vfscanf.c: Fix handling of %l[].
12686         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
12687
12688         * libio/Makefile (tests): Add tst-sscanf.
12689         * libio/tst-sscanf.c: New file.
12690
12691         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
12692         * malloc/mtrace.c (tr_where): dli_sname always points to a
12693         non-empty string if != NULL.
12694         Reported by Tim Janik <timj@gtk.org>.
12695
12696 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
12697
12698         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
12699         buf.  Free resources on failure.
12700         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
12701         (makefd_xprt): Likewise.
12702         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
12703         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
12704         * sunrpc/auth_unix.c (authunix_create): Likewise.
12705
12706 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
12707
12708         * string/strnlen.c: Remove.
12709         * sysdeps/generic/strnlen.c: New file.
12710         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
12711
12712 2001-08-21  Roland McGrath  <roland@frob.com>
12713
12714         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
12715         as a macro, not an extern inline function.
12716
12717         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
12718         * Versions.def (libc): Add GLIBC_2.2.5 set.
12719         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
12720         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
12721
12722 2001-08-20  Roland McGrath  <roland@frob.com>
12723
12724         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
12725         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
12726
12727 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
12728
12729         * string/bits/string2.h: Remove strnlen optimization here.
12730         * sysdeps/i386/i486/bits/string.h: Add it here.
12731
12732 2001-08-21  Wolfram Gloger  <wg@malloc.de>
12733
12734         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
12735
12736 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
12737
12738         * po/gl.po: Update from translation team.
12739
12740 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
12741
12742         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
12743         * misc/err.c (convert_and_print): Likewise.
12744
12745         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
12746         function calls.
12747
12748 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12749
12750         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
12751         change of the gregset_t type.
12752         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
12753
12754 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
12755
12756         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
12757
12758 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
12759
12760         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
12761
12762         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
12763
12764 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
12765
12766         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
12767         before calling the cthreads initialization code.
12768
12769 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
12770
12771         * argp/argp-help.c: Fix two problems introduced in last change.
12772
12773         * include/dirent.h: Include <dirstream.h> first.
12774
12775 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
12776
12777         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
12778
12779         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
12780         * sunrpc/xdr_rec.c: Likewise.
12781         * sunrpc/xdr_mem.c: Likewise.
12782         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
12783         * sunrpc/rpc_cmsg.c: Likewise.
12784         * sunrpc/getrpcport.c (getrpcport): Likewise.
12785         * sunrpc/clnt_simp.c (callrpc): Likewise.
12786         * sunrpc/clnt_gen.c (clnt_create): Likewise.
12787         * string/envz.c: Likewise.
12788
12789         * po/ko.po: Update from translation team.
12790
12791         * argp/argp-help.c: Handle wide oriented stderr stream.
12792
12793 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
12794
12795         * sysdeps/generic/strtol.c: Little optimizations.  Add some
12796         __builtin_expect.
12797
12798         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
12799
12800         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
12801         * wcsmbs/wcwidth.c (wcwdith): Likewise.
12802         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
12803
12804         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
12805
12806         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
12807
12808         * time/time.h (struct timespec): Use __time_t for tv_sec element.
12809
12810         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
12811         wchar_t for function declarations and defintions.
12812
12813         * misc/sys/select.h: Define __need_time_t before including <time.h>.
12814         Define suseconds_t if it hasn't happened yet.
12815
12816         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
12817
12818         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
12819
12820         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
12821         <stddef.h>.
12822
12823         * conform/data/stddef.h-data: Remove wint_t.
12824
12825         * conform/conformtest.pl: Change namespace test to take #undef
12826         lines into account.
12827
12828         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
12829
12830         * conform/data/sys/socket.h-data: Add sockatmark.
12831
12832 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
12833
12834         * io/fts.c: Update from recent BSD source.
12835
12836 2001-08-17  Roland McGrath  <roland@frob.com>
12837
12838         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
12839         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
12840         Likewise.
12841
12842 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
12843
12844         * locale/duplocale.c (__duplocale): Also initialize the special
12845         __ctype_* elements.
12846
12847         * conform/data/netdb.h-data: Adjust gai_strerror return type.
12848
12849 2001-08-17  Andreas Jaeger  <aj@suse.de>
12850
12851         * misc/getpass.c: Include wchar.h for prototypes.
12852         * malloc/obstack.c: Likewise.
12853
12854 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
12855
12856         * sunrpc/svc_simple.c (universal): Use __write instead of write.
12857
12858         * wcsmbs/wcscoll.c: Also define __wcscoll.
12859         * include/wchar.h: Declare __wcscoll.
12860
12861         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
12862         * libio/vwprintf.c: Likewise.
12863         * libio/wprintf.c: Likewise.
12864
12865         * iconv/gconv_cache.c: Use __munmap instead of munmap.
12866
12867 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
12868
12869         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
12870         instead of mbrtowc.
12871         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
12872         wcslen, and __wcscoll instead of wcscoll.
12873
12874         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
12875
12876         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
12877         __getuid instead of getuid.
12878
12879         * stdio-common/perror.c (perror): Use __close instead of close.
12880         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
12881         * libio/freopen.c (freopen): Likewise.
12882         * libio/freopen64.c (freopen64): Likewise.
12883
12884         * libio/tst-ungetwc2.c (main): Define str const.
12885
12886         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
12887         * libio/fwprintf.c: Also define __fwprintf.
12888         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
12889         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
12890         * assert/assert-perr.c: Likewise.
12891         * assert/assert.c: Likewise.
12892         * gmon/gmon.c: Likewise.
12893         * inet/rcmd.c: Likewise.
12894         * malloc/obstack.c: Likewise.
12895         * misc/err.c: Likewise.
12896         * misc/error.c: Likewise.
12897         * misc/getpass.c: Likewise.
12898         * posix/getopt.c: Likewise.
12899         * resolv/res_hconf.c: Likewise.
12900         * stdio-common/perror.c: Likewise.
12901         * stdio-common/psignal.c: Likewise.
12902         * stdlib/fmtmsg.c: Likewise.
12903         * sunrpc/auth_unix.c: Likewise.
12904         * sunrpc/clnt_perr.c: Likewise.
12905         * sunrpc/clnt_tcp.c: Likewise.
12906         * sunrpc/clnt_udp.c: Likewise.
12907         * sunrpc/clnt_unix.c: Likewise.
12908         * sunrpc/svc_simple.c: Likewise.
12909         * sunrpc/svc_tcp.c: Likewise.
12910         * sunrpc/svc_udp.c: Likewise.
12911         * sunrpc/svc_unix.c: Likewise.
12912         * sunrpc/xdr.c: Likewise.
12913         * sunrpc/xdr_array.c: Likewise.
12914         * sunrpc/xdr_rec.c: Likewise.
12915         * sunrpc/xdr_ref.c: Likewise.
12916         * sysdeps/generic/wordexp.c: Likewise.
12917
12918         * po/it.po: Update from translation team.
12919
12920         * misc/err.c: Handle wide oriented stderr stream.
12921
12922 2001-08-14  Tom Rix  <trix@redhat.com>
12923
12924         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
12925         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
12926
12927 2001-08-13  Tom Rix  <trix@redhat.com>
12928
12929         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
12930         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
12931         and __intptr_t.
12932
12933 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12934
12935         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
12936         Store the access registers to the ucontext structure.
12937         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
12938         Likewise.
12939
12940         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
12941         Load the access registers from the ucontext structure.
12942         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
12943         Likewise.
12944
12945         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
12946         offsets to the new ucontext layout.
12947         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
12948
12949         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
12950         of the ucontext structure.
12951         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
12952
12953 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
12954
12955         * misc/error.c (error): Handle wide oriented stderr stream correctly.
12956         (error_at_line): Likewise.
12957
12958         * stdio-common/perror.c (perror): Implement according to standard.
12959         The stream orientation must not be changed if the stream was not
12960         oriented before the call.
12961         * stdio-common/Makefile (tests): Add tst-perror.
12962         * stdio-common/tst-perror.c: New file.
12963
12964
12965 See ChangeLog.12 for earlier changes.