Lines Matching +full:non +full:- +full:comment

2 --
3 -- SPDX-License-Identifier: BSD-2-Clause
4 --
5 -- Copyright (c) 2024 Tyler Baxter <agge@FreeBSD.org>
6 -- Copyright (c) 2023 Warner Losh <imp@bsdimp.com>
7 -- Copyright (c) 2019 Kyle Evans <kevans@FreeBSD.org>
8 --
10 -- Setup to be a module, or ran as its own script.
12 local script = not pcall(debug.getlocal, 4, 1) -- TRUE if script.
14 -- Add library root to the package path.
19 local FreeBSDSyscall = require("core.freebsd-syscall")
22 -- File has not been decided yet; config will decide file. Default defined as
23 -- /dev/null.
27 -- Grab the master system calls table.
30 -- Bind the generator to the parameter file.
33 -- Write the generated preamble.
38 -- Newline before and after this line.
42 -- Write out all the compat directives from compat_options.
53 -- Add a newline only if there were compat_options.
65 -- Comment is the function name by default, but may change
66 -- based on the type of system call.
67 local comment = v.name
71 -- Handle non-compat:
76 -- Handle SYSMUX flag:
83 -- Handle NOSTD flag:
90 -- Handle rest of non-compat:
111 -- Handle compat (everything >= FREEBSD3):
113 -- Lookup the info for this specific compat option.
139 comment = descr .. " " .. v.name
141 -- Handle obsolete:
147 comment = "obsolete " .. v.name
149 -- Handle unimplemented:
155 -- UNIMPL comment is not different in sysent.
157 -- Handle reserved:
163 comment = "reserved for local use"
166 gen:write(string.format("\t/* %d = %s */\n", v.num, comment))
170 -- End
174 -- Entry of script:
187 -- The parsed syscall table.
190 init_sysent.file = config.syssw -- change file here
194 -- Return the module.