1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
--types for FreeBSD sysctl, incomplete at present
local require = require
local c = require "syscall.freebsd.constants"
local types = {
kern = {c.CTL.KERN, c.KERN},
["kern.ostype"] = "string",
["kern.osrelease"] = "string",
["kern.osrev"] = "int",
["kern.version"] = "string",
["kern.maxvnodes"] = "int",
["kern.maxproc"] = "int",
["kern.maxfiles"] = "int",
["kern.argmax"] = "int",
["kern.securelvl"] = "int",
["kern.hostname"] = "string",
["kern.hostid"] = "int",
}
return types
|