Skip to content

Commit 90c469a

Browse files
Add type definitions fro arm64
1 parent f8c7af5 commit 90c469a

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

‎host/host_linux_arm64.go‎

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
// Created by cgo -godefs - DO NOT EDIT
2+
// cgo -godefs types_linux.go
3+
4+
package host
5+
6+
const (
7+
sizeofPtr = 0x8
8+
sizeofShort = 0x2
9+
sizeofInt = 0x4
10+
sizeofLong = 0x8
11+
sizeofLongLong = 0x8
12+
sizeOfUtmp = 0x180
13+
)
14+
15+
type (
16+
_C_short int16
17+
_C_int int32
18+
_C_long int64
19+
_C_long_long int64
20+
)
21+
22+
type utmp struct {
23+
Type int16
24+
Pad_cgo_0 [2]byte
25+
Pid int32
26+
Line [32]int8
27+
Id [4]int8
28+
User [32]int8
29+
Host [256]int8
30+
Exit exit_status
31+
Session int32
32+
Tv timeval
33+
Addr_v6 [4]int32
34+
X__glibc_reserved [20]int8
35+
}
36+
type exit_status struct {
37+
Termination int16
38+
Exit int16
39+
}
40+
type timeval struct {
41+
Sec int64
42+
Usec int64
43+
}

0 commit comments

Comments
 (0)