kopensolaris-gnu/glibc.git
17 years ago(NSS_attribute_hidden): Remove.
drepper [Sat, 3 Aug 2002 06:21:40 +0000 (06:21 +0000)]
(NSS_attribute_hidden): Remove.

17 years ago(__statfs): Add libc_hidden_proto.
drepper [Sat, 3 Aug 2002 06:20:22 +0000 (06:20 +0000)]
(__statfs): Add libc_hidden_proto.

17 years ago(__send): Add libc_hidden_proto.
drepper [Sat, 3 Aug 2002 06:20:07 +0000 (06:20 +0000)]
(__send): Add libc_hidden_proto.

17 years ago(__select): Add libc_hidden_proto.
drepper [Sat, 3 Aug 2002 06:19:56 +0000 (06:19 +0000)]
(__select): Add libc_hidden_proto.

17 years ago(__poll): Add libc_hidden_proto.
drepper [Sat, 3 Aug 2002 06:19:44 +0000 (06:19 +0000)]
(__poll): Add libc_hidden_proto.

17 years ago(__mbrtowc_internal, __mbrlen_internal): Remove.
drepper [Sat, 3 Aug 2002 06:18:58 +0000 (06:18 +0000)]
(__mbrtowc_internal, __mbrlen_internal): Remove.
(__mbrtowc, __mbrlen): Use libc_hidden_proto.  Remove macros.

