summaryrefslogtreecommitdiff
path: root/meta/template/os.lua
diff options
context:
space:
mode:
Diffstat (limited to 'meta/template/os.lua')
-rw-r--r--meta/template/os.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/template/os.lua b/meta/template/os.lua
index 4347076c..af9b3278 100644
--- a/meta/template/os.lua
+++ b/meta/template/os.lua
@@ -6,6 +6,7 @@ os = {}
---#DES 'os.clock'
---@return number
+---@nodiscard
function os.clock() end
---@class osdate
@@ -32,12 +33,14 @@ function os.clock() end
---@param format? string
---@param time? integer
---@return string|osdate
+---@nodiscard
function os.date(format, time) end
---#DES 'os.difftime'
---@param t2 integer
---@param t1 integer
---@return integer
+---@nodiscard
function os.difftime(t2, t1) end
---#DES 'os.execute'
@@ -67,6 +70,7 @@ function os.exit(code, close) end
---#DES 'os.getenv'
---@param varname string
---@return string
+---@nodiscard
function os.getenv(varname) end
---#DES 'os.remove'
@@ -99,10 +103,12 @@ function os.setlocale(locale, category) end
---#DES 'os.time'
---@param date? osdate
---@return integer
+---@nodiscard
function os.time(date) end
---#DES 'os.tmpname'
---@return string
+---@nodiscard
function os.tmpname() end
return os