Drop main() prototype. Syncs with NetBSD-8
[minix.git] / sys / lib / libsa / lfsv1.c
blob86dcf1eb80b7cc207219571404c0d6529767506b
1 /* $NetBSD: lfsv1.c,v 1.14 2015/08/12 18:28:01 dholland Exp $ */
3 #define LIBSA_LFS
4 #define REQUIRED_LFS_VERSION 1
6 #define ufs_open lfsv1_open
7 #define ufs_close lfsv1_close
8 #define ufs_read lfsv1_read
9 #define ufs_write lfsv1_write
10 #define ufs_seek lfsv1_seek
11 #define ufs_stat lfsv1_stat
12 #if defined(LIBSA_ENABLE_LS_OP)
13 #define ufs_ls lfsv1_ls
14 #if defined(__minix) && defined(LIBSA_ENABLE_LOAD_MODS_OP)
15 #define ufs_load_mods lfsv1_load_mods
16 #endif /* defined(__minix) && defined(LIBSA_ENABLE_LOAD_MODS_OP) */
17 #endif
19 #define ufs_dinode lfs32_dinode
21 #define fs_bsize lfs_dlfs_u.u_32.dlfs_ibsize
23 #define INOPBx(fs) LFS_INOPB(fs)
25 #define UFS_NINDIR LFS_NINDIR
26 #define ufs_blkoff(a, b) lfs_blkoff((a), (b))
27 #define ufs_lblkno(a, b) lfs_lblkno((a), (b))
28 #define dblksize(a, b, c) lfs_dblksize((a), (b), (c))
29 #define FSBTODB(fs, daddr) (daddr) /* LFSv1 uses sectors for addresses */
31 #define FSMOD "lfs"
33 #include "lib/libsa/ufs.c"