...
1
2
3
4 package host
5
6 const (
7 sizeofPtr = 0x4
8 sizeofShort = 0x2
9 sizeofInt = 0x4
10 sizeofLong = 0x4
11 sizeofLongLong = 0x8
12 sizeOfUtmp = 0x180
13 )
14
15 type (
16 _C_short int16
17 _C_int int32
18 _C_long int32
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 int32
42 Usec int32
43 }
44
View as plain text