kopensolaris-gnu/glibc.git
17 years agoUse __ASSEMBLER__ test macro not ASSEMBLER.
drepper [Thu, 25 Jul 2002 01:06:57 +0000 (01:06 +0000)]
Use __ASSEMBLER__ test macro not ASSEMBLER.

17 years agoUse __ASSEMBLER__ test macro not ASSEMBLER.
drepper [Thu, 25 Jul 2002 01:06:12 +0000 (01:06 +0000)]
Use __ASSEMBLER__ test macro not ASSEMBLER.

17 years agoUse __ASSEMBLER__ test macro not ASSEMBLER.
drepper [Thu, 25 Jul 2002 01:05:46 +0000 (01:05 +0000)]
Use __ASSEMBLER__ test macro not ASSEMBLER.

17 years ago(main): Remove unused variable.
drepper [Thu, 25 Jul 2002 00:49:15 +0000 (00:49 +0000)]
(main): Remove unused variable.

17 years ago(_IO_file_seekoff_mmap): Set fp->_offset after succesful seek call.
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.

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

17 years ago2002-07-19 Roland McGrath <roland@frob.com>
roland [Wed, 24 Jul 2002 23:05:08 +0000 (23:05 +0000)]
2002-07-19  Roland McGrath  <roland@frob.com>

* hurd/hurdsig.c (_hurdsig_getenv): Always return null if
__libc_enable_secure is set.

17 years agoFix typos.
roland [Wed, 24 Jul 2002 23:00:05 +0000 (23:00 +0000)]
Fix typos.

17 years agoItem for getifaddrs.
roland [Wed, 24 Jul 2002 22:59:16 +0000 (22:59 +0000)]
Item for getifaddrs.

17 years ago.
roland [Wed, 24 Jul 2002 22:56:44 +0000 (22:56 +0000)]
.

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

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

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

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.

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

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

17 years ago.
roland [Wed, 24 Jul 2002 22:54:53 +0000 (22:54 +0000)]
.

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

* libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
which gets moved around.  Calculate size of mmap'd buffer instead.

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

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

17 years ago(PUSHARGS_1): Use more efficient instruction.
drepper [Wed, 24 Jul 2002 17:36:44 +0000 (17:36 +0000)]
(PUSHARGS_1): Use more efficient instruction.
(__socket): Optimize return sequence.

17 years agoImprove schedule.
drepper [Wed, 24 Jul 2002 17:36:14 +0000 (17:36 +0000)]
Improve schedule.

17 years agoUpdate.
drepper [Wed, 24 Jul 2002 11:51:16 +0000 (11:51 +0000)]
Update.

17 years ago(__opensock): Prefer inet sockets on old kernels.
drepper [Wed, 24 Jul 2002 11:50:06 +0000 (11:50 +0000)]
(__opensock): Prefer inet sockets on old kernels.

17 years agoUpdate.
drepper [Wed, 24 Jul 2002 11:18:48 +0000 (11:18 +0000)]
Update.

17 years agoRemove extra weak alias definiton of _old_sys_nerr. Define _old_sys_errlist
drepper [Wed, 24 Jul 2002 11:17:01 +0000 (11:17 +0000)]
Remove extra weak alias definiton of _old_sys_nerr.  Define _old_sys_errlist
as strong alias.

17 years agoUpdate.
drepper [Wed, 24 Jul 2002 11:16:27 +0000 (11:16 +0000)]
Update.

17 years ago(Using gettextized software): Remove documentation fo CEN format.
drepper [Wed, 24 Jul 2002 11:04:21 +0000 (11:04 +0000)]
(Using gettextized software): Remove documentation fo CEN format.

17 years ago(do_test): Add one more test for better coverage.
drepper [Wed, 24 Jul 2002 10:59:52 +0000 (10:59 +0000)]
(do_test): Add one more test for better coverage.

17 years agoUpdate.
drepper [Wed, 24 Jul 2002 10:44:53 +0000 (10:44 +0000)]
Update.

17 years ago(add_locale_to_archive): Correct test to detect duplicate locales.
drepper [Wed, 24 Jul 2002 10:43:17 +0000 (10:43 +0000)]
(add_locale_to_archive): Correct test to detect duplicate locales.

