Lines Matching refs:self

42 	self.thr = "SY_THR_STATIC"
43 for k, _ in pairs(self.type) do
45 self.thr = "SY_THR_ABSENT"
53 self.cap = "0"
54 local stripped = util.stripAbiPrefix(self.name, self.prefix)
55 for k, _ in pairs(self.type) do
57 self.cap = "SYF_CAPENABLED"
76 if config.syscall_no_abi_change[self.name] then
77 self.changes_abi = false
79 self.noproto = not util.isEmpty(config.abi_flags) and
80 not self.changes_abi
82 for _, v in ipairs(self.args) do
84 if config.syscall_no_abi_change[self.name] then
85 print("WARNING: " .. self.name ..
89 self.changes_abi = true
95 if config.syscall_abi_change[self.name] then
96 self.changes_abi = true
98 if self.changes_abi then
99 self.noproto = false
106 if config.obsol[self.name] or (self:compatLevel() > 0 and
107 self:compatLevel() < tonumber(config.mincompat)) then
108 self.args = nil
109 self.type.OBSOL = true
111 self.changes_abi = false
113 if config.unimpl[self.name] then
114 self.type.UNIMPL = true
116 if self.noproto or self.type.SYSMUX then
117 self.type.NOPROTO = true
119 if self.type.NODEF then
120 self.audit = "AUE_NULL"
129 if self.changes_abi then
130 self.arg_prefix = config.abi_func_prefix
131 self.prefix = config.abi_func_prefix
141 return prev + 1 == self.num
146 local c = self:compatLevel()
147 if self.type.OBSOL then
150 if self.type.RESERVED then
153 if self.type.UNIMPL then
167 return self:compatPrefix() .. self.name
179 if self.type.UNIMPL or self.type.RESERVED then
181 elseif self.type.OBSOL then
183 elseif self.type.COMPAT then
186 for k, _ in pairs(self.type) do
198 if self.num == nil then
200 self.num = words[1]
201 self.audit = words[2]
202 self.type = util.setFromString(words[3], "[^|]+")
203 checkType(self.type)
204 self.name = words[4]
207 self.altname = words[5]
208 self.alttag = words[6]
209 self.rettype = words[7]
218 if self.name == "{" then
226 self.ret = ret:add()
228 if self.rettype == nil then
229 self.rettype = "int"
232 self.name = words[2]:match("([%w_]+)%(")
235 self.expect_rbrace = true
245 if not self.expect_rbrace then
247 self.expect_rbrace = true
254 arg:append(self.args)
258 self.changes_abi = self.changes_abi or arg:changesAbi()
266 if self.name == nil then
267 self.name = ""
271 self.alias = self.name
273 self:processChangesAbi() -- process changes to the ABI
274 self:processFlags() -- process any unprocessed flags
278 self.prefix = ""
279 self.arg_prefix = ""
280 self:processPrefix()
282 self:processCap() -- capability flag
283 self:processThr() -- thread flag
286 if self.alttag ~= nil then
287 self.arg_alias = self.alttag
288 elseif self.arg_alias == nil and self.name ~= nil then
291 self.arg_alias = self:compatPrefix() .. self.arg_prefix ..
292 self.name .. "_args"
293 elseif self.arg_alias ~= nil then
294 self.arg_alias = self.arg_prefix .. self.arg_alias
299 if self.name ~= nil and self.name ~= "" then
300 self.name = self.prefix .. self.name
303 self:processArgstrings()
304 self:processArgsize()
310 if self.type.SYSMUX then -- catch this first
311 self.args_size = "0"
312 elseif self.arg_alias ~= nil and
313 (#self.args ~= 0 or self.type.NODEF) then
314 self.args_size = "AS(" .. self.arg_alias .. ")"
316 self.args_size = "0"
327 for _, v in ipairs(self.args) do
339 self.argstr_type = type
340 self.argstr_type_var = type_var
341 self.argstr_var = var
349 if self:addDef(line) then
350 return self:isAdded(line)
352 if self:addFunc(line) then
355 if self:addArgs(line) then
358 return self:isAdded(line) -- Final validation, before adding.
369 if tonumber(self.num) == nil then
371 if not (self.type.RESERVED or self.type.UNIMPL) then
375 self:finalize()
378 elseif self.altname ~= nil and self.alttag ~= nil and
379 self.rettype ~= nil then
380 self:finalize()
384 elseif self.name ~= "{" and self.ret == nil then
385 self:finalize()
389 elseif self.expect_rbrace then
394 self:finalize()
402 return self:compatLevel() == native
412 for k, v in pairs(self) do
459 local s = tonumber(self.num)
462 s, e = string.match(self.num, "(%d+)%-(%d+)")
467 return self:shallowCopy(s - 1)
472 self.num = s -- Replace string with number, like the clones.
475 local deep_copy = deepCopy(self)
485 setmetatable(obj, self)
486 self.__index = self
488 self.expect_rbrace = false
489 self.changes_abi = false
490 self.args = {}
491 self.noproto = false