summaryrefslogtreecommitdiff
path: root/server/libs/lua53/io.lni
diff options
context:
space:
mode:
Diffstat (limited to 'server/libs/lua53/io.lni')
-rw-r--r--server/libs/lua53/io.lni188
1 files changed, 179 insertions, 9 deletions
diff --git a/server/libs/lua53/io.lni b/server/libs/lua53/io.lni
index e49993bb..a5325cd4 100644
--- a/server/libs/lua53/io.lni
+++ b/server/libs/lua53/io.lni
@@ -18,17 +18,187 @@ name = 'io'
[stdin]
type = 'FILE*'
+[stdout]
+type = 'FILE*'
+
+[stderr]
+type = 'FILE*'
+
[close]
-[[.parent]]
-type = 'global'
-name = 'table'
-[[.parent]]
-type = 'library'
-name = 'table'
-[[.parent]]
-type = 'object'
-name = 'FILE*'
[[.args]]
+name = 'file'
type = 'FILE*'
+optional = 'self'
+[[.returns]]
+name = 'suc'
+type = 'boolean'
+default = 'true'
+optional = 'after'
+[[.returns]]
+name = 'type'
+type = 'string'
+[[.returns]]
+name = 'code'
+[[.enums]]
+type = 'type'
+enum = 'exit'
+[[.enums]]
+type = 'type'
+enum = 'signal'
+
+[flush]
+
+[input]
+[[.args]]
name = 'file'
+type = {'string', 'FILE*'}
+optional = 'self'
+[[.returns]]
+type = 'FILE*'
+
+[lines]
+[[.args]]
+name = 'filename'
+type = 'string'
+optional = 'after'
+[[.args]]
+name = 'mode'
+type = '...'
+default = 'l'
+[[.returns]]
+type = 'function'
+returns = {
+ 1 = {
+ name = 'c',
+ type = {'string', 'number'},
+ }
+}
+[[.enums]]
+name = 'mode'
+enum = 'n'
+[[.enums]]
+name = 'mode'
+enum = 'n'
+[[.enums]]
+name = 'mode'
+enum = 'i'
+[[.enums]]
+name = 'mode'
+enum = 'a'
+[[.enums]]
+name = 'mode'
+enum = 'l'
+[[.enums]]
+name = 'mode'
+enum = 'L'
+[[.enums]]
+name = 'mode'
+code = 'number'
+
+[open]
+[[.args]]
+name = 'filename'
+type = 'string'
+[[.args]]
+name = 'mode'
+type = 'string'
+optional = 'self'
+default = 'r'
+[[.returns]]
+type = 'FILE*'
+[[.enums]]
+name = 'mode'
+enum = 'r'
+[[.enums]]
+name = 'mode'
+enum = 'w'
+[[.enums]]
+name = 'mode'
+enum = 'a'
+[[.enums]]
+name = 'mode'
+enum = 'r+'
+[[.enums]]
+name = 'mode'
+enum = 'w+'
+[[.enums]]
+name = 'mode'
+enum = 'a+'
+
+[output:input]
+
+[popen]
+[[.args]]
+name = 'prog'
+type = 'string'
+[[.args]]
+name = 'mode'
+type = 'string'
+optional = 'self'
+default = 'r'
+[[.enums]]
+name = 'mode'
+enum = 'r'
+[[.enums]]
+name = 'mode'
+enum = 'w'
+
+[read]
+[[.args]]
+name = 'mode'
+type = '...'
+default = 'l'
+[[.returns]]
+type = {'string', 'number'}
+[[.enums]]
+name = 'mode'
+enum = 'n'
+[[.enums]]
+name = 'mode'
+enum = 'n'
+[[.enums]]
+name = 'mode'
+enum = 'i'
+[[.enums]]
+name = 'mode'
+enum = 'a'
+[[.enums]]
+name = 'mode'
+enum = 'l'
+[[.enums]]
+name = 'mode'
+enum = 'L'
+[[.enums]]
+name = 'mode'
+code = 'number'
+
+[tmpfile]
+[[.returns]]
+type = 'FILE*'
+
+[type]
+[[.args]]
+name = 'obj'
+type = 'FILE*'
+[[.returns]]
+name = 'type'
+type = 'string'
+[[.enums]]
+name = 'type'
+enum = 'file'
+[[.enums]]
+name = 'type'
+enum = 'closed file'
+[[.enums]]
+name = 'type'
+code = 'nil'
+
+[write]
+[[.args]]
+type = '...'
+[[.returns]]
+type = 'FILE*'
+[[.returns]]
+name = 'errmsg'
+type = 'string'
optional = 'self'