file                3 defs.h         struct file;
file               29 defs.h         struct file*    filealloc(void);
file               30 defs.h         void            fileclose(struct file*);
file               31 defs.h         struct file*    filedup(struct file*);
file               33 defs.h         int             fileread(struct file*, char*, int n);
file               34 defs.h         int             filestat(struct file*, struct stat*);
file               35 defs.h         int             filewrite(struct file*, char*, int n);
file               99 defs.h         int             pipealloc(struct file**, struct file**);
file               16 file.c           struct file file[NFILE];
file               26 file.c         struct file*
file               29 file.c           struct file *f;
file               32 file.c           for(f = ftable.file; f < ftable.file + NFILE; f++){
file               44 file.c         struct file*
file               45 file.c         filedup(struct file *f)
file               57 file.c         fileclose(struct file *f)
file               59 file.c           struct file ff;
file               84 file.c         filestat(struct file *f, struct stat *st)
file               97 file.c         fileread(struct file *f, char *addr, int n)
file              118 file.c         filewrite(struct file *f, char *addr, int n)
file               23 pipe.c         pipealloc(struct file **f0, struct file **f1)
file               49 proc.h           struct file *ofile[NOFILE];  // Open files
file               29 sh.c             char *file;
file               85 sh.c               if(open(rcmd->file, rcmd->mode) < 0){
file               86 sh.c                 printf(2, "open %s failed\n", rcmd->file);
file              207 sh.c           redircmd(struct cmd *subcmd, char *file, char *efile, int mode, int fd)
file              215 sh.c             cmd->file = file;
file               22 sysfile.c      argfd(int n, int *pfd, struct file **pf)
file               25 sysfile.c        struct file *f;
file               41 sysfile.c      fdalloc(struct file *f)
file               58 sysfile.c        struct file *f;
file               72 sysfile.c        struct file *f;
file               84 sysfile.c        struct file *f;
file               97 sysfile.c        struct file *f;
file              109 sysfile.c        struct file *f;
file              290 sysfile.c        struct file *f;
file              426 sysfile.c        struct file *rf, *wf;
file              767 usertests.c      char file[3];
file              776 usertests.c      file[0] = 'C';
file              777 usertests.c      file[2] = '\0';
file              779 usertests.c        file[1] = '0' + i;
file              780 usertests.c        unlink(file);
file              783 usertests.c          link("C0", file);
file              785 usertests.c          link("C0", file);
file              787 usertests.c          fd = open(file, O_CREATE | O_RDWR);
file              789 usertests.c            printf(1, "concreate create %s failed\n", file);
file              828 usertests.c        file[1] = '0' + i;
file              836 usertests.c          close(open(file, 0));
file              837 usertests.c          close(open(file, 0));
file              838 usertests.c          close(open(file, 0));
file              839 usertests.c          close(open(file, 0));
file              841 usertests.c          unlink(file);
file              842 usertests.c          unlink(file);
file              843 usertests.c          unlink(file);
file              844 usertests.c          unlink(file);