]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blame - include/xfs.h
libxfs: Catch non-empty zones on destroy
[thirdparty/xfsprogs-dev.git] / include / xfs.h
CommitLineData
1bdd986b
NS
1/*
2 * Copyright (c) 2005 Silicon Graphics, Inc. All Rights Reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of version 2.1 of the GNU Lesser General Public License
6 * as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it would be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11 *
12 * Further, this software is distributed without any warranty that it is
13 * free of the rightful claim of any third person regarding infringement
14 * or the like. Any license provided herein, whether implied or
15 * otherwise, applies only to this software file. Patent licenses, if
16 * any, provided herein do not apply to combinations of this program with
17 * other software, or any other product whatsoever.
18 *
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this program; if not, write the Free Software
21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston MA 02111-1307,
22 * USA.
23 *
24 * Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
25 * Mountain View, CA 94043, or:
26 *
27 * http://www.sgi.com
28 *
29 * For further information regarding this notice, see:
30 *
31 * http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/
32 */
33#ifndef __XFS_H__
34#define __XFS_H__
35
dcabd4e7
CH
36#if defined(__linux__)
37#include <xfs/linux.h>
38#elif defined(__FreeBSD__)
39#include <xfs/freebsd.h>
40#elif defined(__FreeBSD_kernel__)
41#include <xfs/gnukfreebsd.h>
42#elif defined(__APPLE__)
43#include <xfs/darwin.h>
dcabd4e7
CH
44#else
45# error unknown platform... have fun porting!
46#endif
47
7fda99a0
FJ
48/*
49 * make sure that any user of the xfs headers has a 64bit off_t type
50 */
51extern int xfs_assert_largefile[sizeof(off_t)-8];
52
dcabd4e7
CH
53/*
54 * sparse kernel source annotations
55 */
56#ifndef __user
57#define __user
58#endif
59
34f7aca6
CH
60/*
61 * kernel struct packing shortcut
62 */
63#ifndef __packed
64#define __packed __attribute__((packed))
65#endif
66
fc60b66d
ES
67#ifndef BUILD_BUG_ON
68#define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)]))
69#endif
70
f8d94331
CH
71#include <xfs/xfs_types.h>
72#include <xfs/xfs_fs.h>
1bdd986b
NS
73
74#endif /* __XFS_H__ */