]> git.ipfire.org Git - thirdparty/glibc.git/blame - ChangeLog
Update.
[thirdparty/glibc.git] / ChangeLog
CommitLineData
0b5045fe
UD
12002-05-28 H.J. Lu <hjl@gnu.org>
2
3 * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
4 are not dlopened on the dependency list of a dlopened object.
5
6d78cd00
UD
62002-06-30 Ulrich Drepper <drepper@redhat.com>
7
8 * elf/dl-lookup.c (add_dependency): It is not necessary to add
9 dependencies if they are created between objects which are created
10 while processing RTLD_NOW for objects loaded as part of the same
11 dlopen call.
12
132002-06-14 H.J. Lu <hjl@gnu.org>
14
15 * elf/Makefile (tests): Add circleload1.
16 (modules-names): Add circlemod1, circlemod2, circlemod3,
17 circlemod1a, circlemod2a and circlemod3a.
18 ($(objpfx)circleload1): New target.
19 ($(objpfx)circleload1.out): Likewise.
20 ($(objpfx)circlemod1.so): Likewise.
21 ($(objpfx)circlemod2.so): Likewise.
22 ($(objpfx)circlemod1a.so): Likewise.
23 ($(objpfx)circlemod2a.so): Likewise.
24 * elf/circleload1.c: New file.
25 * elf/circlemod1.c: New file.
26 * elf/circlemod1a.c: New file.
27 * elf/circlemod2.c: New file.
28 * elf/circlemod2a.c: New file.
29 * elf/circlemod3.c: New file.
30 * elf/circlemod3a.c: New file.
31
8b8cc76f
UD
322002-06-18 Amos Waterland <apw@us.ibm.com>
33
34 * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
35 file descriptor.
36 * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
37 add check for fd not open for writing.
38
39 * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
40 completed element(s) and do not suspend thread if so. Patch
41 heavily modified by drepper.
42
43 * rt/tst-aio7.c: New file. Regression test for problems which the
44 above three changes fix.
45 * rt/Makefile (tests): Add tst-aio7.
46
eabea972
UD
472002-06-29 Ulrich Drepper <drepper@redhat.com>
48
8b8cc76f
UD
49 * rt/tst-aio6.c: Fix comment.
50
eabea972
UD
51 * catgets/gencat.c (read_input_file): Handle more than one slash
52 at end of line correctly [PR libc/3926].
53 Based on a patch by Steven Kim <steven.kim@peregrine.com>.
54
55 * catgets/sample.SJIS: Add test case for above bug.
56 * catgets/test-gencat.c: Adjust test code.
57 * catgets/test-gencat.sh: Adjust expected results.
58
59 * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
60 to skip relative relocations.
61 Patch by Geoff Keating <geoffk@redhat.com>.
62
e438a468 632002-05-26 Bruno Haible <bruno@clisp.org>
8dae594a 64
e438a468
UD
65 * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
66 (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
67 All callers changed.
68 * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
69 STANDARD_FROM_LOOP_ERR_HANDLER.
70 (utf8_internal_loop): Likewise.
71 (ucs2_internal_loop): Likewise.
72 (internal_ucs2_loop): Perform error handling like in
73 STANDARD_FROM_LOOP_ERR_HANDLER.
74 * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
75 in STANDARD_FROM_LOOP_ERR_HANDLER.
76 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
77 handling.
78 * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
79 in STANDARD_FROM_LOOP_ERR_HANDLER.
80 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
81 handling.
82 * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
83 in STANDARD_FROM_LOOP_ERR_HANDLER.
84 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
85 handling.
86 * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
87 STANDARD_FROM_LOOP_ERR_HANDLER.
88 * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
89 * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
90 * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
91 * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
92 * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
93 * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
94 * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
95 * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
96 * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
97 * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
98 * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
99 * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
100 * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
101 * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
102 * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
103 * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
104 * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
105 * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
106 * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
107 * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
108 * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
109 * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
110 * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
111 * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
112 * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
113 * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
114 * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
115 * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
116 * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise. When ignoring
117 an error, still set result = __GCONV_ILLEGAL_INPUT.
118 (BODY for TO_LOOP): Likewise.
119 * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
120 STANDARD_FROM_LOOP_ERR_HANDLER.
121 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
122 * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
123 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
124 handling.
125 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
126 * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
127 STANDARD_FROM_LOOP_ERR_HANDLER.
128 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
129 * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
130 STANDARD_FROM_LOOP_ERR_HANDLER.
131 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
132 * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
133 STANDARD_FROM_LOOP_ERR_HANDLER.
134 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
135 * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
136 STANDARD_FROM_LOOP_ERR_HANDLER.
137 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
138 * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
139 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
140 handling.
141 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
142 * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
143 * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
144 * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
145
1462002-06-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
147
148 * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
149 labels in assembler instructions.
8dae594a 150
51909ff7
UD
1512002-06-25 Ulrich Drepper <drepper@redhat.com>
152
8dae594a 153 * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
c4292489
UD
154 not enough content is available.
155 * libio/tst-eof.c: New file.
156 * libio/Makefile (tests): Add tst-eof.
157
158 * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
159 update atime.
160 * libio/tst-atime.c: New file.
161 * libio/Makefile (tests): Add tst-atime.
162
51909ff7
UD
163 * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
164 handling of overly long words.
165
13cfe899
AJ
1662002-06-25 Andreas Jaeger <aj@suse.de>
167
168 * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
169 to not use 32-bit pc relative relocations.
170 (elf_machine_dynamic): Likewise.
171
05ae4d6a
UD
1722002-06-21 Ulrich Drepper <drepper@redhat.com>
173
174 * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
175 (__GETDENTS): Check for failed getdents64 syscall.
176 * dirent/Makefile (tests): Add bug-readdir1.
177 * dirent/bug-readdir1.c: New file.
178
bff334e0
UD
1792002-06-17 Jakub Jelinek <jakub@redhat.com>
180
181 * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
182 lookups.
183 * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
184 code. Print TLS modid and offset for modules containing PT_TLS
185 segments.
186
1872002-06-09 Jakub Jelinek <jakub@redhat.com>
188
189 * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
190 * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
191 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
192 * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
193
1942002-06-07 Jakub Jelinek <jakub@redhat.com>
195
196 * nss/getXXbyYY_r.c (NEW, NEW1): Define.
197 (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
198 (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
199 * nss/getXXent_r.c (NEW, NEW1): Define.
200 (NEW (REENTRANT_GETNAME)): Strong alias to
201 INTERNAL (REENTRANT_GETNAME).
202 (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
203
2042002-06-21 Ulrich Drepper <drepper@redhat.com>
205
206 * libio/fileops.c (_IO_file_setbuf_mmap): New function.
207 (_IO_file_jumps_mmap): Use it.
208 * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
209 * libio/libioP.h: Remove _IO_wdefault_setbuf and
210 _IO_wdefault_setbuf_internal prorotypes. Add _IO_file_setbuf_mmap
211 prototype.
212 * libio/wfileops.c (_IO_wfile_setbuf): Removed.
213 (_IO_wfile_jumps_mmap): Don't use it anymore.
214 * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
215 * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
216 _IO_wdefault_setbuf.
217 * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
218 * libio/wstrops.c (_IO_wstr_jumps): Likewise.
219 * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
220
2212002-06-05 Jakub Jelinek <jakub@redhat.com>
222
223 * libio/Makefile (tests): Add tst-mmap-setvbuf.
224 * libio/tst-mmap-setvbuf.c: New test.
225
1a4876ef
AJ
2262002-06-21 Andreas Jaeger <aj@suse.de>
227
228 * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
229
e6ac0e78
UD
2302002-06-18 Jakub Jelinek <jakub@redhat.com>
231
232 * include/unistd.h (__fork_internal): Remove.
233 (__fork): Don't define to __fork_internal.
234 * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
235 * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
236 * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
237 * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
238 * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
239
2402002-06-20 Ulrich Drepper <drepper@redhat.com>
241
242 * po/hr.po: New file.
243
2442002-06-11 Wolfram Gloger <wg@malloc.de>
245
246 * malloc/malloc.c: Fix error path when new_heap() returns NULL.
247 Reported by Michael Meissner <meissner@redhat.com>.
248
2492002-06-20 Ulrich Drepper <drepper@redhat.com>
250
251 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
252 Patch by Hans Boehm <hans_boehm@hp.com>.
253
1af437d6
AJ
2542002-06-20 Andreas Jaeger <aj@suse.de>
255
256 * math/libm-test.inc: Use exact values as input parameters,
257 compute output parameters with 36 digits for 128-bit long doubles.
258 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
259 * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
5155a72b 260 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
1af437d6 261
4c49989e
UD
2622002-06-13 Stephen L Moshier <steve@moshier.net>
263
264 * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
265 argument or result is subnormal.
266
2672002-06-19 Ulrich Drepper <drepper@redhat.com>
268
269 * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
270 quotient.
271 * sysdeps/i386/fpu/s_remquof.S: Likewise.
272 * sysdeps/i386/fpu/s_remquol.S: Likewise.
273
274 * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
275
280f4c0d
AJ
2762002-06-17 David Mosberger <davidm@hpl.hp.com>
277
278 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
279 typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
280 Reported by Peter A. Buhr.
281
f5eaa9d5
RM
2822002-06-15 Roland McGrath <roland@frob.com>
283
5b6cab3e
RM
284 * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
285 warning.
286
287 * sysdeps/mach/hurd/getcwd.c
288 (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
289
3b9b82ec
RM
290 * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
291 * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
292
f5eaa9d5
RM
293 * sysdeps/alpha/divrem.h: Use local label instead of global one for
294 jump to local subroutine.
295
6fb26a2f
RM
2962002-06-14 Roland McGrath <roland@frob.com>
297
298 * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
299 * sysdeps/mach/hurd/Makeconfig: ... here.
300
97f7dc70
AS
3012002-06-13 Andreas Schwab <schwab@suse.de>
302
303 * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
304 * sysdeps/m68k/fpu/s_finitef.c: Likewise.
305 * sysdeps/m68k/fpu/s_finitel.c: Likewise.
306
8f0ac69e
RM
3072002-06-13 Roland McGrath <roland@frob.com>
308
309 * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
310 * hurd/hurdstartup.c (_hurd_startup): Likewise.
311 Use intptr_t instead of int for argc in stack layout.
312 * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
313 (_dl_init_first): Likewise.
314 (_hurd_stack_setup): Likewise.
315 (init1): Add a cast.
b83cbb99
RM
316 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
317
318 * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
319 argument to pfinet_siocgifconf RPC.
8f0ac69e 320
3580423e
AS
3212002-06-13 Andreas Schwab <schwab@suse.de>
322
323 * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
324 expansion order.
325
650f6700
RM
3262002-06-12 Roland McGrath <roland@frob.com>
327
328 * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
329 if already defined.
330 [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
331 [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
332
337738b7
RM
3332002-06-11 Roland McGrath <roland@frob.com>
334
335 * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
336 file on [!RTLD_STAT64].
337 * sysdeps/mach/hurd/fxstat64.c: Likewise.
338
339 * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
340 (__fdopen): Use INTUSE.
341 * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
342
343 * stdio-common/tmpfile64.c: File removed.
344 * sysdeps/generic/tmpfile64.c: New file.
345 * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
346 if not already defined.
347 (tmpfile): Use it in place of __GT_FILE.
348
349 * include/unistd.h: Declare __chown_internal.
350
351 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
352 * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
353
3542002-06-09 Roland McGrath <roland@frob.com>
355
356 Update to new Hurd RPC interfaces supporting 64-bit file sizes.
357 * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
358 value of HURD_INTERFACE_VERSION >= 20020609.
359 * sysdeps/mach/hurd/configure: Regenerated.
360 * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
361 * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
362 convert a struct stat64 into a struct stat and return 0 or -1
363 with errno set to EOVERFLOW.
364 * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
365 for struct statfs64 to struct statfs.
366 * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
367 * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
368 * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
369 * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
370 * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
371 * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
372 * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
373 * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
374 * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
375 * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
376 * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
377 * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
378 * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
379 * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
380 * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
381 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
382 * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
383 * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
384 * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
385 * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
386 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
387 Use struct stat64 for io_stat argument.
388 * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
389 * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
390 to io_seek.
391 * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
392 * hurd/fd-write.c (_hurd_fd_write): Likewise.
393 * hurd/hurd/fd.h: Update decls.
394 * sysdeps/mach/hurd/getcwd.c
395 (_hurd_canonicalize_directory_name_internal): Use ino64_t
396 and struct dirent64.
397 * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
398 (__xstat): Renamed to __xstat64, use struct stat64 for argument.
399 (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
400 (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
401
4022002-06-08 Roland McGrath <roland@frob.com>
403
404 * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
405 instead of unsigned long int for __allocation and __size members.
406
7e12a965
AJ
4072002-06-09 Jakub Jelinek <jakub@redhat.com>
408
409 * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
410 * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
411 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
412 * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
413
acee1897
RM
4142002-06-07 Roland McGrath <roland@frob.com>
415
416 * sysdeps/mach/hurd/bits/environments.h: File removed.
417
7baf750c
AJ
4182002-06-07 Jakub Jelinek <jakub@redhat.com>
419
4c49989e
UD
420 * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
421 * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
422 * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
423 * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
7baf750c
AJ
424 * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
425 (sendfile64): Likewise.
426 * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
427 * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
428 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
429 Likewise.
430 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
431
432 * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
433 already defined.
434
32d4ea6b
AJ
4352002-06-04 Bruno Haible <bruno@clisp.org>
436
437 * sysdeps/cris/stackinfo.h: New file.
438
439 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
440 to an integer type before performing bit operations on it.
441
7db20e36
RM
4422002-06-05 Roland McGrath <roland@frob.com>
443
e6dd9633
RM
444 * sysdeps/generic/sendfile.c: Include <errno.h>.
445 * sysdeps/generic/sendfile64.c: Likewise.
446
7db20e36
RM
447 * io/Makefile (routines): Add sendfile and sendfile64.
448 (headers): Add sys/sendfile.h to the list.
449 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
450 * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
451 * io/sys/sendfile.h: ... here.
452 * sysdeps/generic/sendfile.c: New file.
453 * sysdeps/generic/sendfile64.c: New file.
e6dd9633 454
7db20e36
RM
455 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
456 Move sendfile, sendfile64 to ...
457 * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
458 * sysdeps/mach/hurd/sendfile.c: New file.
459 * sysdeps/mach/hurd/sendfile64.c: New file.
460
461 * sysdeps/mach/nanosleep.c: New file.
462
17d7201a
RM
4632002-06-04 Roland McGrath <roland@frob.com>
464
465 * sysdeps/alpha/elf/configure.in: New file. Check for TLS support.
466 * sysdeps/alpha/elf/configure: New file (generated).
467
c35f1320
RM
4682002-06-02 Roland McGrath <roland@frob.com>
469
470 * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
471
4722002-06-01 Roland McGrath <roland@frob.com>
473
474 * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
475 i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
476
337738b7 4772002-05-19 Ulrich Drepper <drepper@redhat.com>
b64e1566
UD
478
479 * resolv/resolv.h (struct __res_state): Remove unused nstimes.
480 Add nsmap.
481 * resolv/res_init.c (__res_vinit): Initialize nsmap array.
482 Remove nstimes setting.
483 (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
484 * resolv/res_send.c (res_nsend): Don't close unconditionally if
485 there is mix of IPv6 and IPv4 nameservers.
486 Use nsmap array to find free slots and preserve nameserver ordering.
487 Fix RES_ROTATE.
488
63fb40b3
UD
4892002-05-30 Ulrich Drepper <drepper@redhat.com>
490
2afdb783
UD
491 * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
492 use this header with LFS.
493
63fb40b3
UD
494 * po/sk.po: Update from translation team.
495
4962002-05-28 Andreas Schwab <schwab@suse.de>
497
498 * sysdeps/generic/readelflib.c (process_elf_file): Give correct
499 message when finding object of wrong class.
500
5012002-05-28 Jakub Jelinek <jakub@redhat.com>
502
503 * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
504 Patch by <radu@netsoft.ro>.
505
9bd64602
UD
5062002-05-30 Ulrich Drepper <drepper@redhat.com>
507
508 * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
509 Add readahead.
510 * sysdeps/unix/sysv/linux/readahead.c: New file.
511 * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
512 * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
513 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
514 Add sendfile64 alias to sendfile syscall.
515 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
516 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
517 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
518 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
519 syscall.
520
521 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
522 special section for PIC register loading.
523 * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
524
525 * config.h.in: Define HAVE_HIDDEN.
526 * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
527
528 * elf/elf.h: Correct Alpha TLS relocations according to last spec.
529
de3fa828
RM
5302002-05-28 Roland McGrath <roland@frob.com>
531
532 * sysdeps/mach/alpha/setfpucw.c: New file.
533
5342002-05-26 Roland McGrath <roland@frob.com>
535
536 * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
537 Use integer_t instead of int for IOC_VOID case.
538
834cef7c
UD
5392002-05-27 Alexandre Oliva <aoliva@redhat.com>
540
541 * configure.in (DO_STATIC_NSS): Define if --disable-shared.
542
5432002-05-26 Bruno Haible <bruno@clisp.org>
544
545 * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
546 end of the ISO-8859-7 from idx table.
547
5482002-05-27 Ulrich Drepper <drepper@redhat.com>
549
550 * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
551
5522002-05-24 David S. Miller <davem@redhat.com>
553
554 * string/bits/string2.h (memset): Do not try to optimize when
555 not _STRING_ARCH_unaligned if GCC will do the right thing.
556
c0a0f9a3
UD
5572002-05-21 Isamu Hasegawa <isamu@yamato.ibm.com>
558
559 * posix/regex.c: Define `inline' as a macro into nothing for the
560 compilers which lack the keyword.
561 * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
562 for the compatibility of gawk.
563 * posix/regcomp.c: Add fake implementation of isblank() for the
564 environments which lack the function.
565 Don't use free_charset() in case of non-i18n envs.
566 (build_range_exp): Don't use i18n related code in case of non-i18n
567 envs.
568 (build_collating_symbol): Likewise.
569 (build_equiv_class): Likewise.
570 (build_charclass): Likewise.
571 (re_compile_fastmap_iter): Likewise.
572 (parse_bracket_exp): Likewise.
573 (build_word_op): Likewise.
574 (regfree): Don't use free_charset() in case of non-i18n envs.
575 * posix/regex_internal.h: Remove COMPLEX_BRACKET from
576 re_token_type_t in case of non-i18n envs.
577 Don't define re_charset_t in case of non-i18n envs.
578 Change the type of wcs of re_string_t from wchar_t to wint_t,
579 since we store also WEOF.
580 * posix/regex_internal.c: (re_string_realloc_buffers): Change
581 the type of wcs of re_string_t from wchar_t to wint_t.
582 (re_string_reconstruct): Likewise.
583 (create_ci_newstate): Don't use i18n related code in case of
584 non-i18n envs.
585 (create_cd_newstate): Likewise.
586
5872002-05-24 Ulrich Drepper <drepper@redhat.com>
588
589 * iconv/loop.c: Fix typo.
590
5912002-05-23 Jakub Jelinek <jakub@redhat.com>
592
593 * inet/ether_line.c (ether_line): Fix a typo causing only
594 lower 4 bits of each ethernet address byte being assigned.
595 Don't modify what line points to.
596 * inet/tst-ether_aton.c (main): Add ether_line tests.
597
5982002-05-23 Marcus Brinkmann <marcus@gnu.org>
599
600 * manual/filesys.texi: Don't make readlink example leak memory
601 when readlink fails.
602
4a0de63b
UD
6032002-05-20 Ulrich Drepper <drepper@redhat.com>
604
605 * iconv/loop.c: Fix condition for defining unaligned loop. Add
606 some more security checks.
607
cf299341
UD
6082002-05-17 David S. Miller <davem@redhat.com>
609
610 * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
611
6122002-05-16 David S. Miller <davem@redhat.com>
613
614 * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
615 (elf_machine_dynamic): Use it to force PIC register to be loaded.
616 (elf_machine_load_address): Likewise.
617 * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
618
619 * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
620 is unaligned, do not forget to fully initialize %g1 magic value.
621
622 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
623 register definitions and provide 32-bit variants of structures
624 during 64-bit builds.
625
626 * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
627 * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
628 * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
629 * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
630 _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
631 (_FP_FROM_INT): Perform right shifts on unsigned integer type.
632 Do not clear implicit one bit here, it must be done post-rounding.
633 Only pad to the left using left shift if value uses less than the
634 available fractional bits.
635
509bd8e3
UD
6362002-05-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
637
638 * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
639 instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
640 (shared-only-routines): Likewise.
641 * sysdeps/powerpc/libgcc-compat.c: New file.
642 * sysdeps/wordsize-32/cmpdi2.c: Removed.
643 * sysdeps/wordsize-32/fixdfdi.c: Removed.
644 * sysdeps/wordsize-32/fixsfdi.c: Removed.
645 * sysdeps/wordsize-32/shdi3.c: Removed.
646
4c393b68
UD
6472002-05-16 Bruno Haible <bruno@clisp.org>
648
649 * MakeTAGS (libc.pot): Don't sort the output.
650 * po/header.pot: Update to match xgettext 0.11 output.
651
6522002-05-16 Bruno Haible <bruno@clisp.org>
653
654 * MakeTAGS (subdirs): Remove duplicates.
655
3ace764d
UD
6562002-05-19 Ulrich Drepper <drepper@redhat.com>
657
658 * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
659 definiton of _old_sys_nerr. Define _old_sys_errlist as strong
660 alias.
661
79ab8d89
AJ
6622002-05-19 Andreas Jaeger <aj@suse.de>
663
664 * sysdeps/unix/sysv/linux/configure.in: Warn against an
665 installation in /usr/local.
666
bc9307fc
AJ
6672002-05-16 Bruno Haible <bruno@clisp.org>
668
669 * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
670 string as argument of #error.
671
4e960bbf
UD
6722002-05-15 Ulrich Drepper <drepper@redhat.com>
673
f7501ae6
UD
674 * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
675 don't define static. Remove old __realpath function. TC1 of
676 POSIX 2001 will allow the second parameter to be NULL.
677 * stdlib/test-canon.c: Comment out test for NULL as second
678 parameter of realpath.
679
680 * time/offtime.c (__offtime): Set errno if overflow is detected.
681
4e960bbf
UD
682 * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
683 * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
684 dl-brk and dl-sbrk.
685
686 * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
687 (fdimf): Likewise.
688
18197159
RM
6892002-05-15 Roland McGrath <roland@frob.com>
690
691 * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
692
faaa6f62
UD
6932002-05-12 Bruno Haible <bruno@clisp.org>
694
695 * iconvdata/testdata/EUC-JISX0213: New file.
696 * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
697 * iconvdata/testdata/SHIFT_JISX0213: New file.
698 * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
699 * iconvdata/testdata/ISO-2022-JP-3: New file.
700 * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
701 * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
702 * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
703 contains comments indicating precomposed characters.
704
7052002-04-21 Bruno Haible <bruno@clisp.org>
706
707 * iconvdata/iso-2022-jp-3.c: New file.
708 * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
709 * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
710 (LDFLAGS-ISO-2022-JP-3.so): New variable.
711 (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
712 (distribute): Add iso-2022-jp-3.c.
713
7142002-05-12 Bruno Haible <bruno@clisp.org>
715
716 * iconvdata/tst-table-to.c (main): Restore handling of
717 transliterations, broken by last patch.
718
7192002-05-12 Bruno Haible <bruno@clisp.org>
720
721 * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
722
7232002-05-12 Bruno Haible <bruno@clisp.org>
724
725 * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
726 when there is not enough room in the output buffer.
727 * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
728
7292002-04-20 Bruno Haible <bruno@clisp.org>
730
731 * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
732 macros.
733 (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
734 Also make this macro work if FROM_DIRECTION evaluates to 0.
735 (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
736 (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
737 of consume_incomplete.
738 * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
739 instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
740 4, not 8.
741 * iconvdata/cp1258.c: Likewise.
742 * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
743 instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
744 not 2.
745 * iconvdata/ibm933.c: Likewise.
746 * iconvdata/ibm935.c: Likewise.
747 * iconvdata/ibm937.c: Likewise.
748 * iconvdata/ibm939.c: Likewise.
749 * iconvdata/iso-2022-cn.c: Define
750 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
751 {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
752 * iconvdata/iso-2022-cn-ext.c: Likewise.
753 * iconvdata/iso-2022-jp.c: Define
754 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
755 {MIN,MAX}_NEEDED_{FROM,TO}.
756 * iconvdata/tcvn5712-1.c: Define
757 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
758 {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
759 * iconvdata/euc-jisx0213.c: Define
760 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
761 {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
762 * iconvdata/shift_jisx0213.c: Likewise.
763
7642002-05-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
765
766 * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
767 shdi3, fixdfdi, fixsfdi in csu dir.
768 (shared-only-routines): Likewise.
769 * sysdeps/wordsize-32/cmpdi2.c: New file.
770 * sysdeps/wordsize-32/shdi3.c: New file.
771 * sysdeps/wordsize-32/fixdfdi.c: New file.
772 * sysdeps/wordsize-32/fixsfdi.c: New file.
773 * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
774 __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
775 __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
776
777 * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
778 Only use va_arg if the argument will be used [PR libc/3259].
779
7802002-05-06 Michael A. Schmidt <mmaass@us.ibm.com>
781
782 * catgets/catgets.c (catopen): Free buffer if internal catalog
783 open fails.
784
7852002-05-14 Ulrich Drepper <drepper@redhat.com>
786
787 * debug/xtrace.sh: Make more robust. For realtime tracking use
788 non-buffering methods.
789 * debug/pcprofiledump.c: Implement -u option.
790 Patch by Roger Luethi <rl@hellgate.ch>.
791
b2bffca2
UD
7922002-05-11 Jakub Jelinek <jakub@redhat.com>
793
794 * include/netinet/in.h (bindresvport_internal): Add prototype.
795 * include/rpc/auth.h (authunix_create_internal,
796 authunix_create_default_internal, authnone_create_internal,
797 authdes_pk_create_internal): Add prototypes.
798 * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
799 clntudp_create_internal, clntudp_bufcreate_internal,
800 clntunix_create_internal): Add prototypes.
801 * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
802 svc_getreq_internal, svc_getreq_common_internal,
803 svc_getreqset_internal, svc_getreq_poll_internal,
804 svc_register_internal, svc_unregister_internal,
805 svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
806 * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
807 * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
808 __setsockopt, __getsockname, __bind, __listen): Add prototypes.
809 * inet/rexec.c (rexec_af): Use __listen and __getsockname.
810 * inet/rcmd.c (rcmd_af): Use __listen.
811 (rresvport_af): Use __bind.
812 * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
813 authunix_create, authunix_create_default, authnone_create,
814 authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
815 clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
816 svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
817 svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
818 _authenticate, add INTDEF after such function definitions.
819 Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
820 __setsockopt, __getsockname instead of non-__ variants.
821 * sunrpc/pmap_rmt.c: Likewise.
822 * sunrpc/rtime.c: Likewise.
823 * sunrpc/svc_udp.c: Likewise.
824 * sunrpc/clnt_unix.c: Likewise.
825 * sunrpc/svc_unix.c: Likewise.
826 * sunrpc/bindrsvprt.c: Likewise.
827 * sunrpc/svc_tcp.c: Likewise.
828 * sunrpc/auth_none.c: Likewise.
829 * sunrpc/clnt_raw.c: Likewise.
830 * sunrpc/clnt_tcp.c: Likewise.
831 * sunrpc/auth_unix.c: Likewise.
832 * sunrpc/key_call.c: Likewise.
833 * sunrpc/clnt_gen.c: Likewise.
834 * sunrpc/pm_getmaps.c: Likewise.
835 * sunrpc/clnt_simp.c: Likewise.
836 * sunrpc/pmap_clnt.c: Likewise.
837 * sunrpc/svc_run.c: Likewise.
838 * sunrpc/svc.c: Likewise.
839 * sunrpc/svc_simple.c: Likewise.
840 * sunrpc/pm_getport.c: Likewise.
841 * sunrpc/auth_des.c: Likewise.
842 * sunrpc/svc_auth.c: Likewise.
843 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
844 __register_frame_info_table_bases, __deregister_frame_info_bases):
845 Add INTDEF.
846 (__register_frame_info_bases_internal,
847 __register_frame_info_table_bases_internal,
848 __deregister_frame_info_bases_internal): Add prototypes.
849 (__register_frame_info, __register_frame): Use INTUSE in call to
850 __register_frame_info_bases.
851 (__register_frame_info_table): Similarly.
852 (__deregister_frame_info, __deregister_frame): Similarly.
853 * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
854 sendto as weak alias.
855 * sysdeps/mach/hurd/sendto.c: Likewise.
856 * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
857 recvfrom as weak alias.
858 * sysdeps/mach/hurd/recvfrom.c: Likewise.
859 * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
860 * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
861 recvmsg as weak alias.
862 * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
863 * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
864 sendmsg as weak alias.
865 * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
866 * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
867 setsockopt, add setsockopt as weak alias.
868 * sysdeps/mach/hurd/setsockopt.c: Likewise.
869 * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
870 weak alias.
871 * sysdeps/mach/hurd/bind.c: Likewise.
872 * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
873 as weak alias.
874 * sysdeps/mach/hurd/listen.c: Likewise.
875 * sysdeps/generic/getsockname.c (__getsockname): Renamed from
876 getsockname, add getsockname as weak alias.
877 * sysdeps/mach/hurd/getsockname.c: Likewise.
878 * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
879 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
880 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
881 * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
882 __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
883 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
884 Add aliases.
885 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
886 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
887 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
888 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
889 * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
890 * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
891 * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
892 * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
893 * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
894 * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
895 * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
896 * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
897
8982002-05-10 Jakub Jelinek <jakub@redhat.com>
899
900 * locale/programs/localedef.h (show_archive_content): Add verbose
901 argument.
902 * locale/programs/localedef.c (main): Adjust caller.
903 * locale/programs/locarchive.c (struct nameent, struct dataent): New.
904 (nameentcmp, dataentcmp): New functions.
905 (xstrcmp): Remove.
906 (show_archive_content): Print verbose listing with --list-archive -v.
907
848438d4
UD
9082002-05-14 Ulrich Drepper <drepper@redhat.com>
909
b2bffca2
UD
910 * locale/programs/locarchive.c (open_archive): Take extra argument
911 readonly. If true open file with O_RDONLY and don't create the
912 archive if it doesn't exist.
913 Adapt all callers.
914 (close_archive): Don't do anything if fd element is -1.
915 * locale/programs/localedef.h (open_archive): Adjust prototype.
916 * locale/programs/locfile.c (write_all_categories): Adjust open_archive
917 call.
918
919 * malloc/malloc.c (__posix_memalign): Correct check for size of
920 alignment value [PR libc/3444].
921
848438d4
UD
922 * include/stdio.h: Remove references to old stdio implementation.
923
924 * libio/Makefile (bug-ungetwc2-ENV): Define.
925
0c981d96
RM
9262002-05-13 Roland McGrath <roland@frob.com>
927
928 * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
929
930 * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
931
ab7dd85b
RM
9322002-05-13 Marcus Brinkmann <marcus@gnu.org>
933
848438d4
UD
934 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
935 Allocate three, not two, more than LEN when appending '/.'.
936 * sysdeps/mach/hurd/chroot.c (chroot): Likewise. Don't check
937 if NAME ends with '/.' if it is shorter than 2 chars.
ab7dd85b 938
6f142836
RM
9392002-05-12 Roland McGrath <roland@frob.com>
940
ab7dd85b
RM
941 * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
942 files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
943
6f142836
RM
944 * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
945 file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
946
527d3701
AJ
9472002-05-10 Jakub Jelinek <jakub@redhat.com>
948
949 * sysdeps/ia64/Makefile: Remove extra endif.
950 * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
951
4265a10e
AS
9522002-05-10 Andreas Schwab <schwab@suse.de>
953
954 * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
955
29139a8c
AJ
9562002-05-09 Andreas Jaeger <aj@suse.de>
957
40ff7949 958 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New.
72b05b87
AJ
959 * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
960 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
40ff7949 961
72b05b87
AJ
962 * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
963 * sysdeps/wordsize-64/glob.c: ...here.
29139a8c
AJ
964 * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
965 * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
966 * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
967
d1a60a28
RM
9682002-05-08 Roland McGrath <roland@frob.com>
969
970 * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
971 O_NOTRANS flag in "." lookup.
972
64ae9b09
UD
9732002-05-05 Ulrich Drepper <drepper@redhat.com>
974
975 * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
976
65fae6a6
UD
9772002-05-04 Ulrich Drepper <drepper@redhat.com>
978
979 * locale/duplocale.c (__duplocale): Update special members only
980 when allocation succeeded.
981
74ba5a33
RM
9822002-05-03 Roland McGrath <roland@frob.com>
983
984 * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
985 we can only build libc.so.0.3(GLIBC_2.2.6) now.
986
38a7d8ba
UD
9872002-05-02 Jakub Jelinek <jakub@redhat.com>
988
989 * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
990 * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
991 __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
992 * sysdeps/ia64/ia64libgcc.S: New file.
993
9942002-05-02 Ulrich Drepper <drepper@redhat.com>
995
996 * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
997
998 * malloc/memusage.c: Distinguish anonymous mmap.
999
51975631
RM
10002002-05-01 Roland McGrath <roland@frob.com>
1001
1002 * sysdeps/mach/hurd/close.c: #undef __close before function defn,
1003 and use INTDEF on it.
1004 * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
1005
1006 * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
1007
1008 * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
1009
94eb5b36
UD
10102002-05-01 Ulrich Drepper <drepper@redhat.com>
1011
1012 * malloc/memusage.c: Add support for tracking mmap & friends.
1013 * malloc/memusage.sh: Implement -m/--mmap option.
1014
531bafd8
UD
10152002-04-30 Jakub Jelinek <jakub@redhat.com>
1016
1017 * locale/programs/locarchive.c (create_archive): Add archivefname
1018 argument, create fname from it.
1019 (enlarge_archive): Honour output_prefix.
1020 (open_archive): Likewise.
1021
10222002-04-30 Jakub Jelinek <jakub@redhat.com>
1023
1024 * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
1025 too many stpcpy macros.
1026
10272002-04-26 Bruno Haible <bruno@clisp.org>
1028
1029 * locale/programs/ld-collate.c (collate_read): Cast first argument
1030 for "%.*s" to int.
1031
10322002-04-26 Bruno Haible <bruno@clisp.org>
1033
1034 * include/libintl.h (__ngettext, __dngettext, __dcngettext,
1035 __dcngettext_internal): New declarations.
1036 (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
1037 attribute declarations.
1038
bd138dcf
RM
10392002-04-30 Roland McGrath <roland@frob.com>
1040
1041 Removed old GNU stdio implementation; GNU libio is now the only option.
1042 * configure.in: Removed --enable-libio option and @stdio@ subst var.
1043 Define USE_IN_LIBIO unconditionally.
1044 * configure: Regenerated.
1045 * Makeconfig (stdio): Set to libio by default.
1046 * config.make.in (stdio): Variable removed.
1047 * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
1048 * sysdeps/unix/sysv/linux/configure: Regenerated.
1049 * sysdeps/mach/hurd/configure.in: Don't test $stdio.
1050 * sysdeps/mach/hurd/configure: Regenerated.
1051 * stdio/.cvsignore: File removed.
1052 * stdio/Makefile: File removed.
1053 * stdio/Versions: File removed.
1054 * stdio/__fbufsize.c: File removed.
1055 * stdio/__flbf.c: File removed.
1056 * stdio/__fpending.c: File removed.
1057 * stdio/__fpurge.c: File removed.
1058 * stdio/__freadable.c: File removed.
1059 * stdio/__freading.c: File removed.
1060 * stdio/__fsetlocking.c: File removed.
1061 * stdio/__fwritable.c: File removed.
1062 * stdio/__fwriting.c: File removed.
1063 * stdio/clearerr.c: File removed.
1064 * stdio/fclose.c: File removed.
1065 * stdio/fcloseall.c: File removed.
1066 * stdio/feof.c: File removed.
1067 * stdio/ferror.c: File removed.
1068 * stdio/fflush.c: File removed.
1069 * stdio/fgetc.c: File removed.
1070 * stdio/fgetpos.c: File removed.
1071 * stdio/fgets.c: File removed.
1072 * stdio/fileno.c: File removed.
1073 * stdio/fmemopen.c: File removed.
1074 * stdio/fopen.c: File removed.
1075 * stdio/fopncook.c: File removed.
1076 * stdio/fputc.c: File removed.
1077 * stdio/fputs.c: File removed.
1078 * stdio/fread.c: File removed.
1079 * stdio/freopen.c: File removed.
1080 * stdio/fseek.c: File removed.
1081 * stdio/fsetpos.c: File removed.
1082 * stdio/ftell.c: File removed.
1083 * stdio/fwrite.c: File removed.
1084 * stdio/getc.c: File removed.
1085 * stdio/getchar.c: File removed.
1086 * stdio/getdelim.c: File removed.
1087 * stdio/gets.c: File removed.
1088 * stdio/glue.c: File removed.
1089 * stdio/internals.c: File removed.
1090 * stdio/linewrap.c: File removed.
1091 * stdio/linewrap.h: File removed.
1092 * stdio/memstream.c: File removed.
1093 * stdio/newstream.c: File removed.
1094 * stdio/obstream.c: File removed.
1095 * stdio/putc.c: File removed.
1096 * stdio/putchar.c: File removed.
1097 * stdio/puts.c: File removed.
1098 * stdio/rewind.c: File removed.
1099 * stdio/setbuf.c: File removed.
1100 * stdio/setbuffer.c: File removed.
1101 * stdio/setlinebuf.c: File removed.
1102 * stdio/setvbuf.c: File removed.
1103 * stdio/stdio.h: File removed.
1104 * stdio/ungetc.c: File removed.
1105 * stdio/vasprintf.c: File removed.
1106 * stdio/vscanf.c: File removed.
1107 * stdio/vsnprintf.c: File removed.
1108 * stdio/vsprintf.c: File removed.
1109 * stdio/vsscanf.c: File removed.
1110 * sysdeps/generic/defs.c: File removed.
1111 * sysdeps/generic/fdopen.c: File removed.
1112 * sysdeps/generic/pipestream.c: File removed.
1113 * sysdeps/generic/stdio_init.c: File removed.
1114 * sysdeps/generic/sysd-stdio.c: File removed.
1115 * sysdeps/generic/vdprintf.c: File removed.
1116 * sysdeps/mach/hurd/defs.c: File removed.
1117 * sysdeps/mach/hurd/fdopen.c: File removed.
1118 * sysdeps/mach/hurd/pipestream.c: File removed.
1119 * sysdeps/mach/hurd/stdio_init.c: File removed.
1120 * sysdeps/mach/hurd/sysd-stdio.c: File removed.
1121 * sysdeps/mach/hurd/vdprintf.c: File removed.
1122 * sysdeps/posix/defs.c: File removed.
1123 * sysdeps/posix/fdopen.c: File removed.
1124 * sysdeps/posix/pipestream.c: File removed.
1125 * sysdeps/posix/stdio_init.c: File removed.
1126 * sysdeps/posix/vdprintf.c: File removed.
1127 * sysdeps/unix/pipestream.c: File removed.
1128 * sysdeps/unix/sysv/sysd-stdio.c: File removed.
1129 * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
1130 * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
1131
c75bdef4
RM
11322002-04-29 Roland McGrath <roland@frob.com>
1133
1134 * include/libc-symbols.h (link_warning): Use `unused' attribute.
1135
bc3bb89c
UD
11362002-04-28 Ulrich Drepper <drepper@redhat.com>
1137
8543f93d 1138 * sysdeps/generic/tls.h: Describe what must be defined.
b74ea861 1139
add09583
UD
1140 * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
1141 glob_in_dir [PR libc/3385].
1142 * posix/globtest.sh: Add test case.
1143
bc3bb89c
UD
1144 * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
1145 //TRANSLIT twice.
1146
a5d07eb2
UD
11472002-04-27 Ulrich Drepper <drepper@redhat.com>
1148
1149 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
1150 _internal symbol handling.
1151 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
1152
5f267ab0
UD
11532002-04-26 Ulrich Drepper <drepper@redhat.com>
1154
1155 * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
1156 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
1157
434d3784
UD
11582002-04-26 Isamu Hasegawa <isamu@yamato.ibm.com>
1159
1160 * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
1161 not _LIBC and RE_ENABLE_I18N.
1162 (build_range_exp): Implement for not _LIBC.
1163 (build_collating_symbol): Likewise.
1164 (parse_bracket_exp): Unify redundant error handlings.
1165 Don't erase mbcset for non matching list in multibyte envs.
1166 (build_word_op): Add '_' to matching list for \w operator.
1167 * posix/regex_internal.c (re_string_construct): Invoke
1168 build_upper_buffer in case of not RE_ENABLE_I18N.
1169 (re_string_reconstruct): Don't touch cur_state in case of not
1170 RE_ENABLE_I18N.
1171 * posix/regex_internal.h (attribute_hidden): New macro in case of
1172 not _LIBC.
1173 (re_charset_t): Define range_starts/ends in case of not _LIBC.
1174 * posix/regexec.c (sift_states_iter_mb): Hide in case of not
1175 RE_ENABLE_I18N.
1176 (transit_state_mb): Likewise.
1177 (check_node_accept_bytes): Implement the code evaluating range
1178 expression in case of not _LIBC.
1179 (find_collation_sequence_value): Hide in case of not _LIBC.
1180
11812002-04-26 Jakub Jelinek <jakub@redhat.com>
1182
1183 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
1184 i386/semctl.c.
1185 (__old_semctl, __new_semctl): Only use va_arg if the argument will
1186 be used.
1187
dde9407b
UD
11882002-04-26 Ulrich Drepper <drepper@redhat.com>
1189
58fe8d10
UD
1190 * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
1191
dde9407b
UD
1192 * sysdeps/ia64/strncpy.S: Fix recovery code.
1193 Patch by David Mosberger <davidm@hpl.hp.com>.
1194
39ebfd80
UD
11952002-04-24 Ulrich Drepper <drepper@redhat.com>
1196
1197 * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
1198 GLIBC_2.2.6.
1199
80c00d31
UD
12002002-04-14 Bruno Haible <bruno@clisp.org>
1201
1202 * posix/regex.c (re_max_failures): Add back symbol for binary
1203 compatibility.
1204
612546c6
UD
12052002-04-22 Isamu Hasegawa <isamu@yamato.ibm.com>
1206
1207 * posix/regcomp.c (re_compile_internal): Adapt it to new interface
1208 of buffer building functions.
1209 * posix/regex_internal.c (re_string_allocate): New function.
1210 (re_string_realloc_buffers): New function.
1211 (re_string_skip_chars): New function.
1212 (re_string_reconstruct): New function.
1213 (re_string_construct): Adapt it to new interface of buffer building
1214 functions.
1215 (re_string_construct_common): Likewise.
1216 (build_wcs_buffer): Likewise.
1217 (build_wcs_upper_buffer): Likewise.
1218 (build_upper_buffer): Likewise.
1219 (re_string_translate_buffer): Likewise.
1220 (re_string_context_at): Adapt it to variable length buffers.
1221 * posix/regex_internal.h (re_string_t): Add new fields to handle
1222 variable length buffers.
1223 (re_match_context_t): Likewise.
1224 * posix/regexec.c (re_search_internal): Adapt it to new interface
1225 of re_string_t and re_match_context_t.
1226 (acquire_init_state_context): Likewise.
1227 (check_matching): Likewise.
1228 (check_halt_state_context): Likewise.
1229 (proceed_next_node): Likewise.
1230 (set_regs): Likewise.
1231 (sift_states_backward): Likewise.
1232 (clean_state_log_if_need): Likewise.
1233 (sift_states_iter_mb): Likewise.
1234 (sift_states_iter_bkref): Likewise.
1235 (add_epsilon_backreference): Likewise.
1236 (transit_state): Likewise.
1237 (transit_state_sb): Likewise.
1238 (transit_state_mb): Likewise.
1239 (transit_state_bkref): Likewise.
1240 (transit_state_bkref_loop): Likewise.
1241 (check_node_accept): Likewise.
1242 (match_ctx_init): Likewise.
1243 (extend_buffers): New function.
1244
12452002-04-21 Bruno Haible <bruno@clisp.org>
1246
1247 * iconvdata/tst-table.sh: For the second check, use the truncated
1248 GB18030 charmap table, like for the first check.
1249
0e15c4b6
UD
12502002-04-24 Ulrich Drepper <drepper@redhat.com>
1251
1252 * elf/dl-load.c (open_verify): Correct __lseek parameters.
1253 Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
1254
12552002-04-23 H.J. Lu <hjl@gnu.org>
1256
1257 * include/math.h (isfinite): Fix a typo.
1258
12592002-04-24 Ulrich Drepper <drepper@redhat.com>
1260
1261 * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
1262 which is created by the test suite.
1263
12642002-04-20 Bruno Haible <bruno@clisp.org>
1265
1266 * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
1267 (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
1268
12692002-04-20 Bruno Haible <bruno@clisp.org>
1270
1271 * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
1272 to avoid gcc warning.
1273
12742002-04-20 Bruno Haible <bruno@clisp.org>
1275
1276 * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
1277 of data->__statep->__count.
1278
12792002-04-20 Bruno Haible <bruno@clisp.org>
1280
1281 * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
1282 tag characters.
1283 * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
1284
39bbac1e
RM
12852002-04-24 Roland McGrath <roland@frob.com>
1286
1287 * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
1288 use END macro instead of our own .end directive.
1289 Use `callsys' insn mnemonic instead of `call_pal'.
1290
1291 * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
1292
1293 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
1294 macro; we need this for Hurd.
1295
1296 Log entry was missing for 2002/03/24 commit of rev 1.8,
1297 goes with 2002-03-17 changes.
1298 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
1299 (sysdep_routines): Append ioperm here.
1300 (sysdep_headers): Append sys/io.h here.
1301
5edf59cf
RM
13022002-04-23 Roland McGrath <roland@frob.com>
1303
1304 * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
1305 * sysdeps/mach/hurd/sendto.c: Likewise.
1306 * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
1307 * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
1308 * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
1309
1f8720c3
RM
13102002-04-22 Roland McGrath <roland@frob.com>
1311
1312 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
1313 failure from i386_io_perm_* RPCs to ENOSYS.
1314
5c443778
AJ
13152002-04-22 Andreas Jaeger <aj@suse.de>
1316
0e15c4b6 1317 * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
eb655ccb 1318
0e15c4b6 1319 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
eb655ccb 1320
5c443778
AJ
1321 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
1322 register instead of destroying %rbx.
1323
47cbdebd
UD
13242002-04-21 Ulrich Drepper <drepper@redhat.com>
1325
1326 * string/string.h: Declare strerror_r also for XPG6.
1327
5dab676e
RM
13282002-04-19 Roland McGrath <roland@frob.com>
1329
1330 * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
1331
c238ecf7
UD
13322002-04-20 Ulrich Drepper <drepper@redhat.com>
1333
1334 * Makefile: Add handling of xtests and xcheck targets.
1335 * MakeTAGS: Likewise.
1336 * Makeconfig: Likewise.
1337 * Makerules: Likewise.
1338 * Rules: Likewise.
b1113ed2 1339 * manual/Makefile: Likewise.
c238ecf7
UD
1340 * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
1341 * sunrpc/thrsvc.c: New file. By Zack Weinberg.
1342
cbba1b88
UD
13432002-04-11 Zack Weinberg <zack@codesourcery.com>
1344
1345 * include/rpc/rpc.h (struct rpc_thread_variables): Remove
1346 authnone_private_s.
1347 * sunrpc/auth_none.c: Include bits/libc-lock.h.
1348 Delete #ifdef _RPC_THREAD_SAFE_ block.
1349 (authnone_private): Make a struct, not a pointer to struct.
1350 (authnone_private_guard): New once-control variable.
1351 (authnone_create_once): New function, split out of
1352 authnone_create. No need to allocate memory.
1353 (authnone_create): Just call authnone_create_once via
1354 __libc_once, then return &authnone_private->no_client.
1355 (authnone_marshal): Access private data via CLIENT argument,
1356 not authnone_private pointer.
1357 Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
1358 * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
1359 authnone_private_s.
1360
f89bd0e5
UD
13612002-04-12 H.J. Lu <hjl@gnu.org>
1362
1363 * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
1364
02779eaa
UD
13652002-04-18 Bruno Haible <bruno@clisp.org>
1366
1367 * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
1368 FROM_DIRECTION): Make the FROM direction stateless.
1369 * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
1370 FROM_DIRECTION): Likewise.
1371
93a568aa
UD
13722002-04-15 Bruno Haible <bruno@clisp.org>
1373
1374 * iconvdata/JISX0213.TXT: New file.
1375 * iconvdata/jisx0213.h: New file.
1376 * iconvdata/jisx0213.c: New file.
1377 * iconvdata/euc-jisx0213.c: New file.
1378 * iconvdata/shift_jisx0213.c: New file.
1379 * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
1380 * iconvdata/EUC-JISX0213.precomposed: New file.
1381 * iconvdata/SHIFT_JISX0213.precomposed: New file.
1382 * iconvdata/SHIFT_JISX0213.irreversible: New file.
1383 * iconvdata/tst-table-to.c (main): Make it work for encodings for
1384 which the "to" direction is stateful.
1385 * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
1386 * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
1387 SHIFT_JISX0213.
1388 (libJISX0213-routines): New variable.
1389 (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
1390 (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
1391 (LDFLAGS-libJISX0213.so): New variable.
1392 (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
1393 SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
1394 jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
1395
13962002-04-15 Bruno Haible <bruno@clisp.org>
1397
1398 * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
1399 uint32_t. Update to Unicode 3.2.
1400 (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
1401 (BODY for TO_LOOP): Handle the ASCII range specially.
1402 * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
1403 * iconvdata/testdata/BIG5HKSCS: Remove a character.
1404 * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
1405
14062002-04-15 Bruno Haible <bruno@clisp.org>
1407
1408 * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
1409 __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
1410
14112002-04-15 Bruno Haible <bruno@clisp.org>
1412
1413 * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
1414 (ucs4_to_cns11643): Update.
1415 * iconvdata/cns11643.c: Update to Unicode 3.2.
1416 (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
1417 __cns11643_from_ucs4p2_tab): Regenerated.
1418 (__cns11643_from_ucs4p2c_tab): New array.
02779eaa 1419 * iconvdata/cvs11643l1.c: Update comments.
93a568aa
UD
1420 * iconvdata/EUC-TW.irreversible: Remove two entries.
1421
14222002-04-15 Bruno Haible <bruno@clisp.org>
1423
1424 * locale/C-translit.h.in: Update to Unicode 3.2.
1425 Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
1426 <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
1427
e2806aaf
UD
14282002-04-15 Bruno Haible <bruno@clisp.org>
1429
1430 * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
1431 (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
1432
14332002-04-15 Bruno Haible <bruno@clisp.org>
1434
1435 * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
1436 invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
1437 always one byte, not 0 bytes in some cases and 2 bytes in others.
1438
1439 * iconvdata/tst-table-from.c (main): Correct the usage message.
1440
14412002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
1442
1443 * posix/regcomp.c (parse_expression): Fix incorrect error code.
1444 (parse_dup_op): Fix error handling like "a{}".
1445 (parse_bracket_exp): Add error handling.
1446 (fetch_number): Add error handling for "a{<very_large_number>}".
1447
14482002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
1449
1450 * posix/regcomp.c (parse_bracket_symbol): Add error handling
1451 in case that the symbol name is too long.
1452 (build_charclass): Handle [:lower:]/[:uppper:] correctly
1453 in case of REG_ICASE.
1454
c7823e14
AJ
14552002-04-19 Andreas Jaeger <aj@suse.de>
1456
1457 * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
1458 <hartvige@mips.com>.
1459
a8fa4947
UD
14602002-04-15 H.J. Lu <hjl@gnu.org>
1461
1462 * include/math.h (__finitel_internal): Declare only if
1463 __NO_LONG_DOUBLE_MATH is not defined.
1464 (__isinfl_internal): Likewise.
1465 (__isnanl_internal): Likewise.
1466
1467 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
1468 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
1469 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1470 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
02779eaa 1471 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
a8fa4947
UD
1472 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1473 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1474
1475 * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
1476 __fcntl_internal.
1477
1478 * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
1479 * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
1480
9813858f
UD
14812002-04-15 Bruno Haible <bruno@clisp.org>
1482
1483 * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
1484 (BODY for TO_LOOP): Likewise.
1485 * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
1486 * iconvdata/tst-table.sh: Add support for encodings which contain
1487 precomposed Unicode characters, known to the iconv converter in both
1488 directions but not listed in the charmap.
1489 * iconvdata/IBM856.irreversible: New file.
1490 * iconvdata/IBM922.irreversible: New file.
1491 * iconvdata/IBM1132.irreversible: New file.
1492 * iconvdata/IBM1133.irreversible: New file.
1493 * iconvdata/IBM1160.irreversible: New file.
1494 * iconvdata/IBM1161.irreversible: New file.
1495 * iconvdata/IBM1163.irreversible: New file.
1496 * iconvdata/IBM1164.irreversible: New file.
1497 * iconvdata/ARMSCII-8.irreversible: New file.
1498 * iconvdata/TCVN5712-1.precomposed: New file.
1499 * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
1500 IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
1501 ARMSCII-8, TCVN5712-1.
1502 * iconvdata/Makefile (distribute): Add IBM856.irreversible,
1503 IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
1504 IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
1505 IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
1506
15072002-04-17 Jakub Jelinek <jakub@redhat.com>
1508
1509 * time/tst-mktime.c: Include <stdlib.h>. Use %d, not %ld format
1510 for EVENING69. Include offsets in TZ environment variable.
1511
a7b65cdc
UD
15122002-04-18 Ulrich Drepper <drepper@redhat.com>
1513
b459976e
UD
1514 * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
1515 avoid compiler warnings.
1516
1517 * locale/programs/localedef.c (main): Always call
1518 construct_output_path.
1519
d648d845
UD
1520 * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
1521
a7b65cdc
UD
1522 * locale/programs/locfile.c (to_archive): New variable. To collect
1523 data which has to be added to the locale archive.
1524 (write_all_categories): Take new third parameter with locale name.
1525 Unless no_archive flag set add new locale data to the archive
1526 (write_locale_data): Unless no-archive flag set store generated data
1527 in to_archive data structure instead of generation output file.
1528 Add new parameter with locale category index.
1529 * locale/programs/locfile.h: Add new parameters in declaractions of
1530 write_all_categories and write_locale_data.
1531 * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
1532 --add-to-archive, and --delete-from-archive options. Pass extra
1533 parameter to write_all_categories.
1534 * locale/programs/localedef.h: Add prototypes for functions in
1535 locarchive.c.
1536 * locale/locarchive.h: New file.
1537 * locale/programs/locarchive.c: New file.
1538 * locale/Makefile (distribute): Add programs/locarchive.c and
1539 locarchive.h.
1540 (localedef-modules): Add md5 and locarchive.
1541 Add vpath to crypt subdir for md5.c.
1542
1543 * locale/programs/ld-address.c: Pass locale category ID as new second
1544 parameter to write_locale_data.
1545 * locale/programs/ld-collate.c: Likewise.
1546 * locale/programs/ld-ctype.c: Likewise.
1547 * locale/programs/ld-identification.c: Likewise.
1548 * locale/programs/ld-measurement.c: Likewise.
1549 * locale/programs/ld-messages.c: Likewise.
1550 * locale/programs/ld-monetary.c: Likewise.
1551 * locale/programs/ld-name.c: Likewise.
1552 * locale/programs/ld-numeric.c: Likewise.
1553 * locale/programs/ld-paper.c: Likewise.
1554 * locale/programs/ld-telephone.c: Likewise.
1555 * locale/programs/ld-time.c: Likewise.
1556
1557 * locale/simple-hash.c: Move compute_hashval function from here...
1558 * locale/hashval.h: ...to here. New file.
1559 * locale/simple-hash.h: Add prototype for compute_hashval.
1560
1561 * include/libintl.h: Minor cleanups.
1562
c7769404
UD
15632002-04-16 Ulrich Drepper <drepper@redhat.com>
1564
1565 * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
1566
449a85c1
UD
15672002-04-15 Ulrich Drepper <drepper@redhat.com>
1568
1569 * include/sys/stat.h: Fix typo. Patch by HJ Lu.
1570
659f290a
UD
15712002-04-14 Bruno Haible <bruno@clisp.org>
1572
1573 * locale/programs/charmap.c (charmap_read): Don't access result if
1574 result == NULL.
1575
a41d8a74
UD
15762002-02-17 Andreas Schwab <schwab@suse.de>
1577
a7b65cdc
UD
1578 * elf/reldep7.c: New file.
1579 * elf/reldep7mod1.c: New file.
1580 * elf/reldep7mod2.c: New file.
1581 * elf/Makefile: Add rules to build and run reldep7.
a41d8a74 1582
78575a84
UD
15832002-04-14 Jakub Jelinek <jakub@redhat.com>
1584
1585 * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
1586 the end of the function. Pass original flags to recursive call if
1587 add_dependency failed.
1588 (_dl_lookup_versioned_symbol): Likewise.
1589
15902002-04-13 Jakub Jelinek <jakub@redhat.com>
1591
1592 * time/mktime.c (__mktime_internal): If year is 69, don't bail out
1593 early, but check whether it overflowed afterwards.
1594 * time/tst-mktime.c (main): Add new tests.
1595
d060e318
UD
15962002-04-14 Ulrich Drepper <drepper@redhat.com>
1597
78575a84
UD
1598 * debug/xtrace.sh: Fix program name in help message.
1599 Patch by Roger Luethi <rl@hellgate.ch>.
1600
fab656f5
UD
1601 * include/sys/stat.h: Add prototypes for __lxstat_internal and
1602 __lxstat64_internal. Add macros __lxstat and __lxstat64 if not
1603 NOT_IN_libc.
1604 * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
1605 * sysdeps/mach/hurd/lxstat.c: Likewise.
1606 * sysdeps/unix/common/lxstat.c: Likewise.
1607 * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
1608 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
1609 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
1610 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
1611 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
1612 * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
1613 * sysdeps/mach/hurd/lxstat64.c: Likewise.
1614 * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
c7769404 1615 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
fab656f5
UD
1616
1617 * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
1618 prototypes. Add __mbrlen and __mbrtowc macros.
1619 * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
1620 * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
1621
1622 * include/unistd.h: Add prototype for __write_internal and add
1623 __libc_write macro is SHARED.
1624 * sysdeps/generic/write.c: Use INTDEF for __write.
1625 * sysdeps/mach/hurd/write.c: Likewise.
1626 * sysdeps/unix/sysv/aix/write.c: Likewise.
1627 * sysdeps/unix/syscalls.list: Add __libc_write alias.
1628
1629 * assert/assert.c: Replace STR_N_SIZE with something usable in
1630 macro arguments.
1631 * assert/assert-perr.c: Likewise.
1632
08f60074
UD
1633 * include/sys/socket.h: Declare __libc_sa_len_internal and define
1634 SA_LEN macro to use it if not NOT_IN_libc.
1635 * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
1636
1637 * include/fcntl.h: Declare __open_internal and define __open and
1638 __libc_open macros if not NOT_IN_libc.
1639 * sysdeps/generic/open.c: Use INTDEF for __open.
1640 * sysdeps/mach/hurd/open.c: Likewise.
1641 * sysdeps/unix/sysv/aix/open.c: Likewise.
1642 * sysdeps/unix/syscalls.list: Add __open_internal alias.
1643
1644 * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
1645 has correct number.
1646
1647 * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
1648 * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
1649 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
1650 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
1651
1652 * include/wctype.h: Declare __iswalpha_l_internal,
1653 __iswdigit_l_internal, __iswspace_l_internal,
1654 __iswxdigit_l_internal, and __iswctype_internal. Define
1655 __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
1656 __iswxdigit_l macros if not NOT_IN_libc.
1657 * wctype/iswctype.c: Use INTDEF for __iswctype.
1658 * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
1659
f83af095
UD
1660 * include/math.h: Declare __isinf_internal, __isinfl_internal,
1661 __isnan_internal, and __isnanl_internal.
1662 * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
1663 __isnan, and __isnanl.
1664 * stdio-common/printf_size.c: Likewise.
1665 * sysdeps/generic/printf_fphex.c: Likewise.
1666 * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
1667 * sysdeps/i386/fpu/s_isnanl.c: Likewise.
1668 * sysdeps/ia64/fpu/s_isinf.S: Likewise.
1669 * sysdeps/ia64/fpu/s_isnan.S: Likewise.
1670 * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
1671 * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
1672 * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
1673 * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
1674 * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
1675 * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
1676 * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
1677 * sysdeps/m68k/s_isinfl.c: Likewise.
1678 * sysdeps/m68k/fpu/s_isinf.c: Likewise.
1679 * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
1680
29886719
UD
1681 * include/sys/time.h: Declare __gettimeofday_internal and define
1682 __gettimeofday macro if not NOT_IN_libc.
1683 * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
1684 * sysdeps/mach/gettimeofday.c: Likewise.
1685 * sysdeps/posix/gettimeofday.c: Likewise.
1686 * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
1687 * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
1688 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
1689 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
1690
d060e318
UD
1691 * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
1692 and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
1693 Remove __lstat and __fstat inline functions.
1694 * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
1695 * sysdeps/mach/hurd/fxstat.c: Likewise.
1696 * sysdeps/unix/fxstat.c: Likewise.
1697 * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
1698 * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
1699 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
1700 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
1701 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
1702 * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
1703 * sysdeps/mach/hurd/fxstat64.c: Likewise.
1704 * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
1705 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
1706
1707 * include/unistd.h: Declare __getpid_internal and define
1708 __getpid macro if not NOT_IN_libc.
1709 * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
1710 * sysdeps/generic/getpid.c: Likewise.
1711 * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
f9663bd4 1712 * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
d060e318
UD
1713
1714 * include/unistd.h: Declare __getpgid_internal and define
1715 __getpgid macro if not NOT_IN_libc.
1716 * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
1717 * sysdeps/mach/hurd/getpgid.c: Likewise.
1718 * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
1719 * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
1720 * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
1721 * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
1722
1723 * include/unistd.h: Declare __getpagesize_internal and define
1724 __getpagesize macro if not NOT_IN_libc.
1725 * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
1726 __getpagesize.
1727 * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
1728 * sysdeps/mach/getpagesize.c: Likewise.
1729 * sysdeps/posix/getpagesize.c: Likewise.
1730 * sysdeps/unix/getpagesize.c: Likewise.
1731 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
1732 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
1733 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
1734 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
1735
f69e66d6
AJ
17362002-04-13 Andreas Jaeger <aj@suse.de>
1737
1738 * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
1739 as clobber to reduce register pressure.
1740 (__strpbrk_cg): Likewise.
1741 (__mempcpy_by4): Likewise.
1742 (__strstr_cg): Likewise.
1743 Add prototype for __memrchr.
1744
53af71e0
AS
17452002-04-13 Andreas Schwab <schwab@suse.de>
1746
1747 * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
1748 * sysdeps/m68k/fpu/s_finitef.c: Likewise.
1749 * sysdeps/m68k/fpu/s_finitel.c: Likewise.
1750
f9f2a150
UD
17512002-04-13 Ulrich Drepper <drepper@redhat.com>
1752
1753 * elf/do-lookup.h [!VERSIONED]: Add new parameter flags. Use it to
1754 check whether the caller prefers getting the most recent version of
1755 a symbol of the earliest version.
1756 * elf/dl-lookup.c: Adjust all callers of do_lookup. Change
1757 _dl_do_lookup to also take the new parameter and pass it on.
1758 Change 'explicit' parameter of _dl_lookup_symbol and
1759 _dl_lookup_versioned_symbol to flags. Adjust tests.
1760 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
1761 * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
1762 _dl_lookup_versioned_symbol.
1763 * elf/dl-reloc.c: Likewise.
1764 * elf/dl-runtime.c: Likewise.
1765 * elf/dl-sym.c: Likewise.
1766 * sysdeps/mips/dl-machine.h: Likewise.
1767
61bb2ef0
UD
17682002-04-11 Jakub Jelinek <jakub@redhat.com>
1769
1770 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
1771 in a token.
1772 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
1773
6c289839
AJ
17742002-04-10 Andreas Jaeger <aj@suse.de>
1775
61bb2ef0 1776 * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
6b4e1929 1777
6c289839
AJ
1778 * include/argz.h: Remove extra char from last patch.
1779
6311efee
UD
17802002-04-09 Ulrich Drepper <drepper@redhat.com>
1781
6b87a564
UD
1782 * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
1783 * sysdeps/unix/sysv/aix/chown.c: Likewise.
1784 * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
1785 * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
1786 * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
1787 * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
1788 __chown_internal.
61bb2ef0 1789 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
6b87a564
UD
1790
1791 * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
1792 * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
1793 * intl/ngettext.c: Likewise.
1794
1795 * include/sys/socket.h: Declare __connect_internal and define
1796 __connect macro if not NOT_IN_libc.
1797 * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
1798 * sysdeps/unix/sysv/aix/connect.c: Likewise.
1799 * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
1800
1801 * include/unistd.h: Declare __close_internal and define __close macro
1802 if not NOT_IN_libc.
1803 * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
1804 WJUMP3): Add extra parenthesis to avoid expanding element names with
1805 macors like __close.
1806 * sysdeps/unix/syscalls.list: Add __close_internal alias.
1807
1808 * include/unistd.h: Declare __dup2_internal and define __dup2 macro
1809 if not NOT_IN_libc.
1810 * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
1811 * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
1812 * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
1813
1814 * include/unistd.h: Declare __fork_internal and define __fork macro
1815 if not NOT_IN_libc.
1816 * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
1817 * sysdeps/unix/sysv/aix/fork.c: Likewise.
1818 * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
1819
1820 * include/stdio_ext.h: Declare __fsetlocking_internal and define
1821 __fsetlocking macro to use it if not NOT_IN_libc.
1822 * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
1823
1824 * libio/__fbufsize.c: Correct copyright.
1825 * libio/__flbf.c: Likewise.
1826 * libio/__fpending.c: Likewise.
1827 * libio/__fpurge.c: Likewise.
1828 * libio/__freadable.c: Likewise.
1829 * libio/__freading.c: Likewise.
1830 * libio/__fsetlocking.c: Likewise.
1831 * libio/__fwritable.c: Likewise.
1832 * libio/__fwriting.c: Likewise.
1833
1834 * include/stdio.h: Declare __asprintf_internal and define __asprintf
1835 macro to use it if not NOT_IN_libc.
1836 * stdio-common/asprintf.c: Use INTDEF for __asprintf.
1837
1838 * include/mntent.h: Declare __setmntent_internal,
1839 __getmntent_r_internal, __endmntent_internal. Define __setmntent,
1840 __getmntent_r, and __endmntent macros to use these functions if not
1841 NOT_IN_libc.
1842 * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
1843 __endmntent.
1844
1845 * include/math.h: Declare __finite_internal, __finitef_internal, and
1846 __finitel_internal. Redefine isfinite macro if in libc or libm using
1847 these functions.
1848 * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
1849 * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
1850 * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
1851 * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
1852 * sysdeps/i386/fpu/s_finitef.S: Likewise.
1853 * sysdeps/i386/fpu/s_finitel.S: Likewise.
1854 * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
1855 * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
1856 * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
1857 * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
1858
1859 * include/fcntl.h: Declare __fcntl_internal. Define __fcntl macro
1860 to use this function if not NOT_IN_libc.
1861 * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
1862 * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
1863 * sysdeps/mach/hurd/fcntl.c: Likewise.
1864 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
1865 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
1866
1867 * include/argz.h: Declare __argz_count_internal and
1868 __argz_stringify_internal.
1869 * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
1870 __argz_stringify.
1871 * string/argz-count.c: Use INTDEF for __argz_count.
1872 * string/argz-stringify.c: Use INTDEF for __argz_stringify.
1873
1874 * include/stdlib.h: Declare __cxa_atexit_internal and define
1875 __cxa_atexit macro if not NOT_IN_libc.
1876 * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
1877 * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
1878
1879 * assert/assert.c: Use INTDEF for __assert_fail.
1880 * assert/__assert.c: Use INTUSE for call to __assert_fail.
1881 * include/assert.h: Declare __assert_fail_internal.
1882
6311efee
UD
1883 * extra-lib.mk: Mark assignment to lib with override.
1884
776cc5d3
UD
18852002-04-08 Ulrich Drepper <drepper@redhat.com>
1886
1887 * Makerules: Use cppflags-iterator.mk to add defines for all test
1888 source files.
1889
3632a260
UD
18902002-04-08 kaz Kojima <kkojima@rr.iij4u.or.jp>
1891
1892 * elf/elf.h: Define R_SH_TLS_xxx macros.
1893 * elf/rtld.c: Remove an extra parenthesis.
1894 * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
1895 TLS_GD macros.
1896 * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
1897 * sysdeps/sh/dl-lookupcfg.h: New file.
1898 * sysdeps/sh/dl-tls.h: New file.
1899 * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
1900 ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
1901 (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
1902 R_SH_TLS_TPOFF32 relocations.
1903
403e0597
UD
19042002-04-08 Ulrich Drepper <drepper@redhat.com>
1905
1906 * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
1907 of NOT_IN_LIBC.
1908 * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
1909 * include/stdlib.h: Likewise.
1910
19112002-04-08 Jakub Jelinek <jakub@redhat.com>
1912
1913 * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
1914 instead of _RTLD_LOCAL.
1915 * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
1916 * include/unistd.h: Likewise.
1917 * sysdeps/generic/ldsodefs.h: Likewise.
1918
1919 * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
1920 if in libc or ld.so.
1921
fdedb42e
AJ
19222002-04-08 Andreas Jaeger <aj@suse.de>
1923
1924 * elf/cache.c (print_entry): Support x86-64.
1925
71319b9c
UD
19262002-04-08 Ulrich Drepper <drepper@redhat.com>
1927
403e0597
UD
1928 * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
1929 with one accessing the locale data structures directly.
1930 * stdio-common/printf-prs.c: Include localeinfo.h for new
1931 MB_CUR_MAX definition.
1932
71319b9c
UD
1933 * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
1934 is the name of the source file without extension.
1935 * Makefile (distribute): Add cppflags-iterator.mk.
1936 * cppflags-iterator.mk: New file.
1937 * extra-lib.mk: For the sources of the library run
1938 cppflags-iterator.mk.
1939
1940 * include/libintl.h: Declare __dcgettext_internal and
1941 _libc_intl_domainname_internal. Define __dcgettext using these
1942 two symbols if used in libc itself.
1943 * argp/argp-help.c: Define dgettext using __dcgettext_internal and
1944 _libc_intl_domainname_internal.
1945 * argp/argp-parse.c: Likewise.
1946 * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
1947 * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
1948 * intl/gettext.c: Likewise.
1949 * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
1950 alias.
1951 * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
1952 __dcgettext.
1953 * posix/regex_internal.c (gettext): Likewise.
1954
36993507
AJ
19552002-04-08 Andreas Jaeger <aj@suse.de>
1956
82b610ba
AJ
1957 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
1958
36993507
AJ
1959 * sysdeps/x86_64/fpu/s_llrint.S: New.
1960 * sysdeps/x86_64/fpu/s_llrintf.S: New.
1961 * sysdeps/x86_64/fpu/s_llrintl.S: New.
1962 * sysdeps/x86_64/fpu/s_lrint.S: New.
1963 * sysdeps/x86_64/fpu/s_lrintf.S: New
1964 * sysdeps/x86_64/fpu/s_lrintl.S: New.
1965
b82006e0
RM
19662002-04-08 Roland McGrath <roland@frob.com>
1967
1968 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
1969 widening __hurd_fail value.
1970
f899db60
RM
19712002-04-07 Roland McGrath <roland@frob.com>
1972
1973 * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
1974 <mach/machine/alpha_instruction.h>.
1975 (_hurd_setup_sighandler): Take proper arguments for current decls.
1976 Update code to use _hurdsig_catch_fault.
1977 Use `callsys' instruction instead of `call_pal'.
1978 * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
1979
1980 * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
1981 (ALIGN, at, AT, fp): New macros.
1982
7ce93726
RM
19832002-04-06 Roland McGrath <roland@frob.com>
1984
1985 * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
1986
1987 * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
1988 (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
1989
1990 * sysdeps/mach/hurd/bind.c: Use prototype definition.
1991 * sysdeps/mach/hurd/connect.c: Likewise.
1992 * sysdeps/mach/hurd/getsockopt.c: Likewise.
1993 * sysdeps/mach/hurd/setsockopt.c: Likewise.
1994
1995 * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
1996 __msg_sig_post RPC.
1997
1998 * hurd/catch-exc.c: Use integer_t instead of int.
1999 * hurd/hurdfault.c: Likewise.
2000
2001 * sysdeps/mach/hurd/alpha/exc2signal.c
2002 (_hurd_exception2signal): Rewritten.
2003 * sysdeps/mach/hurd/alpha/longjmp-ts.c
2004 (_hurd_longjmp_thread_state): Rewritten.
2005
af5fac2f
UD
20062002-04-07 Ulrich Drepper <drepper@redhat.com>
2007
b44e3016
UD
2008 * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
2009 DB_LOOKUP_FCT prototype.
2010 * nss/getXXent_r.c: Likewise.
2011 * inet/getaliasent_r.c: Define NSS_attribute_hidden.
2012 * inet/getaliasname_r.c: Likewise.
2013 * inet/getnetbyad_r.c: Likewise.
2014 * inet/getnetbynm_r.c: Likewise.
2015 * inet/getnetent_r.c: Likewise.
2016 * inet/getproto_r.c: Likewise.
2017 * inet/getprtent_r.c: Likewise.
2018 * inet/getprtname_r.c: Likewise.
2019 * inet/getrpcbyname_r.c: Likewise.
2020 * inet/getrpcbynumber_r.c: Likewise.
2021 * inet/getrpcent_r.c: Likewise.
2022 * inet/getservent_r.c: Likewise.
2023 * inet/getsrvbynm_r.c: Likewise.
2024 * inet/getsrvbypt_r.c: Likewise.
2025 * shadow/getspent_r.c: Likewise.
2026 * shadow/getspnam_r.c: Likewise.
2027
2028 * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
2029
2030 * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
2031 Use i686-friendly PIC code.
2032 * sysdeps/i386/elf/setjmp.S: Likewise.
2033
2034 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
2035
af5fac2f
UD
2036 * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
2037 list.
2038 * elf/Versions: Remove it here.
2039
8b76d772
UD
20402002-04-06 Ulrich Drepper <drepper@redhat.com>
2041
2042 * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
2043 direction. Reported by H . J . Lu <hjl@lucon.org>.
2044
3fc2f6c8
UD
20452002-04-05 Ulrich Drepper <drepper@redhat.com>
2046
b344de2a
UD
2047 * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
2048 test just before the test runs.
2049 * intl/tst-translit.sh: Likewise.
2050 * intl/tst-codeset.sh: Likewise.
2051
3fc2f6c8
UD
2052 * timezone/zic.c: Update from tzcode2002c.
2053 * timezone/asia: Update from tzdata2002c.
2054 * timezone/backward: Likewise.
2055 * timezone/europe: Likewise.
2056 * timezone/northamerica: Likewise.
2057 * timezone/northamerica: Likewise.
2058 * timezone/northamerica: Likewise.
2059 * timezone/southamerica: Likewise.
2060 * timezone/zone.tab: Likewise.
2061
6736e93b
UD
20622002-03-23 Jakub Jelinek <jakub@redhat.com>
2063
2064 * sysdeps/generic/brk.c (__curbrk): Declare.
2065 * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
2066 * sysdeps/generic/dl-sbrk.c: Likewise.
2067 * sysdeps/unix/arm/dl-brk.S: New file.
2068 * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
2069 * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
2070 * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
2071 * sysdeps/unix/bsd/vax/dl-brk.S: New file.
2072 * sysdeps/unix/i386/dl-brk.S: New file.
2073 * sysdeps/unix/mips/dl-brk.S: New file.
2074 * sysdeps/unix/sparc/dl-brk.S: New file.
2075 * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
2076 * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
2077 * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
2078 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
6736e93b
UD
2079
20802002-04-03 Andreas Schwab <schwab@suse.de>
2081
2082 * Makefile (headers): Add gnu/lib-names.h here instead of
2083 install-others.
2084 ($(inst_includedir)/gnu/lib-names.h): Remove explicit
2085 installation rule.
2086 (install-headers): Add dependency on install-headers-nosubdir.
2087 * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
2088 instead of install-others.
2089 ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
2090 installation rule.
2091
20922002-04-05 Ulrich Drepper <drepper@redhat.com>
2093
2094 * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
2095 Reported by Sam Roberts <sroberts@uniserve.com>.
2096
20972002-04-03 Jakub Jelinek <jakub@redhat.com>
2098
2099 * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
2100 l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
2101 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
2102 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
2103
21042002-04-03 David Mosberger <davidm@hpl.hp.com>
2105
2106 * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
2107 (RTLD_START): Ditto.
2108 (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
2109 dependency violation.
2110
55544141
UD
21112002-04-05 Jakub Jelinek <jakub@redhat.com>
2112
2113 * time/mktime.c (__mktime_internal): Move check for year < 70 below
2114 all variable declarations.
2115
21162002-04-04 Andreas Schwab <schwab@suse.de>
2117
2118 * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
2119
2b904739
AJ
21202002-04-04 Andreas Jaeger <aj@suse.de>
2121
2122 * sysdeps/x86_64/fpu/e_sqrt.c: New file.
2123 * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
2124
2125 * sysdeps/x86_64/fpu/s_fabs.c: New file.
2126 * sysdeps/x86_64/fpu/s_fabsf.c: New file.
2127 * sysdeps/x86_64/fpu/s_fabsl.c: New file.
2128
2129 * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
2130
2131 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
2132
2133 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
55544141 2134 * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
2b904739
AJ
2135
2136 * configure.in: Handle all mips entries the same.
2137
55544141 2138 * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
2b904739
AJ
2139 * sysdeps/mips/mips3/*: Likewise.
2140 * sysdeps/mips/p40/bits/endian.h: Likewise.
2141
d3d48616
UD
21422002-04-04 Ulrich Drepper <drepper@redhat.com>
2143
2144 * misc/dirname.c (dirname): Ignore trailing slashes at end of
2145 non-null result [PR libc/2600].
2146
2147 * misc/tst-dirname.c: Add more tests.
2148
4a10c7fe
UD
21492002-04-03 Ulrich Drepper <drepper@redhat.com>
2150
2151 * locale/programs/charmap.c (charmap_read): If the charmap doesn't
2152 define a code_set_name provide one based on the filename.
2153
2154 * malloc/hooks.c: Define weak_variable correctly for _LIBC.
2155
21562001-12-28 Andreas Jaeger <aj@suse.de>
2157
2158 * time/mktime.c (__mktime_internal): Check for year < 70
2159 [PR libc/2738].
2160
efe86019
AJ
21612002-04-03 Andreas Jaeger <aj@suse.de>
2162
2163 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
2164 shmat.
2165 Reported by Andi Kleen <ak@suse.de>.
2166
c64bd6c2
UD
21672002-04-03 Ulrich Drepper <drepper@redhat.com>
2168
4a10c7fe
UD
2169 * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
2170 * sysdeps/generic/w_lgammaf.c: Likewise.
2171 * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
2172
2173 * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
2174 Adjust for new output format of the backtrace functions.
2175
2176 * misc/syslog.c (vsyslog): Only use cleanup handler if
2177 _LIBC_REENTRANT is defined [PR libc/2924].
2178
737fa90d
UD
2179 * libio/Makefile (tests): Add bug-ungetwc2.
2180 * libio/bug-ungetwc2.c: New file.
2181
a4d62195
UD
2182 * manual/install.texi: Typographical and grammatical cleanup.
2183 Patch by Dennis Grace <dgrace@us.ibm.com>.
2184
be916937
UD
2185 * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
2186 parameter if mtflag. Patch by <jeongyun@innovay.com>.
2187
c64bd6c2
UD
2188 * sunrpc/rpc_svcout.c (printif): Remove third parameter. It was
2189 always "&". Adjust callers.
2190 Add "_" prefix to several generated definitions.
2191 Patch by paul@serice.net [PR libc/3158].
2192
b028b8ad
UD
21932002-04-02 Ulrich Drepper <drepper@redhat.com>
2194
2195 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
2196 size of _dl_arm_cap_flags.
2197 Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
2198
2199 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
2200 Define as 8.
2201
22022002-03-22 H.J. Lu <hjl@gnu.org>
2203
2204 * scripts/firstversions.awk: Check the first version.
2205
44c4ccbc
UD
22062002-04-02 Ulrich Drepper <drepper@redhat.com>
2207
8693ad52
UD
2208 * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
2209 dependencies must be stable to work correctly.
2210 Reported by martin.lubich@datacon.at.
2211
3384a8d6
UD
2212 * libio/bug-ungetwc1.c: New file.
2213 * libio/Makefile (tests): Add bug-ungetwc1.
2214
2215 * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
2216 if stream was last used for writing.
2217
d2225273 2218 * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
7a73a7e6 2219 number [PR libc/3111].
d2225273 2220
44c4ccbc
UD
2221 * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
2222 to ...
2223 * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
2224
f7ddf3d3
UD
22252002-04-02 Jakub Jelinek <jakub@redhat.com>
2226
2227 * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
2228 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
2229 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
2230 * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
2231 * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
2232
22332002-03-30 Jakub Jelinek <jakub@redhat.com>
2234
2235 * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
2236 dynamic tags.
2237
22382002-03-29 Jakub Jelinek <jakub@redhat.com>
2239
2240 * sysdeps/i386/fpu/s_fabs.S: New file.
2241 * sysdeps/i386/fpu/s_fabsf.S: New file.
2242 * sysdeps/i386/fpu/s_fabsl.S: New file.
2243 * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
2244 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
2245 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
2246
22472002-04-02 Ulrich Drepper <drepper@redhat.com>
2248
2249 * rt/tst-shm.c (do_test): Add one more test for size of shared
2250 memory object.
2251
22522002-03-29 Wolfram Gloger <wg@malloc.de>
2253
2254 * malloc/malloc.c: Add short description and prototypes for
2255 malloc_get_state, malloc_set_state and posix_memalign, for
2256 consistency and to avoid warnings with -Wstrict-prototypes.
2257 Reported by Andreas Jaeger <aj@suse.de>.
2258
22592002-04-02 Ulrich Drepper <drepper@redhat.com>
2260
2261 * po/gl.po: Update from translation team.
2262
db6b51ad
RM
22632002-03-31 Roland McGrath <roland@frob.com>
2264
2265 * hurd/hurdselect.c (_hurd_select): Fix
2266 MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
2267 Use a union rather than casts to compare mach_msg_type_t as int.
2268
22692002-03-25 Roland McGrath <roland@frob.com>
2270
2271 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
2272 check off the end of NAME when it's shorter than 2 chars.
2273 Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
2274
22752002-03-17 Roland McGrath <roland@frob.com>
2276
2277 * sysdeps/mach/hurd/i386/sys/io.h: New file.
2278 * sysdeps/mach/hurd/i386/ioperm.c: New file.
2279 * sysdeps/mach/hurd/i386/Dist: Add them.
2280 * sysdeps/mach/hurd/i386/Versions
2281 (libc: GLIBC_2.2.6): New set, add ioperm.
2282 * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
2283 (mach_interface_list): Check for mach_i386.defs.
2284 * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
2285 * sysdeps/mach/configure: Regenerated.
2286
435824be
UD
22872002-03-22 Ulrich Drepper <drepper@redhat.com>
2288
2289 * po/fr.po: Update from translation team.
2290
22912002-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
2292
2293 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
2294 getpriority from syscalls list.
2295
3cf01adb
AJ
22962002-03-28 Andreas Jaeger <aj@suse.de>
2297
be916937
UD
2298 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
2299 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
2300 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
2301 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
3cf01adb 2302
46a1b875
AJ
23032002-03-27 Andreas Jaeger <aj@suse.de>
2304
2305 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
2306 sigcontext): Follow further kernel change.
2307
2308 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
2309 kernel change.
2310
2311 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
2312 Change for struct sigcontext change.
2313
2314 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
2315 Follow changes in struct sigcontext.
2316
2317 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
2318 sysycall, use wrapper instead.
2319
30ee7c7b
AJ
23202002-03-26 Andreas Jaeger <aj@suse.de>
2321
49f8b030
AJ
2322 * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
2323 read and write accesses as detailed as possible.
2324 (__memcpy_by2): Likewise.
2325 (__memcpy_g): Likewise.
2326 (memmove): Likewise.
2327 (memcmp): Likewise.
2328 (__memset_ccn_by4): Likewise.
2329 (__memset_ccn_by2): Likewise.
2330 (__memset_gcn_by4): Likewise.
2331 (__memset_gcn_by2): Likewise.
2332 (memchr): Likewise.
2333 (__memrchr): Likewise.
2334 (rawmemchr): Likewise.
2335 (__strlen_g): Likewise.
2336 (__strcpy_g): Likewise.
2337 (__mempcpy_by4): Likewise.
2338 (__mempcpy_by2): Likewise.
2339 (__mempcpy_byn): Likewise.
2340 (__stpcpy_g): Likewise.
2341 (__strncpy_by4): Likewise.
2342 (__strncpy_by2): Likewise.
2343 (__strncpy_byn): Likewise.
2344 (__strncpy_gg): Likewise.
2345 (__strcat_c): Likewise.
2346 (__strcat_g): Likewise.
2347 (__strncat_g): Likewise.
2348 (__strcmp_gg): Likewise.
2349 (__strncmp_g): Likewise.
2350 (__strchr_c): Likewise.
2351 (__strchr_g): Likewise.
2352 (__strchrnul_c): Likewise.
2353 (__strchrnul_g): Likewise.
2354 (__strrchr_c): Likewise.
2355 (__strrchr_g): Likewise.
2356 (__strrchr_c): Likewise.
2357 (__strrchr_g): Likewise.
2358 (__strcspn_c1): Likewise.
2359 (__strcspn_cg): Likewise.
2360 (__strcspn_g): Likewise.
2361 (__strcspn_g): Likewise.
2362 (__strspn_c1): Likewise.
2363 (__strspn_cg): Likewise.
2364 (__strspn_g): Likewise.
2365 (__strspn_g): Likewise.
2366 (__strpbrk_cg): Likewise.
2367 (__strpbrk_g): Likewise.
2368 (__strstr_cg): Likewise.
2369 (__strstr_g): Likewise.
2370
79468ba8
AJ
2371 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo. Reported by
2372 Michal Ludvig <mludvig@suse.cz>.
2373
30ee7c7b
AJ
2374 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
2375 compatibilty, adjust for kernel changes.
2376
2377 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
2378 sigcontext): Adjust for kernel changes.
2379
367b07fb
AJ
23802002-03-25 Andreas Jaeger <aj@suse.de>
2381
2382 * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
2383 little endian.
2384 Reported by Artur Zaprzala <zybi@talex.com.pl>.
2385
8430ab40
AJ
23862002-03-24 Andreas Jaeger <aj@suse.de>
2387
2388 * manual/memory.texi (Aligned Memory Blocks): Fix typo.
2389
2390 * stdio-common/tst-fdopen.c (main): Remove unused variable.
2391
2392 * iconv/tst-iconv3.c (main): Use correct printf strings.
2393
4e6117f3
RM
23942002-03-18 Roland McGrath <roland@frob.com>
2395
2396 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
2397 (CMGROUP_MAX): New macro.
2398
4caf4f3c
RM
23992002-03-23 Roland McGrath <roland@frob.com>
2400
2401 * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
2402 * sysdeps/posix/shm_unlink.c: Likewise.
2403
b2b1c593
RM
24042002-03-22 Roland McGrath <roland@frob.com>
2405
2406 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
2407 * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
2408 under --enable-libio.
2409 * sysdeps/mach/hurd/configure: Regenerated.
2410
67a6c02f
RM
24112002-03-23 Roland McGrath <roland@frob.com>
2412
2413 * sysdeps/mach/hurd/i386/Makefile
2414 (sysdep_routines, shared-only-routines): Don't add framestate,
2415 reverting 2001-10-02 change.
2416 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
2417 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
2418 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
2419 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
2420 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
2421 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
2422 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
2423 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
2424 * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
2425 Do it here instead, only if [$(unwind-find-fde) = yes].
2426
7bae44c4
AJ
24272002-03-23 Andreas Jaeger <aj@suse.de>
2428
2429 * signal/signal.h: Fix typo. Patch by Steve Kemp
2430 <skx@tardis.ed.ac.uk>.
2431
904e1ba9
AJ
24322002-03-22 Andreas Jaeger <aj@suse.de>
2433
0f8a3e95
AJ
2434 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
2435 getresuid.
2436
904e1ba9 2437 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
0f8a3e95
AJ
2438 _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
2439 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
2440 user_fpregs_struct): Rename fwd.
904e1ba9
AJ
2441
2442 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
2443 Follow sigcontext changes.
2444
b2518ac2
AJ
24452002-03-22 Andreas Jaeger <aj@suse.de>
2446
2447 * sysdeps/mips/bits/nan.h: New file. Copy from generic one with
2448 changes for NaNs on MIPS.
2449 Patch by Hartvig Ekner <hartvige@mips.com>.
2450
c7a9b6e2
UD
24512002-03-21 Ulrich Drepper <drepper@redhat.com>
2452
2453 * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
2454 Use realloc if too large.
2455 (addgrbyid): Likewise.
2456 * nscd/hstcache.c (addhstbyname): Likewise.
2457 (addhstbyaddr): Likewise.
2458 (addhstbynamev6): Likewise.
2459 (addhstbyaddrv6): Likewise.
2460 * nscd/pwdcache.c (addpwbyname): Likewise.
2461 (addpwbyuid): Likewise.
2462
57d180fd
AJ
24632002-03-21 Andreas Jaeger <aj@suse.de>
2464
2465 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
2466 _fpstate): Add separate struct for x86-64.
2467
2468 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
2469 user_fpregs_struct): Change member names to follow kernel.
2470
973f52a0
UD
24712002-03-20 Ulrich Drepper <drepper@redhat.com>
2472
2473 * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
2474 Correctly close the UDP connection right away [PR libc/3120].
2475
cb50c218
AJ
24762002-03-20 Andreas Jaeger <aj@suse.de>
2477
2478 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
2479 user_fpregs_struct): Fix for changed kernel struct.
2480 (struct user_regs_struct): Likewise.
2481 (struct user): Likewise.
2482 Add 32-bit x86 compatibility.
2483
2484 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
2485
6340375b
AJ
24862002-03-19 Andreas Jaeger <aj@suse.de>
2487
2488 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
2489
8c5e5fa0
AJ
24902002-03-18 Andreas Jaeger <aj@suse.de>
2491
2492 * iconvdata/Makefile: Only run tests when shared libs are
2493 available.
2494
7f0244de
AJ
24952002-03-17 Andreas Jaeger <aj@suse.de>
2496
2497 * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
2498
2499 * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
2500
2501 * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
2502 bits.
2503
2504 * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New.
2505 (CAUSE_SHIFT): New.
2506 Patch by Hartvig Ekner <hartvige@mips.com>.
2507
d8bd181e
UD
2508 * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
2509 * sysdeps/generic/unwind-pe.h: Likewise.
7f0244de 2510
d8bd181e
UD
2511 * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
2512 type to _IO_setb.
7f0244de
AJ
2513
2514 * libio/stdio.c (AL2): Define variant when visibility attribute is
2515 not supported.
2516
2517 * include/libc-symbols.h (_INTVARDEF): Define variant when
2518 visibility attribute is not supported.
2519
eea4471d
UD
25202002-03-16 Ulrich Drepper <drepper@redhat.com>
2521
2522 * po/fr.po: Update from translation team.
2523
567fb074
UD
25242002-02-25 Bruno Haible <bruno@clisp.org>
2525
2526 * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
2527
2c617417
UD
25282002-03-15 Ulrich Drepper <drepper@redhat.com>
2529
2530 * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
2531 buffers if _IO_file_attach failed.
2532
2533 * libio/fileops.c (_IO_file_open): Close file descriptor if
2534 _IO_SEEKOFF call failed.
2535
5241882c
UD
25362002-03-15 H.J. Lu <hjl@gnu.org>
2537 Ulrich Drepper <drepper@redhat.com>
2538
2539 * configure.in: Check for availability of
2540 init_array/fini_array/preinit_array handling in binutils.
2541 * config.h.in (HAVE_INITFINI_ARRAY): New macro.
2542 * config.make.in (have-initfini-array): New variable.
2543
dff07c4b
UD
25442002-03-15 Ulrich Drepper <drepper@redhat.com>
2545
c06b947e
UD
2546 * stdio-common/tst-printf.c (main): Comment out one test which
2547 checked the compiler's ability to fold floating-point constants
2548 but not really printf.
2549 (rfg3): Make s const.
2550 * stdio-common/tst-printf.sh: Adjust for removed test.
2551
dff07c4b
UD
2552 * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
2553 internal function. Adjust for internal_function calling convention.
2554 * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
2555 as internal_function.
2556
2557 * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
2558 hidden.
2559
2560 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
2561 declaration and definition.
2562 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
2563 declaration.
2564 * nss/getXXent_r.c: Likewise.
2565 * nss/nsswitch.h (db_lookup_function): Add internal_function to
2566 definition.
2567
2568 * include/time.h: Declare __localtime_r as hidden.
2569
d8bd181e 2570 * include/aliases.h: Declare __getaliasent_r as hidden.
dff07c4b
UD
2571 * include/grp.h: Declare __getgrent_r as hidden.
2572 * include/netdb.h: Declare __gethostent_r, __getnetent_r,
2573 __getservent_r, and __getprotoent_r as hidden.
2574 * include/pwd.h: Declare __getpwent_r as hidden.
2575 * include/shadow.h: Declare __getspent_r as hidden.
2576 * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
2577
2578 * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
2579 and __gconv_transliterate as hidden.
2580 Add internal_function to __gconv_get_path declaration.
2c617417 2581 * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
dff07c4b
UD
2582 definition. Add attribute_hidden to __gconv_read_conf definition.
2583
5c82e15e
UD
25842002-03-14 Ulrich Drepper <drepper@redhat.com>
2585
9360906d
UD
2586 * elf/rtld.c: Declare _environ as hidden.
2587 * sysdeps/generic/dl-environ.c: Likewise.
2588 * sysdeps/generic/dl-sysdep.c: Likewise.
2589
2590 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
2591 _dl_mcount_internal as hidden.
2592
2593 * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
2594 * sysdeps/generic/dl-brk.c: New file.
2595 * sysdeps/generic/dl-sbrk.c: New file.
2596 * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
2597 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
2598
5c82e15e
UD
2599 * elf/dl-minimal.c (malloc): Declare _end as hidden.
2600 (__errno_location): New function. Declare errno as hidden.
2601 * elf/rtld.c (_dl_argc): Define as hidden.
2602 (_dl_skip_args): Define as hidden.
2603 (_begin, _end): Declare as hidden.
2604 * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
2605 * sysdeps/generic/entry.h (_start): Declare as hidden.
2606 * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
2607 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
2608 _dl_runtime_resolve and _dl_runtime_profile as hidden.
2609 (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
2610
f3787738
RM
26112002-03-14 Roland McGrath <roland@frob.com>
2612
2613 * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
2614
2615 * Makeconfig (%.v.i, %.v): New implicit rules.
2616 (preprocess-versions): Variable removed.
2617 ($(common-objpfx)shlib-versions.v.i): New target giving just the
2618 shlib-versions input files as dependencies.
2619 ($(common-objpfx)soversions.i): Depend on that instead of the input
2620 files. Use it as input instead of using a pipeline.
2621 (postclean-generated): Append soversions.i, shlib-versions.v, and
2622 shlib-versions.v.i here.
2623 * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
2624 the Versions.def input files as dependencies.
2625 ($(common-objpfx)Versions.v.i): Likewise for Versions files.
2626 ($(common-objpfx)Versions.all): Depend on that instead of the input
2627 files. Use it as input instead of using a pipeline.
2628 ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
2629 (postclean-generated): Append those .v and .v.i files here.
2630
ba737b94
UD
26312002-03-14 Jakub Jelinek <jakub@redhat.com>
2632
2633 * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
2634 * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
2635 Remove.
2636
26372002-03-14 Jakub Jelinek <jakub@redhat.com>
2638
2639 * sysdeps/generic/mp_clz_tab.c: New file.
2640 * sysdeps/i386/mp_clz_tab.c: New file.
2641 * sysdeps/hppa/mp_clz_tab.c: New file.
2642 * sysdeps/powerpc/mp_clz_tab.c: New file.
2643 * stdlib/Makefile (aux): Revert last patch.
2644 * math/Makefile (gmp-objs): Likewise.
2645
26462002-03-13 Paul Eggert <eggert@twinsun.com>
2647
2648 * time/strftime.c: Comment fixes for references to obsolescent
2649 standards, In most cases the simplest fix is to remove the
2650 confusing comments. Cross-referencing all the standards properly
2651 is a bit of a pain, and it should be enough to put that info in
2652 the documentation as I did in my recent time.texi patch.
2653
26542002-03-13 Paul Eggert <eggert@twinsun.com>
2655
2656 * manual/time.texi (Formatting Calendar Time):
2657 ISO C99 also specifies the E and O modifiers.
2658 %P is a GNU extension, and is not in ISO C99.
2659 Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
2660 %T is also in ISO C99.
2661 The RFC 822 example is not valid in arbitrary locales.
2662 Reword the POSIX.2 wording slightly, to make it a bit clearer
2663 that POSIX.2 formats are also supported by later POSIX versions.
2664 If a format was introduced in ISO C99 it is also required by
2665 POSIX.1-2001.
2666
351f0765
UD
26672002-03-13 Ulrich Drepper <drepper@redhat.com>
2668
1897bc3f
UD
2669 * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
2670 _sys_nerr_internal with INTVARDEF2.
2671 * include/libc-symbols.h (INTVARDEF2): New macro.
2672 * include/stdio.h (_sys_errlist_internal): Declare as hidden.
2673 (_sys_nerr_internal): Library.
2674
2675 * sysdeps/posix/signal.c (_sigintr): Define as hidden.
2676 * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
2677
351f0765
UD
2678 * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
2679
75bfdfc7
UD
26802002-03-13 Wolfram Gloger <wg@malloc.de>
2681
2682 * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
2683
26842002-03-02 Andreas Schwab <schwab@suse.de>
2685
2686 * stdio-common/vfprintf.c (process_arg): Fix decimal format with
2687 'h' flag and positional arg.
2688 * stdio-common/tst-printf.c (rfg3): New function to test
2689 positional arguments.
2690 (main): Fix some warnings.
2691
26922002-03-13 Jakub Jelinek <jakub@redhat.com>
2693
2694 * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
2695 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
2696
6455d255
UD
26972002-03-13 Ulrich Drepper <drepper@redhat.com>
2698
bf494c7d
UD
2699 * grp/initgroups.c (__nss_group_data): Declare as hidden.
2700
169ec09e
UD
2701 * include/locale.h (_nl_C_locobj): Declare as hidden.
2702
2703 * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
2704 * time/strptime.c (_nl_C_LC_TIME): Likewise.
2705
2706 * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
2707
2708 * include/sys/gmon.h: Declare _gmonparam as hidden.
2709
2710 * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
2711 (__ctype32_wctrans): Likewise.
2712 (__ctype32_width): Likewise.
2713
6455d255
UD
2714 * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
2715 use of __ttyname.
2716
2717 * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
2718 Define as hidden.
2719 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Define as
2720 hidden. Change all users of these variables.
2721
2722 * posix/regex_internal.h (__re_error_msgid): Renamed from
2723 re_error_msgid. Declare as hidden.
2724 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Declare as
2725 hidden.
2726
2727 * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
2728 (__printf_function_table): Likewise.
2729 * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
2730 hidden.
2731 (__printf_function_table): Likewise.
2732
2733 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
2734 __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
2735
2736 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
2737 * nss/nsswitch.c: Declare _nss_*_database as hidden.
2738
2739 * stdlib/wctomb.c (__no_r_state): Declare as hidden.
2740 * stdlib/mbtowc.c (__no_r_state): Define as hidden.
2741
418f1701
UD
27422002-03-12 Ulrich Drepper <drepper@redhat.com>
2743
ab26a24a
UD
2744 * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
2745 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
2746 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
2747 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
2748 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
2749 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
2750 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
2751 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
2752 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
2753 _nl_C_LC_CTYPE_width: Declare as hidden.
2754 * include/locale.h: Declare _nl_locale_file_list.
2755 * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
2756 * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
2757 * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
2758 * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
2759 * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
2760 * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
2761 * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
2762 * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
2763 * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
2764 * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
2765 * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
2766 * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
2767 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
2768 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
2769 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
2770 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
2771 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
2772 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
2773 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
2774 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
2775 _nl_C_LC_CTYPE_width, and as hidden.
2776 * locale/findlocale.c: Declare _nl_C as hidden.
2777 * locale/newlocale.c: Likewise.
2778 * locale/setlocale.c: Define _nl_C as hidden. Remove declaration of
2779 _nl_locale_file_list.
2780 * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
2781 _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
2782 Define _nl_C_locobj as hidden.
2783
2784 * malloc/mtrace.c (_mtrace_file): Define as hidden.
2785 (_mtrace_line): Likewise.
2786
2787 * include/time.h: Declare __mon_yday as hidden.
2788 * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
2789
2790 * libio/libioP.h: Declare __libio_codecvt as hidden.
2791 * libio/fileops.c: Declare __libio_translit as hidden.
2792 * libio/iofwide.c: Define __libio_translit as hidden.
2793
2794 * login/getutent_r.c: Define __libc_utmp_lock as hidden.
2795 * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
2796 * login/getutline_r.c: Likewise.
2797 * login/utmpname.c: Likewise.
2798
2799 * login/utmp-private.h: Declare __libc_utmp_file_functions,
2800 __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
2801 __libc_utmp_file_name as hidden.
2802
2803 * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
2804 * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
2805 * locale/freelocale.c: Likewise.
2806 * locale/lc-time.c: Likewise.
2807
2808 * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
2809 (__libc_ptyname2): Likewise.
2810 * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
2811 hidden.
2812 (__libc_ptyname2): Likewise.
2813
2814 * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
2815 * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
2816 * sysdeps/generic/init-first.c: Likewise.
2817 * sysdeps/i386/init-first.c: Likewise.
2818 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
2819 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
2820 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
2821 * sysdeps/sh/init-first.c: Likewise.
2822 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
2823 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
2824
100351c3
UD
2825 * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
2826 (_itowa_upper_digits): Likewise.
2827
2828 * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
2829 * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
2830 as hidden.
2831
2832 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
2833 _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
2834 _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
2835 _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
2836
2837 * gmon/gmon.c (__bb_head): Define as hidden.
2838 * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
2839
2840 * argp/argp-parse.c (_argp_hang): Define as static.
2841
2842 * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
2843 handling in latest compilers.
2844
2845 * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
2846 define alias.
2847 * libio/fileops.c (_IO_file_jumps): Likewise.
2848 * libio/stdfiles.c (_IO_list_all): Likewise.
2849 * libio/wfileops.c (_IO_wfile_jumps): Likewise.
2850
2851 * malloc/malloc.h: Move __libc_malloc_initialized declaration to
2852 include/malloc.h.
2853 * include/malloc.h: Add __libc_malloc_initialized declaration
2854 here. Mark variable hidden.
2855 * malloc/malloc.c: Include <malloc.h> not "malloc.h".
2856
2857 * elf/dl-open.c (__libc_argc): Declare as hidden.
2858 (__libc_argv): Likewise.
2859 * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
2860 (__libc_argv): Likewise.
2861 * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
2862 __libc_argv as hidden.
2863 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
2864 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
2865 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
2866 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
2867
aa32f798
UD
2868 * include/stdlib.h (__libc_drand48_data): Declare as hidden.
2869 * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
2870 * stdlib/erand48.c: Likewise.
2871 * stdlib/jrand48.c: Likewise.
2872 * stdlib/lcong48.c: Likewise.
2873 * stdlib/lrand48.c: Likewise.
2874 * stdlib/mrand48.c: Likewise.
2875 * stdlib/nrand48.c: Likewise.
2876 * stdlib/seed48.c: Likewise.
2877 * stdlib/srand48.c: Likewise.
2878
2879 * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
2880 (_itoa_lower_digits_internal): New declaration.
2881 (_itoa_upper_digits_internal): New declaration.
2882 (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
2883 * stdio-common.h (_itoa_lower_digits_internal): New declaration.
2884 (_itoa_upper_digits_internal): New declaration.
2885 (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
2886 _itoa_lower_digits.
2887 * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
2888 * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
2889
2890 * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
2891 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
2892
2893 * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
2894 (_itowa_lower_digits): Likewise.
2895 (_itowa_upper_digits): Likewise.
2896 * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
2897 (_itowa_upper_digits): Likewise.
2898
2899 * intl/plural-exp.h (attribute_hidden): Define as empty macro if
2900 not already defined.
2901 (GERMANIC_PLURAL): Declare as hidden.
2902
2903 * posix/getopt.c (__getopt_initialized): Declare as hidden.
2904 (attribute_hidden): Define as empty macro if not already defined.
2905
2906 * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
2907 (__gconv_max_path_elem_len): Likewise.
2908 (__gconv_path_envvar): Likewise.
2909
2910 * math/Makefile (gmp-objs): Remove mp_clz_tab.
2911 * stdlib/Makefile (aux): Remove mp_clz_tab.
2912 * stdlib/mp_clz_tab.c: Removed. Not needed anywhere.
2913
2914 * stdlib/exit.h (__exit_funcs): Declare as hidden.
2915
418f1701
UD
2916 * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
2917
2918 * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
2919 _nl_category_names, _nl_category_name_sizes, _nl_current,
2920 _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
2921
2922 * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
2923 (_nl_current_default_domain): Likewise
2924 (_nl_state_lock): Likewise.
2925 * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
2926 (_nl_current_default_domain): Likewise
2927 (_nl_state_lock): Likewise.
2928 * intl/bindtextdom.c (_nl_state_lock): Likewise.
2929
2930 * stdlib/fpioconst.h (__tens): Add attribute_hidden.
2931 (_fpioconst_pow10): Likewise.
2932
2933 * include/time.h (_tmbuf): Add attribute_hidden.
2934
2935 * time/tzset.c (tzstring_list): Define as static.
2936
2937 * include/time.h: Add attribute_hidden to __tzname_cur_max and
2938 __use_tzfile declaration.
2939
2940 * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
2941 and __wcsmbs_last_locale declaration.
2942
bdff0a44
UD
29432002-02-25 Paul Eggert <eggert@twinsun.com>
2944
2945 * timezone/Makefile (tzbases): Move systemv from here...
2946 (tzlinks): to here, since the entries in systemv were all changed
2947 from Zone to Link lines in tz-2001a. Bug reported (and patch
2948 tested) by Peter Breitenlohner.
2949
a3931cbe
UD
29502002-03-07 Jakub Jelinek <jakub@redhat.com>
2951
2952 * time/tst-posixtz.c (tests): Add new tests.
2953 (main): Test whether tzset() sets daylight properly.
2954
29552002-03-06 Jakub Jelinek <jakub@redhat.com>
2956
2957 * time/tzset.c (tz_compute): Move __daylight, __tzname and
2958 __tzname_cur_max setting...
2959 (tzset_internal): ...here.
2960
29612002-03-06 Jakub Jelinek <jakub@redhat.com>
2962
2963 * time/tzset.c (compute_change): Don't return any value.
2964 (tz_compute): Likewise. Don't handle southern hemisphere here.
2965 (__tz_convert): But here.
2966
bc15410e
UD
29672002-03-11 Ulrich Drepper <drepper@redhat.com>
2968
2969 * manual/examples/mkfsock.c: Include <string.h> as well.
2970 Patch by Alain De Carolis <alaind@wseurope.com>.
2971
29722002-03-06 Isamu Hasegawa <isamu@yamato.ibm.com>
2973
2974 * posix/regexec.c (re_match): Fix incorrect register sizes.
2975 (re_search): Likewise.
2976
29772002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
2978
2979 * posix/regcomp.c (regfree): Remove a disused condition.
2980 * posix/regex_internal.c (re_acquire_state): Likewise.
2981 (re_acquire_state_context): Likewise.
2982 (register_state): Remove a redundant malloc invocation.
2983 * posix/regex_internal.h: (re_state_table_entry): Simplify
2984 the structure.
2985
29862002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
2987
2988 * posix/regcomp.c (regcomp): Add __builtin_expect to error
2989 handling conditions.
2990 (regerror): Likewise.
2991 (regfree): Likewise.
2992 (re_compile_internal): Likewise.
2993 (init_dfa): Likewise.
2994 (init_word_char): Likewise.
2995 (create_initial_state): Likewise.
2996 (analyze): Likewise.
2997 (analyze_tree): Likewise.
2998 (duplicate_node): Likewise.
2999 (calc_eclosure): Likewise.
3000 (calc_eclosure_iter): Likewise.
3001 (parse): Likewise.
3002 (parse_reg_exp): Likewise.
3003 (parse_branch): Likewise.
3004 (parse_expression): Likewise.
3005 (parse_subexp): Likewise.
3006 (parse_dup_op): Likewise.
3007 (parse_bracket_exp): Likewise.
3008 (build_equiv_class): Likewise.
3009 (build_charclass): Likewise.
3010 (build_word_op): Likewise.
3011 (fetch_number): Likewise.
3012 (create_tree): Likewise.
3013 (duplicate_tree): Likewise.
3014 * posix/regex.c (BE): New macro.
3015 * posix/regexec.c (re_match): Add __builtin_expect to error
3016 handling conditions.
3017 (re_match_2): Likewise.
3018 (re_search): Likewise.
3019 (re_search_internal): Likewise.
3020 (check_matching): Likewise.
3021 (proceed_next_node): Likewise.
3022 (set_regs): Likewise.
3023 (sift_states_backward): Likewise.
3024 (add_epsilon_backreference): Likewise.
3025 (transit_state): Likewise.
3026 (transit_state_sb): Likewise.
3027 (transit_state_mb): Likewise.
3028 (transit_state_bkref): Likewise.
3029 (transit_state_bkref_loop): Likewise.
3030 (build_trtable): Likewise.
3031 (group_nodes_into_DFAstates): Likewise.
3032 (match_ctx_init): Likewise.
3033 (match_ctx_add_entry): Likewise.
3034 * posix/regex_internal.c (re_string_construct): Add __builtin_expect
3035 to error handling conditions.
3036 (re_string_construct_toupper): Likewise.
3037 (build_wcs_buffer): Likewise.
3038 (build_wcs_upper_buffer): Likewise.
3039 (build_upper_buffer): Likewise.
3040 (re_string_translate_buffer): Likewise.
3041 (re_node_set_alloc): Likewise.
3042 (re_node_set_init_1): Likewise.
3043 (re_node_set_init_2): Likewise.
3044 (re_node_set_init_copy): Likewise.
3045 (re_node_set_intersect): Likewise.
3046 (re_node_set_init_union): Likewise.
3047 (re_node_set_merge): Likewise.
3048 (re_node_set_insert): Likewise.
3049 (re_dfa_add_node): Likewise.
3050 (re_acquire_state): Likewise.
3051 (re_acquire_state_context): Likewise.
3052 (create_new_state_common): Likewise.
3053 (register_state): Likewise.
3054 (create_ci_new_state): Likewise.
3055 (create_cd_new_state): Likewise.
3056 (re_string_context_at): Remove redundant condition.
3057
30582002-01-16 Roger Sayle <roger@eyesopen.com>
3059
3060 * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
3061
3062 * sysdeps/i386/i586/strlen.S: Fix typo in comment.
3063
89a3dd44
UD
30642002-03-11 Jakub Jelinek <jakub@redhat.com>
3065
3066 * sysdeps/i386/elf/configure.in: Fix comment.
3067
3068 * sysdeps/sparc/sparc64/configure.in: New.
3069 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
3070 if .dynamic comes before .got.
3071 * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
3072
3073 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
3074 HP_TIMING_ACCUM): Fix typos.
3075
14b2815b
UD
30762002-03-11 Ulrich Drepper <drepper@redhat.com>
3077
89a3dd44
UD
3078 * string/strfry.c: Add some more randomness to the seed.
3079 Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
3080
14b2815b
UD
3081 * po/es.po: Update from translation team.
3082 * po/fr.po: Likewise.
3083
3084 * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
3085
3086 * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
3087 when determining type of format.
89a3dd44 3088 Patch by James Antill <james@anqd.org> [PR libc/2787].
14b2815b
UD
3089
30902002-03-04 Jakub Jelinek <jakub@redhat.com>
3091
3092 * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
3093
dbf2de43
RM
30942002-03-11 Roland McGrath <roland@frob.com>
3095
3096 * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
3097
3098 * Versions.def (libc): Add GLIBC_2.2.6.
3099 * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
3100 * sysdeps/mach/hurd/errnos.awk: In generated macro, use
3101 __errno_location instead of __hurd_errno_location, and don't inline it.
3102 * sysdeps/mach/hurd/bits/errno.h: Regenerated.
3103 * hurd/errno.c: New file.
3104 * hurd/Makefile (routines): Add errno.
3105
078405a2
UD
31062002-03-11 Ulrich Drepper <drepper@redhat.com>
3107
3108 * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
3109 ridiculously large widths and precisions [PR libc/3026].
3110
8eb095dd
AJ
31112002-03-11 Andreas Jaeger <aj@suse.de>
3112
3113 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
3114 support.
3115 Patch by Susanne Oberhauser <froh@SuSE.de>.
3116
0e47dbd0
UD
31172002-03-11 Ulrich Drepper <drepper@redhat.com>
3118
d372f89a
UD
3119 * inet/rexec.c (ahostbuf): Define as static.
3120
20febd6a
UD
3121 * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
3122 (__ctype32_wctrans): Likewise.
3123 * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
3124 * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
3125 (__ctype32_wctrans): Likewise.
3126 (__ctype32_width): Likewise.
3127
0e47dbd0
UD
3128 * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
3129 They were never exported anyway.
3130
3131 * gmon/gmon.c (_gmonparam): Add attribute_hidden.
3132 * gmon/sys/gmon.h: Remove declaration of _gmonparam. It wasn't
3133 exported.
3134 * include/sys/gmon.h: Declare _gmonparam.
3135
3136 * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
3137 symbols for getdents64. They were never exported.
3138
70481be8
RM
31392002-03-09 Roland McGrath <roland@frob.com>
3140
3141 * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
3142 Reported by Jon Arney <jarney1@cox.net>.
3143
31442002-02-23 Roland McGrath <roland@frob.com>
3145
3146 * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
3147 declaration.
3148 (__hurd_errno_location): Function removed.
3149
2c8a8bdd
AJ
31502002-03-06 Andreas Jaeger <aj@suse.de>
3151
3152 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
3153 32-bit.
3154
76d81302
AJ
31552002-03-04 Andreas Jaeger <aj@suse.de>
3156
3adf3020
AJ
3157 * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New.
3158
76d81302
AJ
3159 * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
3160 x86-64.
3161
3162 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New.
3163
3164 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New.
3165
3166 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New.
3167
3168 * sysdeps/x86_64/bits/setjmp.h: New.
3169
3170 * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New.
3171
3172 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New.
3173
3174 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
3175 for x86.
3176 * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
3177 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
3178
31792002-02-28 Bo Thorsen <bo@suse.de>
3180
3181 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
3182 version.
3183
37de950b
AJ
31842002-03-03 Andreas Jaeger <aj@suse.de>
3185
a06bb7ce
AJ
3186 * sysdeps/x86_64/bits/wordsize.h: New file.
3187
37de950b
AJ
3188 * elf/nodlopenmod2.c: Provide prototype to avoid warning.
3189 * elf/tst-tlsmod1.c: Likewise.
3190
3191 * posix/regcomp.c: Get regex.h from include dir for internal
3192 prototypes.
3193
3194 * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
3195 to libc-internal.h and include it.
3196 * include/libc-internal.h: Add __init_misc.
3197
3198 * misc/init-misc.c: Include libc-internal.h for prototypes.
3199
3200 * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
3201
3202 * misc/error.c [_LIBC]: Include libioP.h for prototype of
3203 _IO_putc_internal.
3204
f990d293
UD
32052002-03-03 Ulrich Drepper <drepper@redhat.com>
3206
3207 * posix/regcomp.c: Compatibility changes to allow using the code
3208 outside glibc.
3209
263756c0 32102002-02-28 Hartvig Ekner <hartvige@mips.com>
f990d293 3211
263756c0
AJ
3212 * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
3213 compiled non-PIC.
3214
cc8594b1
UD
32152002-03-02 Ulrich Drepper <drepper@redhat.com>
3216
0e25633a
UD
3217 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
3218 of .str elements in the returned data structure.
3219
cc8594b1
UD
3220 * elf/elf.h: Add Alpha TLS bits.
3221
56f182bf
UD
32222002-02-28 Jakub Jelinek <jakub@redhat.com>
3223
3224 * sysdeps/unix/sysv/linux/nice.c: New file.
3225
e6caf4e1
UD
32262002-03-01 Ulrich Drepper <drepper@redhat.com>
3227
3228 * elf/Makefile (dl-routines): Add dl-origin.
3229 (elide-routines.os): Add dl-origin.
3230 * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
3231 * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
3232 _dl_debug_state.
3233 * include/libc-symbols.c: Define attribute_hidden depending on
3234 HAVE_VISIBILITY_ATTRIBUTE. Add definition of INTVARDEF.
3235
3236 * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
3237 * elf/dl-load.c: Likewise.
3238 * elf/rtld.c: Likewise.
3239 * include/unistd.h: Declare __libc_enable_secure_internal.
3240 * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
3241 Use INTUSE with __libc_enable_secure.
3242 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
3243
3244 * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
3245 * elf/dl-error.c: Likewise,
3246 * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
3247
3248 * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
3249 * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
3250 function definition. Use INTDEF with _dl_get_origin.
3251 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
3252
3253 * elf/dl-init.c: Use INTUSE with _dl_starting_up.
3254 * elf/rtld.c: Likewise. Use INTVARDEF for _dl_starting_up.
3255
3256 * elf/dl-profile.c: Use INTDEF for _dl_mcount.
3257 * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
3258 * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
3259
3260 * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
3261 * elf/dl-deps.c: Likewise.
3262 * elf/dl-error.c: Likewise.
3263 * elf/dl-fini.c: Likewise.
3264 * elf/dl-init.c: Likewise.
3265 * elf/dl-load.c: Likewise.
3266 * elf/dl-lookup.c: Likewise.
3267 * elf/dl-reloc.c: Likewise.
3268 * elf/dl-version.c: Likewise.
3269 * elf/do-lookup.h: Likewise.
3270 * sysdeps/arm/dl-machine.h: Likewise.
3271 * sysdeps/cris/dl-machine.h: Likewise.
3272 * sysdeps/hppa/dl-machine.h: Likewise.
3273 * sysdeps/i386/dl-machine.h: Likewise.
3274 * sysdeps/m68k/dl-machine.h: Likewise.
3275 * sysdeps/powerpc/dl-machine.h: Likewise.
3276 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
3277 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
3278 * sysdeps/sh/dl-machine.h: Likewise.
3279 * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
3280 * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
3281 * sysdeps/x86_64/dl-machine.h: Likewise.
3282 * elf/rtld.c: Use INTDEF for _dl_argv. Use rtld_progrname instead of
3283 _dl_argv[0]. Use INTUSE with _dl_argv.
3284 * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
3285 * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
3286
0d01dace
UD
32872002-02-28 Jakub Jelinek <jakub@redhat.com>
3288
3289 * elf/rtld.c (_rtld_global): Remove .protected.
3290 (_rtld_local): Strong alias to _rtld_global.
3291 * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
3292 only .os object.
3293 * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
3294 _rtld_local instead of _rtld_global.
3295 (_rtld_local): Add hidden extern, possibly in .sdata section.
3296 * configure.in: Add tests for visibility attribute and .sdata.
3297 * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
3298 * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
3299 * sysdeps/arm/dl-machine.h: Likewise.
3300 * sysdeps/generic/ldsodefs.h: Likewise.
3301 * sysdeps/hppa/dl-machine.h: Likewise.
3302 * sysdeps/cris/dl-machine.h: Likewise.
3303 * sysdeps/i386/dl-machine.h: Likewise.
3304 * sysdeps/ia64/dl-machine.h: Likewise.
3305 * sysdeps/m68k/dl-machine.h: Likewise.
3306 * sysdeps/mips/mips64/dl-machine.h: Likewise.
3307 * sysdeps/mips/dl-machine.h: Likewise.
3308 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
3309 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
3310 * sysdeps/sh/dl-machine.h: Likewise.
3311 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
3312 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
3313 * sysdeps/x86_64/dl-machine.h: Likewise.
3314
1eb610d1
UD
33152002-02-28 Ulrich Drepper <drepper@redhat.com>
3316
3317 * login/login.c (login): Always initialize ut_line field
3318 [PR libc/2991].
3319
9321beea
UD
33202002-02-28 Jakub Jelinek <jakub@redhat.com>
3321
3322 * sysdeps/i386/Makefile (sysdep_routines): Add
3323 divdi3 in csu dir.
3324 (shared-only-routines): Likewise.
3325 * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
3326 (shared-only-routines): Likewise.
3327 * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
3328 (shared-only-routines): Likewise.
3329 * sysdeps/wordsize-32/divdi3.c: New file.
3330
89616722
UD
33312002-02-28 Ulrich Drepper <drepper@redhat.com>
3332
3333 * locale/iso-4217.def: Remove obsolete currencies for countries
3334 with Euro.
3335
a9388965
UD
33362002-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
3337
3338 * posix/regcomp.c (regcomp): Remove a redundant condition.
3339 (init_word_char): Add a check on malloc failure.
3340 (create_initial_state): Likewise.
3341 (duplicate_node): Likewise.
3342 (calc_eclosure): Likewise.
3343 (calc_eclosure_iter): Likewise.
3344 (parse_expression): Likewise.
3345 (parse_bracket_exp): Remove unnecessary malloc invocations.
3346 (build_equiv_class): Likewise.
3347 (build_charclass): Likewise.
3348 * posix/regex_internal.c (re_node_set_intersect): Add a check
3349 on malloc failure.
3350 (re_node_set_add_intersect): Likewise.
3351 (re_node_set_merge): Likewise.
3352 (re_acquire_state): Likewise.
3353 (re_acquire_state_context): Likewise.
3354 (create_newstate_common): Likewise.
3355 (register_state): Likewise.
3356 (create_ci_newstate): Likewise.
3357 (create_cd_newstate): Likewise.
3358 * posix/regex_internal.h: Fix prototypes of re_acquire_state
3359 and re_acquire_state_context.
3360 * posix/regexec.c (regexec): Suit it to the error handling of
3361 re_search_internal.
3362 (re_match): Likewise.
3363 (re_search): Likewise.
3364 (re_search_internal): Add a check on malloc failure.
3365 (acquire_init_state_context): Likewise.
3366 (check_matching): Likewise.
3367 (proceed_next_node): Likewise.
3368 (set_regs): Likewise.
3369 (sift_states_backward): Likewise.
3370 (sift_states_iter_bkref): Likewise.
3371 (add_epsilon_backreference): Likewise.
3372 (transit_state): Likewise.
3373 (transit_state_sb): Likewise.
3374 (transit_state_mb): Likewise.
3375 (transit_state_bkref_loop): Likewise.
3376 (build_trtable): Likewise.
3377 (group_nodes_into_DFAstates): Likewise.
3378 (match_ctx_init): Likewise.
3379 (match_ctx_add_entry): Likewise.
3380
f027b0f6
UD
33812002-02-27 Ulrich Drepper <drepper@redhat.com>
3382
51f38e87
UD
3383 * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
3384 l_libname if profiling is enabled [PR libc/2916].
3385
f027b0f6
UD
3386 * sysdeps/ia64/dl-tls.h: New file.
3387
8e099847
UD
33882002-02-27 Jakub Jelinek <jakub@redhat.com>
3389
3390 * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
3391 Work around an Alpha gas bug.
3392
33932002-02-27 Ulrich Drepper <drepper@redhat.com>
3394
3395 * catgets/open_catalog.c (__open_catalog): Fix typo in code which
3396 uses read to load the catalog.
3397 Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
3398
73f1b067
UD
33992002-02-26 Ulrich Drepper <drepper@redhat.com>
3400
3b0bdc72
UD
3401 * posix/Makefile (distribute): Add regcomp.c, regexec.c,
3402 regex_internal.c, and regex_internal.h.
3403 (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
3404 * posix/regex.c: Complete rewrite.
3405 * posix/regexec.c: New file.
3406 * posix/regcomp.c: New file.
3407 * posix/regex_internal.c: New file.
3408 * posix/regex_internal.h: New file.
3409 * posix/regex.h (RE_ICASE): New macro.
3410 Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
3411
73f1b067
UD
3412 * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
3413 ungetwc. It's a macro.
3414 * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
3415 implementation.
3416 Reported by Jason Merrill <jason@redhat.com>.
3417
b39d5719
UD
34182002-02-25 Jakub Jelinek <jakub@redhat.com>
3419
3420 * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
3421 position to fp->_offset if it is set.
3422 * stdio-common/Makefile (tests): Add tst-fdopen.
3423 * stdio-common/tst-fdopen.c: New test.
3424
34252002-02-25 Jakub Jelinek <jakub@redhat.com>
3426
3427 * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
3428 * stdio-common/tst-ungetc.c (main): Add another test.
3429
77fe0b9c
UD
34302002-02-25 Ulrich Drepper <drepper@redhat.com>
3431
3432 * assert/assert-perr.c: Use INTUSE to reference functions and variables
8e099847 3433 inside libc itself. Use INTDEF and INTDEF2 to define appropriate
77fe0b9c
UD
3434 aliases. Add prototypes for the new aliases.
3435 * assert/assert.c: Likewise.
3436 * include/libc-symbols.h: Likewise.
3437 * include/stdio.h: Likewise.
3438 * include/netinet/in.h: Likewise.
3439 * include/rpc/auth.h: Likewise.
3440 * include/rpc/auth_unix.h: Likewise.
3441 * include/rpc/key_prot.h: Likewise.
3442 * include/rpc/pmap_prot.h: Likewise.
3443 * include/rpc/pmap_rmt.h: Likewise.
3444 * include/rpc/rpc_msg.h: Likewise.
3445 * include/rpc/xdr.h: Likewise.
3446 * inet/gethstbyad_r.c: Likewise.
3447 * inet/gethstbynm2_r.c: Likewise.
3448 * inet/gethstbynm_r.c: Likewise.
3449 * inet/gethstent_r.c: Likewise.
3450 * inet/in6_addr.c: Likewise.
3451 * libio/__fpurge.c: Likewise.
3452 * libio/filedoalloc.c: Likewise.
3453 * libio/fileops.c: Likewise.
3454 * libio/ftello.c: Likewise.
3455 * libio/ftello64.c: Likewise.
3456 * libio/genops.c: Likewise.
3457 * libio/iofclose.c: Likewise.
3458 * libio/iofdopen.c: Likewise.
3459 * libio/iofflush.c: Likewise.
3460 * libio/iofflush_u.c: Likewise.
3461 * libio/iofgetpos.c: Likewise.
3462 * libio/iofgetpos64.c: Likewise.
3463 * libio/iofgets.c: Likewise.
3464 * libio/iofgets_u.c: Likewise.
3465 * libio/iofopen.c: Likewise.
3466 * libio/iofopncook.c: Likewise.
3467 * libio/iofputs.c: Likewise.
3468 * libio/iofread.c: Likewise.
3469 * libio/iofread_u.c: Likewise.
3470 * libio/iofsetpos.c: Likewise.
3471 * libio/iofsetpos64.c: Likewise.
3472 * libio/ioftell.c: Likewise.
3473 * libio/iofwrite.c: Likewise.
3474 * libio/iogetline.c: Likewise.
3475 * libio/iogets.c: Likewise.
3476 * libio/iogetwline.c: Likewise.
3477 * libio/iolibio.h: Likewise.
3478 * libio/iopadn.c: Likewise.
3479 * libio/iopopen.c: Likewise.
3480 * libio/ioseekoff.c: Likewise.
3481 * libio/ioseekpos.c: Likewise.
3482 * libio/iosetbuffer.c: Likewise.
3483 * libio/iosetvbuf.c: Likewise.
3484 * libio/ioungetc.c: Likewise.
3485 * libio/ioungetwc.c: Likewise.
3486 * libio/iovdprintf.c: Likewise.
3487 * libio/iovsprintf.c: Likewise.
3488 * libio/iovsscanf.c: Likewise.
3489 * libio/libioP.h: Likewise.
3490 * libio/memstream.c: Likewise.
3491 * libio/obprintf.c: Likewise.
3492 * libio/oldfileops.c: Likewise.
3493 * libio/oldiofclose.c: Likewise.
3494 * libio/oldiofdopen.c: Likewise.
3495 * libio/oldiofgetpos.c: Likewise.
3496 * libio/oldiofgetpos64.c: Likewise.
3497 * libio/oldiofopen.c: Likewise.
3498 * libio/oldiofsetpos.c: Likewise.
3499 * libio/oldiofsetpos64.c: Likewise.
3500 * libio/oldiopopen.c: Likewise.
3501 * libio/oldstdfiles.c: Likewise.
3502 * libio/putc.c: Likewise.
3503 * libio/setbuf.c: Likewise.
3504 * libio/setlinebuf.c: Likewise.
3505 * libio/stdfiles.c: Likewise.
3506 * libio/stdio.c: Likewise.
3507 * libio/strops.c: Likewise.
3508 * libio/vasprintf.c: Likewise.
3509 * libio/vscanf.c: Likewise.
3510 * libio/vsnprintf.c: Likewise.
3511 * libio/vswprintf.c: Likewise.
3512 * libio/wfiledoalloc.c: Likewise.
3513 * libio/wfileops.c: Likewise.
3514 * libio/wgenops.c: Likewise.
3515 * libio/wstrops.c: Likewise.
3516 * malloc/mtrace.c: Likewise.
3517 * misc/error.c: Likewise.
3518 * misc/syslog.c: Likewise.
3519 * nss/getXXbyYY_r.c: Likewise.
3520 * nss/getXXent_r.c: Likewise.
3521 * nss/hosts-lookup.c: Likewise.
3522 * stdio-common/getw.c
3523 * stdio-common/printf-prs.c: Likewise.
3524 * stdio-common/printf_fp.c: Likewise.
3525 * stdio-common/printf_size.c: Likewise.
3526 * stdio-common/putw.c: Likewise.
3527 * stdio-common/scanf.c: Likewise.
3528 * stdio-common/sprintf.c: Likewise.
3529 * stdio-common/tmpfile64.c: Likewise.
3530 * stdio-common/vfprintf.c: Likewise.
3531 * stdio-common/vfscanf.c: Likewise.
3532 * stdlib/strfmon.c: Likewise.
3533 * sunrpc/auth_des.c: Likewise.
3534 * sunrpc/auth_none.c: Likewise.
3535 * sunrpc/auth_unix.c: Likewise.
3536 * sunrpc/authdes_prot.c: Likewise.
3537 * sunrpc/authuxprot.c: Likewise.
3538 * sunrpc/clnt_perr.c: Likewise.
3539 * sunrpc/clnt_raw.c: Likewise.
3540 * sunrpc/clnt_tcp.c: Likewise.
3541 * sunrpc/clnt_udp.c: Likewise.
3542 * sunrpc/clnt_unix.c: Likewise.
3543 * sunrpc/key_call.c: Likewise.
3544 * sunrpc/key_prot.c: Likewise.
3545 * sunrpc/openchild.c: Likewise.
3546 * sunrpc/pm_getmaps.c: Likewise.
3547 * sunrpc/pm_getport.c: Likewise.
3548 * sunrpc/pmap_clnt.c: Likewise.
3549 * sunrpc/pmap_prot.c: Likewise.
3550 * sunrpc/pmap_prot2.c: Likewise.
3551 * sunrpc/pmap_rmt.c: Likewise.
3552 * sunrpc/rpc_cmsg.c: Likewise.
3553 * sunrpc/rpc_prot.c: Likewise.
3554 * sunrpc/svc_authux.c: Likewise.
3555 * sunrpc/svc_raw.c: Likewise.
3556 * sunrpc/svc_simple.c: Likewise.
3557 * sunrpc/svc_tcp.c: Likewise.
3558 * sunrpc/svc_udp.c: Likewise.
3559 * sunrpc/svc_unix.c: Likewise.
3560 * sunrpc/xdr.c: Likewise.
3561 * sunrpc/xdr_array.c: Likewise.
3562 * sunrpc/xdr_mem.c: Likewise.
3563 * sunrpc/xdr_rec.c: Likewise.
3564 * sunrpc/xdr_ref.c: Likewise.
3565 * sunrpc/xdr_stdio.c: Likewise.
3566 * sysdeps/generic/_strerror.c: Likewise.
3567 * sysdeps/generic/printf_fphex.c: Likewise.
3568 * sysdeps/generic/tmpfile.c: Likewise.
3569 * sysdeps/gnu/errlist.awk: Likewise.
3570 * sysdeps/gnu/errlist.c: Likewise.
3571
3572 * libio/Makefile (routines): Remove iosprint.
3573 * libio/iosprintf.c: Removed
3574
3575
d417e0ff
UD
35762002-02-24 Ulrich Drepper <drepper@redhat.com>
3577
3578 * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
3579 non_dynamic_init and exported now.
3580 * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
3581 * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
3582 !SHARED.
3583 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
3584 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
3585 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
3586
557fab43
UD
35872002-02-23 Ulrich Drepper <drepper@redhat.com>
3588
69f0c4d8
UD
3589 * elf/dl-close.c (free_slotinfo): Check for end of list and return
3590 true in this case.
3591
6370466d
UD
3592 * locale/iso-639.def: Add language codes for Walloon.
3593
9836cfe7
UD
3594 * elf/dl-fini.c (_dl_fini): Print some final statistics on the
3595 total number of relocations performed.
3596
7fec4f2f
UD
3597 * elf/sprof.c (load_profdata): If do_test provide information as
3598 to why loading failed.
3599 * elf/dl-profile.c (_dl_start_profile): Initialize all of
3600 hist_hdr.dimen.
3601
557fab43
UD
3602 * csu/set-init.c: Moved to...
3603 * sysdeps/mach/hurd/set-init.c: ...here. New file.
3604 * csu/Makefile: Don't compile set-init.
3605 * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
3606 * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
3607 to __libc_init.
3608 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
3609 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
3610 * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
3611 __libc_init.
3612 * misc/init-misc.c: Always export __init_misc. Don't define hooks for
3613 __libc_subinit.
3614
e4138261
UD
36152002-02-22 Ulrich Drepper <drepper@redhat.com>
3616
3617 * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
3618 * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
3619 * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
3620 (_dl_deallocate_tls): New function.
3621 * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
3622 _dl_deallocate_tls.
3623
903b3396
UD
36242002-02-21 Jakub Jelinek <jakub@redhat.com>
3625
3626 * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
3627 * stdio-common/tst-fseek.c (main): Add test for this.
3628
15e260e8
UD
36292002-02-19 Ulrich Drepper <drepper@redhat.com.>
3630
3631 * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
3632
13bc28f6
UD
36332002-02-19 Jakub Jelinek <jakub@redhat.com>
3634
3635 * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
3636 pointer before dereferencing.
3637
21297437
RM
36382002-02-18 Roland McGrath <roland@frob.com>
3639
3a2832a0
RM
3640 * sysdeps/mach/hurd/times.c: Fix typo in last change.
3641
3642 * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
3643 Use task_policy in place of task_priority.
3644
3645 * sysdeps/generic/bits/mman.h
3646 (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
3647 * sysdeps/mach/msync.c: New file.
3648
3649 * sysdeps/mach/powerpc/syscall.S: New file.
3650
3651 * mach/msg.c [MACH_MSG_OVERWRITE]
3652 (__mach_msg_trap, __mach_msg_overwrite): New functions.
3653 * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
3654
3655 * sysdeps/mach/configure.in: Check for clock.defs to put into
3656 mach_interface_list.
3657 * sysdeps/mach/configure: Regenerated.
3658
3659 * mach/Makefile (mach-machine): New variable, set from $(base-machine).
3660 ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
3661 ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
3662 Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
3663 (mach-shortcuts): Add device_read_overwrite_request,
3664 device_read_overwrite, vm_read_overwrite, thread_switch.
3665
3666 * configure.in (base_machine): Set to $machine by default.
3667 * configure: Regenerated.
3668
21297437
RM
3669 * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
3670 or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
3671 * sysdeps/mach/configure: Regenerated.
3672 * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
3673
3674 * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
3675
3676 * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
3677
3678 * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
3679 Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
3680
9b094464
RM
36812002-02-17 Roland McGrath <roland@frob.com>
3682
21297437
RM
3683 * sysdeps/mach/hurd/times.c
3684 [NO_CREATION_TIME] (startup_time): New static variable.
3685 [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
3686 (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
3687 creation_time from task_basic_info.
3688 (__times): Use __gettimeofday instead of __host_get_time.
3689
3690 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
3691 Use untyped Mach IPC message format.
3692
3693 * hurd/catch-exc.c: Include <assert.h>, missing from last change.
3694
9ce8b3c8
RM
3695 * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
3696 _S_catch_exception_raise_state_identity,
3697 _hurdsig_fault_catch_exception_raise_state,
3698 _hurdsig_fault_catch_exception_raise_state_identity.
3699
3700 * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
3701
3702 * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
3703 __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
3704
3705 * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
3706 `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
3707
3708 * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
3709 (fmh, unfmh): Define these functions only #if FMH. Otherwise define
3710 them as no-op macros.
3711 [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
3712 (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
3713
3714 * sysdeps/powerpc/dl-machine.h
3715 (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
3716
f22a77e1
RM
3717 * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
3718 Use untyped Mach IPC message format.
3719
89c255f1 3720 * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
f22a77e1
RM
3721 Handle untyped Mach IPC message formats.
3722
3723 * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
3724 Expect different argument conventions when this is defined.
3725 [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
3726 [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
3727 * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
3728 [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
3729 for OSF Mach variant.
3730 (faulted): Use mig_reply_error_t for REPLY.
3731 (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
3732 in __thread_set_exception_ports call.
3733 (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
3734 __mach_port_set_attributes in place of __mach_port_set_qlimit.
3735
3736 * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
3737 before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
3738 on Darwin, which includes bogons.
3739
9b094464
RM
3740 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
3741 variable LOADBASE so it's not declared when it's not used.
3742
61c83c3f
RM
37432002-02-16 Roland McGrath <roland@frob.com>
3744
746f4007
RM
3745 * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
3746 to use BI.creation_time.
3747
3748 * mach/Machrules (MIG): Add -x c to CPP value passed down.
3749
30537cab
RM
3750 * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
3751 * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
3752 * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
3753 host_page_size instead of vm_statistics.
3754
690a2f7d
RM
3755 * sysdeps/mach/Makefile (mach-before-compile): Don't include
3756 mach_interface.h here, since not all variants use that name.
3757
61c83c3f
RM
3758 * sysdeps/mach/configure.in: Add some checks for Mach headers
3759 to ensure a sane installation.
3760 (mach_interface_list): Define this variable by checking for .defs
3761 files found in various variants.
3762 * configure.in (mach_interface_list): AC_SUBST this.
3763 * config.make.in (mach-interface-list): New substituted variable.
3764 * mach/Makefile (user-interfaces): Define this using the value
3765 of $(mach-interface-list) instead of mach, mach4.
3766 Updated other references to mach_interface to use it as well.
3767
3768 * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
3769
3770 * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
3771 mig_reply_error_t for OSF Mach variant.
3772
3773 * mach/Makefile (routines): Remove bootprivport.
3774 * mach/bootprivport.c: File removed. It has never been used.
3775
3776 * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
3777 Grok the OSF flavor of message format.
3778 (mach_msg_destroy_port): For MAKE_SEND and
3779 MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
3780 no-senders notification.
3781
37822002-02-06 Roland McGrath <roland@frob.com>
3783
3784 * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
3785 to here if 2.0 compatibility enabled ...
3786 (libc: GLIBC_2.1.3): ... from here.
3787
b209e34a
UD
37882002-02-15 Ulrich Drepper <drepper@redhat.com>
3789
3790 * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
3791 generation counter.
3792 * elf/dl-close.c (_dl_close): Likewise.
3793
425838aa
UD
37942002-02-14 Ulrich Drepper <drepper@redhat.com>
3795
ebda6173
UD
3796 * elf/Makefile: Add rules to build and run tst-tls8.
3797 * elf/tst-tls8.c: New file.
3798 * elf/tst-tlsmod4.c: New file.
3799
425838aa
UD
3800 * stdlib/test-a64l.c (tests): Add more test cases.
3801
3802 * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
3803 Reported by Walter Harms <WHarms@bfs.de>.
3804
38052002-02-11 Jes Sorensen <jes@trained-monkey.org>
3806
3807 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
3808 definitions for struct sigcontext.
3809 Suggested by David Mosberger-Tang.
3810
100e184f
UD
38112002-02-13 Ulrich Drepper <drepper@redhat.com>
3812
fc093be1
UD
3813 * elf/dl-close.c (remove_slotinfo): New function. Handles everything
3814 for removing reference of module in slotinfo list.
3815 (_dl_close): Use remove_slotinfo.
3816 * sysdeps/generic/dl-tls.c: General pretty printing.
3817 (oom): Define only if SHARED.
3818 (_dl_next_tls_modid): Correct starting point for the case we assume
3819 there is a gap. Add missing instruction grouping (doh!). Correct
3820 tests for reaching maximum index.
3821 * elf/Makefile: Add rules to build and run tst-tls7.
3822 * elf/tst-tls7.c: New file.
3823 * elf/tst-tlsmod3.c: New file.
3824
3825 * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
3826 USE_TLS.
3827 * elf/tst-tlsmod2.c: Likewise.
3828
bb4cb252
UD
3829 * elf/dl-close.c (_dl_close): When closing an object using TLS
3830 either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
3831 true. Increment dl_tls_generation only if we closed any TLS-using
3832 object.
3833 * elf/tst-tls6.c: New file.
3834 * elf/Makefile: Add rules to build and run tst-tls6.
3835
736ab899
UD
3836 * po/da.po: Update from translation team.
3837
3838 * locale/categories.def: Fix typo [PR libc/2948].
3839 * po/Makefile (BROKEN_LINGUAS): Works with current gettext
3840 [PR libc/2949].
3841 * locale/iso-4217.def: Update from official version [PR libc/2950].
3842 * glibcbug.in: Honor TMPDIR [PR libc/2951].
3843 * locale/programs/ld-collate.c (collate_finish): Bail out with a
3844 message if input is too confusion instead of using assert.
3845 (collate_read): Don't crash on unknown symbol [PR libc/2952].
3846 Patches by Alastair McKinstry <alastair@pdd.3com.com>.
3847
100e184f
UD
3848 * elf/tst-tls1.c: Move #include "tls-macros.h" instead #ifdef USE_TLS.
3849 * elf/tst-tls2.c: Likewise.
3850 * elf/tst-tls3.c: Likewise.
3851
38522002-02-13 Jakub Jelinek <jakub@redhat.com>
3853
3854 * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
3855
a04586d8
UD
38562002-02-13 Ulrich Drepper <drepper@redhat.com>
3857
d552a431
UD
3858 * elf/dl-open.c (dl_open_worker): Only bump the generation counter
3859 if this is really necessary.
3860
a04586d8
UD
3861 * elf/dl-close.c (_dl_close): Implement freeing entries in the
3862 slotinfo array.
3863 (free_mem): Free memory for the slotinfo array if possible.
3864
069b7c3e
UD
38652002-02-12 Andreas Schwab <schwab@suse.de>
3866
3867 * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
3868
aed283dd
UD
38692002-02-12 Ulrich Drepper <drepper@redhat.com>
3870
3871 * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
3872 TLS_DTV_UNALLOCATE.
3873 (oom): New function.
3874 (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
3875 (_dl_determine_tlsoffset): Likewise.
3876 (_dl_allocate_tls): Likewise.
3877 (__TLS_GET_ADDR): Define if not already defined.
3878 (_dl_tls_symaddr): New function.
3879 (allocate_and_init): New function.
3880 (__tls_get_addr): Actually implement handling of generation counter
3881 and deferred allocation.
3882 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
3883 add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
3884 _dl_tls_generation.
3885 Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
3886 Declare _dl_tls_symaddr.
3887 * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
3888 SHARED.
3889 * include/link.h (struct link_map): Remove l_tls_nextimage and
3890 l_tls_previmage.
3891 * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
3892 instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
3893 (_dl_vsym): Likewise.
3894 * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
3895 layout.
3896 (dl_main): Allow PT_TLS be present for empty segment. Remove
3897 nextimage list handling. Instead add all modules using TLS to
3898 dl_tls_dtv_slotinfo_list.
3899 * elf/dl-open.c (dl_open_worker): After successfully loading all
3900 objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
3901 * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
3902 empty segment don't do anything. Remove handling of initimage list.
3903 * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
3904 (GLIBC_PRIVATE): Add _dl_tls_symaddr.
3905 * elf/dl-minimal.c: Define __libc_memalign.
3906 * elf/dl-support.c: Remove _dl_initimage_list. Add
3907 _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
3908 _dl_tls_generation.
3909 * include/stdlib.h: Declare __libc_memalign.
3910
3911 * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
3912 * elf/tst-tls4.c: New file.
3913 * elf/tst-tls5.c: New file.
3914 * elf/tst-tlsmod2.c: New file.
3915
3916 * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
3917
3918 * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
3919
3920 * elf/tst-tls1.c: Use test-skeleton.c.
3921 * elf/tst-tls2.c: Likewise.
3922 * elf/tst-tls3.c: Likewise.
3923
3924 * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
3925
e12ddba5
AJ
39262002-02-08 Daniel Jacobowitz <drow@mvista.com>
3927
aed283dd 3928 * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
e12ddba5 3929
32083fb8
UD
39302002-02-10 Ulrich Drepper <drepper@redhat.com>
3931
73a03a76
UD
3932 * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
3933
2e36cb48
UD
3934 * elf/tst-tls3.c: New file.
3935 * elf/tst-tlsmod1.c: New file.
3936 * elf/Makefile: Add rules to build and run tst-tls3.
3937
3938 * sysdeps/i386/dl-machine.h: Include <tls.h>.
3939 (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
3940 TLS relocations.
3941
7670e25a
UD
3942 * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
3943
7331ca4d
UD
3944 * po/fr.po: Update from translation team.
3945
3946 * elf/tls-macros.h: Add alternative macros for use in PIC.
3947
f1cc669a
UD
3948 * elf/dl-lookup.c: Include <tls.h>.
3949 * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
3950
a330abe2
UD
3951 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
3952 required by passing pointer to last element of the list.
3953
3954 * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
3955 l_tls_initimage to a place where it actually is performed.
3956
03af5793
UD
3957 * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
3958 after globfree() calls.
3959
87837aac
UD
3960 * elf/dl-deps.c (struct openaux_args): Add open_mode element.
3961 (openaux): Pass open_mode as new last argument to _dl_map_object.
3962 (_dl_map_object_deps): Add new argument open_mode. Initialize
3963 open_mode element of args variable with it.
3964 * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
3965 _dl_map_object_deps.
3966 * elf/rtld.c (dl_main): Add zero as last parameter to
3967 _dl_map_object_deps call.
3968 * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
3969 * elf/nodlopen2.c: New file.
3970 * elf/nodlopenmod2.c: New file.
3971 * elf/Makefile: Add rules to build and run nodlopen2.
3972
2cef4257 3973 * elf/tst-tls1.c: Move TLS helper macros to...
a330abe2 3974 * elf/tls-macros.h: ...here. New file.
2cef4257
UD
3975 * elf/tst-tls2.c: New file.
3976 * elf/Makefile (tests): Add tst-tls2.
3977 (distribute): Add tls-macros.h.
3978
a5176eab
UD
3979 * po/sv.po: Update from translation team.
3980
27cd3298
UD
3981 * elf/tst-tls1.c (main): Add complete set of tests. Split
3982 architecture specific definitions from the actual test code.
3983
32083fb8
UD
3984 * po/tr.po: Update from translation team.
3985
3065b0c7
UD
39862002-02-09 Ulrich Drepper <drepper@redhat.com>
3987
b123d06e
UD
3988 * elf/Makefile (tests): Add tst-tls1.
3989 * elf/tst-tls1.c: New file.
3990
3991 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
3992 alignment of TCB for now.
3993
3994 * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
3995 initialization image for the application itself.
3996
3065b0c7 3997 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
b123d06e 3998 loop to initialize TLS block.
3065b0c7 3999
87837aac 40002002-02-08 Richard Henderson <rth@redhat.com>
67eb7235
UD
4001
4002 * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
4003 _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
4004
2a535bf6
UD
4005 * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
4006
67eb7235
UD
40072002-02-09 Jakub Jelinek <jakub@redhat.com>
4008
4009 * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
4010
a52d1562
UD
40112002-02-08 Ulrich Drepper <drepper@redhat.com>
4012
67eb7235
UD
4013 * po/ca.po: Update from translation team.
4014 * po/sk.po: Likewise.
4015
a52d1562
UD
4016 * elf/rtld.c (_dl_start_final): Install DTV explicitly.
4017 (dl_main): Move dtv/static TLS handling before relocation.
4018 Unconditionally call _dl_tlsoffset. Call _dl_allocate_tls and
4019 TLS_INIT_TP to allocate and install the dtv/static TLS block.
4020 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
4021 so far uses TLS initialize GL(dl_tls_static_size) and
4022 GL(dl_tls_static_align) to account for the TCB.
4023 (_dl_allocate_tls): New function.
4024 * sysdeps/generic/ldsodefs.h (rtld_global): Add
4025 _dl_initial_dtv_malloced.
4026
4027 * configure.in: Test for __builtin_memset more realistically.
4028
3065b0c7 4029 * csu/version.c (banner): If TLS support is available say so.
a52d1562 4030
0f0d61ad
AJ
40312002-02-04 H.J. Lu <hjl@gnu.org>
4032
4033 * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
4034 __attribute_used__.
4035 (__dl_runtime_resolve): Likewise.
4036
4037 * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
4038 declaration.
4039
bc632c07
AJ
40402001-11-15 H.J. Lu <hjl@gnu.org>
4041
4042 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
4043 <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
4044
4045 * sysdeps/unix/sysv/linux/mips/sys/user.h: New.
4046
c899461b
AJ
40472002-02-07 H.J. Lu <hjl@gnu.org>
4048
4049 * sysdeps/mips/atomicity.h (compare_and_swap): Remove
4050 ".set noreorder".
4051 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
4052 Likewise.
4053
06d3b079
UD
40542002-02-07 Ulrich Drepper <drepper@redhat.com>
4055
96beb563
UD
4056 * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
4057
eee868c3
UD
4058 * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
4059 ___tls_get_addr_internal.
4060 (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
4061
06d3b079
UD
4062 * po/ko.po: Update from translation team.
4063
935fbdbd
UD
40642002-02-07 Jakub Jelinek <jakub@redhat.com>
4065
4066 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
4067 attribute, change __pad{1,2} type to unsigned int.
4068 (struct stat64): Remove packed attribute.
4069
04b6da27
UD
40702002-02-07 Ulrich Drepper <drepper@redhat.com>
4071
4072 * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
4073
d555194c
UD
40742002-02-07 Andreas Schwab <schwab@suse.de>
4075
4076 * configure.in: Fix check for -zcombreloc.
4077
40782002-02-06 H.J. Lu <hjl@gnu.org>
4079
4080 * config.h.in (HAVE_BUILTIN_MEMSET): New.
4081 * configure.in: Check if __builtin_memset really works.
4082 * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
4083 __GNUC_PREREQ (2, 96) before using __builtin_memset.
4084
40852002-02-06 Jakub Jelinek <jakub@redhat.com>
4086
4087 * io/bug-ftw3.c (main): Don't try the test if root.
4088
40892002-02-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
4090
4091 * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
4092 constraints.
4093 * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
4094 Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
4095 * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
4096 Likewise.
4097 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
4098 a weak alias for __clone.
4099 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
4100 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
4101 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
4102 * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
4103 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
4104 a weak alias for __mmap64.
4105
22c7c5e7
AJ
41062002-02-05 H.J. Lu <hjl@gnu.org>
4107
d555194c 4108 * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
22c7c5e7
AJ
4109 (atomic_add): Likewise.
4110 (compare_and_swap): Likewise.
d555194c 4111 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
22c7c5e7 4112
cd30b01e
UD
41132002-02-07 Ulrich Drepper <drepper@redhat.com>
4114
d555194c
UD
4115 * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
4116
cd30b01e
UD
4117 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
4118 alignment of the TCB and store total size and alignment of static
4119 TLS block in _dl_tls_static_size and _dl_tls_static_align.
4120 tls_index is a typedef.
4121 * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
4122 _dl_tls_static_align.
4123 * sysdeps/i386/dl-tls.h: tls_index is a typedef.
4124 * elf/dl-support.c: Define _dl_tls_static_size and
4125 _dl_tls_static_align.
4126
8d4b5a8a
UD
41272002-02-06 Ulrich Drepper <drepper@redhat.com>
4128
4129 * configure.in: Add --without-tls option.
4130 * sysdeps/i386/elf/configure.in: Don't check for TLS support if
4131 --without-tls is given.
4132
4133 * sysdeps/generic/dl-tls.c: Include <tls.h>.
4134
4135 * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
4136
9813e103
RM
41372002-02-06 Roland McGrath <roland@frob.com>
4138
a9177ff5
RM
4139 * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
4140 * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
4141
48a5e010
RM
4142 * scripts/versions.awk: Improve error message for missing version.
4143 Each version inherits from the last one only if they have the same
4144 nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
4145 but not GLIBC_x and FOO_y.
4146
4147 * scripts/firstversions.awk: Handle libraries that don't have each
4148 particular version named in the third column of shlib-versions.
4149
9813e103
RM
4150 * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
4151
3fb55878
UD
41522002-02-06 Ulrich Drepper <drepper@redhat.com>
4153
4154 * Versions.def [ld]: Add GLIBC_2.3.
4155 * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
4156 * elf/Makefile (dl-routines): Add dl-tls.
4157 (distribute): Add dl-tls.h.
4158 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
4159 _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
4160 Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
4161 * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
4162 along with the other info in the link map. Change queueing of init
4163 images for double linked list. Use _dl_next_tls_modid to compute
4164 l_tls_modid.
4165 * elf/rtld.c (_dl_start_final): Store alignment requirement
4166 along with the other info in rtld map and executable map.
4167 (dl_main): Add ld.so to the init image list if necessary. Compute
4168 final module ID with _dl_next_tls_modid.
4169 * include/link.h (struct link_map): Add l_tls_previmage and
4170 l_tls_align.
4171 * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
4172 * sysdeps/i386/elf/Versions: New file.
4173 * sysdeps/generic/dl-tls.c: New file.
4174 * sysdeps/generic/dl-tls.h: New file.
4175 * sysdeps/i386/dl-tls.h: New file.
4176
333f8fbe
RM
41772002-02-06 Roland McGrath <roland@frob.com>
4178
4179 * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
4180 * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
4181
fb190a04
RM
41822002-01-05 Roland McGrath <roland@frob.com>
4183
4184 * sysdeps/mach/configure.in: New file.
4185 * sysdeps/mach/configure: New generated file.
4186
4187 * mach/Makefile (user-interfaces): Remove default_pager_helper.
4188 It has never been used by anything.
4189
2c1a22e1
AJ
41902002-02-06 H.J. Lu <hjl@gnu.org>
4191
4192 * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
4193 is included.
4194
0796ef15
UD
41952002-02-06 Ulrich Drepper <drepper@redhat.com>
4196
4197 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
3fb55878 4198 attribute((packed)) to counter stupid people misusing gcc options.
0796ef15
UD
4199 (struct stat64): Likewise.
4200
42012002-02-05 Ulrich Drepper <drepper@redhat.com>
4202
4203 * elf/rtld.c (dl_main): Correct indentation. Use bool as type for
4204 the variables which are used as booleans.
4205
cff26a3e
AJ
42062002-02-06 Andreas Jaeger <aj@suse.de>
4207
4208 * include/libc-symbols.h (INTUSE): Renamed from INT.
4209 * elf/dl-deps.c: Change users.
4210 * sysdeps/generic/dl-sysdep.c: Likewise.
4211 * sysdeps/generic/dl-cache.c: Likewise.
4212 * elf/dl-reloc.c: Likewise.
4213 * elf/rtld.c: Likewise.
4214 * elf/dl-version.c: Likewise.
4215 * elf/dl-load.c: Likewise.
4216 * elf/dl-dst.h: Likewise.
4217 * elf/dl-init.c: Likewise.
64b6bd34
AJ
4218 * elf/dl-error.c: Likewise.
4219 * elf/dl-fini.c: Likewise.
4220 * elf/dl-runtime.c: Likewise.
4221 * elf/do-lookup.h: Likewise.
4d559293
AJ
4222
4223 * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
4224 definition.
4225 * stdio-common/_itowa.h: Likewise.
4226
f2b98f97
UD
42272002-02-05 Ulrich Drepper <drepper@redhat.com>
4228
37beecf7
UD
4229 * elf/dl-minimal.c: Define _itoa_lower_digits.
4230
4231 * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
4232 DT_FLAGS set.
4233
ec70c011
UD
4234 * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
4235 loading modules with the DF_STATIC_TLS flag set.
4236 * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
4237 element.
4238 * include/link.h (struct link_map): Add l_flags field.
4239 * elf/elf.h (DF_STATIC_TLS): New definition.
4240
472d82fc
UD
4241 * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
4242 * dlfcn/bug-dlopen1.c: New file. By Bruno Haible.
4243
37d8b778
UD
4244 * elf/rtld.c (process_dl_debug): Correct printing help message.
4245 * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
4246 for %s.
4247
f2b98f97
UD
4248 * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
4249 definition and pass &errno in use of this variable.
4250 Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
4251
42522002-02-04 Andreas Schwab <schwab@suse.de>
4253
4254 * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
4255 * locale/programs/charmap-dir.c: Wrap calls that output messages
4256 with WITH_CUR_LOCALE. Include "localedef.h" first.
4257 * locale/programs/charmap.c: Likewise.
4258 * locale/programs/ld-address.c: Likewise.
4259 * locale/programs/ld-collate.c: Likewise.
4260 * locale/programs/ld-ctype.c: Likewise.
4261 * locale/programs/ld-identification.c: Likewise.
4262 * locale/programs/ld-measurement.c: Likewise.
4263 * locale/programs/ld-messages.c: Likewise.
4264 * locale/programs/ld-monetary.c: Likewise.
4265 * locale/programs/ld-name.c: Likewise.
4266 * locale/programs/ld-numeric.c: Likewise.
4267 * locale/programs/ld-paper.c: Likewise.
4268 * locale/programs/ld-telephone.c: Likewise.
4269 * locale/programs/ld-time.c: Likewise.
4270 * locale/programs/linereader.c: Likewise.
4271 * locale/programs/linereader.h: Likewise.
4272 * locale/programs/localedef.c: Likewise.
4273 * locale/programs/locfile.c: Likewise.
4274 * locale/programs/repertoire.c: Likewise.
4275
a2f1f5cb
UD
42762002-02-05 Ulrich Drepper <drepper@redhat.com>
4277
47536120
UD
4278 * elf/rtld.c (_dl_start_final): Determine load address to locate
4279 ehdr with GL(dl_rtld_map).l_map_start.
4280
31e592f7
UD
4281 * po/ca.po: Update from translation team.
4282
a2f1f5cb 4283 * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
96f208a4
UD
4284 * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
4285 header entry.
a2f1f5cb
UD
4286 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
4287 _dl_tls_module_cnt.
96f208a4 4288 * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
a2f1f5cb 4289
67ddea92
UD
42902002-02-04 Ulrich Drepper <drepper@redhat.com>
4291
5d6feea8
UD
4292 * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
4293 * include/link.h (struct link_map): Add various members for TLS
4294 information.
4295 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
4296 _rtld_tlsoffset, add _dl_initimage_list.
4297 * sysdeps/i386/dl-lookupcfg.h: New file.
4298 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
4299 TLS relocation. When using TLS we now use RESOLVE_MAP.
4300 (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
4301 is used.
4302
4303 * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
4304 unused.
4305
535b764d
UD
4306 * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
4307 thread-pointer as soon as possible.
4308 * sysdeps/generic/ldsodefs.h: Include <tls.h>. Define first TLS
4309 elements in rtld_global.
4310 * sysdeps/generic/tls.h: New file.
4311 * elf/Makefile (distribute): Add tls.h.
4312 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
4313 relocations. Not complete yet.
4314
4315 * resolv/resolv.h: Allow user to define __need_res_state and only
4316 define __res_start structure then.
4317 * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
4318
67ddea92
UD
4319 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
4320 dl_cpuclock_offset initialization to _dl_start_final.
4321 (_dl_show_auxv): Avoid unnecessary sign extension.
4322 * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
4323
e23f8d20
UD
43242002-02-03 Ulrich Drepper <drepper@redhat.com>
4325
4326 * config.h.in: Add HAVE_TLS_SUPPORT.
4327 * sysdeps/i386/elf/configure.in: New file.
4328
9710f75d
UD
43292002-02-03 Andreas Schwab <schwab@suse.de>
4330
4331 * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
4332 * sysdeps/posix/writev.c: Use ssize_t for bytes_written. Fix comment.
4333
43342002-02-03 Thorsten Kukuk <kukuk@suse.de>
4335
4336 * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
4337 alloca if the memory reqirements are too high.
4338
43392002-02-03 Ulrich Drepper <drepper@redhat.com>
4340
4341 * elf/dl-load.c (decompose_rpath): Avoid using strstr.
4342 * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
4343 the former is available anyway and speed isn't important here.
4344 * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
4345 * elf/dl-version.c (match_symbol): Likewise.
4346 (_dl_check_map_versions): Likewise.
4347 * elf/rtld.c (process_envvars): Likewise.
4348 (print_statistics): Likewise.
4349 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
4350 * elf/dl-minimal.c (_itoa): Always define it. Make it work for all
4351 bases. Add assert to catch uses of unimplemented features.
4352 (__strsep): Add assert to catch uses of unimplemented features.
4353 * elf/dl-object.c (_dl_new_object): Don't use rawmemchr. Use strchr
4354 and avoid inline optimization.
4355 * elf/rtld.c (process_envvars): Likewise.
4356 * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
4357 * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
4358 * elf/rtld.c (dl_main): Avoid strsep inline optimization.
4359
654a7a0c
UD
43602002-02-02 Ulrich Drepper <drepper@redhat.com>
4361
9710f75d
UD
4362 * stdio-common/_itoa.h: Minor simplifications of the code.
4363 * stdio-common/_itoa.c: Likewise.
4364
4365 * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
4366 instead of _dl_printf for debugging info output.
4367
654a7a0c
UD
4368 * manual/examples/mkfsock.c (make_named_socket): Make sure name is
4369 always NUL-terminated. Patch by Chris D. Sloan <cds@cs.hmc.edu>.
4370
5c1159b6
UD
43712002-02-01 H.J. Lu <hjl@gnu.org>
4372
9710f75d 4373 * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
5c1159b6
UD
4374 (atomic_add): Likewise.
4375 (compare_and_swap): Return 0 only when failed to compare. Use
4376 branch likely.
4377
4378 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
4379 branch likely.
4380
43812002-02-03 kaz Kojima <kkojima@rr.iij4u.or.jp>
4382
4383 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
4384
43852002-02-02 Ulrich Drepper <drepper@redhat.com>
4386
4387 * elf/dl-minimal.c (__strsep): New minimal implementation.
4388
b5ef404e
UD
43892002-02-02 Paul Eggert <eggert@twinsun.com>
4390
4391 * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
4392 (__mktime_internal): If no tm_isdst is requested, prefer solutions
4393 with tm_isdst > 0 when the requested time falls within a
4394 spring-forward gap [PR libc/2894].
4395
352b06fd
UD
43962002-02-03 Andreas Schwab <schwab@suse.de>
4397
4398 * stdio-common/tst-rndseek.c: Increase timeout.
4399
379d4ec4
UD
44002002-02-02 Ulrich Drepper <drepper@redhat.com>
4401
7969407a
UD
4402 Change ld.so to not use functions which are exported. One cannot
4403 interpose them anyway. Use INT() to mark uses, INTDEF() to mark
4404 definitions.
4405 * include/libc-symbols.h: Define INT and INTDEF.
4406 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
4407 _dl_signal_error_internal, _dl_map_object_internal,
4408 _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
4409 _dl_lookup_versioned_symbol_internal,
4410 _dl_relocate_object_internal, _dl_debug_state_internal,
4411 _dl_start_profile_internal, and _dl_unload_cache_internal.
4412 * include/dlfcn.h: Declare _dl_catch_error_internal.
4413 * elf/rtld.c: Use INT for calls to any of the *_internal functions
4414 above. Add INTDEF to function definitions.
4415 * elf/dl-debug.c: Likewise.
4416 * elf/dl-deps.c: Likewise.
4417 * elf/dl-dst.h: Likewise.
4418 * elf/dl-error.c: Likewise.
4419 * elf/dl-fini.c: Likewise.
4420 * elf/dl-init.c: Likewise.
4421 * elf/dl-load.c: Likewise.
4422 * elf/dl-lookup.c: Likewise.
4423 * elf/dl-misc.c: Likewise.
4424 * elf/dl-open.c: Likewise.
4425 * elf/dl-profile.c: Likewise.
4426 * elf/dl-reloc.c: Likewise.
4427 * elf/dl-runtime.c: Likewise.
4428 * elf/dl-version.c: Likewise.
4429 * elf/do-lookup.h: Likewise.
4430 * sysdeps/generic/dl-cache.c: Likewise.
4431 * sysdeps/generic/dl-sysdep.c: Likewise.
4432 * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
4433 instead of _dl_init.
4434 * sysdeps/arm/dl-machine.h: Likewise.
4435 * sysdeps/cris/dl-machine.h: Likewise.
4436 * sysdeps/hppa/dl-machine.h: Likewise.
4437 * sysdeps/i386/dl-machine.h: Likewise.
4438 * sysdeps/ia64/dl-machine.h: Likewise.
4439 * sysdeps/m68k/dl-machine.h: Likewise.
4440 * sysdeps/mips/dl-machine.h: Likewise.
4441 * sysdeps/mips/mips64/dl-machine.h: Likewise.
4442 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
4443 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
4444 * sysdeps/sh/dl-machine.h: Likewise.
4445 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
4446 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
4447 * sysdeps/x86_64/dl-machine.h: Likewise.
4448 * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
4449
4450 * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
4451 and _dl_debug_initialize.
4452
88794e30
UD
4453 * elf/dl-object.c (_dl_new_object): Avoid using strrchr. We have
4454 more information.
4455 * elf/rtld.c (dl_main): Avoid strrchr.
4456 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
4457 result of readlink. Search from the back for '/'.
4458
1e823b7d
UD
4459 * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
4460 strncpy if possible.
4461
379d4ec4
UD
4462 * sysdeps/generic/dl-environ.c (unsetenv): Optimize. Don't use
4463 strncmp.
4464 * elf/dl-load.c (is_dst): Optimize. Don't call strncmp twice.
4465 * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
4466 strspn, and strcspn.
4467 (process_envvars): Don't use strcspn.
4468
4469 * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
4470 (_dl_dst_substitute): Likewise.
4471
56c57442
UD
44722002-02-01 Ulrich Drepper <drepper@redhat.com>
4473
e0f41886
UD
4474 * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
4475 code which is never used when relocating ld.so itself.
4476
56c57442
UD
4477 * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
4478 starting ld.so itself. Move l_addr variable initialization closer
4479 to use.
e0f41886 4480 (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
56c57442 4481
fb23eb25
UD
44822002-02-01 Jakub Jelinek <jakub@redhat.com>
4483
4484 * Versions.def (libc): Add GLIBC_PRIVATE.
4485 (libdb, libnss_db, libdb1): Remove.
4486 (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
4487 libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
4488 (libpthread): Add GLIBC_PRIVATE.
4489 (libresolv): Likewise, remove GLIBC_2.1.
4490 (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
4491 GLIBC_2.2.3, GLIBC_2.3.
4492 * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
4493 * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
4494 _dl_sym, _dl_vsym): Likewise.
4495 (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
4496 _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
4497 _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
4498 _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
4499 _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
4500 _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
4501 _dl_relocate_object, _dl_signal_error, _dl_start_profile,
4502 _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
4503 Likewise.
4504 (_dl_object_relocation_scope): Remove.
4505 * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
4506 * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
4507 __gconv_cache): Move to GLIBC_PRIVATE.
4508 * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
4509 __internal_setnetgrent): Likewise.
4510 * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
4511 __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
4512 * locale/Versions (__collate_element_hash, __collate_element_strings,
4513 __collate_symbol_classes, __collate_symbol_hash,
4514 __collate_symbol_strings, _nl_current_LC_COLLATE,
4515 _nl_current_LC_CTYPE): Likewise.
4516 * misc/Versions (__libc_fsync, __libc_msync): Likewise.
4517 * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
4518 (libnss_nis, libnss_nisplus): Likewise.
4519 * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
4520 _nss_files_parse_spent): Move to GLIBC_PRIVATE.
4521 (libnss_files): Move all symbols to GLIBC_PRIVATE.
4522 * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
4523 __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
4524 __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
4525 * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
4526 __ns_get16, __ns_samename): Likewise.
4527 (libnss_dns): Move all symbols to GLIBC_PRIVATE.
4528 * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
4529 GLIBC_PRIVATE.
4530 * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
4531 __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
4532 __libc_connect): Likewise.
4533 * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
4534 Likewise.
4535 * stdlib/Versions (__libc_system): Likewise.
4536 * sunrpc/Versions (__rpc_thread_destroy): Likewise.
4537 * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
4538 * sysdeps/ia64/fpu/Versions: Likewise.
4539 * sysdeps/ia64/Versions: Likewise.
4540 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
4541 * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
4542 to GLIBC_PRIVATE.
4543 * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
4544 * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
4545 __libc_sigaction): Likewise.
4546 * termios/Versions (__libc_tcdrain): Likewise.
4547
4548 * misc/sys/cdefs (__attribute_noinline__): Define.
4549 * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
4550 __attribute_noinline__.
4551
4552 * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
4553 * elf/dl-xstat64.c: New file.
4554 * elf/dl-fxstat64.c: New file.
4555 * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
4556 don't export __fxstat64 at multiple versions.
4557 * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
4558 * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
4559
9c1084a3
UD
45602002-01-18 Isamu Hasegawa <isamu@yamato.ibm.com>
4561
4562 * locale/program/ld-collate.c (collate_finish): Assign a wide
4563 char collation sequence value to multi character collating
4564 elements, and avoid over writing by non-character elements.
4565
635f35fc
UD
45662002-02-01 Ulrich Drepper <drepper@redhat.com>
4567
4568 * elf/Makefile (distribute): Add dl-procinfo.c.
4569 * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
4570 * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
4571
27ef89fb
UD
45722002-02-01 Jakub Jelinek <jakub@redhat.com>
4573
4574 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
4575 definition.
4576 * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
4577 _rtld_global struct.
4578 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
4579 * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
4580 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
4581 * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
4582 * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
4583 _dl_fpu_control_set): Remove unused externs.
4584 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
4585 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
4586 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
4587 related variables in _rtld_global struct.
4588 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
4589 * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
4590 unused extern.
4591
a3a4f249
UD
45922002-02-01 Ulrich Drepper <drepper@redhat.com>
4593
4594 * sysdeps/generic/dl-procinfo.c: New file.
4595
78ce3057
AS
45962002-02-01 Andreas Schwab <schwab@suse.de>
4597
4598 * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
4599
50746436
UD
46002002-02-01 Ulrich Drepper <drepper@redhat.com>
4601
4602 * elf/rtld.c (_dl_start): Mark as internal_function.
4603 * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
4604 in register.
4605 (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
4606 General pretty printing.
4607
5688da55
UD
46082002-01-31 Ulrich Drepper <drepper@redhat.com>
4609
ccdf0cab
UD
4610 * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
4611 * elf/dl-reloc.c: Pretty printing.
4612 * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
4613 procinfo-related variables in rtld_global struct.
4614 * elf/dl-support.c: Likewise.
4615 * elf/rtld.c: Likewise.
4616 * sysdeps/i386/i686/Makefile: Likewise.
4617 * sysdeps/i386/i686/hp-timing.c: Likewise.
4618 * sysdeps/i386/i686/hp-timing.h: Likewise.
4619 * sysdeps/ia64/Makefile: Likewise.
4620 * sysdeps/ia64/hp-timing.c: Likewise.
4621 * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
4622 * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
4623 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
4624 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
4625 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
4626 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
4627 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
4628 * sysdeps/x86_64/Makefile: Likewise.
4629
5688da55
UD
4630 * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
4631 _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
4632 _dl_debug_fd to rtld_global.
4633 * elf/Versions: Likewise.
4634 * elf/dl-close.c: Likewise.
4635 * elf/dl-iteratephdr.c: Likewise.
4636 * elf/dl-lookup.c: Likewise.
4637 * elf/dl-misc.c: Likewise.
4638 * elf/dl-open.c: Likewise.
4639 * elf/dl-support.c: Likewise.
4640 * elf/do-lookup.h: Likewise.
4641 * elf/rtld.c: Likewise.
4642 * sysdeps/generic/dl-cache.c: Likewise.
4643 * sysdeps/generic/dl-sysdep.c: Likewise.
4644 * sysdeps/ia64/Versions: Likewise.
4645 * sysdeps/unix/clock_gettime.c: Likewise.
4646 * sysdeps/unix/clock_settime.c: Likewise.
4647 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
4648 * sysdeps/sparc/Versions: Removed.
4649 * sysdeps/i386/i686/Versions : Removed.
4650 * sysdeps/x86_64/Versions: Removed.
4651 * configure.in: Define HAVE_PROTECTED if .protected is available.
4652 * config.h.in: Add entry for HAVE_PROTECTED.
4653
46542002-01-31 Jakub Jelinek <jakub@redhat.com.
4655
4656 * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
4657 code in struct _rtld_global. Export this struct, remove all
4658 exports for the signal variables.
4659 * sysdeps/arm/dl-machine: Likewise.
4660 * sysdeps/generic/dl-origin: Likewise.
4661 * sysdeps/generic/dl-sysdep: Likewise.
4662 * sysdeps/generic/dl-cache: Likewise.
4663 * sysdeps/hppa/dl-fptr: Likewise.
4664 * sysdeps/hppa/dl-machine: Likewise.
4665 * sysdeps/cris/dl-machine: Likewise.
4666 * sysdeps/i386/dl-machine: Likewise.
4667 * sysdeps/ia64/dl-machine: Likewise.
4668 * sysdeps/m68k/dl-machine: Likewise.
4669 * sysdeps/mach/hurd/dl-sysdep: Likewise.
4670 * sysdeps/mips/mips64/dl-machine: Likewise.
4671 * sysdeps/mips/dl-machine: Likewise.
4672 * sysdeps/powerpc/elf/libc-start: Likewise.
4673 * sysdeps/powerpc/dl-machine: Likewise.
4674 * sysdeps/powerpc/dl-start: Likewise.
4675 * sysdeps/sparc/sparc32/dl-machine: Likewise.
4676 * sysdeps/sparc/sparc64/dl-machine: Likewise.
4677 * sysdeps/sh/dl-machine: Likewise.
4678 * sysdeps/s390/s390-32/dl-machine: Likewise.
4679 * sysdeps/s390/s390-64/dl-machine: Likewise.
4680 * sysdeps/unix/sysv/aix/libc-start: Likewise.
4681 * sysdeps/unix/sysv/aix/start-libc: Likewise.
4682 * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
4683 * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
4684 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
4685 * sysdeps/x86_64/dl-machine: Likewise.
4686
a204ea36
UD
46872002-01-31 Ulrich Drepper <drepper@redhat.com>
4688
4689 * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
4690 are too high.
4691
46922002-01-31 Andreas Schwab <schwab@suse.de>
4693
4694 * sysdeps/posix/readv.c: Check for ssize_t overflow.
4695
46962002-01-31 Andreas Schwab <schwab@suse.de>
4697
4698 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
4699 reference to _dl_pagesize.
4700
d6b5d570
UD
47012002-01-30 Ulrich Drepper <drepper@redhat.com>
4702
4703 * Versions.def [ld]: Add GLIBC_2.3.
4704 * elf/dl-addr.c: Move global variables for SHARED code in struct
4705 _rtld_global. Export this struct, remove all exports for the
4706 signal variables.
4707 * elf/dl-close.c: Likewise.
4708 * elf/dl-conflict.c: Likewise.
4709 * elf/dl-debug.c: Likewise.
4710 * elf/dl-deps.c: Likewise.
4711 * elf/dl-dst.h: Likewise.
4712 * elf/dl-error.c: Likewise.
4713 * elf/dl-fini.c: Likewise.
4714 * elf/dl-init.c: Likewise.
4715 * elf/dl-iteratephdr.c: Likewise.
4716 * elf/dl-libc.c: Likewise.
4717 * elf/dl-load.c: Likewise.
4718 * elf/dl-lookup.c: Likewise.
4719 * elf/dl-minimal.c: Likewise.
4720 * elf/dl-object.c: Likewise.
4721 * elf/dl-open.c: Likewise.
4722 * elf/dl-profile.c: Likewise.
4723 * elf/dl-profstub.c: Likewise.
4724 * elf/dl-reloc.c: Likewise.
4725 * elf/dl-runtime.c: Likewise.
4726 * elf/dl-support.c: Likewise.
4727 * elf/dl-sym.c: Likewise.
4728 * elf/dl-version.c: Likewise.
4729 * elf/do-lookup.h: Likewise.
4730 * elf/do-rel.h: Likewise.
4731 * elf/dynamic-link.h: Likewise.
4732 * elf/rtld.c: Likewise.
4733 * sysdeps/generic/dl-cache.c: Likewise.
4734 * sysdeps/generic/dl-sysdep.c: Likewise.
4735 * sysdeps/generic/ldsodefs.h: Likewise.
4736 * sysdeps/generic/libc-start.c: Likewise.
4737 * sysdeps/i386/dl-machine.h: Likewise.
4738 * sysdeps/ia64/dl-fptr.c: Likewise.
4739 * sysdeps/ia64/dl-machine.h: Likewise.
4740 * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
4741 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
4742 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
4743 * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
4744 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
4745 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
4746 * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
4747 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
4748
e66d0a4c
UD
47492002-01-29 Ulrich Drepper <drepper@redhat.com>
4750
1b4575ae
UD
4751 * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
4752 to avoid warning
4753 (DL_STATIC_FUNCTION_ADDRESS): Likewise.
4754
be4b5a95
UD
4755 * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
4756 SHARED version.
4757 * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
4758
e66d0a4c
UD
4759 * elf/rtld.c (_dl_start): Use __builtin_memset if available.
4760
9d7810d8
UD
47612002-01-29 Ben Collins <bcollins@debian.org>
4762
4763 * string/bits/string2.h (__mempcpy): Protect size arg for
4764 addition when using __builtin_memcpy.
4765
92f120d4
UD
47662002-01-29 Ulrich Drepper <drepper@redhat.com>
4767
207b66ce
UD
4768 * stdlib/Makefile (tests): Add tst-qsort.
4769 * stdlib/tst-qsort.c: New file. Written by Paul Eggert.
4770
afdef815
UD
4771 * manual/signal.texi (Process Signal Mask): Document that
4772 pthread_sigmask, not sigprocmask, must be used in MT programs.
4773 Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
4774
92f120d4
UD
4775 * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
4776 found.
4777 * misc/Makefile (tests): Add tst-hsearch.
4778 * misc/tst-hsearch.c: New file.
4779
fa8d436c
UD
47802002-01-18 Wolfram Gloger <wg@malloc.de>
4781
4782 * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
4783 * malloc/malloc.h: Likewise.
d6b5d570 4784 * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
fa8d436c
UD
4785 * malloc/arena.c: New file.
4786 * malloc/hooks.c: New file.
4787 * malloc/tst-mallocstate.c: New file.
4788 * malloc/Makefile: Add new testcase tst-mallocstate.
4789 Add arena.c and hooks.c to distribute. Fix commented CPPFLAGS.
4790
47912002-01-28 Ulrich Drepper <drepper@redhat.com>
4792
4793 * stdlib/msort.c: Remove last patch. The optimization violates the
4794 same rule which qsort.c had problems with.
4795
47962002-01-27 Paul Eggert <eggert@twinsun.com>
4797
4798 * stdlib/qsort.c (_quicksort): Do not apply the comparison function
4799 to a pivot element that lies outside the array to be sorted, as
4800 ISO C99 requires that the comparison function be called only with
4801 addresses of array elements [PR libc/2880].
4802
b45b9457
UD
48032002-01-28 Ulrich Drepper <drepper@redhat.com>
4804
db2ebcef
UD
4805 * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
4806 for SHARED code. Reported by Ben Collins <bcollins@debian.org>.
4807
b45b9457
UD
4808 * timezone/asia: Update from tzdata2002b.
4809 * timezone/australasia: Likewise.
4810 * timezone/backward: Likewise.
4811 * timezone/europe: Likewise.
4812 * timezone/leapseconds: Likewise.
4813 * timezone/iso3166.tab: Likewise.
4814 * timezone/zone.tab: Likewise.
4815
0295d266
UD
48162002-01-23 Richard Henderson <rth@redhat.com>
4817
4818 * sysdeps/alpha/Makefile (pic-ccflag): New variable.
4819
48202002-01-28 Ulrich Drepper <drepper@redhat.com>
4821
4822 * string/strxfrm.c: Allocate one more byte for rulearr and clear
4823 this element [PR libc/2855].
4824
4825 * string/strcoll.c: Handle zero-length arguments specially
4826 [PR libc/2856].
4827
48282002-01-23 Jakub Jelinek <jakub@redhat.com>
4829
4830 * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
4831 __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
4832 short lengths and constant src.
4833 (strcpy): Don't optimize for gcc 3.0+.
4834 (__stpcpy): For gcc 3.0+, don't use
4835 __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
4836 for short string literal src.
4837
48382002-01-23 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
4839
4840 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
4841 Set for arm, too.
4842
48432001-01-22 Paul Eggert <eggert@twinsun.com>
4844
4845 * manual/llio.texi (Linked Channels, Cleaning Streams):
4846 Make it clearer that a just-opened input stream might need cleaning.
4847
48482002-01-21 H.J. Lu <hjl@gnu.org>
4849
4850 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
4851 Don't use label at end of compound statement.
4852
2b94dab6
AJ
48532002-01-28 Stephen L Moshier <moshier@mediaone.net>
4854
4855 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
4856 Remove test for negative integer arg; sin_pi does it correctly.
4857
fbee8a1e
UD
48582002-01-20 Ulrich Drepper <drepper@redhat.com>
4859
4860 * nscd/Makefile (distribute): Filter out xmalloc.c.
4861
284749da
UD
48622002-01-19 Ulrich Drepper <drepper@redhat.com>
4863
4864 * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
4865 Set offset if read end wasn't the buffer end.
4866 (_IO_file_seekoff_mmap): New function.
4867 (_IO_file_xsgetn_mmap): New function.
4868 (_IO_file_jumps_mmap): Use the two new functions.
4869 * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
4870 != end buffer.
4871 * libio/libioP.h: Declare _IO_file_seekoff_mmap and
4872 _IO_file_underflow_mmap.
4873 * libio/iofopen.c: Don't position file descriptor at end of file.
4874 * libio/tst-widetext.c: Improve error messages.
4875 * stdio-common/tst-rndseek.c: Likewise.
4876
d7a746fc
UD
48772002-01-18 Ulrich Drepper <drepper@redhat.com>
4878
53e9699b
UD
4879 * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
4880 end of enum for !_GNU_SOURCE.
4881 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
4882 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
4883 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
4884 * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
4885 values unless _GNU_SOURCE.
4886
d7a746fc
UD
4887 * iconvdata/tcvn5712-1.c: Minor cleanups.
4888
a5a8c34e
AS
48892002-01-18 Andreas Schwab <schwab@suse.de>
4890
4891 * sysdeps/unix/sysv/linux/configure.in
4892 (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
4893
b750d5e7
UD
48942002-01-16 Roger Sayle <roger@eyesopen.com>
4895
4896 * stdlib/msort.c (msort_with_tmp): Replace implementation with
4897 more efficient "Towers of Hanoi" mergesort.
4898 (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
4899 for generic, sizeof(int) and sizeof(long) variants respectively.
4900
057685e4
UD
49012002-01-17 Ulrich Drepper <drepper@redhat.com>
4902
fbee8a1e 4903 * manual/syslog.texi (openlog): Describe possible problems with
b750d5e7
UD
4904 first parameter.
4905 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
4906
057685e4
UD
4907 * nscd/nscd.c (drop_privileges): Removed. Adjust caller.
4908 * nscd/connections.c (begin_drop_privileges): New function.
4909 (finish_drop_privileges): New function.
4910 (nscd_init): Call the new functions which also install all groups
4911 for the server user.
c3ea7bee 4912 * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
e093e5b9 4913 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
057685e4
UD
4914
49152002-01-17 H.J. Lu <hjl@gnu.org>
4916
4917 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
4918 `const' from `got'.
4919
52831fb8
UD
49202002-01-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
4921
4922 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
4923 instructions for pointer operations.
4924 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
4925
38aaf876
AJ
49262002-01-17 Andreas Jaeger <aj@suse.de>
4927
d425aefc
AJ
4928 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
4929 __uint128_t build-in.
4930
38aaf876
AJ
4931 * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
4932 PowerPC, sync with 2.2 branch.
4933
0308a475
UD
49342002-01-16 Ulrich Drepper <drepper@redhat.com>
4935
4936 * posix/getconf.c: Update copyright year.
4937 * nss/getent.c: Likewise.
4938 * nscd/nscd_nischeck.c: Likewise.
4939 * iconv/iconvconfig.c: Likewise.
4940 * iconv/iconv_prog.c: Likewise.
4941 * elf/ldconfig.c: Likewise.
4942 * catgets/gencat.c: Likewise.
4943 * csu/version.c: Likewise.
4944 * elf/ldd.bash.in: Likewise.
4945 * elf/sprof.c (print_version): Likewise.
4946 * locale/programs/locale.c: Likewise.
4947 * locale/programs/localedef.c: Likewise.
4948 * nscd/nscd.c (print_version): Likewise.
4949 * debug/xtrace.sh: Likewise.
4950 * malloc/memusage.sh: Likewise.
4951 * malloc/mtrace.pl: Likewise.
4952
49532002-01-16 Andreas Schwab <schwab@suse.de>
4954
4955 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
4956 reliably remove "-ia64" from rtld name.
4957
067c6a6d
UD
49582002-01-16 Ulrich Drepper <drepper@redhat.com>
4959
4960 * iconvdata/gb18030.c: Bug fixes and support for more characters.
4961 Patch by Yu Shao <yshao@redhat.com>.
4962
49632002-01-16 Martin Schwidefsky <schwidefsky@de.ibm.com>
4964
4965 * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
4966 * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
4967 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
4968
49692002-01-14 Martin Schwidefsky <schwidefsky@de.ibm.com>
4970
4971 * sysdeps/s390/fpu/libm-test-ulps: Update.
4972
6c69f24a
UD
49732002-01-11 Ulrich Drepper <drepper@redhat.com>
4974
4975 * elf/elf.h: Update x86 relocations.
4976
e57372d1
UD
49772002-01-10 Ulrich Drepper <drepper@redhat.com>
4978
4979 * locale/programs/charmap.c (new_width): Check whether byte
4980 sequences for both ends of range have the same length.
4981
d77a71c5
UD
49822002-01-09 Jakub Jelinek <jakub@redhat.com>
4983
4984 * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
4985
49862002-01-09 Jakub Jelinek <jakub@redhat.com>
4987
4988 * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
4989 string literals.
4990 (__full_ieee754_sqrt): Add __attribute_used__.
4991
49922002-01-10 Ulrich Drepper <drepper@redhat.com>
4993
4994 * sysdeps/generic/group_member.c (__group_member): Also check
4995 groups[0] [PR libc/2781].
4996
ab92bebd
UD
49972002-01-08 Ulrich Drepper <drepper@redhat.com>
4998
4999 * Makefile (distribute): Add scripts/cpp.
5000 * elf/Makefile (distribute): Add reldep6mod[01234].c,
5001 unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
5002 unwind-dw2-fde.h, and dwarf2.h.
5003 * sysdeps/unix/bsd/bsd4.4/Dist: New file.
5004 * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
5005 * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
5006 * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
5007
49fb04c2
RM
50082002-01-07 Roland McGrath <roland@frob.com>
5009
5010 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
5011 volatile on type of ARGC so the compiler doesn't get clever.
5012
8e504786
AJ
50132002-01-07 Andreas Jaeger <aj@suse.de>
5014
5015 * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
5016 * sysdeps/i386/bits/byteswap.h: Likewise.
5017 * sysdeps/ia64/bits/byteswap.h: Likewise.
5018 * sysdeps/m68k/bits/byteswap.h: Likewise.
5019 * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
4a10c7fe 5020 * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
8e504786 5021
8e57fc70
UD
50222002-01-02 Bruno Haible <bruno@clisp.org>
5023
5024 * intl/plural.y: Fix %expect count.
5025
a0dcb689
UD
50262002-01-03 Jakub Jelinek <jakub@redhat.com>
5027
5028 * elf/Makefile (routines, shared-only-routines): Add
5029 unwind-dw2-fde-glibc instead of unwind-dw2-fde.
5030 * elf/elf.h (PT_GNU_EH_FRAME): Define.
5031 * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
5032 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
5033 Optimize if .eh_frame section contains no FDEs.
5034 (__register_frame, __deregister_frame_info_bases,
5035 __deregister_frame): Likewise.
5036 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
5037 DW_CFA_restore handling.
5038
50392002-01-07 Stephen L Moshier <moshier@mediaone.net>
c195dcdd
AJ
5040
5041 * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
5042
5043 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
5044 for x < 0.25 and restore original range reduction method.
5045 (__ieee754_lgammal_r): Make sure signgam is set before returning.
5046
0469311e
UD
50472002-01-07 Ulrich Drepper <drepper@redhat.com>
5048
5049 * libio/fileops.c (_IO_file_underflow_mmap): New function.
5050 (_IO_file_close_mmap): New function.
5051 (_IO_file_jumps_mmap): New variable.
5052 * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
5053 trying to convert rest of byte buffer.
5054 (_IO_wfile_underflow_mmap): New function.
5055 (_IO_wfile_jumps_mmap): New variable.
5056 * libio/iofopen.c (__fopen_maybe_mmap): New function.
5057 (__fopen_internal): New function. Split out from _IO_new_fopen.
5058 (_IO_new_fopen): Call __fopen_internal.
5059 * libio/iofopen64.c: Just call __fopen_internal.
5060 * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
5061 successfully.
5062 * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
5063 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
5064 _IO_file_close_mmap.
5065
5066 * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
5067 * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
5068
5069 * stdio-common/Makefile (tests): Add tst-rndseek.
5070 * stdio-common/tst-rndseek.c: New file.
5071
93da2f2a
RM
50722002-01-05 Roland McGrath <roland@frob.com>
5073
5074 * config.h.in (HAVE_MIG_RETCODE): New #undef.
5075 * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
5076 swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
5077 * sysdeps/mach/hurd/configure: Regenerated.
5078
34263e4d
UD
50792002-01-03 Ulrich Drepper <drepper@redhat.com>
5080
5081 * elf/elf.h: Add more TLS definitions.
5082
184cbb9a
UD
50832002-01-02 Ulrich Drepper <drepper@redhat.com>
5084
5085 * include/features.h (__GLIBC_MINOR__): Bump to 3.
5086
f58f41f1
RM
50872002-01-02 Roland McGrath <roland@frob.com>
5088
05dea6d1
RM
5089 * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
5090 __sigisemptyset. Don't use MASK uninitialized.
5091
5092 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
5093 * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
5094 * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
5095 __sigdelset, __sigaddset, __sigorset.
5096
6ede11aa
RM
5097 * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
5098 * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
5099
2fee5d8b
RM
5100 * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
5101 _hurd_ports is null.
7595ddb8
RM
5102
5103 * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
5104 for old CMU and new OSF Mach interface flavors.
5105 * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
5106 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
5107
5108 * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
5109
5110 * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
5111 Pass extra arguments to task_create for OSF variant.
5112 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
5113
f58f41f1
RM
5114 * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
5115 conditional on [HAVE_AUX_VECTOR].
5116
5117 * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
5118 mach_msg_timeout_t as type of final argument.
5119
5120 * hurd/privports.c (__get_privileged_ports):
5121 Change host_priv_t to mach_port_t in argument type.
5122 * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
5123 Update decls.
5124
5125 * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
5126 multiple inclusion. Inhibit #error under [_SYS_UCONTEXT_H].
5127 * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
5128 * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
5129 * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
5130 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
5131
d244fd73
RM
51322002-01-01 Roland McGrath <roland@frob.com>
5133
5134 * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
5135
3327b955
UD
51362002-01-01 Ulrich Drepper <drepper@redhat.com>
5137
5138 * include/stdlib.h: Define inlines for the _l variants of the strto*
5139 functions.
5140
dcb00da6
RM
51412002-01-01 Roland McGrath <roland@frob.com>
5142
5143 * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
5144
5145 * mach/Machrules (MIG): Set CPP as well as CC.
5146
84fb7c8c
UD
51472001-12-31 Ulrich Drepper <drepper@redhat.com>
5148
5149 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
dc2fcb0a 5150 locale to parse /proc/loadavg [PR libc/2760].
84fb7c8c
UD
5151
51522001-12-31 Jakub Jelinek <jakub@redhat.com>
5153
5154 * elf/dl-conflict.c: Include sys/param.h.
5155 (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
5156 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
5157 warning.
5158 (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
5159 literals to avoid warnings.
5160
c7e23b4b
AJ
51612001-12-31 Andreas Jaeger <aj@suse.de>
5162
84fb7c8c 5163 * configure.in: Don't check for gsed since we do not use it anywhere.
c7e23b4b 5164
2903810a
UD
51652001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
5166
5167 * io/fts.c: Update from BSD to fix memory leaks.
5168
c2f5916e
UD
51692001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
5170
5171 * crypt/md5-crypt.c: Realloc error handling memory leak fix.
5172 * elf/chroot_canon.c: Likewise.
5173 * elf/dl-object.c: Likewise.
5174 * iconv/iconv_charmap.c: Likewise.
5175 * iconv/iconv_prog.c: Likewise.
5176 * libio/iogetdelim.c: Likewise.
5177 * locale/lc-time.c: Likewise.
5178 * stdlib/canonicalize.c: Likewise.
5179 * sunrpc/svc.c: Likewise.
5180 * sysdeps/generic/glob.c: Likewise.
5181
961d4a2e
UD
51822001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
5183
5184 * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
5185 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
5186 remove high order bit from the program counter.
5187 * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
5188
51892001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
5190
5191 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
5192 unnecessary code and add missing reloc types.
5193 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
5194 case for reloc type R_390_NONE.
5195
98519d62
AJ
51962001-12-28 Andreas Jaeger <aj@suse.de>
5197
5198 * io/bug-ftw3.c: Include string.h for prototypes.
5199
5200 * crypt/md5test.c (main): Remove unused variable.
5201
98519d62
AJ
5202 * dlfcn/modstatic.c: Add prototype to avoid warning.
5203
362f8329
RM
52042001-12-26 Roland McGrath <roland@frob.com>
5205
5206 * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
5207 check only (SS->pending & MASK) for the signal to return.
5208 From Jeroen Dekkers <jeroen@dekkers.cx>.
5209
43134040
RM
52102001-12-22 Roland McGrath <roland@frob.com>
5211
362f8329
RM
5212 * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
5213 Use preprocessor #if conditionals instead of `if' to avoid
5214 warnings about divide by zero in dead code.
5215
a5eb7027
RM
5216 * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
5217 _hurd_port_init, and __hurd_self_sigstate.
5218
43134040 5219 * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
43134040 5220
53c9459f
AJ
52212001-12-21 Andreas Jaeger <aj@suse.de>
5222
5223 * elf/dblloadmod1.c: Add prototype to avoid warning.
5224 * elf/dblloadmod2.c: Likewise.
5225 * elf/dblloadmod3.c: Likewise.
5226 * elf/reldepmod5.c: Likewise.
5227 * elf/reldepmod6.c: Likewise.
5228
5229 * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
5230 for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
5231 used on all architectures.
5232
5233 * sunrpc/svc_tcp.c: Add noreturn attribute for
5234 svctcp_rendezvous_abort.
5235 * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
5236
5237 * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
5238 to avoid warning.
5239
37de3d55
UD
52402001-12-19 Jakub Jelinek <jakub@redhat.com>
5241
5242 * manual/llio.texi (aio_fsync): Fix a typo.
5243 Patch by Tammy Fox <tfox@redhat.com>.
5244
9cddf9de
UD
52452001-12-18 Jakub Jelinek <jakub@redhat.com>
5246
5247 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
5248 stack bias from child stack pointer before passing it to clone syscall.
5249
52502001-12-18 Ulrich Drepper <drepper@redhat.com>
5251
5252 * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
5253 _SC_TZNAME_MAX.
5254 * sysdeps/generic/sysconf.c (__sysconf): Likewise.
5255 Reported by Thorsten Kukuk <kukuk@suse.de>.
5256
5257 * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
5258 add some casts.
5259
5260 * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
5261
52622001-12-18 Thorsten Kukuk <kukuk@suse.de>
5263
5264 * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
5265 conforming: return EBADF if file descriptor is invalid and EINVAL
5266 if file descriptor is no valid tty.
5267 * login/tst-grantpt.c: New file.
5268 * login/Makefile (tests): Add tst-grantpt.
5269
46089c83
UD
52702001-12-17 Ulrich Drepper <drepper@redhat.com>
5271
5272 * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
5273 different than implemented in last patch.
5274 * io/bug-ftw3.c: Adjust test for changed handling of
5275 inaccessibility of toplevel dir.
5276
a51751c2
RM
52772001-12-16 Roland McGrath <roland@frob.com>
5278
79dbd981
RM
5279 * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
5280 * grp/initgroups.c (internal_getgrouplist): Likewise.
5281
ca18306b
RM
5282 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
5283 `default:' to silence new GCC warning.
5284 Rewrite cast of lvalue to silence new GCC warning.
5285
5286 * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
5287
a51751c2
RM
5288 * sysdeps/mach/hurd/spawni.c: New file, by me with a
5289 couple fixes by Neal H Walfield <neal@cs.uml.edu>.
5290
0ce9cf88
UD
52912001-12-14 Ulrich Drepper <drepper@redhat.com>
5292
638621af 5293 * sysdeps/generic/strstr.c (strstr): Update. New optimized version.
8eadd4f3 5294 Patch by Stephen R. van den Berg.
638621af 5295
0ce9cf88
UD
5296 * crypt/md5.h: Define md5_uintptr.
5297
13c5a442
UD
52982001-12-13 Ulrich Drepper <drepper@redhat.com>
5299
2e22fed2
UD
5300 * libio/tst_swprintf.c (main): Add test for string argument with
5301 zero precision.
30bce7b6 5302 * stdio-common/Makefile (tests): Add tst-sprintf.
13c5a442
UD
5303 * stdio-common/tst-sprintf.c: New file.
5304
53052001-12-13 Andreas Schwab <schwab@suse.de>
5306
5307 * stdio-common/vfprintf.c (process_string_arg): Correctly handle
5308 zero precision with wide character string format.
5309
9b63f5b4
UD
53102001-12-13 Thorsten Kukuk <kukuk@suse.de>
5311
5312 * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
5313 but have a user supplied buffer, return the empty buffer, not NULL.
5314
0838e0b9
UD
53152001-12-13 Ulrich Drepper <drepper@redhat.com>
5316
5317 * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
5318 Patch by Eric Sharkey <sharkey@netrics.com>.
5319
5320 * crypt/md5test.c (main): Add test for multiple calls to
5321 __md5_process_bytes to itererate over input string.
5322
495818ce
UD
53232001-12-12 Ulrich Drepper <drepper@redhat.com>
5324
5325 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
5326 from __nis_findfastest. Take timeout value from parameter.
5327 (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
7afc5947
UD
5328 * nis/nis_intern.h: Define parameters controlling __nis_findfastest
5329 [PR libc/2520]. Patch by Alexander Belopolsky <alexb@rentec.com>.
495818ce 5330
35cd3c97
AJ
53312001-12-12 Andreas Jaeger <aj@suse.de>
5332
5333 * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
5334 combreloc test so that it works in this case.
5335
495818ce 5336 * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
35cd3c97 5337
2bfe5fd1
UD
53382001-12-12 NIIBE Yutaka <gniibe@m17n.org>
5339
5340 * sysdeps/sh/Makefile: New file.
5341 * sysdeps/sh/_mcount.S: New file.
5342 * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
5343 * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
5344
88a96b81
UD
53452001-12-11 Ulrich Drepper <drepper@redhat.com>
5346
5347 * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
5348 limitation [PR libc/2564].
5349
32e6df36
UD
53502001-12-11 Jakub Jelinek <jakub@redhat.com>
5351
5352 * elf/Makefile (dl-routines): Add conflict.
5353 (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
5354 (ld.so): Add _begin local symbol.
5355 * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
5356 Define.
5357 * elf/dl-deps.c (_dl_build_local_scope): New.
5358 (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
5359 of all libraries.
5360 * elf/do-rel.h (VALIDX): Define.
5361 (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
5362 lazy binding for RELA. If DT_GNU_PRELINKED, DT_RELACOUNT relocations
5363 can be skipped.
5364 * elf/dl-conflict.c: New file.
5365 * elf/dl-lookup.c (_dl_debug_bindings): New.
5366 (_dl_lookup_symbol): Use _dl_debug_bindings. Reference_name is always
5367 non-NULL.
5368 (_dl_lookup_symbol_skip): Likewise.
5369 (_dl_lookup_versioned_symbol): Likewise.
5370 (_dl_lookup_versioned_symbol_skip): Likewise.
5371 * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
5372 define to ElfW(Rel).
5373 * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
5374 tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
5375 ranges.
5376 Don't adjust address dynamic tags if l_addr is 0.
5377 * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
5378 (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
5379 (VALIDX, ADDRIDX): Define.
5380 (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
5381 (dl_main): Print library list for LD_TRACE_PRELINKING.
5382 If prelinking information can be used, skip relocating libraries and
5383 call _dl_resolve_conflicts instead.
5384 (process_envvars): Handle LD_TRACE_PRELINKING envvar.
5385 * elf/dl-load.c (_dl_map_object): Don't create fake libs
5386 if LD_TRACE_PRELINKING.
5387 * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
5388 + DT_ADDRNUM.
5389 * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
5390 (DL_DEBUG_PRELINK): Define.
5391 (_dl_resolve_conflicts): Add prototype.
5392
5393 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
5394 .plt for prelinked libraries where prelinking info cannot be used.
5395 (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
5396 section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
5397 * sysdeps/arm/bits/link.h: New file.
5398 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
5399 content of .got[1].
5400 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
5401 (ELF_MACHINE_PLT_REL): Define.
5402 (elf_machine_rela, elf_machine_rela_relative): New.
5403 (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
5404 of adjusting it if prelinked and prelinking cannot be used.
5405 * sysdeps/i386/bits/link.h: New file.
5406 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
5407 content of .got[1].
5408 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
5409 (ELF_MACHINE_PLT_REL): Define.
5410 (elf_machine_rela, elf_machine_rela_relative): New.
5411 (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
5412 of adjusting it if prelinked and prelinking cannot be used.
5413 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
5414 conflicts, skip finaladdr computation. Use RESOLVE_CONFLICT_FIND_MAP
5415 to find out map for R_PPC_JMP_SLOT relocs.
5416 * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
5417 (OPCODE_BA): Define.
5418 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
5419 libraries where prelinking info cannot be used.
5420 (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
5421 (elf_machine_fixup_plt): Call sparc_fixup_plt.
5422 (elf_machine_rela): Set value to 0 if relocating conflicts.
5423 Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
5424 * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
5425 (sparc64_fixup_plt): Fix a typo.
5426 (elf_machine_rela): Set value to 0 if relocating conflicts.
5427 Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
5428 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
5429 libraries where prelinking info cannot be used.
5430 * sysdeps/sh/bits/link.h: New file.
5431 * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
5432 content of .got[1].
5433 (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
5434 of adjusting it if prelinked and prelinking cannot be used.
5435 * sysdeps/s390/s390-32/bits/link.h: New file.
5436 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
5437 Save original content of .got[1].
5438 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
5439 of adjusting it if prelinked and prelinking cannot be used.
5440 * sysdeps/s390/s390-64/bits/link.h: New file.
5441 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
5442 Save original content of .got[1].
5443 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
5444 of adjusting it if prelinked and prelinking cannot be used.
5445 * sysdeps/x86_64/bits/link.h: New file.
5446 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
5447 Save original content of .got[1].
5448 (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
5449 of adjusting it if prelinked and prelinking cannot be used.
5450
4be601a1
UD
54512001-12-11 Ulrich Drepper <drepper@redhat.com>
5452
5453 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
5454 where appropriate instead of numbers. Little optimizations.
5455
4b08e10a
RM
54562001-12-10 Roland McGrath <roland@frob.com>
5457
a4969614
RM
5458 * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
5459 set it.
5460
c3853534
RM
5461 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
5462 set to GLIBC_2.2.5, not GLIBC_2.2.4.
5463
4b08e10a
RM
5464 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
5465 Fix conditionals so this is set by default for stdio and not for libio.
5466 * sysdeps/mach/hurd/configure: Regenerated.
5467
1b113598
UD
54682001-12-10 Thorsten Kukuk <kukuk@suse.de>
5469
5470 * io/ftw.c (ftw_startup): Check, if the path is search and readable.
5471
870a4e12
UD
54722001-12-10 Ulrich Drepper <drepper@redhat.com>
5473
1b113598
UD
5474 * io/Makefile (tests): Add bug-ftw3.
5475 * io/bug-ftw3.c: New file.
5476
870a4e12
UD
5477 * sysdeps/generic/glob.c (glob): Return only pattern if nothing
5478 matches and GLOB_NOCHECK is set.
5479 * posix/globtest.sh: Correct expected result for NOCHECK test.
5480
5481 * po/ca.po: Update from translation team.
5482
47e8b443
UD
54832001-12-09 Ulrich Drepper <drepper@redhat.com>
5484
5485 Implement transliteration of characters in strings of the locale
5486 definitions.
5487 * locale/programs/linereader.c: Adjust for additional parameter to
5488 lr_token.
5489 (get_string): If character <Uxxxx> is not found try to transliterate
5490 it.
5491 * locale/programs/ld-ctype.c: Adjust for additional parameter to
5492 lr_token. Add const to charmap parameter of all functions.
5493 (find_translit, find_translit2): New functions.
5494 * locale/programs/charmap.c: Adjust for additional parameter to
5495 lr_token.
5496 * locale/programs/repertoire.c: Likewise.
5497 * locale/programs/linereader.h: Likewise.
5498 * locale/programs/ld-address.c: Likewise. Add const to charmap
5499 parameter of all functions.
5500 * locale/programs/ld-collate.c: Likewise.
5501 * locale/programs/ld-identification.c: Likewise.
5502 * locale/programs/ld-measurement.c: Likewise.
5503 * locale/programs/ld-messages.c: Likewise.
5504 * locale/programs/ld-monetary.c: Likewise.
5505 * locale/programs/ld-name.c: Likewise.
5506 * locale/programs/ld-numeric.c: Likewise.
5507 * locale/programs/ld-paper.c: Likewise.
5508 * locale/programs/ld-paper.c: Likewise.
5509 * locale/programs/ld-telephone.c: Likewise.
5510 * locale/programs/ld-time.c: Likewise.
5511 * locale/programs/locfile.c: Likewise.
5512 * locale/programs/localedef.c: Likewise.
5513 * locale/programs/localedef.h: Likewise.
5514 * locale/programs/locfile.h: Likewise. Add declaration for
5515 find_translit.
5516 * locale/programs/simple-hash.c: Add const to first parameter of
5517 find_entry, iterate_table, and lookup.
5518 * locale/programs/simple-hash.h: Likewise.
5519 * locale/localeinfo.h: Don't define __LC_LAST here. Include <locale.h>
5520 instead.
5521 * include/locale.h: Define __LC_LAST.
5522 * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
5523
ba2dfdef
GK
55242001-12-07 Geoff Keating <geoffk@redhat.com>
5525
5526 * sysdeps/powerpc/Dist: Update for recent FP changes.
5527 * sysdeps/powerpc/fpu/Dist: Likewise.
5528
36855318
AS
55292001-12-07 Andreas Schwab <schwab@suse.de>
5530
5531 * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
5532
6f064efa
GK
55332001-12-06 Geoff Keating <geoffk@redhat.com>
5534
5535 * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
5536 save/restore functions here.
5537 (libm-support): Don't define these functions here.
5538 * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
5539 functions here.
5540 * sysdeps/powerpc/fe_nomask.c: Move to...
5541 * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
5542 * sysdeps/powerpc/fprrest.S: Move to...
5543 * sysdeps/powerpc/fpu/fprrest.S: ... here.
5544 * sysdeps/powerpc/fprsave.S: Move to...
5545 * sysdeps/powerpc/fpu/fprsave.S: ... here.
5546
23134045
UD
55472001-12-06 Ulrich Drepper <drepper@redhat.com>
5548
5549 * sysdeps/unix/sysv/linux/opensock.c: New file.
5550
675322a5
GK
55512001-12-06 Geoff Keating <geoffk@redhat.com>
5552
5553 * config.make.in (with-fp): Define from configure.
5554 * configure.in: Substitute with_fp.
5555 * configure: Regenerate.
5556 * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
5557 specified, and don't change FPU environment.
5558
383bd1c5
UD
55592001-12-06 Ulrich Drepper <drepper@redhat.com>
5560
5561 * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
5562 * assert/assert.c: Check result of __asprintf call and don't use
5563 string if it failed.
5564 * assert/assert-perr.c: Likewise.
5565 * inet/rcmd.c: Likewise.
5566 * locale/programs/localedef.c (main): Check result of
5567 construct_output_path and exit if it failed.
5568 (construct_output_path): Check result of asprintf and mkdir calls and
5569 fail if they failed.
5570 * posix/getopt.c: Check result of __asprintf calls and fail if
5571 they failed.
5572 Patch by Dmitry V. Levin <ldv@alt-linux.org>.
5573
c7b4c95c
UD
55742001-12-05 Ulrich Drepper <drepper@redhat.com>
5575
5576 * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
5577 patch.
f5e6e2ee 5578 * sysdeps/generic/strncase.c: Likewise.
1e06620a 5579 * string/tester.c: Add tests for strcasecmp and strncasecmp.
c7b4c95c 5580
57861839
GK
55812001-12-05 Geoff Keating <geoffk@redhat.com>
5582
71ede9a8
GK
5583 * scripts/cpp: Test the exit status from 'type', not 'awk'.
5584
57861839
GK
5585 * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
5586 * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
5587 * sysdeps/powerpc/setjmp.S: Don't save FP registers.
5588 * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
5589 * sysdeps/powerpc/fclrexcpt.c: Move to...
5590 * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
5591 * sysdeps/powerpc/fpu_control.h: Move to...
5592 * sysdeps/powerpc/fpu/fpu_control.h: ... here.
5593
350b053a
UD
55942001-12-05 Ulrich Drepper <drepper@redhat.com>
5595
29132b91
UD
5596 * iconvdata/ibm1129.h: Remove duplicate mappings.
5597 * iconvdata/ibm937.c: Handle overflow errors. Handle new tables.
5598 * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
5599 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
5600
5601 * timezone/zic.c: Fix handling of turnaround times.
5602 Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
5603
56042001-12-02 Moshe Olshansky <OLSHANSK@il.ibm.com>
5605
5606 * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
5607 overflow problem.
5608
56092001-12-05 Ulrich Drepper <drepper@redhat.com>
5610
5611 * posix/regex.c: For use outside glibc defined bounded pointer
5612 macros here. Patch by Jim Meyering <jim@meyering.net>.
5613
350b053a
UD
5614 * iconvdata/Makefile (modules): Add TCVN5712-1.
5615 * iconvdata/TESTS: Add TCVN5712-1.
5616 * iconvdata/gconv-modules: Likewise.
5617 * iconvdata/tcvn5712-1.c: New file.
d8031326
UD
5618 * iconvdata/testdata/TCVN-5712: New file.
5619 * iconvdata/testdata/TCVN-5712..UTF8: New file.
350b053a 5620
aaa19e67
UD
56212001-12-04 Ulrich Drepper <drepper@redhat.com>
5622
5623 * iconvdata/cp1258.c: Optimize conversion from UCS4.
5624
ce944fef
RM
56252001-12-02 Roland McGrath <roland@frob.com>
5626
c337dc4c
RM
5627 * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
5628
4f904363
RM
5629 * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
5630 Reported by Jeff Bailey <jbailey@nisa.net>.
5631
5ca3ec06 5632 * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
4f904363 5633 Reported by Jeff Bailey <jbailey@nisa.net>.
5ca3ec06 5634
ce944fef
RM
5635 * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
5636 * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
5637 Reported by Jeff Bailey <jbailey@nisa.net>.
5638
c21b1e2f
RM
56392001-12-01 Roland McGrath <roland@frob.com>
5640
5641 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
5642 missing backslash in test arguments.
5643 * sysdeps/mach/hurd/configure: Regenerated.
5644
56452001-11-26 Roland McGrath <roland@frob.com>
5646
5647 * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
5648 Reported by John Tobey <jtobey@john-edwin-tobey.org>.
5649
f67125e3
UD
56502001-11-30 Ulrich Drepper <drepper@redhat.com>
5651
5652 * iconvdata/Makefile (modules): Add ARMSCII-8.
5653 * iconvdata/gconv-modules: Add entries for ARMSCII-8.
5654 * iconvdata/armscii-8.c: New file.
5655
096f1151
UD
56562001-11-29 Jakub Jelinek <jakub@redhat.com>
5657
5658 * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
5659 don't match, fix {{a,b},c} globbing, clean up.
5660 Patch by Flavio Veloso <flaviovs@magnux.com>.
5661 * posix/globtest.sh: Add new tests.
5662
42060dad
AJ
56632001-11-29 Andreas Jaeger <aj@suse.de>
5664
64753027 5665 * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
f67125e3 5666 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
a47fd681 5667
42060dad
AJ
5668 * sysdeps/generic/abort.c: Include libioP.h for
5669 _IO_flush_all_lockp prototype.
5670
8343eaee
UD
56712001-11-29 Ulrich Drepper <drepper@redhat.com>
5672
5673 * posix/regex.h: Define __restrict_arr correctly.
5674
c6baa867
UD
56752001-11-28 Ulrich Drepper <drepper@redhat.com>
5676
03a2c647
UD
5677 * iconvdata/ibm1163.c: New file.
5678 * iconvdata/ibm1163.h: New file.
5679 * iconvdata/ibm1164.c: New file.
5680 * iconvdata/ibm1164.h: New file.
5681 * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
5682 * iconvdata/Makefile: Likewise.
5683 * iconvdata/testdata/IBM1163: New file.
5684 * iconvdata/testdata/IBM1163..UTF8: New file.
5685 * iconvdata/testdata/IBM1164: New file.
5686 * iconvdata/testdata/IBM1164..UTF8: New file.
5687 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
5688
5689 * iconvdata/ibm1046.h: Optimize. Remove duplicate mappings.
5690 * iconvdata/ibm1124.h: Likewise.
5691 * iconvdata/ibm1132.h: Likewise.
5692 * iconvdata/ibm1133.h: Likewise.
5693 * iconvdata/ibm1160.h: Likewise.
5694 * iconvdata/ibm1161.h: Likewise.
5695 * iconvdata/ibm1162.h: Likewise.
5696 * iconvdata/ibm856.h: Likewise.
5697 * iconvdata/ibm922.h: Likewise.
5698 * iconvdata/ibm930.h: Likewise.
5699 * iconvdata/ibm932.h: Likewise.
5700 * iconvdata/ibm933.h: Likewise.
5701 * iconvdata/ibm935.h: Likewise.
5702 * iconvdata/ibm937.h: Likewise.
5703 * iconvdata/ibm939.h: Likewise.
5704 * iconvdata/ibm943.h: Likewise.
5705 * iconvdata/ibm930.c: Pretty printing.
5706 * iconvdata/ibm937.c: Avoid access accross array boundary.
5707
e0e86ccb
UD
5708 * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
5709 the current locale's codeset.
5710 * iconv/iconv_open.c (iconv_open): Don't strip out everything for
5711 empty input string.
5712 * iconv/iconv_prog.c: Pass empty strings as default value for to-
5713 and from-charset. Don't determine locale's charset here.
5714
c6baa867
UD
5715 * libio/genops.c (_IO_flush_all_lockp): New function. The same code
5716 as the old _IO_flush_all but lock only if parameter is nonzero.
5717 (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
5718 * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
5719 * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
e0e86ccb 5720 if libio is used [PR libc/2575].
c6baa867 5721
4e735c9a
UD
57222001-11-28 Jakub Jelinek <jakub@redhat.com>
5723
5724 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
5725 __signbitl): Only define for ISO C99.
5726
04484feb
UD
57272001-11-22 Thorsten Kukuk <kukuk@suse.de>
5728
5729 * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
5730 herrnop to NETDB_INTERNAL if we run out of buffer space.
5731
3fd13f9e
UD
57322001-11-28 Ulrich Drepper <drepper@redhat.com>
5733
5734 * nss/nss_files/files-XXX.c (internal_getent): Correct input
5735 overflow test for platforms with signed char.
5736 Reported by Andrew Haley <aph@cambridge.redhat.com>.
5737
cd0392d8
UD
57382001-11-28 Bruno Haible <bruno@clisp.org>
5739
5740 * locale/programs/simple-hash.c (lookup_2): Remove function.
5741 (insert_entry_2): Call lookup instead of lookup_2.
5742
0555fcce
UD
57432001-03-04 Bruno Haible <bruno@clisp.org>
5744
5745 * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
5746
57472001-10-31 Bruno Haible <bruno@clisp.org>
5748
5749 * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
5750
57512001-03-21 Bruno Haible <bruno@clisp.org>
5752
5753 * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
5754 chokes on empty macro arguments.
5755 * intl/plural.y: Add #pragma for alloca on AIX 3.
5756
57572001-11-27 Ulrich Drepper <drepper@redhat.com>
5758
5759 * intl/dcigettext.c (guess_category_value): Only implement for
5760 glibc. Otherwise rely on function _nl_locale_name which isn't
5761 present in the glibc sources.
5762
57632001-09-24 Bruno Haible <bruno@clisp.org>
5764
5765 * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
5766 transliteration when building on a glibc system but outside glibc.
5767
57682001-09-22 Bruno Haible <bruno@clisp.org>
5769
5770 * intl/plural-eval.c: New file, extracted from dcigettext.c.
5771 * intl/dcigettext.c (plural_eval): Remove function, moved to
5772 intl/plural-eval.c.
5773 (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
5774 Include plural-eval.c.
5775
57762001-09-22 Bruno Haible <bruno@clisp.org>
5777
5778 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
5779 don't start with a digit; nplurals must be positive.
5780
57812001-09-02 Bruno Haible <bruno@clisp.org>
5782
5783 * intl/plural-exp.h: New file, extracted from gettextP.h.
5784 * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
5785 * intl/gettextP.h (struct expression, struct parse_args,
5786 __gettext_free_exp, __gettextparse): Move to plural-exp.h.
5787 * intl/loadmsgcat.c: Include plural-exp.h.
5788 (PLURAL_PARSE): Move macro to plural-exp.h.
5789 (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
5790 plural-exp.c.
5791 (_nl_load_domain): Move plural handling code to plural-exp.c. Call
5792 EXTRACT_PLURAL_EXPRESSION.
5793 (_nl_unload_domain): Update.
5794 * intl/dcigettext.c: Include plural-exp.h.
5795 * intl/plural.y: Include plural-exp.h, not gettextP.h.
5796 (FREE_EXPRESSION): Move macro to plural-exp.h.
5797 * intl/Makefile (routines): Add plural-exp.
5798 (distribute): Add plural-exp.h.
5799
58002001-07-28 Bruno Haible <bruno@clisp.org>
5801
5802 * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
5803 isdigit, tolower argument to 'unsigned char'.
5804 * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
5805 'unsigned char'.
5806 * intl/localealias.c (read_alias_file): Cast isspace argument to
5807 'unsigned char'.
5808
58092001-10-20 Bruno Haible <bruno@clisp.org>
5810
5811 Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
5812 anyway.)
5813 * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
5814 with the variable 'index' in plural_lookup.
5815 * intl/l10nflist.c (strchr): Likewise.
5816 * intl/localealias.c (strchr): Likewise.
5817
5818 Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
5819 * intl/bindtextdom.c: Likewise.
5820 * intl/dcigettext.c: Likewise.
5821 * intl/dgettext.c: Likewise.
5822 * intl/dngettext.c: Likewise.
5823 * intl/explodename.c: Likewise.
5824 * intl/finddomain.c: Likewise.
5825 * intl/gettext.c: Likewise.
5826 * intl/l10nflist.c: Likewise.
5827 * intl/loadmsgcat.c: Likewise.
5828 * intl/localealias.c: Likewise.
5829 * intl/ngettext.c: Likewise.
5830 * intl/textdomain.c: Likewise.
5831 * intl/gettext.h: Assume <limits.h> exists.
5832
8a207204
UD
58332001-11-27 Ulrich Drepper <drepper@redhat.com>
5834
5835 * stdio-common/Makefile (tests): Add scanf11.
5836 * stdio-common/scanf11.c: New file.
5837
120aad54
UD
58382001-11-26 Ulrich Drepper <drepper@redhat.com>
5839
5840 * version.h (RELEASE): Define as development.
5841 (VERSION): Set to 2.2.90.
5842
58432001-11-22 Thorsten Kukuk <kukuk@suse.de>
5844
5845 * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
5846 * nis/nss_nis/nis-grp.c: Likewise.
5847 * nis/nss_nisplus/nisplus-grp.c: Likewise.
5848
5849 * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
5850 * nis/nss_nis/nis-pwd.c: Likewise.
5851 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
5852
5853 * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
5854 * nis/nss_nisplus/nisplus-parser.c: Likewise.
5855 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
5856
5857 * nscd/grpcache.c: Use strtoul instead of atol.
5858 * nscd/pwdcache.c: Likewise.
5859 * nss/getent.c: Likewise.
5860
58612001-11-27 Paul Eggert <eggert@twinsun.com>
5862
5863 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
5864 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
5865
58662001-11-19 Bruno Haible <bruno@clisp.org>
5867
5868 * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
5869 90%.
5870 (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
5871 improves the quality of the hash function, especially for short
5872 strings.
5873
f4efd068
UD
58742001-11-26 Ulrich Drepper <drepper@redhat.com>
5875
5876 * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
5877 are found call conv_error and not input_error [PR libc/2669].
5878
5879 * math/bits/mathcalls.h: Mark ceil and floor as const.
5880 Reported by David Mosberger.
5881
58822001-11-21 Jim Meyering <meyering@lucent.com>
5883
5884 * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
5885 Define to be __-prefixed.
5886 Remove unnecessary duplication in `#ifdef _LIBC' blocks.
5887
dd09c3dc
AJ
58882001-11-26 Andreas Jaeger <aj@suse.de>
5889
5890 * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
5891 avoid warning.
5892
60a06b7c
AJ
58932001-11-26 Stephen L Moshier <moshier@mediaone.net>
5894
5895 * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
5896 initialization.
5897
5898 * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
5899 unused variables. Fix threshold for returning 1.0.
5900
5901 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
5902 argument.
5903
5904 * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
5905 remove unused variables.
5906
5907 * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
5908
5909 * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
5910 include local math header files.
5911
91eaf586
AJ
59122001-11-22 Andreas Jaeger <aj@suse.de>
5913
5914 * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
5915 avoid warning.
5916
d987f926
AJ
59172001-11-21 Andreas Jaeger <aj@suse.de>
5918
5919 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
5920
5921 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
5922 sys/debugreg.h
5923
df0a1a7f
AJ
59242001-11-15 Andreas Jaeger <aj@suse.de>
5925
5926 * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
5927 compilers that support it.
5928
5929 * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
5930 * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
5931 * stdlib/stdlib.h: Likewise.
5932
a41179fd
UD
59332001-11-17 Ulrich Drepper <drepper@redhat.com>
5934
5935 * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
5936 statement with gotos.
5937 Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
5938
59392001-11-16 Stephen L Moshier <moshier@mediaone.net>
c83a3aeb
AJ
5940
5941 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
5942
5ff4a0aa
UD
59432001-11-15 Ulrich Drepper <drepper@redhat.com>
5944
5945 * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
5946
74bd2300
UD
59472001-10-02 Jakub Jelinek <jakub@redhat.com>
5948 H.J. Lu <hjl@gnu.org>
5949
1e06620a 5950 * Versions.def (libc): Add GCC_3.0.
74bd2300
UD
5951 * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
5952 if gcc supports this flag.
5953 (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
5954 (gcc3): Allow glibc to be compiled with gcc 3.x.
5955 * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
5956 * config.make.in (static-libgcc, unwind-find-fde): Add.
5957 * Makerules (build-shlib-helper, build-module-helper): Use it.
5958 * scripts/versions.awk: Make sure GLIBC_ versions come first.
5959 * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
5960 necessary.
5961 (_fini): Call __deregister_frame_info_bases if
5962 __register_frame_info_bases was used to register.
5963 * elf/Versions (__register_frame_info, __deregister_frame_info): Add
5964 for GLIBC_2.0.
5965 (__register_frame_info_bases, __register_frame_info_table_bases,
1e06620a 5966 __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
74bd2300
UD
5967 * elf/Makefile (routines): Add unwind-dw2-fde.
5968 (shared-only-routines): Add unwind-dw2-fde.
5969 * sysdeps/alpha/gccframe.h: New file.
5970 * sysdeps/arm/gccframe.h: New file.
5971 * sysdeps/generic/framestate.c: New file.
5972 * sysdeps/generic/dwarf2.h: New file.
5973 * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
5974 * sysdeps/generic/unwind-dw2-fde.c: New file.
5975 * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
5976 * sysdeps/generic/unwind-dw2-fde.h: New file.
5977 * sysdeps/generic/unwind-dw2.c: New file.
5978 * sysdeps/generic/unwind-pe.h: New file.
5979 * sysdeps/generic/unwind.h: New file.
5980 * sysdeps/hppa/gccframe.h: New file.
5981 * sysdeps/i386/gccframe.h: New file.
5982 * sysdeps/m68k/gccframe.h: New file.
5983 * sysdeps/mips/gccframe.h: New file.
5984 * sysdeps/powerpc/gccframe.h: New file.
5985 * sysdeps/s390/gccframe.h: New file.
5986 * sysdeps/sh/gccframe.h: New file.
5987 * sysdeps/sparc/gccframe.h: New file.
5988 * sysdeps/vax/gccframe.h: New file.
5989 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
5990 Set on all architectures except ia64.
5991 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
5992 for i386.
5993 * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
5994 __deregister_frame_info): Move to elf/Versions.
5995 * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
5996 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
5997 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
5998 * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
5999 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
6000 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
6001 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
6002 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
6003 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
6004 * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
6005 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
6006 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
6007 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
6008 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
6009 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
6010 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
6011 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
6012 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
6013
f6b20a36
UD
60142001-11-15 Jeff Law <law@redhat.com>
6015
6016 * posix/regex.c (uintptr_t): Do not provide a definition if the
6017 system provided one.
6018
27114e20
RM
60192001-11-13 Roland McGrath <roland@frob.com>
6020
6021 * stdio-common/tmpfile.c: Moved to ...
6022 * sysdeps/generic/tmpfile.c: ... here.
6023 * sysdeps/mach/hurd/tmpfile.c: New file.
6024
6025 * hurd/fopenport.c (__fopenport): Renamed from fopenport.
6026 [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
6027 (fopenport): Define as weak alias.
6028
6029 * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
6030 * libio/libioP.h: ... to here.
6031
f133c097
UD
60322001-11-12 Ulrich Drepper <drepper@redhat.com>
6033
6034 * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
6035 program header twice. Construct list with the needed information.
6036
9d63abbc
UD
60372001-11-10 Ulrich Drepper <drepper@redhat.com>
6038
e5b27fe5
UD
6039 * po/ca.po: Update from translation team.
6040
9d63abbc
UD
6041 * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
6042 _dl_pf_to_prot. Use arithmetic operation using PF_TO_PROT macro.
6043 * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
6044 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
6045
76321a25
AJ
60462001-11-10 Andreas Jaeger <aj@suse.de>
6047
6048 * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
6049 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
6050 Contributed by Stephen L Moshier <moshier@mediaone.net>.
6051
6d5d3ae3
UD
60522001-11-09 Ulrich Drepper <drepper@redhat.com>
6053
6054 * elf/dl-minimal.c (realloc): Handle NULL for first parameter
6055 correctly.
6056 * elf/dl-load.c (is_dst): New function.
6057 (_dl_dst_count): Use is_dst to check for DST variable.
6058 (_dl_dst_substitute): Likewise.
6059
d0bf7991
RM
60602001-11-09 Roland McGrath <roland@frob.com>
6061
7d0c5823 6062 Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
7d0c5823
RM
6063 * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
6064 * sysdeps/mach/hurd/powerpc/init-first.c: New file.
6065 * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
6066 * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
6067 * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
6068 * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
6069 * sysdeps/mach/hurd/powerpc/static-start.S: New file.
6070 * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
6071 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
6072 * sysdeps/mach/hurd/powerpc/Dist: New file.
6073
d0bf7991
RM
6074 * hurd/privports.c (__get_privileged_ports):
6075 Only contact the proc server if necessary for this call.
6076 Suggested by Neal H Walfield <neal@cs.uml.edu>.
6077 Check error return for mach_port_mod_refs.
6078
50e79604
AS
60792001-11-09 Andreas Schwab <schwab@suse.de>
6080
6081 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
6082
d3205950
UD
60832001-11-09 Ulrich Drepper <drepper@redhat.com>
6084
7fd52cc8
UD
6085 * elf/dl-load.c (lose): Remove some unnecessary code. The new
6086 object is always the last in the list.
6087 (_dl_map_object_from_fd): Delete code to remove from object list
6088 when DF_1_NOOPEN is seen. This is done in lose.
d3205950 6089
7bccbc05
UD
60902001-11-08 Ulrich Drepper <drepper@redhat.com>
6091
6092 * elf/dl-object.c (_dl_new_object): Various small optimizations.
6093
6ed623f8
UD
60942001-11-07 Ulrich Drepper <drepper@redhat.com>
6095
40b07f5b
UD
6096 * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
6097 HWCAP_CHECK macro code.
6098
6099 * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
6100 Now returns MAP_FAILED on error.
6101 * elf/rtld.c: Adjust caller.
6102 * sysdeps/generic/dl-cache.c: Likewise.
6103 * sysdeps/generic/ldsodefs.h: Adjust description.
6104
6ed623f8
UD
6105 * elf/dl-version.c (match_symbol): Optimize error handling for size.
6106 (_dl_check_map_versions): Likewise.
6107
fb0356b9
UD
61082001-11-06 Ulrich Drepper <drepper@redhat.com>
6109
6110 * elf/dl-load.c (_dl_map_object_from_fd): Don't call
6111 _dl_signal_error directly, always use lose. Set fd to -1 after
6112 file is closed.
6113 (lose): Don't call close if fd == -1.
6114
bd3916e8
UD
61152001-11-07 Kaoru Fukui <k_fukui@highway.ne.jp>
6116
6117 * manual/charset.texi: Fix typo @w[ISO 6937] to @w{ISO 6937}.
6118 Also fix typo @code {mbsinit} to @code{mbsinit}.
6119
39b3385d
UD
61202001-11-06 Ulrich Drepper <drepper@redhat.com>
6121
7982ecfe
UD
6122 * elf/dl-profile.c: Replace state variable with simple flag named
6123 running. Remove commented-out code.
6124
39b3385d
UD
6125 * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
6126 (_dl_init_paths): Likewise.
6127 (_dl_map_object_from_fd): Likewise.
7982ecfe 6128 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
39b3385d 6129
995c9bd4
RM
61302001-11-06 Roland McGrath <roland@frob.com>
6131
b1ac1b8c
RM
6132 * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
6133 instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
6134
995c9bd4
RM
6135 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
6136 sysdeps/powerpc/elf/sysdep.h.
6137 Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
6138
3abe7c31
UD
61392001-11-05 Ulrich Drepper <drepper@redhat.com>
6140
3e2040c8
UD
6141 * elf/rtld.c (process_dl_debug): Rewritten. Optimized for size not
6142 speed.
007e4682 6143 (process_envvars): Some more optimizations.
2e8c7d64 6144 * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
3e2040c8 6145
c95f3fd4
UD
6146 * elf/elf.h: Add dynamic tag definitions for prelinking.
6147
6148 * elf/rtld.c (process_envvars): Avoid using array of string pointers.
6149 Rewrite code to remove environment varables for SUID binaries.
6150 Small optimization in LD_PROFILE handling.
6151 * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
6152 changes.
6153 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
6154
6155 * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
6156
ea41b926
UD
6157 * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
6158 strings. Change type of second parameter.
6159 * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
6160 for last change.
6161
3abe7c31
UD
6162 * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
6163
61642001-11-04 Joseph S. Myers <jsm28@cam.ac.uk>
6165
6166 * manual/string.texi: Fix typos.
6167 * manual/examples/argp-ex2.c: Likewise.
6168
79a89641
RM
61692001-11-05 Roland McGrath <roland@frob.com>
6170
6171 * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
6172 the more-specific unix/sysv/linux/powerpc file and breaks everything.
6173 * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
6174 ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
6175 PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
6176 here, put under [__ELF__].
6177
0b2b18a2
UD
61782001-11-05 Ulrich Drepper <drepper@redhat.com>
6179
6180 * manual/charset.texi: Extensive editing work.
6181 * manual/nss.texi: Likewise.
6182 Changes by Dennis Grace <dgrace@us.ibm.com>.
6183
50d274e5
RM
61842001-11-04 Roland McGrath <roland@frob.com>
6185
6186 * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
6187 parameter to dir_mkfile.
6188
fb4fb542
UD
61892001-11-02 Jakub Jelinek <jakub@redhat.com>
6190
6191 * string/bits/string2.h (__strndup): If n is smaller than len, set
6192 len to n + 1.
6193 * string/tester.c (test_strndup): New function.
6194 (main): Call it.
6195
2f653c01
UD
61962001-11-01 Ulrich Drepper <drepper@redhat.com>
6197
fb4fb542 6198 * sunrpc/rpc_main.c: Optimize variable definitions a bit.
5f73e771 6199
980c4d04
UD
6200 * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
6201 * scripts/cpp: New file.
6202
2f653c01
UD
6203 * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
6204 for rtld_search_dirs content. Minor optimizations.
6205
95589177
UD
62062001-10-31 Ulrich Drepper <drepper@redhat.com>
6207
6208 * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
6209 avoiding unnecessary duplication.
6210
62112001-10-31 Jakub Jelinek <jakub@redhat.com>
6212
6213 * elf/dl-load.c (_dl_map_object): If library was found using
6214 LD_LIBRARY_PATH, don't try RUNPATH list.
6215
a8128923
UD
62162001-10-31 Martin Schwidefsky <schwidefsky@de.ibm.com>
6217
3abe7c31 6218 * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
a8128923 6219 Correct second argument of register_dump call.
3abe7c31 6220 * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
a8128923
UD
6221 Likewise.
6222
557a9213
UD
62232001-10-31 Ulrich Drepper <drepper@redhat.com>
6224
6225 * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
6226 modules.
6227 * iconvdata/TESTS: Likewise.
6228 * iconvdata/gconv-modules: Likewise.
6229 * iconvdata/ibm1132.c: New file.
6230 * iconvdata/ibm1132.h: New file.
6231 * iconvdata/ibm1133.c: New file.
6232 * iconvdata/ibm1133.h: New file.
6233 * iconvdata/ibm1162.c: New file.
6234 * iconvdata/ibm1162.h: New file.
6235 * iconvdata/testdata/IBM1132: New file.
6236 * iconvdata/testdata/IBM1132..UTF8: New file.
6237 * iconvdata/testdata/IBM1133: New file.
6238 * iconvdata/testdata/IBM1133..UTF8: New file.
6239 * iconvdata/testdata/IBM1162: New file.
6240 * iconvdata/testdata/IBM1162..UTF8: New file.
6241 Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
6242
6243 * string/string.h: Fix typo in comment.
6244 * wcsmbs/wchar.h: Likewise.
6245
62462001-10-30 Joseph S. Myers <jsm28@cam.ac.uk>
6247
6248 * manual/getopt.texi (getopt_long, getopt_long_only): Include
6249 const in type of longopts parameter.
6250
1d052247
AJ
62512001-10-29 Andreas Jaeger <aj@suse.de>
6252
557a9213 6253 * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
1d052247 6254
95589177 62552001-10-29 Kevin Ryde <user42@zip.com.au>
d075e3ef 6256
557a9213 6257 * manual/stdio.texi (Integer Conversions): Corrections to sample printf
d075e3ef
AJ
6258 output, clarify `#' behaviour on 0.
6259 (Floating-Point Conversions): Clarify that %g only uses %e when
6260 the exponent would be greater than 1.
6261
ec448f66
RM
62622001-10-28 Roland McGrath <roland@frob.com>
6263
d3b82fcc
RM
6264 Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
6265 * sysdeps/mach/powerpc/machine-sp.h: New file.
6266 * sysdeps/mach/powerpc/sysdep.h: New file.
6267 * sysdeps/mach/powerpc/thread_state.h: New file.
6268
6269 * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
6270 * sysdeps/mach/hurd/Makefile: ... to here. For the time being, we can
6271 expect to need the same thing on every platform.
6272
6273 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
6274 * sysdeps/generic/sys/ucontext.h: ... to replace this one.
6275
ab0a3efc
RM
6276 * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
6277 ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
6278 DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
6279 Move all these assembly-related definitions to ...
6280 * sysdeps/powerpc/elf/sysdep.h: ... this new file.
6281
6282 * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
6283 by Peter Bruin <pjbruin@dds.nl>.
6284
ec448f66
RM
6285 * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
6286 packing results for a `poll' call.
6287
ca6c7389
UD
62882001-10-26 Ulrich Drepper <drepper@redhat.com>
6289
be29c482
UD
6290 * posix/fnmatch_loop.c: Recognize - at end of bracket expression
6291 correctly.
95eaff64
UD
6292 * posix/tst-fnmatch.input: Add tests for - at beginning and end of
6293 bracket expression.
be29c482 6294
ca6c7389
UD
6295 * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
6296 nrules value.
95eaff64 6297 * string/tst-strxfrm.c (test): Also test __strxfrm_l.
ca6c7389
UD
6298
62992001-10-24 H.J. Lu <hjl@gnu.org>
6300
6301 * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
6302 Use __BEGIN_DECLS/__END_DECLS around prototypes.
6303 * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
6304
63052001-10-21 Jim Meyering <meyering@lucent.com>
6306
6307 * malloc/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
6308 this code would end up calling gettext even in packages built
6309 with --disable-nls.
6310 * posix/getopt.c (_): Likewise.
6311 * posix/regex.c (_): Likewise.
6312
63132001-10-26 Ulrich Drepper <drepper@redhat.com>
6314
6315 * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
6316 lookup not ip6.int.
6317 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
6318 Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
6319
63202001-10-19 Jakub Jelinek <jakub@redhat.com>
6321
6322 * misc/sys/cdefs.h (__attribute_used__): Define.
6323 * elf/rtld.c (_dl_start): Add __attribute_used__.
6324 * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
6325
a5fcd166
AS
63262001-10-25 Andreas Schwab <schwab@suse.de>
6327
6328 * stdlib/a64l.c: Expect least significant digit first.
6329 * stdlib/l64a.c: Produce least significant digit first.
6330 * stdlib/Makefile (tests): Add test-a64l.
6331 * stdlib/test-a64l.c: New file.
6332 Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
6333
412420ee
UD
63342001-10-21 Ulrich Drepper <drepper@redhat.com>
6335
6336 * po/sk.po: Update from translation team.
6337
fceffbe0
UD
63382001-10-18 Ulrich Drepper <drepper@redhat.com>
6339
6340 * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
6341
303f1335
AS
63422001-10-18 Andreas Schwab <schwab@suse.de>
6343
6344 * math/libm-test.inc (print_ulps): Print ulp values rounded to
6345 next whole number.
6346 (print_function_ulps): Likewise.
6347 (print_complex_function_ulps): Likewise.
6348 (print_max_error): Likewise.
6349 (print_complex_max_error): Likewise. Handle ignore_max_ulp.
6350
9963f6ff
AS
63512001-10-16 Andreas Schwab <schwab@suse.de>
6352
692acf37
AS
6353 * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
6354 implementation.
6355
9963f6ff
AS
6356 * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
6357 BSD_SETJMP or BSD__SETJMP is defined, resp.
6358 * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
6359 a tail call to __sigsetjmp that would require extending the
6360 caller's frame.
6361 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
6362 * sysdeps/m68k/bsd-setjmp.S: Deleted.
6363 * sysdeps/m68k/bsd-_setjmp.S: Deleted.
6364 Reported by Jes Sorensen <jes@trained-monkey.org>.
6365
5d964acf
AJ
63662001-10-16 Andreas Jaeger <aj@suse.de>
6367
6368 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
fceffbe0
UD
6369 parentheses. Reported by David Byron <dbyron@porto.coactive.com>,
6370 close PR libc/2589.
5d964acf 6371
3a0b7473
UD
63722001-10-15 Ulrich Drepper <drepper@redhat.com>
6373
6374 * po/ca.po: New file. Contributed by the translation team.
6375
5d964acf 63762001-10-15 Ralf Baechle <ralf@gnu.org>
ee88e457 6377
3a0b7473
UD
6378 * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
6379 a varargs prototype. Remove dependency from kernel header files.
ee88e457
AJ
6380
6381 * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
6382 __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
6383
1f5649f8
UD
63842001-10-14 Ulrich Drepper <drepper@redhat.com>
6385
6386 * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
6387 to generate hexadecimal identifier.
6388 Patch by Jungshik Shin <jungshik.shin@yale.edu>.
6389
63902001-10-09 Stephen L Moshier <moshier@mediaone.net>
6391
6392 * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
6393
63942001-10-14 Ulrich Drepper <drepper@redhat.com>
6395
6396 * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
6397 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
6398 Contributed by Stephen L Moshier <moshier@mediaone.net>.
6399
6400 * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
6401 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6402 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
6403 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
6404 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
6405 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
6406
6407 * timezone/africa: Update from tzdata2001d.
6408 * timezone/asia: Likewise.
6409 * timezone/australasia: Likewise.
6410 * timezone/backward: Likewise.
6411 * timezone/europe: Likewise.
6412 * timezone/leapseconds: Likewise.
6413 * timezone/northamerica: Likewise.
6414 * timezone/southamerica: Likewise.
6415 * timezone/zone.tab: Likewise.
6416
64172001-10-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
6418
6419 * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
6420 * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
6421
459a3163
UD
64222001-10-12 Ulrich Drepper <drepper@redhat.com>
6423
6424 * elf/elf.h (PT_TLS): New definition.
6425
0dc87bc6
RM
64262001-10-10 Jeff Bailey <jbailey@nisa.net>
6427
459a3163
UD
6428 * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
6429 bits/errno.h
0dc87bc6
RM
6430
64312001-10-07 Roland McGrath <roland@frob.com>
6432
6433 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
6434
1c92cebb
UD
64352001-10-10 Ulrich Drepper <drepper@redhat.com>
6436
6437 * elf/elf.h: Add more ELFOSABI_* constants.
6438
b61345a1
UD
64392001-10-04 Ben Collins <bcollins@debian.org>
6440
6441 * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
6442 decleration of __need_wchar_t.
6443
64442001-10-03 Jakub Jelinek <jakub@redhat.com>
6445
6446 * string/bits/string2.h (__strsep_g): Add prototype.
6447 (__strsep): Use it.
6448 * string/Versions (__strsep): Remove.
6449 * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
6450
64512001-10-07 Ulrich Drepper <drepper@redhat.com>
6452
6453 * manua/llio.texi: Clarify file references added by mmap.
6454 Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
6455
c47e78b1
UD
64562001-09-29 Jes Sorensen <jes@trained-monkey.org>
6457
6458 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
6459 Add sc_loadrs and sc_rbs_bas to match current kernel.
6460
64612001-09-27 Jakub Jelinek <jakub@redhat.com>
6462
6463 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
6464
6465 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
6466
64672001-09-27 Jakub Jelinek <jakub@redhat.com>
6468
6469 * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
6470 object has been bumped because of relocation dependency, avoid
6471 duplicates in l_scope.
6472 (show_scope): Fix typos.
6473 * elf/Makefile: Add rules to build and run reldep6.
6474 * elf/reldep6.c: New file.
6475 * elf/reldep6mod0.c: New file.
6476 * elf/reldep6mod1.c: New file.
6477 * elf/reldep6mod2.c: New file.
6478 * elf/reldep6mod3.c: New file.
6479 * elf/reldep6mod4.c: New file.
6480
64812001-09-26 Jakub Jelinek <jakub@redhat.com>
6482
6483 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
6484 sparc64_fixup_plt.
1c92cebb 6485 (sparc64_fixup_plt): Moved from elf_machine_fixup_plt. Optimize
c47e78b1
UD
6486 near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
6487 for non-lazy binding. Fix .plt[32768+] handling.
6488 (elf_machine_plt_value): Don't add addend.
6489 (elf_machine_rela): Call sparc64_fixup_plt instead of
6490 elf_machine_fixup_plt.
6491 (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
6492 dynamic linker at 0xfffff800XXXXXXXX.
6493
6494 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
6495
ddb96b7d
UD
64962001-09-28 Ulrich Drepper <drepper@redhat.com>
6497
6498 * elf/elf.h: Define SHF_GROUP and SHF_TLS.
6499
23ac6e3a
UD
65002001-09-25 Jakub Jelinek <jakub@redhat.com>
6501
6502 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
6503 declare __cmsg_data field if its size would be bigger than 0.
6504 (CMSG_DATA): Adjust accordingly.
6505 * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
6506 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
6507 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
6508 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
6509 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6510 * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
6511 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
6512
d7bc0053
UD
65132001-09-25 Ulrich Drepper <drepper@redhat.com>
6514
6515 * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
6516 * iconvdata/testdata/IBM1160: New file.
6517 * iconvdata/testdata/IBM1160..UTF8: New file.
6518 * iconvdata/testdata/IBM1161: New file.
6519 * iconvdata/testdata/IBM1161..UTF8: New file.
6520 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
6521
61423e13
UD
65222001-09-24 Ulrich Drepper <drepper@redhat.com>
6523
a4fe3ea6
UD
6524 * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
6525 UL_SETFSIZE computations better.
6526
84e4ff7b
UD
6527 * rt/Makefile: Remove use of filter for librt again.
6528
61423e13
UD
6529 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
6530 UL_SETFSIZE computations better.
6531
6532 * string/Versions: Export __strsep for GLIBC_2.2.5.
6533 * string/bits/string2.h: Define all __STRING_INLINE functions if
6534 _FORCE_INLINES is defined.
6535 Use int instead of char of parameter types.
6536 (__strsep): Don't use __strsep_g. Don't define it.
6537 (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
6538 * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
6539 __strcpy_small.
6540 (__stpcpy_a_small): Renamed from __stpcpy_small.
6541 (__strcspn_c1): Don't define if _FORCE_INLINES.
6542 (__strspn_c1): Likewise.
6543
65442001-09-22 Ben Collins <bcollins@debian.org>
6545
6546 * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
6547 _UNIX98_SOURCE is defined too. Matches generic/bits/sigaction.h.
6548 * sysdeps/ia64/bits/sigaction.h: Likewise.
6549 * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
6550
65512001-09-24 Andrew Haley <aph@cambridge.redhat.com>
6552
6553 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
6554
65552001-09-24 Jakub Jelinek <jakub@redhat.com>
6556
6557 * elf/dl-open.c (dl_open_worker): Update l_scope_max.
6558
8db6604d
UD
65592001-09-24 Ulrich Drepper <drepper@redhat.com>
6560
6561 * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
6562
9d0881aa
UD
65632001-09-20 H.J. Lu <hjl@gnu.org>
6564
6565 * include/dlfcn.h (__RTLD_SPROF): New definiton.
6566 * elf/dl-open.c (dl_open_worker): Return immediately after loading
6567 for __RTLD_SPROF.
6568 * elf/sprof.c (main): Default to the filename if soname doesn't exist.
8db6604d 6569 (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
9d0881aa
UD
6570
65712001-09-20 H.J. Lu <hjl@gnu.org>
6572
6573 * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
6574 don't add 1.
6575
65762001-09-22 Ulrich Drepper <drepper@redhat.com>
6577
6578 * nss/getent.c: Accept -s parameter to overwrite rules in
6579 nsswitch.conf. Patch by Nalin Dahyabhai <nalin@redhat.com>.
6580
6581 * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
6582 with as many ".0" as necessary to form a complete address
6583 inet_network understands.
6584
6585 * nss/getent.c: Various cleanups. Use simpler and fewer function
6586 calls.
6587
65882001-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
6589
6590 * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
6591 _JMPBUF_UNWINDS.
6592 * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
6593
65942001-09-22 Ulrich Drepper <drepper@redhat.com>
6595
6596 * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
6597 IBM1161.
6598 * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
6599 * iconvdata/ibm1160.c: New file.
6600 * iconvdata/ibm1160.h: New file.
6601 * iconvdata/ibm1161.c: New file.
6602 * iconvdata/ibm1161.h: New file.
799ea679 6603 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
9d0881aa
UD
6604
66052001-09-19 Jakub Jelinek <jakub@redhat.com>
6606
6607 * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
6608 difference between base address and first PT_LOAD's virtual address,
6609 not the base address.
6610
66112001-09-11 Tom Rix <trix@redhat.com>
6612
6613 * sysdeps/unix/sysv/aix/init-first.c (init): Use USE_NONONPTION_FLAG
6614 ifdef for __getopt_clean_environment.
6615 * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
6616
8101ca20
AJ
66172001-09-22 Andreas Jaeger <aj@suse.de>
6618
9fb957cd
AJ
6619 * elf/reldep4.c (main): Add proper prototype to fix warning.
6620
6621 * elf/reldep5.c (main): Remove unused variable.
6622
8101ca20
AJ
6623 * math/math_private.h: Add prototypes.
6624
ede503f7
AJ
66252001-09-21 Andreas Jaeger <aj@suse.de>
6626
9d0881aa
UD
6627 * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
6628 * sysdeps/x86_64/Dist: New file.
6629 * sysdeps/x86_64/soft-fp/Dist: New file.
ede503f7
AJ
6630
6631 * sysdeps/gnu/Dist: Remove eval.c.
6632
f4cc201e
UD
66332001-09-20 Ulrich Drepper <drepper@redhat.com>
6634
d3acfb61
UD
6635 * malloc/memusage.c (realloc): Don't count already allocated
6636 memory in the sums.
6637 (me): Always use dlsym() to find the real implementations.
0e21f776 6638
f4cc201e
UD
6639 * malloc/memusage.sh: Make -n option actually do something.
6640
8bbbd5d0
AJ
66412001-09-20 Andreas Jaeger <aj@suse.de>
6642
6643 * elf/elf.h (R_390_NUM): Correct value.
85458ce9
AJ
6644
6645 * Versions.def: Add missing versions 2.2.3 for libthread_db and
6646 libpthread.
6647
6648 * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
6649 for x86-64, install x86-64 into */lib64.
6650
6651 * shlib-versions: Add x86-64.
6652
6653 * elf/elf.h: Add x86-64 relocations.
6654
8d4aaf8a
UD
66552001-09-19 Ulrich Drepper <drepper@redhat.com>
6656
6657 * po/fr.po: Update from translation team.
6658
71ad6ad2
AJ
66592001-09-19 Andreas Jaeger <aj@suse.de>
6660
c9cf6dde
AJ
6661 * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
6662 * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
6663 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
6664 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
6665 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
6666 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
6667 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
6668 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
6669 * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
6670 * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
6671 * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
6672 * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
6673 * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
6674 * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
6675 * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
6676 * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
6677 * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
6678 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
6679 * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
6680 * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
6681 * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
6682 * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
6683 * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
6684 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
6685 * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
6686 * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
6687 * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
6688 * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
6689 * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
6690 * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
6691 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
6692 * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
6693 * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
6694 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
6695 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
6696 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
6697 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
6698 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
6699 * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
6700 * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
6701 * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
6702 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
6703 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
6704 * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
6705 * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
6706 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
6707 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
6708 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
6709 * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
6710 * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
6711 * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
6712 * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
6713 * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
6714 * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
6715 * sysdeps/unix/x86_64/sysdep.S: New file.
6716 * sysdeps/unix/x86_64/sysdep.h: New file.
6717 * sysdeps/x86_64/Implies: New file.
6718 * sysdeps/x86_64/Makefile: New file.
6719 * sysdeps/x86_64/Versions: New file.
6720 * sysdeps/x86_64/__longjmp.S: New file.
6721 * sysdeps/x86_64/abort-instr.h: New file.
6722 * sysdeps/x86_64/atomicity.h: New file.
6723 * sysdeps/x86_64/bits/endian.h: New file.
6724 * sysdeps/x86_64/bits/setjmp.h: New file.
6725 * sysdeps/x86_64/bits/string.h: New file.
6726 * sysdeps/x86_64/bp-asm.h: New file.
6727 * sysdeps/x86_64/bsd-_setjmp.S: New file.
6728 * sysdeps/x86_64/bsd-setjmp.S: New file.
6729 * sysdeps/x86_64/dl-machine.h: New file.
6730 * sysdeps/x86_64/elf/initfini.c: New file.
6731 * sysdeps/x86_64/elf/start.S: New file.
6732 * sysdeps/x86_64/ffs.c: New file.
6733 * sysdeps/x86_64/ffsll.c: New file.
6734 * sysdeps/x86_64/fpu/bits/fenv.h: New file.
6735 * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
6736 * sysdeps/x86_64/fpu/e_acosl.c: New file.
6737 * sysdeps/x86_64/fpu/e_atan2l.c: New file.
6738 * sysdeps/x86_64/fpu/e_exp2l.S: New file.
6739 * sysdeps/x86_64/fpu/e_expl.c: New file.
6740 * sysdeps/x86_64/fpu/e_fmodl.S: New file.
6741 * sysdeps/x86_64/fpu/e_log10l.S: New file.
6742 * sysdeps/x86_64/fpu/e_log2l.S: New file.
6743 * sysdeps/x86_64/fpu/e_logl.S: New file.
6744 * sysdeps/x86_64/fpu/e_powl.S: New file.
6745 * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
6746 * sysdeps/x86_64/fpu/e_scalbl.S: New file.
6747 * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
6748 * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
6749 * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
6750 * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
6751 * sysdeps/x86_64/fpu/fegetenv.c: New file.
6752 * sysdeps/x86_64/fpu/fegetexcept.c: New file.
6753 * sysdeps/x86_64/fpu/fegetround.c: New file.
6754 * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
6755 * sysdeps/x86_64/fpu/fesetenv.c: New file.
6756 * sysdeps/x86_64/fpu/fesetround.c: New file.
6757 * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
6758 * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
6759 * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
6760 * sysdeps/x86_64/fpu/ftestexcept.c: New file.
6761 * sysdeps/x86_64/fpu/libm-test-ulps: New file.
6762 * sysdeps/x86_64/fpu/math_ldbl.h: New file.
6763 * sysdeps/x86_64/fpu/printf_fphex.c: New file.
6764 * sysdeps/x86_64/fpu/s_atanl.c: New file.
6765 * sysdeps/x86_64/fpu/s_cosl.S: New file.
6766 * sysdeps/x86_64/fpu/s_expm1l.S: New file.
6767 * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
6768 * sysdeps/x86_64/fpu/s_isinfl.c: New file.
6769 * sysdeps/x86_64/fpu/s_isnanl.c: New file.
6770 * sysdeps/x86_64/fpu/s_log1pl.S: New file.
6771 * sysdeps/x86_64/fpu/s_logbl.c: New file.
6772 * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
6773 * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
6774 * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
6775 * sysdeps/x86_64/fpu/s_rintl.c: New file.
6776 * sysdeps/x86_64/fpu/s_significandl.c: New file.
6777 * sysdeps/x86_64/fpu/s_sincosl.S: New file.
6778 * sysdeps/x86_64/fpu/s_sinl.S: New file.
6779 * sysdeps/x86_64/fpu/s_tanl.S: New file.
6780 * sysdeps/x86_64/gmp-mparam.h: New file.
6781 * sysdeps/x86_64/hp-timing.c: New file.
6782 * sysdeps/x86_64/hp-timing.h: New file.
6783 * sysdeps/x86_64/htonl.S: New file.
6784 * sysdeps/x86_64/memusage.h: New file.
6785 * sysdeps/x86_64/setjmp.S: New file.
6786 * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
6787 * sysdeps/x86_64/stackinfo.h: New file.
6788 * sysdeps/x86_64/sysdep.h: New file.
6789 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
6790
71ad6ad2
AJ
6791 * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
6792 L Moshier.
6793
9596d0dd
UD
67942001-09-18 Ulrich Drepper <drepper@redhat.com>
6795
6796 * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
6797 Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
6798
67992001-09-18 Andreas Schwab <schwab@suse.de>
6800
6801 * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
6802 list, now that l_scope is a pointer.
6803
6804 * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
6805 scope list.
6806
68072001-09-18 kaz Kojima <kkojima@rr.iij4u.or.jp>
6808
6809 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
6810 (elf_machine_rela_relative): Add a missing declaration.
6811
68122001-09-18 Jakub Jelinek <jakub@redhat.com>
6813
74bd2300
UD
6814 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
6815 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
9596d0dd
UD
6816 * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
6817 ldd-rewrite scripts.
6818
68192001-09-18 Ulrich Drepper <drepper@redhat.com>
6820
6821 * elf/ldd.bash.in: Update copyright message.
6822
68232001-09-17 H.J. Lu <hjl@gnu.org>
6824
6825 * hurd/hurdmalloc.c (bcopy): Removed.
6826 (realloc): Replace bcopy with memcpy.
6827 * hurd/path-lookup.c (file_name_path_scan): Likewise.
6828 * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
6829 * sunrpc/rpcinfo.c (pmapdump): Likewise.
6830
6831 * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
6832 (gethostbyaddr): Likewise.
6833 * sunrpc/rpcinfo.c (get_inet_address): Likewise.
6834
68352001-09-18 Ulrich Drepper <drepper@redhat.com>
6836
6837 * sysdeps/gnu/eval.c: Removed.
6838
51e59281
AJ
68392001-09-18 Andreas Jaeger <aj@suse.de>
6840
6841 * sysdeps/i386/fpu/s_logbl.S: Move to ...
6842 * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
6843
6844 * sysdeps/i386/fpu/s_rintl.S: Move to ...
6845 * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
6846
6847 * sysdeps/i386/fpu/s_significandl.S: Move to ...
6848 * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
6849
d8877d65
UD
68502001-09-16 Ulrich Drepper <drepper@redhat.com>
6851
d4d6b072 6852 * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
d8877d65
UD
6853 nrules value.
6854
69880d12
UD
68552001-09-14 H.J. Lu <hjl@gnu.org>
6856
6857 * sysdeps/mips/fpu/libm-test-ulps: Updated.
6858
0991cbf6
UD
68592001-09-14 Ulrich Drepper <drepper@redhat.com>
6860
69880d12
UD
6861 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
6862 Patch by Florian La Roche <laroche@redhat.com>.
6863
29215bbd
UD
6864 * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
6865
0991cbf6
UD
6866 * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
6867 ETHER_CRC_LEN.
6868
66f05d22
AS
68692001-09-14 Andreas Schwab <schwab@suse.de>
6870
6871 * posix/execl.c: Fix last argument of memcpy. Reported by Brian
6872 Sumner <bls@sgi.com>.
6873 * posix/execlp.c: Likewise.
6874
23382b36
UD
68752001-09-13 Jakub Jelinek <jakub@redhat.com>
6876
6877 * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
6878 is already found earlier in the search scope.
6879
68802001-09-12 Jakub Jelinek <jakub@redhat.com>
6881
6882 * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
6883 filter.
6884
31a54688
UD
68852001-09-13 Ulrich Drepper <drepper@redhat.com>
6886
6887 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
6888
d322efa8
UD
68892001-09-12 Ulrich Drepper <drepper@redhat.com>
6890
6891 * config.h.in: Enforce optimization to be used.
e69924e3
UD
6892 * Makeconfig (preprocess-versions): Define ASSEMBLER.
6893 * stdlib/Makefile (isomac-CFLAGS): Define to -O.
6894 * posix/Makefile (annexc-CFLAGS): Define to -O.
7aba050d 6895 * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
d322efa8 6896
57642a78
UD
68972001-09-11 Ulrich Drepper <drepper@redhat.com>
6898
6899 * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
6900 Patch by Stephan Kulow.
6901
455e8060
UD
69022001-09-08 Ben Collins <bcollins@debian.org>
6903
6904 * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
6905 usage of RESOLVE() (r_type, not reloc->r_type).
6906
11810621
UD
69072001-09-08 Ulrich Drepper <drepper@redhat.com>
6908
6909 * elf/dl-object.c: Avoid allocating extra memory block for name.
beac809a 6910 * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
11810621
UD
6911 allocated separately.
6912 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
6913
f6233fe0
UD
69142001-09-08 H.J. Lu <hjl@gnu.org>
6915
6916 * po/zh_TW.po: Fix a typo.
6917
84aafa91
UD
69182001-09-07 Tom Rix <trix@redhat.com>
6919
6920 * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
6921
69222001-08-26 Tom Rix <trix@redhat.com>
6923
6924 * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
6925 command line options.
6926 * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
6927 * sysdeps/unix/sysv/aix/start.c: Removed.
6928 * sysdeps/unix/sysv/aix/start-libc.c: New file.
6929 * sysdeps/unix/sysv/aix/init-first.c: New file.
6930 * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
6931
69322001-09-08 Ben Collins <bcollins@debian.org>
6933
6934 * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
6935 * sysdeps/generic/dl-machine.h: Likewise.
6936 * sysdeps/hppa/dl-fptr.c: Likewise.
6937 * sysdeps/ia64/dl-fptr.c: Likewise.
6938 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
6939 * sysdeps/mips/dl-machine.h: Likewise.
6940 * sysdeps/mips/mips64/dl-machine.h: Likewise.
6941 * sysdeps/powerpc/dl-machine.c: Likewise.
6942
69432001-09-07 Ben Collins <bcollins@debian.org>
6944
6945 * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
6946
6947 * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
6948
c4bb124a
UD
69492001-09-08 Ulrich Drepper <drepper@redhat.com>
6950
84aafa91
UD
6951 * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
6952 dependencies if necessary.
6953
c4bb124a
UD
6954 * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
6955 loaded directly) determine length if l_initfini list by iterating
6956 over its elements. Minor optimizations.
6957 * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
6958 for dependency objects.
6959 If object was already loaded check whether any of the dependencies
6960 is already on the relocation dependency list. If yes, remove the
6961 latter. Minor optimizations.
6962 * elf/dl-lookup.c (add_dependency): Add check for self reference of
6963 maps here. Search l_initfini list only if the object was loaded
6964 directly and not only as a dependency.
6965 (_dl_lookup_symbol): Add relocation dependency also if object
6966 is not in global scope. Remove test for self-reference here.
6967 (_dl_lookup_versioned_symbol): Likewise.
6968 * elf/dl-object (_dl_new_object): Cleanup. Initialize dont_free
6969 element of first name record.
6970 * elf/loadtest.c: Add some more test to recognize early if an object
6971 wasn't unloaded.
6972 * elf/Makefile: Add rules to build and run reldep5.
6973 * elf/reldep5.c: New file.
6974 * elf/reldepmod5.c: New file.
6975 * elf/reldepmod6.c: New file.
6976
6977 * elf/reldep2.c: Fix typo.
6978
5a21d307
UD
69792001-09-07 Ulrich Drepper <drepper@redhat.com>
6980
6981 * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
6982 elements. Change l_scope to be a pointer only.
c4bb124a 6983 * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
5a21d307
UD
6984 * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
6985 here add searchlist of newly open file to the dependency's scope.
6986 * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
6987 only searchlist from its scope. Free own scope array if necessary.
6988 * elf/Makefile (tests): Add dblload and dblunload now.
6989
7d25e927
AJ
69902001-09-06 Andreas Jaeger <aj@suse.de>
6991
6992 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
6993 Stephen L Moshier.
6994
3fac0001
UD
69952001-09-05 Ulrich Drepper <drepper@redhat.com>
6996
6997 * elf/Makefile: Add rules to build new tests. Don't run them yet since
6998 they both fail.
6999 * elf/dblload.c: New file.
7000 * elf/dblloadmod1.c: New file.
7001 * elf/dblloadmod2.c: New file.
7002 * elf/dblloadmod3.c: New file.
7003 * elf/dblunload.c: New file.
7004
9cd9ea10
UD
70052001-09-04 Richard Henderson <rth@redhat.com>
7006
7007 * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
7008 (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
7009
407fe3bb
UD
70102001-09-04 Ulrich Drepper <drepper@redhat.com>
7011
7012 Correct very misleading message for error in failed runtime relocation.
7013 * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
7014 place of the error.
7015 (_dl_signal_cerror): Likewise.
7016 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
7017 * elf/dl-close.c: Likewise.
7018 * elf/dl-deps.c: Likewise.
7019 * elf/dl-load.c: Likewise.
7020 * elf/dl-lookup.c: Likewise.
7021 * elf/dl-open.c: Likewise.
7022 * elf/dl-reloc.c: Likewise.
7023 * elf/dl-sym.c: Likewise.
7024 * elf/dl-version.c: Likewise.
7025 * sysdeps/generic/dl-sysdep.c: Likewise.
7026
71ce28fd
UD
70272001-09-04 Jakub Jelinek <jakub@redhat.com>
7028
7029 * iconv/strtab.c (strtabinit): Initialize null Strent.
7030 (newstring): Move len == 0 handling...
7031 (strtabadd): ...here.
7032 If len == 1, return null Strent.
7033 When inserting a suffix of an existing string, check if
7034 it is not equal to some suffix already recorded.
7035 Copy left and right members over if adding longer string.
7036
70372001-09-04 Jakub Jelinek <jakub@redhat.com>
7038
7039 * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
7040
7041 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
7042 (__syscall_gethostname): Add prototype.
7043
903244ac
UD
70442001-09-04 Ulrich Drepper <drepper@redhat.com>
7045
7046 * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
7047
0668d223
UD
70482001-09-02 Ulrich Drepper <drepper@redhat.com>
7049
7050 * elf/rtld.c (dl_main): Increment l_opencount for main binary.
7051
d447d70d
RM
70522001-08-27 Roland McGrath <roland@frob.com>
7053
7054 * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
7055 short, copy that much into NAME anyway before returning error.
7056
1bc83d2b
UD
70572001-09-01 Richard Henderson <rth@redhat.com>
7058
7059 * sysdeps/alpha/elf/Dist: Remove file.
7060 * sysdeps/alpha/elf/Makefile: Remove file.
7061 * sysdeps/alpha/elf/crtbegin.S: Remove file.
7062 * sysdeps/alpha/elf/crtend.S: Remove file.
7063 * sysdeps/alpha/elf/initfini.c: New file.
7064
70652001-09-01 Mark Kettenis <kettenis@gnu.org>
7066
7067 * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
7068 * iconv/tst-iconv3.c: Likewise.
7069
70702001-09-01 Jakub Jelinek <jakub@redhat.com>
7071
7072 * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
7073
9a1f71a7
UD
70742001-09-01 Ulrich Drepper <drepper@redhat.com>
7075
7076 * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
7077 export it.
7078 * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
7079 * iconv/iconv_prog.c (insert_cache): New function.
7080 (print_known_names): If cache is used call insert_cache to use the
7081 information from the cache [PR libc/2509].
7082
45e0579f
UD
70832001-08-31 Ulrich Drepper <drepper@redhat.com>
7084
7085 * time/strptime.c (strptime_internal): Recognize 'l' format and
1bc83d2b 7086 handle it like 'I' for symmetry with strftime.
45e0579f 7087
eaad82e0
UD
70882001-08-31 Richard Henderson <rth@redhat.com>
7089
7090 * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
7091 (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
7092 * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
7093 (print_statistics): Make scalar unsigned long long.
7094 * sysdeps/alpha/hp-timing.h: New file.
7095
70962001-08-31 Jakub Jelinek <jakub@redhat.com>
7097
7098 * stdio-common/perror.c (perror): Save errno early, pass it
7099 down to perror_internal.
7100 (perror_internal): Add errnum argument.
7101
71022001-08-31 Jakub Jelinek <jakub@redhat.com>
7103
7104 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
7105 Don't add old memory content for R_ALPHA_REFQUAD.
7106
5a3fba99
UD
71072001-08-30 Ulrich Drepper <drepper@redhat.com>
7108
cb2391e1
UD
7109 * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
7110 memory correctly.
7111
90d40ab5
UD
7112 * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
7113 instead of open, __close instead of close, __getpagesize instead
7114 of getpagesize.
7115
5a3fba99
UD
7116 * string/argz-stringify.c (__argz_stringify): Use __strnlen
7117 instead of strnlen.
7118 * include/string.h (strndupa): Redefine here to use __strnlen
7119 instead of strnlen.
7120 * string/strndup.c (__strndup): Use __strnlen not strnlen.
7121
7122 * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
7123 connected).
7124
ee0cb67e
UD
71252001-08-30 Jakub Jelinek <jakub@redhat.com>
7126
7127 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
90d40ab5
UD
7128 R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
7129 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
ee0cb67e
UD
7130 * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
7131 * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
7132 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
7133 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
7134
628880cb
UD
71352001-08-30 Ulrich Drepper <drepper@redhat.com>
7136
7137 * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
7138
47491479
AJ
71392001-08-30 Andreas Jaeger <aj@suse.de>
7140
7141 * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
7142 contributed Stephen L Moshier.
7143
f314b5cb
UD
71442001-08-30 Jakub Jelinek <jakub@redhat.com>
7145
7146 * sunrpc/etc.rpc (sgi_fam): Add.
7147
a37844f4
UD
71482001-08-30 Ulrich Drepper <drepper@redhat.com>
7149
7150 * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
7151
6c3ebebd
UD
71522001-08-29 Ulrich Drepper <drepper@redhat.com>
7153
7154 * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
7155 first is from a previous call.
7156 Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
7157
71582001-08-29 Andreas Schwab <schwab@suse.de>
7159
7160 * sysdeps/ia64/fpu/libm-test-ulps: Updated.
7161
71622001-08-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7163
7164 * config.make.in (INSTALL_SCRIPT): Define.
7165 * Makeconfig (INSTALL_SCRIPT): Define.
7166 * Makerules (do-install-script): New macro to install scripts using
7167 INSTALL_SCRIPT.
7168 (install-bin-script): New rule to install scripts with
7169 do-install-script.
7170 (install-bin-script-nosubdir): New rule.
7171 (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
7172 (distinfo-vars): Add $(install-bin-script).
7173 * Rules (others): Likewise.
7174 * Makefile (glibcbug): Install with install-bin-script.
7175 * debug/Makefile (xtrace): Likewise.
7176 (catchsegv): Likewise.
7177 * elf/Makefile (ldd): Likewise.
7178 * malloc/Makefile (mtrace): Likewise.
7179 * timezone/Makefile (tzselect): Likewise.
7180
71812001-08-29 H.J. Lu <hjl@gnu.org>
7182
7183 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
7184 ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
7185 _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
7186
f8122690
AS
71872001-08-29 Andreas Schwab <schwab@suse.de>
7188
7189 * sysdeps/m68k/fpu/libm-test-ulps: Updated.
7190
f13df7c7
UD
71912001-08-28 H.J. Lu <hjl@gnu.org>
7192
7193 * Makeconfig (combreloc-LDFLAGS): New variable.
6c3ebebd 7194 Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
f13df7c7
UD
7195 * config.make.in (have-z-combreloc): New variable.
7196 * configure.in: Substitute libc_cv_z_combreloc.
7197
5df485ce
UD
71982001-08-29 Ulrich Drepper <drepper@redhat.com>
7199
7200 * po/sv.po: Update from translation team.
7201 * po/fr.po: Likewise.
3d49d03c 7202 * po/da.po: Likewise.
5df485ce 7203
0ca2a569
AJ
72042001-08-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7205
7206 * Makerules: Fix a typo: MD% -> MD5.
7207
ff507be8
UD
72082001-08-28 Ulrich Drepper <drepper@redhat.com>
7209
7210 * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
7211 Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
7212
c920378b
AJ
72132001-08-28 Andreas Jaeger <aj@suse.de>
7214
7215 * manual/libc-texinfo.sh: Add entry about free manuals.
7216
7217 * manual/contrib.texi (Contributors): Fix cross reference.
7218
7219 * manual/libc.texinfo (Copying): Include freemanuals.
7220
7221 * manual/Makefile (appendices): Add freemanuals.
7222
7223 * manual/freemanuals.texi: New file.
7224 Patch by Brian Youmans <3diff@gnu.org>.
7225
7226 * manual/libm-err-tab.pl: Pretty print more platforms, print a
7227 smaller table.
7228
7229 * manual/math.texi (Errors in Math Functions): Fix grammar, start
7230 table on separate page.
7231 Patch by Brian Youmans <3diff@gnu.org>.
7232
c06a49c5
UD
72332001-08-27 Ulrich Drepper <drepper@redhat.com>
7234
7235 * misc/syslog.c (vsyslog): Try a bit harder to use syslogd. If
7236 the connection went down after we first used it try to connect
7237 again and resend the message before printing to the console.
7238 Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
7239
72402001-08-27 Jakub Jelinek <jakub@redhat.com>
7241
7242 * string/tst-strlen.c (main): Test strnlen (, -1) too.
7243 * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
7244 bit set.
7245
72462001-08-27 Ulrich Drepper <drepper@redhat.com>
7247
f13df7c7 7248 * iconv/strtab.c (searchstring): Use correct length for comparison.
c06a49c5
UD
7249 (strtabadd): Account total size correct if new string has old string as
7250 substring.
7251
497b760b
UD
72522001-08-27 Jakub Jelinek <jakub@redhat.com>
7253
7254 * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
7255
f909a88c
AJ
72562001-08-27 Andreas Jaeger <aj@suse.de>
7257
7258 * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
7259
7260 * math/libm-test.inc (j0_test): Add extra tests.
7261 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
7262 not x, in Hankel approximation.
7263 Patches by Stephen L Moshier.
7264
092243fa
UD
72652001-08-26 Ulrich Drepper <drepper@redhat.com>
7266
51df989e
UD
7267 * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
7268 link_map.
7269
fdde8349
UD
7270 * configure.in: Fix test for .rela.dyn section.
7271
092243fa
UD
7272 * elf/dl-runtime.c: Update calls to _dl_lookup_*.
7273
cf5a372e
UD
72742001-08-26 Jakub Jelinek <jakub@redhat.com>
7275
7276 * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
7277 instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
7278 Pass type_class to _dl_lookup_*.
23ac6e3a 7279 * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
cf5a372e
UD
7280 Pass around just type_class instead of noexec, noplt pair.
7281 (_dl_lookup_versioned_symbol): Likewise.
7282 (_dl_lookup_symbol_skip): Pass around just type_class instead of
7283 noexec, noplt pair.
7284 (_dl_lookup_versioned_symbol_skip): Likewise.
7285 (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
7286 * elf/do-lookup.h (do_lookup): Likewise.
7287 * include/link.h (struct link_map): Replace noexec and noplt fields
7288 in l_lookup_cache with type_class field.
7289 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
7290 ELF_RTYPE_CLASS_COPY): Define.
7291 Adjust prototypes for _dl_lookup_symbol and
7292 _dl_lookup_versioned_symbol.
7293 * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
7294 elf_machine_lookup_noexec_p): Remove.
7295 (elf_machine_type_class): Define.
7296 * sysdeps/arm/dl-machine.h: Likewise.
7297 * sysdeps/hppa/dl-machine.h: Likewise.
7298 * sysdeps/cris/dl-machine.h: Likewise.
7299 * sysdeps/i386/dl-machine.h: Likewise.
7300 * sysdeps/ia64/dl-machine.h: Likewise.
7301 * sysdeps/m68k/dl-machine.h: Likewise.
7302 * sysdeps/mips/mips64/dl-machine.h: Likewise.
7303 * sysdeps/mips/dl-machine.h: Likewise.
7304 * sysdeps/powerpc/dl-machine.h: Likewise.
7305 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
7306 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
7307 * sysdeps/sh/dl-machine.h: Likewise.
7308 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7309 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7310
107d41a9
UD
73112001-08-26 Ulrich Drepper <drepper@redhat.com>
7312
7313 * manual/message.texi (Advanced gettext functions): Change
7314 description of plural forms for Slovak.
7315 Reported by Marcel Telka <marcel@telka.sk>.
7316
7317 * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
7318 %z. Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
7319
73202001-08-26 Jakub Jelinek <jakub@redhat.com>
7321
7322 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
7323 typo. Patch by Florian La Roche <laroche@redhat.com>.
7324
a711b01d
UD
73252001-08-26 Ulrich Drepper <drepper@redhat.com>
7326
680254fe
UD
7327 * include/link.h (struct link_map): Add l_lookup_cache element.
7328 * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
7329 (RESOLVE_MAP): Likewise.
7330 (_dl_relocate_object): Remove cache initialization.
7331 * elf/dl-lookup.c: Rip out cache handling code.
7332 * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
7333 declarations.
7334
7335 * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
7336 remove some __builtin_expect.
7337 (_dl_lookup_versioned_symbol): Likewise.
7338
a711b01d
UD
7339 * config.h.in: Add HAVE_Z_COMBRELOC.
7340 * configure.in: Add test for -z combreloc.
7341
7342 * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
7343 optimizations. Use HAVE_Z_COMBRELOC to avoid generaton of
680254fe
UD
7344 R_386_RELATIVE handling for ld.so startup. Reduce RTLD_BOOTSTRAP
7345 case to almost no code.
a711b01d 7346
c126cf66
UD
73472001-08-25 Ulrich Drepper <drepper@redhat.com>
7348
7349 * po/tr.po: Update from translation team.
7350
9de30651
AJ
73512001-08-24 Andreas Jaeger <aj@suse.de>
7352
7353 * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
7354 make clean works.
7355
cf44e2dd
UD
73562001-08-24 Ulrich Drepper <drepper@redhat.com>
7357
7358 * elf/rtld.c (print_statistics): Printf % after percent values.
7359 * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
7360
7361 * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
7362 don't have to compute the hash value and initialize current_value.
7363 Move reference_name variable to where it is needed.
7364 (_dl_lookup_versioned_symbol): Likewise.
7365
fb2c7eab
RM
73662001-08-24 Roland McGrath <roland@frob.com>
7367
7368 * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
7369 Just test that strerror returns non-null for a few errno codes.
7370
f0b1a6c8
RM
73712001-08-23 Roland McGrath <roland@frob.com>
7372
7373 * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
7374 _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
7375
7376 * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
7377
7378 * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
7379 __mach_reply_port.
7380
c35eb5b0
UD
73812001-08-24 Ulrich Drepper <drepper@redhat.com>
7382
bb84d3b3
UD
7383 * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
7384 returns NULL.
7385
c35eb5b0
UD
7386 * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
7387 startup. Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
7388 doesn't do it.
af8bf6bd
UD
7389 * elf/rtld.c: Include <sys/param.h>.
7390 * elf/dl-reloc.c: Likewise.
c35eb5b0 7391
77c88899
AJ
73922001-08-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7393
7394 * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
7395 empty to prevent junk from being generated.
7396 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
7397
95c78350
UD
73982001-08-24 Jakub Jelinek <jakub@redhat.com>
7399
7400 * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
7401 records. Rename endrel to relative, initialize it to r, and use it
7402 in elf_machine_rel_relative calls. Point r after relative relocs.
7403
3dc51a93
UD
74042001-08-24 Ulrich Drepper <drepper@redhat.com>
7405
7406 * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
7407 of R_386_NONE.
7408
1f2a1df3
UD
74092001-08-24 Jakub Jelinek <jakub@redhat.com>
7410
7411 * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
7412 necessary. Undefine newly defined macros at the end.
7413 * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
7414 Rename from elf_machine_rel_relative.
7415 * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
7416 * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
7417 * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
7c69dc8b
UD
7418 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
7419 Likewise.
7420 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
7421 Likewise.
1f2a1df3
UD
7422 * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
7423 Fix argument types.
7424 * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
7425 Fix argument types.
7426 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
7427 Likewise. Fix argument types.
7428 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
7429 Likewise. Fix argument types.
7430 * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
7431 Fix argument types.
7432 * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
7433 ElfW(Rel) in argument.
7434 * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
7435 function.
7436
a4c4e6db
UD
74372001-08-24 Alexandre Oliva <aoliva@redhat.com>
7438
7439 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
7440
bc7d63ea
AJ
74412001-08-24 Andreas Jaeger <aj@suse.de>
7442
7443 * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
7444 Stephen L Moshier <moshier@mediaone.net>.
7445
1721af3f
UD
74462001-08-24 Ulrich Drepper <drepper@redhat.com>
7447
a4c4e6db
UD
7448 * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
7449 first if RELCOUNT is set.
7450
1721af3f
UD
7451 * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
7452 call elf_machine_rel for the last DT_RELCOUNT relocations but instead
7453 elf_machine_rel_relative.
7454 * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
7455 Minor optimizations.
7456 * sysdeps/arm/dl-machine.h: Likewise.
7457 * sysdeps/cris/dl-machine.h: Likewise.
7458 * sysdeps/hppa/dl-machine.h: Likewise.
7459 * sysdeps/i386/dl-machine.h: Likewise.
7460 * sysdeps/ia64/dl-machine.h: Likewise.
7461 * sysdeps/m68k/dl-machine.h: Likewise.
7462 * sysdeps/mips/dl-machine.h: Likewise.
7463 * sysdeps/powerpc/dl-machine.h: Likewise.
7464 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7465 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7466 * sysdeps/sh/dl-machine.h: Likewise.
7467 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
7468 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
7469
0dce3d15
RM
74702001-08-23 Roland McGrath <roland@frob.com>
7471
37d8d362
RM
7472 * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
7473
0dce3d15
RM
7474 * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
7475 sysdeps/mach version. Implement counting ("recursive") mutexes
7476 on top of cthreads mutexes.
7477 * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
7478
7479 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
7480 _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
7481 (__libc_cleanup_region_start, __libc_cleanup_region_end,
7482 __libc_clean_end): Define these to call the cleanup function after
7483 normal exit when they're supposed to.
7484
7485 * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
7486 Take new first arg DOIT, a boolean saying whether to really install
7487 any cleanup handler.
7488 (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
7489 (__libc_cleanup_end): Likewise.
edb63884 7490 * sysdeps/generic/bits/libc-lock.h: Same changes.
0dce3d15
RM
7491 * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
7492 * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
7493 * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
7494 Likewise.
7495 * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
7496 * sysdeps/generic/bits/stdio-lock.h
7497 (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
7498
647eb037
UD
74992001-08-23 Jakub Jelinek <jakub@redhat.com>
7500
7501 * elf/ldconfig.c (search_dir): Remove stale symlinks.
7502
75032001-08-23 Jakub Jelinek <jakub@redhat.com>
7504
7505 * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
7506 (_dl_lookup_symbol): Lookup relocations in cache and store successfull
7507 lookups in cache.
7508 (_dl_lookup_versioned_symbol): Likewise.
7509 * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
7510 relocation lookup.
7511 * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
7512 * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
7513 (lookup_cache, lookup_cache_versioned): Add declarations.
7514
75152001-08-23 Ulrich Drepper <drepper@redhat.com>
7516
7517 * stdlib/tst-random.c (main): Swap parameters in fail call.
7518 Patch by Pete Bevin <pete@petebevin.com>.
7519
75202001-08-23 Jakub Jelinek <jakub@redhat.com>
7521
7522 * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
7523
e515fbc5
UD
75242001-08-23 Ulrich Drepper <drepper@redhat.com>
7525
647eb037
UD
7526 * malloc/obstack.c: Indent preprocessor directives.
7527 Patch by Jim Meyering <meyering@ascend.com>.
7528
e515fbc5
UD
7529 * po/ja.po: Update from translation team.
7530
9efc8b95
RM
75312001-08-23 Roland McGrath <roland@frob.com>
7532
7533 * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
7534
7535 * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
7536 Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
7537
8179dcc1
RM
75382001-08-22 Roland McGrath <roland@frob.com>
7539
c12aa801
RM
7540 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
7541 __libc_lock_define_recursive.
7542 * elf/dl-open.c: Don't declare it here any more.
7543 * elf/dl-close.c: Likewise.
7544 * elf/dl-lookup.c: Likewise.
7545 * elf/dl-iteratephdr.c: Likewise.
7546 * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
7547 __libc_lock_unlock_recursive.
7548 * elf/dl-close.c (_dl_close): Likewise
7549 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
7550 * elf/dl-open.c (_dl_open): Likewise
7551
7552 * sysdeps/generic/bits/libc-lock.h
7553 (__libc_lock_define_recursive): New macro.
7554 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
7555 (_IO_lock_lock): Use __libc_lock_lock_recursive.
7556 (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
7557
8179dcc1
RM
7558 * conform/conformtest.pl (checknamespace): Sort the output list.
7559
7560 * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
7561 (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
7562 definitions conditional on [__USE_XOPEN].
7563
7564 * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
7565 these unconditionally, not only use [__USE_BSD], so as to match
7566 the sysdeps/unix/sysv/linux files.
7567
5cd6f8f7
UD
75682001-08-22 Ulrich Drepper <drepper@redhat.com>
7569
7570 * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
7571 avoid warnings.
7572
7573 * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
7574 DL_LOOKUP_ADDRESS.
7575
319a82b0
RM
75762001-08-22 Roland McGrath <roland@frob.com>
7577
7578 * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
7579 conditionalization of sa_handler/sa_sigaction member types to
7580 match the sysdeps/unix/sysv/linux file.
7581
4d0923e8
UD
75822001-08-22 Ulrich Drepper <drepper@redhat.com>
7583
40b145c4
UD
7584 * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
7585 symbol sizes a bit better.
7586
c5d8d555
UD
7587 * sysdeps/ia64/strncpy.S: Complete rewrite.
7588 Contributed by Jakub Jelinek <jakub@redhat.com>.
7589
4d0923e8
UD
7590 * string/stratcliff.c (main): Add strncpy test.
7591
c3201035
RM
75922001-08-22 Roland McGrath <roland@frob.com>
7593
7594 * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
7595 and don't declare unsetenv or _environ directly.
7596 (unsetenv): Return int, not void. Use __environ instead of _environ.
7597
38bb8feb
MK
75982001-08-01 Mark Kettenis <kettenis@gnu.org>
7599
7600 * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
7601 * sysdeps/unix/bsd/bsd4.4/Versions: New file.
7602 * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
7603 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
7604 test for cmsg struct size.
7605
6106611a
RM
76062001-04-23 Paul Eggert <eggert@twinsun.com>
7607
f95ada81
UD
7608 * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
7609 Rename __argc to ___argc in prototypes to avoid compatibility
7610 problems with systems that reserve the identifier "__argc".
7611 Similarly for __argv.
6106611a
RM
7612
76132001-08-21 Roland McGrath <roland@frob.com>
7614
7615 * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
7616
7617 * mach/Makefile (tests): Removed.
7618 * mach/hello.c: File removed.
7619
46b05e5d
UD
76202001-08-22 Ulrich Drepper <drepper@redhat.com>
7621
ea015eac
UD
7622 * po/sv.po: Update from translation team.
7623
bed38142
UD
7624 * stdio-common/vfscanf.c: Fix handling of %l[].
7625 Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
7626
c7509e31
UD
7627 * libio/Makefile (tests): Add tst-sscanf.
7628 * libio/tst-sscanf.c: New file.
7629
46b05e5d
UD
7630 * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
7631 * malloc/mtrace.c (tr_where): dli_sname always points to a
30c8be92 7632 non-empty string if != NULL.
46b05e5d
UD
7633 Reported by Tim Janik <timj@gtk.org>.
7634
2e3e5db6
UD
76352001-08-22 Jakub Jelinek <jakub@redhat.com>
7636
7637 * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
7638 buf. Free resources on failure.
7639 * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
7640 (makefd_xprt): Likewise.
7641 * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
7642 * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
7643 * sunrpc/auth_unix.c (authunix_create): Likewise.
7644
76452001-08-21 Jakub Jelinek <jakub@redhat.com>
7646
7647 * string/strnlen.c: Remove.
74bd2300 7648 * sysdeps/generic/strnlen.c: New file.
2e3e5db6
UD
7649 * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
7650
88e7ba6a
RM
76512001-08-21 Roland McGrath <roland@frob.com>
7652
7653 * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
7654 as a macro, not an extern inline function.
7655
7656 * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
7657 * Versions.def (libc): Add GLIBC_2.2.5 set.
7658 * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
7659 (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
7660
76612001-08-20 Roland McGrath <roland@frob.com>
7662
7663 * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
7664 (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
7665
6c6bb055
UD
76662001-08-21 Ulrich Drepper <drepper@redhat.com>
7667
7668 * string/bits/string2.h: Remove strnlen optimization here.
7669 * sysdeps/i386/i486/bits/string.h: Add it here.
7670
76712001-08-21 Wolfram Gloger <wg@malloc.de>
7672
7673 * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
7674
425966d0
UD
76752001-08-21 Ulrich Drepper <drepper@redhat.com>
7676
7677 * po/gl.po: Update from translation team.
7678
34ef548a
UD
76792001-08-20 Ulrich Drepper <drepper@redhat.com>
7680
7681 * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
7682 * misc/err.c (convert_and_print): Likewise.
7683
7684 * malloc/obstack.c (print_and_abort): Use fprintf instead of two
7685 function calls.
7686
62ed552b
UD
76872001-08-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
7688
7689 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
7690 change of the gregset_t type.
7691 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
7692
76932001-08-20 kaz Kojima <kkojima@rr.iij4u.or.jp>
7694
7695 * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
7696
3f1c767d
UD
76972001-08-20 Ulrich Drepper <drepper@redhat.com>
7698
62ed552b
UD
7699 * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
7700
3f1c767d
UD
7701 * string/strnlen.c: Fix the implementation. We cannot use memchr.
7702
16195d20
MK
77032001-08-18 Mark Kettenis <kettenis@gnu.org>
7704
7705 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
7706 before calling the cthreads initialization code.
7707
0028f16e
UD
77082001-08-20 Ulrich Drepper <drepper@redhat.com>
7709
29f0517d
UD
7710 * argp/argp-help.c: Fix two problems introduced in last change.
7711
0028f16e
UD
7712 * include/dirent.h: Include <dirstream.h> first.
7713
9af652f6
UD
77142001-08-19 Ulrich Drepper <drepper@redhat.com>
7715
faf4c7f0
UD
7716 * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
7717
9af652f6
UD
7718 * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
7719 * sunrpc/xdr_rec.c: Likewise.
7720 * sunrpc/xdr_mem.c: Likewise.
7721 * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
7722 * sunrpc/rpc_cmsg.c: Likewise.
7723 * sunrpc/getrpcport.c (getrpcport): Likewise.
7724 * sunrpc/clnt_simp.c (callrpc): Likewise.
7725 * sunrpc/clnt_gen.c (clnt_create): Likewise.
7726 * string/envz.c: Likewise.
7727
7728 * po/ko.po: Update from translation team.
7729
7730 * argp/argp-help.c: Handle wide oriented stderr stream.
7731
9c777dfe
UD
77322001-08-18 Ulrich Drepper <drepper@redhat.com>
7733
091b8955
UD
7734 * sysdeps/generic/strtol.c: Little optimizations. Add some
7735 __builtin_expect.
7736
9af652f6 7737 * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
668770fc 7738
b6d64fb0
UD
7739 * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
7740 * wcsmbs/wcwidth.c (wcwdith): Likewise.
7741 * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
7742
7743 * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
7744
7745 * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
7746
68984987
UD
7747 * time/time.h (struct timespec): Use __time_t for tv_sec element.
7748
7749 * sysdeps/generic/inttypes.h: Define __wchar_t. Use it instead of
7750 wchar_t for function declarations and defintions.
7751
7752 * misc/sys/select.h: Define __need_time_t before including <time.h>.
7753 Define suseconds_t if it hasn't happened yet.
7754
7755 * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
7756
7757 * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
7758
7759 * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
7760 <stddef.h>.
7761
7762 * conform/data/stddef.h-data: Remove wint_t.
7763
9c777dfe
UD
7764 * conform/conformtest.pl: Change namespace test to take #undef
7765 lines into account.
7766
7767 * conform/data/netinet/in.h-data: Fix typo in allow-header line.
7768
7769 * conform/data/sys/socket.h-data: Add sockatmark.
7770
4c3902f9
UD
77712001-08-17 Ulrich Drepper <drepper@redhat.com>
7772
7773 * io/fts.c: Update from recent BSD source.
7774
c3151cca
RM
77752001-08-17 Roland McGrath <roland@frob.com>
7776
7777 * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
7778 * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
7779 Likewise.
7780
0f4b99a6
UD
77812001-08-17 Ulrich Drepper <drepper@redhat.com>
7782
89f29a07
UD
7783 * locale/duplocale.c (__duplocale): Also initialize the special
7784 __ctype_* elements.
7785
0f4b99a6
UD
7786 * conform/data/netdb.h-data: Adjust gai_strerror return type.
7787
1d388457
AJ
77882001-08-17 Andreas Jaeger <aj@suse.de>
7789
0f4b99a6
UD
7790 * misc/getpass.c: Include wchar.h for prototypes.
7791 * malloc/obstack.c: Likewise.
1d388457 7792
6293b803
UD
77932001-08-17 Ulrich Drepper <drepper@redhat.com>
7794
7795 * sunrpc/svc_simple.c (universal): Use __write instead of write.
7796
7797 * wcsmbs/wcscoll.c: Also define __wcscoll.
7798 * include/wchar.h: Declare __wcscoll.
7799
7800 * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
7801 * libio/vwprintf.c: Likewise.
7802 * libio/wprintf.c: Likewise.
7803
7804 * iconv/gconv_cache.c: Use __munmap instead of munmap.
7805
a2635361
UD
78062001-08-16 Ulrich Drepper <drepper@redhat.com>
7807
6293b803
UD
7808 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
7809 instead of mbrtowc.
7810 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
7811 wcslen, and __wcscoll instead of wcscoll.
7812
7813 * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
7814
7815 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
7816 __getuid instead of getuid.
7817
7818 * stdio-common/perror.c (perror): Use __close instead of close.
7819 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
7820 * libio/freopen.c (freopen): Likewise.
7821 * libio/freopen64.c (freopen64): Likewise.
7822
51028f34
UD
7823 * libio/tst-ungetwc2.c (main): Define str const.
7824
7825 * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
7826 * libio/fwprintf.c: Also define __fwprintf.
7827 * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
7828 * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
7829 * assert/assert-perr.c: Likewise.
7830 * assert/assert.c: Likewise.
7831 * gmon/gmon.c: Likewise.
7832 * inet/rcmd.c: Likewise.
7833 * malloc/obstack.c: Likewise.
7834 * misc/err.c: Likewise.
7835 * misc/error.c: Likewise.
7836 * misc/getpass.c: Likewise.
7837 * posix/getopt.c: Likewise.
7838 * resolv/res_hconf.c: Likewise.
7839 * stdio-common/perror.c: Likewise.
7840 * stdio-common/psignal.c: Likewise.
7841 * stdlib/fmtmsg.c: Likewise.
7842 * sunrpc/auth_unix.c: Likewise.
7843 * sunrpc/clnt_perr.c: Likewise.
7844 * sunrpc/clnt_tcp.c: Likewise.
7845 * sunrpc/clnt_udp.c: Likewise.
7846 * sunrpc/clnt_unix.c: Likewise.
7847 * sunrpc/svc_simple.c: Likewise.
7848 * sunrpc/svc_tcp.c: Likewise.
7849 * sunrpc/svc_udp.c: Likewise.
7850 * sunrpc/svc_unix.c: Likewise.
7851 * sunrpc/xdr.c: Likewise.
7852 * sunrpc/xdr_array.c: Likewise.
7853 * sunrpc/xdr_rec.c: Likewise.
7854 * sunrpc/xdr_ref.c: Likewise.
7855 * sysdeps/generic/wordexp.c: Likewise.
7856
d79e5553
UD
7857 * po/it.po: Update from translation team.
7858
51028f34 7859 * misc/err.c: Handle wide oriented stderr stream.
a2635361 7860
8e294940
UD
78612001-08-14 Tom Rix <trix@redhat.com>
7862
7863 * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
7864 * iconv/Makefile: Fix gconv_cache.c CFLAGS.
7865
78662001-08-13 Tom Rix <trix@redhat.com>
7867
7868 * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
7869 * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
7870 and __intptr_t.
7871
78722001-08-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
7873
7874 * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
7875 Store the access registers to the ucontext structure.
7876 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
7877 Likewise.
7878
7879 * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
7880 Load the access registers from the ucontext structure.
7881 * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
7882 Likewise.
7883
7884 * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
7885 offsets to the new ucontext layout.
7886 * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
7887
7888 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
7889 of the ucontext structure.
7890 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
7891
c0fd6e1d
UD
78922001-08-15 Ulrich Drepper <drepper@redhat.com>
7893
1fc0e331
UD
7894 * misc/error.c (error): Handle wide oriented stderr stream correctly.
7895 (error_at_line): Likewise.
c7ecdbda 7896
1fc0e331
UD
7897 * stdio-common/perror.c (perror): Implement according to standard.
7898 The stream orientation must not be changed if the stream was not
7899 oriented before the call.
7900 * stdio-common/Makefile (tests): Add tst-perror.
7901 * stdio-common/tst-perror.c: New file.
9b51f431 7902
d59e49d8 7903
1fc0e331 7904See ChangeLog.12 for earlier changes.