1 /* 2 * Copyright (c) 1989 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 * 7 * @(#)unistd.h 5.8 (Berkeley) 01/21/91 8 */ 9 10 /* compile-time symbolic constants */ 11 #define _POSIX_JOB_CONTROL /* implementation supports job control */ 12 /*#define _POSIX_SAVED_IDS /* saved set-user-ID and set-group-ID */ 13 #define _POSIX_VERSION 198808L 14 15 /* execution-time symbolic constants */ 16 #define _POSIX_CHOWN_RESTRICTED /* chown requires appropriate privileges */ 17 #define _POSIX_NO_TRUNC /* too-long path components generate errors */ 18 /* may disable terminal special characters */ 19 #define _POSIX_VDISABLE ((unsigned char)'\377') 20 21 /* access function */ 22 #define F_OK 0 /* test for existence of file */ 23 #define X_OK 0x01 /* test for execute or search permission */ 24 #define W_OK 0x02 /* test for write permission */ 25 #define R_OK 0x04 /* test for read permission */ 26 27 /* lseek function */ 28 #define SEEK_SET 0 /* set file offset to offset */ 29 #define SEEK_CUR 1 /* set file offset to current plus offset */ 30 #define SEEK_END 2 /* set file offset to EOF plus offset */ 31 32 /* map a stream pointer to a file descriptor */ 33 #define STDIN_FILENO 0 /* standard input value, stdin */ 34 #define STDOUT_FILENO 1 /* standard output value, stdout */ 35 #define STDERR_FILENO 2 /* standard error value, stdout */ 36 37 /* fnmatch function */ 38 #define FNM_PATHNAME 0x01 /* match pathnames, not filenames */ 39 #ifndef _POSIX_SOURCE 40 #define FNM_QUOTE 0x02 /* escape special chars with \ */ 41 #endif 42 43 #ifndef NULL 44 #define NULL 0 /* null pointer constant */ 45 #endif 46 47 /* configurable pathname variables */ 48 #define _PC_LINK_MAX 1 49 #define _PC_MAX_CANON 2 50 #define _PC_MAX_INPUT 3 51 #define _PC_NAME_MAX 4 52 #define _PC_PATH_MAX 5 53 #define _PC_PIPE_BUF 6 54 #define _PC_CHOWN_RESTRICTED 7 55 #define _PC_NO_TRUNC 8 56 #define _PC_VDISABLE 9 57 58 /* configurable system variables */ 59 #define _SC_ARG_MAX 1 60 #define _SC_CHILD_MAX 2 61 #define _SC_CLK_TCK 3 62 #define _SC_NGROUPS_MAX 4 63 #define _SC_OPEN_MAX 5 64 #define _SC_JOB_CONTROL 6 65 #define _SC_SAVED_IDS 7 66 #define _SC_VERSION 8 67 68 #if __STDC__ || c_plusplus 69 char *cuserid(const char *); 70 char *ctermid(); 71 char *getlogin(void); 72 #else 73 char *cuserid(); 74 char *ctermid(); 75 char *getlogin(); 76 #endif 77