summaryrefslogtreecommitdiff
path: root/server/libs/lua53/os.lni
blob: 9e92de661ba447b9ff6f338a689dde10cca9e8eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
[os]
type = 'table'
[[.source]]
type = 'global'
``````````
type = 'library'
name = 'os'

<default>
type = 'function'
parent = {
    1 = {
        type = 'global',
        name = 'os',
    },
    2 = {
        type = 'library',
        name = 'os',
    }
}

[clock]
[[.returns]]
type = 'number'

[data]
[[.args]]
name = 'format'
type = 'string'
optional = 'after'
``````````
name = 'time'
type = 'integer'
optional = 'self'
[[.returns]]
type = 'string'

[difftime]
[[.args]]
name = 't2'
type = 'integer'
``````````
name = 't1'
type = 'integer'
[[.returns]]
type = 'integer'

[execute]
[[.args]]
name = 'command'
type = 'string'
optional = 'self'
[[.returns]]
name = 'suc'
type = 'boolean'
default = 'true'
optional = 'after'
``````````
name = 'type'
type = 'string'
``````````
name = 'code'
[[.enums]]
type = 'type'
enum = 'exit'
``````````
type = 'type'
enum = 'signal'

[exit]
[[.args]]
name = 'code'
type = {'boolean', 'integer'}
optional = 'after'
default = true
``````````
name = 'close'
type = 'boolean'
optional = 'self'

[getenv]
[[.args]]
name = 'varname'
type = 'string'
[[.returns]]
type = 'string'

[remove]
[[.args]]
name = 'filename'
type = 'string'
[[.returns]]
name = 'suc'
type = 'boolean'
``````````
name = 'errmsg'
type = 'string'
optional = 'self'

[rename]
[[.args]]
name = 'oldname'
type = 'string'
``````````
name = 'newname'
type = 'string'
[[.returns]]
name = 'suc'
type = 'boolean'
``````````
name = 'errmsg'
type = 'string'
optional = 'self'

[setlocale]
[[.args]]
name = 'locale'
type = 'string'
``````````
name = 'category'
type = 'string'
optional = 'self'
[[.returns]]
name = 'locale'
type = 'string'
[[.enums]]
name = 'category'
enum = 'all'
default = true
``````````
name = 'category'
enum = 'collate'
``````````
name = 'category'
enum = 'ctype'
``````````
name = 'category'
enum = 'monetary'
``````````
name = 'category'
enum = 'numeric'
``````````
name = 'category'
enum = 'time'

[time]
[[.args]]
type = 'table'
optional = 'self'
[[.returns]]
type = 'integer'

[tmpname]
[[.returns]]
type = 'string'