fd1               482 kernel/sysfile.c   int fd0, fd1;
fd1               489 kernel/sysfile.c   if((fd0 = fdalloc(rf)) < 0 || (fd1 = fdalloc(wf)) < 0){
fd1               497 kernel/sysfile.c      copyout(p->pagetable, fdarray+sizeof(fd0), (char *)&fd1, sizeof(fd1)) < 0){
fd1               499 kernel/sysfile.c     p->ofile[fd1] = 0;
fd1               199 user/grind.c         int fd1 = open("c", O_CREATE|O_RDWR);
fd1               200 user/grind.c         if(fd1 < 0){
fd1               204 user/grind.c         if(write(fd1, "x", 1) != 1){
fd1               209 user/grind.c         if(fstat(fd1, &st) != 0){
fd1               221 user/grind.c         close(fd1);
fd1               295 user/usertests.c   int fd1 = open("truncfile", O_CREATE|O_WRONLY|O_TRUNC);
fd1               296 user/usertests.c   write(fd1, "abcd", 4);
fd1               297 user/usertests.c   close(fd1);
fd1               306 user/usertests.c   fd1 = open("truncfile", O_WRONLY|O_TRUNC);
fd1               323 user/usertests.c   write(fd1, "abcdef", 6);
fd1               339 user/usertests.c   close(fd1);
fd1               353 user/usertests.c   int fd1 = open("truncfile", O_CREATE|O_TRUNC|O_WRONLY);
fd1               354 user/usertests.c   write(fd1, "abcd", 4);
fd1               358 user/usertests.c   int n = write(fd1, "x", 1);
fd1               365 user/usertests.c   close(fd1);
fd1              1292 user/usertests.c   int fd, fd1;
fd1              1312 user/usertests.c   fd1 = open("unlinkread", O_CREATE | O_RDWR);
fd1              1313 user/usertests.c   write(fd1, "yyy", 3);
fd1              1314 user/usertests.c   close(fd1);