Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108543841
D42168.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1010 B
Referenced Files
None
Subscribers
None
D42168.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 27, 3:43 AM (26 m, 53 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16186322
Default Alt Text
D42168.diff (1010 B)
Attached To
Mode
D42168: makesyscall: Simplify a bit emitting syscall declarations
Attached
Detach File
Event Timeline
Log In to Comment