summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_misc.c
diff options
context:
space:
mode:
authorpirofti <pirofti@openbsd.org>2012-06-08 14:28:23 +0000
committerpirofti <pirofti@openbsd.org>2012-06-08 14:28:23 +0000
commitd36b6263c78e886aee411f889cca255d0fbda09c (patch)
treec38d5f97451d129850157de302f3a5b57a671a4f /sys/compat/linux/linux_misc.c
parentAdd checks for command line input (or the TOP environment var) (diff)
downloadwireguard-openbsd-d36b6263c78e886aee411f889cca255d0fbda09c.tar.xz
wireguard-openbsd-d36b6263c78e886aee411f889cca255d0fbda09c.zip
Remove the lack of gettid() implementation. Okay tedu@
Looks right to jasper@ as well.
Diffstat (limited to 'sys/compat/linux/linux_misc.c')
-rw-r--r--sys/compat/linux/linux_misc.c9
1 files changed, 8 insertions, 1 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;