types_openbsd.go 511 字节
Newer Older
U
UlricQin 已提交
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
// +build ignore

/*
Input to cgo -godefs.
*/

package mem

/*
#include <sys/types.h>
#include <sys/mount.h>
#include <sys/sysctl.h>
#include <uvm/uvmexp.h>

*/
import "C"

// Machine characteristics; for internal use.

const (
	CTLVm         = 2
	CTLVfs        = 10
	VmUvmexp      = 4 // get uvmexp
	VfsGeneric    = 0
	VfsBcacheStat = 3
)

const (
	sizeOfUvmexp      = C.sizeof_struct_uvmexp
	sizeOfBcachestats = C.sizeof_struct_bcachestats
)

type Uvmexp C.struct_uvmexp
type Bcachestats C.struct_bcachestats