fd1 506 kernel/sysfile.c int fd0, fd1; fd1 513 kernel/sysfile.c if ((fd0 = fdalloc(rf)) < 0 || (fd1 = fdalloc(wf)) < 0) { fd1 521 kernel/sysfile.c copyout(p->pagetable, p->sz, fdarray + sizeof(fd0), (char *)&fd1, fd1 522 kernel/sysfile.c sizeof(fd1)) < 0) { fd1 524 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 300 user/usertests.c int fd1 = open("truncfile", O_CREATE | O_WRONLY | O_TRUNC); fd1 301 user/usertests.c write(fd1, "abcd", 4); fd1 302 user/usertests.c close(fd1); fd1 311 user/usertests.c fd1 = open("truncfile", O_WRONLY | O_TRUNC); fd1 328 user/usertests.c write(fd1, "abcdef", 6); fd1 344 user/usertests.c close(fd1); fd1 358 user/usertests.c int fd1 = open("truncfile", O_CREATE | O_TRUNC | O_WRONLY); fd1 359 user/usertests.c write(fd1, "abcd", 4); fd1 363 user/usertests.c int n = write(fd1, "x", 1); fd1 370 user/usertests.c close(fd1); fd1 1328 user/usertests.c int fd, fd1; fd1 1348 user/usertests.c fd1 = open("unlinkread", O_CREATE | O_RDWR); fd1 1349 user/usertests.c write(fd1, "yyy", 3); fd1 1350 user/usertests.c close(fd1);