kopensolaris-gnu/glibc.git
13 years ago.
drepper [Sun, 27 May 2007 18:56:02 +0000 (18:56 +0000)]
.

13 years agoChange main futex to use private operations if possible.
drepper [Sun, 27 May 2007 18:55:56 +0000 (18:55 +0000)]
Change main futex to use private operations if possible.

13 years ago(__pthread_rwlock_unlock): Problem in last checkin, re relied on
drepper [Sun, 27 May 2007 18:42:45 +0000 (18:42 +0000)]
(__pthread_rwlock_unlock): Problem in last checkin, re relied on
unspecified register content.

13 years ago.
drepper [Sun, 27 May 2007 18:06:18 +0000 (18:06 +0000)]
.

13 years agoChange main futex to use private operations if possible.
drepper [Sun, 27 May 2007 18:06:10 +0000 (18:06 +0000)]
Change main futex to use private operations if possible.

13 years agoDefine FUTEX_PRIVATE_FLAG.
drepper [Sun, 27 May 2007 18:04:44 +0000 (18:04 +0000)]
Define FUTEX_PRIVATE_FLAG.

13 years agoAdd PSHARED.
drepper [Sun, 27 May 2007 18:04:02 +0000 (18:04 +0000)]
Add PSHARED.

13 years agoAdjust rwlock initializers.
drepper [Sun, 27 May 2007 18:03:27 +0000 (18:03 +0000)]
Adjust rwlock initializers.

13 years ago[__WORDSIZE=32]: Split __flags element into four byte elements. One
drepper [Sun, 27 May 2007 18:02:09 +0000 (18:02 +0000)]
[__WORDSIZE=32]: Split __flags element into four byte elements.  One
of them is the new __shared element.
[__WORDSIZE=64]: Renamed __pad1 element to __shared, adjust names of
other padding elements.

13 years agoSplit __flags element into four byte elements. One of them is the new
drepper [Sun, 27 May 2007 18:00:12 +0000 (18:00 +0000)]
Split __flags element into four byte elements.  One of them is the new
__shared element.

13 years agoAlso initialize __shared field.
drepper [Sun, 27 May 2007 17:58:50 +0000 (17:58 +0000)]
Also initialize __shared field.

13 years agoShow through exit code which test failed.
drepper [Sun, 27 May 2007 17:57:02 +0000 (17:57 +0000)]
Show through exit code which test failed.

13 years agoMake it compile with older kernel headers.
drepper [Sun, 27 May 2007 17:56:24 +0000 (17:56 +0000)]
Make it compile with older kernel headers.

13 years ago(allocate_stack): One more undo.
drepper [Sun, 27 May 2007 08:15:17 +0000 (08:15 +0000)]
(allocate_stack): One more undo.

13 years ago(__pthread_initialize_minimal_internal): Really use original efficient code.
drepper [Sun, 27 May 2007 07:56:51 +0000 (07:56 +0000)]
(__pthread_initialize_minimal_internal): Really use original efficient code.

13 years agoRevert last change.
drepper [Sun, 27 May 2007 07:49:58 +0000 (07:49 +0000)]
Revert last change.

13 years ago.
drepper [Sat, 26 May 2007 22:11:42 +0000 (22:11 +0000)]
.

13 years agoUse PTHREAD_RWLOCK_PREFER_READER_P.
drepper [Sat, 26 May 2007 22:11:31 +0000 (22:11 +0000)]
Use PTHREAD_RWLOCK_PREFER_READER_P.

13 years ago(PTHREAD_RWLOCK_PREFER_READER_P): Define.
drepper [Sat, 26 May 2007 22:10:26 +0000 (22:10 +0000)]
(PTHREAD_RWLOCK_PREFER_READER_P): Define.

13 years ago.
drepper [Sat, 26 May 2007 21:47:28 +0000 (21:47 +0000)]
.

13 years ago(sem_trywait): Tiny optimization.
drepper [Sat, 26 May 2007 21:47:20 +0000 (21:47 +0000)]
(sem_trywait): Tiny optimization.

13 years ago.
drepper [Sat, 26 May 2007 20:13:27 +0000 (20:13 +0000)]
.

