Lines Matching refs:dosfs
45 readboot(int dosfs, struct bootblock *boot) in readboot() argument
53 if ((size_t)read(dosfs, block, sizeof block) != sizeof block) { in readboot()
130 if (lseek(dosfs, boot->bpbFSInfo * boot->bpbBytesPerSec, in readboot()
132 || read(dosfs, fsinfo, sizeof fsinfo) != sizeof fsinfo) { in readboot()
156 if (lseek(dosfs, boot->bpbFSInfo * in readboot()
159 || write(dosfs, fsinfo, sizeof fsinfo) in readboot()
177 if (lseek(dosfs, boot->bpbBackup * boot->bpbBytesPerSec, in readboot()
180 || read(dosfs, backup, sizeof backup) != sizeof backup) { in readboot()
260 writefsinfo(int dosfs, struct bootblock *boot) in writefsinfo() argument
264 if (lseek(dosfs, boot->bpbFSInfo * boot->bpbBytesPerSec, SEEK_SET) in writefsinfo()
266 || read(dosfs, fsinfo, sizeof fsinfo) != sizeof fsinfo) { in writefsinfo()
278 if (lseek(dosfs, boot->bpbFSInfo * boot->bpbBytesPerSec, SEEK_SET) in writefsinfo()
280 || write(dosfs, fsinfo, sizeof fsinfo) in writefsinfo()