command.h \
input.h \
path.h \
- project.h
+ project.h \
+ platform_defs.h \
HFILES = handle.h \
jdm.h \
$(PKG_PLATFORM).h \
- platform_defs.h \
xfs.h \
xqm.h \
xfs_arch.h
#include "libxfs_api_defs.h"
#include "platform_defs.h"
+#include "xfs.h"
#include "list.h"
#include "hlist.h"
#include <inttypes.h>
#include <malloc.h>
#include <getopt.h>
+#include <errno.h>
#include <endian.h>
#include <stdbool.h>
#include <asm/types.h>
#ifndef __PATH_H__
#define __PATH_H__
-#include "xfs.h"
+#include "platform_defs.h"
/*
* XFS Filesystem Paths
typedef struct filldir filldir_t;
-#if defined(__linux__)
-#include <xfs/linux.h>
-#elif defined(__FreeBSD__)
-#include <xfs/freebsd.h>
-#elif defined(__FreeBSD_kernel__)
-#include <xfs/gnukfreebsd.h>
-#elif defined(__APPLE__)
-#include <xfs/darwin.h>
-#elif defined(__sgi__) || defined(__sgi)
-#include <xfs/irix.h>
-#else
-# error unknown platform... have fun porting!
-#endif
-
/* long and pointer must be either 32 bit or 64 bit */
#undef SIZEOF_LONG
#undef SIZEOF_CHAR_P
#endif
#include <locale.h>
-#ifdef DEBUG
-# define ASSERT(EX) assert(EX)
-#else
-# define ASSERT(EX) ((void) 0)
-#endif
-
-/*
- * sparse kernel source annotations
- */
-#ifndef __user
-#define __user
-#endif
-
#define IRIX_DEV_BITSMAJOR 14
#define IRIX_DEV_BITSMINOR 18
#define IRIX_DEV_MAXMAJ 0x1ff
#ifndef __PROJECT_H__
#define __PROJECT_H__
+#include "platform_defs.h"
#include "xfs.h"
extern int setprojid(const char *__name, int __fd, prid_t __id);
#ifndef __XFS_H__
#define __XFS_H__
-#include <xfs/platform_defs.h>
+#if defined(__linux__)
+#include <xfs/linux.h>
+#elif defined(__FreeBSD__)
+#include <xfs/freebsd.h>
+#elif defined(__FreeBSD_kernel__)
+#include <xfs/gnukfreebsd.h>
+#elif defined(__APPLE__)
+#include <xfs/darwin.h>
+#elif defined(__sgi__) || defined(__sgi)
+#include <xfs/irix.h>
+#else
+# error unknown platform... have fun porting!
+#endif
+
+#ifdef DEBUG
+# define ASSERT(EX) assert(EX)
+#else
+# define ASSERT(EX) ((void) 0)
+#endif
+
+/*
+ * sparse kernel source annotations
+ */
+#ifndef __user
+#define __user
+#endif
+
#include <xfs/xfs_types.h>
#include <xfs/xfs_fs.h>
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "xfs.h"
#include "command.h"
#include "input.h"
#include "init.h"
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "xfs.h"
+#include "platform_defs.h"
#include "command.h"
#include "init.h"
#include "io.h"
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "xfs.h"
#include "command.h"
#include "input.h"
#include "init.h"
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "xfs.h"
+#include "platform_defs.h"
#include "command.h"
#include <linux/fiemap.h>
#include <linux/fs.h>
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "xfs.h"
#include "command.h"
#include "input.h"
#include <sys/mman.h>
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "xfs.h"
#include "command.h"
#include "input.h"
#include "init.h"
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "xfs.h"
+#include "platform_defs.h"
#include "command.h"
#include "init.h"
#include "io.h"
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "xfs.h"
#include "command.h"
#include "input.h"
#include <sys/time.h>
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "xfs.h"
#include "command.h"
#include "input.h"
#include "init.h"
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "xfs.h"
+#include "platform_defs.h"
#include "command.h"
#include "input.h"
#include "init.h"
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "xfs.h"
#include "command.h"
#include "input.h"
#include "init.h"
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "xfs.h"
+
/*
* Read/write patterns (default is always "forward")
*/
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "xfs.h"
#include "command.h"
#include "input.h"
#include "init.h"
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "xfs.h"
#include "command.h"
#include "input.h"
#include <sys/mman.h>
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "xfs.h"
#include "command.h"
#include "input.h"
#include <sys/mman.h>
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "xfs.h"
#include "command.h"
#include "input.h"
#include <sys/mman.h>
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "xfs.h"
#include "command.h"
#include "input.h"
#include "init.h"
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "xfs.h"
#include "command.h"
#include "input.h"
#include "path.h"
*/
#include <sys/uio.h>
-#include "xfs.h"
#include "command.h"
#include "input.h"
#include <ctype.h>
#if defined(HAVE_FALLOCATE)
#include <linux/falloc.h>
#endif
-#include "xfs.h"
#include "command.h"
#include "input.h"
#include "init.h"
*/
#include <sys/uio.h>
-#include "xfs.h"
#include "command.h"
#include "input.h"
#include "init.h"
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "xfs.h"
#include "command.h"
#include "input.h"
#include "init.h"
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "xfs.h"
#include "command.h"
#include "input.h"
#include "init.h"
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "xfs.h"
#include "command.h"
#include "input.h"
#include <sys/types.h>
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "xfs.h"
#include "command.h"
#include "input.h"
#include <sys/sendfile.h>
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "xfs.h"
#include "command.h"
#include "input.h"
#include "init.h"
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "xfs.h"
+#include "platform_defs.h"
#include "command.h"
#include "init.h"
#include "io.h"
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "xfs.h"
#include "command.h"
#include "input.h"
#include "init.h"
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "xfs.h"
#include "command.h"
#include "input.h"
#include "init.h"
*/
#include <libgen.h>
+#include "platform_defs.h"
#include "xfs.h"
#include "handle.h"
#include "parent.h"
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "platform_defs.h"
#include "xfs.h"
#include "handle.h"
#include "jdm.h"
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "xfs.h"
+#include "platform_defs.h"
#include "command.h"
#include "input.h"
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "xfs.h"
+#include "platform_defs.h"
#include "command.h"
static cmdinfo_t help_cmd;
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "xfs.h"
+#include "platform_defs.h"
#include "input.h"
#include <ctype.h>
#include <stdbool.h>
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "xfs.h"
+#include "platform_defs.h"
#include "command.h"
static cmdinfo_t quit_cmd;
*/
#include "platform_defs.h"
+#include "xfs.h"
#include "xfs_arch.h"
#include "crc32defs.h"
#include "libxfs_api_defs.h"
#include "platform_defs.h"
+#include "xfs.h"
#include "list.h"
#include "hlist.h"
*/
#include "platform_defs.h"
+#include "xfs.h"
#include "radix-tree.h"
#ifndef ARRAY_SIZE