platform/upstream/glibc.git
22 years ago* resolv/resolv.h (_res): Define macro unconditionally.
Roland McGrath [Fri, 2 Aug 2002 03:37:41 +0000 (03:37 +0000)]
* resolv/resolv.h (_res): Define macro unconditionally.

[! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
* include/resolv.h: ... here.
[USE_TLS && HAVE___THREAD] (_res): #undef it and declare
as a __thread variable.
* resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
a __thread variable instead of a global.
* resolv/res_data.c [_LIBC]: Don't #undef _res.

* include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
time we test it.

* intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.

* malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
decls of memset and memcpy.

* sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
* sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.

* elf/dl-load.c (_dl_map_object_from_fd): Comment fix.

* sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
(__libc_tsd_define): Define using __thread.

* sunrpc/rpc_thread.c: Use __libc_tsd_define.
(__rpc_thread_variables): Use __libc_tsd_get.
(__rpc_thread_destroy): Use __libc_tsd_get instead of calling
__rpc_thread_variables, which might allocate what we're about to free.

* inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
thread-local variable.
* resolv/netdb.h (h_errno): Define macro unconditionally.
[_LIBC] (__set_h_errno): Macro moved to ...
* include/netdb.h: ... here.
[USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
[USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
[! _LIBC_REENTRANT]: #undef h_errno here.

* include/errno.h: Protect from multiple inclusion.

* misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
before defining them, since Linux's <linux/posix_types.h> might have
defined them.

2002-08-01  Roland McGrath  <roland@redhat.com>
2002-07-31  Roland McGrath  <roland@redhat.com>
2002-07-31  Roland McGrath  <roland@redhat.com>

22 years ago* sysdeps/pthread/bits/libc-tsd.h: Include <tls.h>.
Roland McGrath [Fri, 2 Aug 2002 03:32:24 +0000 (03:32 +0000)]
* sysdeps/pthread/bits/libc-tsd.h: Include <tls.h>.

[USE_TLS && HAVE___THREAD]: Just include the sysdeps/generic file,
which does the right thing when __thread support is available.
* descr.h (struct _pthread_descr_struct) [USE_TLS && HAVE___THREAD]:
Omit `p_libc_specific', `p_errnop', `p_errno', `p_h_errnop',
`p_h_errno', `p_resp', and `p_res' members.
* pthread.c (__pthread_initialize_minimal) [USE_TLS && HAVE___THREAD]:
Don't initialize `p_errnop' and `p_h_errnop' members.
(__pthread_reset_main_thread): Likewise.
(__pthread_initialize_manager): Likewise.
* manager.c (__pthread_manager, pthread_handle_create): Likewise.
* pthread.c (pthread_initialize) [USE_TLS && HAVE___THREAD]:
Don't initialize `p_resp' member.
(__pthread_reset_main_thread): Likewise.
* manager.c (pthread_handle_create): Likewise.
* specific.c (libc_internal_tsd_set, libc_internal_tsd_get):
Conditionalize these on [!(USE_TLS && HAVE___THREAD)].
* errno.c [USE_TLS && HAVE___THREAD]
(__h_errno_location, __res_state): Don't define these at all.

* sysdeps/i386/tls.h (INSTALL_DTV): Add parens around arguments!
(INSTALL_NEW_DTV, GET_DTV): Likewise.
* sysdeps/sh/tls.h (INSTALL_DTV, INSTALL_NEW_DTV, GET_DTV): Likewise.

* weaks.c: Don't include <errno.h> here.

2002-08-01  Roland McGrath  <roland@redhat.com>

* sysdeps/i386/tls.h (TLS_DO_MODIFY_LDT): New macro, broken out of
TLS_INIT_TP.
(TLS_DO_SET_THREAD_AREA): New macro, uses thread_set_area syscall.
(TLS_SETUP_GS_SEGMENT): New macro, try one or the other or both.
(TLS_INIT_TP): Use that.

22 years ago2002-08-01 Roland McGrath <roland@redhat.com>
Roland McGrath [Fri, 2 Aug 2002 03:30:17 +0000 (03:30 +0000)]
2002-08-01  Roland McGrath  <roland@redhat.com>

* sysdeps/i386/tls.h (TLS_DO_MODIFY_LDT): New macro, broken out of
TLS_INIT_TP.
(TLS_DO_SET_THREAD_AREA): New macro, uses thread_set_area syscall.
(TLS_SETUP_GS_SEGMENT): New macro, try one or the other or both.
(TLS_INIT_TP): Use that.

22 years agoUpdate.
Ulrich Drepper [Fri, 2 Aug 2002 01:43:32 +0000 (01:43 +0000)]
Update.

2002-08-02  Jakub Jelinek  <jakub@redhat.com>

* malloc/malloc.c (public_cALLOc): Check for overflow on
multiplication.
* sunrpc/xdr_array.c (xdr_array): Likewise.
* sunrpc/rpc/types.h (mem_free): Add comment.
Patch by Solar Designer <solar@openwall.com>.

2002-08-02  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/unix/sysv/linux/kernel-features.h
(__ASSUME_SET_THREAD_AREA_SYSCALL): Define.

* libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
* libio/Makefile (headers): Add bits/sys_errlist.h to the list.
* sysdeps/generic/bits/sys_errlist.h: New file.  This does *not*
declare sys_errlist and sys_nerr.
* sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file.  Does

22 years ago(xdr_array): Check for overflow on multiplication.
Ulrich Drepper [Fri, 2 Aug 2002 01:33:11 +0000 (01:33 +0000)]
(xdr_array): Check for overflow on multiplication.

22 years ago* libio/fileops.c (_IO_file_sync_mmap): New function.
Roland McGrath [Fri, 2 Aug 2002 01:29:37 +0000 (01:29 +0000)]
* libio/fileops.c (_IO_file_sync_mmap): New function.

(_IO_file_jumps_mmap): Use it.
(_IO_file_underflow_mmap): Rewritten.  If after EOF or fflush,
repeat the stat check and resize the mapped buffer as necessary.

2002-07-31  Roland McGrath  <roland@frob.com>

* libio/fileops.c (decide_maybe_mmap): New static function.
Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
mmap the file contents.  Then switch the jump tables to the mmap
tables if it worked, or the vanilla file tables if not.
(_IO_file_underflow_maybe_mmap): New function.
(_IO_file_seekoff_maybe_mmap): New function.
(_IO_file_xsgetn_maybe_mmap): New function.
(_IO_file_jumps_maybe_mmap): New variable, jump table using those.
* libio/libioP.h: Declare those.
* libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
(_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
* libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
If the stream is read-only, set its jump tables to those new ones.
* libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
We need the tables set before _IO_file_attach.

* libio/tst-mmap-eofsync.c: New file.
* libio/tst-mmap-fflushsync.c: New file.
* libio/bug-mmap-fflush.c: New file.
* libio/tst-mmap2-eofsync.c: New file.
* libio/Makefile (tests): Add them.

* libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
_IO_file_underflow_mmap fails, it already set the appropriate bit.

22 years ago2002-07-31 Roland McGrath <roland@frob.com>
Roland McGrath [Fri, 2 Aug 2002 01:27:53 +0000 (01:27 +0000)]
2002-07-31  Roland McGrath  <roland@frob.com>

* libio/fileops.c (decide_maybe_mmap): New static function.
Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
mmap the file contents.  Then switch the jump tables to the mmap
tables if it worked, or the vanilla file tables if not.
(_IO_file_underflow_maybe_mmap): New function.
(_IO_file_seekoff_maybe_mmap): New function.
(_IO_file_xsgetn_maybe_mmap): New function.
(_IO_file_jumps_maybe_mmap): New variable, jump table using those.
* libio/libioP.h: Declare those.
* libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
(_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
* libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
If the stream is read-only, set its jump tables to those new ones.
* libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
We need the tables set before _IO_file_attach.

22 years ago(public_cALLOc): Check for overflow on multiplication.
Ulrich Drepper [Fri, 2 Aug 2002 01:27:46 +0000 (01:27 +0000)]
(public_cALLOc): Check for overflow on multiplication.

22 years ago(DO_MODIFY_LDT): Move from INIT_THREAD_SELF. (INIT_THREAD_SELF): Use sys_thread_area...
Ulrich Drepper [Fri, 2 Aug 2002 01:11:43 +0000 (01:11 +0000)]
(DO_MODIFY_LDT): Move from INIT_THREAD_SELF. (INIT_THREAD_SELF): Use sys_thread_area syscall instead if available. (FREE_THREAD): Avoid modify_ldt if using GDT.

22 years ago2002-07-31 Jeff Bailey <jbailey@gnu.org>
Roland McGrath [Wed, 31 Jul 2002 23:30:24 +0000 (23:30 +0000)]
2002-07-31  Jeff Bailey  <jbailey@gnu.org>

        * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
Declarations moved to <bits/sys_errlist.h>.  Include that file.
        * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
        * sysdeps/generic/bits/sys_errlist.h: New file.  This does *not*
        declare sys_errlist and sys_nerr.
        * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file.  Does
provide declarations.

22 years ago* elf/rtld.c (dl_main): Fix typo in error message.
Roland McGrath [Wed, 31 Jul 2002 23:16:57 +0000 (23:16 +0000)]
* elf/rtld.c (dl_main): Fix typo in error message.

2002-07-31  Roland McGrath  <roland@frob.com>

22 years ago* sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
Roland McGrath [Wed, 31 Jul 2002 23:16:05 +0000 (23:16 +0000)]
* sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,

__xstat -> __xstat64, __lseek -> __libc_lseek64.  Completes 2002-06-09
sysdeps/mach/hurd/dl-sysdep.c change.

22 years ago2002-07-31 Roland McGrath <roland@frob.com>
Roland McGrath [Wed, 31 Jul 2002 23:15:21 +0000 (23:15 +0000)]
2002-07-31  Roland McGrath  <roland@frob.com>

* sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
__xstat -> __xstat64, __lseek -> __libc_lseek64.  Completes 2002-06-09
sysdeps/mach/hurd/dl-sysdep.c change.

22 years agoUpdate.
Ulrich Drepper [Sun, 28 Jul 2002 22:43:25 +0000 (22:43 +0000)]
Update.

* sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
-r`/build/include for kernel headers.

22 years agoUpdate.
Ulrich Drepper [Sun, 28 Jul 2002 19:04:09 +0000 (19:04 +0000)]
Update.

2002-07-28  Ulrich Drepper  <drepper@redhat.com>

* po/fi.po: New file.

22 years agoUpdate.
Ulrich Drepper [Sat, 27 Jul 2002 08:47:23 +0000 (08:47 +0000)]
Update.

2002-07-15  Alexandre Oliva  <aoliva@redhat.com>

* configure.in (static_nss): Set to `yes' if --disable-shared.

2002-07-23  Bruno Haible  <bruno@clisp.org>

* intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
is set.

2002-07-25  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
* sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
arguments.

2002-07-25  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
alias.

2002-07-21  Bruno Haible  <bruno@clisp.org>

* intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
* intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
trans_sysdep_tab_offset.
(struct sysdep_segment): New type.
(struct sysdep_string): New type.
(SEGMENTS_END): New macro.
* intl/gettextP.h (struct sysdep_string_desc): New type.
(struct loaded_domain): New fields malloced, n_sysdep_strings,
orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
orig_tab, trans_tab, hash_tab to const pointers because they point
into read-only memory.
* intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
(PRI*): Define fallback values.
(get_sysdep_segment_value): New function.
(_nl_load_domain): Distinguish major and minor revision parts. Add
support for minor revision 1 with system dependent strings.
(_nl_unload_domain): Also free the 'malloced' field.
* intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
now done in loadmsgcat.c. Add support for system dependent strings.

22 years agoUpdate.
Ulrich Drepper [Sat, 27 Jul 2002 08:28:46 +0000 (08:28 +0000)]
Update.

2002-07-16  Stepan Kasal  <kasal@math.cas.cz>

* posix/bug-regex7.c: New file.
* posix/bug-regex8.c: New file.
* posix/Makefile (tests): Add bug-regex7 and bug-regex8.

2002-07-16  Stepan Kasal  <kasal@math.cas.cz>

* posix/bug-regex4.c (main): Fix typos.
* posix/bug-regex6.c (main): Likewise.

* posix/bug-regex6.c (main): Fix warnings.

* stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is

22 years agoUpdate.
Ulrich Drepper [Sat, 27 Jul 2002 08:20:17 +0000 (08:20 +0000)]
Update.

2002-07-27  Ulrich Drepper  <drepper@redhat.com>

* iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.

* iconv/iconv_prog.c (main): Improve error message for the cases
where -t and/or -f parameter are missing.

2002-07-10  Stepan Kasal  <kasal@math.cas.cz>

* posix/regexec.c (re_match): Reorganize to remove duplicate code.
(re_search): Likewise.
(re_match_2): Likewise.
(re_search_2): Likewise.
(re_search_stub): New function.
(re_search_2_stub): New function.
* regcomp.c (re_compile_pattern): Typo in a comment fixed.

2002-07-10  Isamu Hasegawa  <isamu@yamato.ibm.com>

* posix/regex_internal.h: Add new member STOP to struct re_string_t.
(re_string_eoi): Use STOP instead of LEN.
* posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
(re_string_construct): Likewise.
(re_string_reconstruct): Adjust pstr->stop like pstr->len.
* posix/regexec.c (re_search_internal): Add a new argument STOP
so that it can handle the argument STOP of re_search_2 and re_match_2
correctly.
(regexec): Adapt to new I/F of re_search_internal.
(re_search_stub): Likewise.

22 years agoUpdate.
Ulrich Drepper [Thu, 25 Jul 2002 19:35:04 +0000 (19:35 +0000)]
Update.

* sunrpc/clnt_gen.c: Don't include <sys/errno.h>.

22 years agoUpdate.
Ulrich Drepper [Thu, 25 Jul 2002 08:29:34 +0000 (08:29 +0000)]
Update.

* elf/dl-minimal.c: Remove definition of __assert_perror_fail.

22 years agoUpdate.
Ulrich Drepper [Thu, 25 Jul 2002 08:19:59 +0000 (08:19 +0000)]
Update.

2002-07-25  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
* sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
of __divdi3.

* sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
* sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
* sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
alias for adjtimex syscall.

* elf/dl-minimal.c: Define __assert_fail_internal.
* assert/assert.c: Likewise.
* include/assert.h: Define __assert_file macro if !SHARED and not
NOT_IN_libc.

* iconv/Makefile: Define NOT_IN_libc for objects in standalone
programs.
* locale/Makefile: Likewise.
* nscd/Makefile: Likewise.
* catgets/Makefile: Likewise.

succesful seek call.  Simplify error checking.

22 years agoUpdate.
Ulrich Drepper [Thu, 25 Jul 2002 01:30:57 +0000 (01:30 +0000)]
Update.

2002-07-24  Ulrich Drepper  <drepper@redhat.com>

* libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
compute current position.

* stdio-common/tst-fseek.c (main): Improve error messages.

* libio/tst-freopen.c (main): Remove unused variable.

* libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
succesful seek call.  Simply error checking.

2002-07-25  Jakub Jelinek  <jakub@redhat.com>

* config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
* sysdeps/ia64/fpu/libm_support.h: Likewise.

22 years ago(_IO_file_seekoff_mmap): Set fp->_offset after succesful seek call. Simply error...
Ulrich Drepper [Thu, 25 Jul 2002 00:48:18 +0000 (00:48 +0000)]
(_IO_file_seekoff_mmap): Set fp->_offset after succesful seek call. Simply error checking.

22 years ago* hurd/hurdsig.c (_hurdsig_getenv): Always return null if
Roland McGrath [Wed, 24 Jul 2002 23:05:17 +0000 (23:05 +0000)]
* hurd/hurdsig.c (_hurdsig_getenv): Always return null if

__libc_enable_secure is set.

22 years agoAdded <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
Roland McGrath [Wed, 24 Jul 2002 22:56:44 +0000 (22:56 +0000)]
Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.

This implementation supports only IPv4.
* inet/ifaddrs.h: New file.
* sysdeps/generic/ifaddrs.c: New file.
* sysdeps/gnu/ifaddrs.c: New file.
* inet/test-ifaddrs.c: New file.
* inet/Makefile (routines): Add ifaddrs.
(headers): Add ifaddrs.h here.
(tests): Add test-ifaddrs.
* inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.

* resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
socket call to get an AF_INET socket, instead of using __opensock.
The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.

* sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
if not -1 use it instead of calling __opensock.
* sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
* sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
* resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.

* sysdeps/mach/hurd/ifreq.h: New file.
* sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
* sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
* resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.

22 years ago* libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
Roland McGrath [Wed, 24 Jul 2002 22:54:53 +0000 (22:54 +0000)]
* libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,

which gets moved around.  Calculate size of mmap'd buffer instead.

22 years agoCosmetic edits.
Roland McGrath [Wed, 24 Jul 2002 19:26:31 +0000 (19:26 +0000)]
Cosmetic edits.

22 years agoUpdate.
Ulrich Drepper [Wed, 24 Jul 2002 17:39:23 +0000 (17:39 +0000)]
Update.

2002-07-24  Philip Blundell  <philb@gnu.org>

* sysdeps/unix/arm/brk.S: Improve schedule.
* sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
efficient instruction.
(__socket): Optimize return sequence.

* locale/hashval.h: Make more self-contained by defining LONG_BITS.

22 years agoUpdate.
Ulrich Drepper [Wed, 24 Jul 2002 11:51:16 +0000 (11:51 +0000)]
Update.

2002-07-24  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
sockets on old kernels.

22 years agoUpdate.
Ulrich Drepper [Wed, 24 Jul 2002 11:18:48 +0000 (11:18 +0000)]
Update.

2002-07-22  Philip Blundell  <philb@gnu.org>

* sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
alias.

22 years agoUpdate.
Ulrich Drepper [Wed, 24 Jul 2002 10:44:53 +0000 (10:44 +0000)]
Update.

2002-07-24  Ulrich Drepper  <drepper@redhat.com>

* locale/hashval.h: Make more self-containedby defining LONG_BITS.
* locale/programs/simple-hash.c: Remove LONG_BITS definition.

* locale/programs/locarchive.c (add_locale_to_archive): Correct
test to detect duplicate locales.

* libio/fileops.c (_IO_new_file_seekoff): Fail if relative
position would be before beginning of file.
(_IO_file_seekoff_mmap): Likewise.
* libio/Makefile (tests): Add bug-fseek.
* libio/bug-fseek.c: New file.

* intl/explodename.c: Remove support for CEN-style locale variables.
It was never used and shouldn't be since it's not portable.
* intl/finddomain.c: Likewise.
* intl/l10nflist.c: Likewise.
* intl/loadinfo.h: Likewise.
* locale/findlocale.c: Likewise.

22 years agoRemove support for CEN-style locale variables. It was never used and shouldn't be...
Ulrich Drepper [Wed, 24 Jul 2002 10:07:08 +0000 (10:07 +0000)]
Remove support for CEN-style locale variables. It was never used and shouldn't be since it's not portable.

22 years ago* libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
Roland McGrath [Wed, 24 Jul 2002 09:35:24 +0000 (09:35 +0000)]
* libio/fileops.c (_IO_file_seekoff_mmap): When just examining the

position, calculate it to take into account an active pushback buffer.

* libio/Makefile (tests): Add bug-ungetc.
* libio/bug-ungetc.c: New file.

22 years ago2002-07-24 Roland McGrath <roland@frob.com>
Roland McGrath [Wed, 24 Jul 2002 09:34:59 +0000 (09:34 +0000)]
2002-07-24  Roland McGrath  <roland@frob.com>

* libio/Makefile (tests): Add bug-ungetc.
* libio/bug-ungetc.c: New file.

22 years agoMoved to misc/sys.
Ulrich Drepper [Tue, 23 Jul 2002 23:19:44 +0000 (23:19 +0000)]
Moved to misc/sys.

22 years agoUpdate.
Ulrich Drepper [Tue, 23 Jul 2002 23:12:01 +0000 (23:12 +0000)]
Update.

2002-07-23  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/generic/libc-tls.c: New file.
* csu/Makefile (routines): Add libc-tls.
(static-only-routines): Add libc-tls.
* elf/dl-support.c (_dl_phdr): New variable.
(_dl_phnum): New variable.
(_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
* sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
for !SHARED.  First look through auxiliary vector.  If TLS always
call __pthread_initialize_minimal.

* sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
in mmap call is never zero.

22 years ago(_dl_phdr): New variable. (_dl_phnum): New variable. (_dl_aux_init): Initialize _dl_p...
Ulrich Drepper [Tue, 23 Jul 2002 22:59:19 +0000 (22:59 +0000)]
(_dl_phdr): New variable. (_dl_phnum): New variable. (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.

22 years agoFix whitespace.
Andreas Jaeger [Tue, 23 Jul 2002 19:36:49 +0000 (19:36 +0000)]
Fix whitespace.

22 years agoUpdate.
Andreas Jaeger [Tue, 23 Jul 2002 19:36:35 +0000 (19:36 +0000)]
Update.

2002-07-23  Andreas Jaeger  <aj@suse.de>

* sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
* sysdeps/x86_64/fpu/s_copysignf.S: Likewise.

22 years agoUse optimized version.
Andreas Jaeger [Tue, 23 Jul 2002 19:36:20 +0000 (19:36 +0000)]
Use optimized version.

22 years agoUpdate.
Ulrich Drepper [Tue, 23 Jul 2002 00:37:27 +0000 (00:37 +0000)]
Update.

2002-07-22  Ulrich Drepper  <drepper@redhat.com>

* Makefile: Actually creat tst-signal.out file when running the test.

22 years agopdate.
Ulrich Drepper [Tue, 23 Jul 2002 00:31:41 +0000 (00:31 +0000)]
pdate.

* libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
creation and removal of the temp file.

22 years agoUpdate.
Ulrich Drepper [Mon, 22 Jul 2002 22:25:20 +0000 (22:25 +0000)]
Update.

2002-07-22  Ulrich Drepper  <drepper@redhat.com>

* libio/bug-rewind.c: Use test skeleton.  Use create_temp_file for
file creation.
* test-skeleton.c (create_temp_file): New function.

22 years ago(create_temp_file): New function.
Ulrich Drepper [Mon, 22 Jul 2002 22:18:27 +0000 (22:18 +0000)]
(create_temp_file): New function.

22 years agoUpdate.
Andreas Jaeger [Mon, 22 Jul 2002 11:21:37 +0000 (11:21 +0000)]
Update.

2002-07-22  Andreas Jaeger  <aj@suse.de>

* sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
local label.

22 years ago(elf_machine_load_address): Use local label.
Andreas Jaeger [Mon, 22 Jul 2002 11:21:26 +0000 (11:21 +0000)]
(elf_machine_load_address): Use local label.

22 years ago* wcsmbs/Makefile (strtox-CFLAGS): New variable,
Roland McGrath [Mon, 22 Jul 2002 04:39:52 +0000 (04:39 +0000)]
* wcsmbs/Makefile (strtox-CFLAGS): New variable,

put -I../include before -I../stdlib so we get the right errno.h et al.
(CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
(CFLAGS-wcstof.c): Likewise.
(CFLAGS-wcstold.c): Likewise.
(CFLAGS-wcstod_l.c): Likewise.
(CFLAGS-wcstof_l.c): Likewise.
(CFLAGS-wcstold_l.c): Likewise.

22 years ago* sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
Roland McGrath [Mon, 22 Jul 2002 03:54:50 +0000 (03:54 +0000)]
* sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.

22 years ago2002-07-19 Roland McGrath <roland@frob.com>
Roland McGrath [Mon, 22 Jul 2002 03:54:21 +0000 (03:54 +0000)]
2002-07-19  Roland McGrath  <roland@frob.com>

* sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.

22 years ago(Hooks for Malloc): Correct order of arguments for __memalign_hook.
Ulrich Drepper [Mon, 22 Jul 2002 00:57:09 +0000 (00:57 +0000)]
(Hooks for Malloc): Correct order of arguments for __memalign_hook.

22 years agoUpdate.
Ulrich Drepper [Sat, 20 Jul 2002 17:31:30 +0000 (17:31 +0000)]
Update.

* sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
__ASSUME_AT_XID is defined.
* sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
for 2.4.1 and up.
* sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
of AT_UID, AT_EUID, AT_GID, and AT_EGID.

22 years agoUpdate.
Ulrich Drepper [Sat, 20 Jul 2002 16:19:49 +0000 (16:19 +0000)]
Update.

2002-07-20  Ulrich Drepper  <drepper@redhat.com>

* wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
(CFLAGS-wcstof.c): Likewise.
(CFLAGS-wcstold.c): Likewise.
(CFLAGS-wcstod_l.c): Likewise.
(CFLAGS-wcstof_l.c): Likewise.
(CFLAGS-wcstold_l.c): Likewise.

22 years agoUpdate.
Ulrich Drepper [Sat, 20 Jul 2002 04:01:22 +0000 (04:01 +0000)]
Update.

2002-07-18  Jakub Jelinek  <jakub@redhat.com>

* resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
__priority_which_t): Always typedef to int for C++.

22 years agoUpdate.
Ulrich Drepper [Sat, 20 Jul 2002 01:14:41 +0000 (01:14 +0000)]
Update.

2002-07-19  Ulrich Drepper  <drepper@redhat.com>

* configure.in: Add test for __thread support in compiler.
* config.h.in: Add HAVE___THREAD.
* Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
* include/sys/errno.h: Moved to...
* stdlib/sys/errno.h: ...here.  New file.
* stdlib/errno.h: New file.  Moved from...
* include/errno.h: ...here.  Changed into an internal header defining
libc-local things like __set_errno.
* stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
bits/errno.h.
* elf/dl-minimal.c: Include <tls.h>.  Define errno as thread-local
variable if USE_TLS && HAVE___THREAD.  Don't define __errno_location
either.
* elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
from...
(_dl_start_final): ...here.  Add code to initialize tls elements from
bootstrap_map.
* sysdeps/generic/errno-loc.c: Define errno as thread-local variable
if USE_TLS && HAVE___THREAD.
* sysdeps/generic/bits/errno.h: Remove __set_errno definition.
* sysdeps/mach/hurd/bits/errno.h: Likewise.
* sysdeps/standalone/arm/bits/errno.h: Likewise.
* sysdeps/standalone/bits/errno.h: Likewise.
* sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
* sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
* sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
* sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
* sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
* sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
* sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
* sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
use GL(dl_rtld_map), use map parameter.
* sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
* sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
USE_TLS && HAVE___THREAD.
* sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
definitions.  If USE_TLS && HAVE___THREAD store errooor value using
TLS code sequence.
* sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.

* sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
* sysdeps/unix/sysv/linux/grantpt.c: Likewise.
* sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
* sysdeps/unix/sysv/linux/msgctl.c: Likewise.
* sysdeps/unix/sysv/linux/readv.c: Likewise.
* sysdeps/unix/sysv/linux/writev.c: Likewise.

22 years agoUpdate.
Ulrich Drepper [Wed, 17 Jul 2002 23:44:03 +0000 (23:44 +0000)]
Update.

2002-07-17  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
MS_INVALIDATE values.

22 years agoUpdate.
Ulrich Drepper [Wed, 17 Jul 2002 20:44:55 +0000 (20:44 +0000)]
Update.

2002-07-17  Andreas Schwab  <schwab@suse.de>
    Ulrich Drepper  <drepper@redhat.com>

* sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
* sysdeps/unix/sysv/linux/pwrite.c: Likewise.
* sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
* sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.

22 years agoUpdate.
Ulrich Drepper [Wed, 17 Jul 2002 00:34:35 +0000 (00:34 +0000)]
Update.

2002-07-01  H.J. Lu  <hjl@gnu.org>

* elf/circleload1.c (load_dso): Call "circlemod1" and check
return value.

* elf/circlemod1.c (circlemod1): Return int.
* elf/circlemod2.c (circlemod2): Likewise.
* elf/circlemod2a.c (circlemod2): Likewise.
* elf/circlemod3.c (circlemod3): Likewise.
(circlemod3a): A new function.

22 years agoUpdate.
Ulrich Drepper [Wed, 17 Jul 2002 00:03:55 +0000 (00:03 +0000)]
Update.

* catgets/tst-catgets.c (main): Don't expect results for
untranslated messages.

* math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
(CPPFLAGS-test-idouble.c): Likewise.
(CPPFLAGS-test-ildouble.c): Likewise.

22 years agoUpdate.
Ulrich Drepper [Tue, 16 Jul 2002 20:18:42 +0000 (20:18 +0000)]
Update.

2002-07-16  Ulrich Drepper  <drepper@redhat.com>

* locales/th_TH: Change tel_dom_fmt.
Patch by Theppitak Karoonboonyanan <thep@links.nectec.or.th>.

22 years agoUpdate.
Ulrich Drepper [Tue, 16 Jul 2002 18:15:34 +0000 (18:15 +0000)]
Update.

2002-07-16  Ulrich Drepper  <drepper@redhat.com>

* glibcbug.in: Fix little typo.  Remove STDIO.

* config.h.in: Fail if __FAST_MATH__ is defined.

22 years agoUpdate.
Ulrich Drepper [Tue, 16 Jul 2002 04:56:00 +0000 (04:56 +0000)]
Update.

2002-07-15  Ulrich Drepper  <drepper@redhat.com>

* intl/tst-gettext.sh: Pass -f option to msgfmt.
* intl/tst-gettext.c: Correctly handle untranslated messages in
positive tests.

* po/de.po: Update from translation team.

22 years agoUpdate.
Ulrich Drepper [Tue, 16 Jul 2002 01:02:04 +0000 (01:02 +0000)]
Update.

2002-07-02  H.J. Lu  <hjl@gnu.org>

* sysdeps/mips/atomicity.h: Don't include <sgidefs.h>.  Always
use ll/sc.
* sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.

* sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
to 2.4.0 for mips.

TLS fail if USE_TLS is not defined.

22 years agoUpdate.
Ulrich Drepper [Tue, 16 Jul 2002 00:18:20 +0000 (00:18 +0000)]
Update.

* elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
TLS fail is USE_TLS is not defined.

22 years agoUpdate.
Ulrich Drepper [Mon, 15 Jul 2002 23:37:22 +0000 (23:37 +0000)]
Update.

2002-07-15  Ulrich Drepper  <drepper@redhat.com>

* libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
and adjust state for seek position.  [PR libc/4070]
* libio/Makefile (tests): Add bug-rewind.
* libio/bug-rewind.c: New file.

22 years agoUpdate.
Ulrich Drepper [Mon, 15 Jul 2002 03:58:49 +0000 (03:58 +0000)]
Update.

2002-07-12  Philip Blundell  <philb@gnu.org>

* sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
(__backtrace): Use it.
* sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define.  [PR libc/2632]

2002-07-12  Philip Blundell  <philb@gnu.org>

* sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
(elf_machine_rela): Remove unused variable.

* sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
(sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
define.

2002-07-12  Ulrich Drepper  <drepper@redhat.com>

* iconvdata/gconv-modules: Add aliases for ISO-8859-11.

22 years agoUpdate.
Ulrich Drepper [Mon, 15 Jul 2002 02:05:23 +0000 (02:05 +0000)]
Update.

2002-07-14  Ulrich Drepper  <drepper@redhat.com>

* manager.c (pthread_handle_create): Initialize self-reference in
descriptor.

22 years ago(pthread_handle_create): Initialize self-reference in descriptor.
Ulrich Drepper [Mon, 15 Jul 2002 02:02:58 +0000 (02:02 +0000)]
(pthread_handle_create): Initialize self-reference in descriptor.

22 years agoUpdate.
Andreas Jaeger [Sun, 14 Jul 2002 09:39:23 +0000 (09:39 +0000)]
Update.

2002-07-14  Andreas Jaeger  <aj@suse.de>

* sysdeps/x86_64/bits/link.h: Add biarch support.

22 years agoUpdate.
Andreas Jaeger [Fri, 12 Jul 2002 23:26:06 +0000 (23:26 +0000)]
Update.

2002-07-13  Andreas Jaeger  <aj@suse.de>

* sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
Use correct indices.
Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.

22 years ago* sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
Andreas Jaeger [Fri, 12 Jul 2002 23:25:56 +0000 (23:25 +0000)]
* sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):

Use correct indices.
Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.

22 years agoAdd aliases for ISO-8859-11.
Ulrich Drepper [Fri, 12 Jul 2002 16:25:10 +0000 (16:25 +0000)]
Add aliases for ISO-8859-11.

22 years agoUpdate.
Ulrich Drepper [Thu, 11 Jul 2002 21:44:15 +0000 (21:44 +0000)]
Update.

2002-07-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>

* sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
* sysdeps/s390/s390-32/bits/byteswap.h: Remove.
* sysdeps/s390/s390-64/bits/byteswap.h: Remove.
* sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
* sysdeps/s390/s390-32/bits/link.h: Remove.
* sysdeps/s390/s390-64/bits/link.h: Remove.
* sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
* sysdeps/s390/s390-32/bits/setjmp.h: Remove.
* sysdeps/s390/s390-64/bits/setjmp.h: Remove.
* sysdeps/s390/bits/wordsize.h: New file.
* sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
elfclass.h.
* sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
* sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
* sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
* sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
* sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
* sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
* sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
* sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
* sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
* sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
* ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
* sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
resource.h.
* sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
* sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
* sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
* sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
* sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
* sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
* sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
sigaction.h.
* sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
* sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
siginfo.h.
* sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
* sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
* sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
socket.h.
* sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
* sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
* sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
* sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
* sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
* sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
* sysdeps/unix/sysv/linux/s390/net/route.h: New file.
* sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
procfs.h.
* sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
* sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
* sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
ucontext.h.
* sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
* sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.

22 years agoUpdate.
Ulrich Drepper [Thu, 11 Jul 2002 16:34:20 +0000 (16:34 +0000)]
Update.

2002-07-11  Ulrich Drepper  <drepper@redhat.com>

* Versions.def (libc): Add GLIBC_2.3.
* stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
* stdlib/canonicalize.c: Add compatibility version for realpath
and make new code available in GLIBC_2.3.

22 years agoUpdate.
Ulrich Drepper [Thu, 11 Jul 2002 15:46:17 +0000 (15:46 +0000)]
Update.

2002-07-06  Bruno Haible  <bruno@clisp.org>

* malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.

22 years agoUpdate.
Ulrich Drepper [Thu, 11 Jul 2002 09:19:25 +0000 (09:19 +0000)]
Update.

* resolv/res_hconf.c (_res_hconf_init): Move code into new
function do_init.  Use __libc_once.
(do_init): New function.

22 years agoUpdate.
Ulrich Drepper [Thu, 11 Jul 2002 08:56:09 +0000 (08:56 +0000)]
Update.

* iconvdata/iso8859-11.h: Removed.
* iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
(distribute): Remove iso8859-11.h.
* iconvdata/tst-tables.sh: Add ISO-8859-11.

22 years agoUpdate.
Ulrich Drepper [Thu, 11 Jul 2002 08:33:33 +0000 (08:33 +0000)]
Update.

2002-07-11  Ulrich Drepper  <drepper@redhat.com>

* stdio-common/vfscanf.c (inchar): Restore errno from previous
underflow operation if c == (W)EOF.

22 years agoUpdate.
Ulrich Drepper [Thu, 11 Jul 2002 05:55:13 +0000 (05:55 +0000)]
Update.

2002-07-03  Jakub Jelinek  <jakub@redhat.com>

* stdio-common/printf_fp.c (__printf_fp.c): If _FPIO_CONST_SHIFT is
non-zero, adjust exponent.
* sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
Remove NO_LONG_DOUBLE aliases.
* sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
* sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
(__log1pl): Raise divide by zero and invalid exceptions when needed.
* sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
1**y and -1**+-Inf.
* sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
Fix BITS_PER_MP_LIMB 32 extraction.
* sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
exceptions for qNaNs.
* sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
* sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
Raise exceptions when needed.  Don't recurse unnecessarily.
Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
* sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
exceptions for qNaNs.
* sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
to fix *quo return value sign.
* sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
case -Inf argument.
* soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.

2002-07-01  Jakub Jelinek  <jakub@redhat.com>

* libio/tst-eof.c (do_test): Remove unused ch and tm variables.
* iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
-DNDEBUG.

22 years agoUpdate.
Ulrich Drepper [Thu, 11 Jul 2002 02:59:49 +0000 (02:59 +0000)]
Update.

* malloc/hooks.c (realloc_check): If mremap succeeds actually use
the result.

* sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
output parameter.  Reported by Denis Zaitsev <zzz@cd-club.ru>.

* Versions.def (libthread_db): Add GLIBC_2.3.

2002-07-09  Jakub Jelinek  <jakub@redhat.com>

* libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
new stream if possible.
* libio/freopen64.c (freopen64): Likewise.
* libio/Makefile (tests): Add tst-freopen.
* libio/tst-freopen.c: New file.

2002-07-03  Jakub Jelinek  <jakub@redhat.com>

* libio/stdio.h (obstack_printf): Add format attribute.
(obstack_vprintf): Likewise.

2002-07-04  Jakub Jelinek  <jakub@redhat.com>

* posix/regex_internal.h (re_token_t): Shrink the structure to 8
resp. 16 bytes on 32-bit resp. 64-bit platforms.
(re_charset_t, re_string_t): Reorder structure members for 64-bit
architectures.

2002-07-04  Jakub Jelinek  <jakub@redhat.com>

* posix/regcomp.c (re_compile_internal): Move clearing of dfa...
(init_dfa): ...here.

2002-07-05  Isamu Hasegawa  <isamu@yamato.ibm.com>

* posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
nodes in parse trees.
(calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
(calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
nodes which can epsilon transit.
* posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
to IS_EPSILON_NODE macro.
* posix/regexec.c (update_regs): New function to update registers
by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
(proceed_next_node): Use the entities of the nodes to determine
whether the node can transit to.
(set_regs): Use update_regs function to update registers.

2002-07-03  Jakub Jelinek  <jakub@redhat.com>

* posix/bug-regex4.c (main): Remove duplicate setlocale.
* posix/bug-regex6.c: New file.
* posix/Makefile (tests): Add bug-regex6.
(bug-regex6-ENV): Set LOCPATH.

2002-07-10  Ulrich Drepper  <drepper@redhat.com>

22 years agoUpdate.
Ulrich Drepper [Wed, 10 Jul 2002 23:09:16 +0000 (23:09 +0000)]
Update.

2002-07-10  Ulrich Drepper  <drepper@redhat.com>
* Versions.def [libpthread]: Add GLIBC_2.2.6.
* posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.

2002-07-06  Bruno Haible  <bruno@clisp.org>

* sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
* sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.

22 years agoUpdate.
Ulrich Drepper [Wed, 10 Jul 2002 20:50:46 +0000 (20:50 +0000)]
Update.

* bug-sleep.c: New file.
* Makefile (tests): Add bug-sleep.

22 years agoUpdate.
Ulrich Drepper [Wed, 10 Jul 2002 20:43:48 +0000 (20:43 +0000)]
Update.

2002-07-10  Ulrich Drepper  <drepper@redhat.com>

* wrapsyscall.c: Add __nanosleep alias.
* Versions (GLIBC_2.2.6): Add __nanosleep.

22 years agoWrong approach.
Ulrich Drepper [Wed, 10 Jul 2002 20:22:09 +0000 (20:22 +0000)]
Wrong approach.

22 years agoUpdate.
Andreas Jaeger [Tue, 9 Jul 2002 06:33:59 +0000 (06:33 +0000)]
Update.

2002-07-08  H.J. Lu  <hjl@gnu.org>

* sysdeps/unix/sysv/linux/mips/sys/shm.h: New.

22 years agoUpdate.
Andreas Jaeger [Mon, 8 Jul 2002 17:17:36 +0000 (17:17 +0000)]
Update.

* include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
declarations.

22 years agoUpdate.
Andreas Jaeger [Mon, 8 Jul 2002 17:15:20 +0000 (17:15 +0000)]
Update.

2002-07-06  Bruno Haible  <bruno@clisp.org>

* sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.

* rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.

* sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
not _UTSNAME_H.
* sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.

* sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
* sysdeps/generic/bits/ustat.h: Likewise.

* sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to
2048.

22 years agoUpdate.
Andreas Jaeger [Mon, 8 Jul 2002 13:05:58 +0000 (13:05 +0000)]
Update.

* sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.

2002-07-08  Andreas Jaeger  <aj@suse.de>

22 years agoUpdate.
Andreas Jaeger [Mon, 8 Jul 2002 07:42:03 +0000 (07:42 +0000)]
Update.

2002-07-08  Andreas Jaeger  <aj@suse.de>

* sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.

22 years agoUpdate.
Andreas Jaeger [Sat, 6 Jul 2002 15:07:30 +0000 (15:07 +0000)]
Update.

2002-07-06  Andreas Jaeger  <aj@suse.de>

* sysdeps/x86_64/fpu/bits/mathinline.h: New.
* sysdeps/x86_64/fpu/s_copysign.S: New.
* sysdeps/x86_64/fpu/s_copysignf.S: New.
* sysdeps/x86_64/fpu/s_copysignl.S: New.
* sysdeps/x86_64/fpu/s_finitel.S: New.
* sysdeps/x86_64/fpu/s_fmax.S: New.
* sysdeps/x86_64/fpu/s_fmaxf.S: New.
* sysdeps/x86_64/fpu/s_fmaxl.S: New.
* sysdeps/x86_64/fpu/s_fmin.S: New.
* sysdeps/x86_64/fpu/s_fminf.S: New.
* sysdeps/x86_64/fpu/s_fminl.S: New.

22 years agoUpdate.
Andreas Jaeger [Sat, 6 Jul 2002 06:36:39 +0000 (06:36 +0000)]
Update.

2002-06-05  Brian Youmans <3diff@gnu.org>

* sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
* sysdeps/ia64/fpu/e_acosf.S: Likewise.
* sysdeps/ia64/fpu/e_acosl.S: Likewise.
* sysdeps/ia64/fpu/e_asin.S: Likewise.
* sysdeps/ia64/fpu/e_asinf.S: Likewise.
* sysdeps/ia64/fpu/e_asinl.S: Likewise.
* sysdeps/ia64/fpu/e_atan2.S: Likewise.
* sysdeps/ia64/fpu/e_atan2f.S: Likewise.
* sysdeps/ia64/fpu/e_cosh.S: Likewise.
* sysdeps/ia64/fpu/e_coshf.S: Likewise.
* sysdeps/ia64/fpu/e_coshl.S: Likewise.
* sysdeps/ia64/fpu/e_exp.S: Likewise.
* sysdeps/ia64/fpu/e_expf.S: Likewise.
* sysdeps/ia64/fpu/e_fmod.S: Likewise.
* sysdeps/ia64/fpu/e_fmodf.S: Likewise.
* sysdeps/ia64/fpu/e_fmodl.S: Likewise.
* sysdeps/ia64/fpu/e_hypot.S: Likewise.
* sysdeps/ia64/fpu/e_hypotf.S: Likewise.
* sysdeps/ia64/fpu/e_hypotl.S: Likewise.
* sysdeps/ia64/fpu/e_log.S: Likewise.
* sysdeps/ia64/fpu/e_logf.S: Likewise.
* sysdeps/ia64/fpu/e_pow.S: Likewise.
* sysdeps/ia64/fpu/e_powf.S: Likewise.
* sysdeps/ia64/fpu/e_powl.S: Likewise.
* sysdeps/ia64/fpu/e_remainder.S: Likewise.
* sysdeps/ia64/fpu/e_remainderf.S: Likewise.
* sysdeps/ia64/fpu/e_remainderl.S: Likewise.
* sysdeps/ia64/fpu/e_scalb.S: Likewise.
* sysdeps/ia64/fpu/e_scalbf.S: Likewise.
* sysdeps/ia64/fpu/e_scalbl.S: Likewise.
* sysdeps/ia64/fpu/e_sinh.S: Likewise.
* sysdeps/ia64/fpu/e_sinhf.S: Likewise.
* sysdeps/ia64/fpu/e_sinhl.S: Likewise.
* sysdeps/ia64/fpu/e_sqrt.S: Likewise.
* sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
* sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
* sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
* sysdeps/ia64/fpu/libm_error.c: Likewise.
* sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
* sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
* sysdeps/ia64/fpu/s_frexpl.c: Likewise.
* sysdeps/ia64/fpu/s_ilogb.S: Likewise.
* sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
* sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
* sysdeps/ia64/fpu/s_ldexp.S: Likewise.
* sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
* sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
* sysdeps/ia64/fpu/s_log1p.S: Likewise.
* sysdeps/ia64/fpu/s_log1pf.S: Likewise.
* sysdeps/ia64/fpu/s_log1pl.S: Likewise.
* sysdeps/ia64/fpu/s_logb.S: Likewise.
* sysdeps/ia64/fpu/s_logbf.S: Likewise.
* sysdeps/ia64/fpu/s_logbl.S: Likewise.
* sysdeps/ia64/fpu/s_modf.S: Likewise.
* sysdeps/ia64/fpu/s_modff.S: Likewise.
* sysdeps/ia64/fpu/s_modfl.S: Likewise.
* sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
* sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
* sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
* sysdeps/ia64/fpu/s_rint.S: Likewise.
* sysdeps/ia64/fpu/s_rintf.S: Likewise.
* sysdeps/ia64/fpu/s_rintl.S: Likewise.
* sysdeps/ia64/fpu/s_round.S: Likewise.
* sysdeps/ia64/fpu/s_roundf.S: Likewise.
* sysdeps/ia64/fpu/s_roundl.S: Likewise.
* sysdeps/ia64/fpu/s_scalbn.S: Likewise.
* sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
* sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
* sysdeps/ia64/fpu/s_significand.S: Likewise.
* sysdeps/ia64/fpu/s_significandf.S: Likewise.
* sysdeps/ia64/fpu/s_significandl.S: Likewise.
* sysdeps/ia64/fpu/s_tan.S: Likewise.
* sysdeps/ia64/fpu/s_tanf.S: Likewise.
* sysdeps/ia64/fpu/s_tanl.S: Likewise.
* sysdeps/ia64/fpu/s_trunc.S: Likewise.
* sysdeps/ia64/fpu/s_truncf.S: Likewise.
* sysdeps/ia64/fpu/s_truncl.S: Likewise.
* sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
reflect IBM donation of math library to FSF
* sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
* sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
* sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
* sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
* sysdeps/ieee754/dbl-64/e_log.c: Likewise.
* sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
* sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
* sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
* sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
* sysdeps/ieee754/dbl-64/mpa.c: Likewise.
* sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
* sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
* sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
* sysdeps/ieee754/dbl-64/mplog.c: Likewise.
* sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
* sysdeps/ieee754/dbl-64/mptan.c: Likewise.
* sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
* sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
* sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
* sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
* sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
* sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
* sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
* sysdeps/vax/__longjmp.c: Likewise.
* sysdeps/vax/setjmp.c: Likewise.
* libio/filedoalloc.c: Fixed BSD copying permission notice to
remove advertising clause
* sysdeps/vax/htonl.s: Likewise.
* sysdeps/vax/htons.s: Likewise.
* libio/wfiledoalloc.c: Likewise.
* stdlib/random.c: Likewise.
* stdlib/random_r.c: Likewise.
* sysdeps/mach/sys/reboot.h: Likewise.
* inet/getnameinfo.c: Deleted advertising clause from Inner Net License
* sysdeps/posix/getaddrinfo.c: Likewise.
* sunrpc/des_impl.c: Updated license permission notice to Lesser
GPL and corrected pointer to point to the correct license.

22 years agoUpdate.
Andreas Jaeger [Thu, 4 Jul 2002 07:17:16 +0000 (07:17 +0000)]
Update.

2002-07-04  Andreas Jaeger  <aj@suse.de>

* scripts/config.guess: New upstream version.
* scripts/config.sub: Likewise.

22 years agoNew upstream version.
Andreas Jaeger [Thu, 4 Jul 2002 07:15:21 +0000 (07:15 +0000)]
New upstream version.

22 years ago* resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
Andreas Schwab [Tue, 2 Jul 2002 09:37:25 +0000 (09:37 +0000)]
* resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen

in parallel to bumping up the buffer pointer.

22 years ago* resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
Andreas Schwab [Tue, 2 Jul 2002 09:36:44 +0000 (09:36 +0000)]
* resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen

in parallel to bumping up the buffer pointer.

22 years agoUpdate.
Andreas Jaeger [Tue, 2 Jul 2002 09:33:25 +0000 (09:33 +0000)]
Update.

2002-07-01  Jakub Jelinek  <jakub@redhat.com>

* math/libm-test.inc (acos_test): Add missing L suffix for
expected result.
(cpow_test): Likewise.
* sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
error for acos (0.0625).

22 years ago* math/libm-test.inc (acos_test): Add missing L suffix for
Andreas Jaeger [Tue, 2 Jul 2002 09:33:05 +0000 (09:33 +0000)]
* math/libm-test.inc (acos_test): Add missing L suffix for

expected result.
(cpow_test): Likewise.
* sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
error for acos (0.0625).

22 years agoUpdate.
Ulrich Drepper [Sun, 30 Jun 2002 21:45:51 +0000 (21:45 +0000)]
Update.

* locale/iso-639.def: Add entry for Ganda.
* locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
definition.
(address_finish): Handle entries with two letter ISO 639 code.

* iconvdata/Makefile: Recreate gconv-modules.cache file in target
expected result.  Reported by Stephen L Moshier <steve@moshier.net>.

22 years agoUpdate.
Ulrich Drepper [Sun, 30 Jun 2002 19:20:39 +0000 (19:20 +0000)]
Update.

2002-06-30  Ulrich Drepper  <drepper@redhat.com>

* locales/iso14651_t1: Fix U0406 handling (MIN -> CAP).
Patch by Alexander Mikhailian <lowry@altern.org> [PR libc/3566].

22 years agoUpdate.
Ulrich Drepper [Sun, 30 Jun 2002 17:15:19 +0000 (17:15 +0000)]
Update.

* iconvdata/Makefile: Recreate gconv-modules.cache file in taret
directory if it existed before.
* iconv/iconvconfig.c: Implement --prefix option.

22 years agoUpdate.
Ulrich Drepper [Sun, 30 Jun 2002 15:49:29 +0000 (15:49 +0000)]
Update.

2002-06-30  Ulrich Drepper  <drepper@redhat.com>

* math/libm-test.inc (cexp_test): Add missing L suffix for
expected result.  Reported by  Stephen L Moshier <steve@moshier.net>.
* sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
1.25 i).