d4b65212108a77f669059380d6a0b77c72651b1b
[packages/unix.git] / include / execvpe.h
1 /* ----------------------------------------------------------------------------
2 (c) The University of Glasgow 2004
3
4 Interface for code in cbits/execvpe.c
5 ------------------------------------------------------------------------- */
6
7 #ifndef HSUNIX_EXECVPE_H
8 #define HSUNIX_EXECVPE_H
9
10 #include "HsUnixConfig.h"
11
12 extern int
13 __hsunix_execvpe(const char *name, char *const argv[], char *const envp[]);
14
15 // this hack is needed for `process`; to be removed in unix-2.8
16 #if HAVE_EXECVPE
17 # define _GNU_SOURCE
18 # include <unistd.h>
19 #else
20 # define execvpe(name,argv,envp) __hsunix_execvpe(name,argv,envp)
21 #endif
22
23 // implemented in cbits/ghcrts.c
24 extern void pPrPr_disableITimers (void);
25
26 #endif