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 (c) 2001 by Sun Microsystems, Inc.
* All rights reserved.
*/
/* Copyright (c) 1984 AT&T */
/* All Rights Reserved */
/* from S5R3 1.5 */
#ifndef _BC_SYS_UNISTD_H
#define _BC_SYS_UNISTD_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
#define _POSIX_JOB_CONTROL 1
#define _POSIX_SAVED_IDS 1
#define _POSIX_VERSION 198808
#define STDIN_FILENO 0
#define STDOUT_FILENO 1
#define STDERR_FILENO 2
#ifndef NULL
#define NULL 0
#endif
#ifndef _POSIX_SOURCE
/*
* SVID lockf() requests
*/
#define F_ULOCK 0 /* Unlock a previously locked region */
/* Path names: */
#endif /* !_POSIX_SOURCE */
/*
* lseek & access args
*
*/
#ifndef SEEK_SET
#define SEEK_SET 0 /* Set file pointer to "offset" */
#endif
#define F_OK 0 /* does file exist */
#if !defined(KERNEL)
extern void _exit(/* int status */);
extern int access(/* char *path, int amode */);
extern unsigned alarm(/* unsigned secs */);
extern int chdir(/* char *path */);
extern int chmod(/* char *path, mode_t mode */);
extern int chown(/* char *path, uid_t owner, gid_t group */);
extern int close(/* int fildes */);
extern char *ctermid(/* char *s */);
extern char *cuserid(/* char *s */);
extern int dup(/* int fildes */);
extern int dup2(/* int fildes, int fildes2 */);
extern int execl(/* char *path, ... */);
extern int execle(/* char *path, ... */);
extern int execlp(/* char *file, ... */);
extern int execv(/* char *path, char *argv[] */);
extern int execve(/* char *path, char *argv[], char *envp[] */);
extern int execvp(/* char *file, char *argv[] */);
extern long fpathconf(/* int fd, int name */);
extern char *getcwd(/* char *buf, int size */);
extern int getgroups(/* int gidsetsize, gid_t grouplist[] */);
extern char *getlogin(/* void */);
extern int isatty(/* int fildes */);
extern int link(/* char *path1, char *path2 */);
extern long pathconf(/* char *path, int name */);
extern int pause(/* void */);
extern int pipe(/* int fildes[2] */);
extern int read(/* int fildes, char *buf, unsigned int nbyte */);
extern int rmdir(/* char *path */);
extern int setgid(/* gid_t gid */);
extern int setpgid(/* pid_t pid, pid_t pgid */);
extern int setuid(/* uid_t uid */);
extern unsigned sleep(/* unsigned int seconds */);
extern long sysconf(/* int name */);
extern int tcsetpgrp(/* int fildes, pid_t pgrp_id */);
extern char *ttyname(/* int fildes */);
extern int unlink(/* char *path */);
extern int write(/* int fildes, char *buf, unsigned int nbyte */);
#endif /* !KERNEL */
#ifdef __cplusplus
}
#endif
#endif /* _BC_SYS_UNISTD_H */