github.com/isyscore/isc-gobase@v1.5.3-0.20231218061332-cbc7451899e9/system/host/host_linux_amd64.go (about) 1 package host 2 3 const ( 4 sizeofPtr = 0x8 5 sizeofShort = 0x2 6 sizeofInt = 0x4 7 sizeofLong = 0x8 8 sizeofLongLong = 0x8 9 sizeOfUtmp = 0x180 10 ) 11 12 type ( 13 _C_short int16 14 _C_int int32 15 _C_long int64 16 _C_long_long int64 17 ) 18 19 type utmp struct { 20 Type int16 21 Pad_cgo_0 [2]byte 22 Pid int32 23 Line [32]int8 24 Id [4]int8 25 User [32]int8 26 Host [256]int8 27 Exit exit_status 28 Session int32 29 Tv _Ctype_struct___0 30 Addr_v6 [4]int32 31 X__glibc_reserved [20]int8 32 } 33 type exit_status struct { 34 Termination int16 35 Exit int16 36 } 37 type timeval struct { 38 Sec int64 39 Usec int64 40 } 41 42 type _Ctype_struct___0 struct { 43 Sec int32 44 Usec int32 45 }