host[linux]: fix utmp struct on arm.
This commit is contained in:
parent
82a76c01e3
commit
3303647209
|
@ -3,25 +3,40 @@
|
||||||
|
|
||||||
package host
|
package host
|
||||||
|
|
||||||
type exitStatus struct {
|
const (
|
||||||
Etermination int16 // Process termination status.
|
sizeofPtr = 0x8
|
||||||
Eexit int16 // Process exit status.
|
sizeofShort = 0x2
|
||||||
}
|
sizeofInt = 0x4
|
||||||
type timeval struct {
|
sizeofLong = 0x8
|
||||||
TvSec uint32 // Seconds.
|
sizeofLongLong = 0x8
|
||||||
TvUsec uint32 // Microseconds.
|
)
|
||||||
}
|
|
||||||
|
type (
|
||||||
|
_C_short int16
|
||||||
|
_C_int int32
|
||||||
|
_C_long int64
|
||||||
|
_C_long_long int64
|
||||||
|
)
|
||||||
|
|
||||||
type utmp struct {
|
type utmp struct {
|
||||||
Type int16 // Type of login.
|
Type int16
|
||||||
Pid int32 // Process ID of login process.
|
Pad_cgo_0 [2]byte
|
||||||
Line [32]byte // Devicename.
|
Pid int32
|
||||||
ID [4]byte // Inittab ID.
|
Line [32]int8
|
||||||
User [32]byte // Username.
|
Id [4]int8
|
||||||
Host [256]byte // Hostname for remote login.
|
User [32]int8
|
||||||
Exit exitStatus // Exit status of a process marked
|
Host [256]int8
|
||||||
Session int32 // Session ID, used for windowing.
|
Exit exit_status
|
||||||
Tv timeval // Time entry was made.
|
Session int32
|
||||||
AddrV6 [16]byte // Internet address of remote host.
|
Tv UtTv
|
||||||
Unused [20]byte // Reserved for future use. // original is 20
|
Addr_v6 [4]int32
|
||||||
|
X__glibc_reserved [20]int8
|
||||||
|
}
|
||||||
|
type exit_status struct {
|
||||||
|
Termination int16
|
||||||
|
Exit int16
|
||||||
|
}
|
||||||
|
type UtTv struct {
|
||||||
|
TvSec int32
|
||||||
|
TvUsec int32
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue