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