arm-linux-gnueabi-gcc  -E -Wall  -MD -DEMBED -O2 -O1 -g -funsigned-char -Wall -I. -I../include -DVERSION=\"2.6.3\" -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64  -I /home/shearer/Linksys_SMB/source/xfsprogs-2.7.11/growfs/../../library/include  xfs_growfs.c
# 1 "xfs_growfs.c"
# 1 "/home/shearer/Linksys_SMB/source/xfsprogs-2.7.11/growfs//"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "xfs_growfs.c"
# 19 "xfs_growfs.c"
# 1 "../include/xfs/libxfs.h" 1
# 24 "../include/xfs/libxfs.h"
# 1 "../include/xfs/platform_defs.h" 1
# 24 "../include/xfs/platform_defs.h"
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/stdio.h" 1 3 4
# 28 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/stdio.h" 3 4
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/features.h" 1 3 4
# 274 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/features.h" 3 4
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/predefs.h" 1 3 4
# 275 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/features.h" 2 3 4
# 307 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/features.h" 3 4
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/cdefs.h" 1 3 4
# 308 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/features.h" 2 3 4
# 330 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/features.h" 3 4
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/gnu/stubs.h" 1 3 4
# 331 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/features.h" 2 3 4
# 29 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/stdio.h" 2 3 4





# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/include/stddef.h" 1 3 4
# 213 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/include/stddef.h" 3 4
typedef unsigned int size_t;
# 35 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/stdio.h" 2 3 4

# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/types.h" 1 3 4
# 28 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/types.h" 3 4
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/wordsize.h" 1 3 4
# 29 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/types.h" 2 3 4


# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/include/stddef.h" 1 3 4
# 32 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/types.h" 2 3 4


typedef unsigned char __u_char;
typedef unsigned short int __u_short;
typedef unsigned int __u_int;
typedef unsigned long int __u_long;


typedef signed char __int8_t;
typedef unsigned char __uint8_t;
typedef signed short int __int16_t;
typedef unsigned short int __uint16_t;
typedef signed int __int32_t;
typedef unsigned int __uint32_t;




__extension__ typedef signed long long int __int64_t;
__extension__ typedef unsigned long long int __uint64_t;







__extension__ typedef long long int __quad_t;
__extension__ typedef unsigned long long int __u_quad_t;
# 129 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/types.h" 3 4
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/typesizes.h" 1 3 4
# 130 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/types.h" 2 3 4






__extension__ typedef __u_quad_t __dev_t;
__extension__ typedef unsigned int __uid_t;
__extension__ typedef unsigned int __gid_t;
__extension__ typedef unsigned long int __ino_t;
__extension__ typedef __u_quad_t __ino64_t;
__extension__ typedef unsigned int __mode_t;
__extension__ typedef unsigned int __nlink_t;
__extension__ typedef long int __off_t;
__extension__ typedef __quad_t __off64_t;
__extension__ typedef int __pid_t;
__extension__ typedef struct { int __val[2]; } __fsid_t;
__extension__ typedef long int __clock_t;
__extension__ typedef unsigned long int __rlim_t;
__extension__ typedef __u_quad_t __rlim64_t;
__extension__ typedef unsigned int __id_t;
__extension__ typedef long int __time_t;
__extension__ typedef unsigned int __useconds_t;
__extension__ typedef long int __suseconds_t;

__extension__ typedef int __daddr_t;
__extension__ typedef long int __swblk_t;
__extension__ typedef int __key_t;


__extension__ typedef int __clockid_t;


__extension__ typedef int __timer_t;


__extension__ typedef long int __blksize_t;




__extension__ typedef long int __blkcnt_t;
__extension__ typedef __quad_t __blkcnt64_t;


__extension__ typedef unsigned long int __fsblkcnt_t;
__extension__ typedef __u_quad_t __fsblkcnt64_t;


__extension__ typedef unsigned long int __fsfilcnt_t;
__extension__ typedef __u_quad_t __fsfilcnt64_t;

__extension__ typedef int __ssize_t;



typedef __off64_t __loff_t;
typedef __quad_t *__qaddr_t;
typedef char *__caddr_t;


__extension__ typedef int __intptr_t;


__extension__ typedef unsigned int __socklen_t;
# 37 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/stdio.h" 2 3 4









typedef struct _IO_FILE FILE;





# 62 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/stdio.h" 3 4
typedef struct _IO_FILE __FILE;
# 72 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/stdio.h" 3 4
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/libio.h" 1 3 4
# 32 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/libio.h" 3 4
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/_G_config.h" 1 3 4
# 14 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/_G_config.h" 3 4
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/include/stddef.h" 1 3 4
# 325 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/include/stddef.h" 3 4
typedef unsigned int wchar_t;
# 354 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/include/stddef.h" 3 4
typedef unsigned int wint_t;
# 15 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/_G_config.h" 2 3 4
# 24 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/_G_config.h" 3 4
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/wchar.h" 1 3 4
# 48 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/wchar.h" 3 4
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/include/stddef.h" 1 3 4
# 49 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/wchar.h" 2 3 4

# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/wchar.h" 1 3 4
# 51 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/wchar.h" 2 3 4
# 76 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/wchar.h" 3 4
typedef struct
{
  int __count;
  union
  {
    wint_t __wch;
    char __wchb[4];
  } __value;
} __mbstate_t;
# 25 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/_G_config.h" 2 3 4

typedef struct
{
  __off_t __pos;
  __mbstate_t __state;
} _G_fpos_t;
typedef struct
{
  __off64_t __pos;
  __mbstate_t __state;
} _G_fpos64_t;
# 44 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/_G_config.h" 3 4
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/gconv.h" 1 3 4
# 28 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/gconv.h" 3 4
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/wchar.h" 1 3 4
# 48 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/wchar.h" 3 4
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/include/stddef.h" 1 3 4
# 49 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/wchar.h" 2 3 4
# 29 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/gconv.h" 2 3 4


# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/include/stddef.h" 1 3 4
# 32 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/gconv.h" 2 3 4





enum
{
  __GCONV_OK = 0,
  __GCONV_NOCONV,
  __GCONV_NODB,
  __GCONV_NOMEM,

  __GCONV_EMPTY_INPUT,
  __GCONV_FULL_OUTPUT,
  __GCONV_ILLEGAL_INPUT,
  __GCONV_INCOMPLETE_INPUT,

  __GCONV_ILLEGAL_DESCRIPTOR,
  __GCONV_INTERNAL_ERROR
};



enum
{
  __GCONV_IS_LAST = 0x0001,
  __GCONV_IGNORE_ERRORS = 0x0002
};



struct __gconv_step;
struct __gconv_step_data;
struct __gconv_loaded_object;
struct __gconv_trans_data;



typedef int (*__gconv_fct) (struct __gconv_step *, struct __gconv_step_data *,
       __const unsigned char **, __const unsigned char *,
       unsigned char **, size_t *, int, int);


typedef wint_t (*__gconv_btowc_fct) (struct __gconv_step *, unsigned char);


typedef int (*__gconv_init_fct) (struct __gconv_step *);
typedef void (*__gconv_end_fct) (struct __gconv_step *);



typedef int (*__gconv_trans_fct) (struct __gconv_step *,
      struct __gconv_step_data *, void *,
      __const unsigned char *,
      __const unsigned char **,
      __const unsigned char *, unsigned char **,
      size_t *);


typedef int (*__gconv_trans_context_fct) (void *, __const unsigned char *,
       __const unsigned char *,
       unsigned char *, unsigned char *);


typedef int (*__gconv_trans_query_fct) (__const char *, __const char ***,
     size_t *);


typedef int (*__gconv_trans_init_fct) (void **, const char *);
typedef void (*__gconv_trans_end_fct) (void *);

struct __gconv_trans_data
{

  __gconv_trans_fct __trans_fct;
  __gconv_trans_context_fct __trans_context_fct;
  __gconv_trans_end_fct __trans_end_fct;
  void *__data;
  struct __gconv_trans_data *__next;
};



struct __gconv_step
{
  struct __gconv_loaded_object *__shlib_handle;
  __const char *__modname;

  int __counter;

  char *__from_name;
  char *__to_name;

  __gconv_fct __fct;
  __gconv_btowc_fct __btowc_fct;
  __gconv_init_fct __init_fct;
  __gconv_end_fct __end_fct;



  int __min_needed_from;
  int __max_needed_from;
  int __min_needed_to;
  int __max_needed_to;


  int __stateful;

  void *__data;
};



struct __gconv_step_data
{
  unsigned char *__outbuf;
  unsigned char *__outbufend;



  int __flags;



  int __invocation_counter;



  int __internal_use;

  __mbstate_t *__statep;
  __mbstate_t __state;



  struct __gconv_trans_data *__trans;
};



typedef struct __gconv_info
{
  size_t __nsteps;
  struct __gconv_step *__steps;
  __extension__ struct __gconv_step_data __data [];
} *__gconv_t;
# 45 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/_G_config.h" 2 3 4
typedef union
{
  struct __gconv_info __cd;
  struct
  {
    struct __gconv_info __cd;
    struct __gconv_step_data __data;
  } __combined;
} _G_iconv_t;

typedef int _G_int16_t __attribute__ ((__mode__ (__HI__)));
typedef int _G_int32_t __attribute__ ((__mode__ (__SI__)));
typedef unsigned int _G_uint16_t __attribute__ ((__mode__ (__HI__)));
typedef unsigned int _G_uint32_t __attribute__ ((__mode__ (__SI__)));
# 33 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/libio.h" 2 3 4
# 53 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/libio.h" 3 4
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/include/stdarg.h" 1 3 4
# 43 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/include/stdarg.h" 3 4
typedef __builtin_va_list __gnuc_va_list;
# 54 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/libio.h" 2 3 4
# 166 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/libio.h" 3 4
struct _IO_jump_t; struct _IO_FILE;
# 176 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/libio.h" 3 4
typedef void _IO_lock_t;





struct _IO_marker {
  struct _IO_marker *_next;
  struct _IO_FILE *_sbuf;



  int _pos;
# 199 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/libio.h" 3 4
};


enum __codecvt_result
{
  __codecvt_ok,
  __codecvt_partial,
  __codecvt_error,
  __codecvt_noconv
};
# 267 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/libio.h" 3 4
struct _IO_FILE {
  int _flags;




  char* _IO_read_ptr;
  char* _IO_read_end;
  char* _IO_read_base;
  char* _IO_write_base;
  char* _IO_write_ptr;
  char* _IO_write_end;
  char* _IO_buf_base;
  char* _IO_buf_end;

  char *_IO_save_base;
  char *_IO_backup_base;
  char *_IO_save_end;

  struct _IO_marker *_markers;

  struct _IO_FILE *_chain;

  int _fileno;



  int _flags2;

  __off_t _old_offset;



  unsigned short _cur_column;
  signed char _vtable_offset;
  char _shortbuf[1];



  _IO_lock_t *_lock;
# 315 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/libio.h" 3 4
  __off64_t _offset;





  void *__pad1;
  void *__pad2;

  int _mode;

  char _unused2[15 * sizeof (int) - 2 * sizeof (void *)];

};


typedef struct _IO_FILE _IO_FILE;


struct _IO_FILE_plus;

extern struct _IO_FILE_plus _IO_2_1_stdin_;
extern struct _IO_FILE_plus _IO_2_1_stdout_;
extern struct _IO_FILE_plus _IO_2_1_stderr_;
# 354 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/libio.h" 3 4
typedef __ssize_t __io_read_fn (void *__cookie, char *__buf, size_t __nbytes);







typedef __ssize_t __io_write_fn (void *__cookie, __const char *__buf,
     size_t __n);







typedef int __io_seek_fn (void *__cookie, __off64_t *__pos, int __w);


typedef int __io_close_fn (void *__cookie);




typedef __io_read_fn cookie_read_function_t;
typedef __io_write_fn cookie_write_function_t;
typedef __io_seek_fn cookie_seek_function_t;
typedef __io_close_fn cookie_close_function_t;


typedef struct
{
  __io_read_fn *read;
  __io_write_fn *write;
  __io_seek_fn *seek;
  __io_close_fn *close;
} _IO_cookie_io_functions_t;
typedef _IO_cookie_io_functions_t cookie_io_functions_t;

struct _IO_cookie_file;


extern void _IO_cookie_init (struct _IO_cookie_file *__cfile, int __read_write,
        void *__cookie, _IO_cookie_io_functions_t __fns);







extern int __underflow (_IO_FILE *) __attribute__ ((__nothrow__));
extern int __uflow (_IO_FILE *) __attribute__ ((__nothrow__));
extern int __overflow (_IO_FILE *, int) __attribute__ ((__nothrow__));
extern wint_t __wunderflow (_IO_FILE *) __attribute__ ((__nothrow__));
extern wint_t __wuflow (_IO_FILE *) __attribute__ ((__nothrow__));
extern wint_t __woverflow (_IO_FILE *, wint_t) __attribute__ ((__nothrow__));
# 444 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/libio.h" 3 4
extern int _IO_getc (_IO_FILE *__fp) __attribute__ ((__nothrow__));
extern int _IO_putc (int __c, _IO_FILE *__fp) __attribute__ ((__nothrow__));
extern int _IO_feof (_IO_FILE *__fp) __attribute__ ((__nothrow__));
extern int _IO_ferror (_IO_FILE *__fp) __attribute__ ((__nothrow__));

extern int _IO_peekc_locked (_IO_FILE *__fp) __attribute__ ((__nothrow__));





extern void _IO_flockfile (_IO_FILE *) __attribute__ ((__nothrow__));
extern void _IO_funlockfile (_IO_FILE *) __attribute__ ((__nothrow__));
extern int _IO_ftrylockfile (_IO_FILE *) __attribute__ ((__nothrow__));
# 474 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/libio.h" 3 4
extern int _IO_vfscanf (_IO_FILE * __restrict, const char * __restrict,
   __gnuc_va_list, int *__restrict) __attribute__ ((__nothrow__));
extern int _IO_vfprintf (_IO_FILE *__restrict, const char *__restrict,
    __gnuc_va_list) __attribute__ ((__nothrow__));
extern __ssize_t _IO_padn (_IO_FILE *, int, __ssize_t) __attribute__ ((__nothrow__));
extern size_t _IO_sgetn (_IO_FILE *, void *, size_t) __attribute__ ((__nothrow__));

extern __off64_t _IO_seekoff (_IO_FILE *, __off64_t, int, int) __attribute__ ((__nothrow__));
extern __off64_t _IO_seekpos (_IO_FILE *, __off64_t, int) __attribute__ ((__nothrow__));

extern void _IO_free_backup_area (_IO_FILE *) __attribute__ ((__nothrow__));
# 73 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/stdio.h" 2 3 4




typedef __gnuc_va_list va_list;
# 86 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/stdio.h" 3 4




typedef _G_fpos64_t fpos_t;



typedef _G_fpos64_t fpos64_t;
# 138 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/stdio.h" 3 4
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/stdio_lim.h" 1 3 4
# 139 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/stdio.h" 2 3 4



extern struct _IO_FILE *stdin;
extern struct _IO_FILE *stdout;
extern struct _IO_FILE *stderr;







extern int remove (__const char *__filename) __attribute__ ((__nothrow__));

extern int rename (__const char *__old, __const char *__new) __attribute__ ((__nothrow__));




# 167 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/stdio.h" 3 4
extern FILE *tmpfile (void) __asm__ ("" "tmpfile64");






extern FILE *tmpfile64 (void);



extern char *tmpnam (char *__s) __attribute__ ((__nothrow__));





extern char *tmpnam_r (char *__s) __attribute__ ((__nothrow__));
# 196 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/stdio.h" 3 4
extern char *tempnam (__const char *__dir, __const char *__pfx)
     __attribute__ ((__nothrow__)) __attribute__ ((__malloc__));








extern int fclose (FILE *__stream);




extern int fflush (FILE *__stream);

# 221 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/stdio.h" 3 4
extern int fflush_unlocked (FILE *__stream);
# 231 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/stdio.h" 3 4
extern int fcloseall (void);




# 252 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/stdio.h" 3 4
extern FILE *fopen (__const char *__restrict __filename, __const char *__restrict __modes) __asm__ ("" "fopen64");

extern FILE *freopen (__const char *__restrict __filename, __const char *__restrict __modes, FILE *__restrict __stream) __asm__ ("" "freopen64");









extern FILE *fopen64 (__const char *__restrict __filename,
        __const char *__restrict __modes);
extern FILE *freopen64 (__const char *__restrict __filename,
   __const char *__restrict __modes,
   FILE *__restrict __stream);




extern FILE *fdopen (int __fd, __const char *__modes) __attribute__ ((__nothrow__));





extern FILE *fopencookie (void *__restrict __magic_cookie,
     __const char *__restrict __modes,
     _IO_cookie_io_functions_t __io_funcs) __attribute__ ((__nothrow__));


extern FILE *fmemopen (void *__s, size_t __len, __const char *__modes) __attribute__ ((__nothrow__));




extern FILE *open_memstream (char **__restrict __bufloc,
        size_t *__restrict __sizeloc) __attribute__ ((__nothrow__));






extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) __attribute__ ((__nothrow__));



extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf,
      int __modes, size_t __n) __attribute__ ((__nothrow__));





extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf,
         size_t __size) __attribute__ ((__nothrow__));


extern void setlinebuf (FILE *__stream) __attribute__ ((__nothrow__));








extern int fprintf (FILE *__restrict __stream,
      __const char *__restrict __format, ...);




extern int printf (__const char *__restrict __format, ...);

extern int sprintf (char *__restrict __s,
      __const char *__restrict __format, ...) __attribute__ ((__nothrow__));





extern int vfprintf (FILE *__restrict __s, __const char *__restrict __format,
       __gnuc_va_list __arg);




extern int vprintf (__const char *__restrict __format, __gnuc_va_list __arg);

extern int vsprintf (char *__restrict __s, __const char *__restrict __format,
       __gnuc_va_list __arg) __attribute__ ((__nothrow__));





extern int snprintf (char *__restrict __s, size_t __maxlen,
       __const char *__restrict __format, ...)
     __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 4)));

extern int vsnprintf (char *__restrict __s, size_t __maxlen,
        __const char *__restrict __format, __gnuc_va_list __arg)
     __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 0)));






extern int vasprintf (char **__restrict __ptr, __const char *__restrict __f,
        __gnuc_va_list __arg)
     __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 2, 0)));
extern int __asprintf (char **__restrict __ptr,
         __const char *__restrict __fmt, ...)
     __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 2, 3)));
extern int asprintf (char **__restrict __ptr,
       __const char *__restrict __fmt, ...)
     __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 2, 3)));







extern int vdprintf (int __fd, __const char *__restrict __fmt,
       __gnuc_va_list __arg)
     __attribute__ ((__format__ (__printf__, 2, 0)));
extern int dprintf (int __fd, __const char *__restrict __fmt, ...)
     __attribute__ ((__format__ (__printf__, 2, 3)));








extern int fscanf (FILE *__restrict __stream,
     __const char *__restrict __format, ...);




extern int scanf (__const char *__restrict __format, ...);

extern int sscanf (__const char *__restrict __s,
     __const char *__restrict __format, ...) __attribute__ ((__nothrow__));








extern int vfscanf (FILE *__restrict __s, __const char *__restrict __format,
      __gnuc_va_list __arg)
     __attribute__ ((__format__ (__scanf__, 2, 0)));





extern int vscanf (__const char *__restrict __format, __gnuc_va_list __arg)
     __attribute__ ((__format__ (__scanf__, 1, 0)));


extern int vsscanf (__const char *__restrict __s,
      __const char *__restrict __format, __gnuc_va_list __arg)
     __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__scanf__, 2, 0)));









extern int fgetc (FILE *__stream);
extern int getc (FILE *__stream);





extern int getchar (void);

# 454 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/stdio.h" 3 4
extern int getc_unlocked (FILE *__stream);
extern int getchar_unlocked (void);
# 465 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/stdio.h" 3 4
extern int fgetc_unlocked (FILE *__stream);











extern int fputc (int __c, FILE *__stream);
extern int putc (int __c, FILE *__stream);





extern int putchar (int __c);

# 498 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/stdio.h" 3 4
extern int fputc_unlocked (int __c, FILE *__stream);







extern int putc_unlocked (int __c, FILE *__stream);
extern int putchar_unlocked (int __c);






extern int getw (FILE *__stream);


extern int putw (int __w, FILE *__stream);








extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream);






extern char *gets (char *__s);

# 543 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/stdio.h" 3 4
extern char *fgets_unlocked (char *__restrict __s, int __n,
        FILE *__restrict __stream);
# 559 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/stdio.h" 3 4
extern __ssize_t __getdelim (char **__restrict __lineptr,
          size_t *__restrict __n, int __delimiter,
          FILE *__restrict __stream);
extern __ssize_t getdelim (char **__restrict __lineptr,
        size_t *__restrict __n, int __delimiter,
        FILE *__restrict __stream);







extern __ssize_t getline (char **__restrict __lineptr,
       size_t *__restrict __n,
       FILE *__restrict __stream);








extern int fputs (__const char *__restrict __s, FILE *__restrict __stream);





extern int puts (__const char *__s);






extern int ungetc (int __c, FILE *__stream);






extern size_t fread (void *__restrict __ptr, size_t __size,
       size_t __n, FILE *__restrict __stream);




extern size_t fwrite (__const void *__restrict __ptr, size_t __size,
        size_t __n, FILE *__restrict __s);

# 620 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/stdio.h" 3 4
extern int fputs_unlocked (__const char *__restrict __s,
      FILE *__restrict __stream);
# 631 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/stdio.h" 3 4
extern size_t fread_unlocked (void *__restrict __ptr, size_t __size,
         size_t __n, FILE *__restrict __stream);
extern size_t fwrite_unlocked (__const void *__restrict __ptr, size_t __size,
          size_t __n, FILE *__restrict __stream);








extern int fseek (FILE *__stream, long int __off, int __whence);




extern long int ftell (FILE *__stream);




extern void rewind (FILE *__stream);

# 675 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/stdio.h" 3 4
extern int fseeko (FILE *__stream, __off64_t __off, int __whence) __asm__ ("" "fseeko64");


extern __off64_t ftello (FILE *__stream) __asm__ ("" "ftello64");








# 700 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/stdio.h" 3 4
extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos) __asm__ ("" "fgetpos64");

extern int fsetpos (FILE *__stream, __const fpos_t *__pos) __asm__ ("" "fsetpos64");









extern int fseeko64 (FILE *__stream, __off64_t __off, int __whence);
extern __off64_t ftello64 (FILE *__stream);
extern int fgetpos64 (FILE *__restrict __stream, fpos64_t *__restrict __pos);
extern int fsetpos64 (FILE *__stream, __const fpos64_t *__pos);




extern void clearerr (FILE *__stream) __attribute__ ((__nothrow__));

extern int feof (FILE *__stream) __attribute__ ((__nothrow__));

extern int ferror (FILE *__stream) __attribute__ ((__nothrow__));




extern void clearerr_unlocked (FILE *__stream) __attribute__ ((__nothrow__));
extern int feof_unlocked (FILE *__stream) __attribute__ ((__nothrow__));
extern int ferror_unlocked (FILE *__stream) __attribute__ ((__nothrow__));








extern void perror (__const char *__s);






# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/sys_errlist.h" 1 3 4
# 27 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/sys_errlist.h" 3 4
extern int sys_nerr;
extern __const char *__const sys_errlist[];


extern int _sys_nerr;
extern __const char *__const _sys_errlist[];
# 748 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/stdio.h" 2 3 4




extern int fileno (FILE *__stream) __attribute__ ((__nothrow__));




extern int fileno_unlocked (FILE *__stream) __attribute__ ((__nothrow__));
# 767 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/stdio.h" 3 4
extern FILE *popen (__const char *__command, __const char *__modes);





extern int pclose (FILE *__stream);





extern char *ctermid (char *__s) __attribute__ ((__nothrow__));





extern char *cuserid (char *__s);




struct obstack;


extern int obstack_printf (struct obstack *__restrict __obstack,
      __const char *__restrict __format, ...)
     __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 2, 3)));
extern int obstack_vprintf (struct obstack *__restrict __obstack,
       __const char *__restrict __format,
       __gnuc_va_list __args)
     __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 2, 0)));







extern void flockfile (FILE *__stream) __attribute__ ((__nothrow__));



extern int ftrylockfile (FILE *__stream) __attribute__ ((__nothrow__));


extern void funlockfile (FILE *__stream) __attribute__ ((__nothrow__));
# 828 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/stdio.h" 3 4
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/stdio.h" 1 3 4
# 33 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/stdio.h" 3 4
extern __inline int
vprintf (__const char *__restrict __fmt, __gnuc_va_list __arg)
{
  return vfprintf (stdout, __fmt, __arg);
}


extern __inline int
getchar (void)
{
  return _IO_getc (stdin);
}




extern __inline int
getc_unlocked (FILE *__fp)
{
  return (__builtin_expect ((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end, 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++);
}


extern __inline int
getchar_unlocked (void)
{
  return (__builtin_expect ((stdin)->_IO_read_ptr >= (stdin)->_IO_read_end, 0) ? __uflow (stdin) : *(unsigned char *) (stdin)->_IO_read_ptr++);
}




extern __inline int
putchar (int __c)
{
  return _IO_putc (__c, stdout);
}




extern __inline int
fputc_unlocked (int __c, FILE *__stream)
{
  return (__builtin_expect ((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end, 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c)));
}





extern __inline int
putc_unlocked (int __c, FILE *__stream)
{
  return (__builtin_expect ((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end, 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c)));
}


extern __inline int
putchar_unlocked (int __c)
{
  return (__builtin_expect ((stdout)->_IO_write_ptr >= (stdout)->_IO_write_end, 0) ? __overflow (stdout, (unsigned char) (__c)) : (unsigned char) (*(stdout)->_IO_write_ptr++ = (__c)));
}





extern __inline __ssize_t
getline (char **__lineptr, size_t *__n, FILE *__stream)
{
  return __getdelim (__lineptr, __n, '\n', __stream);
}





extern __inline int
__attribute__ ((__nothrow__)) feof_unlocked (FILE *__stream)
{
  return (((__stream)->_flags & 0x10) != 0);
}


extern __inline int
__attribute__ ((__nothrow__)) ferror_unlocked (FILE *__stream)
{
  return (((__stream)->_flags & 0x20) != 0);
}
# 829 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/stdio.h" 2 3 4






# 25 "../include/xfs/platform_defs.h" 2
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/errno.h" 1 3 4
# 32 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/errno.h" 3 4




# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/errno.h" 1 3 4
# 25 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/errno.h" 3 4
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/linux/errno.h" 1 3 4



# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/asm/errno.h" 1 3 4



# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/asm-generic/errno.h" 1 3 4



# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/asm-generic/errno-base.h" 1 3 4
# 5 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/asm-generic/errno.h" 2 3 4
# 5 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/asm/errno.h" 2 3 4
# 5 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/linux/errno.h" 2 3 4
# 26 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/errno.h" 2 3 4
# 38 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/errno.h" 3 4
extern int *__errno_location (void) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
# 37 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/errno.h" 2 3 4
# 55 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/errno.h" 3 4
extern char *program_invocation_name, *program_invocation_short_name;




# 69 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/errno.h" 3 4
typedef int error_t;
# 26 "../include/xfs/platform_defs.h" 2
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/fcntl.h" 1 3 4
# 29 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/fcntl.h" 3 4




# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/fcntl.h" 1 3 4
# 25 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/fcntl.h" 3 4
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/types.h" 1 3 4
# 29 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/types.h" 3 4






typedef __u_char u_char;
typedef __u_short u_short;
typedef __u_int u_int;
typedef __u_long u_long;
typedef __quad_t quad_t;
typedef __u_quad_t u_quad_t;
typedef __fsid_t fsid_t;




typedef __loff_t loff_t;





typedef __ino64_t ino_t;




typedef __ino64_t ino64_t;




typedef __dev_t dev_t;




typedef __gid_t gid_t;




typedef __mode_t mode_t;




typedef __nlink_t nlink_t;




typedef __uid_t uid_t;







typedef __off64_t off_t;




typedef __off64_t off64_t;




typedef __pid_t pid_t;




typedef __id_t id_t;




typedef __ssize_t ssize_t;





typedef __daddr_t daddr_t;
typedef __caddr_t caddr_t;





typedef __key_t key_t;
# 133 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/types.h" 3 4
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/time.h" 1 3 4
# 58 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/time.h" 3 4


typedef __clock_t clock_t;



# 74 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/time.h" 3 4


typedef __time_t time_t;



# 92 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/time.h" 3 4
typedef __clockid_t clockid_t;
# 104 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/time.h" 3 4
typedef __timer_t timer_t;
# 134 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/types.h" 2 3 4



typedef __useconds_t useconds_t;



typedef __suseconds_t suseconds_t;





# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/include/stddef.h" 1 3 4
# 148 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/types.h" 2 3 4



typedef unsigned long int ulong;
typedef unsigned short int ushort;
typedef unsigned int uint;
# 191 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/types.h" 3 4
typedef int int8_t __attribute__ ((__mode__ (__QI__)));
typedef int int16_t __attribute__ ((__mode__ (__HI__)));
typedef int int32_t __attribute__ ((__mode__ (__SI__)));
typedef int int64_t __attribute__ ((__mode__ (__DI__)));


typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__)));
typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__)));
typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__)));
typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__)));

typedef int register_t __attribute__ ((__mode__ (__word__)));
# 213 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/types.h" 3 4
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/endian.h" 1 3 4
# 37 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/endian.h" 3 4
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/endian.h" 1 3 4
# 38 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/endian.h" 2 3 4
# 214 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/types.h" 2 3 4


# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/select.h" 1 3 4
# 31 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/select.h" 3 4
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/select.h" 1 3 4
# 32 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/select.h" 2 3 4


# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/sigset.h" 1 3 4
# 23 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/sigset.h" 3 4
typedef int __sig_atomic_t;




typedef struct
  {
    unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))];
  } __sigset_t;
# 35 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/select.h" 2 3 4



typedef __sigset_t sigset_t;





# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/time.h" 1 3 4
# 118 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/time.h" 3 4
struct timespec
  {
    __time_t tv_sec;
    long int tv_nsec;
  };
# 45 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/select.h" 2 3 4

# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/time.h" 1 3 4
# 69 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/time.h" 3 4
struct timeval
  {
    __time_t tv_sec;
    __suseconds_t tv_usec;
  };
# 47 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/select.h" 2 3 4
# 55 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/select.h" 3 4
typedef long int __fd_mask;
# 67 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/select.h" 3 4
typedef struct
  {



    __fd_mask fds_bits[1024 / (8 * sizeof (__fd_mask))];





  } fd_set;






typedef __fd_mask fd_mask;
# 99 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/select.h" 3 4

# 109 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/select.h" 3 4
extern int select (int __nfds, fd_set *__restrict __readfds,
     fd_set *__restrict __writefds,
     fd_set *__restrict __exceptfds,
     struct timeval *__restrict __timeout);
# 121 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/select.h" 3 4
extern int pselect (int __nfds, fd_set *__restrict __readfds,
      fd_set *__restrict __writefds,
      fd_set *__restrict __exceptfds,
      const struct timespec *__restrict __timeout,
      const __sigset_t *__restrict __sigmask);



# 217 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/types.h" 2 3 4


# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/sysmacros.h" 1 3 4
# 29 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/sysmacros.h" 3 4
__extension__
extern __inline unsigned int gnu_dev_major (unsigned long long int __dev)
     __attribute__ ((__nothrow__));
__extension__
extern __inline unsigned int gnu_dev_minor (unsigned long long int __dev)
     __attribute__ ((__nothrow__));
__extension__
extern __inline unsigned long long int gnu_dev_makedev (unsigned int __major,
       unsigned int __minor)
     __attribute__ ((__nothrow__));


__extension__ extern __inline unsigned int
__attribute__ ((__nothrow__)) gnu_dev_major (unsigned long long int __dev)
{
  return ((__dev >> 8) & 0xfff) | ((unsigned int) (__dev >> 32) & ~0xfff);
}

__extension__ extern __inline unsigned int
__attribute__ ((__nothrow__)) gnu_dev_minor (unsigned long long int __dev)
{
  return (__dev & 0xff) | ((unsigned int) (__dev >> 12) & ~0xff);
}

__extension__ extern __inline unsigned long long int
__attribute__ ((__nothrow__)) gnu_dev_makedev (unsigned int __major, unsigned int __minor)
{
  return ((__minor & 0xff) | ((__major & 0xfff) << 8)
   | (((unsigned long long int) (__minor & ~0xff)) << 12)
   | (((unsigned long long int) (__major & ~0xfff)) << 32));
}
# 220 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/types.h" 2 3 4




typedef __blksize_t blksize_t;
# 244 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/types.h" 3 4
typedef __blkcnt64_t blkcnt_t;



typedef __fsblkcnt64_t fsblkcnt_t;



typedef __fsfilcnt64_t fsfilcnt_t;





typedef __blkcnt64_t blkcnt64_t;
typedef __fsblkcnt64_t fsblkcnt64_t;
typedef __fsfilcnt64_t fsfilcnt64_t;





# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/pthreadtypes.h" 1 3 4
# 23 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/pthreadtypes.h" 3 4
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/sched.h" 1 3 4
# 83 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/sched.h" 3 4
struct __sched_param
  {
    int __sched_priority;
  };
# 24 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/pthreadtypes.h" 2 3 4


struct _pthread_fastlock
{
  long int __status;
  int __spinlock;

};



