unistd.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 1997 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/*
* University Copyright- Copyright (c) 1982, 1986, 1988
* The Regents of the University of California
* All Rights Reserved
*
* University Acknowledgment- Portions of this document are derived from
* software developed by the University of California, Berkeley, and its
* contributors.
*/
#ifndef _UNISTD_H
#define _UNISTD_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/* Symbolic constants for the "access" routine: */
#define F_OK 0 /* Test for existence of File */
#define F_ULOCK 0 /* Unlock a previously locked region */
/* Symbolic constants for the "lseek" routine: */
#define SEEK_SET 0 /* Set file pointer to "offset" */
/* Path names: */
/* command names for POSIX sysconf */
#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
#define _SC_PASS_MAX 9
#define _SC_LOGNAME_MAX 10
#define _SC_PAGESIZE 11
#define _SC_XOPEN_VERSION 12
#define _SC_STREAM_MAX 16
#define _SC_TZNAME_MAX 17
/* command names for POSIX pathconf */
#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_NO_TRUNC 7
#define _PC_VDISABLE 8
#define _PC_CHOWN_RESTRICTED 9
#define _PC_LAST 9
/*
* compile-time symbolic constants,
* Support does not mean the feature is enabled.
*/
#define _POSIX_JOB_CONTROL 1
#define _POSIX_SAVED_IDS 1
#ifndef _POSIX_VDISABLE
#define _POSIX_VDISABLE 0
#endif
#define STDIN_FILENO 0
#define STDOUT_FILENO 1
#define STDERR_FILENO 2
/* Current version of POSIX */
#define _POSIX_VERSION 199009L
/* large file compilation environment setup */
#ifdef __PRAGMA_REDEFINE_EXTNAME
#else
#endif
#endif /* !_LP64 && _FILE_OFFSET_BITS == 64 */
#if defined(_LP64) && defined(_LARGEFILE64_SOURCE)
#ifdef __PRAGMA_REDEFINE_EXTNAME
#else
#endif
#endif /* _LP64 && _LARGEFILE64_SOURCE */
#if defined(__STDC__)
extern long pathconf(const char *, int);
extern long sysconf(int);
extern char *getwd(char *);
extern long gethostid(void);
extern int ioctl(int, int, ...);
extern int close(int);
#else
#endif
!defined(__PRAGMA_REDEFINE_EXTNAME))
#if defined(__STDC__)
#else
#endif
#endif /* _LARGEFILE64_SOURCE... */
#ifdef __cplusplus
}
#endif
#endif /* _UNISTD_H */