mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-22 10:50:07 +00:00
421665c40a
The syscall wrappers had to save and restore the syscall parameter values and return value when calling the functions to enable/disable cancellation were called. Not anymore. The called functions are special and don't modify any unexpected registers.
29 lines
1.1 KiB
Plaintext
29 lines
1.1 KiB
Plaintext
#include <sysdep.h>
|
|
#include <tls.h>
|
|
|
|
RESULT offsetof (struct pthread, result)
|
|
TID offsetof (struct pthread, tid)
|
|
PID offsetof (struct pthread, pid)
|
|
CANCELHANDLING offsetof (struct pthread, cancelhandling)
|
|
CLEANUP_JMP_BUF offsetof (struct pthread, cleanup_jmp_buf)
|
|
CLEANUP offsetof (struct pthread, cleanup)
|
|
CLEANUP_PREV offsetof (struct _pthread_cleanup_buffer, __prev)
|
|
MUTEX_FUTEX offsetof (pthread_mutex_t, __data.__lock)
|
|
MULTIPLE_THREADS_OFFSET offsetof (tcbhead_t, multiple_threads)
|
|
POINTER_GUARD offsetof (tcbhead_t, pointer_guard)
|
|
VGETCPU_CACHE_OFFSET offsetof (tcbhead_t, vgetcpu_cache)
|
|
#ifndef __ASSUME_PRIVATE_FUTEX
|
|
PRIVATE_FUTEX offsetof (tcbhead_t, private_futex)
|
|
#endif
|
|
RTLD_SAVESPACE_SSE offsetof (tcbhead_t, rtld_savespace_sse)
|
|
|
|
-- Not strictly offsets, but these values are also used in the TCB.
|
|
TCB_CANCELSTATE_BITMASK CANCELSTATE_BITMASK
|
|
TCB_CANCELTYPE_BITMASK CANCELTYPE_BITMASK
|
|
TCB_CANCELING_BITMASK CANCELING_BITMASK
|
|
TCB_CANCELED_BITMASK CANCELED_BITMASK
|
|
TCB_EXITING_BITMASK EXITING_BITMASK
|
|
TCB_CANCEL_RESTMASK CANCEL_RESTMASK
|
|
TCB_TERMINATED_BITMASK TERMINATED_BITMASK
|
|
TCB_PTHREAD_CANCELED PTHREAD_CANCELED
|