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