]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blame - include/xfs.h
xfs: log bmap intent items
[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>
44#elif defined(__sgi__) || defined(__sgi)
45#include <xfs/irix.h>
46#else
47# error unknown platform... have fun porting!
48#endif
49
dcabd4e7
CH
50/*
51 * sparse kernel source annotations
52 */
53#ifndef __user
54#define __user
55#endif
56
34f7aca6
CH
57/*
58 * kernel struct packing shortcut
59 */
60#ifndef __packed
61#define __packed __attribute__((packed))
62#endif
63
f8d94331
CH
64#include <xfs/xfs_types.h>
65#include <xfs/xfs_fs.h>
1bdd986b
NS
66
67#endif /* __XFS_H__ */