Page MenuHomeFreeBSD

D42168.id130394.diff
No OneTemporary

D42168.id130394.diff

diff --git a/sys/tools/makesyscalls.lua b/sys/tools/makesyscalls.lua
--- a/sys/tools/makesyscalls.lua
+++ b/sys/tools/makesyscalls.lua
@@ -865,18 +865,15 @@
local protoflags = get_mask({"NOPROTO", "NODEF"})
if flags & protoflags == 0 then
+ local sys_prefix = "sys_"
if funcname == "nosys" or funcname == "lkmnosys" or
funcname == "sysarch" or funcname:find("^freebsd") or
funcname:find("^linux") then
- write_line("sysdcl", string.format(
- "%s\t%s(struct thread *, struct %s *)",
- rettype, funcname, argalias))
- else
- write_line("sysdcl", string.format(
- "%s\tsys_%s(struct thread *, struct %s *)",
- rettype, funcname, argalias))
+ sys_prefix = ""
end
- write_line("sysdcl", ";\n")
+ write_line("sysdcl", string.format(
+ "%s\t%s%s(struct thread *, struct %s *);\n",
+ rettype, sys_prefix, funcname, argalias))
write_line("sysaue", string.format("#define\t%sAUE_%s\t%s\n",
config.syscallprefix, funcalias, auditev))
end

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 16, 2:30 PM (12 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14660078
Default Alt Text
D42168.id130394.diff (1010 B)

Event Timeline