typedef struct _pthread_descr_struct *_pthread_descr;





typedef struct __pthread_attr_s
{
  int __detachstate;
  int __schedpolicy;
  struct __sched_param __schedparam;
  int __inheritsched;
  int __scope;
  size_t __guardsize;
  int __stackaddr_set;
  void *__stackaddr;
  size_t __stacksize;
} pthread_attr_t;





__extension__ typedef long long __pthread_cond_align_t;




typedef struct
{
  struct _pthread_fastlock __c_lock;
  _pthread_descr __c_waiting;
  char __padding[48 - sizeof (struct _pthread_fastlock)
   - sizeof (_pthread_descr) - sizeof (__pthread_cond_align_t)];
  __pthread_cond_align_t __align;
} pthread_cond_t;



typedef struct
{
  int __dummy;
} pthread_condattr_t;


typedef unsigned int pthread_key_t;





typedef struct
{
  int __m_reserved;
  int __m_count;
  _pthread_descr __m_owner;
  int __m_kind;
  struct _pthread_fastlock __m_lock;
} pthread_mutex_t;



typedef struct
{
  int __mutexkind;
} pthread_mutexattr_t;



typedef int pthread_once_t;




typedef struct _pthread_rwlock_t
{
  struct _pthread_fastlock __rw_lock;
  int __rw_readers;
  _pthread_descr __rw_writer;
  _pthread_descr __rw_read_waiting;
  _pthread_descr __rw_write_waiting;
  int __rw_kind;
  int __rw_pshared;
} pthread_rwlock_t;



typedef struct
{
  int __lockkind;
  int __pshared;
} pthread_rwlockattr_t;




typedef volatile int pthread_spinlock_t;


typedef struct {
  struct _pthread_fastlock __ba_lock;
  int __ba_required;
  int __ba_present;
  _pthread_descr __ba_waiting;
} pthread_barrier_t;


typedef struct {
  int __pshared;
} pthread_barrierattr_t;





typedef unsigned long int pthread_t;
# 267 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/types.h" 2 3 4



# 26 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/fcntl.h" 2 3 4
# 138 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/fcntl.h" 3 4
struct flock
  {
    short int l_type;
    short int l_whence;




    __off64_t l_start;
    __off64_t l_len;

    __pid_t l_pid;
  };


struct flock64
  {
    short int l_type;
    short int l_whence;
    __off64_t l_start;
    __off64_t l_len;
    __pid_t l_pid;
  };
# 183 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/fcntl.h" 3 4



extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)
    __attribute__ ((__nothrow__));


# 34 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/fcntl.h" 2 3 4



# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/stat.h" 1 3 4
# 37 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/stat.h" 3 4
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/time.h" 1 3 4
# 38 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/stat.h" 2 3 4
# 103 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/stat.h" 3 4


# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/stat.h" 1 3 4
# 36 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/stat.h" 3 4
struct stat
  {
    __dev_t st_dev;
    unsigned short int __pad1;



    __ino_t __st_ino;

    __mode_t st_mode;
    __nlink_t st_nlink;
    __uid_t st_uid;
    __gid_t st_gid;
    __dev_t st_rdev;
    unsigned short int __pad2;



    __off64_t st_size;

    __blksize_t st_blksize;




    __blkcnt64_t st_blocks;
# 70 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/stat.h" 3 4
    struct timespec st_atim;
    struct timespec st_mtim;
    struct timespec st_ctim;
# 88 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/stat.h" 3 4
    __ino64_t st_ino;

  };


struct stat64
  {
    __dev_t st_dev;
    unsigned int __pad1;

    __ino_t __st_ino;
    __mode_t st_mode;
    __nlink_t st_nlink;
    __uid_t st_uid;
    __gid_t st_gid;
    __dev_t st_rdev;
    unsigned int __pad2;
    __off64_t st_size;
    __blksize_t st_blksize;

    __blkcnt64_t st_blocks;







    struct timespec st_atim;
    struct timespec st_mtim;
    struct timespec st_ctim;
# 127 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/stat.h" 3 4
    __ino64_t st_ino;
  };
# 106 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/stat.h" 2 3 4
# 215 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/stat.h" 3 4
extern int stat (__const char *__restrict __file, struct stat *__restrict __buf) __asm__ ("" "stat64") __attribute__ ((__nothrow__))

     __attribute__ ((__nonnull__ (1, 2)));
extern int fstat (int __fd, struct stat *__buf) __asm__ ("" "fstat64") __attribute__ ((__nothrow__))
     __attribute__ ((__nonnull__ (2)));






extern int stat64 (__const char *__restrict __file,
     struct stat64 *__restrict __buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
extern int fstat64 (int __fd, struct stat64 *__buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
# 239 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/stat.h" 3 4
extern int lstat (__const char *__restrict __file, struct stat *__restrict __buf) __asm__ ("" "lstat64") __attribute__ ((__nothrow__))


     __attribute__ ((__nonnull__ (1, 2)));





extern int lstat64 (__const char *__restrict __file,
      struct stat64 *__restrict __buf)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));





extern int chmod (__const char *__file, __mode_t __mode)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));





extern int lchmod (__const char *__file, __mode_t __mode)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));




extern int fchmod (int __fd, __mode_t __mode) __attribute__ ((__nothrow__));





extern __mode_t umask (__mode_t __mask) __attribute__ ((__nothrow__));




extern __mode_t getumask (void) __attribute__ ((__nothrow__));



extern int mkdir (__const char *__path, __mode_t __mode)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));





extern int mknod (__const char *__path, __mode_t __mode, __dev_t __dev)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));




extern int mkfifo (__const char *__path, __mode_t __mode)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
# 332 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/stat.h" 3 4
extern int __fxstat (int __ver, int __fildes, struct stat *__stat_buf) __asm__ ("" "__fxstat64") __attribute__ ((__nothrow__))

     __attribute__ ((__nonnull__ (3)));
extern int __xstat (int __ver, __const char *__filename, struct stat *__stat_buf) __asm__ ("" "__xstat64") __attribute__ ((__nothrow__))

     __attribute__ ((__nonnull__ (2, 3)));
extern int __lxstat (int __ver, __const char *__filename, struct stat *__stat_buf) __asm__ ("" "__lxstat64") __attribute__ ((__nothrow__))

     __attribute__ ((__nonnull__ (2, 3)));
# 350 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/stat.h" 3 4
extern int __fxstat64 (int __ver, int __fildes, struct stat64 *__stat_buf)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3)));
extern int __xstat64 (int __ver, __const char *__filename,
        struct stat64 *__stat_buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3)));
extern int __lxstat64 (int __ver, __const char *__filename,
         struct stat64 *__stat_buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3)));

extern int __xmknod (int __ver, __const char *__path, __mode_t __mode,
       __dev_t *__dev) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 4)));




extern __inline__ int
__attribute__ ((__nothrow__)) stat (__const char *__path, struct stat *__statbuf)
{
  return __xstat (3, __path, __statbuf);
}


extern __inline__ int
__attribute__ ((__nothrow__)) lstat (__const char *__path, struct stat *__statbuf)
{
  return __lxstat (3, __path, __statbuf);
}


extern __inline__ int
__attribute__ ((__nothrow__)) fstat (int __fd, struct stat *__statbuf)
{
  return __fxstat (3, __fd, __statbuf);
}


extern __inline__ int
__attribute__ ((__nothrow__)) mknod (__const char *__path, __mode_t __mode, __dev_t __dev)
{
  return __xmknod (1, __path, __mode, &__dev);
}





extern __inline__ int
__attribute__ ((__nothrow__)) stat64 (__const char *__path, struct stat64 *__statbuf)
{
  return __xstat64 (3, __path, __statbuf);
}


extern __inline__ int
__attribute__ ((__nothrow__)) lstat64 (__const char *__path, struct stat64 *__statbuf)
{
  return __lxstat64 (3, __path, __statbuf);
}


extern __inline__ int
__attribute__ ((__nothrow__)) fstat64 (int __fd, struct stat64 *__statbuf)
{
  return __fxstat64 (3, __fd, __statbuf);
}





# 38 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/fcntl.h" 2 3 4
# 63 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/fcntl.h" 3 4
extern int fcntl (int __fd, int __cmd, ...);
# 75 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/fcntl.h" 3 4
extern int open (__const char *__file, int __oflag, ...) __asm__ ("" "open64")
     __attribute__ ((__nonnull__ (1)));





extern int open64 (__const char *__file, int __oflag, ...) __attribute__ ((__nonnull__ (1)));
# 94 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/fcntl.h" 3 4
extern int creat (__const char *__file, __mode_t __mode) __asm__ ("" "creat64") __attribute__ ((__nonnull__ (1)));






extern int creat64 (__const char *__file, __mode_t __mode) __attribute__ ((__nonnull__ (1)));
# 123 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/fcntl.h" 3 4
extern int lockf (int __fd, int __cmd, __off64_t __len) __asm__ ("" "lockf64");





extern int lockf64 (int __fd, int __cmd, __off64_t __len);
# 141 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/fcntl.h" 3 4
extern int posix_fadvise (int __fd, __off64_t __offset, __off64_t __len, int __advise) __asm__ ("" "posix_fadvise64") __attribute__ ((__nothrow__));







extern int posix_fadvise64 (int __fd, __off64_t __offset, __off64_t __len,
       int __advise) __attribute__ ((__nothrow__));
# 162 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/fcntl.h" 3 4
extern int posix_fallocate (int __fd, __off64_t __offset, __off64_t __len) __asm__ ("" "posix_fallocate64");







extern int posix_fallocate64 (int __fd, __off64_t __offset, __off64_t __len);




# 27 "../include/xfs/platform_defs.h" 2
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/include/stdarg.h" 1 3 4
# 28 "../include/xfs/platform_defs.h" 2
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/assert.h" 1 3 4
# 65 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/assert.h" 3 4



extern void __assert_fail (__const char *__assertion, __const char *__file,
      unsigned int __line, __const char *__function)
     __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));


extern void __assert_perror_fail (int __errnum, __const char *__file,
      unsigned int __line,
      __const char *__function)
     __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));




extern void __assert (const char *__assertion, const char *__file, int __line)
     __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));



# 29 "../include/xfs/platform_defs.h" 2
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/include/stddef.h" 1 3 4
# 151 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/include/stddef.h" 3 4
typedef int ptrdiff_t;
# 30 "../include/xfs/platform_defs.h" 2
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/stdlib.h" 1 3 4
# 33 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/stdlib.h" 3 4
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/include/stddef.h" 1 3 4
# 34 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/stdlib.h" 2 3 4








# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/waitflags.h" 1 3 4
# 43 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/stdlib.h" 2 3 4
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/waitstatus.h" 1 3 4
# 67 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/waitstatus.h" 3 4
union wait
  {
    int w_status;
    struct
      {

 unsigned int __w_termsig:7;
 unsigned int __w_coredump:1;
 unsigned int __w_retcode:8;
 unsigned int:16;







      } __wait_terminated;
    struct
      {

 unsigned int __w_stopval:8;
 unsigned int __w_stopsig:8;
 unsigned int:16;






      } __wait_stopped;
  };
# 44 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/stdlib.h" 2 3 4
# 68 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/stdlib.h" 3 4
typedef union
  {
    union wait *__uptr;
    int *__iptr;
  } __WAIT_STATUS __attribute__ ((__transparent_union__));
# 96 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/stdlib.h" 3 4


typedef struct
  {
    int quot;
    int rem;
  } div_t;



typedef struct
  {
    long int quot;
    long int rem;
  } ldiv_t;







__extension__ typedef struct
  {
    long long int quot;
    long long int rem;
  } lldiv_t;


# 140 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/stdlib.h" 3 4
extern size_t __ctype_get_mb_cur_max (void) __attribute__ ((__nothrow__));




extern double atof (__const char *__nptr)
     __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));

extern int atoi (__const char *__nptr)
     __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));

extern long int atol (__const char *__nptr)
     __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));





__extension__ extern long long int atoll (__const char *__nptr)
     __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));





extern double strtod (__const char *__restrict __nptr,
        char **__restrict __endptr) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));





extern float strtof (__const char *__restrict __nptr,
       char **__restrict __endptr) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));

extern long double strtold (__const char *__restrict __nptr,
       char **__restrict __endptr)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));





extern long int strtol (__const char *__restrict __nptr,
   char **__restrict __endptr, int __base)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));

extern unsigned long int strtoul (__const char *__restrict __nptr,
      char **__restrict __endptr, int __base)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));




__extension__
extern long long int strtoq (__const char *__restrict __nptr,
        char **__restrict __endptr, int __base)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));

__extension__
extern unsigned long long int strtouq (__const char *__restrict __nptr,
           char **__restrict __endptr, int __base)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));





__extension__
extern long long int strtoll (__const char *__restrict __nptr,
         char **__restrict __endptr, int __base)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));

__extension__
extern unsigned long long int strtoull (__const char *__restrict __nptr,
     char **__restrict __endptr, int __base)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));

# 235 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/stdlib.h" 3 4
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/xlocale.h" 1 3 4
# 28 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/xlocale.h" 3 4
typedef struct __locale_struct
{

  struct locale_data *__locales[13];


  const unsigned short int *__ctype_b;
  const int *__ctype_tolower;
  const int *__ctype_toupper;


  const char *__names[13];
} *__locale_t;
# 236 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/stdlib.h" 2 3 4



extern long int strtol_l (__const char *__restrict __nptr,
     char **__restrict __endptr, int __base,
     __locale_t __loc) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 4)));

extern unsigned long int strtoul_l (__const char *__restrict __nptr,
        char **__restrict __endptr,
        int __base, __locale_t __loc)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 4)));

__extension__
extern long long int strtoll_l (__const char *__restrict __nptr,
    char **__restrict __endptr, int __base,
    __locale_t __loc)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 4)));

__extension__
extern unsigned long long int strtoull_l (__const char *__restrict __nptr,
       char **__restrict __endptr,
       int __base, __locale_t __loc)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 4)));

extern double strtod_l (__const char *__restrict __nptr,
   char **__restrict __endptr, __locale_t __loc)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 3)));

extern float strtof_l (__const char *__restrict __nptr,
         char **__restrict __endptr, __locale_t __loc)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 3)));

extern long double strtold_l (__const char *__restrict __nptr,
         char **__restrict __endptr,
         __locale_t __loc) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 3)));






extern double __strtod_internal (__const char *__restrict __nptr,
     char **__restrict __endptr, int __group)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
extern float __strtof_internal (__const char *__restrict __nptr,
    char **__restrict __endptr, int __group)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
extern long double __strtold_internal (__const char *__restrict __nptr,
           char **__restrict __endptr,
           int __group) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));

extern long int __strtol_internal (__const char *__restrict __nptr,
       char **__restrict __endptr,
       int __base, int __group)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));



extern unsigned long int __strtoul_internal (__const char *__restrict __nptr,
          char **__restrict __endptr,
          int __base, int __group)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));




__extension__
extern long long int __strtoll_internal (__const char *__restrict __nptr,
      char **__restrict __endptr,
      int __base, int __group)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));



__extension__
extern unsigned long long int __strtoull_internal (__const char *
         __restrict __nptr,
         char **__restrict __endptr,
         int __base, int __group)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));








extern __inline double
__attribute__ ((__nothrow__)) strtod (__const char *__restrict __nptr, char **__restrict __endptr)
{
  return __strtod_internal (__nptr, __endptr, 0);
}
extern __inline long int
__attribute__ ((__nothrow__)) strtol (__const char *__restrict __nptr, char **__restrict __endptr, int __base)

{
  return __strtol_internal (__nptr, __endptr, __base, 0);
}
extern __inline unsigned long int
__attribute__ ((__nothrow__)) strtoul (__const char *__restrict __nptr, char **__restrict __endptr, int __base)

{
  return __strtoul_internal (__nptr, __endptr, __base, 0);
}




extern __inline float
__attribute__ ((__nothrow__)) strtof (__const char *__restrict __nptr, char **__restrict __endptr)
{
  return __strtof_internal (__nptr, __endptr, 0);
}
extern __inline long double
__attribute__ ((__nothrow__)) strtold (__const char *__restrict __nptr, char **__restrict __endptr)
{
  return __strtold_internal (__nptr, __endptr, 0);
}




__extension__ extern __inline long long int
__attribute__ ((__nothrow__)) strtoq (__const char *__restrict __nptr, char **__restrict __endptr, int __base)

{
  return __strtoll_internal (__nptr, __endptr, __base, 0);
}
__extension__ extern __inline unsigned long long int
__attribute__ ((__nothrow__)) strtouq (__const char *__restrict __nptr, char **__restrict __endptr, int __base)

{
  return __strtoull_internal (__nptr, __endptr, __base, 0);
}




__extension__ extern __inline long long int
__attribute__ ((__nothrow__)) strtoll (__const char *__restrict __nptr, char **__restrict __endptr, int __base)

{
  return __strtoll_internal (__nptr, __endptr, __base, 0);
}
__extension__ extern __inline unsigned long long int
__attribute__ ((__nothrow__)) strtoull (__const char * __restrict __nptr, char **__restrict __endptr, int __base)

{
  return __strtoull_internal (__nptr, __endptr, __base, 0);
}




extern __inline double
__attribute__ ((__nothrow__)) atof (__const char *__nptr)
{
  return strtod (__nptr, (char **) ((void *)0));
}
extern __inline int
__attribute__ ((__nothrow__)) atoi (__const char *__nptr)
{
  return (int) strtol (__nptr, (char **) ((void *)0), 10);
}
extern __inline long int
__attribute__ ((__nothrow__)) atol (__const char *__nptr)
{
  return strtol (__nptr, (char **) ((void *)0), 10);
}




__extension__ extern __inline long long int
__attribute__ ((__nothrow__)) atoll (__const char *__nptr)
{
  return strtoll (__nptr, (char **) ((void *)0), 10);
}

# 424 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/stdlib.h" 3 4
extern char *l64a (long int __n) __attribute__ ((__nothrow__));


extern long int a64l (__const char *__s)
     __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
# 440 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/stdlib.h" 3 4
extern long int random (void) __attribute__ ((__nothrow__));


extern void srandom (unsigned int __seed) __attribute__ ((__nothrow__));





extern char *initstate (unsigned int __seed, char *__statebuf,
   size_t __statelen) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));



extern char *setstate (char *__statebuf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));







struct random_data
  {
    int32_t *fptr;
    int32_t *rptr;
    int32_t *state;
    int rand_type;
    int rand_deg;
    int rand_sep;
    int32_t *end_ptr;
  };

extern int random_r (struct random_data *__restrict __buf,
       int32_t *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));

extern int srandom_r (unsigned int __seed, struct random_data *__buf)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));

extern int initstate_r (unsigned int __seed, char *__restrict __statebuf,
   size_t __statelen,
   struct random_data *__restrict __buf)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 4)));

extern int setstate_r (char *__restrict __statebuf,
         struct random_data *__restrict __buf)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));






extern int rand (void) __attribute__ ((__nothrow__));

extern void srand (unsigned int __seed) __attribute__ ((__nothrow__));




extern int rand_r (unsigned int *__seed) __attribute__ ((__nothrow__));







extern double drand48 (void) __attribute__ ((__nothrow__));
extern double erand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));


extern long int lrand48 (void) __attribute__ ((__nothrow__));
extern long int nrand48 (unsigned short int __xsubi[3])
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));


extern long int mrand48 (void) __attribute__ ((__nothrow__));
extern long int jrand48 (unsigned short int __xsubi[3])
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));


extern void srand48 (long int __seedval) __attribute__ ((__nothrow__));
extern unsigned short int *seed48 (unsigned short int __seed16v[3])
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
extern void lcong48 (unsigned short int __param[7]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));





struct drand48_data
  {
    unsigned short int __x[3];
    unsigned short int __old_x[3];
    unsigned short int __c;
    unsigned short int __init;
    unsigned long long int __a;
  };


extern int drand48_r (struct drand48_data *__restrict __buffer,
        double *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
extern int erand48_r (unsigned short int __xsubi[3],
        struct drand48_data *__restrict __buffer,
        double *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));


extern int lrand48_r (struct drand48_data *__restrict __buffer,
        long int *__restrict __result)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
extern int nrand48_r (unsigned short int __xsubi[3],
        struct drand48_data *__restrict __buffer,
        long int *__restrict __result)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));


extern int mrand48_r (struct drand48_data *__restrict __buffer,
        long int *__restrict __result)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
extern int jrand48_r (unsigned short int __xsubi[3],
        struct drand48_data *__restrict __buffer,
        long int *__restrict __result)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));


extern int srand48_r (long int __seedval, struct drand48_data *__buffer)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));

extern int seed48_r (unsigned short int __seed16v[3],
       struct drand48_data *__buffer) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));

extern int lcong48_r (unsigned short int __param[7],
        struct drand48_data *__buffer)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));









extern void *malloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__));

extern void *calloc (size_t __nmemb, size_t __size)
     __attribute__ ((__nothrow__)) __attribute__ ((__malloc__));







extern void *realloc (void *__ptr, size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__));

extern void free (void *__ptr) __attribute__ ((__nothrow__));




extern void cfree (void *__ptr) __attribute__ ((__nothrow__));



# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/alloca.h" 1 3 4
# 25 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/alloca.h" 3 4
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/include/stddef.h" 1 3 4
# 26 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/alloca.h" 2 3 4







extern void *alloca (size_t __size) __attribute__ ((__nothrow__));






# 607 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/stdlib.h" 2 3 4




extern void *valloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__));




extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size)
     __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1)));




extern void abort (void) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));



extern int atexit (void (*__func) (void)) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));





extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));






extern void exit (int __status) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));






extern void _Exit (int __status) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));






extern char *getenv (__const char *__name) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));




extern char *__secure_getenv (__const char *__name) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));





extern int putenv (char *__string) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));





extern int setenv (__const char *__name, __const char *__value, int __replace)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));


extern int unsetenv (__const char *__name) __attribute__ ((__nothrow__));






extern int clearenv (void) __attribute__ ((__nothrow__));
# 691 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/stdlib.h" 3 4
extern char *mktemp (char *__template) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
# 705 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/stdlib.h" 3 4
extern int mkstemp (char *__template) __asm__ ("" "mkstemp64") __attribute__ ((__nonnull__ (1)));





extern int mkstemp64 (char *__template) __attribute__ ((__nonnull__ (1)));
# 721 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/stdlib.h" 3 4
extern char *mkdtemp (char *__template) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));








extern int system (__const char *__command);







extern char *canonicalize_file_name (__const char *__name)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
# 749 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/stdlib.h" 3 4
extern char *realpath (__const char *__restrict __name,
         char *__restrict __resolved) __attribute__ ((__nothrow__));






typedef int (*__compar_fn_t) (__const void *, __const void *);


typedef __compar_fn_t comparison_fn_t;






extern void *bsearch (__const void *__key, __const void *__base,
        size_t __nmemb, size_t __size, __compar_fn_t __compar)
     __attribute__ ((__nonnull__ (1, 2, 5)));



extern void qsort (void *__base, size_t __nmemb, size_t __size,
     __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4)));



extern int abs (int __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
extern long int labs (long int __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));



__extension__ extern long long int llabs (long long int __x)
     __attribute__ ((__nothrow__)) __attribute__ ((__const__));







extern div_t div (int __numer, int __denom)
     __attribute__ ((__nothrow__)) __attribute__ ((__const__));
extern ldiv_t ldiv (long int __numer, long int __denom)
     __attribute__ ((__nothrow__)) __attribute__ ((__const__));




__extension__ extern lldiv_t lldiv (long long int __numer,
        long long int __denom)
     __attribute__ ((__nothrow__)) __attribute__ ((__const__));

# 814 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/stdlib.h" 3 4
extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt,
     int *__restrict __sign) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4)));




extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt,
     int *__restrict __sign) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4)));




extern char *gcvt (double __value, int __ndigit, char *__buf)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3)));




extern char *qecvt (long double __value, int __ndigit,
      int *__restrict __decpt, int *__restrict __sign)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4)));
extern char *qfcvt (long double __value, int __ndigit,
      int *__restrict __decpt, int *__restrict __sign)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4)));
extern char *qgcvt (long double __value, int __ndigit, char *__buf)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3)));




extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt,
     int *__restrict __sign, char *__restrict __buf,
     size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5)));
extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt,
     int *__restrict __sign, char *__restrict __buf,
     size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5)));

extern int qecvt_r (long double __value, int __ndigit,
      int *__restrict __decpt, int *__restrict __sign,
      char *__restrict __buf, size_t __len)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5)));
extern int qfcvt_r (long double __value, int __ndigit,
      int *__restrict __decpt, int *__restrict __sign,
      char *__restrict __buf, size_t __len)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5)));







extern int mblen (__const char *__s, size_t __n) __attribute__ ((__nothrow__));


extern int mbtowc (wchar_t *__restrict __pwc,
     __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__));


extern int wctomb (char *__s, wchar_t __wchar) __attribute__ ((__nothrow__));



extern size_t mbstowcs (wchar_t *__restrict __pwcs,
   __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__));

extern size_t wcstombs (char *__restrict __s,
   __const wchar_t *__restrict __pwcs, size_t __n)
     __attribute__ ((__nothrow__));








extern int rpmatch (__const char *__response) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
# 902 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/stdlib.h" 3 4
extern int getsubopt (char **__restrict __optionp,
        char *__const *__restrict __tokens,
        char **__restrict __valuep)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2, 3)));





extern void setkey (__const char *__key) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));







extern int posix_openpt (int __oflag);







extern int grantpt (int __fd) __attribute__ ((__nothrow__));



extern int unlockpt (int __fd) __attribute__ ((__nothrow__));




extern char *ptsname (int __fd) __attribute__ ((__nothrow__));






extern int ptsname_r (int __fd, char *__buf, size_t __buflen)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));


extern int getpt (void);






extern int getloadavg (double __loadavg[], int __nelem)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));






# 31 "../include/xfs/platform_defs.h" 2
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/string.h" 1 3 4
# 28 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/string.h" 3 4





# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/include/stddef.h" 1 3 4
# 34 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/string.h" 2 3 4




extern void *memcpy (void *__restrict __dest,
       __const void *__restrict __src, size_t __n)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));


extern void *memmove (void *__dest, __const void *__src, size_t __n)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));






extern void *memccpy (void *__restrict __dest, __const void *__restrict __src,
        int __c, size_t __n)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));





extern void *memset (void *__s, int __c, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));


extern int memcmp (__const void *__s1, __const void *__s2, size_t __n)
     __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));


extern void *memchr (__const void *__s, int __c, size_t __n)
      __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));





extern void *rawmemchr (__const void *__s, int __c)
     __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));


extern void *memrchr (__const void *__s, int __c, size_t __n)
      __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));





extern char *strcpy (char *__restrict __dest, __const char *__restrict __src)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));

extern char *strncpy (char *__restrict __dest,
        __const char *__restrict __src, size_t __n)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));


extern char *strcat (char *__restrict __dest, __const char *__restrict __src)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));

extern char *strncat (char *__restrict __dest, __const char *__restrict __src,
        size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));


extern int strcmp (__const char *__s1, __const char *__s2)
     __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));

extern int strncmp (__const char *__s1, __const char *__s2, size_t __n)
     __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));


extern int strcoll (__const char *__s1, __const char *__s2)
     __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));

extern size_t strxfrm (char *__restrict __dest,
         __const char *__restrict __src, size_t __n)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));

# 121 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/string.h" 3 4
extern int strcoll_l (__const char *__s1, __const char *__s2, __locale_t __l)
     __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3)));

extern size_t strxfrm_l (char *__dest, __const char *__src, size_t __n,
    __locale_t __l) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 4)));




extern char *strdup (__const char *__s)
     __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1)));






extern char *strndup (__const char *__string, size_t __n)
     __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1)));
# 165 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/string.h" 3 4


extern char *strchr (__const char *__s, int __c)
     __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));

extern char *strrchr (__const char *__s, int __c)
     __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));





extern char *strchrnul (__const char *__s, int __c)
     __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));





extern size_t strcspn (__const char *__s, __const char *__reject)
     __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));


extern size_t strspn (__const char *__s, __const char *__accept)
     __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));

extern char *strpbrk (__const char *__s, __const char *__accept)
     __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));

extern char *strstr (__const char *__haystack, __const char *__needle)
     __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));



extern char *strtok (char *__restrict __s, __const char *__restrict __delim)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));




extern char *__strtok_r (char *__restrict __s,
    __const char *__restrict __delim,
    char **__restrict __save_ptr)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3)));

extern char *strtok_r (char *__restrict __s, __const char *__restrict __delim,
         char **__restrict __save_ptr)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3)));




extern char *strcasestr (__const char *__haystack, __const char *__needle)
     __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));






extern void *memmem (__const void *__haystack, size_t __haystacklen,
       __const void *__needle, size_t __needlelen)
     __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 3)));



extern void *__mempcpy (void *__restrict __dest,
   __const void *__restrict __src, size_t __n)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
extern void *mempcpy (void *__restrict __dest,
        __const void *__restrict __src, size_t __n)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));





extern size_t strlen (__const char *__s)
     __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));





extern size_t strnlen (__const char *__string, size_t __maxlen)
     __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));





extern char *strerror (int __errnum) __attribute__ ((__nothrow__));

# 281 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/string.h" 3 4
extern char *strerror_r (int __errnum, char *__buf, size_t __buflen)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));





extern void __bzero (void *__s, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));



extern void bcopy (__const void *__src, void *__dest, size_t __n)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));


extern void bzero (void *__s, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));


extern int bcmp (__const void *__s1, __const void *__s2, size_t __n)
     __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));


extern char *index (__const char *__s, int __c)
     __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));


extern char *rindex (__const char *__s, int __c)
     __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));



extern int ffs (int __i) __attribute__ ((__nothrow__)) __attribute__ ((__const__));




extern int ffsl (long int __l) __attribute__ ((__nothrow__)) __attribute__ ((__const__));

__extension__ extern int ffsll (long long int __ll)
     __attribute__ ((__nothrow__)) __attribute__ ((__const__));




extern int strcasecmp (__const char *__s1, __const char *__s2)
     __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));


extern int strncasecmp (__const char *__s1, __const char *__s2, size_t __n)
     __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));





extern int strcasecmp_l (__const char *__s1, __const char *__s2,
    __locale_t __loc)
     __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3)));

extern int strncasecmp_l (__const char *__s1, __const char *__s2,
     size_t __n, __locale_t __loc)
     __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 4)));





extern char *strsep (char **__restrict __stringp,
       __const char *__restrict __delim)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));




extern int strverscmp (__const char *__s1, __const char *__s2)
     __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));


extern char *strsignal (int __sig) __attribute__ ((__nothrow__));


extern char *__stpcpy (char *__restrict __dest, __const char *__restrict __src)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
extern char *stpcpy (char *__restrict __dest, __const char *__restrict __src)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));



extern char *__stpncpy (char *__restrict __dest,
   __const char *__restrict __src, size_t __n)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
extern char *stpncpy (char *__restrict __dest,
        __const char *__restrict __src, size_t __n)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));


extern char *strfry (char *__string) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));


extern void *memfrob (void *__s, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));






extern char *basename (__const char *__filename) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
# 414 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/string.h" 3 4
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/string.h" 1 3 4
# 415 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/string.h" 2 3 4


# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/string2.h" 1 3 4
# 80 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/string2.h" 3 4
typedef struct { unsigned char __arr[2]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR2;
typedef struct { unsigned char __arr[3]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR3;
typedef struct { unsigned char __arr[4]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR4;
typedef struct { unsigned char __arr[5]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR5;
typedef struct { unsigned char __arr[6]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR6;
typedef struct { unsigned char __arr[7]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR7;
typedef struct { unsigned char __arr[8]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR8;
# 394 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/string2.h" 3 4
extern void *__rawmemchr (const void *__s, int __c);
# 969 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/string2.h" 3 4
extern __inline size_t __strcspn_c1 (__const char *__s, int __reject);
extern __inline size_t
__strcspn_c1 (__const char *__s, int __reject)
{
  register size_t __result = 0;
  while (__s[__result] != '\0' && __s[__result] != __reject)
    ++__result;
  return __result;
}

extern __inline size_t __strcspn_c2 (__const char *__s, int __reject1,
         int __reject2);
extern __inline size_t
__strcspn_c2 (__const char *__s, int __reject1, int __reject2)
{
  register size_t __result = 0;
  while (__s[__result] != '\0' && __s[__result] != __reject1
  && __s[__result] != __reject2)
    ++__result;
  return __result;
}

extern __inline size_t __strcspn_c3 (__const char *__s, int __reject1,
         int __reject2, int __reject3);
extern __inline size_t
__strcspn_c3 (__const char *__s, int __reject1, int __reject2,
       int __reject3)
{
  register size_t __result = 0;
  while (__s[__result] != '\0' && __s[__result] != __reject1
  && __s[__result] != __reject2 && __s[__result] != __reject3)
    ++__result;
  return __result;
}
# 1045 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/string2.h" 3 4
extern __inline size_t __strspn_c1 (__const char *__s, int __accept);
extern __inline size_t
__strspn_c1 (__const char *__s, int __accept)
{
  register size_t __result = 0;

  while (__s[__result] == __accept)
    ++__result;
  return __result;
}

extern __inline size_t __strspn_c2 (__const char *__s, int __accept1,
        int __accept2);
extern __inline size_t
__strspn_c2 (__const char *__s, int __accept1, int __accept2)
{
  register size_t __result = 0;

  while (__s[__result] == __accept1 || __s[__result] == __accept2)
    ++__result;
  return __result;
}

extern __inline size_t __strspn_c3 (__const char *__s, int __accept1,
        int __accept2, int __accept3);
extern __inline size_t
__strspn_c3 (__const char *__s, int __accept1, int __accept2, int __accept3)
{
  register size_t __result = 0;

  while (__s[__result] == __accept1 || __s[__result] == __accept2
  || __s[__result] == __accept3)
    ++__result;
  return __result;
}
# 1121 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/string2.h" 3 4
extern __inline char *__strpbrk_c2 (__const char *__s, int __accept1,
         int __accept2);
extern __inline char *
__strpbrk_c2 (__const char *__s, int __accept1, int __accept2)
{

  while (*__s != '\0' && *__s != __accept1 && *__s != __accept2)
    ++__s;
  return *__s == '\0' ? ((void *)0) : (char *) (size_t) __s;
}

extern __inline char *__strpbrk_c3 (__const char *__s, int __accept1,
         int __accept2, int __accept3);
extern __inline char *
__strpbrk_c3 (__const char *__s, int __accept1, int __accept2,
       int __accept3)
{

  while (*__s != '\0' && *__s != __accept1 && *__s != __accept2
  && *__s != __accept3)
    ++__s;
  return *__s == '\0' ? ((void *)0) : (char *) (size_t) __s;
}
# 1173 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/string2.h" 3 4
extern __inline char *__strtok_r_1c (char *__s, char __sep, char **__nextp);
extern __inline char *
__strtok_r_1c (char *__s, char __sep, char **__nextp)
{
  char *__result;
  if (__s == ((void *)0))
    __s = *__nextp;
  while (*__s == __sep)
    ++__s;
  __result = ((void *)0);
  if (*__s != '\0')
    {
      __result = __s++;
      while (*__s != '\0')
 if (*__s++ == __sep)
   {
     __s[-1] = '\0';
     break;
   }
      *__nextp = __s;
    }
  return __result;
}
# 1205 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/string2.h" 3 4
extern char *__strsep_g (char **__stringp, __const char *__delim);
# 1223 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/string2.h" 3 4
extern __inline char *__strsep_1c (char **__s, char __reject);
extern __inline char *
__strsep_1c (char **__s, char __reject)
{
  register char *__retval = *__s;
  if (__retval != ((void *)0) && (*__s = (__extension__ (__builtin_constant_p (__reject) && !__builtin_constant_p (__retval) && (__reject) == '\0' ? (char *) __rawmemchr (__retval, __reject) : __builtin_strchr (__retval, __reject)))) != ((void *)0))
    *(*__s)++ = '\0';
  return __retval;
}

extern __inline char *__strsep_2c (char **__s, char __reject1, char __reject2);
extern __inline char *
__strsep_2c (char **__s, char __reject1, char __reject2)
{
  register char *__retval = *__s;
  if (__retval != ((void *)0))
    {
      register char *__cp = __retval;
      while (1)
 {
   if (*__cp == '\0')
     {
       __cp = ((void *)0);
   break;
     }
   if (*__cp == __reject1 || *__cp == __reject2)
     {
       *__cp++ = '\0';
       break;
     }
   ++__cp;
 }
      *__s = __cp;
    }
  return __retval;
}

extern __inline char *__strsep_3c (char **__s, char __reject1, char __reject2,
       char __reject3);
extern __inline char *
__strsep_3c (char **__s, char __reject1, char __reject2, char __reject3)
{
  register char *__retval = *__s;
  if (__retval != ((void *)0))
    {
      register char *__cp = __retval;
      while (1)
 {
   if (*__cp == '\0')
     {
       __cp = ((void *)0);
   break;
     }
   if (*__cp == __reject1 || *__cp == __reject2 || *__cp == __reject3)
     {
       *__cp++ = '\0';
       break;
     }
   ++__cp;
 }
      *__s = __cp;
    }
  return __retval;
}
# 1304 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/string2.h" 3 4
extern char *__strdup (__const char *__string) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__));
# 1323 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/string2.h" 3 4
extern char *__strndup (__const char *__string, size_t __n)
     __attribute__ ((__nothrow__)) __attribute__ ((__malloc__));
# 418 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/string.h" 2 3 4
# 426 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/string.h" 3 4

# 32 "../include/xfs/platform_defs.h" 2
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/unistd.h" 1 3 4
# 28 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/unistd.h" 3 4

# 171 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/unistd.h" 3 4
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/posix_opt.h" 1 3 4
# 172 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/unistd.h" 2 3 4



# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/environments.h" 1 3 4
# 23 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/environments.h" 3 4
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/wordsize.h" 1 3 4
# 24 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/environments.h" 2 3 4
# 176 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/unistd.h" 2 3 4
# 195 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/unistd.h" 3 4
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/include/stddef.h" 1 3 4
# 196 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/unistd.h" 2 3 4
# 236 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/unistd.h" 3 4
typedef __intptr_t intptr_t;






typedef __socklen_t socklen_t;
# 256 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/unistd.h" 3 4
extern int access (__const char *__name, int __type) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));




extern int euidaccess (__const char *__name, int __type)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
# 290 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/unistd.h" 3 4
extern __off64_t lseek (int __fd, __off64_t __offset, int __whence) __asm__ ("" "lseek64") __attribute__ ((__nothrow__));







extern __off64_t lseek64 (int __fd, __off64_t __offset, int __whence) __attribute__ ((__nothrow__));






extern int close (int __fd);






extern ssize_t read (int __fd, void *__buf, size_t __nbytes);





extern ssize_t write (int __fd, __const void *__buf, size_t __n);
# 340 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/unistd.h" 3 4
extern ssize_t pread (int __fd, void *__buf, size_t __nbytes, __off64_t __offset) __asm__ ("" "pread64");


extern ssize_t pwrite (int __fd, __const void *__buf, size_t __nbytes, __off64_t __offset) __asm__ ("" "pwrite64");
# 356 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/unistd.h" 3 4
extern ssize_t pread64 (int __fd, void *__buf, size_t __nbytes,
   __off64_t __offset);


extern ssize_t pwrite64 (int __fd, __const void *__buf, size_t __n,
    __off64_t __offset);







extern int pipe (int __pipedes[2]) __attribute__ ((__nothrow__));
# 378 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/unistd.h" 3 4
extern unsigned int alarm (unsigned int __seconds) __attribute__ ((__nothrow__));
# 390 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/unistd.h" 3 4
extern unsigned int sleep (unsigned int __seconds);






extern __useconds_t ualarm (__useconds_t __value, __useconds_t __interval)
     __attribute__ ((__nothrow__));






extern int usleep (__useconds_t __useconds);
# 414 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/unistd.h" 3 4
extern int pause (void);



extern int chown (__const char *__file, __uid_t __owner, __gid_t __group)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));



extern int fchown (int __fd, __uid_t __owner, __gid_t __group) __attribute__ ((__nothrow__));




extern int lchown (__const char *__file, __uid_t __owner, __gid_t __group)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));




extern int chdir (__const char *__path) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));



extern int fchdir (int __fd) __attribute__ ((__nothrow__));
# 448 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/unistd.h" 3 4
extern char *getcwd (char *__buf, size_t __size) __attribute__ ((__nothrow__));





extern char *get_current_dir_name (void) __attribute__ ((__nothrow__));






extern char *getwd (char *__buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));




extern int dup (int __fd) __attribute__ ((__nothrow__));


extern int dup2 (int __fd, int __fd2) __attribute__ ((__nothrow__));


extern char **__environ;

extern char **environ;





extern int execve (__const char *__path, char *__const __argv[],
     char *__const __envp[]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));




extern int fexecve (int __fd, char *__const __argv[], char *__const __envp[])
     __attribute__ ((__nothrow__));




extern int execv (__const char *__path, char *__const __argv[])
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));



extern int execle (__const char *__path, __const char *__arg, ...)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));



extern int execl (__const char *__path, __const char *__arg, ...)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));



extern int execvp (__const char *__file, char *__const __argv[])
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));




extern int execlp (__const char *__file, __const char *__arg, ...)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));




extern int nice (int __inc) __attribute__ ((__nothrow__));




extern void _exit (int __status) __attribute__ ((__noreturn__));





# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/confname.h" 1 3 4
# 26 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/confname.h" 3 4
enum
  {
    _PC_LINK_MAX,

    _PC_MAX_CANON,

    _PC_MAX_INPUT,

    _PC_NAME_MAX,

    _PC_PATH_MAX,

    _PC_PIPE_BUF,

    _PC_CHOWN_RESTRICTED,

    _PC_NO_TRUNC,

    _PC_VDISABLE,

    _PC_SYNC_IO,

    _PC_ASYNC_IO,

    _PC_PRIO_IO,

    _PC_SOCK_MAXBUF,

    _PC_FILESIZEBITS,

    _PC_REC_INCR_XFER_SIZE,

    _PC_REC_MAX_XFER_SIZE,

    _PC_REC_MIN_XFER_SIZE,

    _PC_REC_XFER_ALIGN,

    _PC_ALLOC_SIZE_MIN,

    _PC_SYMLINK_MAX,

    _PC_2_SYMLINKS

  };


enum
  {
    _SC_ARG_MAX,

    _SC_CHILD_MAX,

    _SC_CLK_TCK,

    _SC_NGROUPS_MAX,

    _SC_OPEN_MAX,

    _SC_STREAM_MAX,

    _SC_TZNAME_MAX,

    _SC_JOB_CONTROL,

    _SC_SAVED_IDS,

    _SC_REALTIME_SIGNALS,

    _SC_PRIORITY_SCHEDULING,

    _SC_TIMERS,

    _SC_ASYNCHRONOUS_IO,

    _SC_PRIORITIZED_IO,

    _SC_SYNCHRONIZED_IO,

    _SC_FSYNC,

    _SC_MAPPED_FILES,

    _SC_MEMLOCK,

    _SC_MEMLOCK_RANGE,

    _SC_MEMORY_PROTECTION,

    _SC_MESSAGE_PASSING,

    _SC_SEMAPHORES,

    _SC_SHARED_MEMORY_OBJECTS,

    _SC_AIO_LISTIO_MAX,

    _SC_AIO_MAX,

    _SC_AIO_PRIO_DELTA_MAX,

    _SC_DELAYTIMER_MAX,

    _SC_MQ_OPEN_MAX,

    _SC_MQ_PRIO_MAX,

    _SC_VERSION,

    _SC_PAGESIZE,


    _SC_RTSIG_MAX,

    _SC_SEM_NSEMS_MAX,

    _SC_SEM_VALUE_MAX,

    _SC_SIGQUEUE_MAX,

    _SC_TIMER_MAX,




    _SC_BC_BASE_MAX,

    _SC_BC_DIM_MAX,

    _SC_BC_SCALE_MAX,

    _SC_BC_STRING_MAX,

    _SC_COLL_WEIGHTS_MAX,

    _SC_EQUIV_CLASS_MAX,

    _SC_EXPR_NEST_MAX,

    _SC_LINE_MAX,

    _SC_RE_DUP_MAX,

    _SC_CHARCLASS_NAME_MAX,


    _SC_2_VERSION,

    _SC_2_C_BIND,

    _SC_2_C_DEV,

    _SC_2_FORT_DEV,

    _SC_2_FORT_RUN,

    _SC_2_SW_DEV,

    _SC_2_LOCALEDEF,


    _SC_PII,

    _SC_PII_XTI,

    _SC_PII_SOCKET,

    _SC_PII_INTERNET,

    _SC_PII_OSI,

    _SC_POLL,

    _SC_SELECT,

    _SC_UIO_MAXIOV,

    _SC_IOV_MAX = _SC_UIO_MAXIOV,

    _SC_PII_INTERNET_STREAM,

    _SC_PII_INTERNET_DGRAM,

    _SC_PII_OSI_COTS,

    _SC_PII_OSI_CLTS,

    _SC_PII_OSI_M,

    _SC_T_IOV_MAX,



    _SC_THREADS,

    _SC_THREAD_SAFE_FUNCTIONS,

    _SC_GETGR_R_SIZE_MAX,

    _SC_GETPW_R_SIZE_MAX,

    _SC_LOGIN_NAME_MAX,

    _SC_TTY_NAME_MAX,

    _SC_THREAD_DESTRUCTOR_ITERATIONS,

    _SC_THREAD_KEYS_MAX,

    _SC_THREAD_STACK_MIN,

    _SC_THREAD_THREADS_MAX,

    _SC_THREAD_ATTR_STACKADDR,

    _SC_THREAD_ATTR_STACKSIZE,

    _SC_THREAD_PRIORITY_SCHEDULING,

    _SC_THREAD_PRIO_INHERIT,

    _SC_THREAD_PRIO_PROTECT,

    _SC_THREAD_PROCESS_SHARED,


    _SC_NPROCESSORS_CONF,

    _SC_NPROCESSORS_ONLN,

    _SC_PHYS_PAGES,

    _SC_AVPHYS_PAGES,

    _SC_ATEXIT_MAX,

    _SC_PASS_MAX,


    _SC_XOPEN_VERSION,

    _SC_XOPEN_XCU_VERSION,

    _SC_XOPEN_UNIX,

    _SC_XOPEN_CRYPT,

    _SC_XOPEN_ENH_I18N,

    _SC_XOPEN_SHM,


    _SC_2_CHAR_TERM,

    _SC_2_C_VERSION,

    _SC_2_UPE,


    _SC_XOPEN_XPG2,

    _SC_XOPEN_XPG3,

    _SC_XOPEN_XPG4,


    _SC_CHAR_BIT,

    _SC_CHAR_MAX,

    _SC_CHAR_MIN,

    _SC_INT_MAX,

    _SC_INT_MIN,

    _SC_LONG_BIT,

    _SC_WORD_BIT,

    _SC_MB_LEN_MAX,

    _SC_NZERO,

    _SC_SSIZE_MAX,

    _SC_SCHAR_MAX,

    _SC_SCHAR_MIN,

    _SC_SHRT_MAX,

    _SC_SHRT_MIN,

    _SC_UCHAR_MAX,

    _SC_UINT_MAX,

    _SC_ULONG_MAX,

    _SC_USHRT_MAX,


    _SC_NL_ARGMAX,

    _SC_NL_LANGMAX,

    _SC_NL_MSGMAX,

    _SC_NL_NMAX,

    _SC_NL_SETMAX,

    _SC_NL_TEXTMAX,


    _SC_XBS5_ILP32_OFF32,

    _SC_XBS5_ILP32_OFFBIG,

    _SC_XBS5_LP64_OFF64,

    _SC_XBS5_LPBIG_OFFBIG,


    _SC_XOPEN_LEGACY,

    _SC_XOPEN_REALTIME,

    _SC_XOPEN_REALTIME_THREADS,


    _SC_ADVISORY_INFO,

    _SC_BARRIERS,

    _SC_BASE,

    _SC_C_LANG_SUPPORT,

    _SC_C_LANG_SUPPORT_R,

    _SC_CLOCK_SELECTION,

    _SC_CPUTIME,

    _SC_THREAD_CPUTIME,

    _SC_DEVICE_IO,

    _SC_DEVICE_SPECIFIC,

    _SC_DEVICE_SPECIFIC_R,

    _SC_FD_MGMT,

    _SC_FIFO,

    _SC_PIPE,

    _SC_FILE_ATTRIBUTES,

    _SC_FILE_LOCKING,

    _SC_FILE_SYSTEM,

    _SC_MONOTONIC_CLOCK,

    _SC_MULTI_PROCESS,

    _SC_SINGLE_PROCESS,

    _SC_NETWORKING,

    _SC_READER_WRITER_LOCKS,

    _SC_SPIN_LOCKS,

    _SC_REGEXP,

    _SC_REGEX_VERSION,

    _SC_SHELL,

    _SC_SIGNALS,

    _SC_SPAWN,

    _SC_SPORADIC_SERVER,

    _SC_THREAD_SPORADIC_SERVER,

    _SC_SYSTEM_DATABASE,

    _SC_SYSTEM_DATABASE_R,

    _SC_TIMEOUTS,

    _SC_TYPED_MEMORY_OBJECTS,

    _SC_USER_GROUPS,

    _SC_USER_GROUPS_R,

    _SC_2_PBS,

    _SC_2_PBS_ACCOUNTING,

    _SC_2_PBS_LOCATE,

    _SC_2_PBS_MESSAGE,

    _SC_2_PBS_TRACK,

    _SC_SYMLOOP_MAX,

    _SC_STREAMS,

    _SC_2_PBS_CHECKPOINT,


    _SC_V6_ILP32_OFF32,

    _SC_V6_ILP32_OFFBIG,

    _SC_V6_LP64_OFF64,

    _SC_V6_LPBIG_OFFBIG,


    _SC_HOST_NAME_MAX,

    _SC_TRACE,

    _SC_TRACE_EVENT_FILTER,

    _SC_TRACE_INHERIT,

    _SC_TRACE_LOG,


    _SC_LEVEL1_ICACHE_SIZE,

    _SC_LEVEL1_ICACHE_ASSOC,

    _SC_LEVEL1_ICACHE_LINESIZE,

    _SC_LEVEL1_DCACHE_SIZE,

    _SC_LEVEL1_DCACHE_ASSOC,

    _SC_LEVEL1_DCACHE_LINESIZE,

    _SC_LEVEL2_CACHE_SIZE,

    _SC_LEVEL2_CACHE_ASSOC,

    _SC_LEVEL2_CACHE_LINESIZE,

    _SC_LEVEL3_CACHE_SIZE,

    _SC_LEVEL3_CACHE_ASSOC,

    _SC_LEVEL3_CACHE_LINESIZE,

    _SC_LEVEL4_CACHE_SIZE,

    _SC_LEVEL4_CACHE_ASSOC,

    _SC_LEVEL4_CACHE_LINESIZE,



    _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50,

    _SC_RAW_SOCKETS

  };


enum
  {
    _CS_PATH,


    _CS_V6_WIDTH_RESTRICTED_ENVS,


    _CS_GNU_LIBC_VERSION,

    _CS_GNU_LIBPTHREAD_VERSION,


    _CS_LFS_CFLAGS = 1000,

    _CS_LFS_LDFLAGS,

    _CS_LFS_LIBS,

    _CS_LFS_LINTFLAGS,

    _CS_LFS64_CFLAGS,

    _CS_LFS64_LDFLAGS,

    _CS_LFS64_LIBS,

    _CS_LFS64_LINTFLAGS,


    _CS_XBS5_ILP32_OFF32_CFLAGS = 1100,

    _CS_XBS5_ILP32_OFF32_LDFLAGS,

    _CS_XBS5_ILP32_OFF32_LIBS,

    _CS_XBS5_ILP32_OFF32_LINTFLAGS,

    _CS_XBS5_ILP32_OFFBIG_CFLAGS,

    _CS_XBS5_ILP32_OFFBIG_LDFLAGS,

    _CS_XBS5_ILP32_OFFBIG_LIBS,

    _CS_XBS5_ILP32_OFFBIG_LINTFLAGS,

    _CS_XBS5_LP64_OFF64_CFLAGS,

    _CS_XBS5_LP64_OFF64_LDFLAGS,

    _CS_XBS5_LP64_OFF64_LIBS,

    _CS_XBS5_LP64_OFF64_LINTFLAGS,

    _CS_XBS5_LPBIG_OFFBIG_CFLAGS,

    _CS_XBS5_LPBIG_OFFBIG_LDFLAGS,

    _CS_XBS5_LPBIG_OFFBIG_LIBS,

    _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS,


    _CS_POSIX_V6_ILP32_OFF32_CFLAGS,

    _CS_POSIX_V6_ILP32_OFF32_LDFLAGS,

    _CS_POSIX_V6_ILP32_OFF32_LIBS,

    _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS,

    _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS,

    _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS,

    _CS_POSIX_V6_ILP32_OFFBIG_LIBS,

    _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS,

    _CS_POSIX_V6_LP64_OFF64_CFLAGS,

    _CS_POSIX_V6_LP64_OFF64_LDFLAGS,

    _CS_POSIX_V6_LP64_OFF64_LIBS,

    _CS_POSIX_V6_LP64_OFF64_LINTFLAGS,

    _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS,

    _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS,

    _CS_POSIX_V6_LPBIG_OFFBIG_LIBS,

    _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS

  };
# 531 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/unistd.h" 2 3 4


extern long int pathconf (__const char *__path, int __name)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));


extern long int fpathconf (int __fd, int __name) __attribute__ ((__nothrow__));


extern long int sysconf (int __name) __attribute__ ((__nothrow__)) __attribute__ ((__const__));



extern size_t confstr (int __name, char *__buf, size_t __len) __attribute__ ((__nothrow__));




extern __pid_t getpid (void) __attribute__ ((__nothrow__));


extern __pid_t getppid (void) __attribute__ ((__nothrow__));




extern __pid_t getpgrp (void) __attribute__ ((__nothrow__));
# 567 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/unistd.h" 3 4
extern __pid_t __getpgid (__pid_t __pid) __attribute__ ((__nothrow__));

extern __pid_t getpgid (__pid_t __pid) __attribute__ ((__nothrow__));






extern int setpgid (__pid_t __pid, __pid_t __pgid) __attribute__ ((__nothrow__));
# 593 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/unistd.h" 3 4
extern int setpgrp (void) __attribute__ ((__nothrow__));
# 610 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/unistd.h" 3 4
extern __pid_t setsid (void) __attribute__ ((__nothrow__));



extern __pid_t getsid (__pid_t __pid) __attribute__ ((__nothrow__));



extern __uid_t getuid (void) __attribute__ ((__nothrow__));


extern __uid_t geteuid (void) __attribute__ ((__nothrow__));


extern __gid_t getgid (void) __attribute__ ((__nothrow__));


extern __gid_t getegid (void) __attribute__ ((__nothrow__));




extern int getgroups (int __size, __gid_t __list[]) __attribute__ ((__nothrow__));



extern int group_member (__gid_t __gid) __attribute__ ((__nothrow__));






extern int setuid (__uid_t __uid) __attribute__ ((__nothrow__));




extern int setreuid (__uid_t __ruid, __uid_t __euid) __attribute__ ((__nothrow__));




extern int seteuid (__uid_t __uid) __attribute__ ((__nothrow__));






extern int setgid (__gid_t __gid) __attribute__ ((__nothrow__));




extern int setregid (__gid_t __rgid, __gid_t __egid) __attribute__ ((__nothrow__));




extern int setegid (__gid_t __gid) __attribute__ ((__nothrow__));





extern int getresuid (__uid_t *__euid, __uid_t *__ruid, __uid_t *__suid);



extern int getresgid (__gid_t *__egid, __gid_t *__rgid, __gid_t *__sgid);



extern int setresuid (__uid_t __euid, __uid_t __ruid, __uid_t __suid);



extern int setresgid (__gid_t __egid, __gid_t __rgid, __gid_t __sgid);






extern __pid_t fork (void) __attribute__ ((__nothrow__));






extern __pid_t vfork (void) __attribute__ ((__nothrow__));





extern char *ttyname (int __fd) __attribute__ ((__nothrow__));



extern int ttyname_r (int __fd, char *__buf, size_t __buflen)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));



extern int isatty (int __fd) __attribute__ ((__nothrow__));





extern int ttyslot (void) __attribute__ ((__nothrow__));




extern int link (__const char *__from, __const char *__to)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));



extern int symlink (__const char *__from, __const char *__to)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));




extern int readlink (__const char *__restrict __path, char *__restrict __buf,
       size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));



extern int unlink (__const char *__name) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));


extern int rmdir (__const char *__path) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));



extern __pid_t tcgetpgrp (int __fd) __attribute__ ((__nothrow__));


extern int tcsetpgrp (int __fd, __pid_t __pgrp_id) __attribute__ ((__nothrow__));






extern char *getlogin (void);







extern int getlogin_r (char *__name, size_t __name_len) __attribute__ ((__nonnull__ (1)));




extern int setlogin (__const char *__name) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
# 783 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/unistd.h" 3 4
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/getopt.h" 1 3 4
# 59 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/getopt.h" 3 4
extern char *optarg;
# 73 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/getopt.h" 3 4
extern int optind;




extern int opterr;



extern int optopt;
# 152 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/getopt.h" 3 4
extern int getopt (int ___argc, char *const *___argv, const char *__shortopts)
       __attribute__ ((__nothrow__));
# 784 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/unistd.h" 2 3 4







extern int gethostname (char *__name, size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));






extern int sethostname (__const char *__name, size_t __len)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));



extern int sethostid (long int __id) __attribute__ ((__nothrow__));





extern int getdomainname (char *__name, size_t __len)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
extern int setdomainname (__const char *__name, size_t __len)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));





extern int vhangup (void) __attribute__ ((__nothrow__));


extern int revoke (__const char *__file) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));







extern int profil (unsigned short int *__sample_buffer, size_t __size,
     size_t __offset, unsigned int __scale)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));





extern int acct (__const char *__name) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));



extern char *getusershell (void) __attribute__ ((__nothrow__));
extern void endusershell (void) __attribute__ ((__nothrow__));
extern void setusershell (void) __attribute__ ((__nothrow__));





extern int daemon (int __nochdir, int __noclose) __attribute__ ((__nothrow__));






extern int chroot (__const char *__path) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));



extern char *getpass (__const char *__prompt) __attribute__ ((__nonnull__ (1)));
# 869 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/unistd.h" 3 4
extern int fsync (int __fd);






extern long int gethostid (void);


extern void sync (void) __attribute__ ((__nothrow__));




extern int getpagesize (void) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
# 893 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/unistd.h" 3 4
extern int truncate (__const char *__file, __off64_t __length) __asm__ ("" "truncate64") __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));







extern int truncate64 (__const char *__file, __off64_t __length)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));







extern int ftruncate (int __fd, __off64_t __length) __asm__ ("" "ftruncate64") __attribute__ ((__nothrow__));






extern int ftruncate64 (int __fd, __off64_t __length) __attribute__ ((__nothrow__));





extern int getdtablesize (void) __attribute__ ((__nothrow__));
# 932 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/unistd.h" 3 4
extern int brk (void *__addr) __attribute__ ((__nothrow__));





extern void *sbrk (intptr_t __delta) __attribute__ ((__nothrow__));
# 953 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/unistd.h" 3 4
extern long int syscall (long int __sysno, ...) __attribute__ ((__nothrow__));
# 1007 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/unistd.h" 3 4
extern int fdatasync (int __fildes) __attribute__ ((__nothrow__));







extern char *crypt (__const char *__key, __const char *__salt)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));



extern void encrypt (char *__block, int __edflag) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));






extern void swab (__const void *__restrict __from, void *__restrict __to,
    ssize_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));







extern char *ctermid (char *__s) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));



# 33 "../include/xfs/platform_defs.h" 2


typedef unsigned char __u8;
typedef signed char __s8;
typedef unsigned short __u16;
typedef signed short __s16;
typedef unsigned int __u32;
typedef signed int __s32;
typedef unsigned long long int __u64;
typedef signed long long int __s64;

typedef __u16 __be16;
typedef __u32 __be32;
typedef __u64 __be64;


# 1 "../include/xfs/linux.h" 1
# 20 "../include/xfs/linux.h"
# 1 "/home/shearer/Linksys_SMB/source/xfsprogs-2.7.11/growfs/../../library/include/uuid.h" 1
# 16 "/home/shearer/Linksys_SMB/source/xfsprogs-2.7.11/growfs/../../library/include/uuid.h"
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/time.h" 1 3 4
# 26 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/time.h" 3 4
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/time.h" 1 3 4
# 27 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/time.h" 2 3 4

# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/time.h" 1 3 4
# 29 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/time.h" 2 3 4
# 38 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/time.h" 3 4

# 56 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/time.h" 3 4
struct timezone
  {
    int tz_minuteswest;
    int tz_dsttime;
  };

typedef struct timezone *__restrict __timezone_ptr_t;
# 72 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/time.h" 3 4
extern int gettimeofday (struct timeval *__restrict __tv,
    __timezone_ptr_t __tz) __attribute__ ((__nothrow__));




extern int settimeofday (__const struct timeval *__tv,
    __const struct timezone *__tz) __attribute__ ((__nothrow__));





extern int adjtime (__const struct timeval *__delta,
      struct timeval *__olddelta) __attribute__ ((__nothrow__));




enum __itimer_which
  {

    ITIMER_REAL = 0,


    ITIMER_VIRTUAL = 1,



    ITIMER_PROF = 2

  };



struct itimerval
  {

    struct timeval it_interval;

    struct timeval it_value;
  };




typedef enum __itimer_which __itimer_which_t;






extern int getitimer (__itimer_which_t __which,
        struct itimerval *__value) __attribute__ ((__nothrow__));




extern int setitimer (__itimer_which_t __which,
        __const struct itimerval *__restrict __new,
        struct itimerval *__restrict __old) __attribute__ ((__nothrow__));




extern int utimes (__const char *__file, __const struct timeval __tvp[2])
     __attribute__ ((__nothrow__));



extern int lutimes (__const char *__file, __const struct timeval __tvp[2])
     __attribute__ ((__nothrow__));


extern int futimes (int __fd, __const struct timeval __tvp[2]) __attribute__ ((__nothrow__));
# 181 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/time.h" 3 4

# 17 "/home/shearer/Linksys_SMB/source/xfsprogs-2.7.11/growfs/../../library/include/uuid.h" 2
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/time.h" 1 3 4
# 30 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/time.h" 3 4








# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/include/stddef.h" 1 3 4
# 39 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/time.h" 2 3 4



# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/time.h" 1 3 4
# 43 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/time.h" 2 3 4
# 129 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/time.h" 3 4


struct tm
{
  int tm_sec;
  int tm_min;
  int tm_hour;
  int tm_mday;
  int tm_mon;
  int tm_year;
  int tm_wday;
  int tm_yday;
  int tm_isdst;


  long int tm_gmtoff;
  __const char *tm_zone;




};








struct itimerspec
  {
    struct timespec it_interval;
    struct timespec it_value;
  };


struct sigevent;
# 178 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/time.h" 3 4



extern clock_t clock (void) __attribute__ ((__nothrow__));


extern time_t time (time_t *__timer) __attribute__ ((__nothrow__));


extern double difftime (time_t __time1, time_t __time0)
     __attribute__ ((__nothrow__)) __attribute__ ((__const__));


extern time_t mktime (struct tm *__tp) __attribute__ ((__nothrow__));





extern size_t strftime (char *__restrict __s, size_t __maxsize,
   __const char *__restrict __format,
   __const struct tm *__restrict __tp) __attribute__ ((__nothrow__));





extern char *strptime (__const char *__restrict __s,
         __const char *__restrict __fmt, struct tm *__tp)
     __attribute__ ((__nothrow__));







extern size_t strftime_l (char *__restrict __s, size_t __maxsize,
     __const char *__restrict __format,
     __const struct tm *__restrict __tp,
     __locale_t __loc) __attribute__ ((__nothrow__));

extern char *strptime_l (__const char *__restrict __s,
    __const char *__restrict __fmt, struct tm *__tp,
    __locale_t __loc) __attribute__ ((__nothrow__));






extern struct tm *gmtime (__const time_t *__timer) __attribute__ ((__nothrow__));



extern struct tm *localtime (__const time_t *__timer) __attribute__ ((__nothrow__));





extern struct tm *gmtime_r (__const time_t *__restrict __timer,
       struct tm *__restrict __tp) __attribute__ ((__nothrow__));



extern struct tm *localtime_r (__const time_t *__restrict __timer,
          struct tm *__restrict __tp) __attribute__ ((__nothrow__));





extern char *asctime (__const struct tm *__tp) __attribute__ ((__nothrow__));


extern char *ctime (__const time_t *__timer) __attribute__ ((__nothrow__));







extern char *asctime_r (__const struct tm *__restrict __tp,
   char *__restrict __buf) __attribute__ ((__nothrow__));


extern char *ctime_r (__const time_t *__restrict __timer,
        char *__restrict __buf) __attribute__ ((__nothrow__));




extern char *__tzname[2];
extern int __daylight;
extern long int __timezone;




extern char *tzname[2];



extern void tzset (void) __attribute__ ((__nothrow__));



extern int daylight;
extern long int timezone;





extern int stime (__const time_t *__when) __attribute__ ((__nothrow__));
# 309 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/time.h" 3 4
extern time_t timegm (struct tm *__tp) __attribute__ ((__nothrow__));


extern time_t timelocal (struct tm *__tp) __attribute__ ((__nothrow__));


extern int dysize (int __year) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
# 324 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/time.h" 3 4
extern int nanosleep (__const struct timespec *__requested_time,
        struct timespec *__remaining);



extern int clock_getres (clockid_t __clock_id, struct timespec *__res) __attribute__ ((__nothrow__));


extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) __attribute__ ((__nothrow__));


extern int clock_settime (clockid_t __clock_id, __const struct timespec *__tp)
     __attribute__ ((__nothrow__));






extern int clock_nanosleep (clockid_t __clock_id, int __flags,
       __const struct timespec *__req,
       struct timespec *__rem);


extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) __attribute__ ((__nothrow__));




extern int timer_create (clockid_t __clock_id,
    struct sigevent *__restrict __evp,
    timer_t *__restrict __timerid) __attribute__ ((__nothrow__));


extern int timer_delete (timer_t __timerid) __attribute__ ((__nothrow__));


extern int timer_settime (timer_t __timerid, int __flags,
     __const struct itimerspec *__restrict __value,
     struct itimerspec *__restrict __ovalue) __attribute__ ((__nothrow__));


extern int timer_gettime (timer_t __timerid, struct itimerspec *__value)
     __attribute__ ((__nothrow__));