17 years ago (__pwrite64, __libc_read, __pipe, __chown, __dup2,
drepper [Sat, 3 Aug 2002 06:18:29 +0000 (06:18 +0000)]
 (__pwrite64, __libc_read, __pipe, __chown, __dup2,
__getpid, __getpgid, __setpgid, __close, __read, __write,
__getpagesize, __sbrk): Likewise.
(__chown_internal, __dup2_internal, __getpid_internal,
__getpgid_internal, __close_internal, __write_internal,
__getpagesize_internal): Remove.
(__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
Remove macros.

17 years ago(__mempcpy, __stpncpy, __rawmemchr, __strcasecmp): Add libc_hidden_proto.
drepper [Sat, 3 Aug 2002 06:17:53 +0000 (06:17 +0000)]
(__mempcpy, __stpncpy, __rawmemchr, __strcasecmp): Add libc_hidden_proto.

17 years ago(__secure_getenv): Add libc_hidden_proto.
drepper [Sat, 3 Aug 2002 06:17:24 +0000 (06:17 +0000)]
(__secure_getenv): Add libc_hidden_proto.

17 years ago(__sigaction, __sigsuspend): Add libc_hidden_proto.
drepper [Sat, 3 Aug 2002 06:16:57 +0000 (06:16 +0000)]
(__sigaction, __sigsuspend): Add libc_hidden_proto.

17 years ago(__sched_setscheduler): Add libc_hidden_proto.
drepper [Sat, 3 Aug 2002 06:16:36 +0000 (06:16 +0000)]
(__sched_setscheduler): Add libc_hidden_proto.

17 years ago(__res_ninit, __res_randomid): Add libc_hidden_proto.
drepper [Sat, 3 Aug 2002 06:15:56 +0000 (06:15 +0000)]
(__res_ninit, __res_randomid): Add libc_hidden_proto.

17 years ago(__printf_fp): Add libc_hidden_proto.
drepper [Sat, 3 Aug 2002 06:15:15 +0000 (06:15 +0000)]
(__printf_fp): Add libc_hidden_proto.

17 years ago(hidden_proto, hidden_def, hidden_weak, hidden_ver, libc_hidden_proto,
drepper [Sat, 3 Aug 2002 06:14:54 +0000 (06:14 +0000)]
(hidden_proto, hidden_def, hidden_weak, hidden_ver, libc_hidden_proto,
libc_hidden_def, libc_hidden_weak, libc_hidden_ver, rtld_hidden_proto,
rtld_hidden_def, rtld_hidden_weak, rltd_hidden_ver, libm_hidden_proto,
libm_hidden_def, libm_hidden_weak, libm_hiden_ver): Define.

17 years ago(__libc_freeres, __profile_frequency): Add libc_hidden_proto.
drepper [Sat, 3 Aug 2002 06:14:24 +0000 (06:14 +0000)]
(__libc_freeres, __profile_frequency): Add libc_hidden_proto.

17 years ago(__open64, __libc_open, __libc_fcntl, __open,
drepper [Sat, 3 Aug 2002 06:14:04 +0000 (06:14 +0000)]
(__open64, __libc_open, __libc_fcntl, __open,
__fcntl): Add libc_hidden_proto.  Remove macros.
(__open_internal, __fcntl_internal): Remove.

17 years ago(__assert_fail_internal): Remove.
drepper [Sat, 3 Aug 2002 06:13:44 +0000 (06:13 +0000)]
(__assert_fail_internal): Remove.
(__assert_fail): Add prototype.  Add hidden_proto.

17 years ago(__profile_frequency): Add libc_hidden_proto.
drepper [Sat, 3 Aug 2002 06:11:54 +0000 (06:11 +0000)]
(__profile_frequency): Add libc_hidden_proto.

17 years ago(__assert_fail): Replace INTDEF with libc_hidden_weak.
drepper [Sat, 3 Aug 2002 06:11:26 +0000 (06:11 +0000)]
(__assert_fail): Replace INTDEF with libc_hidden_weak.

17 years ago(__open_catalog): Add libc_hidden_def.
drepper [Sat, 3 Aug 2002 06:10:49 +0000 (06:10 +0000)]
(__open_catalog): Add libc_hidden_def.

17 years ago(__open_catalog): Add libc_hidden_proto.
drepper [Sat, 3 Aug 2002 06:10:15 +0000 (06:10 +0000)]
(__open_catalog): Add libc_hidden_proto.

17 years ago(__assert): Remove INTUSE.
drepper [Sat, 3 Aug 2002 06:09:38 +0000 (06:09 +0000)]
(__assert): Remove INTUSE.

17 years agoRegenerated.
drepper [Sat, 3 Aug 2002 06:08:39 +0000 (06:08 +0000)]
Regenerated.

17 years ago(HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for broken visibility
drepper [Sat, 3 Aug 2002 06:07:02 +0000 (06:07 +0000)]
(HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for broken visibility
attribute handling.
(HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for broken alias attribute handling.

17 years ago(HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
drepper [Sat, 3 Aug 2002 06:06:26 +0000 (06:06 +0000)]
(HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
(HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.

17 years ago.
roland [Sat, 3 Aug 2002 05:56:37 +0000 (05:56 +0000)]
.

17 years ago2002-08-02 Roland McGrath <roland@redhat.com>
roland [Sat, 3 Aug 2002 05:54:35 +0000 (05:54 +0000)]
2002-08-02  Roland McGrath  <roland@redhat.com>

* sysdeps/i386/tls.h (TLS_DO_SET_THREAD_AREA): Add missing \s.

17 years agoUpdate.
drepper [Sat, 3 Aug 2002 05:51:04 +0000 (05:51 +0000)]
Update.

17 years agoTypo.
drepper [Sat, 3 Aug 2002 05:48:30 +0000 (05:48 +0000)]
Typo.

17 years agoDeclare _errno, _h_errno, and _res unless we use TLS internally.
drepper [Sat, 3 Aug 2002 05:47:52 +0000 (05:47 +0000)]
Declare _errno, _h_errno, and _res unless we use TLS internally.

17 years ago.
roland [Sat, 3 Aug 2002 05:08:27 +0000 (05:08 +0000)]
.

17 years ago2002-08-02 Roland McGrath <roland@redhat.com>
roland [Sat, 3 Aug 2002 05:08:17 +0000 (05:08 +0000)]
2002-08-02  Roland McGrath  <roland@redhat.com>

* include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
* sunrpc/rpc_thread.c: Define it without static.

17 years ago.
roland [Sat, 3 Aug 2002 05:03:14 +0000 (05:03 +0000)]
.

17 years ago2002-08-02 Roland McGrath <roland@redhat.com>
roland [Sat, 3 Aug 2002 05:00:53 +0000 (05:00 +0000)]
2002-08-02  Roland McGrath  <roland@redhat.com>

* include/rpc/rpc.h: Declare RPC_VARS tsd as extern.

17 years agoRevert unintended bogons in last commit.
roland [Sat, 3 Aug 2002 04:56:15 +0000 (04:56 +0000)]
Revert unintended bogons in last commit.

17 years ago(__assert_fail): Fix typo in comment.
drepper [Sat, 3 Aug 2002 03:54:03 +0000 (03:54 +0000)]
(__assert_fail): Fix typo in comment.

17 years agoUpdate.
drepper [Sat, 3 Aug 2002 03:53:28 +0000 (03:53 +0000)]
Update.

17 years ago(__pthread_perform_cleanup) [USE_TLS && HAVE___THREAD]: Don't use
drepper [Sat, 3 Aug 2002 03:51:30 +0000 (03:51 +0000)]
(__pthread_perform_cleanup) [USE_TLS && HAVE___THREAD]: Don't use
p_libc_specific element in thread descriptor.

17 years agoDeclare __libc_tsd_RPC_VARS if USE_TLS && HAVE___THREAD.
drepper [Sat, 3 Aug 2002 03:49:32 +0000 (03:49 +0000)]
Declare __libc_tsd_RPC_VARS if USE_TLS && HAVE___THREAD.

17 years agoDon't define __libc_tsd_RPC_VARS as static.
drepper [Sat, 3 Aug 2002 03:48:54 +0000 (03:48 +0000)]
Don't define __libc_tsd_RPC_VARS as static.

17 years ago[libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
drepper [Sat, 3 Aug 2002 03:47:58 +0000 (03:47 +0000)]
[libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.

17 years ago(_nss_dns_gethostbyaddr_r): Shut the compiler up.
drepper [Sat, 3 Aug 2002 03:42:06 +0000 (03:42 +0000)]
(_nss_dns_gethostbyaddr_r): Shut the compiler up.

17 years ago(gethostbyaddr): Shut up the compiler.
drepper [Sat, 3 Aug 2002 03:40:54 +0000 (03:40 +0000)]
(gethostbyaddr): Shut up the compiler.

17 years ago.
roland [Fri, 2 Aug 2002 21:50:12 +0000 (21:50 +0000)]
.

17 years ago2002-08-02 Roland McGrath <roland@frob.com>
roland [Fri, 2 Aug 2002 21:49:52 +0000 (21:49 +0000)]
2002-08-02  Roland McGrath  <roland@frob.com>

* elf/Makefile ($(objpfx)interp.os): Depend on config.make,
since it sets the variables we use in a -D switch.

17 years ago.
roland [Fri, 2 Aug 2002 21:16:39 +0000 (21:16 +0000)]
.

17 years ago2002-08-02 Roland McGrath <roland@redhat.com>
roland [Fri, 2 Aug 2002 21:16:29 +0000 (21:16 +0000)]
2002-08-02  Roland McGrath  <roland@redhat.com>

* posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
On 32-bit platforms they are the same; on 64-bit platforms ssize_t
matches long int, not int.

17 years ago.
roland [Fri, 2 Aug 2002 21:04:15 +0000 (21:04 +0000)]
.

17 years ago2002-08-02 Roland McGrath <roland@redhat.com>
roland [Fri, 2 Aug 2002 21:04:04 +0000 (21:04 +0000)]
2002-08-02  Roland McGrath  <roland@redhat.com>

* locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
* wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
* locale/lc-ctype.c (_nl_postload_ctype): Likewise.
* wctype/wctrans.c (wctrans): Likewise.
* wctype/wctype.c (__wctype): Likewise.
* intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.

17 years agoUpdate.
drepper [Fri, 2 Aug 2002 20:32:21 +0000 (20:32 +0000)]
Update.

17 years agoAdd entries for Venda and Northern Sotho.
drepper [Fri, 2 Aug 2002 20:29:12 +0000 (20:29 +0000)]
Add entries for Venda and Northern Sotho.

17 years agoUpdate.
drepper [Fri, 2 Aug 2002 20:17:36 +0000 (20:17 +0000)]
Update.

17 years ago(gethostbyaddr): Try ip6.int if ip6.arpa fails.
drepper [Fri, 2 Aug 2002 20:15:23 +0000 (20:15 +0000)]
(gethostbyaddr): Try ip6.int if ip6.arpa fails.

17 years agoTry ip6.int if ip6.arpa fails.
drepper [Fri, 2 Aug 2002 20:13:31 +0000 (20:13 +0000)]
Try ip6.int if ip6.arpa fails.

17 years agoUpdate.
drepper [Fri, 2 Aug 2002 20:05:29 +0000 (20:05 +0000)]
Update.

17 years ago Fixing the Alef Hamza vs Waw Hamza ordering bug.
drepper [Fri, 2 Aug 2002 20:04:51 +0000 (20:04 +0000)]
 Fixing the Alef Hamza vs Waw Hamza ordering bug.
Adding presentation forms, Alef Wasla, and Rial Sign.
Handling frequent canonically equivalent sequences like each other.

17 years agoFix typo: Equador -> Ecuador.
drepper [Fri, 2 Aug 2002 20:00:24 +0000 (20:00 +0000)]
Fix typo: Equador -> Ecuador.

17 years agoUpdate.
drepper [Fri, 2 Aug 2002 19:59:19 +0000 (19:59 +0000)]
Update.

17 years agoDon't include tls.h if _ISOMAC is defined.
drepper [Fri, 2 Aug 2002 19:58:24 +0000 (19:58 +0000)]
Don't include tls.h if _ISOMAC is defined.

17 years ago.
roland [Fri, 2 Aug 2002 03:37:41 +0000 (03:37 +0000)]
.

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

* 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)].
* no-tsd.c: Conditionalize contents on [!(USE_TLS && HAVE___THREAD)].
* errno.c [USE_TLS && HAVE___THREAD]
(__h_errno_location, __res_state): Don't define these at all.

17 years ago.
roland [Fri, 2 Aug 2002 03:32:23 +0000 (03:32 +0000)]
.

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

* 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.

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

* 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.

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

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

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

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

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

* 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.

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

* 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.

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

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

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

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

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

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

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

* 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.

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

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

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

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

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

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

17 years ago2002-08-01 Roland McGrath <roland@redhat.com>
roland [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.

17 years agoUpdate.
drepper [Fri, 2 Aug 2002 01:43:32 +0000 (01:43 +0000)]
Update.

17 years ago(mem_free): Add comment.
drepper [Fri, 2 Aug 2002 01:33:29 +0000 (01:33 +0000)]
(mem_free): Add comment.

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

17 years ago.
roland [Fri, 2 Aug 2002 01:29:37 +0000 (01:29 +0000)]
.

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

* 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.

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

* 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.

17 years ago2002-07-31 Roland McGrath <roland@frob.com>
roland [Fri, 2 Aug 2002 01:27:57 +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.
* libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
_IO_file_underflow_mmap fails, it already set the appropriate bit.

17 years ago2002-08-01 Roland McGrath <roland@frob.com>
roland [Fri, 2 Aug 2002 01:27:55 +0000 (01:27 +0000)]
2002-08-01  Roland McGrath  <roland@frob.com>

* 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.

17 years ago2002-07-31 Roland McGrath <roland@frob.com>
roland [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.

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

17 years ago(__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
drepper [Fri, 2 Aug 2002 01:12:46 +0000 (01:12 +0000)]
(__ASSUME_SET_THREAD_AREA_SYSCALL): Define.

17 years agoUpdate.
drepper [Fri, 2 Aug 2002 01:12:25 +0000 (01:12 +0000)]
Update.

17 years ago(__have_no_set_thread_area): New variable.
drepper [Fri, 2 Aug 2002 01:11:53 +0000 (01:11 +0000)]
(__have_no_set_thread_area): New variable.

17 years ago(DO_MODIFY_LDT): Move from INIT_THREAD_SELF.
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.

17 years ago.
roland [Wed, 31 Jul 2002 23:30:24 +0000 (23:30 +0000)]
.

17 years ago2002-07-31 Jeff Bailey <jbailey@gnu.org>
roland [Wed, 31 Jul 2002 23:29:49 +0000 (23:29 +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.

17 years ago.
roland [Wed, 31 Jul 2002 23:16:57 +0000 (23:16 +0000)]
.

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

* elf/rtld.c (dl_main): Fix typo in error message.

17 years ago.
roland [Wed, 31 Jul 2002 23:16:05 +0000 (23:16 +0000)]
.

17 years ago2002-07-31 Roland McGrath <roland@frob.com>
roland [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.

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

17 years agoRegenerated.
drepper [Sun, 28 Jul 2002 22:41:12 +0000 (22:41 +0000)]
Regenerated.

17 years agoCheck /lib/modules/`uname -r`/build/include for kernel headers.
drepper [Sun, 28 Jul 2002 22:40:47 +0000 (22:40 +0000)]
Check /lib/modules/`uname -r`/build/include for kernel headers.

17 years agoUpdate.
drepper [Sun, 28 Jul 2002 19:04:09 +0000 (19:04 +0000)]
Update.