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