Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions meta/3rd/OpenResty/library/ngx.lua
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,9 @@ function ngx.worker.pid() end
--- This boolean field indicates whether the current NGINX is a debug build, i.e., being built by the `./configure` option `--with-debug`.
---@field debug boolean
---
--- This boolean field indicates whether the current NGINX run by resty.
---@field is_console boolean
---
ngx.config = {}


Expand Down
2 changes: 1 addition & 1 deletion meta/3rd/OpenResty/library/ngx/pipe.lua
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ pipe.version = require("resty.core.base").version
---```
---
---
---@param args table[]|string
---@param args string[]|string
---@param opts? ngx.pipe.spawn.opts
---@return ngx.pipe.proc? proc
---@return string? error
Expand Down
2 changes: 2 additions & 0 deletions meta/3rd/OpenResty/library/ngx/semaphore.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---@meta

---@class ngx.semaphore
--- sem is the internal c handler
---@field sem userdata
local semaphore = {
version = require("resty.core.base").version,
}
Expand Down
2 changes: 1 addition & 1 deletion meta/3rd/OpenResty/library/resty/core/base.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function resty_core_base.get_request() end
function resty_core_base.get_size_ptr() end

---@param size number
---@param must_alloc boolean
---@param must_alloc? boolean
---@return userdata
function resty_core_base.get_string_buf(size, must_alloc) end

Expand Down
2 changes: 1 addition & 1 deletion meta/template/os.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function os.date(format, time) end
function os.difftime(t2, t1) end

---#DES 'os.execute'
---#if VERSION <= 5.1 then
---#if VERSION <= 5.1 and not JIT then
---@param command? string
---@return integer code
function os.execute(command) end
Expand Down