diff options
| author | rsc <devnull@localhost> | 2004-12-27 17:19:44 +0000 |
|---|---|---|
| committer | rsc <devnull@localhost> | 2004-12-27 17:19:44 +0000 |
| commit | e127e40bb1327662a05f5b70dd1bbca5c69b042c (patch) | |
| tree | 174086bd28c59819eff30a2bd1986e12a5ecb5ca /src/libthread/threadimpl.h | |
| parent | e8a7b9699925f3f650593d07eb382155e9374ae6 (diff) | |
shuffle to allow use of execchan in non-pthreads impls
Diffstat (limited to 'src/libthread/threadimpl.h')
| -rw-r--r-- | src/libthread/threadimpl.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/libthread/threadimpl.h b/src/libthread/threadimpl.h index d30d58b6..9f0a53d5 100644 --- a/src/libthread/threadimpl.h +++ b/src/libthread/threadimpl.h @@ -1,6 +1,7 @@ #include <ucontext.h> typedef struct Context Context; +typedef struct Execjob Execjob; typedef struct Proc Proc; typedef struct _Procrendez _Procrendez; @@ -20,6 +21,14 @@ struct Context ucontext_t uc; }; +struct Execjob +{ + int *fd; + char *cmd; + char **argv; + Channel *c; +}; + struct _Thread { _Thread *next; @@ -88,3 +97,5 @@ extern void _threadsetproc(Proc*); extern int _threadlock(Lock*, int, ulong); extern void _threadunlock(Lock*, ulong); extern void _pthreadinit(void); +extern int _threadspawn(int*, char*, char**); +extern int _runthreadspawn(int*, char*, char**); |