aboutsummaryrefslogtreecommitdiff
path: root/src/libthread/threadimpl.h
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2012-10-22 12:32:09 -0400
committerRuss Cox <rsc@swtch.com>2012-10-22 12:32:09 -0400
commit9e4b56e7645e08311590355824863ecf9f334f0c (patch)
treee075835acb77327b3f6bedacb9d265a443065714 /src/libthread/threadimpl.h
parent81c2c5e775d83896f25981cf4c4e486c5cc91180 (diff)
downloadplan9port-9e4b56e7645e08311590355824863ecf9f334f0c.tar.gz
plan9port-9e4b56e7645e08311590355824863ecf9f334f0c.tar.bz2
plan9port-9e4b56e7645e08311590355824863ecf9f334f0c.zip
libthread: add threadspawnd
R=rsc http://codereview.appspot.com/6742064
Diffstat (limited to 'src/libthread/threadimpl.h')
-rw-r--r--src/libthread/threadimpl.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libthread/threadimpl.h b/src/libthread/threadimpl.h
index 9518f785..144a2136 100644
--- a/src/libthread/threadimpl.h
+++ b/src/libthread/threadimpl.h
@@ -121,6 +121,7 @@ struct Execjob
int *fd;
char *cmd;
char **argv;
+ char *dir;
Channel *c;
};
@@ -203,8 +204,8 @@ 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**);
+extern int _threadspawn(int*, char*, char**, char*);
+extern int _runthreadspawn(int*, char*, char**, char*);
extern void _threadsetupdaemonize(void);
extern void _threaddodaemonize(char*);
extern void _threadpexit(void);