17 years agoRemove LONG_BITS definition.
drepper [Wed, 24 Jul 2002 10:41:06 +0000 (10:41 +0000)]
Remove LONG_BITS definition.

17 years agoMake more self-containedby defining LONG_BITS.
drepper [Wed, 24 Jul 2002 10:40:36 +0000 (10:40 +0000)]
Make more self-containedby defining LONG_BITS.

17 years ago(tests): Add bug-fseek.
drepper [Wed, 24 Jul 2002 10:36:37 +0000 (10:36 +0000)]
(tests): Add bug-fseek.

17 years agoTest for fseek bug wrt relative positioning.
drepper [Wed, 24 Jul 2002 10:36:01 +0000 (10:36 +0000)]
Test for fseek bug wrt relative positioning.

17 years ago(_IO_new_file_seekoff): Fail if relative position would be before beginning of
drepper [Wed, 24 Jul 2002 10:31:15 +0000 (10:31 +0000)]
(_IO_new_file_seekoff): Fail if relative position would be before beginning of
file.
(_IO_file_seekoff_mmap): Likewise.

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

17 years ago.
roland [Wed, 24 Jul 2002 09:35:24 +0000 (09:35 +0000)]
.

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

* libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
position, calculate it to take into account an active pushback buffer.

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

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

17 years agoUpdate.
drepper [Tue, 23 Jul 2002 23:12:01 +0000 (23:12 +0000)]
Update.

17 years ago (__pthread_initialize_minimal): If !SHARED and TLS call
drepper [Tue, 23 Jul 2002 23:11:00 +0000 (23:11 +0000)]
 (__pthread_initialize_minimal): If !SHARED and TLS call
 __libc_setup_tls first.

17 years agoTst for statically linked libphread.
drepper [Tue, 23 Jul 2002 23:09:25 +0000 (23:09 +0000)]
Tst for statically linked libphread.

17 years agoUpdate.
drepper [Tue, 23 Jul 2002 23:08:33 +0000 (23:08 +0000)]
Update.

17 years ago(__libc_start_main): Reorganize code for !SHARED. First look through
drepper [Tue, 23 Jul 2002 23:06:03 +0000 (23:06 +0000)]
(__libc_start_main): Reorganize code for !SHARED.  First look through
auxiliary vector.  If TLS always call __pthread_initialize_minimal.

17 years ago(_dl_allocate_tls): Make sure size argument in mmap call is never zero.
drepper [Tue, 23 Jul 2002 23:04:18 +0000 (23:04 +0000)]
(_dl_allocate_tls): Make sure size argument in mmap call is never zero.

17 years ago(routines): Add libc-tls.
drepper [Tue, 23 Jul 2002 23:02:38 +0000 (23:02 +0000)]
(routines): Add libc-tls.
(static-only-routines): Add libc-tls.

17 years agoInitialization for TLS data structures in statically linked binaries.
drepper [Tue, 23 Jul 2002 23:00:30 +0000 (23:00 +0000)]
Initialization for TLS data structures in statically linked binaries.

17 years ago(_dl_phdr): New variable.
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.

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

17 years agoUpdate.
aj [Tue, 23 Jul 2002 19:36:35 +0000 (19:36 +0000)]
Update.

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

17 years agoUpdate.
drepper [Tue, 23 Jul 2002 00:37:27 +0000 (00:37 +0000)]
Update.

17 years agoActually creat tst-signal.out file when running the test.
drepper [Tue, 23 Jul 2002 00:36:39 +0000 (00:36 +0000)]
Actually creat tst-signal.out file when running the test.

17 years agopdate.
drepper [Tue, 23 Jul 2002 00:31:41 +0000 (00:31 +0000)]
pdate.

17 years agoRewrite to let test-skeleton.c deal with creation and removal of the temp file.
drepper [Tue, 23 Jul 2002 00:14:49 +0000 (00:14 +0000)]
Rewrite to let test-skeleton.c deal with creation and removal of the temp file.

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

