624da7686b424cfc23e3d362b10795aff216251e
[ghc-hetmet.git] / ghc / lib / posix / cbits / libposix.h
1 #ifndef LIBPOSIX_H
2 #ifdef HAVE_SYS_WAIT_H
3 #include <sys/wait.h>
4 #endif /* HAVE_SYS_WAIT_H */
5
6 #ifdef HAVE_SIGNAL_H
7 #include <signal.h>
8 #endif /* HAVE_SIGNAL_H */
9
10 #ifdef HAVE_SYS_UTSNAME_H
11 #include <sys/utsname.h>
12 #endif /* HAVE_SYS_UTSNAME_H */
13
14 #ifdef HAVE_SYS_TIMES_H
15 #include <sys/times.h>
16 #endif /* HAVE_SYS_TIMES_H */
17
18 #ifdef HAVE_DIRENT_H
19 #include <dirent.h>
20 #endif /* HAVE_DIRENT_H */
21
22 #ifdef HAVE_SYS_STAT_H
23 #include <sys/stat.h>
24 #endif /* HAVE_SYS_STAT_H */
25
26 #ifdef HAVE_FCNTL_H
27 #include <fcntl.h>
28 #endif /* HAVE_FCNTL_H */
29
30 #ifdef HAVE_UNISTD_H
31 #include <unistd.h>
32 #endif /* HAVE_UNISTD_H */
33
34 #ifdef HAVE_UTIME_H
35 #include <utime.h>
36 #endif /* HAVE_UTIME_H */
37
38 #ifdef HAVE_TERMIOS_H
39 #include <termios.h>
40 #endif /* HAVE_TERMIOS_H */
41
42 #ifdef HAVE_GRP_H
43 #include <grp.h>
44 #endif /* HAVE_GRP_H */
45
46 #ifdef HAVE_PWD_H
47 #include <pwd.h>
48 #endif /* HAVE_PWD_H */
49
50 #if TIME_WITH_SYS_TIME
51 # include <sys/time.h>
52 # include <time.h>
53 #else
54 # if HAVE_SYS_TIME_H
55 #  include <sys/time.h>
56 # else
57 #  include <time.h>
58 # endif
59 #endif
60
61 #ifndef _POSIX_VDISABLE
62 #define _POSIX_VDISABLE '\0'    /* Just a guess...but it works for Suns */
63 #endif
64
65 /* For PosixIO only (finaliser for (FILE *) contained in Handles) */
66 extern void freeStdFile PROTO((StgForeignObj));
67 extern void freeFile PROTO((StgForeignObj));
68
69 extern I_ nocldstop;
70
71 char    *strDup     PROTO((const char *));
72 int     setenviron  PROTO((char **));
73 int     copyenv     (STG_NO_ARGS);
74 int     _setenv     PROTO((char *));
75 int     delenv      PROTO((char *));
76 int     execvpe     PROTO((char *, char **, char **));
77
78 #define LIBPOSIX_H
79 #endif