aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2006-05-25 23:02:40 +0000
committerRob Landley <rob@landley.net>2006-05-25 23:02:40 +0000
commit399d2b5c24aaa059104a89058c7d4c8b97f41629 (patch)
tree1c6aed143c5dd2ff927190caf83b683c013028cb /include
parent69d863b6c609ac0523c546e408cc5d2063073425 (diff)
downloadbusybox-399d2b5c24aaa059104a89058c7d4c8b97f41629.tar.gz
Rich Felker suggested removing dprintf() from watch, and one thing led to
another... This adds bb_xspawn() support, which does vfork/exec. (I don't know why using a static instead of a local adds ~40 bytes, but using the local doesn't work...)
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h
index ca3afea98..928e25d30 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -146,6 +146,8 @@ extern void bb_fflush_stdout_and_exit(int retval) ATTRIBUTE_NORETURN;
extern void xstat(const char *filename, struct stat *buf);
extern int bb_xsocket(int domain, int type, int protocol);
+extern pid_t bb_spawn(char **argv);
+extern pid_t bb_xspawn(char **argv);
extern void bb_xdaemon(int nochdir, int noclose);
extern void bb_xbind(int sockfd, struct sockaddr *my_addr, socklen_t addrlen);
extern void bb_xlisten(int s, int backlog);