ntfs.h (54095) | ntfs.h (55989) |
---|---|
1/* $NetBSD: ntfs.h,v 1.9 1999/10/31 19:45:26 jdolecek Exp $ */ 2 3/*- 4 * Copyright (c) 1998, 1999 Semen Ustimenko 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 11 unchanged lines hidden (view full) --- 20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * | 1/* $NetBSD: ntfs.h,v 1.9 1999/10/31 19:45:26 jdolecek Exp $ */ 2 3/*- 4 * Copyright (c) 1998, 1999 Semen Ustimenko 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 11 unchanged lines hidden (view full) --- 20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * |
28 * $FreeBSD: head/sys/fs/ntfs/ntfs.h 54095 1999-12-03 20:37:40Z semenu $ | 28 * $FreeBSD: head/sys/fs/ntfs/ntfs.h 55989 2000-01-14 19:47:07Z bde $ |
29 */ 30 31/*#define NTFS_DEBUG 1*/ 32#if defined(__NetBSD__) && defined(_KERNEL) && !defined(_LKM) 33#include "opt_ntfs.h" 34#endif 35 36typedef u_int64_t cn_t; --- 241 unchanged lines hidden (view full) --- 278#define ntfs_cntob(cn) (off_t)((cn) * (ntmp)->ntm_spc * (ntmp)->ntm_bps) 279#define ntfs_btocn(off) (cn_t)((off) / ((ntmp)->ntm_spc * (ntmp)->ntm_bps)) 280#define ntfs_btocl(off) (cn_t)((off + ntfs_cntob(1) - 1) / ((ntmp)->ntm_spc * (ntmp)->ntm_bps)) 281#define ntfs_btocnoff(off) (off_t)((off) % ((ntmp)->ntm_spc * (ntmp)->ntm_bps)) 282#define ntfs_bntob(bn) (daddr_t)((bn) * (ntmp)->ntm_bps) 283 284#define ntfs_bpbl (daddr_t)((ntmp)->ntm_bps) 285 | 29 */ 30 31/*#define NTFS_DEBUG 1*/ 32#if defined(__NetBSD__) && defined(_KERNEL) && !defined(_LKM) 33#include "opt_ntfs.h" 34#endif 35 36typedef u_int64_t cn_t; --- 241 unchanged lines hidden (view full) --- 278#define ntfs_cntob(cn) (off_t)((cn) * (ntmp)->ntm_spc * (ntmp)->ntm_bps) 279#define ntfs_btocn(off) (cn_t)((off) / ((ntmp)->ntm_spc * (ntmp)->ntm_bps)) 280#define ntfs_btocl(off) (cn_t)((off + ntfs_cntob(1) - 1) / ((ntmp)->ntm_spc * (ntmp)->ntm_bps)) 281#define ntfs_btocnoff(off) (off_t)((off) % ((ntmp)->ntm_spc * (ntmp)->ntm_bps)) 282#define ntfs_bntob(bn) (daddr_t)((bn) * (ntmp)->ntm_bps) 283 284#define ntfs_bpbl (daddr_t)((ntmp)->ntm_bps) 285 |
286#if __FreeBSD_version >= 300000 | 286#ifdef MALLOC_DECLARE |
287MALLOC_DECLARE(M_NTFSMNT); 288MALLOC_DECLARE(M_NTFSNTNODE); 289MALLOC_DECLARE(M_NTFSFNODE); 290MALLOC_DECLARE(M_NTFSDIR); 291MALLOC_DECLARE(M_NTFSNTHASH); 292#endif 293 294#ifdef __NetBSD__ --- 42 unchanged lines hidden --- | 287MALLOC_DECLARE(M_NTFSMNT); 288MALLOC_DECLARE(M_NTFSNTNODE); 289MALLOC_DECLARE(M_NTFSFNODE); 290MALLOC_DECLARE(M_NTFSDIR); 291MALLOC_DECLARE(M_NTFSNTHASH); 292#endif 293 294#ifdef __NetBSD__ --- 42 unchanged lines hidden --- |