diff options
author | Paul Irofti <pirofti@cvs.openbsd.org> | 2012-06-08 14:28:24 +0000 |
---|---|---|
committer | Paul Irofti <pirofti@cvs.openbsd.org> | 2012-06-08 14:28:24 +0000 |
commit | bcda34d077c9eb9c58cc7d91af651c7b6db9afd0 (patch) | |
tree | 1c97f41e3fc871b9968e8b0f877a272d4c3f9eac /sys/compat | |
parent | e946225547cc058b112b16671384cec90befc2af (diff) |
Remove the lack of gettid() implementation. Okay tedu@
Looks right to jasper@ as well.
Diffstat (limited to 'sys/compat')
-rw-r--r-- | sys/compat/linux/linux_misc.c | 9 | ||||
-rw-r--r-- | sys/compat/linux/syscalls.master | 4 |
2 files changed, 10 insertions, 3 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index a8f59a41494..66395d67e6c 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_misc.c,v 1.78 2012/05/23 19:47:02 pirofti Exp $ */ +/* $OpenBSD: linux_misc.c,v 1.79 2012/06/08 14:28:23 pirofti Exp $ */ /* $NetBSD: linux_misc.c,v 1.27 1996/05/20 01:59:21 fvdl Exp $ */ /*- @@ -1493,6 +1493,13 @@ linux_sys_getpid(p, v, retval) return (0); } +linux_pid_t +linux_sys_gettid(struct proc *p, void *v, register_t *retval) +{ + *retval = p->p_pid + THREAD_PID_OFFSET; + return (0); +} + int linux_sys_getuid(p, v, retval) struct proc *p; diff --git a/sys/compat/linux/syscalls.master b/sys/compat/linux/syscalls.master index 5a7e44531ed..cab542c68df 100644 --- a/sys/compat/linux/syscalls.master +++ b/sys/compat/linux/syscalls.master @@ -1,4 +1,4 @@ - $OpenBSD: syscalls.master,v 1.68 2012/05/23 19:47:02 pirofti Exp $ + $OpenBSD: syscalls.master,v 1.69 2012/06/08 14:28:23 pirofti Exp $ ; $NetBSD: syscalls.master,v 1.15 1995/12/18 14:35:10 fvdl Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -366,7 +366,7 @@ void *arg); } 222 UNIMPL 223 UNIMPL -224 UNIMPL linux_sys_gettid +224 STD { linux_pid_t linux_sys_gettid(void); } 225 UNIMPL linux_sys_readahead 226 NOARGS { int linux_sys_setxattr(void); } 227 NOARGS { int linux_sys_lsetxattr(void); } |