[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bswap16{32} problem



Love Hörnquist Åstrand wrote:
>
>> In file included from bswap.c:37:
>> roken.h:149: error: expected declaration specifiers or '...' before 
>> '(' token
>> roken.h:149: error: expected ')' before '?' token
>> roken.h:151: error: expected declaration specifiers or '...' before 
>> '(' token
>> roken.h:151: error: expected ')' before '?' token
>> bswap.c:44: error: expected declaration specifiers or '...' before 
>> '(' token
>> bswap.c:44: error: expected ')' before '?' token
>
> can you look at roken.h and see whats wrong there.
>
> If you can't find any problems, can you can also send me the output of
>
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -DBUILD_ROKEN_LIB 
> -DBUILD_ROKEN_LIB                     -Wall -Wmissing-prototypes 
> -Wpointer-arith -Wbad-function-cast -Wmissing-declarations 
> -Wnested-externs -DINET6 -g -O2 -c bswap.c  -fPIC -DPIC -E
>
> when run in lib/roken
>
> Love
>
>
>
>
I can't find any problems (my C skills are too slight).
I have attached the output of the above command.

TIA
Feri
# 1 "bswap.c"
# 1 "/usr/pkg/src/heimdal081/lib/roken//"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "bswap.c"
# 35 "bswap.c"
# 1 "../../include/config.h" 1
# 1496 "../../include/config.h"
# 1 "/usr/include/sys/types.h" 1 3 4
# 42 "/usr/include/sys/types.h" 3 4
# 1 "/usr/include/sys/featuretest.h" 1 3 4
# 43 "/usr/include/sys/types.h" 2 3 4


# 1 "/usr/include/machine/types.h" 1 3 4
# 37 "/usr/include/machine/types.h" 3 4
# 1 "/usr/include/sys/cdefs.h" 1 3 4
# 59 "/usr/include/sys/cdefs.h" 3 4
# 1 "/usr/include/machine/cdefs.h" 1 3 4
# 60 "/usr/include/sys/cdefs.h" 2 3 4

# 1 "/usr/include/sys/cdefs_elf.h" 1 3 4
# 62 "/usr/include/sys/cdefs.h" 2 3 4
# 38 "/usr/include/machine/types.h" 2 3 4
# 1 "/usr/include/sys/featuretest.h" 1 3 4
# 39 "/usr/include/machine/types.h" 2 3 4
# 1 "/usr/include/machine/int_types.h" 1 3 4
# 45 "/usr/include/machine/int_types.h" 3 4
typedef signed char __int8_t;
typedef unsigned char __uint8_t;
typedef short int __int16_t;
typedef unsigned short int __uint16_t;
typedef int __int32_t;
typedef unsigned int __uint32_t;





typedef long long int __int64_t;

typedef unsigned long long int __uint64_t;






typedef int __intptr_t;
typedef unsigned int __uintptr_t;
# 40 "/usr/include/machine/types.h" 2 3 4
# 49 "/usr/include/machine/types.h" 3 4
typedef unsigned long paddr_t;
typedef unsigned long psize_t;
typedef unsigned long vaddr_t;
typedef unsigned long vsize_t;


typedef int pmc_evid_t;
typedef __uint64_t pmc_ctr_t;
typedef int register_t;

typedef volatile unsigned char __cpu_simple_lock_t;
# 46 "/usr/include/sys/types.h" 2 3 4

# 1 "/usr/include/machine/ansi.h" 1 3 4
# 92 "/usr/include/machine/ansi.h" 3 4
typedef union {
 __int64_t __mbstateL;
 char __mbstate8[128];
} __mbstate_t;
# 48 "/usr/include/sys/types.h" 2 3 4



# 1 "/usr/include/sys/ansi.h" 1 3 4
# 44 "/usr/include/sys/ansi.h" 3 4
typedef char * __caddr_t;
typedef __uint32_t __gid_t;
typedef __uint32_t __in_addr_t;
typedef __uint16_t __in_port_t;
typedef __uint32_t __mode_t;
typedef __int64_t __off_t;
typedef __int32_t __pid_t;
typedef __uint8_t __sa_family_t;
typedef unsigned int __socklen_t;
typedef __uint32_t __uid_t;
typedef __uint64_t __fsblkcnt_t;
typedef __uint64_t __fsfilcnt_t;
# 52 "/usr/include/sys/types.h" 2 3 4


typedef __int8_t int8_t;




typedef __uint8_t uint8_t;




typedef __int16_t int16_t;




typedef __uint16_t uint16_t;




typedef __int32_t int32_t;




typedef __uint32_t uint32_t;




typedef __int64_t int64_t;




typedef __uint64_t uint64_t;



typedef __uint8_t u_int8_t;
typedef __uint16_t u_int16_t;
typedef __uint32_t u_int32_t;
typedef __uint64_t u_int64_t;

# 1 "/usr/include/machine/endian.h" 1 3 4


# 1 "/usr/include/sys/endian.h" 1 3 4
# 37 "/usr/include/sys/endian.h" 3 4
# 1 "/usr/include/sys/featuretest.h" 1 3 4
# 38 "/usr/include/sys/endian.h" 2 3 4
# 55 "/usr/include/sys/endian.h" 3 4
# 1 "/usr/include/sys/types.h" 1 3 4
# 56 "/usr/include/sys/endian.h" 2 3 4


typedef __in_addr_t in_addr_t;




typedef __in_port_t in_port_t;




__uint32_t htonl(__uint32_t) __attribute__((__const__));
__uint16_t htons(__uint16_t) __attribute__((__const__));
__uint32_t ntohl(__uint32_t) __attribute__((__const__));
__uint16_t ntohs(__uint16_t) __attribute__((__const__));






# 1 "/usr/include/machine/endian_machdep.h" 1 3 4
# 79 "/usr/include/sys/endian.h" 2 3 4
# 107 "/usr/include/sys/endian.h" 3 4
# 1 "/usr/include/machine/bswap.h" 1 3 4







# 1 "/usr/include/machine/byte_swap.h" 1 3 4
# 49 "/usr/include/machine/byte_swap.h" 3 4



static __inline __uint32_t __byte_swap_u32_variable(__uint32_t);
static __inline __uint32_t
__byte_swap_u32_variable(__uint32_t x)
{
 __asm volatile (



     "rorw $8, %w1\n\trorl $16, %1\n\trorw $8, %w1"

     : "=r" (x) : "0" (x));
 return (x);
}


static __inline __uint16_t __byte_swap_u16_variable(__uint16_t);
static __inline __uint16_t
__byte_swap_u16_variable(__uint16_t x)
{
 __asm volatile ("rorw $8, %w1" : "=r" (x) : "0" (x));
 return (x);
}


# 9 "/usr/include/machine/bswap.h" 2 3 4


# 1 "/usr/include/sys/bswap.h" 1 3 4
# 12 "/usr/include/sys/bswap.h" 3 4
# 1 "/usr/include/machine/bswap.h" 1 3 4
# 13 "/usr/include/sys/bswap.h" 2 3 4







__uint16_t bswap16(__uint16_t) __asm("__bswap16") __attribute__((__const__));
__uint32_t bswap32(__uint32_t) __asm("__bswap32") __attribute__((__const__));

__uint64_t bswap64(__uint64_t) __attribute__((__const__));

# 12 "/usr/include/machine/bswap.h" 2 3 4
# 108 "/usr/include/sys/endian.h" 2 3 4
# 203 "/usr/include/sys/endian.h" 3 4
static __inline __attribute__((__unused__)) void be16enc(void *dst, __uint16_t u) { u = (__builtin_constant_p(((__uint16_t)(u))) ? (((((__uint16_t)(u)) & 0xff00) >> 8) | ((((__uint16_t)(u)) & 0x00ff) << 8)) : __byte_swap_u16_variable((__uint16_t)(u))); __builtin_memcpy(dst, &u, sizeof(u)); }
static __inline __attribute__((__unused__)) void be32enc(void *dst, __uint32_t u) { u = (__builtin_constant_p(((__uint32_t)(u))) ? (((((__uint32_t)(u)) & 0xff000000) >> 24) | ((((__uint32_t)(u)) & 0x00ff0000) >> 8) | ((((__uint32_t)(u)) & 0x0000ff00) << 8) | ((((__uint32_t)(u)) & 0x000000ff) << 24)) : __byte_swap_u32_variable((__uint32_t)(u))); __builtin_memcpy(dst, &u, sizeof(u)); }
static __inline __attribute__((__unused__)) void be64enc(void *dst, __uint64_t u) { u = (__builtin_constant_p(((__uint64_t)(u))) ? ((__uint64_t) (((((__uint64_t)(u)) & 0xff00000000000000ull) >> 56) | ((((__uint64_t)(u)) & 0x00ff000000000000ull) >> 40) | ((((__uint64_t)(u)) & 0x0000ff0000000000ull) >> 24) | ((((__uint64_t)(u)) & 0x000000ff00000000ull) >> 8) | ((((__uint64_t)(u)) & 0x00000000ff000000ull) << 8) | ((((__uint64_t)(u)) & 0x0000000000ff0000ull) << 24) | ((((__uint64_t)(u)) & 0x000000000000ff00ull) << 40) | ((((__uint64_t)(u)) & 0x00000000000000ffull) << 56))) : bswap64((__uint64_t)(u))); __builtin_memcpy(dst, &u, sizeof(u)); }
static __inline __attribute__((__unused__)) void le16enc(void *dst, __uint16_t u) { u = (u); __builtin_memcpy(dst, &u, sizeof(u)); }
static __inline __attribute__((__unused__)) void le32enc(void *dst, __uint32_t u) { u = (u); __builtin_memcpy(dst, &u, sizeof(u)); }
static __inline __attribute__((__unused__)) void le64enc(void *dst, __uint64_t u) { u = (u); __builtin_memcpy(dst, &u, sizeof(u)); }
# 220 "/usr/include/sys/endian.h" 3 4
static __inline __attribute__((__unused__)) __uint16_t be16dec(const void *buf) { __uint16_t u; __builtin_memcpy(&u, buf, sizeof(u)); return (__builtin_constant_p(((__uint16_t)(u))) ? (((((__uint16_t)(u)) & 0xff00) >> 8) | ((((__uint16_t)(u)) & 0x00ff) << 8)) : __byte_swap_u16_variable((__uint16_t)(u))); }
static __inline __attribute__((__unused__)) __uint32_t be32dec(const void *buf) { __uint32_t u; __builtin_memcpy(&u, buf, sizeof(u)); return (__builtin_constant_p(((__uint32_t)(u))) ? (((((__uint32_t)(u)) & 0xff000000) >> 24) | ((((__uint32_t)(u)) & 0x00ff0000) >> 8) | ((((__uint32_t)(u)) & 0x0000ff00) << 8) | ((((__uint32_t)(u)) & 0x000000ff) << 24)) : __byte_swap_u32_variable((__uint32_t)(u))); }
static __inline __attribute__((__unused__)) __uint64_t be64dec(const void *buf) { __uint64_t u; __builtin_memcpy(&u, buf, sizeof(u)); return (__builtin_constant_p(((__uint64_t)(u))) ? ((__uint64_t) (((((__uint64_t)(u)) & 0xff00000000000000ull) >> 56) | ((((__uint64_t)(u)) & 0x00ff000000000000ull) >> 40) | ((((__uint64_t)(u)) & 0x0000ff0000000000ull) >> 24) | ((((__uint64_t)(u)) & 0x000000ff00000000ull) >> 8) | ((((__uint64_t)(u)) & 0x00000000ff000000ull) << 8) | ((((__uint64_t)(u)) & 0x0000000000ff0000ull) << 24) | ((((__uint64_t)(u)) & 0x000000000000ff00ull) << 40) | ((((__uint64_t)(u)) & 0x00000000000000ffull) << 56))) : bswap64((__uint64_t)(u))); }
static __inline __attribute__((__unused__)) __uint16_t le16dec(const void *buf) { __uint16_t u; __builtin_memcpy(&u, buf, sizeof(u)); return (u); }
static __inline __attribute__((__unused__)) __uint32_t le32dec(const void *buf) { __uint32_t u; __builtin_memcpy(&u, buf, sizeof(u)); return (u); }
static __inline __attribute__((__unused__)) __uint64_t le64dec(const void *buf) { __uint64_t u; __builtin_memcpy(&u, buf, sizeof(u)); return (u); }
# 3 "/usr/include/machine/endian.h" 2 3 4
# 99 "/usr/include/sys/types.h" 2 3 4


typedef unsigned char u_char;
typedef unsigned short u_short;
typedef unsigned int u_int;
typedef unsigned long u_long;

typedef unsigned char unchar;
typedef unsigned short ushort;
typedef unsigned int uint;
typedef unsigned long ulong;

typedef u_long cpuid_t;


typedef __uint64_t u_quad_t;
typedef __int64_t quad_t;
typedef quad_t * qaddr_t;
# 128 "/usr/include/sys/types.h" 3 4
typedef __int64_t longlong_t;
typedef __uint64_t u_longlong_t;

typedef __int64_t blkcnt_t;
typedef __uint32_t blksize_t;


typedef __fsblkcnt_t fsblkcnt_t;




typedef __fsfilcnt_t fsfilcnt_t;






typedef __caddr_t caddr_t;
# 156 "/usr/include/sys/types.h" 3 4
typedef __int64_t daddr_t;


typedef __uint32_t dev_t;
typedef __uint32_t fixpt_t;


typedef __gid_t gid_t;



typedef __uint32_t id_t;
typedef __uint64_t ino_t;
typedef long key_t;


typedef __mode_t mode_t;



typedef __uint32_t nlink_t;


typedef __off_t off_t;




typedef __pid_t pid_t;


typedef __int32_t lwpid_t;
typedef quad_t rlim_t;
typedef __int32_t segsz_t;
typedef __int32_t swblk_t;


typedef __uid_t uid_t;



typedef __int32_t dtime_t;
# 247 "/usr/include/sys/types.h" 3 4

__off_t lseek(int, __off_t, int);
int ftruncate(int, __off_t);
int truncate(const char *, __off_t);

# 267 "/usr/include/sys/types.h" 3 4
typedef unsigned long clock_t;




typedef unsigned int size_t;





typedef int ssize_t;




typedef long time_t;




typedef int clockid_t;




typedef int timer_t;




typedef int suseconds_t;




typedef unsigned int useconds_t;




# 1 "/usr/include/sys/fd_set.h" 1 3 4
# 38 "/usr/include/sys/fd_set.h" 3 4
# 1 "/usr/include/sys/featuretest.h" 1 3 4
# 39 "/usr/include/sys/fd_set.h" 2 3 4







typedef __int32_t __fd_mask;
# 63 "/usr/include/sys/fd_set.h" 3 4
typedef struct fd_set {
 __fd_mask fds_bits[(((256) + ((((unsigned int)sizeof(__fd_mask) * 8)) - 1)) / (((unsigned int)sizeof(__fd_mask) * 8)))];
} fd_set;
# 309 "/usr/include/sys/types.h" 2 3 4


typedef struct kauth_cred *kauth_cred_t;

typedef unsigned int pri_t;
# 344 "/usr/include/sys/types.h" 3 4
# 1 "/usr/include/pthread_types.h" 1 3 4
# 46 "/usr/include/pthread_types.h" 3 4
typedef __cpu_simple_lock_t pthread_spin_t;
# 57 "/usr/include/pthread_types.h" 3 4
struct pthread_queue_t { struct __pthread_st *ptqh_first; struct __pthread_st **ptqh_last; };

struct __pthread_st;
struct __pthread_attr_st;
struct __pthread_mutex_st;
struct __pthread_mutexattr_st;
struct __pthread_cond_st;
struct __pthread_condattr_st;
struct __pthread_spin_st;
struct __pthread_rwlock_st;
struct __pthread_rwlockattr_st;
struct __pthread_barrier_st;
struct __pthread_barrierattr_st;

typedef struct __pthread_st *pthread_t;
typedef struct __pthread_attr_st pthread_attr_t;
typedef struct __pthread_mutex_st pthread_mutex_t;
typedef struct __pthread_mutexattr_st pthread_mutexattr_t;
typedef struct __pthread_cond_st pthread_cond_t;
typedef struct __pthread_condattr_st pthread_condattr_t;
typedef struct __pthread_once_st pthread_once_t;
typedef struct __pthread_spinlock_st pthread_spinlock_t;
typedef struct __pthread_rwlock_st pthread_rwlock_t;
typedef struct __pthread_rwlockattr_st pthread_rwlockattr_t;
typedef struct __pthread_barrier_st pthread_barrier_t;
typedef struct __pthread_barrierattr_st pthread_barrierattr_t;
typedef int pthread_key_t;

struct __pthread_attr_st {
 unsigned int pta_magic;

 int pta_flags;
 void *pta_private;
};

struct __pthread_mutex_st {
 unsigned int ptm_magic;
# 102 "/usr/include/pthread_types.h" 3 4
 pthread_spin_t ptm_lock;


 pthread_spin_t ptm_interlock;
 pthread_t ptm_owner;
 struct pthread_queue_t ptm_blocked;
 void *ptm_private;
};
# 123 "/usr/include/pthread_types.h" 3 4
struct __pthread_mutexattr_st {
 unsigned int ptma_magic;
 void *ptma_private;
};





struct __pthread_cond_st {
 unsigned int ptc_magic;


 pthread_spin_t ptc_lock;
 struct pthread_queue_t ptc_waiters;

 pthread_mutex_t *ptc_mutex;
 void *ptc_private;
};
# 153 "/usr/include/pthread_types.h" 3 4
struct __pthread_condattr_st {
 unsigned int ptca_magic;
 void *ptca_private;
};




struct __pthread_once_st {
 pthread_mutex_t pto_mutex;
 int pto_done;
};



struct __pthread_spinlock_st {
 unsigned int pts_magic;
 pthread_spin_t pts_spin;
 int pts_flags;
};
# 184 "/usr/include/pthread_types.h" 3 4
struct __pthread_rwlock_st {
 unsigned int ptr_magic;


 pthread_spin_t ptr_interlock;

 struct pthread_queue_t ptr_rblocked;
 struct pthread_queue_t ptr_wblocked;
 unsigned int ptr_nreaders;
 pthread_t ptr_writer;
 void *ptr_private;
};
# 209 "/usr/include/pthread_types.h" 3 4
struct __pthread_rwlockattr_st {
 unsigned int ptra_magic;
 void *ptra_private;
};




struct __pthread_barrier_st {
 unsigned int ptb_magic;


 pthread_spin_t ptb_lock;

 struct pthread_queue_t ptb_waiters;
 unsigned int ptb_initcount;
 unsigned int ptb_curcount;
 unsigned int ptb_generation;

 void *ptb_private;
};




struct __pthread_barrierattr_st {
 unsigned int ptba_magic;
 void *ptba_private;
};
# 345 "/usr/include/sys/types.h" 2 3 4
# 1497 "../../include/config.h" 2
# 1 "/usr/include/sys/param.h" 1 3 4
# 85 "/usr/include/sys/param.h" 3 4
# 1 "/usr/include/sys/null.h" 1 3 4
# 86 "/usr/include/sys/param.h" 2 3 4


# 1 "/usr/include/sys/inttypes.h" 1 3 4
# 46 "/usr/include/sys/inttypes.h" 3 4
# 1 "/usr/include/sys/stdint.h" 1 3 4
# 86 "/usr/include/sys/stdint.h" 3 4
typedef __intptr_t intptr_t;




typedef __uintptr_t uintptr_t;



# 1 "/usr/include/machine/int_mwgwtypes.h" 1 3 4
# 48 "/usr/include/machine/int_mwgwtypes.h" 3 4
typedef signed char int_least8_t;
typedef unsigned char uint_least8_t;
typedef short int int_least16_t;
typedef unsigned short int uint_least16_t;
typedef int int_least32_t;
typedef unsigned int uint_least32_t;





typedef long long int int_least64_t;

typedef unsigned long long int uint_least64_t;




typedef signed char int_fast8_t;
typedef unsigned char uint_fast8_t;
typedef int int_fast16_t;
typedef unsigned int uint_fast16_t;
typedef int int_fast32_t;
typedef unsigned int uint_fast32_t;





typedef long long int int_fast64_t;

typedef unsigned long long int uint_fast64_t;
# 89 "/usr/include/machine/int_mwgwtypes.h" 3 4
typedef long long int intmax_t;

typedef unsigned long long int uintmax_t;
# 96 "/usr/include/sys/stdint.h" 2 3 4


# 1 "/usr/include/machine/int_limits.h" 1 3 4
# 99 "/usr/include/sys/stdint.h" 2 3 4



# 1 "/usr/include/machine/int_const.h" 1 3 4
# 103 "/usr/include/sys/stdint.h" 2 3 4


# 1 "/usr/include/machine/wchar_limits.h" 1 3 4
# 106 "/usr/include/sys/stdint.h" 2 3 4
# 47 "/usr/include/sys/inttypes.h" 2 3 4


# 1 "/usr/include/machine/int_fmtio.h" 1 3 4
# 50 "/usr/include/sys/inttypes.h" 2 3 4
# 89 "/usr/include/sys/param.h" 2 3 4
# 99 "/usr/include/sys/param.h" 3 4
# 1 "/usr/include/sys/syslimits.h" 1 3 4
# 37 "/usr/include/sys/syslimits.h" 3 4
# 1 "/usr/include/sys/featuretest.h" 1 3 4
# 38 "/usr/include/sys/syslimits.h" 2 3 4
# 100 "/usr/include/sys/param.h" 2 3 4
# 142 "/usr/include/sys/param.h" 3 4
# 1 "/usr/include/sys/signal.h" 1 3 4
# 42 "/usr/include/sys/signal.h" 3 4
# 1 "/usr/include/sys/featuretest.h" 1 3 4
# 43 "/usr/include/sys/signal.h" 2 3 4
# 1 "/usr/include/sys/sigtypes.h" 1 3 4
# 48 "/usr/include/sys/sigtypes.h" 3 4
# 1 "/usr/include/sys/featuretest.h" 1 3 4
# 49 "/usr/include/sys/sigtypes.h" 2 3 4
# 60 "/usr/include/sys/sigtypes.h" 3 4
typedef struct {
 __uint32_t __bits[4];
} sigset_t;
# 108 "/usr/include/sys/sigtypes.h" 3 4
typedef struct

               sigaltstack

      {
 void *ss_sp;
 size_t ss_size;
 int ss_flags;
} stack_t;
# 44 "/usr/include/sys/signal.h" 2 3 4
# 114 "/usr/include/sys/signal.h" 3 4
# 1 "/usr/include/sys/siginfo.h" 1 3 4
# 42 "/usr/include/sys/siginfo.h" 3 4
# 1 "/usr/include/machine/signal.h" 1 3 4
# 37 "/usr/include/machine/signal.h" 3 4
# 1 "/usr/include/sys/featuretest.h" 1 3 4
# 38 "/usr/include/machine/signal.h" 2 3 4

typedef int sig_atomic_t;
# 57 "/usr/include/machine/signal.h" 3 4
# 1 "/usr/include/machine/trap.h" 1 3 4


# 1 "/usr/include/x86/trap.h" 1 3 4
# 3 "/usr/include/machine/trap.h" 2 3 4
# 58 "/usr/include/machine/signal.h" 2 3 4
# 43 "/usr/include/sys/siginfo.h" 2 3 4




typedef union sigval {
 int sival_int;
 void *sival_ptr;
} sigval_t;

struct _ksiginfo {
 int _signo;
 int _code;
 int _errno;




 union {
  struct {
   __pid_t _pid;
   __uid_t _uid;
   sigval_t _sigval;
  } _rt;

  struct {
   __pid_t _pid;
   __uid_t _uid;
   int _status;
   clock_t _utime;
   clock_t _stime;
  } _child;

  struct {
   void *_addr;
   int _trap;
  } _fault;

  struct {
   long _band;
   int _fd;
  } _poll;
 } _reason;
};
# 137 "/usr/include/sys/siginfo.h" 3 4
typedef union siginfo {
 char si_pad[128];
 struct _ksiginfo _info;
} siginfo_t;
# 115 "/usr/include/sys/signal.h" 2 3 4




# 1 "/usr/include/sys/ucontext.h" 1 3 4
# 43 "/usr/include/sys/ucontext.h" 3 4
# 1 "/usr/include/machine/mcontext.h" 1 3 4
# 59 "/usr/include/machine/mcontext.h" 3 4
typedef int __greg_t;
typedef __greg_t __gregset_t[19];
# 85 "/usr/include/machine/mcontext.h" 3 4
typedef struct {
 union {
  struct {
   int __fp_state[27];
   int __fp_status;
  } __fpchip_state;
  struct {
   char __fp_emul[246];
   char __fp_epad[2];
  } __fp_emul_space;
  struct {
   char __fp_xmm[512];
  } __fp_xmm_state;
  int __fp_fpregs[128];
 } __fp_reg_set;
 long __fp_wregs[33];
} __fpregset_t;

typedef struct {
 __gregset_t __gregs;
 __fpregset_t __fpregs;
} mcontext_t;
# 44 "/usr/include/sys/ucontext.h" 2 3 4

typedef struct __ucontext ucontext_t;

struct __ucontext {
 unsigned int uc_flags;
 ucontext_t * uc_link;
 sigset_t uc_sigmask;
 stack_t uc_stack;
 mcontext_t uc_mcontext;

 long __uc_pad[5];

};
# 120 "/usr/include/sys/signal.h" 2 3 4





struct sigaction {
 union {
  void (*_sa_handler)(int);


  void (*_sa_sigaction)(int, siginfo_t *, void *);

 } _sa_u;
 sigset_t sa_mask;
 int sa_flags;
};
# 174 "/usr/include/sys/signal.h" 3 4
typedef void (*sig_t)(int);
# 196 "/usr/include/sys/signal.h" 3 4
struct sigstack {
 void *ss_sp;
 int ss_onstack;
};
# 214 "/usr/include/sys/signal.h" 3 4
struct sigevent {
 int sigev_notify;
 int sigev_signo;
 union sigval sigev_value;
 void (*sigev_notify_function)(union sigval *);
 void *sigev_notify_attributes;
};
# 234 "/usr/include/sys/signal.h" 3 4

void (*signal(int, void (*)(int)))(int);

# 143 "/usr/include/sys/param.h" 2 3 4


# 1 "/usr/include/machine/param.h" 1 3 4
# 146 "/usr/include/sys/param.h" 2 3 4
# 1 "/usr/include/machine/limits.h" 1 3 4
# 37 "/usr/include/machine/limits.h" 3 4
# 1 "/usr/include/sys/featuretest.h" 1 3 4
# 38 "/usr/include/machine/limits.h" 2 3 4
# 147 "/usr/include/sys/param.h" 2 3 4
# 1498 "../../include/config.h" 2
# 36 "bswap.c" 2

# 1 "roken.h" 1
# 43 "roken.h"
# 1 "/usr/include/stdio.h" 1 3 4
# 41 "/usr/include/stdio.h" 3 4
# 1 "/usr/include/sys/featuretest.h" 1 3 4
# 42 "/usr/include/stdio.h" 2 3 4
# 58 "/usr/include/stdio.h" 3 4
typedef __off_t fpos_t;
# 74 "/usr/include/stdio.h" 3 4
struct __sbuf {
 unsigned char *_base;
 int _size;
};
# 105 "/usr/include/stdio.h" 3 4
typedef struct __sFILE {
 unsigned char *_p;
 int _r;
 int _w;
 unsigned short _flags;
 short _file;
 struct __sbuf _bf;
 int _lbfsize;


 void *_cookie;
 int (*_close)(void *);
 int (*_read) (void *, char *, int);
 fpos_t (*_seek) (void *, fpos_t, int);
 int (*_write)(void *, const char *, int);


 struct __sbuf _ext;


 unsigned char *_up;
 int _ur;


 unsigned char _ubuf[3];
 unsigned char _nbuf[1];


 struct __sbuf _lb;


 int _blksize;
 fpos_t _offset;
} FILE;


extern FILE __sF[];

# 214 "/usr/include/stdio.h" 3 4

void clearerr(FILE *);
int fclose(FILE *);
int feof(FILE *);
int ferror(FILE *);
int fflush(FILE *);
int fgetc(FILE *);
int fgetpos(FILE * __restrict, fpos_t * __restrict);
char *fgets(char * __restrict, int, FILE * __restrict);
FILE *fopen(const char * __restrict , const char * __restrict);
int fprintf(FILE * __restrict , const char * __restrict, ...);
int fputc(int, FILE *);
int fputs(const char * __restrict, FILE * __restrict);
size_t fread(void * __restrict, size_t, size_t, FILE * __restrict);
FILE *freopen(const char * __restrict, const char * __restrict,
     FILE * __restrict);
int fscanf(FILE * __restrict, const char * __restrict, ...);
int fseek(FILE *, long, int);
int fsetpos(FILE *, const fpos_t *);
long ftell(FILE *);
size_t fwrite(const void * __restrict, size_t, size_t, FILE * __restrict);
int getc(FILE *);
int getchar(void);
void perror(const char *);
int printf(const char * __restrict, ...);
int putc(int, FILE *);
int putchar(int);
int puts(const char *);
int remove(const char *);
void rewind(FILE *);
int scanf(const char * __restrict, ...);
void setbuf(FILE * __restrict, char * __restrict);
int setvbuf(FILE * __restrict, char * __restrict, int, size_t);
int sscanf(const char * __restrict, const char * __restrict, ...);
FILE *tmpfile(void);
int ungetc(int, FILE *);
int vfprintf(FILE * __restrict, const char * __restrict, __builtin_va_list);
int vprintf(const char * __restrict, __builtin_va_list);


char *gets(char *);
int sprintf(char * __restrict, const char * __restrict, ...);
char *tmpnam(char *);
int vsprintf(char * __restrict, const char * __restrict,
     __builtin_va_list);





int rename (const char *, const char *);


# 276 "/usr/include/stdio.h" 3 4

char *ctermid(char *);



char *cuserid(char *);

FILE *fdopen(int, const char *);
int fileno(FILE *);









void flockfile(FILE *);
int ftrylockfile(FILE *);
void funlockfile(FILE *);
int getc_unlocked(FILE *);
int getchar_unlocked(void);
int putc_unlocked(int, FILE *);
int putchar_unlocked(int);









int pclose(FILE *);
FILE *popen(const char *, const char *);

# 323 "/usr/include/stdio.h" 3 4

int snprintf(char * __restrict, size_t, const char * __restrict, ...)
     __attribute__((__format__(__printf__, 3, 4)));
int vsnprintf(char * __restrict, size_t, const char * __restrict,
     __builtin_va_list)
     __attribute__((__format__(__printf__, 3, 0)));








int getw(FILE *);
int putw(int, FILE *);


char *tempnam(const char *, const char *);


# 356 "/usr/include/stdio.h" 3 4

int fseeko(FILE *, __off_t, int);
__off_t ftello(FILE *);

# 373 "/usr/include/stdio.h" 3 4

int asprintf(char ** __restrict, const char * __restrict, ...)
     __attribute__((__format__(__printf__, 2, 3)));
char *fgetln(FILE * __restrict, size_t * __restrict);
char *fparseln(FILE *, size_t *, size_t *, const char[3], int);
int fpurge(FILE *);
void setbuffer(FILE *, char *, int);
int setlinebuf(FILE *);
int vasprintf(char ** __restrict, const char * __restrict,
     __builtin_va_list)
     __attribute__((__format__(__printf__, 2, 0)));
int vscanf(const char * __restrict, __builtin_va_list)
     __attribute__((__format__(__scanf__, 1, 0)));
int vfscanf(FILE * __restrict, const char * __restrict,
     __builtin_va_list)
     __attribute__((__format__(__scanf__, 2, 0)));
int vsscanf(const char * __restrict, const char * __restrict,
     __builtin_va_list)
     __attribute__((__format__(__scanf__, 2, 0)));
const char *fmtcheck(const char *, const char *)
     __attribute__((__format_arg__(2)));






FILE *funopen(const void *,
  int (*)(void *, char *, int),
  int (*)(void *, const char *, int),
  fpos_t (*)(void *, fpos_t, int),
  int (*)(void *));









int __srget(FILE *);
int __swbuf(int, FILE *);








static __inline int __sputc(int _c, FILE *_p) {
 if (--_p->_w >= 0 || (_p->_w >= _p->_lbfsize && (char)_c != '\n'))
  return (*_p->_p++ = _c);
 else
  return (__swbuf(_c, _p));
}
# 44 "roken.h" 2
# 1 "/usr/include/stdlib.h" 1 3 4
# 38 "/usr/include/stdlib.h" 3 4
# 1 "/usr/include/sys/featuretest.h" 1 3 4
# 39 "/usr/include/stdlib.h" 2 3 4
# 52 "/usr/include/stdlib.h" 3 4
typedef int wchar_t;



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

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




typedef struct {

 long long int quot;

 long long int rem;
} lldiv_t;



typedef struct {
 quad_t quot;
 quad_t rem;
} qdiv_t;
# 92 "/usr/include/stdlib.h" 3 4
extern size_t __mb_cur_max;



 void _Exit(int) __attribute__((__noreturn__));
 void abort(void) __attribute__((__noreturn__));
 int abs(int);
int atexit(void (*)(void));
double atof(const char *);
int atoi(const char *);
long atol(const char *);



void *bsearch(const void *, const void *, size_t, size_t,
    int (*)(const void *, const void *));

void *calloc(size_t, size_t);
div_t div(int, int);
 void exit(int) __attribute__((__noreturn__));
void free(void *);
 char *getenv(const char *);
 long
  labs(long);
ldiv_t ldiv(long, long);
void *malloc(size_t);
void qsort(void *, size_t, size_t, int (*)(const void *, const void *));
int rand(void);
void *realloc(void *, size_t);
void srand(unsigned);
double strtod(const char * __restrict, char ** __restrict);
long strtol(const char * __restrict, char ** __restrict, int);
unsigned long
  strtoul(const char * __restrict, char ** __restrict, int);
int system(const char *);


int mblen(const char *, size_t);
size_t mbstowcs(wchar_t * __restrict, const char * __restrict, size_t);
int wctomb(char *, wchar_t);
int mbtowc(wchar_t * __restrict, const char * __restrict, size_t);
size_t wcstombs(char * __restrict, const wchar_t * __restrict, size_t);
# 144 "/usr/include/stdlib.h" 3 4
int rand_r(unsigned int *);







double drand48(void);
double erand48(unsigned short[3]);
long jrand48(unsigned short[3]);
void lcong48(unsigned short[7]);
long lrand48(void);
long mrand48(void);
long nrand48(unsigned short[3]);
unsigned short *
  seed48(unsigned short[3]);
void srand48(long);

int putenv(const char *);
# 172 "/usr/include/stdlib.h" 3 4
long a64l(const char *);
char *l64a(long);

char *initstate(unsigned long, char *, size_t);
long random(void);
char *setstate(char *);
void srandom(unsigned long);

char *mkdtemp(char *);
int mkstemp(char *);
char *mktemp(char *)



 ;

int setkey(const char *);

char *realpath(const char *, char *);

int ttyslot(void);

void *valloc(size_t);

int grantpt(int);
int unlockpt(int);
char *ptsname(int);
# 207 "/usr/include/stdlib.h" 3 4
long long int atoll(const char *);

long long int llabs(long long int);

lldiv_t lldiv(long long int, long long int);

long long int strtoll(const char * __restrict, char ** __restrict, int);

unsigned long long int
  strtoull(const char * __restrict, char ** __restrict, int);
float strtof(const char * __restrict, char ** __restrict);
long double strtold(const char * __restrict, char ** __restrict);







int setenv(const char *, const char *, int);

int unsetenv(const char *) __asm("__unsetenv13");


int posix_openpt(int);
# 241 "/usr/include/stdlib.h" 3 4
void *alloca(size_t);


__uint32_t arc4random(void);
void arc4random_stir(void);
void arc4random_addrandom(u_char *, int);
char *getbsize(int *, long *);
char *cgetcap(char *, const char *, int);
int cgetclose(void);
int cgetent(char **, const char * const *, const char *);
int cgetfirst(char **, const char * const *);
int cgetmatch(const char *, const char *);
int cgetnext(char **, const char * const *);
int cgetnum(char *, const char *, long *);
int cgetset(const char *);
int cgetstr(char *, const char *, char **);
int cgetustr(char *, const char *, char **);

int daemon(int, int);
 char *devname(dev_t, __mode_t);
dev_t getdevmajor(const char *, __mode_t);
int getloadavg(double [], int);

int getenv_r(const char *, char *, size_t);

void cfree(void *);

int heapsort(void *, size_t, size_t, int (*)(const void *, const void *));
int mergesort(void *, size_t, size_t,
     int (*)(const void *, const void *));
int radixsort(const unsigned char **, int, const unsigned char *,
     unsigned);
int sradixsort(const unsigned char **, int, const unsigned char *,
     unsigned);

void setproctitle(const char *, ...)
     __attribute__((__format__(__printf__, 1, 2)));
const char *getprogname(void) __attribute__((const));
void setprogname(const char *);

quad_t qabs(quad_t);
quad_t strtoq(const char * __restrict, char ** __restrict, int);
u_quad_t strtouq(const char * __restrict, char ** __restrict, int);


long long strsuftoll(const char *, const char *, long long, long long);

long long strsuftollx(const char *, const char *, long long, long long,
       char *, size_t);

int l64a_r(long, char *, int);

size_t shquote(const char *, char *, size_t);
size_t shquotev(int, char * const *, char *, size_t);




qdiv_t qdiv(quad_t, quad_t);


# 45 "roken.h" 2
# 1 "/usr/include/stdarg.h" 1 3 4
# 38 "/usr/include/stdarg.h" 3 4
# 1 "/usr/include/sys/featuretest.h" 1 3 4
# 39 "/usr/include/stdarg.h" 2 3 4

typedef __builtin_va_list va_list;
# 46 "roken.h" 2
# 1 "/usr/include/stdint.h" 1 3 4
# 47 "roken.h" 2
# 1 "/usr/include/string.h" 1 3 4
# 46 "/usr/include/string.h" 3 4
# 1 "/usr/include/sys/featuretest.h" 1 3 4
# 47 "/usr/include/string.h" 2 3 4


void *memchr(const void *, int, size_t);
int memcmp(const void *, const void *, size_t);
void *memcpy(void * __restrict, const void * __restrict, size_t);
void *memmove(void *, const void *, size_t);
void *memset(void *, int, size_t);
char *strcat(char * __restrict, const char * __restrict);
char *strchr(const char *, int);
int strcmp(const char *, const char *);
int strcoll(const char *, const char *);
char *strcpy(char * __restrict, const char * __restrict);
size_t strcspn(const char *, const char *);
 char *strerror(int);
size_t strlen(const char *);
char *strncat(char * __restrict, const char * __restrict, size_t);
int strncmp(const char *, const char *, size_t);
char *strncpy(char * __restrict, const char * __restrict, size_t);
char *strpbrk(const char *, const char *);
char *strrchr(const char *, int);
size_t strspn(const char *, const char *);
char *strstr(const char *, const char *);
char *strtok(char * __restrict, const char * __restrict);


char *strtok_r(char *, const char *, char **);
int strerror_r(int, char *, size_t);

size_t strxfrm(char * __restrict, const char * __restrict, size_t);


void *memccpy(void *, const void *, int, size_t);
char *strdup(const char *);



# 1 "/usr/include/strings.h" 1 3 4
# 43 "/usr/include/strings.h" 3 4
# 1 "/usr/include/sys/featuretest.h" 1 3 4
# 44 "/usr/include/strings.h" 2 3 4
# 56 "/usr/include/strings.h" 3 4

int bcmp(const void *, const void *, size_t);
void bcopy(const void *, void *, size_t);
void bzero(void *, size_t);
int ffs(int);
char *index(const char *, int);
char *rindex(const char *, int);
int strcasecmp(const char *, const char *);
int strncasecmp(const char *, const char *, size_t);



# 1 "/usr/include/string.h" 1 3 4
# 69 "/usr/include/strings.h" 2 3 4
# 84 "/usr/include/string.h" 2 3 4
void *memmem(const void *, size_t, const void *, size_t);
char *strcasestr(const char *, const char *);
size_t strlcat(char *, const char *, size_t);
size_t strlcpy(char *, const char *, size_t);
char *strsep(char **, const char *);
char *stresep(char **, const char *, int);
char *strndup(const char *, size_t);


# 48 "roken.h" 2
# 1 "/usr/include/signal.h" 1 3 4
# 38 "/usr/include/signal.h" 3 4
# 1 "/usr/include/sys/featuretest.h" 1 3 4
# 39 "/usr/include/signal.h" 2 3 4
# 48 "/usr/include/signal.h" 3 4
extern const char *const *sys_signame __asm("__sys_signame14");



extern const char *const *sys_siglist __asm("__sys_siglist14");

extern const int sys_nsig __asm("__sys_nsig14");



int raise(int);


int kill(__pid_t, int);
int __libc_sigaction14(int, const struct sigaction * __restrict,
     struct sigaction * __restrict);



int pthread_sigmask(int, const sigset_t * __restrict,
     sigset_t * __restrict);
int pthread_kill(pthread_t, int);
int __libc_thr_sigsetmask(int, const sigset_t * __restrict,
     sigset_t * __restrict);






int sigaction(int, const struct sigaction * __restrict,
    struct sigaction * __restrict) __asm("__sigaction14");
int sigaddset(sigset_t *, int) __asm("__sigaddset14");
int sigdelset(sigset_t *, int) __asm("__sigdelset14");
int sigemptyset(sigset_t *) __asm("__sigemptyset14");
int sigfillset(sigset_t *) __asm("__sigfillset14");
int sigismember(const sigset_t *, int) __asm("__sigismember14");
int sigpending(sigset_t *) __asm("__sigpending14");
int sigprocmask(int, const sigset_t * __restrict, sigset_t * __restrict)
    __asm("__sigprocmask14");
int sigsuspend(const sigset_t *) __asm("__sigsuspend14");



int *__errno(void);





extern __inline int
sigaddset(sigset_t *set, int signo)
{
 if (signo <= 0 || signo >= 64) {
  (*__errno()) = 22;
  return (-1);
 }
 ((set)->__bits[(((unsigned int)(signo) - 1) >> 5)] |= (1 << (((unsigned int)(signo) - 1) & 31)));
 return (0);
}

extern __inline int
sigdelset(sigset_t *set, int signo)
{
 if (signo <= 0 || signo >= 64) {
  (*__errno()) = 22;
  return (-1);
 }
 ((set)->__bits[(((unsigned int)(signo) - 1) >> 5)] &= ~(1 << (((unsigned int)(signo) - 1) & 31)));
 return (0);
}

extern __inline int
sigismember(const sigset_t *set, int signo)
{
 if (signo <= 0 || signo >= 64) {
  (*__errno()) = 22;
  return (-1);
 }
 return ((((set)->__bits[(((unsigned int)(signo) - 1) >> 5)] & (1 << (((unsigned int)(signo) - 1) & 31))) != 0));
}

extern __inline int
sigemptyset(sigset_t *set)
{
 ((set)->__bits[0] = 0x00000000, (set)->__bits[1] = 0x00000000, (set)->__bits[2] = 0x00000000, (set)->__bits[3] = 0x00000000);
 return (0);
}

extern __inline int
sigfillset(sigset_t *set)
{
 ((set)->__bits[0] = 0xffffffff, (set)->__bits[1] = 0xffffffff, (set)->__bits[2] = 0xffffffff, (set)->__bits[3] = 0xffffffff);
 return (0);
}
# 151 "/usr/include/signal.h" 3 4
int killpg(__pid_t, int);
int siginterrupt(int, int);
int sigstack(const struct sigstack *, struct sigstack *);

int sigaltstack(const stack_t * __restrict, stack_t * __restrict)
    __asm("__sigaltstack14");

int sighold(int);
int sigignore(int);
int sigpause(int);
int sigrelse(int);
void (*sigset (int, void (*)(int)))(int);
# 171 "/usr/include/signal.h" 3 4
int sigwait (const sigset_t * __restrict, int * __restrict);
int sigwaitinfo(const sigset_t * __restrict, siginfo_t * __restrict);

struct timespec;
int sigtimedwait(const sigset_t * __restrict,
     siginfo_t * __restrict, const struct timespec * __restrict);
int __sigtimedwait(const sigset_t * __restrict,
     siginfo_t * __restrict, struct timespec * __restrict);







void psignal(unsigned int, const char *);

int sigblock(int);
int sigsetmask(int);




# 49 "roken.h" 2


# 1 "/usr/include/inttypes.h" 1 3 4
# 51 "/usr/include/inttypes.h" 3 4

intmax_t strtoimax(const char * __restrict,
      char ** __restrict, int);
uintmax_t strtoumax(const char * __restrict,
      char ** __restrict, int);
intmax_t wcstoimax(const wchar_t * __restrict,
      wchar_t ** __restrict, int);
uintmax_t wcstoumax(const wchar_t * __restrict,
      wchar_t ** __restrict, int);

# 52 "roken.h" 2

# 1 "/usr/include/unistd.h" 1 3 4
# 76 "/usr/include/unistd.h" 3 4
# 1 "/usr/include/sys/featuretest.h" 1 3 4
# 77 "/usr/include/unistd.h" 2 3 4

# 1 "/usr/include/sys/unistd.h" 1 3 4
# 37 "/usr/include/sys/unistd.h" 3 4
# 1 "/usr/include/sys/featuretest.h" 1 3 4
# 38 "/usr/include/sys/unistd.h" 2 3 4
# 79 "/usr/include/unistd.h" 2 3 4
# 90 "/usr/include/unistd.h" 3 4

 void _exit(int) __attribute__((__noreturn__));
int access(const char *, int);
unsigned int alarm(unsigned int);
int chdir(const char *);



int chown(const char *, __uid_t, __gid_t);

int close(int);
size_t confstr(int, char *, size_t);





int dup(int);
int dup2(int, int);
int execl(const char *, const char *, ...);
int execle(const char *, const char *, ...);
int execlp(const char *, const char *, ...);
int execv(const char *, char * const *);
int execve(const char *, char * const *, char * const *);
int execvp(const char *, char * const *);
__pid_t fork(void);
long fpathconf(int, int);
char *getcwd(char *, size_t);
__gid_t getegid(void);
__uid_t geteuid(void);
__gid_t getgid(void);
int getgroups(int, __gid_t []);
 char *getlogin(void);
__pid_t getpgrp(void);
__pid_t getpid(void);
__pid_t getppid(void);
__uid_t getuid(void);
int isatty(int);
int link(const char *, const char *);
long pathconf(const char *, int);
int pause(void);
int pipe(int *);
ssize_t read(int, void *, size_t);
int rmdir(const char *);
int setgid(__gid_t);
int setpgid(__pid_t, __pid_t);
__pid_t setsid(void);
int setuid(__uid_t);
unsigned int sleep(unsigned int);
long sysconf(int);
__pid_t tcgetpgrp(int);
int tcsetpgrp(int, __pid_t);
 char *ttyname(int);
int unlink(const char *);
ssize_t write(int, const void *, size_t);







int getopt(int, char * const [], const char *);

extern char *optarg;
extern int opterr;
extern int optind;
extern int optopt;







int setegid(__gid_t);
int seteuid(__uid_t);
# 194 "/usr/include/unistd.h" 3 4
int fdatasync(int);
int fsync(int);
# 204 "/usr/include/unistd.h" 3 4
int ttyname_r(int, char *, size_t);






int chroot(const char *);
int nice(int);
# 228 "/usr/include/unistd.h" 3 4
 char *crypt(const char *, const char *);
int encrypt(char *, int);
char *getpass(const char *);
__pid_t getsid(__pid_t);
# 250 "/usr/include/unistd.h" 3 4
int brk(void *);
int fchdir(int);



int fchown(int, __uid_t, __gid_t);

int getdtablesize(void);
long gethostid(void);
int gethostname(char *, size_t);
 int
  getpagesize(void);
__pid_t getpgid(__pid_t);



int lchown(const char *, __uid_t, __gid_t);

int lockf(int, int, __off_t);
ssize_t readlink(const char * __restrict, char * __restrict, size_t);
void *sbrk(__intptr_t);

int setpgrp(__pid_t, __pid_t);
int setregid(__gid_t, __gid_t);
int setreuid(__uid_t, __uid_t);
void swab(const void *, void *, size_t);
int symlink(const char *, const char *);
void sync(void);
useconds_t ualarm(useconds_t, useconds_t);
int usleep(useconds_t);

__pid_t vfork(void) __asm("__vfork14");



char *getwd(char *);
# 294 "/usr/include/unistd.h" 3 4
ssize_t pread(int, void *, size_t, __off_t);
ssize_t pwrite(int, const void *, size_t, __off_t);







int acct(const char *);
int closefrom(int);
int des_cipher(const char *, char *, long, int);
int des_setkey(const char *);
void endusershell(void);
int exect(const char *, char * const *, char * const *);
int fchroot(int);
int fsync_range(int, int, __off_t, __off_t);
int getdomainname(char *, size_t);
int getgrouplist(const char *, __gid_t, __gid_t *, int *);
int getgroupmembership(const char *, __gid_t, __gid_t *, int, int *);
__mode_t getmode(const void *, __mode_t);
int getsubopt(char **, char * const *, char **);
 char *getusershell(void);
int initgroups(const char *, __gid_t);
int iruserok(__uint32_t, int, const char *, const char *);
int issetugid(void);
int nfssvc(int, void *);
int profil(char *, size_t, u_long, u_int);





int rcmd(char **, int, const char *, const char *, const char *, int *);
int reboot(int, char *);
int revoke(const char *);
int rresvport(int *);
int ruserok(const char *, int, const char *, const char *);
int setdomainname(const char *, size_t);
int setgroups(int, const __gid_t *);
int sethostid(long);
int sethostname(const char *, size_t);
int setlogin(const char *);
void *setmode(const char *);
int setrgid(__gid_t);
int setruid(__uid_t);
void setusershell(void);
void strmode(__mode_t, char *);
 char *strsignal(int);
int swapctl(int, void *, int);
int swapon(const char *);
int syscall(int, ...);
quad_t __syscall(quad_t, ...);
int undelete(const char *);


int rcmd_af(char **, int, const char *,
     const char *, const char *, int *, int);
int rresvport_af(int *, int);
int iruserok_sa(const void *, int, int, const char *, const char *);







extern int optreset;
extern char *suboptarg;



# 54 "roken.h" 2
# 1 "/usr/include/sys/socket.h" 1 3 4
# 66 "/usr/include/sys/socket.h" 3 4
# 1 "/usr/include/sys/featuretest.h" 1 3 4
# 67 "/usr/include/sys/socket.h" 2 3 4
# 78 "/usr/include/sys/socket.h" 3 4
typedef __sa_family_t sa_family_t;




typedef __socklen_t socklen_t;
# 99 "/usr/include/sys/socket.h" 3 4
# 1 "/usr/include/sys/uio.h" 1 3 4
# 44 "/usr/include/sys/uio.h" 3 4
# 1 "/usr/include/sys/featuretest.h" 1 3 4
# 45 "/usr/include/sys/uio.h" 2 3 4
# 56 "/usr/include/sys/uio.h" 3 4
struct iovec {
 void *iov_base;
 size_t iov_len;
};
# 69 "/usr/include/sys/uio.h" 3 4
enum uio_rw { UIO_READ, UIO_WRITE };


enum uio_seg {
 UIO_USERSPACE,
 UIO_SYSSPACE
};
# 111 "/usr/include/sys/uio.h" 3 4


ssize_t preadv(int, const struct iovec *, int, __off_t);
ssize_t pwritev(int, const struct iovec *, int, __off_t);

ssize_t readv(int, const struct iovec *, int);
ssize_t writev(int, const struct iovec *, int);

# 100 "/usr/include/sys/socket.h" 2 3 4
# 142 "/usr/include/sys/socket.h" 3 4
struct linger {
 int l_onoff;
 int l_linger;
};
# 206 "/usr/include/sys/socket.h" 3 4
struct sockaddr {
 __uint8_t sa_len;
 __sa_family_t sa_family;
 char sa_data[14];
};
# 234 "/usr/include/sys/socket.h" 3 4
struct sockaddr_storage {
 __uint8_t ss_len;
 __sa_family_t ss_family;
 char __ss_pad1[((sizeof(__int64_t)) - 2)];
 __int64_t __ss_align;
 char __ss_pad2[(128 - 2 - ((sizeof(__int64_t)) - 2) - (sizeof(__int64_t)))];
};
# 305 "/usr/include/sys/socket.h" 3 4
struct sockcred {
 __uid_t sc_uid;
 __uid_t sc_euid;
 __gid_t sc_gid;
 __gid_t sc_egid;
 int sc_ngroups;
 __gid_t sc_groups[1];
};
# 366 "/usr/include/sys/socket.h" 3 4
struct kinfo_pcb {
 __uint64_t ki_pcbaddr;
 __uint64_t ki_ppcbaddr;
 __uint64_t ki_sockaddr;

 __uint32_t ki_family;
 __uint32_t ki_type;
 __uint32_t ki_protocol;
 __uint32_t ki_pflags;

 __uint32_t ki_sostate;
 __uint32_t ki_prstate;
 __int32_t ki_tstate;
 __uint32_t ki_tflags;

 __uint64_t ki_rcvq;
 __uint64_t ki_sndq;

 union {
  struct sockaddr _kis_src;
  char _kis_pad[256 + 8];
 } ki_s;
 union {
  struct sockaddr _kid_dst;
  char _kid_pad[256 + 8];
 } ki_d;

 __uint64_t ki_inode;
 __uint64_t ki_vnode;
 __uint64_t ki_conn;
 __uint64_t ki_refs;
 __uint64_t ki_nextref;
};
# 443 "/usr/include/sys/socket.h" 3 4
struct msghdr {
 void *msg_name;
 __socklen_t msg_namelen;
 struct iovec *msg_iov;
 int msg_iovlen;
 void *msg_control;
 __socklen_t msg_controllen;
 int msg_flags;
};
# 471 "/usr/include/sys/socket.h" 3 4
struct cmsghdr {
 __socklen_t cmsg_len;
 int cmsg_level;
 int cmsg_type;

};
# 536 "/usr/include/sys/socket.h" 3 4

int __cmsg_alignbytes(void);





int accept(int, struct sockaddr * __restrict, __socklen_t * __restrict);
int bind(int, const struct sockaddr *, __socklen_t);
int connect(int, const struct sockaddr *, __socklen_t);
int getpeername(int, struct sockaddr * __restrict, __socklen_t * __restrict);
int getsockname(int, struct sockaddr * __restrict, __socklen_t * __restrict);
int getsockopt(int, int, int, void *__restrict, __socklen_t * __restrict);
int listen(int, int);
ssize_t recv(int, void *, size_t, int);
ssize_t recvfrom(int, void *__restrict, size_t, int,
     struct sockaddr * __restrict, __socklen_t * __restrict);
ssize_t recvmsg(int, struct msghdr *, int);
ssize_t send(int, const void *, size_t, int);
ssize_t sendto(int, const void *,
     size_t, int, const struct sockaddr *, __socklen_t);
ssize_t sendmsg(int, const struct msghdr *, int);
int setsockopt(int, int, int, const void *, __socklen_t);
int shutdown(int, int);
int sockatmark(int);
int socket(int, int, int)

__asm("__socket30")

        ;
int socketpair(int, int, int, int *);

# 55 "roken.h" 2

# 1 "/usr/include/grp.h" 1 3 4
# 43 "/usr/include/grp.h" 3 4
# 1 "/usr/include/sys/featuretest.h" 1 3 4
# 44 "/usr/include/grp.h" 2 3 4






struct group {
 char *gr_name;
 char *gr_passwd;
 __gid_t gr_gid;
 char * *gr_mem;
};


struct group *getgrgid(__gid_t);
struct group *getgrnam(const char *);


int getgrgid_r(__gid_t, struct group *, char *, size_t,
    struct group **);
int getgrnam_r(const char *, struct group *, char *, size_t,
    struct group **);


struct group *getgrent(void);
void setgrent(void);
void endgrent(void);


void setgrfile(const char *);
int setgroupent(int);
int getgrent_r(struct group *, char *, size_t, struct group **);
const char *group_from_gid(__gid_t, int);
int gid_from_group(const char *, __gid_t *);
int pwcache_groupdb(int (*)(int), void (*)(void),
        struct group * (*)(const char *),
        struct group * (*)(__gid_t));


# 57 "roken.h" 2
# 1 "/usr/include/sys/stat.h" 1 3 4
# 42 "/usr/include/sys/stat.h" 3 4
# 1 "/usr/include/sys/featuretest.h" 1 3 4
# 43 "/usr/include/sys/stat.h" 2 3 4



# 1 "/usr/include/sys/time.h" 1 3 4
# 37 "/usr/include/sys/time.h" 3 4
# 1 "/usr/include/sys/featuretest.h" 1 3 4
# 38 "/usr/include/sys/time.h" 2 3 4






struct timeval {
 long tv_sec;
 long tv_usec;
};




struct timespec {
 time_t tv_sec;
 long tv_nsec;
};
# 71 "/usr/include/sys/time.h" 3 4
struct timezone {
 int tz_minuteswest;
 int tz_dsttime;
};
# 229 "/usr/include/sys/time.h" 3 4
struct itimerval {
 struct timeval it_interval;
 struct timeval it_value;
};





struct itimerspec {
 struct timespec it_interval;
 struct timespec it_value;
};
# 258 "/usr/include/sys/time.h" 3 4
# 1 "/usr/include/sys/select.h" 1 3 4
# 38 "/usr/include/sys/select.h" 3 4
# 1 "/usr/include/sys/featuretest.h" 1 3 4
# 39 "/usr/include/sys/select.h" 2 3 4
# 66 "/usr/include/sys/select.h" 3 4
# 1 "/usr/include/time.h" 1 3 4
# 43 "/usr/include/time.h" 3 4
# 1 "/usr/include/sys/featuretest.h" 1 3 4
# 44 "/usr/include/time.h" 2 3 4
# 75 "/usr/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 tm_gmtoff;
 char *tm_zone;
};


