Update.
[platform/upstream/glibc.git] / ChangeLog
1 2002-03-16  Ulrich Drepper  <drepper@redhat.com>
2
3         * po/fr.po: Update from translation team.
4
5 2002-02-25  Bruno Haible  <bruno@clisp.org>
6
7         * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
8
9 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
10
11         * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
12         buffers if _IO_file_attach failed.
13
14         * libio/fileops.c (_IO_file_open): Close file descriptor if
15         _IO_SEEKOFF call failed.
16
17 2002-03-15  H.J. Lu  <hjl@gnu.org>
18             Ulrich Drepper  <drepper@redhat.com>
19
20         * configure.in: Check for availability of
21         init_array/fini_array/preinit_array handling in binutils.
22         * config.h.in (HAVE_INITFINI_ARRAY): New macro.
23         * config.make.in (have-initfini-array): New variable.
24
25 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
26
27         * stdio-common/tst-printf.c (main): Comment out one test which
28         checked the compiler's ability to fold floating-point constants
29         but not really printf.
30         (rfg3): Make s const.
31         * stdio-common/tst-printf.sh: Adjust for removed test.
32
33         * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
34         internal function.  Adjust for internal_function calling convention.
35         * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
36         as internal_function.
37
38         * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
39         hidden.
40
41         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
42         declaration and definition.
43         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
44         declaration.
45         * nss/getXXent_r.c: Likewise.
46         * nss/nsswitch.h (db_lookup_function): Add internal_function to
47         definition.
48
49         * include/time.h: Declare __localtime_r as hidden.
50
51         * include/grp.h: Declare __getgrent_r as hidden.
52         * include/netdb.h: Declare __gethostent_r, __getnetent_r,
53         __getservent_r, and __getprotoent_r as hidden.
54         * include/pwd.h: Declare __getpwent_r as hidden.
55         * include/shadow.h: Declare __getspent_r as hidden.
56         * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
57
58         * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
59         and __gconv_transliterate as hidden.
60         Add internal_function to __gconv_get_path declaration.
61         * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
62         definition.  Add attribute_hidden to __gconv_read_conf definition.
63
64 2002-03-14  Ulrich Drepper  <drepper@redhat.com>
65
66         * elf/rtld.c: Declare _environ as hidden.
67         * sysdeps/generic/dl-environ.c: Likewise.
68         * sysdeps/generic/dl-sysdep.c: Likewise.
69
70         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
71         _dl_mcount_internal as hidden.
72
73         * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
74         * sysdeps/generic/dl-brk.c: New file.
75         * sysdeps/generic/dl-sbrk.c: New file.
76         * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
77         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
78
79         * elf/dl-minimal.c (malloc): Declare _end as hidden.
80         (__errno_location): New function.  Declare errno as hidden.
81         * elf/rtld.c (_dl_argc): Define as hidden.
82         (_dl_skip_args): Define as hidden.
83         (_begin, _end): Declare as hidden.
84         * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
85         * sysdeps/generic/entry.h (_start): Declare as hidden.
86         * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
87         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
88         _dl_runtime_resolve and _dl_runtime_profile as hidden.
89         (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
90
91 2002-03-14  Roland McGrath  <roland@frob.com>
92
93         * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
94
95         * Makeconfig (%.v.i, %.v): New implicit rules.
96         (preprocess-versions): Variable removed.
97         ($(common-objpfx)shlib-versions.v.i): New target giving just the
98         shlib-versions input files as dependencies.
99         ($(common-objpfx)soversions.i): Depend on that instead of the input
100         files.  Use it as input instead of using a pipeline.
101         (postclean-generated): Append soversions.i, shlib-versions.v, and
102         shlib-versions.v.i here.
103         * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
104         the Versions.def input files as dependencies.
105         ($(common-objpfx)Versions.v.i): Likewise for Versions files.
106         ($(common-objpfx)Versions.all): Depend on that instead of the input
107         files.  Use it as input instead of using a pipeline.
108         ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
109         (postclean-generated): Append those .v and .v.i files here.
110
111 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
112
113         * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
114         * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
115         Remove.
116
117 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
118
119         * sysdeps/generic/mp_clz_tab.c: New file.
120         * sysdeps/i386/mp_clz_tab.c: New file.
121         * sysdeps/hppa/mp_clz_tab.c: New file.
122         * sysdeps/powerpc/mp_clz_tab.c: New file.
123         * stdlib/Makefile (aux): Revert last patch.
124         * math/Makefile (gmp-objs): Likewise.
125
126 2002-03-13  Paul Eggert  <eggert@twinsun.com>
127
128         * time/strftime.c: Comment fixes for references to obsolescent
129         standards, In most cases the simplest fix is to remove the
130         confusing comments.  Cross-referencing all the standards properly
131         is a bit of a pain, and it should be enough to put that info in
132         the documentation as I did in my recent time.texi patch.
133
134 2002-03-13  Paul Eggert  <eggert@twinsun.com>
135
136         * manual/time.texi (Formatting Calendar Time):
137         ISO C99 also specifies the E and O modifiers.
138         %P is a GNU extension, and is not in ISO C99.
139         Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
140         %T is also in ISO C99.
141         The RFC 822 example is not valid in arbitrary locales.
142         Reword the POSIX.2 wording slightly, to make it a bit clearer
143         that POSIX.2 formats are also supported by later POSIX versions.
144         If a format was introduced in ISO C99 it is also required by
145         POSIX.1-2001.
146
147 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
148
149         * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
150         _sys_nerr_internal with INTVARDEF2.
151         * include/libc-symbols.h (INTVARDEF2): New macro.
152         * include/stdio.h (_sys_errlist_internal): Declare as hidden.
153         (_sys_nerr_internal): Library.
154
155         * sysdeps/posix/signal.c (_sigintr): Define as hidden.
156         * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
157
158         * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
159
160 2002-03-13  Wolfram Gloger  <wg@malloc.de>
161
162         * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
163
164 2002-03-02  Andreas Schwab  <schwab@suse.de>
165
166         * stdio-common/vfprintf.c (process_arg): Fix decimal format with
167         'h' flag and positional arg.
168         * stdio-common/tst-printf.c (rfg3): New function to test
169         positional arguments.
170         (main): Fix some warnings.
171
172 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
173
174         * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
175         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
176
177 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
178
179         * grp/initgroups.c (__nss_group_data): Declare as hidden.
180
181         * include/locale.h (_nl_C_locobj): Declare as hidden.
182
183         * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
184         * time/strptime.c (_nl_C_LC_TIME): Likewise.
185
186         * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
187
188         * include/sys/gmon.h: Declare _gmonparam as hidden.
189
190         * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
191         (__ctype32_wctrans): Likewise.
192         (__ctype32_width): Likewise.
193
194         * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
195         use of __ttyname.
196
197         * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
198         Define as hidden.
199         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Define as
200         hidden.  Change all users of these variables.
201
202         * posix/regex_internal.h (__re_error_msgid): Renamed from
203         re_error_msgid.  Declare as hidden.
204         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Declare as
205         hidden.
206
207         * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
208         (__printf_function_table): Likewise.
209         * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
210         hidden.
211         (__printf_function_table): Likewise.
212
213         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
214         __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
215
216         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
217         * nss/nsswitch.c: Declare _nss_*_database as hidden.
218
219         * stdlib/wctomb.c (__no_r_state): Declare as hidden.
220         * stdlib/mbtowc.c (__no_r_state): Define as hidden.
221
222 2002-03-12  Ulrich Drepper  <drepper@redhat.com>
223
224         * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
225         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
226         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
227         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
228         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
229         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
230         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
231         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
232         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
233         _nl_C_LC_CTYPE_width: Declare as hidden.
234         * include/locale.h: Declare _nl_locale_file_list.
235         * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
236         * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
237         * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
238         * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
239         * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
240         * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
241         * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
242         * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
243         * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
244         * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
245         * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
246         * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
247         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
248         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
249         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
250         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
251         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
252         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
253         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
254         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
255         _nl_C_LC_CTYPE_width, and as hidden.
256         * locale/findlocale.c: Declare _nl_C as hidden.
257         * locale/newlocale.c: Likewise.
258         * locale/setlocale.c: Define _nl_C as hidden.  Remove declaration of
259         _nl_locale_file_list.
260         * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
261         _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
262         Define _nl_C_locobj as hidden.
263
264         * malloc/mtrace.c (_mtrace_file): Define as hidden.
265         (_mtrace_line): Likewise.
266
267         * include/time.h: Declare __mon_yday as hidden.
268         * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
269
270         * libio/libioP.h: Declare __libio_codecvt as hidden.
271         * libio/fileops.c: Declare __libio_translit as hidden.
272         * libio/iofwide.c: Define __libio_translit as hidden.
273
274         * login/getutent_r.c: Define __libc_utmp_lock as hidden.
275         * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
276         * login/getutline_r.c: Likewise.
277         * login/utmpname.c: Likewise.
278
279         * login/utmp-private.h: Declare __libc_utmp_file_functions,
280         __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
281         __libc_utmp_file_name as hidden.
282
283         * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
284         * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
285         * locale/freelocale.c: Likewise.
286         * locale/lc-time.c: Likewise.
287
288         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
289         (__libc_ptyname2): Likewise.
290         * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
291         hidden.
292         (__libc_ptyname2): Likewise.
293
294         * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
295         * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
296         * sysdeps/generic/init-first.c: Likewise.
297         * sysdeps/i386/init-first.c: Likewise.
298         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
299         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
300         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
301         * sysdeps/sh/init-first.c: Likewise.
302         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
303         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
304
305         * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
306         (_itowa_upper_digits): Likewise.
307
308         * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
309         * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
310         as hidden.
311
312         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
313         _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
314         _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
315         _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
316
317         * gmon/gmon.c (__bb_head): Define as hidden.
318         * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
319
320         * argp/argp-parse.c (_argp_hang): Define as static.
321
322         * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
323         handling in latest compilers.
324
325         * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
326         define alias.
327         * libio/fileops.c (_IO_file_jumps): Likewise.
328         * libio/stdfiles.c (_IO_list_all): Likewise.
329         * libio/wfileops.c (_IO_wfile_jumps): Likewise.
330
331         * malloc/malloc.h: Move __libc_malloc_initialized declaration to
332         include/malloc.h.
333         * include/malloc.h: Add __libc_malloc_initialized declaration
334         here.  Mark variable hidden.
335         * malloc/malloc.c: Include <malloc.h> not "malloc.h".
336
337         * elf/dl-open.c (__libc_argc): Declare as hidden.
338         (__libc_argv): Likewise.
339         * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
340         (__libc_argv): Likewise.
341         * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
342         __libc_argv as hidden.
343         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
344         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
345         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
346         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
347
348         * include/stdlib.h (__libc_drand48_data): Declare as hidden.
349         * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
350         * stdlib/erand48.c: Likewise.
351         * stdlib/jrand48.c: Likewise.
352         * stdlib/lcong48.c: Likewise.
353         * stdlib/lrand48.c: Likewise.
354         * stdlib/mrand48.c: Likewise.
355         * stdlib/nrand48.c: Likewise.
356         * stdlib/seed48.c: Likewise.
357         * stdlib/srand48.c: Likewise.
358
359         * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
360         (_itoa_lower_digits_internal): New declaration.
361         (_itoa_upper_digits_internal): New declaration.
362         (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
363         * stdio-common.h (_itoa_lower_digits_internal): New declaration.
364         (_itoa_upper_digits_internal): New declaration.
365         (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
366         _itoa_lower_digits.
367         * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
368         * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
369
370         * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
371         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
372
373         * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
374         (_itowa_lower_digits): Likewise.
375         (_itowa_upper_digits): Likewise.
376         * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
377         (_itowa_upper_digits): Likewise.
378
379         * intl/plural-exp.h (attribute_hidden): Define as empty macro if
380         not already defined.
381         (GERMANIC_PLURAL): Declare as hidden.
382
383         * posix/getopt.c (__getopt_initialized): Declare as hidden.
384         (attribute_hidden): Define as empty macro if not already defined.
385
386         * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
387         (__gconv_max_path_elem_len): Likewise.
388         (__gconv_path_envvar): Likewise.
389
390         * math/Makefile (gmp-objs): Remove mp_clz_tab.
391         * stdlib/Makefile (aux): Remove mp_clz_tab.
392         * stdlib/mp_clz_tab.c: Removed.  Not needed anywhere.
393
394         * stdlib/exit.h (__exit_funcs): Declare as hidden.
395
396         * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
397
398         * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
399         _nl_category_names, _nl_category_name_sizes, _nl_current,
400         _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
401
402         * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
403         (_nl_current_default_domain): Likewise
404         (_nl_state_lock): Likewise.
405         * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
406         (_nl_current_default_domain): Likewise
407         (_nl_state_lock): Likewise.
408         * intl/bindtextdom.c (_nl_state_lock): Likewise.
409
410         * stdlib/fpioconst.h (__tens): Add attribute_hidden.
411         (_fpioconst_pow10): Likewise.
412
413         * include/time.h (_tmbuf): Add attribute_hidden.
414
415         * time/tzset.c (tzstring_list): Define as static.
416
417         * include/time.h: Add attribute_hidden to __tzname_cur_max and
418         __use_tzfile declaration.
419
420         * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
421         and __wcsmbs_last_locale declaration.
422
423 2002-02-25  Paul Eggert  <eggert@twinsun.com>
424
425         * timezone/Makefile (tzbases): Move systemv from here...
426         (tzlinks): to here, since the entries in systemv were all changed
427         from Zone to Link lines in tz-2001a.  Bug reported (and patch
428         tested) by Peter Breitenlohner.
429
430 2002-03-07  Jakub Jelinek  <jakub@redhat.com>
431
432         * time/tst-posixtz.c (tests): Add new tests.
433         (main): Test whether tzset() sets daylight properly.
434
435 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
436
437         * time/tzset.c (tz_compute): Move __daylight, __tzname and
438         __tzname_cur_max setting...
439         (tzset_internal): ...here.
440
441 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
442
443         * time/tzset.c (compute_change): Don't return any value.
444         (tz_compute): Likewise.  Don't handle southern hemisphere here.
445         (__tz_convert): But here.
446
447 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
448
449         * manual/examples/mkfsock.c: Include <string.h> as well.
450         Patch by Alain De Carolis <alaind@wseurope.com>.
451
452 2002-03-06  Isamu Hasegawa  <isamu@yamato.ibm.com>
453
454         * posix/regexec.c (re_match): Fix incorrect register sizes.
455         (re_search): Likewise.
456
457 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
458
459         * posix/regcomp.c (regfree): Remove a disused condition.
460         * posix/regex_internal.c (re_acquire_state): Likewise.
461         (re_acquire_state_context): Likewise.
462         (register_state): Remove a redundant malloc invocation.
463         * posix/regex_internal.h: (re_state_table_entry): Simplify
464         the structure.
465
466 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
467
468         * posix/regcomp.c (regcomp): Add __builtin_expect to error
469         handling conditions.
470         (regerror): Likewise.
471         (regfree): Likewise.
472         (re_compile_internal): Likewise.
473         (init_dfa): Likewise.
474         (init_word_char): Likewise.
475         (create_initial_state): Likewise.
476         (analyze): Likewise.
477         (analyze_tree): Likewise.
478         (duplicate_node): Likewise.
479         (calc_eclosure): Likewise.
480         (calc_eclosure_iter): Likewise.
481         (parse): Likewise.
482         (parse_reg_exp): Likewise.
483         (parse_branch): Likewise.
484         (parse_expression): Likewise.
485         (parse_subexp): Likewise.
486         (parse_dup_op): Likewise.
487         (parse_bracket_exp): Likewise.
488         (build_equiv_class): Likewise.
489         (build_charclass): Likewise.
490         (build_word_op): Likewise.
491         (fetch_number): Likewise.
492         (create_tree): Likewise.
493         (duplicate_tree): Likewise.
494         * posix/regex.c (BE): New macro.
495         * posix/regexec.c (re_match): Add __builtin_expect to error
496         handling conditions.
497         (re_match_2): Likewise.
498         (re_search): Likewise.
499         (re_search_internal): Likewise.
500         (check_matching): Likewise.
501         (proceed_next_node): Likewise.
502         (set_regs): Likewise.
503         (sift_states_backward): Likewise.
504         (add_epsilon_backreference): Likewise.
505         (transit_state): Likewise.
506         (transit_state_sb): Likewise.
507         (transit_state_mb): Likewise.
508         (transit_state_bkref): Likewise.
509         (transit_state_bkref_loop): Likewise.
510         (build_trtable): Likewise.
511         (group_nodes_into_DFAstates): Likewise.
512         (match_ctx_init): Likewise.
513         (match_ctx_add_entry): Likewise.
514         * posix/regex_internal.c (re_string_construct): Add __builtin_expect
515         to error handling conditions.
516         (re_string_construct_toupper): Likewise.
517         (build_wcs_buffer): Likewise.
518         (build_wcs_upper_buffer): Likewise.
519         (build_upper_buffer): Likewise.
520         (re_string_translate_buffer): Likewise.
521         (re_node_set_alloc): Likewise.
522         (re_node_set_init_1): Likewise.
523         (re_node_set_init_2): Likewise.
524         (re_node_set_init_copy): Likewise.
525         (re_node_set_intersect): Likewise.
526         (re_node_set_init_union): Likewise.
527         (re_node_set_merge): Likewise.
528         (re_node_set_insert): Likewise.
529         (re_dfa_add_node): Likewise.
530         (re_acquire_state): Likewise.
531         (re_acquire_state_context): Likewise.
532         (create_new_state_common): Likewise.
533         (register_state): Likewise.
534         (create_ci_new_state): Likewise.
535         (create_cd_new_state): Likewise.
536         (re_string_context_at): Remove redundant condition.
537
538 2002-01-16  Roger Sayle  <roger@eyesopen.com>
539
540         * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
541
542         * sysdeps/i386/i586/strlen.S: Fix typo in comment.
543
544 2002-03-11  Jakub Jelinek  <jakub@redhat.com>
545
546         * sysdeps/i386/elf/configure.in: Fix comment.
547
548         * sysdeps/sparc/sparc64/configure.in: New.
549         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
550         if .dynamic comes before .got.
551         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
552
553         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
554         HP_TIMING_ACCUM): Fix typos.
555
556 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
557
558         * string/strfry.c: Add some more randomness to the seed.
559         Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
560
561         * po/es.po: Update from translation team.
562         * po/fr.po: Likewise.
563
564         * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
565
566         * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
567         when determining type of format.
568         Patch by James Antill <james@anqd.org> [PR libc/2787].
569
570 2002-03-04  Jakub Jelinek  <jakub@redhat.com>
571
572         * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
573
574 2002-03-11  Roland McGrath  <roland@frob.com>
575
576         * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
577
578         * Versions.def (libc): Add GLIBC_2.2.6.
579         * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
580         * sysdeps/mach/hurd/errnos.awk: In generated macro, use
581         __errno_location instead of __hurd_errno_location, and don't inline it.
582         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
583         * hurd/errno.c: New file.
584         * hurd/Makefile (routines): Add errno.
585
586 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
587
588         * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
589         ridiculously large widths and precisions [PR libc/3026].
590
591 2002-03-11  Andreas Jaeger  <aj@suse.de>
592
593         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
594         support.
595         Patch by Susanne Oberhauser <froh@SuSE.de>.
596
597 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
598
599         * inet/rexec.c (ahostbuf): Define as static.
600
601         * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
602         (__ctype32_wctrans): Likewise.
603         * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
604         * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
605         (__ctype32_wctrans): Likewise.
606         (__ctype32_width): Likewise.
607
608         * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
609         They were never exported anyway.
610
611         * gmon/gmon.c (_gmonparam): Add attribute_hidden.
612         * gmon/sys/gmon.h: Remove declaration of _gmonparam.  It wasn't
613         exported.
614         * include/sys/gmon.h: Declare _gmonparam.
615
616         * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
617         symbols for getdents64.  They were never exported.
618
619 2002-03-09  Roland McGrath  <roland@frob.com>
620
621         * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
622         Reported by Jon Arney <jarney1@cox.net>.
623
624 2002-02-23  Roland McGrath  <roland@frob.com>
625
626         * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
627         declaration.
628         (__hurd_errno_location): Function removed.
629
630 2002-03-06  Andreas Jaeger  <aj@suse.de>
631
632         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
633         32-bit.
634
635 2002-03-04  Andreas Jaeger  <aj@suse.de>
636
637         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New.
638
639         * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
640         x86-64.
641
642         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New.
643
644         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New.
645
646         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New.
647
648         * sysdeps/x86_64/bits/setjmp.h: New.
649
650         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New.
651
652         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New.
653
654         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
655         for x86.
656         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
657         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
658
659 2002-02-28  Bo Thorsen  <bo@suse.de>
660
661         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
662         version.
663
664 2002-03-03  Andreas Jaeger  <aj@suse.de>
665
666         * sysdeps/x86_64/bits/wordsize.h: New file.
667
668         * elf/nodlopenmod2.c: Provide prototype to avoid warning.
669         * elf/tst-tlsmod1.c: Likewise.
670
671         * posix/regcomp.c: Get regex.h from include dir for internal
672         prototypes.
673
674         * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
675         to libc-internal.h and include it.
676         * include/libc-internal.h: Add __init_misc.
677
678         * misc/init-misc.c: Include libc-internal.h for prototypes.
679
680         * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
681
682         * misc/error.c [_LIBC]: Include libioP.h for prototype of
683         _IO_putc_internal.
684
685 2002-03-03  Ulrich Drepper  <drepper@redhat.com>
686
687         * posix/regcomp.c: Compatibility changes to allow using the code
688         outside glibc.
689
690 2002-02-28  Hartvig Ekner <hartvige@mips.com>
691
692         * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
693         compiled non-PIC.
694
695 2002-03-02  Ulrich Drepper  <drepper@redhat.com>
696
697         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
698         of .str elements in the returned data structure.
699
700         * elf/elf.h: Add Alpha TLS bits.
701
702 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
703
704         * sysdeps/unix/sysv/linux/nice.c: New file.
705
706 2002-03-01  Ulrich Drepper  <drepper@redhat.com>
707
708         * elf/Makefile (dl-routines): Add dl-origin.
709         (elide-routines.os): Add dl-origin.
710         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
711         * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
712         _dl_debug_state.
713         * include/libc-symbols.c: Define attribute_hidden depending on
714         HAVE_VISIBILITY_ATTRIBUTE.  Add definition of INTVARDEF.
715
716         * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
717         * elf/dl-load.c: Likewise.
718         * elf/rtld.c: Likewise.
719         * include/unistd.h: Declare __libc_enable_secure_internal.
720         * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
721         Use INTUSE with __libc_enable_secure.
722         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
723
724         * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
725         * elf/dl-error.c: Likewise,
726         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
727
728         * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
729         * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
730         function definition.  Use INTDEF with _dl_get_origin.
731         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
732
733         * elf/dl-init.c: Use INTUSE with _dl_starting_up.
734         * elf/rtld.c: Likewise.  Use INTVARDEF for _dl_starting_up.
735
736         * elf/dl-profile.c: Use INTDEF for _dl_mcount.
737         * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
738         * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
739
740         * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
741         * elf/dl-deps.c: Likewise.
742         * elf/dl-error.c: Likewise.
743         * elf/dl-fini.c: Likewise.
744         * elf/dl-init.c: Likewise.
745         * elf/dl-load.c: Likewise.
746         * elf/dl-lookup.c: Likewise.
747         * elf/dl-reloc.c: Likewise.
748         * elf/dl-version.c: Likewise.
749         * elf/do-lookup.h: Likewise.
750         * sysdeps/arm/dl-machine.h: Likewise.
751         * sysdeps/cris/dl-machine.h: Likewise.
752         * sysdeps/hppa/dl-machine.h: Likewise.
753         * sysdeps/i386/dl-machine.h: Likewise.
754         * sysdeps/m68k/dl-machine.h: Likewise.
755         * sysdeps/powerpc/dl-machine.h: Likewise.
756         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
757         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
758         * sysdeps/sh/dl-machine.h: Likewise.
759         * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
760         * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
761         * sysdeps/x86_64/dl-machine.h: Likewise.
762         * elf/rtld.c: Use INTDEF for _dl_argv.  Use rtld_progrname instead of
763         _dl_argv[0].  Use INTUSE with _dl_argv.
764         * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
765         * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
766
767 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
768
769         * elf/rtld.c (_rtld_global): Remove .protected.
770         (_rtld_local): Strong alias to _rtld_global.
771         * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
772         only .os object.
773         * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
774         _rtld_local instead of _rtld_global.
775         (_rtld_local): Add hidden extern, possibly in .sdata section.
776         * configure.in: Add tests for visibility attribute and .sdata.
777         * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
778         * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
779         * sysdeps/arm/dl-machine.h: Likewise.
780         * sysdeps/generic/ldsodefs.h: Likewise.
781         * sysdeps/hppa/dl-machine.h: Likewise.
782         * sysdeps/cris/dl-machine.h: Likewise.
783         * sysdeps/i386/dl-machine.h: Likewise.
784         * sysdeps/ia64/dl-machine.h: Likewise.
785         * sysdeps/m68k/dl-machine.h: Likewise.
786         * sysdeps/mips/mips64/dl-machine.h: Likewise.
787         * sysdeps/mips/dl-machine.h: Likewise.
788         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
789         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
790         * sysdeps/sh/dl-machine.h: Likewise.
791         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
792         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
793         * sysdeps/x86_64/dl-machine.h: Likewise.
794
795 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
796
797         * login/login.c (login): Always initialize ut_line field
798         [PR libc/2991].
799
800 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
801
802         * sysdeps/i386/Makefile (sysdep_routines): Add
803         divdi3 in csu dir.
804         (shared-only-routines): Likewise.
805         * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
806         (shared-only-routines): Likewise.
807         * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
808         (shared-only-routines): Likewise.
809         * sysdeps/wordsize-32/divdi3.c: New file.
810
811 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
812
813         * locale/iso-4217.def: Remove obsolete currencies for countries
814         with Euro.
815
816 2002-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
817
818         * posix/regcomp.c (regcomp): Remove a redundant condition.
819         (init_word_char): Add a check on malloc failure.
820         (create_initial_state): Likewise.
821         (duplicate_node): Likewise.
822         (calc_eclosure): Likewise.
823         (calc_eclosure_iter): Likewise.
824         (parse_expression): Likewise.
825         (parse_bracket_exp): Remove unnecessary malloc invocations.
826         (build_equiv_class): Likewise.
827         (build_charclass): Likewise.
828         * posix/regex_internal.c (re_node_set_intersect): Add a check
829         on malloc failure.
830         (re_node_set_add_intersect): Likewise.
831         (re_node_set_merge): Likewise.
832         (re_acquire_state): Likewise.
833         (re_acquire_state_context): Likewise.
834         (create_newstate_common): Likewise.
835         (register_state): Likewise.
836         (create_ci_newstate): Likewise.
837         (create_cd_newstate): Likewise.
838         * posix/regex_internal.h: Fix prototypes of re_acquire_state
839         and re_acquire_state_context.
840         * posix/regexec.c (regexec): Suit it to the error handling of
841         re_search_internal.
842         (re_match): Likewise.
843         (re_search): Likewise.
844         (re_search_internal): Add a check on malloc failure.
845         (acquire_init_state_context): Likewise.
846         (check_matching): Likewise.
847         (proceed_next_node): Likewise.
848         (set_regs): Likewise.
849         (sift_states_backward): Likewise.
850         (sift_states_iter_bkref): Likewise.
851         (add_epsilon_backreference): Likewise.
852         (transit_state): Likewise.
853         (transit_state_sb): Likewise.
854         (transit_state_mb): Likewise.
855         (transit_state_bkref_loop): Likewise.
856         (build_trtable): Likewise.
857         (group_nodes_into_DFAstates): Likewise.
858         (match_ctx_init): Likewise.
859         (match_ctx_add_entry): Likewise.
860
861 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
862
863         * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
864         l_libname if profiling is enabled [PR libc/2916].
865
866         * sysdeps/ia64/dl-tls.h: New file.
867
868 2002-02-27  Jakub Jelinek  <jakub@redhat.com>
869
870         * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
871         Work around an Alpha gas bug.
872
873 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
874
875         * catgets/open_catalog.c (__open_catalog): Fix typo in code which
876         uses read to load the catalog.
877         Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
878
879 2002-02-26  Ulrich Drepper  <drepper@redhat.com>
880
881         * posix/Makefile (distribute): Add regcomp.c, regexec.c,
882         regex_internal.c, and regex_internal.h.
883         (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
884         * posix/regex.c: Complete rewrite.
885         * posix/regexec.c: New file.
886         * posix/regcomp.c: New file.
887         * posix/regex_internal.c: New file.
888         * posix/regex_internal.h: New file.
889         * posix/regex.h (RE_ICASE): New macro.
890         Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
891
892         * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
893         ungetwc.  It's a macro.
894         * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
895         implementation.
896         Reported by Jason Merrill <jason@redhat.com>.
897
898 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
899
900         * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
901         position to fp->_offset if it is set.
902         * stdio-common/Makefile (tests): Add tst-fdopen.
903         * stdio-common/tst-fdopen.c: New test.
904
905 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
906
907         * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
908         * stdio-common/tst-ungetc.c (main): Add another test.
909
910 2002-02-25  Ulrich Drepper  <drepper@redhat.com>
911
912         * assert/assert-perr.c: Use INTUSE to reference functions and variables
913         inside libc itself.  Use INTDEF and INTDEF2 to define appropriate
914         aliases.  Add prototypes for the new aliases.
915         * assert/assert.c: Likewise.
916         * include/libc-symbols.h: Likewise.
917         * include/stdio.h: Likewise.
918         * include/netinet/in.h: Likewise.
919         * include/rpc/auth.h: Likewise.
920         * include/rpc/auth_unix.h: Likewise.
921         * include/rpc/key_prot.h: Likewise.
922         * include/rpc/pmap_prot.h: Likewise.
923         * include/rpc/pmap_rmt.h: Likewise.
924         * include/rpc/rpc_msg.h: Likewise.
925         * include/rpc/xdr.h: Likewise.
926         * inet/gethstbyad_r.c: Likewise.
927         * inet/gethstbynm2_r.c: Likewise.
928         * inet/gethstbynm_r.c: Likewise.
929         * inet/gethstent_r.c: Likewise.
930         * inet/in6_addr.c: Likewise.
931         * libio/__fpurge.c: Likewise.
932         * libio/filedoalloc.c: Likewise.
933         * libio/fileops.c: Likewise.
934         * libio/ftello.c: Likewise.
935         * libio/ftello64.c: Likewise.
936         * libio/genops.c: Likewise.
937         * libio/iofclose.c: Likewise.
938         * libio/iofdopen.c: Likewise.
939         * libio/iofflush.c: Likewise.
940         * libio/iofflush_u.c: Likewise.
941         * libio/iofgetpos.c: Likewise.
942         * libio/iofgetpos64.c: Likewise.
943         * libio/iofgets.c: Likewise.
944         * libio/iofgets_u.c: Likewise.
945         * libio/iofopen.c: Likewise.
946         * libio/iofopncook.c: Likewise.
947         * libio/iofputs.c: Likewise.
948         * libio/iofread.c: Likewise.
949         * libio/iofread_u.c: Likewise.
950         * libio/iofsetpos.c: Likewise.
951         * libio/iofsetpos64.c: Likewise.
952         * libio/ioftell.c: Likewise.
953         * libio/iofwrite.c: Likewise.
954         * libio/iogetline.c: Likewise.
955         * libio/iogets.c: Likewise.
956         * libio/iogetwline.c: Likewise.
957         * libio/iolibio.h: Likewise.
958         * libio/iopadn.c: Likewise.
959         * libio/iopopen.c: Likewise.
960         * libio/ioseekoff.c: Likewise.
961         * libio/ioseekpos.c: Likewise.
962         * libio/iosetbuffer.c: Likewise.
963         * libio/iosetvbuf.c: Likewise.
964         * libio/ioungetc.c: Likewise.
965         * libio/ioungetwc.c: Likewise.
966         * libio/iovdprintf.c: Likewise.
967         * libio/iovsprintf.c: Likewise.
968         * libio/iovsscanf.c: Likewise.
969         * libio/libioP.h: Likewise.
970         * libio/memstream.c: Likewise.
971         * libio/obprintf.c: Likewise.
972         * libio/oldfileops.c: Likewise.
973         * libio/oldiofclose.c: Likewise.
974         * libio/oldiofdopen.c: Likewise.
975         * libio/oldiofgetpos.c: Likewise.
976         * libio/oldiofgetpos64.c: Likewise.
977         * libio/oldiofopen.c: Likewise.
978         * libio/oldiofsetpos.c: Likewise.
979         * libio/oldiofsetpos64.c: Likewise.
980         * libio/oldiopopen.c: Likewise.
981         * libio/oldstdfiles.c: Likewise.
982         * libio/putc.c: Likewise.
983         * libio/setbuf.c: Likewise.
984         * libio/setlinebuf.c: Likewise.
985         * libio/stdfiles.c: Likewise.
986         * libio/stdio.c: Likewise.
987         * libio/strops.c: Likewise.
988         * libio/vasprintf.c: Likewise.
989         * libio/vscanf.c: Likewise.
990         * libio/vsnprintf.c: Likewise.
991         * libio/vswprintf.c: Likewise.
992         * libio/wfiledoalloc.c: Likewise.
993         * libio/wfileops.c: Likewise.
994         * libio/wgenops.c: Likewise.
995         * libio/wstrops.c: Likewise.
996         * malloc/mtrace.c: Likewise.
997         * misc/error.c: Likewise.
998         * misc/syslog.c: Likewise.
999         * nss/getXXbyYY_r.c: Likewise.
1000         * nss/getXXent_r.c: Likewise.
1001         * nss/hosts-lookup.c: Likewise.
1002         * stdio-common/getw.c
1003         * stdio-common/printf-prs.c: Likewise.
1004         * stdio-common/printf_fp.c: Likewise.
1005         * stdio-common/printf_size.c: Likewise.
1006         * stdio-common/putw.c: Likewise.
1007         * stdio-common/scanf.c: Likewise.
1008         * stdio-common/sprintf.c: Likewise.
1009         * stdio-common/tmpfile64.c: Likewise.
1010         * stdio-common/vfprintf.c: Likewise.
1011         * stdio-common/vfscanf.c: Likewise.
1012         * stdlib/strfmon.c: Likewise.
1013         * sunrpc/auth_des.c: Likewise.
1014         * sunrpc/auth_none.c: Likewise.
1015         * sunrpc/auth_unix.c: Likewise.
1016         * sunrpc/authdes_prot.c: Likewise.
1017         * sunrpc/authuxprot.c: Likewise.
1018         * sunrpc/clnt_perr.c: Likewise.
1019         * sunrpc/clnt_raw.c: Likewise.
1020         * sunrpc/clnt_tcp.c: Likewise.
1021         * sunrpc/clnt_udp.c: Likewise.
1022         * sunrpc/clnt_unix.c: Likewise.
1023         * sunrpc/key_call.c: Likewise.
1024         * sunrpc/key_prot.c: Likewise.
1025         * sunrpc/openchild.c: Likewise.
1026         * sunrpc/pm_getmaps.c: Likewise.
1027         * sunrpc/pm_getport.c: Likewise.
1028         * sunrpc/pmap_clnt.c: Likewise.
1029         * sunrpc/pmap_prot.c: Likewise.
1030         * sunrpc/pmap_prot2.c: Likewise.
1031         * sunrpc/pmap_rmt.c: Likewise.
1032         * sunrpc/rpc_cmsg.c: Likewise.
1033         * sunrpc/rpc_prot.c: Likewise.
1034         * sunrpc/svc_authux.c: Likewise.
1035         * sunrpc/svc_raw.c: Likewise.
1036         * sunrpc/svc_simple.c: Likewise.
1037         * sunrpc/svc_tcp.c: Likewise.
1038         * sunrpc/svc_udp.c: Likewise.
1039         * sunrpc/svc_unix.c: Likewise.
1040         * sunrpc/xdr.c: Likewise.
1041         * sunrpc/xdr_array.c: Likewise.
1042         * sunrpc/xdr_mem.c: Likewise.
1043         * sunrpc/xdr_rec.c: Likewise.
1044         * sunrpc/xdr_ref.c: Likewise.
1045         * sunrpc/xdr_stdio.c: Likewise.
1046         * sysdeps/generic/_strerror.c: Likewise.
1047         * sysdeps/generic/printf_fphex.c: Likewise.
1048         * sysdeps/generic/tmpfile.c: Likewise.
1049         * sysdeps/gnu/errlist.awk: Likewise.
1050         * sysdeps/gnu/errlist.c: Likewise.
1051
1052         * libio/Makefile (routines): Remove iosprint.
1053         * libio/iosprintf.c: Removed
1054
1055
1056 2002-02-24  Ulrich Drepper  <drepper@redhat.com>
1057
1058         * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
1059         non_dynamic_init and exported now.
1060         * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
1061         * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
1062         !SHARED.
1063         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
1064         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
1065         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
1066
1067 2002-02-23  Ulrich Drepper  <drepper@redhat.com>
1068
1069         * elf/dl-close.c (free_slotinfo): Check for end of list and return
1070         true in this case.
1071
1072         * locale/iso-639.def: Add language codes for Walloon.
1073
1074         * elf/dl-fini.c (_dl_fini): Print some final statistics on the
1075         total number of relocations performed.
1076
1077         * elf/sprof.c (load_profdata): If do_test provide information as
1078         to why loading failed.
1079         * elf/dl-profile.c (_dl_start_profile): Initialize all of
1080         hist_hdr.dimen.
1081
1082         * csu/set-init.c: Moved to...
1083         * sysdeps/mach/hurd/set-init.c: ...here.  New file.
1084         * csu/Makefile: Don't compile set-init.
1085         * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
1086         * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
1087         to __libc_init.
1088         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
1089         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
1090         * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
1091         __libc_init.
1092         * misc/init-misc.c: Always export __init_misc.  Don't define hooks for
1093         __libc_subinit.
1094
1095 2002-02-22  Ulrich Drepper  <drepper@redhat.com>
1096
1097         * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
1098         * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
1099         * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
1100         (_dl_deallocate_tls): New function.
1101         * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
1102         _dl_deallocate_tls.
1103
1104 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
1105
1106         * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
1107         * stdio-common/tst-fseek.c (main): Add test for this.
1108
1109 2002-02-19  Ulrich Drepper  <drepper@redhat.com.>
1110
1111         * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
1112
1113 2002-02-19  Jakub Jelinek  <jakub@redhat.com>
1114
1115         * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
1116         pointer before dereferencing.
1117
1118 2002-02-18  Roland McGrath  <roland@frob.com>
1119
1120         * sysdeps/mach/hurd/times.c: Fix typo in last change.
1121
1122         * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
1123         Use task_policy in place of task_priority.
1124
1125         * sysdeps/generic/bits/mman.h
1126         (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
1127         * sysdeps/mach/msync.c: New file.
1128
1129         * sysdeps/mach/powerpc/syscall.S: New file.
1130
1131         * mach/msg.c [MACH_MSG_OVERWRITE]
1132         (__mach_msg_trap, __mach_msg_overwrite): New functions.
1133         * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
1134
1135         * sysdeps/mach/configure.in: Check for clock.defs to put into
1136         mach_interface_list.
1137         * sysdeps/mach/configure: Regenerated.
1138
1139         * mach/Makefile (mach-machine): New variable, set from $(base-machine).
1140         ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
1141         ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
1142         Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
1143         (mach-shortcuts): Add device_read_overwrite_request,
1144         device_read_overwrite, vm_read_overwrite, thread_switch.
1145
1146         * configure.in (base_machine): Set to $machine by default.
1147         * configure: Regenerated.
1148
1149         * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
1150         or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
1151         * sysdeps/mach/configure: Regenerated.
1152         * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
1153
1154         * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
1155
1156         * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
1157
1158         * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
1159         Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
1160
1161 2002-02-17  Roland McGrath  <roland@frob.com>
1162
1163         * sysdeps/mach/hurd/times.c
1164         [NO_CREATION_TIME] (startup_time): New static variable.
1165         [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
1166         (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
1167         creation_time from task_basic_info.
1168         (__times): Use __gettimeofday instead of __host_get_time.
1169
1170         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
1171         Use untyped Mach IPC message format.
1172
1173         * hurd/catch-exc.c: Include <assert.h>, missing from last change.
1174
1175         * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
1176         _S_catch_exception_raise_state_identity,
1177         _hurdsig_fault_catch_exception_raise_state,
1178         _hurdsig_fault_catch_exception_raise_state_identity.
1179
1180         * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
1181
1182         * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
1183         __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
1184
1185         * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
1186         `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
1187
1188         * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
1189         (fmh, unfmh): Define these functions only #if FMH.  Otherwise define
1190         them as no-op macros.
1191         [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
1192         (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
1193
1194         * sysdeps/powerpc/dl-machine.h
1195         (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
1196
1197         * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
1198         Use untyped Mach IPC message format.
1199
1200         * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
1201         Handle untyped Mach IPC message formats.
1202
1203         * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
1204         Expect different argument conventions when this is defined.
1205         [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
1206         [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
1207         * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
1208         [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
1209         for OSF Mach variant.
1210         (faulted): Use mig_reply_error_t for REPLY.
1211         (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
1212         in __thread_set_exception_ports call.
1213         (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
1214         __mach_port_set_attributes in place of __mach_port_set_qlimit.
1215
1216         * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
1217         before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
1218         on Darwin, which includes bogons.
1219
1220         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
1221         variable LOADBASE so it's not declared when it's not used.
1222
1223 2002-02-16  Roland McGrath  <roland@frob.com>
1224
1225         * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
1226         to use BI.creation_time.
1227
1228         * mach/Machrules (MIG): Add -x c to CPP value passed down.
1229
1230         * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
1231         * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
1232         * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
1233         host_page_size instead of vm_statistics.
1234
1235         * sysdeps/mach/Makefile (mach-before-compile): Don't include
1236         mach_interface.h here, since not all variants use that name.
1237
1238         * sysdeps/mach/configure.in: Add some checks for Mach headers
1239         to ensure a sane installation.
1240         (mach_interface_list): Define this variable by checking for .defs
1241         files found in various variants.
1242         * configure.in (mach_interface_list): AC_SUBST this.
1243         * config.make.in (mach-interface-list): New substituted variable.
1244         * mach/Makefile (user-interfaces): Define this using the value
1245         of $(mach-interface-list) instead of mach, mach4.
1246         Updated other references to mach_interface to use it as well.
1247
1248         * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
1249
1250         * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
1251         mig_reply_error_t for OSF Mach variant.
1252
1253         * mach/Makefile (routines): Remove bootprivport.
1254         * mach/bootprivport.c: File removed.  It has never been used.
1255
1256         * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
1257         Grok the OSF flavor of message format.
1258         (mach_msg_destroy_port): For MAKE_SEND and
1259         MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
1260         no-senders notification.
1261
1262 2002-02-06  Roland McGrath  <roland@frob.com>
1263
1264         * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
1265         to here if 2.0 compatibility enabled ...
1266         (libc: GLIBC_2.1.3): ... from here.
1267
1268 2002-02-15  Ulrich Drepper  <drepper@redhat.com>
1269
1270         * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
1271         generation counter.
1272         * elf/dl-close.c (_dl_close): Likewise.
1273
1274 2002-02-14  Ulrich Drepper  <drepper@redhat.com>
1275
1276         * elf/Makefile: Add rules to build and run tst-tls8.
1277         * elf/tst-tls8.c: New file.
1278         * elf/tst-tlsmod4.c: New file.
1279
1280         * stdlib/test-a64l.c (tests): Add more test cases.
1281
1282         * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
1283         Reported by Walter Harms <WHarms@bfs.de>.
1284
1285 2002-02-11  Jes Sorensen  <jes@trained-monkey.org>
1286
1287         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
1288         definitions for struct sigcontext.
1289         Suggested by David Mosberger-Tang.
1290
1291 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
1292
1293         * elf/dl-close.c (remove_slotinfo): New function.  Handles everything
1294         for removing reference of module in slotinfo list.
1295         (_dl_close): Use remove_slotinfo.
1296         * sysdeps/generic/dl-tls.c: General pretty printing.
1297         (oom): Define only if SHARED.
1298         (_dl_next_tls_modid): Correct starting point for the case we assume
1299         there is a gap.  Add missing instruction grouping (doh!).  Correct
1300         tests for reaching maximum index.
1301         * elf/Makefile: Add rules to build and run tst-tls7.
1302         * elf/tst-tls7.c: New file.
1303         * elf/tst-tlsmod3.c: New file.
1304
1305         * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
1306         USE_TLS.
1307         * elf/tst-tlsmod2.c: Likewise.
1308
1309         * elf/dl-close.c (_dl_close): When closing an object using TLS
1310         either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
1311         true.  Increment dl_tls_generation only if we closed any TLS-using
1312         object.
1313         * elf/tst-tls6.c: New file.
1314         * elf/Makefile: Add rules to build and run tst-tls6.
1315
1316         * po/da.po: Update from translation team.
1317
1318         * locale/categories.def: Fix typo [PR libc/2948].
1319         * po/Makefile (BROKEN_LINGUAS): Works with current gettext
1320         [PR libc/2949].
1321         * locale/iso-4217.def: Update from official version [PR libc/2950].
1322         * glibcbug.in: Honor TMPDIR [PR libc/2951].
1323         * locale/programs/ld-collate.c (collate_finish): Bail out with a
1324         message if input is too confusion instead of using assert.
1325         (collate_read): Don't crash on unknown symbol [PR libc/2952].
1326         Patches by Alastair McKinstry <alastair@pdd.3com.com>.
1327
1328         * elf/tst-tls1.c: Move #include "tls-macros.h" instead #ifdef USE_TLS.
1329         * elf/tst-tls2.c: Likewise.
1330         * elf/tst-tls3.c: Likewise.
1331
1332 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
1333
1334         * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
1335
1336 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
1337
1338         * elf/dl-open.c (dl_open_worker): Only bump the generation counter
1339         if this is really necessary.
1340
1341         * elf/dl-close.c (_dl_close): Implement freeing entries in the
1342         slotinfo array.
1343         (free_mem): Free memory for the slotinfo array if possible.
1344
1345 2002-02-12  Andreas Schwab  <schwab@suse.de>
1346
1347         * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
1348
1349 2002-02-12  Ulrich Drepper  <drepper@redhat.com>
1350
1351         * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
1352         TLS_DTV_UNALLOCATE.
1353         (oom): New function.
1354         (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
1355         (_dl_determine_tlsoffset): Likewise.
1356         (_dl_allocate_tls): Likewise.
1357         (__TLS_GET_ADDR): Define if not already defined.
1358         (_dl_tls_symaddr): New function.
1359         (allocate_and_init): New function.
1360         (__tls_get_addr): Actually implement handling of generation counter
1361         and deferred allocation.
1362         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
1363         add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
1364         _dl_tls_generation.
1365         Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
1366         Declare _dl_tls_symaddr.
1367         * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
1368         SHARED.
1369         * include/link.h (struct link_map):  Remove l_tls_nextimage and
1370         l_tls_previmage.
1371         * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
1372         instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
1373         (_dl_vsym): Likewise.
1374         * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
1375         layout.
1376         (dl_main): Allow PT_TLS be present for empty segment.  Remove
1377         nextimage list handling.  Instead add all modules using TLS to
1378         dl_tls_dtv_slotinfo_list.
1379         * elf/dl-open.c (dl_open_worker): After successfully loading all
1380         objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
1381         * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
1382         empty segment don't do anything.  Remove handling of initimage list.
1383         * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
1384         (GLIBC_PRIVATE): Add _dl_tls_symaddr.
1385         * elf/dl-minimal.c: Define __libc_memalign.
1386         * elf/dl-support.c: Remove _dl_initimage_list.  Add
1387         _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
1388         _dl_tls_generation.
1389         * include/stdlib.h: Declare __libc_memalign.
1390
1391         * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
1392         * elf/tst-tls4.c: New file.
1393         * elf/tst-tls5.c: New file.
1394         * elf/tst-tlsmod2.c: New file.
1395
1396         * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
1397
1398         * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
1399
1400         * elf/tst-tls1.c: Use test-skeleton.c.
1401         * elf/tst-tls2.c: Likewise.
1402         * elf/tst-tls3.c: Likewise.
1403
1404         * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
1405
1406 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
1407
1408         * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
1409
1410 2002-02-10  Ulrich Drepper  <drepper@redhat.com>
1411
1412         * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
1413
1414         * elf/tst-tls3.c: New file.
1415         * elf/tst-tlsmod1.c: New file.
1416         * elf/Makefile: Add rules to build and run tst-tls3.
1417
1418         * sysdeps/i386/dl-machine.h: Include <tls.h>.
1419         (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
1420         TLS relocations.
1421
1422         * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
1423
1424         * po/fr.po: Update from translation team.
1425
1426         * elf/tls-macros.h: Add alternative macros for use in PIC.
1427
1428         * elf/dl-lookup.c: Include <tls.h>.
1429         * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
1430
1431         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
1432         required by passing pointer to last element of the list.
1433
1434         * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
1435         l_tls_initimage to a place where it actually is performed.
1436
1437         * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
1438         after globfree() calls.
1439
1440         * elf/dl-deps.c (struct openaux_args): Add open_mode element.
1441         (openaux): Pass open_mode as new last argument to _dl_map_object.
1442         (_dl_map_object_deps): Add new argument open_mode.  Initialize
1443         open_mode element of args variable with it.
1444         * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
1445         _dl_map_object_deps.
1446         * elf/rtld.c (dl_main): Add zero as last parameter to
1447         _dl_map_object_deps call.
1448         * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
1449         * elf/nodlopen2.c: New file.
1450         * elf/nodlopenmod2.c: New file.
1451         * elf/Makefile: Add rules to build and run nodlopen2.
1452
1453         * elf/tst-tls1.c: Move TLS helper macros to...
1454         * elf/tls-macros.h: ...here.  New file.
1455         * elf/tst-tls2.c: New file.
1456         * elf/Makefile (tests): Add tst-tls2.
1457         (distribute): Add tls-macros.h.
1458
1459         * po/sv.po: Update from translation team.
1460
1461         * elf/tst-tls1.c (main): Add complete set of tests.  Split
1462         architecture specific definitions from the actual test code.
1463
1464         * po/tr.po: Update from translation team.
1465
1466 2002-02-09  Ulrich Drepper  <drepper@redhat.com>
1467
1468         * elf/Makefile (tests): Add tst-tls1.
1469         * elf/tst-tls1.c: New file.
1470
1471         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
1472         alignment of TCB for now.
1473
1474         * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
1475         initialization image for the application itself.
1476
1477         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
1478         loop to initialize TLS block.
1479
1480 2002-02-08  Richard Henderson  <rth@redhat.com>
1481
1482         * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
1483         _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
1484
1485         * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
1486
1487 2002-02-09  Jakub Jelinek  <jakub@redhat.com>
1488
1489         * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
1490
1491 2002-02-08  Ulrich Drepper  <drepper@redhat.com>
1492
1493         * po/ca.po: Update from translation team.
1494         * po/sk.po: Likewise.
1495
1496         * elf/rtld.c (_dl_start_final): Install DTV explicitly.
1497         (dl_main): Move dtv/static TLS handling before relocation.
1498         Unconditionally call _dl_tlsoffset.  Call _dl_allocate_tls and
1499         TLS_INIT_TP to allocate and install the dtv/static TLS block.
1500         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
1501         so far uses TLS initialize GL(dl_tls_static_size) and
1502         GL(dl_tls_static_align) to account for the TCB.
1503         (_dl_allocate_tls): New function.
1504         * sysdeps/generic/ldsodefs.h (rtld_global): Add
1505         _dl_initial_dtv_malloced.
1506
1507         * configure.in: Test for __builtin_memset more realistically.
1508
1509         * csu/version.c (banner): If TLS support is available say so.
1510
1511 2002-02-04  H.J. Lu  <hjl@gnu.org>
1512
1513         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
1514         __attribute_used__.
1515         (__dl_runtime_resolve): Likewise.
1516
1517         * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
1518         declaration.
1519
1520 2001-11-15  H.J. Lu  <hjl@gnu.org>
1521
1522         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
1523         <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
1524
1525         * sysdeps/unix/sysv/linux/mips/sys/user.h: New.
1526
1527 2002-02-07  H.J. Lu  <hjl@gnu.org>
1528
1529         * sysdeps/mips/atomicity.h (compare_and_swap): Remove
1530         ".set noreorder".
1531         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
1532         Likewise.
1533
1534 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
1535
1536         * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
1537
1538         * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
1539         ___tls_get_addr_internal.
1540         (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
1541
1542         * po/ko.po: Update from translation team.
1543
1544 2002-02-07  Jakub Jelinek  <jakub@redhat.com>
1545
1546         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
1547         attribute, change __pad{1,2} type to unsigned int.
1548         (struct stat64): Remove packed attribute.
1549
1550 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
1551
1552         * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
1553
1554 2002-02-07  Andreas Schwab  <schwab@suse.de>
1555
1556         * configure.in: Fix check for -zcombreloc.
1557
1558 2002-02-06  H.J. Lu  <hjl@gnu.org>
1559
1560         * config.h.in (HAVE_BUILTIN_MEMSET): New.
1561         * configure.in: Check if __builtin_memset really works.
1562         * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
1563         __GNUC_PREREQ (2, 96) before using __builtin_memset.
1564
1565 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
1566
1567         * io/bug-ftw3.c (main): Don't try the test if root.
1568
1569 2002-02-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1570
1571         * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
1572         constraints.
1573         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
1574         Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
1575         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
1576         Likewise.
1577         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
1578         a weak alias for __clone.
1579         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
1580         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
1581         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
1582         * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
1583         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
1584         a weak alias for __mmap64.
1585
1586 2002-02-05  H.J. Lu  <hjl@gnu.org>
1587
1588         * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
1589         (atomic_add): Likewise.
1590         (compare_and_swap): Likewise.
1591         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
1592
1593 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
1594
1595         * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
1596
1597         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
1598         alignment of the TCB and store total size and alignment of static
1599         TLS block in _dl_tls_static_size and _dl_tls_static_align.
1600         tls_index is a typedef.
1601         * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
1602         _dl_tls_static_align.
1603         * sysdeps/i386/dl-tls.h: tls_index is a typedef.
1604         * elf/dl-support.c: Define _dl_tls_static_size and
1605         _dl_tls_static_align.
1606
1607 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
1608
1609         * configure.in: Add --without-tls option.
1610         * sysdeps/i386/elf/configure.in: Don't check for TLS support if
1611         --without-tls is given.
1612
1613         * sysdeps/generic/dl-tls.c: Include <tls.h>.
1614
1615         * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
1616
1617 2002-02-06  Roland McGrath  <roland@frob.com>
1618
1619         * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
1620         * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
1621
1622         * scripts/versions.awk: Improve error message for missing version.
1623         Each version inherits from the last one only if they have the same
1624         nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
1625         but not GLIBC_x and FOO_y.
1626
1627         * scripts/firstversions.awk: Handle libraries that don't have each
1628         particular version named in the third column of shlib-versions.
1629
1630         * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
1631
1632 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
1633
1634         * Versions.def [ld]: Add GLIBC_2.3.
1635         * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
1636         * elf/Makefile (dl-routines): Add dl-tls.
1637         (distribute): Add dl-tls.h.
1638         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
1639         _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
1640         Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
1641         * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
1642         along with the other info in the link map.  Change queueing of init
1643         images for double linked list.  Use _dl_next_tls_modid to compute
1644         l_tls_modid.
1645         * elf/rtld.c (_dl_start_final): Store alignment requirement
1646         along with the other info in rtld map and executable map.
1647         (dl_main): Add ld.so to the init image list if necessary.  Compute
1648         final module ID with _dl_next_tls_modid.
1649         * include/link.h (struct link_map): Add l_tls_previmage and
1650         l_tls_align.
1651         * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
1652         * sysdeps/i386/elf/Versions: New file.
1653         * sysdeps/generic/dl-tls.c: New file.
1654         * sysdeps/generic/dl-tls.h: New file.
1655         * sysdeps/i386/dl-tls.h: New file.
1656
1657 2002-02-06  Roland McGrath  <roland@frob.com>
1658
1659         * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
1660         * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
1661
1662 2002-01-05  Roland McGrath  <roland@frob.com>
1663
1664         * sysdeps/mach/configure.in: New file.
1665         * sysdeps/mach/configure: New generated file.
1666
1667         * mach/Makefile (user-interfaces): Remove default_pager_helper.
1668         It has never been used by anything.
1669
1670 2002-02-06  H.J. Lu  <hjl@gnu.org>
1671
1672         * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
1673         is included.
1674
1675 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
1676
1677         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
1678         attribute((packed)) to counter stupid people misusing gcc options.
1679         (struct stat64): Likewise.
1680
1681 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
1682
1683         * elf/rtld.c (dl_main): Correct indentation.  Use bool as type for
1684         the variables which are used as booleans.
1685
1686 2002-02-06  Andreas Jaeger  <aj@suse.de>
1687
1688         * include/libc-symbols.h (INTUSE): Renamed from INT.
1689         * elf/dl-deps.c: Change users.
1690         * sysdeps/generic/dl-sysdep.c: Likewise.
1691         * sysdeps/generic/dl-cache.c: Likewise.
1692         * elf/dl-reloc.c: Likewise.
1693         * elf/rtld.c: Likewise.
1694         * elf/dl-version.c: Likewise.
1695         * elf/dl-load.c: Likewise.
1696         * elf/dl-dst.h: Likewise.
1697         * elf/dl-init.c: Likewise.
1698         * elf/dl-error.c: Likewise.
1699         * elf/dl-fini.c: Likewise.
1700         * elf/dl-runtime.c: Likewise.
1701         * elf/do-lookup.h: Likewise.
1702
1703         * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
1704         definition.
1705         * stdio-common/_itowa.h: Likewise.
1706
1707 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
1708
1709         * elf/dl-minimal.c: Define _itoa_lower_digits.
1710
1711         * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
1712         DT_FLAGS set.
1713
1714         * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
1715         loading modules with the DF_STATIC_TLS flag set.
1716         * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
1717         element.
1718         * include/link.h (struct link_map): Add l_flags field.
1719         * elf/elf.h (DF_STATIC_TLS): New definition.
1720
1721         * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
1722         * dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.
1723
1724         * elf/rtld.c (process_dl_debug): Correct printing help message.
1725         * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
1726         for %s.
1727
1728         * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
1729         definition and pass &errno in use of this variable.
1730         Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
1731
1732 2002-02-04  Andreas Schwab  <schwab@suse.de>
1733
1734         * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
1735         * locale/programs/charmap-dir.c: Wrap calls that output messages
1736         with WITH_CUR_LOCALE.  Include "localedef.h" first.
1737         * locale/programs/charmap.c: Likewise.
1738         * locale/programs/ld-address.c: Likewise.
1739         * locale/programs/ld-collate.c: Likewise.
1740         * locale/programs/ld-ctype.c: Likewise.
1741         * locale/programs/ld-identification.c: Likewise.
1742         * locale/programs/ld-measurement.c: Likewise.
1743         * locale/programs/ld-messages.c: Likewise.
1744         * locale/programs/ld-monetary.c: Likewise.
1745         * locale/programs/ld-name.c: Likewise.
1746         * locale/programs/ld-numeric.c: Likewise.
1747         * locale/programs/ld-paper.c: Likewise.
1748         * locale/programs/ld-telephone.c: Likewise.
1749         * locale/programs/ld-time.c: Likewise.
1750         * locale/programs/linereader.c: Likewise.
1751         * locale/programs/linereader.h: Likewise.
1752         * locale/programs/localedef.c: Likewise.
1753         * locale/programs/locfile.c: Likewise.
1754         * locale/programs/repertoire.c: Likewise.
1755
1756 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
1757
1758         * elf/rtld.c (_dl_start_final): Determine load address to locate
1759         ehdr with GL(dl_rtld_map).l_map_start.
1760
1761         * po/ca.po: Update from translation team.
1762
1763         * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
1764         * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
1765         header entry.
1766         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
1767         _dl_tls_module_cnt.
1768         * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
1769
1770 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
1771
1772         * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
1773         * include/link.h (struct link_map): Add various members for TLS
1774         information.
1775         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
1776         _rtld_tlsoffset, add _dl_initimage_list.
1777         * sysdeps/i386/dl-lookupcfg.h: New file.
1778         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
1779         TLS relocation.  When using TLS we now use RESOLVE_MAP.
1780         (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
1781         is used.
1782
1783         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
1784         unused.
1785
1786         * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
1787         thread-pointer as soon as possible.
1788         * sysdeps/generic/ldsodefs.h: Include <tls.h>.  Define first TLS
1789         elements in rtld_global.
1790         * sysdeps/generic/tls.h: New file.
1791         * elf/Makefile (distribute): Add tls.h.
1792         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
1793         relocations.  Not complete yet.
1794
1795         * resolv/resolv.h: Allow user to define __need_res_state and only
1796         define __res_start structure then.
1797         * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
1798
1799         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
1800         dl_cpuclock_offset initialization to _dl_start_final.
1801         (_dl_show_auxv): Avoid unnecessary sign extension.
1802         * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
1803
1804 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
1805
1806         * config.h.in: Add HAVE_TLS_SUPPORT.
1807         * sysdeps/i386/elf/configure.in: New file.
1808
1809 2002-02-03  Andreas Schwab  <schwab@suse.de>
1810
1811         * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
1812         * sysdeps/posix/writev.c: Use ssize_t for bytes_written.  Fix comment.
1813
1814 2002-02-03  Thorsten Kukuk  <kukuk@suse.de>
1815
1816         * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
1817         alloca if the memory reqirements are too high.
1818
1819 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
1820
1821         * elf/dl-load.c (decompose_rpath): Avoid using strstr.
1822         * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
1823         the former is available anyway and speed isn't important here.
1824         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
1825         * elf/dl-version.c (match_symbol): Likewise.
1826         (_dl_check_map_versions): Likewise.
1827         * elf/rtld.c (process_envvars): Likewise.
1828         (print_statistics): Likewise.
1829         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
1830         * elf/dl-minimal.c (_itoa): Always define it.  Make it work for all
1831         bases.  Add assert to catch uses of unimplemented features.
1832         (__strsep): Add assert to catch uses of unimplemented features.
1833         * elf/dl-object.c (_dl_new_object): Don't use rawmemchr.  Use strchr
1834         and avoid inline optimization.
1835         * elf/rtld.c (process_envvars): Likewise.
1836         * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
1837         * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
1838         * elf/rtld.c (dl_main): Avoid strsep inline optimization.
1839
1840 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
1841
1842         * stdio-common/_itoa.h: Minor simplifications of the code.
1843         * stdio-common/_itoa.c: Likewise.
1844
1845         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
1846         instead of _dl_printf for debugging info output.
1847
1848         * manual/examples/mkfsock.c (make_named_socket): Make sure name is
1849         always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.
1850
1851 2002-02-01  H.J. Lu  <hjl@gnu.org>
1852
1853         * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
1854         (atomic_add): Likewise.
1855         (compare_and_swap): Return 0 only when failed to compare. Use
1856         branch likely.
1857
1858         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
1859         branch likely.
1860
1861 2002-02-03  kaz Kojima  <kkojima@rr.iij4u.or.jp>
1862
1863         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
1864
1865 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
1866
1867         * elf/dl-minimal.c (__strsep): New minimal implementation.
1868
1869 2002-02-02  Paul Eggert  <eggert@twinsun.com>
1870
1871         * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
1872         (__mktime_internal): If no tm_isdst is requested, prefer solutions
1873         with tm_isdst > 0 when the requested time falls within a
1874         spring-forward gap [PR libc/2894].
1875
1876 2002-02-03  Andreas Schwab  <schwab@suse.de>
1877
1878         * stdio-common/tst-rndseek.c: Increase timeout.
1879
1880 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
1881
1882         Change ld.so to not use functions which are exported.  One cannot
1883         interpose them anyway.  Use INT() to mark uses, INTDEF() to mark
1884         definitions.
1885         * include/libc-symbols.h: Define INT and INTDEF.
1886         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
1887         _dl_signal_error_internal, _dl_map_object_internal,
1888         _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
1889         _dl_lookup_versioned_symbol_internal,
1890         _dl_relocate_object_internal, _dl_debug_state_internal,
1891         _dl_start_profile_internal, and _dl_unload_cache_internal.
1892         * include/dlfcn.h: Declare _dl_catch_error_internal.
1893         * elf/rtld.c: Use INT for calls to any of the *_internal functions
1894         above.  Add INTDEF to function definitions.
1895         * elf/dl-debug.c: Likewise.
1896         * elf/dl-deps.c: Likewise.
1897         * elf/dl-dst.h: Likewise.
1898         * elf/dl-error.c: Likewise.
1899         * elf/dl-fini.c: Likewise.
1900         * elf/dl-init.c: Likewise.
1901         * elf/dl-load.c: Likewise.
1902         * elf/dl-lookup.c: Likewise.
1903         * elf/dl-misc.c: Likewise.
1904         * elf/dl-open.c: Likewise.
1905         * elf/dl-profile.c: Likewise.
1906         * elf/dl-reloc.c: Likewise.
1907         * elf/dl-runtime.c: Likewise.
1908         * elf/dl-version.c: Likewise.
1909         * elf/do-lookup.h: Likewise.
1910         * sysdeps/generic/dl-cache.c: Likewise.
1911         * sysdeps/generic/dl-sysdep.c: Likewise.
1912         * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
1913         instead of _dl_init.
1914         * sysdeps/arm/dl-machine.h: Likewise.
1915         * sysdeps/cris/dl-machine.h: Likewise.
1916         * sysdeps/hppa/dl-machine.h: Likewise.
1917         * sysdeps/i386/dl-machine.h: Likewise.
1918         * sysdeps/ia64/dl-machine.h: Likewise.
1919         * sysdeps/m68k/dl-machine.h: Likewise.
1920         * sysdeps/mips/dl-machine.h: Likewise.
1921         * sysdeps/mips/mips64/dl-machine.h: Likewise.
1922         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
1923         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
1924         * sysdeps/sh/dl-machine.h: Likewise.
1925         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1926         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
1927         * sysdeps/x86_64/dl-machine.h: Likewise.
1928         * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
1929
1930         * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
1931         and _dl_debug_initialize.
1932
1933         * elf/dl-object.c (_dl_new_object): Avoid using strrchr.  We have
1934         more information.
1935         * elf/rtld.c (dl_main): Avoid strrchr.
1936         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
1937         result of readlink.  Search from the back for '/'.
1938
1939         * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
1940         strncpy if possible.
1941
1942         * sysdeps/generic/dl-environ.c (unsetenv): Optimize.  Don't use
1943         strncmp.
1944         * elf/dl-load.c (is_dst): Optimize.  Don't call strncmp twice.
1945         * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
1946         strspn, and strcspn.
1947         (process_envvars): Don't use strcspn.
1948
1949         * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
1950         (_dl_dst_substitute): Likewise.
1951
1952 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
1953
1954         * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
1955         code which is never used when relocating ld.so itself.
1956
1957         * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
1958         starting ld.so itself.  Move l_addr variable initialization closer
1959         to use.
1960         (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
1961
1962 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
1963
1964         * Versions.def (libc): Add GLIBC_PRIVATE.
1965         (libdb, libnss_db, libdb1): Remove.
1966         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
1967         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
1968         (libpthread): Add GLIBC_PRIVATE.
1969         (libresolv): Likewise, remove GLIBC_2.1.
1970         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
1971         GLIBC_2.2.3, GLIBC_2.3.
1972         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
1973         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
1974         _dl_sym, _dl_vsym): Likewise.
1975         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
1976         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
1977         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
1978         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
1979         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
1980         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
1981         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
1982         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
1983         Likewise.
1984         (_dl_object_relocation_scope): Remove.
1985         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
1986         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
1987         __gconv_cache): Move to GLIBC_PRIVATE.
1988         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
1989         __internal_setnetgrent): Likewise.
1990         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
1991         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
1992         * locale/Versions (__collate_element_hash, __collate_element_strings,
1993         __collate_symbol_classes, __collate_symbol_hash,
1994         __collate_symbol_strings, _nl_current_LC_COLLATE,
1995         _nl_current_LC_CTYPE): Likewise.
1996         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
1997         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
1998         (libnss_nis, libnss_nisplus): Likewise.
1999         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
2000         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
2001         (libnss_files): Move all symbols to GLIBC_PRIVATE.
2002         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
2003         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
2004         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
2005         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
2006         __ns_get16, __ns_samename): Likewise.
2007         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
2008         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
2009         GLIBC_PRIVATE.
2010         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
2011         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
2012         __libc_connect): Likewise.
2013         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
2014         Likewise.
2015         * stdlib/Versions (__libc_system): Likewise.
2016         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
2017         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
2018         * sysdeps/ia64/fpu/Versions: Likewise.
2019         * sysdeps/ia64/Versions: Likewise.
2020         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2021         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
2022         to GLIBC_PRIVATE.
2023         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
2024         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
2025         __libc_sigaction): Likewise.
2026         * termios/Versions (__libc_tcdrain): Likewise.
2027
2028         * misc/sys/cdefs (__attribute_noinline__): Define.
2029         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
2030         __attribute_noinline__.
2031
2032         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
2033         * elf/dl-xstat64.c: New file.
2034         * elf/dl-fxstat64.c: New file.
2035         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
2036         don't export __fxstat64 at multiple versions.
2037         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
2038         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
2039
2040 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
2041
2042         * locale/program/ld-collate.c (collate_finish): Assign a wide
2043         char collation sequence value to multi character collating
2044         elements, and avoid over writing by non-character elements.
2045
2046 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
2047
2048         * elf/Makefile (distribute): Add dl-procinfo.c.
2049         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
2050         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
2051
2052 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
2053
2054         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
2055         definition.
2056         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
2057         _rtld_global struct.
2058         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
2059         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
2060         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
2061         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
2062         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
2063         _dl_fpu_control_set): Remove unused externs.
2064         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
2065         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
2066         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
2067         related variables in _rtld_global struct.
2068         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
2069         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
2070         unused extern.
2071
2072 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
2073
2074         * sysdeps/generic/dl-procinfo.c: New file.
2075
2076 2002-02-01  Andreas Schwab  <schwab@suse.de>
2077
2078         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
2079
2080 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
2081
2082         * elf/rtld.c (_dl_start): Mark as internal_function.
2083         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
2084         in register.
2085         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
2086         General pretty printing.
2087
2088 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
2089
2090         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
2091         * elf/dl-reloc.c: Pretty printing.
2092         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
2093         procinfo-related variables in rtld_global struct.
2094         * elf/dl-support.c: Likewise.
2095         * elf/rtld.c: Likewise.
2096         * sysdeps/i386/i686/Makefile: Likewise.
2097         * sysdeps/i386/i686/hp-timing.c: Likewise.
2098         * sysdeps/i386/i686/hp-timing.h: Likewise.
2099         * sysdeps/ia64/Makefile: Likewise.
2100         * sysdeps/ia64/hp-timing.c: Likewise.
2101         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
2102         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
2103         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
2104         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
2105         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
2106         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
2107         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
2108         * sysdeps/x86_64/Makefile: Likewise.
2109
2110         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
2111         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
2112         _dl_debug_fd to rtld_global.
2113         * elf/Versions: Likewise.
2114         * elf/dl-close.c: Likewise.
2115         * elf/dl-iteratephdr.c: Likewise.
2116         * elf/dl-lookup.c: Likewise.
2117         * elf/dl-misc.c: Likewise.
2118         * elf/dl-open.c: Likewise.
2119         * elf/dl-support.c: Likewise.
2120         * elf/do-lookup.h: Likewise.
2121         * elf/rtld.c: Likewise.
2122         * sysdeps/generic/dl-cache.c: Likewise.
2123         * sysdeps/generic/dl-sysdep.c: Likewise.
2124         * sysdeps/ia64/Versions: Likewise.
2125         * sysdeps/unix/clock_gettime.c: Likewise.
2126         * sysdeps/unix/clock_settime.c: Likewise.
2127         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
2128         * sysdeps/sparc/Versions: Removed.
2129         * sysdeps/i386/i686/Versions : Removed.
2130         * sysdeps/x86_64/Versions: Removed.
2131         * configure.in: Define HAVE_PROTECTED if .protected is available.
2132         * config.h.in: Add entry for HAVE_PROTECTED.
2133
2134 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
2135
2136         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
2137         code in struct _rtld_global.  Export this struct, remove all
2138         exports for the signal variables.
2139         * sysdeps/arm/dl-machine: Likewise.
2140         * sysdeps/generic/dl-origin: Likewise.
2141         * sysdeps/generic/dl-sysdep: Likewise.
2142         * sysdeps/generic/dl-cache: Likewise.
2143         * sysdeps/hppa/dl-fptr: Likewise.
2144         * sysdeps/hppa/dl-machine: Likewise.
2145         * sysdeps/cris/dl-machine: Likewise.
2146         * sysdeps/i386/dl-machine: Likewise.
2147         * sysdeps/ia64/dl-machine: Likewise.
2148         * sysdeps/m68k/dl-machine: Likewise.
2149         * sysdeps/mach/hurd/dl-sysdep: Likewise.
2150         * sysdeps/mips/mips64/dl-machine: Likewise.
2151         * sysdeps/mips/dl-machine: Likewise.
2152         * sysdeps/powerpc/elf/libc-start: Likewise.
2153         * sysdeps/powerpc/dl-machine: Likewise.
2154         * sysdeps/powerpc/dl-start: Likewise.
2155         * sysdeps/sparc/sparc32/dl-machine: Likewise.
2156         * sysdeps/sparc/sparc64/dl-machine: Likewise.
2157         * sysdeps/sh/dl-machine: Likewise.
2158         * sysdeps/s390/s390-32/dl-machine: Likewise.
2159         * sysdeps/s390/s390-64/dl-machine: Likewise.
2160         * sysdeps/unix/sysv/aix/libc-start: Likewise.
2161         * sysdeps/unix/sysv/aix/start-libc: Likewise.
2162         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
2163         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
2164         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
2165         * sysdeps/x86_64/dl-machine: Likewise.
2166
2167 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
2168
2169         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
2170         are too high.
2171
2172 2002-01-31  Andreas Schwab  <schwab@suse.de>
2173
2174         * sysdeps/posix/readv.c: Check for ssize_t overflow.
2175
2176 2002-01-31  Andreas Schwab  <schwab@suse.de>
2177
2178         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
2179         reference to _dl_pagesize.
2180
2181 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
2182
2183         * Versions.def [ld]: Add GLIBC_2.3.
2184         * elf/dl-addr.c: Move global variables for SHARED code in struct
2185         _rtld_global.  Export this struct, remove all exports for the
2186         signal variables.
2187         * elf/dl-close.c: Likewise.
2188         * elf/dl-conflict.c: Likewise.
2189         * elf/dl-debug.c: Likewise.
2190         * elf/dl-deps.c: Likewise.
2191         * elf/dl-dst.h: Likewise.
2192         * elf/dl-error.c: Likewise.
2193         * elf/dl-fini.c: Likewise.
2194         * elf/dl-init.c: Likewise.
2195         * elf/dl-iteratephdr.c: Likewise.
2196         * elf/dl-libc.c: Likewise.
2197         * elf/dl-load.c: Likewise.
2198         * elf/dl-lookup.c: Likewise.
2199         * elf/dl-minimal.c: Likewise.
2200         * elf/dl-object.c: Likewise.
2201         * elf/dl-open.c: Likewise.
2202         * elf/dl-profile.c: Likewise.
2203         * elf/dl-profstub.c: Likewise.
2204         * elf/dl-reloc.c: Likewise.
2205         * elf/dl-runtime.c: Likewise.
2206         * elf/dl-support.c: Likewise.
2207         * elf/dl-sym.c: Likewise.
2208         * elf/dl-version.c: Likewise.
2209         * elf/do-lookup.h: Likewise.
2210         * elf/do-rel.h: Likewise.
2211         * elf/dynamic-link.h: Likewise.
2212         * elf/rtld.c: Likewise.
2213         * sysdeps/generic/dl-cache.c: Likewise.
2214         * sysdeps/generic/dl-sysdep.c: Likewise.
2215         * sysdeps/generic/ldsodefs.h: Likewise.
2216         * sysdeps/generic/libc-start.c: Likewise.
2217         * sysdeps/i386/dl-machine.h: Likewise.
2218         * sysdeps/ia64/dl-fptr.c: Likewise.
2219         * sysdeps/ia64/dl-machine.h: Likewise.
2220         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
2221         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
2222         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
2223         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
2224         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
2225         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
2226         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
2227         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
2228
2229 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
2230
2231         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
2232         to avoid warning
2233         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
2234
2235         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
2236         SHARED version.
2237         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
2238
2239         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
2240
2241 2002-01-29  Ben Collins  <bcollins@debian.org>
2242
2243         * string/bits/string2.h (__mempcpy): Protect size arg for
2244         addition when using __builtin_memcpy.
2245
2246 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
2247
2248         * stdlib/Makefile (tests): Add tst-qsort.
2249         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
2250
2251         * manual/signal.texi (Process Signal Mask): Document that
2252         pthread_sigmask, not sigprocmask, must be used in MT programs.
2253         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
2254
2255         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
2256         found.
2257         * misc/Makefile (tests): Add tst-hsearch.
2258         * misc/tst-hsearch.c: New file.
2259
2260 2002-01-18  Wolfram Gloger  <wg@malloc.de>
2261
2262         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
2263         * malloc/malloc.h: Likewise.
2264         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
2265         * malloc/arena.c: New file.
2266         * malloc/hooks.c: New file.
2267         * malloc/tst-mallocstate.c: New file.
2268         * malloc/Makefile: Add new testcase tst-mallocstate.
2269         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
2270
2271 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
2272
2273         * stdlib/msort.c: Remove last patch.  The optimization violates the
2274         same rule which qsort.c had problems with.
2275
2276 2002-01-27  Paul Eggert  <eggert@twinsun.com>
2277
2278         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
2279         to a pivot element that lies outside the array to be sorted, as
2280         ISO C99 requires that the comparison function be called only with
2281         addresses of array elements [PR libc/2880].
2282
2283 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
2284
2285         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
2286         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
2287
2288         * timezone/asia: Update from tzdata2002b.
2289         * timezone/australasia: Likewise.
2290         * timezone/backward: Likewise.
2291         * timezone/europe: Likewise.
2292         * timezone/leapseconds: Likewise.
2293         * timezone/iso3166.tab: Likewise.
2294         * timezone/zone.tab: Likewise.
2295
2296 2002-01-23  Richard Henderson  <rth@redhat.com>
2297
2298         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
2299
2300 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
2301
2302         * string/strxfrm.c: Allocate one more byte for rulearr and clear
2303         this element [PR libc/2855].
2304
2305         * string/strcoll.c: Handle zero-length arguments specially
2306         [PR libc/2856].
2307
2308 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
2309
2310         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
2311         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
2312         short lengths and constant src.
2313         (strcpy): Don't optimize for gcc 3.0+.
2314         (__stpcpy): For gcc 3.0+, don't use
2315         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
2316         for short string literal src.
2317
2318 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
2319
2320         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
2321         Set for arm, too.
2322
2323 2001-01-22  Paul Eggert  <eggert@twinsun.com>
2324
2325         * manual/llio.texi (Linked Channels, Cleaning Streams):
2326         Make it clearer that a just-opened input stream might need cleaning.
2327
2328 2002-01-21  H.J. Lu  <hjl@gnu.org>
2329
2330         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
2331         Don't use label at end of compound statement.
2332
2333 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
2334
2335         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
2336         Remove test for negative integer arg; sin_pi does it correctly.
2337
2338 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
2339
2340         * nscd/Makefile (distribute): Filter out xmalloc.c.
2341
2342 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
2343
2344         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
2345         Set offset if read end wasn't the buffer end.
2346         (_IO_file_seekoff_mmap): New function.
2347         (_IO_file_xsgetn_mmap): New function.
2348         (_IO_file_jumps_mmap): Use the two new functions.
2349         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
2350         != end buffer.
2351         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
2352         _IO_file_underflow_mmap.
2353         * libio/iofopen.c: Don't position file descriptor at end of file.
2354         * libio/tst-widetext.c: Improve error messages.
2355         * stdio-common/tst-rndseek.c: Likewise.
2356
2357 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
2358
2359         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
2360         end of enum for !_GNU_SOURCE.
2361         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
2362         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
2363         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
2364         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
2365         values unless _GNU_SOURCE.
2366
2367         * iconvdata/tcvn5712-1.c: Minor cleanups.
2368
2369 2002-01-18  Andreas Schwab  <schwab@suse.de>
2370
2371         * sysdeps/unix/sysv/linux/configure.in
2372         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
2373
2374 2002-01-16  Roger Sayle  <roger@eyesopen.com>
2375
2376         * stdlib/msort.c (msort_with_tmp): Replace implementation with
2377         more efficient "Towers of Hanoi" mergesort.
2378         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
2379         for generic, sizeof(int) and sizeof(long) variants respectively.
2380
2381 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
2382
2383         * manual/syslog.texi (openlog): Describe possible problems with
2384         first parameter.
2385         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
2386
2387         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
2388         * nscd/connections.c (begin_drop_privileges): New function.
2389         (finish_drop_privileges): New function.
2390         (nscd_init): Call the new functions which also install all groups
2391         for the server user.
2392         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
2393         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
2394
2395 2002-01-17  H.J. Lu  <hjl@gnu.org>
2396
2397         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
2398         `const' from `got'.
2399
2400 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2401
2402         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
2403         instructions for pointer operations.
2404         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
2405
2406 2002-01-17  Andreas Jaeger  <aj@suse.de>
2407
2408         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
2409         __uint128_t build-in.
2410
2411         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
2412         PowerPC, sync with 2.2 branch.
2413
2414 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
2415
2416         * posix/getconf.c: Update copyright year.
2417         * nss/getent.c: Likewise.
2418         * nscd/nscd_nischeck.c: Likewise.
2419         * iconv/iconvconfig.c: Likewise.
2420         * iconv/iconv_prog.c: Likewise.
2421         * elf/ldconfig.c: Likewise.
2422         * catgets/gencat.c: Likewise.
2423         * csu/version.c: Likewise.
2424         * elf/ldd.bash.in: Likewise.
2425         * elf/sprof.c (print_version): Likewise.
2426         * locale/programs/locale.c: Likewise.
2427         * locale/programs/localedef.c: Likewise.
2428         * nscd/nscd.c (print_version): Likewise.
2429         * debug/xtrace.sh: Likewise.
2430         * malloc/memusage.sh: Likewise.
2431         * malloc/mtrace.pl: Likewise.
2432
2433 2002-01-16  Andreas Schwab  <schwab@suse.de>
2434
2435         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
2436         reliably remove "-ia64" from rtld name.
2437
2438 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
2439
2440         * iconvdata/gb18030.c: Bug fixes and support for more characters.
2441         Patch by Yu Shao <yshao@redhat.com>.
2442
2443 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2444
2445         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
2446         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
2447         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
2448
2449 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2450
2451         * sysdeps/s390/fpu/libm-test-ulps: Update.
2452
2453 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
2454
2455         * elf/elf.h: Update x86 relocations.
2456
2457 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
2458
2459         * locale/programs/charmap.c (new_width): Check whether byte
2460         sequences for both ends of range have the same length.
2461
2462 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
2463
2464         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
2465
2466 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
2467
2468         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
2469         string literals.
2470         (__full_ieee754_sqrt): Add __attribute_used__.
2471
2472 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
2473
2474         * sysdeps/generic/group_member.c (__group_member): Also check
2475         groups[0] [PR libc/2781].
2476
2477 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
2478
2479         * Makefile (distribute): Add scripts/cpp.
2480         * elf/Makefile (distribute): Add reldep6mod[01234].c,
2481         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
2482         unwind-dw2-fde.h, and dwarf2.h.
2483         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
2484         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
2485         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
2486         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
2487
2488 2002-01-07  Roland McGrath  <roland@frob.com>
2489
2490         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
2491         volatile on type of ARGC so the compiler doesn't get clever.
2492
2493 2002-01-07  Andreas Jaeger  <aj@suse.de>
2494
2495         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
2496         * sysdeps/i386/bits/byteswap.h: Likewise.
2497         * sysdeps/ia64/bits/byteswap.h: Likewise.
2498         * sysdeps/m68k/bits/byteswap.h: Likewise.
2499         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
2500         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise.
2501
2502 2002-01-02  Bruno Haible  <bruno@clisp.org>
2503
2504         * intl/plural.y: Fix %expect count.
2505
2506 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
2507
2508         * elf/Makefile (routines, shared-only-routines): Add
2509         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
2510         * elf/elf.h (PT_GNU_EH_FRAME): Define.
2511         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
2512         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
2513         Optimize if .eh_frame section contains no FDEs.
2514         (__register_frame, __deregister_frame_info_bases,
2515         __deregister_frame): Likewise.
2516         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
2517         DW_CFA_restore handling.
2518
2519 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
2520
2521         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
2522
2523         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
2524         for x < 0.25 and restore original range reduction method.
2525         (__ieee754_lgammal_r): Make sure signgam is set before returning.
2526
2527 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
2528
2529         * libio/fileops.c (_IO_file_underflow_mmap): New function.
2530         (_IO_file_close_mmap): New function.
2531         (_IO_file_jumps_mmap): New variable.
2532         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
2533         trying to convert rest of byte buffer.
2534         (_IO_wfile_underflow_mmap): New function.
2535         (_IO_wfile_jumps_mmap): New variable.
2536         * libio/iofopen.c (__fopen_maybe_mmap): New function.
2537         (__fopen_internal): New function.  Split out from _IO_new_fopen.
2538         (_IO_new_fopen): Call __fopen_internal.
2539         * libio/iofopen64.c: Just call __fopen_internal.
2540         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
2541         successfully.
2542         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
2543         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
2544         _IO_file_close_mmap.
2545
2546         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
2547         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
2548
2549         * stdio-common/Makefile (tests): Add tst-rndseek.
2550         * stdio-common/tst-rndseek.c: New file.
2551
2552 2002-01-05  Roland McGrath  <roland@frob.com>
2553
2554         * config.h.in (HAVE_MIG_RETCODE): New #undef.
2555         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
2556         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
2557         * sysdeps/mach/hurd/configure: Regenerated.
2558
2559 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
2560
2561         * elf/elf.h: Add more TLS definitions.
2562
2563 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
2564
2565         * include/features.h (__GLIBC_MINOR__): Bump to 3.
2566
2567 2002-01-02  Roland McGrath  <roland@frob.com>
2568
2569         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
2570         __sigisemptyset.  Don't use MASK uninitialized.
2571
2572         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
2573         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
2574         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
2575         __sigdelset, __sigaddset, __sigorset.
2576
2577         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
2578         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
2579
2580         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
2581         _hurd_ports is null.
2582
2583         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
2584         for old CMU and new OSF Mach interface flavors.
2585         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
2586         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
2587
2588         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
2589
2590         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
2591         Pass extra arguments to task_create for OSF variant.
2592         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
2593
2594         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
2595         conditional on [HAVE_AUX_VECTOR].
2596
2597         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
2598         mach_msg_timeout_t as type of final argument.
2599
2600         * hurd/privports.c (__get_privileged_ports):
2601         Change host_priv_t to mach_port_t in argument type.
2602         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
2603         Update decls.
2604
2605         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
2606         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
2607         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
2608         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
2609         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
2610         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
2611
2612 2002-01-01  Roland McGrath  <roland@frob.com>
2613
2614         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
2615
2616 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
2617
2618         * include/stdlib.h: Define inlines for the _l variants of the strto*
2619         functions.
2620
2621 2002-01-01  Roland McGrath  <roland@frob.com>
2622
2623         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
2624
2625         * mach/Machrules (MIG): Set CPP as well as CC.
2626
2627 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
2628
2629         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
2630         locale to parse /proc/loadavg [PR libc/2760].
2631
2632 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
2633
2634         * elf/dl-conflict.c: Include sys/param.h.
2635         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
2636         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
2637         warning.
2638         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
2639         literals to avoid warnings.
2640
2641 2001-12-31  Andreas Jaeger  <aj@suse.de>
2642
2643         * configure.in: Don't check for gsed since we do not use it anywhere.
2644
2645 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
2646
2647         * io/fts.c: Update from BSD to fix memory leaks.
2648
2649 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
2650
2651         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
2652         * elf/chroot_canon.c: Likewise.
2653         * elf/dl-object.c: Likewise.
2654         * iconv/iconv_charmap.c: Likewise.
2655         * iconv/iconv_prog.c: Likewise.
2656         * libio/iogetdelim.c: Likewise.
2657         * locale/lc-time.c: Likewise.
2658         * stdlib/canonicalize.c: Likewise.
2659         * sunrpc/svc.c: Likewise.
2660         * sysdeps/generic/glob.c: Likewise.
2661
2662 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2663
2664         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
2665         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
2666         remove high order bit from the program counter.
2667         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
2668
2669 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2670
2671         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
2672         unnecessary code and add missing reloc types.
2673         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
2674         case for reloc type R_390_NONE.
2675
2676 2001-12-28  Andreas Jaeger  <aj@suse.de>
2677
2678         * io/bug-ftw3.c: Include string.h for prototypes.
2679
2680         * crypt/md5test.c (main): Remove unused variable.
2681
2682         * dlfcn/modstatic.c: Add prototype to avoid warning.
2683
2684 2001-12-26  Roland McGrath  <roland@frob.com>
2685
2686         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
2687         check only (SS->pending & MASK) for the signal to return.
2688         From Jeroen Dekkers <jeroen@dekkers.cx>.
2689
2690 2001-12-22  Roland McGrath  <roland@frob.com>
2691
2692         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
2693         Use preprocessor #if conditionals instead of `if' to avoid
2694         warnings about divide by zero in dead code.
2695
2696         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
2697         _hurd_port_init, and __hurd_self_sigstate.
2698
2699         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
2700
2701 2001-12-21  Andreas Jaeger  <aj@suse.de>
2702
2703         * elf/dblloadmod1.c: Add prototype to avoid warning.
2704         * elf/dblloadmod2.c: Likewise.
2705         * elf/dblloadmod3.c: Likewise.
2706         * elf/reldepmod5.c: Likewise.
2707         * elf/reldepmod6.c: Likewise.
2708
2709         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
2710         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
2711         used on all architectures.
2712
2713         * sunrpc/svc_tcp.c: Add noreturn attribute for
2714         svctcp_rendezvous_abort.
2715         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
2716
2717         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
2718         to avoid warning.
2719
2720 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
2721
2722         * manual/llio.texi (aio_fsync): Fix a typo.
2723         Patch by Tammy Fox <tfox@redhat.com>.
2724
2725 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
2726
2727         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
2728         stack bias from child stack pointer before passing it to clone syscall.
2729
2730 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
2731
2732         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
2733         _SC_TZNAME_MAX.
2734         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
2735         Reported by Thorsten Kukuk <kukuk@suse.de>.
2736
2737         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
2738         add some casts.
2739
2740         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
2741
2742 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
2743
2744         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
2745         conforming: return EBADF if file descriptor is invalid and EINVAL
2746         if file descriptor is no valid tty.
2747         * login/tst-grantpt.c: New file.
2748         * login/Makefile (tests): Add tst-grantpt.
2749
2750 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
2751
2752         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
2753         different than implemented in last patch.
2754         * io/bug-ftw3.c: Adjust test for changed handling of
2755         inaccessibility of toplevel dir.
2756
2757 2001-12-16  Roland McGrath  <roland@frob.com>
2758
2759         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
2760         * grp/initgroups.c (internal_getgrouplist): Likewise.
2761
2762         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
2763         `default:' to silence new GCC warning.
2764         Rewrite cast of lvalue to silence new GCC warning.
2765
2766         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
2767
2768         * sysdeps/mach/hurd/spawni.c: New file, by me with a
2769         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
2770
2771 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
2772
2773         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
2774         Patch by Stephen R. van den Berg.
2775
2776         * crypt/md5.h: Define md5_uintptr.
2777
2778 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
2779
2780         * libio/tst_swprintf.c (main): Add test for string argument with
2781         zero precision.
2782         * stdio-common/Makefile (tests): Add tst-sprintf.
2783         * stdio-common/tst-sprintf.c: New file.
2784
2785 2001-12-13  Andreas Schwab  <schwab@suse.de>
2786
2787         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
2788         zero precision with wide character string format.
2789
2790 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
2791
2792         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
2793         but have a user supplied buffer, return the empty buffer, not NULL.
2794
2795 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
2796
2797         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
2798         Patch by Eric Sharkey <sharkey@netrics.com>.
2799
2800         * crypt/md5test.c (main): Add test for multiple calls to
2801         __md5_process_bytes to itererate over input string.
2802
2803 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
2804
2805         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
2806         from __nis_findfastest.  Take timeout value from parameter.
2807         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
2808         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
2809         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
2810
2811 2001-12-12  Andreas Jaeger  <aj@suse.de>
2812
2813         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
2814         combreloc test so that it works in this case.
2815
2816         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
2817
2818 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
2819
2820         * sysdeps/sh/Makefile: New file.
2821         * sysdeps/sh/_mcount.S: New file.
2822         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
2823         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
2824
2825 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
2826
2827         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
2828         limitation [PR libc/2564].
2829
2830 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
2831
2832         * elf/Makefile (dl-routines): Add conflict.
2833         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
2834         (ld.so): Add _begin local symbol.
2835         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
2836         Define.
2837         * elf/dl-deps.c (_dl_build_local_scope): New.
2838         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
2839         of all libraries.
2840         * elf/do-rel.h (VALIDX): Define.
2841         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
2842         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
2843         can be skipped.
2844         * elf/dl-conflict.c: New file.
2845         * elf/dl-lookup.c (_dl_debug_bindings): New.
2846         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
2847         non-NULL.
2848         (_dl_lookup_symbol_skip): Likewise.
2849         (_dl_lookup_versioned_symbol): Likewise.
2850         (_dl_lookup_versioned_symbol_skip): Likewise.
2851         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
2852         define to ElfW(Rel).
2853         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
2854         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
2855         ranges.
2856         Don't adjust address dynamic tags if l_addr is 0.
2857         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
2858         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
2859         (VALIDX, ADDRIDX): Define.
2860         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
2861         (dl_main): Print library list for LD_TRACE_PRELINKING.
2862         If prelinking information can be used, skip relocating libraries and
2863         call _dl_resolve_conflicts instead.
2864         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
2865         * elf/dl-load.c (_dl_map_object): Don't create fake libs
2866         if LD_TRACE_PRELINKING.
2867         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
2868         + DT_ADDRNUM.
2869         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
2870         (DL_DEBUG_PRELINK): Define.
2871         (_dl_resolve_conflicts): Add prototype.
2872
2873         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
2874         .plt for prelinked libraries where prelinking info cannot be used.
2875         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
2876         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
2877         * sysdeps/arm/bits/link.h: New file.
2878         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
2879         content of .got[1].
2880         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
2881         (ELF_MACHINE_PLT_REL): Define.
2882         (elf_machine_rela, elf_machine_rela_relative): New.
2883         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
2884         of adjusting it if prelinked and prelinking cannot be used.
2885         * sysdeps/i386/bits/link.h: New file.
2886         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
2887         content of .got[1].
2888         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
2889         (ELF_MACHINE_PLT_REL): Define.
2890         (elf_machine_rela, elf_machine_rela_relative): New.
2891         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
2892         of adjusting it if prelinked and prelinking cannot be used.
2893         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
2894         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
2895         to find out map for R_PPC_JMP_SLOT relocs.
2896         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
2897         (OPCODE_BA): Define.
2898         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
2899         libraries where prelinking info cannot be used.
2900         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
2901         (elf_machine_fixup_plt): Call sparc_fixup_plt.
2902         (elf_machine_rela): Set value to 0 if relocating conflicts.
2903         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
2904         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
2905         (sparc64_fixup_plt): Fix a typo.
2906         (elf_machine_rela): Set value to 0 if relocating conflicts.
2907         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
2908         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
2909         libraries where prelinking info cannot be used.
2910         * sysdeps/sh/bits/link.h: New file.
2911         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
2912         content of .got[1].
2913         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
2914         of adjusting it if prelinked and prelinking cannot be used.
2915         * sysdeps/s390/s390-32/bits/link.h: New file.
2916         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
2917         Save original content of .got[1].
2918         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
2919         of adjusting it if prelinked and prelinking cannot be used.
2920         * sysdeps/s390/s390-64/bits/link.h: New file.
2921         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
2922         Save original content of .got[1].
2923         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
2924         of adjusting it if prelinked and prelinking cannot be used.
2925         * sysdeps/x86_64/bits/link.h: New file.
2926         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
2927         Save original content of .got[1].
2928         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
2929         of adjusting it if prelinked and prelinking cannot be used.
2930
2931 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
2932
2933         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
2934         where appropriate instead of numbers.  Little optimizations.
2935
2936 2001-12-10  Roland McGrath  <roland@frob.com>
2937
2938         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
2939         set it.
2940
2941         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
2942         set to GLIBC_2.2.5, not GLIBC_2.2.4.
2943
2944         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
2945         Fix conditionals so this is set by default for stdio and not for libio.
2946         * sysdeps/mach/hurd/configure: Regenerated.
2947
2948 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
2949
2950         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
2951
2952 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
2953
2954         * io/Makefile (tests): Add bug-ftw3.
2955         * io/bug-ftw3.c: New file.
2956
2957         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
2958         matches and GLOB_NOCHECK is set.
2959         * posix/globtest.sh: Correct expected result for NOCHECK test.
2960
2961         * po/ca.po: Update from translation team.
2962
2963 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
2964
2965         Implement transliteration of characters in strings of the locale
2966         definitions.
2967         * locale/programs/linereader.c: Adjust for additional parameter to
2968         lr_token.
2969         (get_string): If character <Uxxxx> is not found try to transliterate
2970         it.
2971         * locale/programs/ld-ctype.c: Adjust for additional parameter to
2972         lr_token.  Add const to charmap parameter of all functions.
2973         (find_translit, find_translit2): New functions.
2974         * locale/programs/charmap.c: Adjust for additional parameter to
2975         lr_token.
2976         * locale/programs/repertoire.c: Likewise.
2977         * locale/programs/linereader.h: Likewise.
2978         * locale/programs/ld-address.c: Likewise.  Add const to charmap
2979         parameter of all functions.
2980         * locale/programs/ld-collate.c: Likewise.
2981         * locale/programs/ld-identification.c: Likewise.
2982         * locale/programs/ld-measurement.c: Likewise.
2983         * locale/programs/ld-messages.c: Likewise.
2984         * locale/programs/ld-monetary.c: Likewise.
2985         * locale/programs/ld-name.c: Likewise.
2986         * locale/programs/ld-numeric.c: Likewise.
2987         * locale/programs/ld-paper.c: Likewise.
2988         * locale/programs/ld-paper.c: Likewise.
2989         * locale/programs/ld-telephone.c: Likewise.
2990         * locale/programs/ld-time.c: Likewise.
2991         * locale/programs/locfile.c: Likewise.
2992         * locale/programs/localedef.c: Likewise.
2993         * locale/programs/localedef.h: Likewise.
2994         * locale/programs/locfile.h: Likewise.  Add declaration for
2995         find_translit.
2996         * locale/programs/simple-hash.c: Add const to first parameter of
2997         find_entry, iterate_table, and lookup.
2998         * locale/programs/simple-hash.h: Likewise.
2999         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
3000         instead.
3001         * include/locale.h: Define __LC_LAST.
3002         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
3003
3004 2001-12-07  Geoff Keating  <geoffk@redhat.com>
3005
3006         * sysdeps/powerpc/Dist: Update for recent FP changes.
3007         * sysdeps/powerpc/fpu/Dist: Likewise.
3008
3009 2001-12-07  Andreas Schwab  <schwab@suse.de>
3010
3011         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
3012
3013 2001-12-06  Geoff Keating  <geoffk@redhat.com>
3014
3015         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
3016         save/restore functions here.
3017         (libm-support): Don't define these functions here.
3018         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
3019         functions here.
3020         * sysdeps/powerpc/fe_nomask.c: Move to...
3021         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
3022         * sysdeps/powerpc/fprrest.S: Move to...
3023         * sysdeps/powerpc/fpu/fprrest.S: ... here.
3024         * sysdeps/powerpc/fprsave.S: Move to...
3025         * sysdeps/powerpc/fpu/fprsave.S: ... here.
3026
3027 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
3028
3029         * sysdeps/unix/sysv/linux/opensock.c: New file.
3030
3031 2001-12-06  Geoff Keating  <geoffk@redhat.com>
3032
3033         * config.make.in (with-fp): Define from configure.
3034         * configure.in: Substitute with_fp.
3035         * configure: Regenerate.
3036         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
3037         specified, and don't change FPU environment.
3038
3039 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
3040
3041         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
3042         * assert/assert.c: Check result of __asprintf call and don't use
3043         string if it failed.
3044         * assert/assert-perr.c: Likewise.
3045         * inet/rcmd.c: Likewise.
3046         * locale/programs/localedef.c (main): Check result of
3047         construct_output_path and exit if it failed.
3048         (construct_output_path): Check result of asprintf and mkdir calls and
3049         fail if they failed.
3050         * posix/getopt.c: Check result of __asprintf calls and fail if
3051         they failed.
3052         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
3053
3054 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
3055
3056         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
3057         patch.
3058         * sysdeps/generic/strncase.c: Likewise.
3059         * string/tester.c: Add tests for strcasecmp and strncasecmp.
3060
3061 2001-12-05  Geoff Keating  <geoffk@redhat.com>
3062
3063         * scripts/cpp: Test the exit status from 'type', not 'awk'.
3064
3065         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
3066         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
3067         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
3068         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
3069         * sysdeps/powerpc/fclrexcpt.c: Move to...
3070         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
3071         * sysdeps/powerpc/fpu_control.h: Move to...
3072         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
3073
3074 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
3075
3076         * iconvdata/ibm1129.h: Remove duplicate mappings.
3077         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
3078         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
3079         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
3080
3081         * timezone/zic.c: Fix handling of turnaround times.
3082         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
3083
3084 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
3085
3086         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
3087         overflow problem.
3088
3089 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
3090
3091         * posix/regex.c: For use outside glibc defined bounded pointer
3092         macros here.  Patch by Jim Meyering <jim@meyering.net>.
3093
3094         * iconvdata/Makefile (modules): Add TCVN5712-1.
3095         * iconvdata/TESTS: Add TCVN5712-1.
3096         * iconvdata/gconv-modules: Likewise.
3097         * iconvdata/tcvn5712-1.c: New file.
3098         * iconvdata/testdata/TCVN-5712: New file.
3099         * iconvdata/testdata/TCVN-5712..UTF8: New file.
3100
3101 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
3102
3103         * iconvdata/cp1258.c: Optimize conversion from UCS4.
3104
3105 2001-12-02  Roland McGrath  <roland@frob.com>
3106
3107         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
3108
3109         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
3110         Reported by Jeff Bailey <jbailey@nisa.net>.
3111
3112         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
3113         Reported by Jeff Bailey <jbailey@nisa.net>.
3114
3115         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
3116         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
3117         Reported by Jeff Bailey <jbailey@nisa.net>.
3118
3119 2001-12-01  Roland McGrath  <roland@frob.com>
3120
3121         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
3122         missing backslash in test arguments.
3123         * sysdeps/mach/hurd/configure: Regenerated.
3124
3125 2001-11-26  Roland McGrath  <roland@frob.com>
3126
3127         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
3128         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
3129
3130 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
3131
3132         * iconvdata/Makefile (modules): Add ARMSCII-8.
3133         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
3134         * iconvdata/armscii-8.c: New file.
3135
3136 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
3137
3138         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
3139         don't match, fix {{a,b},c} globbing, clean up.
3140         Patch by Flavio Veloso <flaviovs@magnux.com>.
3141         * posix/globtest.sh: Add new tests.
3142
3143 2001-11-29  Andreas Jaeger  <aj@suse.de>
3144
3145         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
3146         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
3147
3148         * sysdeps/generic/abort.c: Include libioP.h for
3149         _IO_flush_all_lockp prototype.
3150
3151 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
3152
3153         * posix/regex.h: Define __restrict_arr correctly.
3154
3155 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
3156
3157         * iconvdata/ibm1163.c: New file.
3158         * iconvdata/ibm1163.h: New file.
3159         * iconvdata/ibm1164.c: New file.
3160         * iconvdata/ibm1164.h: New file.
3161         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
3162         * iconvdata/Makefile: Likewise.
3163         * iconvdata/testdata/IBM1163: New file.
3164         * iconvdata/testdata/IBM1163..UTF8: New file.
3165         * iconvdata/testdata/IBM1164: New file.
3166         * iconvdata/testdata/IBM1164..UTF8: New file.
3167         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
3168
3169         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
3170         * iconvdata/ibm1124.h: Likewise.
3171         * iconvdata/ibm1132.h: Likewise.
3172         * iconvdata/ibm1133.h: Likewise.
3173         * iconvdata/ibm1160.h: Likewise.
3174         * iconvdata/ibm1161.h: Likewise.
3175         * iconvdata/ibm1162.h: Likewise.
3176         * iconvdata/ibm856.h: Likewise.
3177         * iconvdata/ibm922.h: Likewise.
3178         * iconvdata/ibm930.h: Likewise.
3179         * iconvdata/ibm932.h: Likewise.
3180         * iconvdata/ibm933.h: Likewise.
3181         * iconvdata/ibm935.h: Likewise.
3182         * iconvdata/ibm937.h: Likewise.
3183         * iconvdata/ibm939.h: Likewise.
3184         * iconvdata/ibm943.h: Likewise.
3185         * iconvdata/ibm930.c: Pretty printing.
3186         * iconvdata/ibm937.c: Avoid access accross array boundary.
3187
3188         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
3189         the current locale's codeset.
3190         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
3191         empty input string.
3192         * iconv/iconv_prog.c: Pass empty strings as default value for to-
3193         and from-charset.  Don't determine locale's charset here.
3194
3195         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
3196         as the old _IO_flush_all but lock only if parameter is nonzero.
3197         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
3198         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
3199         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
3200         if libio is used [PR libc/2575].
3201
3202 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
3203
3204         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
3205         __signbitl): Only define for ISO C99.
3206
3207 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
3208
3209         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
3210         herrnop to NETDB_INTERNAL if we run out of buffer space.
3211
3212 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
3213
3214         * nss/nss_files/files-XXX.c (internal_getent): Correct input
3215         overflow test for platforms with signed char.
3216         Reported by Andrew Haley <aph@cambridge.redhat.com>.
3217
3218 2001-11-28  Bruno Haible  <bruno@clisp.org>
3219
3220         * locale/programs/simple-hash.c (lookup_2): Remove function.
3221         (insert_entry_2): Call lookup instead of lookup_2.
3222
3223 2001-03-04  Bruno Haible  <bruno@clisp.org>
3224
3225         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
3226
3227 2001-10-31  Bruno Haible  <bruno@clisp.org>
3228
3229         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
3230
3231 2001-03-21  Bruno Haible  <bruno@clisp.org>
3232
3233         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
3234         chokes on empty macro arguments.
3235         * intl/plural.y: Add #pragma for alloca on AIX 3.
3236
3237 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
3238
3239         * intl/dcigettext.c (guess_category_value): Only implement for
3240         glibc.  Otherwise rely on function _nl_locale_name which isn't
3241         present in the glibc sources.
3242
3243 2001-09-24  Bruno Haible  <bruno@clisp.org>
3244
3245         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
3246         transliteration when building on a glibc system but outside glibc.
3247
3248 2001-09-22  Bruno Haible  <bruno@clisp.org>
3249
3250         * intl/plural-eval.c: New file, extracted from dcigettext.c.
3251         * intl/dcigettext.c (plural_eval): Remove function, moved to
3252         intl/plural-eval.c.
3253         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
3254         Include plural-eval.c.
3255
3256 2001-09-22  Bruno Haible  <bruno@clisp.org>
3257
3258         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
3259         don't start with a digit; nplurals must be positive.
3260
3261 2001-09-02  Bruno Haible  <bruno@clisp.org>
3262
3263         * intl/plural-exp.h: New file, extracted from gettextP.h.
3264         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
3265         * intl/gettextP.h (struct expression, struct parse_args,
3266         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
3267         * intl/loadmsgcat.c: Include plural-exp.h.
3268         (PLURAL_PARSE): Move macro to plural-exp.h.
3269         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
3270         plural-exp.c.
3271         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
3272         EXTRACT_PLURAL_EXPRESSION.
3273         (_nl_unload_domain): Update.
3274         * intl/dcigettext.c: Include plural-exp.h.
3275         * intl/plural.y: Include plural-exp.h, not gettextP.h.
3276         (FREE_EXPRESSION): Move macro to plural-exp.h.
3277         * intl/Makefile (routines): Add plural-exp.
3278         (distribute): Add plural-exp.h.
3279
3280 2001-07-28  Bruno Haible  <bruno@clisp.org>
3281
3282         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
3283         isdigit, tolower argument to 'unsigned char'.
3284         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
3285         'unsigned char'.
3286         * intl/localealias.c (read_alias_file): Cast isspace argument to
3287         'unsigned char'.
3288
3289 2001-10-20  Bruno Haible  <bruno@clisp.org>
3290
3291         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
3292         anyway.)
3293         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
3294         with the variable 'index' in plural_lookup.
3295         * intl/l10nflist.c (strchr): Likewise.
3296         * intl/localealias.c (strchr): Likewise.
3297
3298         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
3299         * intl/bindtextdom.c: Likewise.
3300         * intl/dcigettext.c: Likewise.
3301         * intl/dgettext.c: Likewise.
3302         * intl/dngettext.c: Likewise.
3303         * intl/explodename.c: Likewise.
3304         * intl/finddomain.c: Likewise.
3305         * intl/gettext.c: Likewise.
3306         * intl/l10nflist.c: Likewise.
3307         * intl/loadmsgcat.c: Likewise.
3308         * intl/localealias.c: Likewise.
3309         * intl/ngettext.c: Likewise.
3310         * intl/textdomain.c: Likewise.
3311         * intl/gettext.h: Assume <limits.h> exists.
3312
3313 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
3314
3315         * stdio-common/Makefile (tests): Add scanf11.
3316         * stdio-common/scanf11.c: New file.
3317
3318 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
3319
3320         * version.h (RELEASE): Define as development.
3321         (VERSION): Set to 2.2.90.
3322
3323 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
3324
3325         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
3326         * nis/nss_nis/nis-grp.c: Likewise.
3327         * nis/nss_nisplus/nisplus-grp.c: Likewise.
3328
3329         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
3330         * nis/nss_nis/nis-pwd.c: Likewise.
3331         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
3332
3333         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
3334         * nis/nss_nisplus/nisplus-parser.c: Likewise.
3335         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
3336
3337         * nscd/grpcache.c: Use strtoul instead of atol.
3338         * nscd/pwdcache.c: Likewise.
3339         * nss/getent.c: Likewise.
3340
3341 2001-11-27  Paul Eggert  <eggert@twinsun.com>
3342
3343         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
3344         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
3345
3346 2001-11-19  Bruno Haible  <bruno@clisp.org>
3347
3348         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
3349         90%.
3350         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
3351         improves the quality of the hash function, especially for short
3352         strings.
3353
3354 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
3355
3356         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
3357         are found call conv_error and not input_error [PR libc/2669].
3358
3359         * math/bits/mathcalls.h: Mark ceil and floor as const.
3360         Reported by David Mosberger.
3361
3362 2001-11-21  Jim Meyering  <meyering@lucent.com>
3363
3364         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
3365         Define to be __-prefixed.
3366         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
3367
3368 2001-11-26  Andreas Jaeger  <aj@suse.de>
3369
3370         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
3371         avoid warning.
3372
3373 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
3374
3375         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
3376         initialization.
3377
3378         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
3379         unused variables.  Fix threshold for returning 1.0.
3380
3381         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
3382         argument.
3383
3384         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
3385         remove unused variables.
3386
3387         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
3388
3389         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
3390         include local math header files.
3391
3392 2001-11-22  Andreas Jaeger  <aj@suse.de>
3393
3394         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
3395         avoid warning.
3396
3397 2001-11-21  Andreas Jaeger  <aj@suse.de>
3398
3399         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
3400
3401         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
3402         sys/debugreg.h
3403
3404 2001-11-15  Andreas Jaeger  <aj@suse.de>
3405
3406         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
3407         compilers that support it.
3408
3409         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
3410         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
3411         * stdlib/stdlib.h: Likewise.
3412
3413 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
3414
3415         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
3416         statement with gotos.
3417         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
3418
3419 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
3420
3421         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
3422
3423 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
3424
3425         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
3426
3427 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
3428             H.J. Lu  <hjl@gnu.org>
3429
3430         * Versions.def (libc): Add GCC_3.0.
3431         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
3432         if gcc supports this flag.
3433         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
3434         (gcc3): Allow glibc to be compiled with gcc 3.x.
3435         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
3436         * config.make.in (static-libgcc, unwind-find-fde): Add.
3437         * Makerules (build-shlib-helper, build-module-helper): Use it.
3438         * scripts/versions.awk: Make sure GLIBC_ versions come first.
3439         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
3440         necessary.
3441         (_fini): Call __deregister_frame_info_bases if
3442         __register_frame_info_bases was used to register.
3443         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
3444         for GLIBC_2.0.
3445         (__register_frame_info_bases, __register_frame_info_table_bases,
3446         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
3447         * elf/Makefile (routines): Add unwind-dw2-fde.
3448         (shared-only-routines): Add unwind-dw2-fde.
3449         * sysdeps/alpha/gccframe.h: New file.
3450         * sysdeps/arm/gccframe.h: New file.
3451         * sysdeps/generic/framestate.c: New file.
3452         * sysdeps/generic/dwarf2.h: New file.
3453         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
3454         * sysdeps/generic/unwind-dw2-fde.c: New file.
3455         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
3456         * sysdeps/generic/unwind-dw2-fde.h: New file.
3457         * sysdeps/generic/unwind-dw2.c: New file.
3458         * sysdeps/generic/unwind-pe.h: New file.
3459         * sysdeps/generic/unwind.h: New file.
3460         * sysdeps/hppa/gccframe.h: New file.
3461         * sysdeps/i386/gccframe.h: New file.
3462         * sysdeps/m68k/gccframe.h: New file.
3463         * sysdeps/mips/gccframe.h: New file.
3464         * sysdeps/powerpc/gccframe.h: New file.
3465         * sysdeps/s390/gccframe.h: New file.
3466         * sysdeps/sh/gccframe.h: New file.
3467         * sysdeps/sparc/gccframe.h: New file.
3468         * sysdeps/vax/gccframe.h: New file.
3469         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
3470         Set on all architectures except ia64.
3471         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
3472         for i386.
3473         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
3474         __deregister_frame_info): Move to elf/Versions.
3475         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
3476         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
3477         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
3478         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
3479         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
3480         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
3481         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
3482         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
3483         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
3484         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
3485         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
3486         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
3487         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
3488         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
3489         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
3490         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
3491         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
3492         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
3493
3494 2001-11-15  Jeff Law  <law@redhat.com>
3495
3496         * posix/regex.c (uintptr_t): Do not provide a definition if the
3497         system provided one.
3498
3499 2001-11-13  Roland McGrath  <roland@frob.com>
3500
3501         * stdio-common/tmpfile.c: Moved to ...
3502         * sysdeps/generic/tmpfile.c: ... here.
3503         * sysdeps/mach/hurd/tmpfile.c: New file.
3504
3505         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
3506         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
3507         (fopenport): Define as weak alias.
3508
3509         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
3510         * libio/libioP.h: ... to here.
3511
3512 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
3513
3514         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
3515         program header twice.  Construct list with the needed information.
3516
3517 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
3518
3519         * po/ca.po: Update from translation team.
3520
3521         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
3522         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
3523         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
3524         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
3525
3526 2001-11-10  Andreas Jaeger  <aj@suse.de>
3527
3528         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
3529         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
3530         Contributed by Stephen L Moshier <moshier@mediaone.net>.
3531
3532 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
3533
3534         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
3535         correctly.
3536         * elf/dl-load.c (is_dst): New function.
3537         (_dl_dst_count): Use is_dst to check for DST variable.
3538         (_dl_dst_substitute): Likewise.
3539
3540 2001-11-09  Roland McGrath  <roland@frob.com>
3541
3542         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
3543         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
3544         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
3545         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
3546         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
3547         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
3548         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
3549         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
3550         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
3551         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
3552         * sysdeps/mach/hurd/powerpc/Dist: New file.
3553
3554         * hurd/privports.c (__get_privileged_ports):
3555         Only contact the proc server if necessary for this call.
3556         Suggested by Neal H Walfield <neal@cs.uml.edu>.
3557         Check error return for mach_port_mod_refs.
3558
3559 2001-11-09  Andreas Schwab  <schwab@suse.de>
3560
3561         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
3562
3563 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
3564
3565         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
3566         object is always the last in the list.
3567         (_dl_map_object_from_fd): Delete code to remove from object list
3568         when DF_1_NOOPEN is seen.  This is done in lose.
3569
3570 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
3571
3572         * elf/dl-object.c (_dl_new_object): Various small optimizations.
3573
3574 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
3575
3576         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
3577         HWCAP_CHECK macro code.
3578
3579         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
3580         Now returns MAP_FAILED on error.
3581         * elf/rtld.c: Adjust caller.
3582         * sysdeps/generic/dl-cache.c: Likewise.
3583         * sysdeps/generic/ldsodefs.h: Adjust description.
3584
3585         * elf/dl-version.c (match_symbol): Optimize error handling for size.
3586         (_dl_check_map_versions): Likewise.
3587
3588 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
3589
3590         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
3591         _dl_signal_error directly, always use lose.  Set fd to -1 after
3592         file is closed.
3593         (lose): Don't call close if fd == -1.
3594
3595 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
3596
3597         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
3598          Also fix typo @code {mbsinit} to @code{mbsinit}.
3599
3600 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
3601
3602         * elf/dl-profile.c: Replace state variable with simple flag named
3603         running.  Remove commented-out code.
3604
3605         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
3606         (_dl_init_paths): Likewise.
3607         (_dl_map_object_from_fd): Likewise.
3608         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
3609
3610 2001-11-06  Roland McGrath  <roland@frob.com>
3611
3612         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
3613         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
3614
3615         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
3616         sysdeps/powerpc/elf/sysdep.h.
3617         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
3618
3619 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
3620
3621         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
3622         speed.
3623         (process_envvars): Some more optimizations.
3624         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
3625
3626         * elf/elf.h: Add dynamic tag definitions for prelinking.
3627
3628         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
3629         Rewrite code to remove environment varables for SUID binaries.
3630         Small optimization in LD_PROFILE handling.
3631         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
3632         changes.
3633         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
3634
3635         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
3636
3637         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
3638         strings.  Change type of second parameter.
3639         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
3640         for last change.
3641
3642         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
3643
3644 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
3645
3646         * manual/string.texi: Fix typos.
3647         * manual/examples/argp-ex2.c: Likewise.
3648
3649 2001-11-05  Roland McGrath  <roland@frob.com>
3650
3651         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
3652         the more-specific unix/sysv/linux/powerpc file and breaks everything.
3653         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
3654         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
3655         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
3656         here, put under [__ELF__].
3657
3658 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
3659
3660         * manual/charset.texi: Extensive editing work.
3661         * manual/nss.texi: Likewise.
3662         Changes by Dennis Grace <dgrace@us.ibm.com>.
3663
3664 2001-11-04  Roland McGrath  <roland@frob.com>
3665
3666         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
3667         parameter to dir_mkfile.
3668
3669 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
3670
3671         * string/bits/string2.h (__strndup): If n is smaller than len, set
3672         len to n + 1.
3673         * string/tester.c (test_strndup): New function.
3674         (main): Call it.
3675
3676 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
3677
3678         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
3679
3680         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
3681         * scripts/cpp: New file.
3682
3683         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
3684         for rtld_search_dirs content.  Minor optimizations.
3685
3686 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
3687
3688         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
3689         avoiding unnecessary duplication.
3690
3691 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
3692
3693         * elf/dl-load.c (_dl_map_object): If library was found using
3694         LD_LIBRARY_PATH, don't try RUNPATH list.
3695
3696 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3697
3698         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
3699         Correct second argument of register_dump call.
3700         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
3701         Likewise.
3702
3703 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
3704
3705         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
3706         modules.
3707         * iconvdata/TESTS: Likewise.
3708         * iconvdata/gconv-modules: Likewise.
3709         * iconvdata/ibm1132.c: New file.
3710         * iconvdata/ibm1132.h: New file.
3711         * iconvdata/ibm1133.c: New file.
3712         * iconvdata/ibm1133.h: New file.
3713         * iconvdata/ibm1162.c: New file.
3714         * iconvdata/ibm1162.h: New file.
3715         * iconvdata/testdata/IBM1132: New file.
3716         * iconvdata/testdata/IBM1132..UTF8: New file.
3717         * iconvdata/testdata/IBM1133: New file.
3718         * iconvdata/testdata/IBM1133..UTF8: New file.
3719         * iconvdata/testdata/IBM1162: New file.
3720         * iconvdata/testdata/IBM1162..UTF8: New file.
3721         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
3722
3723         * string/string.h: Fix typo in comment.
3724         * wcsmbs/wchar.h: Likewise.
3725
3726 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
3727
3728         * manual/getopt.texi (getopt_long, getopt_long_only): Include
3729         const in type of longopts parameter.
3730
3731 2001-10-29  Andreas Jaeger  <aj@suse.de>
3732
3733         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
3734
3735 2001-10-29  Kevin Ryde  <user42@zip.com.au>
3736
3737         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
3738         output, clarify `#' behaviour on 0.
3739         (Floating-Point Conversions): Clarify that %g only uses %e when
3740         the exponent would be greater than 1.
3741
3742 2001-10-28  Roland McGrath  <roland@frob.com>
3743
3744         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
3745         * sysdeps/mach/powerpc/machine-sp.h: New file.
3746         * sysdeps/mach/powerpc/sysdep.h: New file.
3747         * sysdeps/mach/powerpc/thread_state.h: New file.
3748
3749         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
3750         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
3751         expect to need the same thing on every platform.
3752
3753         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
3754         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
3755
3756         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
3757         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
3758         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
3759         Move all these assembly-related definitions to ...
3760         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
3761
3762         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
3763         by Peter Bruin <pjbruin@dds.nl>.
3764
3765         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
3766         packing results for a `poll' call.
3767
3768 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
3769
3770         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
3771         correctly.
3772         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
3773         bracket expression.
3774
3775         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
3776         nrules value.
3777         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
3778
3779 2001-10-24  H.J. Lu  <hjl@gnu.org>
3780
3781         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
3782         Use __BEGIN_DECLS/__END_DECLS around prototypes.
3783         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
3784
3785 2001-10-21  Jim Meyering  <meyering@lucent.com>
3786
3787         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
3788         this code would end up calling gettext even in packages built
3789         with --disable-nls.
3790         * posix/getopt.c (_): Likewise.
3791         * posix/regex.c (_): Likewise.
3792
3793 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
3794
3795         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
3796         lookup not ip6.int.
3797         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
3798         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
3799
3800 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
3801
3802         * misc/sys/cdefs.h (__attribute_used__): Define.
3803         * elf/rtld.c (_dl_start): Add __attribute_used__.
3804         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
3805
3806 2001-10-25  Andreas Schwab  <schwab@suse.de>
3807
3808         * stdlib/a64l.c: Expect least significant digit first.
3809         * stdlib/l64a.c: Produce least significant digit first.
3810         * stdlib/Makefile (tests): Add test-a64l.
3811         * stdlib/test-a64l.c: New file.
3812         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
3813
3814 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
3815
3816         * po/sk.po: Update from translation team.
3817
3818 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
3819
3820         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
3821
3822 2001-10-18  Andreas Schwab  <schwab@suse.de>
3823
3824         * math/libm-test.inc (print_ulps): Print ulp values rounded to
3825         next whole number.
3826         (print_function_ulps): Likewise.
3827         (print_complex_function_ulps): Likewise.
3828         (print_max_error): Likewise.
3829         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
3830
3831 2001-10-16  Andreas Schwab  <schwab@suse.de>
3832
3833         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
3834         implementation.
3835
3836         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
3837         BSD_SETJMP or BSD__SETJMP is defined, resp.
3838         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
3839         a tail call to __sigsetjmp that would require extending the
3840         caller's frame.
3841         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
3842         * sysdeps/m68k/bsd-setjmp.S: Deleted.
3843         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
3844         Reported by Jes Sorensen <jes@trained-monkey.org>.
3845
3846 2001-10-16  Andreas Jaeger  <aj@suse.de>
3847
3848         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
3849         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
3850         close PR libc/2589.
3851
3852 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
3853
3854         * po/ca.po: New file.  Contributed by the translation team.
3855
3856 2001-10-15  Ralf Baechle  <ralf@gnu.org>
3857
3858         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
3859         a varargs prototype.  Remove dependency from kernel header files.
3860
3861         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
3862         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
3863
3864 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
3865
3866         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
3867         to generate hexadecimal identifier.
3868         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
3869
3870 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
3871
3872         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
3873
3874 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
3875
3876         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
3877         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
3878         Contributed by Stephen L Moshier <moshier@mediaone.net>.
3879
3880         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
3881         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
3882         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
3883         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
3884         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
3885         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
3886
3887         * timezone/africa: Update from tzdata2001d.
3888         * timezone/asia: Likewise.
3889         * timezone/australasia: Likewise.
3890         * timezone/backward: Likewise.
3891         * timezone/europe: Likewise.
3892         * timezone/leapseconds: Likewise.
3893         * timezone/northamerica: Likewise.
3894         * timezone/southamerica: Likewise.
3895         * timezone/zone.tab: Likewise.
3896
3897 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3898
3899         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
3900         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
3901
3902 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
3903
3904         * elf/elf.h (PT_TLS): New definition.
3905
3906 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
3907
3908         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
3909         bits/errno.h
3910
3911 2001-10-07  Roland McGrath  <roland@frob.com>
3912
3913         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
3914
3915 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
3916
3917         * elf/elf.h: Add more ELFOSABI_* constants.
3918
3919 2001-10-04  Ben Collins  <bcollins@debian.org>
3920
3921         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
3922         decleration of __need_wchar_t.
3923
3924 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
3925
3926         * string/bits/string2.h (__strsep_g): Add prototype.
3927         (__strsep): Use it.
3928         * string/Versions (__strsep): Remove.
3929         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
3930
3931 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
3932
3933         * manua/llio.texi: Clarify file references added by mmap.
3934         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
3935
3936 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
3937
3938         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
3939         Add sc_loadrs and sc_rbs_bas to match current kernel.
3940
3941 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
3942
3943         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
3944
3945         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
3946
3947 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
3948
3949         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
3950         object has been bumped because of relocation dependency, avoid
3951         duplicates in l_scope.
3952         (show_scope): Fix typos.
3953         * elf/Makefile: Add rules to build and run reldep6.
3954         * elf/reldep6.c: New file.
3955         * elf/reldep6mod0.c: New file.
3956         * elf/reldep6mod1.c: New file.
3957         * elf/reldep6mod2.c: New file.
3958         * elf/reldep6mod3.c: New file.
3959         * elf/reldep6mod4.c: New file.
3960
3961 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
3962
3963         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
3964         sparc64_fixup_plt.
3965         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
3966         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
3967         for non-lazy binding. Fix .plt[32768+] handling.
3968         (elf_machine_plt_value): Don't add addend.
3969         (elf_machine_rela): Call sparc64_fixup_plt instead of
3970         elf_machine_fixup_plt.
3971         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
3972         dynamic linker at 0xfffff800XXXXXXXX.
3973
3974         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
3975
3976 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
3977
3978         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
3979
3980 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
3981
3982         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
3983         declare __cmsg_data field if its size would be bigger than 0.
3984         (CMSG_DATA): Adjust accordingly.
3985         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
3986         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
3987         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
3988         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
3989         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
3990         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
3991         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
3992
3993 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
3994
3995         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
3996         * iconvdata/testdata/IBM1160: New file.
3997         * iconvdata/testdata/IBM1160..UTF8: New file.
3998         * iconvdata/testdata/IBM1161: New file.
3999         * iconvdata/testdata/IBM1161..UTF8: New file.
4000         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
4001
4002 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
4003
4004         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
4005         UL_SETFSIZE computations better.
4006
4007         * rt/Makefile: Remove use of filter for librt again.
4008
4009         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
4010         UL_SETFSIZE computations better.
4011
4012         * string/Versions: Export __strsep for GLIBC_2.2.5.
4013         * string/bits/string2.h: Define all __STRING_INLINE functions if
4014         _FORCE_INLINES is defined.
4015         Use int instead of char of parameter types.
4016         (__strsep): Don't use __strsep_g.  Don't define it.
4017         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
4018         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
4019         __strcpy_small.
4020         (__stpcpy_a_small): Renamed from __stpcpy_small.
4021         (__strcspn_c1): Don't define if _FORCE_INLINES.
4022         (__strspn_c1): Likewise.
4023
4024 2001-09-22  Ben Collins  <bcollins@debian.org>
4025
4026         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
4027         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
4028         * sysdeps/ia64/bits/sigaction.h: Likewise.
4029         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
4030
4031 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
4032
4033         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
4034
4035 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
4036
4037         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
4038
4039 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
4040
4041         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
4042
4043 2001-09-20  H.J. Lu  <hjl@gnu.org>
4044
4045         * include/dlfcn.h (__RTLD_SPROF): New definiton.
4046         * elf/dl-open.c (dl_open_worker): Return immediately after loading
4047         for __RTLD_SPROF.
4048         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
4049         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
4050
4051 2001-09-20  H.J. Lu  <hjl@gnu.org>
4052
4053         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
4054         don't add 1.
4055
4056 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
4057
4058         * nss/getent.c: Accept -s parameter to overwrite rules in
4059         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
4060
4061         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
4062         with as many ".0" as necessary to form a complete address
4063         inet_network understands.
4064
4065         * nss/getent.c: Various cleanups.  Use simpler and fewer function
4066         calls.
4067
4068 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4069
4070         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
4071         _JMPBUF_UNWINDS.
4072         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
4073
4074 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
4075
4076         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
4077         IBM1161.
4078         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
4079         * iconvdata/ibm1160.c: New file.
4080         * iconvdata/ibm1160.h: New file.
4081         * iconvdata/ibm1161.c: New file.
4082         * iconvdata/ibm1161.h: New file.
4083         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
4084
4085 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
4086
4087         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
4088         difference between base address and first PT_LOAD's virtual address,
4089         not the base address.
4090
4091 2001-09-11  Tom Rix  <trix@redhat.com>
4092
4093         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
4094         ifdef for __getopt_clean_environment.
4095         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
4096
4097 2001-09-22  Andreas Jaeger  <aj@suse.de>
4098
4099         * elf/reldep4.c (main): Add proper prototype to fix warning.
4100
4101         * elf/reldep5.c (main): Remove unused variable.
4102
4103         * math/math_private.h: Add prototypes.
4104
4105 2001-09-21  Andreas Jaeger  <aj@suse.de>
4106
4107         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
4108         * sysdeps/x86_64/Dist: New file.
4109         * sysdeps/x86_64/soft-fp/Dist: New file.
4110
4111         * sysdeps/gnu/Dist: Remove eval.c.
4112
4113 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
4114
4115         * malloc/memusage.c (realloc): Don't count already allocated
4116         memory in the sums.
4117         (me): Always use dlsym() to find the real implementations.
4118
4119         * malloc/memusage.sh: Make -n option actually do something.
4120
4121 2001-09-20  Andreas Jaeger  <aj@suse.de>
4122
4123         * elf/elf.h (R_390_NUM): Correct value.
4124
4125         * Versions.def: Add missing versions 2.2.3 for libthread_db and
4126         libpthread.
4127
4128         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
4129         for x86-64, install x86-64 into */lib64.
4130
4131         * shlib-versions: Add x86-64.
4132
4133         * elf/elf.h: Add x86-64 relocations.
4134
4135 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
4136
4137         * po/fr.po: Update from translation team.
4138
4139 2001-09-19  Andreas Jaeger  <aj@suse.de>
4140
4141         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
4142         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
4143         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
4144         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
4145         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
4146         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
4147         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
4148         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
4149         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
4150         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
4151         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
4152         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
4153         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
4154         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
4155         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
4156         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
4157         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
4158         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
4159         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
4160         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
4161         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
4162         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
4163         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
4164         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
4165         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
4166         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
4167         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
4168         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
4169         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
4170         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
4171         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
4172         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
4173         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
4174         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
4175         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
4176         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
4177         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
4178         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
4179         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
4180         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
4181         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
4182         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
4183         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
4184         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
4185         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
4186         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
4187         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
4188         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
4189         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
4190         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
4191         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
4192         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
4193         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
4194         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
4195         * sysdeps/unix/x86_64/sysdep.S: New file.
4196         * sysdeps/unix/x86_64/sysdep.h: New file.
4197         * sysdeps/x86_64/Implies: New file.
4198         * sysdeps/x86_64/Makefile: New file.
4199         * sysdeps/x86_64/Versions: New file.
4200         * sysdeps/x86_64/__longjmp.S: New file.
4201         * sysdeps/x86_64/abort-instr.h: New file.
4202         * sysdeps/x86_64/atomicity.h: New file.
4203         * sysdeps/x86_64/bits/endian.h: New file.
4204         * sysdeps/x86_64/bits/setjmp.h: New file.
4205         * sysdeps/x86_64/bits/string.h: New file.
4206         * sysdeps/x86_64/bp-asm.h: New file.
4207         * sysdeps/x86_64/bsd-_setjmp.S: New file.
4208         * sysdeps/x86_64/bsd-setjmp.S: New file.
4209         * sysdeps/x86_64/dl-machine.h: New file.
4210         * sysdeps/x86_64/elf/initfini.c: New file.
4211         * sysdeps/x86_64/elf/start.S: New file.
4212         * sysdeps/x86_64/ffs.c: New file.
4213         * sysdeps/x86_64/ffsll.c: New file.
4214         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
4215         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
4216         * sysdeps/x86_64/fpu/e_acosl.c: New file.
4217         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
4218         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
4219         * sysdeps/x86_64/fpu/e_expl.c: New file.
4220         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
4221         * sysdeps/x86_64/fpu/e_log10l.S: New file.
4222         * sysdeps/x86_64/fpu/e_log2l.S: New file.
4223         * sysdeps/x86_64/fpu/e_logl.S: New file.
4224         * sysdeps/x86_64/fpu/e_powl.S: New file.
4225         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
4226         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
4227         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
4228         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
4229         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
4230         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
4231         * sysdeps/x86_64/fpu/fegetenv.c: New file.
4232         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
4233         * sysdeps/x86_64/fpu/fegetround.c: New file.
4234         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
4235         * sysdeps/x86_64/fpu/fesetenv.c: New file.
4236         * sysdeps/x86_64/fpu/fesetround.c: New file.
4237         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
4238         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
4239         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
4240         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
4241         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
4242         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
4243         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
4244         * sysdeps/x86_64/fpu/s_atanl.c: New file.
4245         * sysdeps/x86_64/fpu/s_cosl.S: New file.
4246         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
4247         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
4248         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
4249         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
4250         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
4251         * sysdeps/x86_64/fpu/s_logbl.c: New file.
4252         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
4253         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
4254         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
4255         * sysdeps/x86_64/fpu/s_rintl.c: New file.
4256         * sysdeps/x86_64/fpu/s_significandl.c: New file.
4257         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
4258         * sysdeps/x86_64/fpu/s_sinl.S: New file.
4259         * sysdeps/x86_64/fpu/s_tanl.S: New file.
4260         * sysdeps/x86_64/gmp-mparam.h: New file.
4261         * sysdeps/x86_64/hp-timing.c: New file.
4262         * sysdeps/x86_64/hp-timing.h: New file.
4263         * sysdeps/x86_64/htonl.S: New file.
4264         * sysdeps/x86_64/memusage.h: New file.
4265         * sysdeps/x86_64/setjmp.S: New file.
4266         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
4267         * sysdeps/x86_64/stackinfo.h: New file.
4268         * sysdeps/x86_64/sysdep.h: New file.
4269         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
4270
4271         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
4272         L Moshier.
4273
4274 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
4275
4276         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
4277         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
4278
4279 2001-09-18  Andreas Schwab  <schwab@suse.de>
4280
4281         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
4282         list, now that l_scope is a pointer.
4283
4284         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
4285         scope list.
4286
4287 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
4288
4289         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
4290         (elf_machine_rela_relative): Add a missing declaration.
4291
4292 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
4293
4294         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
4295         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
4296         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
4297         ldd-rewrite scripts.
4298
4299 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
4300
4301         * elf/ldd.bash.in: Update copyright message.
4302
4303 2001-09-17  H.J. Lu  <hjl@gnu.org>
4304
4305         * hurd/hurdmalloc.c (bcopy): Removed.
4306         (realloc): Replace bcopy with memcpy.
4307         * hurd/path-lookup.c (file_name_path_scan): Likewise.
4308         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
4309         * sunrpc/rpcinfo.c (pmapdump): Likewise.
4310
4311         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
4312         (gethostbyaddr): Likewise.
4313         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
4314
4315 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
4316
4317         * sysdeps/gnu/eval.c: Removed.
4318
4319 2001-09-18  Andreas Jaeger  <aj@suse.de>
4320
4321         * sysdeps/i386/fpu/s_logbl.S: Move to ...
4322         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
4323
4324         * sysdeps/i386/fpu/s_rintl.S: Move to ...
4325         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
4326
4327         * sysdeps/i386/fpu/s_significandl.S: Move to ...
4328         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
4329
4330 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
4331
4332         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
4333         nrules value.
4334
4335 2001-09-14  H.J. Lu  <hjl@gnu.org>
4336
4337         * sysdeps/mips/fpu/libm-test-ulps: Updated.
4338
4339 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
4340
4341         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
4342         Patch by Florian La Roche <laroche@redhat.com>.
4343
4344         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
4345
4346         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
4347         ETHER_CRC_LEN.
4348
4349 2001-09-14  Andreas Schwab  <schwab@suse.de>
4350
4351         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
4352         Sumner <bls@sgi.com>.
4353         * posix/execlp.c: Likewise.
4354
4355 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
4356
4357         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
4358         is already found earlier in the search scope.
4359
4360 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
4361
4362         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
4363         filter.
4364
4365 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
4366
4367         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
4368
4369 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
4370
4371         * config.h.in: Enforce optimization to be used.
4372         * Makeconfig (preprocess-versions): Define ASSEMBLER.
4373         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
4374         * posix/Makefile (annexc-CFLAGS): Define to -O.
4375         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
4376
4377 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
4378
4379         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
4380         Patch by Stephan Kulow.
4381
4382 2001-09-08  Ben Collins  <bcollins@debian.org>
4383
4384         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
4385         usage of RESOLVE() (r_type, not reloc->r_type).
4386
4387 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
4388
4389         * elf/dl-object.c: Avoid allocating extra memory block for name.
4390         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
4391         allocated separately.
4392         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
4393
4394 2001-09-08  H.J. Lu  <hjl@gnu.org>
4395
4396         * po/zh_TW.po: Fix a typo.
4397
4398 2001-09-07  Tom Rix  <trix@redhat.com>
4399
4400         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
4401
4402 2001-08-26  Tom Rix  <trix@redhat.com>
4403
4404         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
4405         command line options.
4406         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
4407         * sysdeps/unix/sysv/aix/start.c: Removed.
4408         * sysdeps/unix/sysv/aix/start-libc.c: New file.
4409         * sysdeps/unix/sysv/aix/init-first.c: New file.
4410         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
4411
4412 2001-09-08  Ben Collins  <bcollins@debian.org>
4413
4414         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
4415         * sysdeps/generic/dl-machine.h: Likewise.
4416         * sysdeps/hppa/dl-fptr.c: Likewise.
4417         * sysdeps/ia64/dl-fptr.c: Likewise.
4418         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
4419         * sysdeps/mips/dl-machine.h: Likewise.
4420         * sysdeps/mips/mips64/dl-machine.h: Likewise.
4421         * sysdeps/powerpc/dl-machine.c: Likewise.
4422
4423 2001-09-07  Ben Collins  <bcollins@debian.org>
4424
4425         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
4426
4427         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
4428
4429 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
4430
4431         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
4432         dependencies if necessary.
4433
4434         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
4435         loaded directly) determine length if l_initfini list by iterating
4436         over its elements.  Minor optimizations.
4437         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
4438         for dependency objects.
4439         If object was already loaded check whether any of the dependencies
4440         is already on the relocation dependency list.  If yes, remove the
4441         latter.  Minor optimizations.
4442         * elf/dl-lookup.c (add_dependency): Add check for self reference of
4443         maps here.  Search l_initfini list only if the object was loaded
4444         directly and not only as a dependency.
4445         (_dl_lookup_symbol): Add relocation dependency also if object
4446         is not in global scope.  Remove test for self-reference here.
4447         (_dl_lookup_versioned_symbol): Likewise.
4448         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
4449         element of first name record.
4450         * elf/loadtest.c: Add some more test to recognize early if an object
4451         wasn't unloaded.
4452         * elf/Makefile: Add rules to build and run reldep5.
4453         * elf/reldep5.c: New file.
4454         * elf/reldepmod5.c: New file.
4455         * elf/reldepmod6.c: New file.
4456
4457         * elf/reldep2.c: Fix typo.
4458
4459 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
4460
4461         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
4462         elements.  Change l_scope to be a pointer only.
4463         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
4464         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
4465         here add searchlist of newly open file to the dependency's scope.
4466         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
4467         only searchlist from its scope.  Free own scope array if necessary.
4468         * elf/Makefile (tests): Add dblload and dblunload now.
4469
4470 2001-09-06  Andreas Jaeger  <aj@suse.de>
4471
4472         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
4473         Stephen L Moshier.
4474
4475 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
4476
4477         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
4478         they both fail.
4479         * elf/dblload.c: New file.
4480         * elf/dblloadmod1.c: New file.
4481         * elf/dblloadmod2.c: New file.
4482         * elf/dblloadmod3.c: New file.
4483         * elf/dblunload.c: New file.
4484
4485 2001-09-04  Richard Henderson  <rth@redhat.com>
4486
4487         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
4488         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
4489
4490 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
4491
4492         Correct very misleading message for error in failed runtime relocation.
4493         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
4494         place of the error.
4495         (_dl_signal_cerror): Likewise.
4496         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
4497         * elf/dl-close.c: Likewise.
4498         * elf/dl-deps.c: Likewise.
4499         * elf/dl-load.c: Likewise.
4500         * elf/dl-lookup.c: Likewise.
4501         * elf/dl-open.c: Likewise.
4502         * elf/dl-reloc.c: Likewise.
4503         * elf/dl-sym.c: Likewise.
4504         * elf/dl-version.c: Likewise.
4505         * sysdeps/generic/dl-sysdep.c: Likewise.
4506
4507 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
4508
4509         * iconv/strtab.c (strtabinit): Initialize null Strent.
4510         (newstring): Move len == 0 handling...
4511         (strtabadd): ...here.
4512         If len == 1, return null Strent.
4513         When inserting a suffix of an existing string, check if
4514         it is not equal to some suffix already recorded.
4515         Copy left and right members over if adding longer string.
4516
4517 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
4518
4519         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
4520
4521         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
4522         (__syscall_gethostname): Add prototype.
4523
4524 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
4525
4526         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
4527
4528 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
4529
4530         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
4531
4532 2001-08-27  Roland McGrath  <roland@frob.com>
4533
4534         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
4535         short, copy that much into NAME anyway before returning error.
4536
4537 2001-09-01  Richard Henderson  <rth@redhat.com>
4538
4539         * sysdeps/alpha/elf/Dist: Remove file.
4540         * sysdeps/alpha/elf/Makefile: Remove file.
4541         * sysdeps/alpha/elf/crtbegin.S: Remove file.
4542         * sysdeps/alpha/elf/crtend.S: Remove file.
4543         * sysdeps/alpha/elf/initfini.c: New file.
4544
4545 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
4546
4547         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
4548         * iconv/tst-iconv3.c: Likewise.
4549
4550 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
4551
4552         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
4553
4554 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
4555
4556         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
4557         export it.
4558         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
4559         * iconv/iconv_prog.c (insert_cache): New function.
4560         (print_known_names): If cache is used call insert_cache to use the
4561         information from the cache [PR libc/2509].
4562
4563 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
4564
4565         * time/strptime.c (strptime_internal): Recognize 'l' format and
4566         handle it like 'I' for symmetry with strftime.
4567
4568 2001-08-31  Richard Henderson  <rth@redhat.com>
4569
4570         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
4571         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
4572         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
4573         (print_statistics): Make scalar unsigned long long.
4574         * sysdeps/alpha/hp-timing.h: New file.
4575
4576 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
4577
4578         * stdio-common/perror.c (perror): Save errno early, pass it
4579         down to perror_internal.
4580         (perror_internal): Add errnum argument.
4581
4582 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
4583
4584         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
4585         Don't add old memory content for R_ALPHA_REFQUAD.
4586
4587 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
4588
4589         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
4590         memory correctly.
4591
4592         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
4593         instead of open, __close instead of close, __getpagesize instead
4594         of getpagesize.
4595
4596         * string/argz-stringify.c (__argz_stringify): Use __strnlen
4597         instead of strnlen.
4598         * include/string.h (strndupa): Redefine here to use __strnlen
4599         instead of strnlen.
4600         * string/strndup.c (__strndup): Use __strnlen not strnlen.
4601
4602         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
4603         connected).
4604
4605 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
4606
4607         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
4608         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
4609         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
4610         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
4611         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
4612         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
4613         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
4614
4615 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
4616
4617         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
4618
4619 2001-08-30  Andreas Jaeger  <aj@suse.de>
4620
4621         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
4622         contributed Stephen L Moshier.
4623
4624 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
4625
4626         * sunrpc/etc.rpc (sgi_fam): Add.
4627
4628 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
4629
4630         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
4631
4632 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
4633
4634         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
4635         first is from a previous call.
4636         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
4637
4638 2001-08-29  Andreas Schwab  <schwab@suse.de>
4639
4640         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
4641
4642 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
4643
4644         * config.make.in (INSTALL_SCRIPT): Define.
4645         * Makeconfig (INSTALL_SCRIPT): Define.
4646         * Makerules (do-install-script): New macro to install scripts using
4647         INSTALL_SCRIPT.
4648         (install-bin-script): New rule to install scripts with
4649         do-install-script.
4650         (install-bin-script-nosubdir): New rule.
4651         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
4652         (distinfo-vars): Add $(install-bin-script).
4653         * Rules (others): Likewise.
4654         * Makefile (glibcbug): Install with install-bin-script.
4655         * debug/Makefile (xtrace): Likewise.
4656         (catchsegv): Likewise.
4657         * elf/Makefile (ldd): Likewise.
4658         * malloc/Makefile (mtrace): Likewise.
4659         * timezone/Makefile (tzselect): Likewise.
4660
4661 2001-08-29  H.J. Lu  <hjl@gnu.org>
4662
4663         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
4664         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
4665         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
4666
4667 2001-08-29  Andreas Schwab  <schwab@suse.de>
4668
4669         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
4670
4671 2001-08-28  H.J. Lu  <hjl@gnu.org>
4672
4673         * Makeconfig (combreloc-LDFLAGS): New variable.
4674         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
4675         * config.make.in (have-z-combreloc): New variable.
4676         * configure.in: Substitute libc_cv_z_combreloc.
4677
4678 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
4679
4680         * po/sv.po: Update from translation team.
4681         * po/fr.po: Likewise.
4682         * po/da.po: Likewise.
4683
4684 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
4685
4686         * Makerules: Fix a typo: MD% -> MD5.
4687
4688 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
4689
4690         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
4691         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
4692
4693 2001-08-28  Andreas Jaeger  <aj@suse.de>
4694
4695         * manual/libc-texinfo.sh: Add entry about free manuals.
4696
4697         * manual/contrib.texi (Contributors): Fix cross reference.
4698
4699         * manual/libc.texinfo (Copying): Include freemanuals.
4700
4701         * manual/Makefile (appendices): Add freemanuals.
4702
4703         * manual/freemanuals.texi: New file.
4704         Patch by Brian Youmans <3diff@gnu.org>.
4705
4706         * manual/libm-err-tab.pl: Pretty print more platforms, print a
4707         smaller table.
4708
4709         * manual/math.texi (Errors in Math Functions): Fix grammar, start
4710         table on separate page.
4711         Patch by Brian Youmans <3diff@gnu.org>.
4712
4713 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
4714
4715         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
4716         the connection went down after we first used it try to connect
4717         again and resend the message before printing to the console.
4718         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
4719
4720 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
4721
4722         * string/tst-strlen.c (main): Test strnlen (, -1) too.
4723         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
4724         bit set.
4725
4726 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
4727
4728         * iconv/strtab.c (searchstring): Use correct length for comparison.
4729         (strtabadd): Account total size correct if new string has old string as
4730         substring.
4731
4732 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
4733
4734         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
4735
4736 2001-08-27  Andreas Jaeger  <aj@suse.de>
4737
4738         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
4739
4740         * math/libm-test.inc (j0_test): Add extra tests.
4741         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
4742         not x, in Hankel approximation.
4743         Patches by Stephen L Moshier.
4744
4745 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
4746
4747         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
4748         link_map.
4749
4750         * configure.in: Fix test for .rela.dyn section.
4751
4752         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
4753
4754 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
4755
4756         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
4757         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
4758         Pass type_class to _dl_lookup_*.
4759         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
4760         Pass around just type_class instead of noexec, noplt pair.
4761         (_dl_lookup_versioned_symbol): Likewise.
4762         (_dl_lookup_symbol_skip): Pass around just type_class instead of
4763         noexec, noplt pair.
4764         (_dl_lookup_versioned_symbol_skip): Likewise.
4765         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
4766         * elf/do-lookup.h (do_lookup): Likewise.
4767         * include/link.h (struct link_map): Replace noexec and noplt fields
4768         in l_lookup_cache with type_class field.
4769         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
4770         ELF_RTYPE_CLASS_COPY): Define.
4771         Adjust prototypes for _dl_lookup_symbol and
4772         _dl_lookup_versioned_symbol.
4773         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
4774         elf_machine_lookup_noexec_p): Remove.
4775         (elf_machine_type_class): Define.
4776         * sysdeps/arm/dl-machine.h: Likewise.
4777         * sysdeps/hppa/dl-machine.h: Likewise.
4778         * sysdeps/cris/dl-machine.h: Likewise.
4779         * sysdeps/i386/dl-machine.h: Likewise.
4780         * sysdeps/ia64/dl-machine.h: Likewise.
4781         * sysdeps/m68k/dl-machine.h: Likewise.
4782         * sysdeps/mips/mips64/dl-machine.h: Likewise.
4783         * sysdeps/mips/dl-machine.h: Likewise.
4784         * sysdeps/powerpc/dl-machine.h: Likewise.
4785         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
4786         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
4787         * sysdeps/sh/dl-machine.h: Likewise.
4788         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
4789         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
4790
4791 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
4792
4793         * manual/message.texi (Advanced gettext functions): Change
4794         description of plural forms for Slovak.
4795         Reported by Marcel Telka <marcel@telka.sk>.
4796
4797         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
4798         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
4799
4800 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
4801
4802         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
4803         typo.  Patch by Florian La Roche <laroche@redhat.com>.
4804
4805 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
4806
4807         * include/link.h (struct link_map): Add l_lookup_cache element.
4808         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
4809         (RESOLVE_MAP): Likewise.
4810         (_dl_relocate_object): Remove cache initialization.
4811         * elf/dl-lookup.c: Rip out cache handling code.
4812         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
4813         declarations.
4814
4815         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
4816         remove some __builtin_expect.
4817         (_dl_lookup_versioned_symbol): Likewise.
4818
4819         * config.h.in: Add HAVE_Z_COMBRELOC.
4820         * configure.in: Add test for -z combreloc.
4821
4822         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
4823         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
4824         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
4825         case to almost no code.
4826
4827 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
4828
4829         * po/tr.po: Update from translation team.
4830
4831 2001-08-24  Andreas Jaeger  <aj@suse.de>
4832
4833         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
4834         make clean works.
4835
4836 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
4837
4838         * elf/rtld.c (print_statistics): Printf % after percent values.
4839         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
4840
4841         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
4842         don't have to compute the hash value and initialize current_value.
4843         Move reference_name variable to where it is needed.
4844         (_dl_lookup_versioned_symbol): Likewise.
4845
4846 2001-08-24  Roland McGrath  <roland@frob.com>
4847
4848         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
4849         Just test that strerror returns non-null for a few errno codes.
4850
4851 2001-08-23  Roland McGrath  <roland@frob.com>
4852
4853         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
4854         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
4855
4856         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
4857
4858         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
4859         __mach_reply_port.
4860
4861 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
4862
4863         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
4864         returns NULL.
4865
4866         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
4867         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
4868         doesn't do it.
4869         * elf/rtld.c: Include <sys/param.h>.
4870         * elf/dl-reloc.c: Likewise.
4871
4872 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
4873
4874         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
4875         empty to prevent junk from being generated.
4876         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
4877
4878 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
4879
4880         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
4881         records.  Rename endrel to relative, initialize it to r, and use it
4882         in elf_machine_rel_relative calls.  Point r after relative relocs.
4883
4884 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
4885
4886         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
4887         of R_386_NONE.
4888
4889 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
4890
4891         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
4892         necessary.  Undefine newly defined macros at the end.
4893         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
4894         Rename from elf_machine_rel_relative.
4895         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
4896         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
4897         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
4898         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
4899         Likewise.
4900         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
4901         Likewise.
4902         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
4903         Fix argument types.
4904         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
4905         Fix argument types.
4906         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
4907         Likewise.  Fix argument types.
4908         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
4909         Likewise.  Fix argument types.
4910         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
4911         Fix argument types.
4912         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
4913         ElfW(Rel) in argument.
4914         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
4915         function.
4916
4917 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
4918
4919         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
4920
4921 2001-08-24  Andreas Jaeger  <aj@suse.de>
4922
4923         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
4924         Stephen L Moshier <moshier@mediaone.net>.
4925
4926 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
4927
4928         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
4929         first if RELCOUNT is set.
4930
4931         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
4932         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
4933         elf_machine_rel_relative.
4934         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
4935         Minor optimizations.
4936         * sysdeps/arm/dl-machine.h: Likewise.
4937         * sysdeps/cris/dl-machine.h: Likewise.
4938         * sysdeps/hppa/dl-machine.h: Likewise.
4939         * sysdeps/i386/dl-machine.h: Likewise.
4940         * sysdeps/ia64/dl-machine.h: Likewise.
4941         * sysdeps/m68k/dl-machine.h: Likewise.
4942         * sysdeps/mips/dl-machine.h: Likewise.
4943         * sysdeps/powerpc/dl-machine.h: Likewise.
4944         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
4945         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
4946         * sysdeps/sh/dl-machine.h: Likewise.
4947         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
4948         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
4949
4950 2001-08-23  Roland McGrath  <roland@frob.com>
4951
4952         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
4953
4954         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
4955         sysdeps/mach version.  Implement counting ("recursive") mutexes
4956         on top of cthreads mutexes.
4957         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
4958
4959         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
4960         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
4961         (__libc_cleanup_region_start, __libc_cleanup_region_end,
4962         __libc_clean_end): Define these to call the cleanup function after
4963         normal exit when they're supposed to.
4964
4965         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
4966         Take new first arg DOIT, a boolean saying whether to really install
4967         any cleanup handler.
4968         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
4969         (__libc_cleanup_end): Likewise.
4970         * sysdeps/generic/bits/libc-lock.h: Same changes.
4971         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
4972         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
4973         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
4974         Likewise.
4975         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
4976         * sysdeps/generic/bits/stdio-lock.h
4977         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
4978
4979 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
4980
4981         * elf/ldconfig.c (search_dir): Remove stale symlinks.
4982
4983 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
4984
4985         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
4986         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
4987         lookups in cache.
4988         (_dl_lookup_versioned_symbol): Likewise.
4989         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
4990         relocation lookup.
4991         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
4992         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
4993         (lookup_cache, lookup_cache_versioned): Add declarations.
4994
4995 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
4996
4997         * stdlib/tst-random.c (main): Swap parameters in fail call.
4998         Patch by Pete Bevin <pete@petebevin.com>.
4999
5000 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
5001
5002         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
5003
5004 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
5005
5006         * malloc/obstack.c: Indent preprocessor directives.
5007         Patch by Jim Meyering <meyering@ascend.com>.
5008
5009         * po/ja.po: Update from translation team.
5010
5011 2001-08-23  Roland McGrath  <roland@frob.com>
5012
5013         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
5014
5015         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
5016         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
5017
5018 2001-08-22  Roland McGrath  <roland@frob.com>
5019
5020         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
5021         __libc_lock_define_recursive.
5022         * elf/dl-open.c: Don't declare it here any more.
5023         * elf/dl-close.c: Likewise.
5024         * elf/dl-lookup.c: Likewise.
5025         * elf/dl-iteratephdr.c: Likewise.
5026         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
5027         __libc_lock_unlock_recursive.
5028         * elf/dl-close.c (_dl_close): Likewise
5029         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
5030         * elf/dl-open.c (_dl_open): Likewise
5031
5032         * sysdeps/generic/bits/libc-lock.h
5033         (__libc_lock_define_recursive): New macro.
5034         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
5035         (_IO_lock_lock): Use __libc_lock_lock_recursive.
5036         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
5037
5038         * conform/conformtest.pl (checknamespace): Sort the output list.
5039
5040         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
5041         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
5042         definitions conditional on [__USE_XOPEN].
5043
5044         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
5045         these unconditionally, not only use [__USE_BSD], so as to match
5046         the sysdeps/unix/sysv/linux files.
5047
5048 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
5049
5050         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
5051         avoid warnings.
5052
5053         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
5054         DL_LOOKUP_ADDRESS.
5055
5056 2001-08-22  Roland McGrath  <roland@frob.com>
5057
5058         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
5059         conditionalization of sa_handler/sa_sigaction member types to
5060         match the sysdeps/unix/sysv/linux file.
5061
5062 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
5063
5064         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
5065         symbol sizes a bit better.
5066
5067         * sysdeps/ia64/strncpy.S: Complete rewrite.
5068         Contributed by Jakub Jelinek <jakub@redhat.com>.
5069
5070         * string/stratcliff.c (main): Add strncpy test.
5071
5072 2001-08-22  Roland McGrath  <roland@frob.com>
5073
5074         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
5075         and don't declare unsetenv or _environ directly.
5076         (unsetenv): Return int, not void.  Use __environ instead of _environ.
5077
5078 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
5079
5080         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
5081         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
5082         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
5083         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
5084         test for cmsg struct size.
5085
5086 2001-04-23  Paul Eggert  <eggert@twinsun.com>
5087
5088         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
5089         Rename __argc to ___argc in prototypes to avoid compatibility
5090         problems with systems that reserve the identifier "__argc".
5091         Similarly for __argv.
5092
5093 2001-08-21  Roland McGrath  <roland@frob.com>
5094
5095         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
5096
5097         * mach/Makefile (tests): Removed.
5098         * mach/hello.c: File removed.
5099
5100 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
5101
5102         * po/sv.po: Update from translation team.
5103
5104         * stdio-common/vfscanf.c: Fix handling of %l[].
5105         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
5106
5107         * libio/Makefile (tests): Add tst-sscanf.
5108         * libio/tst-sscanf.c: New file.
5109
5110         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
5111         * malloc/mtrace.c (tr_where): dli_sname always points to a
5112         non-empty string if != NULL.
5113         Reported by Tim Janik <timj@gtk.org>.
5114
5115 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
5116
5117         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
5118         buf.  Free resources on failure.
5119         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
5120         (makefd_xprt): Likewise.
5121         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
5122         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
5123         * sunrpc/auth_unix.c (authunix_create): Likewise.
5124
5125 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
5126
5127         * string/strnlen.c: Remove.
5128         * sysdeps/generic/strnlen.c: New file.
5129         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
5130
5131 2001-08-21  Roland McGrath  <roland@frob.com>
5132
5133         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
5134         as a macro, not an extern inline function.
5135
5136         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
5137         * Versions.def (libc): Add GLIBC_2.2.5 set.
5138         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
5139         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
5140
5141 2001-08-20  Roland McGrath  <roland@frob.com>
5142
5143         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
5144         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
5145
5146 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
5147
5148         * string/bits/string2.h: Remove strnlen optimization here.
5149         * sysdeps/i386/i486/bits/string.h: Add it here.
5150
5151 2001-08-21  Wolfram Gloger  <wg@malloc.de>
5152
5153         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
5154
5155 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
5156
5157         * po/gl.po: Update from translation team.
5158
5159 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
5160
5161         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
5162         * misc/err.c (convert_and_print): Likewise.
5163
5164         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
5165         function calls.
5166
5167 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5168
5169         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
5170         change of the gregset_t type.
5171         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
5172
5173 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
5174
5175         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
5176
5177 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
5178
5179         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
5180
5181         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
5182
5183 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
5184
5185         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
5186         before calling the cthreads initialization code.
5187
5188 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
5189
5190         * argp/argp-help.c: Fix two problems introduced in last change.
5191
5192         * include/dirent.h: Include <dirstream.h> first.
5193
5194 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
5195
5196         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
5197
5198         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
5199         * sunrpc/xdr_rec.c: Likewise.
5200         * sunrpc/xdr_mem.c: Likewise.
5201         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
5202         * sunrpc/rpc_cmsg.c: Likewise.
5203         * sunrpc/getrpcport.c (getrpcport): Likewise.
5204         * sunrpc/clnt_simp.c (callrpc): Likewise.
5205         * sunrpc/clnt_gen.c (clnt_create): Likewise.
5206         * string/envz.c: Likewise.
5207
5208         * po/ko.po: Update from translation team.
5209
5210         * argp/argp-help.c: Handle wide oriented stderr stream.
5211
5212 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
5213
5214         * sysdeps/generic/strtol.c: Little optimizations.  Add some
5215         __builtin_expect.
5216
5217         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
5218
5219         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
5220         * wcsmbs/wcwidth.c (wcwdith): Likewise.
5221         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
5222
5223         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
5224
5225         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
5226
5227         * time/time.h (struct timespec): Use __time_t for tv_sec element.
5228
5229         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
5230         wchar_t for function declarations and defintions.
5231
5232         * misc/sys/select.h: Define __need_time_t before including <time.h>.
5233         Define suseconds_t if it hasn't happened yet.
5234
5235         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
5236
5237         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
5238
5239         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
5240         <stddef.h>.
5241
5242         * conform/data/stddef.h-data: Remove wint_t.
5243
5244         * conform/conformtest.pl: Change namespace test to take #undef
5245         lines into account.
5246
5247         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
5248
5249         * conform/data/sys/socket.h-data: Add sockatmark.
5250
5251 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
5252
5253         * io/fts.c: Update from recent BSD source.
5254
5255 2001-08-17  Roland McGrath  <roland@frob.com>
5256
5257         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
5258         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
5259         Likewise.
5260
5261 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
5262
5263         * locale/duplocale.c (__duplocale): Also initialize the special
5264         __ctype_* elements.
5265
5266         * conform/data/netdb.h-data: Adjust gai_strerror return type.
5267
5268 2001-08-17  Andreas Jaeger  <aj@suse.de>
5269
5270         * misc/getpass.c: Include wchar.h for prototypes.
5271         * malloc/obstack.c: Likewise.
5272
5273 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
5274
5275         * sunrpc/svc_simple.c (universal): Use __write instead of write.
5276
5277         * wcsmbs/wcscoll.c: Also define __wcscoll.
5278         * include/wchar.h: Declare __wcscoll.
5279
5280         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
5281         * libio/vwprintf.c: Likewise.
5282         * libio/wprintf.c: Likewise.
5283
5284         * iconv/gconv_cache.c: Use __munmap instead of munmap.
5285
5286 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
5287
5288         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
5289         instead of mbrtowc.
5290         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
5291         wcslen, and __wcscoll instead of wcscoll.
5292
5293         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
5294
5295         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
5296         __getuid instead of getuid.
5297
5298         * stdio-common/perror.c (perror): Use __close instead of close.
5299         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
5300         * libio/freopen.c (freopen): Likewise.
5301         * libio/freopen64.c (freopen64): Likewise.
5302
5303         * libio/tst-ungetwc2.c (main): Define str const.
5304
5305         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
5306         * libio/fwprintf.c: Also define __fwprintf.
5307         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
5308         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
5309         * assert/assert-perr.c: Likewise.
5310         * assert/assert.c: Likewise.
5311         * gmon/gmon.c: Likewise.
5312         * inet/rcmd.c: Likewise.
5313         * malloc/obstack.c: Likewise.
5314         * misc/err.c: Likewise.
5315         * misc/error.c: Likewise.
5316         * misc/getpass.c: Likewise.
5317         * posix/getopt.c: Likewise.
5318         * resolv/res_hconf.c: Likewise.
5319         * stdio-common/perror.c: Likewise.
5320         * stdio-common/psignal.c: Likewise.
5321         * stdlib/fmtmsg.c: Likewise.
5322         * sunrpc/auth_unix.c: Likewise.
5323         * sunrpc/clnt_perr.c: Likewise.
5324         * sunrpc/clnt_tcp.c: Likewise.
5325         * sunrpc/clnt_udp.c: Likewise.
5326         * sunrpc/clnt_unix.c: Likewise.
5327         * sunrpc/svc_simple.c: Likewise.
5328         * sunrpc/svc_tcp.c: Likewise.
5329         * sunrpc/svc_udp.c: Likewise.
5330         * sunrpc/svc_unix.c: Likewise.
5331         * sunrpc/xdr.c: Likewise.
5332         * sunrpc/xdr_array.c: Likewise.
5333         * sunrpc/xdr_rec.c: Likewise.
5334         * sunrpc/xdr_ref.c: Likewise.
5335         * sysdeps/generic/wordexp.c: Likewise.
5336
5337         * po/it.po: Update from translation team.
5338
5339         * misc/err.c: Handle wide oriented stderr stream.
5340
5341 2001-08-14  Tom Rix  <trix@redhat.com>
5342
5343         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
5344         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
5345
5346 2001-08-13  Tom Rix  <trix@redhat.com>
5347
5348         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
5349         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
5350         and __intptr_t.
5351
5352 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5353
5354         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
5355         Store the access registers to the ucontext structure.
5356         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
5357         Likewise.
5358
5359         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
5360         Load the access registers from the ucontext structure.
5361         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
5362         Likewise.
5363
5364         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
5365         offsets to the new ucontext layout.
5366         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
5367
5368         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
5369         of the ucontext structure.
5370         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
5371
5372 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
5373
5374         * misc/error.c (error): Handle wide oriented stderr stream correctly.
5375         (error_at_line): Likewise.
5376
5377         * stdio-common/perror.c (perror): Implement according to standard.
5378         The stream orientation must not be changed if the stream was not
5379         oriented before the call.
5380         * stdio-common/Makefile (tests): Add tst-perror.
5381         * stdio-common/tst-perror.c: New file.
5382
5383
5384 See ChangeLog.12 for earlier changes.