extern int timer_getoverrun (timer_t __timerid) __attribute__ ((__nothrow__));
# 386 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/time.h" 3 4
extern int getdate_err;
# 395 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/time.h" 3 4
extern struct tm *getdate (__const char *__string);
# 409 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/time.h" 3 4
extern int getdate_r (__const char *__restrict __string,
        struct tm *__restrict __resbufp);



# 18 "/home/shearer/Linksys_SMB/source/xfsprogs-2.7.11/growfs/../../library/include/uuid.h" 2

typedef unsigned char uuid_t[16];
# 32 "/home/shearer/Linksys_SMB/source/xfsprogs-2.7.11/growfs/../../library/include/uuid.h"
void uuid_clear(uuid_t uu);


int uuid_compare(const uuid_t uu1, const uuid_t uu2);


void uuid_copy(uuid_t dst, const uuid_t src);


void uuid_generate(uuid_t out);
void uuid_generate_random(uuid_t out);
void uuid_generate_time(uuid_t out);


int uuid_is_null(const uuid_t uu);


int uuid_parse(const char *in, uuid_t uu);


void uuid_unparse(const uuid_t uu, char *out);


time_t uuid_time(const uuid_t uu, struct timeval *ret_tv);
int uuid_type(const uuid_t uu);
int uuid_variant(const uuid_t uu);
# 21 "../include/xfs/linux.h" 2
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/vfs.h" 1 3 4



# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/statfs.h" 1 3 4
# 26 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/statfs.h" 3 4
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/statfs.h" 1 3 4
# 25 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/statfs.h" 3 4
struct statfs
  {
    int f_type;
    int f_bsize;







    __fsblkcnt64_t f_blocks;
    __fsblkcnt64_t f_bfree;
    __fsblkcnt64_t f_bavail;
    __fsfilcnt64_t f_files;
    __fsfilcnt64_t f_ffree;

    __fsid_t f_fsid;
    int f_namelen;
    int f_frsize;
    int f_spare[5];
  };


struct statfs64
  {
    int f_type;
    int f_bsize;
    __fsblkcnt64_t f_blocks;
    __fsblkcnt64_t f_bfree;
    __fsblkcnt64_t f_bavail;
    __fsfilcnt64_t f_files;
    __fsfilcnt64_t f_ffree;
    __fsid_t f_fsid;
    int f_namelen;
    int f_frsize;
    int f_spare[5];
  };
# 27 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/statfs.h" 2 3 4









extern int statfs (__const char *__file, struct statfs *__buf) __asm__ ("" "statfs64") __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));







extern int statfs64 (__const char *__file, struct statfs64 *__buf)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
# 55 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/statfs.h" 3 4
extern int fstatfs (int __fildes, struct statfs *__buf) __asm__ ("" "fstatfs64") __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));






extern int fstatfs64 (int __fildes, struct statfs64 *__buf)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));



# 5 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/vfs.h" 2 3 4
# 22 "../include/xfs/linux.h" 2
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/ioctl.h" 1 3 4
# 24 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/ioctl.h" 3 4



# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/ioctls.h" 1 3 4
# 24 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/ioctls.h" 3 4
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/asm/ioctls.h" 1 3 4



# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/asm/ioctl.h" 1 3 4
# 5 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/asm/ioctls.h" 2 3 4
# 25 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/ioctls.h" 2 3 4
# 28 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/ioctl.h" 2 3 4


# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/ioctl-types.h" 1 3 4
# 28 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/ioctl-types.h" 3 4
struct winsize
  {
    unsigned short int ws_row;
    unsigned short int ws_col;
    unsigned short int ws_xpixel;
    unsigned short int ws_ypixel;
  };


struct termio
  {
    unsigned short int c_iflag;
    unsigned short int c_oflag;
    unsigned short int c_cflag;
    unsigned short int c_lflag;
    unsigned char c_line;
    unsigned char c_cc[8];
};
# 31 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/ioctl.h" 2 3 4






# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/ttydefaults.h" 1 3 4
# 38 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/ioctl.h" 2 3 4




extern int ioctl (int __fd, unsigned long int __request, ...) __attribute__ ((__nothrow__));


# 23 "../include/xfs/linux.h" 2
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/param.h" 1 3 4
# 22 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/param.h" 3 4
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/include/limits.h" 1 3 4
# 23 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/param.h" 2 3 4
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/linux/limits.h" 1 3 4
# 24 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/param.h" 2 3 4
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/linux/param.h" 1 3 4



# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/asm/param.h" 1 3 4
# 5 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/linux/param.h" 2 3 4
# 25 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/sys/param.h" 2 3 4
# 24 "../include/xfs/linux.h" 2
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/malloc.h" 1 3 4
# 46 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/malloc.h" 3 4
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/include/stddef.h" 1 3 4
# 47 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/malloc.h" 2 3 4
# 120 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/malloc.h" 3 4
extern void * malloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__));


extern void * calloc (size_t __nmemb, size_t __size) __attribute__ ((__nothrow__))
       __attribute__ ((__malloc__));



extern void * realloc (void * __ptr, size_t __size) __attribute__ ((__nothrow__))

       __attribute__ ((__malloc__));


extern void free (void * __ptr) __attribute__ ((__nothrow__));


extern void cfree (void * __ptr) __attribute__ ((__nothrow__));


extern void * memalign (size_t __alignment, size_t __size) __attribute__ ((__nothrow__));


extern void * valloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__));



extern void * pvalloc (size_t __size) __attribute__ ((__nothrow__))
       __attribute__ ((__malloc__));



extern void * (*__morecore) (ptrdiff_t __size);


extern void * __default_morecore (ptrdiff_t __size) __attribute__ ((__nothrow__))
       __attribute__ ((__malloc__));



struct mallinfo {
  int arena;
  int ordblks;
  int smblks;
  int hblks;
  int hblkhd;
  int usmblks;
  int fsmblks;
  int uordblks;
  int fordblks;
  int keepcost;
};


extern struct mallinfo mallinfo (void) __attribute__ ((__nothrow__));
# 197 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/malloc.h" 3 4
extern int mallopt (int __param, int __val) __attribute__ ((__nothrow__));



extern int malloc_trim (size_t __pad) __attribute__ ((__nothrow__));



extern size_t malloc_usable_size (void * __ptr) __attribute__ ((__nothrow__));


extern void malloc_stats (void) __attribute__ ((__nothrow__));


extern void * malloc_get_state (void) __attribute__ ((__nothrow__));



extern int malloc_set_state (void * __ptr) __attribute__ ((__nothrow__));




extern void (*__malloc_initialize_hook) (void);

extern void (*__free_hook) (void * __ptr, __const void *);

extern void * (*__malloc_hook) (size_t __size, __const void *);

extern void * (*__realloc_hook) (void * __ptr, size_t __size, __const void *);


extern void * (*__memalign_hook) (size_t __alignment, size_t __size, __const void *);


extern void (*__after_morecore_hook) (void);


extern void __malloc_check_init (void) __attribute__ ((__nothrow__));
# 25 "../include/xfs/linux.h" 2
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/getopt.h" 1 3 4
# 59 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/getopt.h" 3 4
extern char *optarg;
# 73 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/getopt.h" 3 4
extern int optind;




extern int opterr;



extern int optopt;
# 106 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/getopt.h" 3 4
struct option
{
  const char *name;


  int has_arg;
  int *flag;
  int val;
};
# 152 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/getopt.h" 3 4
extern int getopt (int ___argc, char *const *___argv, const char *__shortopts)
       __attribute__ ((__nothrow__));





extern int getopt_long (int ___argc, char *const *___argv,
   const char *__shortopts,
          const struct option *__longopts, int *__longind)
       __attribute__ ((__nothrow__));
extern int getopt_long_only (int ___argc, char *const *___argv,
        const char *__shortopts,
               const struct option *__longopts, int *__longind)
       __attribute__ ((__nothrow__));
# 26 "../include/xfs/linux.h" 2

# 1 "../include/xfs/swab.h" 1
# 111 "../include/xfs/swab.h"
static __inline__ __u16 __fswab16(__u16 x)
{
 return (__extension__ ({ __u16 __tmp = (x) ; ({ __u16 __x = (__tmp); ((__u16)( (((__u16)(__x) & (__u16)0x00ffU) << 8) | (((__u16)(__x) & (__u16)0xff00U) >> 8) )); }); }));
}
static __inline__ __u16 __swab16p(__u16 *x)
{
 return (__extension__ ({ __u16 __tmp = (*(x)) ; ({ __u16 __x = (__tmp); ((__u16)( (((__u16)(__x) & (__u16)0x00ffU) << 8) | (((__u16)(__x) & (__u16)0xff00U) >> 8) )); }); }));
}
static __inline__ void __swab16s(__u16 *addr)
{
 (__extension__ ({do { *(addr) = ({ __u16 __tmp = (*((addr))) ; ({ __u16 __x = (__tmp); ((__u16)( (((__u16)(__x) & (__u16)0x00ffU) << 8) | (((__u16)(__x) & (__u16)0xff00U) >> 8) )); }); }); } while (0);}));
}

static __inline__ __u32 __fswab32(__u32 x)
{
 return (__extension__ ({ __u32 __tmp = (x) ; ({ __u32 __x = (__tmp); ((__u32)( (((__u32)(__x) & (__u32)0x000000ffUL) << 24) | (((__u32)(__x) & (__u32)0x0000ff00UL) << 8) | (((__u32)(__x) & (__u32)0x00ff0000UL) >> 8) | (((__u32)(__x) & (__u32)0xff000000UL) >> 24) )); }); }));
}
static __inline__ __u32 __swab32p(__u32 *x)
{
 return (__extension__ ({ __u32 __tmp = (*(x)) ; ({ __u32 __x = (__tmp); ((__u32)( (((__u32)(__x) & (__u32)0x000000ffUL) << 24) | (((__u32)(__x) & (__u32)0x0000ff00UL) << 8) | (((__u32)(__x) & (__u32)0x00ff0000UL) >> 8) | (((__u32)(__x) & (__u32)0xff000000UL) >> 24) )); }); }));
}
static __inline__ void __swab32s(__u32 *addr)
{
 (__extension__ ({do { *(addr) = ({ __u32 __tmp = (*((addr))) ; ({ __u32 __x = (__tmp); ((__u32)( (((__u32)(__x) & (__u32)0x000000ffUL) << 24) | (((__u32)(__x) & (__u32)0x0000ff00UL) << 8) | (((__u32)(__x) & (__u32)0x00ff0000UL) >> 8) | (((__u32)(__x) & (__u32)0xff000000UL) >> 24) )); }); }); } while (0);}));
}

static __inline__ __u64 __fswab64(__u64 x)
{





 return (__extension__ ({ __u64 __tmp = (x) ; ({ __u64 __x = (__tmp); ((__u64)( (__u64)(((__u64)(__x) & (__u64)0x00000000000000ffULL) << 56) | (__u64)(((__u64)(__x) & (__u64)0x000000000000ff00ULL) << 40) | (__u64)(((__u64)(__x) & (__u64)0x0000000000ff0000ULL) << 24) | (__u64)(((__u64)(__x) & (__u64)0x00000000ff000000ULL) << 8) | (__u64)(((__u64)(__x) & (__u64)0x000000ff00000000ULL) >> 8) | (__u64)(((__u64)(__x) & (__u64)0x0000ff0000000000ULL) >> 24) | (__u64)(((__u64)(__x) & (__u64)0x00ff000000000000ULL) >> 40) | (__u64)(((__u64)(__x) & (__u64)0xff00000000000000ULL) >> 56) )); }); }));

}
static __inline__ __u64 __swab64p(__u64 *x)
{
 return (__extension__ ({ __u64 __tmp = (*(x)) ; ({ __u64 __x = (__tmp); ((__u64)( (__u64)(((__u64)(__x) & (__u64)0x00000000000000ffULL) << 56) | (__u64)(((__u64)(__x) & (__u64)0x000000000000ff00ULL) << 40) | (__u64)(((__u64)(__x) & (__u64)0x0000000000ff0000ULL) << 24) | (__u64)(((__u64)(__x) & (__u64)0x00000000ff000000ULL) << 8) | (__u64)(((__u64)(__x) & (__u64)0x000000ff00000000ULL) >> 8) | (__u64)(((__u64)(__x) & (__u64)0x0000ff0000000000ULL) >> 24) | (__u64)(((__u64)(__x) & (__u64)0x00ff000000000000ULL) >> 40) | (__u64)(((__u64)(__x) & (__u64)0xff00000000000000ULL) >> 56) )); }); }));
}
static __inline__ void __swab64s(__u64 *addr)
{
 (__extension__ ({do { *(addr) = ({ __u64 __tmp = (*((addr))) ; ({ __u64 __x = (__tmp); ((__u64)( (__u64)(((__u64)(__x) & (__u64)0x00000000000000ffULL) << 56) | (__u64)(((__u64)(__x) & (__u64)0x000000000000ff00ULL) << 40) | (__u64)(((__u64)(__x) & (__u64)0x0000000000ff0000ULL) << 24) | (__u64)(((__u64)(__x) & (__u64)0x00000000ff000000ULL) << 8) | (__u64)(((__u64)(__x) & (__u64)0x000000ff00000000ULL) >> 8) | (__u64)(((__u64)(__x) & (__u64)0x0000ff0000000000ULL) >> 24) | (__u64)(((__u64)(__x) & (__u64)0x00ff000000000000ULL) >> 40) | (__u64)(((__u64)(__x) & (__u64)0xff00000000000000ULL) >> 56) )); }); }); } while (0);}));
}
# 28 "../include/xfs/linux.h" 2

static __inline__ int xfsctl(const char *path, int fd, int cmd, void *p)
{
 return ioctl(fd, cmd, p);
}

static __inline__ int platform_test_xfs_fd(int fd)
{
 struct statfs buf;
 if (fstatfs(fd, &buf) < 0)
  return 0;
 return (buf.f_type == 0x58465342);
}

static __inline__ int platform_test_xfs_path(const char *path)
{
 struct statfs buf;
 if (statfs(path, &buf) < 0)
  return 0;
 return (buf.f_type == 0x58465342);
}

static __inline__ int platform_fstatfs(int fd, struct statfs *buf)
{
 return fstatfs(fd, buf);
}

static __inline__ void platform_getoptreset(void)
{
 extern int optind;
 optind = 0;
}
# 78 "../include/xfs/linux.h"
typedef loff_t xfs_off_t;
typedef __uint64_t xfs_ino_t;
typedef __uint32_t xfs_dev_t;
typedef __int64_t xfs_daddr_t;
typedef char* xfs_caddr_t;


typedef unsigned char uchar_t;




typedef enum {B_FALSE, B_TRUE} boolean_t;
# 50 "../include/xfs/platform_defs.h" 2
# 78 "../include/xfs/platform_defs.h"
typedef int __psint_t;
# 96 "../include/xfs/platform_defs.h"
typedef unsigned int __psunsigned_t;
# 120 "../include/xfs/platform_defs.h"
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/locale.h" 1 3 4
# 29 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/locale.h" 3 4
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/include/stddef.h" 1 3 4
# 30 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/locale.h" 2 3 4
# 1 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/locale.h" 1 3 4
# 27 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/bits/locale.h" 3 4
enum
{
  __LC_CTYPE = 0,
  __LC_NUMERIC = 1,
  __LC_TIME = 2,
  __LC_COLLATE = 3,
  __LC_MONETARY = 4,
  __LC_MESSAGES = 5,
  __LC_ALL = 6,
  __LC_PAPER = 7,
  __LC_NAME = 8,
  __LC_ADDRESS = 9,
  __LC_TELEPHONE = 10,
  __LC_MEASUREMENT = 11,
  __LC_IDENTIFICATION = 12
};
# 31 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/locale.h" 2 3 4


# 52 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/locale.h" 3 4
struct lconv
{


  char *decimal_point;
  char *thousands_sep;





  char *grouping;





  char *int_curr_symbol;
  char *currency_symbol;
  char *mon_decimal_point;
  char *mon_thousands_sep;
  char *mon_grouping;
  char *positive_sign;
  char *negative_sign;
  char int_frac_digits;
  char frac_digits;

  char p_cs_precedes;

  char p_sep_by_space;

  char n_cs_precedes;

  char n_sep_by_space;






  char p_sign_posn;
  char n_sign_posn;


  char int_p_cs_precedes;

  char int_p_sep_by_space;

  char int_n_cs_precedes;

  char int_n_sep_by_space;






  char int_p_sign_posn;
  char int_n_sign_posn;
# 119 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/locale.h" 3 4
};





extern char *setlocale (int __category, __const char *__locale) __attribute__ ((__nothrow__));


extern struct lconv *localeconv (void) __attribute__ ((__nothrow__));


# 148 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/locale.h" 3 4
typedef __locale_t locale_t;





extern __locale_t newlocale (int __category_mask, __const char *__locale,
        __locale_t __base) __attribute__ ((__nothrow__));
# 189 "/opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/3.4.3/../../../../arm-linux-gnueabi/sys-include/locale.h" 3 4
extern __locale_t duplocale (__locale_t __dataset) __attribute__ ((__nothrow__));



extern void freelocale (__locale_t __dataset) __attribute__ ((__nothrow__));






extern __locale_t uselocale (__locale_t __dataset) __attribute__ ((__nothrow__));








# 121 "../include/xfs/platform_defs.h" 2
# 25 "../include/xfs/libxfs.h" 2

# 1 "../include/xfs/xfs_fs.h" 1
# 35 "../include/xfs/xfs_fs.h"
struct dioattr {
 __u32 d_mem;
 __u32 d_miniosz;
 __u32 d_maxiosz;
};






struct fsxattr {
 __u32 fsx_xflags;
 __u32 fsx_extsize;
 __u32 fsx_nextents;
 __u32 fsx_projid;
 unsigned char fsx_pad[12];
};
# 82 "../include/xfs/xfs_fs.h"
struct getbmap {
 __s64 bmv_offset;
 __s64 bmv_block;
 __s64 bmv_length;
 __s32 bmv_count;
 __s32 bmv_entries;
};
# 101 "../include/xfs/xfs_fs.h"
struct getbmapx {
 __s64 bmv_offset;
 __s64 bmv_block;
 __s64 bmv_length;
 __s32 bmv_count;
 __s32 bmv_entries;
 __s32 bmv_iflags;
 __s32 bmv_oflags;
 __s32 bmv_unused1;
 __s32 bmv_unused2;
};
# 143 "../include/xfs/xfs_fs.h"
struct fsdmidata {
 __u32 fsd_dmevmask;
 __u16 fsd_padding;
 __u16 fsd_dmstate;
};






typedef struct xfs_flock64 {
 __s16 l_type;
 __s16 l_whence;
 __s64 l_start;
 __s64 l_len;
 __s32 l_sysid;
 __u32 l_pid;
 __s32 l_pad[4];
} xfs_flock64_t;




typedef struct xfs_fsop_geom_v1 {
 __u32 blocksize;
 __u32 rtextsize;
 __u32 agblocks;
 __u32 agcount;
 __u32 logblocks;
 __u32 sectsize;
 __u32 inodesize;
 __u32 imaxpct;
 __u64 datablocks;
 __u64 rtblocks;
 __u64 rtextents;
 __u64 logstart;
 unsigned char uuid[16];
 __u32 sunit;
 __u32 swidth;
 __s32 version;
 __u32 flags;
 __u32 logsectsize;
 __u32 rtsectsize;
 __u32 dirblocksize;
} xfs_fsop_geom_v1_t;




typedef struct xfs_fsop_geom {
 __u32 blocksize;
 __u32 rtextsize;
 __u32 agblocks;
 __u32 agcount;
 __u32 logblocks;
 __u32 sectsize;
 __u32 inodesize;
 __u32 imaxpct;
 __u64 datablocks;
 __u64 rtblocks;
 __u64 rtextents;
 __u64 logstart;
 unsigned char uuid[16];
 __u32 sunit;
 __u32 swidth;
 __s32 version;
 __u32 flags;
 __u32 logsectsize;
 __u32 rtsectsize;
 __u32 dirblocksize;
 __u32 logsunit;
} xfs_fsop_geom_t;


typedef struct xfs_fsop_counts {
 __u64 freedata;
 __u64 freertx;
 __u64 freeino;
 __u64 allocino;
} xfs_fsop_counts_t;


typedef struct xfs_fsop_resblks {
 __u64 resblks;
 __u64 resblks_avail;
} xfs_fsop_resblks_t;
# 258 "../include/xfs/xfs_fs.h"
typedef struct xfs_growfs_data {
 __u64 newblocks;
 __u32 imaxpct;
}__attribute__((packed)) xfs_growfs_data_t;

typedef struct xfs_growfs_log {
 __u32 newblocks;
 __u32 isint;
} xfs_growfs_log_t;

typedef struct xfs_growfs_rt {
 __u64 newblocks;
 __u32 extsize;
} xfs_growfs_rt_t;





typedef struct xfs_bstime {
 time_t tv_sec;
 __s32 tv_nsec;
} xfs_bstime_t;

typedef struct xfs_bstat {
 __u64 bs_ino;
 __u16 bs_mode;
 __u16 bs_nlink;
 __u32 bs_uid;
 __u32 bs_gid;
 __u32 bs_rdev;
 __s32 bs_blksize;
 __s64 bs_size;
 xfs_bstime_t bs_atime;
 xfs_bstime_t bs_mtime;
 xfs_bstime_t bs_ctime;
 int64_t bs_blocks;
 __u32 bs_xflags;
 __s32 bs_extsize;
 __s32 bs_extents;
 __u32 bs_gen;
 __u16 bs_projid;
 unsigned char bs_pad[14];
 __u32 bs_dmevmask;
 __u16 bs_dmstate;
 __u16 bs_aextents;
} xfs_bstat_t;




typedef struct xfs_fsop_bulkreq {
 __u64 *lastip;
 __s32 icount;
 void *ubuffer;
 __s32 *ocount;
} xfs_fsop_bulkreq_t;





typedef struct xfs_inogrp {
 __u64 xi_startino;
 __s32 xi_alloccount;
 __u64 xi_allocmask;
} xfs_inogrp_t;





typedef struct xfs_error_injection {
 __s32 fd;
 __s32 errtag;
} xfs_error_injection_t;





typedef struct xfs_fsop_handlereq {
 __u32 fd;
 void *path;
 __u32 oflags;
 void *ihandle;
 __u32 ihandlen;
 void *ohandle;
 __u32 *ohandlen;
} xfs_fsop_handlereq_t;
# 356 "../include/xfs/xfs_fs.h"
typedef struct xfs_fsop_setdm_handlereq {
 struct xfs_fsop_handlereq hreq;
 struct fsdmidata *data;
} xfs_fsop_setdm_handlereq_t;

typedef struct xfs_attrlist_cursor {
 __u32 opaque[4];
} xfs_attrlist_cursor_t;

typedef struct xfs_fsop_attrlist_handlereq {
 struct xfs_fsop_handlereq hreq;
 struct xfs_attrlist_cursor pos;
 __u32 flags;
 __u32 buflen;
 void *buffer;
} xfs_fsop_attrlist_handlereq_t;

typedef struct xfs_attr_multiop {
 __u32 am_opcode;
 __s32 am_error;
 void *am_attrname;
 void *am_attrvalue;
 __u32 am_length;
 __u32 am_flags;
} xfs_attr_multiop_t;

typedef struct xfs_fsop_attrmulti_handlereq {
 struct xfs_fsop_handlereq hreq;
 __u32 opcount;
 struct xfs_attr_multiop *ops;
} xfs_fsop_attrmulti_handlereq_t;




typedef struct { __u32 val[2]; } xfs_fsid_t;





typedef struct fid {
 __u16 fid_len;
 unsigned char fid_data[46];
} fid_t;


typedef struct xfs_fid {
 __u16 xfs_fid_len;
 __u16 xfs_fid_pad;
 __u32 xfs_fid_gen;
 __u64 xfs_fid_ino;
} xfs_fid_t;

typedef struct xfs_fid2 {
 __u16 fid_len;
 __u16 fid_pad;
 __u32 fid_gen;
 __u64 fid_ino;
} xfs_fid2_t;

typedef struct xfs_handle {
 union {
  __s64 align;
  xfs_fsid_t _ha_fsid;
 } ha_u;
 xfs_fid_t ha_fid;
} xfs_handle_t;
# 27 "../include/xfs/libxfs.h" 2
# 1 "../include/xfs/xfs_types.h" 1
# 67 "../include/xfs/xfs_types.h"
typedef __uint32_t xfs_agblock_t;
typedef __uint32_t xfs_extlen_t;
typedef __uint32_t xfs_agnumber_t;
typedef __int32_t xfs_extnum_t;
typedef __int16_t xfs_aextnum_t;
typedef __int64_t xfs_fsize_t;
typedef __uint64_t xfs_ufsize_t;

typedef __int32_t xfs_suminfo_t;
typedef __int32_t xfs_rtword_t;

typedef __int64_t xfs_lsn_t;
typedef __int32_t xfs_tid_t;

typedef __uint32_t xfs_dablk_t;
typedef __uint32_t xfs_dahash_t;

typedef __uint16_t xfs_prid_t;





typedef __uint64_t xfs_dfsbno_t;
typedef __uint64_t xfs_drfsbno_t;
typedef __uint64_t xfs_drtbno_t;
typedef __uint64_t xfs_dfiloff_t;
typedef __uint64_t xfs_dfilblks_t;





typedef __uint64_t xfs_fsblock_t;
typedef __uint64_t xfs_rfsblock_t;
typedef __uint64_t xfs_rtblock_t;
typedef __int64_t xfs_srtblock_t;






typedef __uint64_t xfs_fileoff_t;
typedef __int64_t xfs_sfiloff_t;
typedef __uint64_t xfs_filblks_t;

typedef __uint8_t xfs_arch_t;
# 154 "../include/xfs/xfs_types.h"
typedef struct xfs_dirent {
 xfs_ino_t d_ino;
 xfs_off_t d_off;
 unsigned short d_reclen;
 char d_name[1];
} xfs_dirent_t;






typedef enum {
 XFS_LOOKUP_EQi, XFS_LOOKUP_LEi, XFS_LOOKUP_GEi
} xfs_lookup_t;

typedef enum {
 XFS_BTNUM_BNOi, XFS_BTNUM_CNTi, XFS_BTNUM_BMAPi, XFS_BTNUM_INOi,
 XFS_BTNUM_MAX
} xfs_btnum_t;
# 28 "../include/xfs/libxfs.h" 2
# 1 "../include/xfs/xfs_arch.h" 1
# 173 "../include/xfs/xfs_arch.h"
static inline void be16_add(__be16 *a, __s16 b)
{
 *a = ((__builtin_constant_p((__u16)((__uint16_t)(((__builtin_constant_p((__u16)((__be16)(*a))) ? ({ __u16 __x = (((__be16)(*a))); ((__u16)( (((__u16)(__x) & (__u16)0x00ffU) << 8) | (((__u16)(__x) & (__u16)0xff00U) >> 8) )); }) : __fswab16(((__be16)(*a))))) + b))) ? ({ __u16 __x = (((__uint16_t)(((__builtin_constant_p((__u16)((__be16)(*a))) ? ({ __u16 __x = (((__be16)(*a))); ((__u16)( (((__u16)(__x) & (__u16)0x00ffU) << 8) | (((__u16)(__x) & (__u16)0xff00U) >> 8) )); }) : __fswab16(((__be16)(*a))))) + b))); ((__u16)( (((__u16)(__x) & (__u16)0x00ffU) << 8) | (((__u16)(__x) & (__u16)0xff00U) >> 8) )); }) : __fswab16(((__uint16_t)(((__builtin_constant_p((__u16)((__be16)(*a))) ? ({ __u16 __x = (((__be16)(*a))); ((__u16)( (((__u16)(__x) & (__u16)0x00ffU) << 8) | (((__u16)(__x) & (__u16)0xff00U) >> 8) )); }) : __fswab16(((__be16)(*a))))) + b)))));
}

static inline void be32_add(__be32 *a, __s32 b)
{
 *a = ((__builtin_constant_p((__u32)((__uint32_t)(((__builtin_constant_p((__u32)((__be32)(*a))) ? ({ __u32 __x = (((__be32)(*a))); ((__u32)( (((__u32)(__x) & (__u32)0x000000ffUL) << 24) | (((__u32)(__x) & (__u32)0x0000ff00UL) << 8) | (((__u32)(__x) & (__u32)0x00ff0000UL) >> 8) | (((__u32)(__x) & (__u32)0xff000000UL) >> 24) )); }) : __fswab32(((__be32)(*a))))) + b))) ? ({ __u32 __x = (((__uint32_t)(((__builtin_constant_p((__u32)((__be32)(*a))) ? ({ __u32 __x = (((__be32)(*a))); ((__u32)( (((__u32)(__x) & (__u32)0x000000ffUL) << 24) | (((__u32)(__x) & (__u32)0x0000ff00UL) << 8) | (((__u32)(__x) & (__u32)0x00ff0000UL) >> 8) | (((__u32)(__x) & (__u32)0xff000000UL) >> 24) )); }) : __fswab32(((__be32)(*a))))) + b))); ((__u32)( (((__u32)(__x) & (__u32)0x000000ffUL) << 24) | (((__u32)(__x) & (__u32)0x0000ff00UL) << 8) | (((__u32)(__x) & (__u32)0x00ff0000UL) >> 8) | (((__u32)(__x) & (__u32)0xff000000UL) >> 24) )); }) : __fswab32(((__uint32_t)(((__builtin_constant_p((__u32)((__be32)(*a))) ? ({ __u32 __x = (((__be32)(*a))); ((__u32)( (((__u32)(__x) & (__u32)0x000000ffUL) << 24) | (((__u32)(__x) & (__u32)0x0000ff00UL) << 8) | (((__u32)(__x) & (__u32)0x00ff0000UL) >> 8) | (((__u32)(__x) & (__u32)0xff000000UL) >> 24) )); }) : __fswab32(((__be32)(*a))))) + b)))));
}

static inline void be64_add(__be64 *a, __s64 b)
{
 *a = ((__builtin_constant_p((__u64)((__uint64_t)(((__builtin_constant_p((__u64)((__be64)(*a))) ? ({ __u64 __x = (((__be64)(*a))); ((__u64)( (__u64)(((__u64)(__x) & (__u64)0x00000000000000ffULL) << 56) | (__u64)(((__u64)(__x) & (__u64)0x000000000000ff00ULL) << 40) | (__u64)(((__u64)(__x) & (__u64)0x0000000000ff0000ULL) << 24) | (__u64)(((__u64)(__x) & (__u64)0x00000000ff000000ULL) << 8) | (__u64)(((__u64)(__x) & (__u64)0x000000ff00000000ULL) >> 8) | (__u64)(((__u64)(__x) & (__u64)0x0000ff0000000000ULL) >> 24) | (__u64)(((__u64)(__x) & (__u64)0x00ff000000000000ULL) >> 40) | (__u64)(((__u64)(__x) & (__u64)0xff00000000000000ULL) >> 56) )); }) : __fswab64(((__be64)(*a))))) + b))) ? ({ __u64 __x = (((__uint64_t)(((__builtin_constant_p((__u64)((__be64)(*a))) ? ({ __u64 __x = (((__be64)(*a))); ((__u64)( (__u64)(((__u64)(__x) & (__u64)0x00000000000000ffULL) << 56) | (__u64)(((__u64)(__x) & (__u64)0x000000000000ff00ULL) << 40) | (__u64)(((__u64)(__x) & (__u64)0x0000000000ff0000ULL) << 24) | (__u64)(((__u64)(__x) & (__u64)0x00000000ff000000ULL) << 8) | (__u64)(((__u64)(__x) & (__u64)0x000000ff00000000ULL) >> 8) | (__u64)(((__u64)(__x) & (__u64)0x0000ff0000000000ULL) >> 24) | (__u64)(((__u64)(__x) & (__u64)0x00ff000000000000ULL) >> 40) | (__u64)(((__u64)(__x) & (__u64)0xff00000000000000ULL) >> 56) )); }) : __fswab64(((__be64)(*a))))) + b))); ((__u64)( (__u64)(((__u64)(__x) & (__u64)0x00000000000000ffULL) << 56) | (__u64)(((__u64)(__x) & (__u64)0x000000000000ff00ULL) << 40) | (__u64)(((__u64)(__x) & (__u64)0x0000000000ff0000ULL) << 24) | (__u64)(((__u64)(__x) & (__u64)0x00000000ff000000ULL) << 8) | (__u64)(((__u64)(__x) & (__u64)0x000000ff00000000ULL) >> 8) | (__u64)(((__u64)(__x) & (__u64)0x0000ff0000000000ULL) >> 24) | (__u64)(((__u64)(__x) & (__u64)0x00ff000000000000ULL) >> 40) | (__u64)(((__u64)(__x) & (__u64)0xff00000000000000ULL) >> 56) )); }) : __fswab64(((__uint64_t)(((__builtin_constant_p((__u64)((__be64)(*a))) ? ({ __u64 __x = (((__be64)(*a))); ((__u64)( (__u64)(((__u64)(__x) & (__u64)0x00000000000000ffULL) << 56) | (__u64)(((__u64)(__x) & (__u64)0x000000000000ff00ULL) << 40) | (__u64)(((__u64)(__x) & (__u64)0x0000000000ff0000ULL) << 24) | (__u64)(((__u64)(__x) & (__u64)0x00000000ff000000ULL) << 8) | (__u64)(((__u64)(__x) & (__u64)0x000000ff00000000ULL) >> 8) | (__u64)(((__u64)(__x) & (__u64)0x0000ff0000000000ULL) >> 24) | (__u64)(((__u64)(__x) & (__u64)0x00ff000000000000ULL) >> 40) | (__u64)(((__u64)(__x) & (__u64)0xff00000000000000ULL) >> 56) )); }) : __fswab64(((__be64)(*a))))) + b)))));
}
# 29 "../include/xfs/libxfs.h" 2
# 1 "../include/xfs/xfs_bit.h" 1
# 29 "../include/xfs/xfs_bit.h"
static inline __uint32_t xfs_mask32hi(int n)
{
 return (__uint32_t)-1 << (32 - (n));
}

