Update.
[glibc.git] / ChangeLog
blob9d862d39cd4c6c24f9400083e0b067623d0fb1e1
1 2002-02-23  Ulrich Drepper  <drepper@redhat.com>
3         * elf/dl-fini.c (_dl_fini): Print some final statistics on the
4         total number of relocations performed.
6         * elf/sprof.c (load_profdata): If do_test provide information as
7         to why loading failed.
8         * elf/dl-profile.c (_dl_start_profile): Initialize all of
9         hist_hdr.dimen.
11         * csu/set-init.c: Moved to...
12         * sysdeps/mach/hurd/set-init.c: ...here.  New file.
13         * csu/Makefile: Don't compile set-init.
14         * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
15         * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
16         to __libc_init.
17         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
18         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
19         * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
20         __libc_init.
21         * misc/init-misc.c: Always export __init_misc.  Don't define hooks for
22         __libc_subinit.
24 2002-02-22  Ulrich Drepper  <drepper@redhat.com>
26         * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
27         * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
28         * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
29         (_dl_deallocate_tls): New function.
30         * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
31         _dl_deallocate_tls.
33 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
35         * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
36         * stdio-common/tst-fseek.c (main): Add test for this.
38 2002-02-19  Ulrich Drepper  <drepper@redhat.com.>
40         * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
42 2002-02-19  Jakub Jelinek  <jakub@redhat.com>
44         * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
45         pointer before dereferencing.
47 2002-02-18  Roland McGrath  <roland@frob.com>
49         * sysdeps/mach/hurd/times.c: Fix typo in last change.
51         * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
52         Use task_policy in place of task_priority.
54         * sysdeps/generic/bits/mman.h
55         (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
56         * sysdeps/mach/msync.c: New file.
58         * sysdeps/mach/powerpc/syscall.S: New file.
60         * mach/msg.c [MACH_MSG_OVERWRITE]
61         (__mach_msg_trap, __mach_msg_overwrite): New functions.
62         * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
64         * sysdeps/mach/configure.in: Check for clock.defs to put into
65         mach_interface_list.
66         * sysdeps/mach/configure: Regenerated.
68         * mach/Makefile (mach-machine): New variable, set from $(base-machine).
69         ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
70         ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
71         Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
72         (mach-shortcuts): Add device_read_overwrite_request,
73         device_read_overwrite, vm_read_overwrite, thread_switch.
75         * configure.in (base_machine): Set to $machine by default.
76         * configure: Regenerated.
78         * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
79         or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
80         * sysdeps/mach/configure: Regenerated.
81         * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
83         * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
85         * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
87         * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
88         Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
90 2002-02-17  Roland McGrath  <roland@frob.com>
92         * sysdeps/mach/hurd/times.c
93         [NO_CREATION_TIME] (startup_time): New static variable.
94         [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
95         (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
96         creation_time from task_basic_info.
97         (__times): Use __gettimeofday instead of __host_get_time.
99         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
100         Use untyped Mach IPC message format.
102         * hurd/catch-exc.c: Include <assert.h>, missing from last change.
104         * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
105         _S_catch_exception_raise_state_identity,
106         _hurdsig_fault_catch_exception_raise_state,
107         _hurdsig_fault_catch_exception_raise_state_identity.
109         * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
111         * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
112         __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
114         * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
115         `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
117         * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
118         (fmh, unfmh): Define these functions only #if FMH.  Otherwise define
119         them as no-op macros.
120         [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
121         (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
123         * sysdeps/powerpc/dl-machine.h
124         (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
126         * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
127         Use untyped Mach IPC message format.
129         * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
130         Handle untyped Mach IPC message formats.
132         * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
133         Expect different argument conventions when this is defined.
134         [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
135         [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
136         * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
137         [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
138         for OSF Mach variant.
139         (faulted): Use mig_reply_error_t for REPLY.
140         (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
141         in __thread_set_exception_ports call.
142         (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
143         __mach_port_set_attributes in place of __mach_port_set_qlimit.
145         * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
146         before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
147         on Darwin, which includes bogons.
149         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
150         variable LOADBASE so it's not declared when it's not used.
152 2002-02-16  Roland McGrath  <roland@frob.com>
154         * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
155         to use BI.creation_time.
157         * mach/Machrules (MIG): Add -x c to CPP value passed down.
159         * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
160         * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
161         * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
162         host_page_size instead of vm_statistics.
164         * sysdeps/mach/Makefile (mach-before-compile): Don't include
165         mach_interface.h here, since not all variants use that name.
167         * sysdeps/mach/configure.in: Add some checks for Mach headers
168         to ensure a sane installation.
169         (mach_interface_list): Define this variable by checking for .defs
170         files found in various variants.
171         * configure.in (mach_interface_list): AC_SUBST this.
172         * config.make.in (mach-interface-list): New substituted variable.
173         * mach/Makefile (user-interfaces): Define this using the value
174         of $(mach-interface-list) instead of mach, mach4.
175         Updated other references to mach_interface to use it as well.
177         * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
179         * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
180         mig_reply_error_t for OSF Mach variant.
182         * mach/Makefile (routines): Remove bootprivport.
183         * mach/bootprivport.c: File removed.  It has never been used.
185         * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
186         Grok the OSF flavor of message format.
187         (mach_msg_destroy_port): For MAKE_SEND and
188         MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
189         no-senders notification.
191 2002-02-06  Roland McGrath  <roland@frob.com>
193         * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
194         to here if 2.0 compatibility enabled ...
195         (libc: GLIBC_2.1.3): ... from here.
197 2002-02-15  Ulrich Drepper  <drepper@redhat.com>
199         * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
200         generation counter.
201         * elf/dl-close.c (_dl_close): Likewise.
203 2002-02-14  Ulrich Drepper  <drepper@redhat.com>
205         * elf/Makefile: Add rules to build and run tst-tls8.
206         * elf/tst-tls8.c: New file.
207         * elf/tst-tlsmod4.c: New file.
209         * stdlib/test-a64l.c (tests): Add more test cases.
211         * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
212         Reported by Walter Harms <WHarms@bfs.de>.
214 2002-02-11  Jes Sorensen  <jes@trained-monkey.org>
216         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
217         definitions for struct sigcontext.
218         Suggested by David Mosberger-Tang.
220 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
222         * elf/dl-close.c (remove_slotinfo): New function.  Handles everything
223         for removing reference of module in slotinfo list.
224         (_dl_close): Use remove_slotinfo.
225         * sysdeps/generic/dl-tls.c: General pretty printing.
226         (oom): Define only if SHARED.
227         (_dl_next_tls_modid): Correct starting point for the case we assume
228         there is a gap.  Add missing instruction grouping (doh!).  Correct
229         tests for reaching maximum index.
230         * elf/Makefile: Add rules to build and run tst-tls7.
231         * elf/tst-tls7.c: New file.
232         * elf/tst-tlsmod3.c: New file.
234         * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
235         USE_TLS.
236         * elf/tst-tlsmod2.c: Likewise.
238         * elf/dl-close.c (_dl_close): When closing an object using TLS
239         either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
240         true.  Increment dl_tls_generation only if we closed any TLS-using
241         object.
242         * elf/tst-tls6.c: New file.
243         * elf/Makefile: Add rules to build and run tst-tls6.
245         * po/da.po: Update from translation team.
247         * locale/categories.def: Fix typo [PR libc/2948].
248         * po/Makefile (BROKEN_LINGUAS): Works with current gettext
249         [PR libc/2949].
250         * locale/iso-4217.def: Update from official version [PR libc/2950].
251         * glibcbug.in: Honor TMPDIR [PR libc/2951].
252         * locale/programs/ld-collate.c (collate_finish): Bail out with a
253         message if input is too confusion instead of using assert.
254         (collate_read): Don't crash on unknown symbol [PR libc/2952].
255         Patches by Alastair McKinstry <alastair@pdd.3com.com>.
257         * elf/tst-tls1.c: Move #include "tls-macros.h" instead #ifdef USE_TLS.
258         * elf/tst-tls2.c: Likewise.
259         * elf/tst-tls3.c: Likewise.
261 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
263         * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
265 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
267         * elf/dl-open.c (dl_open_worker): Only bump the generation counter
268         if this is really necessary.
270         * elf/dl-close.c (_dl_close): Implement freeing entries in the
271         slotinfo array.
272         (free_mem): Free memory for the slotinfo array if possible.
274 2002-02-12  Andreas Schwab  <schwab@suse.de>
276         * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
278 2002-02-12  Ulrich Drepper  <drepper@redhat.com>
280         * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
281         TLS_DTV_UNALLOCATE.
282         (oom): New function.
283         (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
284         (_dl_determine_tlsoffset): Likewise.
285         (_dl_allocate_tls): Likewise.
286         (__TLS_GET_ADDR): Define if not already defined.
287         (_dl_tls_symaddr): New function.
288         (allocate_and_init): New function.
289         (__tls_get_addr): Actually implement handling of generation counter
290         and deferred allocation.
291         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
292         add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
293         _dl_tls_generation.
294         Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
295         Declare _dl_tls_symaddr.
296         * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
297         SHARED.
298         * include/link.h (struct link_map):  Remove l_tls_nextimage and
299         l_tls_previmage.
300         * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
301         instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
302         (_dl_vsym): Likewise.
303         * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
304         layout.
305         (dl_main): Allow PT_TLS be present for empty segment.  Remove
306         nextimage list handling.  Instead add all modules using TLS to
307         dl_tls_dtv_slotinfo_list.
308         * elf/dl-open.c (dl_open_worker): After successfully loading all
309         objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
310         * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
311         empty segment don't do anything.  Remove handling of initimage list.
312         * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
313         (GLIBC_PRIVATE): Add _dl_tls_symaddr.
314         * elf/dl-minimal.c: Define __libc_memalign.
315         * elf/dl-support.c: Remove _dl_initimage_list.  Add
316         _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
317         _dl_tls_generation.
318         * include/stdlib.h: Declare __libc_memalign.
320         * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
321         * elf/tst-tls4.c: New file.
322         * elf/tst-tls5.c: New file.
323         * elf/tst-tlsmod2.c: New file.
325         * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
327         * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
329         * elf/tst-tls1.c: Use test-skeleton.c.
330         * elf/tst-tls2.c: Likewise.
331         * elf/tst-tls3.c: Likewise.
333         * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
335 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
337         * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
339 2002-02-10  Ulrich Drepper  <drepper@redhat.com>
341         * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
343         * elf/tst-tls3.c: New file.
344         * elf/tst-tlsmod1.c: New file.
345         * elf/Makefile: Add rules to build and run tst-tls3.
347         * sysdeps/i386/dl-machine.h: Include <tls.h>.
348         (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
349         TLS relocations.
351         * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
353         * po/fr.po: Update from translation team.
355         * elf/tls-macros.h: Add alternative macros for use in PIC.
357         * elf/dl-lookup.c: Include <tls.h>.
358         * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
360         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
361         required by passing pointer to last element of the list.
363         * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
364         l_tls_initimage to a place where it actually is performed.
366         * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
367         after globfree() calls.
369         * elf/dl-deps.c (struct openaux_args): Add open_mode element.
370         (openaux): Pass open_mode as new last argument to _dl_map_object.
371         (_dl_map_object_deps): Add new argument open_mode.  Initialize
372         open_mode element of args variable with it.
373         * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
374         _dl_map_object_deps.
375         * elf/rtld.c (dl_main): Add zero as last parameter to
376         _dl_map_object_deps call.
377         * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
378         * elf/nodlopen2.c: New file.
379         * elf/nodlopenmod2.c: New file.
380         * elf/Makefile: Add rules to build and run nodlopen2.
382         * elf/tst-tls1.c: Move TLS helper macros to...
383         * elf/tls-macros.h: ...here.  New file.
384         * elf/tst-tls2.c: New file.
385         * elf/Makefile (tests): Add tst-tls2.
386         (distribute): Add tls-macros.h.
388         * po/sv.po: Update from translation team.
390         * elf/tst-tls1.c (main): Add complete set of tests.  Split
391         architecture specific definitions from the actual test code.
393         * po/tr.po: Update from translation team.
395 2002-02-09  Ulrich Drepper  <drepper@redhat.com>
397         * elf/Makefile (tests): Add tst-tls1.
398         * elf/tst-tls1.c: New file.
400         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
401         alignment of TCB for now.
403         * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
404         initialization image for the application itself.
406         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
407         loop to initialize TLS block.
409 2002-02-08  Richard Henderson  <rth@redhat.com>
411         * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
412         _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
414         * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
416 2002-02-09  Jakub Jelinek  <jakub@redhat.com>
418         * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
420 2002-02-08  Ulrich Drepper  <drepper@redhat.com>
422         * po/ca.po: Update from translation team.
423         * po/sk.po: Likewise.
425         * elf/rtld.c (_dl_start_final): Install DTV explicitly.
426         (dl_main): Move dtv/static TLS handling before relocation.
427         Unconditionally call _dl_tlsoffset.  Call _dl_allocate_tls and
428         TLS_INIT_TP to allocate and install the dtv/static TLS block.
429         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
430         so far uses TLS initialize GL(dl_tls_static_size) and
431         GL(dl_tls_static_align) to account for the TCB.
432         (_dl_allocate_tls): New function.
433         * sysdeps/generic/ldsodefs.h (rtld_global): Add
434         _dl_initial_dtv_malloced.
436         * configure.in: Test for __builtin_memset more realistically.
438         * csu/version.c (banner): If TLS support is available say so.
440 2002-02-04  H.J. Lu  <hjl@gnu.org>
442         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
443         __attribute_used__.
444         (__dl_runtime_resolve): Likewise.
446         * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
447         declaration.
449 2001-11-15  H.J. Lu  <hjl@gnu.org>
451         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
452         <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
454         * sysdeps/unix/sysv/linux/mips/sys/user.h: New.
456 2002-02-07  H.J. Lu  <hjl@gnu.org>
458         * sysdeps/mips/atomicity.h (compare_and_swap): Remove
459         ".set noreorder".
460         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
461         Likewise.
463 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
465         * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
467         * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
468         ___tls_get_addr_internal.
469         (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
471         * po/ko.po: Update from translation team.
473 2002-02-07  Jakub Jelinek  <jakub@redhat.com>
475         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
476         attribute, change __pad{1,2} type to unsigned int.
477         (struct stat64): Remove packed attribute.
479 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
481         * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
483 2002-02-07  Andreas Schwab  <schwab@suse.de>
485         * configure.in: Fix check for -zcombreloc.
487 2002-02-06  H.J. Lu  <hjl@gnu.org>
489         * config.h.in (HAVE_BUILTIN_MEMSET): New.
490         * configure.in: Check if __builtin_memset really works.
491         * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
492         __GNUC_PREREQ (2, 96) before using __builtin_memset.
494 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
496         * io/bug-ftw3.c (main): Don't try the test if root.
498 2002-02-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
500         * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
501         constraints.
502         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
503         Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
504         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
505         Likewise.
506         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
507         a weak alias for __clone.
508         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
509         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
510         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
511         * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
512         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
513         a weak alias for __mmap64.
515 2002-02-05  H.J. Lu  <hjl@gnu.org>
517         * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
518         (atomic_add): Likewise.
519         (compare_and_swap): Likewise.
520         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
522 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
524         * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
526         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
527         alignment of the TCB and store total size and alignment of static
528         TLS block in _dl_tls_static_size and _dl_tls_static_align.
529         tls_index is a typedef.
530         * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
531         _dl_tls_static_align.
532         * sysdeps/i386/dl-tls.h: tls_index is a typedef.
533         * elf/dl-support.c: Define _dl_tls_static_size and
534         _dl_tls_static_align.
536 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
538         * configure.in: Add --without-tls option.
539         * sysdeps/i386/elf/configure.in: Don't check for TLS support if
540         --without-tls is given.
542         * sysdeps/generic/dl-tls.c: Include <tls.h>.
544         * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
546 2002-02-06  Roland McGrath  <roland@frob.com>
548         * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
549         * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
551         * scripts/versions.awk: Improve error message for missing version.
552         Each version inherits from the last one only if they have the same
553         nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
554         but not GLIBC_x and FOO_y.
556         * scripts/firstversions.awk: Handle libraries that don't have each
557         particular version named in the third column of shlib-versions.
559         * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
561 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
563         * Versions.def [ld]: Add GLIBC_2.3.
564         * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
565         * elf/Makefile (dl-routines): Add dl-tls.
566         (distribute): Add dl-tls.h.
567         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
568         _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
569         Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
570         * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
571         along with the other info in the link map.  Change queueing of init
572         images for double linked list.  Use _dl_next_tls_modid to compute
573         l_tls_modid.
574         * elf/rtld.c (_dl_start_final): Store alignment requirement
575         along with the other info in rtld map and executable map.
576         (dl_main): Add ld.so to the init image list if necessary.  Compute
577         final module ID with _dl_next_tls_modid.
578         * include/link.h (struct link_map): Add l_tls_previmage and
579         l_tls_align.
580         * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
581         * sysdeps/i386/elf/Versions: New file.
582         * sysdeps/generic/dl-tls.c: New file.
583         * sysdeps/generic/dl-tls.h: New file.
584         * sysdeps/i386/dl-tls.h: New file.
586 2002-02-06  Roland McGrath  <roland@frob.com>
588         * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
589         * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
591 2002-01-05  Roland McGrath  <roland@frob.com>
593         * sysdeps/mach/configure.in: New file.
594         * sysdeps/mach/configure: New generated file.
596         * mach/Makefile (user-interfaces): Remove default_pager_helper.
597         It has never been used by anything.
599 2002-02-06  H.J. Lu  <hjl@gnu.org>
601         * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
602         is included.
604 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
606         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
607         attribute((packed)) to counter stupid people misusing gcc options.
608         (struct stat64): Likewise.
610 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
612         * elf/rtld.c (dl_main): Correct indentation.  Use bool as type for
613         the variables which are used as booleans.
615 2002-02-06  Andreas Jaeger  <aj@suse.de>
617         * include/libc-symbols.h (INTUSE): Renamed from INT.
618         * elf/dl-deps.c: Change users.
619         * sysdeps/generic/dl-sysdep.c: Likewise.
620         * sysdeps/generic/dl-cache.c: Likewise.
621         * elf/dl-reloc.c: Likewise.
622         * elf/rtld.c: Likewise.
623         * elf/dl-version.c: Likewise.
624         * elf/dl-load.c: Likewise.
625         * elf/dl-dst.h: Likewise.
626         * elf/dl-init.c: Likewise.
627         * elf/dl-error.c: Likewise.
628         * elf/dl-fini.c: Likewise.
629         * elf/dl-runtime.c: Likewise.
630         * elf/do-lookup.h: Likewise.
632         * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
633         definition.
634         * stdio-common/_itowa.h: Likewise.
636 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
638         * elf/dl-minimal.c: Define _itoa_lower_digits.
640         * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
641         DT_FLAGS set.
643         * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
644         loading modules with the DF_STATIC_TLS flag set.
645         * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
646         element.
647         * include/link.h (struct link_map): Add l_flags field.
648         * elf/elf.h (DF_STATIC_TLS): New definition.
650         * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
651         * dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.
653         * elf/rtld.c (process_dl_debug): Correct printing help message.
654         * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
655         for %s.
657         * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
658         definition and pass &errno in use of this variable.
659         Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
661 2002-02-04  Andreas Schwab  <schwab@suse.de>
663         * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
664         * locale/programs/charmap-dir.c: Wrap calls that output messages
665         with WITH_CUR_LOCALE.  Include "localedef.h" first.
666         * locale/programs/charmap.c: Likewise.
667         * locale/programs/ld-address.c: Likewise.
668         * locale/programs/ld-collate.c: Likewise.
669         * locale/programs/ld-ctype.c: Likewise.
670         * locale/programs/ld-identification.c: Likewise.
671         * locale/programs/ld-measurement.c: Likewise.
672         * locale/programs/ld-messages.c: Likewise.
673         * locale/programs/ld-monetary.c: Likewise.
674         * locale/programs/ld-name.c: Likewise.
675         * locale/programs/ld-numeric.c: Likewise.
676         * locale/programs/ld-paper.c: Likewise.
677         * locale/programs/ld-telephone.c: Likewise.
678         * locale/programs/ld-time.c: Likewise.
679         * locale/programs/linereader.c: Likewise.
680         * locale/programs/linereader.h: Likewise.
681         * locale/programs/localedef.c: Likewise.
682         * locale/programs/locfile.c: Likewise.
683         * locale/programs/repertoire.c: Likewise.
685 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
687         * elf/rtld.c (_dl_start_final): Determine load address to locate
688         ehdr with GL(dl_rtld_map).l_map_start.
690         * po/ca.po: Update from translation team.
692         * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
693         * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
694         header entry.
695         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
696         _dl_tls_module_cnt.
697         * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
699 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
701         * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
702         * include/link.h (struct link_map): Add various members for TLS
703         information.
704         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
705         _rtld_tlsoffset, add _dl_initimage_list.
706         * sysdeps/i386/dl-lookupcfg.h: New file.
707         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
708         TLS relocation.  When using TLS we now use RESOLVE_MAP.
709         (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
710         is used.
712         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
713         unused.
715         * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
716         thread-pointer as soon as possible.
717         * sysdeps/generic/ldsodefs.h: Include <tls.h>.  Define first TLS
718         elements in rtld_global.
719         * sysdeps/generic/tls.h: New file.
720         * elf/Makefile (distribute): Add tls.h.
721         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
722         relocations.  Not complete yet.
724         * resolv/resolv.h: Allow user to define __need_res_state and only
725         define __res_start structure then.
726         * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
728         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
729         dl_cpuclock_offset initialization to _dl_start_final.
730         (_dl_show_auxv): Avoid unnecessary sign extension.
731         * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
733 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
735         * config.h.in: Add HAVE_TLS_SUPPORT.
736         * sysdeps/i386/elf/configure.in: New file.
738 2002-02-03  Andreas Schwab  <schwab@suse.de>
740         * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
741         * sysdeps/posix/writev.c: Use ssize_t for bytes_written.  Fix comment.
743 2002-02-03  Thorsten Kukuk  <kukuk@suse.de>
745         * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
746         alloca if the memory reqirements are too high.
748 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
750         * elf/dl-load.c (decompose_rpath): Avoid using strstr.
751         * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
752         the former is available anyway and speed isn't important here.
753         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
754         * elf/dl-version.c (match_symbol): Likewise.
755         (_dl_check_map_versions): Likewise.
756         * elf/rtld.c (process_envvars): Likewise.
757         (print_statistics): Likewise.
758         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
759         * elf/dl-minimal.c (_itoa): Always define it.  Make it work for all
760         bases.  Add assert to catch uses of unimplemented features.
761         (__strsep): Add assert to catch uses of unimplemented features.
762         * elf/dl-object.c (_dl_new_object): Don't use rawmemchr.  Use strchr
763         and avoid inline optimization.
764         * elf/rtld.c (process_envvars): Likewise.
765         * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
766         * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
767         * elf/rtld.c (dl_main): Avoid strsep inline optimization.
769 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
771         * stdio-common/_itoa.h: Minor simplifications of the code.
772         * stdio-common/_itoa.c: Likewise.
774         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
775         instead of _dl_printf for debugging info output.
777         * manual/examples/mkfsock.c (make_named_socket): Make sure name is
778         always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.
780 2002-02-01  H.J. Lu  <hjl@gnu.org>
782         * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
783         (atomic_add): Likewise.
784         (compare_and_swap): Return 0 only when failed to compare. Use
785         branch likely.
787         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
788         branch likely.
790 2002-02-03  kaz Kojima  <kkojima@rr.iij4u.or.jp>
792         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
794 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
796         * elf/dl-minimal.c (__strsep): New minimal implementation.
798 2002-02-02  Paul Eggert  <eggert@twinsun.com>
800         * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
801         (__mktime_internal): If no tm_isdst is requested, prefer solutions
802         with tm_isdst > 0 when the requested time falls within a
803         spring-forward gap [PR libc/2894].
805 2002-02-03  Andreas Schwab  <schwab@suse.de>
807         * stdio-common/tst-rndseek.c: Increase timeout.
809 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
811         Change ld.so to not use functions which are exported.  One cannot
812         interpose them anyway.  Use INT() to mark uses, INTDEF() to mark
813         definitions.
814         * include/libc-symbols.h: Define INT and INTDEF.
815         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
816         _dl_signal_error_internal, _dl_map_object_internal,
817         _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
818         _dl_lookup_versioned_symbol_internal,
819         _dl_relocate_object_internal, _dl_debug_state_internal,
820         _dl_start_profile_internal, and _dl_unload_cache_internal.
821         * include/dlfcn.h: Declare _dl_catch_error_internal.
822         * elf/rtld.c: Use INT for calls to any of the *_internal functions
823         above.  Add INTDEF to function definitions.
824         * elf/dl-debug.c: Likewise.
825         * elf/dl-deps.c: Likewise.
826         * elf/dl-dst.h: Likewise.
827         * elf/dl-error.c: Likewise.
828         * elf/dl-fini.c: Likewise.
829         * elf/dl-init.c: Likewise.
830         * elf/dl-load.c: Likewise.
831         * elf/dl-lookup.c: Likewise.
832         * elf/dl-misc.c: Likewise.
833         * elf/dl-open.c: Likewise.
834         * elf/dl-profile.c: Likewise.
835         * elf/dl-reloc.c: Likewise.
836         * elf/dl-runtime.c: Likewise.
837         * elf/dl-version.c: Likewise.
838         * elf/do-lookup.h: Likewise.
839         * sysdeps/generic/dl-cache.c: Likewise.
840         * sysdeps/generic/dl-sysdep.c: Likewise.
841         * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
842         instead of _dl_init.
843         * sysdeps/arm/dl-machine.h: Likewise.
844         * sysdeps/cris/dl-machine.h: Likewise.
845         * sysdeps/hppa/dl-machine.h: Likewise.
846         * sysdeps/i386/dl-machine.h: Likewise.
847         * sysdeps/ia64/dl-machine.h: Likewise.
848         * sysdeps/m68k/dl-machine.h: Likewise.
849         * sysdeps/mips/dl-machine.h: Likewise.
850         * sysdeps/mips/mips64/dl-machine.h: Likewise.
851         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
852         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
853         * sysdeps/sh/dl-machine.h: Likewise.
854         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
855         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
856         * sysdeps/x86_64/dl-machine.h: Likewise.
857         * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
859         * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
860         and _dl_debug_initialize.
862         * elf/dl-object.c (_dl_new_object): Avoid using strrchr.  We have
863         more information.
864         * elf/rtld.c (dl_main): Avoid strrchr.
865         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
866         result of readlink.  Search from the back for '/'.
868         * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
869         strncpy if possible.
871         * sysdeps/generic/dl-environ.c (unsetenv): Optimize.  Don't use
872         strncmp.
873         * elf/dl-load.c (is_dst): Optimize.  Don't call strncmp twice.
874         * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
875         strspn, and strcspn.
876         (process_envvars): Don't use strcspn.
878         * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
879         (_dl_dst_substitute): Likewise.
881 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
883         * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
884         code which is never used when relocating ld.so itself.
886         * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
887         starting ld.so itself.  Move l_addr variable initialization closer
888         to use.
889         (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
891 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
893         * Versions.def (libc): Add GLIBC_PRIVATE.
894         (libdb, libnss_db, libdb1): Remove.
895         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
896         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
897         (libpthread): Add GLIBC_PRIVATE.
898         (libresolv): Likewise, remove GLIBC_2.1.
899         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
900         GLIBC_2.2.3, GLIBC_2.3.
901         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
902         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
903         _dl_sym, _dl_vsym): Likewise.
904         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
905         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
906         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
907         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
908         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
909         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
910         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
911         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
912         Likewise.
913         (_dl_object_relocation_scope): Remove.
914         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
915         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
916         __gconv_cache): Move to GLIBC_PRIVATE.
917         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
918         __internal_setnetgrent): Likewise.
919         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
920         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
921         * locale/Versions (__collate_element_hash, __collate_element_strings,
922         __collate_symbol_classes, __collate_symbol_hash,
923         __collate_symbol_strings, _nl_current_LC_COLLATE,
924         _nl_current_LC_CTYPE): Likewise.
925         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
926         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
927         (libnss_nis, libnss_nisplus): Likewise.
928         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
929         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
930         (libnss_files): Move all symbols to GLIBC_PRIVATE.
931         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
932         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
933         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
934         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
935         __ns_get16, __ns_samename): Likewise.
936         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
937         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
938         GLIBC_PRIVATE.
939         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
940         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
941         __libc_connect): Likewise.
942         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
943         Likewise.
944         * stdlib/Versions (__libc_system): Likewise.
945         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
946         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
947         * sysdeps/ia64/fpu/Versions: Likewise.
948         * sysdeps/ia64/Versions: Likewise.
949         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
950         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
951         to GLIBC_PRIVATE.
952         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
953         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
954         __libc_sigaction): Likewise.
955         * termios/Versions (__libc_tcdrain): Likewise.
957         * misc/sys/cdefs (__attribute_noinline__): Define.
958         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
959         __attribute_noinline__.
961         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
962         * elf/dl-xstat64.c: New file.
963         * elf/dl-fxstat64.c: New file.
964         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
965         don't export __fxstat64 at multiple versions.
966         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
967         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
969 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
971         * locale/program/ld-collate.c (collate_finish): Assign a wide
972         char collation sequence value to multi character collating
973         elements, and avoid over writing by non-character elements.
975 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
977         * elf/Makefile (distribute): Add dl-procinfo.c.
978         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
979         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
981 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
983         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
984         definition.
985         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
986         _rtld_global struct.
987         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
988         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
989         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
990         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
991         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
992         _dl_fpu_control_set): Remove unused externs.
993         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
994         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
995         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
996         related variables in _rtld_global struct.
997         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
998         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
999         unused extern.
1001 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
1003         * sysdeps/generic/dl-procinfo.c: New file.
1005 2002-02-01  Andreas Schwab  <schwab@suse.de>
1007         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
1009 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
1011         * elf/rtld.c (_dl_start): Mark as internal_function.
1012         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
1013         in register.
1014         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
1015         General pretty printing.
1017 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
1019         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
1020         * elf/dl-reloc.c: Pretty printing.
1021         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
1022         procinfo-related variables in rtld_global struct.
1023         * elf/dl-support.c: Likewise.
1024         * elf/rtld.c: Likewise.
1025         * sysdeps/i386/i686/Makefile: Likewise.
1026         * sysdeps/i386/i686/hp-timing.c: Likewise.
1027         * sysdeps/i386/i686/hp-timing.h: Likewise.
1028         * sysdeps/ia64/Makefile: Likewise.
1029         * sysdeps/ia64/hp-timing.c: Likewise.
1030         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
1031         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
1032         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
1033         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
1034         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
1035         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
1036         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
1037         * sysdeps/x86_64/Makefile: Likewise.
1039         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
1040         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
1041         _dl_debug_fd to rtld_global.
1042         * elf/Versions: Likewise.
1043         * elf/dl-close.c: Likewise.
1044         * elf/dl-iteratephdr.c: Likewise.
1045         * elf/dl-lookup.c: Likewise.
1046         * elf/dl-misc.c: Likewise.
1047         * elf/dl-open.c: Likewise.
1048         * elf/dl-support.c: Likewise.
1049         * elf/do-lookup.h: Likewise.
1050         * elf/rtld.c: Likewise.
1051         * sysdeps/generic/dl-cache.c: Likewise.
1052         * sysdeps/generic/dl-sysdep.c: Likewise.
1053         * sysdeps/ia64/Versions: Likewise.
1054         * sysdeps/unix/clock_gettime.c: Likewise.
1055         * sysdeps/unix/clock_settime.c: Likewise.
1056         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
1057         * sysdeps/sparc/Versions: Removed.
1058         * sysdeps/i386/i686/Versions : Removed.
1059         * sysdeps/x86_64/Versions: Removed.
1060         * configure.in: Define HAVE_PROTECTED if .protected is available.
1061         * config.h.in: Add entry for HAVE_PROTECTED.
1063 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
1065         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
1066         code in struct _rtld_global.  Export this struct, remove all
1067         exports for the signal variables.
1068         * sysdeps/arm/dl-machine: Likewise.
1069         * sysdeps/generic/dl-origin: Likewise.
1070         * sysdeps/generic/dl-sysdep: Likewise.
1071         * sysdeps/generic/dl-cache: Likewise.
1072         * sysdeps/hppa/dl-fptr: Likewise.
1073         * sysdeps/hppa/dl-machine: Likewise.
1074         * sysdeps/cris/dl-machine: Likewise.
1075         * sysdeps/i386/dl-machine: Likewise.
1076         * sysdeps/ia64/dl-machine: Likewise.
1077         * sysdeps/m68k/dl-machine: Likewise.
1078         * sysdeps/mach/hurd/dl-sysdep: Likewise.
1079         * sysdeps/mips/mips64/dl-machine: Likewise.
1080         * sysdeps/mips/dl-machine: Likewise.
1081         * sysdeps/powerpc/elf/libc-start: Likewise.
1082         * sysdeps/powerpc/dl-machine: Likewise.
1083         * sysdeps/powerpc/dl-start: Likewise.
1084         * sysdeps/sparc/sparc32/dl-machine: Likewise.
1085         * sysdeps/sparc/sparc64/dl-machine: Likewise.
1086         * sysdeps/sh/dl-machine: Likewise.
1087         * sysdeps/s390/s390-32/dl-machine: Likewise.
1088         * sysdeps/s390/s390-64/dl-machine: Likewise.
1089         * sysdeps/unix/sysv/aix/libc-start: Likewise.
1090         * sysdeps/unix/sysv/aix/start-libc: Likewise.
1091         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
1092         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
1093         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
1094         * sysdeps/x86_64/dl-machine: Likewise.
1096 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
1098         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
1099         are too high.
1101 2002-01-31  Andreas Schwab  <schwab@suse.de>
1103         * sysdeps/posix/readv.c: Check for ssize_t overflow.
1105 2002-01-31  Andreas Schwab  <schwab@suse.de>
1107         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
1108         reference to _dl_pagesize.
1110 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
1112         * Versions.def [ld]: Add GLIBC_2.3.
1113         * elf/dl-addr.c: Move global variables for SHARED code in struct
1114         _rtld_global.  Export this struct, remove all exports for the
1115         signal variables.
1116         * elf/dl-close.c: Likewise.
1117         * elf/dl-conflict.c: Likewise.
1118         * elf/dl-debug.c: Likewise.
1119         * elf/dl-deps.c: Likewise.
1120         * elf/dl-dst.h: Likewise.
1121         * elf/dl-error.c: Likewise.
1122         * elf/dl-fini.c: Likewise.
1123         * elf/dl-init.c: Likewise.
1124         * elf/dl-iteratephdr.c: Likewise.
1125         * elf/dl-libc.c: Likewise.
1126         * elf/dl-load.c: Likewise.
1127         * elf/dl-lookup.c: Likewise.
1128         * elf/dl-minimal.c: Likewise.
1129         * elf/dl-object.c: Likewise.
1130         * elf/dl-open.c: Likewise.
1131         * elf/dl-profile.c: Likewise.
1132         * elf/dl-profstub.c: Likewise.
1133         * elf/dl-reloc.c: Likewise.
1134         * elf/dl-runtime.c: Likewise.
1135         * elf/dl-support.c: Likewise.
1136         * elf/dl-sym.c: Likewise.
1137         * elf/dl-version.c: Likewise.
1138         * elf/do-lookup.h: Likewise.
1139         * elf/do-rel.h: Likewise.
1140         * elf/dynamic-link.h: Likewise.
1141         * elf/rtld.c: Likewise.
1142         * sysdeps/generic/dl-cache.c: Likewise.
1143         * sysdeps/generic/dl-sysdep.c: Likewise.
1144         * sysdeps/generic/ldsodefs.h: Likewise.
1145         * sysdeps/generic/libc-start.c: Likewise.
1146         * sysdeps/i386/dl-machine.h: Likewise.
1147         * sysdeps/ia64/dl-fptr.c: Likewise.
1148         * sysdeps/ia64/dl-machine.h: Likewise.
1149         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
1150         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
1151         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
1152         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
1153         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
1154         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
1155         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
1156         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
1158 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
1160         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
1161         to avoid warning
1162         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
1164         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
1165         SHARED version.
1166         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
1168         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
1170 2002-01-29  Ben Collins  <bcollins@debian.org>
1172         * string/bits/string2.h (__mempcpy): Protect size arg for
1173         addition when using __builtin_memcpy.
1175 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
1177         * stdlib/Makefile (tests): Add tst-qsort.
1178         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
1180         * manual/signal.texi (Process Signal Mask): Document that
1181         pthread_sigmask, not sigprocmask, must be used in MT programs.
1182         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
1184         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
1185         found.
1186         * misc/Makefile (tests): Add tst-hsearch.
1187         * misc/tst-hsearch.c: New file.
1189 2002-01-18  Wolfram Gloger  <wg@malloc.de>
1191         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
1192         * malloc/malloc.h: Likewise.
1193         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
1194         * malloc/arena.c: New file.
1195         * malloc/hooks.c: New file.
1196         * malloc/tst-mallocstate.c: New file.
1197         * malloc/Makefile: Add new testcase tst-mallocstate.
1198         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
1200 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
1202         * stdlib/msort.c: Remove last patch.  The optimization violates the
1203         same rule which qsort.c had problems with.
1205 2002-01-27  Paul Eggert  <eggert@twinsun.com>
1207         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
1208         to a pivot element that lies outside the array to be sorted, as
1209         ISO C99 requires that the comparison function be called only with
1210         addresses of array elements [PR libc/2880].
1212 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
1214         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
1215         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
1217         * timezone/asia: Update from tzdata2002b.
1218         * timezone/australasia: Likewise.
1219         * timezone/backward: Likewise.
1220         * timezone/europe: Likewise.
1221         * timezone/leapseconds: Likewise.
1222         * timezone/iso3166.tab: Likewise.
1223         * timezone/zone.tab: Likewise.
1225 2002-01-23  Richard Henderson  <rth@redhat.com>
1227         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
1229 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
1231         * string/strxfrm.c: Allocate one more byte for rulearr and clear
1232         this element [PR libc/2855].
1234         * string/strcoll.c: Handle zero-length arguments specially
1235         [PR libc/2856].
1237 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
1239         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
1240         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
1241         short lengths and constant src.
1242         (strcpy): Don't optimize for gcc 3.0+.
1243         (__stpcpy): For gcc 3.0+, don't use
1244         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
1245         for short string literal src.
1247 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
1249         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
1250         Set for arm, too.
1252 2001-01-22  Paul Eggert  <eggert@twinsun.com>
1254         * manual/llio.texi (Linked Channels, Cleaning Streams):
1255         Make it clearer that a just-opened input stream might need cleaning.
1257 2002-01-21  H.J. Lu  <hjl@gnu.org>
1259         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
1260         Don't use label at end of compound statement.
1262 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
1264         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
1265         Remove test for negative integer arg; sin_pi does it correctly.
1267 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
1269         * nscd/Makefile (distribute): Filter out xmalloc.c.
1271 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
1273         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
1274         Set offset if read end wasn't the buffer end.
1275         (_IO_file_seekoff_mmap): New function.
1276         (_IO_file_xsgetn_mmap): New function.
1277         (_IO_file_jumps_mmap): Use the two new functions.
1278         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
1279         != end buffer.
1280         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
1281         _IO_file_underflow_mmap.
1282         * libio/iofopen.c: Don't position file descriptor at end of file.
1283         * libio/tst-widetext.c: Improve error messages.
1284         * stdio-common/tst-rndseek.c: Likewise.
1286 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
1288         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
1289         end of enum for !_GNU_SOURCE.
1290         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
1291         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
1292         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
1293         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
1294         values unless _GNU_SOURCE.
1296         * iconvdata/tcvn5712-1.c: Minor cleanups.
1298 2002-01-18  Andreas Schwab  <schwab@suse.de>
1300         * sysdeps/unix/sysv/linux/configure.in
1301         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
1303 2002-01-16  Roger Sayle  <roger@eyesopen.com>
1305         * stdlib/msort.c (msort_with_tmp): Replace implementation with
1306         more efficient "Towers of Hanoi" mergesort.
1307         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
1308         for generic, sizeof(int) and sizeof(long) variants respectively.
1310 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
1312         * manual/syslog.texi (openlog): Describe possible problems with
1313         first parameter.
1314         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
1316         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
1317         * nscd/connections.c (begin_drop_privileges): New function.
1318         (finish_drop_privileges): New function.
1319         (nscd_init): Call the new functions which also install all groups
1320         for the server user.
1321         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
1322         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
1324 2002-01-17  H.J. Lu  <hjl@gnu.org>
1326         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
1327         `const' from `got'.
1329 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1331         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
1332         instructions for pointer operations.
1333         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
1335 2002-01-17  Andreas Jaeger  <aj@suse.de>
1337         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
1338         __uint128_t build-in.
1340         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
1341         PowerPC, sync with 2.2 branch.
1343 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
1345         * posix/getconf.c: Update copyright year.
1346         * nss/getent.c: Likewise.
1347         * nscd/nscd_nischeck.c: Likewise.
1348         * iconv/iconvconfig.c: Likewise.
1349         * iconv/iconv_prog.c: Likewise.
1350         * elf/ldconfig.c: Likewise.
1351         * catgets/gencat.c: Likewise.
1352         * csu/version.c: Likewise.
1353         * elf/ldd.bash.in: Likewise.
1354         * elf/sprof.c (print_version): Likewise.
1355         * locale/programs/locale.c: Likewise.
1356         * locale/programs/localedef.c: Likewise.
1357         * nscd/nscd.c (print_version): Likewise.
1358         * debug/xtrace.sh: Likewise.
1359         * malloc/memusage.sh: Likewise.
1360         * malloc/mtrace.pl: Likewise.
1362 2002-01-16  Andreas Schwab  <schwab@suse.de>
1364         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
1365         reliably remove "-ia64" from rtld name.
1367 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
1369         * iconvdata/gb18030.c: Bug fixes and support for more characters.
1370         Patch by Yu Shao <yshao@redhat.com>.
1372 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1374         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
1375         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
1376         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
1378 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1380         * sysdeps/s390/fpu/libm-test-ulps: Update.
1382 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
1384         * elf/elf.h: Update x86 relocations.
1386 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
1388         * locale/programs/charmap.c (new_width): Check whether byte
1389         sequences for both ends of range have the same length.
1391 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
1393         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
1395 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
1397         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
1398         string literals.
1399         (__full_ieee754_sqrt): Add __attribute_used__.
1401 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
1403         * sysdeps/generic/group_member.c (__group_member): Also check
1404         groups[0] [PR libc/2781].
1406 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
1408         * Makefile (distribute): Add scripts/cpp.
1409         * elf/Makefile (distribute): Add reldep6mod[01234].c,
1410         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
1411         unwind-dw2-fde.h, and dwarf2.h.
1412         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
1413         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
1414         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
1415         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
1417 2002-01-07  Roland McGrath  <roland@frob.com>
1419         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
1420         volatile on type of ARGC so the compiler doesn't get clever.
1422 2002-01-07  Andreas Jaeger  <aj@suse.de>
1424         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
1425         * sysdeps/i386/bits/byteswap.h: Likewise.
1426         * sysdeps/ia64/bits/byteswap.h: Likewise.
1427         * sysdeps/m68k/bits/byteswap.h: Likewise.
1428         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
1429         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise.
1431 2002-01-02  Bruno Haible  <bruno@clisp.org>
1433         * intl/plural.y: Fix %expect count.
1435 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
1437         * elf/Makefile (routines, shared-only-routines): Add
1438         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
1439         * elf/elf.h (PT_GNU_EH_FRAME): Define.
1440         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
1441         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
1442         Optimize if .eh_frame section contains no FDEs.
1443         (__register_frame, __deregister_frame_info_bases,
1444         __deregister_frame): Likewise.
1445         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
1446         DW_CFA_restore handling.
1448 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
1450         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
1452         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
1453         for x < 0.25 and restore original range reduction method.
1454         (__ieee754_lgammal_r): Make sure signgam is set before returning.
1456 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
1458         * libio/fileops.c (_IO_file_underflow_mmap): New function.
1459         (_IO_file_close_mmap): New function.
1460         (_IO_file_jumps_mmap): New variable.
1461         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
1462         trying to convert rest of byte buffer.
1463         (_IO_wfile_underflow_mmap): New function.
1464         (_IO_wfile_jumps_mmap): New variable.
1465         * libio/iofopen.c (__fopen_maybe_mmap): New function.
1466         (__fopen_internal): New function.  Split out from _IO_new_fopen.
1467         (_IO_new_fopen): Call __fopen_internal.
1468         * libio/iofopen64.c: Just call __fopen_internal.
1469         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
1470         successfully.
1471         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
1472         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
1473         _IO_file_close_mmap.
1475         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
1476         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
1478         * stdio-common/Makefile (tests): Add tst-rndseek.
1479         * stdio-common/tst-rndseek.c: New file.
1481 2002-01-05  Roland McGrath  <roland@frob.com>
1483         * config.h.in (HAVE_MIG_RETCODE): New #undef.
1484         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
1485         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
1486         * sysdeps/mach/hurd/configure: Regenerated.
1488 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
1490         * elf/elf.h: Add more TLS definitions.
1492 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
1494         * include/features.h (__GLIBC_MINOR__): Bump to 3.
1496 2002-01-02  Roland McGrath  <roland@frob.com>
1498         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
1499         __sigisemptyset.  Don't use MASK uninitialized.
1501         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
1502         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
1503         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
1504         __sigdelset, __sigaddset, __sigorset.
1506         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
1507         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
1509         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
1510         _hurd_ports is null.
1512         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
1513         for old CMU and new OSF Mach interface flavors.
1514         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
1515         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
1517         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
1519         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
1520         Pass extra arguments to task_create for OSF variant.
1521         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
1523         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
1524         conditional on [HAVE_AUX_VECTOR].
1526         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
1527         mach_msg_timeout_t as type of final argument.
1529         * hurd/privports.c (__get_privileged_ports):
1530         Change host_priv_t to mach_port_t in argument type.
1531         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
1532         Update decls.
1534         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
1535         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
1536         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
1537         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
1538         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
1539         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
1541 2002-01-01  Roland McGrath  <roland@frob.com>
1543         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
1545 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
1547         * include/stdlib.h: Define inlines for the _l variants of the strto*
1548         functions.
1550 2002-01-01  Roland McGrath  <roland@frob.com>
1552         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
1554         * mach/Machrules (MIG): Set CPP as well as CC.
1556 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
1558         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
1559         locale to parse /proc/loadavg [PR libc/2760].
1561 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
1563         * elf/dl-conflict.c: Include sys/param.h.
1564         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
1565         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
1566         warning.
1567         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
1568         literals to avoid warnings.
1570 2001-12-31  Andreas Jaeger  <aj@suse.de>
1572         * configure.in: Don't check for gsed since we do not use it anywhere.
1574 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
1576         * io/fts.c: Update from BSD to fix memory leaks.
1578 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
1580         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
1581         * elf/chroot_canon.c: Likewise.
1582         * elf/dl-object.c: Likewise.
1583         * iconv/iconv_charmap.c: Likewise.
1584         * iconv/iconv_prog.c: Likewise.
1585         * libio/iogetdelim.c: Likewise.
1586         * locale/lc-time.c: Likewise.
1587         * stdlib/canonicalize.c: Likewise.
1588         * sunrpc/svc.c: Likewise.
1589         * sysdeps/generic/glob.c: Likewise.
1591 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1593         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
1594         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
1595         remove high order bit from the program counter.
1596         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
1598 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1600         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
1601         unnecessary code and add missing reloc types.
1602         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
1603         case for reloc type R_390_NONE.
1605 2001-12-28  Andreas Jaeger  <aj@suse.de>
1607         * io/bug-ftw3.c: Include string.h for prototypes.
1609         * crypt/md5test.c (main): Remove unused variable.
1611         * dlfcn/modstatic.c: Add prototype to avoid warning.
1613 2001-12-26  Roland McGrath  <roland@frob.com>
1615         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
1616         check only (SS->pending & MASK) for the signal to return.
1617         From Jeroen Dekkers <jeroen@dekkers.cx>.
1619 2001-12-22  Roland McGrath  <roland@frob.com>
1621         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
1622         Use preprocessor #if conditionals instead of `if' to avoid
1623         warnings about divide by zero in dead code.
1625         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
1626         _hurd_port_init, and __hurd_self_sigstate.
1628         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
1630 2001-12-21  Andreas Jaeger  <aj@suse.de>
1632         * elf/dblloadmod1.c: Add prototype to avoid warning.
1633         * elf/dblloadmod2.c: Likewise.
1634         * elf/dblloadmod3.c: Likewise.
1635         * elf/reldepmod5.c: Likewise.
1636         * elf/reldepmod6.c: Likewise.
1638         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
1639         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
1640         used on all architectures.
1642         * sunrpc/svc_tcp.c: Add noreturn attribute for
1643         svctcp_rendezvous_abort.
1644         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
1646         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
1647         to avoid warning.
1649 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
1651         * manual/llio.texi (aio_fsync): Fix a typo.
1652         Patch by Tammy Fox <tfox@redhat.com>.
1654 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
1656         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
1657         stack bias from child stack pointer before passing it to clone syscall.
1659 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
1661         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
1662         _SC_TZNAME_MAX.
1663         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
1664         Reported by Thorsten Kukuk <kukuk@suse.de>.
1666         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
1667         add some casts.
1669         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
1671 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
1673         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
1674         conforming: return EBADF if file descriptor is invalid and EINVAL
1675         if file descriptor is no valid tty.
1676         * login/tst-grantpt.c: New file.
1677         * login/Makefile (tests): Add tst-grantpt.
1679 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
1681         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
1682         different than implemented in last patch.
1683         * io/bug-ftw3.c: Adjust test for changed handling of
1684         inaccessibility of toplevel dir.
1686 2001-12-16  Roland McGrath  <roland@frob.com>
1688         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
1689         * grp/initgroups.c (internal_getgrouplist): Likewise.
1691         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
1692         `default:' to silence new GCC warning.
1693         Rewrite cast of lvalue to silence new GCC warning.
1695         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
1697         * sysdeps/mach/hurd/spawni.c: New file, by me with a
1698         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
1700 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
1702         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
1703         Patch by Stephen R. van den Berg.
1705         * crypt/md5.h: Define md5_uintptr.
1707 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
1709         * libio/tst_swprintf.c (main): Add test for string argument with
1710         zero precision.
1711         * stdio-common/Makefile (tests): Add tst-sprintf.
1712         * stdio-common/tst-sprintf.c: New file.
1714 2001-12-13  Andreas Schwab  <schwab@suse.de>
1716         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
1717         zero precision with wide character string format.
1719 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
1721         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
1722         but have a user supplied buffer, return the empty buffer, not NULL.
1724 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
1726         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
1727         Patch by Eric Sharkey <sharkey@netrics.com>.
1729         * crypt/md5test.c (main): Add test for multiple calls to
1730         __md5_process_bytes to itererate over input string.
1732 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
1734         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
1735         from __nis_findfastest.  Take timeout value from parameter.
1736         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
1737         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
1738         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
1740 2001-12-12  Andreas Jaeger  <aj@suse.de>
1742         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
1743         combreloc test so that it works in this case.
1745         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
1747 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
1749         * sysdeps/sh/Makefile: New file.
1750         * sysdeps/sh/_mcount.S: New file.
1751         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
1752         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
1754 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
1756         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
1757         limitation [PR libc/2564].
1759 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
1761         * elf/Makefile (dl-routines): Add conflict.
1762         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
1763         (ld.so): Add _begin local symbol.
1764         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
1765         Define.
1766         * elf/dl-deps.c (_dl_build_local_scope): New.
1767         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
1768         of all libraries.
1769         * elf/do-rel.h (VALIDX): Define.
1770         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
1771         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
1772         can be skipped.
1773         * elf/dl-conflict.c: New file.
1774         * elf/dl-lookup.c (_dl_debug_bindings): New.
1775         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
1776         non-NULL.
1777         (_dl_lookup_symbol_skip): Likewise.
1778         (_dl_lookup_versioned_symbol): Likewise.
1779         (_dl_lookup_versioned_symbol_skip): Likewise.
1780         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
1781         define to ElfW(Rel).
1782         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
1783         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
1784         ranges.
1785         Don't adjust address dynamic tags if l_addr is 0.
1786         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
1787         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
1788         (VALIDX, ADDRIDX): Define.
1789         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
1790         (dl_main): Print library list for LD_TRACE_PRELINKING.
1791         If prelinking information can be used, skip relocating libraries and
1792         call _dl_resolve_conflicts instead.
1793         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
1794         * elf/dl-load.c (_dl_map_object): Don't create fake libs
1795         if LD_TRACE_PRELINKING.
1796         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
1797         + DT_ADDRNUM.
1798         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
1799         (DL_DEBUG_PRELINK): Define.
1800         (_dl_resolve_conflicts): Add prototype.
1802         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
1803         .plt for prelinked libraries where prelinking info cannot be used.
1804         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
1805         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
1806         * sysdeps/arm/bits/link.h: New file.
1807         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
1808         content of .got[1].
1809         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
1810         (ELF_MACHINE_PLT_REL): Define.
1811         (elf_machine_rela, elf_machine_rela_relative): New.
1812         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
1813         of adjusting it if prelinked and prelinking cannot be used.
1814         * sysdeps/i386/bits/link.h: New file.
1815         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
1816         content of .got[1].
1817         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
1818         (ELF_MACHINE_PLT_REL): Define.
1819         (elf_machine_rela, elf_machine_rela_relative): New.
1820         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
1821         of adjusting it if prelinked and prelinking cannot be used.
1822         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
1823         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
1824         to find out map for R_PPC_JMP_SLOT relocs.
1825         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
1826         (OPCODE_BA): Define.
1827         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
1828         libraries where prelinking info cannot be used.
1829         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
1830         (elf_machine_fixup_plt): Call sparc_fixup_plt.
1831         (elf_machine_rela): Set value to 0 if relocating conflicts.
1832         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
1833         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
1834         (sparc64_fixup_plt): Fix a typo.
1835         (elf_machine_rela): Set value to 0 if relocating conflicts.
1836         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
1837         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
1838         libraries where prelinking info cannot be used.
1839         * sysdeps/sh/bits/link.h: New file.
1840         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
1841         content of .got[1].
1842         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
1843         of adjusting it if prelinked and prelinking cannot be used.
1844         * sysdeps/s390/s390-32/bits/link.h: New file.
1845         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
1846         Save original content of .got[1].
1847         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
1848         of adjusting it if prelinked and prelinking cannot be used.
1849         * sysdeps/s390/s390-64/bits/link.h: New file.
1850         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
1851         Save original content of .got[1].
1852         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
1853         of adjusting it if prelinked and prelinking cannot be used.
1854         * sysdeps/x86_64/bits/link.h: New file.
1855         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
1856         Save original content of .got[1].
1857         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
1858         of adjusting it if prelinked and prelinking cannot be used.
1860 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
1862         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
1863         where appropriate instead of numbers.  Little optimizations.
1865 2001-12-10  Roland McGrath  <roland@frob.com>
1867         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
1868         set it.
1870         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
1871         set to GLIBC_2.2.5, not GLIBC_2.2.4.
1873         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
1874         Fix conditionals so this is set by default for stdio and not for libio.
1875         * sysdeps/mach/hurd/configure: Regenerated.
1877 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
1879         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
1881 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
1883         * io/Makefile (tests): Add bug-ftw3.
1884         * io/bug-ftw3.c: New file.
1886         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
1887         matches and GLOB_NOCHECK is set.
1888         * posix/globtest.sh: Correct expected result for NOCHECK test.
1890         * po/ca.po: Update from translation team.
1892 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
1894         Implement transliteration of characters in strings of the locale
1895         definitions.
1896         * locale/programs/linereader.c: Adjust for additional parameter to
1897         lr_token.
1898         (get_string): If character <Uxxxx> is not found try to transliterate
1899         it.
1900         * locale/programs/ld-ctype.c: Adjust for additional parameter to
1901         lr_token.  Add const to charmap parameter of all functions.
1902         (find_translit, find_translit2): New functions.
1903         * locale/programs/charmap.c: Adjust for additional parameter to
1904         lr_token.
1905         * locale/programs/repertoire.c: Likewise.
1906         * locale/programs/linereader.h: Likewise.
1907         * locale/programs/ld-address.c: Likewise.  Add const to charmap
1908         parameter of all functions.
1909         * locale/programs/ld-collate.c: Likewise.
1910         * locale/programs/ld-identification.c: Likewise.
1911         * locale/programs/ld-measurement.c: Likewise.
1912         * locale/programs/ld-messages.c: Likewise.
1913         * locale/programs/ld-monetary.c: Likewise.
1914         * locale/programs/ld-name.c: Likewise.
1915         * locale/programs/ld-numeric.c: Likewise.
1916         * locale/programs/ld-paper.c: Likewise.
1917         * locale/programs/ld-paper.c: Likewise.
1918         * locale/programs/ld-telephone.c: Likewise.
1919         * locale/programs/ld-time.c: Likewise.
1920         * locale/programs/locfile.c: Likewise.
1921         * locale/programs/localedef.c: Likewise.
1922         * locale/programs/localedef.h: Likewise.
1923         * locale/programs/locfile.h: Likewise.  Add declaration for
1924         find_translit.
1925         * locale/programs/simple-hash.c: Add const to first parameter of
1926         find_entry, iterate_table, and lookup.
1927         * locale/programs/simple-hash.h: Likewise.
1928         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
1929         instead.
1930         * include/locale.h: Define __LC_LAST.
1931         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
1933 2001-12-07  Geoff Keating  <geoffk@redhat.com>
1935         * sysdeps/powerpc/Dist: Update for recent FP changes.
1936         * sysdeps/powerpc/fpu/Dist: Likewise.
1938 2001-12-07  Andreas Schwab  <schwab@suse.de>
1940         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
1942 2001-12-06  Geoff Keating  <geoffk@redhat.com>
1944         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
1945         save/restore functions here.
1946         (libm-support): Don't define these functions here.
1947         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
1948         functions here.
1949         * sysdeps/powerpc/fe_nomask.c: Move to...
1950         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
1951         * sysdeps/powerpc/fprrest.S: Move to...
1952         * sysdeps/powerpc/fpu/fprrest.S: ... here.
1953         * sysdeps/powerpc/fprsave.S: Move to...
1954         * sysdeps/powerpc/fpu/fprsave.S: ... here.
1956 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
1958         * sysdeps/unix/sysv/linux/opensock.c: New file.
1960 2001-12-06  Geoff Keating  <geoffk@redhat.com>
1962         * config.make.in (with-fp): Define from configure.
1963         * configure.in: Substitute with_fp.
1964         * configure: Regenerate.
1965         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
1966         specified, and don't change FPU environment.
1968 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
1970         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
1971         * assert/assert.c: Check result of __asprintf call and don't use
1972         string if it failed.
1973         * assert/assert-perr.c: Likewise.
1974         * inet/rcmd.c: Likewise.
1975         * locale/programs/localedef.c (main): Check result of
1976         construct_output_path and exit if it failed.
1977         (construct_output_path): Check result of asprintf and mkdir calls and
1978         fail if they failed.
1979         * posix/getopt.c: Check result of __asprintf calls and fail if
1980         they failed.
1981         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
1983 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
1985         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
1986         patch.
1987         * sysdeps/generic/strncase.c: Likewise.
1988         * string/tester.c: Add tests for strcasecmp and strncasecmp.
1990 2001-12-05  Geoff Keating  <geoffk@redhat.com>
1992         * scripts/cpp: Test the exit status from 'type', not 'awk'.
1994         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
1995         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
1996         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
1997         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
1998         * sysdeps/powerpc/fclrexcpt.c: Move to...
1999         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
2000         * sysdeps/powerpc/fpu_control.h: Move to...
2001         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
2003 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
2005         * iconvdata/ibm1129.h: Remove duplicate mappings.
2006         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
2007         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
2008         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
2010         * timezone/zic.c: Fix handling of turnaround times.
2011         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
2013 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
2015         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
2016         overflow problem.
2018 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
2020         * posix/regex.c: For use outside glibc defined bounded pointer
2021         macros here.  Patch by Jim Meyering <jim@meyering.net>.
2023         * iconvdata/Makefile (modules): Add TCVN5712-1.
2024         * iconvdata/TESTS: Add TCVN5712-1.
2025         * iconvdata/gconv-modules: Likewise.
2026         * iconvdata/tcvn5712-1.c: New file.
2027         * iconvdata/testdata/TCVN-5712: New file.
2028         * iconvdata/testdata/TCVN-5712..UTF8: New file.
2030 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
2032         * iconvdata/cp1258.c: Optimize conversion from UCS4.
2034 2001-12-02  Roland McGrath  <roland@frob.com>
2036         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
2038         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
2039         Reported by Jeff Bailey <jbailey@nisa.net>.
2041         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
2042         Reported by Jeff Bailey <jbailey@nisa.net>.
2044         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
2045         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
2046         Reported by Jeff Bailey <jbailey@nisa.net>.
2048 2001-12-01  Roland McGrath  <roland@frob.com>
2050         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
2051         missing backslash in test arguments.
2052         * sysdeps/mach/hurd/configure: Regenerated.
2054 2001-11-26  Roland McGrath  <roland@frob.com>
2056         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
2057         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
2059 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
2061         * iconvdata/Makefile (modules): Add ARMSCII-8.
2062         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
2063         * iconvdata/armscii-8.c: New file.
2065 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
2067         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
2068         don't match, fix {{a,b},c} globbing, clean up.
2069         Patch by Flavio Veloso <flaviovs@magnux.com>.
2070         * posix/globtest.sh: Add new tests.
2072 2001-11-29  Andreas Jaeger  <aj@suse.de>
2074         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
2075         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
2077         * sysdeps/generic/abort.c: Include libioP.h for
2078         _IO_flush_all_lockp prototype.
2080 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
2082         * posix/regex.h: Define __restrict_arr correctly.
2084 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
2086         * iconvdata/ibm1163.c: New file.
2087         * iconvdata/ibm1163.h: New file.
2088         * iconvdata/ibm1164.c: New file.
2089         * iconvdata/ibm1164.h: New file.
2090         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
2091         * iconvdata/Makefile: Likewise.
2092         * iconvdata/testdata/IBM1163: New file.
2093         * iconvdata/testdata/IBM1163..UTF8: New file.
2094         * iconvdata/testdata/IBM1164: New file.
2095         * iconvdata/testdata/IBM1164..UTF8: New file.
2096         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
2098         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
2099         * iconvdata/ibm1124.h: Likewise.
2100         * iconvdata/ibm1132.h: Likewise.
2101         * iconvdata/ibm1133.h: Likewise.
2102         * iconvdata/ibm1160.h: Likewise.
2103         * iconvdata/ibm1161.h: Likewise.
2104         * iconvdata/ibm1162.h: Likewise.
2105         * iconvdata/ibm856.h: Likewise.
2106         * iconvdata/ibm922.h: Likewise.
2107         * iconvdata/ibm930.h: Likewise.
2108         * iconvdata/ibm932.h: Likewise.
2109         * iconvdata/ibm933.h: Likewise.
2110         * iconvdata/ibm935.h: Likewise.
2111         * iconvdata/ibm937.h: Likewise.
2112         * iconvdata/ibm939.h: Likewise.
2113         * iconvdata/ibm943.h: Likewise.
2114         * iconvdata/ibm930.c: Pretty printing.
2115         * iconvdata/ibm937.c: Avoid access accross array boundary.
2117         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
2118         the current locale's codeset.
2119         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
2120         empty input string.
2121         * iconv/iconv_prog.c: Pass empty strings as default value for to-
2122         and from-charset.  Don't determine locale's charset here.
2124         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
2125         as the old _IO_flush_all but lock only if parameter is nonzero.
2126         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
2127         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
2128         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
2129         if libio is used [PR libc/2575].
2131 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
2133         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
2134         __signbitl): Only define for ISO C99.
2136 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
2138         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
2139         herrnop to NETDB_INTERNAL if we run out of buffer space.
2141 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
2143         * nss/nss_files/files-XXX.c (internal_getent): Correct input
2144         overflow test for platforms with signed char.
2145         Reported by Andrew Haley <aph@cambridge.redhat.com>.
2147 2001-11-28  Bruno Haible  <bruno@clisp.org>
2149         * locale/programs/simple-hash.c (lookup_2): Remove function.
2150         (insert_entry_2): Call lookup instead of lookup_2.
2152 2001-03-04  Bruno Haible  <bruno@clisp.org>
2154         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
2156 2001-10-31  Bruno Haible  <bruno@clisp.org>
2158         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
2160 2001-03-21  Bruno Haible  <bruno@clisp.org>
2162         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
2163         chokes on empty macro arguments.
2164         * intl/plural.y: Add #pragma for alloca on AIX 3.
2166 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
2168         * intl/dcigettext.c (guess_category_value): Only implement for
2169         glibc.  Otherwise rely on function _nl_locale_name which isn't
2170         present in the glibc sources.
2172 2001-09-24  Bruno Haible  <bruno@clisp.org>
2174         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
2175         transliteration when building on a glibc system but outside glibc.
2177 2001-09-22  Bruno Haible  <bruno@clisp.org>
2179         * intl/plural-eval.c: New file, extracted from dcigettext.c.
2180         * intl/dcigettext.c (plural_eval): Remove function, moved to
2181         intl/plural-eval.c.
2182         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
2183         Include plural-eval.c.
2185 2001-09-22  Bruno Haible  <bruno@clisp.org>
2187         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
2188         don't start with a digit; nplurals must be positive.
2190 2001-09-02  Bruno Haible  <bruno@clisp.org>
2192         * intl/plural-exp.h: New file, extracted from gettextP.h.
2193         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
2194         * intl/gettextP.h (struct expression, struct parse_args,
2195         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
2196         * intl/loadmsgcat.c: Include plural-exp.h.
2197         (PLURAL_PARSE): Move macro to plural-exp.h.
2198         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
2199         plural-exp.c.
2200         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
2201         EXTRACT_PLURAL_EXPRESSION.
2202         (_nl_unload_domain): Update.
2203         * intl/dcigettext.c: Include plural-exp.h.
2204         * intl/plural.y: Include plural-exp.h, not gettextP.h.
2205         (FREE_EXPRESSION): Move macro to plural-exp.h.
2206         * intl/Makefile (routines): Add plural-exp.
2207         (distribute): Add plural-exp.h.
2209 2001-07-28  Bruno Haible  <bruno@clisp.org>
2211         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
2212         isdigit, tolower argument to 'unsigned char'.
2213         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
2214         'unsigned char'.
2215         * intl/localealias.c (read_alias_file): Cast isspace argument to
2216         'unsigned char'.
2218 2001-10-20  Bruno Haible  <bruno@clisp.org>
2220         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
2221         anyway.)
2222         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
2223         with the variable 'index' in plural_lookup.
2224         * intl/l10nflist.c (strchr): Likewise.
2225         * intl/localealias.c (strchr): Likewise.
2227         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
2228         * intl/bindtextdom.c: Likewise.
2229         * intl/dcigettext.c: Likewise.
2230         * intl/dgettext.c: Likewise.
2231         * intl/dngettext.c: Likewise.
2232         * intl/explodename.c: Likewise.
2233         * intl/finddomain.c: Likewise.
2234         * intl/gettext.c: Likewise.
2235         * intl/l10nflist.c: Likewise.
2236         * intl/loadmsgcat.c: Likewise.
2237         * intl/localealias.c: Likewise.
2238         * intl/ngettext.c: Likewise.
2239         * intl/textdomain.c: Likewise.
2240         * intl/gettext.h: Assume <limits.h> exists.
2242 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
2244         * stdio-common/Makefile (tests): Add scanf11.
2245         * stdio-common/scanf11.c: New file.
2247 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
2249         * version.h (RELEASE): Define as development.
2250         (VERSION): Set to 2.2.90.
2252 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
2254         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
2255         * nis/nss_nis/nis-grp.c: Likewise.
2256         * nis/nss_nisplus/nisplus-grp.c: Likewise.
2258         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
2259         * nis/nss_nis/nis-pwd.c: Likewise.
2260         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
2262         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
2263         * nis/nss_nisplus/nisplus-parser.c: Likewise.
2264         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
2266         * nscd/grpcache.c: Use strtoul instead of atol.
2267         * nscd/pwdcache.c: Likewise.
2268         * nss/getent.c: Likewise.
2270 2001-11-27  Paul Eggert  <eggert@twinsun.com>
2272         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
2273         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
2275 2001-11-19  Bruno Haible  <bruno@clisp.org>
2277         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
2278         90%.
2279         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
2280         improves the quality of the hash function, especially for short
2281         strings.
2283 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
2285         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
2286         are found call conv_error and not input_error [PR libc/2669].
2288         * math/bits/mathcalls.h: Mark ceil and floor as const.
2289         Reported by David Mosberger.
2291 2001-11-21  Jim Meyering  <meyering@lucent.com>
2293         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
2294         Define to be __-prefixed.
2295         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
2297 2001-11-26  Andreas Jaeger  <aj@suse.de>
2299         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
2300         avoid warning.
2302 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
2304         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
2305         initialization.
2307         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
2308         unused variables.  Fix threshold for returning 1.0.
2310         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
2311         argument.
2313         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
2314         remove unused variables.
2316         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
2318         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
2319         include local math header files.
2321 2001-11-22  Andreas Jaeger  <aj@suse.de>
2323         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
2324         avoid warning.
2326 2001-11-21  Andreas Jaeger  <aj@suse.de>
2328         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
2330         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
2331         sys/debugreg.h
2333 2001-11-15  Andreas Jaeger  <aj@suse.de>
2335         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
2336         compilers that support it.
2338         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
2339         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
2340         * stdlib/stdlib.h: Likewise.
2342 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
2344         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
2345         statement with gotos.
2346         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
2348 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
2350         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
2352 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
2354         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
2356 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
2357             H.J. Lu  <hjl@gnu.org>
2359         * Versions.def (libc): Add GCC_3.0.
2360         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
2361         if gcc supports this flag.
2362         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
2363         (gcc3): Allow glibc to be compiled with gcc 3.x.
2364         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
2365         * config.make.in (static-libgcc, unwind-find-fde): Add.
2366         * Makerules (build-shlib-helper, build-module-helper): Use it.
2367         * scripts/versions.awk: Make sure GLIBC_ versions come first.
2368         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
2369         necessary.
2370         (_fini): Call __deregister_frame_info_bases if
2371         __register_frame_info_bases was used to register.
2372         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
2373         for GLIBC_2.0.
2374         (__register_frame_info_bases, __register_frame_info_table_bases,
2375         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
2376         * elf/Makefile (routines): Add unwind-dw2-fde.
2377         (shared-only-routines): Add unwind-dw2-fde.
2378         * sysdeps/alpha/gccframe.h: New file.
2379         * sysdeps/arm/gccframe.h: New file.
2380         * sysdeps/generic/framestate.c: New file.
2381         * sysdeps/generic/dwarf2.h: New file.
2382         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
2383         * sysdeps/generic/unwind-dw2-fde.c: New file.
2384         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
2385         * sysdeps/generic/unwind-dw2-fde.h: New file.
2386         * sysdeps/generic/unwind-dw2.c: New file.
2387         * sysdeps/generic/unwind-pe.h: New file.
2388         * sysdeps/generic/unwind.h: New file.
2389         * sysdeps/hppa/gccframe.h: New file.
2390         * sysdeps/i386/gccframe.h: New file.
2391         * sysdeps/m68k/gccframe.h: New file.
2392         * sysdeps/mips/gccframe.h: New file.
2393         * sysdeps/powerpc/gccframe.h: New file.
2394         * sysdeps/s390/gccframe.h: New file.
2395         * sysdeps/sh/gccframe.h: New file.
2396         * sysdeps/sparc/gccframe.h: New file.
2397         * sysdeps/vax/gccframe.h: New file.
2398         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
2399         Set on all architectures except ia64.
2400         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
2401         for i386.
2402         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
2403         __deregister_frame_info): Move to elf/Versions.
2404         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
2405         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2406         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2407         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
2408         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
2409         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
2410         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2411         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2412         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2413         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
2414         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
2415         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
2416         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
2417         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
2418         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
2419         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
2420         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
2421         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
2423 2001-11-15  Jeff Law  <law@redhat.com>
2425         * posix/regex.c (uintptr_t): Do not provide a definition if the
2426         system provided one.
2428 2001-11-13  Roland McGrath  <roland@frob.com>
2430         * stdio-common/tmpfile.c: Moved to ...
2431         * sysdeps/generic/tmpfile.c: ... here.
2432         * sysdeps/mach/hurd/tmpfile.c: New file.
2434         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
2435         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
2436         (fopenport): Define as weak alias.
2438         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
2439         * libio/libioP.h: ... to here.
2441 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
2443         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
2444         program header twice.  Construct list with the needed information.
2446 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
2448         * po/ca.po: Update from translation team.
2450         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
2451         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
2452         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
2453         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
2455 2001-11-10  Andreas Jaeger  <aj@suse.de>
2457         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
2458         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
2459         Contributed by Stephen L Moshier <moshier@mediaone.net>.
2461 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
2463         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
2464         correctly.
2465         * elf/dl-load.c (is_dst): New function.
2466         (_dl_dst_count): Use is_dst to check for DST variable.
2467         (_dl_dst_substitute): Likewise.
2469 2001-11-09  Roland McGrath  <roland@frob.com>
2471         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
2472         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
2473         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
2474         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
2475         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
2476         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
2477         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
2478         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
2479         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
2480         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
2481         * sysdeps/mach/hurd/powerpc/Dist: New file.
2483         * hurd/privports.c (__get_privileged_ports):
2484         Only contact the proc server if necessary for this call.
2485         Suggested by Neal H Walfield <neal@cs.uml.edu>.
2486         Check error return for mach_port_mod_refs.
2488 2001-11-09  Andreas Schwab  <schwab@suse.de>
2490         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
2492 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
2494         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
2495         object is always the last in the list.
2496         (_dl_map_object_from_fd): Delete code to remove from object list
2497         when DF_1_NOOPEN is seen.  This is done in lose.
2499 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
2501         * elf/dl-object.c (_dl_new_object): Various small optimizations.
2503 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
2505         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
2506         HWCAP_CHECK macro code.
2508         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
2509         Now returns MAP_FAILED on error.
2510         * elf/rtld.c: Adjust caller.
2511         * sysdeps/generic/dl-cache.c: Likewise.
2512         * sysdeps/generic/ldsodefs.h: Adjust description.
2514         * elf/dl-version.c (match_symbol): Optimize error handling for size.
2515         (_dl_check_map_versions): Likewise.
2517 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
2519         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
2520         _dl_signal_error directly, always use lose.  Set fd to -1 after
2521         file is closed.
2522         (lose): Don't call close if fd == -1.
2524 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
2526         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
2527          Also fix typo @code {mbsinit} to @code{mbsinit}.
2529 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
2531         * elf/dl-profile.c: Replace state variable with simple flag named
2532         running.  Remove commented-out code.
2534         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
2535         (_dl_init_paths): Likewise.
2536         (_dl_map_object_from_fd): Likewise.
2537         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
2539 2001-11-06  Roland McGrath  <roland@frob.com>
2541         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
2542         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
2544         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
2545         sysdeps/powerpc/elf/sysdep.h.
2546         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
2548 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
2550         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
2551         speed.
2552         (process_envvars): Some more optimizations.
2553         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
2555         * elf/elf.h: Add dynamic tag definitions for prelinking.
2557         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
2558         Rewrite code to remove environment varables for SUID binaries.
2559         Small optimization in LD_PROFILE handling.
2560         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
2561         changes.
2562         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
2564         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
2566         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
2567         strings.  Change type of second parameter.
2568         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
2569         for last change.
2571         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
2573 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
2575         * manual/string.texi: Fix typos.
2576         * manual/examples/argp-ex2.c: Likewise.
2578 2001-11-05  Roland McGrath  <roland@frob.com>
2580         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
2581         the more-specific unix/sysv/linux/powerpc file and breaks everything.
2582         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
2583         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
2584         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
2585         here, put under [__ELF__].
2587 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
2589         * manual/charset.texi: Extensive editing work.
2590         * manual/nss.texi: Likewise.
2591         Changes by Dennis Grace <dgrace@us.ibm.com>.
2593 2001-11-04  Roland McGrath  <roland@frob.com>
2595         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
2596         parameter to dir_mkfile.
2598 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
2600         * string/bits/string2.h (__strndup): If n is smaller than len, set
2601         len to n + 1.
2602         * string/tester.c (test_strndup): New function.
2603         (main): Call it.
2605 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
2607         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
2609         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
2610         * scripts/cpp: New file.
2612         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
2613         for rtld_search_dirs content.  Minor optimizations.
2615 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
2617         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
2618         avoiding unnecessary duplication.
2620 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
2622         * elf/dl-load.c (_dl_map_object): If library was found using
2623         LD_LIBRARY_PATH, don't try RUNPATH list.
2625 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2627         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
2628         Correct second argument of register_dump call.
2629         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
2630         Likewise.
2632 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
2634         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
2635         modules.
2636         * iconvdata/TESTS: Likewise.
2637         * iconvdata/gconv-modules: Likewise.
2638         * iconvdata/ibm1132.c: New file.
2639         * iconvdata/ibm1132.h: New file.
2640         * iconvdata/ibm1133.c: New file.
2641         * iconvdata/ibm1133.h: New file.
2642         * iconvdata/ibm1162.c: New file.
2643         * iconvdata/ibm1162.h: New file.
2644         * iconvdata/testdata/IBM1132: New file.
2645         * iconvdata/testdata/IBM1132..UTF8: New file.
2646         * iconvdata/testdata/IBM1133: New file.
2647         * iconvdata/testdata/IBM1133..UTF8: New file.
2648         * iconvdata/testdata/IBM1162: New file.
2649         * iconvdata/testdata/IBM1162..UTF8: New file.
2650         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
2652         * string/string.h: Fix typo in comment.
2653         * wcsmbs/wchar.h: Likewise.
2655 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
2657         * manual/getopt.texi (getopt_long, getopt_long_only): Include
2658         const in type of longopts parameter.
2660 2001-10-29  Andreas Jaeger  <aj@suse.de>
2662         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
2664 2001-10-29  Kevin Ryde  <user42@zip.com.au>
2666         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
2667         output, clarify `#' behaviour on 0.
2668         (Floating-Point Conversions): Clarify that %g only uses %e when
2669         the exponent would be greater than 1.
2671 2001-10-28  Roland McGrath  <roland@frob.com>
2673         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
2674         * sysdeps/mach/powerpc/machine-sp.h: New file.
2675         * sysdeps/mach/powerpc/sysdep.h: New file.
2676         * sysdeps/mach/powerpc/thread_state.h: New file.
2678         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
2679         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
2680         expect to need the same thing on every platform.
2682         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
2683         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
2685         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
2686         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
2687         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
2688         Move all these assembly-related definitions to ...
2689         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
2691         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
2692         by Peter Bruin <pjbruin@dds.nl>.
2694         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
2695         packing results for a `poll' call.
2697 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
2699         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
2700         correctly.
2701         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
2702         bracket expression.
2704         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
2705         nrules value.
2706         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
2708 2001-10-24  H.J. Lu  <hjl@gnu.org>
2710         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
2711         Use __BEGIN_DECLS/__END_DECLS around prototypes.
2712         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
2714 2001-10-21  Jim Meyering  <meyering@lucent.com>
2716         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
2717         this code would end up calling gettext even in packages built
2718         with --disable-nls.
2719         * posix/getopt.c (_): Likewise.
2720         * posix/regex.c (_): Likewise.
2722 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
2724         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
2725         lookup not ip6.int.
2726         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
2727         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
2729 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
2731         * misc/sys/cdefs.h (__attribute_used__): Define.
2732         * elf/rtld.c (_dl_start): Add __attribute_used__.
2733         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
2735 2001-10-25  Andreas Schwab  <schwab@suse.de>
2737         * stdlib/a64l.c: Expect least significant digit first.
2738         * stdlib/l64a.c: Produce least significant digit first.
2739         * stdlib/Makefile (tests): Add test-a64l.
2740         * stdlib/test-a64l.c: New file.
2741         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
2743 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
2745         * po/sk.po: Update from translation team.
2747 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
2749         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
2751 2001-10-18  Andreas Schwab  <schwab@suse.de>
2753         * math/libm-test.inc (print_ulps): Print ulp values rounded to
2754         next whole number.
2755         (print_function_ulps): Likewise.
2756         (print_complex_function_ulps): Likewise.
2757         (print_max_error): Likewise.
2758         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
2760 2001-10-16  Andreas Schwab  <schwab@suse.de>
2762         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
2763         implementation.
2765         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
2766         BSD_SETJMP or BSD__SETJMP is defined, resp.
2767         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
2768         a tail call to __sigsetjmp that would require extending the
2769         caller's frame.
2770         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
2771         * sysdeps/m68k/bsd-setjmp.S: Deleted.
2772         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
2773         Reported by Jes Sorensen <jes@trained-monkey.org>.
2775 2001-10-16  Andreas Jaeger  <aj@suse.de>
2777         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
2778         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
2779         close PR libc/2589.
2781 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
2783         * po/ca.po: New file.  Contributed by the translation team.
2785 2001-10-15  Ralf Baechle  <ralf@gnu.org>
2787         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
2788         a varargs prototype.  Remove dependency from kernel header files.
2790         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
2791         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
2793 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
2795         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
2796         to generate hexadecimal identifier.
2797         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
2799 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
2801         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
2803 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
2805         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
2806         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
2807         Contributed by Stephen L Moshier <moshier@mediaone.net>.
2809         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
2810         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2811         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
2812         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
2813         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
2814         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
2816         * timezone/africa: Update from tzdata2001d.
2817         * timezone/asia: Likewise.
2818         * timezone/australasia: Likewise.
2819         * timezone/backward: Likewise.
2820         * timezone/europe: Likewise.
2821         * timezone/leapseconds: Likewise.
2822         * timezone/northamerica: Likewise.
2823         * timezone/southamerica: Likewise.
2824         * timezone/zone.tab: Likewise.
2826 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2828         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
2829         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
2831 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
2833         * elf/elf.h (PT_TLS): New definition.
2835 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
2837         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
2838         bits/errno.h
2840 2001-10-07  Roland McGrath  <roland@frob.com>
2842         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
2844 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
2846         * elf/elf.h: Add more ELFOSABI_* constants.
2848 2001-10-04  Ben Collins  <bcollins@debian.org>
2850         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
2851         decleration of __need_wchar_t.
2853 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
2855         * string/bits/string2.h (__strsep_g): Add prototype.
2856         (__strsep): Use it.
2857         * string/Versions (__strsep): Remove.
2858         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
2860 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
2862         * manua/llio.texi: Clarify file references added by mmap.
2863         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
2865 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
2867         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
2868         Add sc_loadrs and sc_rbs_bas to match current kernel.
2870 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
2872         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
2874         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
2876 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
2878         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
2879         object has been bumped because of relocation dependency, avoid
2880         duplicates in l_scope.
2881         (show_scope): Fix typos.
2882         * elf/Makefile: Add rules to build and run reldep6.
2883         * elf/reldep6.c: New file.
2884         * elf/reldep6mod0.c: New file.
2885         * elf/reldep6mod1.c: New file.
2886         * elf/reldep6mod2.c: New file.
2887         * elf/reldep6mod3.c: New file.
2888         * elf/reldep6mod4.c: New file.
2890 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
2892         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
2893         sparc64_fixup_plt.
2894         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
2895         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
2896         for non-lazy binding. Fix .plt[32768+] handling.
2897         (elf_machine_plt_value): Don't add addend.
2898         (elf_machine_rela): Call sparc64_fixup_plt instead of
2899         elf_machine_fixup_plt.
2900         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
2901         dynamic linker at 0xfffff800XXXXXXXX.
2903         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
2905 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
2907         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
2909 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
2911         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
2912         declare __cmsg_data field if its size would be bigger than 0.
2913         (CMSG_DATA): Adjust accordingly.
2914         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
2915         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
2916         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
2917         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
2918         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
2919         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
2920         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2922 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
2924         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
2925         * iconvdata/testdata/IBM1160: New file.
2926         * iconvdata/testdata/IBM1160..UTF8: New file.
2927         * iconvdata/testdata/IBM1161: New file.
2928         * iconvdata/testdata/IBM1161..UTF8: New file.
2929         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
2931 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
2933         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
2934         UL_SETFSIZE computations better.
2936         * rt/Makefile: Remove use of filter for librt again.
2938         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
2939         UL_SETFSIZE computations better.
2941         * string/Versions: Export __strsep for GLIBC_2.2.5.
2942         * string/bits/string2.h: Define all __STRING_INLINE functions if
2943         _FORCE_INLINES is defined.
2944         Use int instead of char of parameter types.
2945         (__strsep): Don't use __strsep_g.  Don't define it.
2946         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
2947         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
2948         __strcpy_small.
2949         (__stpcpy_a_small): Renamed from __stpcpy_small.
2950         (__strcspn_c1): Don't define if _FORCE_INLINES.
2951         (__strspn_c1): Likewise.
2953 2001-09-22  Ben Collins  <bcollins@debian.org>
2955         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
2956         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
2957         * sysdeps/ia64/bits/sigaction.h: Likewise.
2958         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
2960 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
2962         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
2964 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
2966         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
2968 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
2970         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
2972 2001-09-20  H.J. Lu  <hjl@gnu.org>
2974         * include/dlfcn.h (__RTLD_SPROF): New definiton.
2975         * elf/dl-open.c (dl_open_worker): Return immediately after loading
2976         for __RTLD_SPROF.
2977         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
2978         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
2980 2001-09-20  H.J. Lu  <hjl@gnu.org>
2982         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
2983         don't add 1.
2985 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
2987         * nss/getent.c: Accept -s parameter to overwrite rules in
2988         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
2990         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
2991         with as many ".0" as necessary to form a complete address
2992         inet_network understands.
2994         * nss/getent.c: Various cleanups.  Use simpler and fewer function
2995         calls.
2997 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2999         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
3000         _JMPBUF_UNWINDS.
3001         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
3003 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
3005         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
3006         IBM1161.
3007         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
3008         * iconvdata/ibm1160.c: New file.
3009         * iconvdata/ibm1160.h: New file.
3010         * iconvdata/ibm1161.c: New file.
3011         * iconvdata/ibm1161.h: New file.
3012         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
3014 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
3016         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
3017         difference between base address and first PT_LOAD's virtual address,
3018         not the base address.
3020 2001-09-11  Tom Rix  <trix@redhat.com>
3022         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
3023         ifdef for __getopt_clean_environment.
3024         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
3026 2001-09-22  Andreas Jaeger  <aj@suse.de>
3028         * elf/reldep4.c (main): Add proper prototype to fix warning.
3030         * elf/reldep5.c (main): Remove unused variable.
3032         * math/math_private.h: Add prototypes.
3034 2001-09-21  Andreas Jaeger  <aj@suse.de>
3036         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
3037         * sysdeps/x86_64/Dist: New file.
3038         * sysdeps/x86_64/soft-fp/Dist: New file.
3040         * sysdeps/gnu/Dist: Remove eval.c.
3042 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
3044         * malloc/memusage.c (realloc): Don't count already allocated
3045         memory in the sums.
3046         (me): Always use dlsym() to find the real implementations.
3048         * malloc/memusage.sh: Make -n option actually do something.
3050 2001-09-20  Andreas Jaeger  <aj@suse.de>
3052         * elf/elf.h (R_390_NUM): Correct value.
3054         * Versions.def: Add missing versions 2.2.3 for libthread_db and
3055         libpthread.
3057         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
3058         for x86-64, install x86-64 into */lib64.
3060         * shlib-versions: Add x86-64.
3062         * elf/elf.h: Add x86-64 relocations.
3064 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
3066         * po/fr.po: Update from translation team.
3068 2001-09-19  Andreas Jaeger  <aj@suse.de>
3070         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
3071         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
3072         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
3073         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
3074         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
3075         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
3076         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
3077         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
3078         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
3079         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
3080         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
3081         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
3082         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
3083         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
3084         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
3085         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
3086         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
3087         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
3088         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
3089         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
3090         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
3091         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
3092         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
3093         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
3094         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
3095         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
3096         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
3097         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
3098         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
3099         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
3100         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
3101         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
3102         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
3103         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
3104         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
3105         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
3106         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
3107         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
3108         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
3109         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
3110         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
3111         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
3112         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
3113         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
3114         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
3115         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
3116         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
3117         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
3118         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
3119         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
3120         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
3121         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
3122         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
3123         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
3124         * sysdeps/unix/x86_64/sysdep.S: New file.
3125         * sysdeps/unix/x86_64/sysdep.h: New file.
3126         * sysdeps/x86_64/Implies: New file.
3127         * sysdeps/x86_64/Makefile: New file.
3128         * sysdeps/x86_64/Versions: New file.
3129         * sysdeps/x86_64/__longjmp.S: New file.
3130         * sysdeps/x86_64/abort-instr.h: New file.
3131         * sysdeps/x86_64/atomicity.h: New file.
3132         * sysdeps/x86_64/bits/endian.h: New file.
3133         * sysdeps/x86_64/bits/setjmp.h: New file.
3134         * sysdeps/x86_64/bits/string.h: New file.
3135         * sysdeps/x86_64/bp-asm.h: New file.
3136         * sysdeps/x86_64/bsd-_setjmp.S: New file.
3137         * sysdeps/x86_64/bsd-setjmp.S: New file.
3138         * sysdeps/x86_64/dl-machine.h: New file.
3139         * sysdeps/x86_64/elf/initfini.c: New file.
3140         * sysdeps/x86_64/elf/start.S: New file.
3141         * sysdeps/x86_64/ffs.c: New file.
3142         * sysdeps/x86_64/ffsll.c: New file.
3143         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
3144         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
3145         * sysdeps/x86_64/fpu/e_acosl.c: New file.
3146         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
3147         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
3148         * sysdeps/x86_64/fpu/e_expl.c: New file.
3149         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
3150         * sysdeps/x86_64/fpu/e_log10l.S: New file.
3151         * sysdeps/x86_64/fpu/e_log2l.S: New file.
3152         * sysdeps/x86_64/fpu/e_logl.S: New file.
3153         * sysdeps/x86_64/fpu/e_powl.S: New file.
3154         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
3155         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
3156         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
3157         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
3158         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
3159         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
3160         * sysdeps/x86_64/fpu/fegetenv.c: New file.
3161         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
3162         * sysdeps/x86_64/fpu/fegetround.c: New file.
3163         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
3164         * sysdeps/x86_64/fpu/fesetenv.c: New file.
3165         * sysdeps/x86_64/fpu/fesetround.c: New file.
3166         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
3167         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
3168         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
3169         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
3170         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
3171         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
3172         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
3173         * sysdeps/x86_64/fpu/s_atanl.c: New file.
3174         * sysdeps/x86_64/fpu/s_cosl.S: New file.
3175         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
3176         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
3177         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
3178         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
3179         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
3180         * sysdeps/x86_64/fpu/s_logbl.c: New file.
3181         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
3182         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
3183         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
3184         * sysdeps/x86_64/fpu/s_rintl.c: New file.
3185         * sysdeps/x86_64/fpu/s_significandl.c: New file.
3186         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
3187         * sysdeps/x86_64/fpu/s_sinl.S: New file.
3188         * sysdeps/x86_64/fpu/s_tanl.S: New file.
3189         * sysdeps/x86_64/gmp-mparam.h: New file.
3190         * sysdeps/x86_64/hp-timing.c: New file.
3191         * sysdeps/x86_64/hp-timing.h: New file.
3192         * sysdeps/x86_64/htonl.S: New file.
3193         * sysdeps/x86_64/memusage.h: New file.
3194         * sysdeps/x86_64/setjmp.S: New file.
3195         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
3196         * sysdeps/x86_64/stackinfo.h: New file.
3197         * sysdeps/x86_64/sysdep.h: New file.
3198         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
3200         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
3201         L Moshier.
3203 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
3205         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
3206         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
3208 2001-09-18  Andreas Schwab  <schwab@suse.de>
3210         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
3211         list, now that l_scope is a pointer.
3213         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
3214         scope list.
3216 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
3218         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
3219         (elf_machine_rela_relative): Add a missing declaration.
3221 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
3223         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
3224         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
3225         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
3226         ldd-rewrite scripts.
3228 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
3230         * elf/ldd.bash.in: Update copyright message.
3232 2001-09-17  H.J. Lu  <hjl@gnu.org>
3234         * hurd/hurdmalloc.c (bcopy): Removed.
3235         (realloc): Replace bcopy with memcpy.
3236         * hurd/path-lookup.c (file_name_path_scan): Likewise.
3237         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
3238         * sunrpc/rpcinfo.c (pmapdump): Likewise.
3240         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
3241         (gethostbyaddr): Likewise.
3242         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
3244 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
3246         * sysdeps/gnu/eval.c: Removed.
3248 2001-09-18  Andreas Jaeger  <aj@suse.de>
3250         * sysdeps/i386/fpu/s_logbl.S: Move to ...
3251         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
3253         * sysdeps/i386/fpu/s_rintl.S: Move to ...
3254         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
3256         * sysdeps/i386/fpu/s_significandl.S: Move to ...
3257         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
3259 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
3261         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
3262         nrules value.
3264 2001-09-14  H.J. Lu  <hjl@gnu.org>
3266         * sysdeps/mips/fpu/libm-test-ulps: Updated.
3268 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
3270         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
3271         Patch by Florian La Roche <laroche@redhat.com>.
3273         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
3275         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
3276         ETHER_CRC_LEN.
3278 2001-09-14  Andreas Schwab  <schwab@suse.de>
3280         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
3281         Sumner <bls@sgi.com>.
3282         * posix/execlp.c: Likewise.
3284 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
3286         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
3287         is already found earlier in the search scope.
3289 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
3291         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
3292         filter.
3294 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
3296         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
3298 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
3300         * config.h.in: Enforce optimization to be used.
3301         * Makeconfig (preprocess-versions): Define ASSEMBLER.
3302         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
3303         * posix/Makefile (annexc-CFLAGS): Define to -O.
3304         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
3306 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
3308         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
3309         Patch by Stephan Kulow.
3311 2001-09-08  Ben Collins  <bcollins@debian.org>
3313         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
3314         usage of RESOLVE() (r_type, not reloc->r_type).
3316 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
3318         * elf/dl-object.c: Avoid allocating extra memory block for name.
3319         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
3320         allocated separately.
3321         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
3323 2001-09-08  H.J. Lu  <hjl@gnu.org>
3325         * po/zh_TW.po: Fix a typo.
3327 2001-09-07  Tom Rix  <trix@redhat.com>
3329         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
3331 2001-08-26  Tom Rix  <trix@redhat.com>
3333         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
3334         command line options.
3335         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
3336         * sysdeps/unix/sysv/aix/start.c: Removed.
3337         * sysdeps/unix/sysv/aix/start-libc.c: New file.
3338         * sysdeps/unix/sysv/aix/init-first.c: New file.
3339         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
3341 2001-09-08  Ben Collins  <bcollins@debian.org>
3343         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
3344         * sysdeps/generic/dl-machine.h: Likewise.
3345         * sysdeps/hppa/dl-fptr.c: Likewise.
3346         * sysdeps/ia64/dl-fptr.c: Likewise.
3347         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
3348         * sysdeps/mips/dl-machine.h: Likewise.
3349         * sysdeps/mips/mips64/dl-machine.h: Likewise.
3350         * sysdeps/powerpc/dl-machine.c: Likewise.
3352 2001-09-07  Ben Collins  <bcollins@debian.org>
3354         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
3356         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
3358 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
3360         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
3361         dependencies if necessary.
3363         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
3364         loaded directly) determine length if l_initfini list by iterating
3365         over its elements.  Minor optimizations.
3366         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
3367         for dependency objects.
3368         If object was already loaded check whether any of the dependencies
3369         is already on the relocation dependency list.  If yes, remove the
3370         latter.  Minor optimizations.
3371         * elf/dl-lookup.c (add_dependency): Add check for self reference of
3372         maps here.  Search l_initfini list only if the object was loaded
3373         directly and not only as a dependency.
3374         (_dl_lookup_symbol): Add relocation dependency also if object
3375         is not in global scope.  Remove test for self-reference here.
3376         (_dl_lookup_versioned_symbol): Likewise.
3377         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
3378         element of first name record.
3379         * elf/loadtest.c: Add some more test to recognize early if an object
3380         wasn't unloaded.
3381         * elf/Makefile: Add rules to build and run reldep5.
3382         * elf/reldep5.c: New file.
3383         * elf/reldepmod5.c: New file.
3384         * elf/reldepmod6.c: New file.
3386         * elf/reldep2.c: Fix typo.
3388 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
3390         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
3391         elements.  Change l_scope to be a pointer only.
3392         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
3393         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
3394         here add searchlist of newly open file to the dependency's scope.
3395         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
3396         only searchlist from its scope.  Free own scope array if necessary.
3397         * elf/Makefile (tests): Add dblload and dblunload now.
3399 2001-09-06  Andreas Jaeger  <aj@suse.de>
3401         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
3402         Stephen L Moshier.
3404 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
3406         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
3407         they both fail.
3408         * elf/dblload.c: New file.
3409         * elf/dblloadmod1.c: New file.
3410         * elf/dblloadmod2.c: New file.
3411         * elf/dblloadmod3.c: New file.
3412         * elf/dblunload.c: New file.
3414 2001-09-04  Richard Henderson  <rth@redhat.com>
3416         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
3417         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
3419 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
3421         Correct very misleading message for error in failed runtime relocation.
3422         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
3423         place of the error.
3424         (_dl_signal_cerror): Likewise.
3425         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
3426         * elf/dl-close.c: Likewise.
3427         * elf/dl-deps.c: Likewise.
3428         * elf/dl-load.c: Likewise.
3429         * elf/dl-lookup.c: Likewise.
3430         * elf/dl-open.c: Likewise.
3431         * elf/dl-reloc.c: Likewise.
3432         * elf/dl-sym.c: Likewise.
3433         * elf/dl-version.c: Likewise.
3434         * sysdeps/generic/dl-sysdep.c: Likewise.
3436 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
3438         * iconv/strtab.c (strtabinit): Initialize null Strent.
3439         (newstring): Move len == 0 handling...
3440         (strtabadd): ...here.
3441         If len == 1, return null Strent.
3442         When inserting a suffix of an existing string, check if
3443         it is not equal to some suffix already recorded.
3444         Copy left and right members over if adding longer string.
3446 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
3448         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
3450         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
3451         (__syscall_gethostname): Add prototype.
3453 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
3455         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
3457 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
3459         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
3461 2001-08-27  Roland McGrath  <roland@frob.com>
3463         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
3464         short, copy that much into NAME anyway before returning error.
3466 2001-09-01  Richard Henderson  <rth@redhat.com>
3468         * sysdeps/alpha/elf/Dist: Remove file.
3469         * sysdeps/alpha/elf/Makefile: Remove file.
3470         * sysdeps/alpha/elf/crtbegin.S: Remove file.
3471         * sysdeps/alpha/elf/crtend.S: Remove file.
3472         * sysdeps/alpha/elf/initfini.c: New file.
3474 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
3476         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
3477         * iconv/tst-iconv3.c: Likewise.
3479 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
3481         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
3483 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
3485         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
3486         export it.
3487         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
3488         * iconv/iconv_prog.c (insert_cache): New function.
3489         (print_known_names): If cache is used call insert_cache to use the
3490         information from the cache [PR libc/2509].
3492 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
3494         * time/strptime.c (strptime_internal): Recognize 'l' format and
3495         handle it like 'I' for symmetry with strftime.
3497 2001-08-31  Richard Henderson  <rth@redhat.com>
3499         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
3500         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
3501         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
3502         (print_statistics): Make scalar unsigned long long.
3503         * sysdeps/alpha/hp-timing.h: New file.
3505 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
3507         * stdio-common/perror.c (perror): Save errno early, pass it
3508         down to perror_internal.
3509         (perror_internal): Add errnum argument.
3511 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
3513         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
3514         Don't add old memory content for R_ALPHA_REFQUAD.
3516 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
3518         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
3519         memory correctly.
3521         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
3522         instead of open, __close instead of close, __getpagesize instead
3523         of getpagesize.
3525         * string/argz-stringify.c (__argz_stringify): Use __strnlen
3526         instead of strnlen.
3527         * include/string.h (strndupa): Redefine here to use __strnlen
3528         instead of strnlen.
3529         * string/strndup.c (__strndup): Use __strnlen not strnlen.
3531         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
3532         connected).
3534 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
3536         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
3537         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
3538         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
3539         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
3540         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
3541         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
3542         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
3544 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
3546         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
3548 2001-08-30  Andreas Jaeger  <aj@suse.de>
3550         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
3551         contributed Stephen L Moshier.
3553 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
3555         * sunrpc/etc.rpc (sgi_fam): Add.
3557 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
3559         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
3561 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
3563         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
3564         first is from a previous call.
3565         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
3567 2001-08-29  Andreas Schwab  <schwab@suse.de>
3569         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
3571 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3573         * config.make.in (INSTALL_SCRIPT): Define.
3574         * Makeconfig (INSTALL_SCRIPT): Define.
3575         * Makerules (do-install-script): New macro to install scripts using
3576         INSTALL_SCRIPT.
3577         (install-bin-script): New rule to install scripts with
3578         do-install-script.
3579         (install-bin-script-nosubdir): New rule.
3580         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
3581         (distinfo-vars): Add $(install-bin-script).
3582         * Rules (others): Likewise.
3583         * Makefile (glibcbug): Install with install-bin-script.
3584         * debug/Makefile (xtrace): Likewise.
3585         (catchsegv): Likewise.
3586         * elf/Makefile (ldd): Likewise.
3587         * malloc/Makefile (mtrace): Likewise.
3588         * timezone/Makefile (tzselect): Likewise.
3590 2001-08-29  H.J. Lu  <hjl@gnu.org>
3592         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
3593         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
3594         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
3596 2001-08-29  Andreas Schwab  <schwab@suse.de>
3598         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
3600 2001-08-28  H.J. Lu  <hjl@gnu.org>
3602         * Makeconfig (combreloc-LDFLAGS): New variable.
3603         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
3604         * config.make.in (have-z-combreloc): New variable.
3605         * configure.in: Substitute libc_cv_z_combreloc.
3607 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
3609         * po/sv.po: Update from translation team.
3610         * po/fr.po: Likewise.
3611         * po/da.po: Likewise.
3613 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3615         * Makerules: Fix a typo: MD% -> MD5.
3617 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
3619         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
3620         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
3622 2001-08-28  Andreas Jaeger  <aj@suse.de>
3624         * manual/libc-texinfo.sh: Add entry about free manuals.
3626         * manual/contrib.texi (Contributors): Fix cross reference.
3628         * manual/libc.texinfo (Copying): Include freemanuals.
3630         * manual/Makefile (appendices): Add freemanuals.
3632         * manual/freemanuals.texi: New file.
3633         Patch by Brian Youmans <3diff@gnu.org>.
3635         * manual/libm-err-tab.pl: Pretty print more platforms, print a
3636         smaller table.
3638         * manual/math.texi (Errors in Math Functions): Fix grammar, start
3639         table on separate page.
3640         Patch by Brian Youmans <3diff@gnu.org>.
3642 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
3644         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
3645         the connection went down after we first used it try to connect
3646         again and resend the message before printing to the console.
3647         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
3649 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
3651         * string/tst-strlen.c (main): Test strnlen (, -1) too.
3652         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
3653         bit set.
3655 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
3657         * iconv/strtab.c (searchstring): Use correct length for comparison.
3658         (strtabadd): Account total size correct if new string has old string as
3659         substring.
3661 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
3663         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
3665 2001-08-27  Andreas Jaeger  <aj@suse.de>
3667         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
3669         * math/libm-test.inc (j0_test): Add extra tests.
3670         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
3671         not x, in Hankel approximation.
3672         Patches by Stephen L Moshier.
3674 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
3676         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
3677         link_map.
3679         * configure.in: Fix test for .rela.dyn section.
3681         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
3683 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
3685         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
3686         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
3687         Pass type_class to _dl_lookup_*.
3688         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
3689         Pass around just type_class instead of noexec, noplt pair.
3690         (_dl_lookup_versioned_symbol): Likewise.
3691         (_dl_lookup_symbol_skip): Pass around just type_class instead of
3692         noexec, noplt pair.
3693         (_dl_lookup_versioned_symbol_skip): Likewise.
3694         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
3695         * elf/do-lookup.h (do_lookup): Likewise.
3696         * include/link.h (struct link_map): Replace noexec and noplt fields
3697         in l_lookup_cache with type_class field.
3698         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
3699         ELF_RTYPE_CLASS_COPY): Define.
3700         Adjust prototypes for _dl_lookup_symbol and
3701         _dl_lookup_versioned_symbol.
3702         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
3703         elf_machine_lookup_noexec_p): Remove.
3704         (elf_machine_type_class): Define.
3705         * sysdeps/arm/dl-machine.h: Likewise.
3706         * sysdeps/hppa/dl-machine.h: Likewise.
3707         * sysdeps/cris/dl-machine.h: Likewise.
3708         * sysdeps/i386/dl-machine.h: Likewise.
3709         * sysdeps/ia64/dl-machine.h: Likewise.
3710         * sysdeps/m68k/dl-machine.h: Likewise.
3711         * sysdeps/mips/mips64/dl-machine.h: Likewise.
3712         * sysdeps/mips/dl-machine.h: Likewise.
3713         * sysdeps/powerpc/dl-machine.h: Likewise.
3714         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
3715         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
3716         * sysdeps/sh/dl-machine.h: Likewise.
3717         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
3718         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
3720 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
3722         * manual/message.texi (Advanced gettext functions): Change
3723         description of plural forms for Slovak.
3724         Reported by Marcel Telka <marcel@telka.sk>.
3726         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
3727         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
3729 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
3731         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
3732         typo.  Patch by Florian La Roche <laroche@redhat.com>.
3734 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
3736         * include/link.h (struct link_map): Add l_lookup_cache element.
3737         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
3738         (RESOLVE_MAP): Likewise.
3739         (_dl_relocate_object): Remove cache initialization.
3740         * elf/dl-lookup.c: Rip out cache handling code.
3741         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
3742         declarations.
3744         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
3745         remove some __builtin_expect.
3746         (_dl_lookup_versioned_symbol): Likewise.
3748         * config.h.in: Add HAVE_Z_COMBRELOC.
3749         * configure.in: Add test for -z combreloc.
3751         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
3752         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
3753         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
3754         case to almost no code.
3756 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
3758         * po/tr.po: Update from translation team.
3760 2001-08-24  Andreas Jaeger  <aj@suse.de>
3762         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
3763         make clean works.
3765 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
3767         * elf/rtld.c (print_statistics): Printf % after percent values.
3768         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
3770         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
3771         don't have to compute the hash value and initialize current_value.
3772         Move reference_name variable to where it is needed.
3773         (_dl_lookup_versioned_symbol): Likewise.
3775 2001-08-24  Roland McGrath  <roland@frob.com>
3777         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
3778         Just test that strerror returns non-null for a few errno codes.
3780 2001-08-23  Roland McGrath  <roland@frob.com>
3782         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
3783         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
3785         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
3787         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
3788         __mach_reply_port.
3790 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
3792         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
3793         returns NULL.
3795         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
3796         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
3797         doesn't do it.
3798         * elf/rtld.c: Include <sys/param.h>.
3799         * elf/dl-reloc.c: Likewise.
3801 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3803         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
3804         empty to prevent junk from being generated.
3805         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
3807 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
3809         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
3810         records.  Rename endrel to relative, initialize it to r, and use it
3811         in elf_machine_rel_relative calls.  Point r after relative relocs.
3813 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
3815         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
3816         of R_386_NONE.
3818 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
3820         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
3821         necessary.  Undefine newly defined macros at the end.
3822         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
3823         Rename from elf_machine_rel_relative.
3824         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
3825         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
3826         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
3827         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
3828         Likewise.
3829         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
3830         Likewise.
3831         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
3832         Fix argument types.
3833         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
3834         Fix argument types.
3835         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
3836         Likewise.  Fix argument types.
3837         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
3838         Likewise.  Fix argument types.
3839         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
3840         Fix argument types.
3841         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
3842         ElfW(Rel) in argument.
3843         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
3844         function.
3846 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
3848         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
3850 2001-08-24  Andreas Jaeger  <aj@suse.de>
3852         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
3853         Stephen L Moshier <moshier@mediaone.net>.
3855 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
3857         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
3858         first if RELCOUNT is set.
3860         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
3861         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
3862         elf_machine_rel_relative.
3863         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
3864         Minor optimizations.
3865         * sysdeps/arm/dl-machine.h: Likewise.
3866         * sysdeps/cris/dl-machine.h: Likewise.
3867         * sysdeps/hppa/dl-machine.h: Likewise.
3868         * sysdeps/i386/dl-machine.h: Likewise.
3869         * sysdeps/ia64/dl-machine.h: Likewise.
3870         * sysdeps/m68k/dl-machine.h: Likewise.
3871         * sysdeps/mips/dl-machine.h: Likewise.
3872         * sysdeps/powerpc/dl-machine.h: Likewise.
3873         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
3874         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
3875         * sysdeps/sh/dl-machine.h: Likewise.
3876         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
3877         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
3879 2001-08-23  Roland McGrath  <roland@frob.com>
3881         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
3883         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
3884         sysdeps/mach version.  Implement counting ("recursive") mutexes
3885         on top of cthreads mutexes.
3886         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
3888         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
3889         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
3890         (__libc_cleanup_region_start, __libc_cleanup_region_end,
3891         __libc_clean_end): Define these to call the cleanup function after
3892         normal exit when they're supposed to.
3894         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
3895         Take new first arg DOIT, a boolean saying whether to really install
3896         any cleanup handler.
3897         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
3898         (__libc_cleanup_end): Likewise.
3899         * sysdeps/generic/bits/libc-lock.h: Same changes.
3900         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
3901         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
3902         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
3903         Likewise.
3904         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
3905         * sysdeps/generic/bits/stdio-lock.h
3906         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
3908 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
3910         * elf/ldconfig.c (search_dir): Remove stale symlinks.
3912 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
3914         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
3915         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
3916         lookups in cache.
3917         (_dl_lookup_versioned_symbol): Likewise.
3918         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
3919         relocation lookup.
3920         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
3921         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
3922         (lookup_cache, lookup_cache_versioned): Add declarations.
3924 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
3926         * stdlib/tst-random.c (main): Swap parameters in fail call.
3927         Patch by Pete Bevin <pete@petebevin.com>.
3929 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
3931         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
3933 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
3935         * malloc/obstack.c: Indent preprocessor directives.
3936         Patch by Jim Meyering <meyering@ascend.com>.
3938         * po/ja.po: Update from translation team.
3940 2001-08-23  Roland McGrath  <roland@frob.com>
3942         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
3944         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
3945         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
3947 2001-08-22  Roland McGrath  <roland@frob.com>
3949         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
3950         __libc_lock_define_recursive.
3951         * elf/dl-open.c: Don't declare it here any more.
3952         * elf/dl-close.c: Likewise.
3953         * elf/dl-lookup.c: Likewise.
3954         * elf/dl-iteratephdr.c: Likewise.
3955         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
3956         __libc_lock_unlock_recursive.
3957         * elf/dl-close.c (_dl_close): Likewise
3958         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
3959         * elf/dl-open.c (_dl_open): Likewise
3961         * sysdeps/generic/bits/libc-lock.h
3962         (__libc_lock_define_recursive): New macro.
3963         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
3964         (_IO_lock_lock): Use __libc_lock_lock_recursive.
3965         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
3967         * conform/conformtest.pl (checknamespace): Sort the output list.
3969         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
3970         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
3971         definitions conditional on [__USE_XOPEN].
3973         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
3974         these unconditionally, not only use [__USE_BSD], so as to match
3975         the sysdeps/unix/sysv/linux files.
3977 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
3979         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
3980         avoid warnings.
3982         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
3983         DL_LOOKUP_ADDRESS.
3985 2001-08-22  Roland McGrath  <roland@frob.com>
3987         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
3988         conditionalization of sa_handler/sa_sigaction member types to
3989         match the sysdeps/unix/sysv/linux file.
3991 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
3993         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
3994         symbol sizes a bit better.
3996         * sysdeps/ia64/strncpy.S: Complete rewrite.
3997         Contributed by Jakub Jelinek <jakub@redhat.com>.
3999         * string/stratcliff.c (main): Add strncpy test.
4001 2001-08-22  Roland McGrath  <roland@frob.com>
4003         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
4004         and don't declare unsetenv or _environ directly.
4005         (unsetenv): Return int, not void.  Use __environ instead of _environ.
4007 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
4009         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
4010         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
4011         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
4012         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
4013         test for cmsg struct size.
4015 2001-04-23  Paul Eggert  <eggert@twinsun.com>
4017         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
4018         Rename __argc to ___argc in prototypes to avoid compatibility
4019         problems with systems that reserve the identifier "__argc".
4020         Similarly for __argv.
4022 2001-08-21  Roland McGrath  <roland@frob.com>
4024         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
4026         * mach/Makefile (tests): Removed.
4027         * mach/hello.c: File removed.
4029 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
4031         * po/sv.po: Update from translation team.
4033         * stdio-common/vfscanf.c: Fix handling of %l[].
4034         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
4036         * libio/Makefile (tests): Add tst-sscanf.
4037         * libio/tst-sscanf.c: New file.
4039         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
4040         * malloc/mtrace.c (tr_where): dli_sname always points to a
4041         non-empty string if != NULL.
4042         Reported by Tim Janik <timj@gtk.org>.
4044 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
4046         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
4047         buf.  Free resources on failure.
4048         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
4049         (makefd_xprt): Likewise.
4050         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
4051         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
4052         * sunrpc/auth_unix.c (authunix_create): Likewise.
4054 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
4056         * string/strnlen.c: Remove.
4057         * sysdeps/generic/strnlen.c: New file.
4058         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
4060 2001-08-21  Roland McGrath  <roland@frob.com>
4062         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
4063         as a macro, not an extern inline function.
4065         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
4066         * Versions.def (libc): Add GLIBC_2.2.5 set.
4067         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
4068         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
4070 2001-08-20  Roland McGrath  <roland@frob.com>
4072         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
4073         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
4075 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
4077         * string/bits/string2.h: Remove strnlen optimization here.
4078         * sysdeps/i386/i486/bits/string.h: Add it here.
4080 2001-08-21  Wolfram Gloger  <wg@malloc.de>
4082         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
4084 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
4086         * po/gl.po: Update from translation team.
4088 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
4090         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
4091         * misc/err.c (convert_and_print): Likewise.
4093         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
4094         function calls.
4096 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4098         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
4099         change of the gregset_t type.
4100         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
4102 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
4104         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
4106 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
4108         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
4110         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
4112 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
4114         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
4115         before calling the cthreads initialization code.
4117 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
4119         * argp/argp-help.c: Fix two problems introduced in last change.
4121         * include/dirent.h: Include <dirstream.h> first.
4123 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
4125         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
4127         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
4128         * sunrpc/xdr_rec.c: Likewise.
4129         * sunrpc/xdr_mem.c: Likewise.
4130         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
4131         * sunrpc/rpc_cmsg.c: Likewise.
4132         * sunrpc/getrpcport.c (getrpcport): Likewise.
4133         * sunrpc/clnt_simp.c (callrpc): Likewise.
4134         * sunrpc/clnt_gen.c (clnt_create): Likewise.
4135         * string/envz.c: Likewise.
4137         * po/ko.po: Update from translation team.
4139         * argp/argp-help.c: Handle wide oriented stderr stream.
4141 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
4143         * sysdeps/generic/strtol.c: Little optimizations.  Add some
4144         __builtin_expect.
4146         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
4148         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
4149         * wcsmbs/wcwidth.c (wcwdith): Likewise.
4150         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
4152         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
4154         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
4156         * time/time.h (struct timespec): Use __time_t for tv_sec element.
4158         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
4159         wchar_t for function declarations and defintions.
4161         * misc/sys/select.h: Define __need_time_t before including <time.h>.
4162         Define suseconds_t if it hasn't happened yet.
4164         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
4166         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
4168         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
4169         <stddef.h>.
4171         * conform/data/stddef.h-data: Remove wint_t.
4173         * conform/conformtest.pl: Change namespace test to take #undef
4174         lines into account.
4176         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
4178         * conform/data/sys/socket.h-data: Add sockatmark.
4180 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
4182         * io/fts.c: Update from recent BSD source.
4184 2001-08-17  Roland McGrath  <roland@frob.com>
4186         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
4187         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
4188         Likewise.
4190 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
4192         * locale/duplocale.c (__duplocale): Also initialize the special
4193         __ctype_* elements.
4195         * conform/data/netdb.h-data: Adjust gai_strerror return type.
4197 2001-08-17  Andreas Jaeger  <aj@suse.de>
4199         * misc/getpass.c: Include wchar.h for prototypes.
4200         * malloc/obstack.c: Likewise.
4202 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
4204         * sunrpc/svc_simple.c (universal): Use __write instead of write.
4206         * wcsmbs/wcscoll.c: Also define __wcscoll.
4207         * include/wchar.h: Declare __wcscoll.
4209         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
4210         * libio/vwprintf.c: Likewise.
4211         * libio/wprintf.c: Likewise.
4213         * iconv/gconv_cache.c: Use __munmap instead of munmap.
4215 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
4217         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
4218         instead of mbrtowc.
4219         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
4220         wcslen, and __wcscoll instead of wcscoll.
4222         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
4224         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
4225         __getuid instead of getuid.
4227         * stdio-common/perror.c (perror): Use __close instead of close.
4228         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
4229         * libio/freopen.c (freopen): Likewise.
4230         * libio/freopen64.c (freopen64): Likewise.
4232         * libio/tst-ungetwc2.c (main): Define str const.
4234         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
4235         * libio/fwprintf.c: Also define __fwprintf.
4236         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
4237         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
4238         * assert/assert-perr.c: Likewise.
4239         * assert/assert.c: Likewise.
4240         * gmon/gmon.c: Likewise.
4241         * inet/rcmd.c: Likewise.
4242         * malloc/obstack.c: Likewise.
4243         * misc/err.c: Likewise.
4244         * misc/error.c: Likewise.
4245         * misc/getpass.c: Likewise.
4246         * posix/getopt.c: Likewise.
4247         * resolv/res_hconf.c: Likewise.
4248         * stdio-common/perror.c: Likewise.
4249         * stdio-common/psignal.c: Likewise.
4250         * stdlib/fmtmsg.c: Likewise.
4251         * sunrpc/auth_unix.c: Likewise.
4252         * sunrpc/clnt_perr.c: Likewise.
4253         * sunrpc/clnt_tcp.c: Likewise.
4254         * sunrpc/clnt_udp.c: Likewise.
4255         * sunrpc/clnt_unix.c: Likewise.
4256         * sunrpc/svc_simple.c: Likewise.
4257         * sunrpc/svc_tcp.c: Likewise.
4258         * sunrpc/svc_udp.c: Likewise.
4259         * sunrpc/svc_unix.c: Likewise.
4260         * sunrpc/xdr.c: Likewise.
4261         * sunrpc/xdr_array.c: Likewise.
4262         * sunrpc/xdr_rec.c: Likewise.
4263         * sunrpc/xdr_ref.c: Likewise.
4264         * sysdeps/generic/wordexp.c: Likewise.
4266         * po/it.po: Update from translation team.
4268         * misc/err.c: Handle wide oriented stderr stream.
4270 2001-08-14  Tom Rix  <trix@redhat.com>
4272         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
4273         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
4275 2001-08-13  Tom Rix  <trix@redhat.com>
4277         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
4278         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
4279         and __intptr_t.
4281 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4283         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
4284         Store the access registers to the ucontext structure.
4285         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
4286         Likewise.
4288         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
4289         Load the access registers from the ucontext structure.
4290         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
4291         Likewise.
4293         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
4294         offsets to the new ucontext layout.
4295         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
4297         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
4298         of the ucontext structure.
4299         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
4301 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
4303         * misc/error.c (error): Handle wide oriented stderr stream correctly.
4304         (error_at_line): Likewise.
4306         * stdio-common/perror.c (perror): Implement according to standard.
4307         The stream orientation must not be changed if the stream was not
4308         oriented before the call.
4309         * stdio-common/Makefile (tests): Add tst-perror.
4310         * stdio-common/tst-perror.c: New file.
4313 See ChangeLog.12 for earlier changes.