aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/execvpe.h
blob: 7faa0df5c3a02b68be1040b677041796ad63770e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* ----------------------------------------------------------------------------
   (c) The University of Glasgow 2004

   Interface for code in cbits/execvpe.c
   ------------------------------------------------------------------------- */

#ifndef HSUNIX_EXECVPE_H
#define HSUNIX_EXECVPE_H

#include "HsUnixConfig.h"

extern int
__hsunix_execvpe(const char *name, char *const argv[], char *const envp[]);

// this hack is needed for `process`; to be removed in unix-2.8
#if HAVE_EXECVPE
# define _GNU_SOURCE
# include <unistd.h>
extern int
execvpe(const char *name, char *const argv[], char *const envp[]);
#else
# define execvpe(name,argv,envp) __hsunix_execvpe(name,argv,envp)
#endif

// implemented in cbits/ghcrts.c
extern void pPrPr_disableITimers (void);

#endif