...
1
2
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 Pid int32
25 Line [32]int8
26 Id [4]int8
27 User [32]int8
28 Host [256]int8
29 Exit exit_status
30 Session int32
31 Tv _Ctype_struct___0
32 Addr_v6 [4]int32
33 X__glibc_reserved [20]uint8
34 }
35 type exit_status struct {
36 Termination int16
37 Exit int16
38 }
39 type timeval struct {
40 Sec int64
41 Usec int64
42 }
43
44 type _Ctype_struct___0 struct {
45 Sec int32
46 Usec int32
47 }
48
View as plain text