1 // +build ignore 2 3 /* 4 Input to cgo -godefs. 5 */ 6 7 package host 8 9 /* 10 #include <sys/types.h> 11 #include <utmp.h> 12 13 enum { 14 sizeofPtr = sizeof(void*), 15 }; 16 17 */ 18 import "C" 19 20 // Machine characteristics; for internal use. 21 22 const ( 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 33 type ( 34 _C_short C.short 35 _C_int C.int 36 _C_long C.long 37 _C_long_long C.longlong 38 ) 39 40 type utmp C.struct_utmp 41 type exit_status C.struct_exit_status 42 type timeval C.struct_timeval 43