13 years agoAdd PRIVATE_FUTEX_OFFSET.
drepper [Sat, 26 May 2007 20:13:18 +0000 (20:13 +0000)]
Add PRIVATE_FUTEX_OFFSET.

13 years agoRemoved left-over duplication of __sem_wait_cleanup.
drepper [Sat, 26 May 2007 20:12:35 +0000 (20:12 +0000)]
Removed left-over duplication of __sem_wait_cleanup.

13 years agoAdd missing break.
drepper [Sat, 26 May 2007 20:11:44 +0000 (20:11 +0000)]
Add missing break.

13 years agoRevert last change.
drepper [Sat, 26 May 2007 20:11:15 +0000 (20:11 +0000)]
Revert last change.

13 years agoRevert last change.
drepper [Sat, 26 May 2007 20:10:21 +0000 (20:10 +0000)]
Revert last change.

13 years ago[TLS_DTV_AT_TP] (struct pthread): Add private_futex field to header structure.
drepper [Sat, 26 May 2007 20:09:57 +0000 (20:09 +0000)]
[TLS_DTV_AT_TP] (struct pthread): Add private_futex field to header structure.

13 years agoRevert last change.
drepper [Sat, 26 May 2007 20:08:27 +0000 (20:08 +0000)]
Revert last change.

13 years ago.
drepper [Sat, 26 May 2007 20:07:35 +0000 (20:07 +0000)]
.

13 years agoInclude <sysdep.h>.
drepper [Sat, 26 May 2007 20:07:13 +0000 (20:07 +0000)]
Include <sysdep.h>.

13 years ago.
drepper [Sat, 26 May 2007 16:19:15 +0000 (16:19 +0000)]
.

13 years agoUse private field in futex command setup.
drepper [Sat, 26 May 2007 16:19:08 +0000 (16:19 +0000)]
Use private field in futex command setup.

13 years agoAdd PRIVATE definition.
drepper [Sat, 26 May 2007 16:18:57 +0000 (16:18 +0000)]
Add PRIVATE definition.

13 years ago(struct pthread_barrier): Add private field.
drepper [Sat, 26 May 2007 16:18:47 +0000 (16:18 +0000)]
(struct pthread_barrier): Add private field.

13 years agoSet private flag if pshared and private futexes are supported.
drepper [Sat, 26 May 2007 16:18:35 +0000 (16:18 +0000)]
Set private flag if pshared and private futexes are supported.

13 years ago.
drepper [Sat, 26 May 2007 04:49:06 +0000 (04:49 +0000)]
.

13 years agoAdd private futex support.
drepper [Sat, 26 May 2007 04:48:58 +0000 (04:48 +0000)]
Add private futex support.

13 years ago.
drepper [Sat, 26 May 2007 01:31:40 +0000 (01:31 +0000)]
.

13 years agoIndicate that there are waiters.
drepper [Sat, 26 May 2007 01:31:31 +0000 (01:31 +0000)]
Indicate that there are waiters.

13 years agoWake only when there are waiters.
drepper [Sat, 26 May 2007 01:31:11 +0000 (01:31 +0000)]
Wake only when there are waiters.

13 years agoRename struct sem to struct new_sem. Add struct old_sem.
drepper [Sat, 26 May 2007 01:30:46 +0000 (01:30 +0000)]
Rename struct sem to struct new_sem.  Add struct old_sem.

13 years ago[subdir=nptl] (gen-as-const-headers): Add structsem.sym.
drepper [Sat, 26 May 2007 01:30:30 +0000 (01:30 +0000)]
[subdir=nptl] (gen-as-const-headers): Add structsem.sym.

13 years ago(tests): Add tst-sem10, tst-sem11, tst-sem12.
drepper [Sat, 26 May 2007 01:30:09 +0000 (01:30 +0000)]
(tests): Add tst-sem10, tst-sem11, tst-sem12.

13 years agoTest struct new_sem and struct old_sem instead of struct sem.
drepper [Sat, 26 May 2007 01:29:58 +0000 (01:29 +0000)]
Test struct new_sem and struct old_sem instead of struct sem.

13 years agoAdjust for renamed element.
drepper [Sat, 26 May 2007 01:29:25 +0000 (01:29 +0000)]
Adjust for renamed element.

