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