char *asctime(const struct tm *);
clock_t clock(void);
char *ctime(const time_t *);
double difftime(time_t, time_t);
struct tm *gmtime(const time_t *);
struct tm *localtime(const time_t *);
time_t mktime(struct tm *);
size_t strftime(char * __restrict, size_t, const char * __restrict,
    const struct tm * __restrict);
time_t time(time_t *);
# 109 "/usr/include/time.h" 3 4
long __sysconf(int);




extern char *tzname[2];
void tzset(void);





extern int daylight;

extern long int timezone __asm("__timezone13");

char *strptime(const char * __restrict, const char * __restrict,
    struct tm * __restrict);




# 1 "/usr/include/sys/time.h" 1 3 4
# 132 "/usr/include/time.h" 2 3 4
struct sigevent;
struct itimerspec;
int clock_getres(clockid_t, struct timespec *);
int clock_gettime(clockid_t, struct timespec *);
int clock_settime(clockid_t, const struct timespec *);
int nanosleep(const struct timespec *, struct timespec *);
int timer_create(clockid_t, struct sigevent * __restrict,
    timer_t * __restrict);
int timer_delete(timer_t);
int timer_getoverrun(timer_t);
int timer_gettime(timer_t, struct itimerspec *);
int timer_settime(timer_t, int, const struct itimerspec * __restrict,
    struct itimerspec * __restrict);




