1 2002-04-04 Ulrich Drepper <drepper@redhat.com>
3 * misc/dirname.c (dirname): Ignore trailing slashes at end of
4 non-null result [PR libc/2600].
6 * misc/tst-dirname.c: Add more tests.
8 2002-04-03 Ulrich Drepper <drepper@redhat.com>
10 * locale/programs/charmap.c (charmap_read): If the charmap doesn't
11 define a code_set_name provide one based on the filename.
13 * malloc/hooks.c: Define weak_variable correctly for _LIBC.
15 2001-12-28 Andreas Jaeger <aj@suse.de>
17 * time/mktime.c (__mktime_internal): Check for year < 70
20 2002-04-03 Andreas Jaeger <aj@suse.de>
22 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
24 Reported by Andi Kleen <ak@suse.de>.
26 2002-04-03 Ulrich Drepper <drepper@redhat.com>
28 * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
29 * sysdeps/generic/w_lgammaf.c: Likewise.
30 * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
32 * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
33 Adjust for new output format of the backtrace functions.
35 * misc/syslog.c (vsyslog): Only use cleanup handler if
36 _LIBC_REENTRANT is defined [PR libc/2924].
38 * libio/Makefile (tests): Add bug-ungetwc2.
39 * libio/bug-ungetwc2.c: New file.
41 * manual/install.texi: Typographical and grammatical cleanup.
42 Patch by Dennis Grace <dgrace@us.ibm.com>.
44 * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
45 parameter if mtflag. Patch by <jeongyun@innovay.com>.
47 * sunrpc/rpc_svcout.c (printif): Remove third parameter. It was
48 always "&". Adjust callers.
49 Add "_" prefix to several generated definitions.
50 Patch by paul@serice.net [PR libc/3158].
52 2002-04-02 Ulrich Drepper <drepper@redhat.com>
54 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
55 size of _dl_arm_cap_flags.
56 Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
58 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
61 2002-03-22 H.J. Lu <hjl@gnu.org>
63 * scripts/firstversions.awk: Check the first version.
65 2002-04-02 Ulrich Drepper <drepper@redhat.com>
67 * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
68 dependencies must be stable to work correctly.
69 Reported by martin.lubich@datacon.at.
71 * libio/bug-ungetwc1.c: New file.
72 * libio/Makefile (tests): Add bug-ungetwc1.
74 * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
75 if stream was last used for writing.
77 * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
78 number [PR libc/3111].
80 * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
82 * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
84 2002-04-02 Jakub Jelinek <jakub@redhat.com>
86 * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
87 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
88 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
89 * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
90 * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
92 2002-03-30 Jakub Jelinek <jakub@redhat.com>
94 * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
97 2002-03-29 Jakub Jelinek <jakub@redhat.com>
99 * sysdeps/i386/fpu/s_fabs.S: New file.
100 * sysdeps/i386/fpu/s_fabsf.S: New file.
101 * sysdeps/i386/fpu/s_fabsl.S: New file.
102 * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
103 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
104 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
106 2002-04-02 Ulrich Drepper <drepper@redhat.com>
108 * rt/tst-shm.c (do_test): Add one more test for size of shared
111 2002-03-29 Wolfram Gloger <wg@malloc.de>
113 * malloc/malloc.c: Add short description and prototypes for
114 malloc_get_state, malloc_set_state and posix_memalign, for
115 consistency and to avoid warnings with -Wstrict-prototypes.
116 Reported by Andreas Jaeger <aj@suse.de>.
118 2002-04-02 Ulrich Drepper <drepper@redhat.com>
120 * po/gl.po: Update from translation team.
122 2002-03-31 Roland McGrath <roland@frob.com>
124 * hurd/hurdselect.c (_hurd_select): Fix
125 MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
126 Use a union rather than casts to compare mach_msg_type_t as int.
128 2002-03-25 Roland McGrath <roland@frob.com>
130 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
131 check off the end of NAME when it's shorter than 2 chars.
132 Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
134 2002-03-17 Roland McGrath <roland@frob.com>
136 * sysdeps/mach/hurd/i386/sys/io.h: New file.
137 * sysdeps/mach/hurd/i386/ioperm.c: New file.
138 * sysdeps/mach/hurd/i386/Dist: Add them.
139 * sysdeps/mach/hurd/i386/Versions
140 (libc: GLIBC_2.2.6): New set, add ioperm.
141 * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
142 (mach_interface_list): Check for mach_i386.defs.
143 * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
144 * sysdeps/mach/configure: Regenerated.
146 2002-03-22 Ulrich Drepper <drepper@redhat.com>
148 * po/fr.po: Update from translation team.
150 2002-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
152 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
153 getpriority from syscalls list.
155 2002-03-28 Andreas Jaeger <aj@suse.de>
157 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
158 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
159 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
160 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
162 2002-03-27 Andreas Jaeger <aj@suse.de>
164 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
165 sigcontext): Follow further kernel change.
167 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
170 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
171 Change for struct sigcontext change.
173 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
174 Follow changes in struct sigcontext.
176 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
177 sysycall, use wrapper instead.
179 2002-03-26 Andreas Jaeger <aj@suse.de>
181 * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
182 read and write accesses as detailed as possible.
183 (__memcpy_by2): Likewise.
184 (__memcpy_g): Likewise.
187 (__memset_ccn_by4): Likewise.
188 (__memset_ccn_by2): Likewise.
189 (__memset_gcn_by4): Likewise.
190 (__memset_gcn_by2): Likewise.
192 (__memrchr): Likewise.
193 (rawmemchr): Likewise.
194 (__strlen_g): Likewise.
195 (__strcpy_g): Likewise.
196 (__mempcpy_by4): Likewise.
197 (__mempcpy_by2): Likewise.
198 (__mempcpy_byn): Likewise.
199 (__stpcpy_g): Likewise.
200 (__strncpy_by4): Likewise.
201 (__strncpy_by2): Likewise.
202 (__strncpy_byn): Likewise.
203 (__strncpy_gg): Likewise.
204 (__strcat_c): Likewise.
205 (__strcat_g): Likewise.
206 (__strncat_g): Likewise.
207 (__strcmp_gg): Likewise.
208 (__strncmp_g): Likewise.
209 (__strchr_c): Likewise.
210 (__strchr_g): Likewise.
211 (__strchrnul_c): Likewise.
212 (__strchrnul_g): Likewise.
213 (__strrchr_c): Likewise.
214 (__strrchr_g): Likewise.
215 (__strrchr_c): Likewise.
216 (__strrchr_g): Likewise.
217 (__strcspn_c1): Likewise.
218 (__strcspn_cg): Likewise.
219 (__strcspn_g): Likewise.
220 (__strcspn_g): Likewise.
221 (__strspn_c1): Likewise.
222 (__strspn_cg): Likewise.
223 (__strspn_g): Likewise.
224 (__strspn_g): Likewise.
225 (__strpbrk_cg): Likewise.
226 (__strpbrk_g): Likewise.
227 (__strstr_cg): Likewise.
228 (__strstr_g): Likewise.
230 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo. Reported by
231 Michal Ludvig <mludvig@suse.cz>.
233 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
234 compatibilty, adjust for kernel changes.
236 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
237 sigcontext): Adjust for kernel changes.
239 2002-03-25 Andreas Jaeger <aj@suse.de>
241 * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
243 Reported by Artur Zaprzala <zybi@talex.com.pl>.
245 2002-03-24 Andreas Jaeger <aj@suse.de>
247 * manual/memory.texi (Aligned Memory Blocks): Fix typo.
249 * stdio-common/tst-fdopen.c (main): Remove unused variable.
251 * iconv/tst-iconv3.c (main): Use correct printf strings.
253 2002-03-18 Roland McGrath <roland@frob.com>
255 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
256 (CMGROUP_MAX): New macro.
258 2002-03-23 Roland McGrath <roland@frob.com>
260 * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
261 * sysdeps/posix/shm_unlink.c: Likewise.
263 2002-03-22 Roland McGrath <roland@frob.com>
265 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
266 * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
267 under --enable-libio.
268 * sysdeps/mach/hurd/configure: Regenerated.
270 2002-03-23 Roland McGrath <roland@frob.com>
272 * sysdeps/mach/hurd/i386/Makefile
273 (sysdep_routines, shared-only-routines): Don't add framestate,
274 reverting 2001-10-02 change.
275 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
276 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
277 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
278 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
279 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
280 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
281 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
282 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
283 * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
284 Do it here instead, only if [$(unwind-find-fde) = yes].
286 2002-03-23 Andreas Jaeger <aj@suse.de>
288 * signal/signal.h: Fix typo. Patch by Steve Kemp
289 <skx@tardis.ed.ac.uk>.
291 2002-03-22 Andreas Jaeger <aj@suse.de>
293 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
296 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
297 _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
298 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
299 user_fpregs_struct): Rename fwd.
301 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
302 Follow sigcontext changes.
304 2002-03-22 Andreas Jaeger <aj@suse.de>
306 * sysdeps/mips/bits/nan.h: New file. Copy from generic one with
307 changes for NaNs on MIPS.
308 Patch by Hartvig Ekner <hartvige@mips.com>.
310 2002-03-21 Ulrich Drepper <drepper@redhat.com>
312 * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
313 Use realloc if too large.
314 (addgrbyid): Likewise.
315 * nscd/hstcache.c (addhstbyname): Likewise.
316 (addhstbyaddr): Likewise.
317 (addhstbynamev6): Likewise.
318 (addhstbyaddrv6): Likewise.
319 * nscd/pwdcache.c (addpwbyname): Likewise.
320 (addpwbyuid): Likewise.
322 2002-03-21 Andreas Jaeger <aj@suse.de>
324 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
325 _fpstate): Add separate struct for x86-64.
327 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
328 user_fpregs_struct): Change member names to follow kernel.
330 2002-03-20 Ulrich Drepper <drepper@redhat.com>
332 * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
333 Correctly close the UDP connection right away [PR libc/3120].
335 2002-03-20 Andreas Jaeger <aj@suse.de>
337 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
338 user_fpregs_struct): Fix for changed kernel struct.
339 (struct user_regs_struct): Likewise.
340 (struct user): Likewise.
341 Add 32-bit x86 compatibility.
343 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
345 2002-03-19 Andreas Jaeger <aj@suse.de>
347 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
349 2002-03-18 Andreas Jaeger <aj@suse.de>
351 * iconvdata/Makefile: Only run tests when shared libs are
354 2002-03-17 Andreas Jaeger <aj@suse.de>
356 * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
358 * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
360 * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
363 * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New.
365 Patch by Hartvig Ekner <hartvige@mips.com>.
367 * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
368 * sysdeps/generic/unwind-pe.h: Likewise.
370 * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
373 * libio/stdio.c (AL2): Define variant when visibility attribute is
376 * include/libc-symbols.h (_INTVARDEF): Define variant when
377 visibility attribute is not supported.
379 2002-03-16 Ulrich Drepper <drepper@redhat.com>
381 * po/fr.po: Update from translation team.
383 2002-02-25 Bruno Haible <bruno@clisp.org>
385 * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
387 2002-03-15 Ulrich Drepper <drepper@redhat.com>
389 * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
390 buffers if _IO_file_attach failed.
392 * libio/fileops.c (_IO_file_open): Close file descriptor if
393 _IO_SEEKOFF call failed.
395 2002-03-15 H.J. Lu <hjl@gnu.org>
396 Ulrich Drepper <drepper@redhat.com>
398 * configure.in: Check for availability of
399 init_array/fini_array/preinit_array handling in binutils.
400 * config.h.in (HAVE_INITFINI_ARRAY): New macro.
401 * config.make.in (have-initfini-array): New variable.
403 2002-03-15 Ulrich Drepper <drepper@redhat.com>
405 * stdio-common/tst-printf.c (main): Comment out one test which
406 checked the compiler's ability to fold floating-point constants
407 but not really printf.
408 (rfg3): Make s const.
409 * stdio-common/tst-printf.sh: Adjust for removed test.
411 * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
412 internal function. Adjust for internal_function calling convention.
413 * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
414 as internal_function.
416 * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
419 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
420 declaration and definition.
421 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
423 * nss/getXXent_r.c: Likewise.
424 * nss/nsswitch.h (db_lookup_function): Add internal_function to
427 * include/time.h: Declare __localtime_r as hidden.
429 * include/aliases.h: Declare __getaliasent_r as hidden.
430 * include/grp.h: Declare __getgrent_r as hidden.
431 * include/netdb.h: Declare __gethostent_r, __getnetent_r,
432 __getservent_r, and __getprotoent_r as hidden.
433 * include/pwd.h: Declare __getpwent_r as hidden.
434 * include/shadow.h: Declare __getspent_r as hidden.
435 * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
437 * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
438 and __gconv_transliterate as hidden.
439 Add internal_function to __gconv_get_path declaration.
440 * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
441 definition. Add attribute_hidden to __gconv_read_conf definition.
443 2002-03-14 Ulrich Drepper <drepper@redhat.com>
445 * elf/rtld.c: Declare _environ as hidden.
446 * sysdeps/generic/dl-environ.c: Likewise.
447 * sysdeps/generic/dl-sysdep.c: Likewise.
449 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
450 _dl_mcount_internal as hidden.
452 * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
453 * sysdeps/generic/dl-brk.c: New file.
454 * sysdeps/generic/dl-sbrk.c: New file.
455 * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
456 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
458 * elf/dl-minimal.c (malloc): Declare _end as hidden.
459 (__errno_location): New function. Declare errno as hidden.
460 * elf/rtld.c (_dl_argc): Define as hidden.
461 (_dl_skip_args): Define as hidden.
462 (_begin, _end): Declare as hidden.
463 * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
464 * sysdeps/generic/entry.h (_start): Declare as hidden.
465 * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
466 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
467 _dl_runtime_resolve and _dl_runtime_profile as hidden.
468 (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
470 2002-03-14 Roland McGrath <roland@frob.com>
472 * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
474 * Makeconfig (%.v.i, %.v): New implicit rules.
475 (preprocess-versions): Variable removed.
476 ($(common-objpfx)shlib-versions.v.i): New target giving just the
477 shlib-versions input files as dependencies.
478 ($(common-objpfx)soversions.i): Depend on that instead of the input
479 files. Use it as input instead of using a pipeline.
480 (postclean-generated): Append soversions.i, shlib-versions.v, and
481 shlib-versions.v.i here.
482 * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
483 the Versions.def input files as dependencies.
484 ($(common-objpfx)Versions.v.i): Likewise for Versions files.
485 ($(common-objpfx)Versions.all): Depend on that instead of the input
486 files. Use it as input instead of using a pipeline.
487 ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
488 (postclean-generated): Append those .v and .v.i files here.
490 2002-03-14 Jakub Jelinek <jakub@redhat.com>
492 * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
493 * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
496 2002-03-14 Jakub Jelinek <jakub@redhat.com>
498 * sysdeps/generic/mp_clz_tab.c: New file.
499 * sysdeps/i386/mp_clz_tab.c: New file.
500 * sysdeps/hppa/mp_clz_tab.c: New file.
501 * sysdeps/powerpc/mp_clz_tab.c: New file.
502 * stdlib/Makefile (aux): Revert last patch.
503 * math/Makefile (gmp-objs): Likewise.
505 2002-03-13 Paul Eggert <eggert@twinsun.com>
507 * time/strftime.c: Comment fixes for references to obsolescent
508 standards, In most cases the simplest fix is to remove the
509 confusing comments. Cross-referencing all the standards properly
510 is a bit of a pain, and it should be enough to put that info in
511 the documentation as I did in my recent time.texi patch.
513 2002-03-13 Paul Eggert <eggert@twinsun.com>
515 * manual/time.texi (Formatting Calendar Time):
516 ISO C99 also specifies the E and O modifiers.
517 %P is a GNU extension, and is not in ISO C99.
518 Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
519 %T is also in ISO C99.
520 The RFC 822 example is not valid in arbitrary locales.
521 Reword the POSIX.2 wording slightly, to make it a bit clearer
522 that POSIX.2 formats are also supported by later POSIX versions.
523 If a format was introduced in ISO C99 it is also required by
526 2002-03-13 Ulrich Drepper <drepper@redhat.com>
528 * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
529 _sys_nerr_internal with INTVARDEF2.
530 * include/libc-symbols.h (INTVARDEF2): New macro.
531 * include/stdio.h (_sys_errlist_internal): Declare as hidden.
532 (_sys_nerr_internal): Library.
534 * sysdeps/posix/signal.c (_sigintr): Define as hidden.
535 * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
537 * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
539 2002-03-13 Wolfram Gloger <wg@malloc.de>
541 * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
543 2002-03-02 Andreas Schwab <schwab@suse.de>
545 * stdio-common/vfprintf.c (process_arg): Fix decimal format with
546 'h' flag and positional arg.
547 * stdio-common/tst-printf.c (rfg3): New function to test
548 positional arguments.
549 (main): Fix some warnings.
551 2002-03-13 Jakub Jelinek <jakub@redhat.com>
553 * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
554 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
556 2002-03-13 Ulrich Drepper <drepper@redhat.com>
558 * grp/initgroups.c (__nss_group_data): Declare as hidden.
560 * include/locale.h (_nl_C_locobj): Declare as hidden.
562 * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
563 * time/strptime.c (_nl_C_LC_TIME): Likewise.
565 * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
567 * include/sys/gmon.h: Declare _gmonparam as hidden.
569 * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
570 (__ctype32_wctrans): Likewise.
571 (__ctype32_width): Likewise.
573 * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
576 * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
578 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Define as
579 hidden. Change all users of these variables.
581 * posix/regex_internal.h (__re_error_msgid): Renamed from
582 re_error_msgid. Declare as hidden.
583 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Declare as
586 * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
587 (__printf_function_table): Likewise.
588 * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
590 (__printf_function_table): Likewise.
592 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
593 __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
595 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
596 * nss/nsswitch.c: Declare _nss_*_database as hidden.
598 * stdlib/wctomb.c (__no_r_state): Declare as hidden.
599 * stdlib/mbtowc.c (__no_r_state): Define as hidden.
601 2002-03-12 Ulrich Drepper <drepper@redhat.com>
603 * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
604 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
605 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
606 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
607 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
608 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
609 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
610 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
611 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
612 _nl_C_LC_CTYPE_width: Declare as hidden.
613 * include/locale.h: Declare _nl_locale_file_list.
614 * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
615 * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
616 * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
617 * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
618 * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
619 * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
620 * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
621 * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
622 * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
623 * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
624 * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
625 * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
626 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
627 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
628 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
629 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
630 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
631 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
632 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
633 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
634 _nl_C_LC_CTYPE_width, and as hidden.
635 * locale/findlocale.c: Declare _nl_C as hidden.
636 * locale/newlocale.c: Likewise.
637 * locale/setlocale.c: Define _nl_C as hidden. Remove declaration of
638 _nl_locale_file_list.
639 * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
640 _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
641 Define _nl_C_locobj as hidden.
643 * malloc/mtrace.c (_mtrace_file): Define as hidden.
644 (_mtrace_line): Likewise.
646 * include/time.h: Declare __mon_yday as hidden.
647 * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
649 * libio/libioP.h: Declare __libio_codecvt as hidden.
650 * libio/fileops.c: Declare __libio_translit as hidden.
651 * libio/iofwide.c: Define __libio_translit as hidden.
653 * login/getutent_r.c: Define __libc_utmp_lock as hidden.
654 * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
655 * login/getutline_r.c: Likewise.
656 * login/utmpname.c: Likewise.
658 * login/utmp-private.h: Declare __libc_utmp_file_functions,
659 __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
660 __libc_utmp_file_name as hidden.
662 * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
663 * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
664 * locale/freelocale.c: Likewise.
665 * locale/lc-time.c: Likewise.
667 * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
668 (__libc_ptyname2): Likewise.
669 * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
671 (__libc_ptyname2): Likewise.
673 * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
674 * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
675 * sysdeps/generic/init-first.c: Likewise.
676 * sysdeps/i386/init-first.c: Likewise.
677 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
678 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
679 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
680 * sysdeps/sh/init-first.c: Likewise.
681 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
682 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
684 * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
685 (_itowa_upper_digits): Likewise.
687 * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
688 * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
691 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
692 _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
693 _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
694 _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
696 * gmon/gmon.c (__bb_head): Define as hidden.
697 * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
699 * argp/argp-parse.c (_argp_hang): Define as static.
701 * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
702 handling in latest compilers.
704 * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
706 * libio/fileops.c (_IO_file_jumps): Likewise.
707 * libio/stdfiles.c (_IO_list_all): Likewise.
708 * libio/wfileops.c (_IO_wfile_jumps): Likewise.
710 * malloc/malloc.h: Move __libc_malloc_initialized declaration to
712 * include/malloc.h: Add __libc_malloc_initialized declaration
713 here. Mark variable hidden.
714 * malloc/malloc.c: Include <malloc.h> not "malloc.h".
716 * elf/dl-open.c (__libc_argc): Declare as hidden.
717 (__libc_argv): Likewise.
718 * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
719 (__libc_argv): Likewise.
720 * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
721 __libc_argv as hidden.
722 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
723 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
724 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
725 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
727 * include/stdlib.h (__libc_drand48_data): Declare as hidden.
728 * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
729 * stdlib/erand48.c: Likewise.
730 * stdlib/jrand48.c: Likewise.
731 * stdlib/lcong48.c: Likewise.
732 * stdlib/lrand48.c: Likewise.
733 * stdlib/mrand48.c: Likewise.
734 * stdlib/nrand48.c: Likewise.
735 * stdlib/seed48.c: Likewise.
736 * stdlib/srand48.c: Likewise.
738 * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
739 (_itoa_lower_digits_internal): New declaration.
740 (_itoa_upper_digits_internal): New declaration.
741 (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
742 * stdio-common.h (_itoa_lower_digits_internal): New declaration.
743 (_itoa_upper_digits_internal): New declaration.
744 (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
746 * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
747 * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
749 * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
750 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
752 * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
753 (_itowa_lower_digits): Likewise.
754 (_itowa_upper_digits): Likewise.
755 * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
756 (_itowa_upper_digits): Likewise.
758 * intl/plural-exp.h (attribute_hidden): Define as empty macro if
760 (GERMANIC_PLURAL): Declare as hidden.
762 * posix/getopt.c (__getopt_initialized): Declare as hidden.
763 (attribute_hidden): Define as empty macro if not already defined.
765 * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
766 (__gconv_max_path_elem_len): Likewise.
767 (__gconv_path_envvar): Likewise.
769 * math/Makefile (gmp-objs): Remove mp_clz_tab.
770 * stdlib/Makefile (aux): Remove mp_clz_tab.
771 * stdlib/mp_clz_tab.c: Removed. Not needed anywhere.
773 * stdlib/exit.h (__exit_funcs): Declare as hidden.
775 * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
777 * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
778 _nl_category_names, _nl_category_name_sizes, _nl_current,
779 _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
781 * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
782 (_nl_current_default_domain): Likewise
783 (_nl_state_lock): Likewise.
784 * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
785 (_nl_current_default_domain): Likewise
786 (_nl_state_lock): Likewise.
787 * intl/bindtextdom.c (_nl_state_lock): Likewise.
789 * stdlib/fpioconst.h (__tens): Add attribute_hidden.
790 (_fpioconst_pow10): Likewise.
792 * include/time.h (_tmbuf): Add attribute_hidden.
794 * time/tzset.c (tzstring_list): Define as static.
796 * include/time.h: Add attribute_hidden to __tzname_cur_max and
797 __use_tzfile declaration.
799 * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
800 and __wcsmbs_last_locale declaration.
802 2002-02-25 Paul Eggert <eggert@twinsun.com>
804 * timezone/Makefile (tzbases): Move systemv from here...
805 (tzlinks): to here, since the entries in systemv were all changed
806 from Zone to Link lines in tz-2001a. Bug reported (and patch
807 tested) by Peter Breitenlohner.
809 2002-03-07 Jakub Jelinek <jakub@redhat.com>
811 * time/tst-posixtz.c (tests): Add new tests.
812 (main): Test whether tzset() sets daylight properly.
814 2002-03-06 Jakub Jelinek <jakub@redhat.com>
816 * time/tzset.c (tz_compute): Move __daylight, __tzname and
817 __tzname_cur_max setting...
818 (tzset_internal): ...here.
820 2002-03-06 Jakub Jelinek <jakub@redhat.com>
822 * time/tzset.c (compute_change): Don't return any value.
823 (tz_compute): Likewise. Don't handle southern hemisphere here.
824 (__tz_convert): But here.
826 2002-03-11 Ulrich Drepper <drepper@redhat.com>
828 * manual/examples/mkfsock.c: Include <string.h> as well.
829 Patch by Alain De Carolis <alaind@wseurope.com>.
831 2002-03-06 Isamu Hasegawa <isamu@yamato.ibm.com>
833 * posix/regexec.c (re_match): Fix incorrect register sizes.
834 (re_search): Likewise.
836 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
838 * posix/regcomp.c (regfree): Remove a disused condition.
839 * posix/regex_internal.c (re_acquire_state): Likewise.
840 (re_acquire_state_context): Likewise.
841 (register_state): Remove a redundant malloc invocation.
842 * posix/regex_internal.h: (re_state_table_entry): Simplify
845 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
847 * posix/regcomp.c (regcomp): Add __builtin_expect to error
849 (regerror): Likewise.
851 (re_compile_internal): Likewise.
852 (init_dfa): Likewise.
853 (init_word_char): Likewise.
854 (create_initial_state): Likewise.
856 (analyze_tree): Likewise.
857 (duplicate_node): Likewise.
858 (calc_eclosure): Likewise.
859 (calc_eclosure_iter): Likewise.
861 (parse_reg_exp): Likewise.
862 (parse_branch): Likewise.
863 (parse_expression): Likewise.
864 (parse_subexp): Likewise.
865 (parse_dup_op): Likewise.
866 (parse_bracket_exp): Likewise.
867 (build_equiv_class): Likewise.
868 (build_charclass): Likewise.
869 (build_word_op): Likewise.
870 (fetch_number): Likewise.
871 (create_tree): Likewise.
872 (duplicate_tree): Likewise.
873 * posix/regex.c (BE): New macro.
874 * posix/regexec.c (re_match): Add __builtin_expect to error
876 (re_match_2): Likewise.
877 (re_search): Likewise.
878 (re_search_internal): Likewise.
879 (check_matching): Likewise.
880 (proceed_next_node): Likewise.
881 (set_regs): Likewise.
882 (sift_states_backward): Likewise.
883 (add_epsilon_backreference): Likewise.
884 (transit_state): Likewise.
885 (transit_state_sb): Likewise.
886 (transit_state_mb): Likewise.
887 (transit_state_bkref): Likewise.
888 (transit_state_bkref_loop): Likewise.
889 (build_trtable): Likewise.
890 (group_nodes_into_DFAstates): Likewise.
891 (match_ctx_init): Likewise.
892 (match_ctx_add_entry): Likewise.
893 * posix/regex_internal.c (re_string_construct): Add __builtin_expect
894 to error handling conditions.
895 (re_string_construct_toupper): Likewise.
896 (build_wcs_buffer): Likewise.
897 (build_wcs_upper_buffer): Likewise.
898 (build_upper_buffer): Likewise.
899 (re_string_translate_buffer): Likewise.
900 (re_node_set_alloc): Likewise.
901 (re_node_set_init_1): Likewise.
902 (re_node_set_init_2): Likewise.
903 (re_node_set_init_copy): Likewise.
904 (re_node_set_intersect): Likewise.
905 (re_node_set_init_union): Likewise.
906 (re_node_set_merge): Likewise.
907 (re_node_set_insert): Likewise.
908 (re_dfa_add_node): Likewise.
909 (re_acquire_state): Likewise.
910 (re_acquire_state_context): Likewise.
911 (create_new_state_common): Likewise.
912 (register_state): Likewise.
913 (create_ci_new_state): Likewise.
914 (create_cd_new_state): Likewise.
915 (re_string_context_at): Remove redundant condition.
917 2002-01-16 Roger Sayle <roger@eyesopen.com>
919 * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
921 * sysdeps/i386/i586/strlen.S: Fix typo in comment.
923 2002-03-11 Jakub Jelinek <jakub@redhat.com>
925 * sysdeps/i386/elf/configure.in: Fix comment.
927 * sysdeps/sparc/sparc64/configure.in: New.
928 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
929 if .dynamic comes before .got.
930 * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
932 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
933 HP_TIMING_ACCUM): Fix typos.
935 2002-03-11 Ulrich Drepper <drepper@redhat.com>
937 * string/strfry.c: Add some more randomness to the seed.
938 Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
940 * po/es.po: Update from translation team.
941 * po/fr.po: Likewise.
943 * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
945 * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
946 when determining type of format.
947 Patch by James Antill <james@anqd.org> [PR libc/2787].
949 2002-03-04 Jakub Jelinek <jakub@redhat.com>
951 * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
953 2002-03-11 Roland McGrath <roland@frob.com>
955 * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
957 * Versions.def (libc): Add GLIBC_2.2.6.
958 * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
959 * sysdeps/mach/hurd/errnos.awk: In generated macro, use
960 __errno_location instead of __hurd_errno_location, and don't inline it.
961 * sysdeps/mach/hurd/bits/errno.h: Regenerated.
962 * hurd/errno.c: New file.
963 * hurd/Makefile (routines): Add errno.
965 2002-03-11 Ulrich Drepper <drepper@redhat.com>
967 * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
968 ridiculously large widths and precisions [PR libc/3026].
970 2002-03-11 Andreas Jaeger <aj@suse.de>
972 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
974 Patch by Susanne Oberhauser <froh@SuSE.de>.
976 2002-03-11 Ulrich Drepper <drepper@redhat.com>
978 * inet/rexec.c (ahostbuf): Define as static.
980 * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
981 (__ctype32_wctrans): Likewise.
982 * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
983 * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
984 (__ctype32_wctrans): Likewise.
985 (__ctype32_width): Likewise.
987 * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
988 They were never exported anyway.
990 * gmon/gmon.c (_gmonparam): Add attribute_hidden.
991 * gmon/sys/gmon.h: Remove declaration of _gmonparam. It wasn't
993 * include/sys/gmon.h: Declare _gmonparam.
995 * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
996 symbols for getdents64. They were never exported.
998 2002-03-09 Roland McGrath <roland@frob.com>
1000 * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
1001 Reported by Jon Arney <jarney1@cox.net>.
1003 2002-02-23 Roland McGrath <roland@frob.com>
1005 * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
1007 (__hurd_errno_location): Function removed.
1009 2002-03-06 Andreas Jaeger <aj@suse.de>
1011 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
1014 2002-03-04 Andreas Jaeger <aj@suse.de>
1016 * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New.
1018 * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
1021 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New.
1023 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New.
1025 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New.
1027 * sysdeps/x86_64/bits/setjmp.h: New.
1029 * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New.
1031 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New.
1033 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
1035 * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
1036 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
1038 2002-02-28 Bo Thorsen <bo@suse.de>
1040 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
1043 2002-03-03 Andreas Jaeger <aj@suse.de>
1045 * sysdeps/x86_64/bits/wordsize.h: New file.
1047 * elf/nodlopenmod2.c: Provide prototype to avoid warning.
1048 * elf/tst-tlsmod1.c: Likewise.
1050 * posix/regcomp.c: Get regex.h from include dir for internal
1053 * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
1054 to libc-internal.h and include it.
1055 * include/libc-internal.h: Add __init_misc.
1057 * misc/init-misc.c: Include libc-internal.h for prototypes.
1059 * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
1061 * misc/error.c [_LIBC]: Include libioP.h for prototype of
1064 2002-03-03 Ulrich Drepper <drepper@redhat.com>
1066 * posix/regcomp.c: Compatibility changes to allow using the code
1069 2002-02-28 Hartvig Ekner <hartvige@mips.com>
1071 * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
1074 2002-03-02 Ulrich Drepper <drepper@redhat.com>
1076 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
1077 of .str elements in the returned data structure.
1079 * elf/elf.h: Add Alpha TLS bits.
1081 2002-02-28 Jakub Jelinek <jakub@redhat.com>
1083 * sysdeps/unix/sysv/linux/nice.c: New file.
1085 2002-03-01 Ulrich Drepper <drepper@redhat.com>
1087 * elf/Makefile (dl-routines): Add dl-origin.
1088 (elide-routines.os): Add dl-origin.
1089 * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
1090 * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
1092 * include/libc-symbols.c: Define attribute_hidden depending on
1093 HAVE_VISIBILITY_ATTRIBUTE. Add definition of INTVARDEF.
1095 * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
1096 * elf/dl-load.c: Likewise.
1097 * elf/rtld.c: Likewise.
1098 * include/unistd.h: Declare __libc_enable_secure_internal.
1099 * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
1100 Use INTUSE with __libc_enable_secure.
1101 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
1103 * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
1104 * elf/dl-error.c: Likewise,
1105 * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
1107 * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
1108 * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
1109 function definition. Use INTDEF with _dl_get_origin.
1110 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
1112 * elf/dl-init.c: Use INTUSE with _dl_starting_up.
1113 * elf/rtld.c: Likewise. Use INTVARDEF for _dl_starting_up.
1115 * elf/dl-profile.c: Use INTDEF for _dl_mcount.
1116 * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
1117 * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
1119 * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
1120 * elf/dl-deps.c: Likewise.
1121 * elf/dl-error.c: Likewise.
1122 * elf/dl-fini.c: Likewise.
1123 * elf/dl-init.c: Likewise.
1124 * elf/dl-load.c: Likewise.
1125 * elf/dl-lookup.c: Likewise.
1126 * elf/dl-reloc.c: Likewise.
1127 * elf/dl-version.c: Likewise.
1128 * elf/do-lookup.h: Likewise.
1129 * sysdeps/arm/dl-machine.h: Likewise.
1130 * sysdeps/cris/dl-machine.h: Likewise.
1131 * sysdeps/hppa/dl-machine.h: Likewise.
1132 * sysdeps/i386/dl-machine.h: Likewise.
1133 * sysdeps/m68k/dl-machine.h: Likewise.
1134 * sysdeps/powerpc/dl-machine.h: Likewise.
1135 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
1136 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
1137 * sysdeps/sh/dl-machine.h: Likewise.
1138 * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
1139 * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
1140 * sysdeps/x86_64/dl-machine.h: Likewise.
1141 * elf/rtld.c: Use INTDEF for _dl_argv. Use rtld_progrname instead of
1142 _dl_argv[0]. Use INTUSE with _dl_argv.
1143 * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
1144 * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
1146 2002-02-28 Jakub Jelinek <jakub@redhat.com>
1148 * elf/rtld.c (_rtld_global): Remove .protected.
1149 (_rtld_local): Strong alias to _rtld_global.
1150 * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
1152 * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
1153 _rtld_local instead of _rtld_global.
1154 (_rtld_local): Add hidden extern, possibly in .sdata section.
1155 * configure.in: Add tests for visibility attribute and .sdata.
1156 * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
1157 * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
1158 * sysdeps/arm/dl-machine.h: Likewise.
1159 * sysdeps/generic/ldsodefs.h: Likewise.
1160 * sysdeps/hppa/dl-machine.h: Likewise.
1161 * sysdeps/cris/dl-machine.h: Likewise.
1162 * sysdeps/i386/dl-machine.h: Likewise.
1163 * sysdeps/ia64/dl-machine.h: Likewise.
1164 * sysdeps/m68k/dl-machine.h: Likewise.
1165 * sysdeps/mips/mips64/dl-machine.h: Likewise.
1166 * sysdeps/mips/dl-machine.h: Likewise.
1167 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1168 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
1169 * sysdeps/sh/dl-machine.h: Likewise.
1170 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
1171 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
1172 * sysdeps/x86_64/dl-machine.h: Likewise.
1174 2002-02-28 Ulrich Drepper <drepper@redhat.com>
1176 * login/login.c (login): Always initialize ut_line field
1179 2002-02-28 Jakub Jelinek <jakub@redhat.com>
1181 * sysdeps/i386/Makefile (sysdep_routines): Add
1183 (shared-only-routines): Likewise.
1184 * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
1185 (shared-only-routines): Likewise.
1186 * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
1187 (shared-only-routines): Likewise.
1188 * sysdeps/wordsize-32/divdi3.c: New file.
1190 2002-02-28 Ulrich Drepper <drepper@redhat.com>
1192 * locale/iso-4217.def: Remove obsolete currencies for countries
1195 2002-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
1197 * posix/regcomp.c (regcomp): Remove a redundant condition.
1198 (init_word_char): Add a check on malloc failure.
1199 (create_initial_state): Likewise.
1200 (duplicate_node): Likewise.
1201 (calc_eclosure): Likewise.
1202 (calc_eclosure_iter): Likewise.
1203 (parse_expression): Likewise.
1204 (parse_bracket_exp): Remove unnecessary malloc invocations.
1205 (build_equiv_class): Likewise.
1206 (build_charclass): Likewise.
1207 * posix/regex_internal.c (re_node_set_intersect): Add a check
1209 (re_node_set_add_intersect): Likewise.
1210 (re_node_set_merge): Likewise.
1211 (re_acquire_state): Likewise.
1212 (re_acquire_state_context): Likewise.
1213 (create_newstate_common): Likewise.
1214 (register_state): Likewise.
1215 (create_ci_newstate): Likewise.
1216 (create_cd_newstate): Likewise.
1217 * posix/regex_internal.h: Fix prototypes of re_acquire_state
1218 and re_acquire_state_context.
1219 * posix/regexec.c (regexec): Suit it to the error handling of
1221 (re_match): Likewise.
1222 (re_search): Likewise.
1223 (re_search_internal): Add a check on malloc failure.
1224 (acquire_init_state_context): Likewise.
1225 (check_matching): Likewise.
1226 (proceed_next_node): Likewise.
1227 (set_regs): Likewise.
1228 (sift_states_backward): Likewise.
1229 (sift_states_iter_bkref): Likewise.
1230 (add_epsilon_backreference): Likewise.
1231 (transit_state): Likewise.
1232 (transit_state_sb): Likewise.
1233 (transit_state_mb): Likewise.
1234 (transit_state_bkref_loop): Likewise.
1235 (build_trtable): Likewise.
1236 (group_nodes_into_DFAstates): Likewise.
1237 (match_ctx_init): Likewise.
1238 (match_ctx_add_entry): Likewise.
1240 2002-02-27 Ulrich Drepper <drepper@redhat.com>
1242 * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
1243 l_libname if profiling is enabled [PR libc/2916].
1245 * sysdeps/ia64/dl-tls.h: New file.
1247 2002-02-27 Jakub Jelinek <jakub@redhat.com>
1249 * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
1250 Work around an Alpha gas bug.
1252 2002-02-27 Ulrich Drepper <drepper@redhat.com>
1254 * catgets/open_catalog.c (__open_catalog): Fix typo in code which
1255 uses read to load the catalog.
1256 Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
1258 2002-02-26 Ulrich Drepper <drepper@redhat.com>
1260 * posix/Makefile (distribute): Add regcomp.c, regexec.c,
1261 regex_internal.c, and regex_internal.h.
1262 (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
1263 * posix/regex.c: Complete rewrite.
1264 * posix/regexec.c: New file.
1265 * posix/regcomp.c: New file.
1266 * posix/regex_internal.c: New file.
1267 * posix/regex_internal.h: New file.
1268 * posix/regex.h (RE_ICASE): New macro.
1269 Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
1271 * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
1272 ungetwc. It's a macro.
1273 * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
1275 Reported by Jason Merrill <jason@redhat.com>.
1277 2002-02-25 Jakub Jelinek <jakub@redhat.com>
1279 * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
1280 position to fp->_offset if it is set.
1281 * stdio-common/Makefile (tests): Add tst-fdopen.
1282 * stdio-common/tst-fdopen.c: New test.
1284 2002-02-25 Jakub Jelinek <jakub@redhat.com>
1286 * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
1287 * stdio-common/tst-ungetc.c (main): Add another test.
1289 2002-02-25 Ulrich Drepper <drepper@redhat.com>
1291 * assert/assert-perr.c: Use INTUSE to reference functions and variables
1292 inside libc itself. Use INTDEF and INTDEF2 to define appropriate
1293 aliases. Add prototypes for the new aliases.
1294 * assert/assert.c: Likewise.
1295 * include/libc-symbols.h: Likewise.
1296 * include/stdio.h: Likewise.
1297 * include/netinet/in.h: Likewise.
1298 * include/rpc/auth.h: Likewise.
1299 * include/rpc/auth_unix.h: Likewise.
1300 * include/rpc/key_prot.h: Likewise.
1301 * include/rpc/pmap_prot.h: Likewise.
1302 * include/rpc/pmap_rmt.h: Likewise.
1303 * include/rpc/rpc_msg.h: Likewise.
1304 * include/rpc/xdr.h: Likewise.
1305 * inet/gethstbyad_r.c: Likewise.
1306 * inet/gethstbynm2_r.c: Likewise.
1307 * inet/gethstbynm_r.c: Likewise.
1308 * inet/gethstent_r.c: Likewise.
1309 * inet/in6_addr.c: Likewise.
1310 * libio/__fpurge.c: Likewise.
1311 * libio/filedoalloc.c: Likewise.
1312 * libio/fileops.c: Likewise.
1313 * libio/ftello.c: Likewise.
1314 * libio/ftello64.c: Likewise.
1315 * libio/genops.c: Likewise.
1316 * libio/iofclose.c: Likewise.
1317 * libio/iofdopen.c: Likewise.
1318 * libio/iofflush.c: Likewise.
1319 * libio/iofflush_u.c: Likewise.
1320 * libio/iofgetpos.c: Likewise.
1321 * libio/iofgetpos64.c: Likewise.
1322 * libio/iofgets.c: Likewise.
1323 * libio/iofgets_u.c: Likewise.
1324 * libio/iofopen.c: Likewise.
1325 * libio/iofopncook.c: Likewise.
1326 * libio/iofputs.c: Likewise.
1327 * libio/iofread.c: Likewise.
1328 * libio/iofread_u.c: Likewise.
1329 * libio/iofsetpos.c: Likewise.
1330 * libio/iofsetpos64.c: Likewise.
1331 * libio/ioftell.c: Likewise.
1332 * libio/iofwrite.c: Likewise.
1333 * libio/iogetline.c: Likewise.
1334 * libio/iogets.c: Likewise.
1335 * libio/iogetwline.c: Likewise.
1336 * libio/iolibio.h: Likewise.
1337 * libio/iopadn.c: Likewise.
1338 * libio/iopopen.c: Likewise.
1339 * libio/ioseekoff.c: Likewise.
1340 * libio/ioseekpos.c: Likewise.
1341 * libio/iosetbuffer.c: Likewise.
1342 * libio/iosetvbuf.c: Likewise.
1343 * libio/ioungetc.c: Likewise.
1344 * libio/ioungetwc.c: Likewise.
1345 * libio/iovdprintf.c: Likewise.
1346 * libio/iovsprintf.c: Likewise.
1347 * libio/iovsscanf.c: Likewise.
1348 * libio/libioP.h: Likewise.
1349 * libio/memstream.c: Likewise.
1350 * libio/obprintf.c: Likewise.
1351 * libio/oldfileops.c: Likewise.
1352 * libio/oldiofclose.c: Likewise.
1353 * libio/oldiofdopen.c: Likewise.
1354 * libio/oldiofgetpos.c: Likewise.
1355 * libio/oldiofgetpos64.c: Likewise.
1356 * libio/oldiofopen.c: Likewise.
1357 * libio/oldiofsetpos.c: Likewise.
1358 * libio/oldiofsetpos64.c: Likewise.
1359 * libio/oldiopopen.c: Likewise.
1360 * libio/oldstdfiles.c: Likewise.
1361 * libio/putc.c: Likewise.
1362 * libio/setbuf.c: Likewise.
1363 * libio/setlinebuf.c: Likewise.
1364 * libio/stdfiles.c: Likewise.
1365 * libio/stdio.c: Likewise.
1366 * libio/strops.c: Likewise.
1367 * libio/vasprintf.c: Likewise.
1368 * libio/vscanf.c: Likewise.
1369 * libio/vsnprintf.c: Likewise.
1370 * libio/vswprintf.c: Likewise.
1371 * libio/wfiledoalloc.c: Likewise.
1372 * libio/wfileops.c: Likewise.
1373 * libio/wgenops.c: Likewise.
1374 * libio/wstrops.c: Likewise.
1375 * malloc/mtrace.c: Likewise.
1376 * misc/error.c: Likewise.
1377 * misc/syslog.c: Likewise.
1378 * nss/getXXbyYY_r.c: Likewise.
1379 * nss/getXXent_r.c: Likewise.
1380 * nss/hosts-lookup.c: Likewise.
1381 * stdio-common/getw.c
1382 * stdio-common/printf-prs.c: Likewise.
1383 * stdio-common/printf_fp.c: Likewise.
1384 * stdio-common/printf_size.c: Likewise.
1385 * stdio-common/putw.c: Likewise.
1386 * stdio-common/scanf.c: Likewise.
1387 * stdio-common/sprintf.c: Likewise.
1388 * stdio-common/tmpfile64.c: Likewise.
1389 * stdio-common/vfprintf.c: Likewise.
1390 * stdio-common/vfscanf.c: Likewise.
1391 * stdlib/strfmon.c: Likewise.
1392 * sunrpc/auth_des.c: Likewise.
1393 * sunrpc/auth_none.c: Likewise.
1394 * sunrpc/auth_unix.c: Likewise.
1395 * sunrpc/authdes_prot.c: Likewise.
1396 * sunrpc/authuxprot.c: Likewise.
1397 * sunrpc/clnt_perr.c: Likewise.
1398 * sunrpc/clnt_raw.c: Likewise.
1399 * sunrpc/clnt_tcp.c: Likewise.
1400 * sunrpc/clnt_udp.c: Likewise.
1401 * sunrpc/clnt_unix.c: Likewise.
1402 * sunrpc/key_call.c: Likewise.
1403 * sunrpc/key_prot.c: Likewise.
1404 * sunrpc/openchild.c: Likewise.
1405 * sunrpc/pm_getmaps.c: Likewise.
1406 * sunrpc/pm_getport.c: Likewise.
1407 * sunrpc/pmap_clnt.c: Likewise.
1408 * sunrpc/pmap_prot.c: Likewise.
1409 * sunrpc/pmap_prot2.c: Likewise.
1410 * sunrpc/pmap_rmt.c: Likewise.
1411 * sunrpc/rpc_cmsg.c: Likewise.
1412 * sunrpc/rpc_prot.c: Likewise.
1413 * sunrpc/svc_authux.c: Likewise.
1414 * sunrpc/svc_raw.c: Likewise.
1415 * sunrpc/svc_simple.c: Likewise.
1416 * sunrpc/svc_tcp.c: Likewise.
1417 * sunrpc/svc_udp.c: Likewise.
1418 * sunrpc/svc_unix.c: Likewise.
1419 * sunrpc/xdr.c: Likewise.
1420 * sunrpc/xdr_array.c: Likewise.
1421 * sunrpc/xdr_mem.c: Likewise.
1422 * sunrpc/xdr_rec.c: Likewise.
1423 * sunrpc/xdr_ref.c: Likewise.
1424 * sunrpc/xdr_stdio.c: Likewise.
1425 * sysdeps/generic/_strerror.c: Likewise.
1426 * sysdeps/generic/printf_fphex.c: Likewise.
1427 * sysdeps/generic/tmpfile.c: Likewise.
1428 * sysdeps/gnu/errlist.awk: Likewise.
1429 * sysdeps/gnu/errlist.c: Likewise.
1431 * libio/Makefile (routines): Remove iosprint.
1432 * libio/iosprintf.c: Removed
1435 2002-02-24 Ulrich Drepper <drepper@redhat.com>
1437 * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
1438 non_dynamic_init and exported now.
1439 * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
1440 * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
1442 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
1443 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
1444 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
1446 2002-02-23 Ulrich Drepper <drepper@redhat.com>
1448 * elf/dl-close.c (free_slotinfo): Check for end of list and return
1451 * locale/iso-639.def: Add language codes for Walloon.
1453 * elf/dl-fini.c (_dl_fini): Print some final statistics on the
1454 total number of relocations performed.
1456 * elf/sprof.c (load_profdata): If do_test provide information as
1457 to why loading failed.
1458 * elf/dl-profile.c (_dl_start_profile): Initialize all of
1461 * csu/set-init.c: Moved to...
1462 * sysdeps/mach/hurd/set-init.c: ...here. New file.
1463 * csu/Makefile: Don't compile set-init.
1464 * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
1465 * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
1467 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
1468 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
1469 * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
1471 * misc/init-misc.c: Always export __init_misc. Don't define hooks for
1474 2002-02-22 Ulrich Drepper <drepper@redhat.com>
1476 * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
1477 * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
1478 * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
1479 (_dl_deallocate_tls): New function.
1480 * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
1483 2002-02-21 Jakub Jelinek <jakub@redhat.com>
1485 * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
1486 * stdio-common/tst-fseek.c (main): Add test for this.
1488 2002-02-19 Ulrich Drepper <drepper@redhat.com.>
1490 * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
1492 2002-02-19 Jakub Jelinek <jakub@redhat.com>
1494 * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
1495 pointer before dereferencing.
1497 2002-02-18 Roland McGrath <roland@frob.com>
1499 * sysdeps/mach/hurd/times.c: Fix typo in last change.
1501 * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
1502 Use task_policy in place of task_priority.
1504 * sysdeps/generic/bits/mman.h
1505 (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
1506 * sysdeps/mach/msync.c: New file.
1508 * sysdeps/mach/powerpc/syscall.S: New file.
1510 * mach/msg.c [MACH_MSG_OVERWRITE]
1511 (__mach_msg_trap, __mach_msg_overwrite): New functions.
1512 * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
1514 * sysdeps/mach/configure.in: Check for clock.defs to put into
1515 mach_interface_list.
1516 * sysdeps/mach/configure: Regenerated.
1518 * mach/Makefile (mach-machine): New variable, set from $(base-machine).
1519 ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
1520 ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
1521 Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
1522 (mach-shortcuts): Add device_read_overwrite_request,
1523 device_read_overwrite, vm_read_overwrite, thread_switch.
1525 * configure.in (base_machine): Set to $machine by default.
1526 * configure: Regenerated.
1528 * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
1529 or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
1530 * sysdeps/mach/configure: Regenerated.
1531 * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
1533 * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
1535 * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
1537 * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
1538 Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
1540 2002-02-17 Roland McGrath <roland@frob.com>
1542 * sysdeps/mach/hurd/times.c
1543 [NO_CREATION_TIME] (startup_time): New static variable.
1544 [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
1545 (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
1546 creation_time from task_basic_info.
1547 (__times): Use __gettimeofday instead of __host_get_time.
1549 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
1550 Use untyped Mach IPC message format.
1552 * hurd/catch-exc.c: Include <assert.h>, missing from last change.
1554 * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
1555 _S_catch_exception_raise_state_identity,
1556 _hurdsig_fault_catch_exception_raise_state,
1557 _hurdsig_fault_catch_exception_raise_state_identity.
1559 * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
1561 * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
1562 __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
1564 * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
1565 `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
1567 * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
1568 (fmh, unfmh): Define these functions only #if FMH. Otherwise define
1569 them as no-op macros.
1570 [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
1571 (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
1573 * sysdeps/powerpc/dl-machine.h
1574 (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
1576 * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
1577 Use untyped Mach IPC message format.
1579 * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
1580 Handle untyped Mach IPC message formats.
1582 * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
1583 Expect different argument conventions when this is defined.
1584 [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
1585 [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
1586 * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
1587 [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
1588 for OSF Mach variant.
1589 (faulted): Use mig_reply_error_t for REPLY.
1590 (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
1591 in __thread_set_exception_ports call.
1592 (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
1593 __mach_port_set_attributes in place of __mach_port_set_qlimit.
1595 * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
1596 before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
1597 on Darwin, which includes bogons.
1599 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
1600 variable LOADBASE so it's not declared when it's not used.
1602 2002-02-16 Roland McGrath <roland@frob.com>
1604 * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
1605 to use BI.creation_time.
1607 * mach/Machrules (MIG): Add -x c to CPP value passed down.
1609 * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
1610 * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
1611 * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
1612 host_page_size instead of vm_statistics.
1614 * sysdeps/mach/Makefile (mach-before-compile): Don't include
1615 mach_interface.h here, since not all variants use that name.
1617 * sysdeps/mach/configure.in: Add some checks for Mach headers
1618 to ensure a sane installation.
1619 (mach_interface_list): Define this variable by checking for .defs
1620 files found in various variants.
1621 * configure.in (mach_interface_list): AC_SUBST this.
1622 * config.make.in (mach-interface-list): New substituted variable.
1623 * mach/Makefile (user-interfaces): Define this using the value
1624 of $(mach-interface-list) instead of mach, mach4.
1625 Updated other references to mach_interface to use it as well.
1627 * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
1629 * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
1630 mig_reply_error_t for OSF Mach variant.
1632 * mach/Makefile (routines): Remove bootprivport.
1633 * mach/bootprivport.c: File removed. It has never been used.
1635 * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
1636 Grok the OSF flavor of message format.
1637 (mach_msg_destroy_port): For MAKE_SEND and
1638 MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
1639 no-senders notification.
1641 2002-02-06 Roland McGrath <roland@frob.com>
1643 * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
1644 to here if 2.0 compatibility enabled ...
1645 (libc: GLIBC_2.1.3): ... from here.
1647 2002-02-15 Ulrich Drepper <drepper@redhat.com>
1649 * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
1651 * elf/dl-close.c (_dl_close): Likewise.
1653 2002-02-14 Ulrich Drepper <drepper@redhat.com>
1655 * elf/Makefile: Add rules to build and run tst-tls8.
1656 * elf/tst-tls8.c: New file.
1657 * elf/tst-tlsmod4.c: New file.
1659 * stdlib/test-a64l.c (tests): Add more test cases.
1661 * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
1662 Reported by Walter Harms <WHarms@bfs.de>.
1664 2002-02-11 Jes Sorensen <jes@trained-monkey.org>
1666 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
1667 definitions for struct sigcontext.
1668 Suggested by David Mosberger-Tang.
1670 2002-02-13 Ulrich Drepper <drepper@redhat.com>
1672 * elf/dl-close.c (remove_slotinfo): New function. Handles everything
1673 for removing reference of module in slotinfo list.
1674 (_dl_close): Use remove_slotinfo.
1675 * sysdeps/generic/dl-tls.c: General pretty printing.
1676 (oom): Define only if SHARED.
1677 (_dl_next_tls_modid): Correct starting point for the case we assume
1678 there is a gap. Add missing instruction grouping (doh!). Correct
1679 tests for reaching maximum index.
1680 * elf/Makefile: Add rules to build and run tst-tls7.
1681 * elf/tst-tls7.c: New file.
1682 * elf/tst-tlsmod3.c: New file.
1684 * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
1686 * elf/tst-tlsmod2.c: Likewise.
1688 * elf/dl-close.c (_dl_close): When closing an object using TLS
1689 either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
1690 true. Increment dl_tls_generation only if we closed any TLS-using
1692 * elf/tst-tls6.c: New file.
1693 * elf/Makefile: Add rules to build and run tst-tls6.
1695 * po/da.po: Update from translation team.
1697 * locale/categories.def: Fix typo [PR libc/2948].
1698 * po/Makefile (BROKEN_LINGUAS): Works with current gettext
1700 * locale/iso-4217.def: Update from official version [PR libc/2950].
1701 * glibcbug.in: Honor TMPDIR [PR libc/2951].
1702 * locale/programs/ld-collate.c (collate_finish): Bail out with a
1703 message if input is too confusion instead of using assert.
1704 (collate_read): Don't crash on unknown symbol [PR libc/2952].
1705 Patches by Alastair McKinstry <alastair@pdd.3com.com>.
1707 * elf/tst-tls1.c: Move #include "tls-macros.h" instead #ifdef USE_TLS.
1708 * elf/tst-tls2.c: Likewise.
1709 * elf/tst-tls3.c: Likewise.
1711 2002-02-13 Jakub Jelinek <jakub@redhat.com>
1713 * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
1715 2002-02-13 Ulrich Drepper <drepper@redhat.com>
1717 * elf/dl-open.c (dl_open_worker): Only bump the generation counter
1718 if this is really necessary.
1720 * elf/dl-close.c (_dl_close): Implement freeing entries in the
1722 (free_mem): Free memory for the slotinfo array if possible.
1724 2002-02-12 Andreas Schwab <schwab@suse.de>
1726 * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
1728 2002-02-12 Ulrich Drepper <drepper@redhat.com>
1730 * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
1732 (oom): New function.
1733 (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
1734 (_dl_determine_tlsoffset): Likewise.
1735 (_dl_allocate_tls): Likewise.
1736 (__TLS_GET_ADDR): Define if not already defined.
1737 (_dl_tls_symaddr): New function.
1738 (allocate_and_init): New function.
1739 (__tls_get_addr): Actually implement handling of generation counter
1740 and deferred allocation.
1741 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
1742 add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
1744 Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
1745 Declare _dl_tls_symaddr.
1746 * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
1748 * include/link.h (struct link_map): Remove l_tls_nextimage and
1750 * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
1751 instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
1752 (_dl_vsym): Likewise.
1753 * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
1755 (dl_main): Allow PT_TLS be present for empty segment. Remove
1756 nextimage list handling. Instead add all modules using TLS to
1757 dl_tls_dtv_slotinfo_list.
1758 * elf/dl-open.c (dl_open_worker): After successfully loading all
1759 objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
1760 * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
1761 empty segment don't do anything. Remove handling of initimage list.
1762 * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
1763 (GLIBC_PRIVATE): Add _dl_tls_symaddr.
1764 * elf/dl-minimal.c: Define __libc_memalign.
1765 * elf/dl-support.c: Remove _dl_initimage_list. Add
1766 _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
1768 * include/stdlib.h: Declare __libc_memalign.
1770 * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
1771 * elf/tst-tls4.c: New file.
1772 * elf/tst-tls5.c: New file.
1773 * elf/tst-tlsmod2.c: New file.
1775 * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
1777 * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
1779 * elf/tst-tls1.c: Use test-skeleton.c.
1780 * elf/tst-tls2.c: Likewise.
1781 * elf/tst-tls3.c: Likewise.
1783 * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
1785 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
1787 * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
1789 2002-02-10 Ulrich Drepper <drepper@redhat.com>
1791 * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
1793 * elf/tst-tls3.c: New file.
1794 * elf/tst-tlsmod1.c: New file.
1795 * elf/Makefile: Add rules to build and run tst-tls3.
1797 * sysdeps/i386/dl-machine.h: Include <tls.h>.
1798 (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
1801 * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
1803 * po/fr.po: Update from translation team.
1805 * elf/tls-macros.h: Add alternative macros for use in PIC.
1807 * elf/dl-lookup.c: Include <tls.h>.
1808 * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
1810 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
1811 required by passing pointer to last element of the list.
1813 * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
1814 l_tls_initimage to a place where it actually is performed.
1816 * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
1817 after globfree() calls.
1819 * elf/dl-deps.c (struct openaux_args): Add open_mode element.
1820 (openaux): Pass open_mode as new last argument to _dl_map_object.
1821 (_dl_map_object_deps): Add new argument open_mode. Initialize
1822 open_mode element of args variable with it.
1823 * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
1824 _dl_map_object_deps.
1825 * elf/rtld.c (dl_main): Add zero as last parameter to
1826 _dl_map_object_deps call.
1827 * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
1828 * elf/nodlopen2.c: New file.
1829 * elf/nodlopenmod2.c: New file.
1830 * elf/Makefile: Add rules to build and run nodlopen2.
1832 * elf/tst-tls1.c: Move TLS helper macros to...
1833 * elf/tls-macros.h: ...here. New file.
1834 * elf/tst-tls2.c: New file.
1835 * elf/Makefile (tests): Add tst-tls2.
1836 (distribute): Add tls-macros.h.
1838 * po/sv.po: Update from translation team.
1840 * elf/tst-tls1.c (main): Add complete set of tests. Split
1841 architecture specific definitions from the actual test code.
1843 * po/tr.po: Update from translation team.
1845 2002-02-09 Ulrich Drepper <drepper@redhat.com>
1847 * elf/Makefile (tests): Add tst-tls1.
1848 * elf/tst-tls1.c: New file.
1850 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
1851 alignment of TCB for now.
1853 * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
1854 initialization image for the application itself.
1856 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
1857 loop to initialize TLS block.
1859 2002-02-08 Richard Henderson <rth@redhat.com>
1861 * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
1862 _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
1864 * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
1866 2002-02-09 Jakub Jelinek <jakub@redhat.com>
1868 * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
1870 2002-02-08 Ulrich Drepper <drepper@redhat.com>
1872 * po/ca.po: Update from translation team.
1873 * po/sk.po: Likewise.
1875 * elf/rtld.c (_dl_start_final): Install DTV explicitly.
1876 (dl_main): Move dtv/static TLS handling before relocation.
1877 Unconditionally call _dl_tlsoffset. Call _dl_allocate_tls and
1878 TLS_INIT_TP to allocate and install the dtv/static TLS block.
1879 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
1880 so far uses TLS initialize GL(dl_tls_static_size) and
1881 GL(dl_tls_static_align) to account for the TCB.
1882 (_dl_allocate_tls): New function.
1883 * sysdeps/generic/ldsodefs.h (rtld_global): Add
1884 _dl_initial_dtv_malloced.
1886 * configure.in: Test for __builtin_memset more realistically.
1888 * csu/version.c (banner): If TLS support is available say so.
1890 2002-02-04 H.J. Lu <hjl@gnu.org>
1892 * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
1894 (__dl_runtime_resolve): Likewise.
1896 * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
1899 2001-11-15 H.J. Lu <hjl@gnu.org>
1901 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
1902 <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
1904 * sysdeps/unix/sysv/linux/mips/sys/user.h: New.
1906 2002-02-07 H.J. Lu <hjl@gnu.org>
1908 * sysdeps/mips/atomicity.h (compare_and_swap): Remove
1910 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
1913 2002-02-07 Ulrich Drepper <drepper@redhat.com>
1915 * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
1917 * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
1918 ___tls_get_addr_internal.
1919 (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
1921 * po/ko.po: Update from translation team.
1923 2002-02-07 Jakub Jelinek <jakub@redhat.com>
1925 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
1926 attribute, change __pad{1,2} type to unsigned int.
1927 (struct stat64): Remove packed attribute.
1929 2002-02-07 Ulrich Drepper <drepper@redhat.com>
1931 * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
1933 2002-02-07 Andreas Schwab <schwab@suse.de>
1935 * configure.in: Fix check for -zcombreloc.
1937 2002-02-06 H.J. Lu <hjl@gnu.org>
1939 * config.h.in (HAVE_BUILTIN_MEMSET): New.
1940 * configure.in: Check if __builtin_memset really works.
1941 * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
1942 __GNUC_PREREQ (2, 96) before using __builtin_memset.
1944 2002-02-06 Jakub Jelinek <jakub@redhat.com>
1946 * io/bug-ftw3.c (main): Don't try the test if root.
1948 2002-02-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
1950 * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
1952 * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
1953 Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
1954 * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
1956 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
1957 a weak alias for __clone.
1958 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
1959 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
1960 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
1961 * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
1962 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
1963 a weak alias for __mmap64.
1965 2002-02-05 H.J. Lu <hjl@gnu.org>
1967 * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
1968 (atomic_add): Likewise.
1969 (compare_and_swap): Likewise.
1970 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
1972 2002-02-07 Ulrich Drepper <drepper@redhat.com>
1974 * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
1976 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
1977 alignment of the TCB and store total size and alignment of static
1978 TLS block in _dl_tls_static_size and _dl_tls_static_align.
1979 tls_index is a typedef.
1980 * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
1981 _dl_tls_static_align.
1982 * sysdeps/i386/dl-tls.h: tls_index is a typedef.
1983 * elf/dl-support.c: Define _dl_tls_static_size and
1984 _dl_tls_static_align.
1986 2002-02-06 Ulrich Drepper <drepper@redhat.com>
1988 * configure.in: Add --without-tls option.
1989 * sysdeps/i386/elf/configure.in: Don't check for TLS support if
1990 --without-tls is given.
1992 * sysdeps/generic/dl-tls.c: Include <tls.h>.
1994 * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
1996 2002-02-06 Roland McGrath <roland@frob.com>
1998 * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
1999 * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
2001 * scripts/versions.awk: Improve error message for missing version.
2002 Each version inherits from the last one only if they have the same
2003 nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
2004 but not GLIBC_x and FOO_y.
2006 * scripts/firstversions.awk: Handle libraries that don't have each
2007 particular version named in the third column of shlib-versions.
2009 * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
2011 2002-02-06 Ulrich Drepper <drepper@redhat.com>
2013 * Versions.def [ld]: Add GLIBC_2.3.
2014 * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
2015 * elf/Makefile (dl-routines): Add dl-tls.
2016 (distribute): Add dl-tls.h.
2017 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
2018 _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
2019 Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
2020 * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
2021 along with the other info in the link map. Change queueing of init
2022 images for double linked list. Use _dl_next_tls_modid to compute
2024 * elf/rtld.c (_dl_start_final): Store alignment requirement
2025 along with the other info in rtld map and executable map.
2026 (dl_main): Add ld.so to the init image list if necessary. Compute
2027 final module ID with _dl_next_tls_modid.
2028 * include/link.h (struct link_map): Add l_tls_previmage and
2030 * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
2031 * sysdeps/i386/elf/Versions: New file.
2032 * sysdeps/generic/dl-tls.c: New file.
2033 * sysdeps/generic/dl-tls.h: New file.
2034 * sysdeps/i386/dl-tls.h: New file.
2036 2002-02-06 Roland McGrath <roland@frob.com>
2038 * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
2039 * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
2041 2002-01-05 Roland McGrath <roland@frob.com>
2043 * sysdeps/mach/configure.in: New file.
2044 * sysdeps/mach/configure: New generated file.
2046 * mach/Makefile (user-interfaces): Remove default_pager_helper.
2047 It has never been used by anything.
2049 2002-02-06 H.J. Lu <hjl@gnu.org>
2051 * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
2054 2002-02-06 Ulrich Drepper <drepper@redhat.com>
2056 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
2057 attribute((packed)) to counter stupid people misusing gcc options.
2058 (struct stat64): Likewise.
2060 2002-02-05 Ulrich Drepper <drepper@redhat.com>
2062 * elf/rtld.c (dl_main): Correct indentation. Use bool as type for
2063 the variables which are used as booleans.
2065 2002-02-06 Andreas Jaeger <aj@suse.de>
2067 * include/libc-symbols.h (INTUSE): Renamed from INT.
2068 * elf/dl-deps.c: Change users.
2069 * sysdeps/generic/dl-sysdep.c: Likewise.
2070 * sysdeps/generic/dl-cache.c: Likewise.
2071 * elf/dl-reloc.c: Likewise.
2072 * elf/rtld.c: Likewise.
2073 * elf/dl-version.c: Likewise.
2074 * elf/dl-load.c: Likewise.
2075 * elf/dl-dst.h: Likewise.
2076 * elf/dl-init.c: Likewise.
2077 * elf/dl-error.c: Likewise.
2078 * elf/dl-fini.c: Likewise.
2079 * elf/dl-runtime.c: Likewise.
2080 * elf/do-lookup.h: Likewise.
2082 * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
2084 * stdio-common/_itowa.h: Likewise.
2086 2002-02-05 Ulrich Drepper <drepper@redhat.com>
2088 * elf/dl-minimal.c: Define _itoa_lower_digits.
2090 * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
2093 * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
2094 loading modules with the DF_STATIC_TLS flag set.
2095 * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
2097 * include/link.h (struct link_map): Add l_flags field.
2098 * elf/elf.h (DF_STATIC_TLS): New definition.
2100 * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
2101 * dlfcn/bug-dlopen1.c: New file. By Bruno Haible.
2103 * elf/rtld.c (process_dl_debug): Correct printing help message.
2104 * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
2107 * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
2108 definition and pass &errno in use of this variable.
2109 Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
2111 2002-02-04 Andreas Schwab <schwab@suse.de>
2113 * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
2114 * locale/programs/charmap-dir.c: Wrap calls that output messages
2115 with WITH_CUR_LOCALE. Include "localedef.h" first.
2116 * locale/programs/charmap.c: Likewise.
2117 * locale/programs/ld-address.c: Likewise.
2118 * locale/programs/ld-collate.c: Likewise.
2119 * locale/programs/ld-ctype.c: Likewise.
2120 * locale/programs/ld-identification.c: Likewise.
2121 * locale/programs/ld-measurement.c: Likewise.
2122 * locale/programs/ld-messages.c: Likewise.
2123 * locale/programs/ld-monetary.c: Likewise.
2124 * locale/programs/ld-name.c: Likewise.
2125 * locale/programs/ld-numeric.c: Likewise.
2126 * locale/programs/ld-paper.c: Likewise.
2127 * locale/programs/ld-telephone.c: Likewise.
2128 * locale/programs/ld-time.c: Likewise.
2129 * locale/programs/linereader.c: Likewise.
2130 * locale/programs/linereader.h: Likewise.
2131 * locale/programs/localedef.c: Likewise.
2132 * locale/programs/locfile.c: Likewise.
2133 * locale/programs/repertoire.c: Likewise.
2135 2002-02-05 Ulrich Drepper <drepper@redhat.com>
2137 * elf/rtld.c (_dl_start_final): Determine load address to locate
2138 ehdr with GL(dl_rtld_map).l_map_start.
2140 * po/ca.po: Update from translation team.
2142 * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
2143 * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
2145 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
2147 * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
2149 2002-02-04 Ulrich Drepper <drepper@redhat.com>
2151 * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
2152 * include/link.h (struct link_map): Add various members for TLS
2154 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
2155 _rtld_tlsoffset, add _dl_initimage_list.
2156 * sysdeps/i386/dl-lookupcfg.h: New file.
2157 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
2158 TLS relocation. When using TLS we now use RESOLVE_MAP.
2159 (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
2162 * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
2165 * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
2166 thread-pointer as soon as possible.
2167 * sysdeps/generic/ldsodefs.h: Include <tls.h>. Define first TLS
2168 elements in rtld_global.
2169 * sysdeps/generic/tls.h: New file.
2170 * elf/Makefile (distribute): Add tls.h.
2171 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
2172 relocations. Not complete yet.
2174 * resolv/resolv.h: Allow user to define __need_res_state and only
2175 define __res_start structure then.
2176 * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
2178 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
2179 dl_cpuclock_offset initialization to _dl_start_final.
2180 (_dl_show_auxv): Avoid unnecessary sign extension.
2181 * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
2183 2002-02-03 Ulrich Drepper <drepper@redhat.com>
2185 * config.h.in: Add HAVE_TLS_SUPPORT.
2186 * sysdeps/i386/elf/configure.in: New file.
2188 2002-02-03 Andreas Schwab <schwab@suse.de>
2190 * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
2191 * sysdeps/posix/writev.c: Use ssize_t for bytes_written. Fix comment.
2193 2002-02-03 Thorsten Kukuk <kukuk@suse.de>
2195 * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
2196 alloca if the memory reqirements are too high.
2198 2002-02-03 Ulrich Drepper <drepper@redhat.com>
2200 * elf/dl-load.c (decompose_rpath): Avoid using strstr.
2201 * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
2202 the former is available anyway and speed isn't important here.
2203 * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
2204 * elf/dl-version.c (match_symbol): Likewise.
2205 (_dl_check_map_versions): Likewise.
2206 * elf/rtld.c (process_envvars): Likewise.
2207 (print_statistics): Likewise.
2208 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
2209 * elf/dl-minimal.c (_itoa): Always define it. Make it work for all
2210 bases. Add assert to catch uses of unimplemented features.
2211 (__strsep): Add assert to catch uses of unimplemented features.
2212 * elf/dl-object.c (_dl_new_object): Don't use rawmemchr. Use strchr
2213 and avoid inline optimization.
2214 * elf/rtld.c (process_envvars): Likewise.
2215 * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
2216 * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
2217 * elf/rtld.c (dl_main): Avoid strsep inline optimization.
2219 2002-02-02 Ulrich Drepper <drepper@redhat.com>
2221 * stdio-common/_itoa.h: Minor simplifications of the code.
2222 * stdio-common/_itoa.c: Likewise.
2224 * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
2225 instead of _dl_printf for debugging info output.
2227 * manual/examples/mkfsock.c (make_named_socket): Make sure name is
2228 always NUL-terminated. Patch by Chris D. Sloan <cds@cs.hmc.edu>.
2230 2002-02-01 H.J. Lu <hjl@gnu.org>
2232 * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
2233 (atomic_add): Likewise.
2234 (compare_and_swap): Return 0 only when failed to compare. Use
2237 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
2240 2002-02-03 kaz Kojima <kkojima@rr.iij4u.or.jp>
2242 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
2244 2002-02-02 Ulrich Drepper <drepper@redhat.com>
2246 * elf/dl-minimal.c (__strsep): New minimal implementation.
2248 2002-02-02 Paul Eggert <eggert@twinsun.com>
2250 * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
2251 (__mktime_internal): If no tm_isdst is requested, prefer solutions
2252 with tm_isdst > 0 when the requested time falls within a
2253 spring-forward gap [PR libc/2894].
2255 2002-02-03 Andreas Schwab <schwab@suse.de>
2257 * stdio-common/tst-rndseek.c: Increase timeout.
2259 2002-02-02 Ulrich Drepper <drepper@redhat.com>
2261 Change ld.so to not use functions which are exported. One cannot
2262 interpose them anyway. Use INT() to mark uses, INTDEF() to mark
2264 * include/libc-symbols.h: Define INT and INTDEF.
2265 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
2266 _dl_signal_error_internal, _dl_map_object_internal,
2267 _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
2268 _dl_lookup_versioned_symbol_internal,
2269 _dl_relocate_object_internal, _dl_debug_state_internal,
2270 _dl_start_profile_internal, and _dl_unload_cache_internal.
2271 * include/dlfcn.h: Declare _dl_catch_error_internal.
2272 * elf/rtld.c: Use INT for calls to any of the *_internal functions
2273 above. Add INTDEF to function definitions.
2274 * elf/dl-debug.c: Likewise.
2275 * elf/dl-deps.c: Likewise.
2276 * elf/dl-dst.h: Likewise.
2277 * elf/dl-error.c: Likewise.
2278 * elf/dl-fini.c: Likewise.
2279 * elf/dl-init.c: Likewise.
2280 * elf/dl-load.c: Likewise.
2281 * elf/dl-lookup.c: Likewise.
2282 * elf/dl-misc.c: Likewise.
2283 * elf/dl-open.c: Likewise.
2284 * elf/dl-profile.c: Likewise.
2285 * elf/dl-reloc.c: Likewise.
2286 * elf/dl-runtime.c: Likewise.
2287 * elf/dl-version.c: Likewise.
2288 * elf/do-lookup.h: Likewise.
2289 * sysdeps/generic/dl-cache.c: Likewise.
2290 * sysdeps/generic/dl-sysdep.c: Likewise.
2291 * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
2292 instead of _dl_init.
2293 * sysdeps/arm/dl-machine.h: Likewise.
2294 * sysdeps/cris/dl-machine.h: Likewise.
2295 * sysdeps/hppa/dl-machine.h: Likewise.
2296 * sysdeps/i386/dl-machine.h: Likewise.
2297 * sysdeps/ia64/dl-machine.h: Likewise.
2298 * sysdeps/m68k/dl-machine.h: Likewise.
2299 * sysdeps/mips/dl-machine.h: Likewise.
2300 * sysdeps/mips/mips64/dl-machine.h: Likewise.
2301 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
2302 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
2303 * sysdeps/sh/dl-machine.h: Likewise.
2304 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2305 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
2306 * sysdeps/x86_64/dl-machine.h: Likewise.
2307 * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
2309 * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
2310 and _dl_debug_initialize.
2312 * elf/dl-object.c (_dl_new_object): Avoid using strrchr. We have
2314 * elf/rtld.c (dl_main): Avoid strrchr.
2315 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
2316 result of readlink. Search from the back for '/'.
2318 * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
2319 strncpy if possible.
2321 * sysdeps/generic/dl-environ.c (unsetenv): Optimize. Don't use
2323 * elf/dl-load.c (is_dst): Optimize. Don't call strncmp twice.
2324 * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
2325 strspn, and strcspn.
2326 (process_envvars): Don't use strcspn.
2328 * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
2329 (_dl_dst_substitute): Likewise.
2331 2002-02-01 Ulrich Drepper <drepper@redhat.com>
2333 * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
2334 code which is never used when relocating ld.so itself.
2336 * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
2337 starting ld.so itself. Move l_addr variable initialization closer
2339 (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
2341 2002-02-01 Jakub Jelinek <jakub@redhat.com>
2343 * Versions.def (libc): Add GLIBC_PRIVATE.
2344 (libdb, libnss_db, libdb1): Remove.
2345 (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
2346 libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
2347 (libpthread): Add GLIBC_PRIVATE.
2348 (libresolv): Likewise, remove GLIBC_2.1.
2349 (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
2350 GLIBC_2.2.3, GLIBC_2.3.
2351 * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
2352 * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
2353 _dl_sym, _dl_vsym): Likewise.
2354 (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
2355 _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
2356 _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
2357 _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
2358 _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
2359 _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
2360 _dl_relocate_object, _dl_signal_error, _dl_start_profile,
2361 _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
2363 (_dl_object_relocation_scope): Remove.
2364 * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
2365 * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
2366 __gconv_cache): Move to GLIBC_PRIVATE.
2367 * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
2368 __internal_setnetgrent): Likewise.
2369 * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
2370 __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
2371 * locale/Versions (__collate_element_hash, __collate_element_strings,
2372 __collate_symbol_classes, __collate_symbol_hash,
2373 __collate_symbol_strings, _nl_current_LC_COLLATE,
2374 _nl_current_LC_CTYPE): Likewise.
2375 * misc/Versions (__libc_fsync, __libc_msync): Likewise.
2376 * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
2377 (libnss_nis, libnss_nisplus): Likewise.
2378 * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
2379 _nss_files_parse_spent): Move to GLIBC_PRIVATE.
2380 (libnss_files): Move all symbols to GLIBC_PRIVATE.
2381 * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
2382 __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
2383 __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
2384 * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
2385 __ns_get16, __ns_samename): Likewise.
2386 (libnss_dns): Move all symbols to GLIBC_PRIVATE.
2387 * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
2389 * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
2390 __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
2391 __libc_connect): Likewise.
2392 * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
2394 * stdlib/Versions (__libc_system): Likewise.
2395 * sunrpc/Versions (__rpc_thread_destroy): Likewise.
2396 * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
2397 * sysdeps/ia64/fpu/Versions: Likewise.
2398 * sysdeps/ia64/Versions: Likewise.
2399 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2400 * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
2402 * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
2403 * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
2404 __libc_sigaction): Likewise.
2405 * termios/Versions (__libc_tcdrain): Likewise.
2407 * misc/sys/cdefs (__attribute_noinline__): Define.
2408 * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
2409 __attribute_noinline__.
2411 * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
2412 * elf/dl-xstat64.c: New file.
2413 * elf/dl-fxstat64.c: New file.
2414 * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
2415 don't export __fxstat64 at multiple versions.
2416 * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
2417 * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
2419 2002-01-18 Isamu Hasegawa <isamu@yamato.ibm.com>
2421 * locale/program/ld-collate.c (collate_finish): Assign a wide
2422 char collation sequence value to multi character collating
2423 elements, and avoid over writing by non-character elements.
2425 2002-02-01 Ulrich Drepper <drepper@redhat.com>
2427 * elf/Makefile (distribute): Add dl-procinfo.c.
2428 * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
2429 * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
2431 2002-02-01 Jakub Jelinek <jakub@redhat.com>
2433 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
2435 * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
2436 _rtld_global struct.
2437 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
2438 * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
2439 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
2440 * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
2441 * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
2442 _dl_fpu_control_set): Remove unused externs.
2443 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
2444 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
2445 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
2446 related variables in _rtld_global struct.
2447 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
2448 * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
2451 2002-02-01 Ulrich Drepper <drepper@redhat.com>
2453 * sysdeps/generic/dl-procinfo.c: New file.
2455 2002-02-01 Andreas Schwab <schwab@suse.de>
2457 * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
2459 2002-02-01 Ulrich Drepper <drepper@redhat.com>
2461 * elf/rtld.c (_dl_start): Mark as internal_function.
2462 * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
2464 (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
2465 General pretty printing.
2467 2002-01-31 Ulrich Drepper <drepper@redhat.com>
2469 * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
2470 * elf/dl-reloc.c: Pretty printing.
2471 * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
2472 procinfo-related variables in rtld_global struct.
2473 * elf/dl-support.c: Likewise.
2474 * elf/rtld.c: Likewise.
2475 * sysdeps/i386/i686/Makefile: Likewise.
2476 * sysdeps/i386/i686/hp-timing.c: Likewise.
2477 * sysdeps/i386/i686/hp-timing.h: Likewise.
2478 * sysdeps/ia64/Makefile: Likewise.
2479 * sysdeps/ia64/hp-timing.c: Likewise.
2480 * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
2481 * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
2482 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
2483 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
2484 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
2485 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
2486 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
2487 * sysdeps/x86_64/Makefile: Likewise.
2489 * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
2490 _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
2491 _dl_debug_fd to rtld_global.
2492 * elf/Versions: Likewise.
2493 * elf/dl-close.c: Likewise.
2494 * elf/dl-iteratephdr.c: Likewise.
2495 * elf/dl-lookup.c: Likewise.
2496 * elf/dl-misc.c: Likewise.
2497 * elf/dl-open.c: Likewise.
2498 * elf/dl-support.c: Likewise.
2499 * elf/do-lookup.h: Likewise.
2500 * elf/rtld.c: Likewise.
2501 * sysdeps/generic/dl-cache.c: Likewise.
2502 * sysdeps/generic/dl-sysdep.c: Likewise.
2503 * sysdeps/ia64/Versions: Likewise.
2504 * sysdeps/unix/clock_gettime.c: Likewise.
2505 * sysdeps/unix/clock_settime.c: Likewise.
2506 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
2507 * sysdeps/sparc/Versions: Removed.
2508 * sysdeps/i386/i686/Versions : Removed.
2509 * sysdeps/x86_64/Versions: Removed.
2510 * configure.in: Define HAVE_PROTECTED if .protected is available.
2511 * config.h.in: Add entry for HAVE_PROTECTED.
2513 2002-01-31 Jakub Jelinek <jakub@redhat.com.
2515 * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
2516 code in struct _rtld_global. Export this struct, remove all
2517 exports for the signal variables.
2518 * sysdeps/arm/dl-machine: Likewise.
2519 * sysdeps/generic/dl-origin: Likewise.
2520 * sysdeps/generic/dl-sysdep: Likewise.
2521 * sysdeps/generic/dl-cache: Likewise.
2522 * sysdeps/hppa/dl-fptr: Likewise.
2523 * sysdeps/hppa/dl-machine: Likewise.
2524 * sysdeps/cris/dl-machine: Likewise.
2525 * sysdeps/i386/dl-machine: Likewise.
2526 * sysdeps/ia64/dl-machine: Likewise.
2527 * sysdeps/m68k/dl-machine: Likewise.
2528 * sysdeps/mach/hurd/dl-sysdep: Likewise.
2529 * sysdeps/mips/mips64/dl-machine: Likewise.
2530 * sysdeps/mips/dl-machine: Likewise.
2531 * sysdeps/powerpc/elf/libc-start: Likewise.
2532 * sysdeps/powerpc/dl-machine: Likewise.
2533 * sysdeps/powerpc/dl-start: Likewise.
2534 * sysdeps/sparc/sparc32/dl-machine: Likewise.
2535 * sysdeps/sparc/sparc64/dl-machine: Likewise.
2536 * sysdeps/sh/dl-machine: Likewise.
2537 * sysdeps/s390/s390-32/dl-machine: Likewise.
2538 * sysdeps/s390/s390-64/dl-machine: Likewise.
2539 * sysdeps/unix/sysv/aix/libc-start: Likewise.
2540 * sysdeps/unix/sysv/aix/start-libc: Likewise.
2541 * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
2542 * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
2543 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
2544 * sysdeps/x86_64/dl-machine: Likewise.
2546 2002-01-31 Ulrich Drepper <drepper@redhat.com>
2548 * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
2551 2002-01-31 Andreas Schwab <schwab@suse.de>
2553 * sysdeps/posix/readv.c: Check for ssize_t overflow.
2555 2002-01-31 Andreas Schwab <schwab@suse.de>
2557 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
2558 reference to _dl_pagesize.
2560 2002-01-30 Ulrich Drepper <drepper@redhat.com>
2562 * Versions.def [ld]: Add GLIBC_2.3.
2563 * elf/dl-addr.c: Move global variables for SHARED code in struct
2564 _rtld_global. Export this struct, remove all exports for the
2566 * elf/dl-close.c: Likewise.
2567 * elf/dl-conflict.c: Likewise.
2568 * elf/dl-debug.c: Likewise.
2569 * elf/dl-deps.c: Likewise.
2570 * elf/dl-dst.h: Likewise.
2571 * elf/dl-error.c: Likewise.
2572 * elf/dl-fini.c: Likewise.
2573 * elf/dl-init.c: Likewise.
2574 * elf/dl-iteratephdr.c: Likewise.
2575 * elf/dl-libc.c: Likewise.
2576 * elf/dl-load.c: Likewise.
2577 * elf/dl-lookup.c: Likewise.
2578 * elf/dl-minimal.c: Likewise.
2579 * elf/dl-object.c: Likewise.
2580 * elf/dl-open.c: Likewise.
2581 * elf/dl-profile.c: Likewise.
2582 * elf/dl-profstub.c: Likewise.
2583 * elf/dl-reloc.c: Likewise.
2584 * elf/dl-runtime.c: Likewise.
2585 * elf/dl-support.c: Likewise.
2586 * elf/dl-sym.c: Likewise.
2587 * elf/dl-version.c: Likewise.
2588 * elf/do-lookup.h: Likewise.
2589 * elf/do-rel.h: Likewise.
2590 * elf/dynamic-link.h: Likewise.
2591 * elf/rtld.c: Likewise.
2592 * sysdeps/generic/dl-cache.c: Likewise.
2593 * sysdeps/generic/dl-sysdep.c: Likewise.
2594 * sysdeps/generic/ldsodefs.h: Likewise.
2595 * sysdeps/generic/libc-start.c: Likewise.
2596 * sysdeps/i386/dl-machine.h: Likewise.
2597 * sysdeps/ia64/dl-fptr.c: Likewise.
2598 * sysdeps/ia64/dl-machine.h: Likewise.
2599 * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
2600 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
2601 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
2602 * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
2603 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
2604 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
2605 * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
2606 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
2608 2002-01-29 Ulrich Drepper <drepper@redhat.com>
2610 * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
2612 (DL_STATIC_FUNCTION_ADDRESS): Likewise.
2614 * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
2616 * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
2618 * elf/rtld.c (_dl_start): Use __builtin_memset if available.
2620 2002-01-29 Ben Collins <bcollins@debian.org>
2622 * string/bits/string2.h (__mempcpy): Protect size arg for
2623 addition when using __builtin_memcpy.
2625 2002-01-29 Ulrich Drepper <drepper@redhat.com>
2627 * stdlib/Makefile (tests): Add tst-qsort.
2628 * stdlib/tst-qsort.c: New file. Written by Paul Eggert.
2630 * manual/signal.texi (Process Signal Mask): Document that
2631 pthread_sigmask, not sigprocmask, must be used in MT programs.
2632 Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
2634 * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
2636 * misc/Makefile (tests): Add tst-hsearch.
2637 * misc/tst-hsearch.c: New file.
2639 2002-01-18 Wolfram Gloger <wg@malloc.de>
2641 * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
2642 * malloc/malloc.h: Likewise.
2643 * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
2644 * malloc/arena.c: New file.
2645 * malloc/hooks.c: New file.
2646 * malloc/tst-mallocstate.c: New file.
2647 * malloc/Makefile: Add new testcase tst-mallocstate.
2648 Add arena.c and hooks.c to distribute. Fix commented CPPFLAGS.
2650 2002-01-28 Ulrich Drepper <drepper@redhat.com>
2652 * stdlib/msort.c: Remove last patch. The optimization violates the
2653 same rule which qsort.c had problems with.
2655 2002-01-27 Paul Eggert <eggert@twinsun.com>
2657 * stdlib/qsort.c (_quicksort): Do not apply the comparison function
2658 to a pivot element that lies outside the array to be sorted, as
2659 ISO C99 requires that the comparison function be called only with
2660 addresses of array elements [PR libc/2880].
2662 2002-01-28 Ulrich Drepper <drepper@redhat.com>
2664 * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
2665 for SHARED code. Reported by Ben Collins <bcollins@debian.org>.
2667 * timezone/asia: Update from tzdata2002b.
2668 * timezone/australasia: Likewise.
2669 * timezone/backward: Likewise.
2670 * timezone/europe: Likewise.
2671 * timezone/leapseconds: Likewise.
2672 * timezone/iso3166.tab: Likewise.
2673 * timezone/zone.tab: Likewise.
2675 2002-01-23 Richard Henderson <rth@redhat.com>
2677 * sysdeps/alpha/Makefile (pic-ccflag): New variable.
2679 2002-01-28 Ulrich Drepper <drepper@redhat.com>
2681 * string/strxfrm.c: Allocate one more byte for rulearr and clear
2682 this element [PR libc/2855].
2684 * string/strcoll.c: Handle zero-length arguments specially
2687 2002-01-23 Jakub Jelinek <jakub@redhat.com>
2689 * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
2690 __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
2691 short lengths and constant src.
2692 (strcpy): Don't optimize for gcc 3.0+.
2693 (__stpcpy): For gcc 3.0+, don't use
2694 __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
2695 for short string literal src.
2697 2002-01-23 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
2699 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
2702 2001-01-22 Paul Eggert <eggert@twinsun.com>
2704 * manual/llio.texi (Linked Channels, Cleaning Streams):
2705 Make it clearer that a just-opened input stream might need cleaning.
2707 2002-01-21 H.J. Lu <hjl@gnu.org>
2709 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
2710 Don't use label at end of compound statement.
2712 2002-01-28 Stephen L Moshier <moshier@mediaone.net>
2714 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
2715 Remove test for negative integer arg; sin_pi does it correctly.
2717 2002-01-20 Ulrich Drepper <drepper@redhat.com>
2719 * nscd/Makefile (distribute): Filter out xmalloc.c.
2721 2002-01-19 Ulrich Drepper <drepper@redhat.com>
2723 * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
2724 Set offset if read end wasn't the buffer end.
2725 (_IO_file_seekoff_mmap): New function.
2726 (_IO_file_xsgetn_mmap): New function.
2727 (_IO_file_jumps_mmap): Use the two new functions.
2728 * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
2730 * libio/libioP.h: Declare _IO_file_seekoff_mmap and
2731 _IO_file_underflow_mmap.
2732 * libio/iofopen.c: Don't position file descriptor at end of file.
2733 * libio/tst-widetext.c: Improve error messages.
2734 * stdio-common/tst-rndseek.c: Likewise.
2736 2002-01-18 Ulrich Drepper <drepper@redhat.com>
2738 * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
2739 end of enum for !_GNU_SOURCE.
2740 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
2741 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
2742 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
2743 * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
2744 values unless _GNU_SOURCE.
2746 * iconvdata/tcvn5712-1.c: Minor cleanups.
2748 2002-01-18 Andreas Schwab <schwab@suse.de>
2750 * sysdeps/unix/sysv/linux/configure.in
2751 (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
2753 2002-01-16 Roger Sayle <roger@eyesopen.com>
2755 * stdlib/msort.c (msort_with_tmp): Replace implementation with
2756 more efficient "Towers of Hanoi" mergesort.
2757 (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
2758 for generic, sizeof(int) and sizeof(long) variants respectively.
2760 2002-01-17 Ulrich Drepper <drepper@redhat.com>
2762 * manual/syslog.texi (openlog): Describe possible problems with
2764 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
2766 * nscd/nscd.c (drop_privileges): Removed. Adjust caller.
2767 * nscd/connections.c (begin_drop_privileges): New function.
2768 (finish_drop_privileges): New function.
2769 (nscd_init): Call the new functions which also install all groups
2770 for the server user.
2771 * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
2772 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
2774 2002-01-17 H.J. Lu <hjl@gnu.org>
2776 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
2779 2002-01-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
2781 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
2782 instructions for pointer operations.
2783 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
2785 2002-01-17 Andreas Jaeger <aj@suse.de>
2787 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
2788 __uint128_t build-in.
2790 * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
2791 PowerPC, sync with 2.2 branch.
2793 2002-01-16 Ulrich Drepper <drepper@redhat.com>
2795 * posix/getconf.c: Update copyright year.
2796 * nss/getent.c: Likewise.
2797 * nscd/nscd_nischeck.c: Likewise.
2798 * iconv/iconvconfig.c: Likewise.
2799 * iconv/iconv_prog.c: Likewise.
2800 * elf/ldconfig.c: Likewise.
2801 * catgets/gencat.c: Likewise.
2802 * csu/version.c: Likewise.
2803 * elf/ldd.bash.in: Likewise.
2804 * elf/sprof.c (print_version): Likewise.
2805 * locale/programs/locale.c: Likewise.
2806 * locale/programs/localedef.c: Likewise.
2807 * nscd/nscd.c (print_version): Likewise.
2808 * debug/xtrace.sh: Likewise.
2809 * malloc/memusage.sh: Likewise.
2810 * malloc/mtrace.pl: Likewise.
2812 2002-01-16 Andreas Schwab <schwab@suse.de>
2814 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
2815 reliably remove "-ia64" from rtld name.
2817 2002-01-16 Ulrich Drepper <drepper@redhat.com>
2819 * iconvdata/gb18030.c: Bug fixes and support for more characters.
2820 Patch by Yu Shao <yshao@redhat.com>.
2822 2002-01-16 Martin Schwidefsky <schwidefsky@de.ibm.com>
2824 * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
2825 * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
2826 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
2828 2002-01-14 Martin Schwidefsky <schwidefsky@de.ibm.com>
2830 * sysdeps/s390/fpu/libm-test-ulps: Update.
2832 2002-01-11 Ulrich Drepper <drepper@redhat.com>
2834 * elf/elf.h: Update x86 relocations.
2836 2002-01-10 Ulrich Drepper <drepper@redhat.com>
2838 * locale/programs/charmap.c (new_width): Check whether byte
2839 sequences for both ends of range have the same length.
2841 2002-01-09 Jakub Jelinek <jakub@redhat.com>
2843 * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
2845 2002-01-09 Jakub Jelinek <jakub@redhat.com>
2847 * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
2849 (__full_ieee754_sqrt): Add __attribute_used__.
2851 2002-01-10 Ulrich Drepper <drepper@redhat.com>
2853 * sysdeps/generic/group_member.c (__group_member): Also check
2854 groups[0] [PR libc/2781].
2856 2002-01-08 Ulrich Drepper <drepper@redhat.com>
2858 * Makefile (distribute): Add scripts/cpp.
2859 * elf/Makefile (distribute): Add reldep6mod[01234].c,
2860 unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
2861 unwind-dw2-fde.h, and dwarf2.h.
2862 * sysdeps/unix/bsd/bsd4.4/Dist: New file.
2863 * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
2864 * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
2865 * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
2867 2002-01-07 Roland McGrath <roland@frob.com>
2869 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
2870 volatile on type of ARGC so the compiler doesn't get clever.
2872 2002-01-07 Andreas Jaeger <aj@suse.de>
2874 * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
2875 * sysdeps/i386/bits/byteswap.h: Likewise.
2876 * sysdeps/ia64/bits/byteswap.h: Likewise.
2877 * sysdeps/m68k/bits/byteswap.h: Likewise.
2878 * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
2879 * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
2881 2002-01-02 Bruno Haible <bruno@clisp.org>
2883 * intl/plural.y: Fix %expect count.
2885 2002-01-03 Jakub Jelinek <jakub@redhat.com>
2887 * elf/Makefile (routines, shared-only-routines): Add
2888 unwind-dw2-fde-glibc instead of unwind-dw2-fde.
2889 * elf/elf.h (PT_GNU_EH_FRAME): Define.
2890 * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
2891 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
2892 Optimize if .eh_frame section contains no FDEs.
2893 (__register_frame, __deregister_frame_info_bases,
2894 __deregister_frame): Likewise.
2895 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
2896 DW_CFA_restore handling.
2898 2002-01-07 Stephen L Moshier <moshier@mediaone.net>
2900 * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
2902 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
2903 for x < 0.25 and restore original range reduction method.
2904 (__ieee754_lgammal_r): Make sure signgam is set before returning.
2906 2002-01-07 Ulrich Drepper <drepper@redhat.com>
2908 * libio/fileops.c (_IO_file_underflow_mmap): New function.
2909 (_IO_file_close_mmap): New function.
2910 (_IO_file_jumps_mmap): New variable.
2911 * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
2912 trying to convert rest of byte buffer.
2913 (_IO_wfile_underflow_mmap): New function.
2914 (_IO_wfile_jumps_mmap): New variable.
2915 * libio/iofopen.c (__fopen_maybe_mmap): New function.
2916 (__fopen_internal): New function. Split out from _IO_new_fopen.
2917 (_IO_new_fopen): Call __fopen_internal.
2918 * libio/iofopen64.c: Just call __fopen_internal.
2919 * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
2921 * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
2922 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
2923 _IO_file_close_mmap.
2925 * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
2926 * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
2928 * stdio-common/Makefile (tests): Add tst-rndseek.
2929 * stdio-common/tst-rndseek.c: New file.
2931 2002-01-05 Roland McGrath <roland@frob.com>
2933 * config.h.in (HAVE_MIG_RETCODE): New #undef.
2934 * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
2935 swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
2936 * sysdeps/mach/hurd/configure: Regenerated.
2938 2002-01-03 Ulrich Drepper <drepper@redhat.com>
2940 * elf/elf.h: Add more TLS definitions.
2942 2002-01-02 Ulrich Drepper <drepper@redhat.com>
2944 * include/features.h (__GLIBC_MINOR__): Bump to 3.
2946 2002-01-02 Roland McGrath <roland@frob.com>
2948 * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
2949 __sigisemptyset. Don't use MASK uninitialized.
2951 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
2952 * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
2953 * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
2954 __sigdelset, __sigaddset, __sigorset.
2956 * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
2957 * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
2959 * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
2960 _hurd_ports is null.
2962 * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
2963 for old CMU and new OSF Mach interface flavors.
2964 * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
2965 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
2967 * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
2969 * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
2970 Pass extra arguments to task_create for OSF variant.
2971 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
2973 * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
2974 conditional on [HAVE_AUX_VECTOR].
2976 * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
2977 mach_msg_timeout_t as type of final argument.
2979 * hurd/privports.c (__get_privileged_ports):
2980 Change host_priv_t to mach_port_t in argument type.
2981 * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
2984 * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
2985 multiple inclusion. Inhibit #error under [_SYS_UCONTEXT_H].
2986 * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
2987 * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
2988 * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
2989 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
2991 2002-01-01 Roland McGrath <roland@frob.com>
2993 * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
2995 2002-01-01 Ulrich Drepper <drepper@redhat.com>
2997 * include/stdlib.h: Define inlines for the _l variants of the strto*
3000 2002-01-01 Roland McGrath <roland@frob.com>
3002 * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
3004 * mach/Machrules (MIG): Set CPP as well as CC.
3006 2001-12-31 Ulrich Drepper <drepper@redhat.com>
3008 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
3009 locale to parse /proc/loadavg [PR libc/2760].
3011 2001-12-31 Jakub Jelinek <jakub@redhat.com>
3013 * elf/dl-conflict.c: Include sys/param.h.
3014 (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
3015 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
3017 (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
3018 literals to avoid warnings.
3020 2001-12-31 Andreas Jaeger <aj@suse.de>
3022 * configure.in: Don't check for gsed since we do not use it anywhere.
3024 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
3026 * io/fts.c: Update from BSD to fix memory leaks.
3028 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
3030 * crypt/md5-crypt.c: Realloc error handling memory leak fix.
3031 * elf/chroot_canon.c: Likewise.
3032 * elf/dl-object.c: Likewise.
3033 * iconv/iconv_charmap.c: Likewise.
3034 * iconv/iconv_prog.c: Likewise.
3035 * libio/iogetdelim.c: Likewise.
3036 * locale/lc-time.c: Likewise.
3037 * stdlib/canonicalize.c: Likewise.
3038 * sunrpc/svc.c: Likewise.
3039 * sysdeps/generic/glob.c: Likewise.
3041 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
3043 * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
3044 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
3045 remove high order bit from the program counter.
3046 * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
3048 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
3050 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
3051 unnecessary code and add missing reloc types.
3052 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
3053 case for reloc type R_390_NONE.
3055 2001-12-28 Andreas Jaeger <aj@suse.de>
3057 * io/bug-ftw3.c: Include string.h for prototypes.
3059 * crypt/md5test.c (main): Remove unused variable.
3061 * dlfcn/modstatic.c: Add prototype to avoid warning.
3063 2001-12-26 Roland McGrath <roland@frob.com>
3065 * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
3066 check only (SS->pending & MASK) for the signal to return.
3067 From Jeroen Dekkers <jeroen@dekkers.cx>.
3069 2001-12-22 Roland McGrath <roland@frob.com>
3071 * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
3072 Use preprocessor #if conditionals instead of `if' to avoid
3073 warnings about divide by zero in dead code.
3075 * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
3076 _hurd_port_init, and __hurd_self_sigstate.
3078 * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
3080 2001-12-21 Andreas Jaeger <aj@suse.de>
3082 * elf/dblloadmod1.c: Add prototype to avoid warning.
3083 * elf/dblloadmod2.c: Likewise.
3084 * elf/dblloadmod3.c: Likewise.
3085 * elf/reldepmod5.c: Likewise.
3086 * elf/reldepmod6.c: Likewise.
3088 * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
3089 for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
3090 used on all architectures.
3092 * sunrpc/svc_tcp.c: Add noreturn attribute for
3093 svctcp_rendezvous_abort.
3094 * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
3096 * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
3099 2001-12-19 Jakub Jelinek <jakub@redhat.com>
3101 * manual/llio.texi (aio_fsync): Fix a typo.
3102 Patch by Tammy Fox <tfox@redhat.com>.
3104 2001-12-18 Jakub Jelinek <jakub@redhat.com>
3106 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
3107 stack bias from child stack pointer before passing it to clone syscall.
3109 2001-12-18 Ulrich Drepper <drepper@redhat.com>
3111 * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
3113 * sysdeps/generic/sysconf.c (__sysconf): Likewise.
3114 Reported by Thorsten Kukuk <kukuk@suse.de>.
3116 * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
3119 * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
3121 2001-12-18 Thorsten Kukuk <kukuk@suse.de>
3123 * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
3124 conforming: return EBADF if file descriptor is invalid and EINVAL
3125 if file descriptor is no valid tty.
3126 * login/tst-grantpt.c: New file.
3127 * login/Makefile (tests): Add tst-grantpt.
3129 2001-12-17 Ulrich Drepper <drepper@redhat.com>
3131 * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
3132 different than implemented in last patch.
3133 * io/bug-ftw3.c: Adjust test for changed handling of
3134 inaccessibility of toplevel dir.
3136 2001-12-16 Roland McGrath <roland@frob.com>
3138 * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
3139 * grp/initgroups.c (internal_getgrouplist): Likewise.
3141 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
3142 `default:' to silence new GCC warning.
3143 Rewrite cast of lvalue to silence new GCC warning.
3145 * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
3147 * sysdeps/mach/hurd/spawni.c: New file, by me with a
3148 couple fixes by Neal H Walfield <neal@cs.uml.edu>.
3150 2001-12-14 Ulrich Drepper <drepper@redhat.com>
3152 * sysdeps/generic/strstr.c (strstr): Update. New optimized version.
3153 Patch by Stephen R. van den Berg.
3155 * crypt/md5.h: Define md5_uintptr.
3157 2001-12-13 Ulrich Drepper <drepper@redhat.com>
3159 * libio/tst_swprintf.c (main): Add test for string argument with
3161 * stdio-common/Makefile (tests): Add tst-sprintf.
3162 * stdio-common/tst-sprintf.c: New file.
3164 2001-12-13 Andreas Schwab <schwab@suse.de>
3166 * stdio-common/vfprintf.c (process_string_arg): Correctly handle
3167 zero precision with wide character string format.
3169 2001-12-13 Thorsten Kukuk <kukuk@suse.de>
3171 * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
3172 but have a user supplied buffer, return the empty buffer, not NULL.
3174 2001-12-13 Ulrich Drepper <drepper@redhat.com>
3176 * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
3177 Patch by Eric Sharkey <sharkey@netrics.com>.
3179 * crypt/md5test.c (main): Add test for multiple calls to
3180 __md5_process_bytes to itererate over input string.
3182 2001-12-12 Ulrich Drepper <drepper@redhat.com>
3184 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
3185 from __nis_findfastest. Take timeout value from parameter.
3186 (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
3187 * nis/nis_intern.h: Define parameters controlling __nis_findfastest
3188 [PR libc/2520]. Patch by Alexander Belopolsky <alexb@rentec.com>.
3190 2001-12-12 Andreas Jaeger <aj@suse.de>
3192 * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
3193 combreloc test so that it works in this case.
3195 * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
3197 2001-12-12 NIIBE Yutaka <gniibe@m17n.org>
3199 * sysdeps/sh/Makefile: New file.
3200 * sysdeps/sh/_mcount.S: New file.
3201 * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
3202 * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
3204 2001-12-11 Ulrich Drepper <drepper@redhat.com>
3206 * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
3207 limitation [PR libc/2564].
3209 2001-12-11 Jakub Jelinek <jakub@redhat.com>
3211 * elf/Makefile (dl-routines): Add conflict.
3212 (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
3213 (ld.so): Add _begin local symbol.
3214 * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
3216 * elf/dl-deps.c (_dl_build_local_scope): New.
3217 (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
3219 * elf/do-rel.h (VALIDX): Define.
3220 (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
3221 lazy binding for RELA. If DT_GNU_PRELINKED, DT_RELACOUNT relocations
3223 * elf/dl-conflict.c: New file.
3224 * elf/dl-lookup.c (_dl_debug_bindings): New.
3225 (_dl_lookup_symbol): Use _dl_debug_bindings. Reference_name is always
3227 (_dl_lookup_symbol_skip): Likewise.
3228 (_dl_lookup_versioned_symbol): Likewise.
3229 (_dl_lookup_versioned_symbol_skip): Likewise.
3230 * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
3231 define to ElfW(Rel).
3232 * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
3233 tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
3235 Don't adjust address dynamic tags if l_addr is 0.
3236 * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
3237 (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
3238 (VALIDX, ADDRIDX): Define.
3239 (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
3240 (dl_main): Print library list for LD_TRACE_PRELINKING.
3241 If prelinking information can be used, skip relocating libraries and
3242 call _dl_resolve_conflicts instead.
3243 (process_envvars): Handle LD_TRACE_PRELINKING envvar.
3244 * elf/dl-load.c (_dl_map_object): Don't create fake libs
3245 if LD_TRACE_PRELINKING.
3246 * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
3248 * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
3249 (DL_DEBUG_PRELINK): Define.
3250 (_dl_resolve_conflicts): Add prototype.
3252 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
3253 .plt for prelinked libraries where prelinking info cannot be used.
3254 (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
3255 section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
3256 * sysdeps/arm/bits/link.h: New file.
3257 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
3259 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
3260 (ELF_MACHINE_PLT_REL): Define.
3261 (elf_machine_rela, elf_machine_rela_relative): New.
3262 (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
3263 of adjusting it if prelinked and prelinking cannot be used.
3264 * sysdeps/i386/bits/link.h: New file.
3265 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
3267 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
3268 (ELF_MACHINE_PLT_REL): Define.
3269 (elf_machine_rela, elf_machine_rela_relative): New.
3270 (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
3271 of adjusting it if prelinked and prelinking cannot be used.
3272 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
3273 conflicts, skip finaladdr computation. Use RESOLVE_CONFLICT_FIND_MAP
3274 to find out map for R_PPC_JMP_SLOT relocs.
3275 * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
3276 (OPCODE_BA): Define.
3277 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
3278 libraries where prelinking info cannot be used.
3279 (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
3280 (elf_machine_fixup_plt): Call sparc_fixup_plt.
3281 (elf_machine_rela): Set value to 0 if relocating conflicts.
3282 Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
3283 * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
3284 (sparc64_fixup_plt): Fix a typo.
3285 (elf_machine_rela): Set value to 0 if relocating conflicts.
3286 Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
3287 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
3288 libraries where prelinking info cannot be used.
3289 * sysdeps/sh/bits/link.h: New file.
3290 * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
3292 (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
3293 of adjusting it if prelinked and prelinking cannot be used.
3294 * sysdeps/s390/s390-32/bits/link.h: New file.
3295 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
3296 Save original content of .got[1].
3297 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
3298 of adjusting it if prelinked and prelinking cannot be used.
3299 * sysdeps/s390/s390-64/bits/link.h: New file.
3300 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
3301 Save original content of .got[1].
3302 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
3303 of adjusting it if prelinked and prelinking cannot be used.
3304 * sysdeps/x86_64/bits/link.h: New file.
3305 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
3306 Save original content of .got[1].
3307 (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
3308 of adjusting it if prelinked and prelinking cannot be used.
3310 2001-12-11 Ulrich Drepper <drepper@redhat.com>
3312 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
3313 where appropriate instead of numbers. Little optimizations.
3315 2001-12-10 Roland McGrath <roland@frob.com>
3317 * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
3320 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
3321 set to GLIBC_2.2.5, not GLIBC_2.2.4.
3323 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
3324 Fix conditionals so this is set by default for stdio and not for libio.
3325 * sysdeps/mach/hurd/configure: Regenerated.
3327 2001-12-10 Thorsten Kukuk <kukuk@suse.de>
3329 * io/ftw.c (ftw_startup): Check, if the path is search and readable.
3331 2001-12-10 Ulrich Drepper <drepper@redhat.com>
3333 * io/Makefile (tests): Add bug-ftw3.
3334 * io/bug-ftw3.c: New file.
3336 * sysdeps/generic/glob.c (glob): Return only pattern if nothing
3337 matches and GLOB_NOCHECK is set.
3338 * posix/globtest.sh: Correct expected result for NOCHECK test.
3340 * po/ca.po: Update from translation team.
3342 2001-12-09 Ulrich Drepper <drepper@redhat.com>
3344 Implement transliteration of characters in strings of the locale
3346 * locale/programs/linereader.c: Adjust for additional parameter to
3348 (get_string): If character <Uxxxx> is not found try to transliterate
3350 * locale/programs/ld-ctype.c: Adjust for additional parameter to
3351 lr_token. Add const to charmap parameter of all functions.
3352 (find_translit, find_translit2): New functions.
3353 * locale/programs/charmap.c: Adjust for additional parameter to
3355 * locale/programs/repertoire.c: Likewise.
3356 * locale/programs/linereader.h: Likewise.
3357 * locale/programs/ld-address.c: Likewise. Add const to charmap
3358 parameter of all functions.
3359 * locale/programs/ld-collate.c: Likewise.
3360 * locale/programs/ld-identification.c: Likewise.
3361 * locale/programs/ld-measurement.c: Likewise.
3362 * locale/programs/ld-messages.c: Likewise.
3363 * locale/programs/ld-monetary.c: Likewise.
3364 * locale/programs/ld-name.c: Likewise.
3365 * locale/programs/ld-numeric.c: Likewise.
3366 * locale/programs/ld-paper.c: Likewise.
3367 * locale/programs/ld-paper.c: Likewise.
3368 * locale/programs/ld-telephone.c: Likewise.
3369 * locale/programs/ld-time.c: Likewise.
3370 * locale/programs/locfile.c: Likewise.
3371 * locale/programs/localedef.c: Likewise.
3372 * locale/programs/localedef.h: Likewise.
3373 * locale/programs/locfile.h: Likewise. Add declaration for
3375 * locale/programs/simple-hash.c: Add const to first parameter of
3376 find_entry, iterate_table, and lookup.
3377 * locale/programs/simple-hash.h: Likewise.
3378 * locale/localeinfo.h: Don't define __LC_LAST here. Include <locale.h>
3380 * include/locale.h: Define __LC_LAST.
3381 * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
3383 2001-12-07 Geoff Keating <geoffk@redhat.com>
3385 * sysdeps/powerpc/Dist: Update for recent FP changes.
3386 * sysdeps/powerpc/fpu/Dist: Likewise.
3388 2001-12-07 Andreas Schwab <schwab@suse.de>
3390 * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
3392 2001-12-06 Geoff Keating <geoffk@redhat.com>
3394 * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
3395 save/restore functions here.
3396 (libm-support): Don't define these functions here.
3397 * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
3399 * sysdeps/powerpc/fe_nomask.c: Move to...
3400 * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
3401 * sysdeps/powerpc/fprrest.S: Move to...
3402 * sysdeps/powerpc/fpu/fprrest.S: ... here.
3403 * sysdeps/powerpc/fprsave.S: Move to...
3404 * sysdeps/powerpc/fpu/fprsave.S: ... here.
3406 2001-12-06 Ulrich Drepper <drepper@redhat.com>
3408 * sysdeps/unix/sysv/linux/opensock.c: New file.
3410 2001-12-06 Geoff Keating <geoffk@redhat.com>
3412 * config.make.in (with-fp): Define from configure.
3413 * configure.in: Substitute with_fp.
3414 * configure: Regenerate.
3415 * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
3416 specified, and don't change FPU environment.
3418 2001-12-06 Ulrich Drepper <drepper@redhat.com>
3420 * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
3421 * assert/assert.c: Check result of __asprintf call and don't use
3422 string if it failed.
3423 * assert/assert-perr.c: Likewise.
3424 * inet/rcmd.c: Likewise.
3425 * locale/programs/localedef.c (main): Check result of
3426 construct_output_path and exit if it failed.
3427 (construct_output_path): Check result of asprintf and mkdir calls and
3428 fail if they failed.
3429 * posix/getopt.c: Check result of __asprintf calls and fail if
3431 Patch by Dmitry V. Levin <ldv@alt-linux.org>.
3433 2001-12-05 Ulrich Drepper <drepper@redhat.com>
3435 * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
3437 * sysdeps/generic/strncase.c: Likewise.
3438 * string/tester.c: Add tests for strcasecmp and strncasecmp.
3440 2001-12-05 Geoff Keating <geoffk@redhat.com>
3442 * scripts/cpp: Test the exit status from 'type', not 'awk'.
3444 * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
3445 * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
3446 * sysdeps/powerpc/setjmp.S: Don't save FP registers.
3447 * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
3448 * sysdeps/powerpc/fclrexcpt.c: Move to...
3449 * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
3450 * sysdeps/powerpc/fpu_control.h: Move to...
3451 * sysdeps/powerpc/fpu/fpu_control.h: ... here.
3453 2001-12-05 Ulrich Drepper <drepper@redhat.com>
3455 * iconvdata/ibm1129.h: Remove duplicate mappings.
3456 * iconvdata/ibm937.c: Handle overflow errors. Handle new tables.
3457 * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
3458 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
3460 * timezone/zic.c: Fix handling of turnaround times.
3461 Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
3463 2001-12-02 Moshe Olshansky <OLSHANSK@il.ibm.com>
3465 * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
3468 2001-12-05 Ulrich Drepper <drepper@redhat.com>
3470 * posix/regex.c: For use outside glibc defined bounded pointer
3471 macros here. Patch by Jim Meyering <jim@meyering.net>.
3473 * iconvdata/Makefile (modules): Add TCVN5712-1.
3474 * iconvdata/TESTS: Add TCVN5712-1.
3475 * iconvdata/gconv-modules: Likewise.
3476 * iconvdata/tcvn5712-1.c: New file.
3477 * iconvdata/testdata/TCVN-5712: New file.
3478 * iconvdata/testdata/TCVN-5712..UTF8: New file.
3480 2001-12-04 Ulrich Drepper <drepper@redhat.com>
3482 * iconvdata/cp1258.c: Optimize conversion from UCS4.
3484 2001-12-02 Roland McGrath <roland@frob.com>
3486 * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
3488 * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
3489 Reported by Jeff Bailey <jbailey@nisa.net>.
3491 * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
3492 Reported by Jeff Bailey <jbailey@nisa.net>.
3494 * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
3495 * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
3496 Reported by Jeff Bailey <jbailey@nisa.net>.
3498 2001-12-01 Roland McGrath <roland@frob.com>
3500 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
3501 missing backslash in test arguments.
3502 * sysdeps/mach/hurd/configure: Regenerated.
3504 2001-11-26 Roland McGrath <roland@frob.com>
3506 * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
3507 Reported by John Tobey <jtobey@john-edwin-tobey.org>.
3509 2001-11-30 Ulrich Drepper <drepper@redhat.com>
3511 * iconvdata/Makefile (modules): Add ARMSCII-8.
3512 * iconvdata/gconv-modules: Add entries for ARMSCII-8.
3513 * iconvdata/armscii-8.c: New file.
3515 2001-11-29 Jakub Jelinek <jakub@redhat.com>
3517 * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
3518 don't match, fix {{a,b},c} globbing, clean up.
3519 Patch by Flavio Veloso <flaviovs@magnux.com>.
3520 * posix/globtest.sh: Add new tests.
3522 2001-11-29 Andreas Jaeger <aj@suse.de>
3524 * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
3525 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
3527 * sysdeps/generic/abort.c: Include libioP.h for
3528 _IO_flush_all_lockp prototype.
3530 2001-11-29 Ulrich Drepper <drepper@redhat.com>
3532 * posix/regex.h: Define __restrict_arr correctly.
3534 2001-11-28 Ulrich Drepper <drepper@redhat.com>
3536 * iconvdata/ibm1163.c: New file.
3537 * iconvdata/ibm1163.h: New file.
3538 * iconvdata/ibm1164.c: New file.
3539 * iconvdata/ibm1164.h: New file.
3540 * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
3541 * iconvdata/Makefile: Likewise.
3542 * iconvdata/testdata/IBM1163: New file.
3543 * iconvdata/testdata/IBM1163..UTF8: New file.
3544 * iconvdata/testdata/IBM1164: New file.
3545 * iconvdata/testdata/IBM1164..UTF8: New file.
3546 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
3548 * iconvdata/ibm1046.h: Optimize. Remove duplicate mappings.
3549 * iconvdata/ibm1124.h: Likewise.
3550 * iconvdata/ibm1132.h: Likewise.
3551 * iconvdata/ibm1133.h: Likewise.
3552 * iconvdata/ibm1160.h: Likewise.
3553 * iconvdata/ibm1161.h: Likewise.
3554 * iconvdata/ibm1162.h: Likewise.
3555 * iconvdata/ibm856.h: Likewise.
3556 * iconvdata/ibm922.h: Likewise.
3557 * iconvdata/ibm930.h: Likewise.
3558 * iconvdata/ibm932.h: Likewise.
3559 * iconvdata/ibm933.h: Likewise.
3560 * iconvdata/ibm935.h: Likewise.
3561 * iconvdata/ibm937.h: Likewise.
3562 * iconvdata/ibm939.h: Likewise.
3563 * iconvdata/ibm943.h: Likewise.
3564 * iconvdata/ibm930.c: Pretty printing.
3565 * iconvdata/ibm937.c: Avoid access accross array boundary.
3567 * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
3568 the current locale's codeset.
3569 * iconv/iconv_open.c (iconv_open): Don't strip out everything for
3571 * iconv/iconv_prog.c: Pass empty strings as default value for to-
3572 and from-charset. Don't determine locale's charset here.
3574 * libio/genops.c (_IO_flush_all_lockp): New function. The same code
3575 as the old _IO_flush_all but lock only if parameter is nonzero.
3576 (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
3577 * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
3578 * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
3579 if libio is used [PR libc/2575].
3581 2001-11-28 Jakub Jelinek <jakub@redhat.com>
3583 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
3584 __signbitl): Only define for ISO C99.
3586 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
3588 * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
3589 herrnop to NETDB_INTERNAL if we run out of buffer space.
3591 2001-11-28 Ulrich Drepper <drepper@redhat.com>
3593 * nss/nss_files/files-XXX.c (internal_getent): Correct input
3594 overflow test for platforms with signed char.
3595 Reported by Andrew Haley <aph@cambridge.redhat.com>.
3597 2001-11-28 Bruno Haible <bruno@clisp.org>
3599 * locale/programs/simple-hash.c (lookup_2): Remove function.
3600 (insert_entry_2): Call lookup instead of lookup_2.
3602 2001-03-04 Bruno Haible <bruno@clisp.org>
3604 * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
3606 2001-10-31 Bruno Haible <bruno@clisp.org>
3608 * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
3610 2001-03-21 Bruno Haible <bruno@clisp.org>
3612 * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
3613 chokes on empty macro arguments.
3614 * intl/plural.y: Add #pragma for alloca on AIX 3.
3616 2001-11-27 Ulrich Drepper <drepper@redhat.com>
3618 * intl/dcigettext.c (guess_category_value): Only implement for
3619 glibc. Otherwise rely on function _nl_locale_name which isn't
3620 present in the glibc sources.
3622 2001-09-24 Bruno Haible <bruno@clisp.org>
3624 * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
3625 transliteration when building on a glibc system but outside glibc.
3627 2001-09-22 Bruno Haible <bruno@clisp.org>
3629 * intl/plural-eval.c: New file, extracted from dcigettext.c.
3630 * intl/dcigettext.c (plural_eval): Remove function, moved to
3632 (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
3633 Include plural-eval.c.
3635 2001-09-22 Bruno Haible <bruno@clisp.org>
3637 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
3638 don't start with a digit; nplurals must be positive.
3640 2001-09-02 Bruno Haible <bruno@clisp.org>
3642 * intl/plural-exp.h: New file, extracted from gettextP.h.
3643 * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
3644 * intl/gettextP.h (struct expression, struct parse_args,
3645 __gettext_free_exp, __gettextparse): Move to plural-exp.h.
3646 * intl/loadmsgcat.c: Include plural-exp.h.
3647 (PLURAL_PARSE): Move macro to plural-exp.h.
3648 (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
3650 (_nl_load_domain): Move plural handling code to plural-exp.c. Call
3651 EXTRACT_PLURAL_EXPRESSION.
3652 (_nl_unload_domain): Update.
3653 * intl/dcigettext.c: Include plural-exp.h.
3654 * intl/plural.y: Include plural-exp.h, not gettextP.h.
3655 (FREE_EXPRESSION): Move macro to plural-exp.h.
3656 * intl/Makefile (routines): Add plural-exp.
3657 (distribute): Add plural-exp.h.
3659 2001-07-28 Bruno Haible <bruno@clisp.org>
3661 * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
3662 isdigit, tolower argument to 'unsigned char'.
3663 * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
3665 * intl/localealias.c (read_alias_file): Cast isspace argument to
3668 2001-10-20 Bruno Haible <bruno@clisp.org>
3670 Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
3672 * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
3673 with the variable 'index' in plural_lookup.
3674 * intl/l10nflist.c (strchr): Likewise.
3675 * intl/localealias.c (strchr): Likewise.
3677 Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
3678 * intl/bindtextdom.c: Likewise.
3679 * intl/dcigettext.c: Likewise.
3680 * intl/dgettext.c: Likewise.
3681 * intl/dngettext.c: Likewise.
3682 * intl/explodename.c: Likewise.
3683 * intl/finddomain.c: Likewise.
3684 * intl/gettext.c: Likewise.
3685 * intl/l10nflist.c: Likewise.
3686 * intl/loadmsgcat.c: Likewise.
3687 * intl/localealias.c: Likewise.
3688 * intl/ngettext.c: Likewise.
3689 * intl/textdomain.c: Likewise.
3690 * intl/gettext.h: Assume <limits.h> exists.
3692 2001-11-27 Ulrich Drepper <drepper@redhat.com>
3694 * stdio-common/Makefile (tests): Add scanf11.
3695 * stdio-common/scanf11.c: New file.
3697 2001-11-26 Ulrich Drepper <drepper@redhat.com>
3699 * version.h (RELEASE): Define as development.
3700 (VERSION): Set to 2.2.90.
3702 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
3704 * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
3705 * nis/nss_nis/nis-grp.c: Likewise.
3706 * nis/nss_nisplus/nisplus-grp.c: Likewise.
3708 * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
3709 * nis/nss_nis/nis-pwd.c: Likewise.
3710 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
3712 * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
3713 * nis/nss_nisplus/nisplus-parser.c: Likewise.
3714 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
3716 * nscd/grpcache.c: Use strtoul instead of atol.
3717 * nscd/pwdcache.c: Likewise.
3718 * nss/getent.c: Likewise.
3720 2001-11-27 Paul Eggert <eggert@twinsun.com>
3722 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
3723 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
3725 2001-11-19 Bruno Haible <bruno@clisp.org>
3727 * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
3729 (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
3730 improves the quality of the hash function, especially for short
3733 2001-11-26 Ulrich Drepper <drepper@redhat.com>
3735 * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
3736 are found call conv_error and not input_error [PR libc/2669].
3738 * math/bits/mathcalls.h: Mark ceil and floor as const.
3739 Reported by David Mosberger.
3741 2001-11-21 Jim Meyering <meyering@lucent.com>
3743 * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
3744 Define to be __-prefixed.
3745 Remove unnecessary duplication in `#ifdef _LIBC' blocks.
3747 2001-11-26 Andreas Jaeger <aj@suse.de>
3749 * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
3752 2001-11-26 Stephen L Moshier <moshier@mediaone.net>
3754 * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
3757 * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
3758 unused variables. Fix threshold for returning 1.0.
3760 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
3763 * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
3764 remove unused variables.
3766 * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
3768 * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
3769 include local math header files.
3771 2001-11-22 Andreas Jaeger <aj@suse.de>
3773 * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
3776 2001-11-21 Andreas Jaeger <aj@suse.de>
3778 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
3780 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
3783 2001-11-15 Andreas Jaeger <aj@suse.de>
3785 * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
3786 compilers that support it.
3788 * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
3789 * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
3790 * stdlib/stdlib.h: Likewise.
3792 2001-11-17 Ulrich Drepper <drepper@redhat.com>
3794 * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
3795 statement with gotos.
3796 Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
3798 2001-11-16 Stephen L Moshier <moshier@mediaone.net>
3800 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
3802 2001-11-15 Ulrich Drepper <drepper@redhat.com>
3804 * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
3806 2001-10-02 Jakub Jelinek <jakub@redhat.com>
3807 H.J. Lu <hjl@gnu.org>
3809 * Versions.def (libc): Add GCC_3.0.
3810 * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
3811 if gcc supports this flag.
3812 (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
3813 (gcc3): Allow glibc to be compiled with gcc 3.x.
3814 * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
3815 * config.make.in (static-libgcc, unwind-find-fde): Add.
3816 * Makerules (build-shlib-helper, build-module-helper): Use it.
3817 * scripts/versions.awk: Make sure GLIBC_ versions come first.
3818 * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
3820 (_fini): Call __deregister_frame_info_bases if
3821 __register_frame_info_bases was used to register.
3822 * elf/Versions (__register_frame_info, __deregister_frame_info): Add
3824 (__register_frame_info_bases, __register_frame_info_table_bases,
3825 __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
3826 * elf/Makefile (routines): Add unwind-dw2-fde.
3827 (shared-only-routines): Add unwind-dw2-fde.
3828 * sysdeps/alpha/gccframe.h: New file.
3829 * sysdeps/arm/gccframe.h: New file.
3830 * sysdeps/generic/framestate.c: New file.
3831 * sysdeps/generic/dwarf2.h: New file.
3832 * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
3833 * sysdeps/generic/unwind-dw2-fde.c: New file.
3834 * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
3835 * sysdeps/generic/unwind-dw2-fde.h: New file.
3836 * sysdeps/generic/unwind-dw2.c: New file.
3837 * sysdeps/generic/unwind-pe.h: New file.
3838 * sysdeps/generic/unwind.h: New file.
3839 * sysdeps/hppa/gccframe.h: New file.
3840 * sysdeps/i386/gccframe.h: New file.
3841 * sysdeps/m68k/gccframe.h: New file.
3842 * sysdeps/mips/gccframe.h: New file.
3843 * sysdeps/powerpc/gccframe.h: New file.
3844 * sysdeps/s390/gccframe.h: New file.
3845 * sysdeps/sh/gccframe.h: New file.
3846 * sysdeps/sparc/gccframe.h: New file.
3847 * sysdeps/vax/gccframe.h: New file.
3848 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
3849 Set on all architectures except ia64.
3850 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
3852 * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
3853 __deregister_frame_info): Move to elf/Versions.
3854 * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
3855 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
3856 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
3857 * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
3858 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
3859 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
3860 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
3861 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
3862 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
3863 * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
3864 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
3865 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
3866 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
3867 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
3868 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
3869 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
3870 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
3871 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
3873 2001-11-15 Jeff Law <law@redhat.com>
3875 * posix/regex.c (uintptr_t): Do not provide a definition if the
3876 system provided one.
3878 2001-11-13 Roland McGrath <roland@frob.com>
3880 * stdio-common/tmpfile.c: Moved to ...
3881 * sysdeps/generic/tmpfile.c: ... here.
3882 * sysdeps/mach/hurd/tmpfile.c: New file.
3884 * hurd/fopenport.c (__fopenport): Renamed from fopenport.
3885 [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
3886 (fopenport): Define as weak alias.
3888 * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
3889 * libio/libioP.h: ... to here.
3891 2001-11-12 Ulrich Drepper <drepper@redhat.com>
3893 * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
3894 program header twice. Construct list with the needed information.
3896 2001-11-10 Ulrich Drepper <drepper@redhat.com>
3898 * po/ca.po: Update from translation team.
3900 * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
3901 _dl_pf_to_prot. Use arithmetic operation using PF_TO_PROT macro.
3902 * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
3903 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
3905 2001-11-10 Andreas Jaeger <aj@suse.de>
3907 * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
3908 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
3909 Contributed by Stephen L Moshier <moshier@mediaone.net>.
3911 2001-11-09 Ulrich Drepper <drepper@redhat.com>
3913 * elf/dl-minimal.c (realloc): Handle NULL for first parameter
3915 * elf/dl-load.c (is_dst): New function.
3916 (_dl_dst_count): Use is_dst to check for DST variable.
3917 (_dl_dst_substitute): Likewise.
3919 2001-11-09 Roland McGrath <roland@frob.com>
3921 Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
3922 * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
3923 * sysdeps/mach/hurd/powerpc/init-first.c: New file.
3924 * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
3925 * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
3926 * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
3927 * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
3928 * sysdeps/mach/hurd/powerpc/static-start.S: New file.
3929 * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
3930 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
3931 * sysdeps/mach/hurd/powerpc/Dist: New file.
3933 * hurd/privports.c (__get_privileged_ports):
3934 Only contact the proc server if necessary for this call.
3935 Suggested by Neal H Walfield <neal@cs.uml.edu>.
3936 Check error return for mach_port_mod_refs.
3938 2001-11-09 Andreas Schwab <schwab@suse.de>
3940 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
3942 2001-11-09 Ulrich Drepper <drepper@redhat.com>
3944 * elf/dl-load.c (lose): Remove some unnecessary code. The new
3945 object is always the last in the list.
3946 (_dl_map_object_from_fd): Delete code to remove from object list
3947 when DF_1_NOOPEN is seen. This is done in lose.
3949 2001-11-08 Ulrich Drepper <drepper@redhat.com>
3951 * elf/dl-object.c (_dl_new_object): Various small optimizations.
3953 2001-11-07 Ulrich Drepper <drepper@redhat.com>
3955 * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
3956 HWCAP_CHECK macro code.
3958 * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
3959 Now returns MAP_FAILED on error.
3960 * elf/rtld.c: Adjust caller.
3961 * sysdeps/generic/dl-cache.c: Likewise.
3962 * sysdeps/generic/ldsodefs.h: Adjust description.
3964 * elf/dl-version.c (match_symbol): Optimize error handling for size.
3965 (_dl_check_map_versions): Likewise.
3967 2001-11-06 Ulrich Drepper <drepper@redhat.com>
3969 * elf/dl-load.c (_dl_map_object_from_fd): Don't call
3970 _dl_signal_error directly, always use lose. Set fd to -1 after
3972 (lose): Don't call close if fd == -1.
3974 2001-11-07 Kaoru Fukui <k_fukui@highway.ne.jp>
3976 * manual/charset.texi: Fix typo @w[ISO 6937] to @w{ISO 6937}.
3977 Also fix typo @code {mbsinit} to @code{mbsinit}.
3979 2001-11-06 Ulrich Drepper <drepper@redhat.com>
3981 * elf/dl-profile.c: Replace state variable with simple flag named
3982 running. Remove commented-out code.
3984 * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
3985 (_dl_init_paths): Likewise.
3986 (_dl_map_object_from_fd): Likewise.
3987 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
3989 2001-11-06 Roland McGrath <roland@frob.com>
3991 * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
3992 instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
3994 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
3995 sysdeps/powerpc/elf/sysdep.h.
3996 Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
3998 2001-11-05 Ulrich Drepper <drepper@redhat.com>
4000 * elf/rtld.c (process_dl_debug): Rewritten. Optimized for size not
4002 (process_envvars): Some more optimizations.
4003 * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
4005 * elf/elf.h: Add dynamic tag definitions for prelinking.
4007 * elf/rtld.c (process_envvars): Avoid using array of string pointers.
4008 Rewrite code to remove environment varables for SUID binaries.
4009 Small optimization in LD_PROFILE handling.
4010 * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
4012 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
4014 * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
4016 * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
4017 strings. Change type of second parameter.
4018 * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
4021 * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
4023 2001-11-04 Joseph S. Myers <jsm28@cam.ac.uk>
4025 * manual/string.texi: Fix typos.
4026 * manual/examples/argp-ex2.c: Likewise.
4028 2001-11-05 Roland McGrath <roland@frob.com>
4030 * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
4031 the more-specific unix/sysv/linux/powerpc file and breaks everything.
4032 * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
4033 ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
4034 PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
4035 here, put under [__ELF__].
4037 2001-11-05 Ulrich Drepper <drepper@redhat.com>
4039 * manual/charset.texi: Extensive editing work.
4040 * manual/nss.texi: Likewise.
4041 Changes by Dennis Grace <dgrace@us.ibm.com>.
4043 2001-11-04 Roland McGrath <roland@frob.com>
4045 * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
4046 parameter to dir_mkfile.
4048 2001-11-02 Jakub Jelinek <jakub@redhat.com>
4050 * string/bits/string2.h (__strndup): If n is smaller than len, set
4052 * string/tester.c (test_strndup): New function.
4055 2001-11-01 Ulrich Drepper <drepper@redhat.com>
4057 * sunrpc/rpc_main.c: Optimize variable definitions a bit.
4059 * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
4060 * scripts/cpp: New file.
4062 * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
4063 for rtld_search_dirs content. Minor optimizations.
4065 2001-10-31 Ulrich Drepper <drepper@redhat.com>
4067 * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
4068 avoiding unnecessary duplication.
4070 2001-10-31 Jakub Jelinek <jakub@redhat.com>
4072 * elf/dl-load.c (_dl_map_object): If library was found using
4073 LD_LIBRARY_PATH, don't try RUNPATH list.
4075 2001-10-31 Martin Schwidefsky <schwidefsky@de.ibm.com>
4077 * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
4078 Correct second argument of register_dump call.
4079 * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
4082 2001-10-31 Ulrich Drepper <drepper@redhat.com>
4084 * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
4086 * iconvdata/TESTS: Likewise.
4087 * iconvdata/gconv-modules: Likewise.
4088 * iconvdata/ibm1132.c: New file.
4089 * iconvdata/ibm1132.h: New file.
4090 * iconvdata/ibm1133.c: New file.
4091 * iconvdata/ibm1133.h: New file.
4092 * iconvdata/ibm1162.c: New file.
4093 * iconvdata/ibm1162.h: New file.
4094 * iconvdata/testdata/IBM1132: New file.
4095 * iconvdata/testdata/IBM1132..UTF8: New file.
4096 * iconvdata/testdata/IBM1133: New file.
4097 * iconvdata/testdata/IBM1133..UTF8: New file.
4098 * iconvdata/testdata/IBM1162: New file.
4099 * iconvdata/testdata/IBM1162..UTF8: New file.
4100 Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
4102 * string/string.h: Fix typo in comment.
4103 * wcsmbs/wchar.h: Likewise.
4105 2001-10-30 Joseph S. Myers <jsm28@cam.ac.uk>
4107 * manual/getopt.texi (getopt_long, getopt_long_only): Include
4108 const in type of longopts parameter.
4110 2001-10-29 Andreas Jaeger <aj@suse.de>
4112 * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
4114 2001-10-29 Kevin Ryde <user42@zip.com.au>
4116 * manual/stdio.texi (Integer Conversions): Corrections to sample printf
4117 output, clarify `#' behaviour on 0.
4118 (Floating-Point Conversions): Clarify that %g only uses %e when
4119 the exponent would be greater than 1.
4121 2001-10-28 Roland McGrath <roland@frob.com>
4123 Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
4124 * sysdeps/mach/powerpc/machine-sp.h: New file.
4125 * sysdeps/mach/powerpc/sysdep.h: New file.
4126 * sysdeps/mach/powerpc/thread_state.h: New file.
4128 * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
4129 * sysdeps/mach/hurd/Makefile: ... to here. For the time being, we can
4130 expect to need the same thing on every platform.
4132 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
4133 * sysdeps/generic/sys/ucontext.h: ... to replace this one.
4135 * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
4136 ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
4137 DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
4138 Move all these assembly-related definitions to ...
4139 * sysdeps/powerpc/elf/sysdep.h: ... this new file.
4141 * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
4142 by Peter Bruin <pjbruin@dds.nl>.
4144 * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
4145 packing results for a `poll' call.
4147 2001-10-26 Ulrich Drepper <drepper@redhat.com>
4149 * posix/fnmatch_loop.c: Recognize - at end of bracket expression
4151 * posix/tst-fnmatch.input: Add tests for - at beginning and end of
4154 * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
4156 * string/tst-strxfrm.c (test): Also test __strxfrm_l.
4158 2001-10-24 H.J. Lu <hjl@gnu.org>
4160 * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
4161 Use __BEGIN_DECLS/__END_DECLS around prototypes.
4162 * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
4164 2001-10-21 Jim Meyering <meyering@lucent.com>
4166 * malloc/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
4167 this code would end up calling gettext even in packages built
4169 * posix/getopt.c (_): Likewise.
4170 * posix/regex.c (_): Likewise.
4172 2001-10-26 Ulrich Drepper <drepper@redhat.com>
4174 * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
4176 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
4177 Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
4179 2001-10-19 Jakub Jelinek <jakub@redhat.com>
4181 * misc/sys/cdefs.h (__attribute_used__): Define.
4182 * elf/rtld.c (_dl_start): Add __attribute_used__.
4183 * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
4185 2001-10-25 Andreas Schwab <schwab@suse.de>
4187 * stdlib/a64l.c: Expect least significant digit first.
4188 * stdlib/l64a.c: Produce least significant digit first.
4189 * stdlib/Makefile (tests): Add test-a64l.
4190 * stdlib/test-a64l.c: New file.
4191 Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
4193 2001-10-21 Ulrich Drepper <drepper@redhat.com>
4195 * po/sk.po: Update from translation team.
4197 2001-10-18 Ulrich Drepper <drepper@redhat.com>
4199 * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
4201 2001-10-18 Andreas Schwab <schwab@suse.de>
4203 * math/libm-test.inc (print_ulps): Print ulp values rounded to
4205 (print_function_ulps): Likewise.
4206 (print_complex_function_ulps): Likewise.
4207 (print_max_error): Likewise.
4208 (print_complex_max_error): Likewise. Handle ignore_max_ulp.
4210 2001-10-16 Andreas Schwab <schwab@suse.de>
4212 * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
4215 * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
4216 BSD_SETJMP or BSD__SETJMP is defined, resp.
4217 * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
4218 a tail call to __sigsetjmp that would require extending the
4220 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
4221 * sysdeps/m68k/bsd-setjmp.S: Deleted.
4222 * sysdeps/m68k/bsd-_setjmp.S: Deleted.
4223 Reported by Jes Sorensen <jes@trained-monkey.org>.
4225 2001-10-16 Andreas Jaeger <aj@suse.de>
4227 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
4228 parentheses. Reported by David Byron <dbyron@porto.coactive.com>,
4231 2001-10-15 Ulrich Drepper <drepper@redhat.com>
4233 * po/ca.po: New file. Contributed by the translation team.
4235 2001-10-15 Ralf Baechle <ralf@gnu.org>
4237 * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
4238 a varargs prototype. Remove dependency from kernel header files.
4240 * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
4241 __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
4243 2001-10-14 Ulrich Drepper <drepper@redhat.com>
4245 * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
4246 to generate hexadecimal identifier.
4247 Patch by Jungshik Shin <jungshik.shin@yale.edu>.
4249 2001-10-09 Stephen L Moshier <moshier@mediaone.net>
4251 * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
4253 2001-10-14 Ulrich Drepper <drepper@redhat.com>
4255 * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
4256 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
4257 Contributed by Stephen L Moshier <moshier@mediaone.net>.
4259 * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
4260 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
4261 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
4262 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
4263 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
4264 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
4266 * timezone/africa: Update from tzdata2001d.
4267 * timezone/asia: Likewise.
4268 * timezone/australasia: Likewise.
4269 * timezone/backward: Likewise.
4270 * timezone/europe: Likewise.
4271 * timezone/leapseconds: Likewise.
4272 * timezone/northamerica: Likewise.
4273 * timezone/southamerica: Likewise.
4274 * timezone/zone.tab: Likewise.
4276 2001-10-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
4278 * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
4279 * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
4281 2001-10-12 Ulrich Drepper <drepper@redhat.com>
4283 * elf/elf.h (PT_TLS): New definition.
4285 2001-10-10 Jeff Bailey <jbailey@nisa.net>
4287 * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
4290 2001-10-07 Roland McGrath <roland@frob.com>
4292 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
4294 2001-10-10 Ulrich Drepper <drepper@redhat.com>
4296 * elf/elf.h: Add more ELFOSABI_* constants.
4298 2001-10-04 Ben Collins <bcollins@debian.org>
4300 * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
4301 decleration of __need_wchar_t.
4303 2001-10-03 Jakub Jelinek <jakub@redhat.com>
4305 * string/bits/string2.h (__strsep_g): Add prototype.
4307 * string/Versions (__strsep): Remove.
4308 * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
4310 2001-10-07 Ulrich Drepper <drepper@redhat.com>
4312 * manua/llio.texi: Clarify file references added by mmap.
4313 Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
4315 2001-09-29 Jes Sorensen <jes@trained-monkey.org>
4317 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
4318 Add sc_loadrs and sc_rbs_bas to match current kernel.
4320 2001-09-27 Jakub Jelinek <jakub@redhat.com>
4322 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
4324 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
4326 2001-09-27 Jakub Jelinek <jakub@redhat.com>
4328 * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
4329 object has been bumped because of relocation dependency, avoid
4330 duplicates in l_scope.
4331 (show_scope): Fix typos.
4332 * elf/Makefile: Add rules to build and run reldep6.
4333 * elf/reldep6.c: New file.
4334 * elf/reldep6mod0.c: New file.
4335 * elf/reldep6mod1.c: New file.
4336 * elf/reldep6mod2.c: New file.
4337 * elf/reldep6mod3.c: New file.
4338 * elf/reldep6mod4.c: New file.
4340 2001-09-26 Jakub Jelinek <jakub@redhat.com>
4342 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
4344 (sparc64_fixup_plt): Moved from elf_machine_fixup_plt. Optimize
4345 near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
4346 for non-lazy binding. Fix .plt[32768+] handling.
4347 (elf_machine_plt_value): Don't add addend.
4348 (elf_machine_rela): Call sparc64_fixup_plt instead of
4349 elf_machine_fixup_plt.
4350 (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
4351 dynamic linker at 0xfffff800XXXXXXXX.
4353 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
4355 2001-09-28 Ulrich Drepper <drepper@redhat.com>
4357 * elf/elf.h: Define SHF_GROUP and SHF_TLS.
4359 2001-09-25 Jakub Jelinek <jakub@redhat.com>
4361 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
4362 declare __cmsg_data field if its size would be bigger than 0.
4363 (CMSG_DATA): Adjust accordingly.
4364 * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
4365 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
4366 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
4367 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
4368 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
4369 * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
4370 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
4372 2001-09-25 Ulrich Drepper <drepper@redhat.com>
4374 * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
4375 * iconvdata/testdata/IBM1160: New file.
4376 * iconvdata/testdata/IBM1160..UTF8: New file.
4377 * iconvdata/testdata/IBM1161: New file.
4378 * iconvdata/testdata/IBM1161..UTF8: New file.
4379 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
4381 2001-09-24 Ulrich Drepper <drepper@redhat.com>
4383 * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
4384 UL_SETFSIZE computations better.
4386 * rt/Makefile: Remove use of filter for librt again.
4388 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
4389 UL_SETFSIZE computations better.
4391 * string/Versions: Export __strsep for GLIBC_2.2.5.
4392 * string/bits/string2.h: Define all __STRING_INLINE functions if
4393 _FORCE_INLINES is defined.
4394 Use int instead of char of parameter types.
4395 (__strsep): Don't use __strsep_g. Don't define it.
4396 (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
4397 * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
4399 (__stpcpy_a_small): Renamed from __stpcpy_small.
4400 (__strcspn_c1): Don't define if _FORCE_INLINES.
4401 (__strspn_c1): Likewise.
4403 2001-09-22 Ben Collins <bcollins@debian.org>
4405 * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
4406 _UNIX98_SOURCE is defined too. Matches generic/bits/sigaction.h.
4407 * sysdeps/ia64/bits/sigaction.h: Likewise.
4408 * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
4410 2001-09-24 Andrew Haley <aph@cambridge.redhat.com>
4412 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
4414 2001-09-24 Jakub Jelinek <jakub@redhat.com>
4416 * elf/dl-open.c (dl_open_worker): Update l_scope_max.
4418 2001-09-24 Ulrich Drepper <drepper@redhat.com>
4420 * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
4422 2001-09-20 H.J. Lu <hjl@gnu.org>
4424 * include/dlfcn.h (__RTLD_SPROF): New definiton.
4425 * elf/dl-open.c (dl_open_worker): Return immediately after loading
4427 * elf/sprof.c (main): Default to the filename if soname doesn't exist.
4428 (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
4430 2001-09-20 H.J. Lu <hjl@gnu.org>
4432 * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
4435 2001-09-22 Ulrich Drepper <drepper@redhat.com>
4437 * nss/getent.c: Accept -s parameter to overwrite rules in
4438 nsswitch.conf. Patch by Nalin Dahyabhai <nalin@redhat.com>.
4440 * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
4441 with as many ".0" as necessary to form a complete address
4442 inet_network understands.
4444 * nss/getent.c: Various cleanups. Use simpler and fewer function
4447 2001-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
4449 * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
4451 * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
4453 2001-09-22 Ulrich Drepper <drepper@redhat.com>
4455 * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
4457 * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
4458 * iconvdata/ibm1160.c: New file.
4459 * iconvdata/ibm1160.h: New file.
4460 * iconvdata/ibm1161.c: New file.
4461 * iconvdata/ibm1161.h: New file.
4462 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
4464 2001-09-19 Jakub Jelinek <jakub@redhat.com>
4466 * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
4467 difference between base address and first PT_LOAD's virtual address,
4468 not the base address.
4470 2001-09-11 Tom Rix <trix@redhat.com>
4472 * sysdeps/unix/sysv/aix/init-first.c (init): Use USE_NONONPTION_FLAG
4473 ifdef for __getopt_clean_environment.
4474 * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
4476 2001-09-22 Andreas Jaeger <aj@suse.de>
4478 * elf/reldep4.c (main): Add proper prototype to fix warning.
4480 * elf/reldep5.c (main): Remove unused variable.
4482 * math/math_private.h: Add prototypes.
4484 2001-09-21 Andreas Jaeger <aj@suse.de>
4486 * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
4487 * sysdeps/x86_64/Dist: New file.
4488 * sysdeps/x86_64/soft-fp/Dist: New file.
4490 * sysdeps/gnu/Dist: Remove eval.c.
4492 2001-09-20 Ulrich Drepper <drepper@redhat.com>
4494 * malloc/memusage.c (realloc): Don't count already allocated
4496 (me): Always use dlsym() to find the real implementations.
4498 * malloc/memusage.sh: Make -n option actually do something.
4500 2001-09-20 Andreas Jaeger <aj@suse.de>
4502 * elf/elf.h (R_390_NUM): Correct value.
4504 * Versions.def: Add missing versions 2.2.3 for libthread_db and
4507 * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
4508 for x86-64, install x86-64 into */lib64.
4510 * shlib-versions: Add x86-64.
4512 * elf/elf.h: Add x86-64 relocations.
4514 2001-09-19 Ulrich Drepper <drepper@redhat.com>
4516 * po/fr.po: Update from translation team.
4518 2001-09-19 Andreas Jaeger <aj@suse.de>
4520 * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
4521 * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
4522 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
4523 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
4524 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
4525 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
4526 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
4527 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
4528 * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
4529 * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
4530 * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
4531 * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
4532 * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
4533 * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
4534 * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
4535 * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
4536 * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
4537 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
4538 * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
4539 * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
4540 * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
4541 * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
4542 * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
4543 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
4544 * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
4545 * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
4546 * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
4547 * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
4548 * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
4549 * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
4550 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
4551 * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
4552 * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
4553 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
4554 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
4555 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
4556 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
4557 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
4558 * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
4559 * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
4560 * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
4561 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
4562 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
4563 * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
4564 * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
4565 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
4566 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
4567 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
4568 * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
4569 * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
4570 * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
4571 * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
4572 * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
4573 * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
4574 * sysdeps/unix/x86_64/sysdep.S: New file.
4575 * sysdeps/unix/x86_64/sysdep.h: New file.
4576 * sysdeps/x86_64/Implies: New file.
4577 * sysdeps/x86_64/Makefile: New file.
4578 * sysdeps/x86_64/Versions: New file.
4579 * sysdeps/x86_64/__longjmp.S: New file.
4580 * sysdeps/x86_64/abort-instr.h: New file.
4581 * sysdeps/x86_64/atomicity.h: New file.
4582 * sysdeps/x86_64/bits/endian.h: New file.
4583 * sysdeps/x86_64/bits/setjmp.h: New file.
4584 * sysdeps/x86_64/bits/string.h: New file.
4585 * sysdeps/x86_64/bp-asm.h: New file.
4586 * sysdeps/x86_64/bsd-_setjmp.S: New file.
4587 * sysdeps/x86_64/bsd-setjmp.S: New file.
4588 * sysdeps/x86_64/dl-machine.h: New file.
4589 * sysdeps/x86_64/elf/initfini.c: New file.
4590 * sysdeps/x86_64/elf/start.S: New file.
4591 * sysdeps/x86_64/ffs.c: New file.
4592 * sysdeps/x86_64/ffsll.c: New file.
4593 * sysdeps/x86_64/fpu/bits/fenv.h: New file.
4594 * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
4595 * sysdeps/x86_64/fpu/e_acosl.c: New file.
4596 * sysdeps/x86_64/fpu/e_atan2l.c: New file.
4597 * sysdeps/x86_64/fpu/e_exp2l.S: New file.
4598 * sysdeps/x86_64/fpu/e_expl.c: New file.
4599 * sysdeps/x86_64/fpu/e_fmodl.S: New file.
4600 * sysdeps/x86_64/fpu/e_log10l.S: New file.
4601 * sysdeps/x86_64/fpu/e_log2l.S: New file.
4602 * sysdeps/x86_64/fpu/e_logl.S: New file.
4603 * sysdeps/x86_64/fpu/e_powl.S: New file.
4604 * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
4605 * sysdeps/x86_64/fpu/e_scalbl.S: New file.
4606 * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
4607 * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
4608 * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
4609 * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
4610 * sysdeps/x86_64/fpu/fegetenv.c: New file.
4611 * sysdeps/x86_64/fpu/fegetexcept.c: New file.
4612 * sysdeps/x86_64/fpu/fegetround.c: New file.
4613 * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
4614 * sysdeps/x86_64/fpu/fesetenv.c: New file.
4615 * sysdeps/x86_64/fpu/fesetround.c: New file.
4616 * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
4617 * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
4618 * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
4619 * sysdeps/x86_64/fpu/ftestexcept.c: New file.
4620 * sysdeps/x86_64/fpu/libm-test-ulps: New file.
4621 * sysdeps/x86_64/fpu/math_ldbl.h: New file.
4622 * sysdeps/x86_64/fpu/printf_fphex.c: New file.
4623 * sysdeps/x86_64/fpu/s_atanl.c: New file.
4624 * sysdeps/x86_64/fpu/s_cosl.S: New file.
4625 * sysdeps/x86_64/fpu/s_expm1l.S: New file.
4626 * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
4627 * sysdeps/x86_64/fpu/s_isinfl.c: New file.
4628 * sysdeps/x86_64/fpu/s_isnanl.c: New file.
4629 * sysdeps/x86_64/fpu/s_log1pl.S: New file.
4630 * sysdeps/x86_64/fpu/s_logbl.c: New file.
4631 * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
4632 * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
4633 * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
4634 * sysdeps/x86_64/fpu/s_rintl.c: New file.
4635 * sysdeps/x86_64/fpu/s_significandl.c: New file.
4636 * sysdeps/x86_64/fpu/s_sincosl.S: New file.
4637 * sysdeps/x86_64/fpu/s_sinl.S: New file.
4638 * sysdeps/x86_64/fpu/s_tanl.S: New file.
4639 * sysdeps/x86_64/gmp-mparam.h: New file.
4640 * sysdeps/x86_64/hp-timing.c: New file.
4641 * sysdeps/x86_64/hp-timing.h: New file.
4642 * sysdeps/x86_64/htonl.S: New file.
4643 * sysdeps/x86_64/memusage.h: New file.
4644 * sysdeps/x86_64/setjmp.S: New file.
4645 * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
4646 * sysdeps/x86_64/stackinfo.h: New file.
4647 * sysdeps/x86_64/sysdep.h: New file.
4648 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
4650 * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
4653 2001-09-18 Ulrich Drepper <drepper@redhat.com>
4655 * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
4656 Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
4658 2001-09-18 Andreas Schwab <schwab@suse.de>
4660 * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
4661 list, now that l_scope is a pointer.
4663 * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
4666 2001-09-18 kaz Kojima <kkojima@rr.iij4u.or.jp>
4668 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
4669 (elf_machine_rela_relative): Add a missing declaration.
4671 2001-09-18 Jakub Jelinek <jakub@redhat.com>
4673 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
4674 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
4675 * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
4676 ldd-rewrite scripts.
4678 2001-09-18 Ulrich Drepper <drepper@redhat.com>
4680 * elf/ldd.bash.in: Update copyright message.
4682 2001-09-17 H.J. Lu <hjl@gnu.org>
4684 * hurd/hurdmalloc.c (bcopy): Removed.
4685 (realloc): Replace bcopy with memcpy.
4686 * hurd/path-lookup.c (file_name_path_scan): Likewise.
4687 * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
4688 * sunrpc/rpcinfo.c (pmapdump): Likewise.
4690 * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
4691 (gethostbyaddr): Likewise.
4692 * sunrpc/rpcinfo.c (get_inet_address): Likewise.
4694 2001-09-18 Ulrich Drepper <drepper@redhat.com>
4696 * sysdeps/gnu/eval.c: Removed.
4698 2001-09-18 Andreas Jaeger <aj@suse.de>
4700 * sysdeps/i386/fpu/s_logbl.S: Move to ...
4701 * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
4703 * sysdeps/i386/fpu/s_rintl.S: Move to ...
4704 * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
4706 * sysdeps/i386/fpu/s_significandl.S: Move to ...
4707 * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
4709 2001-09-16 Ulrich Drepper <drepper@redhat.com>
4711 * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
4714 2001-09-14 H.J. Lu <hjl@gnu.org>
4716 * sysdeps/mips/fpu/libm-test-ulps: Updated.
4718 2001-09-14 Ulrich Drepper <drepper@redhat.com>
4720 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
4721 Patch by Florian La Roche <laroche@redhat.com>.
4723 * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
4725 * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
4728 2001-09-14 Andreas Schwab <schwab@suse.de>
4730 * posix/execl.c: Fix last argument of memcpy. Reported by Brian
4731 Sumner <bls@sgi.com>.
4732 * posix/execlp.c: Likewise.
4734 2001-09-13 Jakub Jelinek <jakub@redhat.com>
4736 * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
4737 is already found earlier in the search scope.
4739 2001-09-12 Jakub Jelinek <jakub@redhat.com>
4741 * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
4744 2001-09-13 Ulrich Drepper <drepper@redhat.com>
4746 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
4748 2001-09-12 Ulrich Drepper <drepper@redhat.com>
4750 * config.h.in: Enforce optimization to be used.
4751 * Makeconfig (preprocess-versions): Define ASSEMBLER.
4752 * stdlib/Makefile (isomac-CFLAGS): Define to -O.
4753 * posix/Makefile (annexc-CFLAGS): Define to -O.
4754 * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
4756 2001-09-11 Ulrich Drepper <drepper@redhat.com>
4758 * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
4759 Patch by Stephan Kulow.
4761 2001-09-08 Ben Collins <bcollins@debian.org>
4763 * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
4764 usage of RESOLVE() (r_type, not reloc->r_type).
4766 2001-09-08 Ulrich Drepper <drepper@redhat.com>
4768 * elf/dl-object.c: Avoid allocating extra memory block for name.
4769 * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
4770 allocated separately.
4771 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
4773 2001-09-08 H.J. Lu <hjl@gnu.org>
4775 * po/zh_TW.po: Fix a typo.
4777 2001-09-07 Tom Rix <trix@redhat.com>
4779 * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
4781 2001-08-26 Tom Rix <trix@redhat.com>
4783 * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
4784 command line options.
4785 * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
4786 * sysdeps/unix/sysv/aix/start.c: Removed.
4787 * sysdeps/unix/sysv/aix/start-libc.c: New file.
4788 * sysdeps/unix/sysv/aix/init-first.c: New file.
4789 * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
4791 2001-09-08 Ben Collins <bcollins@debian.org>
4793 * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
4794 * sysdeps/generic/dl-machine.h: Likewise.
4795 * sysdeps/hppa/dl-fptr.c: Likewise.
4796 * sysdeps/ia64/dl-fptr.c: Likewise.
4797 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
4798 * sysdeps/mips/dl-machine.h: Likewise.
4799 * sysdeps/mips/mips64/dl-machine.h: Likewise.
4800 * sysdeps/powerpc/dl-machine.c: Likewise.
4802 2001-09-07 Ben Collins <bcollins@debian.org>
4804 * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
4806 * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
4808 2001-09-08 Ulrich Drepper <drepper@redhat.com>
4810 * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
4811 dependencies if necessary.
4813 * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
4814 loaded directly) determine length if l_initfini list by iterating
4815 over its elements. Minor optimizations.
4816 * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
4817 for dependency objects.
4818 If object was already loaded check whether any of the dependencies
4819 is already on the relocation dependency list. If yes, remove the
4820 latter. Minor optimizations.
4821 * elf/dl-lookup.c (add_dependency): Add check for self reference of
4822 maps here. Search l_initfini list only if the object was loaded
4823 directly and not only as a dependency.
4824 (_dl_lookup_symbol): Add relocation dependency also if object
4825 is not in global scope. Remove test for self-reference here.
4826 (_dl_lookup_versioned_symbol): Likewise.
4827 * elf/dl-object (_dl_new_object): Cleanup. Initialize dont_free
4828 element of first name record.
4829 * elf/loadtest.c: Add some more test to recognize early if an object
4831 * elf/Makefile: Add rules to build and run reldep5.
4832 * elf/reldep5.c: New file.
4833 * elf/reldepmod5.c: New file.
4834 * elf/reldepmod6.c: New file.
4836 * elf/reldep2.c: Fix typo.
4838 2001-09-07 Ulrich Drepper <drepper@redhat.com>
4840 * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
4841 elements. Change l_scope to be a pointer only.
4842 * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
4843 * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
4844 here add searchlist of newly open file to the dependency's scope.
4845 * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
4846 only searchlist from its scope. Free own scope array if necessary.
4847 * elf/Makefile (tests): Add dblload and dblunload now.
4849 2001-09-06 Andreas Jaeger <aj@suse.de>
4851 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
4854 2001-09-05 Ulrich Drepper <drepper@redhat.com>
4856 * elf/Makefile: Add rules to build new tests. Don't run them yet since
4858 * elf/dblload.c: New file.
4859 * elf/dblloadmod1.c: New file.
4860 * elf/dblloadmod2.c: New file.
4861 * elf/dblloadmod3.c: New file.
4862 * elf/dblunload.c: New file.
4864 2001-09-04 Richard Henderson <rth@redhat.com>
4866 * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
4867 (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
4869 2001-09-04 Ulrich Drepper <drepper@redhat.com>
4871 Correct very misleading message for error in failed runtime relocation.
4872 * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
4874 (_dl_signal_cerror): Likewise.
4875 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
4876 * elf/dl-close.c: Likewise.
4877 * elf/dl-deps.c: Likewise.
4878 * elf/dl-load.c: Likewise.
4879 * elf/dl-lookup.c: Likewise.
4880 * elf/dl-open.c: Likewise.
4881 * elf/dl-reloc.c: Likewise.
4882 * elf/dl-sym.c: Likewise.
4883 * elf/dl-version.c: Likewise.
4884 * sysdeps/generic/dl-sysdep.c: Likewise.
4886 2001-09-04 Jakub Jelinek <jakub@redhat.com>
4888 * iconv/strtab.c (strtabinit): Initialize null Strent.
4889 (newstring): Move len == 0 handling...
4890 (strtabadd): ...here.
4891 If len == 1, return null Strent.
4892 When inserting a suffix of an existing string, check if
4893 it is not equal to some suffix already recorded.
4894 Copy left and right members over if adding longer string.
4896 2001-09-04 Jakub Jelinek <jakub@redhat.com>
4898 * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
4900 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
4901 (__syscall_gethostname): Add prototype.
4903 2001-09-04 Ulrich Drepper <drepper@redhat.com>
4905 * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
4907 2001-09-02 Ulrich Drepper <drepper@redhat.com>
4909 * elf/rtld.c (dl_main): Increment l_opencount for main binary.
4911 2001-08-27 Roland McGrath <roland@frob.com>
4913 * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
4914 short, copy that much into NAME anyway before returning error.
4916 2001-09-01 Richard Henderson <rth@redhat.com>
4918 * sysdeps/alpha/elf/Dist: Remove file.
4919 * sysdeps/alpha/elf/Makefile: Remove file.
4920 * sysdeps/alpha/elf/crtbegin.S: Remove file.
4921 * sysdeps/alpha/elf/crtend.S: Remove file.
4922 * sysdeps/alpha/elf/initfini.c: New file.
4924 2001-09-01 Mark Kettenis <kettenis@gnu.org>
4926 * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
4927 * iconv/tst-iconv3.c: Likewise.
4929 2001-09-01 Jakub Jelinek <jakub@redhat.com>
4931 * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
4933 2001-09-01 Ulrich Drepper <drepper@redhat.com>
4935 * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
4937 * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
4938 * iconv/iconv_prog.c (insert_cache): New function.
4939 (print_known_names): If cache is used call insert_cache to use the
4940 information from the cache [PR libc/2509].
4942 2001-08-31 Ulrich Drepper <drepper@redhat.com>
4944 * time/strptime.c (strptime_internal): Recognize 'l' format and
4945 handle it like 'I' for symmetry with strftime.
4947 2001-08-31 Richard Henderson <rth@redhat.com>
4949 * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
4950 (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
4951 * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
4952 (print_statistics): Make scalar unsigned long long.
4953 * sysdeps/alpha/hp-timing.h: New file.
4955 2001-08-31 Jakub Jelinek <jakub@redhat.com>
4957 * stdio-common/perror.c (perror): Save errno early, pass it
4958 down to perror_internal.
4959 (perror_internal): Add errnum argument.
4961 2001-08-31 Jakub Jelinek <jakub@redhat.com>
4963 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
4964 Don't add old memory content for R_ALPHA_REFQUAD.
4966 2001-08-30 Ulrich Drepper <drepper@redhat.com>
4968 * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
4971 * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
4972 instead of open, __close instead of close, __getpagesize instead
4975 * string/argz-stringify.c (__argz_stringify): Use __strnlen
4977 * include/string.h (strndupa): Redefine here to use __strnlen
4979 * string/strndup.c (__strndup): Use __strnlen not strnlen.
4981 * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
4984 2001-08-30 Jakub Jelinek <jakub@redhat.com>
4986 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
4987 R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
4988 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
4989 * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
4990 * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
4991 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
4992 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
4994 2001-08-30 Ulrich Drepper <drepper@redhat.com>
4996 * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
4998 2001-08-30 Andreas Jaeger <aj@suse.de>
5000 * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
5001 contributed Stephen L Moshier.
5003 2001-08-30 Jakub Jelinek <jakub@redhat.com>
5005 * sunrpc/etc.rpc (sgi_fam): Add.
5007 2001-08-30 Ulrich Drepper <drepper@redhat.com>
5009 * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
5011 2001-08-29 Ulrich Drepper <drepper@redhat.com>
5013 * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
5014 first is from a previous call.
5015 Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
5017 2001-08-29 Andreas Schwab <schwab@suse.de>
5019 * sysdeps/ia64/fpu/libm-test-ulps: Updated.
5021 2001-08-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5023 * config.make.in (INSTALL_SCRIPT): Define.
5024 * Makeconfig (INSTALL_SCRIPT): Define.
5025 * Makerules (do-install-script): New macro to install scripts using
5027 (install-bin-script): New rule to install scripts with
5029 (install-bin-script-nosubdir): New rule.
5030 (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
5031 (distinfo-vars): Add $(install-bin-script).
5032 * Rules (others): Likewise.
5033 * Makefile (glibcbug): Install with install-bin-script.
5034 * debug/Makefile (xtrace): Likewise.
5035 (catchsegv): Likewise.
5036 * elf/Makefile (ldd): Likewise.
5037 * malloc/Makefile (mtrace): Likewise.
5038 * timezone/Makefile (tzselect): Likewise.
5040 2001-08-29 H.J. Lu <hjl@gnu.org>
5042 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
5043 ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
5044 _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
5046 2001-08-29 Andreas Schwab <schwab@suse.de>
5048 * sysdeps/m68k/fpu/libm-test-ulps: Updated.
5050 2001-08-28 H.J. Lu <hjl@gnu.org>
5052 * Makeconfig (combreloc-LDFLAGS): New variable.
5053 Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
5054 * config.make.in (have-z-combreloc): New variable.
5055 * configure.in: Substitute libc_cv_z_combreloc.
5057 2001-08-29 Ulrich Drepper <drepper@redhat.com>
5059 * po/sv.po: Update from translation team.
5060 * po/fr.po: Likewise.
5061 * po/da.po: Likewise.
5063 2001-08-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5065 * Makerules: Fix a typo: MD% -> MD5.
5067 2001-08-28 Ulrich Drepper <drepper@redhat.com>
5069 * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
5070 Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
5072 2001-08-28 Andreas Jaeger <aj@suse.de>
5074 * manual/libc-texinfo.sh: Add entry about free manuals.
5076 * manual/contrib.texi (Contributors): Fix cross reference.
5078 * manual/libc.texinfo (Copying): Include freemanuals.
5080 * manual/Makefile (appendices): Add freemanuals.
5082 * manual/freemanuals.texi: New file.
5083 Patch by Brian Youmans <3diff@gnu.org>.
5085 * manual/libm-err-tab.pl: Pretty print more platforms, print a
5088 * manual/math.texi (Errors in Math Functions): Fix grammar, start
5089 table on separate page.
5090 Patch by Brian Youmans <3diff@gnu.org>.
5092 2001-08-27 Ulrich Drepper <drepper@redhat.com>
5094 * misc/syslog.c (vsyslog): Try a bit harder to use syslogd. If
5095 the connection went down after we first used it try to connect
5096 again and resend the message before printing to the console.
5097 Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
5099 2001-08-27 Jakub Jelinek <jakub@redhat.com>
5101 * string/tst-strlen.c (main): Test strnlen (, -1) too.
5102 * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
5105 2001-08-27 Ulrich Drepper <drepper@redhat.com>
5107 * iconv/strtab.c (searchstring): Use correct length for comparison.
5108 (strtabadd): Account total size correct if new string has old string as
5111 2001-08-27 Jakub Jelinek <jakub@redhat.com>
5113 * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
5115 2001-08-27 Andreas Jaeger <aj@suse.de>
5117 * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
5119 * math/libm-test.inc (j0_test): Add extra tests.
5120 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
5121 not x, in Hankel approximation.
5122 Patches by Stephen L Moshier.
5124 2001-08-26 Ulrich Drepper <drepper@redhat.com>
5126 * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
5129 * configure.in: Fix test for .rela.dyn section.
5131 * elf/dl-runtime.c: Update calls to _dl_lookup_*.
5133 2001-08-26 Jakub Jelinek <jakub@redhat.com>
5135 * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
5136 instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
5137 Pass type_class to _dl_lookup_*.
5138 * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
5139 Pass around just type_class instead of noexec, noplt pair.
5140 (_dl_lookup_versioned_symbol): Likewise.
5141 (_dl_lookup_symbol_skip): Pass around just type_class instead of
5143 (_dl_lookup_versioned_symbol_skip): Likewise.
5144 (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
5145 * elf/do-lookup.h (do_lookup): Likewise.
5146 * include/link.h (struct link_map): Replace noexec and noplt fields
5147 in l_lookup_cache with type_class field.
5148 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
5149 ELF_RTYPE_CLASS_COPY): Define.
5150 Adjust prototypes for _dl_lookup_symbol and
5151 _dl_lookup_versioned_symbol.
5152 * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
5153 elf_machine_lookup_noexec_p): Remove.
5154 (elf_machine_type_class): Define.
5155 * sysdeps/arm/dl-machine.h: Likewise.
5156 * sysdeps/hppa/dl-machine.h: Likewise.
5157 * sysdeps/cris/dl-machine.h: Likewise.
5158 * sysdeps/i386/dl-machine.h: Likewise.
5159 * sysdeps/ia64/dl-machine.h: Likewise.
5160 * sysdeps/m68k/dl-machine.h: Likewise.
5161 * sysdeps/mips/mips64/dl-machine.h: Likewise.
5162 * sysdeps/mips/dl-machine.h: Likewise.
5163 * sysdeps/powerpc/dl-machine.h: Likewise.
5164 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
5165 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
5166 * sysdeps/sh/dl-machine.h: Likewise.
5167 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
5168 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
5170 2001-08-26 Ulrich Drepper <drepper@redhat.com>
5172 * manual/message.texi (Advanced gettext functions): Change
5173 description of plural forms for Slovak.
5174 Reported by Marcel Telka <marcel@telka.sk>.
5176 * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
5177 %z. Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
5179 2001-08-26 Jakub Jelinek <jakub@redhat.com>
5181 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
5182 typo. Patch by Florian La Roche <laroche@redhat.com>.
5184 2001-08-26 Ulrich Drepper <drepper@redhat.com>
5186 * include/link.h (struct link_map): Add l_lookup_cache element.
5187 * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
5188 (RESOLVE_MAP): Likewise.
5189 (_dl_relocate_object): Remove cache initialization.
5190 * elf/dl-lookup.c: Rip out cache handling code.
5191 * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
5194 * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
5195 remove some __builtin_expect.
5196 (_dl_lookup_versioned_symbol): Likewise.
5198 * config.h.in: Add HAVE_Z_COMBRELOC.
5199 * configure.in: Add test for -z combreloc.
5201 * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
5202 optimizations. Use HAVE_Z_COMBRELOC to avoid generaton of
5203 R_386_RELATIVE handling for ld.so startup. Reduce RTLD_BOOTSTRAP
5204 case to almost no code.
5206 2001-08-25 Ulrich Drepper <drepper@redhat.com>
5208 * po/tr.po: Update from translation team.
5210 2001-08-24 Andreas Jaeger <aj@suse.de>
5212 * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
5215 2001-08-24 Ulrich Drepper <drepper@redhat.com>
5217 * elf/rtld.c (print_statistics): Printf % after percent values.
5218 * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
5220 * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
5221 don't have to compute the hash value and initialize current_value.
5222 Move reference_name variable to where it is needed.
5223 (_dl_lookup_versioned_symbol): Likewise.
5225 2001-08-24 Roland McGrath <roland@frob.com>
5227 * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
5228 Just test that strerror returns non-null for a few errno codes.
5230 2001-08-23 Roland McGrath <roland@frob.com>
5232 * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
5233 _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
5235 * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
5237 * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
5240 2001-08-24 Ulrich Drepper <drepper@redhat.com>
5242 * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
5245 * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
5246 startup. Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
5248 * elf/rtld.c: Include <sys/param.h>.
5249 * elf/dl-reloc.c: Likewise.
5251 2001-08-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5253 * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
5254 empty to prevent junk from being generated.
5255 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
5257 2001-08-24 Jakub Jelinek <jakub@redhat.com>
5259 * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
5260 records. Rename endrel to relative, initialize it to r, and use it
5261 in elf_machine_rel_relative calls. Point r after relative relocs.
5263 2001-08-24 Ulrich Drepper <drepper@redhat.com>
5265 * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
5268 2001-08-24 Jakub Jelinek <jakub@redhat.com>
5270 * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
5271 necessary. Undefine newly defined macros at the end.
5272 * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
5273 Rename from elf_machine_rel_relative.
5274 * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
5275 * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
5276 * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
5277 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
5279 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
5281 * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
5283 * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
5285 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
5286 Likewise. Fix argument types.
5287 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
5288 Likewise. Fix argument types.
5289 * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
5291 * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
5292 ElfW(Rel) in argument.
5293 * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
5296 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
5298 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
5300 2001-08-24 Andreas Jaeger <aj@suse.de>
5302 * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
5303 Stephen L Moshier <moshier@mediaone.net>.
5305 2001-08-24 Ulrich Drepper <drepper@redhat.com>
5307 * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
5308 first if RELCOUNT is set.
5310 * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
5311 call elf_machine_rel for the last DT_RELCOUNT relocations but instead
5312 elf_machine_rel_relative.
5313 * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
5314 Minor optimizations.
5315 * sysdeps/arm/dl-machine.h: Likewise.
5316 * sysdeps/cris/dl-machine.h: Likewise.
5317 * sysdeps/hppa/dl-machine.h: Likewise.
5318 * sysdeps/i386/dl-machine.h: Likewise.
5319 * sysdeps/ia64/dl-machine.h: Likewise.
5320 * sysdeps/m68k/dl-machine.h: Likewise.
5321 * sysdeps/mips/dl-machine.h: Likewise.
5322 * sysdeps/powerpc/dl-machine.h: Likewise.
5323 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
5324 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
5325 * sysdeps/sh/dl-machine.h: Likewise.
5326 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
5327 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
5329 2001-08-23 Roland McGrath <roland@frob.com>
5331 * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
5333 * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
5334 sysdeps/mach version. Implement counting ("recursive") mutexes
5335 on top of cthreads mutexes.
5336 * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
5338 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
5339 _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
5340 (__libc_cleanup_region_start, __libc_cleanup_region_end,
5341 __libc_clean_end): Define these to call the cleanup function after
5342 normal exit when they're supposed to.
5344 * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
5345 Take new first arg DOIT, a boolean saying whether to really install
5346 any cleanup handler.
5347 (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
5348 (__libc_cleanup_end): Likewise.
5349 * sysdeps/generic/bits/libc-lock.h: Same changes.
5350 * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
5351 * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
5352 * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
5354 * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
5355 * sysdeps/generic/bits/stdio-lock.h
5356 (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
5358 2001-08-23 Jakub Jelinek <jakub@redhat.com>
5360 * elf/ldconfig.c (search_dir): Remove stale symlinks.
5362 2001-08-23 Jakub Jelinek <jakub@redhat.com>
5364 * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
5365 (_dl_lookup_symbol): Lookup relocations in cache and store successfull
5367 (_dl_lookup_versioned_symbol): Likewise.
5368 * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
5370 * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
5371 * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
5372 (lookup_cache, lookup_cache_versioned): Add declarations.
5374 2001-08-23 Ulrich Drepper <drepper@redhat.com>
5376 * stdlib/tst-random.c (main): Swap parameters in fail call.
5377 Patch by Pete Bevin <pete@petebevin.com>.
5379 2001-08-23 Jakub Jelinek <jakub@redhat.com>
5381 * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
5383 2001-08-23 Ulrich Drepper <drepper@redhat.com>
5385 * malloc/obstack.c: Indent preprocessor directives.
5386 Patch by Jim Meyering <meyering@ascend.com>.
5388 * po/ja.po: Update from translation team.
5390 2001-08-23 Roland McGrath <roland@frob.com>
5392 * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
5394 * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
5395 Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
5397 2001-08-22 Roland McGrath <roland@frob.com>
5399 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
5400 __libc_lock_define_recursive.
5401 * elf/dl-open.c: Don't declare it here any more.
5402 * elf/dl-close.c: Likewise.
5403 * elf/dl-lookup.c: Likewise.
5404 * elf/dl-iteratephdr.c: Likewise.
5405 * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
5406 __libc_lock_unlock_recursive.
5407 * elf/dl-close.c (_dl_close): Likewise
5408 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
5409 * elf/dl-open.c (_dl_open): Likewise
5411 * sysdeps/generic/bits/libc-lock.h
5412 (__libc_lock_define_recursive): New macro.
5413 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
5414 (_IO_lock_lock): Use __libc_lock_lock_recursive.
5415 (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
5417 * conform/conformtest.pl (checknamespace): Sort the output list.
5419 * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
5420 (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
5421 definitions conditional on [__USE_XOPEN].
5423 * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
5424 these unconditionally, not only use [__USE_BSD], so as to match
5425 the sysdeps/unix/sysv/linux files.
5427 2001-08-22 Ulrich Drepper <drepper@redhat.com>
5429 * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
5432 * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
5435 2001-08-22 Roland McGrath <roland@frob.com>
5437 * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
5438 conditionalization of sa_handler/sa_sigaction member types to
5439 match the sysdeps/unix/sysv/linux file.
5441 2001-08-22 Ulrich Drepper <drepper@redhat.com>
5443 * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
5444 symbol sizes a bit better.
5446 * sysdeps/ia64/strncpy.S: Complete rewrite.
5447 Contributed by Jakub Jelinek <jakub@redhat.com>.
5449 * string/stratcliff.c (main): Add strncpy test.
5451 2001-08-22 Roland McGrath <roland@frob.com>
5453 * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
5454 and don't declare unsetenv or _environ directly.
5455 (unsetenv): Return int, not void. Use __environ instead of _environ.
5457 2001-08-01 Mark Kettenis <kettenis@gnu.org>
5459 * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
5460 * sysdeps/unix/bsd/bsd4.4/Versions: New file.
5461 * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
5462 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
5463 test for cmsg struct size.
5465 2001-04-23 Paul Eggert <eggert@twinsun.com>
5467 * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
5468 Rename __argc to ___argc in prototypes to avoid compatibility
5469 problems with systems that reserve the identifier "__argc".
5470 Similarly for __argv.
5472 2001-08-21 Roland McGrath <roland@frob.com>
5474 * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
5476 * mach/Makefile (tests): Removed.
5477 * mach/hello.c: File removed.
5479 2001-08-22 Ulrich Drepper <drepper@redhat.com>
5481 * po/sv.po: Update from translation team.
5483 * stdio-common/vfscanf.c: Fix handling of %l[].
5484 Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
5486 * libio/Makefile (tests): Add tst-sscanf.
5487 * libio/tst-sscanf.c: New file.
5489 * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
5490 * malloc/mtrace.c (tr_where): dli_sname always points to a
5491 non-empty string if != NULL.
5492 Reported by Tim Janik <timj@gtk.org>.
5494 2001-08-22 Jakub Jelinek <jakub@redhat.com>
5496 * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
5497 buf. Free resources on failure.
5498 * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
5499 (makefd_xprt): Likewise.
5500 * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
5501 * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
5502 * sunrpc/auth_unix.c (authunix_create): Likewise.
5504 2001-08-21 Jakub Jelinek <jakub@redhat.com>
5506 * string/strnlen.c: Remove.
5507 * sysdeps/generic/strnlen.c: New file.
5508 * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
5510 2001-08-21 Roland McGrath <roland@frob.com>
5512 * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
5513 as a macro, not an extern inline function.
5515 * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
5516 * Versions.def (libc): Add GLIBC_2.2.5 set.
5517 * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
5518 (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
5520 2001-08-20 Roland McGrath <roland@frob.com>
5522 * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
5523 (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
5525 2001-08-21 Ulrich Drepper <drepper@redhat.com>
5527 * string/bits/string2.h: Remove strnlen optimization here.
5528 * sysdeps/i386/i486/bits/string.h: Add it here.
5530 2001-08-21 Wolfram Gloger <wg@malloc.de>
5532 * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
5534 2001-08-21 Ulrich Drepper <drepper@redhat.com>
5536 * po/gl.po: Update from translation team.
5538 2001-08-20 Ulrich Drepper <drepper@redhat.com>
5540 * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
5541 * misc/err.c (convert_and_print): Likewise.
5543 * malloc/obstack.c (print_and_abort): Use fprintf instead of two
5546 2001-08-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
5548 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
5549 change of the gregset_t type.
5550 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
5552 2001-08-20 kaz Kojima <kkojima@rr.iij4u.or.jp>
5554 * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
5556 2001-08-20 Ulrich Drepper <drepper@redhat.com>
5558 * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
5560 * string/strnlen.c: Fix the implementation. We cannot use memchr.
5562 2001-08-18 Mark Kettenis <kettenis@gnu.org>
5564 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
5565 before calling the cthreads initialization code.
5567 2001-08-20 Ulrich Drepper <drepper@redhat.com>
5569 * argp/argp-help.c: Fix two problems introduced in last change.
5571 * include/dirent.h: Include <dirstream.h> first.
5573 2001-08-19 Ulrich Drepper <drepper@redhat.com>
5575 * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
5577 * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
5578 * sunrpc/xdr_rec.c: Likewise.
5579 * sunrpc/xdr_mem.c: Likewise.
5580 * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
5581 * sunrpc/rpc_cmsg.c: Likewise.
5582 * sunrpc/getrpcport.c (getrpcport): Likewise.
5583 * sunrpc/clnt_simp.c (callrpc): Likewise.
5584 * sunrpc/clnt_gen.c (clnt_create): Likewise.
5585 * string/envz.c: Likewise.
5587 * po/ko.po: Update from translation team.
5589 * argp/argp-help.c: Handle wide oriented stderr stream.
5591 2001-08-18 Ulrich Drepper <drepper@redhat.com>
5593 * sysdeps/generic/strtol.c: Little optimizations. Add some
5596 * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
5598 * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
5599 * wcsmbs/wcwidth.c (wcwdith): Likewise.
5600 * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
5602 * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
5604 * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
5606 * time/time.h (struct timespec): Use __time_t for tv_sec element.
5608 * sysdeps/generic/inttypes.h: Define __wchar_t. Use it instead of
5609 wchar_t for function declarations and defintions.
5611 * misc/sys/select.h: Define __need_time_t before including <time.h>.
5612 Define suseconds_t if it hasn't happened yet.
5614 * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
5616 * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
5618 * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
5621 * conform/data/stddef.h-data: Remove wint_t.
5623 * conform/conformtest.pl: Change namespace test to take #undef
5626 * conform/data/netinet/in.h-data: Fix typo in allow-header line.
5628 * conform/data/sys/socket.h-data: Add sockatmark.
5630 2001-08-17 Ulrich Drepper <drepper@redhat.com>
5632 * io/fts.c: Update from recent BSD source.
5634 2001-08-17 Roland McGrath <roland@frob.com>
5636 * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
5637 * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
5640 2001-08-17 Ulrich Drepper <drepper@redhat.com>
5642 * locale/duplocale.c (__duplocale): Also initialize the special
5645 * conform/data/netdb.h-data: Adjust gai_strerror return type.
5647 2001-08-17 Andreas Jaeger <aj@suse.de>
5649 * misc/getpass.c: Include wchar.h for prototypes.
5650 * malloc/obstack.c: Likewise.
5652 2001-08-17 Ulrich Drepper <drepper@redhat.com>
5654 * sunrpc/svc_simple.c (universal): Use __write instead of write.
5656 * wcsmbs/wcscoll.c: Also define __wcscoll.
5657 * include/wchar.h: Declare __wcscoll.
5659 * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
5660 * libio/vwprintf.c: Likewise.
5661 * libio/wprintf.c: Likewise.
5663 * iconv/gconv_cache.c: Use __munmap instead of munmap.
5665 2001-08-16 Ulrich Drepper <drepper@redhat.com>
5667 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
5669 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
5670 wcslen, and __wcscoll instead of wcscoll.
5672 * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
5674 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
5675 __getuid instead of getuid.
5677 * stdio-common/perror.c (perror): Use __close instead of close.
5678 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
5679 * libio/freopen.c (freopen): Likewise.
5680 * libio/freopen64.c (freopen64): Likewise.
5682 * libio/tst-ungetwc2.c (main): Define str const.
5684 * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
5685 * libio/fwprintf.c: Also define __fwprintf.
5686 * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
5687 * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
5688 * assert/assert-perr.c: Likewise.
5689 * assert/assert.c: Likewise.
5690 * gmon/gmon.c: Likewise.
5691 * inet/rcmd.c: Likewise.
5692 * malloc/obstack.c: Likewise.
5693 * misc/err.c: Likewise.
5694 * misc/error.c: Likewise.
5695 * misc/getpass.c: Likewise.
5696 * posix/getopt.c: Likewise.
5697 * resolv/res_hconf.c: Likewise.
5698 * stdio-common/perror.c: Likewise.
5699 * stdio-common/psignal.c: Likewise.
5700 * stdlib/fmtmsg.c: Likewise.
5701 * sunrpc/auth_unix.c: Likewise.
5702 * sunrpc/clnt_perr.c: Likewise.
5703 * sunrpc/clnt_tcp.c: Likewise.
5704 * sunrpc/clnt_udp.c: Likewise.
5705 * sunrpc/clnt_unix.c: Likewise.
5706 * sunrpc/svc_simple.c: Likewise.
5707 * sunrpc/svc_tcp.c: Likewise.
5708 * sunrpc/svc_udp.c: Likewise.
5709 * sunrpc/svc_unix.c: Likewise.
5710 * sunrpc/xdr.c: Likewise.
5711 * sunrpc/xdr_array.c: Likewise.
5712 * sunrpc/xdr_rec.c: Likewise.
5713 * sunrpc/xdr_ref.c: Likewise.
5714 * sysdeps/generic/wordexp.c: Likewise.
5716 * po/it.po: Update from translation team.
5718 * misc/err.c: Handle wide oriented stderr stream.
5720 2001-08-14 Tom Rix <trix@redhat.com>
5722 * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
5723 * iconv/Makefile: Fix gconv_cache.c CFLAGS.
5725 2001-08-13 Tom Rix <trix@redhat.com>
5727 * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
5728 * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
5731 2001-08-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
5733 * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
5734 Store the access registers to the ucontext structure.
5735 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
5738 * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
5739 Load the access registers from the ucontext structure.
5740 * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
5743 * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
5744 offsets to the new ucontext layout.
5745 * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
5747 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
5748 of the ucontext structure.
5749 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
5751 2001-08-15 Ulrich Drepper <drepper@redhat.com>
5753 * misc/error.c (error): Handle wide oriented stderr stream correctly.
5754 (error_at_line): Likewise.
5756 * stdio-common/perror.c (perror): Implement according to standard.
5757 The stream orientation must not be changed if the stream was not
5758 oriented before the call.
5759 * stdio-common/Makefile (tests): Add tst-perror.
5760 * stdio-common/tst-perror.c: New file.
5763 See ChangeLog.12 for earlier changes.