static inline __uint64_t xfs_mask64hi(int n)
{
 return (__uint64_t)-1 << (64 - (n));
}

static inline __uint32_t xfs_mask32lo(int n)
{
 return ((__uint32_t)1 << (n)) - 1;
}

static inline __uint64_t xfs_mask64lo(int n)
{
 return ((__uint64_t)1 << (n)) - 1;
}


extern int xfs_highbit32(__uint32_t v);


extern int xfs_lowbit64(__uint64_t v);


extern int xfs_highbit64(__uint64_t);


extern int xfs_count_bits(uint *map, uint size, uint start_bit);


extern int xfs_contig_bits(uint *map, uint size, uint start_bit);


extern int xfs_next_bit(uint *map, uint size, uint start_bit);
# 30 "../include/xfs/libxfs.h" 2
# 1 "../include/xfs/xfs_inum.h" 1
# 29 "../include/xfs/xfs_inum.h"
typedef __uint32_t xfs_agino_t;







typedef xfs_ino_t xfs_intino_t;







struct xfs_mount;
# 31 "../include/xfs/libxfs.h" 2
# 1 "../include/xfs/xfs_sb.h" 1
# 27 "../include/xfs/xfs_sb.h"
struct xfs_buf;
struct xfs_mount;
# 97 "../include/xfs/xfs_sb.h"
typedef struct xfs_sb
{
 __uint32_t sb_magicnum;
 __uint32_t sb_blocksize;
 xfs_drfsbno_t sb_dblocks;
 xfs_drfsbno_t sb_rblocks;
 xfs_drtbno_t sb_rextents;
 uuid_t sb_uuid;
 xfs_dfsbno_t sb_logstart;
 xfs_ino_t sb_rootino;
 xfs_ino_t sb_rbmino;
 xfs_ino_t sb_rsumino;
 xfs_agblock_t sb_rextsize;
 xfs_agblock_t sb_agblocks;
 xfs_agnumber_t sb_agcount;
 xfs_extlen_t sb_rbmblocks;
 xfs_extlen_t sb_logblocks;
 __uint16_t sb_versionnum;
 __uint16_t sb_sectsize;
 __uint16_t sb_inodesize;
 __uint16_t sb_inopblock;
 char sb_fname[12];
 __uint8_t sb_blocklog;
 __uint8_t sb_sectlog;
 __uint8_t sb_inodelog;
 __uint8_t sb_inopblog;
 __uint8_t sb_agblklog;
 __uint8_t sb_rextslog;
 __uint8_t sb_inprogress;
 __uint8_t sb_imax_pct;






 __uint64_t sb_icount;
 __uint64_t sb_ifree;
 __uint64_t sb_fdblocks;
 __uint64_t sb_frextents;



 xfs_ino_t sb_uquotino;
 xfs_ino_t sb_gquotino;
 __uint16_t sb_qflags;
 __uint8_t sb_flags;
 __uint8_t sb_shared_vn;
 xfs_extlen_t sb_inoalignmt;
 __uint32_t sb_unit;
 __uint32_t sb_width;
 __uint8_t sb_dirblklog;
 __uint8_t sb_logsectlog;
 __uint16_t sb_logsectsize;
 __uint32_t sb_logsunit;
 __uint32_t sb_features2;
} xfs_sb_t;




typedef enum {
 XFS_SBS_MAGICNUM, XFS_SBS_BLOCKSIZE, XFS_SBS_DBLOCKS, XFS_SBS_RBLOCKS,
 XFS_SBS_REXTENTS, XFS_SBS_UUID, XFS_SBS_LOGSTART, XFS_SBS_ROOTINO,
 XFS_SBS_RBMINO, XFS_SBS_RSUMINO, XFS_SBS_REXTSIZE, XFS_SBS_AGBLOCKS,
 XFS_SBS_AGCOUNT, XFS_SBS_RBMBLOCKS, XFS_SBS_LOGBLOCKS,
 XFS_SBS_VERSIONNUM, XFS_SBS_SECTSIZE, XFS_SBS_INODESIZE,
 XFS_SBS_INOPBLOCK, XFS_SBS_FNAME, XFS_SBS_BLOCKLOG,
 XFS_SBS_SECTLOG, XFS_SBS_INODELOG, XFS_SBS_INOPBLOG, XFS_SBS_AGBLKLOG,
 XFS_SBS_REXTSLOG, XFS_SBS_INPROGRESS, XFS_SBS_IMAX_PCT, XFS_SBS_ICOUNT,
 XFS_SBS_IFREE, XFS_SBS_FDBLOCKS, XFS_SBS_FREXTENTS, XFS_SBS_UQUOTINO,
 XFS_SBS_GQUOTINO, XFS_SBS_QFLAGS, XFS_SBS_FLAGS, XFS_SBS_SHARED_VN,
 XFS_SBS_INOALIGNMT, XFS_SBS_UNIT, XFS_SBS_WIDTH, XFS_SBS_DIRBLKLOG,
 XFS_SBS_LOGSECTLOG, XFS_SBS_LOGSECTSIZE, XFS_SBS_LOGSUNIT,
 XFS_SBS_FEATURES2,
 XFS_SBS_FIELDCOUNT
} xfs_sb_field_t;
# 229 "../include/xfs/xfs_sb.h"
static inline int xfs_sb_good_version(xfs_sb_t *sbp)
{
 return (((sbp->sb_versionnum >= 1) && (sbp->sb_versionnum <= 3)) || ((((sbp)->sb_versionnum & 0x000f) == 4) && !((sbp->sb_versionnum & ~(0x000f | (0x0010 | 0x0020 | 0x0040 | 0x0080 | 0x0100 | 0x0200 | 0x0400 | 0x0800 | 0x8000) | (0x1000 | 0x2000))) || ((sbp->sb_versionnum & 0x8000) && (sbp->sb_features2 & ~((0x00000008) | (0) )))) && (!(sbp->sb_versionnum & 0x0200) || (sbp->sb_shared_vn <= 0))));







}
# 249 "../include/xfs/xfs_sb.h"
static inline unsigned xfs_sb_version_tonew(unsigned v)
{
 return ((((v) == 1) ? 0 : (((v) == 2) ? 0x0010 : (0x0010 | 0x0020))) | 4);





}


static inline unsigned xfs_sb_version_toold(unsigned v)
{
 return (((v) & (0x0040 | 0x0080)) ? 0 : (((v) & 0x0020) ? 3 : (((v) & 0x0010) ? 2 : 1)));






}


static inline int xfs_sb_version_hasattr(xfs_sb_t *sbp)
{
 return ((sbp)->sb_versionnum == 2) || ((sbp)->sb_versionnum == 3) || ((((sbp)->sb_versionnum & 0x000f) == 4) && ((sbp)->sb_versionnum & 0x0010));



}


static inline void xfs_sb_version_addattr(xfs_sb_t *sbp)
{
 (sbp)->sb_versionnum = (((sbp)->sb_versionnum == 1) ? 2 : ((((sbp)->sb_versionnum & 0x000f) == 4) ? ((sbp)->sb_versionnum | 0x0010) : (4 | 0x0010)));




}


static inline int xfs_sb_version_hasnlink(xfs_sb_t *sbp)
{
 return ((sbp)->sb_versionnum == 3) || ((((sbp)->sb_versionnum & 0x000f) == 4) && ((sbp)->sb_versionnum & 0x0020));


}


static inline void xfs_sb_version_addnlink(xfs_sb_t *sbp)
{
 (sbp)->sb_versionnum = ((sbp)->sb_versionnum <= 2 ? 3 : ((sbp)->sb_versionnum | 0x0020));


}


static inline int xfs_sb_version_hasquota(xfs_sb_t *sbp)
{
 return (((sbp)->sb_versionnum & 0x000f) == 4) && ((sbp)->sb_versionnum & 0x0040);

}


static inline void xfs_sb_version_addquota(xfs_sb_t *sbp)
{
 (sbp)->sb_versionnum = (((sbp)->sb_versionnum & 0x000f) == 4 ? ((sbp)->sb_versionnum | 0x0040) : (xfs_sb_version_tonew((sbp)->sb_versionnum) | 0x0040));




}


static inline int xfs_sb_version_hasalign(xfs_sb_t *sbp)
{
 return (((sbp)->sb_versionnum & 0x000f) == 4) && ((sbp)->sb_versionnum & 0x0080);

}


static inline void xfs_sb_version_subalign(xfs_sb_t *sbp)
{
 (sbp)->sb_versionnum = xfs_sb_version_toold((sbp)->sb_versionnum & ~0x0080);

}


static inline int xfs_sb_version_hasdalign(xfs_sb_t *sbp)
{
 return (((sbp)->sb_versionnum & 0x000f) == 4) && ((sbp)->sb_versionnum & 0x0100);

}


static inline int xfs_sb_version_adddalign(xfs_sb_t *sbp)
{
 return (sbp)->sb_versionnum = ((sbp)->sb_versionnum | 0x0100);

}


static inline int xfs_sb_version_hasshared(xfs_sb_t *sbp)
{
 return (((sbp)->sb_versionnum & 0x000f) == 4) && ((sbp)->sb_versionnum & 0x0200);

}


static inline int xfs_sb_version_addshared(xfs_sb_t *sbp)
{
 return (sbp)->sb_versionnum = ((sbp)->sb_versionnum | 0x0200);

}


static inline int xfs_sb_version_subshared(xfs_sb_t *sbp)
{
 return (sbp)->sb_versionnum = ((sbp)->sb_versionnum & ~0x0200);

}


static inline int xfs_sb_version_hasdirv2(xfs_sb_t *sbp)
{
 return (((sbp)->sb_versionnum & 0x000f) == 4) && ((sbp)->sb_versionnum & 0x2000);

}


static inline int xfs_sb_version_haslogv2(xfs_sb_t *sbp)
{
 return (((sbp)->sb_versionnum & 0x000f) == 4) && ((sbp)->sb_versionnum & 0x0400);

}


static inline int xfs_sb_version_hasextflgbit(xfs_sb_t *sbp)
{
 return (((sbp)->sb_versionnum & 0x000f) == 4) && ((sbp)->sb_versionnum & 0x1000);

}


static inline int xfs_sb_version_addextflgbit(xfs_sb_t *sbp)
{
 return (sbp)->sb_versionnum = ((sbp)->sb_versionnum | 0x1000);

}


static inline int xfs_sb_version_subextflgbit(xfs_sb_t *sbp)
{
 return (sbp)->sb_versionnum = ((sbp)->sb_versionnum & ~0x1000);

}


static inline int xfs_sb_version_hassector(xfs_sb_t *sbp)
{
 return (((sbp)->sb_versionnum & 0x000f) == 4) && ((sbp)->sb_versionnum & 0x0800);

}


static inline int xfs_sb_version_hasmorebits(xfs_sb_t *sbp)
{
 return (((sbp)->sb_versionnum & 0x000f) == 4) && ((sbp)->sb_versionnum & 0x8000);

}
# 432 "../include/xfs/xfs_sb.h"
static inline int xfs_sb_version_hasattr2(xfs_sb_t *sbp)
{
 return (xfs_sb_version_hasmorebits(sbp)) && ((sbp)->sb_features2 & 0x00000008);

}


static inline void xfs_sb_version_addattr2(xfs_sb_t *sbp)
{
 ((sbp)->sb_versionnum = ((sbp)->sb_versionnum | 0x8000), ((sbp)->sb_features2 = ((sbp)->sb_features2 | 0x00000008)));



}
# 32 "../include/xfs/libxfs.h" 2
# 1 "../include/xfs/xfs_ag.h" 1
# 27 "../include/xfs/xfs_ag.h"
struct xfs_buf;
struct xfs_mount;
struct xfs_trans;
# 51 "../include/xfs/xfs_ag.h"
typedef struct xfs_agf {



 __be32 agf_magicnum;
 __be32 agf_versionnum;
 __be32 agf_seqno;
 __be32 agf_length;



 __be32 agf_roots[((int)XFS_BTNUM_CNTi + 1)];
 __be32 agf_spare0;
 __be32 agf_levels[((int)XFS_BTNUM_CNTi + 1)];
 __be32 agf_spare1;
 __be32 agf_flfirst;
 __be32 agf_fllast;
 __be32 agf_flcount;
 __be32 agf_freeblks;
 __be32 agf_longest;
} xfs_agf_t;
# 98 "../include/xfs/xfs_ag.h"
typedef struct xfs_agi {



 __be32 agi_magicnum;
 __be32 agi_versionnum;
 __be32 agi_seqno;
 __be32 agi_length;





 __be32 agi_count;
 __be32 agi_root;
 __be32 agi_level;
 __be32 agi_freecount;
 __be32 agi_newino;
 __be32 agi_dirino;




 __be32 agi_unlinked[64];
} xfs_agi_t;
# 152 "../include/xfs/xfs_ag.h"
typedef struct xfs_agfl {
 xfs_agblock_t agfl_bno[1];
} xfs_agfl_t;





typedef struct xfs_perag_busy {
 xfs_agblock_t busy_start;
 xfs_extlen_t busy_length;
 struct xfs_trans *busy_tp;
} xfs_perag_busy_t;
# 178 "../include/xfs/xfs_ag.h"
typedef struct xfs_perag
{
 char pagf_init;
 char pagi_init;
 char pagf_metadata;
 char pagi_inodeok;
 __uint8_t pagf_levels[((int)XFS_BTNUM_CNTi + 1)];

 __uint32_t pagf_flcount;
 xfs_extlen_t pagf_freeblks;
 xfs_extlen_t pagf_longest;
 xfs_agino_t pagi_freecount;



 int pagb_count;
 xfs_perag_busy_t *pagb_list;
} xfs_perag_t;
# 33 "../include/xfs/libxfs.h" 2
# 1 "../include/xfs/xfs_dir2.h" 1
# 21 "../include/xfs/xfs_dir2.h"
struct uio;
struct xfs_dabuf;
struct xfs_da_args;
struct xfs_dir2_put_args;
struct xfs_inode;
struct xfs_trans;
# 46 "../include/xfs/xfs_dir2.h"
typedef __uint16_t xfs_dir2_data_off_t;

typedef uint xfs_dir2_data_aoff_t;




typedef __uint32_t xfs_dir2_db_t;




typedef xfs_off_t xfs_dir2_off_t;




typedef int (*xfs_dir2_put_t)(struct xfs_dir2_put_args *pa);
typedef struct xfs_dir2_put_args {
 xfs_off_t cook;
 xfs_intino_t ino;
 struct xfs_dirent *dbp;
 char *name;
 int namelen;
 int done;
 xfs_dir2_put_t put;
 struct uio *uio;
} xfs_dir2_put_args_t;




extern int
 xfs_dir2_grow_inode(struct xfs_da_args *args, int space,
       xfs_dir2_db_t *dbp);

extern int
 xfs_dir2_isblock(struct xfs_trans *tp, struct xfs_inode *dp, int *vp);

extern int
 xfs_dir2_isleaf(struct xfs_trans *tp, struct xfs_inode *dp, int *vp);

extern int
 xfs_dir2_shrink_inode(struct xfs_da_args *args, xfs_dir2_db_t db,
         struct xfs_dabuf *bp);
# 34 "../include/xfs/libxfs.h" 2
# 1 "../include/xfs/xfs_mount.h" 1
# 21 "../include/xfs/xfs_mount.h"
typedef struct xfs_trans_reservations {
 uint tr_write;
 uint tr_itruncate;
 uint tr_rename;
 uint tr_link;
 uint tr_remove;
 uint tr_symlink;
 uint tr_create;
 uint tr_mkdir;
 uint tr_ifree;
 uint tr_ichange;
 uint tr_growdata;
 uint tr_swrite;
 uint tr_addafork;
 uint tr_writeid;
 uint tr_attrinval;
 uint tr_attrset;
 uint tr_attrrm;
 uint tr_clearagi;
 uint tr_growrtalloc;
 uint tr_growrtzero;
 uint tr_growrtfree;
} xfs_trans_reservations_t;
# 35 "../include/xfs/libxfs.h" 2
# 1 "../include/xfs/xfs_da_btree.h" 1
# 21 "../include/xfs/xfs_da_btree.h"
struct xfs_buf;
struct xfs_bmap_free;
struct xfs_inode;
struct xfs_mount;
struct xfs_trans;
struct zone;
# 47 "../include/xfs/xfs_da_btree.h"
typedef struct xfs_da_blkinfo {
 xfs_dablk_t forw;
 xfs_dablk_t back;
 __uint16_t magic;
 __uint16_t pad;
} xfs_da_blkinfo_t;
# 65 "../include/xfs/xfs_da_btree.h"
typedef struct xfs_da_intnode {
 struct xfs_da_node_hdr {
  xfs_da_blkinfo_t info;
  __uint16_t count;
  __uint16_t level;
 } hdr;
 struct xfs_da_node_entry {
  xfs_dahash_t hashval;
  xfs_dablk_t before;
 } btree[1];
} xfs_da_intnode_t;
typedef struct xfs_da_node_hdr xfs_da_node_hdr_t;
typedef struct xfs_da_node_entry xfs_da_node_entry_t;
# 108 "../include/xfs/xfs_da_btree.h"
typedef struct xfs_da_args {
 const uchar_t *name;
 int namelen;
 uchar_t *value;
 int valuelen;
 int flags;
 xfs_dahash_t hashval;
 xfs_ino_t inumber;
 struct xfs_inode *dp;
 xfs_fsblock_t *firstblock;
 struct xfs_bmap_free *flist;
 struct xfs_trans *trans;
 xfs_extlen_t total;
 int whichfork;
 xfs_dablk_t blkno;
 int index;
 xfs_dablk_t rmtblkno;
 int rmtblkcnt;
 xfs_dablk_t blkno2;
 int index2;
 xfs_dablk_t rmtblkno2;
 int rmtblkcnt2;
 unsigned char justcheck;
 unsigned char rename;
 unsigned char addname;
 unsigned char oknoent;
} xfs_da_args_t;
# 144 "../include/xfs/xfs_da_btree.h"
typedef struct xfs_dabuf {
 int nbuf;
 short dirty;
 short bbcount;
 void *data;







 struct xfs_buf *bps[1];
} xfs_dabuf_t;
# 172 "../include/xfs/xfs_da_btree.h"
typedef struct xfs_da_state_blk {
 xfs_dabuf_t *bp;
 xfs_dablk_t blkno;
 xfs_daddr_t disk_blkno;
 int index;
 xfs_dahash_t hashval;
 int magic;
} xfs_da_state_blk_t;

typedef struct xfs_da_state_path {
 int active;
 xfs_da_state_blk_t blk[5];
} xfs_da_state_path_t;

typedef struct xfs_da_state {
 xfs_da_args_t *args;
 struct xfs_mount *mp;
 unsigned int blocksize;
 unsigned int node_ents;
 xfs_da_state_path_t path;
 xfs_da_state_path_t altpath;
 unsigned char inleaf;
 unsigned char extravalid;
 unsigned char extraafter;
 xfs_da_state_blk_t extrablk;

} xfs_da_state_t;
# 36 "../include/xfs/libxfs.h" 2
# 1 "../include/xfs/xfs_bmap_btree.h" 1
# 23 "../include/xfs/xfs_bmap_btree.h"
struct xfs_btree_cur;
struct xfs_btree_lblock;
struct xfs_mount;
struct xfs_inode;




typedef struct xfs_bmdr_block {
 __be16 bb_level;
 __be16 bb_numrecs;
} xfs_bmdr_block_t;
# 80 "../include/xfs/xfs_bmap_btree.h"
typedef struct xfs_bmbt_rec_32
{
 __uint32_t l0, l1, l2, l3;
} xfs_bmbt_rec_32_t;
typedef struct xfs_bmbt_rec_64
{
 __uint64_t l0, l1;
} xfs_bmbt_rec_64_t;

typedef __uint64_t xfs_bmbt_rec_base_t;
typedef xfs_bmbt_rec_64_t xfs_bmbt_rec_t, xfs_bmdr_rec_t;
# 104 "../include/xfs/xfs_bmap_btree.h"
static inline int isnullstartblock(xfs_fsblock_t x)
{
 return ((x) & (((((xfs_fsblock_t)1) << (15 + 1 * 20)) - 1) << 17)) == (((((xfs_fsblock_t)1) << (15 + 1 * 20)) - 1) << 17);
}


static inline int isnulldstartblock(xfs_dfsbno_t x)
{
 return ((x) & (((((xfs_dfsbno_t)1) << (15 + 20)) - 1) << 17)) == (((((xfs_dfsbno_t)1) << (15 + 20)) - 1) << 17);
}


static inline xfs_fsblock_t nullstartblock(int k)
{
 ((void) 0);
 return (((((xfs_fsblock_t)1) << (15 + 1 * 20)) - 1) << 17) | (k);
}


static inline xfs_filblks_t startblockval(xfs_fsblock_t x)
{
 return (xfs_filblks_t)((x) & ~(((((xfs_fsblock_t)1) << (15 + 1 * 20)) - 1) << 17));
}




typedef enum {
 XFS_EXTFMT_NOSTATE = 0,
 XFS_EXTFMT_HASSTATE
} xfs_exntfmt_t;




typedef enum {
 XFS_EXT_NORM, XFS_EXT_UNWRITTEN,
 XFS_EXT_DMAPI_OFFLINE, XFS_EXT_INVALID
} xfs_exntst_t;
# 155 "../include/xfs/xfs_bmap_btree.h"
typedef struct xfs_bmbt_irec
{
 xfs_fileoff_t br_startoff;
 xfs_fsblock_t br_startblock;
 xfs_filblks_t br_blockcount;
 xfs_exntst_t br_state;
} xfs_bmbt_irec_t;




typedef struct xfs_bmbt_key
{
 xfs_dfiloff_t br_startoff;
} xfs_bmbt_key_t, xfs_bmdr_key_t;

typedef xfs_dfsbno_t xfs_bmbt_ptr_t, xfs_bmdr_ptr_t;

typedef struct xfs_btree_lblock xfs_bmbt_block_t;
# 37 "../include/xfs/libxfs.h" 2
# 1 "../include/xfs/xfs_alloc_btree.h" 1
# 25 "../include/xfs/xfs_alloc_btree.h"
struct xfs_buf;
struct xfs_btree_cur;
struct xfs_btree_sblock;
struct xfs_mount;
# 41 "../include/xfs/xfs_alloc_btree.h"
typedef struct xfs_alloc_rec {
 __be32 ar_startblock;
 __be32 ar_blockcount;
} xfs_alloc_rec_t, xfs_alloc_key_t;

typedef struct xfs_alloc_rec_incore {
 xfs_agblock_t ar_startblock;
 xfs_extlen_t ar_blockcount;
} xfs_alloc_rec_incore_t;


typedef __be32 xfs_alloc_ptr_t;

typedef struct xfs_btree_sblock xfs_alloc_block_t;
# 105 "../include/xfs/xfs_alloc_btree.h"
extern int xfs_alloc_decrement(struct xfs_btree_cur *cur, int level, int *stat);






extern int xfs_alloc_delete(struct xfs_btree_cur *cur, int *stat);




extern int xfs_alloc_get_rec(struct xfs_btree_cur *cur, xfs_agblock_t *bno,
    xfs_extlen_t *len, int *stat);





extern int xfs_alloc_increment(struct xfs_btree_cur *cur, int level, int *stat);





extern int xfs_alloc_insert(struct xfs_btree_cur *cur, int *stat);




extern int xfs_alloc_lookup_eq(struct xfs_btree_cur *cur, xfs_agblock_t bno,
    xfs_extlen_t len, int *stat);





extern int xfs_alloc_lookup_ge(struct xfs_btree_cur *cur, xfs_agblock_t bno,
    xfs_extlen_t len, int *stat);





extern int xfs_alloc_lookup_le(struct xfs_btree_cur *cur, xfs_agblock_t bno,
    xfs_extlen_t len, int *stat);





extern int xfs_alloc_update(struct xfs_btree_cur *cur, xfs_agblock_t bno,
    xfs_extlen_t len);
# 38 "../include/xfs/libxfs.h" 2
# 1 "../include/xfs/xfs_ialloc_btree.h" 1
# 25 "../include/xfs/xfs_ialloc_btree.h"
struct xfs_buf;
struct xfs_btree_cur;
struct xfs_btree_sblock;
struct xfs_mount;






typedef __uint64_t xfs_inofree_t;





static inline xfs_inofree_t xfs_inobt_maskn(int i, int n)
{
 return (((n) >= (8 * sizeof(xfs_inofree_t)) ? (xfs_inofree_t)0 : ((xfs_inofree_t)1 << (n))) - 1) << (i);

}




typedef struct xfs_inobt_rec
{
 xfs_agino_t ir_startino;
 __int32_t ir_freecount;
 xfs_inofree_t ir_free;
} xfs_inobt_rec_t;




typedef struct xfs_inobt_key
{
 xfs_agino_t ir_startino;
} xfs_inobt_key_t;


typedef __be32 xfs_inobt_ptr_t;


typedef struct xfs_btree_sblock xfs_inobt_block_t;
# 122 "../include/xfs/xfs_ialloc_btree.h"
extern int xfs_inobt_decrement(struct xfs_btree_cur *cur, int level, int *stat);






extern int xfs_inobt_delete(struct xfs_btree_cur *cur, int *stat);




extern int xfs_inobt_get_rec(struct xfs_btree_cur *cur, xfs_agino_t *ino,
        __int32_t *fcnt, xfs_inofree_t *free, int *stat);





extern int xfs_inobt_increment(struct xfs_btree_cur *cur, int level, int *stat);





extern int xfs_inobt_insert(struct xfs_btree_cur *cur, int *stat);




extern int xfs_inobt_lookup_eq(struct xfs_btree_cur *cur, xfs_agino_t ino,
    __int32_t fcnt, xfs_inofree_t free, int *stat);





extern int xfs_inobt_lookup_ge(struct xfs_btree_cur *cur, xfs_agino_t ino,
    __int32_t fcnt, xfs_inofree_t free, int *stat);





extern int xfs_inobt_lookup_le(struct xfs_btree_cur *cur, xfs_agino_t ino,
    __int32_t fcnt, xfs_inofree_t free, int *stat);






extern int xfs_inobt_update(struct xfs_btree_cur *cur, xfs_agino_t ino,
    __int32_t fcnt, xfs_inofree_t free);
# 39 "../include/xfs/libxfs.h" 2
# 1 "../include/xfs/xfs_dir_sf.h" 1
# 28 "../include/xfs/xfs_dir_sf.h"
typedef struct { __uint8_t i[sizeof(xfs_ino_t)]; } xfs_dir_ino_t;
# 38 "../include/xfs/xfs_dir_sf.h"
typedef struct xfs_dir_shortform {
 struct xfs_dir_sf_hdr {
  xfs_dir_ino_t parent;
  __uint8_t count;
 } hdr;
 struct xfs_dir_sf_entry {
  xfs_dir_ino_t inumber;
  __uint8_t namelen;
  __uint8_t name[1];
 } list[1];
} xfs_dir_shortform_t;
typedef struct xfs_dir_sf_hdr xfs_dir_sf_hdr_t;
typedef struct xfs_dir_sf_entry xfs_dir_sf_entry_t;





typedef struct xfs_dir_sf_sort {
 __uint8_t entno;
 __uint8_t seqno;
 __uint8_t namelen;
 xfs_dahash_t hash;
 xfs_intino_t ino;
 char *name;
} xfs_dir_sf_sort_t;


static inline void xfs_dir_sf_get_dirino(xfs_dir_ino_t *from, xfs_ino_t *to)
{
 *(to) = (((xfs_ino_t)(((__u32)(*from).i[4] << 24) | ((*from).i[5] << 16) | ((*from).i[6] << 8) | ((*from).i[7])) & 0xffffffffULL) | ((xfs_ino_t)(((__u32)(*from).i[1] << 16) | ((*from).i[2] << 8) | ((*from).i[3])) << 32));
}


static inline void xfs_dir_sf_put_dirino(xfs_ino_t *from, xfs_dir_ino_t *to)
{
 do { (*(to)).i[0] = 0; (*(to)).i[1] = (((*(from)) & 0x00ff000000000000ULL) >> 48); (*(to)).i[2] = (((*(from)) & 0x0000ff0000000000ULL) >> 40); (*(to)).i[3] = (((*(from)) & 0x000000ff00000000ULL) >> 32); (*(to)).i[4] = (((*(from)) & 0x00000000ff000000ULL) >> 24); (*(to)).i[5] = (((*(from)) & 0x0000000000ff0000ULL) >> 16); (*(to)).i[6] = (((*(from)) & 0x000000000000ff00ULL) >> 8); (*(to)).i[7] = ((*(from)) & 0x00000000000000ffULL); } while (0);
}


static inline int xfs_dir_sf_entsize_byname(int len)
{
 return (uint)sizeof(xfs_dir_sf_entry_t)-1 + (len);
}


static inline int xfs_dir_sf_entsize_byentry(xfs_dir_sf_entry_t *sfep)
{
 return (uint)sizeof(xfs_dir_sf_entry_t)-1 + (sfep)->namelen;
}


static inline xfs_dir_sf_entry_t *xfs_dir_sf_nextentry(xfs_dir_sf_entry_t *sfep)
{
 return (xfs_dir_sf_entry_t *) ((char *)(sfep) + xfs_dir_sf_entsize_byentry(sfep));

}



static inline int xfs_dir_sf_allfit(int count, int totallen)
{
 return ((uint)sizeof(xfs_dir_sf_hdr_t) + ((uint)sizeof(xfs_dir_sf_entry_t)-1)*(count) + (totallen));

}
# 40 "../include/xfs/libxfs.h" 2
# 1 "../include/xfs/xfs_dir2_sf.h" 1
# 28 "../include/xfs/xfs_dir2_sf.h"
struct uio;
struct xfs_dabuf;
struct xfs_da_args;
struct xfs_dir2_block;
struct xfs_inode;
struct xfs_mount;
struct xfs_trans;
# 46 "../include/xfs/xfs_dir2_sf.h"
typedef struct { __uint8_t i[8]; } xfs_dir2_ino8_t;






typedef struct { __uint8_t i[4]; } xfs_dir2_ino4_t;

typedef union {
 xfs_dir2_ino8_t i8;
 xfs_dir2_ino4_t i4;
} xfs_dir2_inou_t;






typedef struct { __uint8_t i[2]; } xfs_dir2_sf_off_t;
# 75 "../include/xfs/xfs_dir2_sf.h"
typedef struct xfs_dir2_sf_hdr {
 __uint8_t count;
 __uint8_t i8count;
 xfs_dir2_inou_t parent;
} xfs_dir2_sf_hdr_t;

typedef struct xfs_dir2_sf_entry {
 __uint8_t namelen;
 xfs_dir2_sf_off_t offset;
 __uint8_t name[1];
 xfs_dir2_inou_t inumber;
} xfs_dir2_sf_entry_t;

typedef struct xfs_dir2_sf {
 xfs_dir2_sf_hdr_t hdr;
 xfs_dir2_sf_entry_t list[1];
} xfs_dir2_sf_t;


static inline int xfs_dir2_sf_hdr_size(int i8count)
{
 return ((uint)sizeof(xfs_dir2_sf_hdr_t) - ((i8count) == 0) * ((uint)sizeof(xfs_dir2_ino8_t) - (uint)sizeof(xfs_dir2_ino4_t)));


}


static inline xfs_dir2_inou_t *xfs_dir2_sf_inumberp(xfs_dir2_sf_entry_t *sfep)
{
 return (xfs_dir2_inou_t *)&(sfep)->name[(sfep)->namelen];
}



static inline xfs_intino_t
xfs_dir2_sf_get_inumber(xfs_dir2_sf_t *sfp, xfs_dir2_inou_t *from)
{
 return ((sfp)->hdr.i8count == 0 ? (xfs_intino_t)(((__u32)((from)->i4).i[0] << 24) | (((from)->i4).i[1] << 16) | (((from)->i4).i[2] << 8) | (((from)->i4).i[3])) : (xfs_intino_t)(((xfs_ino_t)(((__u32)((from)->i8).i[4] << 24) | (((from)->i8).i[5] << 16) | (((from)->i8).i[6] << 8) | (((from)->i8).i[7])) & 0xffffffffULL) | ((xfs_ino_t)(((__u32)((from)->i8).i[1] << 16) | (((from)->i8).i[2] << 8) | (((from)->i8).i[3])) << 32)));


}



