---@meta posix.sys.statvfs

---@class posix_statvfs*
---@field f_bsize integer
---@field f_frsize integer
---@field f_blocks integer
---@field f_bfree integer
---@field f_bavail integer
---@field f_files integer
---@field f_ffree integer
---@field f_favail integer
---@field f_fsid integer
---@field f_flag integer
---@field f_namemax integer

---@class posix_sys_statvfs*
---@field version string
---@field ST_RDONLY integer
---@field ST_NOSUID integer
---@type posix_sys_statvfs*
local M = {}

---@param path string
---@return posix_statvfs*? stat
---@return string? errMsg
---@return integer? errno
function M.statvfs(path) end

return M
