1 2002-07-02 Andreas Schwab <schwab@suse.de>
3 * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
4 in parallel to bumping up the buffer pointer.
6 2002-07-01 Jakub Jelinek <jakub@redhat.com>
8 * math/libm-test.inc (acos_test): Add missing L suffix for
10 (cpow_test): Likewise.
11 * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
12 error for acos (0.0625).
14 2002-06-30 Ulrich Drepper <drepper@redhat.com>
16 * locale/iso-639.def: Add entry for Ganda.
17 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
19 (address_finish): Handle entries with two letter ISO 639 code.
21 * iconvdata/Makefile: Recreate gconv-modules.cache file in target
22 directory if it existed before.
23 * iconv/iconvconfig.c: Implement --prefix option.
25 * math/libm-test.inc (cexp_test): Add missing L suffix for
26 expected result. Reported by Stephen L Moshier <steve@moshier.net>.
27 * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
30 2002-05-29 H.J. Lu <hjl@gnu.org>
32 * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
35 2002-05-28 H.J. Lu <hjl@gnu.org>
37 * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
38 are not dlopened on the dependency list of a dlopened object.
40 2002-06-30 Ulrich Drepper <drepper@redhat.com>
42 * elf/dl-lookup.c (add_dependency): It is not necessary to add
43 dependencies if they are created between objects which are created
44 while processing RTLD_NOW for objects loaded as part of the same
47 2002-06-14 H.J. Lu <hjl@gnu.org>
49 * elf/Makefile (tests): Add circleload1.
50 (modules-names): Add circlemod1, circlemod2, circlemod3,
51 circlemod1a, circlemod2a and circlemod3a.
52 ($(objpfx)circleload1): New target.
53 ($(objpfx)circleload1.out): Likewise.
54 ($(objpfx)circlemod1.so): Likewise.
55 ($(objpfx)circlemod2.so): Likewise.
56 ($(objpfx)circlemod1a.so): Likewise.
57 ($(objpfx)circlemod2a.so): Likewise.
58 * elf/circleload1.c: New file.
59 * elf/circlemod1.c: New file.
60 * elf/circlemod1a.c: New file.
61 * elf/circlemod2.c: New file.
62 * elf/circlemod2a.c: New file.
63 * elf/circlemod3.c: New file.
64 * elf/circlemod3a.c: New file.
66 2002-06-18 Amos Waterland <apw@us.ibm.com>
68 * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
70 * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
71 add check for fd not open for writing.
73 * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
74 completed element(s) and do not suspend thread if so. Patch
75 heavily modified by drepper.
77 * rt/tst-aio7.c: New file. Regression test for problems which the
78 above three changes fix.
79 * rt/Makefile (tests): Add tst-aio7.
81 2002-06-29 Ulrich Drepper <drepper@redhat.com>
83 * rt/tst-aio6.c: Fix comment.
85 * catgets/gencat.c (read_input_file): Handle more than one slash
86 at end of line correctly [PR libc/3926].
87 Based on a patch by Steven Kim <steven.kim@peregrine.com>.
89 * catgets/sample.SJIS: Add test case for above bug.
90 * catgets/test-gencat.c: Adjust test code.
91 * catgets/test-gencat.sh: Adjust expected results.
93 * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
94 to skip relative relocations.
95 Patch by Geoff Keating <geoffk@redhat.com>.
97 2002-05-26 Bruno Haible <bruno@clisp.org>
99 * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
100 (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
102 * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
103 STANDARD_FROM_LOOP_ERR_HANDLER.
104 (utf8_internal_loop): Likewise.
105 (ucs2_internal_loop): Likewise.
106 (internal_ucs2_loop): Perform error handling like in
107 STANDARD_FROM_LOOP_ERR_HANDLER.
108 * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
109 in STANDARD_FROM_LOOP_ERR_HANDLER.
110 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
112 * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
113 in STANDARD_FROM_LOOP_ERR_HANDLER.
114 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
116 * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
117 in STANDARD_FROM_LOOP_ERR_HANDLER.
118 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
120 * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
121 STANDARD_FROM_LOOP_ERR_HANDLER.
122 * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
123 * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
124 * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
125 * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
126 * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
127 * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
128 * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
129 * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
130 * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
131 * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
132 * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
133 * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
134 * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
135 * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
136 * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
137 * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
138 * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
139 * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
140 * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
141 * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
142 * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
143 * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
144 * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
145 * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
146 * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
147 * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
148 * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
149 * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
150 * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise. When ignoring
151 an error, still set result = __GCONV_ILLEGAL_INPUT.
152 (BODY for TO_LOOP): Likewise.
153 * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
154 STANDARD_FROM_LOOP_ERR_HANDLER.
155 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
156 * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
157 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
159 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
160 * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
161 STANDARD_FROM_LOOP_ERR_HANDLER.
162 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
163 * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
164 STANDARD_FROM_LOOP_ERR_HANDLER.
165 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
166 * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
167 STANDARD_FROM_LOOP_ERR_HANDLER.
168 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
169 * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
170 STANDARD_FROM_LOOP_ERR_HANDLER.
171 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
172 * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
173 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
175 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
176 * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
177 * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
178 * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
180 2002-06-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
182 * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
183 labels in assembler instructions.
185 2002-06-25 Ulrich Drepper <drepper@redhat.com>
187 * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
188 not enough content is available.
189 * libio/tst-eof.c: New file.
190 * libio/Makefile (tests): Add tst-eof.
192 * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
194 * libio/tst-atime.c: New file.
195 * libio/Makefile (tests): Add tst-atime.
197 * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
198 handling of overly long words.
200 2002-06-25 Andreas Jaeger <aj@suse.de>
202 * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
203 to not use 32-bit pc relative relocations.
204 (elf_machine_dynamic): Likewise.
206 2002-06-21 Ulrich Drepper <drepper@redhat.com>
208 * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
209 (__GETDENTS): Check for failed getdents64 syscall.
210 * dirent/Makefile (tests): Add bug-readdir1.
211 * dirent/bug-readdir1.c: New file.
213 2002-06-17 Jakub Jelinek <jakub@redhat.com>
215 * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
217 * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
218 code. Print TLS modid and offset for modules containing PT_TLS
221 2002-06-09 Jakub Jelinek <jakub@redhat.com>
223 * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
224 * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
225 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
226 * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
228 2002-06-07 Jakub Jelinek <jakub@redhat.com>
230 * nss/getXXbyYY_r.c (NEW, NEW1): Define.
231 (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
232 (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
233 * nss/getXXent_r.c (NEW, NEW1): Define.
234 (NEW (REENTRANT_GETNAME)): Strong alias to
235 INTERNAL (REENTRANT_GETNAME).
236 (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
238 2002-06-21 Ulrich Drepper <drepper@redhat.com>
240 * libio/fileops.c (_IO_file_setbuf_mmap): New function.
241 (_IO_file_jumps_mmap): Use it.
242 * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
243 * libio/libioP.h: Remove _IO_wdefault_setbuf and
244 _IO_wdefault_setbuf_internal prorotypes. Add _IO_file_setbuf_mmap
246 * libio/wfileops.c (_IO_wfile_setbuf): Removed.
247 (_IO_wfile_jumps_mmap): Don't use it anymore.
248 * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
249 * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
251 * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
252 * libio/wstrops.c (_IO_wstr_jumps): Likewise.
253 * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
255 2002-06-05 Jakub Jelinek <jakub@redhat.com>
257 * libio/Makefile (tests): Add tst-mmap-setvbuf.
258 * libio/tst-mmap-setvbuf.c: New test.
260 2002-06-21 Andreas Jaeger <aj@suse.de>
262 * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
264 2002-06-18 Jakub Jelinek <jakub@redhat.com>
266 * include/unistd.h (__fork_internal): Remove.
267 (__fork): Don't define to __fork_internal.
268 * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
269 * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
270 * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
271 * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
272 * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
274 2002-06-20 Ulrich Drepper <drepper@redhat.com>
276 * po/hr.po: New file.
278 2002-06-11 Wolfram Gloger <wg@malloc.de>
280 * malloc/malloc.c: Fix error path when new_heap() returns NULL.
281 Reported by Michael Meissner <meissner@redhat.com>.
283 2002-06-20 Ulrich Drepper <drepper@redhat.com>
285 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
286 Patch by Hans Boehm <hans_boehm@hp.com>.
288 2002-06-20 Andreas Jaeger <aj@suse.de>
290 * math/libm-test.inc: Use exact values as input parameters,
291 compute output parameters with 36 digits for 128-bit long doubles.
292 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
293 * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
294 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
296 2002-06-13 Stephen L Moshier <steve@moshier.net>
298 * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
299 argument or result is subnormal.
301 2002-06-19 Ulrich Drepper <drepper@redhat.com>
303 * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
305 * sysdeps/i386/fpu/s_remquof.S: Likewise.
306 * sysdeps/i386/fpu/s_remquol.S: Likewise.
308 * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
310 2002-06-17 David Mosberger <davidm@hpl.hp.com>
312 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
313 typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
314 Reported by Peter A. Buhr.
316 2002-06-15 Roland McGrath <roland@frob.com>
318 * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
321 * sysdeps/mach/hurd/getcwd.c
322 (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
324 * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
325 * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
327 * sysdeps/alpha/divrem.h: Use local label instead of global one for
328 jump to local subroutine.
330 2002-06-14 Roland McGrath <roland@frob.com>
332 * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
333 * sysdeps/mach/hurd/Makeconfig: ... here.
335 2002-06-13 Andreas Schwab <schwab@suse.de>
337 * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
338 * sysdeps/m68k/fpu/s_finitef.c: Likewise.
339 * sysdeps/m68k/fpu/s_finitel.c: Likewise.
341 2002-06-13 Roland McGrath <roland@frob.com>
343 * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
344 * hurd/hurdstartup.c (_hurd_startup): Likewise.
345 Use intptr_t instead of int for argc in stack layout.
346 * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
347 (_dl_init_first): Likewise.
348 (_hurd_stack_setup): Likewise.
350 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
352 * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
353 argument to pfinet_siocgifconf RPC.
355 2002-06-13 Andreas Schwab <schwab@suse.de>
357 * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
360 2002-06-12 Roland McGrath <roland@frob.com>
362 * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
364 [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
365 [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
367 2002-06-11 Roland McGrath <roland@frob.com>
369 * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
370 file on [!RTLD_STAT64].
371 * sysdeps/mach/hurd/fxstat64.c: Likewise.
373 * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
374 (__fdopen): Use INTUSE.
375 * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
377 * stdio-common/tmpfile64.c: File removed.
378 * sysdeps/generic/tmpfile64.c: New file.
379 * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
380 if not already defined.
381 (tmpfile): Use it in place of __GT_FILE.
383 * include/unistd.h: Declare __chown_internal.
385 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
386 * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
388 2002-06-09 Roland McGrath <roland@frob.com>
390 Update to new Hurd RPC interfaces supporting 64-bit file sizes.
391 * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
392 value of HURD_INTERFACE_VERSION >= 20020609.
393 * sysdeps/mach/hurd/configure: Regenerated.
394 * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
395 * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
396 convert a struct stat64 into a struct stat and return 0 or -1
397 with errno set to EOVERFLOW.
398 * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
399 for struct statfs64 to struct statfs.
400 * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
401 * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
402 * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
403 * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
404 * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
405 * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
406 * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
407 * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
408 * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
409 * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
410 * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
411 * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
412 * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
413 * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
414 * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
415 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
416 * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
417 * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
418 * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
419 * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
420 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
421 Use struct stat64 for io_stat argument.
422 * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
423 * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
425 * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
426 * hurd/fd-write.c (_hurd_fd_write): Likewise.
427 * hurd/hurd/fd.h: Update decls.
428 * sysdeps/mach/hurd/getcwd.c
429 (_hurd_canonicalize_directory_name_internal): Use ino64_t
431 * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
432 (__xstat): Renamed to __xstat64, use struct stat64 for argument.
433 (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
434 (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
436 2002-06-08 Roland McGrath <roland@frob.com>
438 * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
439 instead of unsigned long int for __allocation and __size members.
441 2002-06-09 Jakub Jelinek <jakub@redhat.com>
443 * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
444 * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
445 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
446 * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
448 2002-06-07 Roland McGrath <roland@frob.com>
450 * sysdeps/mach/hurd/bits/environments.h: File removed.
452 2002-06-07 Jakub Jelinek <jakub@redhat.com>
454 * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
455 * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
456 * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
457 * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
458 * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
459 (sendfile64): Likewise.
460 * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
461 * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
462 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
464 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
466 * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
469 2002-06-04 Bruno Haible <bruno@clisp.org>
471 * sysdeps/cris/stackinfo.h: New file.
473 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
474 to an integer type before performing bit operations on it.
476 2002-06-05 Roland McGrath <roland@frob.com>
478 * sysdeps/generic/sendfile.c: Include <errno.h>.
479 * sysdeps/generic/sendfile64.c: Likewise.
481 * io/Makefile (routines): Add sendfile and sendfile64.
482 (headers): Add sys/sendfile.h to the list.
483 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
484 * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
485 * io/sys/sendfile.h: ... here.
486 * sysdeps/generic/sendfile.c: New file.
487 * sysdeps/generic/sendfile64.c: New file.
489 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
490 Move sendfile, sendfile64 to ...
491 * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
492 * sysdeps/mach/hurd/sendfile.c: New file.
493 * sysdeps/mach/hurd/sendfile64.c: New file.
495 * sysdeps/mach/nanosleep.c: New file.
497 2002-06-04 Roland McGrath <roland@frob.com>
499 * sysdeps/alpha/elf/configure.in: New file. Check for TLS support.
500 * sysdeps/alpha/elf/configure: New file (generated).
502 2002-06-02 Roland McGrath <roland@frob.com>
504 * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
506 2002-06-01 Roland McGrath <roland@frob.com>
508 * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
509 i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
511 2002-05-19 Ulrich Drepper <drepper@redhat.com>
513 * resolv/resolv.h (struct __res_state): Remove unused nstimes.
515 * resolv/res_init.c (__res_vinit): Initialize nsmap array.
516 Remove nstimes setting.
517 (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
518 * resolv/res_send.c (res_nsend): Don't close unconditionally if
519 there is mix of IPv6 and IPv4 nameservers.
520 Use nsmap array to find free slots and preserve nameserver ordering.
523 2002-05-30 Ulrich Drepper <drepper@redhat.com>
525 * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
526 use this header with LFS.
528 * po/sk.po: Update from translation team.
530 2002-05-28 Andreas Schwab <schwab@suse.de>
532 * sysdeps/generic/readelflib.c (process_elf_file): Give correct
533 message when finding object of wrong class.
535 2002-05-28 Jakub Jelinek <jakub@redhat.com>
537 * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
538 Patch by <radu@netsoft.ro>.
540 2002-05-30 Ulrich Drepper <drepper@redhat.com>
542 * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
544 * sysdeps/unix/sysv/linux/readahead.c: New file.
545 * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
546 * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
547 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
548 Add sendfile64 alias to sendfile syscall.
549 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
550 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
551 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
552 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
555 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
556 special section for PIC register loading.
557 * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
559 * config.h.in: Define HAVE_HIDDEN.
560 * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
562 * elf/elf.h: Correct Alpha TLS relocations according to last spec.
564 2002-05-28 Roland McGrath <roland@frob.com>
566 * sysdeps/mach/alpha/setfpucw.c: New file.
568 2002-05-26 Roland McGrath <roland@frob.com>
570 * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
571 Use integer_t instead of int for IOC_VOID case.
573 2002-05-27 Alexandre Oliva <aoliva@redhat.com>
575 * configure.in (DO_STATIC_NSS): Define if --disable-shared.
577 2002-05-26 Bruno Haible <bruno@clisp.org>
579 * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
580 end of the ISO-8859-7 from idx table.
582 2002-05-27 Ulrich Drepper <drepper@redhat.com>
584 * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
586 2002-05-24 David S. Miller <davem@redhat.com>
588 * string/bits/string2.h (memset): Do not try to optimize when
589 not _STRING_ARCH_unaligned if GCC will do the right thing.
591 2002-05-21 Isamu Hasegawa <isamu@yamato.ibm.com>
593 * posix/regex.c: Define `inline' as a macro into nothing for the
594 compilers which lack the keyword.
595 * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
596 for the compatibility of gawk.
597 * posix/regcomp.c: Add fake implementation of isblank() for the
598 environments which lack the function.
599 Don't use free_charset() in case of non-i18n envs.
600 (build_range_exp): Don't use i18n related code in case of non-i18n
602 (build_collating_symbol): Likewise.
603 (build_equiv_class): Likewise.
604 (build_charclass): Likewise.
605 (re_compile_fastmap_iter): Likewise.
606 (parse_bracket_exp): Likewise.
607 (build_word_op): Likewise.
608 (regfree): Don't use free_charset() in case of non-i18n envs.
609 * posix/regex_internal.h: Remove COMPLEX_BRACKET from
610 re_token_type_t in case of non-i18n envs.
611 Don't define re_charset_t in case of non-i18n envs.
612 Change the type of wcs of re_string_t from wchar_t to wint_t,
613 since we store also WEOF.
614 * posix/regex_internal.c: (re_string_realloc_buffers): Change
615 the type of wcs of re_string_t from wchar_t to wint_t.
616 (re_string_reconstruct): Likewise.
617 (create_ci_newstate): Don't use i18n related code in case of
619 (create_cd_newstate): Likewise.
621 2002-05-24 Ulrich Drepper <drepper@redhat.com>
623 * iconv/loop.c: Fix typo.
625 2002-05-23 Jakub Jelinek <jakub@redhat.com>
627 * inet/ether_line.c (ether_line): Fix a typo causing only
628 lower 4 bits of each ethernet address byte being assigned.
629 Don't modify what line points to.
630 * inet/tst-ether_aton.c (main): Add ether_line tests.
632 2002-05-23 Marcus Brinkmann <marcus@gnu.org>
634 * manual/filesys.texi: Don't make readlink example leak memory
637 2002-05-20 Ulrich Drepper <drepper@redhat.com>
639 * iconv/loop.c: Fix condition for defining unaligned loop. Add
640 some more security checks.
642 2002-05-17 David S. Miller <davem@redhat.com>
644 * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
646 2002-05-16 David S. Miller <davem@redhat.com>
648 * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
649 (elf_machine_dynamic): Use it to force PIC register to be loaded.
650 (elf_machine_load_address): Likewise.
651 * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
653 * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
654 is unaligned, do not forget to fully initialize %g1 magic value.
656 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
657 register definitions and provide 32-bit variants of structures
658 during 64-bit builds.
660 * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
661 * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
662 * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
663 * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
664 _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
665 (_FP_FROM_INT): Perform right shifts on unsigned integer type.
666 Do not clear implicit one bit here, it must be done post-rounding.
667 Only pad to the left using left shift if value uses less than the
668 available fractional bits.
670 2002-05-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
672 * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
673 instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
674 (shared-only-routines): Likewise.
675 * sysdeps/powerpc/libgcc-compat.c: New file.
676 * sysdeps/wordsize-32/cmpdi2.c: Removed.
677 * sysdeps/wordsize-32/fixdfdi.c: Removed.
678 * sysdeps/wordsize-32/fixsfdi.c: Removed.
679 * sysdeps/wordsize-32/shdi3.c: Removed.
681 2002-05-16 Bruno Haible <bruno@clisp.org>
683 * MakeTAGS (libc.pot): Don't sort the output.
684 * po/header.pot: Update to match xgettext 0.11 output.
686 2002-05-16 Bruno Haible <bruno@clisp.org>
688 * MakeTAGS (subdirs): Remove duplicates.
690 2002-05-19 Ulrich Drepper <drepper@redhat.com>
692 * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
693 definiton of _old_sys_nerr. Define _old_sys_errlist as strong
696 2002-05-19 Andreas Jaeger <aj@suse.de>
698 * sysdeps/unix/sysv/linux/configure.in: Warn against an
699 installation in /usr/local.
701 2002-05-16 Bruno Haible <bruno@clisp.org>
703 * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
704 string as argument of #error.
706 2002-05-15 Ulrich Drepper <drepper@redhat.com>
708 * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
709 don't define static. Remove old __realpath function. TC1 of
710 POSIX 2001 will allow the second parameter to be NULL.
711 * stdlib/test-canon.c: Comment out test for NULL as second
712 parameter of realpath.
714 * time/offtime.c (__offtime): Set errno if overflow is detected.
716 * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
717 * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
720 * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
723 2002-05-15 Roland McGrath <roland@frob.com>
725 * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
727 2002-05-12 Bruno Haible <bruno@clisp.org>
729 * iconvdata/testdata/EUC-JISX0213: New file.
730 * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
731 * iconvdata/testdata/SHIFT_JISX0213: New file.
732 * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
733 * iconvdata/testdata/ISO-2022-JP-3: New file.
734 * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
735 * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
736 * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
737 contains comments indicating precomposed characters.
739 2002-04-21 Bruno Haible <bruno@clisp.org>
741 * iconvdata/iso-2022-jp-3.c: New file.
742 * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
743 * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
744 (LDFLAGS-ISO-2022-JP-3.so): New variable.
745 (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
746 (distribute): Add iso-2022-jp-3.c.
748 2002-05-12 Bruno Haible <bruno@clisp.org>
750 * iconvdata/tst-table-to.c (main): Restore handling of
751 transliterations, broken by last patch.
753 2002-05-12 Bruno Haible <bruno@clisp.org>
755 * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
757 2002-05-12 Bruno Haible <bruno@clisp.org>
759 * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
760 when there is not enough room in the output buffer.
761 * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
763 2002-04-20 Bruno Haible <bruno@clisp.org>
765 * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
767 (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
768 Also make this macro work if FROM_DIRECTION evaluates to 0.
769 (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
770 (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
771 of consume_incomplete.
772 * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
773 instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
775 * iconvdata/cp1258.c: Likewise.
776 * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
777 instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
779 * iconvdata/ibm933.c: Likewise.
780 * iconvdata/ibm935.c: Likewise.
781 * iconvdata/ibm937.c: Likewise.
782 * iconvdata/ibm939.c: Likewise.
783 * iconvdata/iso-2022-cn.c: Define
784 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
785 {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
786 * iconvdata/iso-2022-cn-ext.c: Likewise.
787 * iconvdata/iso-2022-jp.c: Define
788 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
789 {MIN,MAX}_NEEDED_{FROM,TO}.
790 * iconvdata/tcvn5712-1.c: Define
791 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
792 {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
793 * iconvdata/euc-jisx0213.c: Define
794 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
795 {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
796 * iconvdata/shift_jisx0213.c: Likewise.
798 2002-05-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
800 * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
801 shdi3, fixdfdi, fixsfdi in csu dir.
802 (shared-only-routines): Likewise.
803 * sysdeps/wordsize-32/cmpdi2.c: New file.
804 * sysdeps/wordsize-32/shdi3.c: New file.
805 * sysdeps/wordsize-32/fixdfdi.c: New file.
806 * sysdeps/wordsize-32/fixsfdi.c: New file.
807 * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
808 __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
809 __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
811 * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
812 Only use va_arg if the argument will be used [PR libc/3259].
814 2002-05-06 Michael A. Schmidt <mmaass@us.ibm.com>
816 * catgets/catgets.c (catopen): Free buffer if internal catalog
819 2002-05-14 Ulrich Drepper <drepper@redhat.com>
821 * debug/xtrace.sh: Make more robust. For realtime tracking use
822 non-buffering methods.
823 * debug/pcprofiledump.c: Implement -u option.
824 Patch by Roger Luethi <rl@hellgate.ch>.
826 2002-05-11 Jakub Jelinek <jakub@redhat.com>
828 * include/netinet/in.h (bindresvport_internal): Add prototype.
829 * include/rpc/auth.h (authunix_create_internal,
830 authunix_create_default_internal, authnone_create_internal,
831 authdes_pk_create_internal): Add prototypes.
832 * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
833 clntudp_create_internal, clntudp_bufcreate_internal,
834 clntunix_create_internal): Add prototypes.
835 * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
836 svc_getreq_internal, svc_getreq_common_internal,
837 svc_getreqset_internal, svc_getreq_poll_internal,
838 svc_register_internal, svc_unregister_internal,
839 svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
840 * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
841 * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
842 __setsockopt, __getsockname, __bind, __listen): Add prototypes.
843 * inet/rexec.c (rexec_af): Use __listen and __getsockname.
844 * inet/rcmd.c (rcmd_af): Use __listen.
845 (rresvport_af): Use __bind.
846 * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
847 authunix_create, authunix_create_default, authnone_create,
848 authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
849 clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
850 svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
851 svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
852 _authenticate, add INTDEF after such function definitions.
853 Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
854 __setsockopt, __getsockname instead of non-__ variants.
855 * sunrpc/pmap_rmt.c: Likewise.
856 * sunrpc/rtime.c: Likewise.
857 * sunrpc/svc_udp.c: Likewise.
858 * sunrpc/clnt_unix.c: Likewise.
859 * sunrpc/svc_unix.c: Likewise.
860 * sunrpc/bindrsvprt.c: Likewise.
861 * sunrpc/svc_tcp.c: Likewise.
862 * sunrpc/auth_none.c: Likewise.
863 * sunrpc/clnt_raw.c: Likewise.
864 * sunrpc/clnt_tcp.c: Likewise.
865 * sunrpc/auth_unix.c: Likewise.
866 * sunrpc/key_call.c: Likewise.
867 * sunrpc/clnt_gen.c: Likewise.
868 * sunrpc/pm_getmaps.c: Likewise.
869 * sunrpc/clnt_simp.c: Likewise.
870 * sunrpc/pmap_clnt.c: Likewise.
871 * sunrpc/svc_run.c: Likewise.
872 * sunrpc/svc.c: Likewise.
873 * sunrpc/svc_simple.c: Likewise.
874 * sunrpc/pm_getport.c: Likewise.
875 * sunrpc/auth_des.c: Likewise.
876 * sunrpc/svc_auth.c: Likewise.
877 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
878 __register_frame_info_table_bases, __deregister_frame_info_bases):
880 (__register_frame_info_bases_internal,
881 __register_frame_info_table_bases_internal,
882 __deregister_frame_info_bases_internal): Add prototypes.
883 (__register_frame_info, __register_frame): Use INTUSE in call to
884 __register_frame_info_bases.
885 (__register_frame_info_table): Similarly.
886 (__deregister_frame_info, __deregister_frame): Similarly.
887 * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
888 sendto as weak alias.
889 * sysdeps/mach/hurd/sendto.c: Likewise.
890 * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
891 recvfrom as weak alias.
892 * sysdeps/mach/hurd/recvfrom.c: Likewise.
893 * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
894 * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
895 recvmsg as weak alias.
896 * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
897 * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
898 sendmsg as weak alias.
899 * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
900 * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
901 setsockopt, add setsockopt as weak alias.
902 * sysdeps/mach/hurd/setsockopt.c: Likewise.
903 * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
905 * sysdeps/mach/hurd/bind.c: Likewise.
906 * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
908 * sysdeps/mach/hurd/listen.c: Likewise.
909 * sysdeps/generic/getsockname.c (__getsockname): Renamed from
910 getsockname, add getsockname as weak alias.
911 * sysdeps/mach/hurd/getsockname.c: Likewise.
912 * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
913 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
914 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
915 * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
916 __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
917 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
919 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
920 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
921 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
922 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
923 * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
924 * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
925 * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
926 * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
927 * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
928 * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
929 * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
930 * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
932 2002-05-10 Jakub Jelinek <jakub@redhat.com>
934 * locale/programs/localedef.h (show_archive_content): Add verbose
936 * locale/programs/localedef.c (main): Adjust caller.
937 * locale/programs/locarchive.c (struct nameent, struct dataent): New.
938 (nameentcmp, dataentcmp): New functions.
940 (show_archive_content): Print verbose listing with --list-archive -v.
942 2002-05-14 Ulrich Drepper <drepper@redhat.com>
944 * locale/programs/locarchive.c (open_archive): Take extra argument
945 readonly. If true open file with O_RDONLY and don't create the
946 archive if it doesn't exist.
948 (close_archive): Don't do anything if fd element is -1.
949 * locale/programs/localedef.h (open_archive): Adjust prototype.
950 * locale/programs/locfile.c (write_all_categories): Adjust open_archive
953 * malloc/malloc.c (__posix_memalign): Correct check for size of
954 alignment value [PR libc/3444].
956 * include/stdio.h: Remove references to old stdio implementation.
958 * libio/Makefile (bug-ungetwc2-ENV): Define.
960 2002-05-13 Roland McGrath <roland@frob.com>
962 * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
964 * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
966 2002-05-13 Marcus Brinkmann <marcus@gnu.org>
968 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
969 Allocate three, not two, more than LEN when appending '/.'.
970 * sysdeps/mach/hurd/chroot.c (chroot): Likewise. Don't check
971 if NAME ends with '/.' if it is shorter than 2 chars.
973 2002-05-12 Roland McGrath <roland@frob.com>
975 * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
976 files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
978 * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
979 file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
981 2002-05-10 Jakub Jelinek <jakub@redhat.com>
983 * sysdeps/ia64/Makefile: Remove extra endif.
984 * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
986 2002-05-10 Andreas Schwab <schwab@suse.de>
988 * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
990 2002-05-09 Andreas Jaeger <aj@suse.de>
992 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New.
993 * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
994 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
996 * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
997 * sysdeps/wordsize-64/glob.c: ...here.
998 * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
999 * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
1000 * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
1002 2002-05-08 Roland McGrath <roland@frob.com>
1004 * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
1005 O_NOTRANS flag in "." lookup.
1007 2002-05-05 Ulrich Drepper <drepper@redhat.com>
1009 * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
1011 2002-05-04 Ulrich Drepper <drepper@redhat.com>
1013 * locale/duplocale.c (__duplocale): Update special members only
1014 when allocation succeeded.
1016 2002-05-03 Roland McGrath <roland@frob.com>
1018 * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
1019 we can only build libc.so.0.3(GLIBC_2.2.6) now.
1021 2002-05-02 Jakub Jelinek <jakub@redhat.com>
1023 * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
1024 * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
1025 __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
1026 * sysdeps/ia64/ia64libgcc.S: New file.
1028 2002-05-02 Ulrich Drepper <drepper@redhat.com>
1030 * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
1032 * malloc/memusage.c: Distinguish anonymous mmap.
1034 2002-05-01 Roland McGrath <roland@frob.com>
1036 * sysdeps/mach/hurd/close.c: #undef __close before function defn,
1037 and use INTDEF on it.
1038 * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
1040 * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
1042 * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
1044 2002-05-01 Ulrich Drepper <drepper@redhat.com>
1046 * malloc/memusage.c: Add support for tracking mmap & friends.
1047 * malloc/memusage.sh: Implement -m/--mmap option.
1049 2002-04-30 Jakub Jelinek <jakub@redhat.com>
1051 * locale/programs/locarchive.c (create_archive): Add archivefname
1052 argument, create fname from it.
1053 (enlarge_archive): Honour output_prefix.
1054 (open_archive): Likewise.
1056 2002-04-30 Jakub Jelinek <jakub@redhat.com>
1058 * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
1059 too many stpcpy macros.
1061 2002-04-26 Bruno Haible <bruno@clisp.org>
1063 * locale/programs/ld-collate.c (collate_read): Cast first argument
1066 2002-04-26 Bruno Haible <bruno@clisp.org>
1068 * include/libintl.h (__ngettext, __dngettext, __dcngettext,
1069 __dcngettext_internal): New declarations.
1070 (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
1071 attribute declarations.
1073 2002-04-30 Roland McGrath <roland@frob.com>
1075 Removed old GNU stdio implementation; GNU libio is now the only option.
1076 * configure.in: Removed --enable-libio option and @stdio@ subst var.
1077 Define USE_IN_LIBIO unconditionally.
1078 * configure: Regenerated.
1079 * Makeconfig (stdio): Set to libio by default.
1080 * config.make.in (stdio): Variable removed.
1081 * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
1082 * sysdeps/unix/sysv/linux/configure: Regenerated.
1083 * sysdeps/mach/hurd/configure.in: Don't test $stdio.
1084 * sysdeps/mach/hurd/configure: Regenerated.
1085 * stdio/.cvsignore: File removed.
1086 * stdio/Makefile: File removed.
1087 * stdio/Versions: File removed.
1088 * stdio/__fbufsize.c: File removed.
1089 * stdio/__flbf.c: File removed.
1090 * stdio/__fpending.c: File removed.
1091 * stdio/__fpurge.c: File removed.
1092 * stdio/__freadable.c: File removed.
1093 * stdio/__freading.c: File removed.
1094 * stdio/__fsetlocking.c: File removed.
1095 * stdio/__fwritable.c: File removed.
1096 * stdio/__fwriting.c: File removed.
1097 * stdio/clearerr.c: File removed.
1098 * stdio/fclose.c: File removed.
1099 * stdio/fcloseall.c: File removed.
1100 * stdio/feof.c: File removed.
1101 * stdio/ferror.c: File removed.
1102 * stdio/fflush.c: File removed.
1103 * stdio/fgetc.c: File removed.
1104 * stdio/fgetpos.c: File removed.
1105 * stdio/fgets.c: File removed.
1106 * stdio/fileno.c: File removed.
1107 * stdio/fmemopen.c: File removed.
1108 * stdio/fopen.c: File removed.
1109 * stdio/fopncook.c: File removed.
1110 * stdio/fputc.c: File removed.
1111 * stdio/fputs.c: File removed.
1112 * stdio/fread.c: File removed.
1113 * stdio/freopen.c: File removed.
1114 * stdio/fseek.c: File removed.
1115 * stdio/fsetpos.c: File removed.
1116 * stdio/ftell.c: File removed.
1117 * stdio/fwrite.c: File removed.
1118 * stdio/getc.c: File removed.
1119 * stdio/getchar.c: File removed.
1120 * stdio/getdelim.c: File removed.
1121 * stdio/gets.c: File removed.
1122 * stdio/glue.c: File removed.
1123 * stdio/internals.c: File removed.
1124 * stdio/linewrap.c: File removed.
1125 * stdio/linewrap.h: File removed.
1126 * stdio/memstream.c: File removed.
1127 * stdio/newstream.c: File removed.
1128 * stdio/obstream.c: File removed.
1129 * stdio/putc.c: File removed.
1130 * stdio/putchar.c: File removed.
1131 * stdio/puts.c: File removed.
1132 * stdio/rewind.c: File removed.
1133 * stdio/setbuf.c: File removed.
1134 * stdio/setbuffer.c: File removed.
1135 * stdio/setlinebuf.c: File removed.
1136 * stdio/setvbuf.c: File removed.
1137 * stdio/stdio.h: File removed.
1138 * stdio/ungetc.c: File removed.
1139 * stdio/vasprintf.c: File removed.
1140 * stdio/vscanf.c: File removed.
1141 * stdio/vsnprintf.c: File removed.
1142 * stdio/vsprintf.c: File removed.
1143 * stdio/vsscanf.c: File removed.
1144 * sysdeps/generic/defs.c: File removed.
1145 * sysdeps/generic/fdopen.c: File removed.
1146 * sysdeps/generic/pipestream.c: File removed.
1147 * sysdeps/generic/stdio_init.c: File removed.
1148 * sysdeps/generic/sysd-stdio.c: File removed.
1149 * sysdeps/generic/vdprintf.c: File removed.
1150 * sysdeps/mach/hurd/defs.c: File removed.
1151 * sysdeps/mach/hurd/fdopen.c: File removed.
1152 * sysdeps/mach/hurd/pipestream.c: File removed.
1153 * sysdeps/mach/hurd/stdio_init.c: File removed.
1154 * sysdeps/mach/hurd/sysd-stdio.c: File removed.
1155 * sysdeps/mach/hurd/vdprintf.c: File removed.
1156 * sysdeps/posix/defs.c: File removed.
1157 * sysdeps/posix/fdopen.c: File removed.
1158 * sysdeps/posix/pipestream.c: File removed.
1159 * sysdeps/posix/stdio_init.c: File removed.
1160 * sysdeps/posix/vdprintf.c: File removed.
1161 * sysdeps/unix/pipestream.c: File removed.
1162 * sysdeps/unix/sysv/sysd-stdio.c: File removed.
1163 * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
1164 * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
1166 2002-04-29 Roland McGrath <roland@frob.com>
1168 * include/libc-symbols.h (link_warning): Use `unused' attribute.
1170 2002-04-28 Ulrich Drepper <drepper@redhat.com>
1172 * sysdeps/generic/tls.h: Describe what must be defined.
1174 * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
1175 glob_in_dir [PR libc/3385].
1176 * posix/globtest.sh: Add test case.
1178 * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
1181 2002-04-27 Ulrich Drepper <drepper@redhat.com>
1183 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
1184 _internal symbol handling.
1185 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
1187 2002-04-26 Ulrich Drepper <drepper@redhat.com>
1189 * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
1190 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
1192 2002-04-26 Isamu Hasegawa <isamu@yamato.ibm.com>
1194 * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
1195 not _LIBC and RE_ENABLE_I18N.
1196 (build_range_exp): Implement for not _LIBC.
1197 (build_collating_symbol): Likewise.
1198 (parse_bracket_exp): Unify redundant error handlings.
1199 Don't erase mbcset for non matching list in multibyte envs.
1200 (build_word_op): Add '_' to matching list for \w operator.
1201 * posix/regex_internal.c (re_string_construct): Invoke
1202 build_upper_buffer in case of not RE_ENABLE_I18N.
1203 (re_string_reconstruct): Don't touch cur_state in case of not
1205 * posix/regex_internal.h (attribute_hidden): New macro in case of
1207 (re_charset_t): Define range_starts/ends in case of not _LIBC.
1208 * posix/regexec.c (sift_states_iter_mb): Hide in case of not
1210 (transit_state_mb): Likewise.
1211 (check_node_accept_bytes): Implement the code evaluating range
1212 expression in case of not _LIBC.
1213 (find_collation_sequence_value): Hide in case of not _LIBC.
1215 2002-04-26 Jakub Jelinek <jakub@redhat.com>
1217 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
1219 (__old_semctl, __new_semctl): Only use va_arg if the argument will
1222 2002-04-26 Ulrich Drepper <drepper@redhat.com>
1224 * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
1226 * sysdeps/ia64/strncpy.S: Fix recovery code.
1227 Patch by David Mosberger <davidm@hpl.hp.com>.
1229 2002-04-24 Ulrich Drepper <drepper@redhat.com>
1231 * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
1234 2002-04-14 Bruno Haible <bruno@clisp.org>
1236 * posix/regex.c (re_max_failures): Add back symbol for binary
1239 2002-04-22 Isamu Hasegawa <isamu@yamato.ibm.com>
1241 * posix/regcomp.c (re_compile_internal): Adapt it to new interface
1242 of buffer building functions.
1243 * posix/regex_internal.c (re_string_allocate): New function.
1244 (re_string_realloc_buffers): New function.
1245 (re_string_skip_chars): New function.
1246 (re_string_reconstruct): New function.
1247 (re_string_construct): Adapt it to new interface of buffer building
1249 (re_string_construct_common): Likewise.
1250 (build_wcs_buffer): Likewise.
1251 (build_wcs_upper_buffer): Likewise.
1252 (build_upper_buffer): Likewise.
1253 (re_string_translate_buffer): Likewise.
1254 (re_string_context_at): Adapt it to variable length buffers.
1255 * posix/regex_internal.h (re_string_t): Add new fields to handle
1256 variable length buffers.
1257 (re_match_context_t): Likewise.
1258 * posix/regexec.c (re_search_internal): Adapt it to new interface
1259 of re_string_t and re_match_context_t.
1260 (acquire_init_state_context): Likewise.
1261 (check_matching): Likewise.
1262 (check_halt_state_context): Likewise.
1263 (proceed_next_node): Likewise.
1264 (set_regs): Likewise.
1265 (sift_states_backward): Likewise.
1266 (clean_state_log_if_need): Likewise.
1267 (sift_states_iter_mb): Likewise.
1268 (sift_states_iter_bkref): Likewise.
1269 (add_epsilon_backreference): Likewise.
1270 (transit_state): Likewise.
1271 (transit_state_sb): Likewise.
1272 (transit_state_mb): Likewise.
1273 (transit_state_bkref): Likewise.
1274 (transit_state_bkref_loop): Likewise.
1275 (check_node_accept): Likewise.
1276 (match_ctx_init): Likewise.
1277 (extend_buffers): New function.
1279 2002-04-21 Bruno Haible <bruno@clisp.org>
1281 * iconvdata/tst-table.sh: For the second check, use the truncated
1282 GB18030 charmap table, like for the first check.
1284 2002-04-24 Ulrich Drepper <drepper@redhat.com>
1286 * elf/dl-load.c (open_verify): Correct __lseek parameters.
1287 Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
1289 2002-04-23 H.J. Lu <hjl@gnu.org>
1291 * include/math.h (isfinite): Fix a typo.
1293 2002-04-24 Ulrich Drepper <drepper@redhat.com>
1295 * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
1296 which is created by the test suite.
1298 2002-04-20 Bruno Haible <bruno@clisp.org>
1300 * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
1301 (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
1303 2002-04-20 Bruno Haible <bruno@clisp.org>
1305 * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
1306 to avoid gcc warning.
1308 2002-04-20 Bruno Haible <bruno@clisp.org>
1310 * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
1311 of data->__statep->__count.
1313 2002-04-20 Bruno Haible <bruno@clisp.org>
1315 * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
1317 * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
1319 2002-04-24 Roland McGrath <roland@frob.com>
1321 * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
1322 use END macro instead of our own .end directive.
1323 Use `callsys' insn mnemonic instead of `call_pal'.
1325 * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
1327 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
1328 macro; we need this for Hurd.
1330 Log entry was missing for 2002/03/24 commit of rev 1.8,
1331 goes with 2002-03-17 changes.
1332 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
1333 (sysdep_routines): Append ioperm here.
1334 (sysdep_headers): Append sys/io.h here.
1336 2002-04-23 Roland McGrath <roland@frob.com>
1338 * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
1339 * sysdeps/mach/hurd/sendto.c: Likewise.
1340 * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
1341 * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
1342 * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
1344 2002-04-22 Roland McGrath <roland@frob.com>
1346 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
1347 failure from i386_io_perm_* RPCs to ENOSYS.
1349 2002-04-22 Andreas Jaeger <aj@suse.de>
1351 * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
1353 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
1355 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
1356 register instead of destroying %rbx.
1358 2002-04-21 Ulrich Drepper <drepper@redhat.com>
1360 * string/string.h: Declare strerror_r also for XPG6.
1362 2002-04-19 Roland McGrath <roland@frob.com>
1364 * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
1366 2002-04-20 Ulrich Drepper <drepper@redhat.com>
1368 * Makefile: Add handling of xtests and xcheck targets.
1369 * MakeTAGS: Likewise.
1370 * Makeconfig: Likewise.
1371 * Makerules: Likewise.
1373 * manual/Makefile: Likewise.
1374 * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
1375 * sunrpc/thrsvc.c: New file. By Zack Weinberg.
1377 2002-04-11 Zack Weinberg <zack@codesourcery.com>
1379 * include/rpc/rpc.h (struct rpc_thread_variables): Remove
1381 * sunrpc/auth_none.c: Include bits/libc-lock.h.
1382 Delete #ifdef _RPC_THREAD_SAFE_ block.
1383 (authnone_private): Make a struct, not a pointer to struct.
1384 (authnone_private_guard): New once-control variable.
1385 (authnone_create_once): New function, split out of
1386 authnone_create. No need to allocate memory.
1387 (authnone_create): Just call authnone_create_once via
1388 __libc_once, then return &authnone_private->no_client.
1389 (authnone_marshal): Access private data via CLIENT argument,
1390 not authnone_private pointer.
1391 Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
1392 * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
1395 2002-04-12 H.J. Lu <hjl@gnu.org>
1397 * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
1399 2002-04-18 Bruno Haible <bruno@clisp.org>
1401 * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
1402 FROM_DIRECTION): Make the FROM direction stateless.
1403 * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
1404 FROM_DIRECTION): Likewise.
1406 2002-04-15 Bruno Haible <bruno@clisp.org>
1408 * iconvdata/JISX0213.TXT: New file.
1409 * iconvdata/jisx0213.h: New file.
1410 * iconvdata/jisx0213.c: New file.
1411 * iconvdata/euc-jisx0213.c: New file.
1412 * iconvdata/shift_jisx0213.c: New file.
1413 * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
1414 * iconvdata/EUC-JISX0213.precomposed: New file.
1415 * iconvdata/SHIFT_JISX0213.precomposed: New file.
1416 * iconvdata/SHIFT_JISX0213.irreversible: New file.
1417 * iconvdata/tst-table-to.c (main): Make it work for encodings for
1418 which the "to" direction is stateful.
1419 * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
1420 * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
1422 (libJISX0213-routines): New variable.
1423 (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
1424 (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
1425 (LDFLAGS-libJISX0213.so): New variable.
1426 (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
1427 SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
1428 jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
1430 2002-04-15 Bruno Haible <bruno@clisp.org>
1432 * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
1433 uint32_t. Update to Unicode 3.2.
1434 (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
1435 (BODY for TO_LOOP): Handle the ASCII range specially.
1436 * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
1437 * iconvdata/testdata/BIG5HKSCS: Remove a character.
1438 * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
1440 2002-04-15 Bruno Haible <bruno@clisp.org>
1442 * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
1443 __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
1445 2002-04-15 Bruno Haible <bruno@clisp.org>
1447 * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
1448 (ucs4_to_cns11643): Update.
1449 * iconvdata/cns11643.c: Update to Unicode 3.2.
1450 (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
1451 __cns11643_from_ucs4p2_tab): Regenerated.
1452 (__cns11643_from_ucs4p2c_tab): New array.
1453 * iconvdata/cvs11643l1.c: Update comments.
1454 * iconvdata/EUC-TW.irreversible: Remove two entries.
1456 2002-04-15 Bruno Haible <bruno@clisp.org>
1458 * locale/C-translit.h.in: Update to Unicode 3.2.
1459 Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
1460 <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
1462 2002-04-15 Bruno Haible <bruno@clisp.org>
1464 * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
1465 (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
1467 2002-04-15 Bruno Haible <bruno@clisp.org>
1469 * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
1470 invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
1471 always one byte, not 0 bytes in some cases and 2 bytes in others.
1473 * iconvdata/tst-table-from.c (main): Correct the usage message.
1475 2002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
1477 * posix/regcomp.c (parse_expression): Fix incorrect error code.
1478 (parse_dup_op): Fix error handling like "a{}".
1479 (parse_bracket_exp): Add error handling.
1480 (fetch_number): Add error handling for "a{<very_large_number>}".
1482 2002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
1484 * posix/regcomp.c (parse_bracket_symbol): Add error handling
1485 in case that the symbol name is too long.
1486 (build_charclass): Handle [:lower:]/[:uppper:] correctly
1487 in case of REG_ICASE.
1489 2002-04-19 Andreas Jaeger <aj@suse.de>
1491 * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
1492 <hartvige@mips.com>.
1494 2002-04-15 H.J. Lu <hjl@gnu.org>
1496 * include/math.h (__finitel_internal): Declare only if
1497 __NO_LONG_DOUBLE_MATH is not defined.
1498 (__isinfl_internal): Likewise.
1499 (__isnanl_internal): Likewise.
1501 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
1502 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
1503 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1504 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
1505 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
1506 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1507 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1509 * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
1512 * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
1513 * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
1515 2002-04-15 Bruno Haible <bruno@clisp.org>
1517 * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
1518 (BODY for TO_LOOP): Likewise.
1519 * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
1520 * iconvdata/tst-table.sh: Add support for encodings which contain
1521 precomposed Unicode characters, known to the iconv converter in both
1522 directions but not listed in the charmap.
1523 * iconvdata/IBM856.irreversible: New file.
1524 * iconvdata/IBM922.irreversible: New file.
1525 * iconvdata/IBM1132.irreversible: New file.
1526 * iconvdata/IBM1133.irreversible: New file.
1527 * iconvdata/IBM1160.irreversible: New file.
1528 * iconvdata/IBM1161.irreversible: New file.
1529 * iconvdata/IBM1163.irreversible: New file.
1530 * iconvdata/IBM1164.irreversible: New file.
1531 * iconvdata/ARMSCII-8.irreversible: New file.
1532 * iconvdata/TCVN5712-1.precomposed: New file.
1533 * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
1534 IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
1535 ARMSCII-8, TCVN5712-1.
1536 * iconvdata/Makefile (distribute): Add IBM856.irreversible,
1537 IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
1538 IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
1539 IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
1541 2002-04-17 Jakub Jelinek <jakub@redhat.com>
1543 * time/tst-mktime.c: Include <stdlib.h>. Use %d, not %ld format
1544 for EVENING69. Include offsets in TZ environment variable.
1546 2002-04-18 Ulrich Drepper <drepper@redhat.com>
1548 * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
1549 avoid compiler warnings.
1551 * locale/programs/localedef.c (main): Always call
1552 construct_output_path.
1554 * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
1556 * locale/programs/locfile.c (to_archive): New variable. To collect
1557 data which has to be added to the locale archive.
1558 (write_all_categories): Take new third parameter with locale name.
1559 Unless no_archive flag set add new locale data to the archive
1560 (write_locale_data): Unless no-archive flag set store generated data
1561 in to_archive data structure instead of generation output file.
1562 Add new parameter with locale category index.
1563 * locale/programs/locfile.h: Add new parameters in declaractions of
1564 write_all_categories and write_locale_data.
1565 * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
1566 --add-to-archive, and --delete-from-archive options. Pass extra
1567 parameter to write_all_categories.
1568 * locale/programs/localedef.h: Add prototypes for functions in
1570 * locale/locarchive.h: New file.
1571 * locale/programs/locarchive.c: New file.
1572 * locale/Makefile (distribute): Add programs/locarchive.c and
1574 (localedef-modules): Add md5 and locarchive.
1575 Add vpath to crypt subdir for md5.c.
1577 * locale/programs/ld-address.c: Pass locale category ID as new second
1578 parameter to write_locale_data.
1579 * locale/programs/ld-collate.c: Likewise.
1580 * locale/programs/ld-ctype.c: Likewise.
1581 * locale/programs/ld-identification.c: Likewise.
1582 * locale/programs/ld-measurement.c: Likewise.
1583 * locale/programs/ld-messages.c: Likewise.
1584 * locale/programs/ld-monetary.c: Likewise.
1585 * locale/programs/ld-name.c: Likewise.
1586 * locale/programs/ld-numeric.c: Likewise.
1587 * locale/programs/ld-paper.c: Likewise.
1588 * locale/programs/ld-telephone.c: Likewise.
1589 * locale/programs/ld-time.c: Likewise.
1591 * locale/simple-hash.c: Move compute_hashval function from here...
1592 * locale/hashval.h: ...to here. New file.
1593 * locale/simple-hash.h: Add prototype for compute_hashval.
1595 * include/libintl.h: Minor cleanups.
1597 2002-04-16 Ulrich Drepper <drepper@redhat.com>
1599 * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
1601 2002-04-15 Ulrich Drepper <drepper@redhat.com>
1603 * include/sys/stat.h: Fix typo. Patch by HJ Lu.
1605 2002-04-14 Bruno Haible <bruno@clisp.org>
1607 * locale/programs/charmap.c (charmap_read): Don't access result if
1610 2002-02-17 Andreas Schwab <schwab@suse.de>
1612 * elf/reldep7.c: New file.
1613 * elf/reldep7mod1.c: New file.
1614 * elf/reldep7mod2.c: New file.
1615 * elf/Makefile: Add rules to build and run reldep7.
1617 2002-04-14 Jakub Jelinek <jakub@redhat.com>
1619 * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
1620 the end of the function. Pass original flags to recursive call if
1621 add_dependency failed.
1622 (_dl_lookup_versioned_symbol): Likewise.
1624 2002-04-13 Jakub Jelinek <jakub@redhat.com>
1626 * time/mktime.c (__mktime_internal): If year is 69, don't bail out
1627 early, but check whether it overflowed afterwards.
1628 * time/tst-mktime.c (main): Add new tests.
1630 2002-04-14 Ulrich Drepper <drepper@redhat.com>
1632 * debug/xtrace.sh: Fix program name in help message.
1633 Patch by Roger Luethi <rl@hellgate.ch>.
1635 * include/sys/stat.h: Add prototypes for __lxstat_internal and
1636 __lxstat64_internal. Add macros __lxstat and __lxstat64 if not
1638 * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
1639 * sysdeps/mach/hurd/lxstat.c: Likewise.
1640 * sysdeps/unix/common/lxstat.c: Likewise.
1641 * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
1642 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
1643 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
1644 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
1645 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
1646 * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
1647 * sysdeps/mach/hurd/lxstat64.c: Likewise.
1648 * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
1649 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
1651 * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
1652 prototypes. Add __mbrlen and __mbrtowc macros.
1653 * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
1654 * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
1656 * include/unistd.h: Add prototype for __write_internal and add
1657 __libc_write macro is SHARED.
1658 * sysdeps/generic/write.c: Use INTDEF for __write.
1659 * sysdeps/mach/hurd/write.c: Likewise.
1660 * sysdeps/unix/sysv/aix/write.c: Likewise.
1661 * sysdeps/unix/syscalls.list: Add __libc_write alias.
1663 * assert/assert.c: Replace STR_N_SIZE with something usable in
1665 * assert/assert-perr.c: Likewise.
1667 * include/sys/socket.h: Declare __libc_sa_len_internal and define
1668 SA_LEN macro to use it if not NOT_IN_libc.
1669 * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
1671 * include/fcntl.h: Declare __open_internal and define __open and
1672 __libc_open macros if not NOT_IN_libc.
1673 * sysdeps/generic/open.c: Use INTDEF for __open.
1674 * sysdeps/mach/hurd/open.c: Likewise.
1675 * sysdeps/unix/sysv/aix/open.c: Likewise.
1676 * sysdeps/unix/syscalls.list: Add __open_internal alias.
1678 * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
1681 * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
1682 * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
1683 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
1684 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
1686 * include/wctype.h: Declare __iswalpha_l_internal,
1687 __iswdigit_l_internal, __iswspace_l_internal,
1688 __iswxdigit_l_internal, and __iswctype_internal. Define
1689 __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
1690 __iswxdigit_l macros if not NOT_IN_libc.
1691 * wctype/iswctype.c: Use INTDEF for __iswctype.
1692 * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
1694 * include/math.h: Declare __isinf_internal, __isinfl_internal,
1695 __isnan_internal, and __isnanl_internal.
1696 * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
1697 __isnan, and __isnanl.
1698 * stdio-common/printf_size.c: Likewise.
1699 * sysdeps/generic/printf_fphex.c: Likewise.
1700 * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
1701 * sysdeps/i386/fpu/s_isnanl.c: Likewise.
1702 * sysdeps/ia64/fpu/s_isinf.S: Likewise.
1703 * sysdeps/ia64/fpu/s_isnan.S: Likewise.
1704 * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
1705 * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
1706 * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
1707 * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
1708 * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
1709 * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
1710 * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
1711 * sysdeps/m68k/s_isinfl.c: Likewise.
1712 * sysdeps/m68k/fpu/s_isinf.c: Likewise.
1713 * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
1715 * include/sys/time.h: Declare __gettimeofday_internal and define
1716 __gettimeofday macro if not NOT_IN_libc.
1717 * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
1718 * sysdeps/mach/gettimeofday.c: Likewise.
1719 * sysdeps/posix/gettimeofday.c: Likewise.
1720 * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
1721 * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
1722 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
1723 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
1725 * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
1726 and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
1727 Remove __lstat and __fstat inline functions.
1728 * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
1729 * sysdeps/mach/hurd/fxstat.c: Likewise.
1730 * sysdeps/unix/fxstat.c: Likewise.
1731 * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
1732 * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
1733 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
1734 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
1735 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
1736 * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
1737 * sysdeps/mach/hurd/fxstat64.c: Likewise.
1738 * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
1739 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
1741 * include/unistd.h: Declare __getpid_internal and define
1742 __getpid macro if not NOT_IN_libc.
1743 * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
1744 * sysdeps/generic/getpid.c: Likewise.
1745 * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
1746 * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
1748 * include/unistd.h: Declare __getpgid_internal and define
1749 __getpgid macro if not NOT_IN_libc.
1750 * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
1751 * sysdeps/mach/hurd/getpgid.c: Likewise.
1752 * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
1753 * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
1754 * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
1755 * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
1757 * include/unistd.h: Declare __getpagesize_internal and define
1758 __getpagesize macro if not NOT_IN_libc.
1759 * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
1761 * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
1762 * sysdeps/mach/getpagesize.c: Likewise.
1763 * sysdeps/posix/getpagesize.c: Likewise.
1764 * sysdeps/unix/getpagesize.c: Likewise.
1765 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
1766 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
1767 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
1768 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
1770 2002-04-13 Andreas Jaeger <aj@suse.de>
1772 * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
1773 as clobber to reduce register pressure.
1774 (__strpbrk_cg): Likewise.
1775 (__mempcpy_by4): Likewise.
1776 (__strstr_cg): Likewise.
1777 Add prototype for __memrchr.
1779 2002-04-13 Andreas Schwab <schwab@suse.de>
1781 * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
1782 * sysdeps/m68k/fpu/s_finitef.c: Likewise.
1783 * sysdeps/m68k/fpu/s_finitel.c: Likewise.
1785 2002-04-13 Ulrich Drepper <drepper@redhat.com>
1787 * elf/do-lookup.h [!VERSIONED]: Add new parameter flags. Use it to
1788 check whether the caller prefers getting the most recent version of
1789 a symbol of the earliest version.
1790 * elf/dl-lookup.c: Adjust all callers of do_lookup. Change
1791 _dl_do_lookup to also take the new parameter and pass it on.
1792 Change 'explicit' parameter of _dl_lookup_symbol and
1793 _dl_lookup_versioned_symbol to flags. Adjust tests.
1794 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
1795 * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
1796 _dl_lookup_versioned_symbol.
1797 * elf/dl-reloc.c: Likewise.
1798 * elf/dl-runtime.c: Likewise.
1799 * elf/dl-sym.c: Likewise.
1800 * sysdeps/mips/dl-machine.h: Likewise.
1802 2002-04-11 Jakub Jelinek <jakub@redhat.com>
1804 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
1806 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
1808 2002-04-10 Andreas Jaeger <aj@suse.de>
1810 * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
1812 * include/argz.h: Remove extra char from last patch.
1814 2002-04-09 Ulrich Drepper <drepper@redhat.com>
1816 * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
1817 * sysdeps/unix/sysv/aix/chown.c: Likewise.
1818 * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
1819 * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
1820 * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
1821 * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
1823 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
1825 * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
1826 * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
1827 * intl/ngettext.c: Likewise.
1829 * include/sys/socket.h: Declare __connect_internal and define
1830 __connect macro if not NOT_IN_libc.
1831 * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
1832 * sysdeps/unix/sysv/aix/connect.c: Likewise.
1833 * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
1835 * include/unistd.h: Declare __close_internal and define __close macro
1837 * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
1838 WJUMP3): Add extra parenthesis to avoid expanding element names with
1839 macors like __close.
1840 * sysdeps/unix/syscalls.list: Add __close_internal alias.
1842 * include/unistd.h: Declare __dup2_internal and define __dup2 macro
1844 * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
1845 * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
1846 * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
1848 * include/unistd.h: Declare __fork_internal and define __fork macro
1850 * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
1851 * sysdeps/unix/sysv/aix/fork.c: Likewise.
1852 * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
1854 * include/stdio_ext.h: Declare __fsetlocking_internal and define
1855 __fsetlocking macro to use it if not NOT_IN_libc.
1856 * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
1858 * libio/__fbufsize.c: Correct copyright.
1859 * libio/__flbf.c: Likewise.
1860 * libio/__fpending.c: Likewise.
1861 * libio/__fpurge.c: Likewise.
1862 * libio/__freadable.c: Likewise.
1863 * libio/__freading.c: Likewise.
1864 * libio/__fsetlocking.c: Likewise.
1865 * libio/__fwritable.c: Likewise.
1866 * libio/__fwriting.c: Likewise.
1868 * include/stdio.h: Declare __asprintf_internal and define __asprintf
1869 macro to use it if not NOT_IN_libc.
1870 * stdio-common/asprintf.c: Use INTDEF for __asprintf.
1872 * include/mntent.h: Declare __setmntent_internal,
1873 __getmntent_r_internal, __endmntent_internal. Define __setmntent,
1874 __getmntent_r, and __endmntent macros to use these functions if not
1876 * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
1879 * include/math.h: Declare __finite_internal, __finitef_internal, and
1880 __finitel_internal. Redefine isfinite macro if in libc or libm using
1882 * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
1883 * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
1884 * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
1885 * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
1886 * sysdeps/i386/fpu/s_finitef.S: Likewise.
1887 * sysdeps/i386/fpu/s_finitel.S: Likewise.
1888 * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
1889 * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
1890 * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
1891 * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
1893 * include/fcntl.h: Declare __fcntl_internal. Define __fcntl macro
1894 to use this function if not NOT_IN_libc.
1895 * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
1896 * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
1897 * sysdeps/mach/hurd/fcntl.c: Likewise.
1898 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
1899 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
1901 * include/argz.h: Declare __argz_count_internal and
1902 __argz_stringify_internal.
1903 * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
1905 * string/argz-count.c: Use INTDEF for __argz_count.
1906 * string/argz-stringify.c: Use INTDEF for __argz_stringify.
1908 * include/stdlib.h: Declare __cxa_atexit_internal and define
1909 __cxa_atexit macro if not NOT_IN_libc.
1910 * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
1911 * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
1913 * assert/assert.c: Use INTDEF for __assert_fail.
1914 * assert/__assert.c: Use INTUSE for call to __assert_fail.
1915 * include/assert.h: Declare __assert_fail_internal.
1917 * extra-lib.mk: Mark assignment to lib with override.
1919 2002-04-08 Ulrich Drepper <drepper@redhat.com>
1921 * Makerules: Use cppflags-iterator.mk to add defines for all test
1924 2002-04-08 kaz Kojima <kkojima@rr.iij4u.or.jp>
1926 * elf/elf.h: Define R_SH_TLS_xxx macros.
1927 * elf/rtld.c: Remove an extra parenthesis.
1928 * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
1930 * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
1931 * sysdeps/sh/dl-lookupcfg.h: New file.
1932 * sysdeps/sh/dl-tls.h: New file.
1933 * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
1934 ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
1935 (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
1936 R_SH_TLS_TPOFF32 relocations.
1938 2002-04-08 Ulrich Drepper <drepper@redhat.com>
1940 * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
1942 * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
1943 * include/stdlib.h: Likewise.
1945 2002-04-08 Jakub Jelinek <jakub@redhat.com>
1947 * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
1948 instead of _RTLD_LOCAL.
1949 * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
1950 * include/unistd.h: Likewise.
1951 * sysdeps/generic/ldsodefs.h: Likewise.
1953 * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
1954 if in libc or ld.so.
1956 2002-04-08 Andreas Jaeger <aj@suse.de>
1958 * elf/cache.c (print_entry): Support x86-64.
1960 2002-04-08 Ulrich Drepper <drepper@redhat.com>
1962 * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
1963 with one accessing the locale data structures directly.
1964 * stdio-common/printf-prs.c: Include localeinfo.h for new
1965 MB_CUR_MAX definition.
1967 * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
1968 is the name of the source file without extension.
1969 * Makefile (distribute): Add cppflags-iterator.mk.
1970 * cppflags-iterator.mk: New file.
1971 * extra-lib.mk: For the sources of the library run
1972 cppflags-iterator.mk.
1974 * include/libintl.h: Declare __dcgettext_internal and
1975 _libc_intl_domainname_internal. Define __dcgettext using these
1976 two symbols if used in libc itself.
1977 * argp/argp-help.c: Define dgettext using __dcgettext_internal and
1978 _libc_intl_domainname_internal.
1979 * argp/argp-parse.c: Likewise.
1980 * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
1981 * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
1982 * intl/gettext.c: Likewise.
1983 * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
1985 * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
1987 * posix/regex_internal.c (gettext): Likewise.
1989 2002-04-08 Andreas Jaeger <aj@suse.de>
1991 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
1993 * sysdeps/x86_64/fpu/s_llrint.S: New.
1994 * sysdeps/x86_64/fpu/s_llrintf.S: New.
1995 * sysdeps/x86_64/fpu/s_llrintl.S: New.
1996 * sysdeps/x86_64/fpu/s_lrint.S: New.
1997 * sysdeps/x86_64/fpu/s_lrintf.S: New
1998 * sysdeps/x86_64/fpu/s_lrintl.S: New.
2000 2002-04-08 Roland McGrath <roland@frob.com>
2002 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
2003 widening __hurd_fail value.
2005 2002-04-07 Roland McGrath <roland@frob.com>
2007 * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
2008 <mach/machine/alpha_instruction.h>.
2009 (_hurd_setup_sighandler): Take proper arguments for current decls.
2010 Update code to use _hurdsig_catch_fault.
2011 Use `callsys' instruction instead of `call_pal'.
2012 * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
2014 * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
2015 (ALIGN, at, AT, fp): New macros.
2017 2002-04-06 Roland McGrath <roland@frob.com>
2019 * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
2021 * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
2022 (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
2024 * sysdeps/mach/hurd/bind.c: Use prototype definition.
2025 * sysdeps/mach/hurd/connect.c: Likewise.
2026 * sysdeps/mach/hurd/getsockopt.c: Likewise.
2027 * sysdeps/mach/hurd/setsockopt.c: Likewise.
2029 * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
2032 * hurd/catch-exc.c: Use integer_t instead of int.
2033 * hurd/hurdfault.c: Likewise.
2035 * sysdeps/mach/hurd/alpha/exc2signal.c
2036 (_hurd_exception2signal): Rewritten.
2037 * sysdeps/mach/hurd/alpha/longjmp-ts.c
2038 (_hurd_longjmp_thread_state): Rewritten.
2040 2002-04-07 Ulrich Drepper <drepper@redhat.com>
2042 * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
2043 DB_LOOKUP_FCT prototype.
2044 * nss/getXXent_r.c: Likewise.
2045 * inet/getaliasent_r.c: Define NSS_attribute_hidden.
2046 * inet/getaliasname_r.c: Likewise.
2047 * inet/getnetbyad_r.c: Likewise.
2048 * inet/getnetbynm_r.c: Likewise.
2049 * inet/getnetent_r.c: Likewise.
2050 * inet/getproto_r.c: Likewise.
2051 * inet/getprtent_r.c: Likewise.
2052 * inet/getprtname_r.c: Likewise.
2053 * inet/getrpcbyname_r.c: Likewise.
2054 * inet/getrpcbynumber_r.c: Likewise.
2055 * inet/getrpcent_r.c: Likewise.
2056 * inet/getservent_r.c: Likewise.
2057 * inet/getsrvbynm_r.c: Likewise.
2058 * inet/getsrvbypt_r.c: Likewise.
2059 * shadow/getspent_r.c: Likewise.
2060 * shadow/getspnam_r.c: Likewise.
2062 * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
2064 * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
2065 Use i686-friendly PIC code.
2066 * sysdeps/i386/elf/setjmp.S: Likewise.
2068 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
2070 * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
2072 * elf/Versions: Remove it here.
2074 2002-04-06 Ulrich Drepper <drepper@redhat.com>
2076 * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
2077 direction. Reported by H . J . Lu <hjl@lucon.org>.
2079 2002-04-05 Ulrich Drepper <drepper@redhat.com>
2081 * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
2082 test just before the test runs.
2083 * intl/tst-translit.sh: Likewise.
2084 * intl/tst-codeset.sh: Likewise.
2086 * timezone/zic.c: Update from tzcode2002c.
2087 * timezone/asia: Update from tzdata2002c.
2088 * timezone/backward: Likewise.
2089 * timezone/europe: Likewise.
2090 * timezone/northamerica: Likewise.
2091 * timezone/northamerica: Likewise.
2092 * timezone/northamerica: Likewise.
2093 * timezone/southamerica: Likewise.
2094 * timezone/zone.tab: Likewise.
2096 2002-03-23 Jakub Jelinek <jakub@redhat.com>
2098 * sysdeps/generic/brk.c (__curbrk): Declare.
2099 * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
2100 * sysdeps/generic/dl-sbrk.c: Likewise.
2101 * sysdeps/unix/arm/dl-brk.S: New file.
2102 * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
2103 * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
2104 * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
2105 * sysdeps/unix/bsd/vax/dl-brk.S: New file.
2106 * sysdeps/unix/i386/dl-brk.S: New file.
2107 * sysdeps/unix/mips/dl-brk.S: New file.
2108 * sysdeps/unix/sparc/dl-brk.S: New file.
2109 * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
2110 * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
2111 * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
2112 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
2114 2002-04-03 Andreas Schwab <schwab@suse.de>
2116 * Makefile (headers): Add gnu/lib-names.h here instead of
2118 ($(inst_includedir)/gnu/lib-names.h): Remove explicit
2120 (install-headers): Add dependency on install-headers-nosubdir.
2121 * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
2122 instead of install-others.
2123 ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
2126 2002-04-05 Ulrich Drepper <drepper@redhat.com>
2128 * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
2129 Reported by Sam Roberts <sroberts@uniserve.com>.
2131 2002-04-03 Jakub Jelinek <jakub@redhat.com>
2133 * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
2134 l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
2135 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
2136 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
2138 2002-04-03 David Mosberger <davidm@hpl.hp.com>
2140 * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
2141 (RTLD_START): Ditto.
2142 (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
2143 dependency violation.
2145 2002-04-05 Jakub Jelinek <jakub@redhat.com>
2147 * time/mktime.c (__mktime_internal): Move check for year < 70 below
2148 all variable declarations.
2150 2002-04-04 Andreas Schwab <schwab@suse.de>
2152 * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
2154 2002-04-04 Andreas Jaeger <aj@suse.de>
2156 * sysdeps/x86_64/fpu/e_sqrt.c: New file.
2157 * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
2159 * sysdeps/x86_64/fpu/s_fabs.c: New file.
2160 * sysdeps/x86_64/fpu/s_fabsf.c: New file.
2161 * sysdeps/x86_64/fpu/s_fabsl.c: New file.
2163 * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
2165 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
2167 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
2168 * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
2170 * configure.in: Handle all mips entries the same.
2172 * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
2173 * sysdeps/mips/mips3/*: Likewise.
2174 * sysdeps/mips/p40/bits/endian.h: Likewise.
2176 2002-04-04 Ulrich Drepper <drepper@redhat.com>
2178 * misc/dirname.c (dirname): Ignore trailing slashes at end of
2179 non-null result [PR libc/2600].
2181 * misc/tst-dirname.c: Add more tests.
2183 2002-04-03 Ulrich Drepper <drepper@redhat.com>
2185 * locale/programs/charmap.c (charmap_read): If the charmap doesn't
2186 define a code_set_name provide one based on the filename.
2188 * malloc/hooks.c: Define weak_variable correctly for _LIBC.
2190 2001-12-28 Andreas Jaeger <aj@suse.de>
2192 * time/mktime.c (__mktime_internal): Check for year < 70
2195 2002-04-03 Andreas Jaeger <aj@suse.de>
2197 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
2199 Reported by Andi Kleen <ak@suse.de>.
2201 2002-04-03 Ulrich Drepper <drepper@redhat.com>
2203 * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
2204 * sysdeps/generic/w_lgammaf.c: Likewise.
2205 * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
2207 * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
2208 Adjust for new output format of the backtrace functions.
2210 * misc/syslog.c (vsyslog): Only use cleanup handler if
2211 _LIBC_REENTRANT is defined [PR libc/2924].
2213 * libio/Makefile (tests): Add bug-ungetwc2.
2214 * libio/bug-ungetwc2.c: New file.
2216 * manual/install.texi: Typographical and grammatical cleanup.
2217 Patch by Dennis Grace <dgrace@us.ibm.com>.
2219 * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
2220 parameter if mtflag. Patch by <jeongyun@innovay.com>.
2222 * sunrpc/rpc_svcout.c (printif): Remove third parameter. It was
2223 always "&". Adjust callers.
2224 Add "_" prefix to several generated definitions.
2225 Patch by paul@serice.net [PR libc/3158].
2227 2002-04-02 Ulrich Drepper <drepper@redhat.com>
2229 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
2230 size of _dl_arm_cap_flags.
2231 Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
2233 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
2236 2002-03-22 H.J. Lu <hjl@gnu.org>
2238 * scripts/firstversions.awk: Check the first version.
2240 2002-04-02 Ulrich Drepper <drepper@redhat.com>
2242 * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
2243 dependencies must be stable to work correctly.
2244 Reported by martin.lubich@datacon.at.
2246 * libio/bug-ungetwc1.c: New file.
2247 * libio/Makefile (tests): Add bug-ungetwc1.
2249 * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
2250 if stream was last used for writing.
2252 * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
2253 number [PR libc/3111].
2255 * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
2257 * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
2259 2002-04-02 Jakub Jelinek <jakub@redhat.com>
2261 * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
2262 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
2263 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
2264 * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
2265 * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
2267 2002-03-30 Jakub Jelinek <jakub@redhat.com>
2269 * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
2272 2002-03-29 Jakub Jelinek <jakub@redhat.com>
2274 * sysdeps/i386/fpu/s_fabs.S: New file.
2275 * sysdeps/i386/fpu/s_fabsf.S: New file.
2276 * sysdeps/i386/fpu/s_fabsl.S: New file.
2277 * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
2278 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
2279 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
2281 2002-04-02 Ulrich Drepper <drepper@redhat.com>
2283 * rt/tst-shm.c (do_test): Add one more test for size of shared
2286 2002-03-29 Wolfram Gloger <wg@malloc.de>
2288 * malloc/malloc.c: Add short description and prototypes for
2289 malloc_get_state, malloc_set_state and posix_memalign, for
2290 consistency and to avoid warnings with -Wstrict-prototypes.
2291 Reported by Andreas Jaeger <aj@suse.de>.
2293 2002-04-02 Ulrich Drepper <drepper@redhat.com>
2295 * po/gl.po: Update from translation team.
2297 2002-03-31 Roland McGrath <roland@frob.com>
2299 * hurd/hurdselect.c (_hurd_select): Fix
2300 MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
2301 Use a union rather than casts to compare mach_msg_type_t as int.
2303 2002-03-25 Roland McGrath <roland@frob.com>
2305 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
2306 check off the end of NAME when it's shorter than 2 chars.
2307 Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
2309 2002-03-17 Roland McGrath <roland@frob.com>
2311 * sysdeps/mach/hurd/i386/sys/io.h: New file.
2312 * sysdeps/mach/hurd/i386/ioperm.c: New file.
2313 * sysdeps/mach/hurd/i386/Dist: Add them.
2314 * sysdeps/mach/hurd/i386/Versions
2315 (libc: GLIBC_2.2.6): New set, add ioperm.
2316 * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
2317 (mach_interface_list): Check for mach_i386.defs.
2318 * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
2319 * sysdeps/mach/configure: Regenerated.
2321 2002-03-22 Ulrich Drepper <drepper@redhat.com>
2323 * po/fr.po: Update from translation team.
2325 2002-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
2327 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
2328 getpriority from syscalls list.
2330 2002-03-28 Andreas Jaeger <aj@suse.de>
2332 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
2333 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
2334 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
2335 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
2337 2002-03-27 Andreas Jaeger <aj@suse.de>
2339 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
2340 sigcontext): Follow further kernel change.
2342 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
2345 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
2346 Change for struct sigcontext change.
2348 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
2349 Follow changes in struct sigcontext.
2351 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
2352 sysycall, use wrapper instead.
2354 2002-03-26 Andreas Jaeger <aj@suse.de>
2356 * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
2357 read and write accesses as detailed as possible.
2358 (__memcpy_by2): Likewise.
2359 (__memcpy_g): Likewise.
2360 (memmove): Likewise.
2362 (__memset_ccn_by4): Likewise.
2363 (__memset_ccn_by2): Likewise.
2364 (__memset_gcn_by4): Likewise.
2365 (__memset_gcn_by2): Likewise.
2367 (__memrchr): Likewise.
2368 (rawmemchr): Likewise.
2369 (__strlen_g): Likewise.
2370 (__strcpy_g): Likewise.
2371 (__mempcpy_by4): Likewise.
2372 (__mempcpy_by2): Likewise.
2373 (__mempcpy_byn): Likewise.
2374 (__stpcpy_g): Likewise.
2375 (__strncpy_by4): Likewise.
2376 (__strncpy_by2): Likewise.
2377 (__strncpy_byn): Likewise.
2378 (__strncpy_gg): Likewise.
2379 (__strcat_c): Likewise.
2380 (__strcat_g): Likewise.
2381 (__strncat_g): Likewise.
2382 (__strcmp_gg): Likewise.
2383 (__strncmp_g): Likewise.
2384 (__strchr_c): Likewise.
2385 (__strchr_g): Likewise.
2386 (__strchrnul_c): Likewise.
2387 (__strchrnul_g): Likewise.
2388 (__strrchr_c): Likewise.
2389 (__strrchr_g): Likewise.
2390 (__strrchr_c): Likewise.
2391 (__strrchr_g): Likewise.
2392 (__strcspn_c1): Likewise.
2393 (__strcspn_cg): Likewise.
2394 (__strcspn_g): Likewise.
2395 (__strcspn_g): Likewise.
2396 (__strspn_c1): Likewise.
2397 (__strspn_cg): Likewise.
2398 (__strspn_g): Likewise.
2399 (__strspn_g): Likewise.
2400 (__strpbrk_cg): Likewise.
2401 (__strpbrk_g): Likewise.
2402 (__strstr_cg): Likewise.
2403 (__strstr_g): Likewise.
2405 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo. Reported by
2406 Michal Ludvig <mludvig@suse.cz>.
2408 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
2409 compatibilty, adjust for kernel changes.
2411 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
2412 sigcontext): Adjust for kernel changes.
2414 2002-03-25 Andreas Jaeger <aj@suse.de>
2416 * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
2418 Reported by Artur Zaprzala <zybi@talex.com.pl>.
2420 2002-03-24 Andreas Jaeger <aj@suse.de>
2422 * manual/memory.texi (Aligned Memory Blocks): Fix typo.
2424 * stdio-common/tst-fdopen.c (main): Remove unused variable.
2426 * iconv/tst-iconv3.c (main): Use correct printf strings.
2428 2002-03-18 Roland McGrath <roland@frob.com>
2430 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
2431 (CMGROUP_MAX): New macro.
2433 2002-03-23 Roland McGrath <roland@frob.com>
2435 * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
2436 * sysdeps/posix/shm_unlink.c: Likewise.
2438 2002-03-22 Roland McGrath <roland@frob.com>
2440 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
2441 * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
2442 under --enable-libio.
2443 * sysdeps/mach/hurd/configure: Regenerated.
2445 2002-03-23 Roland McGrath <roland@frob.com>
2447 * sysdeps/mach/hurd/i386/Makefile
2448 (sysdep_routines, shared-only-routines): Don't add framestate,
2449 reverting 2001-10-02 change.
2450 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
2451 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
2452 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
2453 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
2454 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
2455 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
2456 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
2457 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
2458 * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
2459 Do it here instead, only if [$(unwind-find-fde) = yes].
2461 2002-03-23 Andreas Jaeger <aj@suse.de>
2463 * signal/signal.h: Fix typo. Patch by Steve Kemp
2464 <skx@tardis.ed.ac.uk>.
2466 2002-03-22 Andreas Jaeger <aj@suse.de>
2468 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
2471 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
2472 _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
2473 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
2474 user_fpregs_struct): Rename fwd.
2476 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
2477 Follow sigcontext changes.
2479 2002-03-22 Andreas Jaeger <aj@suse.de>
2481 * sysdeps/mips/bits/nan.h: New file. Copy from generic one with
2482 changes for NaNs on MIPS.
2483 Patch by Hartvig Ekner <hartvige@mips.com>.
2485 2002-03-21 Ulrich Drepper <drepper@redhat.com>
2487 * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
2488 Use realloc if too large.
2489 (addgrbyid): Likewise.
2490 * nscd/hstcache.c (addhstbyname): Likewise.
2491 (addhstbyaddr): Likewise.
2492 (addhstbynamev6): Likewise.
2493 (addhstbyaddrv6): Likewise.
2494 * nscd/pwdcache.c (addpwbyname): Likewise.
2495 (addpwbyuid): Likewise.
2497 2002-03-21 Andreas Jaeger <aj@suse.de>
2499 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
2500 _fpstate): Add separate struct for x86-64.
2502 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
2503 user_fpregs_struct): Change member names to follow kernel.
2505 2002-03-20 Ulrich Drepper <drepper@redhat.com>
2507 * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
2508 Correctly close the UDP connection right away [PR libc/3120].
2510 2002-03-20 Andreas Jaeger <aj@suse.de>
2512 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
2513 user_fpregs_struct): Fix for changed kernel struct.
2514 (struct user_regs_struct): Likewise.
2515 (struct user): Likewise.
2516 Add 32-bit x86 compatibility.
2518 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
2520 2002-03-19 Andreas Jaeger <aj@suse.de>
2522 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
2524 2002-03-18 Andreas Jaeger <aj@suse.de>
2526 * iconvdata/Makefile: Only run tests when shared libs are
2529 2002-03-17 Andreas Jaeger <aj@suse.de>
2531 * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
2533 * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
2535 * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
2538 * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New.
2540 Patch by Hartvig Ekner <hartvige@mips.com>.
2542 * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
2543 * sysdeps/generic/unwind-pe.h: Likewise.
2545 * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
2548 * libio/stdio.c (AL2): Define variant when visibility attribute is
2551 * include/libc-symbols.h (_INTVARDEF): Define variant when
2552 visibility attribute is not supported.
2554 2002-03-16 Ulrich Drepper <drepper@redhat.com>
2556 * po/fr.po: Update from translation team.
2558 2002-02-25 Bruno Haible <bruno@clisp.org>
2560 * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
2562 2002-03-15 Ulrich Drepper <drepper@redhat.com>
2564 * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
2565 buffers if _IO_file_attach failed.
2567 * libio/fileops.c (_IO_file_open): Close file descriptor if
2568 _IO_SEEKOFF call failed.
2570 2002-03-15 H.J. Lu <hjl@gnu.org>
2571 Ulrich Drepper <drepper@redhat.com>
2573 * configure.in: Check for availability of
2574 init_array/fini_array/preinit_array handling in binutils.
2575 * config.h.in (HAVE_INITFINI_ARRAY): New macro.
2576 * config.make.in (have-initfini-array): New variable.
2578 2002-03-15 Ulrich Drepper <drepper@redhat.com>
2580 * stdio-common/tst-printf.c (main): Comment out one test which
2581 checked the compiler's ability to fold floating-point constants
2582 but not really printf.
2583 (rfg3): Make s const.
2584 * stdio-common/tst-printf.sh: Adjust for removed test.
2586 * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
2587 internal function. Adjust for internal_function calling convention.
2588 * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
2589 as internal_function.
2591 * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
2594 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
2595 declaration and definition.
2596 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
2598 * nss/getXXent_r.c: Likewise.
2599 * nss/nsswitch.h (db_lookup_function): Add internal_function to
2602 * include/time.h: Declare __localtime_r as hidden.
2604 * include/aliases.h: Declare __getaliasent_r as hidden.
2605 * include/grp.h: Declare __getgrent_r as hidden.
2606 * include/netdb.h: Declare __gethostent_r, __getnetent_r,
2607 __getservent_r, and __getprotoent_r as hidden.
2608 * include/pwd.h: Declare __getpwent_r as hidden.
2609 * include/shadow.h: Declare __getspent_r as hidden.
2610 * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
2612 * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
2613 and __gconv_transliterate as hidden.
2614 Add internal_function to __gconv_get_path declaration.
2615 * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
2616 definition. Add attribute_hidden to __gconv_read_conf definition.
2618 2002-03-14 Ulrich Drepper <drepper@redhat.com>
2620 * elf/rtld.c: Declare _environ as hidden.
2621 * sysdeps/generic/dl-environ.c: Likewise.
2622 * sysdeps/generic/dl-sysdep.c: Likewise.
2624 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
2625 _dl_mcount_internal as hidden.
2627 * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
2628 * sysdeps/generic/dl-brk.c: New file.
2629 * sysdeps/generic/dl-sbrk.c: New file.
2630 * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
2631 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
2633 * elf/dl-minimal.c (malloc): Declare _end as hidden.
2634 (__errno_location): New function. Declare errno as hidden.
2635 * elf/rtld.c (_dl_argc): Define as hidden.
2636 (_dl_skip_args): Define as hidden.
2637 (_begin, _end): Declare as hidden.
2638 * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
2639 * sysdeps/generic/entry.h (_start): Declare as hidden.
2640 * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
2641 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
2642 _dl_runtime_resolve and _dl_runtime_profile as hidden.
2643 (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
2645 2002-03-14 Roland McGrath <roland@frob.com>
2647 * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
2649 * Makeconfig (%.v.i, %.v): New implicit rules.
2650 (preprocess-versions): Variable removed.
2651 ($(common-objpfx)shlib-versions.v.i): New target giving just the
2652 shlib-versions input files as dependencies.
2653 ($(common-objpfx)soversions.i): Depend on that instead of the input
2654 files. Use it as input instead of using a pipeline.
2655 (postclean-generated): Append soversions.i, shlib-versions.v, and
2656 shlib-versions.v.i here.
2657 * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
2658 the Versions.def input files as dependencies.
2659 ($(common-objpfx)Versions.v.i): Likewise for Versions files.
2660 ($(common-objpfx)Versions.all): Depend on that instead of the input
2661 files. Use it as input instead of using a pipeline.
2662 ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
2663 (postclean-generated): Append those .v and .v.i files here.
2665 2002-03-14 Jakub Jelinek <jakub@redhat.com>
2667 * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
2668 * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
2671 2002-03-14 Jakub Jelinek <jakub@redhat.com>
2673 * sysdeps/generic/mp_clz_tab.c: New file.
2674 * sysdeps/i386/mp_clz_tab.c: New file.
2675 * sysdeps/hppa/mp_clz_tab.c: New file.
2676 * sysdeps/powerpc/mp_clz_tab.c: New file.
2677 * stdlib/Makefile (aux): Revert last patch.
2678 * math/Makefile (gmp-objs): Likewise.
2680 2002-03-13 Paul Eggert <eggert@twinsun.com>
2682 * time/strftime.c: Comment fixes for references to obsolescent
2683 standards, In most cases the simplest fix is to remove the
2684 confusing comments. Cross-referencing all the standards properly
2685 is a bit of a pain, and it should be enough to put that info in
2686 the documentation as I did in my recent time.texi patch.
2688 2002-03-13 Paul Eggert <eggert@twinsun.com>
2690 * manual/time.texi (Formatting Calendar Time):
2691 ISO C99 also specifies the E and O modifiers.
2692 %P is a GNU extension, and is not in ISO C99.
2693 Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
2694 %T is also in ISO C99.
2695 The RFC 822 example is not valid in arbitrary locales.
2696 Reword the POSIX.2 wording slightly, to make it a bit clearer
2697 that POSIX.2 formats are also supported by later POSIX versions.
2698 If a format was introduced in ISO C99 it is also required by
2701 2002-03-13 Ulrich Drepper <drepper@redhat.com>
2703 * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
2704 _sys_nerr_internal with INTVARDEF2.
2705 * include/libc-symbols.h (INTVARDEF2): New macro.
2706 * include/stdio.h (_sys_errlist_internal): Declare as hidden.
2707 (_sys_nerr_internal): Library.
2709 * sysdeps/posix/signal.c (_sigintr): Define as hidden.
2710 * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
2712 * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
2714 2002-03-13 Wolfram Gloger <wg@malloc.de>
2716 * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
2718 2002-03-02 Andreas Schwab <schwab@suse.de>
2720 * stdio-common/vfprintf.c (process_arg): Fix decimal format with
2721 'h' flag and positional arg.
2722 * stdio-common/tst-printf.c (rfg3): New function to test
2723 positional arguments.
2724 (main): Fix some warnings.
2726 2002-03-13 Jakub Jelinek <jakub@redhat.com>
2728 * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
2729 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
2731 2002-03-13 Ulrich Drepper <drepper@redhat.com>
2733 * grp/initgroups.c (__nss_group_data): Declare as hidden.
2735 * include/locale.h (_nl_C_locobj): Declare as hidden.
2737 * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
2738 * time/strptime.c (_nl_C_LC_TIME): Likewise.
2740 * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
2742 * include/sys/gmon.h: Declare _gmonparam as hidden.
2744 * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
2745 (__ctype32_wctrans): Likewise.
2746 (__ctype32_width): Likewise.
2748 * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
2751 * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
2753 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Define as
2754 hidden. Change all users of these variables.
2756 * posix/regex_internal.h (__re_error_msgid): Renamed from
2757 re_error_msgid. Declare as hidden.
2758 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Declare as
2761 * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
2762 (__printf_function_table): Likewise.
2763 * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
2765 (__printf_function_table): Likewise.
2767 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
2768 __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
2770 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
2771 * nss/nsswitch.c: Declare _nss_*_database as hidden.
2773 * stdlib/wctomb.c (__no_r_state): Declare as hidden.
2774 * stdlib/mbtowc.c (__no_r_state): Define as hidden.
2776 2002-03-12 Ulrich Drepper <drepper@redhat.com>
2778 * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
2779 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
2780 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
2781 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
2782 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
2783 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
2784 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
2785 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
2786 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
2787 _nl_C_LC_CTYPE_width: Declare as hidden.
2788 * include/locale.h: Declare _nl_locale_file_list.
2789 * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
2790 * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
2791 * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
2792 * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
2793 * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
2794 * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
2795 * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
2796 * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
2797 * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
2798 * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
2799 * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
2800 * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
2801 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
2802 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
2803 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
2804 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
2805 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
2806 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
2807 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
2808 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
2809 _nl_C_LC_CTYPE_width, and as hidden.
2810 * locale/findlocale.c: Declare _nl_C as hidden.
2811 * locale/newlocale.c: Likewise.
2812 * locale/setlocale.c: Define _nl_C as hidden. Remove declaration of
2813 _nl_locale_file_list.
2814 * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
2815 _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
2816 Define _nl_C_locobj as hidden.
2818 * malloc/mtrace.c (_mtrace_file): Define as hidden.
2819 (_mtrace_line): Likewise.
2821 * include/time.h: Declare __mon_yday as hidden.
2822 * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
2824 * libio/libioP.h: Declare __libio_codecvt as hidden.
2825 * libio/fileops.c: Declare __libio_translit as hidden.
2826 * libio/iofwide.c: Define __libio_translit as hidden.
2828 * login/getutent_r.c: Define __libc_utmp_lock as hidden.
2829 * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
2830 * login/getutline_r.c: Likewise.
2831 * login/utmpname.c: Likewise.
2833 * login/utmp-private.h: Declare __libc_utmp_file_functions,
2834 __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
2835 __libc_utmp_file_name as hidden.
2837 * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
2838 * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
2839 * locale/freelocale.c: Likewise.
2840 * locale/lc-time.c: Likewise.
2842 * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
2843 (__libc_ptyname2): Likewise.
2844 * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
2846 (__libc_ptyname2): Likewise.
2848 * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
2849 * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
2850 * sysdeps/generic/init-first.c: Likewise.
2851 * sysdeps/i386/init-first.c: Likewise.
2852 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
2853 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
2854 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
2855 * sysdeps/sh/init-first.c: Likewise.
2856 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
2857 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
2859 * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
2860 (_itowa_upper_digits): Likewise.
2862 * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
2863 * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
2866 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
2867 _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
2868 _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
2869 _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
2871 * gmon/gmon.c (__bb_head): Define as hidden.
2872 * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
2874 * argp/argp-parse.c (_argp_hang): Define as static.
2876 * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
2877 handling in latest compilers.
2879 * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
2881 * libio/fileops.c (_IO_file_jumps): Likewise.
2882 * libio/stdfiles.c (_IO_list_all): Likewise.
2883 * libio/wfileops.c (_IO_wfile_jumps): Likewise.
2885 * malloc/malloc.h: Move __libc_malloc_initialized declaration to
2887 * include/malloc.h: Add __libc_malloc_initialized declaration
2888 here. Mark variable hidden.
2889 * malloc/malloc.c: Include <malloc.h> not "malloc.h".
2891 * elf/dl-open.c (__libc_argc): Declare as hidden.
2892 (__libc_argv): Likewise.
2893 * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
2894 (__libc_argv): Likewise.
2895 * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
2896 __libc_argv as hidden.
2897 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
2898 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
2899 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
2900 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
2902 * include/stdlib.h (__libc_drand48_data): Declare as hidden.
2903 * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
2904 * stdlib/erand48.c: Likewise.
2905 * stdlib/jrand48.c: Likewise.
2906 * stdlib/lcong48.c: Likewise.
2907 * stdlib/lrand48.c: Likewise.
2908 * stdlib/mrand48.c: Likewise.
2909 * stdlib/nrand48.c: Likewise.
2910 * stdlib/seed48.c: Likewise.
2911 * stdlib/srand48.c: Likewise.
2913 * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
2914 (_itoa_lower_digits_internal): New declaration.
2915 (_itoa_upper_digits_internal): New declaration.
2916 (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
2917 * stdio-common.h (_itoa_lower_digits_internal): New declaration.
2918 (_itoa_upper_digits_internal): New declaration.
2919 (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
2921 * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
2922 * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
2924 * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
2925 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
2927 * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
2928 (_itowa_lower_digits): Likewise.
2929 (_itowa_upper_digits): Likewise.
2930 * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
2931 (_itowa_upper_digits): Likewise.
2933 * intl/plural-exp.h (attribute_hidden): Define as empty macro if
2934 not already defined.
2935 (GERMANIC_PLURAL): Declare as hidden.
2937 * posix/getopt.c (__getopt_initialized): Declare as hidden.
2938 (attribute_hidden): Define as empty macro if not already defined.
2940 * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
2941 (__gconv_max_path_elem_len): Likewise.
2942 (__gconv_path_envvar): Likewise.
2944 * math/Makefile (gmp-objs): Remove mp_clz_tab.
2945 * stdlib/Makefile (aux): Remove mp_clz_tab.
2946 * stdlib/mp_clz_tab.c: Removed. Not needed anywhere.
2948 * stdlib/exit.h (__exit_funcs): Declare as hidden.
2950 * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
2952 * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
2953 _nl_category_names, _nl_category_name_sizes, _nl_current,
2954 _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
2956 * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
2957 (_nl_current_default_domain): Likewise
2958 (_nl_state_lock): Likewise.
2959 * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
2960 (_nl_current_default_domain): Likewise
2961 (_nl_state_lock): Likewise.
2962 * intl/bindtextdom.c (_nl_state_lock): Likewise.
2964 * stdlib/fpioconst.h (__tens): Add attribute_hidden.
2965 (_fpioconst_pow10): Likewise.
2967 * include/time.h (_tmbuf): Add attribute_hidden.
2969 * time/tzset.c (tzstring_list): Define as static.
2971 * include/time.h: Add attribute_hidden to __tzname_cur_max and
2972 __use_tzfile declaration.
2974 * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
2975 and __wcsmbs_last_locale declaration.
2977 2002-02-25 Paul Eggert <eggert@twinsun.com>
2979 * timezone/Makefile (tzbases): Move systemv from here...
2980 (tzlinks): to here, since the entries in systemv were all changed
2981 from Zone to Link lines in tz-2001a. Bug reported (and patch
2982 tested) by Peter Breitenlohner.
2984 2002-03-07 Jakub Jelinek <jakub@redhat.com>
2986 * time/tst-posixtz.c (tests): Add new tests.
2987 (main): Test whether tzset() sets daylight properly.
2989 2002-03-06 Jakub Jelinek <jakub@redhat.com>
2991 * time/tzset.c (tz_compute): Move __daylight, __tzname and
2992 __tzname_cur_max setting...
2993 (tzset_internal): ...here.
2995 2002-03-06 Jakub Jelinek <jakub@redhat.com>
2997 * time/tzset.c (compute_change): Don't return any value.
2998 (tz_compute): Likewise. Don't handle southern hemisphere here.
2999 (__tz_convert): But here.
3001 2002-03-11 Ulrich Drepper <drepper@redhat.com>
3003 * manual/examples/mkfsock.c: Include <string.h> as well.
3004 Patch by Alain De Carolis <alaind@wseurope.com>.
3006 2002-03-06 Isamu Hasegawa <isamu@yamato.ibm.com>
3008 * posix/regexec.c (re_match): Fix incorrect register sizes.
3009 (re_search): Likewise.
3011 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
3013 * posix/regcomp.c (regfree): Remove a disused condition.
3014 * posix/regex_internal.c (re_acquire_state): Likewise.
3015 (re_acquire_state_context): Likewise.
3016 (register_state): Remove a redundant malloc invocation.
3017 * posix/regex_internal.h: (re_state_table_entry): Simplify
3020 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
3022 * posix/regcomp.c (regcomp): Add __builtin_expect to error
3023 handling conditions.
3024 (regerror): Likewise.
3025 (regfree): Likewise.
3026 (re_compile_internal): Likewise.
3027 (init_dfa): Likewise.
3028 (init_word_char): Likewise.
3029 (create_initial_state): Likewise.
3030 (analyze): Likewise.
3031 (analyze_tree): Likewise.
3032 (duplicate_node): Likewise.
3033 (calc_eclosure): Likewise.
3034 (calc_eclosure_iter): Likewise.
3036 (parse_reg_exp): Likewise.
3037 (parse_branch): Likewise.
3038 (parse_expression): Likewise.
3039 (parse_subexp): Likewise.
3040 (parse_dup_op): Likewise.
3041 (parse_bracket_exp): Likewise.
3042 (build_equiv_class): Likewise.
3043 (build_charclass): Likewise.
3044 (build_word_op): Likewise.
3045 (fetch_number): Likewise.
3046 (create_tree): Likewise.
3047 (duplicate_tree): Likewise.
3048 * posix/regex.c (BE): New macro.
3049 * posix/regexec.c (re_match): Add __builtin_expect to error
3050 handling conditions.
3051 (re_match_2): Likewise.
3052 (re_search): Likewise.
3053 (re_search_internal): Likewise.
3054 (check_matching): Likewise.
3055 (proceed_next_node): Likewise.
3056 (set_regs): Likewise.
3057 (sift_states_backward): Likewise.
3058 (add_epsilon_backreference): Likewise.
3059 (transit_state): Likewise.
3060 (transit_state_sb): Likewise.
3061 (transit_state_mb): Likewise.
3062 (transit_state_bkref): Likewise.
3063 (transit_state_bkref_loop): Likewise.
3064 (build_trtable): Likewise.
3065 (group_nodes_into_DFAstates): Likewise.
3066 (match_ctx_init): Likewise.
3067 (match_ctx_add_entry): Likewise.
3068 * posix/regex_internal.c (re_string_construct): Add __builtin_expect
3069 to error handling conditions.
3070 (re_string_construct_toupper): Likewise.
3071 (build_wcs_buffer): Likewise.
3072 (build_wcs_upper_buffer): Likewise.
3073 (build_upper_buffer): Likewise.
3074 (re_string_translate_buffer): Likewise.
3075 (re_node_set_alloc): Likewise.
3076 (re_node_set_init_1): Likewise.
3077 (re_node_set_init_2): Likewise.
3078 (re_node_set_init_copy): Likewise.
3079 (re_node_set_intersect): Likewise.
3080 (re_node_set_init_union): Likewise.
3081 (re_node_set_merge): Likewise.
3082 (re_node_set_insert): Likewise.
3083 (re_dfa_add_node): Likewise.
3084 (re_acquire_state): Likewise.
3085 (re_acquire_state_context): Likewise.
3086 (create_new_state_common): Likewise.
3087 (register_state): Likewise.
3088 (create_ci_new_state): Likewise.
3089 (create_cd_new_state): Likewise.
3090 (re_string_context_at): Remove redundant condition.
3092 2002-01-16 Roger Sayle <roger@eyesopen.com>
3094 * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
3096 * sysdeps/i386/i586/strlen.S: Fix typo in comment.
3098 2002-03-11 Jakub Jelinek <jakub@redhat.com>
3100 * sysdeps/i386/elf/configure.in: Fix comment.
3102 * sysdeps/sparc/sparc64/configure.in: New.
3103 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
3104 if .dynamic comes before .got.
3105 * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
3107 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
3108 HP_TIMING_ACCUM): Fix typos.
3110 2002-03-11 Ulrich Drepper <drepper@redhat.com>
3112 * string/strfry.c: Add some more randomness to the seed.
3113 Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
3115 * po/es.po: Update from translation team.
3116 * po/fr.po: Likewise.
3118 * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
3120 * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
3121 when determining type of format.
3122 Patch by James Antill <james@anqd.org> [PR libc/2787].
3124 2002-03-04 Jakub Jelinek <jakub@redhat.com>
3126 * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
3128 2002-03-11 Roland McGrath <roland@frob.com>
3130 * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
3132 * Versions.def (libc): Add GLIBC_2.2.6.
3133 * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
3134 * sysdeps/mach/hurd/errnos.awk: In generated macro, use
3135 __errno_location instead of __hurd_errno_location, and don't inline it.
3136 * sysdeps/mach/hurd/bits/errno.h: Regenerated.
3137 * hurd/errno.c: New file.
3138 * hurd/Makefile (routines): Add errno.
3140 2002-03-11 Ulrich Drepper <drepper@redhat.com>
3142 * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
3143 ridiculously large widths and precisions [PR libc/3026].
3145 2002-03-11 Andreas Jaeger <aj@suse.de>
3147 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
3149 Patch by Susanne Oberhauser <froh@SuSE.de>.
3151 2002-03-11 Ulrich Drepper <drepper@redhat.com>
3153 * inet/rexec.c (ahostbuf): Define as static.
3155 * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
3156 (__ctype32_wctrans): Likewise.
3157 * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
3158 * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
3159 (__ctype32_wctrans): Likewise.
3160 (__ctype32_width): Likewise.
3162 * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
3163 They were never exported anyway.
3165 * gmon/gmon.c (_gmonparam): Add attribute_hidden.
3166 * gmon/sys/gmon.h: Remove declaration of _gmonparam. It wasn't
3168 * include/sys/gmon.h: Declare _gmonparam.
3170 * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
3171 symbols for getdents64. They were never exported.
3173 2002-03-09 Roland McGrath <roland@frob.com>
3175 * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
3176 Reported by Jon Arney <jarney1@cox.net>.
3178 2002-02-23 Roland McGrath <roland@frob.com>
3180 * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
3182 (__hurd_errno_location): Function removed.
3184 2002-03-06 Andreas Jaeger <aj@suse.de>
3186 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
3189 2002-03-04 Andreas Jaeger <aj@suse.de>
3191 * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New.
3193 * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
3196 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New.
3198 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New.
3200 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New.
3202 * sysdeps/x86_64/bits/setjmp.h: New.
3204 * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New.
3206 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New.
3208 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
3210 * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
3211 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
3213 2002-02-28 Bo Thorsen <bo@suse.de>
3215 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
3218 2002-03-03 Andreas Jaeger <aj@suse.de>
3220 * sysdeps/x86_64/bits/wordsize.h: New file.
3222 * elf/nodlopenmod2.c: Provide prototype to avoid warning.
3223 * elf/tst-tlsmod1.c: Likewise.
3225 * posix/regcomp.c: Get regex.h from include dir for internal
3228 * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
3229 to libc-internal.h and include it.
3230 * include/libc-internal.h: Add __init_misc.
3232 * misc/init-misc.c: Include libc-internal.h for prototypes.
3234 * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
3236 * misc/error.c [_LIBC]: Include libioP.h for prototype of
3239 2002-03-03 Ulrich Drepper <drepper@redhat.com>
3241 * posix/regcomp.c: Compatibility changes to allow using the code
3244 2002-02-28 Hartvig Ekner <hartvige@mips.com>
3246 * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
3249 2002-03-02 Ulrich Drepper <drepper@redhat.com>
3251 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
3252 of .str elements in the returned data structure.
3254 * elf/elf.h: Add Alpha TLS bits.
3256 2002-02-28 Jakub Jelinek <jakub@redhat.com>
3258 * sysdeps/unix/sysv/linux/nice.c: New file.
3260 2002-03-01 Ulrich Drepper <drepper@redhat.com>
3262 * elf/Makefile (dl-routines): Add dl-origin.
3263 (elide-routines.os): Add dl-origin.
3264 * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
3265 * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
3267 * include/libc-symbols.c: Define attribute_hidden depending on
3268 HAVE_VISIBILITY_ATTRIBUTE. Add definition of INTVARDEF.
3270 * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
3271 * elf/dl-load.c: Likewise.
3272 * elf/rtld.c: Likewise.
3273 * include/unistd.h: Declare __libc_enable_secure_internal.
3274 * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
3275 Use INTUSE with __libc_enable_secure.
3276 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
3278 * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
3279 * elf/dl-error.c: Likewise,
3280 * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
3282 * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
3283 * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
3284 function definition. Use INTDEF with _dl_get_origin.
3285 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
3287 * elf/dl-init.c: Use INTUSE with _dl_starting_up.
3288 * elf/rtld.c: Likewise. Use INTVARDEF for _dl_starting_up.
3290 * elf/dl-profile.c: Use INTDEF for _dl_mcount.
3291 * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
3292 * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
3294 * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
3295 * elf/dl-deps.c: Likewise.
3296 * elf/dl-error.c: Likewise.
3297 * elf/dl-fini.c: Likewise.
3298 * elf/dl-init.c: Likewise.
3299 * elf/dl-load.c: Likewise.
3300 * elf/dl-lookup.c: Likewise.
3301 * elf/dl-reloc.c: Likewise.
3302 * elf/dl-version.c: Likewise.
3303 * elf/do-lookup.h: Likewise.
3304 * sysdeps/arm/dl-machine.h: Likewise.
3305 * sysdeps/cris/dl-machine.h: Likewise.
3306 * sysdeps/hppa/dl-machine.h: Likewise.
3307 * sysdeps/i386/dl-machine.h: Likewise.
3308 * sysdeps/m68k/dl-machine.h: Likewise.
3309 * sysdeps/powerpc/dl-machine.h: Likewise.
3310 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
3311 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
3312 * sysdeps/sh/dl-machine.h: Likewise.
3313 * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
3314 * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
3315 * sysdeps/x86_64/dl-machine.h: Likewise.
3316 * elf/rtld.c: Use INTDEF for _dl_argv. Use rtld_progrname instead of
3317 _dl_argv[0]. Use INTUSE with _dl_argv.
3318 * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
3319 * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
3321 2002-02-28 Jakub Jelinek <jakub@redhat.com>
3323 * elf/rtld.c (_rtld_global): Remove .protected.
3324 (_rtld_local): Strong alias to _rtld_global.
3325 * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
3327 * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
3328 _rtld_local instead of _rtld_global.
3329 (_rtld_local): Add hidden extern, possibly in .sdata section.
3330 * configure.in: Add tests for visibility attribute and .sdata.
3331 * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
3332 * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
3333 * sysdeps/arm/dl-machine.h: Likewise.
3334 * sysdeps/generic/ldsodefs.h: Likewise.
3335 * sysdeps/hppa/dl-machine.h: Likewise.
3336 * sysdeps/cris/dl-machine.h: Likewise.
3337 * sysdeps/i386/dl-machine.h: Likewise.
3338 * sysdeps/ia64/dl-machine.h: Likewise.
3339 * sysdeps/m68k/dl-machine.h: Likewise.
3340 * sysdeps/mips/mips64/dl-machine.h: Likewise.
3341 * sysdeps/mips/dl-machine.h: Likewise.
3342 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
3343 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
3344 * sysdeps/sh/dl-machine.h: Likewise.
3345 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
3346 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
3347 * sysdeps/x86_64/dl-machine.h: Likewise.
3349 2002-02-28 Ulrich Drepper <drepper@redhat.com>
3351 * login/login.c (login): Always initialize ut_line field
3354 2002-02-28 Jakub Jelinek <jakub@redhat.com>
3356 * sysdeps/i386/Makefile (sysdep_routines): Add
3358 (shared-only-routines): Likewise.
3359 * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
3360 (shared-only-routines): Likewise.
3361 * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
3362 (shared-only-routines): Likewise.
3363 * sysdeps/wordsize-32/divdi3.c: New file.
3365 2002-02-28 Ulrich Drepper <drepper@redhat.com>
3367 * locale/iso-4217.def: Remove obsolete currencies for countries
3370 2002-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
3372 * posix/regcomp.c (regcomp): Remove a redundant condition.
3373 (init_word_char): Add a check on malloc failure.
3374 (create_initial_state): Likewise.
3375 (duplicate_node): Likewise.
3376 (calc_eclosure): Likewise.
3377 (calc_eclosure_iter): Likewise.
3378 (parse_expression): Likewise.
3379 (parse_bracket_exp): Remove unnecessary malloc invocations.
3380 (build_equiv_class): Likewise.
3381 (build_charclass): Likewise.
3382 * posix/regex_internal.c (re_node_set_intersect): Add a check
3384 (re_node_set_add_intersect): Likewise.
3385 (re_node_set_merge): Likewise.
3386 (re_acquire_state): Likewise.
3387 (re_acquire_state_context): Likewise.
3388 (create_newstate_common): Likewise.
3389 (register_state): Likewise.
3390 (create_ci_newstate): Likewise.
3391 (create_cd_newstate): Likewise.
3392 * posix/regex_internal.h: Fix prototypes of re_acquire_state
3393 and re_acquire_state_context.
3394 * posix/regexec.c (regexec): Suit it to the error handling of
3396 (re_match): Likewise.
3397 (re_search): Likewise.
3398 (re_search_internal): Add a check on malloc failure.
3399 (acquire_init_state_context): Likewise.
3400 (check_matching): Likewise.
3401 (proceed_next_node): Likewise.
3402 (set_regs): Likewise.
3403 (sift_states_backward): Likewise.
3404 (sift_states_iter_bkref): Likewise.
3405 (add_epsilon_backreference): Likewise.
3406 (transit_state): Likewise.
3407 (transit_state_sb): Likewise.
3408 (transit_state_mb): Likewise.
3409 (transit_state_bkref_loop): Likewise.
3410 (build_trtable): Likewise.
3411 (group_nodes_into_DFAstates): Likewise.
3412 (match_ctx_init): Likewise.
3413 (match_ctx_add_entry): Likewise.
3415 2002-02-27 Ulrich Drepper <drepper@redhat.com>
3417 * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
3418 l_libname if profiling is enabled [PR libc/2916].
3420 * sysdeps/ia64/dl-tls.h: New file.
3422 2002-02-27 Jakub Jelinek <jakub@redhat.com>
3424 * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
3425 Work around an Alpha gas bug.
3427 2002-02-27 Ulrich Drepper <drepper@redhat.com>
3429 * catgets/open_catalog.c (__open_catalog): Fix typo in code which
3430 uses read to load the catalog.
3431 Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
3433 2002-02-26 Ulrich Drepper <drepper@redhat.com>
3435 * posix/Makefile (distribute): Add regcomp.c, regexec.c,
3436 regex_internal.c, and regex_internal.h.
3437 (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
3438 * posix/regex.c: Complete rewrite.
3439 * posix/regexec.c: New file.
3440 * posix/regcomp.c: New file.
3441 * posix/regex_internal.c: New file.
3442 * posix/regex_internal.h: New file.
3443 * posix/regex.h (RE_ICASE): New macro.
3444 Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
3446 * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
3447 ungetwc. It's a macro.
3448 * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
3450 Reported by Jason Merrill <jason@redhat.com>.
3452 2002-02-25 Jakub Jelinek <jakub@redhat.com>
3454 * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
3455 position to fp->_offset if it is set.
3456 * stdio-common/Makefile (tests): Add tst-fdopen.
3457 * stdio-common/tst-fdopen.c: New test.
3459 2002-02-25 Jakub Jelinek <jakub@redhat.com>
3461 * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
3462 * stdio-common/tst-ungetc.c (main): Add another test.
3464 2002-02-25 Ulrich Drepper <drepper@redhat.com>
3466 * assert/assert-perr.c: Use INTUSE to reference functions and variables
3467 inside libc itself. Use INTDEF and INTDEF2 to define appropriate
3468 aliases. Add prototypes for the new aliases.
3469 * assert/assert.c: Likewise.
3470 * include/libc-symbols.h: Likewise.
3471 * include/stdio.h: Likewise.
3472 * include/netinet/in.h: Likewise.
3473 * include/rpc/auth.h: Likewise.
3474 * include/rpc/auth_unix.h: Likewise.
3475 * include/rpc/key_prot.h: Likewise.
3476 * include/rpc/pmap_prot.h: Likewise.
3477 * include/rpc/pmap_rmt.h: Likewise.
3478 * include/rpc/rpc_msg.h: Likewise.
3479 * include/rpc/xdr.h: Likewise.
3480 * inet/gethstbyad_r.c: Likewise.
3481 * inet/gethstbynm2_r.c: Likewise.
3482 * inet/gethstbynm_r.c: Likewise.
3483 * inet/gethstent_r.c: Likewise.
3484 * inet/in6_addr.c: Likewise.
3485 * libio/__fpurge.c: Likewise.
3486 * libio/filedoalloc.c: Likewise.
3487 * libio/fileops.c: Likewise.
3488 * libio/ftello.c: Likewise.
3489 * libio/ftello64.c: Likewise.
3490 * libio/genops.c: Likewise.
3491 * libio/iofclose.c: Likewise.
3492 * libio/iofdopen.c: Likewise.
3493 * libio/iofflush.c: Likewise.
3494 * libio/iofflush_u.c: Likewise.
3495 * libio/iofgetpos.c: Likewise.
3496 * libio/iofgetpos64.c: Likewise.
3497 * libio/iofgets.c: Likewise.
3498 * libio/iofgets_u.c: Likewise.
3499 * libio/iofopen.c: Likewise.
3500 * libio/iofopncook.c: Likewise.
3501 * libio/iofputs.c: Likewise.
3502 * libio/iofread.c: Likewise.
3503 * libio/iofread_u.c: Likewise.
3504 * libio/iofsetpos.c: Likewise.
3505 * libio/iofsetpos64.c: Likewise.
3506 * libio/ioftell.c: Likewise.
3507 * libio/iofwrite.c: Likewise.
3508 * libio/iogetline.c: Likewise.
3509 * libio/iogets.c: Likewise.
3510 * libio/iogetwline.c: Likewise.
3511 * libio/iolibio.h: Likewise.
3512 * libio/iopadn.c: Likewise.
3513 * libio/iopopen.c: Likewise.
3514 * libio/ioseekoff.c: Likewise.
3515 * libio/ioseekpos.c: Likewise.
3516 * libio/iosetbuffer.c: Likewise.
3517 * libio/iosetvbuf.c: Likewise.
3518 * libio/ioungetc.c: Likewise.
3519 * libio/ioungetwc.c: Likewise.
3520 * libio/iovdprintf.c: Likewise.
3521 * libio/iovsprintf.c: Likewise.
3522 * libio/iovsscanf.c: Likewise.
3523 * libio/libioP.h: Likewise.
3524 * libio/memstream.c: Likewise.
3525 * libio/obprintf.c: Likewise.
3526 * libio/oldfileops.c: Likewise.
3527 * libio/oldiofclose.c: Likewise.
3528 * libio/oldiofdopen.c: Likewise.
3529 * libio/oldiofgetpos.c: Likewise.
3530 * libio/oldiofgetpos64.c: Likewise.
3531 * libio/oldiofopen.c: Likewise.
3532 * libio/oldiofsetpos.c: Likewise.
3533 * libio/oldiofsetpos64.c: Likewise.
3534 * libio/oldiopopen.c: Likewise.
3535 * libio/oldstdfiles.c: Likewise.
3536 * libio/putc.c: Likewise.
3537 * libio/setbuf.c: Likewise.
3538 * libio/setlinebuf.c: Likewise.
3539 * libio/stdfiles.c: Likewise.
3540 * libio/stdio.c: Likewise.
3541 * libio/strops.c: Likewise.
3542 * libio/vasprintf.c: Likewise.
3543 * libio/vscanf.c: Likewise.
3544 * libio/vsnprintf.c: Likewise.
3545 * libio/vswprintf.c: Likewise.
3546 * libio/wfiledoalloc.c: Likewise.
3547 * libio/wfileops.c: Likewise.
3548 * libio/wgenops.c: Likewise.
3549 * libio/wstrops.c: Likewise.
3550 * malloc/mtrace.c: Likewise.
3551 * misc/error.c: Likewise.
3552 * misc/syslog.c: Likewise.
3553 * nss/getXXbyYY_r.c: Likewise.
3554 * nss/getXXent_r.c: Likewise.
3555 * nss/hosts-lookup.c: Likewise.
3556 * stdio-common/getw.c
3557 * stdio-common/printf-prs.c: Likewise.
3558 * stdio-common/printf_fp.c: Likewise.
3559 * stdio-common/printf_size.c: Likewise.
3560 * stdio-common/putw.c: Likewise.
3561 * stdio-common/scanf.c: Likewise.
3562 * stdio-common/sprintf.c: Likewise.
3563 * stdio-common/tmpfile64.c: Likewise.
3564 * stdio-common/vfprintf.c: Likewise.
3565 * stdio-common/vfscanf.c: Likewise.
3566 * stdlib/strfmon.c: Likewise.
3567 * sunrpc/auth_des.c: Likewise.
3568 * sunrpc/auth_none.c: Likewise.
3569 * sunrpc/auth_unix.c: Likewise.
3570 * sunrpc/authdes_prot.c: Likewise.
3571 * sunrpc/authuxprot.c: Likewise.
3572 * sunrpc/clnt_perr.c: Likewise.
3573 * sunrpc/clnt_raw.c: Likewise.
3574 * sunrpc/clnt_tcp.c: Likewise.
3575 * sunrpc/clnt_udp.c: Likewise.
3576 * sunrpc/clnt_unix.c: Likewise.
3577 * sunrpc/key_call.c: Likewise.
3578 * sunrpc/key_prot.c: Likewise.
3579 * sunrpc/openchild.c: Likewise.
3580 * sunrpc/pm_getmaps.c: Likewise.
3581 * sunrpc/pm_getport.c: Likewise.
3582 * sunrpc/pmap_clnt.c: Likewise.
3583 * sunrpc/pmap_prot.c: Likewise.
3584 * sunrpc/pmap_prot2.c: Likewise.
3585 * sunrpc/pmap_rmt.c: Likewise.
3586 * sunrpc/rpc_cmsg.c: Likewise.
3587 * sunrpc/rpc_prot.c: Likewise.
3588 * sunrpc/svc_authux.c: Likewise.
3589 * sunrpc/svc_raw.c: Likewise.
3590 * sunrpc/svc_simple.c: Likewise.
3591 * sunrpc/svc_tcp.c: Likewise.
3592 * sunrpc/svc_udp.c: Likewise.
3593 * sunrpc/svc_unix.c: Likewise.
3594 * sunrpc/xdr.c: Likewise.
3595 * sunrpc/xdr_array.c: Likewise.
3596 * sunrpc/xdr_mem.c: Likewise.
3597 * sunrpc/xdr_rec.c: Likewise.
3598 * sunrpc/xdr_ref.c: Likewise.
3599 * sunrpc/xdr_stdio.c: Likewise.
3600 * sysdeps/generic/_strerror.c: Likewise.
3601 * sysdeps/generic/printf_fphex.c: Likewise.
3602 * sysdeps/generic/tmpfile.c: Likewise.
3603 * sysdeps/gnu/errlist.awk: Likewise.
3604 * sysdeps/gnu/errlist.c: Likewise.
3606 * libio/Makefile (routines): Remove iosprint.
3607 * libio/iosprintf.c: Removed
3610 2002-02-24 Ulrich Drepper <drepper@redhat.com>
3612 * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
3613 non_dynamic_init and exported now.
3614 * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
3615 * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
3617 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
3618 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
3619 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
3621 2002-02-23 Ulrich Drepper <drepper@redhat.com>
3623 * elf/dl-close.c (free_slotinfo): Check for end of list and return
3626 * locale/iso-639.def: Add language codes for Walloon.
3628 * elf/dl-fini.c (_dl_fini): Print some final statistics on the
3629 total number of relocations performed.
3631 * elf/sprof.c (load_profdata): If do_test provide information as
3632 to why loading failed.
3633 * elf/dl-profile.c (_dl_start_profile): Initialize all of
3636 * csu/set-init.c: Moved to...
3637 * sysdeps/mach/hurd/set-init.c: ...here. New file.
3638 * csu/Makefile: Don't compile set-init.
3639 * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
3640 * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
3642 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
3643 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
3644 * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
3646 * misc/init-misc.c: Always export __init_misc. Don't define hooks for
3649 2002-02-22 Ulrich Drepper <drepper@redhat.com>
3651 * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
3652 * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
3653 * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
3654 (_dl_deallocate_tls): New function.
3655 * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
3658 2002-02-21 Jakub Jelinek <jakub@redhat.com>
3660 * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
3661 * stdio-common/tst-fseek.c (main): Add test for this.
3663 2002-02-19 Ulrich Drepper <drepper@redhat.com.>
3665 * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
3667 2002-02-19 Jakub Jelinek <jakub@redhat.com>
3669 * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
3670 pointer before dereferencing.
3672 2002-02-18 Roland McGrath <roland@frob.com>
3674 * sysdeps/mach/hurd/times.c: Fix typo in last change.
3676 * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
3677 Use task_policy in place of task_priority.
3679 * sysdeps/generic/bits/mman.h
3680 (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
3681 * sysdeps/mach/msync.c: New file.
3683 * sysdeps/mach/powerpc/syscall.S: New file.
3685 * mach/msg.c [MACH_MSG_OVERWRITE]
3686 (__mach_msg_trap, __mach_msg_overwrite): New functions.
3687 * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
3689 * sysdeps/mach/configure.in: Check for clock.defs to put into
3690 mach_interface_list.
3691 * sysdeps/mach/configure: Regenerated.
3693 * mach/Makefile (mach-machine): New variable, set from $(base-machine).
3694 ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
3695 ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
3696 Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
3697 (mach-shortcuts): Add device_read_overwrite_request,
3698 device_read_overwrite, vm_read_overwrite, thread_switch.
3700 * configure.in (base_machine): Set to $machine by default.
3701 * configure: Regenerated.
3703 * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
3704 or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
3705 * sysdeps/mach/configure: Regenerated.
3706 * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
3708 * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
3710 * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
3712 * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
3713 Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
3715 2002-02-17 Roland McGrath <roland@frob.com>
3717 * sysdeps/mach/hurd/times.c
3718 [NO_CREATION_TIME] (startup_time): New static variable.
3719 [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
3720 (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
3721 creation_time from task_basic_info.
3722 (__times): Use __gettimeofday instead of __host_get_time.
3724 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
3725 Use untyped Mach IPC message format.
3727 * hurd/catch-exc.c: Include <assert.h>, missing from last change.
3729 * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
3730 _S_catch_exception_raise_state_identity,
3731 _hurdsig_fault_catch_exception_raise_state,
3732 _hurdsig_fault_catch_exception_raise_state_identity.
3734 * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
3736 * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
3737 __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
3739 * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
3740 `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
3742 * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
3743 (fmh, unfmh): Define these functions only #if FMH. Otherwise define
3744 them as no-op macros.
3745 [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
3746 (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
3748 * sysdeps/powerpc/dl-machine.h
3749 (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
3751 * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
3752 Use untyped Mach IPC message format.
3754 * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
3755 Handle untyped Mach IPC message formats.
3757 * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
3758 Expect different argument conventions when this is defined.
3759 [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
3760 [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
3761 * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
3762 [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
3763 for OSF Mach variant.
3764 (faulted): Use mig_reply_error_t for REPLY.
3765 (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
3766 in __thread_set_exception_ports call.
3767 (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
3768 __mach_port_set_attributes in place of __mach_port_set_qlimit.
3770 * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
3771 before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
3772 on Darwin, which includes bogons.
3774 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
3775 variable LOADBASE so it's not declared when it's not used.
3777 2002-02-16 Roland McGrath <roland@frob.com>
3779 * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
3780 to use BI.creation_time.
3782 * mach/Machrules (MIG): Add -x c to CPP value passed down.
3784 * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
3785 * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
3786 * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
3787 host_page_size instead of vm_statistics.
3789 * sysdeps/mach/Makefile (mach-before-compile): Don't include
3790 mach_interface.h here, since not all variants use that name.
3792 * sysdeps/mach/configure.in: Add some checks for Mach headers
3793 to ensure a sane installation.
3794 (mach_interface_list): Define this variable by checking for .defs
3795 files found in various variants.
3796 * configure.in (mach_interface_list): AC_SUBST this.
3797 * config.make.in (mach-interface-list): New substituted variable.
3798 * mach/Makefile (user-interfaces): Define this using the value
3799 of $(mach-interface-list) instead of mach, mach4.
3800 Updated other references to mach_interface to use it as well.
3802 * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
3804 * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
3805 mig_reply_error_t for OSF Mach variant.
3807 * mach/Makefile (routines): Remove bootprivport.
3808 * mach/bootprivport.c: File removed. It has never been used.
3810 * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
3811 Grok the OSF flavor of message format.
3812 (mach_msg_destroy_port): For MAKE_SEND and
3813 MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
3814 no-senders notification.
3816 2002-02-06 Roland McGrath <roland@frob.com>
3818 * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
3819 to here if 2.0 compatibility enabled ...
3820 (libc: GLIBC_2.1.3): ... from here.
3822 2002-02-15 Ulrich Drepper <drepper@redhat.com>
3824 * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
3826 * elf/dl-close.c (_dl_close): Likewise.
3828 2002-02-14 Ulrich Drepper <drepper@redhat.com>
3830 * elf/Makefile: Add rules to build and run tst-tls8.
3831 * elf/tst-tls8.c: New file.
3832 * elf/tst-tlsmod4.c: New file.
3834 * stdlib/test-a64l.c (tests): Add more test cases.
3836 * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
3837 Reported by Walter Harms <WHarms@bfs.de>.
3839 2002-02-11 Jes Sorensen <jes@trained-monkey.org>
3841 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
3842 definitions for struct sigcontext.
3843 Suggested by David Mosberger-Tang.
3845 2002-02-13 Ulrich Drepper <drepper@redhat.com>
3847 * elf/dl-close.c (remove_slotinfo): New function. Handles everything
3848 for removing reference of module in slotinfo list.
3849 (_dl_close): Use remove_slotinfo.
3850 * sysdeps/generic/dl-tls.c: General pretty printing.
3851 (oom): Define only if SHARED.
3852 (_dl_next_tls_modid): Correct starting point for the case we assume
3853 there is a gap. Add missing instruction grouping (doh!). Correct
3854 tests for reaching maximum index.
3855 * elf/Makefile: Add rules to build and run tst-tls7.
3856 * elf/tst-tls7.c: New file.
3857 * elf/tst-tlsmod3.c: New file.
3859 * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
3861 * elf/tst-tlsmod2.c: Likewise.
3863 * elf/dl-close.c (_dl_close): When closing an object using TLS
3864 either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
3865 true. Increment dl_tls_generation only if we closed any TLS-using
3867 * elf/tst-tls6.c: New file.
3868 * elf/Makefile: Add rules to build and run tst-tls6.
3870 * po/da.po: Update from translation team.
3872 * locale/categories.def: Fix typo [PR libc/2948].
3873 * po/Makefile (BROKEN_LINGUAS): Works with current gettext
3875 * locale/iso-4217.def: Update from official version [PR libc/2950].
3876 * glibcbug.in: Honor TMPDIR [PR libc/2951].
3877 * locale/programs/ld-collate.c (collate_finish): Bail out with a
3878 message if input is too confusion instead of using assert.
3879 (collate_read): Don't crash on unknown symbol [PR libc/2952].
3880 Patches by Alastair McKinstry <alastair@pdd.3com.com>.
3882 * elf/tst-tls1.c: Move #include "tls-macros.h" instead #ifdef USE_TLS.
3883 * elf/tst-tls2.c: Likewise.
3884 * elf/tst-tls3.c: Likewise.
3886 2002-02-13 Jakub Jelinek <jakub@redhat.com>
3888 * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
3890 2002-02-13 Ulrich Drepper <drepper@redhat.com>
3892 * elf/dl-open.c (dl_open_worker): Only bump the generation counter
3893 if this is really necessary.
3895 * elf/dl-close.c (_dl_close): Implement freeing entries in the
3897 (free_mem): Free memory for the slotinfo array if possible.
3899 2002-02-12 Andreas Schwab <schwab@suse.de>
3901 * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
3903 2002-02-12 Ulrich Drepper <drepper@redhat.com>
3905 * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
3907 (oom): New function.
3908 (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
3909 (_dl_determine_tlsoffset): Likewise.
3910 (_dl_allocate_tls): Likewise.
3911 (__TLS_GET_ADDR): Define if not already defined.
3912 (_dl_tls_symaddr): New function.
3913 (allocate_and_init): New function.
3914 (__tls_get_addr): Actually implement handling of generation counter
3915 and deferred allocation.
3916 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
3917 add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
3919 Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
3920 Declare _dl_tls_symaddr.
3921 * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
3923 * include/link.h (struct link_map): Remove l_tls_nextimage and
3925 * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
3926 instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
3927 (_dl_vsym): Likewise.
3928 * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
3930 (dl_main): Allow PT_TLS be present for empty segment. Remove
3931 nextimage list handling. Instead add all modules using TLS to
3932 dl_tls_dtv_slotinfo_list.
3933 * elf/dl-open.c (dl_open_worker): After successfully loading all
3934 objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
3935 * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
3936 empty segment don't do anything. Remove handling of initimage list.
3937 * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
3938 (GLIBC_PRIVATE): Add _dl_tls_symaddr.
3939 * elf/dl-minimal.c: Define __libc_memalign.
3940 * elf/dl-support.c: Remove _dl_initimage_list. Add
3941 _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
3943 * include/stdlib.h: Declare __libc_memalign.
3945 * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
3946 * elf/tst-tls4.c: New file.
3947 * elf/tst-tls5.c: New file.
3948 * elf/tst-tlsmod2.c: New file.
3950 * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
3952 * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
3954 * elf/tst-tls1.c: Use test-skeleton.c.
3955 * elf/tst-tls2.c: Likewise.
3956 * elf/tst-tls3.c: Likewise.
3958 * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
3960 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
3962 * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
3964 2002-02-10 Ulrich Drepper <drepper@redhat.com>
3966 * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
3968 * elf/tst-tls3.c: New file.
3969 * elf/tst-tlsmod1.c: New file.
3970 * elf/Makefile: Add rules to build and run tst-tls3.
3972 * sysdeps/i386/dl-machine.h: Include <tls.h>.
3973 (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
3976 * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
3978 * po/fr.po: Update from translation team.
3980 * elf/tls-macros.h: Add alternative macros for use in PIC.
3982 * elf/dl-lookup.c: Include <tls.h>.
3983 * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
3985 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
3986 required by passing pointer to last element of the list.
3988 * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
3989 l_tls_initimage to a place where it actually is performed.
3991 * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
3992 after globfree() calls.
3994 * elf/dl-deps.c (struct openaux_args): Add open_mode element.
3995 (openaux): Pass open_mode as new last argument to _dl_map_object.
3996 (_dl_map_object_deps): Add new argument open_mode. Initialize
3997 open_mode element of args variable with it.
3998 * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
3999 _dl_map_object_deps.
4000 * elf/rtld.c (dl_main): Add zero as last parameter to
4001 _dl_map_object_deps call.
4002 * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
4003 * elf/nodlopen2.c: New file.
4004 * elf/nodlopenmod2.c: New file.
4005 * elf/Makefile: Add rules to build and run nodlopen2.
4007 * elf/tst-tls1.c: Move TLS helper macros to...
4008 * elf/tls-macros.h: ...here. New file.
4009 * elf/tst-tls2.c: New file.
4010 * elf/Makefile (tests): Add tst-tls2.
4011 (distribute): Add tls-macros.h.
4013 * po/sv.po: Update from translation team.
4015 * elf/tst-tls1.c (main): Add complete set of tests. Split
4016 architecture specific definitions from the actual test code.
4018 * po/tr.po: Update from translation team.
4020 2002-02-09 Ulrich Drepper <drepper@redhat.com>
4022 * elf/Makefile (tests): Add tst-tls1.
4023 * elf/tst-tls1.c: New file.
4025 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
4026 alignment of TCB for now.
4028 * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
4029 initialization image for the application itself.
4031 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
4032 loop to initialize TLS block.
4034 2002-02-08 Richard Henderson <rth@redhat.com>
4036 * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
4037 _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
4039 * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
4041 2002-02-09 Jakub Jelinek <jakub@redhat.com>
4043 * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
4045 2002-02-08 Ulrich Drepper <drepper@redhat.com>
4047 * po/ca.po: Update from translation team.
4048 * po/sk.po: Likewise.
4050 * elf/rtld.c (_dl_start_final): Install DTV explicitly.
4051 (dl_main): Move dtv/static TLS handling before relocation.
4052 Unconditionally call _dl_tlsoffset. Call _dl_allocate_tls and
4053 TLS_INIT_TP to allocate and install the dtv/static TLS block.
4054 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
4055 so far uses TLS initialize GL(dl_tls_static_size) and
4056 GL(dl_tls_static_align) to account for the TCB.
4057 (_dl_allocate_tls): New function.
4058 * sysdeps/generic/ldsodefs.h (rtld_global): Add
4059 _dl_initial_dtv_malloced.
4061 * configure.in: Test for __builtin_memset more realistically.
4063 * csu/version.c (banner): If TLS support is available say so.
4065 2002-02-04 H.J. Lu <hjl@gnu.org>
4067 * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
4069 (__dl_runtime_resolve): Likewise.
4071 * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
4074 2001-11-15 H.J. Lu <hjl@gnu.org>
4076 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
4077 <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
4079 * sysdeps/unix/sysv/linux/mips/sys/user.h: New.
4081 2002-02-07 H.J. Lu <hjl@gnu.org>
4083 * sysdeps/mips/atomicity.h (compare_and_swap): Remove
4085 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
4088 2002-02-07 Ulrich Drepper <drepper@redhat.com>
4090 * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
4092 * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
4093 ___tls_get_addr_internal.
4094 (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
4096 * po/ko.po: Update from translation team.
4098 2002-02-07 Jakub Jelinek <jakub@redhat.com>
4100 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
4101 attribute, change __pad{1,2} type to unsigned int.
4102 (struct stat64): Remove packed attribute.
4104 2002-02-07 Ulrich Drepper <drepper@redhat.com>
4106 * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
4108 2002-02-07 Andreas Schwab <schwab@suse.de>
4110 * configure.in: Fix check for -zcombreloc.
4112 2002-02-06 H.J. Lu <hjl@gnu.org>
4114 * config.h.in (HAVE_BUILTIN_MEMSET): New.
4115 * configure.in: Check if __builtin_memset really works.
4116 * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
4117 __GNUC_PREREQ (2, 96) before using __builtin_memset.
4119 2002-02-06 Jakub Jelinek <jakub@redhat.com>
4121 * io/bug-ftw3.c (main): Don't try the test if root.
4123 2002-02-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
4125 * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
4127 * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
4128 Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
4129 * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
4131 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
4132 a weak alias for __clone.
4133 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
4134 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
4135 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
4136 * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
4137 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
4138 a weak alias for __mmap64.
4140 2002-02-05 H.J. Lu <hjl@gnu.org>
4142 * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
4143 (atomic_add): Likewise.
4144 (compare_and_swap): Likewise.
4145 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
4147 2002-02-07 Ulrich Drepper <drepper@redhat.com>
4149 * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
4151 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
4152 alignment of the TCB and store total size and alignment of static
4153 TLS block in _dl_tls_static_size and _dl_tls_static_align.
4154 tls_index is a typedef.
4155 * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
4156 _dl_tls_static_align.
4157 * sysdeps/i386/dl-tls.h: tls_index is a typedef.
4158 * elf/dl-support.c: Define _dl_tls_static_size and
4159 _dl_tls_static_align.
4161 2002-02-06 Ulrich Drepper <drepper@redhat.com>
4163 * configure.in: Add --without-tls option.
4164 * sysdeps/i386/elf/configure.in: Don't check for TLS support if
4165 --without-tls is given.
4167 * sysdeps/generic/dl-tls.c: Include <tls.h>.
4169 * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
4171 2002-02-06 Roland McGrath <roland@frob.com>
4173 * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
4174 * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
4176 * scripts/versions.awk: Improve error message for missing version.
4177 Each version inherits from the last one only if they have the same
4178 nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
4179 but not GLIBC_x and FOO_y.
4181 * scripts/firstversions.awk: Handle libraries that don't have each
4182 particular version named in the third column of shlib-versions.
4184 * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
4186 2002-02-06 Ulrich Drepper <drepper@redhat.com>
4188 * Versions.def [ld]: Add GLIBC_2.3.
4189 * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
4190 * elf/Makefile (dl-routines): Add dl-tls.
4191 (distribute): Add dl-tls.h.
4192 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
4193 _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
4194 Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
4195 * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
4196 along with the other info in the link map. Change queueing of init
4197 images for double linked list. Use _dl_next_tls_modid to compute
4199 * elf/rtld.c (_dl_start_final): Store alignment requirement
4200 along with the other info in rtld map and executable map.
4201 (dl_main): Add ld.so to the init image list if necessary. Compute
4202 final module ID with _dl_next_tls_modid.
4203 * include/link.h (struct link_map): Add l_tls_previmage and
4205 * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
4206 * sysdeps/i386/elf/Versions: New file.
4207 * sysdeps/generic/dl-tls.c: New file.
4208 * sysdeps/generic/dl-tls.h: New file.
4209 * sysdeps/i386/dl-tls.h: New file.
4211 2002-02-06 Roland McGrath <roland@frob.com>
4213 * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
4214 * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
4216 2002-01-05 Roland McGrath <roland@frob.com>
4218 * sysdeps/mach/configure.in: New file.
4219 * sysdeps/mach/configure: New generated file.
4221 * mach/Makefile (user-interfaces): Remove default_pager_helper.
4222 It has never been used by anything.
4224 2002-02-06 H.J. Lu <hjl@gnu.org>
4226 * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
4229 2002-02-06 Ulrich Drepper <drepper@redhat.com>
4231 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
4232 attribute((packed)) to counter stupid people misusing gcc options.
4233 (struct stat64): Likewise.
4235 2002-02-05 Ulrich Drepper <drepper@redhat.com>
4237 * elf/rtld.c (dl_main): Correct indentation. Use bool as type for
4238 the variables which are used as booleans.
4240 2002-02-06 Andreas Jaeger <aj@suse.de>
4242 * include/libc-symbols.h (INTUSE): Renamed from INT.
4243 * elf/dl-deps.c: Change users.
4244 * sysdeps/generic/dl-sysdep.c: Likewise.
4245 * sysdeps/generic/dl-cache.c: Likewise.
4246 * elf/dl-reloc.c: Likewise.
4247 * elf/rtld.c: Likewise.
4248 * elf/dl-version.c: Likewise.
4249 * elf/dl-load.c: Likewise.
4250 * elf/dl-dst.h: Likewise.
4251 * elf/dl-init.c: Likewise.
4252 * elf/dl-error.c: Likewise.
4253 * elf/dl-fini.c: Likewise.
4254 * elf/dl-runtime.c: Likewise.
4255 * elf/do-lookup.h: Likewise.
4257 * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
4259 * stdio-common/_itowa.h: Likewise.
4261 2002-02-05 Ulrich Drepper <drepper@redhat.com>
4263 * elf/dl-minimal.c: Define _itoa_lower_digits.
4265 * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
4268 * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
4269 loading modules with the DF_STATIC_TLS flag set.
4270 * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
4272 * include/link.h (struct link_map): Add l_flags field.
4273 * elf/elf.h (DF_STATIC_TLS): New definition.
4275 * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
4276 * dlfcn/bug-dlopen1.c: New file. By Bruno Haible.
4278 * elf/rtld.c (process_dl_debug): Correct printing help message.
4279 * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
4282 * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
4283 definition and pass &errno in use of this variable.
4284 Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
4286 2002-02-04 Andreas Schwab <schwab@suse.de>
4288 * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
4289 * locale/programs/charmap-dir.c: Wrap calls that output messages
4290 with WITH_CUR_LOCALE. Include "localedef.h" first.
4291 * locale/programs/charmap.c: Likewise.
4292 * locale/programs/ld-address.c: Likewise.
4293 * locale/programs/ld-collate.c: Likewise.
4294 * locale/programs/ld-ctype.c: Likewise.
4295 * locale/programs/ld-identification.c: Likewise.
4296 * locale/programs/ld-measurement.c: Likewise.
4297 * locale/programs/ld-messages.c: Likewise.
4298 * locale/programs/ld-monetary.c: Likewise.
4299 * locale/programs/ld-name.c: Likewise.
4300 * locale/programs/ld-numeric.c: Likewise.
4301 * locale/programs/ld-paper.c: Likewise.
4302 * locale/programs/ld-telephone.c: Likewise.
4303 * locale/programs/ld-time.c: Likewise.
4304 * locale/programs/linereader.c: Likewise.
4305 * locale/programs/linereader.h: Likewise.
4306 * locale/programs/localedef.c: Likewise.
4307 * locale/programs/locfile.c: Likewise.
4308 * locale/programs/repertoire.c: Likewise.
4310 2002-02-05 Ulrich Drepper <drepper@redhat.com>
4312 * elf/rtld.c (_dl_start_final): Determine load address to locate
4313 ehdr with GL(dl_rtld_map).l_map_start.
4315 * po/ca.po: Update from translation team.
4317 * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
4318 * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
4320 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
4322 * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
4324 2002-02-04 Ulrich Drepper <drepper@redhat.com>
4326 * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
4327 * include/link.h (struct link_map): Add various members for TLS
4329 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
4330 _rtld_tlsoffset, add _dl_initimage_list.
4331 * sysdeps/i386/dl-lookupcfg.h: New file.
4332 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
4333 TLS relocation. When using TLS we now use RESOLVE_MAP.
4334 (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
4337 * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
4340 * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
4341 thread-pointer as soon as possible.
4342 * sysdeps/generic/ldsodefs.h: Include <tls.h>. Define first TLS
4343 elements in rtld_global.
4344 * sysdeps/generic/tls.h: New file.
4345 * elf/Makefile (distribute): Add tls.h.
4346 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
4347 relocations. Not complete yet.
4349 * resolv/resolv.h: Allow user to define __need_res_state and only
4350 define __res_start structure then.
4351 * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
4353 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
4354 dl_cpuclock_offset initialization to _dl_start_final.
4355 (_dl_show_auxv): Avoid unnecessary sign extension.
4356 * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
4358 2002-02-03 Ulrich Drepper <drepper@redhat.com>
4360 * config.h.in: Add HAVE_TLS_SUPPORT.
4361 * sysdeps/i386/elf/configure.in: New file.
4363 2002-02-03 Andreas Schwab <schwab@suse.de>
4365 * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
4366 * sysdeps/posix/writev.c: Use ssize_t for bytes_written. Fix comment.
4368 2002-02-03 Thorsten Kukuk <kukuk@suse.de>
4370 * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
4371 alloca if the memory reqirements are too high.
4373 2002-02-03 Ulrich Drepper <drepper@redhat.com>
4375 * elf/dl-load.c (decompose_rpath): Avoid using strstr.
4376 * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
4377 the former is available anyway and speed isn't important here.
4378 * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
4379 * elf/dl-version.c (match_symbol): Likewise.
4380 (_dl_check_map_versions): Likewise.
4381 * elf/rtld.c (process_envvars): Likewise.
4382 (print_statistics): Likewise.
4383 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
4384 * elf/dl-minimal.c (_itoa): Always define it. Make it work for all
4385 bases. Add assert to catch uses of unimplemented features.
4386 (__strsep): Add assert to catch uses of unimplemented features.
4387 * elf/dl-object.c (_dl_new_object): Don't use rawmemchr. Use strchr
4388 and avoid inline optimization.
4389 * elf/rtld.c (process_envvars): Likewise.
4390 * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
4391 * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
4392 * elf/rtld.c (dl_main): Avoid strsep inline optimization.
4394 2002-02-02 Ulrich Drepper <drepper@redhat.com>
4396 * stdio-common/_itoa.h: Minor simplifications of the code.
4397 * stdio-common/_itoa.c: Likewise.
4399 * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
4400 instead of _dl_printf for debugging info output.
4402 * manual/examples/mkfsock.c (make_named_socket): Make sure name is
4403 always NUL-terminated. Patch by Chris D. Sloan <cds@cs.hmc.edu>.
4405 2002-02-01 H.J. Lu <hjl@gnu.org>
4407 * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
4408 (atomic_add): Likewise.
4409 (compare_and_swap): Return 0 only when failed to compare. Use
4412 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
4415 2002-02-03 kaz Kojima <kkojima@rr.iij4u.or.jp>
4417 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
4419 2002-02-02 Ulrich Drepper <drepper@redhat.com>
4421 * elf/dl-minimal.c (__strsep): New minimal implementation.
4423 2002-02-02 Paul Eggert <eggert@twinsun.com>
4425 * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
4426 (__mktime_internal): If no tm_isdst is requested, prefer solutions
4427 with tm_isdst > 0 when the requested time falls within a
4428 spring-forward gap [PR libc/2894].
4430 2002-02-03 Andreas Schwab <schwab@suse.de>
4432 * stdio-common/tst-rndseek.c: Increase timeout.
4434 2002-02-02 Ulrich Drepper <drepper@redhat.com>
4436 Change ld.so to not use functions which are exported. One cannot
4437 interpose them anyway. Use INT() to mark uses, INTDEF() to mark
4439 * include/libc-symbols.h: Define INT and INTDEF.
4440 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
4441 _dl_signal_error_internal, _dl_map_object_internal,
4442 _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
4443 _dl_lookup_versioned_symbol_internal,
4444 _dl_relocate_object_internal, _dl_debug_state_internal,
4445 _dl_start_profile_internal, and _dl_unload_cache_internal.
4446 * include/dlfcn.h: Declare _dl_catch_error_internal.
4447 * elf/rtld.c: Use INT for calls to any of the *_internal functions
4448 above. Add INTDEF to function definitions.
4449 * elf/dl-debug.c: Likewise.
4450 * elf/dl-deps.c: Likewise.
4451 * elf/dl-dst.h: Likewise.
4452 * elf/dl-error.c: Likewise.
4453 * elf/dl-fini.c: Likewise.
4454 * elf/dl-init.c: Likewise.
4455 * elf/dl-load.c: Likewise.
4456 * elf/dl-lookup.c: Likewise.
4457 * elf/dl-misc.c: Likewise.
4458 * elf/dl-open.c: Likewise.
4459 * elf/dl-profile.c: Likewise.
4460 * elf/dl-reloc.c: Likewise.
4461 * elf/dl-runtime.c: Likewise.
4462 * elf/dl-version.c: Likewise.
4463 * elf/do-lookup.h: Likewise.
4464 * sysdeps/generic/dl-cache.c: Likewise.
4465 * sysdeps/generic/dl-sysdep.c: Likewise.
4466 * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
4467 instead of _dl_init.
4468 * sysdeps/arm/dl-machine.h: Likewise.
4469 * sysdeps/cris/dl-machine.h: Likewise.
4470 * sysdeps/hppa/dl-machine.h: Likewise.
4471 * sysdeps/i386/dl-machine.h: Likewise.
4472 * sysdeps/ia64/dl-machine.h: Likewise.
4473 * sysdeps/m68k/dl-machine.h: Likewise.
4474 * sysdeps/mips/dl-machine.h: Likewise.
4475 * sysdeps/mips/mips64/dl-machine.h: Likewise.
4476 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
4477 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
4478 * sysdeps/sh/dl-machine.h: Likewise.
4479 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
4480 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
4481 * sysdeps/x86_64/dl-machine.h: Likewise.
4482 * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
4484 * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
4485 and _dl_debug_initialize.
4487 * elf/dl-object.c (_dl_new_object): Avoid using strrchr. We have
4489 * elf/rtld.c (dl_main): Avoid strrchr.
4490 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
4491 result of readlink. Search from the back for '/'.
4493 * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
4494 strncpy if possible.
4496 * sysdeps/generic/dl-environ.c (unsetenv): Optimize. Don't use
4498 * elf/dl-load.c (is_dst): Optimize. Don't call strncmp twice.
4499 * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
4500 strspn, and strcspn.
4501 (process_envvars): Don't use strcspn.
4503 * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
4504 (_dl_dst_substitute): Likewise.
4506 2002-02-01 Ulrich Drepper <drepper@redhat.com>
4508 * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
4509 code which is never used when relocating ld.so itself.
4511 * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
4512 starting ld.so itself. Move l_addr variable initialization closer
4514 (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
4516 2002-02-01 Jakub Jelinek <jakub@redhat.com>
4518 * Versions.def (libc): Add GLIBC_PRIVATE.
4519 (libdb, libnss_db, libdb1): Remove.
4520 (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
4521 libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
4522 (libpthread): Add GLIBC_PRIVATE.
4523 (libresolv): Likewise, remove GLIBC_2.1.
4524 (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
4525 GLIBC_2.2.3, GLIBC_2.3.
4526 * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
4527 * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
4528 _dl_sym, _dl_vsym): Likewise.
4529 (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
4530 _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
4531 _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
4532 _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
4533 _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
4534 _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
4535 _dl_relocate_object, _dl_signal_error, _dl_start_profile,
4536 _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
4538 (_dl_object_relocation_scope): Remove.
4539 * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
4540 * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
4541 __gconv_cache): Move to GLIBC_PRIVATE.
4542 * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
4543 __internal_setnetgrent): Likewise.
4544 * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
4545 __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
4546 * locale/Versions (__collate_element_hash, __collate_element_strings,
4547 __collate_symbol_classes, __collate_symbol_hash,
4548 __collate_symbol_strings, _nl_current_LC_COLLATE,
4549 _nl_current_LC_CTYPE): Likewise.
4550 * misc/Versions (__libc_fsync, __libc_msync): Likewise.
4551 * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
4552 (libnss_nis, libnss_nisplus): Likewise.
4553 * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
4554 _nss_files_parse_spent): Move to GLIBC_PRIVATE.
4555 (libnss_files): Move all symbols to GLIBC_PRIVATE.
4556 * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
4557 __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
4558 __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
4559 * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
4560 __ns_get16, __ns_samename): Likewise.
4561 (libnss_dns): Move all symbols to GLIBC_PRIVATE.
4562 * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
4564 * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
4565 __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
4566 __libc_connect): Likewise.
4567 * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
4569 * stdlib/Versions (__libc_system): Likewise.
4570 * sunrpc/Versions (__rpc_thread_destroy): Likewise.
4571 * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
4572 * sysdeps/ia64/fpu/Versions: Likewise.
4573 * sysdeps/ia64/Versions: Likewise.
4574 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
4575 * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
4577 * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
4578 * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
4579 __libc_sigaction): Likewise.
4580 * termios/Versions (__libc_tcdrain): Likewise.
4582 * misc/sys/cdefs (__attribute_noinline__): Define.
4583 * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
4584 __attribute_noinline__.
4586 * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
4587 * elf/dl-xstat64.c: New file.
4588 * elf/dl-fxstat64.c: New file.
4589 * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
4590 don't export __fxstat64 at multiple versions.
4591 * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
4592 * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
4594 2002-01-18 Isamu Hasegawa <isamu@yamato.ibm.com>
4596 * locale/program/ld-collate.c (collate_finish): Assign a wide
4597 char collation sequence value to multi character collating
4598 elements, and avoid over writing by non-character elements.
4600 2002-02-01 Ulrich Drepper <drepper@redhat.com>
4602 * elf/Makefile (distribute): Add dl-procinfo.c.
4603 * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
4604 * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
4606 2002-02-01 Jakub Jelinek <jakub@redhat.com>
4608 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
4610 * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
4611 _rtld_global struct.
4612 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
4613 * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
4614 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
4615 * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
4616 * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
4617 _dl_fpu_control_set): Remove unused externs.
4618 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
4619 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
4620 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
4621 related variables in _rtld_global struct.
4622 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
4623 * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
4626 2002-02-01 Ulrich Drepper <drepper@redhat.com>
4628 * sysdeps/generic/dl-procinfo.c: New file.
4630 2002-02-01 Andreas Schwab <schwab@suse.de>
4632 * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
4634 2002-02-01 Ulrich Drepper <drepper@redhat.com>
4636 * elf/rtld.c (_dl_start): Mark as internal_function.
4637 * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
4639 (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
4640 General pretty printing.
4642 2002-01-31 Ulrich Drepper <drepper@redhat.com>
4644 * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
4645 * elf/dl-reloc.c: Pretty printing.
4646 * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
4647 procinfo-related variables in rtld_global struct.
4648 * elf/dl-support.c: Likewise.
4649 * elf/rtld.c: Likewise.
4650 * sysdeps/i386/i686/Makefile: Likewise.
4651 * sysdeps/i386/i686/hp-timing.c: Likewise.
4652 * sysdeps/i386/i686/hp-timing.h: Likewise.
4653 * sysdeps/ia64/Makefile: Likewise.
4654 * sysdeps/ia64/hp-timing.c: Likewise.
4655 * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
4656 * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
4657 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
4658 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
4659 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
4660 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
4661 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
4662 * sysdeps/x86_64/Makefile: Likewise.
4664 * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
4665 _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
4666 _dl_debug_fd to rtld_global.
4667 * elf/Versions: Likewise.
4668 * elf/dl-close.c: Likewise.
4669 * elf/dl-iteratephdr.c: Likewise.
4670 * elf/dl-lookup.c: Likewise.
4671 * elf/dl-misc.c: Likewise.
4672 * elf/dl-open.c: Likewise.
4673 * elf/dl-support.c: Likewise.
4674 * elf/do-lookup.h: Likewise.
4675 * elf/rtld.c: Likewise.
4676 * sysdeps/generic/dl-cache.c: Likewise.
4677 * sysdeps/generic/dl-sysdep.c: Likewise.
4678 * sysdeps/ia64/Versions: Likewise.
4679 * sysdeps/unix/clock_gettime.c: Likewise.
4680 * sysdeps/unix/clock_settime.c: Likewise.
4681 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
4682 * sysdeps/sparc/Versions: Removed.
4683 * sysdeps/i386/i686/Versions : Removed.
4684 * sysdeps/x86_64/Versions: Removed.
4685 * configure.in: Define HAVE_PROTECTED if .protected is available.
4686 * config.h.in: Add entry for HAVE_PROTECTED.
4688 2002-01-31 Jakub Jelinek <jakub@redhat.com.
4690 * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
4691 code in struct _rtld_global. Export this struct, remove all
4692 exports for the signal variables.
4693 * sysdeps/arm/dl-machine: Likewise.
4694 * sysdeps/generic/dl-origin: Likewise.
4695 * sysdeps/generic/dl-sysdep: Likewise.
4696 * sysdeps/generic/dl-cache: Likewise.
4697 * sysdeps/hppa/dl-fptr: Likewise.
4698 * sysdeps/hppa/dl-machine: Likewise.
4699 * sysdeps/cris/dl-machine: Likewise.
4700 * sysdeps/i386/dl-machine: Likewise.
4701 * sysdeps/ia64/dl-machine: Likewise.
4702 * sysdeps/m68k/dl-machine: Likewise.
4703 * sysdeps/mach/hurd/dl-sysdep: Likewise.
4704 * sysdeps/mips/mips64/dl-machine: Likewise.
4705 * sysdeps/mips/dl-machine: Likewise.
4706 * sysdeps/powerpc/elf/libc-start: Likewise.
4707 * sysdeps/powerpc/dl-machine: Likewise.
4708 * sysdeps/powerpc/dl-start: Likewise.
4709 * sysdeps/sparc/sparc32/dl-machine: Likewise.
4710 * sysdeps/sparc/sparc64/dl-machine: Likewise.
4711 * sysdeps/sh/dl-machine: Likewise.
4712 * sysdeps/s390/s390-32/dl-machine: Likewise.
4713 * sysdeps/s390/s390-64/dl-machine: Likewise.
4714 * sysdeps/unix/sysv/aix/libc-start: Likewise.
4715 * sysdeps/unix/sysv/aix/start-libc: Likewise.
4716 * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
4717 * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
4718 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
4719 * sysdeps/x86_64/dl-machine: Likewise.
4721 2002-01-31 Ulrich Drepper <drepper@redhat.com>
4723 * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
4726 2002-01-31 Andreas Schwab <schwab@suse.de>
4728 * sysdeps/posix/readv.c: Check for ssize_t overflow.
4730 2002-01-31 Andreas Schwab <schwab@suse.de>
4732 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
4733 reference to _dl_pagesize.
4735 2002-01-30 Ulrich Drepper <drepper@redhat.com>
4737 * Versions.def [ld]: Add GLIBC_2.3.
4738 * elf/dl-addr.c: Move global variables for SHARED code in struct
4739 _rtld_global. Export this struct, remove all exports for the
4741 * elf/dl-close.c: Likewise.
4742 * elf/dl-conflict.c: Likewise.
4743 * elf/dl-debug.c: Likewise.
4744 * elf/dl-deps.c: Likewise.
4745 * elf/dl-dst.h: Likewise.
4746 * elf/dl-error.c: Likewise.
4747 * elf/dl-fini.c: Likewise.
4748 * elf/dl-init.c: Likewise.
4749 * elf/dl-iteratephdr.c: Likewise.
4750 * elf/dl-libc.c: Likewise.
4751 * elf/dl-load.c: Likewise.
4752 * elf/dl-lookup.c: Likewise.
4753 * elf/dl-minimal.c: Likewise.
4754 * elf/dl-object.c: Likewise.
4755 * elf/dl-open.c: Likewise.
4756 * elf/dl-profile.c: Likewise.
4757 * elf/dl-profstub.c: Likewise.
4758 * elf/dl-reloc.c: Likewise.
4759 * elf/dl-runtime.c: Likewise.
4760 * elf/dl-support.c: Likewise.
4761 * elf/dl-sym.c: Likewise.
4762 * elf/dl-version.c: Likewise.
4763 * elf/do-lookup.h: Likewise.
4764 * elf/do-rel.h: Likewise.
4765 * elf/dynamic-link.h: Likewise.
4766 * elf/rtld.c: Likewise.
4767 * sysdeps/generic/dl-cache.c: Likewise.
4768 * sysdeps/generic/dl-sysdep.c: Likewise.
4769 * sysdeps/generic/ldsodefs.h: Likewise.
4770 * sysdeps/generic/libc-start.c: Likewise.
4771 * sysdeps/i386/dl-machine.h: Likewise.
4772 * sysdeps/ia64/dl-fptr.c: Likewise.
4773 * sysdeps/ia64/dl-machine.h: Likewise.
4774 * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
4775 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
4776 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
4777 * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
4778 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
4779 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
4780 * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
4781 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
4783 2002-01-29 Ulrich Drepper <drepper@redhat.com>
4785 * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
4787 (DL_STATIC_FUNCTION_ADDRESS): Likewise.
4789 * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
4791 * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
4793 * elf/rtld.c (_dl_start): Use __builtin_memset if available.
4795 2002-01-29 Ben Collins <bcollins@debian.org>
4797 * string/bits/string2.h (__mempcpy): Protect size arg for
4798 addition when using __builtin_memcpy.
4800 2002-01-29 Ulrich Drepper <drepper@redhat.com>
4802 * stdlib/Makefile (tests): Add tst-qsort.
4803 * stdlib/tst-qsort.c: New file. Written by Paul Eggert.
4805 * manual/signal.texi (Process Signal Mask): Document that
4806 pthread_sigmask, not sigprocmask, must be used in MT programs.
4807 Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
4809 * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
4811 * misc/Makefile (tests): Add tst-hsearch.
4812 * misc/tst-hsearch.c: New file.
4814 2002-01-18 Wolfram Gloger <wg@malloc.de>
4816 * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
4817 * malloc/malloc.h: Likewise.
4818 * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
4819 * malloc/arena.c: New file.
4820 * malloc/hooks.c: New file.
4821 * malloc/tst-mallocstate.c: New file.
4822 * malloc/Makefile: Add new testcase tst-mallocstate.
4823 Add arena.c and hooks.c to distribute. Fix commented CPPFLAGS.
4825 2002-01-28 Ulrich Drepper <drepper@redhat.com>
4827 * stdlib/msort.c: Remove last patch. The optimization violates the
4828 same rule which qsort.c had problems with.
4830 2002-01-27 Paul Eggert <eggert@twinsun.com>
4832 * stdlib/qsort.c (_quicksort): Do not apply the comparison function
4833 to a pivot element that lies outside the array to be sorted, as
4834 ISO C99 requires that the comparison function be called only with
4835 addresses of array elements [PR libc/2880].
4837 2002-01-28 Ulrich Drepper <drepper@redhat.com>
4839 * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
4840 for SHARED code. Reported by Ben Collins <bcollins@debian.org>.
4842 * timezone/asia: Update from tzdata2002b.
4843 * timezone/australasia: Likewise.
4844 * timezone/backward: Likewise.
4845 * timezone/europe: Likewise.
4846 * timezone/leapseconds: Likewise.
4847 * timezone/iso3166.tab: Likewise.
4848 * timezone/zone.tab: Likewise.
4850 2002-01-23 Richard Henderson <rth@redhat.com>
4852 * sysdeps/alpha/Makefile (pic-ccflag): New variable.
4854 2002-01-28 Ulrich Drepper <drepper@redhat.com>
4856 * string/strxfrm.c: Allocate one more byte for rulearr and clear
4857 this element [PR libc/2855].
4859 * string/strcoll.c: Handle zero-length arguments specially
4862 2002-01-23 Jakub Jelinek <jakub@redhat.com>
4864 * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
4865 __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
4866 short lengths and constant src.
4867 (strcpy): Don't optimize for gcc 3.0+.
4868 (__stpcpy): For gcc 3.0+, don't use
4869 __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
4870 for short string literal src.
4872 2002-01-23 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
4874 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
4877 2001-01-22 Paul Eggert <eggert@twinsun.com>
4879 * manual/llio.texi (Linked Channels, Cleaning Streams):
4880 Make it clearer that a just-opened input stream might need cleaning.
4882 2002-01-21 H.J. Lu <hjl@gnu.org>
4884 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
4885 Don't use label at end of compound statement.
4887 2002-01-28 Stephen L Moshier <moshier@mediaone.net>
4889 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
4890 Remove test for negative integer arg; sin_pi does it correctly.
4892 2002-01-20 Ulrich Drepper <drepper@redhat.com>
4894 * nscd/Makefile (distribute): Filter out xmalloc.c.
4896 2002-01-19 Ulrich Drepper <drepper@redhat.com>
4898 * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
4899 Set offset if read end wasn't the buffer end.
4900 (_IO_file_seekoff_mmap): New function.
4901 (_IO_file_xsgetn_mmap): New function.
4902 (_IO_file_jumps_mmap): Use the two new functions.
4903 * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
4905 * libio/libioP.h: Declare _IO_file_seekoff_mmap and
4906 _IO_file_underflow_mmap.
4907 * libio/iofopen.c: Don't position file descriptor at end of file.
4908 * libio/tst-widetext.c: Improve error messages.
4909 * stdio-common/tst-rndseek.c: Likewise.
4911 2002-01-18 Ulrich Drepper <drepper@redhat.com>
4913 * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
4914 end of enum for !_GNU_SOURCE.
4915 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
4916 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
4917 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
4918 * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
4919 values unless _GNU_SOURCE.
4921 * iconvdata/tcvn5712-1.c: Minor cleanups.
4923 2002-01-18 Andreas Schwab <schwab@suse.de>
4925 * sysdeps/unix/sysv/linux/configure.in
4926 (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
4928 2002-01-16 Roger Sayle <roger@eyesopen.com>
4930 * stdlib/msort.c (msort_with_tmp): Replace implementation with
4931 more efficient "Towers of Hanoi" mergesort.
4932 (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
4933 for generic, sizeof(int) and sizeof(long) variants respectively.
4935 2002-01-17 Ulrich Drepper <drepper@redhat.com>
4937 * manual/syslog.texi (openlog): Describe possible problems with
4939 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
4941 * nscd/nscd.c (drop_privileges): Removed. Adjust caller.
4942 * nscd/connections.c (begin_drop_privileges): New function.
4943 (finish_drop_privileges): New function.
4944 (nscd_init): Call the new functions which also install all groups
4945 for the server user.
4946 * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
4947 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
4949 2002-01-17 H.J. Lu <hjl@gnu.org>
4951 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
4954 2002-01-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
4956 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
4957 instructions for pointer operations.
4958 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
4960 2002-01-17 Andreas Jaeger <aj@suse.de>
4962 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
4963 __uint128_t build-in.
4965 * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
4966 PowerPC, sync with 2.2 branch.
4968 2002-01-16 Ulrich Drepper <drepper@redhat.com>
4970 * posix/getconf.c: Update copyright year.
4971 * nss/getent.c: Likewise.
4972 * nscd/nscd_nischeck.c: Likewise.
4973 * iconv/iconvconfig.c: Likewise.
4974 * iconv/iconv_prog.c: Likewise.
4975 * elf/ldconfig.c: Likewise.
4976 * catgets/gencat.c: Likewise.
4977 * csu/version.c: Likewise.
4978 * elf/ldd.bash.in: Likewise.
4979 * elf/sprof.c (print_version): Likewise.
4980 * locale/programs/locale.c: Likewise.
4981 * locale/programs/localedef.c: Likewise.
4982 * nscd/nscd.c (print_version): Likewise.
4983 * debug/xtrace.sh: Likewise.
4984 * malloc/memusage.sh: Likewise.
4985 * malloc/mtrace.pl: Likewise.
4987 2002-01-16 Andreas Schwab <schwab@suse.de>
4989 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
4990 reliably remove "-ia64" from rtld name.
4992 2002-01-16 Ulrich Drepper <drepper@redhat.com>
4994 * iconvdata/gb18030.c: Bug fixes and support for more characters.
4995 Patch by Yu Shao <yshao@redhat.com>.
4997 2002-01-16 Martin Schwidefsky <schwidefsky@de.ibm.com>
4999 * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
5000 * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
5001 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
5003 2002-01-14 Martin Schwidefsky <schwidefsky@de.ibm.com>
5005 * sysdeps/s390/fpu/libm-test-ulps: Update.
5007 2002-01-11 Ulrich Drepper <drepper@redhat.com>
5009 * elf/elf.h: Update x86 relocations.
5011 2002-01-10 Ulrich Drepper <drepper@redhat.com>
5013 * locale/programs/charmap.c (new_width): Check whether byte
5014 sequences for both ends of range have the same length.
5016 2002-01-09 Jakub Jelinek <jakub@redhat.com>
5018 * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
5020 2002-01-09 Jakub Jelinek <jakub@redhat.com>
5022 * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
5024 (__full_ieee754_sqrt): Add __attribute_used__.
5026 2002-01-10 Ulrich Drepper <drepper@redhat.com>
5028 * sysdeps/generic/group_member.c (__group_member): Also check
5029 groups[0] [PR libc/2781].
5031 2002-01-08 Ulrich Drepper <drepper@redhat.com>
5033 * Makefile (distribute): Add scripts/cpp.
5034 * elf/Makefile (distribute): Add reldep6mod[01234].c,
5035 unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
5036 unwind-dw2-fde.h, and dwarf2.h.
5037 * sysdeps/unix/bsd/bsd4.4/Dist: New file.
5038 * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
5039 * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
5040 * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
5042 2002-01-07 Roland McGrath <roland@frob.com>
5044 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
5045 volatile on type of ARGC so the compiler doesn't get clever.
5047 2002-01-07 Andreas Jaeger <aj@suse.de>
5049 * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
5050 * sysdeps/i386/bits/byteswap.h: Likewise.
5051 * sysdeps/ia64/bits/byteswap.h: Likewise.
5052 * sysdeps/m68k/bits/byteswap.h: Likewise.
5053 * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
5054 * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
5056 2002-01-02 Bruno Haible <bruno@clisp.org>
5058 * intl/plural.y: Fix %expect count.
5060 2002-01-03 Jakub Jelinek <jakub@redhat.com>
5062 * elf/Makefile (routines, shared-only-routines): Add
5063 unwind-dw2-fde-glibc instead of unwind-dw2-fde.
5064 * elf/elf.h (PT_GNU_EH_FRAME): Define.
5065 * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
5066 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
5067 Optimize if .eh_frame section contains no FDEs.
5068 (__register_frame, __deregister_frame_info_bases,
5069 __deregister_frame): Likewise.
5070 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
5071 DW_CFA_restore handling.
5073 2002-01-07 Stephen L Moshier <moshier@mediaone.net>
5075 * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
5077 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
5078 for x < 0.25 and restore original range reduction method.
5079 (__ieee754_lgammal_r): Make sure signgam is set before returning.
5081 2002-01-07 Ulrich Drepper <drepper@redhat.com>
5083 * libio/fileops.c (_IO_file_underflow_mmap): New function.
5084 (_IO_file_close_mmap): New function.
5085 (_IO_file_jumps_mmap): New variable.
5086 * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
5087 trying to convert rest of byte buffer.
5088 (_IO_wfile_underflow_mmap): New function.
5089 (_IO_wfile_jumps_mmap): New variable.
5090 * libio/iofopen.c (__fopen_maybe_mmap): New function.
5091 (__fopen_internal): New function. Split out from _IO_new_fopen.
5092 (_IO_new_fopen): Call __fopen_internal.
5093 * libio/iofopen64.c: Just call __fopen_internal.
5094 * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
5096 * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
5097 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
5098 _IO_file_close_mmap.
5100 * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
5101 * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
5103 * stdio-common/Makefile (tests): Add tst-rndseek.
5104 * stdio-common/tst-rndseek.c: New file.
5106 2002-01-05 Roland McGrath <roland@frob.com>
5108 * config.h.in (HAVE_MIG_RETCODE): New #undef.
5109 * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
5110 swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
5111 * sysdeps/mach/hurd/configure: Regenerated.
5113 2002-01-03 Ulrich Drepper <drepper@redhat.com>
5115 * elf/elf.h: Add more TLS definitions.
5117 2002-01-02 Ulrich Drepper <drepper@redhat.com>
5119 * include/features.h (__GLIBC_MINOR__): Bump to 3.
5121 2002-01-02 Roland McGrath <roland@frob.com>
5123 * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
5124 __sigisemptyset. Don't use MASK uninitialized.
5126 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
5127 * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
5128 * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
5129 __sigdelset, __sigaddset, __sigorset.
5131 * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
5132 * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
5134 * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
5135 _hurd_ports is null.
5137 * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
5138 for old CMU and new OSF Mach interface flavors.
5139 * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
5140 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
5142 * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
5144 * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
5145 Pass extra arguments to task_create for OSF variant.
5146 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
5148 * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
5149 conditional on [HAVE_AUX_VECTOR].
5151 * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
5152 mach_msg_timeout_t as type of final argument.
5154 * hurd/privports.c (__get_privileged_ports):
5155 Change host_priv_t to mach_port_t in argument type.
5156 * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
5159 * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
5160 multiple inclusion. Inhibit #error under [_SYS_UCONTEXT_H].
5161 * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
5162 * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
5163 * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
5164 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
5166 2002-01-01 Roland McGrath <roland@frob.com>
5168 * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
5170 2002-01-01 Ulrich Drepper <drepper@redhat.com>
5172 * include/stdlib.h: Define inlines for the _l variants of the strto*
5175 2002-01-01 Roland McGrath <roland@frob.com>
5177 * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
5179 * mach/Machrules (MIG): Set CPP as well as CC.
5181 2001-12-31 Ulrich Drepper <drepper@redhat.com>
5183 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
5184 locale to parse /proc/loadavg [PR libc/2760].
5186 2001-12-31 Jakub Jelinek <jakub@redhat.com>
5188 * elf/dl-conflict.c: Include sys/param.h.
5189 (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
5190 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
5192 (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
5193 literals to avoid warnings.
5195 2001-12-31 Andreas Jaeger <aj@suse.de>
5197 * configure.in: Don't check for gsed since we do not use it anywhere.
5199 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
5201 * io/fts.c: Update from BSD to fix memory leaks.
5203 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
5205 * crypt/md5-crypt.c: Realloc error handling memory leak fix.
5206 * elf/chroot_canon.c: Likewise.
5207 * elf/dl-object.c: Likewise.
5208 * iconv/iconv_charmap.c: Likewise.
5209 * iconv/iconv_prog.c: Likewise.
5210 * libio/iogetdelim.c: Likewise.
5211 * locale/lc-time.c: Likewise.
5212 * stdlib/canonicalize.c: Likewise.
5213 * sunrpc/svc.c: Likewise.
5214 * sysdeps/generic/glob.c: Likewise.
5216 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
5218 * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
5219 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
5220 remove high order bit from the program counter.
5221 * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
5223 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
5225 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
5226 unnecessary code and add missing reloc types.
5227 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
5228 case for reloc type R_390_NONE.
5230 2001-12-28 Andreas Jaeger <aj@suse.de>
5232 * io/bug-ftw3.c: Include string.h for prototypes.
5234 * crypt/md5test.c (main): Remove unused variable.
5236 * dlfcn/modstatic.c: Add prototype to avoid warning.
5238 2001-12-26 Roland McGrath <roland@frob.com>
5240 * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
5241 check only (SS->pending & MASK) for the signal to return.
5242 From Jeroen Dekkers <jeroen@dekkers.cx>.
5244 2001-12-22 Roland McGrath <roland@frob.com>
5246 * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
5247 Use preprocessor #if conditionals instead of `if' to avoid
5248 warnings about divide by zero in dead code.
5250 * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
5251 _hurd_port_init, and __hurd_self_sigstate.
5253 * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
5255 2001-12-21 Andreas Jaeger <aj@suse.de>
5257 * elf/dblloadmod1.c: Add prototype to avoid warning.
5258 * elf/dblloadmod2.c: Likewise.
5259 * elf/dblloadmod3.c: Likewise.
5260 * elf/reldepmod5.c: Likewise.
5261 * elf/reldepmod6.c: Likewise.
5263 * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
5264 for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
5265 used on all architectures.
5267 * sunrpc/svc_tcp.c: Add noreturn attribute for
5268 svctcp_rendezvous_abort.
5269 * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
5271 * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
5274 2001-12-19 Jakub Jelinek <jakub@redhat.com>
5276 * manual/llio.texi (aio_fsync): Fix a typo.
5277 Patch by Tammy Fox <tfox@redhat.com>.
5279 2001-12-18 Jakub Jelinek <jakub@redhat.com>
5281 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
5282 stack bias from child stack pointer before passing it to clone syscall.
5284 2001-12-18 Ulrich Drepper <drepper@redhat.com>
5286 * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
5288 * sysdeps/generic/sysconf.c (__sysconf): Likewise.
5289 Reported by Thorsten Kukuk <kukuk@suse.de>.
5291 * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
5294 * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
5296 2001-12-18 Thorsten Kukuk <kukuk@suse.de>
5298 * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
5299 conforming: return EBADF if file descriptor is invalid and EINVAL
5300 if file descriptor is no valid tty.
5301 * login/tst-grantpt.c: New file.
5302 * login/Makefile (tests): Add tst-grantpt.
5304 2001-12-17 Ulrich Drepper <drepper@redhat.com>
5306 * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
5307 different than implemented in last patch.
5308 * io/bug-ftw3.c: Adjust test for changed handling of
5309 inaccessibility of toplevel dir.
5311 2001-12-16 Roland McGrath <roland@frob.com>
5313 * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
5314 * grp/initgroups.c (internal_getgrouplist): Likewise.
5316 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
5317 `default:' to silence new GCC warning.
5318 Rewrite cast of lvalue to silence new GCC warning.
5320 * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
5322 * sysdeps/mach/hurd/spawni.c: New file, by me with a
5323 couple fixes by Neal H Walfield <neal@cs.uml.edu>.
5325 2001-12-14 Ulrich Drepper <drepper@redhat.com>
5327 * sysdeps/generic/strstr.c (strstr): Update. New optimized version.
5328 Patch by Stephen R. van den Berg.
5330 * crypt/md5.h: Define md5_uintptr.
5332 2001-12-13 Ulrich Drepper <drepper@redhat.com>
5334 * libio/tst_swprintf.c (main): Add test for string argument with
5336 * stdio-common/Makefile (tests): Add tst-sprintf.
5337 * stdio-common/tst-sprintf.c: New file.
5339 2001-12-13 Andreas Schwab <schwab@suse.de>
5341 * stdio-common/vfprintf.c (process_string_arg): Correctly handle
5342 zero precision with wide character string format.
5344 2001-12-13 Thorsten Kukuk <kukuk@suse.de>
5346 * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
5347 but have a user supplied buffer, return the empty buffer, not NULL.
5349 2001-12-13 Ulrich Drepper <drepper@redhat.com>
5351 * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
5352 Patch by Eric Sharkey <sharkey@netrics.com>.
5354 * crypt/md5test.c (main): Add test for multiple calls to
5355 __md5_process_bytes to itererate over input string.
5357 2001-12-12 Ulrich Drepper <drepper@redhat.com>
5359 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
5360 from __nis_findfastest. Take timeout value from parameter.
5361 (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
5362 * nis/nis_intern.h: Define parameters controlling __nis_findfastest
5363 [PR libc/2520]. Patch by Alexander Belopolsky <alexb@rentec.com>.
5365 2001-12-12 Andreas Jaeger <aj@suse.de>
5367 * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
5368 combreloc test so that it works in this case.
5370 * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
5372 2001-12-12 NIIBE Yutaka <gniibe@m17n.org>
5374 * sysdeps/sh/Makefile: New file.
5375 * sysdeps/sh/_mcount.S: New file.
5376 * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
5377 * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
5379 2001-12-11 Ulrich Drepper <drepper@redhat.com>
5381 * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
5382 limitation [PR libc/2564].
5384 2001-12-11 Jakub Jelinek <jakub@redhat.com>
5386 * elf/Makefile (dl-routines): Add conflict.
5387 (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
5388 (ld.so): Add _begin local symbol.
5389 * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
5391 * elf/dl-deps.c (_dl_build_local_scope): New.
5392 (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
5394 * elf/do-rel.h (VALIDX): Define.
5395 (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
5396 lazy binding for RELA. If DT_GNU_PRELINKED, DT_RELACOUNT relocations
5398 * elf/dl-conflict.c: New file.
5399 * elf/dl-lookup.c (_dl_debug_bindings): New.
5400 (_dl_lookup_symbol): Use _dl_debug_bindings. Reference_name is always
5402 (_dl_lookup_symbol_skip): Likewise.
5403 (_dl_lookup_versioned_symbol): Likewise.
5404 (_dl_lookup_versioned_symbol_skip): Likewise.
5405 * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
5406 define to ElfW(Rel).
5407 * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
5408 tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
5410 Don't adjust address dynamic tags if l_addr is 0.
5411 * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
5412 (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
5413 (VALIDX, ADDRIDX): Define.
5414 (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
5415 (dl_main): Print library list for LD_TRACE_PRELINKING.
5416 If prelinking information can be used, skip relocating libraries and
5417 call _dl_resolve_conflicts instead.
5418 (process_envvars): Handle LD_TRACE_PRELINKING envvar.
5419 * elf/dl-load.c (_dl_map_object): Don't create fake libs
5420 if LD_TRACE_PRELINKING.
5421 * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
5423 * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
5424 (DL_DEBUG_PRELINK): Define.
5425 (_dl_resolve_conflicts): Add prototype.
5427 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
5428 .plt for prelinked libraries where prelinking info cannot be used.
5429 (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
5430 section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
5431 * sysdeps/arm/bits/link.h: New file.
5432 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
5434 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
5435 (ELF_MACHINE_PLT_REL): Define.
5436 (elf_machine_rela, elf_machine_rela_relative): New.
5437 (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
5438 of adjusting it if prelinked and prelinking cannot be used.
5439 * sysdeps/i386/bits/link.h: New file.
5440 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
5442 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
5443 (ELF_MACHINE_PLT_REL): Define.
5444 (elf_machine_rela, elf_machine_rela_relative): New.
5445 (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
5446 of adjusting it if prelinked and prelinking cannot be used.
5447 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
5448 conflicts, skip finaladdr computation. Use RESOLVE_CONFLICT_FIND_MAP
5449 to find out map for R_PPC_JMP_SLOT relocs.
5450 * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
5451 (OPCODE_BA): Define.
5452 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
5453 libraries where prelinking info cannot be used.
5454 (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
5455 (elf_machine_fixup_plt): Call sparc_fixup_plt.
5456 (elf_machine_rela): Set value to 0 if relocating conflicts.
5457 Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
5458 * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
5459 (sparc64_fixup_plt): Fix a typo.
5460 (elf_machine_rela): Set value to 0 if relocating conflicts.
5461 Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
5462 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
5463 libraries where prelinking info cannot be used.
5464 * sysdeps/sh/bits/link.h: New file.
5465 * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
5467 (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
5468 of adjusting it if prelinked and prelinking cannot be used.
5469 * sysdeps/s390/s390-32/bits/link.h: New file.
5470 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
5471 Save original content of .got[1].
5472 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
5473 of adjusting it if prelinked and prelinking cannot be used.
5474 * sysdeps/s390/s390-64/bits/link.h: New file.
5475 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
5476 Save original content of .got[1].
5477 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
5478 of adjusting it if prelinked and prelinking cannot be used.
5479 * sysdeps/x86_64/bits/link.h: New file.
5480 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
5481 Save original content of .got[1].
5482 (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
5483 of adjusting it if prelinked and prelinking cannot be used.
5485 2001-12-11 Ulrich Drepper <drepper@redhat.com>
5487 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
5488 where appropriate instead of numbers. Little optimizations.
5490 2001-12-10 Roland McGrath <roland@frob.com>
5492 * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
5495 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
5496 set to GLIBC_2.2.5, not GLIBC_2.2.4.
5498 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
5499 Fix conditionals so this is set by default for stdio and not for libio.
5500 * sysdeps/mach/hurd/configure: Regenerated.
5502 2001-12-10 Thorsten Kukuk <kukuk@suse.de>
5504 * io/ftw.c (ftw_startup): Check, if the path is search and readable.
5506 2001-12-10 Ulrich Drepper <drepper@redhat.com>
5508 * io/Makefile (tests): Add bug-ftw3.
5509 * io/bug-ftw3.c: New file.
5511 * sysdeps/generic/glob.c (glob): Return only pattern if nothing
5512 matches and GLOB_NOCHECK is set.
5513 * posix/globtest.sh: Correct expected result for NOCHECK test.
5515 * po/ca.po: Update from translation team.
5517 2001-12-09 Ulrich Drepper <drepper@redhat.com>
5519 Implement transliteration of characters in strings of the locale
5521 * locale/programs/linereader.c: Adjust for additional parameter to
5523 (get_string): If character <Uxxxx> is not found try to transliterate
5525 * locale/programs/ld-ctype.c: Adjust for additional parameter to
5526 lr_token. Add const to charmap parameter of all functions.
5527 (find_translit, find_translit2): New functions.
5528 * locale/programs/charmap.c: Adjust for additional parameter to
5530 * locale/programs/repertoire.c: Likewise.
5531 * locale/programs/linereader.h: Likewise.
5532 * locale/programs/ld-address.c: Likewise. Add const to charmap
5533 parameter of all functions.
5534 * locale/programs/ld-collate.c: Likewise.
5535 * locale/programs/ld-identification.c: Likewise.
5536 * locale/programs/ld-measurement.c: Likewise.
5537 * locale/programs/ld-messages.c: Likewise.
5538 * locale/programs/ld-monetary.c: Likewise.
5539 * locale/programs/ld-name.c: Likewise.
5540 * locale/programs/ld-numeric.c: Likewise.
5541 * locale/programs/ld-paper.c: Likewise.
5542 * locale/programs/ld-paper.c: Likewise.
5543 * locale/programs/ld-telephone.c: Likewise.
5544 * locale/programs/ld-time.c: Likewise.
5545 * locale/programs/locfile.c: Likewise.
5546 * locale/programs/localedef.c: Likewise.
5547 * locale/programs/localedef.h: Likewise.
5548 * locale/programs/locfile.h: Likewise. Add declaration for
5550 * locale/programs/simple-hash.c: Add const to first parameter of
5551 find_entry, iterate_table, and lookup.
5552 * locale/programs/simple-hash.h: Likewise.
5553 * locale/localeinfo.h: Don't define __LC_LAST here. Include <locale.h>
5555 * include/locale.h: Define __LC_LAST.
5556 * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
5558 2001-12-07 Geoff Keating <geoffk@redhat.com>
5560 * sysdeps/powerpc/Dist: Update for recent FP changes.
5561 * sysdeps/powerpc/fpu/Dist: Likewise.
5563 2001-12-07 Andreas Schwab <schwab@suse.de>
5565 * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
5567 2001-12-06 Geoff Keating <geoffk@redhat.com>
5569 * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
5570 save/restore functions here.
5571 (libm-support): Don't define these functions here.
5572 * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
5574 * sysdeps/powerpc/fe_nomask.c: Move to...
5575 * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
5576 * sysdeps/powerpc/fprrest.S: Move to...
5577 * sysdeps/powerpc/fpu/fprrest.S: ... here.
5578 * sysdeps/powerpc/fprsave.S: Move to...
5579 * sysdeps/powerpc/fpu/fprsave.S: ... here.
5581 2001-12-06 Ulrich Drepper <drepper@redhat.com>
5583 * sysdeps/unix/sysv/linux/opensock.c: New file.
5585 2001-12-06 Geoff Keating <geoffk@redhat.com>
5587 * config.make.in (with-fp): Define from configure.
5588 * configure.in: Substitute with_fp.
5589 * configure: Regenerate.
5590 * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
5591 specified, and don't change FPU environment.
5593 2001-12-06 Ulrich Drepper <drepper@redhat.com>
5595 * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
5596 * assert/assert.c: Check result of __asprintf call and don't use
5597 string if it failed.
5598 * assert/assert-perr.c: Likewise.
5599 * inet/rcmd.c: Likewise.
5600 * locale/programs/localedef.c (main): Check result of
5601 construct_output_path and exit if it failed.
5602 (construct_output_path): Check result of asprintf and mkdir calls and
5603 fail if they failed.
5604 * posix/getopt.c: Check result of __asprintf calls and fail if
5606 Patch by Dmitry V. Levin <ldv@alt-linux.org>.
5608 2001-12-05 Ulrich Drepper <drepper@redhat.com>
5610 * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
5612 * sysdeps/generic/strncase.c: Likewise.
5613 * string/tester.c: Add tests for strcasecmp and strncasecmp.
5615 2001-12-05 Geoff Keating <geoffk@redhat.com>
5617 * scripts/cpp: Test the exit status from 'type', not 'awk'.
5619 * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
5620 * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
5621 * sysdeps/powerpc/setjmp.S: Don't save FP registers.
5622 * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
5623 * sysdeps/powerpc/fclrexcpt.c: Move to...
5624 * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
5625 * sysdeps/powerpc/fpu_control.h: Move to...
5626 * sysdeps/powerpc/fpu/fpu_control.h: ... here.
5628 2001-12-05 Ulrich Drepper <drepper@redhat.com>
5630 * iconvdata/ibm1129.h: Remove duplicate mappings.
5631 * iconvdata/ibm937.c: Handle overflow errors. Handle new tables.
5632 * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
5633 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
5635 * timezone/zic.c: Fix handling of turnaround times.
5636 Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
5638 2001-12-02 Moshe Olshansky <OLSHANSK@il.ibm.com>
5640 * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
5643 2001-12-05 Ulrich Drepper <drepper@redhat.com>
5645 * posix/regex.c: For use outside glibc defined bounded pointer
5646 macros here. Patch by Jim Meyering <jim@meyering.net>.
5648 * iconvdata/Makefile (modules): Add TCVN5712-1.
5649 * iconvdata/TESTS: Add TCVN5712-1.
5650 * iconvdata/gconv-modules: Likewise.
5651 * iconvdata/tcvn5712-1.c: New file.
5652 * iconvdata/testdata/TCVN-5712: New file.
5653 * iconvdata/testdata/TCVN-5712..UTF8: New file.
5655 2001-12-04 Ulrich Drepper <drepper@redhat.com>
5657 * iconvdata/cp1258.c: Optimize conversion from UCS4.
5659 2001-12-02 Roland McGrath <roland@frob.com>
5661 * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
5663 * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
5664 Reported by Jeff Bailey <jbailey@nisa.net>.
5666 * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
5667 Reported by Jeff Bailey <jbailey@nisa.net>.
5669 * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
5670 * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
5671 Reported by Jeff Bailey <jbailey@nisa.net>.
5673 2001-12-01 Roland McGrath <roland@frob.com>
5675 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
5676 missing backslash in test arguments.
5677 * sysdeps/mach/hurd/configure: Regenerated.
5679 2001-11-26 Roland McGrath <roland@frob.com>
5681 * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
5682 Reported by John Tobey <jtobey@john-edwin-tobey.org>.
5684 2001-11-30 Ulrich Drepper <drepper@redhat.com>
5686 * iconvdata/Makefile (modules): Add ARMSCII-8.
5687 * iconvdata/gconv-modules: Add entries for ARMSCII-8.
5688 * iconvdata/armscii-8.c: New file.
5690 2001-11-29 Jakub Jelinek <jakub@redhat.com>
5692 * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
5693 don't match, fix {{a,b},c} globbing, clean up.
5694 Patch by Flavio Veloso <flaviovs@magnux.com>.
5695 * posix/globtest.sh: Add new tests.
5697 2001-11-29 Andreas Jaeger <aj@suse.de>
5699 * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
5700 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
5702 * sysdeps/generic/abort.c: Include libioP.h for
5703 _IO_flush_all_lockp prototype.
5705 2001-11-29 Ulrich Drepper <drepper@redhat.com>
5707 * posix/regex.h: Define __restrict_arr correctly.
5709 2001-11-28 Ulrich Drepper <drepper@redhat.com>
5711 * iconvdata/ibm1163.c: New file.
5712 * iconvdata/ibm1163.h: New file.
5713 * iconvdata/ibm1164.c: New file.
5714 * iconvdata/ibm1164.h: New file.
5715 * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
5716 * iconvdata/Makefile: Likewise.
5717 * iconvdata/testdata/IBM1163: New file.
5718 * iconvdata/testdata/IBM1163..UTF8: New file.
5719 * iconvdata/testdata/IBM1164: New file.
5720 * iconvdata/testdata/IBM1164..UTF8: New file.
5721 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
5723 * iconvdata/ibm1046.h: Optimize. Remove duplicate mappings.
5724 * iconvdata/ibm1124.h: Likewise.
5725 * iconvdata/ibm1132.h: Likewise.
5726 * iconvdata/ibm1133.h: Likewise.
5727 * iconvdata/ibm1160.h: Likewise.
5728 * iconvdata/ibm1161.h: Likewise.
5729 * iconvdata/ibm1162.h: Likewise.
5730 * iconvdata/ibm856.h: Likewise.
5731 * iconvdata/ibm922.h: Likewise.
5732 * iconvdata/ibm930.h: Likewise.
5733 * iconvdata/ibm932.h: Likewise.
5734 * iconvdata/ibm933.h: Likewise.
5735 * iconvdata/ibm935.h: Likewise.
5736 * iconvdata/ibm937.h: Likewise.
5737 * iconvdata/ibm939.h: Likewise.
5738 * iconvdata/ibm943.h: Likewise.
5739 * iconvdata/ibm930.c: Pretty printing.
5740 * iconvdata/ibm937.c: Avoid access accross array boundary.
5742 * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
5743 the current locale's codeset.
5744 * iconv/iconv_open.c (iconv_open): Don't strip out everything for
5746 * iconv/iconv_prog.c: Pass empty strings as default value for to-
5747 and from-charset. Don't determine locale's charset here.
5749 * libio/genops.c (_IO_flush_all_lockp): New function. The same code
5750 as the old _IO_flush_all but lock only if parameter is nonzero.
5751 (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
5752 * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
5753 * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
5754 if libio is used [PR libc/2575].
5756 2001-11-28 Jakub Jelinek <jakub@redhat.com>
5758 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
5759 __signbitl): Only define for ISO C99.
5761 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
5763 * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
5764 herrnop to NETDB_INTERNAL if we run out of buffer space.
5766 2001-11-28 Ulrich Drepper <drepper@redhat.com>
5768 * nss/nss_files/files-XXX.c (internal_getent): Correct input
5769 overflow test for platforms with signed char.
5770 Reported by Andrew Haley <aph@cambridge.redhat.com>.
5772 2001-11-28 Bruno Haible <bruno@clisp.org>
5774 * locale/programs/simple-hash.c (lookup_2): Remove function.
5775 (insert_entry_2): Call lookup instead of lookup_2.
5777 2001-03-04 Bruno Haible <bruno@clisp.org>
5779 * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
5781 2001-10-31 Bruno Haible <bruno@clisp.org>
5783 * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
5785 2001-03-21 Bruno Haible <bruno@clisp.org>
5787 * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
5788 chokes on empty macro arguments.
5789 * intl/plural.y: Add #pragma for alloca on AIX 3.
5791 2001-11-27 Ulrich Drepper <drepper@redhat.com>
5793 * intl/dcigettext.c (guess_category_value): Only implement for
5794 glibc. Otherwise rely on function _nl_locale_name which isn't
5795 present in the glibc sources.
5797 2001-09-24 Bruno Haible <bruno@clisp.org>
5799 * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
5800 transliteration when building on a glibc system but outside glibc.
5802 2001-09-22 Bruno Haible <bruno@clisp.org>
5804 * intl/plural-eval.c: New file, extracted from dcigettext.c.
5805 * intl/dcigettext.c (plural_eval): Remove function, moved to
5807 (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
5808 Include plural-eval.c.
5810 2001-09-22 Bruno Haible <bruno@clisp.org>
5812 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
5813 don't start with a digit; nplurals must be positive.
5815 2001-09-02 Bruno Haible <bruno@clisp.org>
5817 * intl/plural-exp.h: New file, extracted from gettextP.h.
5818 * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
5819 * intl/gettextP.h (struct expression, struct parse_args,
5820 __gettext_free_exp, __gettextparse): Move to plural-exp.h.
5821 * intl/loadmsgcat.c: Include plural-exp.h.
5822 (PLURAL_PARSE): Move macro to plural-exp.h.
5823 (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
5825 (_nl_load_domain): Move plural handling code to plural-exp.c. Call
5826 EXTRACT_PLURAL_EXPRESSION.
5827 (_nl_unload_domain): Update.
5828 * intl/dcigettext.c: Include plural-exp.h.
5829 * intl/plural.y: Include plural-exp.h, not gettextP.h.
5830 (FREE_EXPRESSION): Move macro to plural-exp.h.
5831 * intl/Makefile (routines): Add plural-exp.
5832 (distribute): Add plural-exp.h.
5834 2001-07-28 Bruno Haible <bruno@clisp.org>
5836 * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
5837 isdigit, tolower argument to 'unsigned char'.
5838 * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
5840 * intl/localealias.c (read_alias_file): Cast isspace argument to
5843 2001-10-20 Bruno Haible <bruno@clisp.org>
5845 Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
5847 * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
5848 with the variable 'index' in plural_lookup.
5849 * intl/l10nflist.c (strchr): Likewise.
5850 * intl/localealias.c (strchr): Likewise.
5852 Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
5853 * intl/bindtextdom.c: Likewise.
5854 * intl/dcigettext.c: Likewise.
5855 * intl/dgettext.c: Likewise.
5856 * intl/dngettext.c: Likewise.
5857 * intl/explodename.c: Likewise.
5858 * intl/finddomain.c: Likewise.
5859 * intl/gettext.c: Likewise.
5860 * intl/l10nflist.c: Likewise.
5861 * intl/loadmsgcat.c: Likewise.
5862 * intl/localealias.c: Likewise.
5863 * intl/ngettext.c: Likewise.
5864 * intl/textdomain.c: Likewise.
5865 * intl/gettext.h: Assume <limits.h> exists.
5867 2001-11-27 Ulrich Drepper <drepper@redhat.com>
5869 * stdio-common/Makefile (tests): Add scanf11.
5870 * stdio-common/scanf11.c: New file.
5872 2001-11-26 Ulrich Drepper <drepper@redhat.com>
5874 * version.h (RELEASE): Define as development.
5875 (VERSION): Set to 2.2.90.
5877 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
5879 * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
5880 * nis/nss_nis/nis-grp.c: Likewise.
5881 * nis/nss_nisplus/nisplus-grp.c: Likewise.
5883 * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
5884 * nis/nss_nis/nis-pwd.c: Likewise.
5885 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
5887 * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
5888 * nis/nss_nisplus/nisplus-parser.c: Likewise.
5889 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
5891 * nscd/grpcache.c: Use strtoul instead of atol.
5892 * nscd/pwdcache.c: Likewise.
5893 * nss/getent.c: Likewise.
5895 2001-11-27 Paul Eggert <eggert@twinsun.com>
5897 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
5898 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
5900 2001-11-19 Bruno Haible <bruno@clisp.org>
5902 * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
5904 (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
5905 improves the quality of the hash function, especially for short
5908 2001-11-26 Ulrich Drepper <drepper@redhat.com>
5910 * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
5911 are found call conv_error and not input_error [PR libc/2669].
5913 * math/bits/mathcalls.h: Mark ceil and floor as const.
5914 Reported by David Mosberger.
5916 2001-11-21 Jim Meyering <meyering@lucent.com>
5918 * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
5919 Define to be __-prefixed.
5920 Remove unnecessary duplication in `#ifdef _LIBC' blocks.
5922 2001-11-26 Andreas Jaeger <aj@suse.de>
5924 * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
5927 2001-11-26 Stephen L Moshier <moshier@mediaone.net>
5929 * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
5932 * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
5933 unused variables. Fix threshold for returning 1.0.
5935 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
5938 * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
5939 remove unused variables.
5941 * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
5943 * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
5944 include local math header files.
5946 2001-11-22 Andreas Jaeger <aj@suse.de>
5948 * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
5951 2001-11-21 Andreas Jaeger <aj@suse.de>
5953 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
5955 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
5958 2001-11-15 Andreas Jaeger <aj@suse.de>
5960 * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
5961 compilers that support it.
5963 * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
5964 * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
5965 * stdlib/stdlib.h: Likewise.
5967 2001-11-17 Ulrich Drepper <drepper@redhat.com>
5969 * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
5970 statement with gotos.
5971 Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
5973 2001-11-16 Stephen L Moshier <moshier@mediaone.net>
5975 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
5977 2001-11-15 Ulrich Drepper <drepper@redhat.com>
5979 * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
5981 2001-10-02 Jakub Jelinek <jakub@redhat.com>
5982 H.J. Lu <hjl@gnu.org>
5984 * Versions.def (libc): Add GCC_3.0.
5985 * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
5986 if gcc supports this flag.
5987 (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
5988 (gcc3): Allow glibc to be compiled with gcc 3.x.
5989 * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
5990 * config.make.in (static-libgcc, unwind-find-fde): Add.
5991 * Makerules (build-shlib-helper, build-module-helper): Use it.
5992 * scripts/versions.awk: Make sure GLIBC_ versions come first.
5993 * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
5995 (_fini): Call __deregister_frame_info_bases if
5996 __register_frame_info_bases was used to register.
5997 * elf/Versions (__register_frame_info, __deregister_frame_info): Add
5999 (__register_frame_info_bases, __register_frame_info_table_bases,
6000 __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
6001 * elf/Makefile (routines): Add unwind-dw2-fde.
6002 (shared-only-routines): Add unwind-dw2-fde.
6003 * sysdeps/alpha/gccframe.h: New file.
6004 * sysdeps/arm/gccframe.h: New file.
6005 * sysdeps/generic/framestate.c: New file.
6006 * sysdeps/generic/dwarf2.h: New file.
6007 * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
6008 * sysdeps/generic/unwind-dw2-fde.c: New file.
6009 * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
6010 * sysdeps/generic/unwind-dw2-fde.h: New file.
6011 * sysdeps/generic/unwind-dw2.c: New file.
6012 * sysdeps/generic/unwind-pe.h: New file.
6013 * sysdeps/generic/unwind.h: New file.
6014 * sysdeps/hppa/gccframe.h: New file.
6015 * sysdeps/i386/gccframe.h: New file.
6016 * sysdeps/m68k/gccframe.h: New file.
6017 * sysdeps/mips/gccframe.h: New file.
6018 * sysdeps/powerpc/gccframe.h: New file.
6019 * sysdeps/s390/gccframe.h: New file.
6020 * sysdeps/sh/gccframe.h: New file.
6021 * sysdeps/sparc/gccframe.h: New file.
6022 * sysdeps/vax/gccframe.h: New file.
6023 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
6024 Set on all architectures except ia64.
6025 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
6027 * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
6028 __deregister_frame_info): Move to elf/Versions.
6029 * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
6030 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
6031 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
6032 * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
6033 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
6034 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
6035 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
6036 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
6037 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
6038 * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
6039 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
6040 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
6041 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
6042 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
6043 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
6044 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
6045 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
6046 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
6048 2001-11-15 Jeff Law <law@redhat.com>
6050 * posix/regex.c (uintptr_t): Do not provide a definition if the
6051 system provided one.
6053 2001-11-13 Roland McGrath <roland@frob.com>
6055 * stdio-common/tmpfile.c: Moved to ...
6056 * sysdeps/generic/tmpfile.c: ... here.
6057 * sysdeps/mach/hurd/tmpfile.c: New file.
6059 * hurd/fopenport.c (__fopenport): Renamed from fopenport.
6060 [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
6061 (fopenport): Define as weak alias.
6063 * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
6064 * libio/libioP.h: ... to here.
6066 2001-11-12 Ulrich Drepper <drepper@redhat.com>
6068 * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
6069 program header twice. Construct list with the needed information.
6071 2001-11-10 Ulrich Drepper <drepper@redhat.com>
6073 * po/ca.po: Update from translation team.
6075 * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
6076 _dl_pf_to_prot. Use arithmetic operation using PF_TO_PROT macro.
6077 * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
6078 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
6080 2001-11-10 Andreas Jaeger <aj@suse.de>
6082 * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
6083 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
6084 Contributed by Stephen L Moshier <moshier@mediaone.net>.
6086 2001-11-09 Ulrich Drepper <drepper@redhat.com>
6088 * elf/dl-minimal.c (realloc): Handle NULL for first parameter
6090 * elf/dl-load.c (is_dst): New function.
6091 (_dl_dst_count): Use is_dst to check for DST variable.
6092 (_dl_dst_substitute): Likewise.
6094 2001-11-09 Roland McGrath <roland@frob.com>
6096 Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
6097 * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
6098 * sysdeps/mach/hurd/powerpc/init-first.c: New file.
6099 * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
6100 * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
6101 * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
6102 * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
6103 * sysdeps/mach/hurd/powerpc/static-start.S: New file.
6104 * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
6105 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
6106 * sysdeps/mach/hurd/powerpc/Dist: New file.
6108 * hurd/privports.c (__get_privileged_ports):
6109 Only contact the proc server if necessary for this call.
6110 Suggested by Neal H Walfield <neal@cs.uml.edu>.
6111 Check error return for mach_port_mod_refs.
6113 2001-11-09 Andreas Schwab <schwab@suse.de>
6115 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
6117 2001-11-09 Ulrich Drepper <drepper@redhat.com>
6119 * elf/dl-load.c (lose): Remove some unnecessary code. The new
6120 object is always the last in the list.
6121 (_dl_map_object_from_fd): Delete code to remove from object list
6122 when DF_1_NOOPEN is seen. This is done in lose.
6124 2001-11-08 Ulrich Drepper <drepper@redhat.com>
6126 * elf/dl-object.c (_dl_new_object): Various small optimizations.
6128 2001-11-07 Ulrich Drepper <drepper@redhat.com>
6130 * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
6131 HWCAP_CHECK macro code.
6133 * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
6134 Now returns MAP_FAILED on error.
6135 * elf/rtld.c: Adjust caller.
6136 * sysdeps/generic/dl-cache.c: Likewise.
6137 * sysdeps/generic/ldsodefs.h: Adjust description.
6139 * elf/dl-version.c (match_symbol): Optimize error handling for size.
6140 (_dl_check_map_versions): Likewise.
6142 2001-11-06 Ulrich Drepper <drepper@redhat.com>
6144 * elf/dl-load.c (_dl_map_object_from_fd): Don't call
6145 _dl_signal_error directly, always use lose. Set fd to -1 after
6147 (lose): Don't call close if fd == -1.
6149 2001-11-07 Kaoru Fukui <k_fukui@highway.ne.jp>
6151 * manual/charset.texi: Fix typo @w[ISO 6937] to @w{ISO 6937}.
6152 Also fix typo @code {mbsinit} to @code{mbsinit}.
6154 2001-11-06 Ulrich Drepper <drepper@redhat.com>
6156 * elf/dl-profile.c: Replace state variable with simple flag named
6157 running. Remove commented-out code.
6159 * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
6160 (_dl_init_paths): Likewise.
6161 (_dl_map_object_from_fd): Likewise.
6162 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
6164 2001-11-06 Roland McGrath <roland@frob.com>
6166 * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
6167 instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
6169 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
6170 sysdeps/powerpc/elf/sysdep.h.
6171 Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
6173 2001-11-05 Ulrich Drepper <drepper@redhat.com>
6175 * elf/rtld.c (process_dl_debug): Rewritten. Optimized for size not
6177 (process_envvars): Some more optimizations.
6178 * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
6180 * elf/elf.h: Add dynamic tag definitions for prelinking.
6182 * elf/rtld.c (process_envvars): Avoid using array of string pointers.
6183 Rewrite code to remove environment varables for SUID binaries.
6184 Small optimization in LD_PROFILE handling.
6185 * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
6187 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
6189 * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
6191 * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
6192 strings. Change type of second parameter.
6193 * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
6196 * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
6198 2001-11-04 Joseph S. Myers <jsm28@cam.ac.uk>
6200 * manual/string.texi: Fix typos.
6201 * manual/examples/argp-ex2.c: Likewise.
6203 2001-11-05 Roland McGrath <roland@frob.com>
6205 * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
6206 the more-specific unix/sysv/linux/powerpc file and breaks everything.
6207 * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
6208 ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
6209 PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
6210 here, put under [__ELF__].
6212 2001-11-05 Ulrich Drepper <drepper@redhat.com>
6214 * manual/charset.texi: Extensive editing work.
6215 * manual/nss.texi: Likewise.
6216 Changes by Dennis Grace <dgrace@us.ibm.com>.
6218 2001-11-04 Roland McGrath <roland@frob.com>
6220 * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
6221 parameter to dir_mkfile.
6223 2001-11-02 Jakub Jelinek <jakub@redhat.com>
6225 * string/bits/string2.h (__strndup): If n is smaller than len, set
6227 * string/tester.c (test_strndup): New function.
6230 2001-11-01 Ulrich Drepper <drepper@redhat.com>
6232 * sunrpc/rpc_main.c: Optimize variable definitions a bit.
6234 * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
6235 * scripts/cpp: New file.
6237 * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
6238 for rtld_search_dirs content. Minor optimizations.
6240 2001-10-31 Ulrich Drepper <drepper@redhat.com>
6242 * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
6243 avoiding unnecessary duplication.
6245 2001-10-31 Jakub Jelinek <jakub@redhat.com>
6247 * elf/dl-load.c (_dl_map_object): If library was found using
6248 LD_LIBRARY_PATH, don't try RUNPATH list.
6250 2001-10-31 Martin Schwidefsky <schwidefsky@de.ibm.com>
6252 * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
6253 Correct second argument of register_dump call.
6254 * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
6257 2001-10-31 Ulrich Drepper <drepper@redhat.com>
6259 * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
6261 * iconvdata/TESTS: Likewise.
6262 * iconvdata/gconv-modules: Likewise.
6263 * iconvdata/ibm1132.c: New file.
6264 * iconvdata/ibm1132.h: New file.
6265 * iconvdata/ibm1133.c: New file.
6266 * iconvdata/ibm1133.h: New file.
6267 * iconvdata/ibm1162.c: New file.
6268 * iconvdata/ibm1162.h: New file.
6269 * iconvdata/testdata/IBM1132: New file.
6270 * iconvdata/testdata/IBM1132..UTF8: New file.
6271 * iconvdata/testdata/IBM1133: New file.
6272 * iconvdata/testdata/IBM1133..UTF8: New file.
6273 * iconvdata/testdata/IBM1162: New file.
6274 * iconvdata/testdata/IBM1162..UTF8: New file.
6275 Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
6277 * string/string.h: Fix typo in comment.
6278 * wcsmbs/wchar.h: Likewise.
6280 2001-10-30 Joseph S. Myers <jsm28@cam.ac.uk>
6282 * manual/getopt.texi (getopt_long, getopt_long_only): Include
6283 const in type of longopts parameter.
6285 2001-10-29 Andreas Jaeger <aj@suse.de>
6287 * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
6289 2001-10-29 Kevin Ryde <user42@zip.com.au>
6291 * manual/stdio.texi (Integer Conversions): Corrections to sample printf
6292 output, clarify `#' behaviour on 0.
6293 (Floating-Point Conversions): Clarify that %g only uses %e when
6294 the exponent would be greater than 1.
6296 2001-10-28 Roland McGrath <roland@frob.com>
6298 Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
6299 * sysdeps/mach/powerpc/machine-sp.h: New file.
6300 * sysdeps/mach/powerpc/sysdep.h: New file.
6301 * sysdeps/mach/powerpc/thread_state.h: New file.
6303 * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
6304 * sysdeps/mach/hurd/Makefile: ... to here. For the time being, we can
6305 expect to need the same thing on every platform.
6307 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
6308 * sysdeps/generic/sys/ucontext.h: ... to replace this one.
6310 * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
6311 ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
6312 DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
6313 Move all these assembly-related definitions to ...
6314 * sysdeps/powerpc/elf/sysdep.h: ... this new file.
6316 * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
6317 by Peter Bruin <pjbruin@dds.nl>.
6319 * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
6320 packing results for a `poll' call.
6322 2001-10-26 Ulrich Drepper <drepper@redhat.com>
6324 * posix/fnmatch_loop.c: Recognize - at end of bracket expression
6326 * posix/tst-fnmatch.input: Add tests for - at beginning and end of
6329 * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
6331 * string/tst-strxfrm.c (test): Also test __strxfrm_l.
6333 2001-10-24 H.J. Lu <hjl@gnu.org>
6335 * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
6336 Use __BEGIN_DECLS/__END_DECLS around prototypes.
6337 * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
6339 2001-10-21 Jim Meyering <meyering@lucent.com>
6341 * malloc/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
6342 this code would end up calling gettext even in packages built
6344 * posix/getopt.c (_): Likewise.
6345 * posix/regex.c (_): Likewise.
6347 2001-10-26 Ulrich Drepper <drepper@redhat.com>
6349 * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
6351 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
6352 Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
6354 2001-10-19 Jakub Jelinek <jakub@redhat.com>
6356 * misc/sys/cdefs.h (__attribute_used__): Define.
6357 * elf/rtld.c (_dl_start): Add __attribute_used__.
6358 * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
6360 2001-10-25 Andreas Schwab <schwab@suse.de>
6362 * stdlib/a64l.c: Expect least significant digit first.
6363 * stdlib/l64a.c: Produce least significant digit first.
6364 * stdlib/Makefile (tests): Add test-a64l.
6365 * stdlib/test-a64l.c: New file.
6366 Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
6368 2001-10-21 Ulrich Drepper <drepper@redhat.com>
6370 * po/sk.po: Update from translation team.
6372 2001-10-18 Ulrich Drepper <drepper@redhat.com>
6374 * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
6376 2001-10-18 Andreas Schwab <schwab@suse.de>
6378 * math/libm-test.inc (print_ulps): Print ulp values rounded to
6380 (print_function_ulps): Likewise.
6381 (print_complex_function_ulps): Likewise.
6382 (print_max_error): Likewise.
6383 (print_complex_max_error): Likewise. Handle ignore_max_ulp.
6385 2001-10-16 Andreas Schwab <schwab@suse.de>
6387 * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
6390 * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
6391 BSD_SETJMP or BSD__SETJMP is defined, resp.
6392 * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
6393 a tail call to __sigsetjmp that would require extending the
6395 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
6396 * sysdeps/m68k/bsd-setjmp.S: Deleted.
6397 * sysdeps/m68k/bsd-_setjmp.S: Deleted.
6398 Reported by Jes Sorensen <jes@trained-monkey.org>.
6400 2001-10-16 Andreas Jaeger <aj@suse.de>
6402 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
6403 parentheses. Reported by David Byron <dbyron@porto.coactive.com>,
6406 2001-10-15 Ulrich Drepper <drepper@redhat.com>
6408 * po/ca.po: New file. Contributed by the translation team.
6410 2001-10-15 Ralf Baechle <ralf@gnu.org>
6412 * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
6413 a varargs prototype. Remove dependency from kernel header files.
6415 * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
6416 __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
6418 2001-10-14 Ulrich Drepper <drepper@redhat.com>
6420 * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
6421 to generate hexadecimal identifier.
6422 Patch by Jungshik Shin <jungshik.shin@yale.edu>.
6424 2001-10-09 Stephen L Moshier <moshier@mediaone.net>
6426 * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
6428 2001-10-14 Ulrich Drepper <drepper@redhat.com>
6430 * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
6431 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
6432 Contributed by Stephen L Moshier <moshier@mediaone.net>.
6434 * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
6435 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6436 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
6437 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
6438 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
6439 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
6441 * timezone/africa: Update from tzdata2001d.
6442 * timezone/asia: Likewise.
6443 * timezone/australasia: Likewise.
6444 * timezone/backward: Likewise.
6445 * timezone/europe: Likewise.
6446 * timezone/leapseconds: Likewise.
6447 * timezone/northamerica: Likewise.
6448 * timezone/southamerica: Likewise.
6449 * timezone/zone.tab: Likewise.
6451 2001-10-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
6453 * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
6454 * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
6456 2001-10-12 Ulrich Drepper <drepper@redhat.com>
6458 * elf/elf.h (PT_TLS): New definition.
6460 2001-10-10 Jeff Bailey <jbailey@nisa.net>
6462 * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
6465 2001-10-07 Roland McGrath <roland@frob.com>
6467 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
6469 2001-10-10 Ulrich Drepper <drepper@redhat.com>
6471 * elf/elf.h: Add more ELFOSABI_* constants.
6473 2001-10-04 Ben Collins <bcollins@debian.org>
6475 * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
6476 decleration of __need_wchar_t.
6478 2001-10-03 Jakub Jelinek <jakub@redhat.com>
6480 * string/bits/string2.h (__strsep_g): Add prototype.
6482 * string/Versions (__strsep): Remove.
6483 * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
6485 2001-10-07 Ulrich Drepper <drepper@redhat.com>
6487 * manua/llio.texi: Clarify file references added by mmap.
6488 Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
6490 2001-09-29 Jes Sorensen <jes@trained-monkey.org>
6492 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
6493 Add sc_loadrs and sc_rbs_bas to match current kernel.
6495 2001-09-27 Jakub Jelinek <jakub@redhat.com>
6497 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
6499 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
6501 2001-09-27 Jakub Jelinek <jakub@redhat.com>
6503 * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
6504 object has been bumped because of relocation dependency, avoid
6505 duplicates in l_scope.
6506 (show_scope): Fix typos.
6507 * elf/Makefile: Add rules to build and run reldep6.
6508 * elf/reldep6.c: New file.
6509 * elf/reldep6mod0.c: New file.
6510 * elf/reldep6mod1.c: New file.
6511 * elf/reldep6mod2.c: New file.
6512 * elf/reldep6mod3.c: New file.
6513 * elf/reldep6mod4.c: New file.
6515 2001-09-26 Jakub Jelinek <jakub@redhat.com>
6517 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
6519 (sparc64_fixup_plt): Moved from elf_machine_fixup_plt. Optimize
6520 near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
6521 for non-lazy binding. Fix .plt[32768+] handling.
6522 (elf_machine_plt_value): Don't add addend.
6523 (elf_machine_rela): Call sparc64_fixup_plt instead of
6524 elf_machine_fixup_plt.
6525 (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
6526 dynamic linker at 0xfffff800XXXXXXXX.
6528 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
6530 2001-09-28 Ulrich Drepper <drepper@redhat.com>
6532 * elf/elf.h: Define SHF_GROUP and SHF_TLS.
6534 2001-09-25 Jakub Jelinek <jakub@redhat.com>
6536 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
6537 declare __cmsg_data field if its size would be bigger than 0.
6538 (CMSG_DATA): Adjust accordingly.
6539 * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
6540 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
6541 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
6542 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
6543 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6544 * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
6545 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
6547 2001-09-25 Ulrich Drepper <drepper@redhat.com>
6549 * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
6550 * iconvdata/testdata/IBM1160: New file.
6551 * iconvdata/testdata/IBM1160..UTF8: New file.
6552 * iconvdata/testdata/IBM1161: New file.
6553 * iconvdata/testdata/IBM1161..UTF8: New file.
6554 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
6556 2001-09-24 Ulrich Drepper <drepper@redhat.com>
6558 * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
6559 UL_SETFSIZE computations better.
6561 * rt/Makefile: Remove use of filter for librt again.
6563 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
6564 UL_SETFSIZE computations better.
6566 * string/Versions: Export __strsep for GLIBC_2.2.5.
6567 * string/bits/string2.h: Define all __STRING_INLINE functions if
6568 _FORCE_INLINES is defined.
6569 Use int instead of char of parameter types.
6570 (__strsep): Don't use __strsep_g. Don't define it.
6571 (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
6572 * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
6574 (__stpcpy_a_small): Renamed from __stpcpy_small.
6575 (__strcspn_c1): Don't define if _FORCE_INLINES.
6576 (__strspn_c1): Likewise.
6578 2001-09-22 Ben Collins <bcollins@debian.org>
6580 * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
6581 _UNIX98_SOURCE is defined too. Matches generic/bits/sigaction.h.
6582 * sysdeps/ia64/bits/sigaction.h: Likewise.
6583 * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
6585 2001-09-24 Andrew Haley <aph@cambridge.redhat.com>
6587 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
6589 2001-09-24 Jakub Jelinek <jakub@redhat.com>
6591 * elf/dl-open.c (dl_open_worker): Update l_scope_max.
6593 2001-09-24 Ulrich Drepper <drepper@redhat.com>
6595 * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
6597 2001-09-20 H.J. Lu <hjl@gnu.org>
6599 * include/dlfcn.h (__RTLD_SPROF): New definiton.
6600 * elf/dl-open.c (dl_open_worker): Return immediately after loading
6602 * elf/sprof.c (main): Default to the filename if soname doesn't exist.
6603 (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
6605 2001-09-20 H.J. Lu <hjl@gnu.org>
6607 * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
6610 2001-09-22 Ulrich Drepper <drepper@redhat.com>
6612 * nss/getent.c: Accept -s parameter to overwrite rules in
6613 nsswitch.conf. Patch by Nalin Dahyabhai <nalin@redhat.com>.
6615 * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
6616 with as many ".0" as necessary to form a complete address
6617 inet_network understands.
6619 * nss/getent.c: Various cleanups. Use simpler and fewer function
6622 2001-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
6624 * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
6626 * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
6628 2001-09-22 Ulrich Drepper <drepper@redhat.com>
6630 * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
6632 * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
6633 * iconvdata/ibm1160.c: New file.
6634 * iconvdata/ibm1160.h: New file.
6635 * iconvdata/ibm1161.c: New file.
6636 * iconvdata/ibm1161.h: New file.
6637 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
6639 2001-09-19 Jakub Jelinek <jakub@redhat.com>
6641 * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
6642 difference between base address and first PT_LOAD's virtual address,
6643 not the base address.
6645 2001-09-11 Tom Rix <trix@redhat.com>
6647 * sysdeps/unix/sysv/aix/init-first.c (init): Use USE_NONONPTION_FLAG
6648 ifdef for __getopt_clean_environment.
6649 * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
6651 2001-09-22 Andreas Jaeger <aj@suse.de>
6653 * elf/reldep4.c (main): Add proper prototype to fix warning.
6655 * elf/reldep5.c (main): Remove unused variable.
6657 * math/math_private.h: Add prototypes.
6659 2001-09-21 Andreas Jaeger <aj@suse.de>
6661 * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
6662 * sysdeps/x86_64/Dist: New file.
6663 * sysdeps/x86_64/soft-fp/Dist: New file.
6665 * sysdeps/gnu/Dist: Remove eval.c.
6667 2001-09-20 Ulrich Drepper <drepper@redhat.com>
6669 * malloc/memusage.c (realloc): Don't count already allocated
6671 (me): Always use dlsym() to find the real implementations.
6673 * malloc/memusage.sh: Make -n option actually do something.
6675 2001-09-20 Andreas Jaeger <aj@suse.de>
6677 * elf/elf.h (R_390_NUM): Correct value.
6679 * Versions.def: Add missing versions 2.2.3 for libthread_db and
6682 * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
6683 for x86-64, install x86-64 into */lib64.
6685 * shlib-versions: Add x86-64.
6687 * elf/elf.h: Add x86-64 relocations.
6689 2001-09-19 Ulrich Drepper <drepper@redhat.com>
6691 * po/fr.po: Update from translation team.
6693 2001-09-19 Andreas Jaeger <aj@suse.de>
6695 * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
6696 * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
6697 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
6698 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
6699 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
6700 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
6701 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
6702 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
6703 * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
6704 * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
6705 * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
6706 * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
6707 * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
6708 * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
6709 * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
6710 * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
6711 * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
6712 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
6713 * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
6714 * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
6715 * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
6716 * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
6717 * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
6718 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
6719 * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
6720 * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
6721 * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
6722 * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
6723 * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
6724 * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
6725 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
6726 * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
6727 * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
6728 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
6729 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
6730 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
6731 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
6732 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
6733 * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
6734 * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
6735 * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
6736 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
6737 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
6738 * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
6739 * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
6740 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
6741 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
6742 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
6743 * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
6744 * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
6745 * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
6746 * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
6747 * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
6748 * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
6749 * sysdeps/unix/x86_64/sysdep.S: New file.
6750 * sysdeps/unix/x86_64/sysdep.h: New file.
6751 * sysdeps/x86_64/Implies: New file.
6752 * sysdeps/x86_64/Makefile: New file.
6753 * sysdeps/x86_64/Versions: New file.
6754 * sysdeps/x86_64/__longjmp.S: New file.
6755 * sysdeps/x86_64/abort-instr.h: New file.
6756 * sysdeps/x86_64/atomicity.h: New file.
6757 * sysdeps/x86_64/bits/endian.h: New file.
6758 * sysdeps/x86_64/bits/setjmp.h: New file.
6759 * sysdeps/x86_64/bits/string.h: New file.
6760 * sysdeps/x86_64/bp-asm.h: New file.
6761 * sysdeps/x86_64/bsd-_setjmp.S: New file.
6762 * sysdeps/x86_64/bsd-setjmp.S: New file.
6763 * sysdeps/x86_64/dl-machine.h: New file.
6764 * sysdeps/x86_64/elf/initfini.c: New file.
6765 * sysdeps/x86_64/elf/start.S: New file.
6766 * sysdeps/x86_64/ffs.c: New file.
6767 * sysdeps/x86_64/ffsll.c: New file.
6768 * sysdeps/x86_64/fpu/bits/fenv.h: New file.
6769 * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
6770 * sysdeps/x86_64/fpu/e_acosl.c: New file.
6771 * sysdeps/x86_64/fpu/e_atan2l.c: New file.
6772 * sysdeps/x86_64/fpu/e_exp2l.S: New file.
6773 * sysdeps/x86_64/fpu/e_expl.c: New file.
6774 * sysdeps/x86_64/fpu/e_fmodl.S: New file.
6775 * sysdeps/x86_64/fpu/e_log10l.S: New file.
6776 * sysdeps/x86_64/fpu/e_log2l.S: New file.
6777 * sysdeps/x86_64/fpu/e_logl.S: New file.
6778 * sysdeps/x86_64/fpu/e_powl.S: New file.
6779 * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
6780 * sysdeps/x86_64/fpu/e_scalbl.S: New file.
6781 * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
6782 * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
6783 * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
6784 * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
6785 * sysdeps/x86_64/fpu/fegetenv.c: New file.
6786 * sysdeps/x86_64/fpu/fegetexcept.c: New file.
6787 * sysdeps/x86_64/fpu/fegetround.c: New file.
6788 * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
6789 * sysdeps/x86_64/fpu/fesetenv.c: New file.
6790 * sysdeps/x86_64/fpu/fesetround.c: New file.
6791 * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
6792 * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
6793 * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
6794 * sysdeps/x86_64/fpu/ftestexcept.c: New file.
6795 * sysdeps/x86_64/fpu/libm-test-ulps: New file.
6796 * sysdeps/x86_64/fpu/math_ldbl.h: New file.
6797 * sysdeps/x86_64/fpu/printf_fphex.c: New file.
6798 * sysdeps/x86_64/fpu/s_atanl.c: New file.
6799 * sysdeps/x86_64/fpu/s_cosl.S: New file.
6800 * sysdeps/x86_64/fpu/s_expm1l.S: New file.
6801 * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
6802 * sysdeps/x86_64/fpu/s_isinfl.c: New file.
6803 * sysdeps/x86_64/fpu/s_isnanl.c: New file.
6804 * sysdeps/x86_64/fpu/s_log1pl.S: New file.
6805 * sysdeps/x86_64/fpu/s_logbl.c: New file.
6806 * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
6807 * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
6808 * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
6809 * sysdeps/x86_64/fpu/s_rintl.c: New file.
6810 * sysdeps/x86_64/fpu/s_significandl.c: New file.
6811 * sysdeps/x86_64/fpu/s_sincosl.S: New file.
6812 * sysdeps/x86_64/fpu/s_sinl.S: New file.
6813 * sysdeps/x86_64/fpu/s_tanl.S: New file.
6814 * sysdeps/x86_64/gmp-mparam.h: New file.
6815 * sysdeps/x86_64/hp-timing.c: New file.
6816 * sysdeps/x86_64/hp-timing.h: New file.
6817 * sysdeps/x86_64/htonl.S: New file.
6818 * sysdeps/x86_64/memusage.h: New file.
6819 * sysdeps/x86_64/setjmp.S: New file.
6820 * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
6821 * sysdeps/x86_64/stackinfo.h: New file.
6822 * sysdeps/x86_64/sysdep.h: New file.
6823 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
6825 * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
6828 2001-09-18 Ulrich Drepper <drepper@redhat.com>
6830 * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
6831 Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
6833 2001-09-18 Andreas Schwab <schwab@suse.de>
6835 * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
6836 list, now that l_scope is a pointer.
6838 * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
6841 2001-09-18 kaz Kojima <kkojima@rr.iij4u.or.jp>
6843 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
6844 (elf_machine_rela_relative): Add a missing declaration.
6846 2001-09-18 Jakub Jelinek <jakub@redhat.com>
6848 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
6849 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
6850 * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
6851 ldd-rewrite scripts.
6853 2001-09-18 Ulrich Drepper <drepper@redhat.com>
6855 * elf/ldd.bash.in: Update copyright message.
6857 2001-09-17 H.J. Lu <hjl@gnu.org>
6859 * hurd/hurdmalloc.c (bcopy): Removed.
6860 (realloc): Replace bcopy with memcpy.
6861 * hurd/path-lookup.c (file_name_path_scan): Likewise.
6862 * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
6863 * sunrpc/rpcinfo.c (pmapdump): Likewise.
6865 * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
6866 (gethostbyaddr): Likewise.
6867 * sunrpc/rpcinfo.c (get_inet_address): Likewise.
6869 2001-09-18 Ulrich Drepper <drepper@redhat.com>
6871 * sysdeps/gnu/eval.c: Removed.
6873 2001-09-18 Andreas Jaeger <aj@suse.de>
6875 * sysdeps/i386/fpu/s_logbl.S: Move to ...
6876 * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
6878 * sysdeps/i386/fpu/s_rintl.S: Move to ...
6879 * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
6881 * sysdeps/i386/fpu/s_significandl.S: Move to ...
6882 * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
6884 2001-09-16 Ulrich Drepper <drepper@redhat.com>
6886 * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
6889 2001-09-14 H.J. Lu <hjl@gnu.org>
6891 * sysdeps/mips/fpu/libm-test-ulps: Updated.
6893 2001-09-14 Ulrich Drepper <drepper@redhat.com>
6895 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
6896 Patch by Florian La Roche <laroche@redhat.com>.
6898 * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
6900 * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
6903 2001-09-14 Andreas Schwab <schwab@suse.de>
6905 * posix/execl.c: Fix last argument of memcpy. Reported by Brian
6906 Sumner <bls@sgi.com>.
6907 * posix/execlp.c: Likewise.
6909 2001-09-13 Jakub Jelinek <jakub@redhat.com>
6911 * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
6912 is already found earlier in the search scope.
6914 2001-09-12 Jakub Jelinek <jakub@redhat.com>
6916 * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
6919 2001-09-13 Ulrich Drepper <drepper@redhat.com>
6921 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
6923 2001-09-12 Ulrich Drepper <drepper@redhat.com>
6925 * config.h.in: Enforce optimization to be used.
6926 * Makeconfig (preprocess-versions): Define ASSEMBLER.
6927 * stdlib/Makefile (isomac-CFLAGS): Define to -O.
6928 * posix/Makefile (annexc-CFLAGS): Define to -O.
6929 * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
6931 2001-09-11 Ulrich Drepper <drepper@redhat.com>
6933 * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
6934 Patch by Stephan Kulow.
6936 2001-09-08 Ben Collins <bcollins@debian.org>
6938 * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
6939 usage of RESOLVE() (r_type, not reloc->r_type).
6941 2001-09-08 Ulrich Drepper <drepper@redhat.com>
6943 * elf/dl-object.c: Avoid allocating extra memory block for name.
6944 * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
6945 allocated separately.
6946 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
6948 2001-09-08 H.J. Lu <hjl@gnu.org>
6950 * po/zh_TW.po: Fix a typo.
6952 2001-09-07 Tom Rix <trix@redhat.com>
6954 * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
6956 2001-08-26 Tom Rix <trix@redhat.com>
6958 * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
6959 command line options.
6960 * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
6961 * sysdeps/unix/sysv/aix/start.c: Removed.
6962 * sysdeps/unix/sysv/aix/start-libc.c: New file.
6963 * sysdeps/unix/sysv/aix/init-first.c: New file.
6964 * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
6966 2001-09-08 Ben Collins <bcollins@debian.org>
6968 * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
6969 * sysdeps/generic/dl-machine.h: Likewise.
6970 * sysdeps/hppa/dl-fptr.c: Likewise.
6971 * sysdeps/ia64/dl-fptr.c: Likewise.
6972 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
6973 * sysdeps/mips/dl-machine.h: Likewise.
6974 * sysdeps/mips/mips64/dl-machine.h: Likewise.
6975 * sysdeps/powerpc/dl-machine.c: Likewise.
6977 2001-09-07 Ben Collins <bcollins@debian.org>
6979 * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
6981 * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
6983 2001-09-08 Ulrich Drepper <drepper@redhat.com>
6985 * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
6986 dependencies if necessary.
6988 * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
6989 loaded directly) determine length if l_initfini list by iterating
6990 over its elements. Minor optimizations.
6991 * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
6992 for dependency objects.
6993 If object was already loaded check whether any of the dependencies
6994 is already on the relocation dependency list. If yes, remove the
6995 latter. Minor optimizations.
6996 * elf/dl-lookup.c (add_dependency): Add check for self reference of
6997 maps here. Search l_initfini list only if the object was loaded
6998 directly and not only as a dependency.
6999 (_dl_lookup_symbol): Add relocation dependency also if object
7000 is not in global scope. Remove test for self-reference here.
7001 (_dl_lookup_versioned_symbol): Likewise.
7002 * elf/dl-object (_dl_new_object): Cleanup. Initialize dont_free
7003 element of first name record.
7004 * elf/loadtest.c: Add some more test to recognize early if an object
7006 * elf/Makefile: Add rules to build and run reldep5.
7007 * elf/reldep5.c: New file.
7008 * elf/reldepmod5.c: New file.
7009 * elf/reldepmod6.c: New file.
7011 * elf/reldep2.c: Fix typo.
7013 2001-09-07 Ulrich Drepper <drepper@redhat.com>
7015 * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
7016 elements. Change l_scope to be a pointer only.
7017 * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
7018 * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
7019 here add searchlist of newly open file to the dependency's scope.
7020 * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
7021 only searchlist from its scope. Free own scope array if necessary.
7022 * elf/Makefile (tests): Add dblload and dblunload now.
7024 2001-09-06 Andreas Jaeger <aj@suse.de>
7026 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
7029 2001-09-05 Ulrich Drepper <drepper@redhat.com>
7031 * elf/Makefile: Add rules to build new tests. Don't run them yet since
7033 * elf/dblload.c: New file.
7034 * elf/dblloadmod1.c: New file.
7035 * elf/dblloadmod2.c: New file.
7036 * elf/dblloadmod3.c: New file.
7037 * elf/dblunload.c: New file.
7039 2001-09-04 Richard Henderson <rth@redhat.com>
7041 * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
7042 (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
7044 2001-09-04 Ulrich Drepper <drepper@redhat.com>
7046 Correct very misleading message for error in failed runtime relocation.
7047 * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
7049 (_dl_signal_cerror): Likewise.
7050 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
7051 * elf/dl-close.c: Likewise.
7052 * elf/dl-deps.c: Likewise.
7053 * elf/dl-load.c: Likewise.
7054 * elf/dl-lookup.c: Likewise.
7055 * elf/dl-open.c: Likewise.
7056 * elf/dl-reloc.c: Likewise.
7057 * elf/dl-sym.c: Likewise.
7058 * elf/dl-version.c: Likewise.
7059 * sysdeps/generic/dl-sysdep.c: Likewise.
7061 2001-09-04 Jakub Jelinek <jakub@redhat.com>
7063 * iconv/strtab.c (strtabinit): Initialize null Strent.
7064 (newstring): Move len == 0 handling...
7065 (strtabadd): ...here.
7066 If len == 1, return null Strent.
7067 When inserting a suffix of an existing string, check if
7068 it is not equal to some suffix already recorded.
7069 Copy left and right members over if adding longer string.
7071 2001-09-04 Jakub Jelinek <jakub@redhat.com>
7073 * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
7075 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
7076 (__syscall_gethostname): Add prototype.
7078 2001-09-04 Ulrich Drepper <drepper@redhat.com>
7080 * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
7082 2001-09-02 Ulrich Drepper <drepper@redhat.com>
7084 * elf/rtld.c (dl_main): Increment l_opencount for main binary.
7086 2001-08-27 Roland McGrath <roland@frob.com>
7088 * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
7089 short, copy that much into NAME anyway before returning error.
7091 2001-09-01 Richard Henderson <rth@redhat.com>
7093 * sysdeps/alpha/elf/Dist: Remove file.
7094 * sysdeps/alpha/elf/Makefile: Remove file.
7095 * sysdeps/alpha/elf/crtbegin.S: Remove file.
7096 * sysdeps/alpha/elf/crtend.S: Remove file.
7097 * sysdeps/alpha/elf/initfini.c: New file.
7099 2001-09-01 Mark Kettenis <kettenis@gnu.org>
7101 * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
7102 * iconv/tst-iconv3.c: Likewise.
7104 2001-09-01 Jakub Jelinek <jakub@redhat.com>
7106 * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
7108 2001-09-01 Ulrich Drepper <drepper@redhat.com>
7110 * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
7112 * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
7113 * iconv/iconv_prog.c (insert_cache): New function.
7114 (print_known_names): If cache is used call insert_cache to use the
7115 information from the cache [PR libc/2509].
7117 2001-08-31 Ulrich Drepper <drepper@redhat.com>
7119 * time/strptime.c (strptime_internal): Recognize 'l' format and
7120 handle it like 'I' for symmetry with strftime.
7122 2001-08-31 Richard Henderson <rth@redhat.com>
7124 * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
7125 (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
7126 * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
7127 (print_statistics): Make scalar unsigned long long.
7128 * sysdeps/alpha/hp-timing.h: New file.
7130 2001-08-31 Jakub Jelinek <jakub@redhat.com>
7132 * stdio-common/perror.c (perror): Save errno early, pass it
7133 down to perror_internal.
7134 (perror_internal): Add errnum argument.
7136 2001-08-31 Jakub Jelinek <jakub@redhat.com>
7138 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
7139 Don't add old memory content for R_ALPHA_REFQUAD.
7141 2001-08-30 Ulrich Drepper <drepper@redhat.com>
7143 * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
7146 * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
7147 instead of open, __close instead of close, __getpagesize instead
7150 * string/argz-stringify.c (__argz_stringify): Use __strnlen
7152 * include/string.h (strndupa): Redefine here to use __strnlen
7154 * string/strndup.c (__strndup): Use __strnlen not strnlen.
7156 * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
7159 2001-08-30 Jakub Jelinek <jakub@redhat.com>
7161 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
7162 R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
7163 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
7164 * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
7165 * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
7166 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
7167 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
7169 2001-08-30 Ulrich Drepper <drepper@redhat.com>
7171 * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
7173 2001-08-30 Andreas Jaeger <aj@suse.de>
7175 * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
7176 contributed Stephen L Moshier.
7178 2001-08-30 Jakub Jelinek <jakub@redhat.com>
7180 * sunrpc/etc.rpc (sgi_fam): Add.
7182 2001-08-30 Ulrich Drepper <drepper@redhat.com>
7184 * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
7186 2001-08-29 Ulrich Drepper <drepper@redhat.com>
7188 * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
7189 first is from a previous call.
7190 Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
7192 2001-08-29 Andreas Schwab <schwab@suse.de>
7194 * sysdeps/ia64/fpu/libm-test-ulps: Updated.
7196 2001-08-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7198 * config.make.in (INSTALL_SCRIPT): Define.
7199 * Makeconfig (INSTALL_SCRIPT): Define.
7200 * Makerules (do-install-script): New macro to install scripts using
7202 (install-bin-script): New rule to install scripts with
7204 (install-bin-script-nosubdir): New rule.
7205 (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
7206 (distinfo-vars): Add $(install-bin-script).
7207 * Rules (others): Likewise.
7208 * Makefile (glibcbug): Install with install-bin-script.
7209 * debug/Makefile (xtrace): Likewise.
7210 (catchsegv): Likewise.
7211 * elf/Makefile (ldd): Likewise.
7212 * malloc/Makefile (mtrace): Likewise.
7213 * timezone/Makefile (tzselect): Likewise.
7215 2001-08-29 H.J. Lu <hjl@gnu.org>
7217 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
7218 ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
7219 _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
7221 2001-08-29 Andreas Schwab <schwab@suse.de>
7223 * sysdeps/m68k/fpu/libm-test-ulps: Updated.
7225 2001-08-28 H.J. Lu <hjl@gnu.org>
7227 * Makeconfig (combreloc-LDFLAGS): New variable.
7228 Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
7229 * config.make.in (have-z-combreloc): New variable.
7230 * configure.in: Substitute libc_cv_z_combreloc.
7232 2001-08-29 Ulrich Drepper <drepper@redhat.com>
7234 * po/sv.po: Update from translation team.
7235 * po/fr.po: Likewise.
7236 * po/da.po: Likewise.
7238 2001-08-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7240 * Makerules: Fix a typo: MD% -> MD5.
7242 2001-08-28 Ulrich Drepper <drepper@redhat.com>
7244 * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
7245 Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
7247 2001-08-28 Andreas Jaeger <aj@suse.de>
7249 * manual/libc-texinfo.sh: Add entry about free manuals.
7251 * manual/contrib.texi (Contributors): Fix cross reference.
7253 * manual/libc.texinfo (Copying): Include freemanuals.
7255 * manual/Makefile (appendices): Add freemanuals.
7257 * manual/freemanuals.texi: New file.
7258 Patch by Brian Youmans <3diff@gnu.org>.
7260 * manual/libm-err-tab.pl: Pretty print more platforms, print a
7263 * manual/math.texi (Errors in Math Functions): Fix grammar, start
7264 table on separate page.
7265 Patch by Brian Youmans <3diff@gnu.org>.
7267 2001-08-27 Ulrich Drepper <drepper@redhat.com>
7269 * misc/syslog.c (vsyslog): Try a bit harder to use syslogd. If
7270 the connection went down after we first used it try to connect
7271 again and resend the message before printing to the console.
7272 Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
7274 2001-08-27 Jakub Jelinek <jakub@redhat.com>
7276 * string/tst-strlen.c (main): Test strnlen (, -1) too.
7277 * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
7280 2001-08-27 Ulrich Drepper <drepper@redhat.com>
7282 * iconv/strtab.c (searchstring): Use correct length for comparison.
7283 (strtabadd): Account total size correct if new string has old string as
7286 2001-08-27 Jakub Jelinek <jakub@redhat.com>
7288 * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
7290 2001-08-27 Andreas Jaeger <aj@suse.de>
7292 * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
7294 * math/libm-test.inc (j0_test): Add extra tests.
7295 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
7296 not x, in Hankel approximation.
7297 Patches by Stephen L Moshier.
7299 2001-08-26 Ulrich Drepper <drepper@redhat.com>
7301 * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
7304 * configure.in: Fix test for .rela.dyn section.
7306 * elf/dl-runtime.c: Update calls to _dl_lookup_*.
7308 2001-08-26 Jakub Jelinek <jakub@redhat.com>
7310 * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
7311 instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
7312 Pass type_class to _dl_lookup_*.
7313 * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
7314 Pass around just type_class instead of noexec, noplt pair.
7315 (_dl_lookup_versioned_symbol): Likewise.
7316 (_dl_lookup_symbol_skip): Pass around just type_class instead of
7318 (_dl_lookup_versioned_symbol_skip): Likewise.
7319 (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
7320 * elf/do-lookup.h (do_lookup): Likewise.
7321 * include/link.h (struct link_map): Replace noexec and noplt fields
7322 in l_lookup_cache with type_class field.
7323 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
7324 ELF_RTYPE_CLASS_COPY): Define.
7325 Adjust prototypes for _dl_lookup_symbol and
7326 _dl_lookup_versioned_symbol.
7327 * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
7328 elf_machine_lookup_noexec_p): Remove.
7329 (elf_machine_type_class): Define.
7330 * sysdeps/arm/dl-machine.h: Likewise.
7331 * sysdeps/hppa/dl-machine.h: Likewise.
7332 * sysdeps/cris/dl-machine.h: Likewise.
7333 * sysdeps/i386/dl-machine.h: Likewise.
7334 * sysdeps/ia64/dl-machine.h: Likewise.
7335 * sysdeps/m68k/dl-machine.h: Likewise.
7336 * sysdeps/mips/mips64/dl-machine.h: Likewise.
7337 * sysdeps/mips/dl-machine.h: Likewise.
7338 * sysdeps/powerpc/dl-machine.h: Likewise.
7339 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
7340 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
7341 * sysdeps/sh/dl-machine.h: Likewise.
7342 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7343 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7345 2001-08-26 Ulrich Drepper <drepper@redhat.com>
7347 * manual/message.texi (Advanced gettext functions): Change
7348 description of plural forms for Slovak.
7349 Reported by Marcel Telka <marcel@telka.sk>.
7351 * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
7352 %z. Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
7354 2001-08-26 Jakub Jelinek <jakub@redhat.com>
7356 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
7357 typo. Patch by Florian La Roche <laroche@redhat.com>.
7359 2001-08-26 Ulrich Drepper <drepper@redhat.com>
7361 * include/link.h (struct link_map): Add l_lookup_cache element.
7362 * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
7363 (RESOLVE_MAP): Likewise.
7364 (_dl_relocate_object): Remove cache initialization.
7365 * elf/dl-lookup.c: Rip out cache handling code.
7366 * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
7369 * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
7370 remove some __builtin_expect.
7371 (_dl_lookup_versioned_symbol): Likewise.
7373 * config.h.in: Add HAVE_Z_COMBRELOC.
7374 * configure.in: Add test for -z combreloc.
7376 * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
7377 optimizations. Use HAVE_Z_COMBRELOC to avoid generaton of
7378 R_386_RELATIVE handling for ld.so startup. Reduce RTLD_BOOTSTRAP
7379 case to almost no code.
7381 2001-08-25 Ulrich Drepper <drepper@redhat.com>
7383 * po/tr.po: Update from translation team.
7385 2001-08-24 Andreas Jaeger <aj@suse.de>
7387 * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
7390 2001-08-24 Ulrich Drepper <drepper@redhat.com>
7392 * elf/rtld.c (print_statistics): Printf % after percent values.
7393 * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
7395 * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
7396 don't have to compute the hash value and initialize current_value.
7397 Move reference_name variable to where it is needed.
7398 (_dl_lookup_versioned_symbol): Likewise.
7400 2001-08-24 Roland McGrath <roland@frob.com>
7402 * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
7403 Just test that strerror returns non-null for a few errno codes.
7405 2001-08-23 Roland McGrath <roland@frob.com>
7407 * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
7408 _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
7410 * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
7412 * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
7415 2001-08-24 Ulrich Drepper <drepper@redhat.com>
7417 * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
7420 * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
7421 startup. Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
7423 * elf/rtld.c: Include <sys/param.h>.
7424 * elf/dl-reloc.c: Likewise.
7426 2001-08-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7428 * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
7429 empty to prevent junk from being generated.
7430 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
7432 2001-08-24 Jakub Jelinek <jakub@redhat.com>
7434 * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
7435 records. Rename endrel to relative, initialize it to r, and use it
7436 in elf_machine_rel_relative calls. Point r after relative relocs.
7438 2001-08-24 Ulrich Drepper <drepper@redhat.com>
7440 * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
7443 2001-08-24 Jakub Jelinek <jakub@redhat.com>
7445 * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
7446 necessary. Undefine newly defined macros at the end.
7447 * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
7448 Rename from elf_machine_rel_relative.
7449 * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
7450 * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
7451 * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
7452 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
7454 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
7456 * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
7458 * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
7460 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
7461 Likewise. Fix argument types.
7462 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
7463 Likewise. Fix argument types.
7464 * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
7466 * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
7467 ElfW(Rel) in argument.
7468 * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
7471 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
7473 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
7475 2001-08-24 Andreas Jaeger <aj@suse.de>
7477 * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
7478 Stephen L Moshier <moshier@mediaone.net>.
7480 2001-08-24 Ulrich Drepper <drepper@redhat.com>
7482 * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
7483 first if RELCOUNT is set.
7485 * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
7486 call elf_machine_rel for the last DT_RELCOUNT relocations but instead
7487 elf_machine_rel_relative.
7488 * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
7489 Minor optimizations.
7490 * sysdeps/arm/dl-machine.h: Likewise.
7491 * sysdeps/cris/dl-machine.h: Likewise.
7492 * sysdeps/hppa/dl-machine.h: Likewise.
7493 * sysdeps/i386/dl-machine.h: Likewise.
7494 * sysdeps/ia64/dl-machine.h: Likewise.
7495 * sysdeps/m68k/dl-machine.h: Likewise.
7496 * sysdeps/mips/dl-machine.h: Likewise.
7497 * sysdeps/powerpc/dl-machine.h: Likewise.
7498 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7499 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7500 * sysdeps/sh/dl-machine.h: Likewise.
7501 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
7502 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
7504 2001-08-23 Roland McGrath <roland@frob.com>
7506 * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
7508 * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
7509 sysdeps/mach version. Implement counting ("recursive") mutexes
7510 on top of cthreads mutexes.
7511 * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
7513 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
7514 _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
7515 (__libc_cleanup_region_start, __libc_cleanup_region_end,
7516 __libc_clean_end): Define these to call the cleanup function after
7517 normal exit when they're supposed to.
7519 * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
7520 Take new first arg DOIT, a boolean saying whether to really install
7521 any cleanup handler.
7522 (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
7523 (__libc_cleanup_end): Likewise.
7524 * sysdeps/generic/bits/libc-lock.h: Same changes.
7525 * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
7526 * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
7527 * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
7529 * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
7530 * sysdeps/generic/bits/stdio-lock.h
7531 (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
7533 2001-08-23 Jakub Jelinek <jakub@redhat.com>
7535 * elf/ldconfig.c (search_dir): Remove stale symlinks.
7537 2001-08-23 Jakub Jelinek <jakub@redhat.com>
7539 * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
7540 (_dl_lookup_symbol): Lookup relocations in cache and store successfull
7542 (_dl_lookup_versioned_symbol): Likewise.
7543 * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
7545 * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
7546 * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
7547 (lookup_cache, lookup_cache_versioned): Add declarations.
7549 2001-08-23 Ulrich Drepper <drepper@redhat.com>
7551 * stdlib/tst-random.c (main): Swap parameters in fail call.
7552 Patch by Pete Bevin <pete@petebevin.com>.
7554 2001-08-23 Jakub Jelinek <jakub@redhat.com>
7556 * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
7558 2001-08-23 Ulrich Drepper <drepper@redhat.com>
7560 * malloc/obstack.c: Indent preprocessor directives.
7561 Patch by Jim Meyering <meyering@ascend.com>.
7563 * po/ja.po: Update from translation team.
7565 2001-08-23 Roland McGrath <roland@frob.com>
7567 * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
7569 * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
7570 Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
7572 2001-08-22 Roland McGrath <roland@frob.com>
7574 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
7575 __libc_lock_define_recursive.
7576 * elf/dl-open.c: Don't declare it here any more.
7577 * elf/dl-close.c: Likewise.
7578 * elf/dl-lookup.c: Likewise.
7579 * elf/dl-iteratephdr.c: Likewise.
7580 * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
7581 __libc_lock_unlock_recursive.
7582 * elf/dl-close.c (_dl_close): Likewise
7583 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
7584 * elf/dl-open.c (_dl_open): Likewise
7586 * sysdeps/generic/bits/libc-lock.h
7587 (__libc_lock_define_recursive): New macro.
7588 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
7589 (_IO_lock_lock): Use __libc_lock_lock_recursive.
7590 (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
7592 * conform/conformtest.pl (checknamespace): Sort the output list.
7594 * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
7595 (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
7596 definitions conditional on [__USE_XOPEN].
7598 * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
7599 these unconditionally, not only use [__USE_BSD], so as to match
7600 the sysdeps/unix/sysv/linux files.
7602 2001-08-22 Ulrich Drepper <drepper@redhat.com>
7604 * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
7607 * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
7610 2001-08-22 Roland McGrath <roland@frob.com>
7612 * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
7613 conditionalization of sa_handler/sa_sigaction member types to
7614 match the sysdeps/unix/sysv/linux file.
7616 2001-08-22 Ulrich Drepper <drepper@redhat.com>
7618 * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
7619 symbol sizes a bit better.
7621 * sysdeps/ia64/strncpy.S: Complete rewrite.
7622 Contributed by Jakub Jelinek <jakub@redhat.com>.
7624 * string/stratcliff.c (main): Add strncpy test.
7626 2001-08-22 Roland McGrath <roland@frob.com>
7628 * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
7629 and don't declare unsetenv or _environ directly.
7630 (unsetenv): Return int, not void. Use __environ instead of _environ.
7632 2001-08-01 Mark Kettenis <kettenis@gnu.org>
7634 * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
7635 * sysdeps/unix/bsd/bsd4.4/Versions: New file.
7636 * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
7637 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
7638 test for cmsg struct size.
7640 2001-04-23 Paul Eggert <eggert@twinsun.com>
7642 * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
7643 Rename __argc to ___argc in prototypes to avoid compatibility
7644 problems with systems that reserve the identifier "__argc".
7645 Similarly for __argv.
7647 2001-08-21 Roland McGrath <roland@frob.com>
7649 * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
7651 * mach/Makefile (tests): Removed.
7652 * mach/hello.c: File removed.
7654 2001-08-22 Ulrich Drepper <drepper@redhat.com>
7656 * po/sv.po: Update from translation team.
7658 * stdio-common/vfscanf.c: Fix handling of %l[].
7659 Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
7661 * libio/Makefile (tests): Add tst-sscanf.
7662 * libio/tst-sscanf.c: New file.
7664 * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
7665 * malloc/mtrace.c (tr_where): dli_sname always points to a
7666 non-empty string if != NULL.
7667 Reported by Tim Janik <timj@gtk.org>.
7669 2001-08-22 Jakub Jelinek <jakub@redhat.com>
7671 * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
7672 buf. Free resources on failure.
7673 * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
7674 (makefd_xprt): Likewise.
7675 * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
7676 * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
7677 * sunrpc/auth_unix.c (authunix_create): Likewise.
7679 2001-08-21 Jakub Jelinek <jakub@redhat.com>
7681 * string/strnlen.c: Remove.
7682 * sysdeps/generic/strnlen.c: New file.
7683 * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
7685 2001-08-21 Roland McGrath <roland@frob.com>
7687 * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
7688 as a macro, not an extern inline function.
7690 * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
7691 * Versions.def (libc): Add GLIBC_2.2.5 set.
7692 * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
7693 (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
7695 2001-08-20 Roland McGrath <roland@frob.com>
7697 * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
7698 (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
7700 2001-08-21 Ulrich Drepper <drepper@redhat.com>
7702 * string/bits/string2.h: Remove strnlen optimization here.
7703 * sysdeps/i386/i486/bits/string.h: Add it here.
7705 2001-08-21 Wolfram Gloger <wg@malloc.de>
7707 * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
7709 2001-08-21 Ulrich Drepper <drepper@redhat.com>
7711 * po/gl.po: Update from translation team.
7713 2001-08-20 Ulrich Drepper <drepper@redhat.com>
7715 * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
7716 * misc/err.c (convert_and_print): Likewise.
7718 * malloc/obstack.c (print_and_abort): Use fprintf instead of two
7721 2001-08-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
7723 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
7724 change of the gregset_t type.
7725 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
7727 2001-08-20 kaz Kojima <kkojima@rr.iij4u.or.jp>
7729 * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
7731 2001-08-20 Ulrich Drepper <drepper@redhat.com>
7733 * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
7735 * string/strnlen.c: Fix the implementation. We cannot use memchr.
7737 2001-08-18 Mark Kettenis <kettenis@gnu.org>
7739 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
7740 before calling the cthreads initialization code.
7742 2001-08-20 Ulrich Drepper <drepper@redhat.com>
7744 * argp/argp-help.c: Fix two problems introduced in last change.
7746 * include/dirent.h: Include <dirstream.h> first.
7748 2001-08-19 Ulrich Drepper <drepper@redhat.com>
7750 * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
7752 * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
7753 * sunrpc/xdr_rec.c: Likewise.
7754 * sunrpc/xdr_mem.c: Likewise.
7755 * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
7756 * sunrpc/rpc_cmsg.c: Likewise.
7757 * sunrpc/getrpcport.c (getrpcport): Likewise.
7758 * sunrpc/clnt_simp.c (callrpc): Likewise.
7759 * sunrpc/clnt_gen.c (clnt_create): Likewise.
7760 * string/envz.c: Likewise.
7762 * po/ko.po: Update from translation team.
7764 * argp/argp-help.c: Handle wide oriented stderr stream.
7766 2001-08-18 Ulrich Drepper <drepper@redhat.com>
7768 * sysdeps/generic/strtol.c: Little optimizations. Add some
7771 * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
7773 * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
7774 * wcsmbs/wcwidth.c (wcwdith): Likewise.
7775 * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
7777 * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
7779 * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
7781 * time/time.h (struct timespec): Use __time_t for tv_sec element.
7783 * sysdeps/generic/inttypes.h: Define __wchar_t. Use it instead of
7784 wchar_t for function declarations and defintions.
7786 * misc/sys/select.h: Define __need_time_t before including <time.h>.
7787 Define suseconds_t if it hasn't happened yet.
7789 * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
7791 * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
7793 * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
7796 * conform/data/stddef.h-data: Remove wint_t.
7798 * conform/conformtest.pl: Change namespace test to take #undef
7801 * conform/data/netinet/in.h-data: Fix typo in allow-header line.
7803 * conform/data/sys/socket.h-data: Add sockatmark.
7805 2001-08-17 Ulrich Drepper <drepper@redhat.com>
7807 * io/fts.c: Update from recent BSD source.
7809 2001-08-17 Roland McGrath <roland@frob.com>
7811 * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
7812 * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
7815 2001-08-17 Ulrich Drepper <drepper@redhat.com>
7817 * locale/duplocale.c (__duplocale): Also initialize the special
7820 * conform/data/netdb.h-data: Adjust gai_strerror return type.
7822 2001-08-17 Andreas Jaeger <aj@suse.de>
7824 * misc/getpass.c: Include wchar.h for prototypes.
7825 * malloc/obstack.c: Likewise.
7827 2001-08-17 Ulrich Drepper <drepper@redhat.com>
7829 * sunrpc/svc_simple.c (universal): Use __write instead of write.
7831 * wcsmbs/wcscoll.c: Also define __wcscoll.
7832 * include/wchar.h: Declare __wcscoll.
7834 * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
7835 * libio/vwprintf.c: Likewise.
7836 * libio/wprintf.c: Likewise.
7838 * iconv/gconv_cache.c: Use __munmap instead of munmap.
7840 2001-08-16 Ulrich Drepper <drepper@redhat.com>
7842 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
7844 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
7845 wcslen, and __wcscoll instead of wcscoll.
7847 * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
7849 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
7850 __getuid instead of getuid.
7852 * stdio-common/perror.c (perror): Use __close instead of close.
7853 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
7854 * libio/freopen.c (freopen): Likewise.
7855 * libio/freopen64.c (freopen64): Likewise.
7857 * libio/tst-ungetwc2.c (main): Define str const.
7859 * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
7860 * libio/fwprintf.c: Also define __fwprintf.
7861 * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
7862 * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
7863 * assert/assert-perr.c: Likewise.
7864 * assert/assert.c: Likewise.
7865 * gmon/gmon.c: Likewise.
7866 * inet/rcmd.c: Likewise.
7867 * malloc/obstack.c: Likewise.
7868 * misc/err.c: Likewise.
7869 * misc/error.c: Likewise.
7870 * misc/getpass.c: Likewise.
7871 * posix/getopt.c: Likewise.
7872 * resolv/res_hconf.c: Likewise.
7873 * stdio-common/perror.c: Likewise.
7874 * stdio-common/psignal.c: Likewise.
7875 * stdlib/fmtmsg.c: Likewise.
7876 * sunrpc/auth_unix.c: Likewise.
7877 * sunrpc/clnt_perr.c: Likewise.
7878 * sunrpc/clnt_tcp.c: Likewise.
7879 * sunrpc/clnt_udp.c: Likewise.
7880 * sunrpc/clnt_unix.c: Likewise.
7881 * sunrpc/svc_simple.c: Likewise.
7882 * sunrpc/svc_tcp.c: Likewise.
7883 * sunrpc/svc_udp.c: Likewise.
7884 * sunrpc/svc_unix.c: Likewise.
7885 * sunrpc/xdr.c: Likewise.
7886 * sunrpc/xdr_array.c: Likewise.
7887 * sunrpc/xdr_rec.c: Likewise.
7888 * sunrpc/xdr_ref.c: Likewise.
7889 * sysdeps/generic/wordexp.c: Likewise.
7891 * po/it.po: Update from translation team.
7893 * misc/err.c: Handle wide oriented stderr stream.
7895 2001-08-14 Tom Rix <trix@redhat.com>
7897 * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
7898 * iconv/Makefile: Fix gconv_cache.c CFLAGS.
7900 2001-08-13 Tom Rix <trix@redhat.com>
7902 * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
7903 * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
7906 2001-08-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
7908 * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
7909 Store the access registers to the ucontext structure.
7910 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
7913 * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
7914 Load the access registers from the ucontext structure.
7915 * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
7918 * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
7919 offsets to the new ucontext layout.
7920 * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
7922 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
7923 of the ucontext structure.
7924 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
7926 2001-08-15 Ulrich Drepper <drepper@redhat.com>
7928 * misc/error.c (error): Handle wide oriented stderr stream correctly.
7929 (error_at_line): Likewise.
7931 * stdio-common/perror.c (perror): Implement according to standard.
7932 The stream orientation must not be changed if the stream was not
7933 oriented before the call.
7934 * stdio-common/Makefile (tests): Add tst-perror.
7935 * stdio-common/tst-perror.c: New file.
7938 See ChangeLog.12 for earlier changes.