char *asctime_r(const struct tm * __restrict, char * __restrict);
char *ctime_r(const time_t *, char *);
struct tm *gmtime_r(const time_t * __restrict, struct tm * __restrict);
struct tm *localtime_r(const time_t * __restrict, struct tm * __restrict);



time_t time2posix(time_t);
time_t posix2time(time_t);
time_t timegm(struct tm *);
time_t timeoff(struct tm *, long);
time_t timelocal(struct tm *);
void tzsetwall(void);
struct tm *offtime(const time_t *, long);



# 67 "/usr/include/sys/select.h" 2 3 4


int pselect(int, fd_set * __restrict, fd_set * __restrict,
     fd_set * __restrict, const struct timespec * __restrict,
     const sigset_t * __restrict);
int select(int, fd_set * __restrict, fd_set * __restrict,
     fd_set * __restrict, struct timeval * __restrict);

# 259 "/usr/include/sys/time.h" 2 3 4








int getitimer(int, struct itimerval *);
int gettimeofday(struct timeval * __restrict, void *__restrict);
int setitimer(int, const struct itimerval * __restrict,
     struct itimerval * __restrict);
int utimes(const char *, const struct timeval [2]);



int adjtime(const struct timeval *, struct timeval *);
int futimes(int, const struct timeval [2]);
int lutimes(const char *, const struct timeval [2]);
int settimeofday(const struct timeval * __restrict,
     const void *__restrict);


