diff options
author | dfr <dfr@FreeBSD.org> | 2004-09-06 09:32:59 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 2004-09-06 09:32:59 +0000 |
commit | 865b03d47224cc64e921bbae5bcc5909b90a0294 (patch) | |
tree | 924bbf2be9b08ae6e8e12eb649045360fa962978 /sys/i386/linux/linux_machdep.c | |
parent | 91180c0a8cec56a5b3f52158ed240314737edc1b (diff) | |
download | FreeBSD-src-865b03d47224cc64e921bbae5bcc5909b90a0294.zip FreeBSD-src-865b03d47224cc64e921bbae5bcc5909b90a0294.tar.gz |
Add a few stub syscalls to get TransGaming's winex a bit closer to
working.
Diffstat (limited to 'sys/i386/linux/linux_machdep.c')
-rw-r--r-- | sys/i386/linux/linux_machdep.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/sys/i386/linux/linux_machdep.c b/sys/i386/linux/linux_machdep.c index 0e2786c..4d334ba 100644 --- a/sys/i386/linux/linux_machdep.c +++ b/sys/i386/linux/linux_machdep.c @@ -37,6 +37,7 @@ __FBSDID("$FreeBSD$"); #include <sys/proc.h> #include <sys/resource.h> #include <sys/resourcevar.h> +#include <sys/signalvar.h> #include <sys/syscallsubr.h> #include <sys/sysproto.h> #include <sys/unistd.h> @@ -828,3 +829,29 @@ linux_ftruncate64(struct thread *td, struct linux_ftruncate64_args *args) sa.length = args->length; return ftruncate(td, &sa); } + +int +linux_set_thread_area(struct thread *td, struct linux_set_thread_area_args *args) +{ + /* + * Return an error code instead of raising a SIGSYS so that + * the caller will fall back to simpler LDT methods. + */ + return (ENOSYS); +} + +int +linux_gettid(struct thread *td, struct linux_gettid_args *args) +{ + + td->td_retval[0] = td->td_proc->p_pid; + return (0); +} + +int +linux_tkill(struct thread *td, struct linux_tkill_args *args) +{ + + return (linux_kill(td, (struct linux_kill_args *) args)); +} + |