13 years agoInitialize all fields of the structure.
drepper [Sat, 26 May 2007 01:29:13 +0000 (01:29 +0000)]
Initialize all fields of the structure.

13 years ago(__new_sem_init): Rewrite to initialize all three fields in the structure.
drepper [Sat, 26 May 2007 01:29:04 +0000 (01:29 +0000)]
(__new_sem_init): Rewrite to initialize all three fields in the structure.
(__old_sem_init): New function.

13 years agoDeclare __old_sem_init and __old_sem_wait.
drepper [Sat, 26 May 2007 01:27:57 +0000 (01:27 +0000)]
Declare __old_sem_init and __old_sem_wait.

13 years agoOffsets into struct new_sem.
drepper [Sat, 26 May 2007 01:24:50 +0000 (01:24 +0000)]
Offsets into struct new_sem.

13 years agoTest of semaphores.
drepper [Sat, 26 May 2007 01:23:04 +0000 (01:23 +0000)]
Test of semaphores.

13 years ago * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S (sem_timedwait):
jakub [Fri, 25 May 2007 19:27:03 +0000 (19:27 +0000)]
* sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S (sem_timedwait):
Move __pthread_enable_asynccancel right before futex syscall.
* sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S (sem_timedwait):
Likewise.

13 years ago.
drepper [Fri, 25 May 2007 14:41:55 +0000 (14:41 +0000)]
.

13 years ago(__open_2): Add nonnull attribute.
drepper [Fri, 25 May 2007 14:41:52 +0000 (14:41 +0000)]
(__open_2): Add nonnull attribute.
(open): Fix comment typos.  Don't call __open_2 if flags
is a compile time constant without O_CREAT.
(__open64_2): Add nonnull attribute.
(open64): Fix comment typos.  Don't call __open64_2 if flags
is a compile time constant without O_CREAT.
(__openat_2): Add nonnull attribute, fix nonnull attribute
on redirect.
(openat): Fix comment typos.  Don't call __openat_2 if flags
is a compile time constant without O_CREAT.
(__openat64_2): Add nonnull attribute, fix nonnull attribute
on redirect.
(openat64): Fix comment typos.  Don't call __openat64_2 if flags
is a compile time constant without O_CREAT.

13 years ago(__pthread_initialize_minimal_internal): Fix last patch.
drepper [Fri, 25 May 2007 06:18:19 +0000 (06:18 +0000)]
(__pthread_initialize_minimal_internal): Fix last patch.

13 years ago.
drepper [Fri, 25 May 2007 05:24:16 +0000 (05:24 +0000)]
.

13 years ago(__pthread_initialize_minimal_internal): Use THREAD_SET_PRIVATE_FUTEX.
drepper [Fri, 25 May 2007 05:23:26 +0000 (05:23 +0000)]
(__pthread_initialize_minimal_internal): Use THREAD_SET_PRIVATE_FUTEX.

13 years ago(allocate_stack): Use THREAD_COPY_PRIVATE_FUTEX.
drepper [Fri, 25 May 2007 05:23:16 +0000 (05:23 +0000)]
(allocate_stack): Use THREAD_COPY_PRIVATE_FUTEX.

13 years ago(THREAD_SET_PRIVATE_FUTEX, THREAD_COPY_PRIVATE_FUTEX): Define.
drepper [Fri, 25 May 2007 05:23:03 +0000 (05:23 +0000)]
(THREAD_SET_PRIVATE_FUTEX, THREAD_COPY_PRIVATE_FUTEX): Define.

13 years ago.
drepper [Fri, 25 May 2007 05:21:07 +0000 (05:21 +0000)]
.

13 years ago(__wait_lookup_done): Use THREAD_GSCOPE_GET_FLAG instead of
drepper [Fri, 25 May 2007 05:20:38 +0000 (05:20 +0000)]
(__wait_lookup_done): Use THREAD_GSCOPE_GET_FLAG instead of
->header.gscope_flag directly.

13 years ago(THREAD_GSCOPE_GET_FLAG): Define.
drepper [Fri, 25 May 2007 05:20:20 +0000 (05:20 +0000)]
(THREAD_GSCOPE_GET_FLAG): Define.

