Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102667356
D42168.id130394.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.id130394.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
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)
Attached To
Mode
D42168: makesyscall: Simplify a bit emitting syscall declarations
Attached
Detach File
Event Timeline
Log In to Comment