# 47 "/usr/include/sys/stat.h" 2 3 4
# 63 "/usr/include/sys/stat.h" 3 4
struct stat {
 dev_t st_dev;
 __mode_t st_mode;
 ino_t st_ino;
 nlink_t st_nlink;
 __uid_t st_uid;
 __gid_t st_gid;
 dev_t st_rdev;

 struct timespec st_atimespec;
 struct timespec st_mtimespec;
 struct timespec st_ctimespec;
 struct timespec st_birthtimespec;
# 90 "/usr/include/sys/stat.h" 3 4
 __off_t st_size;
 blkcnt_t st_blocks;
 blksize_t st_blksize;
 __uint32_t st_flags;
 __uint32_t st_gen;
 __uint32_t st_spare[2];
};
# 231 "/usr/include/sys/stat.h" 3 4

int chmod(const char *, __mode_t);
int mkdir(const char *, __mode_t);
int mkfifo(const char *, __mode_t);

int stat(const char *, struct stat *) __asm("__stat30");
int fstat(int, struct stat *) __asm("__fstat30");

__mode_t umask(__mode_t);

int fchmod(int, __mode_t);

int lstat(const char *, struct stat *) __asm("__lstat30");

int mknod(const char *, __mode_t, dev_t);



int chflags(const char *, unsigned long);
int fchflags(int, unsigned long);
int lchflags(const char *, unsigned long);
int lchmod(const char *, __mode_t);


