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