File: types_openbsd.go

package info (click to toggle)
golang-github-shirou-gopsutil 4.24.9-2~bpo12%2B1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-backports
  • size: 1,804 kB
  • sloc: makefile: 75; ansic: 19; sh: 11
file content (38 lines) | stat: -rw-r--r-- 520 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// SPDX-License-Identifier: BSD-3-Clause
//go:build ignore

// Hand writing: _Ctype_struct___0

/*
Input to cgo -godefs.
*/

package disk

/*
#include <sys/types.h>
#include <sys/disk.h>
#include <sys/mount.h>
*/
import "C"

const (
	devstat_NO_DATA = 0x00
	devstat_READ    = 0x01
	devstat_WRITE   = 0x02
	devstat_FREE    = 0x03
)

const (
	sizeOfDiskstats = C.sizeof_struct_diskstats
)

type (
	Diskstats C.struct_diskstats
	Timeval   C.struct_timeval
)

type (
	Diskstat C.struct_diskstat
	bintime  C.struct_bintime
)