static inline void xfs_dir2_sf_put_inumber(xfs_dir2_sf_t *sfp, xfs_ino_t *from,
      xfs_dir2_inou_t *to)
{
 if ((sfp)->hdr.i8count == 0)
  do { ((to)->i4).i[0] = (((*(from)) & 0xff000000ULL) >> 24); ((to)->i4).i[1] = (((*(from)) & 0x00ff0000ULL) >> 16); ((to)->i4).i[2] = (((*(from)) & 0x0000ff00ULL) >> 8); ((to)->i4).i[3] = ((*(from)) & 0x000000ffULL); } while (0);
 else
  do { ((to)->i8).i[0] = 0; ((to)->i8).i[1] = (((*(from)) & 0x00ff000000000000ULL) >> 48); ((to)->i8).i[2] = (((*(from)) & 0x0000ff0000000000ULL) >> 40); ((to)->i8).i[3] = (((*(from)) & 0x000000ff00000000ULL) >> 32); ((to)->i8).i[4] = (((*(from)) & 0x00000000ff000000ULL) >> 24); ((to)->i8).i[5] = (((*(from)) & 0x0000000000ff0000ULL) >> 16); ((to)->i8).i[6] = (((*(from)) & 0x000000000000ff00ULL) >> 8); ((to)->i8).i[7] = ((*(from)) & 0x00000000000000ffULL); } while (0);
}



static inline xfs_dir2_data_aoff_t
xfs_dir2_sf_get_offset(xfs_dir2_sf_entry_t *sfep)
{
 return ((__u16)((((__u8*)(&(sfep)->offset.i))[0] << 8) | (((__u8*)(&(sfep)->offset.i))[1])));
}



static inline void
xfs_dir2_sf_put_offset(xfs_dir2_sf_entry_t *sfep, xfs_dir2_data_aoff_t off)
{
 { ((__u8*)(&(sfep)->offset.i))[0] = (((off) >> 8) & 0xff); ((__u8*)(&(sfep)->offset.i))[1] = (((off) ) & 0xff); };
}



static inline int xfs_dir2_sf_entsize_byname(xfs_dir2_sf_t *sfp, int len)
{
 return ((uint)sizeof(xfs_dir2_sf_entry_t) - 1 + (len) - ((sfp)->hdr.i8count == 0) * ((uint)sizeof(xfs_dir2_ino8_t) - (uint)sizeof(xfs_dir2_ino4_t)));


}



static inline int
xfs_dir2_sf_entsize_byentry(xfs_dir2_sf_t *sfp, xfs_dir2_sf_entry_t *sfep)
{
 return ((uint)sizeof(xfs_dir2_sf_entry_t) - 1 + (sfep)->namelen - ((sfp)->hdr.i8count == 0) * ((uint)sizeof(xfs_dir2_ino8_t) - (uint)sizeof(xfs_dir2_ino4_t)));


}


static inline xfs_dir2_sf_entry_t *xfs_dir2_sf_firstentry(xfs_dir2_sf_t *sfp)
{
 return ((xfs_dir2_sf_entry_t *) ((char *)(sfp) + xfs_dir2_sf_hdr_size(sfp->hdr.i8count)));

}


static inline xfs_dir2_sf_entry_t *
xfs_dir2_sf_nextentry(xfs_dir2_sf_t *sfp, xfs_dir2_sf_entry_t *sfep)
{
 return ((xfs_dir2_sf_entry_t *) ((char *)(sfep) + xfs_dir2_sf_entsize_byentry(sfp,sfep)));

}




extern int xfs_dir2_block_sfsize(struct xfs_inode *dp,
     struct xfs_dir2_block *block,
     xfs_dir2_sf_hdr_t *sfhp);
extern int xfs_dir2_block_to_sf(struct xfs_da_args *args, struct xfs_dabuf *bp,
    int size, xfs_dir2_sf_hdr_t *sfhp);
extern int xfs_dir2_sf_addname(struct xfs_da_args *args);
extern int xfs_dir2_sf_create(struct xfs_da_args *args, xfs_ino_t pino);
extern int xfs_dir2_sf_getdents(struct xfs_inode *dp, struct uio *uio,
    int *eofp, struct xfs_dirent *dbp,
    xfs_dir2_put_t put);
extern int xfs_dir2_sf_lookup(struct xfs_da_args *args);
extern int xfs_dir2_sf_removename(struct xfs_da_args *args);
extern int xfs_dir2_sf_replace(struct xfs_da_args *args);
# 41 "../include/xfs/libxfs.h" 2
# 1 "../include/xfs/xfs_attr_sf.h" 1
# 28 "../include/xfs/xfs_attr_sf.h"
struct xfs_inode;




typedef struct xfs_attr_shortform {
 struct xfs_attr_sf_hdr {
  __uint16_t totsize;
  __uint8_t count;
 } hdr;
 struct xfs_attr_sf_entry {
  __uint8_t namelen;
  __uint8_t valuelen;
  __uint8_t flags;
  __uint8_t nameval[1];
 } list[1];
} xfs_attr_shortform_t;
typedef struct xfs_attr_sf_hdr xfs_attr_sf_hdr_t;
typedef struct xfs_attr_sf_entry xfs_attr_sf_entry_t;




typedef struct xfs_attr_sf_sort {
 __uint8_t entno;
 __uint8_t namelen;
 __uint8_t valuelen;
 __uint8_t flags;
 xfs_dahash_t hash;
 char *name;
} xfs_attr_sf_sort_t;
# 42 "../include/xfs/libxfs.h" 2
# 1 "../include/xfs/xfs_dinode.h" 1
# 21 "../include/xfs/xfs_dinode.h"
struct xfs_buf;
struct xfs_mount;
# 36 "../include/xfs/xfs_dinode.h"
typedef struct xfs_timestamp {
 __int32_t t_sec;
 __int32_t t_nsec;
} xfs_timestamp_t;





typedef struct xfs_dinode_core
{
 __uint16_t di_magic;
 __uint16_t di_mode;
 __int8_t di_version;
 __int8_t di_format;
 __uint16_t di_onlink;
 __uint32_t di_uid;
 __uint32_t di_gid;
 __uint32_t di_nlink;
 __uint16_t di_projid;
 __uint8_t di_pad[8];
 __uint16_t di_flushiter;
 xfs_timestamp_t di_atime;
 xfs_timestamp_t di_mtime;
 xfs_timestamp_t di_ctime;
 xfs_fsize_t di_size;
 xfs_drfsbno_t di_nblocks;
 xfs_extlen_t di_extsize;
 xfs_extnum_t di_nextents;
 xfs_aextnum_t di_anextents;
 __uint8_t di_forkoff;
 __int8_t di_aformat;
 __uint32_t di_dmevmask;
 __uint16_t di_dmstate;
 __uint16_t di_flags;
 __uint32_t di_gen;
} xfs_dinode_core_t;



typedef struct xfs_dinode
{
 xfs_dinode_core_t di_core;





 xfs_agino_t di_next_unlinked;
 union {
  xfs_bmdr_block_t di_bmbt;
  xfs_bmbt_rec_32_t di_bmx[1];
  xfs_dir_shortform_t di_dirsf;
  xfs_dir2_sf_t di_dir2sf;
  char di_c[1];
  xfs_dev_t di_dev;
  uuid_t di_muuid;
  char di_symlink[1];
 } di_u;
 union {
  xfs_bmdr_block_t di_abmbt;
  xfs_bmbt_rec_32_t di_abmx[1];
  xfs_attr_shortform_t di_attrsf;
 } di_a;
} xfs_dinode_t;
# 147 "../include/xfs/xfs_dinode.h"
typedef enum xfs_dinode_fmt
{
 XFS_DINODE_FMT_DEV,
 XFS_DINODE_FMT_LOCAL,

 XFS_DINODE_FMT_EXTENTS,
 XFS_DINODE_FMT_BTREE,
 XFS_DINODE_FMT_UUID
} xfs_dinode_fmt_t;
# 43 "../include/xfs/libxfs.h" 2
# 1 "../include/xfs/xfs_inode.h" 1
# 32 "../include/xfs/xfs_inode.h"
typedef struct xfs_ifork {
 int if_bytes;
 int if_real_bytes;
 xfs_bmbt_block_t *if_broot;
 short if_broot_bytes;
 unsigned char if_flags;
 unsigned char if_ext_max;
 xfs_extnum_t if_lastex;
 union {
  xfs_bmbt_rec_t *if_extents;
  char *if_data;
 } if_u1;
 union {
  xfs_bmbt_rec_t if_inline_ext[2];

  char if_inline_data[32];

  xfs_dev_t if_rdev;
  uuid_t if_uuid;
 } if_u2;
} xfs_ifork_t;
# 44 "../include/xfs/libxfs.h" 2
# 1 "../include/xfs/xfs_buf_item.h" 1
# 28 "../include/xfs/xfs_buf_item.h"
typedef struct xfs_buf_log_format_v1 {
 unsigned short blf_type;
 unsigned short blf_size;
 __int32_t blf_blkno;
 ushort blf_flags;
 ushort blf_len;
 unsigned int blf_map_size;
 unsigned int blf_data_map[1];

} xfs_buf_log_format_v1_t;





typedef struct xfs_buf_log_format_t {
 unsigned short blf_type;
 unsigned short blf_size;
 ushort blf_flags;
 ushort blf_len;
 __int64_t blf_blkno;
 unsigned int blf_map_size;
 unsigned int blf_data_map[1];

} xfs_buf_log_format_t;
# 45 "../include/xfs/libxfs.h" 2
# 1 "../include/xfs/xfs_inode_item.h" 1
# 46 "../include/xfs/xfs_inode_item.h"
typedef struct xfs_inode_log_format {
 unsigned short ilf_type;
 unsigned short ilf_size;
 uint ilf_fields;
 ushort ilf_asize;
 ushort ilf_dsize;
 xfs_ino_t ilf_ino;
 union {
  xfs_dev_t ilfu_rdev;
  uuid_t ilfu_uuid;
 } ilf_u;
 __int64_t ilf_blkno;
 int ilf_len;
 int ilf_boffset;
} xfs_inode_log_format_t;


typedef struct xfs_inode_log_format_v1 {
 unsigned short ilf_type;
 unsigned short ilf_size;
 uint ilf_fields;
 uint ilf_dsize;
 xfs_ino_t ilf_ino;
 union {
  xfs_dev_t ilfu_rdev;
  uuid_t ilfu_uuid;
 } ilf_u;
} xfs_inode_log_format_t_v1;
# 157 "../include/xfs/xfs_inode_item.h"
static inline int xfs_ilog_fbroot(int w)
{
 return (w == 0 ? 0x008 : 0x100);
}


static inline int xfs_ilog_fext(int w)
{
 return (w == 0 ? 0x004 : 0x080);
}
# 46 "../include/xfs/libxfs.h" 2
# 1 "../include/xfs/xfs_alloc.h" 1
# 21 "../include/xfs/xfs_alloc.h"
struct xfs_buf;
struct xfs_mount;
struct xfs_perag;
struct xfs_trans;




typedef enum xfs_alloctype
{
 XFS_ALLOCTYPE_ANY_AG,
 XFS_ALLOCTYPE_FIRST_AG,
 XFS_ALLOCTYPE_START_AG,
 XFS_ALLOCTYPE_THIS_AG,
 XFS_ALLOCTYPE_START_BNO,
 XFS_ALLOCTYPE_NEAR_BNO,
 XFS_ALLOCTYPE_THIS_BNO
} xfs_alloctype_t;
# 50 "../include/xfs/xfs_alloc.h"
typedef struct xfs_alloc_arg {
 struct xfs_trans *tp;
 struct xfs_mount *mp;
 struct xfs_buf *agbp;
 struct xfs_perag *pag;
 xfs_fsblock_t fsbno;
 xfs_agnumber_t agno;
 xfs_agblock_t agbno;
 xfs_extlen_t minlen;
 xfs_extlen_t maxlen;
 xfs_extlen_t mod;
 xfs_extlen_t prod;
 xfs_extlen_t minleft;
 xfs_extlen_t total;
 xfs_extlen_t alignment;
 xfs_extlen_t minalignslop;
 xfs_extlen_t len;
 xfs_alloctype_t type;
 xfs_alloctype_t otype;
 char wasdel;
 char wasfromfl;
 char isfl;
 char userdata;
} xfs_alloc_arg_t;
# 47 "../include/xfs/libxfs.h" 2
# 1 "../include/xfs/xfs_btree.h" 1
# 21 "../include/xfs/xfs_btree.h"
struct xfs_buf;
struct xfs_bmap_free;
struct xfs_inode;
struct xfs_mount;
struct xfs_trans;
# 42 "../include/xfs/xfs_btree.h"
typedef struct xfs_btree_sblock {
 __be32 bb_magic;
 __be16 bb_level;
 __be16 bb_numrecs;
 __be32 bb_leftsib;
 __be32 bb_rightsib;
} xfs_btree_sblock_t;




typedef struct xfs_btree_lblock {
 __be32 bb_magic;
 __be16 bb_level;
 __be16 bb_numrecs;
 __be64 bb_leftsib;
 __be64 bb_rightsib;
} xfs_btree_lblock_t;




typedef struct xfs_btree_hdr
{
 __be32 bb_magic;
 __be16 bb_level;
 __be16 bb_numrecs;
} xfs_btree_hdr_t;

typedef struct xfs_btree_block {
 xfs_btree_hdr_t bb_h;
 union {
  struct {
   __be32 bb_leftsib;
   __be32 bb_rightsib;
  } s;
  struct {
   __be64 bb_leftsib;
   __be64 bb_rightsib;
  } l;
 } bb_u;
} xfs_btree_block_t;
# 104 "../include/xfs/xfs_btree.h"
extern const __uint32_t xfs_magics[];
# 141 "../include/xfs/xfs_btree.h"
typedef struct xfs_btree_cur
{
 struct xfs_trans *bc_tp;
 struct xfs_mount *bc_mp;
 union {
  xfs_alloc_rec_incore_t a;
  xfs_bmbt_irec_t b;
  xfs_inobt_rec_t i;
 } bc_rec;
 struct xfs_buf *bc_bufs[8];
 int bc_ptrs[8];
 __uint8_t bc_ra[8];


 __uint8_t bc_nlevels;
 __uint8_t bc_blocklog;
 xfs_btnum_t bc_btnum;
 union {
  struct {
   struct xfs_buf *agbp;
   xfs_agnumber_t agno;
  } a;
  struct {
   struct xfs_inode *ip;
   struct xfs_bmap_free *flist;
   xfs_fsblock_t firstblock;
   int allocated;
   short forksize;
   char whichfork;
   char flags;

  } b;
  struct {
   struct xfs_buf *agbp;
   xfs_agnumber_t agno;
  } i;
 } bc_private;
} xfs_btree_cur_t;
# 48 "../include/xfs/libxfs.h" 2
# 1 "../include/xfs/xfs_bmap.h" 1
# 21 "../include/xfs/xfs_bmap.h"
struct getbmap;
struct xfs_bmbt_irec;
struct xfs_inode;
struct xfs_mount;
struct xfs_trans;





typedef struct xfs_bmap_free_item
{
 xfs_fsblock_t xbfi_startblock;
 xfs_extlen_t xbfi_blockcount;
 struct xfs_bmap_free_item *xbfi_next;
} xfs_bmap_free_item_t;




typedef struct xfs_bmap_free
{
 xfs_bmap_free_item_t *xbf_first;
 int xbf_count;
 int xbf_low;
} xfs_bmap_free_t;
# 71 "../include/xfs/xfs_bmap.h"
static inline int xfs_bmapi_aflag(int w)
{
 return (w == 1 ? 0x020 : 0);
}
# 83 "../include/xfs/xfs_bmap.h"
static inline void xfs_bmap_init(xfs_bmap_free_t *flp, xfs_fsblock_t *fbp)
{
 ((flp)->xbf_first = ((void *)0), (flp)->xbf_count = 0, (flp)->xbf_low = 0, *(fbp) = ((xfs_fsblock_t)-1));

}




typedef struct xfs_bmalloca {
 xfs_fsblock_t firstblock;
 xfs_fsblock_t rval;
 xfs_fileoff_t off;
 struct xfs_trans *tp;
 struct xfs_inode *ip;
 struct xfs_bmbt_irec *prevp;
 struct xfs_bmbt_irec *gotp;
 xfs_extlen_t alen;
 xfs_extlen_t total;
 xfs_extlen_t minlen;
 xfs_extlen_t minleft;
 char eof;
 char wasdel;
 char userdata;
 char low;
 char aeof;
 char conv;
} xfs_bmalloca_t;
# 49 "../include/xfs/libxfs.h" 2
# 60 "../include/xfs/libxfs.h"
typedef struct {

 char *volname;
 char *dname;
 char *logname;
 char *rtname;
 int isreadonly;
 int disfile; int dcreat;
 int lisfile;
 int lcreat;
 int risfile; int rcreat;
 char *notvolmsg;
 int notvolok;
 int setblksize;

 dev_t ddev;
 dev_t logdev;
 dev_t rtdev;
 long long dsize;
 long long logBBsize;


 long long logBBstart;
 long long rtsize;
 int dbsize;
 int lbsize;
 int rtbsize;
 int dfd;
 int logfd;
 int rtfd;
} libxfs_init_t;







extern char *progname;
extern int libxfs_init (libxfs_init_t *);
extern int libxfs_device_to_fd (dev_t);
extern dev_t libxfs_device_open (char *, int, int, int);
extern void libxfs_device_zero (dev_t, xfs_daddr_t, uint);
extern void libxfs_device_close (dev_t);


typedef xfs_caddr_t (libxfs_get_block_t)(xfs_caddr_t, int, void *);

extern int libxfs_log_clear (dev_t, xfs_daddr_t, uint, uuid_t *,
    int, int, int);
extern int libxfs_log_header (xfs_caddr_t, uuid_t *, int, int, int,
    libxfs_get_block_t *, void *);






struct xfs_inode;
typedef struct xfs_mount {
 xfs_sb_t m_sb;
 char *m_fsname;
 int m_bsize;
 xfs_agnumber_t m_agfrotor;
 xfs_agnumber_t m_agirotor;
 xfs_agnumber_t m_maxagi;
 uint m_rsumlevels;
 uint m_rsumsize;
 struct xfs_inode *m_rbmip;
 struct xfs_inode *m_rsumip;
 struct xfs_inode *m_rootip;
 dev_t m_dev;
 dev_t m_logdev;
 dev_t m_rtdev;
 __uint8_t m_dircook_elog;
 __uint8_t m_blkbit_log;
 __uint8_t m_blkbb_log;
 __uint8_t m_sectbb_log;
 __uint8_t m_agno_log;
 __uint8_t m_agino_log;
 __uint16_t m_inode_cluster_size;
 uint m_blockmask;
 uint m_blockwsize;
 uint m_blockwmask;
 uint m_alloc_mxr[2];
 uint m_alloc_mnr[2];
 uint m_bmap_dmxr[2];
 uint m_bmap_dmnr[2];
 uint m_inobt_mxr[2];
 uint m_inobt_mnr[2];
 uint m_ag_maxlevels;
 uint m_bm_maxlevels[2];
 uint m_in_maxlevels;
 xfs_perag_t *m_perag;
 uint m_flags;
 uint m_qflags;
 uint m_attroffset;
 uint m_dir_node_ents;
 uint m_attr_node_ents;
 int m_ialloc_inos;
 int m_ialloc_blks;
 int m_litino;
 int m_inoalign_mask;
 xfs_trans_reservations_t m_reservations;
 __uint64_t m_maxicount;
 int m_dalign;
 int m_swidth;
 int m_sinoalign;
 int m_attr_magicpct;
 int m_dir_magicpct;
 __uint8_t m_dirversion;
 int m_dirblksize;
 int m_dirblkfsbs;
 xfs_dablk_t m_dirdatablk;
 xfs_dablk_t m_dirleafblk;
 xfs_dablk_t m_dirfreeblk;
} xfs_mount_t;
# 186 "../include/xfs/libxfs.h"
extern xfs_mount_t *libxfs_mount (xfs_mount_t *, xfs_sb_t *,
    dev_t, dev_t, dev_t, int);
extern void libxfs_mount_common (xfs_mount_t *, xfs_sb_t *);
extern xfs_agnumber_t libxfs_initialize_perag (xfs_mount_t *, xfs_agnumber_t);
extern void libxfs_umount (xfs_mount_t *);
extern int libxfs_rtmount_init (xfs_mount_t *);
extern void libxfs_alloc_compute_maxlevels (xfs_mount_t *);
extern void libxfs_bmap_compute_maxlevels (xfs_mount_t *, int);
extern void libxfs_ialloc_compute_maxlevels (xfs_mount_t *);
extern void libxfs_trans_init (xfs_mount_t *);





typedef struct xfs_buf {
 xfs_daddr_t b_blkno;
 unsigned b_bcount;
 dev_t b_dev;
 void *b_fsprivate;
 void *b_fsprivate2;
 void *b_fsprivate3;
 char *b_addr;

} xfs_buf_t;
# 229 "../include/xfs/libxfs.h"
extern xfs_buf_t *libxfs_getbuf (dev_t, xfs_daddr_t, int);
extern xfs_buf_t *libxfs_readbuf (dev_t, xfs_daddr_t, int, int);
extern xfs_buf_t *libxfs_getsb (xfs_mount_t *, int);
extern int libxfs_readbufr (dev_t, xfs_daddr_t, xfs_buf_t *, int, int);
extern int libxfs_writebuf (xfs_buf_t *, int);
extern int libxfs_writebuf_int (xfs_buf_t *, int);
extern void libxfs_putbuf (xfs_buf_t *);





extern void libxfs_iomove (xfs_buf_t *, uint, int, void *, int);






typedef struct xfs_log_item {
 struct xfs_log_item_desc *li_desc;
 struct xfs_mount *li_mountp;
 uint li_type;
} xfs_log_item_t;

typedef struct xfs_inode_log_item {
 xfs_log_item_t ili_item;
 struct xfs_inode *ili_inode;
 unsigned short ili_flags;
 unsigned int ili_last_fields;
 xfs_inode_log_format_t ili_format;
} xfs_inode_log_item_t;

typedef struct xfs_buf_log_item {
 xfs_log_item_t bli_item;
 struct xfs_buf *bli_buf;
 unsigned int bli_flags;
 unsigned int bli_recur;
 xfs_buf_log_format_t bli_format;
} xfs_buf_log_item_t;

# 1 "../include/xfs/xfs_trans.h" 1
# 30 "../include/xfs/xfs_trans.h"
typedef struct xfs_trans_header {
 uint th_magic;
 uint th_type;
 __int32_t th_tid;
 uint th_num_items;
} xfs_trans_header_t;
# 188 "../include/xfs/xfs_trans.h"
typedef struct xfs_log_item_desc {
 xfs_log_item_t *lid_item;
 ushort lid_size;
 unsigned char lid_flags;
 unsigned char lid_index;
} xfs_log_item_desc_t;
# 206 "../include/xfs/xfs_trans.h"
typedef struct xfs_log_item_chunk {
 struct xfs_log_item_chunk *lic_next;
 ushort lic_free;
 ushort lic_unused;
 xfs_log_item_desc_t lic_descs[15];
} xfs_log_item_chunk_t;
# 224 "../include/xfs/xfs_trans.h"
static inline void xfs_lic_init(xfs_log_item_chunk_t *cp)
{
 cp->lic_free = ((1 << 15) - 1);
}


static inline void xfs_lic_init_slot(xfs_log_item_chunk_t *cp, int slot)
{
 cp->lic_descs[slot].lid_index = (unsigned char)(slot);
}


static inline int xfs_lic_vacancy(xfs_log_item_chunk_t *cp)
{
 return cp->lic_free & ((1 << 15) - 1);
}


static inline void xfs_lic_all_free(xfs_log_item_chunk_t *cp)
{
 cp->lic_free = ((1 << 15) - 1);
}


static inline int xfs_lic_are_all_free(xfs_log_item_chunk_t *cp)
{
 return ((cp->lic_free & ((1 << 15) - 1)) == ((1 << 15) - 1));
}


static inline int xfs_lic_isfree(xfs_log_item_chunk_t *cp, int slot)
{
 return (cp->lic_free & (1 << slot));
}


static inline void xfs_lic_claim(xfs_log_item_chunk_t *cp, int slot)
{
 cp->lic_free &= ~(1 << slot);
}


static inline void xfs_lic_relse(xfs_log_item_chunk_t *cp, int slot)
{
 cp->lic_free |= 1 << slot;
}


static inline xfs_log_item_desc_t *
xfs_lic_slot(xfs_log_item_chunk_t *cp, int slot)
{
 return &(cp->lic_descs[slot]);
}


static inline int xfs_lic_desc_to_slot(xfs_log_item_desc_t *dp)
{
 return (uint)dp->lid_index;
}
# 292 "../include/xfs/xfs_trans.h"
static inline xfs_log_item_chunk_t *
xfs_lic_desc_to_chunk(xfs_log_item_desc_t *dp)
{
 return (xfs_log_item_chunk_t*) (((xfs_caddr_t)((dp) - (dp)->lid_index)) - (xfs_caddr_t)(((xfs_log_item_chunk_t*)0)->lic_descs));


}
# 271 "../include/xfs/libxfs.h" 2

typedef struct xfs_trans {
 unsigned int t_type;
 unsigned int t_log_res;
 unsigned int t_log_count;
 xfs_mount_t *t_mountp;
 unsigned int t_flags;
 long t_icount_delta;
 long t_ifree_delta;
 long t_fdblocks_delta;
 long t_frextents_delta;
 unsigned int t_items_free;
 xfs_log_item_chunk_t t_items;
} xfs_trans_t;

extern xfs_trans_t *libxfs_trans_alloc (xfs_mount_t *, int);
extern xfs_trans_t *libxfs_trans_dup (xfs_trans_t *);
extern int libxfs_trans_reserve (xfs_trans_t *, uint,uint,uint,uint,uint);
extern int libxfs_trans_commit (xfs_trans_t *, uint, xfs_lsn_t *);
extern void libxfs_trans_cancel (xfs_trans_t *, int);
extern void libxfs_mod_sb (xfs_trans_t *, __int64_t);

extern int libxfs_trans_iget (xfs_mount_t *, xfs_trans_t *, xfs_ino_t,
    uint, uint, struct xfs_inode **);
extern void libxfs_trans_iput(xfs_trans_t *, struct xfs_inode *, uint);
extern void libxfs_trans_ijoin (xfs_trans_t *, struct xfs_inode *, uint);
extern void libxfs_trans_ihold (xfs_trans_t *, struct xfs_inode *);
extern void libxfs_trans_log_inode (xfs_trans_t *, struct xfs_inode *,
    uint);

extern void libxfs_trans_brelse (xfs_trans_t *, struct xfs_buf *);
extern void libxfs_trans_binval (xfs_trans_t *, struct xfs_buf *);
extern void libxfs_trans_bjoin (xfs_trans_t *, struct xfs_buf *);
extern void libxfs_trans_bhold (xfs_trans_t *, struct xfs_buf *);
extern void libxfs_trans_log_buf (xfs_trans_t *, struct xfs_buf *,
    uint, uint);
extern xfs_buf_t *libxfs_trans_get_buf (xfs_trans_t *, dev_t,
    xfs_daddr_t, int, uint);
extern int libxfs_trans_read_buf (xfs_mount_t *, xfs_trans_t *, dev_t,
    xfs_daddr_t, int, uint, struct xfs_buf **);





typedef struct xfs_zone {
 int zone_unitsize;
 char *zone_name;
 int allocated;
} xfs_zone_t;

extern xfs_zone_t *libxfs_zone_init (int, char *);
extern void *libxfs_zone_zalloc (xfs_zone_t *);
extern void libxfs_zone_free (xfs_zone_t *, void *);
extern void *libxfs_malloc (size_t);
extern void libxfs_free (void *);
extern void *libxfs_realloc (void *, size_t);





struct xfs_inode_log_item;
typedef struct xfs_inode {
 xfs_mount_t *i_mount;
 xfs_ino_t i_ino;
 xfs_daddr_t i_blkno;
 dev_t i_dev;
 ushort i_len;
 ushort i_boffset;
 xfs_ifork_t *i_afp;
 xfs_ifork_t i_df;
 struct xfs_trans *i_transp;
 struct xfs_inode_log_item *i_itemp;
 unsigned int i_delayed_blks;
 xfs_dinode_core_t i_d;
} xfs_inode_t;






typedef struct cred {
 uid_t cr_uid;
 gid_t cr_gid;
} cred_t;

extern int libxfs_inode_alloc (xfs_trans_t **, xfs_inode_t *, mode_t,
    nlink_t, xfs_dev_t, struct cred *,
    struct fsxattr *, xfs_inode_t **);
extern void libxfs_trans_inode_alloc_buf (xfs_trans_t *, xfs_buf_t *);

extern void libxfs_idata_realloc (xfs_inode_t *, int, int);
extern void libxfs_idestroy_fork (xfs_inode_t *, int);
extern int libxfs_iread (xfs_mount_t *, xfs_trans_t *, xfs_ino_t,
    xfs_inode_t **, xfs_daddr_t);
extern void libxfs_ichgtime (xfs_inode_t *, int);
extern int libxfs_iflush_int (xfs_inode_t *, xfs_buf_t *);
extern int libxfs_itobp (xfs_mount_t *, xfs_trans_t *, xfs_inode_t *,
    xfs_dinode_t **, xfs_buf_t **, xfs_daddr_t);
extern int libxfs_iget (xfs_mount_t *, xfs_trans_t *, xfs_ino_t,
    uint, xfs_inode_t **, xfs_daddr_t);
extern void libxfs_iput (xfs_inode_t *, uint);





# 1 "../include/xfs/xfs_dir_leaf.h" 1
# 31 "../include/xfs/xfs_dir_leaf.h"
struct uio;
struct xfs_bmap_free;
struct xfs_dabuf;
struct xfs_da_args;
struct xfs_da_state;
struct xfs_da_state_blk;
struct xfs_dir_put_args;
struct xfs_inode;
struct xfs_mount;
struct xfs_trans;
# 70 "../include/xfs/xfs_dir_leaf.h"
typedef struct xfs_dir_leaf_map {
 __uint16_t base;
 __uint16_t size;
} xfs_dir_leaf_map_t;

typedef struct xfs_dir_leaf_hdr {
 xfs_da_blkinfo_t info;
 __uint16_t count;
 __uint16_t namebytes;
 __uint16_t firstused;
 __uint8_t holes;
 __uint8_t pad1;
 xfs_dir_leaf_map_t freemap[3];
} xfs_dir_leaf_hdr_t;

typedef struct xfs_dir_leaf_entry {
 xfs_dahash_t hashval;
 __uint16_t nameidx;
 __uint8_t namelen;
 __uint8_t pad2;
} xfs_dir_leaf_entry_t;

typedef struct xfs_dir_leaf_name {
 xfs_dir_ino_t inumber;
 __uint8_t name[1];
} xfs_dir_leaf_name_t;

typedef struct xfs_dir_leafblock {
 xfs_dir_leaf_hdr_t hdr;
 xfs_dir_leaf_entry_t entries[1];
 xfs_dir_leaf_name_t namelist[1];
} xfs_dir_leafblock_t;
# 112 "../include/xfs/xfs_dir_leaf.h"
typedef int (*xfs_dir_put_t)(struct xfs_dir_put_args *pa);

typedef union {
 xfs_off_t o;



 struct {

  xfs_dahash_t h;
  __uint32_t be;




 } s;
} xfs_dircook_t;




typedef struct xfs_dir_put_args {
 xfs_dircook_t cook;
 xfs_intino_t ino;
 struct xfs_dirent *dbp;
 char *name;
 int namelen;
 int done;
 xfs_dir_put_t put;
 struct uio *uio;
} xfs_dir_put_args_t;



static inline int xfs_dir_leaf_entsize_byname(int len)
{
 return (uint)sizeof(xfs_dir_leaf_name_t)-1 + len;
}



static inline int xfs_dir_leaf_entsize_byentry(xfs_dir_leaf_entry_t *entry)
{
 return (uint)sizeof(xfs_dir_leaf_name_t)-1 + (entry)->namelen;
}



static inline xfs_dir_leaf_name_t *
xfs_dir_leaf_namestruct(xfs_dir_leafblock_t *leafp, int offset)
{
 return (xfs_dir_leaf_name_t *)&((char *)(leafp))[offset];
}
# 173 "../include/xfs/xfs_dir_leaf.h"
int xfs_dir_shortform_create(struct xfs_da_args *args, xfs_ino_t parent);
int xfs_dir_shortform_addname(struct xfs_da_args *args);
int xfs_dir_shortform_lookup(struct xfs_da_args *args);
int xfs_dir_shortform_to_leaf(struct xfs_da_args *args);
int xfs_dir_shortform_removename(struct xfs_da_args *args);
int xfs_dir_shortform_getdents(struct xfs_inode *dp, struct uio *uio, int *eofp,
          struct xfs_dirent *dbp, xfs_dir_put_t put);
int xfs_dir_shortform_replace(struct xfs_da_args *args);




int xfs_dir_leaf_to_node(struct xfs_da_args *args);
int xfs_dir_leaf_to_shortform(struct xfs_da_args *args);




int xfs_dir_leaf_split(struct xfs_da_state *state,
      struct xfs_da_state_blk *oldblk,
      struct xfs_da_state_blk *newblk);
int xfs_dir_leaf_add(struct xfs_dabuf *leaf_buffer,
    struct xfs_da_args *args, int insertion_index);
int xfs_dir_leaf_addname(struct xfs_da_args *args);
int xfs_dir_leaf_lookup_int(struct xfs_dabuf *leaf_buffer,
           struct xfs_da_args *args,
           int *index_found_at);
int xfs_dir_leaf_remove(struct xfs_trans *trans,
       struct xfs_dabuf *leaf_buffer,
       int index_to_remove);
int xfs_dir_leaf_getdents_int(struct xfs_dabuf *bp, struct xfs_inode *dp,
      xfs_dablk_t bno, struct uio *uio,
      int *eobp, struct xfs_dirent *dbp,
      xfs_dir_put_t put, xfs_daddr_t nextda);




