aboutsummaryrefslogtreecommitdiff
path: root/src/lib9/ffork-pthread.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib9/ffork-pthread.c')
-rw-r--r--src/lib9/ffork-pthread.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/lib9/ffork-pthread.c b/src/lib9/ffork-pthread.c
deleted file mode 100644
index c89ad138..00000000
--- a/src/lib9/ffork-pthread.c
+++ /dev/null
@@ -1,31 +0,0 @@
-#define NOPLAN9DEFINES
-#include <u.h>
-#include <libc.h>
-#include <pthread.h>
-#include "9proc.h"
-
-extern int __isthreaded;
-int
-ffork(int flags, void(*fn)(void*), void *arg)
-{
- pthread_t tid;
-
- if(flags != (RFMEM|RFNOWAIT)){
- werrstr("ffork unsupported");
- return -1;
- }
-
- _p9uproc(0);
- if(pthread_create(&tid, NULL, (void*(*)(void*))fn, arg) < 0)
- return -1;
- if((int)tid == 0)
- _p9uproc(0);
- return (int)tid;
-}
-
-int
-getfforkid(void)
-{
- return (int)pthread_self();
-}
-