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 298 user/usertests.c int fd1 = open("truncfile", O_CREATE|O_WRONLY|O_TRUNC); fd1 299 user/usertests.c write(fd1, "abcd", 4); fd1 300 user/usertests.c close(fd1); fd1 309 user/usertests.c fd1 = open("truncfile", O_WRONLY|O_TRUNC); fd1 326 user/usertests.c write(fd1, "abcdef", 6); fd1 342 user/usertests.c close(fd1); fd1 356 user/usertests.c int fd1 = open("truncfile", O_CREATE|O_TRUNC|O_WRONLY); fd1 357 user/usertests.c write(fd1, "abcd", 4); fd1 361 user/usertests.c int n = write(fd1, "x", 1); fd1 368 user/usertests.c close(fd1); fd1 1295 user/usertests.c int fd, fd1; fd1 1315 user/usertests.c fd1 = open("unlinkread", O_CREATE | O_RDWR); fd1 1316 user/usertests.c write(fd1, "yyy", 3); fd1 1317 user/usertests.c close(fd1);