vm: fix potential null deref
[minix.git] / sys / lib / libsa / lfsv2.c
blob498a9389ba6804bcac29858ee132b0a38c5ca6f8
1 /* $NetBSD: lfsv2.c,v 1.4 2011/12/25 06:09:08 tsutsui 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 #endif
16 #define fs_bsize lfs_bsize
17 #define IFILE_Vx IFILE
19 #ifdef LFS_IFILE_FRAG_ADDRESSING /* XXX see sys/ufs/lfs/ -- not tested */
20 #define INOPBx(fs) INOPF(fs)
21 #else
22 #define INOPBx(fs) INOPB(fs)
23 #endif
25 #define FSMOD "lfs"
26 #define FSMOD2 "ffs"
28 #include "lib/libsa/ufs.c"