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