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