author | kergoth <kergoth> | 2002-01-25 22:14:26 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2002-01-25 22:14:26 (UTC) |
commit | 15318cad33835e4e2dc620d033e43cd930676cdd (patch) (side-by-side diff) | |
tree | c2fa0399a2c47fda8e2cd0092c73a809d17f68eb /library/quickexec_p.h | |
download | opie-15318cad33835e4e2dc620d033e43cd930676cdd.zip opie-15318cad33835e4e2dc620d033e43cd930676cdd.tar.gz opie-15318cad33835e4e2dc620d033e43cd930676cdd.tar.bz2 |
Initial revision
-rw-r--r-- | library/quickexec_p.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/library/quickexec_p.h b/library/quickexec_p.h new file mode 100644 index 0000000..79f58af --- a/dev/null +++ b/library/quickexec_p.h @@ -0,0 +1,17 @@ +#ifndef QUICKEXEC_H +#define QUICKEXEC_H + +#define HAVE_QUICKEXEC +/* + A special version of execl that opens a shared library and executes the main() function in + the lib. Requires the quickexec daemon to run. + + Note: You do not need to call fork() before calling quickexec, the function actually returns. + + WARNING: path has to be a shared library, otherwise quickexec will hang +*/ + +extern int quickexecl( const char *path, const char *, ...); +extern int quickexecv( const char *path, const char *argv[] ); + +#endif |