home *** CD-ROM | disk | FTP | other *** search
- /*
- * Mach Operating System
- * Copyright (c) 1992 Carnegie Mellon University
- * All Rights Reserved.
- *
- * Permission to use, copy, modify and distribute this software and its
- * documentation is hereby granted, provided that both the copyright
- * notice and this permission notice appear in all copies of the
- * software, derivative works or modified versions, and any portions
- * thereof, and that both notices appear in supporting documentation.
- *
- * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
- * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
- * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
- *
- * Carnegie Mellon requests users of this software to return to
- *
- * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
- * School of Computer Science
- * Carnegie Mellon University
- * Pittsburgh PA 15213-3890
- *
- * any improvements or extensions that they make and grant Carnegie Mellon
- * the rights to redistribute these changes.
- */
- /*
- * HISTORY
- * $Log: unistd.h,v $
- * Revision 2.1 92/04/21 17:17:42 rwd
- * BSDSS
- *
- *
- */
-
- /*
- * Copyright (c) 1989 The Regents of the University of California.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the University of
- * California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * @(#)unistd.h 5.14 (Berkeley) 4/1/91
- */
-
- #ifndef _SYS_UNISTD_H_
- #define _SYS_UNISTD_H_
-
- /* compile-time symbolic constants */
- #define _POSIX_JOB_CONTROL /* implementation supports job control */
- #ifdef _NOTYET
- #define _POSIX_SAVED_IDS /* saved set-user-ID and set-group-ID */
- #endif
- #define _POSIX_VERSION 198808L
-
- /* execution-time symbolic constants */
- #define _POSIX_CHOWN_RESTRICTED /* chown requires appropriate privileges */
- #define _POSIX_NO_TRUNC /* too-long path components generate errors */
- /* may disable terminal special characters */
- #define _POSIX_VDISABLE ((unsigned char)'\377')
-
- /* access function */
- #define F_OK 0 /* test for existence of file */
- #define X_OK 0x01 /* test for execute or search permission */
- #define W_OK 0x02 /* test for write permission */
- #define R_OK 0x04 /* test for read permission */
-
- /* whence values for lseek(2) */
- #define SEEK_SET 0 /* set file offset to offset */
- #define SEEK_CUR 1 /* set file offset to current plus offset */
- #define SEEK_END 2 /* set file offset to EOF plus offset */
-
- #ifndef _POSIX_SOURCE
- /* whence values for lseek(2); renamed by POSIX 1003.1 */
- #define L_SET SEEK_SET
- #define L_INCR SEEK_CUR
- #define L_XTND SEEK_END
- #endif
-
- /* configurable pathname variables */
- #define _PC_LINK_MAX 1
- #define _PC_MAX_CANON 2
- #define _PC_MAX_INPUT 3
- #define _PC_NAME_MAX 4
- #define _PC_PATH_MAX 5
- #define _PC_PIPE_BUF 6
- #define _PC_CHOWN_RESTRICTED 7
- #define _PC_NO_TRUNC 8
- #define _PC_VDISABLE 9
-
- /* configurable system variables */
- #define _SC_ARG_MAX 1
- #define _SC_CHILD_MAX 2
- #define _SC_CLK_TCK 3
- #define _SC_NGROUPS_MAX 4
- #define _SC_OPEN_MAX 5
- #define _SC_JOB_CONTROL 6
- #define _SC_SAVED_IDS 7
- #define _SC_VERSION 8
-
- #endif /* !_SYS_UNISTD_H_ */
-