9b84721494
used to get and set the thread user value, which is an opaque pointer to a per thread structure stored in userland. cthread_self() is used by Darwin as an implementation for pthread_self(), which return the thread id. We use the p_emuldata field of struct proc in order to keep track of the thread user value. For now the value is per-process, but we will make it per-thread when we will take care of threading. While we are there, do some KNF |
||
---|---|---|
.. | ||
darwin_exec.c | ||
darwin_exec.h | ||
darwin_mman.c | ||
darwin_signal.c | ||
darwin_signal.h | ||
darwin_syscall.h | ||
darwin_syscallargs.h | ||
darwin_syscalls.c | ||
darwin_sysctl.c | ||
darwin_sysctl.h | ||
darwin_sysent.c | ||
files.darwin | ||
Makefile | ||
syscalls.conf | ||
syscalls.master |