github.com/isyscore/isc-gobase@v1.5.3-0.20231218061332-cbc7451899e9/system/host/host_linux_arm64.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 timeval 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 }