Sync usage with man page.
[netbsd-mini2440.git] / sbin / fsck_lfs / kernelops.h
blob781feb500b8155b729761da9fa0cccb9a303223f
1 #ifndef _LFS_KERNEL_OPS_H_
2 #define _LFS_KERNEL_OPS_H_
4 #include <sys/types.h>
5 #include <sys/statvfs.h>
7 #include <fcntl.h>
8 #include <unistd.h>
10 struct kernelops {
11 int (*ko_open)(const char *, int, ...);
12 int (*ko_statvfs)(const char *, struct statvfs *, int);
13 int (*ko_fcntl)(int, int, ...);
14 int (*ko_fhopen)(const void *, size_t, int);
15 int (*ko_close)(int);
17 ssize_t (*ko_pread)(int, void *, size_t, off_t);
18 ssize_t (*ko_pwrite)(int, const void *, size_t, off_t);
20 extern const struct kernelops kops;
22 #endif /* _LFS_KERNEL_OPS_H_ */