From 15318cad33835e4e2dc620d033e43cd930676cdd Mon Sep 17 00:00:00 2001 From: kergoth Date: Fri, 25 Jan 2002 22:14:26 +0000 Subject: Initial revision --- (limited to 'library/quickexec_p.h') 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 -- cgit v0.9.0.2