Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: syssrc/sys/compat
Module Name: syssrc
Committed By: manu
Date: Sat Dec 7 15:33:04 UTC 2002
Modified Files:
syssrc/sys/compat/darwin: darwin_exec.c darwin_exec.h
syssrc/sys/compat/mach: mach_exec.c mach_exec.h mach_types.h
syssrc/sys/compat/mach/arch/powerpc/fasttraps: mach_fasttraps_syscall.h
mach_fasttraps_syscallargs.h mach_fasttraps_syscalls.c
mach_fasttraps_sysent.c mach_fasttraps_thread.c syscalls.master
Log Message:
Added implementation for cthread_self() and cthread_set_self(). Theses are
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
To generate a diff of this commit:
cvs rdiff -r1.6 -r1.7 syssrc/sys/compat/darwin/darwin_exec.c
cvs rdiff -r1.2 -r1.3 syssrc/sys/compat/darwin/darwin_exec.h
cvs rdiff -r1.12 -r1.13 syssrc/sys/compat/mach/mach_exec.c
cvs rdiff -r1.5 -r1.6 syssrc/sys/compat/mach/mach_exec.h
cvs rdiff -r1.7 -r1.8 syssrc/sys/compat/mach/mach_types.h
cvs rdiff -r1.1 -r1.2 \
syssrc/sys/compat/mach/arch/powerpc/fasttraps/mach_fasttraps_syscall.h \
syssrc/sys/compat/mach/arch/powerpc/fasttraps/mach_fasttraps_syscallargs.h \
syssrc/sys/compat/mach/arch/powerpc/fasttraps/mach_fasttraps_syscalls.c \
syssrc/sys/compat/mach/arch/powerpc/fasttraps/mach_fasttraps_sysent.c \
syssrc/sys/compat/mach/arch/powerpc/fasttraps/mach_fasttraps_thread.c \
syssrc/sys/compat/mach/arch/powerpc/fasttraps/syscalls.master
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index