From d36b6263c78e886aee411f889cca255d0fbda09c Mon Sep 17 00:00:00 2001 From: pirofti Date: Fri, 8 Jun 2012 14:28:23 +0000 Subject: Remove the lack of gettid() implementation. Okay tedu@ Looks right to jasper@ as well. --- sys/compat/linux/linux_misc.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'sys/compat/linux/linux_misc.c') 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; -- cgit v1.2.3-59-g8ed1b