2020-09-01 00:53:15 +08:00
|
|
|
// +build openbsd
|
|
|
|
// +build 386
|
2019-07-14 05:39:05 +08:00
|
|
|
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
2020-09-01 00:53:15 +08:00
|
|
|
// cgo -godefs disk/types_openbsd.go
|
2019-07-14 05:39:05 +08:00
|
|
|
|
|
|
|
package disk
|
|
|
|
|
|
|
|
const (
|
|
|
|
DEVSTAT_NO_DATA = 0x00
|
|
|
|
DEVSTAT_READ = 0x01
|
|
|
|
DEVSTAT_WRITE = 0x02
|
|
|
|
DEVSTAT_FREE = 0x03
|
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
|
|
|
sizeOfDiskstats = 0x60
|
|
|
|
)
|
|
|
|
|
|
|
|
type Diskstats struct {
|
|
|
|
Name [16]int8
|
|
|
|
Busy int32
|
|
|
|
Rxfer uint64
|
|
|
|
Wxfer uint64
|
|
|
|
Seek uint64
|
|
|
|
Rbytes uint64
|
|
|
|
Wbytes uint64
|
|
|
|
Attachtime Timeval
|
|
|
|
Timestamp Timeval
|
|
|
|
Time Timeval
|
|
|
|
}
|
|
|
|
type Timeval struct {
|
|
|
|
Sec int64
|
|
|
|
Usec int32
|
|
|
|
}
|
|
|
|
|
|
|
|
type Diskstat struct{}
|
|
|
|
type Bintime struct{}
|