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