diff options
Diffstat (limited to 'unixish.h')
-rw-r--r-- | unixish.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/unixish.h b/unixish.h new file mode 100644 index 0000000000..dc593c6ba7 --- /dev/null +++ b/unixish.h @@ -0,0 +1,38 @@ + +/* + * The following symbols are defined if your operating system supports + * functions by that name. All Unixes I know of support them, thus they + * are not checked by the configuration script, but are directly defined + * here. + */ +#define HAS_ALARM +#define HAS_CHOWN +#define HAS_CHROOT +#define HAS_FORK +#define HAS_GETLOGIN +#define HAS_GETPPID +#define HAS_KILL +#define HAS_LINK +#define HAS_PIPE +#define HAS_WAIT +#define HAS_UMASK +#define HAS_PAUSE +/* + * The following symbols are defined if your operating system supports + * password and group functions in general. All Unix systems do. + */ +#ifdef I_GRP +#define HAS_GROUP +#endif +#ifdef I_PWD +#define HAS_PASSWD +#endif + +#ifndef SIGABRT +# define SIGABRT SIGILL +#endif +#ifndef SIGILL +# define SIGILL 6 /* blech */ +#endif +#define ABORT() kill(getpid(),SIGABRT); + |