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