ibcs2_unistd.h revision 11394
150476Speter/*	$NetBSD: ibcs2_unistd.h,v 1.2 1994/10/26 02:53:11 cgd Exp $	*/
232283Shelbig
332283Shelbig/*
432283Shelbig * Copyright (c) 1994 Scott Bartram
532283Shelbig * All rights reserved.
632283Shelbig *
732283Shelbig * Redistribution and use in source and binary forms, with or without
832283Shelbig * modification, are permitted provided that the following conditions
932283Shelbig * are met:
1032283Shelbig * 1. Redistributions of source code must retain the above copyright
1132283Shelbig *    notice, this list of conditions and the following disclaimer.
1232283Shelbig * 2. Redistributions in binary form must reproduce the above copyright
1332283Shelbig *    notice, this list of conditions and the following disclaimer in the
1432283Shelbig *    documentation and/or other materials provided with the distribution.
1532283Shelbig * 3. All advertising materials mentioning features or use of this software
1632283Shelbig *    must display the following acknowledgement:
1732283Shelbig *      This product includes software developed by Scott Bartram.
1832283Shelbig * 4. The name of the author may not be used to endorse or promote products
1932283Shelbig *    derived from this software without specific prior written permission
2032283Shelbig *
2132283Shelbig * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
2232283Shelbig * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
2332283Shelbig * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
2432283Shelbig * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
2532283Shelbig * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
2632283Shelbig * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2732283Shelbig * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2832283Shelbig * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2932283Shelbig * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
3032283Shelbig * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3132283Shelbig */
3232283Shelbig
3332283Shelbig#ifndef	_IBCS2_UNISTD_H
3432283Shelbig#define	_IBCS2_UNISTD_H
3532283Shelbig
3632283Shelbig#define IBCS2_R_OK		4
3732283Shelbig#define IBCS2_W_OK		2
3832283Shelbig#define IBCS2_X_OK		1
3932283Shelbig#define IBCS2_F_OK		0
4032283Shelbig
4132283Shelbig#define IBCS2_F_ULOCK		0
4232283Shelbig#define IBCS2_F_LOCK		1
4332283Shelbig#define IBCS2_F_TLOCK		2
4432283Shelbig#define IBCS2_F_TEST		3
4532283Shelbig
4632283Shelbig#define IBCS2_SEEK_SET		0
4732283Shelbig#define IBCS2_SEEK_CUR		1
4832283Shelbig#define IBCS2_SEEK_END		2
4932283Shelbig
5032283Shelbig#define IBCS2_SC_ARG_MAX		0
5132283Shelbig#define IBCS2_SC_CHILD_MAX		1
5232283Shelbig#define IBCS2_SC_CLK_TCK		2
5332283Shelbig#define IBCS2_SC_NGROUPS_MAX		3
5432283Shelbig#define IBCS2_SC_OPEN_MAX		4
5532283Shelbig#define IBCS2_SC_JOB_CONTROL		5
5632283Shelbig#define IBCS2_SC_SAVED_IDS		6
5732283Shelbig#define IBCS2_SC_VERSION		7
5832283Shelbig#define IBCS2_SC_PASS_MAX		8
5932283Shelbig#define IBCS2_SC_XOPEN_VERSION		9
6032283Shelbig
6132283Shelbig#define IBCS2_PC_LINK_MAX		0
6232283Shelbig#define IBCS2_PC_MAX_CANON		1
6332283Shelbig#define IBCS2_PC_MAX_INPUT		2
6432283Shelbig#define IBCS2_PC_NAME_MAX		3
6532283Shelbig#define IBCS2_PC_PATH_MAX		4
6632283Shelbig#define IBCS2_PC_PIPE_BUF		5
6732283Shelbig#define IBCS2_PC_CHOWN_RESTRICTED	6
6854090Sache#define IBCS2_PC_NO_TRUNC		7
6932283Shelbig#define IBCS2_PC_VDISABLE		8
7032283Shelbig
7132283Shelbig#define IBCS2_STDIN_FILENO		0
7232283Shelbig#define IBCS2_STDOUT_FILENO		1
7332283Shelbig#define IBCS2_STDERR_FILENO		2
7432283Shelbig
7532283Shelbig#endif /* _IBCS2_UNISTD_H */
7632283Shelbig