Changeset View
Changeset View
Standalone View
Standalone View
head/libexec/rtld-elf/rtld_lock.c
Show First 20 Lines • Show All 178 Lines • ▼ Show 20 Lines | |||||
static __inline void | static __inline void | ||||
thread_mask_clear(int mask) | thread_mask_clear(int mask) | ||||
{ | { | ||||
lockinfo.thread_clr_flag(mask); | lockinfo.thread_clr_flag(mask); | ||||
} | } | ||||
#define RTLD_LOCK_CNT 3 | #define RTLD_LOCK_CNT 3 | ||||
struct rtld_lock { | static struct rtld_lock { | ||||
void *handle; | void *handle; | ||||
int mask; | int mask; | ||||
} rtld_locks[RTLD_LOCK_CNT]; | } rtld_locks[RTLD_LOCK_CNT]; | ||||
rtld_lock_t rtld_bind_lock = &rtld_locks[0]; | rtld_lock_t rtld_bind_lock = &rtld_locks[0]; | ||||
rtld_lock_t rtld_libc_lock = &rtld_locks[1]; | rtld_lock_t rtld_libc_lock = &rtld_locks[1]; | ||||
rtld_lock_t rtld_phdr_lock = &rtld_locks[2]; | rtld_lock_t rtld_phdr_lock = &rtld_locks[2]; | ||||
▲ Show 20 Lines • Show All 216 Lines • Show Last 20 Lines |