1 // +build ignore 2 3 /* 4 Input to cgo -godefs. 5 */ 6 7 package 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 16 enum { 17 sizeofPtr = sizeof(void*), 18 }; 19 20 */ 21 import "C" 22 23 // Machine characteristics; for internal use. 24 25 const ( 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 36 type ( 37 _C_short C.short 38 _C_int C.int 39 _C_long C.long 40 _C_long_long C.longlong 41 ) 42 43 type Utmp C.struct_utmp // for FreeBSD 9.0 compatibility 44 type Utmpx C.struct_futx 45