13 years ago(THREAD_GSCOPE_WAIT): Don't use PTR_DEMANGLE.
drepper [Fri, 25 May 2007 05:20:10 +0000 (05:20 +0000)]
(THREAD_GSCOPE_WAIT): Don't use PTR_DEMANGLE.
(THREAD_GSCOPE_GET_FLAG): Define.

13 years ago(tcbhead_t): Add gscope_flag.
drepper [Fri, 25 May 2007 05:19:50 +0000 (05:19 +0000)]
(tcbhead_t): Add gscope_flag.
(THREAD_GSCOPE_FLAG_UNUSED, THREAD_GSCOPE_FLAG_USED,
THREAD_GSCOPE_FLAG_WAIT): Define.
(THREAD_GSCOPE_GET_FLAG, THREAD_GSCOPE_SET_FLAG,
THREAD_GSCOPE_RESET_FLAG, THREAD_GSCOPE_WAIT): Define.

13 years ago(__open64_2): Make syscall directly.
drepper [Fri, 25 May 2007 00:25:57 +0000 (00:25 +0000)]
(__open64_2): Make syscall directly.

13 years agoAdd some parenthesis.
drepper [Fri, 25 May 2007 00:18:57 +0000 (00:18 +0000)]
Add some parenthesis.

13 years ago.
drepper [Thu, 24 May 2007 23:55:28 +0000 (23:55 +0000)]
.

13 years ago__open_2 implementation for Linux.
drepper [Thu, 24 May 2007 23:55:22 +0000 (23:55 +0000)]
__open_2 implementation for Linux.

13 years ago[subdir=io] (sysdep_routines): Add open_2.
drepper [Thu, 24 May 2007 23:54:58 +0000 (23:54 +0000)]
[subdir=io] (sysdep_routines): Add open_2.

13 years agoFirtification definitions for fcntl.h.
drepper [Thu, 24 May 2007 23:54:15 +0000 (23:54 +0000)]
Firtification definitions for fcntl.h.

13 years agoDefine *_2 variant of function which checks for O_CREAT and fails if necessary.
drepper [Thu, 24 May 2007 23:53:48 +0000 (23:53 +0000)]
Define *_2 variant of function which checks for O_CREAT and fails if necessary.

13 years agoWhen compiling with fortification, include bits/fcntl2.h.
drepper [Thu, 24 May 2007 23:52:00 +0000 (23:52 +0000)]
When compiling with fortification, include bits/fcntl2.h.

13 years agoExport __open_2, __open64_2, __openat_2, and __openat64_2 for GLIBC_2.7.
drepper [Thu, 24 May 2007 23:50:48 +0000 (23:50 +0000)]
Export __open_2, __open64_2, __openat_2, and __openat64_2 for GLIBC_2.7.

13 years agoForwarding header for io/bits/fcntl2.h.
drepper [Thu, 24 May 2007 23:49:54 +0000 (23:49 +0000)]
Forwarding header for io/bits/fcntl2.h.

13 years agoDeclare __open_2, __open64_2, __openat_2, and __openat64_2.
drepper [Thu, 24 May 2007 23:49:12 +0000 (23:49 +0000)]
Declare __open_2, __open64_2, __openat_2, and __openat64_2.

13 years ago(routines): Add fortify_fail.
drepper [Thu, 24 May 2007 23:47:43 +0000 (23:47 +0000)]
(routines): Add fortify_fail.

13 years agoUse __fortify_fail.
drepper [Thu, 24 May 2007 23:47:08 +0000 (23:47 +0000)]
Use __fortify_fail.

13 years agoImplement __fortify_fail.
drepper [Thu, 24 May 2007 23:46:23 +0000 (23:46 +0000)]
Implement __fortify_fail.

13 years agoDeclare __fortify_fail.
drepper [Thu, 24 May 2007 23:46:01 +0000 (23:46 +0000)]
Declare __fortify_fail.

13 years agoDefine GLIBC_2.7 for libc.
drepper [Thu, 24 May 2007 23:45:15 +0000 (23:45 +0000)]
Define GLIBC_2.7 for libc.