# 58 "roken.h" 2
# 1 "/usr/include/netinet/in.h" 1 3 4
# 153 "/usr/include/netinet/in.h" 3 4
struct in_addr {
 __in_addr_t s_addr;
} __attribute__((__packed__));
# 236 "/usr/include/netinet/in.h" 3 4
struct sockaddr_in {
 __uint8_t sin_len;
 __sa_family_t sin_family;
 __in_port_t sin_port;
 struct in_addr sin_addr;
 __int8_t sin_zero[8];
};
# 253 "/usr/include/netinet/in.h" 3 4
struct ip_opts {
 struct in_addr ip_dst;



 __int8_t ip_opts[40];

};
# 296 "/usr/include/netinet/in.h" 3 4
struct ip_mreq {
 struct in_addr imr_multiaddr;
 struct in_addr imr_interface;
};
# 487 "/usr/include/netinet/in.h" 3 4
# 1 "/usr/include/netinet6/in6.h" 1 3 4
# 120 "/usr/include/netinet6/in6.h" 3 4
struct in6_addr {
 union {
  __uint8_t __u6_addr8[16];
  __uint16_t __u6_addr16[8];
  __uint32_t __u6_addr32[4];
 } __u6_addr;
};
# 143 "/usr/include/netinet6/in6.h" 3 4
struct sockaddr_in6 {
 __uint8_t sin6_len;
 __sa_family_t sin6_family;
 __in_port_t sin6_port;
 __uint32_t sin6_flowinfo;
 struct in6_addr sin6_addr;
 __uint32_t sin6_scope_id;
};
# 221 "/usr/include/netinet6/in6.h" 3 4
extern const struct in6_addr in6addr_any;
extern const struct in6_addr in6addr_loopback;
extern const struct in6_addr in6addr_nodelocal_allnodes;
extern const struct in6_addr in6addr_linklocal_allnodes;
extern const struct in6_addr in6addr_linklocal_allrouters;
# 381 "/usr/include/netinet6/in6.h" 3 4
struct route_in6 {
 struct rtentry *ro_rt;
 struct sockaddr_in6 ro_dst;
};
# 475 "/usr/include/netinet6/in6.h" 3 4
struct ipv6_mreq {
 struct in6_addr ipv6mr_multiaddr;
 unsigned int ipv6mr_interface;
};




struct in6_pktinfo {
 struct in6_addr ipi6_addr;
 unsigned int ipi6_ifindex;
};




struct ip6_mtuinfo {
 struct sockaddr_in6 ip6m_addr;
 __uint32_t ip6m_mtu;
};
# 737 "/usr/include/netinet6/in6.h" 3 4

struct cmsghdr;

extern int inet6_option_space (int);
extern int inet6_option_init (void *, struct cmsghdr **, int);
extern int inet6_option_append (struct cmsghdr *, const __uint8_t *, int, int);

extern __uint8_t *inet6_option_alloc (struct cmsghdr *, int, int, int);
extern int inet6_option_next (const struct cmsghdr *, __uint8_t **);
extern int inet6_option_find (const struct cmsghdr *, __uint8_t **, int);

extern size_t inet6_rthdr_space (int, int);
extern struct cmsghdr *inet6_rthdr_init (void *, int);
extern int inet6_rthdr_add (struct cmsghdr *, const struct in6_addr *, unsigned int);

extern int inet6_rthdr_lasthop (struct cmsghdr *, unsigned int);



extern int inet6_rthdr_segments (const struct cmsghdr *);
extern struct in6_addr *inet6_rthdr_getaddr (struct cmsghdr *, int);
extern int inet6_rthdr_getflags (const struct cmsghdr *, int);

extern int inet6_opt_init (void *, __socklen_t);
extern int inet6_opt_append (void *, __socklen_t, int, __uint8_t, __socklen_t, __uint8_t, void **);

extern int inet6_opt_finish (void *, __socklen_t, int);
extern int inet6_opt_set_val (void *, int, void *, __socklen_t);

extern int inet6_opt_next (void *, __socklen_t, int, __uint8_t *, __socklen_t *, void **);

extern int inet6_opt_find (void *, __socklen_t, int, __uint8_t, __socklen_t *, void **);

extern int inet6_opt_get_val (void *, int, void *, __socklen_t);
extern __socklen_t inet6_rth_space (int, int);
extern void *inet6_rth_init (void *, __socklen_t, int, int);
extern int inet6_rth_add (void *, const struct in6_addr *);
extern int inet6_rth_reverse (const void *, void *);
extern int inet6_rth_segments (const void *);
extern struct in6_addr *inet6_rth_getaddr (const void *, int);

# 488 "/usr/include/netinet/in.h" 2 3 4
# 59 "roken.h" 2
# 1 "/usr/include/arpa/inet.h" 1 3 4
# 66 "/usr/include/arpa/inet.h" 3 4
# 1 "/usr/include/sys/featuretest.h" 1 3 4
# 67 "/usr/include/arpa/inet.h" 2 3 4
# 79 "/usr/include/arpa/inet.h" 3 4

__in_addr_t inet_addr(const char *);
__in_addr_t inet_lnaof(struct in_addr);
struct in_addr inet_makeaddr(__in_addr_t, __in_addr_t);
__in_addr_t inet_netof(struct in_addr);
__in_addr_t inet_network(const char *);
char *inet_ntoa(struct in_addr);


const char *inet_ntop(int, const void * __restrict,
                  char * __restrict, __socklen_t);
int inet_pton(int, const char * __restrict,
                  void * __restrict);


int inet_aton(const char *, struct in_addr *);
char * inet_neta(u_long, char *, size_t);
char *inet_net_ntop(int, const void *, int, char *, size_t);
int inet_net_pton(int, const char *, void *, size_t);
char *inet_cidr_ntop(int, const void *, int, char *, size_t);
int inet_cidr_pton(int, const char *, void *, int *);
u_int inet_nsap_addr(const char *, u_char *, int);
char *inet_nsap_ntoa(int, const u_char *, char *);


# 60 "roken.h" 2
# 1 "/usr/include/netdb.h" 1 3 4
# 92 "/usr/include/netdb.h" 3 4
# 1 "/usr/include/machine/endian_machdep.h" 1 3 4
# 93 "/usr/include/netdb.h" 2 3 4


# 1 "/usr/include/sys/featuretest.h" 1 3 4
# 96 "/usr/include/netdb.h" 2 3 4
# 131 "/usr/include/netdb.h" 3 4

extern int h_errno;







struct hostent {
 char *h_name;
 char **h_aliases;
 int h_addrtype;
 int h_length;
 char **h_addr_list;

};





struct netent {
 char *n_name;
 char **n_aliases;
 int n_addrtype;




 __uint32_t n_net;




};

struct servent {
 char *s_name;
 char **s_aliases;
 int s_port;
 char *s_proto;
};

struct protoent {
 char *p_name;
 char **p_aliases;
 int p_proto;
};
# 194 "/usr/include/netdb.h" 3 4
struct addrinfo {
 int ai_flags;
 int ai_family;
 int ai_socktype;
 int ai_protocol;



 __socklen_t ai_addrlen;



 char *ai_canonname;
 struct sockaddr *ai_addr;
 struct addrinfo *ai_next;
};
# 294 "/usr/include/netdb.h" 3 4

void endhostent(void);
void endnetent(void);
void endprotoent(void);
void endservent(void);






struct hostent *gethostbyaddr(const char *, __socklen_t, int);
struct hostent *gethostbyname(const char *);

struct hostent *gethostbyname2(const char *, int);

struct hostent *gethostent(void);
struct netent *getnetbyaddr(__uint32_t, int);
struct netent *getnetbyname(const char *);
struct netent *getnetent(void);
struct protoent *getprotobyname(const char *);
struct protoent *getprotobynumber(int);
struct protoent *getprotoent(void);
struct servent *getservbyname(const char *, const char *);
struct servent *getservbyport(int, const char *);
struct servent *getservent(void);

void herror(const char *);
const char *hstrerror(int);

void sethostent(int);



void setnetent(int);
void setprotoent(int);


void setservent(int);
int getaddrinfo(const char * __restrict, const char * __restrict,
     const struct addrinfo * __restrict,
     struct addrinfo ** __restrict);
int getnameinfo(const struct sockaddr * __restrict, __socklen_t,
     char * __restrict, __socklen_t,
     char * __restrict, __socklen_t, int);
void freeaddrinfo(struct addrinfo *);
const char *gai_strerror(int);

void setservent(int);

# 61 "roken.h" 2
# 1 "/usr/include/arpa/nameser.h" 1 3 4
# 99 "/usr/include/arpa/nameser.h" 3 4
typedef enum __ns_sect {
 ns_s_qd = 0,
 ns_s_zn = 0,
 ns_s_an = 1,
 ns_s_pr = 1,
 ns_s_ns = 2,
 ns_s_ud = 2,
 ns_s_ar = 3,
 ns_s_max = 4
} ns_sect;






