Remove building with NOCRYPTO option
[minix3.git] / sys / lib / libsa / lfsv2.c
blob77c85bd57fd228acbf13a5b9c13f2b5881f58bc5
1 /* $NetBSD: lfsv2.c,v 1.14 2015/08/12 18:28:01 dholland Exp $ */
3 #define LIBSA_LFS
4 #define REQUIRED_LFS_VERSION 2
6 #define ufs_open lfsv2_open
7 #define ufs_close lfsv2_close
8 #define ufs_read lfsv2_read
9 #define ufs_write lfsv2_write
10 #define ufs_seek lfsv2_seek
11 #define ufs_stat lfsv2_stat
12 #if defined(LIBSA_ENABLE_LS_OP)
13 #define ufs_ls lfsv2_ls
14 #if defined(__minix) && defined(LIBSA_ENABLE_LOAD_MODS_OP)
15 #define ufs_load_mods lfsv2_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_bsize
23 #ifdef LFS_IFILE_FRAG_ADDRESSING /* XXX see sys/ufs/lfs/ -- not tested */
24 #define INOPBx(fs) LFS_INOPF(fs)
25 #else
26 #define INOPBx(fs) LFS_INOPB(fs)
27 #endif
29 #define UFS_NINDIR LFS_NINDIR
30 #define ufs_blkoff(a, b) lfs_blkoff((a), (b))
31 #define ufs_lblkno(a, b) lfs_lblkno((a), (b))
32 #define dblksize(a, b, c) lfs_dblksize((a), (b), (c))
33 #define FSBTODB(a, b) LFS_FSBTODB((a), (b))
35 #define FSMOD "lfs"
37 #include "lib/libsa/ufs.c"