platform/upstream/glibc.git
23 years ago* sysdeps/generic/bits/libc-lock.h: Same changes.
Roland McGrath [Fri, 24 Aug 2001 03:25:40 +0000 (03:25 +0000)]
* sysdeps/generic/bits/libc-lock.h: Same changes.

23 years ago* sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
Roland McGrath [Fri, 24 Aug 2001 03:21:51 +0000 (03:21 +0000)]
* sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from

sysdeps/mach version.  Implement counting ("recursive") mutexes
on top of cthreads mutexes.
* sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.

* sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
_LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
(__libc_cleanup_region_start, __libc_cleanup_region_end,
__libc_clean_end): Define these to call the cleanup function after
normal exit when they're supposed to.

* sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
Take new first arg DOIT, a boolean saying whether to really install
any cleanup handler.
(__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
(__libc_cleanup_end): Likewise.
* stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
* stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
* sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
Likewise.
* misc/syslog.c (vsyslog, openlog, closelog): Likewise.
* sysdeps/generic/bits/stdio-lock.h
(_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.

23 years ago2001-08-23 Roland McGrath <roland@frob.com>
Roland McGrath [Fri, 24 Aug 2001 03:20:56 +0000 (03:20 +0000)]
2001-08-23  Roland McGrath  <roland@frob.com>

* sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
_LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
(__libc_cleanup_region_start, __libc_cleanup_region_end,
__libc_clean_end): Define these to call the cleanup function after
normal exit when they're supposed to.
* sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
Take new first arg DOIT, a boolean saying whether to really install
any cleanup handler.
(__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
(__libc_cleanup_end): Likewise.
* stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
* stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
* sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
Likewise.
* misc/syslog.c (vsyslog, openlog, closelog): Likewise.
* sysdeps/generic/bits/stdio-lock.h
(_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.

23 years ago(print_statistics): Nicer format for cache hit output.
Ulrich Drepper [Thu, 23 Aug 2001 23:40:28 +0000 (23:40 +0000)]
(print_statistics): Nicer format for cache hit output.

23 years agoUpdate.
Ulrich Drepper [Thu, 23 Aug 2001 23:36:47 +0000 (23:36 +0000)]
Update.

2001-08-23  Jakub Jelinek  <jakub@redhat.com>

* elf/ldconfig.c (search_dir): Remove stale symlinks.

2001-08-23  Jakub Jelinek  <jakub@redhat.com>

* elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
(_dl_lookup_symbol): Lookup relocations in cache and store successfull
lookups in cache.
(_dl_lookup_versioned_symbol): Likewise.
* elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
relocation lookup.
* elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
* sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
(lookup_cache, lookup_cache_versioned): Add declarations.

2001-08-23  Ulrich Drepper  <drepper@redhat.com>

* stdlib/tst-random.c (main): Swap parameters in fail call.
Patch by Pete Bevin <pete@petebevin.com>.

2001-08-23  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.

* malloc/obstack.c: Indent preprocessor directives.
Patch by Jim Meyering <meyering@ascend.com>.

23 years agoUpdate.
Ulrich Drepper [Thu, 23 Aug 2001 16:28:34 +0000 (16:28 +0000)]
Update.

2001-08-23  Ulrich Drepper  <drepper@redhat.com>

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

23 years agoUpdate from translation team.
Ulrich Drepper [Thu, 23 Aug 2001 16:26:26 +0000 (16:26 +0000)]
Update from translation team.

23 years ago* libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
Roland McGrath [Thu, 23 Aug 2001 08:36:47 +0000 (08:36 +0000)]
* libio/tst-ungetwc1.c (main): Add a const to quiet a warning.

* nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.

23 years ago* sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
Roland McGrath [Thu, 23 Aug 2001 06:03:42 +0000 (06:03 +0000)]
* sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with

__libc_lock_define_recursive.
* elf/dl-open.c: Don't declare it here any more.
* elf/dl-close.c: Likewise.
* elf/dl-lookup.c: Likewise.
* elf/dl-iteratephdr.c: Likewise.
* elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
__libc_lock_unlock_recursive.
* elf/dl-close.c (_dl_close): Likewise
* elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
* elf/dl-open.c (_dl_open): Likewise

* sysdeps/generic/bits/libc-lock.h
(__libc_lock_define_recursive): New macro.
* sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
(_IO_lock_lock): Use __libc_lock_lock_recursive.
(_IO_lock_unlock): Use __libc_lock_unlock_recursive.

23 years ago* conform/conformtest.pl (checknamespace): Sort the output list.
Roland McGrath [Thu, 23 Aug 2001 04:34:57 +0000 (04:34 +0000)]
* conform/conformtest.pl (checknamespace): Sort the output list.

* sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
(POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
definitions conditional on [__USE_XOPEN].

* sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
these unconditionally, not only use [__USE_BSD], so as to match
the sysdeps/unix/sysv/linux files.

23 years ago2001-08-22 Roland McGrath <roland@frob.com>
Roland McGrath [Thu, 23 Aug 2001 04:34:36 +0000 (04:34 +0000)]
2001-08-22  Roland McGrath  <roland@frob.com>

* conform/conformtest.pl (checknamespace): Sort the output list.

23 years agoUpdate.
Ulrich Drepper [Thu, 23 Aug 2001 04:17:06 +0000 (04:17 +0000)]
Update.

2001-08-22  Ulrich Drepper  <drepper@redhat.com>

* test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
avoid warnings.

* dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
DL_LOOKUP_ADDRESS.

23 years ago(do_test): Get address of ref1 using DL_LOOKUP_ADDRESS.
Ulrich Drepper [Thu, 23 Aug 2001 04:01:56 +0000 (04:01 +0000)]
(do_test): Get address of ref1 using DL_LOOKUP_ADDRESS.

23 years ago* sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
Roland McGrath [Thu, 23 Aug 2001 03:08:40 +0000 (03:08 +0000)]
* sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up

conditionalization of sa_handler/sa_sigaction member types to
match the sysdeps/unix/sysv/linux file.

23 years ago2001-08-22 Roland McGrath <roland@frob.com>
Roland McGrath [Thu, 23 Aug 2001 03:07:50 +0000 (03:07 +0000)]
2001-08-22  Roland McGrath  <roland@frob.com>

* sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
conditionalization of sa_handler/sa_sigaction member types to
match the sysdeps/unix/sysv/linux file.

23 years agoUpdate.
Ulrich Drepper [Thu, 23 Aug 2001 02:46:15 +0000 (02:46 +0000)]
Update.

* elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
symbol sizes a bit better.

23 years agoUpdate.
Ulrich Drepper [Thu, 23 Aug 2001 01:19:02 +0000 (01:19 +0000)]
Update.

* sysdeps/ia64/strncpy.S: Complete rewrite.
Contributed by Jakub Jelinek <jakub@redhat.com>.

23 years agoUpdate.
Ulrich Drepper [Thu, 23 Aug 2001 01:12:31 +0000 (01:12 +0000)]
Update.

2001-08-22  Ulrich Drepper  <drepper@redhat.com>

* string/stratcliff.c (main): Add strncpy test.

23 years ago(main): Add strncpy test.
Ulrich Drepper [Thu, 23 Aug 2001 01:10:57 +0000 (01:10 +0000)]
(main): Add strncpy test.

23 years ago* sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
Roland McGrath [Thu, 23 Aug 2001 00:51:16 +0000 (00:51 +0000)]
* sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,

and don't declare unsetenv or _environ directly.
(unsetenv): Return int, not void.  Use __environ instead of _environ.

23 years ago2001-08-22 Roland McGrath <roland@frob.com>
Roland McGrath [Thu, 23 Aug 2001 00:51:01 +0000 (00:51 +0000)]
2001-08-22  Roland McGrath  <roland@frob.com>

* sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
and don't declare unsetenv or _environ directly.
(unsetenv): Return int, not void.  Use __environ instead of _environ.

23 years agoFix formatting.
Ulrich Drepper [Wed, 22 Aug 2001 23:25:12 +0000 (23:25 +0000)]
Fix formatting.

* posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
Rename __argc to ___argc in prototypes to avoid compatibility
problems with systems that reserve the identifier "__argc".
Similarly for __argv.

23 years ago2001-08-20 Roland McGrath <roland@frob.com>
Roland McGrath [Wed, 22 Aug 2001 23:12:51 +0000 (23:12 +0000)]
2001-08-20  Roland McGrath  <roland@frob.com>

* hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
(__hurd_file_name_split, __hurd_directory_name_split): Likewise.

23 years ago* sysdeps/unix/bsd/bsd4.4/Makefile: New file. * sysdeps/unix/bsd/bsd4.4/Versions...
Mark Kettenis [Wed, 22 Aug 2001 22:29:39 +0000 (22:29 +0000)]
* sysdeps/unix/bsd/bsd4.4/Makefile: New file. * sysdeps/unix/bsd/bsd4.4/Versions: New file. * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file. * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct test for cmsg struct size.

2001-08-01  Mark Kettenis  <kettenis@gnu.org>

* sysdeps/unix/bsd/bsd4.4/Makefile: New file.
* sysdeps/unix/bsd/bsd4.4/Versions: New file.
* sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
* sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
test for cmsg struct size.

23 years ago2001-04-23 Paul Eggert <eggert@twinsun.com>
Roland McGrath [Wed, 22 Aug 2001 22:24:10 +0000 (22:24 +0000)]
2001-04-23  Paul Eggert  <eggert@twinsun.com>

        * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
        Rename __argc to ___argc in prototypes to avoid compatibility
        problems with systems that reserve the identifier "__argc".
        Similarly for __argv.

2001-08-21  Roland McGrath  <roland@frob.com>

* stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.

* mach/Makefile (tests): Removed.
* mach/hello.c: File removed.

23 years ago2001-08-21 Roland McGrath <roland@frob.com>
Roland McGrath [Wed, 22 Aug 2001 22:23:59 +0000 (22:23 +0000)]
2001-08-21  Roland McGrath  <roland@frob.com>

* stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.

23 years agoUpdate.
Ulrich Drepper [Wed, 22 Aug 2001 22:07:52 +0000 (22:07 +0000)]
Update.

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

23 years agoUpdate.
Ulrich Drepper [Wed, 22 Aug 2001 18:40:06 +0000 (18:40 +0000)]
Update.

* libio/Makefile (tests): Add tst-sscanf.
* libio/tst-sscanf.c: New file.

23 years agoUpdate.
Ulrich Drepper [Wed, 22 Aug 2001 18:29:46 +0000 (18:29 +0000)]
Update.

* stdio-common/vfscanf.c: Fix handling of %l[].
Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.

23 years agoFix typo.
Ulrich Drepper [Wed, 22 Aug 2001 18:01:36 +0000 (18:01 +0000)]
Fix typo.

non-empty string if != NULL.

23 years agoUpdate.
Ulrich Drepper [Wed, 22 Aug 2001 17:55:23 +0000 (17:55 +0000)]
Update.

2001-08-22  Ulrich Drepper  <drepper@redhat.com>

* elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
* malloc/mtrace.c (tr_where): dli_sname always points to a
non-empty string is != NULL.
Reported by Tim Janik <timj@gtk.org>.

23 years agoUpdate.
Ulrich Drepper [Wed, 22 Aug 2001 17:00:32 +0000 (17:00 +0000)]
Update.

2001-08-22  Jakub Jelinek  <jakub@redhat.com>

* sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
buf.  Free resources on failure.
* sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
(makefd_xprt): Likewise.
* sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
* sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
* sunrpc/auth_unix.c (authunix_create): Likewise.

2001-08-21  Jakub Jelinek  <jakub@redhat.com>

* string/strnlen.c: Remove.
* sysdeps/generic/strnlen.c: New.
* sysdeps/i386/i486/bits/string.h (strnlen): Remove.

23 years ago(print_and_abort): Explain use of the string.
Ulrich Drepper [Wed, 22 Aug 2001 16:06:53 +0000 (16:06 +0000)]
(print_and_abort): Explain use of the string.

23 years ago* sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
Roland McGrath [Tue, 21 Aug 2001 20:32:34 +0000 (20:32 +0000)]
* sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this

as a macro, not an extern inline function.

* hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
* Versions.def (libc): Add GLIBC_2.2.5 set.
* hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
(__hurd_fail): Use that instead of _EXTERN_INLINE in decl.

2001-08-20  Roland McGrath  <roland@frob.com>

* hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
(__hurd_file_name_split, __hurd_directory_name_split): Likewise.

23 years ago2001-08-21 Roland McGrath <roland@frob.com>
Roland McGrath [Tue, 21 Aug 2001 20:32:21 +0000 (20:32 +0000)]
2001-08-21  Roland McGrath  <roland@frob.com>

* hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
* Versions.def (libc): Add GLIBC_2.2.5 set.
* hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
(__hurd_fail): Use that instead of _EXTERN_INLINE in decl.

23 years agoUpdate.
Ulrich Drepper [Tue, 21 Aug 2001 17:12:43 +0000 (17:12 +0000)]
Update.

* string/bits/string2.h: Remove strnlen optimization here.
* sysdeps/i386/i486/bits/string.h: Add it here.

2001-08-21  Wolfram Gloger  <wg@malloc.de>

* malloc/malloc.c: Make access to ..._hook pointers thread-safe.

2001-08-21  Ulrich Drepper  <drepper@redhat.com>

23 years agoUpdate.
Ulrich Drepper [Tue, 21 Aug 2001 16:17:29 +0000 (16:17 +0000)]
Update.

2001-08-21  Ulrich Drepper  <drepper@redhat.com>

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

23 years agoUpdate.
Ulrich Drepper [Tue, 21 Aug 2001 02:57:38 +0000 (02:57 +0000)]
Update.

2001-08-20  Ulrich Drepper  <drepper@redhat.com>

* misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
* misc/err.c (convert_and_print): Likewise.

* malloc/obstack.c (print_and_abort): Use fprintf instead of two
function calls.

23 years agoUpdate.
Ulrich Drepper [Tue, 21 Aug 2001 02:46:26 +0000 (02:46 +0000)]
Update.

2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>

* sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
change of the gregset_t type.
* sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.

2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>

* sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.

* posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.

23 years agoUpdate.
Ulrich Drepper [Tue, 21 Aug 2001 01:42:08 +0000 (01:42 +0000)]
Update.

2001-08-20  Ulrich Drepper  <drepper@redhat.com>

* string/strnlen.c: Fix the implementation.  We cannot use memchr.

23 years agoFix the implementation. We cannot use memchr.
Ulrich Drepper [Tue, 21 Aug 2001 01:40:45 +0000 (01:40 +0000)]
Fix the implementation.  We cannot use memchr.

23 years ago* sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ before calling...
Mark Kettenis [Mon, 20 Aug 2001 21:44:01 +0000 (21:44 +0000)]
* sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ before calling the cthreads initialization code.

2001-08-18  Mark Kettenis  <kettenis@gnu.org>

* sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
before calling the cthreads initialization code.

23 years agoUpdate.
Ulrich Drepper [Mon, 20 Aug 2001 19:55:53 +0000 (19:55 +0000)]
Update.

* argp/argp-help.c: Fix two problems introduced in last change.

23 years agoUpdate.
Ulrich Drepper [Mon, 20 Aug 2001 07:17:10 +0000 (07:17 +0000)]
Update.

2001-08-20  Ulrich Drepper  <drepper@redhat.com>

* include/dirent.h: Include <dirstream.h> first.

23 years agoUpdate.
Ulrich Drepper [Mon, 20 Aug 2001 06:59:59 +0000 (06:59 +0000)]
Update.

* io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.

23 years agoUpdate.
Ulrich Drepper [Mon, 20 Aug 2001 06:37:56 +0000 (06:37 +0000)]
Update.

2001-08-19  Ulrich Drepper  <drepper@redhat.com>

* sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
* sunrpc/xdr_rec.c: Likewise.
* sunrpc/xdr_mem.c: Likewise.
* sunrpc/svc_authux.c (_svcauth_unix): Likewise.
* sunrpc/rpc_cmsg.c: Likewise.
* sunrpc/getrpcport.c (getrpcport): Likewise.
* sunrpc/clnt_simp.c (callrpc): Likewise.
* sunrpc/clnt_gen.c (clnt_create): Likewise.
* string/envz.c: Likewise.

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

* argp/argp-help.c: Handle wide oriented stderr stream.

* conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.

23 years agoUpdate.
Ulrich Drepper [Sun, 19 Aug 2001 03:52:42 +0000 (03:52 +0000)]
Update.

* sysdeps/generic/strtol.c: Little optimizations.  Add some
__builtin_expect.

23 years agoUpdate.
Ulrich Drepper [Sun, 19 Aug 2001 01:33:45 +0000 (01:33 +0000)]
Update.

* conform/conformtest.pl: <inttypes.h> test required <stddef.h>.

23 years agoUpdate.
Ulrich Drepper [Sun, 19 Aug 2001 01:09:06 +0000 (01:09 +0000)]
Update.

* wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
* wcsmbs/wcwidth.c (wcwdith): Likewise.
* wcsmbs/wcwidth.h (internal_wcwdith): Likewise.

* conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.

* conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.

23 years agoUpdate.
Ulrich Drepper [Sat, 18 Aug 2001 23:36:58 +0000 (23:36 +0000)]
Update.

* time/time.h (struct timespec): Use __time_t for tv_sec element.

* sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
wchar_t for function declarations and defintions.

* misc/sys/select.h: Define __need_time_t before including <time.h>.
Define suseconds_t if it hasn't happened yet.

* iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.

* conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.

* sysdeps/generic/stdint.h: Don't get definition of wchar_t from
<stddef.h>.

* conform/data/stddef.h-data: Remove wint_t.

23 years agoUpdate.
Ulrich Drepper [Sat, 18 Aug 2001 11:55:52 +0000 (11:55 +0000)]
Update.

2001-08-18  Ulrich Drepper  <drepper@redhat.com>

* conform/conformtest.pl: Change namespace test to take #undef
lines into account.

* conform/data/netinet/in.h-data: Fix typo in allow-header line.

* conform/data/sys/socket.h-data: Add sockatmark.

23 years agoUpdate.
Ulrich Drepper [Sat, 18 Aug 2001 06:22:52 +0000 (06:22 +0000)]
Update.

2001-08-17  Ulrich Drepper  <drepper@redhat.com>

* io/fts.c: Update from recent BSD source.

23 years agoUpdate from recent BSD source.
Ulrich Drepper [Sat, 18 Aug 2001 06:22:09 +0000 (06:22 +0000)]
Update from recent BSD source.

23 years ago* stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
Roland McGrath [Sat, 18 Aug 2001 02:49:46 +0000 (02:49 +0000)]
* stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.

* misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
Likewise.

23 years ago2001-08-17 Roland McGrath <roland@frob.com>
Roland McGrath [Sat, 18 Aug 2001 02:49:41 +0000 (02:49 +0000)]
2001-08-17  Roland McGrath  <roland@frob.com>

* stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
* misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
Likewise.

23 years agoUpdate.
Ulrich Drepper [Sat, 18 Aug 2001 02:46:36 +0000 (02:46 +0000)]
Update.

* locale/duplocale.c (__duplocale): Also initialize the special
__ctype_* elements.

23 years agoUpdate.
Ulrich Drepper [Sat, 18 Aug 2001 00:46:40 +0000 (00:46 +0000)]
Update.

2001-08-17  Ulrich Drepper  <drepper@redhat.com>

* conform/data/netdb.h-data: Adjust gai_strerror return type.

* misc/getpass.c: Include wchar.h for prototypes.
* malloc/obstack.c: Likewise.

23 years agoUse __wcsoll only if _LIBC.
Ulrich Drepper [Fri, 17 Aug 2001 18:15:15 +0000 (18:15 +0000)]
Use __wcsoll only if _LIBC.

23 years agoUpdate.
Andreas Jaeger [Fri, 17 Aug 2001 14:14:31 +0000 (14:14 +0000)]
Update.

2001-08-17  Andreas Jaeger  <aj@suse.de>

        * misc/getpass.c: Include wchar.h for prototypes.
        * malloc/obstack.c: Likewise.

23 years agoInclude wchar.h for prototypes.
Andreas Jaeger [Fri, 17 Aug 2001 14:14:10 +0000 (14:14 +0000)]
Include wchar.h for prototypes.

23 years agoInclude <wchar.h>.
Ulrich Drepper [Fri, 17 Aug 2001 07:57:23 +0000 (07:57 +0000)]
Include <wchar.h>.

23 years agoUpdate.
Ulrich Drepper [Fri, 17 Aug 2001 07:51:36 +0000 (07:51 +0000)]
Update.

2001-08-17  Ulrich Drepper  <drepper@redhat.com>

* sunrpc/svc_simple.c (universal): Use __write instead of write.

* wcsmbs/wcscoll.c: Also define __wcscoll.
* include/wchar.h: Declare __wcscoll.

* libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
* libio/vwprintf.c: Likewise.
* libio/wprintf.c: Likewise.

* iconv/gconv_cache.c: Use __munmap instead of munmap.

* posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
instead of mbrtowc.
[_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
wcslen, and __wcscoll instead of wcscoll.

* sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.

* sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
__getuid instead of getuid.

* stdio-common/perror.c (perror): Use __close instead of close.
* iconv/gconv_cache.c (__gconv_load_cache): Likewise.
* libio/freopen.c (freopen): Likewise.
* libio/freopen64.c (freopen64): Likewise.

23 years agoUpdate.
Ulrich Drepper [Fri, 17 Aug 2001 04:49:12 +0000 (04:49 +0000)]
Update.

* libio/tst-ungetwc2.c (main): Define str const.

* include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
* libio/fwprintf.c: Also define __fwprintf.
* stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
* argp/argp-fmtstream.c: Handle wide oriented stderr stream.
* assert/assert-perr.c: Likewise.
* assert/assert.c: Likewise.
* gmon/gmon.c: Likewise.
* inet/rcmd.c: Likewise.
* malloc/obstack.c: Likewise.
* misc/err.c: Likewise.
* misc/error.c: Likewise.
* misc/getpass.c: Likewise.
* posix/getopt.c: Likewise.
* resolv/res_hconf.c: Likewise.
* stdio-common/perror.c: Likewise.
* stdio-common/psignal.c: Likewise.
* stdlib/fmtmsg.c: Likewise.
* sunrpc/auth_unix.c: Likewise.
* sunrpc/clnt_perr.c: Likewise.
* sunrpc/clnt_tcp.c: Likewise.
* sunrpc/clnt_udp.c: Likewise.
* sunrpc/clnt_unix.c: Likewise.
* sunrpc/svc_simple.c: Likewise.
* sunrpc/svc_tcp.c: Likewise.
* sunrpc/svc_udp.c: Likewise.
* sunrpc/svc_unix.c: Likewise.
* sunrpc/xdr.c: Likewise.
* sunrpc/xdr_array.c: Likewise.
* sunrpc/xdr_rec.c: Likewise.
* sunrpc/xdr_ref.c: Likewise.
* sysdeps/generic/wordexp.c: Likewise.

* misc/err.c: Handle wide oriented stderr stream.

23 years agoUpdate.
Ulrich Drepper [Thu, 16 Aug 2001 23:31:06 +0000 (23:31 +0000)]
Update.

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

23 years agoUpdate.
Ulrich Drepper [Thu, 16 Aug 2001 17:51:43 +0000 (17:51 +0000)]
Update.

2001-08-16  Ulrich Drepper  <drepper@redhat.com>

* misc/err.c: Handle wide oriented stderr.

23 years agoUpdate.
Ulrich Drepper [Thu, 16 Aug 2001 05:39:18 +0000 (05:39 +0000)]
Update.

2001-08-14  Tom Rix  <trix@redhat.com>

* iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
* iconv/Makefile: Fix gconv_cache.c CFLAGS.

2001-08-13  Tom Rix  <trix@redhat.com>

* sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
* sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
and __intptr_t.

2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>

* sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
Store the access registers to the ucontext structure.
* sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
Likewise.

* sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
Load the access registers from the ucontext structure.
* sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
Likewise.

* sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
offsets to the new ucontext layout.
* sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.

* sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
of the ucontext structure.
* sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.

23 years agoUpdate.
Ulrich Drepper [Thu, 16 Aug 2001 05:23:52 +0000 (05:23 +0000)]
Update.

* misc/error.c (error): Handle wide oriented stderr stream correctly.
* stdio-common/perror.c (perror): Implement according to standard.
The stream orientation must not be changed if the stream was not
oriented before the call.
* stdio-common/Makefile (tests): Add tst-perror.
* stdio-common/tst-perror.c: New file.
See ChangeLog.12 for earlier changes.

23 years agoUpdate. cvs/glibc-2_2_4 glibc-2.2.4
Ulrich Drepper [Wed, 15 Aug 2001 18:41:44 +0000 (18:41 +0000)]
Update.

2001-08-15  Ulrich Drepper  <drepper@redhat.com>

* libio/iofwide.c (_IO_fwide): Don't reset file position to
beginning of file, really get current position.

23 years ago(_IO_fwide): Don't reset file position to beginning of file, really get current position.
Ulrich Drepper [Wed, 15 Aug 2001 18:40:16 +0000 (18:40 +0000)]
(_IO_fwide): Don't reset file position to beginning of file, really get current position.

23 years ago* sysdeps/m68k/m68020/atomicity.h (atomic_add): Don't allow
Andreas Schwab [Wed, 15 Aug 2001 13:09:32 +0000 (13:09 +0000)]
* sysdeps/m68k/m68020/atomicity.h (atomic_add): Don't allow

address register for operand 0.

23 years ago(atomic_add): Don't allow address register for operand 0.
Andreas Schwab [Wed, 15 Aug 2001 13:09:16 +0000 (13:09 +0000)]
(atomic_add): Don't allow address register for operand 0.

23 years agoUpdate.
Ulrich Drepper [Wed, 15 Aug 2001 06:23:11 +0000 (06:23 +0000)]
Update.

2001-08-14  Ulrich Drepper  <drepper@redhat.com>

* stdio-common/perror.c (perror): Use _IO_fwide instead of fwide.

* libio/libio.h (_IO_fwide): Handle zero as second parameter more
efficiently in macro.

23 years agoUpdate.
Ulrich Drepper [Tue, 14 Aug 2001 23:29:55 +0000 (23:29 +0000)]
Update.

2001-08-14  Jakub Jelinek  <jakub@redhat.com>

* resolv/nss_dns/dns-host.c (RESOLVSORT): Define.
(addrsort): New function.
* resolv/gethnamaddr.c (RESOLVSORT): Define.

2001-08-14  Jakub Jelinek  <jakub@redhat.com>

* string/strsignal.c (free_mem): Remove.

2001-08-14  Andreas Jaeger  <aj@suse.de>

* inet/inet_ntoa.c (free_mem): Remove, it's not used anymore.
Closes PR libc/2477, reported by Dylan Alex Simon
<dylan@dylex.caltech.edu>.

2001-08-14  Ulrich Drepper  <drepper@redhat.com>

* locale/Makefile (aux): Add xlocale.
* locale/xlocale.c: New file.
* include/locale.c (_nl_C_locobj): Declare.
* iconv/gconv_charset.h: Use __tolower_l, __isdigit_l, __isspace_l
with _nl_C_locobj instead of tolower, isdigit, isspace.
* iconv/gconv_conf.c: Likewise.
* iconv/gconv_int.h: Likewise.
* iconv/gconv_open.c: Likewise.

* locale/newlocale.c: Minor cleanups.

23 years agoUpdate.
Ulrich Drepper [Tue, 14 Aug 2001 22:29:43 +0000 (22:29 +0000)]
Update.

2001-08-14  Ulrich Drepper  <drepper@redhat.com>

* Makefile: Add rules to build and run tst-xlocale1.
* tst-xlocale1.c: New file.

* bug-iconv-trans.c: Improve error messages.

23 years agoTest of __strcasecmp_l.
Ulrich Drepper [Tue, 14 Aug 2001 22:25:47 +0000 (22:25 +0000)]
Test of __strcasecmp_l.

23 years agoUpdate.
Andreas Jaeger [Tue, 14 Aug 2001 07:06:51 +0000 (07:06 +0000)]
Update.

2001-08-14  Andreas Jaeger  <aj@suse.de>

* sysdeps/ieee754/ldbl-128/w_expl.c: New file, copy from
ldbl-96/w_expl.c with tweaked constants.  Patch by Stephen L
Moshier.

23 years agoCopy from ldbl-96/w_expl.c with tweaked constants
Andreas Jaeger [Tue, 14 Aug 2001 07:06:41 +0000 (07:06 +0000)]
Copy from ldbl-96/w_expl.c with tweaked constants

23 years agoRegenerated from source files
Ulrich Drepper [Mon, 13 Aug 2001 22:08:56 +0000 (22:08 +0000)]
Regenerated from source files

23 years agoUpdate.
Ulrich Drepper [Mon, 13 Aug 2001 21:54:43 +0000 (21:54 +0000)]
Update.

* malloc/memusage.c (me): Allow creating the output file.

23 years agoUpdate.
Ulrich Drepper [Mon, 13 Aug 2001 17:45:00 +0000 (17:45 +0000)]
Update.

* sysdeps/unix/sysv/linux/Makefile: Remove -fkeep-inline-functions
flag for init-first.

23 years agoUpdate.
Ulrich Drepper [Mon, 13 Aug 2001 16:36:10 +0000 (16:36 +0000)]
Update.

2001-08-13  Ulrich Drepper  <drepper@redhat.com>

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

23 years agoUpdate from translation team.
Ulrich Drepper [Mon, 13 Aug 2001 16:34:06 +0000 (16:34 +0000)]
Update from translation team.

23 years agoUpdate.
Andreas Jaeger [Mon, 13 Aug 2001 08:43:34 +0000 (08:43 +0000)]
Update.

2001-08-13  Andreas Jaeger  <aj@suse.de>

* sysdeps/mips/machine-gmon.h (MCOUNT): Don't use delay slot for
jal since it's a macro.
Patch by Simon Gee <simong@oz.agile.tv>.

23 years ago(MCOUNT): Don't use delay slot for jal since jal is a macro.
Andreas Jaeger [Mon, 13 Aug 2001 08:42:44 +0000 (08:42 +0000)]
(MCOUNT): Don't use delay slot for jal since jal is a macro.

23 years agoUpdate.
Ulrich Drepper [Mon, 13 Aug 2001 06:27:35 +0000 (06:27 +0000)]
Update.

2001-08-12  Ulrich Drepper  <drepper@redhat.com>

* iconvdata/Makefile: Add rules to build ISO-IR-209 and MAC-SAMI.
* iconvdata/iso-ir-209.c: New file.
* iconvdata/mac-sami.c: New file.
* iconvdata/gconv-modules: Add entries for ISO-IR-209 and MAC-SAMI.
* iconvdata/tst-tables.sh: Likewise.

* posix/getopt.c: Remove store_args_and_env which is not needed since
USE_NONOPTION_FLAGS is undefined anyhow.  Use __libc_argc and
__libc_argv variables.

Now returns pointer to first character after "LD_".

23 years agoRemove store_args_and_env which is not needed is USE_NONOPTION_FLAGS is undefined...
Ulrich Drepper [Mon, 13 Aug 2001 05:22:43 +0000 (05:22 +0000)]
Remove store_args_and_env which is not needed is USE_NONOPTION_FLAGS is undefined anyhow.  Use __libc_argc and __libc_argv variables.

23 years ago* sysdeps/mach/hurd/clock.c: New file.
Roland McGrath [Mon, 13 Aug 2001 02:05:11 +0000 (02:05 +0000)]
* sysdeps/mach/hurd/clock.c: New file.

* sysdeps/mach/hurd/times.c: New file.
* sysdeps/mach/hurd/getclktck.c (__getclktck): Always return 1000000.
* sysdeps/mach/hurd/init-posix.c: New file.

23 years ago* hurd/hurdlookup.c (__hurd_file_name_lookup): Comment fix.
Roland McGrath [Sun, 12 Aug 2001 22:02:53 +0000 (22:02 +0000)]
* hurd/hurdlookup.c (__hurd_file_name_lookup): Comment fix.

* sysdeps/mach/hurd/bits/time.h
(CLOCK_PROCESS_CPUTIME_ID, CLOCK_THREAD_CPUTIME_ID): New macros.
* sysdeps/mach/hurd/i386/bits/time.h: File removed.

23 years ago2001-08-12 Roland McGrath <roland@frob.com>
Roland McGrath [Sun, 12 Aug 2001 22:02:11 +0000 (22:02 +0000)]
2001-08-12  Roland McGrath  <roland@frob.com>

* hurd/hurdlookup.c (__hurd_file_name_lookup): Comment fix.

23 years ago(Working Directory): Don't use TAB in example.
Ulrich Drepper [Sun, 12 Aug 2001 19:15:49 +0000 (19:15 +0000)]
(Working Directory): Don't use TAB in example.

23 years agoFix typos and wording.
Ulrich Drepper [Sun, 12 Aug 2001 16:44:22 +0000 (16:44 +0000)]
Fix typos and wording.

23 years ago* posix/getopt.c (nonoption_flags_max_len, nonoption_flags_len):
Roland McGrath [Sat, 11 Aug 2001 21:18:42 +0000 (21:18 +0000)]
* posix/getopt.c (nonoption_flags_max_len, nonoption_flags_len):

Make these defns conditional on [USE_NONOPTION_FLAGS].

23 years agoUpdate.
Ulrich Drepper [Sat, 11 Aug 2001 20:40:40 +0000 (20:40 +0000)]
Update.

* sysdeps/arm/init-first.c: Likewise.
* sysdeps/generic/init-first.c: Likewise.
* sysdeps/i386/init-first.c: Likewise.
* sysdeps/sh/init-first.c: Likewise.

23 years ago(_dl_map_object_from_fd): Use correct symbolic constant in mprotect call.
Ulrich Drepper [Sat, 11 Aug 2001 20:27:50 +0000 (20:27 +0000)]
(_dl_map_object_from_fd): Use correct symbolic constant in mprotect call.

23 years ago2001-08-11 Roland McGrath <roland@frob.com>
Roland McGrath [Sat, 11 Aug 2001 20:18:41 +0000 (20:18 +0000)]
2001-08-11  Roland McGrath  <roland@frob.com>

* posix/getopt.c (nonoption_flags_max_len, nonoption_flags_len):
Make these defns conditional on [USE_NONOPTION_FLAGS].

23 years agoUpdate.
Ulrich Drepper [Sat, 11 Aug 2001 19:43:52 +0000 (19:43 +0000)]
Update.

2001-08-11  Ulrich Drepper  <drepper@redhat.com>

* config.h.in: Add #undef line for USE_NONOPTION_FLAGS.
* posix/getopt_init.c: Produce code only if USE_NONOPTION_FLAGS is
defined.
* posix/getopt.c: Use __getopt_nonoption_flags only if
USE_NONOPTION_FLAGS is defined.
* sysdeps/mach/hurd/i386/init-first.c: Use __getopt_clean_environment
only if USE_NONOPTION_FLAGS is defined.
* sysdeps/mach/hurd/mips/init-first.c: Likewise.
* sysdeps/unix/sysv/linux/init-first.c: Likewise.

23 years agoAdd #undef line for USE_NONOPTION_FLAGS.
Ulrich Drepper [Sat, 11 Aug 2001 19:41:01 +0000 (19:41 +0000)]
Add #undef line for USE_NONOPTION_FLAGS.

23 years agoj0 implementation for 128-bit long doubles.
Andreas Jaeger [Sat, 11 Aug 2001 16:57:23 +0000 (16:57 +0000)]
j0 implementation for 128-bit long doubles.

23 years agoUpdate.
Andreas Jaeger [Sat, 11 Aug 2001 16:57:22 +0000 (16:57 +0000)]
Update.

2001-08-11  Andreas Jaeger  <aj@suse.de>

* sysdeps/ieee754/ldbl-128/e_j0l.c: New file.
Contributed by Stephen L Moshier <moshier@mediaone.net>.

23 years agoUpdate.
Ulrich Drepper [Sat, 11 Aug 2001 09:25:47 +0000 (09:25 +0000)]
Update.

* assert/assert.c (set_progname): Removed.
(__assert_fail): Use __progname instead of __assert_program_name.
* assert/assert-perr.c (__assert_perror_fail): Likewise.