int xfs_dir_leaf_toosmall(struct xfs_da_state *state, int *retval);
void xfs_dir_leaf_unbalance(struct xfs_da_state *state,
          struct xfs_da_state_blk *drop_blk,
          struct xfs_da_state_blk *save_blk);




uint xfs_dir_leaf_lasthash(struct xfs_dabuf *bp, int *count);
int xfs_dir_leaf_order(struct xfs_dabuf *leaf1_bp,
      struct xfs_dabuf *leaf2_bp);
int xfs_dir_put_dirent64_direct(xfs_dir_put_args_t *pa);
int xfs_dir_put_dirent64_uio(xfs_dir_put_args_t *pa);
int xfs_dir_ino_validate(struct xfs_mount *mp, xfs_ino_t ino);




extern xfs_dahash_t xfs_dir_hash_dot, xfs_dir_hash_dotdot;
# 381 "../include/xfs/libxfs.h" 2
# 1 "../include/xfs/xfs_dir2_data.h" 1
# 25 "../include/xfs/xfs_dir2_data.h"
struct xfs_dabuf;
struct xfs_da_args;
struct xfs_inode;
struct xfs_trans;
# 67 "../include/xfs/xfs_dir2_data.h"
typedef struct xfs_dir2_data_free {
 xfs_dir2_data_off_t offset;
 xfs_dir2_data_off_t length;
} xfs_dir2_data_free_t;






typedef struct xfs_dir2_data_hdr {
 __uint32_t magic;

 xfs_dir2_data_free_t bestfree[3];
} xfs_dir2_data_hdr_t;





typedef struct xfs_dir2_data_entry {
 xfs_ino_t inumber;
 __uint8_t namelen;
 __uint8_t name[1];

 xfs_dir2_data_off_t tag;
} xfs_dir2_data_entry_t;





typedef struct xfs_dir2_data_unused {
 __uint16_t freetag;
 xfs_dir2_data_off_t length;

 xfs_dir2_data_off_t tag;
} xfs_dir2_data_unused_t;

typedef union {
 xfs_dir2_data_entry_t entry;
 xfs_dir2_data_unused_t unused;
} xfs_dir2_data_union_t;




typedef struct xfs_dir2_data {
 xfs_dir2_data_hdr_t hdr;
 xfs_dir2_data_union_t u[1];
} xfs_dir2_data_t;
# 127 "../include/xfs/xfs_dir2_data.h"
static inline int xfs_dir2_data_entsize(int n)
{
 return (int)(__builtin_constant_p ((1 << 3)) && (((((1 << 3)) - 1) & ((1 << 3))) == 0) ? (((((size_t) &((xfs_dir2_data_entry_t *)0)->name[0]) + (n) + (uint)sizeof(xfs_dir2_data_off_t)) + ((1 << 3)) - 1) & ~(((1 << 3)) - 1)) : ((((((size_t) &((xfs_dir2_data_entry_t *)0)->name[0]) + (n) + (uint)sizeof(xfs_dir2_data_off_t)) + (((1 << 3)) - 1)) / ((1 << 3))) * ((1 << 3))));

}





static inline xfs_dir2_data_off_t *
xfs_dir2_data_entry_tag_p(xfs_dir2_data_entry_t *dep)
{
 return (xfs_dir2_data_off_t *) ((char *)(dep) + xfs_dir2_data_entsize((dep)->namelen) - (uint)sizeof(xfs_dir2_data_off_t));


}






static inline xfs_dir2_data_off_t *
xfs_dir2_data_unused_tag_p(xfs_dir2_data_unused_t *dup)
{
 return (xfs_dir2_data_off_t *) ((char *)(dup) + (((0) == 1) ? ((dup)->length) : ((sizeof(((dup)->length)) == 8) ? ((typeof(((dup)->length)))((__builtin_constant_p((__u64)((__u64)(((dup)->length)))) ? ({ __u64 __x = (((__u64)(((dup)->length)))); ((__u64)( (__u64)(((__u64)(__x) & (__u64)0x00000000000000ffULL) << 56) | (__u64)(((__u64)(__x) & (__u64)0x000000000000ff00ULL) << 40) | (__u64)(((__u64)(__x) & (__u64)0x0000000000ff0000ULL) << 24) | (__u64)(((__u64)(__x) & (__u64)0x00000000ff000000ULL) << 8) | (__u64)(((__u64)(__x) & (__u64)0x000000ff00000000ULL) >> 8) | (__u64)(((__u64)(__x) & (__u64)0x0000ff0000000000ULL) >> 24) | (__u64)(((__u64)(__x) & (__u64)0x00ff000000000000ULL) >> 40) | (__u64)(((__u64)(__x) & (__u64)0xff00000000000000ULL) >> 56) )); }) : __fswab64(((__u64)(((dup)->length))))))) : ((sizeof(((dup)->length)) == 4) ? ((typeof(((dup)->length)))((__builtin_constant_p((__u32)((__u32)(((dup)->length)))) ? ({ __u32 __x = (((__u32)(((dup)->length)))); ((__u32)( (((__u32)(__x) & (__u32)0x000000ffUL) << 24) | (((__u32)(__x) & (__u32)0x0000ff00UL) << 8) | (((__u32)(__x) & (__u32)0x00ff0000UL) >> 8) | (((__u32)(__x) & (__u32)0xff000000UL) >> 24) )); }) : __fswab32(((__u32)(((dup)->length))))))) : ((sizeof(((dup)->length)) == 2) ? ((typeof(((dup)->length)))((__builtin_constant_p((__u16)((__u16)(((dup)->length)))) ? ({ __u16 __x = (((__u16)(((dup)->length)))); ((__u16)( (((__u16)(__x) & (__u16)0x00ffU) << 8) | (((__u16)(__x) & (__u16)0xff00U) >> 8) )); }) : __fswab16(((__u16)(((dup)->length))))))) : (((dup)->length))))) ) - (uint)sizeof(xfs_dir2_data_off_t));


}
# 166 "../include/xfs/xfs_dir2_data.h"
extern xfs_dir2_data_free_t *xfs_dir2_data_freefind(xfs_dir2_data_t *d,
    xfs_dir2_data_unused_t *dup);
extern xfs_dir2_data_free_t *xfs_dir2_data_freeinsert(xfs_dir2_data_t *d,
    xfs_dir2_data_unused_t *dup, int *loghead);
extern void xfs_dir2_data_freescan(struct xfs_mount *mp, xfs_dir2_data_t *d,
    int *loghead, char *aendp);
extern int xfs_dir2_data_init(struct xfs_da_args *args, xfs_dir2_db_t blkno,
    struct xfs_dabuf **bpp);
extern void xfs_dir2_data_log_entry(struct xfs_trans *tp, struct xfs_dabuf *bp,
    xfs_dir2_data_entry_t *dep);
extern void xfs_dir2_data_log_header(struct xfs_trans *tp,
    struct xfs_dabuf *bp);
extern void xfs_dir2_data_log_unused(struct xfs_trans *tp, struct xfs_dabuf *bp,
    xfs_dir2_data_unused_t *dup);
extern void xfs_dir2_data_make_free(struct xfs_trans *tp, struct xfs_dabuf *bp,
    xfs_dir2_data_aoff_t offset,
    xfs_dir2_data_aoff_t len, int *needlogp,
    int *needscanp);
extern void xfs_dir2_data_use_free(struct xfs_trans *tp, struct xfs_dabuf *bp,
          xfs_dir2_data_unused_t *dup,
          xfs_dir2_data_aoff_t offset,
          xfs_dir2_data_aoff_t len, int *needlogp,
          int *needscanp);
# 382 "../include/xfs/libxfs.h" 2
# 1 "../include/xfs/xfs_dir2_leaf.h" 1
# 21 "../include/xfs/xfs_dir2_leaf.h"
struct uio;
struct xfs_dabuf;
struct xfs_da_args;
struct xfs_inode;
struct xfs_mount;
struct xfs_trans;
# 40 "../include/xfs/xfs_dir2_leaf.h"
typedef __uint32_t xfs_dir2_dataptr_t;






typedef struct xfs_dir2_leaf_hdr {
 xfs_da_blkinfo_t info;
 __uint16_t count;
 __uint16_t stale;
} xfs_dir2_leaf_hdr_t;




typedef struct xfs_dir2_leaf_entry {
 xfs_dahash_t hashval;
 xfs_dir2_dataptr_t address;
} xfs_dir2_leaf_entry_t;




typedef struct xfs_dir2_leaf_tail {
 __uint32_t bestcount;
} xfs_dir2_leaf_tail_t;






typedef struct xfs_dir2_leaf {
 xfs_dir2_leaf_hdr_t hdr;
 xfs_dir2_leaf_entry_t ents[1];

 xfs_dir2_data_off_t bests[1];
 xfs_dir2_leaf_tail_t tail;
} xfs_dir2_leaf_t;






static inline int xfs_dir2_max_leaf_ents(struct xfs_mount *mp)
{
 return (int)(((mp)->m_dirblksize - (uint)sizeof(xfs_dir2_leaf_hdr_t)) /
        (uint)sizeof(xfs_dir2_leaf_entry_t));
}





static inline xfs_dir2_leaf_tail_t *
xfs_dir2_leaf_tail_p(struct xfs_mount *mp, xfs_dir2_leaf_t *lp)
{
 return (xfs_dir2_leaf_tail_t *)
  ((char *)(lp) + (mp)->m_dirblksize -
    (uint)sizeof(xfs_dir2_leaf_tail_t));
}





static inline xfs_dir2_data_off_t *
xfs_dir2_leaf_bests_p(xfs_dir2_leaf_tail_t *ltp)
{
 return (xfs_dir2_data_off_t *)
  (ltp) - (((0) == 1) ? ((ltp)->bestcount) : ((sizeof(((ltp)->bestcount)) == 8) ? ((typeof(((ltp)->bestcount)))((__builtin_constant_p((__u64)((__u64)(((ltp)->bestcount)))) ? ({ __u64 __x = (((__u64)(((ltp)->bestcount)))); ((__u64)( (__u64)(((__u64)(__x) & (__u64)0x00000000000000ffULL) << 56) | (__u64)(((__u64)(__x) & (__u64)0x000000000000ff00ULL) << 40) | (__u64)(((__u64)(__x) & (__u64)0x0000000000ff0000ULL) << 24) | (__u64)(((__u64)(__x) & (__u64)0x00000000ff000000ULL) << 8) | (__u64)(((__u64)(__x) & (__u64)0x000000ff00000000ULL) >> 8) | (__u64)(((__u64)(__x) & (__u64)0x0000ff0000000000ULL) >> 24) | (__u64)(((__u64)(__x) & (__u64)0x00ff000000000000ULL) >> 40) | (__u64)(((__u64)(__x) & (__u64)0xff00000000000000ULL) >> 56) )); }) : __fswab64(((__u64)(((ltp)->bestcount))))))) : ((sizeof(((ltp)->bestcount)) == 4) ? ((typeof(((ltp)->bestcount)))((__builtin_constant_p((__u32)((__u32)(((ltp)->bestcount)))) ? ({ __u32 __x = (((__u32)(((ltp)->bestcount)))); ((__u32)( (((__u32)(__x) & (__u32)0x000000ffUL) << 24) | (((__u32)(__x) & (__u32)0x0000ff00UL) << 8) | (((__u32)(__x) & (__u32)0x00ff0000UL) >> 8) | (((__u32)(__x) & (__u32)0xff000000UL) >> 24) )); }) : __fswab32(((__u32)(((ltp)->bestcount))))))) : ((sizeof(((ltp)->bestcount)) == 2) ? ((typeof(((ltp)->bestcount)))((__builtin_constant_p((__u16)((__u16)(((ltp)->bestcount)))) ? ({ __u16 __x = (((__u16)(((ltp)->bestcount)))); ((__u16)( (((__u16)(__x) & (__u16)0x00ffU) << 8) | (((__u16)(__x) & (__u16)0xff00U) >> 8) )); }) : __fswab16(((__u16)(((ltp)->bestcount))))))) : (((ltp)->bestcount))))) );
}





static inline xfs_dir2_off_t
xfs_dir2_dataptr_to_byte(struct xfs_mount *mp, xfs_dir2_dataptr_t dp)
{
 return (xfs_dir2_off_t)(dp) << 3;
}





static inline xfs_dir2_dataptr_t
xfs_dir2_byte_to_dataptr(struct xfs_mount *mp, xfs_dir2_off_t by)
{
 return (xfs_dir2_dataptr_t)((by) >> 3);
}





static inline xfs_dir2_db_t
xfs_dir2_byte_to_db(struct xfs_mount *mp, xfs_dir2_off_t by)
{
 return (xfs_dir2_db_t)((by) >> ((mp)->m_sb.sb_blocklog + (mp)->m_sb.sb_dirblklog));

}





static inline xfs_dir2_db_t
xfs_dir2_dataptr_to_db(struct xfs_mount *mp, xfs_dir2_dataptr_t dp)
{
 return xfs_dir2_byte_to_db(mp, xfs_dir2_dataptr_to_byte(mp, dp));
}





static inline xfs_dir2_data_aoff_t
xfs_dir2_byte_to_off(struct xfs_mount *mp, xfs_dir2_off_t by)
{
 return (xfs_dir2_data_aoff_t)((by) & ((1 << ((mp)->m_sb.sb_blocklog + (mp)->m_sb.sb_dirblklog)) - 1));

}





static inline xfs_dir2_data_aoff_t
xfs_dir2_dataptr_to_off(struct xfs_mount *mp, xfs_dir2_dataptr_t dp)
{
 return xfs_dir2_byte_to_off(mp, xfs_dir2_dataptr_to_byte(mp, dp));
}






static inline xfs_dir2_off_t
xfs_dir2_db_off_to_byte(struct xfs_mount *mp, xfs_dir2_db_t db,
   xfs_dir2_data_aoff_t o)
{
 return ((xfs_dir2_off_t)(db) << ((mp)->m_sb.sb_blocklog + (mp)->m_sb.sb_dirblklog)) + (o);

}





static inline xfs_dablk_t
xfs_dir2_db_to_da(struct xfs_mount *mp, xfs_dir2_db_t db)
{
 return (xfs_dablk_t)((db) << (mp)->m_sb.sb_dirblklog);
}





static inline xfs_dablk_t
xfs_dir2_byte_to_da(struct xfs_mount *mp, xfs_dir2_off_t by)
{
 return xfs_dir2_db_to_da(mp, xfs_dir2_byte_to_db(mp, by));
}






static inline xfs_dir2_dataptr_t
xfs_dir2_db_off_to_dataptr(struct xfs_mount *mp, xfs_dir2_db_t db,
      xfs_dir2_data_aoff_t o)
{
 return xfs_dir2_byte_to_dataptr(mp,xfs_dir2_db_off_to_byte(mp, db, o));
}





static inline xfs_dir2_db_t
xfs_dir2_da_to_db(struct xfs_mount *mp, xfs_dablk_t da)
{
 return (xfs_dir2_db_t)((da) >> (mp)->m_sb.sb_dirblklog);
}





static inline xfs_dir2_off_t
xfs_dir2_da_to_byte(struct xfs_mount *mp, xfs_dablk_t da)
{
 return xfs_dir2_db_off_to_byte(mp, xfs_dir2_da_to_db(mp, da), 0);
}




extern int xfs_dir2_block_to_leaf(struct xfs_da_args *args,
      struct xfs_dabuf *dbp);
extern int xfs_dir2_leaf_addname(struct xfs_da_args *args);
extern void xfs_dir2_leaf_compact(struct xfs_da_args *args,
      struct xfs_dabuf *bp);
extern void xfs_dir2_leaf_compact_x1(struct xfs_dabuf *bp, int *indexp,
         int *lowstalep, int *highstalep,
         int *lowlogp, int *highlogp);
extern int xfs_dir2_leaf_getdents(struct xfs_trans *tp, struct xfs_inode *dp,
      struct uio *uio, int *eofp,
      struct xfs_dirent *dbp, xfs_dir2_put_t put);
extern int xfs_dir2_leaf_init(struct xfs_da_args *args, xfs_dir2_db_t bno,
         struct xfs_dabuf **bpp, int magic);
extern void xfs_dir2_leaf_log_ents(struct xfs_trans *tp, struct xfs_dabuf *bp,
       int first, int last);
extern void xfs_dir2_leaf_log_header(struct xfs_trans *tp,
         struct xfs_dabuf *bp);
extern int xfs_dir2_leaf_lookup(struct xfs_da_args *args);
extern int xfs_dir2_leaf_removename(struct xfs_da_args *args);
extern int xfs_dir2_leaf_replace(struct xfs_da_args *args);
extern int xfs_dir2_leaf_search_hash(struct xfs_da_args *args,
         struct xfs_dabuf *lbp);
extern int xfs_dir2_leaf_trim_data(struct xfs_da_args *args,
       struct xfs_dabuf *lbp, xfs_dir2_db_t db);
extern int xfs_dir2_node_to_leaf(struct xfs_da_state *state);
# 383 "../include/xfs/libxfs.h" 2
# 1 "../include/xfs/xfs_dir2_block.h" 1
# 26 "../include/xfs/xfs_dir2_block.h"
struct uio;
struct xfs_dabuf;
struct xfs_da_args;
struct xfs_dir2_data_hdr;
struct xfs_dir2_leaf_entry;
struct xfs_inode;
struct xfs_mount;
struct xfs_trans;
# 45 "../include/xfs/xfs_dir2_block.h"
typedef struct xfs_dir2_block_tail {
 __uint32_t count;
 __uint32_t stale;
} xfs_dir2_block_tail_t;




typedef struct xfs_dir2_block {
 xfs_dir2_data_hdr_t hdr;
 xfs_dir2_data_union_t u[1];
 xfs_dir2_leaf_entry_t leaf[1];
 xfs_dir2_block_tail_t tail;
} xfs_dir2_block_t;





static inline xfs_dir2_block_tail_t *
xfs_dir2_block_tail_p(struct xfs_mount *mp, xfs_dir2_block_t *block)
{
 return (((xfs_dir2_block_tail_t *)
  ((char *)(block) + (mp)->m_dirblksize)) - 1);
}





static inline struct xfs_dir2_leaf_entry *
xfs_dir2_block_leaf_p(xfs_dir2_block_tail_t *btp)
{
 return (((struct xfs_dir2_leaf_entry *)
  (btp)) - (((0) == 1) ? ((btp)->count) : ((sizeof(((btp)->count)) == 8) ? ((typeof(((btp)->count)))((__builtin_constant_p((__u64)((__u64)(((btp)->count)))) ? ({ __u64 __x = (((__u64)(((btp)->count)))); ((__u64)( (__u64)(((__u64)(__x) & (__u64)0x00000000000000ffULL) << 56) | (__u64)(((__u64)(__x) & (__u64)0x000000000000ff00ULL) << 40) | (__u64)(((__u64)(__x) & (__u64)0x0000000000ff0000ULL) << 24) | (__u64)(((__u64)(__x) & (__u64)0x00000000ff000000ULL) << 8) | (__u64)(((__u64)(__x) & (__u64)0x000000ff00000000ULL) >> 8) | (__u64)(((__u64)(__x) & (__u64)0x0000ff0000000000ULL) >> 24) | (__u64)(((__u64)(__x) & (__u64)0x00ff000000000000ULL) >> 40) | (__u64)(((__u64)(__x) & (__u64)0xff00000000000000ULL) >> 56) )); }) : __fswab64(((__u64)(((btp)->count))))))) : ((sizeof(((btp)->count)) == 4) ? ((typeof(((btp)->count)))((__builtin_constant_p((__u32)((__u32)(((btp)->count)))) ? ({ __u32 __x = (((__u32)(((btp)->count)))); ((__u32)( (((__u32)(__x) & (__u32)0x000000ffUL) << 24) | (((__u32)(__x) & (__u32)0x0000ff00UL) << 8) | (((__u32)(__x) & (__u32)0x00ff0000UL) >> 8) | (((__u32)(__x) & (__u32)0xff000000UL) >> 24) )); }) : __fswab32(((__u32)(((btp)->count))))))) : ((sizeof(((btp)->count)) == 2) ? ((typeof(((btp)->count)))((__builtin_constant_p((__u16)((__u16)(((btp)->count)))) ? ({ __u16 __x = (((__u16)(((btp)->count)))); ((__u16)( (((__u16)(__x) & (__u16)0x00ffU) << 8) | (((__u16)(__x) & (__u16)0xff00U) >> 8) )); }) : __fswab16(((__u16)(((btp)->count))))))) : (((btp)->count))))) ));
}




extern int xfs_dir2_block_addname(struct xfs_da_args *args);
extern int xfs_dir2_block_getdents(struct xfs_trans *tp, struct xfs_inode *dp,
       struct uio *uio, int *eofp,
       struct xfs_dirent *dbp, xfs_dir2_put_t put);
extern int xfs_dir2_block_lookup(struct xfs_da_args *args);
extern int xfs_dir2_block_removename(struct xfs_da_args *args);
extern int xfs_dir2_block_replace(struct xfs_da_args *args);
extern int xfs_dir2_leaf_to_block(struct xfs_da_args *args,
      struct xfs_dabuf *lbp, struct xfs_dabuf *dbp);
extern int xfs_dir2_sf_to_block(struct xfs_da_args *args);
# 384 "../include/xfs/libxfs.h" 2
# 1 "../include/xfs/xfs_dir2_node.h" 1
# 25 "../include/xfs/xfs_dir2_node.h"
struct uio;
struct xfs_dabuf;
struct xfs_da_args;
struct xfs_da_state;
struct xfs_da_state_blk;
struct xfs_inode;
struct xfs_trans;
# 43 "../include/xfs/xfs_dir2_node.h"
typedef struct xfs_dir2_free_hdr {
 __uint32_t magic;
 __int32_t firstdb;
 __int32_t nvalid;
 __int32_t nused;
} xfs_dir2_free_hdr_t;

typedef struct xfs_dir2_free {
 xfs_dir2_free_hdr_t hdr;
 xfs_dir2_data_off_t bests[1];

} xfs_dir2_free_t;
# 64 "../include/xfs/xfs_dir2_node.h"
static inline xfs_dir2_db_t
xfs_dir2_db_to_fdb(struct xfs_mount *mp, xfs_dir2_db_t db)
{
 return (xfs_dir2_byte_to_db(mp, (2 * (1ULL << (32 + 3)))) + (db) / (((mp)->m_dirblksize - (uint)sizeof(xfs_dir2_free_hdr_t)) / (uint)sizeof(xfs_dir2_data_off_t)));
}





static inline int
xfs_dir2_db_to_fdindex(struct xfs_mount *mp, xfs_dir2_db_t db)
{
 return ((db) % (((mp)->m_dirblksize - (uint)sizeof(xfs_dir2_free_hdr_t)) / (uint)sizeof(xfs_dir2_data_off_t)));
}

extern void xfs_dir2_free_log_bests(struct xfs_trans *tp, struct xfs_dabuf *bp,
        int first, int last);
extern int xfs_dir2_leaf_to_node(struct xfs_da_args *args,
     struct xfs_dabuf *lbp);
extern xfs_dahash_t xfs_dir2_leafn_lasthash(struct xfs_dabuf *bp, int *count);
extern int xfs_dir2_leafn_lookup_int(struct xfs_dabuf *bp,
         struct xfs_da_args *args, int *indexp,
         struct xfs_da_state *state);
extern int xfs_dir2_leafn_order(struct xfs_dabuf *leaf1_bp,
    struct xfs_dabuf *leaf2_bp);
extern int xfs_dir2_leafn_split(struct xfs_da_state *state,
    struct xfs_da_state_blk *oldblk,
    struct xfs_da_state_blk *newblk);
extern int xfs_dir2_leafn_toosmall(struct xfs_da_state *state, int *action);
extern void xfs_dir2_leafn_unbalance(struct xfs_da_state *state,
         struct xfs_da_state_blk *drop_blk,
         struct xfs_da_state_blk *save_blk);
extern int xfs_dir2_node_addname(struct xfs_da_args *args);
extern int xfs_dir2_node_lookup(struct xfs_da_args *args);
extern int xfs_dir2_node_removename(struct xfs_da_args *args);
extern int xfs_dir2_node_replace(struct xfs_da_args *args);
extern int xfs_dir2_node_trim_free(struct xfs_da_args *args, xfs_fileoff_t fo,
       int *rvalp);
# 385 "../include/xfs/libxfs.h" 2

extern void libxfs_dir_mount (xfs_mount_t *);
extern void libxfs_dir2_mount (xfs_mount_t *);
extern int libxfs_dir_init (xfs_trans_t *, xfs_inode_t *, xfs_inode_t *);
extern int libxfs_dir2_init (xfs_trans_t *, xfs_inode_t *, xfs_inode_t *);
extern int libxfs_dir_createname (xfs_trans_t *, xfs_inode_t *, char *,
    int, xfs_ino_t, xfs_fsblock_t *,
    xfs_bmap_free_t *, xfs_extlen_t);
extern int libxfs_dir2_createname (xfs_trans_t *, xfs_inode_t *, char *,
    int, xfs_ino_t, xfs_fsblock_t *,
    xfs_bmap_free_t *, xfs_extlen_t);
extern int libxfs_dir_lookup (xfs_trans_t *, xfs_inode_t *,
    char *, int, xfs_ino_t *);
extern int libxfs_dir2_lookup (xfs_trans_t *, xfs_inode_t *,
    char *, int, xfs_ino_t *);
extern int libxfs_dir_replace (xfs_trans_t *, xfs_inode_t *,
    char *, int, xfs_ino_t, xfs_fsblock_t *,
    xfs_bmap_free_t *, xfs_extlen_t);
extern int libxfs_dir2_replace (xfs_trans_t *, xfs_inode_t *,
    char *, int, xfs_ino_t, xfs_fsblock_t *,
    xfs_bmap_free_t *, xfs_extlen_t);
extern int libxfs_dir_removename (xfs_trans_t *, xfs_inode_t *,
    char *, int, xfs_ino_t, xfs_fsblock_t *,
    xfs_bmap_free_t *, xfs_extlen_t);
extern int libxfs_dir2_removename (xfs_trans_t *, xfs_inode_t *,
    char *, int, xfs_ino_t, xfs_fsblock_t *,
    xfs_bmap_free_t *, xfs_extlen_t);
extern int libxfs_dir_bogus_removename (xfs_trans_t *, xfs_inode_t *,
    char *, xfs_fsblock_t *, xfs_bmap_free_t *,
    xfs_extlen_t, xfs_dahash_t, int);
extern int libxfs_dir2_bogus_removename (xfs_trans_t *, xfs_inode_t *,
    char *, xfs_fsblock_t *, xfs_bmap_free_t *,
    xfs_extlen_t, xfs_dahash_t, int);





extern int libxfs_bmapi (xfs_trans_t *, xfs_inode_t *, xfs_fileoff_t,
    xfs_filblks_t, int, xfs_fsblock_t *,
    xfs_extlen_t, xfs_bmbt_irec_t *, int *,
    xfs_bmap_free_t *);
extern int libxfs_bmap_finish (xfs_trans_t **, xfs_bmap_free_t *,
    xfs_fsblock_t, int *);
extern int libxfs_bmap_next_offset (xfs_trans_t *, xfs_inode_t *,
    xfs_fileoff_t *, int);
extern int libxfs_bunmapi (xfs_trans_t *, xfs_inode_t *, xfs_fileoff_t,
    xfs_filblks_t, int, xfs_extnum_t,
    xfs_fsblock_t *, xfs_bmap_free_t *, int *);
extern void libxfs_bmap_del_free (xfs_bmap_free_t *,
    xfs_bmap_free_item_t *, xfs_bmap_free_item_t *);






extern int libxfs_highbit32 (__uint32_t);
extern int libxfs_highbit64 (__uint64_t);
extern uint libxfs_da_log2_roundup (uint);

extern void libxfs_xlate_sb (void *, xfs_sb_t *, int, __int64_t);
extern void libxfs_xlate_dinode_core (xfs_caddr_t buf,
    xfs_dinode_core_t *, int);

extern int libxfs_alloc_fix_freelist (xfs_alloc_arg_t *, int);
extern int libxfs_alloc_file_space (xfs_inode_t *, xfs_off_t,
    xfs_off_t, int, int);

extern xfs_dahash_t libxfs_da_hashname (const uchar_t *, int);
extern int libxfs_attr_leaf_newentsize (int, int, int, int *);
extern int libxfs_attr_set_int (xfs_inode_t*, const char *, int, char *,
    int, int);
extern int libxfs_attr_remove_int (xfs_inode_t *, const char *, int, int);


extern void libxfs_bmbt_get_all (xfs_bmbt_rec_t *, xfs_bmbt_irec_t *);

extern void libxfs_bmbt_disk_get_all (xfs_bmbt_rec_t *, xfs_bmbt_irec_t *);




extern int libxfs_free_extent (xfs_trans_t *, xfs_fsblock_t, xfs_extlen_t);
extern int libxfs_rtfree_extent (xfs_trans_t *, xfs_rtblock_t,
    xfs_extlen_t);


extern void libxfs_da_bjoin (xfs_trans_t *, xfs_dabuf_t *);
extern int libxfs_da_shrink_inode (xfs_da_args_t *, xfs_dablk_t,
    xfs_dabuf_t *);
extern int libxfs_da_grow_inode (xfs_da_args_t *, xfs_dablk_t *);
extern void libxfs_da_bhold (xfs_trans_t *, xfs_dabuf_t *);
extern void libxfs_da_brelse (xfs_trans_t *, xfs_dabuf_t *);
extern int libxfs_da_read_bufr (xfs_trans_t *, xfs_inode_t *, xfs_dablk_t,
    xfs_daddr_t, xfs_dabuf_t **, int);
extern int libxfs_da_read_buf (xfs_trans_t *, xfs_inode_t *,
    xfs_dablk_t, xfs_daddr_t, xfs_dabuf_t **, int);
extern int libxfs_da_get_buf (xfs_trans_t *, xfs_inode_t *,
    xfs_dablk_t, xfs_daddr_t, xfs_dabuf_t **, int);
extern void libxfs_da_log_buf (xfs_trans_t *, xfs_dabuf_t *, uint, uint);
extern int libxfs_dir2_shrink_inode (xfs_da_args_t *, xfs_dir2_db_t,
    xfs_dabuf_t *);
extern int libxfs_dir2_grow_inode (xfs_da_args_t *, int, xfs_dir2_db_t *);
extern int libxfs_dir2_isleaf (xfs_trans_t *, xfs_inode_t *, int *);
extern int libxfs_dir2_isblock (xfs_trans_t *, xfs_inode_t *, int *);
extern void libxfs_dir2_data_use_free (xfs_trans_t *, xfs_dabuf_t *,
    xfs_dir2_data_unused_t *, xfs_dir2_data_aoff_t,
    xfs_dir2_data_aoff_t, int *, int *);
extern void libxfs_dir2_data_make_free (xfs_trans_t *, xfs_dabuf_t *,
    xfs_dir2_data_aoff_t, xfs_dir2_data_aoff_t,
    int *, int *);
extern void libxfs_dir2_data_log_entry (xfs_trans_t *, xfs_dabuf_t *,
    xfs_dir2_data_entry_t *);
extern void libxfs_dir2_data_log_header (xfs_trans_t *, xfs_dabuf_t *);
extern void libxfs_dir2_data_freescan (xfs_mount_t *, xfs_dir2_data_t *,
    int *, char *);
extern void libxfs_dir2_free_log_bests (xfs_trans_t *, xfs_dabuf_t *,
    int, int);


extern unsigned int libxfs_log2_roundup(unsigned int i);


# 1 "../include/xfs/xfs_ialloc.h" 1
# 21 "../include/xfs/xfs_ialloc.h"
struct xfs_buf;
struct xfs_dinode;
struct xfs_mount;
struct xfs_trans;
# 47 "../include/xfs/xfs_ialloc.h"
static inline struct xfs_dinode *
xfs_make_iptr(struct xfs_mount *mp, struct xfs_buf *b, int o)
{
 return (xfs_dinode_t *)
  ((((b)->b_addr) + (o << (mp)->m_sb.sb_inodelog)));
}





static inline int xfs_ialloc_find_free(xfs_inofree_t *fp)
{
 return xfs_lowbit64(*fp);
}
# 510 "../include/xfs/libxfs.h" 2
# 1 "../include/xfs/xfs_rtalloc.h" 1
# 21 "../include/xfs/xfs_rtalloc.h"
struct xfs_mount;
struct xfs_trans;
# 511 "../include/xfs/libxfs.h" 2

# 1 "../include/xfs/xfs_attr_leaf.h" 1
# 31 "../include/xfs/xfs_attr_leaf.h"
struct attrlist;
struct attrlist_cursor_kern;
struct attrnames;
struct xfs_dabuf;
struct xfs_da_args;
struct xfs_da_state;
struct xfs_da_state_blk;
struct xfs_inode;
struct xfs_trans;
# 75 "../include/xfs/xfs_attr_leaf.h"
typedef struct xfs_attr_leaf_map {
 __uint16_t base;
 __uint16_t size;
} xfs_attr_leaf_map_t;

typedef struct xfs_attr_leaf_hdr {
 xfs_da_blkinfo_t info;
 __uint16_t count;
 __uint16_t usedbytes;
 __uint16_t firstused;
 __uint8_t holes;
 __uint8_t pad1;
 xfs_attr_leaf_map_t freemap[3];

} xfs_attr_leaf_hdr_t;

typedef struct xfs_attr_leaf_entry {
 xfs_dahash_t hashval;
 __uint16_t nameidx;
 __uint8_t flags;
 __uint8_t pad2;
} xfs_attr_leaf_entry_t;