typedef struct __ns_msg {
 const u_char *_msg, *_eom;
 __uint16_t _id, _flags, _counts[ns_s_max];
 const u_char *_sections[ns_s_max];
 ns_sect _sect;
 int _rrnum;
 const u_char *_msg_ptr;
} ns_msg;


struct _ns_flagdata { int mask, shift; };
extern struct _ns_flagdata _ns_flagdata[];
# 139 "/usr/include/arpa/nameser.h" 3 4
typedef struct __ns_rr {
 char name[1025];
 __uint16_t type;
 __uint16_t rr_class;
 __uint32_t ttl;
 __uint16_t rdlength;
 const u_char * rdata;
} ns_rr;
# 161 "/usr/include/arpa/nameser.h" 3 4
typedef enum __ns_flag {
 ns_f_qr,
 ns_f_opcode,
 ns_f_aa,
 ns_f_tc,
 ns_f_rd,
 ns_f_ra,
 ns_f_z,
 ns_f_ad,
 ns_f_cd,
 ns_f_rcode,
 ns_f_max
} ns_flag;




typedef enum __ns_opcode {
 ns_o_query = 0,
 ns_o_iquery = 1,
 ns_o_status = 2,

 ns_o_notify = 4,
 ns_o_update = 5,
 ns_o_max = 6
} ns_opcode;




typedef enum __ns_rcode {
 ns_r_noerror = 0,
 ns_r_formerr = 1,
 ns_r_servfail = 2,
 ns_r_nxdomain = 3,
 ns_r_notimpl = 4,
 ns_r_refused = 5,

 ns_r_yxdomain = 6,
 ns_r_yxrrset = 7,
 ns_r_nxrrset = 8,
 ns_r_notauth = 9,
 ns_r_notzone = 10,
 ns_r_max = 11,

 ns_r_badvers = 16,

 ns_r_badsig = 16,
 ns_r_badkey = 17,
 ns_r_badtime = 18
} ns_rcode;


typedef enum __ns_update_operation {
 ns_uop_delete = 0,
 ns_uop_add = 1,
 ns_uop_max = 2
} ns_update_operation;




struct ns_tsig_key {
        char name[1025], alg[1025];
        unsigned char *data;
        int len;
};
typedef struct ns_tsig_key ns_tsig_key;




struct ns_tcp_tsig_state {
 int counter;
 struct dst_key *key;
 void *ctx;
 unsigned char sig[512];
 int siglen;
};
typedef struct ns_tcp_tsig_state ns_tcp_tsig_state;
# 253 "/usr/include/arpa/nameser.h" 3 4
typedef enum __ns_type {
 ns_t_invalid = 0,
 ns_t_a = 1,
 ns_t_ns = 2,
 ns_t_md = 3,
 ns_t_mf = 4,
 ns_t_cname = 5,
 ns_t_soa = 6,
 ns_t_mb = 7,
 ns_t_mg = 8,
 ns_t_mr = 9,
 ns_t_null = 10,
 ns_t_wks = 11,
 ns_t_ptr = 12,
 ns_t_hinfo = 13,
 ns_t_minfo = 14,
 ns_t_mx = 15,
 ns_t_txt = 16,
 ns_t_rp = 17,
 ns_t_afsdb = 18,
 ns_t_x25 = 19,
 ns_t_isdn = 20,
 ns_t_rt = 21,
 ns_t_nsap = 22,
 ns_t_nsap_ptr = 23,
 ns_t_sig = 24,
 ns_t_key = 25,
 ns_t_px = 26,
 ns_t_gpos = 27,
 ns_t_aaaa = 28,
 ns_t_loc = 29,
 ns_t_nxt = 30,
 ns_t_eid = 31,
 ns_t_nimloc = 32,
 ns_t_srv = 33,
 ns_t_atma = 34,
 ns_t_naptr = 35,
 ns_t_kx = 36,
 ns_t_cert = 37,
 ns_t_a6 = 38,
 ns_t_dname = 39,
 ns_t_sink = 40,
 ns_t_opt = 41,
 ns_t_apl = 42,
 ns_t_tkey = 249,
 ns_t_tsig = 250,
 ns_t_ixfr = 251,
 ns_t_axfr = 252,
 ns_t_mailb = 253,
 ns_t_maila = 254,
 ns_t_any = 255,
 ns_t_zxfr = 256,
 ns_t_max = 65536
} ns_type;
# 322 "/usr/include/arpa/nameser.h" 3 4
typedef enum __ns_class {
 ns_c_invalid = 0,
 ns_c_in = 1,
 ns_c_2 = 2,
 ns_c_chaos = 3,
 ns_c_hs = 4,

 ns_c_none = 254,
 ns_c_any = 255,
 ns_c_max = 65536
} ns_class;



typedef enum __ns_key_types {
 ns_kt_rsa = 1,
 ns_kt_dh = 2,
 ns_kt_dsa = 3,
 ns_kt_private = 254
} ns_key_types;

typedef enum __ns_cert_types {
 cert_t_pkix = 1,
 cert_t_spki = 2,
 cert_t_pgp = 3,
 cert_t_url = 253,
 cert_t_oid = 254
} ns_cert_types;
# 513 "/usr/include/arpa/nameser.h" 3 4

int __ns_msg_getflag(ns_msg, int);
__uint16_t __ns_get16(const u_char *);
__uint32_t __ns_get32(const u_char *);
void __ns_put16(__uint16_t, u_char *);
void __ns_put32(__uint32_t, u_char *);
int __ns_initparse(const u_char *, int, ns_msg *);
int __ns_skiprr(const u_char *, const u_char *, ns_sect, int);
int __ns_parserr(ns_msg *, ns_sect, int, ns_rr *);
int __ns_sprintrr(const ns_msg *, const ns_rr *,
     const char *, const char *, char *, size_t);
int __ns_sprintrrf(const u_char *, size_t, const char *,
      ns_class, ns_type, u_long, const u_char *,
      size_t, const char *, const char *,
      char *, size_t);
int __ns_format_ttl(u_long, char *, size_t);
int __ns_parse_ttl(const char *, u_long *);
__uint32_t __ns_datetosecs(const char *cp, int *errp);
int __ns_name_ntol(const u_char *, u_char *, size_t);
int __ns_name_ntop(const u_char *, char *, size_t);
int __ns_name_pton(const char *, u_char *, size_t);
int __ns_name_unpack(const u_char *, const u_char *,
        const u_char *, u_char *, size_t);
int __ns_name_pack(const u_char *, u_char *, int,
      const u_char **, const u_char **);
int __ns_name_uncompress(const u_char *, const u_char *,
     const u_char *, char *, size_t);
int __ns_name_compress(const char *, u_char *, size_t,
          const u_char **, const u_char **);
int __ns_name_skip(const u_char **, const u_char *);
void __ns_name_rollback(const u_char *, const u_char **,
          const u_char **);
int __ns_sign(u_char *, int *, int, int, void *,
        const u_char *, int, u_char *, int *, time_t);
int __ns_sign2(u_char *, int *, int, int, void *,
         const u_char *, int, u_char *, int *, time_t,
         u_char **, u_char **);
int __ns_sign_tcp(u_char *, int *, int, int,
     ns_tcp_tsig_state *, int);
int __ns_sign_tcp2(u_char *, int *, int, int,
      ns_tcp_tsig_state *, int,
      u_char **, u_char **);
int __ns_sign_tcp_init(void *, const u_char *, int,
     ns_tcp_tsig_state *);
u_char *__ns_find_tsig(u_char *, u_char *);
int __ns_verify(u_char *, int *, void *,
          const u_char *, int, u_char *, int *,
          time_t *, int);
int __ns_verify_tcp(u_char *, int *, ns_tcp_tsig_state *, int);
int __ns_verify_tcp_init(void *, const u_char *, int,
     ns_tcp_tsig_state *);
int __ns_samedomain(const char *, const char *);
int __ns_subdomain(const char *, const char *);
int __ns_makecanon(const char *, char *, size_t);
int __ns_samename(const char *, const char *);



# 1 "/usr/include/arpa/nameser_compat.h" 1 3 4
# 99 "/usr/include/arpa/nameser_compat.h" 3 4
typedef struct {
 unsigned id :16;
# 117 "/usr/include/arpa/nameser_compat.h" 3 4
 unsigned rd :1;
 unsigned tc :1;
 unsigned aa :1;
 unsigned opcode :4;
 unsigned qr :1;

 unsigned rcode :4;
 unsigned cd: 1;
 unsigned ad: 1;
 unsigned unused :1;
 unsigned ra :1;


 unsigned qdcount :16;
 unsigned ancount :16;
 unsigned nscount :16;
 unsigned arcount :16;
} HEADER;
# 572 "/usr/include/arpa/nameser.h" 2 3 4
# 62 "roken.h" 2
# 1 "/usr/include/resolv.h" 1 3 4
# 98 "/usr/include/resolv.h" 3 4
struct __res_state;

void __h_errno_set(struct __res_state *, int);

# 113 "/usr/include/resolv.h" 3 4
typedef enum { res_goahead, res_nextns, res_modified, res_done, res_error }
 res_sendhookact;

typedef res_sendhookact (*res_send_qhook)(struct sockaddr * const *,
           const u_char **, int *,
           u_char *, int, int *);

typedef res_sendhookact (*res_send_rhook)(const struct sockaddr *,
           const u_char *, int, u_char *,
           int, int *);

struct res_sym {
 int number;
 const char * name;
 const char * humanname;
};
# 145 "/usr/include/resolv.h" 3 4
struct __res_state_ext;

struct __res_state {
 int retrans;
 int retry;



 u_long options;

 int nscount;
 struct sockaddr_in
  nsaddr_list[3];

 u_short id;
 char *dnsrch[6 +1];
 char defdname[256];



 u_long pfcode;

 unsigned ndots:4;
 unsigned nsort:4;
 char unused[3];
 struct {
  struct in_addr addr;
  __uint32_t mask;
 } sort_list[10];



 res_send_qhook qhook;
 res_send_rhook rhook;
 int res_h_errno;
 int _vcsock;
 u_int _flags;
 u_int _pad;
 union {

  char pad[72 - 4*sizeof (int) - 2*sizeof (void *)];
  struct {
   __uint16_t nscount;
   __uint16_t nstimes[3];
   int nssocks[3];
   struct __res_state_ext *ext;
  } _ext;
 } _u;

};

typedef struct __res_state *res_state;

union res_sockaddr_union {
 struct sockaddr_in sin;

 struct sockaddr_in6 sin6;




 __int32_t __align32;

 char __space[128];
};
# 281 "/usr/include/resolv.h" 3 4

extern struct __res_state *__res_get_state(void);
extern void __res_put_state(struct __res_state *);





extern struct __res_state *__res_state(void);



# 314 "/usr/include/resolv.h" 3 4

void __fp_nquery(const u_char *, int, FILE *);
void __fp_query(const u_char *, FILE *);
const char * __hostalias(const char *);
void __p_query(const u_char *);
void __res_close(void);
int res_init(void);
int __res_opt(int, u_char *, int, int);
int __res_isourserver(const struct sockaddr_in *);
int res_mkquery(int, const char *, int, int, const u_char *,
     int, const u_char *, u_char *, int);
int res_query(const char *, int, int, u_char *, int);
int __res_querydomain(const char *, const char *, int, int,
         u_char *, int);
int res_search(const char *, int, int, u_char *, int);
int __res_send(const u_char *, int, u_char *, int);
int __res_sendsigned(const u_char *, int, ns_tsig_key *,
        u_char *, int);

# 343 "/usr/include/resolv.h" 3 4
extern const struct res_sym __p_key_syms[];
extern const struct res_sym __p_cert_syms[];
extern const struct res_sym __p_class_syms[];
extern const struct res_sym __p_type_syms[];
extern const struct res_sym __p_rcode_syms[];
# 413 "/usr/include/resolv.h" 3 4

int __res_hnok(const char *);
int __res_ownok(const char *);
int __res_mailok(const char *);
int __res_dnok(const char *);
int __sym_ston(const struct res_sym *, const char *, int *);
const char * __sym_ntos(const struct res_sym *, int, int *);
const char * __sym_ntop(const struct res_sym *, int, int *);
int __b64_ntop(u_char const *, size_t, char *, size_t);
int __b64_pton(char const *, u_char *, size_t);
int __loc_aton(const char *, u_char *);
const char * __loc_ntoa(const u_char *, char *);
int __dn_skipname(const u_char *, const u_char *);
void __putlong(__uint32_t, u_char *);
void __putshort(__uint16_t, u_char *);

__uint16_t _getshort(const u_char *);
__uint32_t _getlong(const u_char *);

const char * __p_class(int);
const char * __p_time(__uint32_t);
const char * __p_type(int);
const char * __p_rcode(int);
const char * __p_sockun(union res_sockaddr_union, char *, size_t);
const u_char * __p_cdnname(const u_char *, const u_char *, int, FILE *);
const u_char * __p_cdname(const u_char *, const u_char *, FILE *);
const u_char * __p_fqnname(const u_char *, const u_char *,
          int, char *, int);
const u_char * __p_fqname(const u_char *, const u_char *, FILE *);
const char * __p_option(u_long);
char * __p_secstodate(u_long);
int __dn_count_labels(const char *);
int __dn_comp(const char *, u_char *, int, u_char **, u_char **);
int dn_expand(const u_char *, const u_char *, const u_char *,
          char *, int);
u_int __res_randomid(void);
int __res_nameinquery(const char *, int, int, const u_char *,
         const u_char *);
int __res_queriesmatch(const u_char *, const u_char *,
          const u_char *, const u_char *);
const char * __p_section(int, int);

int __res_ninit(res_state);
int __res_nisourserver(const res_state, const struct sockaddr_in *);
void __fp_resstat(const res_state, FILE *);
void __res_pquery(const res_state, const u_char *, int, FILE *);
const char * __res_hostalias(const res_state, const char *, char *, size_t);
int __res_nquery(res_state, const char *, int, int, u_char *, int);
int __res_nsearch(res_state, const char *, int, int, u_char *, int);
int __res_nquerydomain(res_state, const char *, const char *,
          int, int, u_char *, int);
int __res_nmkquery(res_state, int, const char *, int, int,
      const u_char *, int, const u_char *,
      u_char *, int);
