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