17 years agoUse test skeleton. Use create_temp_file for file creation.
drepper [Mon, 22 Jul 2002 22:19:36 +0000 (22:19 +0000)]
Use test skeleton.  Use create_temp_file for file creation.

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

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

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

17 years ago.
roland [Mon, 22 Jul 2002 04:39:52 +0000 (04:39 +0000)]
.

17 years ago2002-07-21 Roland McGrath <roland@frob.com>
roland [Mon, 22 Jul 2002 04:39:37 +0000 (04:39 +0000)]
2002-07-21  Roland McGrath  <roland@frob.com>

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

17 years ago.
roland [Mon, 22 Jul 2002 03:54:50 +0000 (03:54 +0000)]
.

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

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

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

17 years ago(__ASSUME_AT_XID): Define for 2.4.1 and up.
drepper [Sat, 20 Jul 2002 17:29:09 +0000 (17:29 +0000)]
(__ASSUME_AT_XID): Define for 2.4.1 and up.

17 years ago(HAVE_AUX_XID): Define if __ASSUME_AT_XID is defined.
drepper [Sat, 20 Jul 2002 17:28:42 +0000 (17:28 +0000)]
(HAVE_AUX_XID): Define if __ASSUME_AT_XID is defined.

17 years ago(_dl_sysdep_start): Optimize handling of AT_UID, AT_EUID, AT_GID, and AT_EGID.
drepper [Sat, 20 Jul 2002 17:28:08 +0000 (17:28 +0000)]
(_dl_sysdep_start): Optimize handling of AT_UID, AT_EUID, AT_GID, and AT_EGID.

17 years agoUpdate.
drepper [Sat, 20 Jul 2002 16:19:49 +0000 (16:19 +0000)]
Update.

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

17 years ago(__rlimit_resource_t, __rusage_who_t, __priority_which_t): Always
drepper [Sat, 20 Jul 2002 03:58:14 +0000 (03:58 +0000)]
(__rlimit_resource_t, __rusage_who_t, __priority_which_t): Always
typedef to int for C++.

17 years agoUnified S390 route.h.
drepper [Sat, 20 Jul 2002 01:19:43 +0000 (01:19 +0000)]
Unified S390 route.h.

17 years agoUpdate.
drepper [Sat, 20 Jul 2002 01:14:41 +0000 (01:14 +0000)]
Update.

17 years agoUnify SETUP_PIC_REG definitions. If USE_TLS && HAVE___THREAD store
drepper [Sat, 20 Jul 2002 01:12:24 +0000 (01:12 +0000)]
Unify SETUP_PIC_REG definitions.  If USE_TLS && HAVE___THREAD store
errooor value using TLS code sequence.

17 years agoDefine errno in .tbss if USE_TLS && HAVE___THREAD.
drepper [Sat, 20 Jul 2002 01:10:34 +0000 (01:10 +0000)]
Define errno in .tbss if USE_TLS && HAVE___THREAD.

17 years agoNo real need to restore errno.
drepper [Sat, 20 Jul 2002 01:09:37 +0000 (01:09 +0000)]
No real need to restore errno.

17 years ago(elf_machine_rela) [RTLD_BOOTSTRAP]: Don't use GL(dl_rtld_map), use map
drepper [Sat, 20 Jul 2002 01:06:52 +0000 (01:06 +0000)]
(elf_machine_rela) [RTLD_BOOTSTRAP]: Don't use GL(dl_rtld_map), use map
parameter.

17 years ago(elf_machine_rel) [RTLD_BOOTSTRAP]: Don't use GL(dl_rtld_map), use map
drepper [Sat, 20 Jul 2002 01:05:28 +0000 (01:05 +0000)]
(elf_machine_rel) [RTLD_BOOTSTRAP]: Don't use GL(dl_rtld_map), use map
parameter.

17 years agoRemove __set_errno definition.
drepper [Sat, 20 Jul 2002 01:01:59 +0000 (01:01 +0000)]
Remove __set_errno definition.

17 years agoDefine errno as thread-local variable if USE_TLS && HAVE___THREAD.
drepper [Sat, 20 Jul 2002 00:58:12 +0000 (00:58 +0000)]
Define errno as thread-local variable if USE_TLS && HAVE___THREAD.

