Index: uspace/libc/include/thread.h
===================================================================
--- uspace/libc/include/thread.h	(revision 3dbe2d1f2cf929c94b37e1ae26508eaac53ad4f6)
+++ uspace/libc/include/thread.h	(revision de33dab3d6e266b32bfcf983b683fc6d18b2ac72)
@@ -40,12 +40,14 @@
 #include <types.h>
 
+typedef uint64_t thread_id_t;
+
 extern void __thread_entry(void);
 extern void __thread_main(uspace_arg_t *uarg);
 
-extern int thread_create(void (* function)(void *arg), void *arg, char *name);
+extern int thread_create(void (* function)(void *), void *arg, char *name, thread_id_t *tid);
 extern void thread_exit(int status);
-extern void thread_detach(int thread);
-extern int thread_join(int thread);
-extern int thread_get_id(void);
+extern void thread_detach(thread_id_t thread);
+extern int thread_join(thread_id_t thread);
+extern thread_id_t thread_get_id(void);
 extern tcb_t * __make_tls(void);
 extern tcb_t * __alloc_tls(void **data, size_t size);
