Changeset View
Changeset View
Standalone View
Standalone View
libexec/rtld-elf/rtld_lock.c
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | |||||
#include <sys/param.h> | #include <sys/param.h> | ||||
#include <signal.h> | #include <signal.h> | ||||
#include <stdlib.h> | #include <stdlib.h> | ||||
#include <time.h> | #include <time.h> | ||||
#include "debug.h" | #include "debug.h" | ||||
#include "rtld.h" | #include "rtld.h" | ||||
#include "rtld_machdep.h" | #include "rtld_machdep.h" | ||||
#include "rtld_libc.h" | |||||
void _rtld_thread_init(struct RtldLockInfo *) __exported; | void _rtld_thread_init(struct RtldLockInfo *) __exported; | ||||
void _rtld_atfork_pre(int *) __exported; | void _rtld_atfork_pre(int *) __exported; | ||||
void _rtld_atfork_post(int *) __exported; | void _rtld_atfork_post(int *) __exported; | ||||
#define WAFLAG 0x1 /* A writer holds the lock */ | #define WAFLAG 0x1 /* A writer holds the lock */ | ||||
#define RC_INCR 0x2 /* Adjusts count of readers desiring lock */ | #define RC_INCR 0x2 /* Adjusts count of readers desiring lock */ | ||||
▲ Show 20 Lines • Show All 349 Lines • Show Last 20 Lines |