13 years ago(sysd-rules): Define PTW for ptw-* files.
drepper [Thu, 24 May 2007 23:44:21 +0000 (23:44 +0000)]
(sysd-rules): Define PTW for ptw-* files.

13 years ago.
drepper [Wed, 23 May 2007 20:51:45 +0000 (20:51 +0000)]
.

13 years agoAdjust so that change in libc-lowlevellock.S allow using private futexes.
drepper [Wed, 23 May 2007 20:51:35 +0000 (20:51 +0000)]
Adjust so that change in libc-lowlevellock.S allow using private futexes.

13 years agoUse private futexes if they are available.
drepper [Wed, 23 May 2007 20:51:19 +0000 (20:51 +0000)]
Use private futexes if they are available.

13 years agoUse private futexes if they are available.
drepper [Wed, 23 May 2007 20:50:58 +0000 (20:50 +0000)]
Use private futexes if they are available.

13 years agoDefine FUTEX_PRIVATE_FLAG.
drepper [Wed, 23 May 2007 20:50:37 +0000 (20:50 +0000)]
Define FUTEX_PRIVATE_FLAG.

13 years ago(tcbhead_t): Add private_futex field.
drepper [Wed, 23 May 2007 20:50:15 +0000 (20:50 +0000)]
(tcbhead_t): Add private_futex field.

13 years agoAdd PRIVATE_FUTEX.
drepper [Wed, 23 May 2007 20:49:55 +0000 (20:49 +0000)]
Add PRIVATE_FUTEX.

13 years ago(__pthread_initialize_minimal_internal): Check whether private futexes
drepper [Wed, 23 May 2007 20:49:29 +0000 (20:49 +0000)]
(__pthread_initialize_minimal_internal): Check whether private futexes
are available.

13 years ago.
drepper [Mon, 21 May 2007 22:38:06 +0000 (22:38 +0000)]
.

13 years ago(init_cacheinfo): Pass correct value as second parameter to handle_intel.
drepper [Mon, 21 May 2007 22:37:45 +0000 (22:37 +0000)]
(init_cacheinfo): Pass correct value as second parameter to handle_intel.

13 years ago.
drepper [Mon, 21 May 2007 22:32:14 +0000 (22:32 +0000)]
.

13 years ago(struct pthread_functions): Remove ptr_wait_lookup_done again.
drepper [Mon, 21 May 2007 22:31:01 +0000 (22:31 +0000)]
(struct pthread_functions): Remove ptr_wait_lookup_done again.

13 years ago(__libc_pthread_init): Remove code to code _dl_wait_lookup_done.
drepper [Mon, 21 May 2007 22:30:33 +0000 (22:30 +0000)]
(__libc_pthread_init): Remove code to code _dl_wait_lookup_done.

13 years ago(THREAD_GSCOPE_WAIT): The pointer is not encrypted for now.
drepper [Mon, 21 May 2007 22:30:13 +0000 (22:30 +0000)]
(THREAD_GSCOPE_WAIT): The pointer is not encrypted for now.

13 years ago(pthread_functions): Don't add .ptr_wait_lookup_done here.
drepper [Mon, 21 May 2007 22:29:51 +0000 (22:29 +0000)]
(pthread_functions): Don't add .ptr_wait_lookup_done here.
(__pthread_initialize_minimal_internal): Initialize
_dl_wait_lookup_done pointer in _rtld_global directly.

13 years ago * tst-robust9.c (do_test): Don't fail if ENABLE_PI and
jakub [Mon, 21 May 2007 22:12:40 +0000 (22:12 +0000)]
* tst-robust9.c (do_test): Don't fail if ENABLE_PI and
pthread_mutex_init failed with ENOTSUP.

13 years ago.
drepper [Mon, 21 May 2007 21:23:18 +0000 (21:23 +0000)]
.

13 years ago(addhstaiX): If reported TTL is zero don't cache the entry.
drepper [Mon, 21 May 2007 21:23:08 +0000 (21:23 +0000)]
(addhstaiX): If reported TTL is zero don't cache the entry.

13 years ago.
drepper [Mon, 21 May 2007 19:21:48 +0000 (19:21 +0000)]
.