typedef struct xfs_attr_leaf_name_local {
 __uint16_t valuelen;
 __uint8_t namelen;
 __uint8_t nameval[1];
} xfs_attr_leaf_name_local_t;

typedef struct xfs_attr_leaf_name_remote {
 xfs_dablk_t valueblk;
 __uint32_t valuelen;
 __uint8_t namelen;
 __uint8_t name[1];
} xfs_attr_leaf_name_remote_t;

typedef struct xfs_attr_leafblock {
 xfs_attr_leaf_hdr_t hdr;
 xfs_attr_leaf_entry_t entries[1];
 xfs_attr_leaf_name_local_t namelist;
 xfs_attr_leaf_name_remote_t valuelist;
} xfs_attr_leafblock_t;
# 143 "../include/xfs/xfs_attr_leaf.h"
static inline xfs_attr_leaf_name_remote_t *
xfs_attr_leaf_name_remote(xfs_attr_leafblock_t *leafp, int idx)
{
 return (xfs_attr_leaf_name_remote_t *) &((char *)
  (leafp))[(((0) == 1) ? ((leafp)->entries[idx].nameidx) : ((sizeof(((leafp)->entries[idx].nameidx)) == 8) ? ((typeof(((leafp)->entries[idx].nameidx)))((__builtin_constant_p((__u64)((__u64)(((leafp)->entries[idx].nameidx)))) ? ({ __u64 __x = (((__u64)(((leafp)->entries[idx].nameidx)))); ((__u64)( (__u64)(((__u64)(__x) & (__u64)0x00000000000000ffULL) << 56) | (__u64)(((__u64)(__x) & (__u64)0x000000000000ff00ULL) << 40) | (__u64)(((__u64)(__x) & (__u64)0x0000000000ff0000ULL) << 24) | (__u64)(((__u64)(__x) & (__u64)0x00000000ff000000ULL) << 8) | (__u64)(((__u64)(__x) & (__u64)0x000000ff00000000ULL) >> 8) | (__u64)(((__u64)(__x) & (__u64)0x0000ff0000000000ULL) >> 24) | (__u64)(((__u64)(__x) & (__u64)0x00ff000000000000ULL) >> 40) | (__u64)(((__u64)(__x) & (__u64)0xff00000000000000ULL) >> 56) )); }) : __fswab64(((__u64)(((leafp)->entries[idx].nameidx))))))) : ((sizeof(((leafp)->entries[idx].nameidx)) == 4) ? ((typeof(((leafp)->entries[idx].nameidx)))((__builtin_constant_p((__u32)((__u32)(((leafp)->entries[idx].nameidx)))) ? ({ __u32 __x = (((__u32)(((leafp)->entries[idx].nameidx)))); ((__u32)( (((__u32)(__x) & (__u32)0x000000ffUL) << 24) | (((__u32)(__x) & (__u32)0x0000ff00UL) << 8) | (((__u32)(__x) & (__u32)0x00ff0000UL) >> 8) | (((__u32)(__x) & (__u32)0xff000000UL) >> 24) )); }) : __fswab32(((__u32)(((leafp)->entries[idx].nameidx))))))) : ((sizeof(((leafp)->entries[idx].nameidx)) == 2) ? ((typeof(((leafp)->entries[idx].nameidx)))((__builtin_constant_p((__u16)((__u16)(((leafp)->entries[idx].nameidx)))) ? ({ __u16 __x = (((__u16)(((leafp)->entries[idx].nameidx)))); ((__u16)( (((__u16)(__x) & (__u16)0x00ffU) << 8) | (((__u16)(__x) & (__u16)0xff00U) >> 8) )); }) : __fswab16(((__u16)(((leafp)->entries[idx].nameidx))))))) : (((leafp)->entries[idx].nameidx))))) )];
}



static inline xfs_attr_leaf_name_local_t *
xfs_attr_leaf_name_local(xfs_attr_leafblock_t *leafp, int idx)
{
 return (xfs_attr_leaf_name_local_t *) &((char *)
  (leafp))[(((0) == 1) ? ((leafp)->entries[idx].nameidx) : ((sizeof(((leafp)->entries[idx].nameidx)) == 8) ? ((typeof(((leafp)->entries[idx].nameidx)))((__builtin_constant_p((__u64)((__u64)(((leafp)->entries[idx].nameidx)))) ? ({ __u64 __x = (((__u64)(((leafp)->entries[idx].nameidx)))); ((__u64)( (__u64)(((__u64)(__x) & (__u64)0x00000000000000ffULL) << 56) | (__u64)(((__u64)(__x) & (__u64)0x000000000000ff00ULL) << 40) | (__u64)(((__u64)(__x) & (__u64)0x0000000000ff0000ULL) << 24) | (__u64)(((__u64)(__x) & (__u64)0x00000000ff000000ULL) << 8) | (__u64)(((__u64)(__x) & (__u64)0x000000ff00000000ULL) >> 8) | (__u64)(((__u64)(__x) & (__u64)0x0000ff0000000000ULL) >> 24) | (__u64)(((__u64)(__x) & (__u64)0x00ff000000000000ULL) >> 40) | (__u64)(((__u64)(__x) & (__u64)0xff00000000000000ULL) >> 56) )); }) : __fswab64(((__u64)(((leafp)->entries[idx].nameidx))))))) : ((sizeof(((leafp)->entries[idx].nameidx)) == 4) ? ((typeof(((leafp)->entries[idx].nameidx)))((__builtin_constant_p((__u32)((__u32)(((leafp)->entries[idx].nameidx)))) ? ({ __u32 __x = (((__u32)(((leafp)->entries[idx].nameidx)))); ((__u32)( (((__u32)(__x) & (__u32)0x000000ffUL) << 24) | (((__u32)(__x) & (__u32)0x0000ff00UL) << 8) | (((__u32)(__x) & (__u32)0x00ff0000UL) >> 8) | (((__u32)(__x) & (__u32)0xff000000UL) >> 24) )); }) : __fswab32(((__u32)(((leafp)->entries[idx].nameidx))))))) : ((sizeof(((leafp)->entries[idx].nameidx)) == 2) ? ((typeof(((leafp)->entries[idx].nameidx)))((__builtin_constant_p((__u16)((__u16)(((leafp)->entries[idx].nameidx)))) ? ({ __u16 __x = (((__u16)(((leafp)->entries[idx].nameidx)))); ((__u16)( (((__u16)(__x) & (__u16)0x00ffU) << 8) | (((__u16)(__x) & (__u16)0xff00U) >> 8) )); }) : __fswab16(((__u16)(((leafp)->entries[idx].nameidx))))))) : (((leafp)->entries[idx].nameidx))))) )];
}



static inline char *xfs_attr_leaf_name(xfs_attr_leafblock_t *leafp, int idx)
{
 return (&((char *)
  (leafp))[(((0) == 1) ? ((leafp)->entries[idx].nameidx) : ((sizeof(((leafp)->entries[idx].nameidx)) == 8) ? ((typeof(((leafp)->entries[idx].nameidx)))((__builtin_constant_p((__u64)((__u64)(((leafp)->entries[idx].nameidx)))) ? ({ __u64 __x = (((__u64)(((leafp)->entries[idx].nameidx)))); ((__u64)( (__u64)(((__u64)(__x) & (__u64)0x00000000000000ffULL) << 56) | (__u64)(((__u64)(__x) & (__u64)0x000000000000ff00ULL) << 40) | (__u64)(((__u64)(__x) & (__u64)0x0000000000ff0000ULL) << 24) | (__u64)(((__u64)(__x) & (__u64)0x00000000ff000000ULL) << 8) | (__u64)(((__u64)(__x) & (__u64)0x000000ff00000000ULL) >> 8) | (__u64)(((__u64)(__x) & (__u64)0x0000ff0000000000ULL) >> 24) | (__u64)(((__u64)(__x) & (__u64)0x00ff000000000000ULL) >> 40) | (__u64)(((__u64)(__x) & (__u64)0xff00000000000000ULL) >> 56) )); }) : __fswab64(((__u64)(((leafp)->entries[idx].nameidx))))))) : ((sizeof(((leafp)->entries[idx].nameidx)) == 4) ? ((typeof(((leafp)->entries[idx].nameidx)))((__builtin_constant_p((__u32)((__u32)(((leafp)->entries[idx].nameidx)))) ? ({ __u32 __x = (((__u32)(((leafp)->entries[idx].nameidx)))); ((__u32)( (((__u32)(__x) & (__u32)0x000000ffUL) << 24) | (((__u32)(__x) & (__u32)0x0000ff00UL) << 8) | (((__u32)(__x) & (__u32)0x00ff0000UL) >> 8) | (((__u32)(__x) & (__u32)0xff000000UL) >> 24) )); }) : __fswab32(((__u32)(((leafp)->entries[idx].nameidx))))))) : ((sizeof(((leafp)->entries[idx].nameidx)) == 2) ? ((typeof(((leafp)->entries[idx].nameidx)))((__builtin_constant_p((__u16)((__u16)(((leafp)->entries[idx].nameidx)))) ? ({ __u16 __x = (((__u16)(((leafp)->entries[idx].nameidx)))); ((__u16)( (((__u16)(__x) & (__u16)0x00ffU) << 8) | (((__u16)(__x) & (__u16)0xff00U) >> 8) )); }) : __fswab16(((__u16)(((leafp)->entries[idx].nameidx))))))) : (((leafp)->entries[idx].nameidx))))) )]);
}
# 174 "../include/xfs/xfs_attr_leaf.h"
static inline int xfs_attr_leaf_entsize_remote(int nlen)
{
 return ((uint)sizeof(xfs_attr_leaf_name_remote_t) - 1 + (nlen) + ((uint)sizeof(xfs_dablk_t)) - 1) & ~(((uint)sizeof(xfs_dablk_t)) - 1);

}



static inline int xfs_attr_leaf_entsize_local(int nlen, int vlen)
{
 return ((uint)sizeof(xfs_attr_leaf_name_local_t) - 1 + (nlen) + (vlen) +
  ((uint)sizeof(xfs_dablk_t)) - 1) & ~(((uint)sizeof(xfs_dablk_t)) - 1);
}



static inline int xfs_attr_leaf_entsize_local_max(int bsize)
{
 return (((bsize) >> 1) + ((bsize) >> 2));
}






typedef struct xfs_attr_list_context {
 struct xfs_inode *dp;
 struct attrlist_cursor_kern *cursor;
 struct attrlist *alist;
 int count;
 int dupcnt;
 int bufsize;
 int firstu;
 int flags;
 int resynch;
} xfs_attr_list_context_t;




typedef struct xfs_attr_inactive_list {
 xfs_dablk_t valueblk;
 int valuelen;
} xfs_attr_inactive_list_t;
# 228 "../include/xfs/xfs_attr_leaf.h"
void xfs_attr_shortform_create(struct xfs_da_args *args);
void xfs_attr_shortform_add(struct xfs_da_args *args, int forkoff);
int xfs_attr_shortform_lookup(struct xfs_da_args *args);
int xfs_attr_shortform_getvalue(struct xfs_da_args *args);
int xfs_attr_shortform_to_leaf(struct xfs_da_args *args);
int xfs_attr_shortform_remove(struct xfs_da_args *args);
int xfs_attr_shortform_list(struct xfs_attr_list_context *context);
int xfs_attr_shortform_allfit(struct xfs_dabuf *bp, struct xfs_inode *dp);
int xfs_attr_shortform_bytesfit(xfs_inode_t *dp, int bytes);





int xfs_attr_leaf_to_node(struct xfs_da_args *args);
int xfs_attr_leaf_to_shortform(struct xfs_dabuf *bp,
       struct xfs_da_args *args, int forkoff);
int xfs_attr_leaf_clearflag(struct xfs_da_args *args);
int xfs_attr_leaf_setflag(struct xfs_da_args *args);
int xfs_attr_leaf_flipflags(xfs_da_args_t *args);




int xfs_attr_leaf_split(struct xfs_da_state *state,
       struct xfs_da_state_blk *oldblk,
       struct xfs_da_state_blk *newblk);
int xfs_attr_leaf_lookup_int(struct xfs_dabuf *leaf,
     struct xfs_da_args *args);
int xfs_attr_leaf_getvalue(struct xfs_dabuf *bp, struct xfs_da_args *args);
int xfs_attr_leaf_add(struct xfs_dabuf *leaf_buffer,
     struct xfs_da_args *args);
int xfs_attr_leaf_remove(struct xfs_dabuf *leaf_buffer,
        struct xfs_da_args *args);
int xfs_attr_leaf_list_int(struct xfs_dabuf *bp,
          struct xfs_attr_list_context *context);




int xfs_attr_leaf_toosmall(struct xfs_da_state *state, int *retval);
void xfs_attr_leaf_unbalance(struct xfs_da_state *state,
           struct xfs_da_state_blk *drop_blk,
           struct xfs_da_state_blk *save_blk);
int xfs_attr_root_inactive(struct xfs_trans **trans, struct xfs_inode *dp);




xfs_dahash_t xfs_attr_leaf_lasthash(struct xfs_dabuf *bp, int *count);
int xfs_attr_leaf_order(struct xfs_dabuf *leaf1_bp,
       struct xfs_dabuf *leaf2_bp);
int xfs_attr_leaf_newentsize(int namelen, int valuelen, int blocksize,
     int *local);
int xfs_attr_rolltrans(struct xfs_trans **transp, struct xfs_inode *dp);
# 513 "../include/xfs/libxfs.h" 2
# 1 "../include/xfs/xfs_quota.h" 1
# 31 "../include/xfs/xfs_quota.h"
typedef __uint32_t xfs_dqid_t;






typedef __uint64_t xfs_qcnt_t;
typedef __uint16_t xfs_qwarncnt_t;







typedef struct xfs_disk_dquot {
 __be16 d_magic;
 __u8 d_version;
 __u8 d_flags;
 __be32 d_id;
 __be64 d_blk_hardlimit;
 __be64 d_blk_softlimit;
 __be64 d_ino_hardlimit;
 __be64 d_ino_softlimit;
 __be64 d_bcount;
 __be64 d_icount;
 __be32 d_itimer;

 __be32 d_btimer;
 __be16 d_iwarns;
 __be16 d_bwarns;
 __be32 d_pad0;
 __be64 d_rtb_hardlimit;
 __be64 d_rtb_softlimit;
 __be64 d_rtbcount;
 __be32 d_rtbtimer;
 __be16 d_rtbwarns;
 __be16 d_pad;
} xfs_disk_dquot_t;





typedef struct xfs_dqblk {
 xfs_disk_dquot_t dd_diskdq;
 char dd_fill[32];
} xfs_dqblk_t;
# 112 "../include/xfs/xfs_quota.h"
typedef struct xfs_dq_logformat {
 __uint16_t qlf_type;
 __uint16_t qlf_size;
 xfs_dqid_t qlf_id;
 __int64_t qlf_blkno;
 __int32_t qlf_len;
 __uint32_t qlf_boffset;
} xfs_dq_logformat_t;
# 129 "../include/xfs/xfs_quota.h"
typedef struct xfs_qoff_logformat {
 unsigned short qf_type;
 unsigned short qf_size;
 unsigned int qf_flags;
 char qf_pad[12];
} xfs_qoff_logformat_t;
# 514 "../include/xfs/libxfs.h" 2
# 1 "../include/xfs/xfs_trans_space.h" 1
# 515 "../include/xfs/libxfs.h" 2
# 1 "../include/xfs/xfs_imap.h" 1
# 25 "../include/xfs/xfs_imap.h"
typedef struct xfs_imap {
 xfs_daddr_t im_blkno;
 uint im_len;
 xfs_agblock_t im_agblkno;
 ushort im_ioffset;
 ushort im_boffset;
} xfs_imap_t;
# 516 "../include/xfs/libxfs.h" 2
# 1 "../include/xfs/xfs_log.h" 1
# 135 "../include/xfs/xfs_log.h"
typedef struct xfs_log_iovec {
 xfs_caddr_t i_addr;
 int i_len;



} xfs_log_iovec_t;

typedef void* xfs_log_ticket_t;





typedef struct xfs_log_callback {
 struct xfs_log_callback *cb_next;
 void (*cb_func)(void *, int);
 void *cb_arg;
} xfs_log_callback_t;
# 204 "../include/xfs/xfs_log.h"
extern int xlog_debug;
# 517 "../include/xfs/libxfs.h" 2
# 1 "../include/xfs/xfs_log_priv.h" 1
# 21 "../include/xfs/xfs_log_priv.h"
struct xfs_buf;
struct ktrace;
struct log;
struct xlog_ticket;
struct xfs_buf_cancel;
struct xfs_mount;
# 175 "../include/xfs/xfs_log_priv.h"
typedef __uint32_t xlog_tid_t;
# 317 "../include/xfs/xfs_log_priv.h"
typedef struct xlog_op_header {
 xlog_tid_t oh_tid;
 int oh_len;
 __uint8_t oh_clientid;
 __uint8_t oh_flags;
 ushort oh_res2;
} xlog_op_header_t;
# 339 "../include/xfs/xfs_log_priv.h"
typedef struct xlog_rec_header {
 uint h_magicno;
 uint h_cycle;
 int h_version;
 int h_len;
 xfs_lsn_t h_lsn;
 xfs_lsn_t h_tail_lsn;
 uint h_chksum;
 int h_prev_block;
 int h_num_logops;
 uint h_cycle_data[(32*1024) / (1<<9)];

 int h_fmt;
 uuid_t h_fs_uuid;
 int h_size;
} xlog_rec_header_t;

typedef struct xlog_rec_ext_header {
 uint xh_cycle;
 uint xh_cycle_data[(32*1024) / (1<<9)];
} xlog_rec_ext_header_t;
# 518 "../include/xfs/libxfs.h" 2
# 20 "xfs_growfs.c" 2
# 1 "../include/xfs/path.h" 1
# 21 "../include/xfs/path.h"
# 1 "../include/xfs/xfs.h" 1
# 22 "../include/xfs/path.h" 2
# 33 "../include/xfs/path.h"
typedef struct fs_path {
 char *fs_name;
 dev_t fs_datadev;
 char *fs_log;
 dev_t fs_logdev;
 char *fs_rt;
 dev_t fs_rtdev;
 char *fs_dir;
 uint fs_flags;
 uint fs_prid;
} fs_path_t;

extern int fs_count;
extern fs_path_t *fs_table;
extern fs_path_t *fs_path;
extern char *mtab_file;

extern void fs_table_initialise(void);
extern void fs_table_destroy(void);

extern void fs_table_insert_mount(char *__mount);
extern void fs_table_insert_project(char *__project);

extern fs_path_t *fs_table_lookup(const char *__dir, uint __flags);

typedef struct fs_cursor {
 uint count;
 uint index;
 uint flags;
 fs_path_t *table;
 fs_path_t local;
} fs_cursor_t;

extern void fs_cursor_initialise(char *__dir, uint __flags, fs_cursor_t *__cp);
extern fs_path_t *fs_cursor_next_entry(fs_cursor_t *__cp);
# 21 "xfs_growfs.c" 2
# 30 "xfs_growfs.c"
static void
usage(void)
{
 fprintf(stderr, ("Usage: %s [options] mountpoint\n\nOptions:\n	-d          grow data/metadata section\n	-l          grow log section\n	-r          grow realtime section\n	-n          don't change anything, just show geometry\n	-I          allow inode numbers to exceed %d significant bits\n	-i          convert log from external to internal format\n	-t          alternate location for mount table (/etc/mtab)\n	-x          convert log from internal to external format\n	-D size     grow data/metadata section to size blks\n	-L size     grow/shrink log section to size blks\n	-R size     grow realtime section to size blks\n	-e size     set realtime extent size to size blks\n	-m imaxpct  set inode max percent to imaxpct\n	-V          print version information\n"),
# 50 "xfs_growfs.c"
  progname, 32);
 exit(2);
}

void
report_info(
 xfs_fsop_geom_t geo,
 char *mntpoint,
 int isint,
 char *logname,
 char *rtname,
 int unwritten,
 int dirversion,
 int logversion,
 int attrversion)
{
 printf(("meta-data=%-22s isize=%-6u agcount=%u, agsize=%u blks\n" "         =%-22s sectsz=%-5u attr=%u\n" "data     =%-22s bsize=%-6u blocks=%llu, imaxpct=%u\n" "         =%-22s sunit=%-6u swidth=%u blks, unwritten=%u\n" "naming   =version %-14u bsize=%-6u\n" "log      =%-22s bsize=%-6u blocks=%u, version=%u\n" "         =%-22s sectsz=%-5u sunit=%u blks\n" "realtime =%-22s extsz=%-6u blocks=%llu, rtextents=%llu\n"),
# 76 "xfs_growfs.c"
  mntpoint, geo.inodesize, geo.agcount, geo.agblocks,
  "", geo.sectsize, attrversion,
  "", geo.blocksize, (unsigned long long)geo.datablocks,
   geo.imaxpct,
  "", geo.sunit, geo.swidth, unwritten,
    dirversion, geo.dirblocksize,
  isint ? ("internal") : logname ? logname : ("external"),
   geo.blocksize, geo.logblocks, logversion,
  "", geo.logsectsize, geo.logsunit / geo.blocksize,
  !geo.rtblocks ? ("none") : rtname ? rtname : ("external"),
  geo.rtextsize * geo.blocksize, (unsigned long long)geo.rtblocks,
   (unsigned long long)geo.rtextents);
}

int
main(int argc, char **argv)
{
 int aflag;
 int c;
 long long ddsize;
 int dflag;
 int attrversion;
 int dirversion;
 int logversion;
 long long dlsize;
 long long drsize;
 long long dsize;
 int error;
 long esize;
 int ffd;
 xfs_fsop_geom_t geo;
 int iflag;
 int isint;
 int lflag;
 long long lsize;
 int maxpct;
 int mflag;
 int nflag;
 xfs_fsop_geom_t ngeo;
 int rflag;
 long long rsize;
 int unwritten;
 int xflag;
 char *fname;
 char *datadev;
 char *logdev;
 char *rtdev;
 fs_path_t *fs;
 libxfs_init_t xi;
  xfs_growfs_data_t in;

 progname = basename(argv[0]);
 setlocale(__LC_ALL, "");
 do { } while (0);
 do { } while (0);

 maxpct = esize = 0;
 dsize = lsize = rsize = 0LL;
 aflag = dflag = iflag = lflag = mflag = nflag = rflag = xflag = 0;

 while ((c = getopt(argc, argv, "dD:e:ilL:m:np:rR:t:xV")) != (-1)) {
  switch (c) {
  case 'D':
   dsize = strtoll(optarg, ((void *)0), 10);

  case 'd':
   dflag = 1;
   break;
  case 'e':
   esize = atol(optarg);
   rflag = 1;
   break;
  case 'i':
   lflag = iflag = 1;
   break;
  case 'L':
   lsize = strtoll(optarg, ((void *)0), 10);

  case 'l':
   lflag = 1;
   break;
  case 'm':
   mflag = 1;
   maxpct = atoi(optarg);
   break;
  case 'n':
   nflag = 1;
   break;
  case 'p':
   progname = optarg;
   break;
  case 'R':
   rsize = strtoll(optarg, ((void *)0), 10);

  case 'r':
   rflag = 1;
   break;
  case 't':
   mtab_file = optarg;
   break;
  case 'x':
   lflag = xflag = 1;
   break;
  case 'V':
   printf(("%s version %s\n"), progname, "2.6.3");
   exit(0);
  case '?':
  default:
   usage();
  }
 }
 if (argc - optind != 1)
  usage();
 if (iflag && xflag)
  usage();
 if (dflag + lflag + rflag == 0)
  aflag = 1;

 fs_table_initialise();
 fs = fs_table_lookup(argv[optind], (1<<0));
 if (!fs) {
  fprintf(stderr, ("%s: %s is not a mounted XFS filesystem\n"),
   progname, argv[optind]);
  return 1;
 }

 fname = fs->fs_dir;
 datadev = fs->fs_name;
 logdev = fs->fs_log;
 rtdev = fs->fs_rt;




printf("asdfasdf");
 ffd = open(fname, 00);
 if (ffd < 0) {
  perror(fname);
  return 1;
 }
 if (ioctl(ffd, (((1U) << (((0 +8)+8)+14)) | ((('X')) << (0 +8)) | (((110)) << 0) | ((sizeof(struct xfs_growfs_data)) << ((0 +8)+8))), &in) < 0) {
  printf("Fuck you\n");
  exit(1);
 }
 return 0;
 if (!platform_test_xfs_fd(ffd)) {
  fprintf(stderr, ("%s: specified file " "[\"%s\"] is not on an XFS filesystem\n"),

   progname, fname);
  exit(1);
 }
if (xfsctl(fname, ffd, (((1U) << (((0 +8)+8)+14)) | ((('X')) << (0 +8)) | (((110)) << 0) | ((sizeof(struct xfs_growfs_data)) << ((0 +8)+8))), &in) < 0) {
 printf("Fuck you\n");
 exit(1);
}

 if (xfsctl(fname, ffd, (((2U) << (((0 +8)+8)+14)) | ((('X')) << (0 +8)) | (((124)) << 0) | ((sizeof(struct xfs_fsop_geom)) << ((0 +8)+8))), &geo) < 0) {






  geo.logsunit = 0;
  if (xfsctl(fname, ffd, (((2U) << (((0 +8)+8)+14)) | ((('X')) << (0 +8)) | (((100)) << 0) | ((sizeof(struct xfs_fsop_geom_v1)) << ((0 +8)+8))), &geo) < 0) {
   fprintf(stderr, ("%s: cannot determine geometry of filesystem" " mounted at %s: %s\n"),


    progname, fname, strerror((*__errno_location ())));
   exit(1);
  }
 }
 isint = geo.logstart > 0;
 unwritten = geo.flags & 0x0040 ? 1 : 0;
 dirversion = geo.flags & 0x0080 ? 2 : 1;
 logversion = geo.flags & 0x0100 ? 2 : 1;
 attrversion = geo.flags & 0x0400 ? 2 : (geo.flags & 0x0001 ? 1 : 0);


 if (nflag) {
  report_info(geo, datadev, isint, logdev, rtdev,
    unwritten, dirversion, logversion, attrversion);
  exit(0);
 }





 bzero(&xi, sizeof(xi));
 xi.dname = datadev;
 xi.logname = logdev;
 xi.rtname = rtdev;
 xi.notvolok = 1;
 xi.isreadonly = 0x0002;

 if (!libxfs_init(&xi))
  usage();


 if (!xi.ddev) {
  fprintf(stderr, ("%s: failed to access data device for %s\n"),
   progname, fname);
  exit(1);
 }
 if (lflag && !isint && !xi.logdev) {
  fprintf(stderr, ("%s: failed to access external log for %s\n"),
   progname, fname);
  exit(1);
 }
 if (rflag && !xi.rtdev) {
  fprintf(stderr,
   ("%s: failed to access realtime device for %s\n"),
   progname, fname);
  exit(1);
 }




 ddsize = xi.dsize;
 dlsize = ( xi.logBBsize? xi.logBBsize :
   geo.logblocks * (geo.blocksize / (1<<9)) );
 drsize = xi.rtsize;
# 308 "xfs_growfs.c"
 ddsize -= (ddsize % 2);
 dlsize -= (dlsize % 2);
 drsize -= (drsize % 2);

 error = 0;
 if (dflag | aflag) {

  __uint64_t new_agcount;

  if (!mflag)
   maxpct = geo.imaxpct;
  if (!dsize)
   dsize = ddsize / (geo.blocksize / (1<<9));
  else if (dsize > ddsize / (geo.blocksize / (1<<9))) {
   fprintf(stderr, ("data size %lld too large, maximum is %lld\n"),

    (long long)dsize,
    (long long)(ddsize/(geo.blocksize/(1<<9))));
   error = 1;
  }

  new_agcount = dsize / geo.agblocks
      + (dsize % geo.agblocks != 0);

  if (!error && dsize < geo.datablocks) {
   fprintf(stderr, ("data size %lld too small," " old size is %lld\n"),

    (long long)dsize, (long long)geo.datablocks);
   error = 1;
  } else if (!error &&
      dsize == geo.datablocks && maxpct == geo.imaxpct) {
   if (dflag)
    fprintf(stderr, ("data size unchanged, skipping\n"));

   if (mflag)
    fprintf(stderr, ("inode max pct unchanged, skipping\n"));

  } else if (!error && !nflag) {
   in.newblocks = (__u64)dsize;
   in.imaxpct = (__u32)maxpct;
   if (xfsctl(fname, ffd, (((1U) << (((0 +8)+8)+14)) | ((('X')) << (0 +8)) | (((110)) << 0) | ((sizeof(struct xfs_growfs_data)) << ((0 +8)+8))), &in) < 0) {
    if ((*__errno_location ()) == 11)
     fprintf(stderr, ("%s: growfs operation in progress already\n"),

      progname);
    else
     fprintf(stderr, ("%s: XFS_IOC_FSGROWFSDATA xfsctl failed: %s\n"),

      progname, strerror((*__errno_location ())));
    error = 1;
   }
  }
 }

 if (!error && (rflag | aflag)) {
  xfs_growfs_rt_t in;

  if (!esize)
   esize = (__u32)geo.rtextsize;
  if (!rsize)
   rsize = drsize / (geo.blocksize / (1<<9));
  else if (rsize > drsize / (geo.blocksize / (1<<9))) {
   fprintf(stderr, ("realtime size %lld too large, maximum is %lld\n"),

    rsize, drsize / (geo.blocksize / (1<<9)));
   error = 1;
  }
  if (!error && rsize < geo.rtblocks) {
   fprintf(stderr, ("realtime size %lld too small, old size is %lld\n"),

    (long long)rsize, (long long)geo.rtblocks);
   error = 1;
  } else if (!error && rsize == geo.rtblocks) {
   if (rflag)
    fprintf(stderr, ("realtime size unchanged, skipping\n"));

  } else if (!error && !nflag) {
   in.newblocks = (__u64)rsize;
   in.extsize = (__u32)esize;
   if (xfsctl(fname, ffd, (((1U) << (((0 +8)+8)+14)) | ((('X')) << (0 +8)) | (((112)) << 0) | ((sizeof(struct xfs_growfs_rt)) << ((0 +8)+8))), &in) < 0) {
    if ((*__errno_location ()) == 11)
     fprintf(stderr, ("%s: growfs operation in progress already\n"),

      progname);
    else if ((*__errno_location ()) == 38)
     fprintf(stderr, ("%s: realtime growth not implemented\n"),

      progname);
    else
     fprintf(stderr, ("%s: XFS_IOC_FSGROWFSRT xfsctl failed: %s\n"),

      progname, strerror((*__errno_location ())));
    error = 1;
   }
  }
 }

 if (!error && (lflag | aflag)) {
  xfs_growfs_log_t in;

  if (!lsize)
   lsize = dlsize / (geo.blocksize / (1<<9));
  if (iflag)
   in.isint = 1;
  else if (xflag)
   in.isint = 0;
  else
   in.isint = xi.logBBsize == 0;
  if (lsize == geo.logblocks && (in.isint == isint)) {
   if (lflag)
    fprintf(stderr,
     ("log size unchanged, skipping\n"));
  } else if (!nflag) {
   in.newblocks = (__u32)lsize;
   if (xfsctl(fname, ffd, (((1U) << (((0 +8)+8)+14)) | ((('X')) << (0 +8)) | (((111)) << 0) | ((sizeof(struct xfs_growfs_log)) << ((0 +8)+8))), &in) < 0) {
    if ((*__errno_location ()) == 11)
     fprintf(stderr,
    ("%s: growfs operation in progress already\n"),
      progname);
    else if ((*__errno_location ()) == 38)
     fprintf(stderr,
    ("%s: log growth not supported yet\n"),
      progname);
    else
     fprintf(stderr,
    ("%s: XFS_IOC_FSGROWFSLOG xfsctl failed: %s\n"),
      progname, strerror((*__errno_location ())));
    error = 1;
   }
  }
 }

 if (xfsctl(fname, ffd, (((2U) << (((0 +8)+8)+14)) | ((('X')) << (0 +8)) | (((100)) << 0) | ((sizeof(struct xfs_fsop_geom_v1)) << ((0 +8)+8))), &ngeo) < 0) {
  fprintf(stderr, ("%s: XFS_IOC_FSGEOMETRY xfsctl failed: %s\n"),
   progname, strerror((*__errno_location ())));
  exit(1);
 }
 if (geo.datablocks != ngeo.datablocks)
  printf(("data blocks changed from %lld to %lld\n"),
   (long long)geo.datablocks, (long long)ngeo.datablocks);
 if (geo.imaxpct != ngeo.imaxpct)
  printf(("inode max percent changed from %d to %d\n"),
   geo.imaxpct, ngeo.imaxpct);
 if (geo.logblocks != ngeo.logblocks)
  printf(("log blocks changed from %d to %d\n"),
   geo.logblocks, ngeo.logblocks);
 if ((geo.logstart == 0) != (ngeo.logstart == 0))
  printf(("log changed from %s to %s\n"),
   geo.logstart ? ("internal") : ("external"),
   ngeo.logstart ? ("internal") : ("external"));
 if (geo.rtblocks != ngeo.rtblocks)
  printf(("realtime blocks changed from %lld to %lld\n"),
   (long long)geo.rtblocks, (long long)ngeo.rtblocks);
 if (geo.rtextsize != ngeo.rtextsize)
  printf(("realtime extent size changed from %d to %d\n"),
   geo.rtextsize, ngeo.rtextsize);
 exit(0);
}