int __res_nsend(res_state, const u_char *, int, u_char *, int);
int __res_nsendsigned(res_state, const u_char *, int,
         ns_tsig_key *, u_char *, int);
int __res_findzonecut(res_state, const char *, ns_class, int,
         char *, size_t, struct in_addr *, int);
int __res_findzonecut2(res_state, const char *, ns_class, int,
          char *, size_t,
          union res_sockaddr_union *, int);
void __res_nclose(res_state);
int __res_nopt(res_state, int, u_char *, int, int);
void __res_send_setqhook(res_send_qhook);
void __res_send_setrhook(res_send_rhook);
int __res_vinit(res_state, int);
void __res_destroyservicelist(void);
const char * __res_servicename(__uint16_t, const char *);
const char * __res_protocolname(int);
void __res_destroyprotolist(void);
void __res_buildprotolist(void);
const char * __res_get_nibblesuffix(res_state);
const char * __res_get_nibblesuffix2(res_state);
void __res_ndestroy(res_state);
__uint16_t __res_nametoclass(const char *, int *);
__uint16_t __res_nametotype(const char *, int *);
void __res_setservers(res_state,
        const union res_sockaddr_union *, int);
int __res_getservers(res_state,
        union res_sockaddr_union *, int);

# 63 "roken.h" 2
# 1 "/usr/include/syslog.h" 1 3 4
# 172 "/usr/include/syslog.h" 3 4
struct syslog_data {
 int log_file;
 int connected;
 int opened;
 int log_stat;
 const char *log_tag;
 int log_fac;
 int log_mask;
};
# 197 "/usr/include/syslog.h" 3 4
# 1 "/usr/include/sys/featuretest.h" 1 3 4
# 198 "/usr/include/syslog.h" 2 3 4


void closelog(void);
void openlog(const char *, int, int);
int setlogmask(int);
void syslog(int, const char *, ...)
    __attribute__((__format__(__printf__,2,3)));

void vsyslog(int, const char *, __builtin_va_list)
    __attribute__((__format__(__printf__,2,0)));
void closelog_r(struct syslog_data *);
void openlog_r(const char *, int, int, struct syslog_data *);
int setlogmask_r(int, struct syslog_data *);
void syslog_r(int, struct syslog_data *, const char *, ...)
    __attribute__((__format__(__printf__,3,4)));
void vsyslog_r(int, struct syslog_data *, const char *, __builtin_va_list);


# 64 "roken.h" 2
# 1 "/usr/include/fcntl.h" 1 3 4
# 49 "/usr/include/fcntl.h" 3 4
# 1 "/usr/include/sys/featuretest.h" 1 3 4
# 50 "/usr/include/fcntl.h" 2 3 4
# 234 "/usr/include/fcntl.h" 3 4
struct flock {
 __off_t l_start;
 __off_t l_len;
 __pid_t l_pid;
 short l_type;
 short l_whence;
};
# 276 "/usr/include/fcntl.h" 3 4

int open(const char *, int, ...);
int creat(const char *, __mode_t);
int fcntl(int, int, ...);

int flock(int, int);

int posix_fadvise(int, __off_t, __off_t, int);

# 65 "roken.h" 2
# 1 "/usr/include/errno.h" 1 3 4
# 43 "/usr/include/errno.h" 3 4
# 1 "/usr/include/sys/errno.h" 1 3 4
# 44 "/usr/include/errno.h" 2 3 4
# 1 "/usr/include/sys/featuretest.h" 1 3 4
# 45 "/usr/include/errno.h" 2 3 4









extern const int sys_nerr __asm("__sys_nerr14");
extern const char *const *sys_errlist __asm("__sys_errlist14");



# 66 "roken.h" 2
# 1 "/usr/include/err.h" 1 3 4
# 47 "/usr/include/err.h" 3 4

 void err(int, const char *, ...)
      __attribute__((__noreturn__, __format__(__printf__, 2, 3)));
 void verr(int, const char *, __builtin_va_list)
      __attribute__((__noreturn__, __format__(__printf__, 2, 0)));
 void errx(int, const char *, ...)
      __attribute__((__noreturn__, __format__(__printf__, 2, 3)));
 void verrx(int, const char *, __builtin_va_list)
      __attribute__((__noreturn__, __format__(__printf__, 2, 0)));
void warn(const char *, ...)
      __attribute__((__format__(__printf__, 1, 2)));
void vwarn(const char *, __builtin_va_list)
      __attribute__((__format__(__printf__, 1, 0)));
void warnx(const char *, ...)
      __attribute__((__format__(__printf__, 1, 2)));
void vwarnx(const char *, __builtin_va_list)
      __attribute__((__format__(__printf__, 1, 0)));

# 67 "roken.h" 2
# 1 "/usr/include/termios.h" 1 3 4
# 38 "/usr/include/termios.h" 3 4
# 1 "/usr/include/sys/featuretest.h" 1 3 4
# 39 "/usr/include/termios.h" 2 3 4
# 188 "/usr/include/termios.h" 3 4
typedef unsigned int tcflag_t;
typedef unsigned char cc_t;
typedef unsigned int speed_t;

struct termios {
 tcflag_t c_iflag;
 tcflag_t c_oflag;
 tcflag_t c_cflag;
 tcflag_t c_lflag;
 cc_t c_cc[20];
 int c_ispeed;
 int c_ospeed;
};
# 263 "/usr/include/termios.h" 3 4

speed_t cfgetispeed(const struct termios *);
speed_t cfgetospeed(const struct termios *);
int cfsetispeed(struct termios *, speed_t);
int cfsetospeed(struct termios *, speed_t);
int tcgetattr(int, struct termios *);
int tcsetattr(int, int, const struct termios *);
int tcdrain(int);
int tcflow(int, int);
int tcflush(int, int);
int tcsendbreak(int, int);

__pid_t tcgetsid(int);




void cfmakeraw(struct termios *);
int cfsetspeed(struct termios *, speed_t);


# 294 "/usr/include/termios.h" 3 4
# 1 "/usr/include/sys/ttycom.h" 1 3 4
# 42 "/usr/include/sys/ttycom.h" 3 4
# 1 "/usr/include/sys/ioccom.h" 1 3 4
# 43 "/usr/include/sys/ttycom.h" 2 3 4
# 53 "/usr/include/sys/ttycom.h" 3 4
struct winsize {
 unsigned short ws_row;
 unsigned short ws_col;
 unsigned short ws_xpixel;
 unsigned short ws_ypixel;
};


struct ptmget {
 int cfd;
 int sfd;
 char cn[16];
 char sn[16];
};
# 98 "/usr/include/sys/ttycom.h" 3 4
typedef char linedn_t[32];
# 295 "/usr/include/termios.h" 2 3 4
# 303 "/usr/include/termios.h" 3 4
# 1 "/usr/include/sys/ttydefaults.h" 1 3 4
# 304 "/usr/include/termios.h" 2 3 4
# 68 "roken.h" 2
# 1 "/usr/include/sys/ioctl.h" 1 3 4
# 49 "/usr/include/sys/ioctl.h" 3 4
struct ttysize {
 unsigned short ts_lines;
 unsigned short ts_cols;
 unsigned short ts_xxx;
 unsigned short ts_yyy;
};





# 1 "/usr/include/sys/dkio.h" 1 3 4
# 36 "/usr/include/sys/dkio.h" 3 4
# 1 "/usr/include/prop/proplib.h" 1 3 4
# 42 "/usr/include/prop/proplib.h" 3 4
# 1 "/usr/include/prop/prop_array.h" 1 3 4
# 42 "/usr/include/prop/prop_array.h" 3 4
# 1 "/usr/include/prop/prop_object.h" 1 3 4
# 46 "/usr/include/prop/prop_object.h" 3 4
typedef int boolean_t;







typedef void *prop_object_t;

typedef enum {
 PROP_TYPE_UNKNOWN = 0x00000000,
 PROP_TYPE_BOOL = 0x626f6f6c,
 PROP_TYPE_NUMBER = 0x6e6d6272,
 PROP_TYPE_STRING = 0x73746e67,
 PROP_TYPE_DATA = 0x64617461,
 PROP_TYPE_ARRAY = 0x61726179,
 PROP_TYPE_DICTIONARY = 0x64696374,
 PROP_TYPE_DICT_KEYSYM = 0x646b6579
} prop_type_t;


void prop_object_retain(prop_object_t);
void prop_object_release(prop_object_t);

prop_type_t prop_object_type(prop_object_t);

boolean_t prop_object_equals(prop_object_t, prop_object_t);

typedef struct _prop_object_iterator *prop_object_iterator_t;

prop_object_t prop_object_iterator_next(prop_object_iterator_t);
void prop_object_iterator_reset(prop_object_iterator_t);
void prop_object_iterator_release(prop_object_iterator_t);

# 43 "/usr/include/prop/prop_array.h" 2 3 4

typedef struct _prop_array *prop_array_t;


prop_array_t prop_array_create(void);
prop_array_t prop_array_create_with_capacity(unsigned int);

prop_array_t prop_array_copy(prop_array_t);
prop_array_t prop_array_copy_mutable(prop_array_t);

unsigned int prop_array_capacity(prop_array_t);
unsigned int prop_array_count(prop_array_t);
boolean_t prop_array_ensure_capacity(prop_array_t, unsigned int);

void prop_array_make_immutable(prop_array_t);
boolean_t prop_array_mutable(prop_array_t);

prop_object_iterator_t prop_array_iterator(prop_array_t);

prop_object_t prop_array_get(prop_array_t, unsigned int);
boolean_t prop_array_set(prop_array_t, unsigned int, prop_object_t);
boolean_t prop_array_add(prop_array_t, prop_object_t);
void prop_array_remove(prop_array_t, unsigned int);

boolean_t prop_array_equals(prop_array_t, prop_array_t);

char * prop_array_externalize(prop_array_t);
prop_array_t prop_array_internalize(const char *);

boolean_t prop_array_externalize_to_file(prop_array_t, const char *);
prop_array_t prop_array_internalize_from_file(const char *);



int prop_array_send_ioctl(prop_array_t, int, unsigned long);
int prop_array_recv_ioctl(int, unsigned long, prop_array_t *);
# 89 "/usr/include/prop/prop_array.h" 3 4

# 43 "/usr/include/prop/proplib.h" 2 3 4
# 1 "/usr/include/prop/prop_bool.h" 1 3 4
# 44 "/usr/include/prop/prop_bool.h" 3 4
typedef struct _prop_bool *prop_bool_t;


prop_bool_t prop_bool_create(boolean_t);
prop_bool_t prop_bool_copy(prop_bool_t);

boolean_t prop_bool_true(prop_bool_t);

boolean_t prop_bool_equals(prop_bool_t, prop_bool_t);

# 44 "/usr/include/prop/proplib.h" 2 3 4
# 1 "/usr/include/prop/prop_data.h" 1 3 4
# 44 "/usr/include/prop/prop_data.h" 3 4
typedef struct _prop_data *prop_data_t;


prop_data_t prop_data_create_data(const void *, size_t);
prop_data_t prop_data_create_data_nocopy(const void *, size_t);

prop_data_t prop_data_copy(prop_data_t);

size_t prop_data_size(prop_data_t);

void * prop_data_data(prop_data_t);
const void * prop_data_data_nocopy(prop_data_t);

boolean_t prop_data_equals(prop_data_t, prop_data_t);
boolean_t prop_data_equals_data(prop_data_t, const void *, size_t);

# 45 "/usr/include/prop/proplib.h" 2 3 4
# 1 "/usr/include/prop/prop_dictionary.h" 1 3 4
# 44 "/usr/include/prop/prop_dictionary.h" 3 4
typedef struct _prop_dictionary *prop_dictionary_t;
typedef struct _prop_dictionary_keysym *prop_dictionary_keysym_t;


prop_dictionary_t prop_dictionary_create(void);
prop_dictionary_t prop_dictionary_create_with_capacity(unsigned int);

prop_dictionary_t prop_dictionary_copy(prop_dictionary_t);
prop_dictionary_t prop_dictionary_copy_mutable(prop_dictionary_t);

unsigned int prop_dictionary_capacity(prop_dictionary_t);
unsigned int prop_dictionary_count(prop_dictionary_t);
boolean_t prop_dictionary_ensure_capacity(prop_dictionary_t,
      unsigned int);

void prop_dictionary_make_immutable(prop_dictionary_t);
boolean_t prop_dictionary_mutable(prop_dictionary_t);

prop_object_iterator_t prop_dictionary_iterator(prop_dictionary_t);
prop_array_t prop_dictionary_all_keys(prop_dictionary_t);

prop_object_t prop_dictionary_get(prop_dictionary_t, const char *);
boolean_t prop_dictionary_set(prop_dictionary_t, const char *,
        prop_object_t);
void prop_dictionary_remove(prop_dictionary_t, const char *);

prop_object_t prop_dictionary_get_keysym(prop_dictionary_t,
        prop_dictionary_keysym_t);
boolean_t prop_dictionary_set_keysym(prop_dictionary_t,
        prop_dictionary_keysym_t,
        prop_object_t);
void prop_dictionary_remove_keysym(prop_dictionary_t,
           prop_dictionary_keysym_t);

boolean_t prop_dictionary_equals(prop_dictionary_t, prop_dictionary_t);

char * prop_dictionary_externalize(prop_dictionary_t);
prop_dictionary_t prop_dictionary_internalize(const char *);

boolean_t prop_dictionary_externalize_to_file(prop_dictionary_t,
          const char *);
prop_dictionary_t prop_dictionary_internalize_from_file(const char *);

const char * prop_dictionary_keysym_cstring_nocopy(prop_dictionary_keysym_t);

boolean_t prop_dictionary_keysym_equals(prop_dictionary_keysym_t,
           prop_dictionary_keysym_t);



int prop_dictionary_send_ioctl(prop_dictionary_t, int,
        unsigned long);
int prop_dictionary_recv_ioctl(int, unsigned long,
        prop_dictionary_t *);
int prop_dictionary_sendrecv_ioctl(prop_dictionary_t,
            int, unsigned long,
            prop_dictionary_t *);
# 117 "/usr/include/prop/prop_dictionary.h" 3 4
boolean_t prop_dictionary_get_bool(prop_dictionary_t, const char *,
      boolean_t *);
boolean_t prop_dictionary_set_bool(prop_dictionary_t, const char *,
      boolean_t);

