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