Searched refs:fsfd (Results 1 – 1 of 1) sorted by relevance
/xv6-public/ |
H A D | mkfs.c | 29 int fsfd; variable 87 fsfd = open(argv[1], O_RDWR|O_CREAT|O_TRUNC, 0666); in main() 88 if(fsfd < 0){ in main() 173 if(lseek(fsfd, sec * BSIZE, 0) != sec * BSIZE){ in wsect() 177 if(write(fsfd, buf, BSIZE) != BSIZE){ in wsect() 213 if(lseek(fsfd, sec * BSIZE, 0) != sec * BSIZE){ in rsect() 217 if(read(fsfd, buf, BSIZE) != BSIZE){ in rsect()
|