17 years agoUpdate.
drepper [Sat, 20 Jul 2002 00:54:17 +0000 (00:54 +0000)]
Update.

17 years agoProtect C code with #ifndef ASSEMBLER.
drepper [Sat, 20 Jul 2002 00:52:55 +0000 (00:52 +0000)]
Protect C code with #ifndef ASSEMBLER.

17 years ago(__errno_location): Don't define unless !USE_TLS || !HAVE___THREAD.
drepper [Sat, 20 Jul 2002 00:49:54 +0000 (00:49 +0000)]
(__errno_location): Don't define unless !USE_TLS || !HAVE___THREAD.

17 years ago(_dl_start): Add code to initialize TLS for ld.so from...
drepper [Sat, 20 Jul 2002 00:48:21 +0000 (00:48 +0000)]
(_dl_start): Add code to initialize TLS for ld.so from...
(_dl_start_final): ...here.  Add code to initialize tls elements from
bootstrap_map.

17 years agoInclude <tls.h>. Define errno as thread-local variable if USE_TLS &&
drepper [Sat, 20 Jul 2002 00:45:58 +0000 (00:45 +0000)]
Include <tls.h>.  Define errno as thread-local variable if USE_TLS &&
HAVE___THREAD.  Don't define __errno_location either.

17 years agoNow an internal header. Define __set_errno.
drepper [Sat, 20 Jul 2002 00:43:40 +0000 (00:43 +0000)]
Now an internal header.  Define __set_errno.

17 years ago(headers): Add errno.h, sys/errno.h, and bits/errno.h.
drepper [Sat, 20 Jul 2002 00:43:15 +0000 (00:43 +0000)]
(headers): Add errno.h, sys/errno.h, and bits/errno.h.

17 years agoStandard ISO C errno.h header.
drepper [Sat, 20 Jul 2002 00:42:22 +0000 (00:42 +0000)]
Standard ISO C errno.h header.

17 years agoCompatibility header.
drepper [Sat, 20 Jul 2002 00:40:29 +0000 (00:40 +0000)]
Compatibility header.

17 years ago(headers): Remove errno.h, sys/errno.h, and bits/errno.h.
drepper [Sat, 20 Jul 2002 00:39:08 +0000 (00:39 +0000)]
(headers): Remove errno.h, sys/errno.h, and bits/errno.h.

17 years agoAdd HAVE___THREAD.
drepper [Sat, 20 Jul 2002 00:37:05 +0000 (00:37 +0000)]
Add HAVE___THREAD.

17 years agoRegenerated.
drepper [Sat, 20 Jul 2002 00:35:47 +0000 (00:35 +0000)]
Regenerated.

17 years agoAdd test for __thread support in compiler.
drepper [Sat, 20 Jul 2002 00:34:54 +0000 (00:34 +0000)]
Add test for __thread support in compiler.

18 years agoUpdate.
drepper [Wed, 17 Jul 2002 23:44:03 +0000 (23:44 +0000)]
Update.

18 years agoFix MS_SYNC and MS_INVALIDATE values.
drepper [Wed, 17 Jul 2002 23:39:20 +0000 (23:39 +0000)]
Fix MS_SYNC and MS_INVALIDATE values.

18 years agoUpdate.
drepper [Wed, 17 Jul 2002 20:44:55 +0000 (20:44 +0000)]
Update.

18 years agoSign extend offset.
drepper [Wed, 17 Jul 2002 20:42:55 +0000 (20:42 +0000)]
Sign extend offset.

18 years agoUpdate.
drepper [Wed, 17 Jul 2002 00:34:35 +0000 (00:34 +0000)]
Update.

18 years ago(circlemod3): Return int.
drepper [Wed, 17 Jul 2002 00:32:54 +0000 (00:32 +0000)]
(circlemod3): Return int.
(circlemod3a): A new function.

18 years ago(circlemod2): Return int.
drepper [Wed, 17 Jul 2002 00:32:23 +0000 (00:32 +0000)]
(circlemod2): Return int.