home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 4
/
DATAFILE_PDCD4.iso
/
unix
/
unixlib36d
/
clib
/
h
/
unistd
< prev
next >
Wrap
Text File
|
1994-02-26
|
2KB
|
108 lines
/* unistd.h (c) Copyright 1990 H.Rogers */
#ifndef __UNISTD_H
#define __UNISTD_H
#ifndef __TIME_H
#include <time.h>
#endif
#ifndef __FCNTL_H
#include <fcntl.h>
#endif
#ifndef __TERMIO_H
#include <termio.h>
#endif
#ifndef __SYS_STAT_H
#include <sys/stat.h>
#endif
#ifdef __cplusplus
extern "C" {
#endif
#define F_OK 0
#define X_OK 1
#define W_OK 2
#define R_OK 4
#define fork() vfork() /* WARNING */
extern char **environ;
extern int access(char *,int);
extern int chdir(char *);
extern int chmod(char *,int);
extern int chown(char *,int,int);
extern int close(int);
extern int creat(char *,int);
extern int dup(int);
extern int dup2(int,int);
extern int fcntl(int,int,int);
extern char *getcwd(char *,int);
extern int gtty(int,struct termio *);
extern int ioctl(int,int,void *);
extern int isatty(int);
extern int ispipe(int);
extern int link(char *,char *);
extern long lseek(int,long,int);
extern int mkdir(char *);
extern int rmdir(char *);
extern int open(char *,int,...);
extern int pipe(int *);
extern int read(int,void *,int);
extern int stat(char *,struct stat *);
extern int fstat(int,struct stat *);
extern int stty(int,struct termio *);
extern int sync(void);
extern int unlink(char *);
extern int utime(char *,unsigned int *);
extern int write(int,void *,int);
extern time_t alarm(time_t);
extern int brk(void *);
extern void *sbrk(int);
extern int execl(char *,...);
extern int execle(char *,...);
extern int execlp(char *,...);
extern int execv(char *,char **);
extern int execvp(char *,char **);
extern int execve(char *,char **,char **);
extern char *gethostname(void);
extern int getpgrp(void);
extern int setpgrp(int);
extern int getpid(void);
extern int getppid(void);
extern int getuid(void);
extern int setuid(int);
extern int geteuid(void);
extern int seteuid(int);
extern int getgid(void);
extern int setgid(int);
extern int getegid(void);
extern int setegid(int);
extern char *getlogin(void);
extern int kill(int,int);
extern int nice(int);
extern int pause(void);
extern int sleep(time_t);
extern int umask(int);
extern int vfork(void);
extern int wait(int *);
extern char *ttyname(void);
/* the 2nd parameter to __uname() is the subdirectory creation flag */
extern char *__uname(char *,int); /* UNIX -> RiscOS filename conversion */
extern int __uname_dont_pack__; /* SJC for CCP */
extern int* __uname_dont_pack_ptr;
#ifdef __cplusplus
}
#endif
#endif