file 29 defs.h void fileclose(struct file*); file 30 defs.h struct file* filedup(struct file*); file 32 defs.h int fileread(struct file*, char*, int n); file 33 defs.h int filestat(struct file*, struct stat*); file 34 defs.h int filewrite(struct file*, char*, int n); file 100 defs.h int pipealloc(struct file**, struct file**); file 44 file.c filedup(struct file *f) file 56 file.c fileclose(struct file *f) file 83 file.c filestat(struct file *f, struct stat *st) file 96 file.c fileread(struct file *f, char *addr, int n) file 117 file.c filewrite(struct file *f, char *addr, int n) file 22 pipe.c pipealloc(struct file **f0, struct file **f1) file 208 sh.c redircmd(struct cmd *subcmd, char *file, char *efile, int mode, int fd) file 20 sysfile.c argfd(int n, int *pfd, struct file **pf) file 39 sysfile.c fdalloc(struct file *f)