fd                 44 user/bin/cat/cat.c docat(const char *name, int fd)
fd                 55 user/bin/cat/cat.c 	while ((len = read(fd, buf, sizeof(buf)))>0) {
fd                 82 user/bin/cat/cat.c 	int fd;
fd                 96 user/bin/cat/cat.c 	fd = open(file, O_RDONLY);
fd                 97 user/bin/cat/cat.c 	if (fd<0) {
fd                100 user/bin/cat/cat.c 	docat(file, fd);
fd                101 user/bin/cat/cat.c 	close(fd);
fd                 95 user/bin/ls/ls.c 	int fd;
fd                 98 user/bin/ls/ls.c 	fd = open(path, O_RDONLY);
fd                 99 user/bin/ls/ls.c 	if (fd<0) {
fd                102 user/bin/ls/ls.c 	if (fstat(fd, &buf)<0) {
fd                105 user/bin/ls/ls.c 	close(fd);
fd                142 user/bin/ls/ls.c 		int fd;
fd                144 user/bin/ls/ls.c 		fd = open(path, O_RDONLY);
fd                145 user/bin/ls/ls.c 		if (fd<0) {
fd                148 user/bin/ls/ls.c 		if (fstat(fd, &statbuf)<0) {
fd                151 user/bin/ls/ls.c 		close(fd);
fd                195 user/bin/ls/ls.c 	int fd;
fd                207 user/bin/ls/ls.c 	fd = open(path, O_RDONLY);
fd                208 user/bin/ls/ls.c 	if (fd<0) {
fd                215 user/bin/ls/ls.c 	while ((len = getdirentry(fd, buf, sizeof(buf)-1)) > 0) {
fd                231 user/bin/ls/ls.c 	close(fd);
fd                238 user/bin/ls/ls.c 	int fd;
fd                246 user/bin/ls/ls.c 	fd = open(path, O_RDONLY);
fd                247 user/bin/ls/ls.c 	if (fd<0) {
fd                254 user/bin/ls/ls.c 	while ((len = getdirentry(fd, buf, sizeof(buf)-1)) > 0) {
fd                283 user/bin/ls/ls.c 	close(fd);
fd                 50 user/sbin/mksfs/disk.c static int fd=-1;
fd                 58 user/sbin/mksfs/disk.c 	assert(fd<0);
fd                 59 user/sbin/mksfs/disk.c 	fd = open(path, O_RDWR);
fd                 60 user/sbin/mksfs/disk.c 	if (fd<0) {
fd                 63 user/sbin/mksfs/disk.c 	if (fstat(fd, &statbuf)) {
fd                 77 user/sbin/mksfs/disk.c 			len = read(fd, buf, sizeof(buf)-1);
fd                 96 user/sbin/mksfs/disk.c 	assert(fd>=0);
fd                103 user/sbin/mksfs/disk.c 	assert(fd>=0);
fd                114 user/sbin/mksfs/disk.c 	assert(fd>=0);
fd                121 user/sbin/mksfs/disk.c 	if (lseek(fd, block*BLOCKSIZE, SEEK_SET)<0) {
fd                126 user/sbin/mksfs/disk.c 		len = write(fd, cdata + tot, BLOCKSIZE - tot);
fd                147 user/sbin/mksfs/disk.c 	assert(fd>=0);
fd                154 user/sbin/mksfs/disk.c 	if (lseek(fd, block*BLOCKSIZE, SEEK_SET)<0) {
fd                159 user/sbin/mksfs/disk.c 		len = read(fd, cdata + tot, BLOCKSIZE - tot);
fd                176 user/sbin/mksfs/disk.c 	assert(fd>=0);
fd                177 user/sbin/mksfs/disk.c 	if (close(fd)) {
fd                180 user/sbin/mksfs/disk.c 	fd = -1;
fd                 49 user/testbin/badcall/bad_dup2.c dup2_fd2(int fd, const char *desc)
fd                 53 user/testbin/badcall/bad_dup2.c 	rv = dup2(STDIN_FILENO, fd);
fd                 57 user/testbin/badcall/bad_dup2.c 		close(fd);	/* just in case */
fd                 50 user/testbin/badcall/bad_ftruncate.c 	int rv, fd;
fd                 52 user/testbin/badcall/bad_ftruncate.c 	fd = open("null:", O_RDWR);
fd                 53 user/testbin/badcall/bad_ftruncate.c 	if (fd<0) {
fd                 58 user/testbin/badcall/bad_ftruncate.c 	rv = ftruncate(fd, 6);
fd                 61 user/testbin/badcall/bad_ftruncate.c 	close(fd);
fd                 68 user/testbin/badcall/bad_ftruncate.c 	int rv, fd;
fd                 70 user/testbin/badcall/bad_ftruncate.c 	fd = open_testfile(0);
fd                 71 user/testbin/badcall/bad_ftruncate.c 	if (fd<0) {
fd                 75 user/testbin/badcall/bad_ftruncate.c 	rv = ftruncate(fd, -60);
fd                 78 user/testbin/badcall/bad_ftruncate.c 	close(fd);
fd                 45 user/testbin/badcall/bad_ioctl.c one_ioctl_badbuf(int fd, int code, const char *codename,
fd                 52 user/testbin/badcall/bad_ioctl.c 	rv = ioctl(fd, code, ptr);
fd                 58 user/testbin/badcall/bad_ioctl.c any_ioctl_badbuf(int fd, int code, const char *codename)
fd                 60 user/testbin/badcall/bad_ioctl.c 	one_ioctl_badbuf(fd, code, codename, NULL, "NULL pointer");
fd                 61 user/testbin/badcall/bad_ioctl.c 	one_ioctl_badbuf(fd, code, codename, INVAL_PTR, "invalid pointer");
fd                 62 user/testbin/badcall/bad_ioctl.c 	one_ioctl_badbuf(fd, code, codename, KERN_PTR, "kernel pointer");
fd                 65 user/testbin/badcall/bad_ioctl.c #define IOCTL(fd, sym) any_ioctl_badbuf(fd, sym, #sym)
fd                 50 user/testbin/badcall/bad_lseek.c 	int fd, rv;
fd                 52 user/testbin/badcall/bad_lseek.c 	fd = open("null:", O_RDONLY);
fd                 53 user/testbin/badcall/bad_lseek.c 	if (fd<0) {
fd                 58 user/testbin/badcall/bad_lseek.c 	rv = lseek(fd, 309, SEEK_SET);
fd                 61 user/testbin/badcall/bad_lseek.c 	close(fd);
fd                 68 user/testbin/badcall/bad_lseek.c 	int fd, fd2, rv, status;
fd                 98 user/testbin/badcall/bad_lseek.c 	fd = open_testfile(NULL);
fd                 99 user/testbin/badcall/bad_lseek.c 	if (fd<0) {
fd                110 user/testbin/badcall/bad_lseek.c 	fd2 = dup2(fd, STDIN_FILENO);
fd                113 user/testbin/badcall/bad_lseek.c 		close(fd);
fd                119 user/testbin/badcall/bad_lseek.c 		close(fd);
fd                123 user/testbin/badcall/bad_lseek.c 	close(fd);
fd                153 user/testbin/badcall/bad_lseek.c 	int fd, rv;
fd                155 user/testbin/badcall/bad_lseek.c 	fd = open_testfile(NULL);
fd                156 user/testbin/badcall/bad_lseek.c 	if (fd<0) {
fd                160 user/testbin/badcall/bad_lseek.c 	rv = lseek(fd, -309, SEEK_SET);
fd                163 user/testbin/badcall/bad_lseek.c 	close(fd);
fd                171 user/testbin/badcall/bad_lseek.c 	int fd, rv;
fd                173 user/testbin/badcall/bad_lseek.c 	fd = open_testfile(0);
fd                174 user/testbin/badcall/bad_lseek.c 	if (fd<0) {
fd                178 user/testbin/badcall/bad_lseek.c 	rv = lseek(fd, 0, 3594);
fd                181 user/testbin/badcall/bad_lseek.c 	close(fd);
fd                190 user/testbin/badcall/bad_lseek.c 	int fd;
fd                193 user/testbin/badcall/bad_lseek.c 	fd = open_testfile(message);
fd                194 user/testbin/badcall/bad_lseek.c 	if (fd<0) {
fd                198 user/testbin/badcall/bad_lseek.c 	pos = lseek(fd, 5340, SEEK_SET);
fd                208 user/testbin/badcall/bad_lseek.c 	pos = lseek(fd, -50, SEEK_CUR);
fd                218 user/testbin/badcall/bad_lseek.c 	pos = lseek(fd, 0, SEEK_END);
fd                233 user/testbin/badcall/bad_lseek.c 	close(fd);
fd                 50 user/testbin/badcall/bad_open.c 	int fd;
fd                 52 user/testbin/badcall/bad_open.c 	fd = open("null:", 309842);
fd                 53 user/testbin/badcall/bad_open.c 	report_test(fd, errno, EINVAL, "open null: with bad flags");
fd                 44 user/testbin/badcall/bad_readlink.c 	int fd, rv;
fd                 46 user/testbin/badcall/bad_readlink.c 	fd = open_testfile("the question contains an invalid assumption");
fd                 47 user/testbin/badcall/bad_readlink.c 	if (fd<0) {
fd                 50 user/testbin/badcall/bad_readlink.c 	close(fd);
fd                159 user/testbin/badcall/bad_waitpid.c 	int pids[2], mypid, otherpid, fd, rv, x;
fd                163 user/testbin/badcall/bad_waitpid.c 	fd = open(TESTFILE, O_RDONLY);
fd                164 user/testbin/badcall/bad_waitpid.c 	if (fd<0) {
fd                175 user/testbin/badcall/bad_waitpid.c 		rv = lseek(fd, 0, SEEK_SET);
fd                181 user/testbin/badcall/bad_waitpid.c 		rv = read(fd, pids, sizeof(pids));
fd                200 user/testbin/badcall/bad_waitpid.c 	close(fd);
fd                210 user/testbin/badcall/bad_waitpid.c 	int pids[2], fd, rv, x;
fd                214 user/testbin/badcall/bad_waitpid.c 	fd = open_testfile(NULL);
fd                215 user/testbin/badcall/bad_waitpid.c 	if (fd<0) {
fd                225 user/testbin/badcall/bad_waitpid.c 		close(fd);
fd                237 user/testbin/badcall/bad_waitpid.c 		close(fd);
fd                242 user/testbin/badcall/bad_waitpid.c 	rv = write(fd, pids, sizeof(pids));
fd                263 user/testbin/badcall/bad_waitpid.c 	close(fd);
fd                 50 user/testbin/badcall/common_fds.c read_badfd(int fd)
fd                 53 user/testbin/badcall/common_fds.c 	return read(fd, buf, sizeof(buf));
fd                 58 user/testbin/badcall/common_fds.c write_badfd(int fd)
fd                 62 user/testbin/badcall/common_fds.c 	return write(fd, buf, sizeof(buf));
fd                 68 user/testbin/badcall/common_fds.c close_badfd(int fd)
fd                 70 user/testbin/badcall/common_fds.c 	return close(fd);
fd                 75 user/testbin/badcall/common_fds.c ioctl_badfd(int fd)
fd                 77 user/testbin/badcall/common_fds.c 	return ioctl(fd, 0, NULL);
fd                 82 user/testbin/badcall/common_fds.c lseek_badfd(int fd)
fd                 84 user/testbin/badcall/common_fds.c 	return lseek(fd, 0, SEEK_SET);
fd                 89 user/testbin/badcall/common_fds.c fsync_badfd(int fd)
fd                 91 user/testbin/badcall/common_fds.c 	return fsync(fd);
fd                 96 user/testbin/badcall/common_fds.c ftruncate_badfd(int fd)
fd                 98 user/testbin/badcall/common_fds.c 	return ftruncate(fd, 60);
fd                103 user/testbin/badcall/common_fds.c fstat_badfd(int fd)
fd                106 user/testbin/badcall/common_fds.c 	return fstat(fd, &sb);
fd                111 user/testbin/badcall/common_fds.c getdirentry_badfd(int fd)
fd                114 user/testbin/badcall/common_fds.c 	return getdirentry(fd, buf, sizeof(buf));
fd                119 user/testbin/badcall/common_fds.c dup2_badfd(int fd)
fd                122 user/testbin/badcall/common_fds.c 	return dup2(fd, CLOSED_FD+1);
fd                136 user/testbin/badcall/common_fds.c any_badfd(int (*func)(int fd), void (*cleanup)(void), const char *callname,
fd                137 user/testbin/badcall/common_fds.c 	  int fd, const char *fddesc)
fd                143 user/testbin/badcall/common_fds.c 	rv = func(fd);
fd                152 user/testbin/badcall/common_fds.c runtest(int (*func)(int fd), void (*cleanup)(void), const char *callname)
fd                102 user/testbin/badcall/driver.c 	int fd, rv;
fd                105 user/testbin/badcall/driver.c 	fd = open(TESTFILE, O_RDWR|O_CREAT|O_TRUNC);
fd                106 user/testbin/badcall/driver.c 	if (fd<0) {
fd                113 user/testbin/badcall/driver.c 		rv = write(fd, string, len);
fd                116 user/testbin/badcall/driver.c 			close(fd);
fd                122 user/testbin/badcall/driver.c 			close(fd);
fd                126 user/testbin/badcall/driver.c 		rv = lseek(fd, 0, SEEK_SET);
fd                129 user/testbin/badcall/driver.c 			close(fd);
fd                134 user/testbin/badcall/driver.c 	return fd;
fd                140 user/testbin/badcall/driver.c 	int fd, rv;
fd                142 user/testbin/badcall/driver.c 	fd = open_testfile(NULL);
fd                143 user/testbin/badcall/driver.c 	if (fd<0) {
fd                147 user/testbin/badcall/driver.c 	rv = close(fd);
fd                458 user/testbin/dirseek/dirseek.c 	int fd, i, r;
fd                468 user/testbin/dirseek/dirseek.c 	fd = open(name, O_WRONLY|O_CREAT|O_EXCL, 0664);
fd                469 user/testbin/dirseek/dirseek.c 	if (fd<0) {
fd                473 user/testbin/dirseek/dirseek.c 	r = write(fd, buf, strlen(buf));
fd                481 user/testbin/dirseek/dirseek.c 	if (close(fd)<0) {
fd                 79 user/testbin/f_test/f_read.c 	int fd;
fd                 84 user/testbin/f_test/f_read.c 	fd = open(FNAME, O_RDONLY);
fd                 85 user/testbin/f_test/f_read.c 	if (fd < 0) {
fd                 90 user/testbin/f_test/f_read.c 		res = read(fd, buffer, SectorSize + 1);
fd                103 user/testbin/f_test/f_read.c 	close(fd);
fd                195 user/testbin/f_test/f_test.c 	int i, fd;
fd                201 user/testbin/f_test/f_test.c 	fd = open(FNAME, O_WRONLY|O_CREAT|O_TRUNC, 0664);
fd                202 user/testbin/f_test/f_test.c 	if (fd < 0) {
fd                213 user/testbin/f_test/f_test.c 		write(fd, cbuffer, SECTOR_SIZE + 1);
fd                217 user/testbin/f_test/f_test.c 	close(fd);
fd                246 user/testbin/f_test/f_test.c 	int i, fd;
fd                265 user/testbin/f_test/f_test.c 		fd = open(dirname, O_WRONLY|O_CREAT|O_TRUNC, 0664);
fd                266 user/testbin/f_test/f_test.c 		if (fd<0) {
fd                 63 user/testbin/f_test/f_write.c 	int fd;
fd                 72 user/testbin/f_test/f_write.c 	fd = open(FNAME, O_WRONLY);
fd                 73 user/testbin/f_test/f_write.c 	if (fd < 0) {
fd                 79 user/testbin/f_test/f_write.c 		write(fd, buffer, SectorSize + 1);
fd                 82 user/testbin/f_test/f_write.c 	close(fd);
fd                 52 user/testbin/filetest/filetest.c 	int fd, rv;
fd                 58 user/testbin/filetest/filetest.c 	fd = open(argv[1], O_WRONLY|O_CREAT|O_TRUNC, 0664);
fd                 59 user/testbin/filetest/filetest.c 	if (fd<0) {
fd                 64 user/testbin/filetest/filetest.c 	rv = write(fd, writebuf, 40);
fd                 69 user/testbin/filetest/filetest.c 	rv = close(fd);
fd                 74 user/testbin/filetest/filetest.c 	fd = open(argv[1], O_RDONLY);
fd                 75 user/testbin/filetest/filetest.c 	if (fd<0) { 
fd                 79 user/testbin/filetest/filetest.c 	rv = read(fd, readbuf, 40);
fd                 83 user/testbin/filetest/filetest.c 	rv = close(fd);
fd                 55 user/testbin/hash/hash.c 	int fd;
fd                 67 user/testbin/hash/hash.c 	fd = open(argv[1], O_RDONLY, 0664);
fd                 69 user/testbin/hash/hash.c 	if (fd<0) { 
fd                 74 user/testbin/hash/hash.c 		if (read(fd, readbuf, 1) <= 0) break;
fd                 78 user/testbin/hash/hash.c 	close(fd);
fd                589 user/testbin/malloctest/malloctest.c 	int fd, len;
fd                594 user/testbin/malloctest/malloctest.c 	fd = open(_PATH_RANDOM, O_RDONLY);
fd                595 user/testbin/malloctest/malloctest.c 	if (fd < 0) {
fd                598 user/testbin/malloctest/malloctest.c 	len = read(fd, &seed, sizeof(seed));
fd                605 user/testbin/malloctest/malloctest.c 	close(fd);
fd                220 user/testbin/psort/psort.c 	int fd;
fd                222 user/testbin/psort/psort.c 	fd = open(path, flags, mode);
fd                223 user/testbin/psort/psort.c 	if (fd<0) {
fd                227 user/testbin/psort/psort.c 	return fd;
fd                232 user/testbin/psort/psort.c doclose(const char *path, int fd)
fd                234 user/testbin/psort/psort.c 	if (close(fd)) {
fd                244 user/testbin/psort/psort.c 	int fd;
fd                246 user/testbin/psort/psort.c 	fd = doopen(path, O_WRONLY|O_CREAT|O_TRUNC, 0664);
fd                247 user/testbin/psort/psort.c 	doclose(path, fd);
fd                274 user/testbin/psort/psort.c 	int fd;
fd                289 user/testbin/psort/psort.c 	fd = doopen(path, O_RDONLY, 0);
fd                291 user/testbin/psort/psort.c 		if (fstat(fd, &buf) == 0) {
fd                292 user/testbin/psort/psort.c 			close(fd);
fd                304 user/testbin/psort/psort.c 	if (lseek(fd, 0, SEEK_END) >= 0) {
fd                305 user/testbin/psort/psort.c 		buf.st_size = lseek(fd, 0, SEEK_CUR);
fd                311 user/testbin/psort/psort.c 	close(fd);
fd                317 user/testbin/psort/psort.c doread(const char *path, int fd, void *buf, size_t len)
fd                321 user/testbin/psort/psort.c 	result = read(fd, buf, len);
fd                331 user/testbin/psort/psort.c doexactread(const char *path, int fd, void *buf, size_t len)
fd                335 user/testbin/psort/psort.c 	result = doread(path, fd, buf, len);
fd                344 user/testbin/psort/psort.c dowrite(const char *path, int fd, const void *buf, size_t len)
fd                348 user/testbin/psort/psort.c 	result = write(fd, buf, len);
fd                361 user/testbin/psort/psort.c dolseek(const char *name, int fd, off_t offset, int whence)
fd                363 user/testbin/psort/psort.c 	if (lseek(fd, offset, whence) < 0) {
fd                466 user/testbin/psort/psort.c seekmyplace(const char *name, int fd)
fd                475 user/testbin/psort/psort.c 	dolseek(name, fd, offset, SEEK_SET);
fd                497 user/testbin/psort/psort.c 	int fd;
fd                502 user/testbin/psort/psort.c 	fd = doopen(path, O_RDONLY, 0);
fd                504 user/testbin/psort/psort.c 	while ((count = doread(path, fd, buf, sizeof(buf))) > 0) {
fd                510 user/testbin/psort/psort.c 	doclose(path, fd);
fd                523 user/testbin/psort/psort.c 	int fd, i, mykeys, keys_done, keys_to_do, value;
fd                525 user/testbin/psort/psort.c 	fd = doopen(PATH_KEYS, O_WRONLY, 0);
fd                528 user/testbin/psort/psort.c 	seekmyplace(PATH_KEYS, fd);
fd                553 user/testbin/psort/psort.c 		dowrite(PATH_KEYS, fd, workspace, keys_to_do*sizeof(int));
fd                557 user/testbin/psort/psort.c 	doclose(PATH_KEYS, fd);
fd                670 user/testbin/psort/psort.c 	int i, fd;
fd                686 user/testbin/psort/psort.c 		fd = doopen(name, O_RDWR, 0);
fd                687 user/testbin/psort/psort.c 		doexactread(name, fd, workspace, binsize);
fd                691 user/testbin/psort/psort.c 		dolseek(name, fd, 0, SEEK_SET);
fd                692 user/testbin/psort/psort.c 		dowrite(name, fd, workspace, binsize);
fd                693 user/testbin/psort/psort.c 		doclose(name, fd);
fd                784 user/testbin/psort/psort.c 	int i, fd;
fd                792 user/testbin/psort/psort.c 	fd = doopen(PATH_SORTED, O_WRONLY, 0);
fd                793 user/testbin/psort/psort.c 	dolseek(PATH_SORTED, fd, mypos, SEEK_SET);
fd                795 user/testbin/psort/psort.c 	if (dup2(fd, STDOUT_FILENO) < 0) {
fd                800 user/testbin/psort/psort.c 	doclose(PATH_SORTED, fd);
fd                937 user/testbin/psort/psort.c 	int fd, i, mykeys, keys_done, keys_to_do;
fd                941 user/testbin/psort/psort.c 	fd = doopen(name, O_RDONLY, 0);
fd                944 user/testbin/psort/psort.c 	seekmyplace(name, fd);
fd                956 user/testbin/psort/psort.c 		doexactread(name, fd, workspace, keys_to_do * sizeof(int));
fd                984 user/testbin/psort/psort.c 	doclose(name, fd);
fd                987 user/testbin/psort/psort.c 	fd = doopen(name, O_WRONLY|O_CREAT|O_TRUNC, 0664);
fd                988 user/testbin/psort/psort.c 	dowrite(name, fd, &smallest, sizeof(smallest));
fd                989 user/testbin/psort/psort.c 	dowrite(name, fd, &largest, sizeof(largest));
fd                990 user/testbin/psort/psort.c 	doclose(name, fd);
fd                998 user/testbin/psort/psort.c 	int i, fd;
fd               1008 user/testbin/psort/psort.c 		fd = doopen(name, O_RDONLY, 0);
fd               1010 user/testbin/psort/psort.c 		doexactread(name, fd, &smallest, sizeof(int));
fd               1011 user/testbin/psort/psort.c 		doexactread(name, fd, &largest, sizeof(int));
fd               1077 user/testbin/psort/psort.c 	int fd;
fd               1079 user/testbin/psort/psort.c 	fd = doopen(PATH_RANDOM, O_RDONLY, 0);
fd               1080 user/testbin/psort/psort.c 	doexactread(PATH_RANDOM, fd, &randomseed, sizeof(randomseed));
fd               1081 user/testbin/psort/psort.c 	doclose(PATH_RANDOM, fd);
fd                137 user/testbin/rmdirtest/rmdirtest.c 	int fd;
fd                141 user/testbin/rmdirtest/rmdirtest.c 	fd = open(".", O_RDONLY);
fd                142 user/testbin/rmdirtest/rmdirtest.c 	if (fd<0) {
fd                149 user/testbin/rmdirtest/rmdirtest.c 	if (close(fd)<0) {
fd                163 user/testbin/rmdirtest/rmdirtest.c 	int fd;
fd                169 user/testbin/rmdirtest/rmdirtest.c 	fd = open(".", O_RDONLY);
fd                170 user/testbin/rmdirtest/rmdirtest.c 	if (fd<0) {
fd                182 user/testbin/rmdirtest/rmdirtest.c 		close(fd);
fd                185 user/testbin/rmdirtest/rmdirtest.c 	fd = open("..", O_RDONLY);
fd                186 user/testbin/rmdirtest/rmdirtest.c 	if (fd<0) {
fd                199 user/testbin/rmdirtest/rmdirtest.c 		close(fd);
fd                203 user/testbin/rmdirtest/rmdirtest.c 	fd = open(buf, O_RDONLY);
fd                204 user/testbin/rmdirtest/rmdirtest.c 	if (fd<0) {
fd                231 user/testbin/rmdirtest/rmdirtest.c 	int fd;
fd                237 user/testbin/rmdirtest/rmdirtest.c 	fd = open("newfile", O_WRONLY|O_CREAT|O_TRUNC, 0664);
fd                238 user/testbin/rmdirtest/rmdirtest.c 	if (fd<0) {
fd                257 user/testbin/rmdirtest/rmdirtest.c 		write(fd, buf, sizeof(buf));
fd                258 user/testbin/rmdirtest/rmdirtest.c 		write(fd, buf, sizeof(buf));
fd                259 user/testbin/rmdirtest/rmdirtest.c 		write(fd, buf, sizeof(buf));
fd                260 user/testbin/rmdirtest/rmdirtest.c 		write(fd, buf, sizeof(buf));
fd                261 user/testbin/rmdirtest/rmdirtest.c 		close(fd);
fd                316 user/testbin/rmdirtest/rmdirtest.c 	int fd, len;
fd                320 user/testbin/rmdirtest/rmdirtest.c 	fd = open(".", O_RDONLY);
fd                321 user/testbin/rmdirtest/rmdirtest.c 	if (fd<0) {
fd                326 user/testbin/rmdirtest/rmdirtest.c 	while ((len = getdirentry(fd, buf, sizeof(buf)-1))>0) {
fd                354 user/testbin/rmdirtest/rmdirtest.c 	if (close(fd)<0) {
fd                 52 user/testbin/rmtest/rmtest.c dorm(int fd)
fd                 72 user/testbin/rmtest/rmtest.c 		close(fd);
fd                 19 user/uw-testbin/writeread/writeread.c    int i, rc, fd;
fd                 32 user/uw-testbin/writeread/writeread.c    fd = open("WRITE_READ_FILE", O_WRONLY | O_CREAT);
fd                 33 user/uw-testbin/writeread/writeread.c    TEST_POSITIVE(fd, "Open file named WRITE_READ_FILE failed\n");
fd                 36 user/uw-testbin/writeread/writeread.c 		 rc = write(fd, write_array, sizeof(write_array));
fd                 40 user/uw-testbin/writeread/writeread.c    close(fd);
fd                 43 user/uw-testbin/writeread/writeread.c    fd = open("WRITE_READ_FILE", O_RDONLY);
fd                 44 user/uw-testbin/writeread/writeread.c    TEST_POSITIVE(fd, "Open file named WRITE_READ_FILE failed\n");
fd                 47 user/uw-testbin/writeread/writeread.c 		 rc = read(fd, read_array, sizeof(read_array));