diff options
Diffstat (limited to 'unixish.h')
-rw-r--r-- | unixish.h | 34 |
1 files changed, 25 insertions, 9 deletions
@@ -5,18 +5,22 @@ * 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 + +/* HAS_IOCTL: + * This symbol, if defined, indicates that the ioctl() routine is + * available to set I/O characteristics + */ +#define HAS_IOCTL /**/ + +/* HAS_UTIME: + * This symbol, if defined, indicates that the routine utime() is + * available to update the access and modification times of files. + */ +#define HAS_UTIME /**/ + #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. @@ -41,3 +45,15 @@ #endif #define ABORT() kill(getpid(),SIGABRT); +/* + * fwrite1() should be a routine with the same calling sequence as fwrite(), + * but which outputs all of the bytes requested as a single stream (unlike + * fwrite() itself, which on some systems outputs several distinct records + * if the number_of_items parameter is >1). + */ +#define fwrite1 fwrite + +#define Stat(fname,bufptr) stat((fname),(bufptr)) +#define Fstat(fd,bufptr) fstat((fd),(bufptr)) + +#define my_getenv(var) getenv(var) |