|
|
1.1 ! root 1: /* POSIX IO functions */ ! 2: ! 3: /* include <unistd.h> to get this */ ! 4: ! 5: #if ! _IO_H ! 6: #define _IO_H 1 ! 7: ! 8: #include <unistd.h> ! 9: ! 10: #if _ST /* dLibs hack */ ! 11: #define unlink remove ! 12: #endif ! 13: ! 14: struct stat; /* create global incompletely-typed structure */ ! 15: ! 16: int chdir ARGS ((const char *path)); ! 17: int umask ARGS ((int mode)); ! 18: ! 19: int open ARGS ((const char *path, int flags, ... /*mode*/)); ! 20: int creat ARGS ((const char *path, int mode)); ! 21: int pipe ARGS ((int pv[2])); ! 22: int close ARGS ((int fd)); ! 23: ! 24: int fcntl ARGS ((int fd, int cmd, int arg)); ! 25: int dup ARGS ((int fd)); ! 26: int dup2 ARGS ((int ofd, int nfd)); ! 27: ! 28: int link ARGS ((const char *opath, const char *npath)); ! 29: int unlink ARGS ((const char *path)); ! 30: int rename ARGS ((const char *opath, const char *npath)); ! 31: int mkdir ARGS ((const char *path, int mode)); ! 32: ! 33: long lseek ARGS ((int fd, long off, int how)); ! 34: int read ARGS ((int fd, char *buf, unsigned len)); ! 35: int write ARGS ((int fd, char *buf, unsigned len)); ! 36: ! 37: int access ARGS ((const char *path, int mode)); ! 38: int stat ARGS ((const char *path, struct stat *sp)); ! 39: int fstat ARGS ((int fd, struct stat *sp)); ! 40: ! 41: int chmod ARGS ((const char *path, int mode)); ! 42: int chown ARGS ((const char *path, int uid)); ! 43: int chgrp ARGS ((const char *path, int gid)); ! 44: int utime ARGS ((const char *path, long tv[2])); ! 45: ! 46: #if _BSD || _V7 ! 47: int ioctl ARGS ((int fd, int cmd, void *argp)); /* BSD is "uns long cmd" */ ! 48: #endif ! 49: ! 50: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.