file                3 kernel/defs.h  struct file;
file               29 kernel/defs.h  struct file*    filealloc(void);
file               30 kernel/defs.h  void            fileclose(struct file*);
file               31 kernel/defs.h  struct file*    filedup(struct file*);
file               33 kernel/defs.h  int             fileread(struct file*, uint64, int n);
file               34 kernel/defs.h  int             filestat(struct file*, uint64 addr);
file               35 kernel/defs.h  int             filewrite(struct file*, uint64, int n);
file               74 kernel/defs.h  int             pipealloc(struct file**, struct file**);
file               19 kernel/file.c    struct file file[NFILE];
file               29 kernel/file.c  struct file*
file               32 kernel/file.c    struct file *f;
file               35 kernel/file.c    for(f = ftable.file; f < ftable.file + NFILE; f++){
file               47 kernel/file.c  struct file*
file               48 kernel/file.c  filedup(struct file *f)
file               60 kernel/file.c  fileclose(struct file *f)
file               62 kernel/file.c    struct file ff;
file               88 kernel/file.c  filestat(struct file *f, uint64 addr)
file              107 kernel/file.c  fileread(struct file *f, uint64 addr, int n)
file              135 kernel/file.c  filewrite(struct file *f, uint64 addr, int n)
file               23 kernel/pipe.c  pipealloc(struct file **f0, struct file **f1)
file              357 kernel/proc.c        struct file *f = p->ofile[fd];
file              104 kernel/proc.h    struct file *ofile[NOFILE];  // Open files
file               22 kernel/sysfile.c argfd(int n, int *pfd, struct file **pf)
file               25 kernel/sysfile.c   struct file *f;
file               40 kernel/sysfile.c fdalloc(struct file *f)
file               57 kernel/sysfile.c   struct file *f;
file               71 kernel/sysfile.c   struct file *f;
file               85 kernel/sysfile.c   struct file *f;
file              101 kernel/sysfile.c   struct file *f;
file              113 kernel/sysfile.c   struct file *f;
file              309 kernel/sysfile.c   struct file *f;
file              481 kernel/sysfile.c   struct file *rf, *wf;
file               29 user/sh.c        char *file;
file               86 user/sh.c          if(open(rcmd->file, rcmd->mode) < 0){
file               87 user/sh.c            fprintf(2, "open %s failed\n", rcmd->file);
file              208 user/sh.c      redircmd(struct cmd *subcmd, char *file, char *efile, int mode, int fd)
file              216 user/sh.c        cmd->file = file;
file             1399 user/usertests.c   char file[3];
file             1407 user/usertests.c   file[0] = 'C';
file             1408 user/usertests.c   file[2] = '\0';
file             1410 user/usertests.c     file[1] = '0' + i;
file             1411 user/usertests.c     unlink(file);
file             1414 user/usertests.c       link("C0", file);
file             1416 user/usertests.c       link("C0", file);
file             1418 user/usertests.c       fd = open(file, O_CREATE | O_RDWR);
file             1420 user/usertests.c         printf("concreate create %s failed\n", file);
file             1463 user/usertests.c     file[1] = '0' + i;
file             1471 user/usertests.c       close(open(file, 0));
file             1472 user/usertests.c       close(open(file, 0));
file             1473 user/usertests.c       close(open(file, 0));
file             1474 user/usertests.c       close(open(file, 0));
file             1475 user/usertests.c       close(open(file, 0));
file             1476 user/usertests.c       close(open(file, 0));
file             1478 user/usertests.c       unlink(file);
file             1479 user/usertests.c       unlink(file);
file             1480 user/usertests.c       unlink(file);
file             1481 user/usertests.c       unlink(file);
file             1482 user/usertests.c       unlink(file);
file             1483 user/usertests.c       unlink(file);