summaryrefslogtreecommitdiffstats
path: root/include/sys/thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sys/thread.h')
-rw-r--r--include/sys/thread.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sys/thread.h b/include/sys/thread.h
index 369b3061d..864a74bba 100644
--- a/include/sys/thread.h
+++ b/include/sys/thread.h
@@ -51,6 +51,8 @@ typedef void (*thread_func_t)(void *);
#define thread_exit() __thread_exit()
#define thread_join(t) VERIFY(0)
#define curthread current
+#define getcomm() current->comm
+#define getpid() current->pid
extern kthread_t *__thread_create(caddr_t stk, size_t stksize,
thread_func_t func, const char *name,