/* Copyright (c) 1993 Xerox Corporation. All rights reserved. */ /* $Id$ $Date$ */ #ifndef ←←PCR←unistd←h #define ←←PCR←unistd←h 1 #ifndef PCR←NO←RENAME /* * chmod defined in both unistd.h and sys/stat.h */ # undef chmod /* * the following is not strictly POSIX, but IRIX (incorrectly) defines * utime in unistd.h ... */ # ifndef ←←PCR←utime←h # include <utime.h> # endif # undef utime #endif #include <host/unistd.h> extern int PCR←access(const char *path, int amode); extern unsigned PCR←alarm(unsigned secs); extern int PCR←chdir(const char *path); extern int PCR←chmod(const char *path, mode←t mode); extern int PCR←chown(const char *path, uid←t owner, gid←t group); extern int PCR←close(int fildes); extern char *PCR←ctermid(char *s); extern int PCR←dup(int fildes); extern int PCR←dup2(int fildes, int fildes2); extern int PCR←execl(const char *path, ...); extern int PCR←execle(const char *path, const char *arg, ...); extern int PCR←execlp(const char *file, const char *arg, ...); extern int PCR←execv(const char *path, char * const argv[]); extern int PCR←execve(const char *path, char * const argv[], char * const envp[]); extern int PCR←execvp(const char *file, char * const argv[]); extern pid←t PCR←fork(void); extern long PCR←fpathconf(int fd, int name); extern char *PCR←getcwd(char *buf, int size); extern gid←t PCR←getegid(void); extern uid←t PCR←geteuid(void); extern gid←t PCR←getgid(void); extern int PCR←getgroups(int gidsetsize, gid←t grouplist[]); extern char *PCR←getlogin(void); extern pid←t PCR←getpgrp(void); extern pid←t PCR←getpid(void); extern pid←t PCR←getppid(void); extern uid←t PCR←getuid(void); extern int PCR←isatty(int fildes); extern int PCR←link(const char *path1, const char *path2); extern off←t PCR←lseek(int fildes, off←t offset, int whence); extern long PCR←pathconf(const char *path, int name); extern int PCR←pause(void); extern int PCR←pipe(int fildes[2]); extern int PCR←read(int fildes, char *buf, unsigned int nbyte); extern int PCR←rmdir(char *path); extern int PCR←setgid(gid←t gid); extern int PCR←setpgid(pid←t pid, pid←t pgid); extern pid←t PCR←setsid(void); extern int PCR←setuid(uid←t uid); extern unsigned PCR←sleep(unsigned int seconds); extern long PCR←sysconf(int name); extern pid←t PCR←tcgetpgrp(int fildes); extern int PCR←tcsetpgrp(int fildes, pid←t pgrp←id); extern char *PCR←ttyname(int fildes); extern int PCR←unlink(const char *path); extern int PCR←write(int fildes, char *buf, unsigned int nbyte); #ifndef PCR←NO←RENAME #undef access #undef alarm #undef chdir #undef chmod #undef chown #undef close #undef ctermid #undef cuserid #undef dup #undef dup2 #undef execl #undef execle #undef execlp #undef execv #undef execve #undef execvp #undef fork #undef fpathconf #undef getcwd #undef getegid #undef geteuid #undef getgid #undef getgroups #undef getlogin #undef getpgrp #undef getpid #undef getppid #undef getuid #undef isatty #undef link #undef lseek #undef pathconf #undef pause #undef pipe #undef read #undef rmdir #undef setgid #undef setpgid #undef setsid #undef setuid #undef sleep #undef sysconf #undef tcgetpgrp #undef tcsetpgrp #undef ttyname #undef unlink #undef write #define access PCR←access #define alarm PCR←alarm #define chdir PCR←chdir #define chmod PCR←chmod #define chown PCR←chown #define close PCR←close #define ctermid PCR←ctermid #define cuserid PCR←cuserid #define dup PCR←dup #define dup2 PCR←dup2 #define execl PCR←execl #define execle PCR←execle #define execlp PCR←execlp #define execv PCR←execv #define execve PCR←execve #define execvp PCR←execvp #define fork PCR←fork #define fpathconf PCR←fpathconf #define getcwd PCR←getcwd #define getegid PCR←getegid #define geteuid PCR←geteuid #define getgid PCR←getgid #define getgroups PCR←getgroups #define getlogin PCR←getlogin #define getpgrp PCR←getpgrp #define getpid PCR←getpid #define getppid PCR←getppid #define getuid PCR←getuid #define isatty PCR←isatty #define link PCR←link #define lseek PCR←lseek #define pathconf PCR←pathconf #define pause PCR←pause #define pipe PCR←pipe #define read PCR←read #define rmdir PCR←rmdir #define setgid PCR←setgid #define setpgid PCR←setpgid #define setsid PCR←setsid #define setuid PCR←setuid #define sleep PCR←sleep #define sysconf PCR←sysconf #define tcgetpgrp PCR←tcgetpgrp #define tcsetpgrp PCR←tcsetpgrp #define ttyname PCR←ttyname #define unlink PCR←unlink #define write PCR←write /* * see explanation at include of utime.h ... */ # undef utime # define utime PCR←utime #endif /* !PCR←NO←RENAME */ #endif /* !←←PCR←unistd←h */ /* $Log$ */