1// +build ignore 2 3/* 4Input to cgo -godefs. 5*/ 6 7package host 8 9/* 10#define KERNEL 11#include <sys/types.h> 12#include <sys/time.h> 13#include <utmpx.h> 14#include "freebsd_headers/utxdb.h" 15 16enum { 17 sizeofPtr = sizeof(void*), 18}; 19 20*/ 21import "C" 22 23// Machine characteristics; for internal use. 24 25const ( 26 sizeofPtr = C.sizeofPtr 27 sizeofShort = C.sizeof_short 28 sizeofInt = C.sizeof_int 29 sizeofLong = C.sizeof_long 30 sizeofLongLong = C.sizeof_longlong 31 sizeOfUtmpx = C.sizeof_struct_futx 32) 33 34// Basic types 35 36type ( 37 _C_short C.short 38 _C_int C.int 39 _C_long C.long 40 _C_long_long C.longlong 41) 42 43type Utmp C.struct_utmp // for FreeBSD 9.0 compatibility 44type Utmpx C.struct_futx 45