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