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