Changeset View
Changeset View
Standalone View
Standalone View
sys/tools/makesyscalls.lua
Show First 20 Lines • Show All 145 Lines • ▼ Show 20 Lines | local known_flags = { | ||||
OBSOL = 0x00000002, | OBSOL = 0x00000002, | ||||
RESERVED = 0x00000004, | RESERVED = 0x00000004, | ||||
UNIMPL = 0x00000008, | UNIMPL = 0x00000008, | ||||
NODEF = 0x00000010, | NODEF = 0x00000010, | ||||
NOARGS = 0x00000020, | NOARGS = 0x00000020, | ||||
NOPROTO = 0x00000040, | NOPROTO = 0x00000040, | ||||
NOSTD = 0x00000080, | NOSTD = 0x00000080, | ||||
NOTSTATIC = 0x00000100, | NOTSTATIC = 0x00000100, | ||||
CAPENABLED = 0x00000200, | |||||
-- Compat flags start from here. We have plenty of space. | -- Compat flags start from here. We have plenty of space. | ||||
} | } | ||||
-- All compat_options entries should have five entries: | -- All compat_options entries should have five entries: | ||||
-- definition: The preprocessor macro that will be set for this | -- definition: The preprocessor macro that will be set for this | ||||
-- compatlevel: The level this compatibility should be included at. This | -- compatlevel: The level this compatibility should be included at. This | ||||
-- generally represents the version of FreeBSD that it is compatible | -- generally represents the version of FreeBSD that it is compatible | ||||
▲ Show 20 Lines • Show All 892 Lines • ▼ Show 20 Lines | -- end | ||||
-- NODEF events do not get audited | -- NODEF events do not get audited | ||||
if flags & known_flags['NODEF'] ~= 0 then | if flags & known_flags['NODEF'] ~= 0 then | ||||
auditev = 'AUE_NULL' | auditev = 'AUE_NULL' | ||||
end | end | ||||
-- If applicable; strip the ABI prefix from the name | -- If applicable; strip the ABI prefix from the name | ||||
local stripped_name = strip_abi_prefix(funcname) | local stripped_name = strip_abi_prefix(funcname) | ||||
if config["capenabled"][funcname] ~= nil or | if flags & known_flags['CAPENABLED'] ~= 0 or | ||||
config["capenabled"][funcname] ~= nil or | |||||
config["capenabled"][stripped_name] ~= nil then | config["capenabled"][stripped_name] ~= nil then | ||||
sysflags = "SYF_CAPENABLED" | sysflags = "SYF_CAPENABLED" | ||||
end | end | ||||
local funcargs = {} | local funcargs = {} | ||||
if args ~= nil then | if args ~= nil then | ||||
funcargs = process_args(args) | funcargs = process_args(args) | ||||
end | end | ||||
▲ Show 20 Lines • Show All 329 Lines • Show Last 20 Lines |