[project @ 1998-12-02 13:17:09 by simonm]
[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 extern I_ nocldstop;
66
67 char    *strDup     (const char *);
68 int     setenviron  (char **);
69 int     copyenv     (void);
70 int     _setenv     (char *);
71 int     delenv      (char *);
72 int     execvpe     (char *, char **, char **);
73 void    stg_sigaddset(sigset_t *newset, sigset_t *oldset, int signum);
74 void    stg_sigdelset(sigset_t *newset, sigset_t *oldset, int signum);
75
76 #define LIBPOSIX_H
77 #endif