boolean_t prop_dictionary_get_int8(prop_dictionary_t, const char *,
      __int8_t *);
boolean_t prop_dictionary_get_uint8(prop_dictionary_t, const char *,
       __uint8_t *);
boolean_t prop_dictionary_set_int8(prop_dictionary_t, const char *,
      __int8_t);
boolean_t prop_dictionary_set_uint8(prop_dictionary_t, const char *,
       __uint8_t);

boolean_t prop_dictionary_get_int16(prop_dictionary_t, const char *,
       __int16_t *);
boolean_t prop_dictionary_get_uint16(prop_dictionary_t, const char *,
        __uint16_t *);
boolean_t prop_dictionary_set_int16(prop_dictionary_t, const char *,
       __int16_t);
boolean_t prop_dictionary_set_uint16(prop_dictionary_t, const char *,
        __uint16_t);

boolean_t prop_dictionary_get_int32(prop_dictionary_t, const char *,
       __int32_t *);
boolean_t prop_dictionary_get_uint32(prop_dictionary_t, const char *,
        __uint32_t *);
boolean_t prop_dictionary_set_int32(prop_dictionary_t, const char *,
       __int32_t);
boolean_t prop_dictionary_set_uint32(prop_dictionary_t, const char *,
        __uint32_t);

boolean_t prop_dictionary_get_int64(prop_dictionary_t, const char *,
       __int64_t *);
boolean_t prop_dictionary_get_uint64(prop_dictionary_t, const char *,
        __uint64_t *);
boolean_t prop_dictionary_set_int64(prop_dictionary_t, const char *,
       __int64_t);
boolean_t prop_dictionary_set_uint64(prop_dictionary_t, const char *,
        __uint64_t);

boolean_t prop_dictionary_get_cstring(prop_dictionary_t, const char *,
          char **);
boolean_t prop_dictionary_set_cstring(prop_dictionary_t, const char *,
         const char *);

boolean_t prop_dictionary_get_cstring_nocopy(prop_dictionary_t,
         const char *,
         const char **);
boolean_t prop_dictionary_set_cstring_nocopy(prop_dictionary_t,
         const char *,
         const char *);


# 46 "/usr/include/prop/proplib.h" 2 3 4
# 1 "/usr/include/prop/prop_number.h" 1 3 4
# 47 "/usr/include/prop/prop_number.h" 3 4
typedef struct _prop_number *prop_number_t;


prop_number_t prop_number_create_integer(__int64_t);
prop_number_t prop_number_create_unsigned_integer(__uint64_t);

prop_number_t prop_number_copy(prop_number_t);

int prop_number_size(prop_number_t);
boolean_t prop_number_unsigned(prop_number_t);

__int64_t prop_number_integer_value(prop_number_t);
__uint64_t prop_number_unsigned_integer_value(prop_number_t);

boolean_t prop_number_equals(prop_number_t, prop_number_t);
boolean_t prop_number_equals_integer(prop_number_t, __int64_t);
boolean_t prop_number_equals_unsigned_integer(prop_number_t, __uint64_t);

# 47 "/usr/include/prop/proplib.h" 2 3 4
# 1 "/usr/include/prop/prop_string.h" 1 3 4
# 44 "/usr/include/prop/prop_string.h" 3 4
typedef struct _prop_string *prop_string_t;


prop_string_t prop_string_create(void);
prop_string_t prop_string_create_cstring(const char *);
prop_string_t prop_string_create_cstring_nocopy(const char *);

prop_string_t prop_string_copy(prop_string_t);
prop_string_t prop_string_copy_mutable(prop_string_t);

size_t prop_string_size(prop_string_t);
boolean_t prop_string_mutable(prop_string_t);

char * prop_string_cstring(prop_string_t);
const char * prop_string_cstring_nocopy(prop_string_t);

boolean_t prop_string_append(prop_string_t, prop_string_t);
boolean_t prop_string_append_cstring(prop_string_t, const char *);

boolean_t prop_string_equals(prop_string_t, prop_string_t);
boolean_t prop_string_equals_cstring(prop_string_t, const char *);

# 48 "/usr/include/prop/proplib.h" 2 3 4

# 1 "/usr/include/prop/prop_ingest.h" 1 3 4
# 44 "/usr/include/prop/prop_ingest.h" 3 4
typedef enum {
 PROP_INGEST_ERROR_NO_ERROR = 0,
 PROP_INGEST_ERROR_NO_KEY = 1,
 PROP_INGEST_ERROR_WRONG_TYPE = 2,
 PROP_INGEST_ERROR_HANDLER_FAILED = 3
} prop_ingest_error_t;

typedef enum {
 PROP_INGEST_FLAG_OPTIONAL = 0x01
} prop_ingest_flag_t;

typedef struct _prop_ingest_context *prop_ingest_context_t;

typedef boolean_t (*prop_ingest_handler_t)(prop_ingest_context_t,
        prop_object_t);

typedef struct {
 const char *pite_key;
 prop_type_t pite_type;
 unsigned int pite_flags;
 prop_ingest_handler_t pite_handler;
} prop_ingest_table_entry;
# 82 "/usr/include/prop/prop_ingest.h" 3 4

prop_ingest_context_t
  prop_ingest_context_alloc(void *);
void prop_ingest_context_free(prop_ingest_context_t);

prop_ingest_error_t
  prop_ingest_context_error(prop_ingest_context_t);
prop_type_t prop_ingest_context_type(prop_ingest_context_t);
const char * prop_ingest_context_key(prop_ingest_context_t);
void * prop_ingest_context_private(prop_ingest_context_t);

boolean_t prop_dictionary_ingest(prop_dictionary_t,
           const prop_ingest_table_entry[],
           prop_ingest_context_t);

# 50 "/usr/include/prop/proplib.h" 2 3 4






struct plistref {
 void *pref_plist;
 size_t pref_len;
};
# 37 "/usr/include/sys/dkio.h" 2 3 4
# 61 "/usr/include/sys/ioctl.h" 2 3 4
# 1 "/usr/include/sys/filio.h" 1 3 4
# 62 "/usr/include/sys/ioctl.h" 2 3 4
# 1 "/usr/include/sys/sockio.h" 1 3 4
# 63 "/usr/include/sys/ioctl.h" 2 3 4
# 72 "/usr/include/sys/ioctl.h" 3 4
struct ioctl_pt {
 unsigned long com;
 void *data;
};
# 90 "/usr/include/sys/ioctl.h" 3 4

int ioctl(int, unsigned long, ...);

# 69 "roken.h" 2




# 1 "/usr/include/paths.h" 1 3 4
# 74 "roken.h" 2


# 1 "./roken-common.h" 1
# 261 "./roken-common.h"




typedef void (*SigAction)(int);
SigAction signal(int iSig, SigAction pAction);



int
simple_execve(const char*, char*const[], char*const[]);

int
simple_execve_timed(const char *, char *const[],
      char *const [], time_t (*)(void *),
      void *, time_t);
int
simple_execvp(const char*, char *const[]);

int
simple_execvp_timed(const char *, char *const[],
      time_t (*)(void *), void *, time_t);
int
simple_execlp(const char*, ...);

int
simple_execle(const char*, ...);

int
simple_execl(const char *file, ...);

int
wait_for_process(__pid_t);

int
wait_for_process_timed(__pid_t, time_t (*)(void *),
           void *, time_t);
int
pipe_execv(FILE**, FILE**, FILE**, const char*, ...);

void
print_version(const char *);

ssize_t
eread (int fd, void *buf, size_t nbytes);

ssize_t
ewrite (int fd, const void *buf, size_t nbytes);

struct hostent;

const char *
hostent_find_fqdn (const struct hostent *);

void
esetenv(const char *, const char *, int);

void
socket_set_address_and_port (struct sockaddr *, const void *, int);

size_t
socket_addr_size (const struct sockaddr *);

void
socket_set_any (struct sockaddr *, int);

size_t
socket_sockaddr_size (const struct sockaddr *);

void *
socket_get_address (struct sockaddr *);

int
socket_get_port (const struct sockaddr *);

void
socket_set_port (struct sockaddr *, int);

void
socket_set_portrange (int, int, int);

void
socket_set_debug (int);

void
socket_set_tos (int, int);

void
socket_set_reuseaddr (int, int);

void
socket_set_ipv6only (int, int);

char **
vstrcollect(va_list *ap);

char **
strcollect(char *first, ...);

void
timevalfix(struct timeval *t1);

void
timevaladd(struct timeval *t1, const struct timeval *t2);

void
timevalsub(struct timeval *t1, const struct timeval *t2);

char *
pid_file_write (const char *progname);

void
pid_file_delete (char **);

int
read_environment(const char *file, char ***env);

void
warnerr(int doerrno, const char *fmt, va_list ap)
    __attribute__ ((format (printf, 2, 0)));

void *
rk_realloc(void *, size_t);

struct rk_strpool;

char *
rk_strpoolcollect(struct rk_strpool *);

struct rk_strpool *
rk_strpoolprintf(struct rk_strpool *, const char *, ...)
    __attribute__ ((format (printf, 2, 3)));

void
rk_strpoolfree(struct rk_strpool *);

void
rk_dumpdata (const char *, const void *, size_t);


# 77 "roken.h" 2


# 91 "roken.h"
int
    asnprintf (char **, size_t, const char *, ...)
     __attribute__ ((format (printf, 3, 4)));

int
    vasnprintf (char **, size_t, const char *, va_list)
     __attribute__((format (printf, 3, 0)));



char * strlwr(char *);

size_t strnlen(const char*, size_t);


ssize_t strsep_copy(const char**, const char*, char*, size_t);




char * strupr(char *);
# 123 "roken.h"
# 1 "/usr/include/pwd.h" 1 3 4
# 68 "/usr/include/pwd.h" 3 4
# 1 "/usr/include/sys/featuretest.h" 1 3 4
# 69 "/usr/include/pwd.h" 2 3 4
# 107 "/usr/include/pwd.h" 3 4
struct passwd {
 char *pw_name;
 char *pw_passwd;
 __uid_t pw_uid;
 __gid_t pw_gid;
 time_t pw_change;
 char *pw_class;
 char *pw_gecos;
 char *pw_dir;
 char *pw_shell;
 time_t pw_expire;
};


struct passwd *getpwuid(__uid_t);
struct passwd *getpwnam(const char *);


int getpwnam_r(const char *, struct passwd *, char *, size_t,
    struct passwd **);
int getpwuid_r(__uid_t, struct passwd *, char *, size_t,
    struct passwd **);


struct passwd *getpwent(void);
void setpwent(void);
void endpwent(void);


int pw_gensalt(char *, size_t, const char *, const char *);
int pw_scan(char *, struct passwd *, int *);
int setpassent(int);
int getpwent_r(struct passwd *, char *, size_t, struct passwd **);
const char *user_from_uid(__uid_t, int);
int uid_from_user(const char *, __uid_t *);
int pwcache_userdb(int (*)(int), void (*)(void),
    struct passwd * (*)(const char *),
    struct passwd * (*)(__uid_t));


# 124 "roken.h" 2
struct passwd * k_getpwnam (const char *);
struct passwd * k_getpwuid (__uid_t);

const char * get_default_username (void);




int mkstemp(char *);




int daemon(int, int);
# 149 "roken.h"
unsigned int (__builtin_constant_p((unsigned int)) ? ((((unsigned int) & 0xff000000) >> 24) | (((unsigned int) & 0x00ff0000) >> 8) | (((unsigned int) & 0x0000ff00) << 8) | (((unsigned int) & 0x000000ff) << 24)) : __byte_swap_u32_variable(unsigned int));

unsigned short (__builtin_constant_p((unsigned short)) ? ((((unsigned short) & 0xff00) >> 8) | (((unsigned short) & 0x00ff) << 8)) : __byte_swap_u16_variable(unsigned short));


time_t tm2time (struct tm, int);

int unix_verify_user(char *, char *);

int roken_concat (char *, size_t, ...);

size_t roken_mconcat (char **, size_t, ...);

int roken_vconcat (char *, size_t, va_list);

size_t
    roken_vmconcat (char **, size_t, va_list);

ssize_t net_write (int, const void *, size_t);

ssize_t net_read (int, void *, size_t);

int issuid(void);


int get_window_size(int fd, struct winsize *);



extern char **environ;

struct hostent *
getipnodebyname (const char *, int, int, int *);

struct hostent *
getipnodebyaddr (const void *, size_t, int, int *);

void
freehostent (struct hostent *);

struct hostent *
copyhostent (const struct hostent *);
# 199 "roken.h"
int
getnameinfo_verified(const struct sockaddr *, __socklen_t,
       char *, size_t,
       char *, size_t,
       int);

int
roken_getaddrinfo_hostspec(const char *, int, struct addrinfo **);
int
roken_getaddrinfo_hostspec2(const char *, int, int, struct addrinfo **);



void * emalloc (size_t);
void * ecalloc(size_t, size_t);
void * erealloc (void *, size_t);
char * estrdup (const char *);





int
roken_gethostby_setup(const char*, const char*);
struct hostent*
roken_gethostbyname(const char*);
struct hostent*
roken_gethostbyaddr(const void*, size_t, int);
# 237 "roken.h"
void mini_inetd_addrinfo (struct addrinfo*);
void mini_inetd (int);
# 251 "roken.h"

# 38 "bswap.c" 2

static const char *const rcsid[] = { (const char *)rcsid, "@(#)" "$Id: bswap.c 14773 2005-04-12 11:29:18Z lha $" };



unsigned int
(__builtin_constant_p((unsigned int val)) ? ((((unsigned int val) & 0xff000000) >> 24) | (((unsigned int val) & 0x00ff0000) >> 8) | (((unsigned int val) & 0x0000ff00) << 8) | (((unsigned int val) & 0x000000ff) << 24)) : __byte_swap_u32_variable(unsigned int val))
{
    return (val & 0xff) << 24 |
 (val & 0xff00) << 8 |
 (val & 0xff0000) >> 8 |
 (val & 0xff000000) >> 24;
}




unsigned short
(__builtin_constant_p((unsigned short val)) ? ((((unsigned short val) & 0xff00) >> 8) | (((unsigned short val) & 0x00ff) << 8)) : __byte_swap_u16_variable(unsigned short val))
{
    return (val & 0xff) << 8 |
 (val & 0xff00) >> 8;
}