-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 @@ | |||
1 | #ifndef QUICKEXEC_H | ||
2 | #define QUICKEXEC_H | ||
3 | |||
4 | #define HAVE_QUICKEXEC | ||
5 | /* | ||
6 | A special version of execl that opens a shared library and executes the main() function in | ||
7 | the lib. Requires the quickexec daemon to run. | ||
8 | |||
9 | Note: You do not need to call fork() before calling quickexec, the function actually returns. | ||
10 | |||
11 | WARNING: path has to be a shared library, otherwise quickexec will hang | ||
12 | */ | ||
13 | |||
14 | extern int quickexecl( const char *path, const char *, ...); | ||
15 | extern int quickexecv( const char *path, const char *argv[] ); | ||
16 | |||
17 | #endif | ||