You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gopsutil/host/host_linux_386.go

49 lines
1013 B
Go

// SPDX-License-Identifier: BSD-3-Clause
// ATTENTION - FILE MANUAL FIXED AFTER CGO.
// Fixed line: Tv _Ctype_struct_timeval -> Tv UtTv
// Created by cgo -godefs, MANUAL FIXED
// cgo -godefs types_linux.go
package host
const (
sizeofPtr = 0x4
sizeofShort = 0x2
sizeofInt = 0x4
sizeofLong = 0x4
sizeofLongLong = 0x8
sizeOfUtmp = 0x180
)
type (
_C_short int16 //nolint:revive //FIXME
_C_int int32 //nolint:revive //FIXME
_C_long int32 //nolint:revive //FIXME
_C_long_long int64 //nolint:revive //FIXME
)
type utmp struct {
Type int16
Pad_cgo_0 [2]byte //nolint:revive //FIXME
Pid int32
Line [32]int8
ID [4]int8
User [32]int8
Host [256]int8
Exit exit_status
Session int32
Tv UtTv
Addr_v6 [4]int32 //nolint:revive //FIXME
X__unused [20]int8 //nolint:revive //FIXME
}
type exit_status struct { //nolint:revive //FIXME
Termination int16
Exit int16
}
type UtTv struct {
Sec int32
Usec int32
}