working on api docs
This commit is contained in:
1 parent
56d8fb2016
commit
38d56ced19
43 files changed
+5669
-618
No files matched your search
@@ -0,0 +1,57 @@
|
||||
---@meta EFI
|
||||
|
||||
---@class HyperionOS.kernel.EFI Bootloader interface
|
||||
---@field yield fun() yeilds os to bootloader to prevent watchdog
|
||||
---@field getEpochMs fun(): number gets current epoch ms
|
||||
---@field getUptime fun(): number gets current uptime in ms
|
||||
---@field date fun(): string "!%Y-%m-%dT%H:%M:%SZ" of current ms utc
|
||||
---@field getMachineEvent fun(): ... returns queued machine events
|
||||
---@field getEEPROM fun(): string returns current EEPROM program
|
||||
---@field setEEPROM fun(self, code:string) sets the EEPROM code to code
|
||||
---@field initfs table initfs api
|
||||
---@field disks table disks api
|
||||
---@field screenctl HyperionOS.kernel.EFI.screen screen control handle
|
||||
---@field architecture string architecture signature
|
||||
---@field getNvram fun(): string reads non-volitile ram
|
||||
---@field setNvram fun(self, data:string) sets non-volitile ram
|
||||
---@field firmware table extra apis for drivers to use
|
||||
---@field status string run status
|
||||
---@field beep fun(self, freq:number, ms:number) beep tone
|
||||
|
||||
---@class HyperionOS.kernel.EFI.screen
|
||||
---@field print fun(self, text:string) prints with following \n
|
||||
---@field printInline fun(self, text:string) prints to screen
|
||||
---@field clear fun(self) clears screen
|
||||
---@field resetCursor fun(self) moves cursor to 1,1
|
||||
---@field setBackgroundColor fun(self, color24:number) sets background color
|
||||
---@field setTextColor fun(self, color24:number) sets text color
|
||||
---@field getBackgroundColor fun(self): number returns background color24
|
||||
---@field getTextColor fun(self): number returns text color24
|
||||
---@field enable fun(self) enables the screens
|
||||
---@field disable fun(self) disables the screen
|
||||
|
||||
---@class file
|
||||
---@field read fun(amount:number) reads x bytes from file (r)
|
||||
---@field write fun(data:string) writes data to a file (w, a)
|
||||
---@field flush fun() flushes appending writes (w, a)
|
||||
---@field seek fun(whence:"set"|"cur"|"end", offset:number): number moves the file pointer and returns the new position
|
||||
---@field close fun() closes the open file
|
||||
|
||||
---@class disk
|
||||
---@field address string ID of disk
|
||||
---@field isReadOnly fun(self): boolean Is disk read only?
|
||||
---@field spaceUsed fun(self): number Returns bytes used
|
||||
---@field spaceTotal fun(self): number Returns disk size in bytes
|
||||
---@field list fun(self, path:string) get contents of a directory
|
||||
---@field fileExists fun(self, path:string) does a file exist?
|
||||
---@field directoryExists fun(self, path:string) does a directory exist?
|
||||
---@field type fun(self, path:string): string returns type of a path
|
||||
---@field makeDirectory fun(self, path:string) makes a directory
|
||||
---@field remove fun(self, path:string) delete a file or directory
|
||||
---@field setLabel fun(self, label:string) sets disk label
|
||||
---@field getLabel fun(self): string returns disk label
|
||||
---@field attributes fun(self, path:string) returns path attributes (ex: size and date modified)
|
||||
---@field open fun(self, path:string, mode:string): file opens a file returns handle
|
||||
|
||||
---@class HyperionOS.kernel
|
||||
---@field EFI HyperionOS.kernel.EFI
|
||||
@@ -0,0 +1,15 @@
|
||||
---@meta
|
||||
---@class HyperionOS.kernel.config
|
||||
---@field initPath string The path that init takes to load the init system
|
||||
---@field allowGlobalOverwrites boolean Allow modifying of gloabal env (usually for debug purposes)
|
||||
---@field enableAdvancedDebug boolean Allow debug into the kernel
|
||||
---@field maxOpenFiles number The maximum open files allowed for the whole system
|
||||
---@field maxFilesPerTask number The maximum open files allowed for each task
|
||||
---@field preempt boolean Enable/Disable preemptive multitasking
|
||||
---@field debugSyscalls boolean Logs syscalls and their return values aswell as what task executed them (WILL HARM PREFORMANCE)
|
||||
---@field logTaskExit boolean Logs task exits and errors
|
||||
---@field showModLoad boolean Log module loading
|
||||
---@field tmpToDisk boolean Writes /tmp to disk instead of ramfs
|
||||
---@field logSymlinkTraverse boolean Logs symlink traversal (can harm preformance)
|
||||
---@field moreLogsaves boolean Enables log debug save points (can harm boot time
|
||||
---@field logPathResolution boolean Logs how a vfs path resolves to a disk path (can harm preformance)
|
||||
@@ -0,0 +1,112 @@
|
||||
---@meta Hyperion-kernel
|
||||
--#region kernel
|
||||
|
||||
---@class HyperionOS.kernel
|
||||
--- NOT AVAILBLE IN USERSPACE
|
||||
--- AT TOP DO "local kernel=..." OF YOUR MODULE
|
||||
local kernel={}
|
||||
|
||||
---@class HyperionOS.kernel
|
||||
---@field LOG_Text string
|
||||
---@field version string Human readable version
|
||||
---@field tag string version tag
|
||||
---@field process string current process name
|
||||
---@field users table user translation table
|
||||
---@field hostname string computer hostname
|
||||
---@field groups table unused
|
||||
---@field uid number current task user id
|
||||
---@field gid number unused?
|
||||
---@field status string run status
|
||||
---@field key table a uniq table to identifiy as the kernel if needed
|
||||
---@field cache {preload:{}} unused
|
||||
---@field unixSockets table unixSockets table
|
||||
---@field config HyperionOS.kernel.config
|
||||
|
||||
kernel._G=_G
|
||||
kernel.sleep=sleep
|
||||
|
||||
---@class HyperionOS.userspace.syscall
|
||||
local syscall
|
||||
kernel.syscalls=syscall
|
||||
|
||||
--- Logs a message to the system log and console.
|
||||
--- @param msg string The message to log
|
||||
--- @param tag? string Log tag (defaults to "INFO")
|
||||
--- @param c? number 24-bit RGB color (defaults to 0x6D6D6D)
|
||||
--- @param nopanic? boolean Prevents a logging error from triggering a kernel panic
|
||||
function kernel.log(msg, tag, c, nopanic) end
|
||||
|
||||
--- Crash the OS and display a message
|
||||
--- @param msg string
|
||||
function kernel.panic(msg) end
|
||||
kernel.PANIC=kernel.panic
|
||||
|
||||
--#endregion kernel
|
||||
|
||||
--#region userspace
|
||||
|
||||
--- Returns the current system time in milliseconds.
|
||||
--- @return number
|
||||
function syscall.time() end
|
||||
|
||||
--- Returns the current system date.
|
||||
--- @return string
|
||||
function syscall.date() end
|
||||
|
||||
--- Logs a message to the system log and console.
|
||||
--- @param msg string The message to log
|
||||
--- @param tag? string Log tag (defaults to "INFO")
|
||||
--- @param c? number 24-bit RGB color (defaults to 0x6D6D6D)
|
||||
--- @param nopanic? boolean Prevents a logging error from triggering a kernel panic
|
||||
function syscall.log(msg, tag, c, nopanic) end
|
||||
|
||||
--- Returns the HyperionOS version tag.
|
||||
--- @return string
|
||||
function syscall.tag() end
|
||||
|
||||
--- Returns the system uptime.
|
||||
--- @return number
|
||||
function syscall.getUptime() end
|
||||
|
||||
--- Returns a username.
|
||||
--- @param uid? number User ID (defaults to current user)
|
||||
--- @return string?
|
||||
function syscall.getUsername(uid) end
|
||||
|
||||
--- Returns the system hostname.
|
||||
--- @return string
|
||||
function syscall.getHostname() end
|
||||
|
||||
--- Returns the host environment identifier.
|
||||
--- @return string
|
||||
function syscall.getHost() end
|
||||
|
||||
--- Returns the HyperionOS version.
|
||||
--- @return string
|
||||
function syscall.version() end
|
||||
|
||||
--- Changes the system hostname. Requires root.
|
||||
--- @param name string New hostname
|
||||
function syscall.setHostname(name) end
|
||||
|
||||
--- Returns the system architecture.
|
||||
--- @return string
|
||||
function syscall.arch() end
|
||||
|
||||
--- Returns a list of registered syscall names.
|
||||
--- @return string[]
|
||||
function syscall.sysdump() end
|
||||
|
||||
--- Reboots the system. Requires root or wheel group.
|
||||
function syscall.reboot() end
|
||||
|
||||
--- Shuts down the system. Requires root or wheel group.
|
||||
function syscall.shutdown() end
|
||||
|
||||
--- Halts the system. Requires root or wheel group.
|
||||
function syscall.halt() end
|
||||
|
||||
--- Saves the system log. Requires root or wheel group.
|
||||
function syscall.saveLog() end
|
||||
|
||||
--#endregion userspace
|
||||
@@ -0,0 +1,42 @@
|
||||
--#region loopdev
|
||||
|
||||
---@meta
|
||||
|
||||
--#region kernel
|
||||
---@class HyperionOS.kernel
|
||||
---@field vfs HyperionOS.types.LoopDeviceInfo
|
||||
|
||||
---@class LoopDeviceInfo
|
||||
---@field path string Original directory or image path
|
||||
---@field mode "bind"|"image" Loop device mode
|
||||
|
||||
---Attaches a loop device backed by a directory or filesystem image.
|
||||
---Requires root privileges.
|
||||
---@param path string Directory or .hfs image path
|
||||
---@param forceImage? boolean Force image mode instead of directory bind mode
|
||||
---@return string id Loop device ID
|
||||
function syscall.losetup(path, forceImage) end
|
||||
|
||||
---Detaches a loop device.
|
||||
---The device must be unmounted first.
|
||||
---Requires root privileges.
|
||||
---@param id string Loop device ID
|
||||
function syscall.lodetach(id) end
|
||||
|
||||
---Lists currently attached loop devices.
|
||||
---@return table<string, LoopDeviceInfo> devices
|
||||
function syscall.lolist() end
|
||||
|
||||
---Creates a BHFS binary filesystem image from a VFS directory.
|
||||
---Requires root privileges.
|
||||
---@param srcdir string Source directory
|
||||
---@return string image BHFS binary image data
|
||||
function syscall.loimgcreate(srcdir) end
|
||||
|
||||
---Writes a BHFS image string to a file.
|
||||
---Requires root privileges.
|
||||
---@param image string BHFS binary image data
|
||||
---@param dest string Destination file path
|
||||
function syscall.loimgwrite(image, dest) end
|
||||
|
||||
--#endregion loopdev
|
||||
@@ -0,0 +1,393 @@
|
||||
---@meta
|
||||
|
||||
--#region kernel
|
||||
---@class HyperionOS.kernel
|
||||
---@field vfs HyperionOS.kernel.vfs
|
||||
|
||||
---@class HyperionOS.kernel.vfs
|
||||
local vfs={}
|
||||
|
||||
--- Opens a file and returns its file descriptor.
|
||||
--- @param path string File path
|
||||
--- @param mode string Open mode ("r", "w", or "a")
|
||||
--- @return integer fd
|
||||
function vfs.open(path, mode) end
|
||||
|
||||
--- Closes a file descriptor.
|
||||
--- @param fd integer
|
||||
function vfs.close(fd) end
|
||||
|
||||
--- Reads data from a file descriptor.
|
||||
--- @param fd integer
|
||||
--- @param count? integer Number of bytes to read
|
||||
--- @return string
|
||||
function vfs.read(fd, count) end
|
||||
|
||||
--- Writes data to a file descriptor.
|
||||
--- @param fd integer
|
||||
--- @param content string Data to write
|
||||
function vfs.write(fd, content) end
|
||||
|
||||
--- Reads data from a file at a specific offset without changing its position.
|
||||
--- @param fd integer
|
||||
--- @param count integer Number of bytes to read
|
||||
--- @param offset integer File offset
|
||||
--- @return string
|
||||
function vfs.pread(fd, count, offset) end
|
||||
|
||||
--- Writes data to a file at a specific offset without changing its position.
|
||||
--- @param fd integer
|
||||
--- @param content string Data to write
|
||||
--- @param offset integer File offset
|
||||
function vfs.pwrite(fd, content, offset) end
|
||||
|
||||
--- Changes the current file position.
|
||||
--- @param fd integer
|
||||
--- @param offset integer
|
||||
--- @param whence? string Position reference ("set", "cur", or "end")
|
||||
--- @return integer
|
||||
function vfs.lseek(fd, offset, whence) end
|
||||
|
||||
--- Flushes pending file writes.
|
||||
--- @param fd integer
|
||||
function vfs.fsync(fd) end
|
||||
|
||||
--- Copies data between file descriptors.
|
||||
--- @param outfd integer Destination file descriptor
|
||||
--- @param infd integer Source file descriptor
|
||||
--- @param count? integer Number of bytes to copy
|
||||
function vfs.sendfile(outfd, infd, count) end
|
||||
|
||||
--- Gets file information by path, following symlinks.
|
||||
--- @param path string
|
||||
--- @return table
|
||||
function vfs.stat(path) end
|
||||
|
||||
--- Gets file information by path without following symlinks.
|
||||
--- @param path string
|
||||
--- @return table
|
||||
function vfs.lstat(path) end
|
||||
|
||||
--- Gets file information from an open file descriptor.
|
||||
--- @param fd integer
|
||||
--- @return table
|
||||
function vfs.fstat(fd) end
|
||||
|
||||
--- Creates a directory.
|
||||
--- @param path string
|
||||
function vfs.mkdir(path) end
|
||||
|
||||
--- Removes a file, directory, or symlink.
|
||||
--- @param path string
|
||||
function vfs.remove(path) end
|
||||
|
||||
--- Lists the contents of a directory.
|
||||
--- @param path string
|
||||
--- @return string[]
|
||||
function vfs.listdir(path) end
|
||||
|
||||
--- Changes file permissions.
|
||||
--- @param path string
|
||||
--- @param perms integer Permission bitmask
|
||||
function vfs.chmod(path, perms) end
|
||||
|
||||
--- Changes permissions using a file descriptor.
|
||||
--- @param fd integer
|
||||
--- @param perms integer Permission bitmask
|
||||
function vfs.fchmod(fd, perms) end
|
||||
|
||||
--- Changes file ownership.
|
||||
--- @param path string
|
||||
--- @param uid integer User ID
|
||||
--- @param gid integer Group ID
|
||||
function vfs.chown(path, uid, gid) end
|
||||
|
||||
--- Changes ownership using a file descriptor.
|
||||
--- @param fd integer
|
||||
--- @param uid integer User ID
|
||||
--- @param gid integer Group ID
|
||||
function vfs.fchown(fd, uid, gid) end
|
||||
|
||||
--- Checks whether a path exists.
|
||||
--- @param path string
|
||||
--- @return boolean
|
||||
function vfs.exists(path) end
|
||||
|
||||
--- Returns the type of a path.
|
||||
--- @param path string
|
||||
--- @return string|nil
|
||||
function vfs.type(path) end
|
||||
|
||||
--- Mounts a disk or bind mount.
|
||||
--- @param target string Mount point
|
||||
--- @param diskOrId string|table Disk ID or disk object
|
||||
--- @param bind? boolean Whether this is a bind mount
|
||||
--- @param floating? boolean Whether this is a floating mount
|
||||
--- @return boolean
|
||||
function vfs.mount(target, diskOrId, bind, floating) end
|
||||
|
||||
--- Unmounts a filesystem.
|
||||
--- @param target string Mount point
|
||||
--- @return boolean
|
||||
function vfs.umount(target) end
|
||||
|
||||
--- Returns the current working directory.
|
||||
--- @return string
|
||||
function vfs.getcwd() end
|
||||
|
||||
--- Changes the current working directory.
|
||||
--- @param path string
|
||||
function vfs.chdir(path) end
|
||||
|
||||
--- Changes the process root directory. Requires root.
|
||||
--- @param path string
|
||||
function vfs.chroot(path) end
|
||||
|
||||
--- Duplicates a file descriptor.
|
||||
--- @param oldfd integer
|
||||
--- @return integer
|
||||
function vfs.dup(oldfd) end
|
||||
|
||||
--- Duplicates a file descriptor to a specific descriptor number.
|
||||
--- @param oldfd integer
|
||||
--- @param newfd integer
|
||||
--- @return integer
|
||||
function vfs.dup2(oldfd, newfd) end
|
||||
|
||||
--- Calls a method on an open device.
|
||||
--- @param fd integer Device file descriptor
|
||||
--- @param method string Device method name
|
||||
--- @param ... any Method arguments
|
||||
--- @return any ...
|
||||
function vfs.devctl(fd, method, ...) end
|
||||
|
||||
--- Lists available methods on an open device.
|
||||
--- @param fd integer Device file descriptor
|
||||
--- @return string[]
|
||||
function vfs.devlst(fd) end
|
||||
|
||||
--- Creates a symbolic link.
|
||||
--- @param target string Link target
|
||||
--- @param linkPath string Path of the new symlink
|
||||
function vfs.symlink(target, linkPath) end
|
||||
|
||||
--- Reads the target of a symbolic link.
|
||||
--- @param path string
|
||||
--- @return string
|
||||
function vfs.readlink(path) end
|
||||
|
||||
--- Checks access permissions for a path.
|
||||
--- @param path string
|
||||
--- @param mode string Permission checks ("r", "w", "x", or combinations)
|
||||
--- @return boolean
|
||||
function vfs.access(path, mode) end
|
||||
|
||||
--- Gets the SUID owner associated with an open file descriptor.
|
||||
--- @param fd integer
|
||||
--- @return integer|nil
|
||||
function vfs.fget_suid(fd) end
|
||||
|
||||
--- Returns the paths associated with open file descriptors.
|
||||
--- @return string[]
|
||||
function vfs.getOpenFds() end
|
||||
|
||||
--- Returns filesystem mount and disk information.
|
||||
--- @return table
|
||||
function vfs.fsinfo() end
|
||||
|
||||
--#endregion kernel
|
||||
|
||||
--#region userspace
|
||||
|
||||
---@class HyperionOS.userspace.syscall
|
||||
local syscall={}
|
||||
|
||||
--- Opens a file and returns its file descriptor.
|
||||
--- @param path string File path
|
||||
--- @param mode string Open mode ("r", "w", or "a")
|
||||
--- @return integer fd
|
||||
function syscall.open(path, mode) end
|
||||
|
||||
--- Closes a file descriptor.
|
||||
--- @param fd integer
|
||||
function syscall.close(fd) end
|
||||
|
||||
--- Reads data from a file descriptor.
|
||||
--- @param fd integer
|
||||
--- @param count? integer Number of bytes to read
|
||||
--- @return string
|
||||
function syscall.read(fd, count) end
|
||||
|
||||
--- Writes data to a file descriptor.
|
||||
--- @param fd integer
|
||||
--- @param content string Data to write
|
||||
function syscall.write(fd, content) end
|
||||
|
||||
--- Reads data from a file at a specific offset without changing its position.
|
||||
--- @param fd integer
|
||||
--- @param count integer Number of bytes to read
|
||||
--- @param offset integer File offset
|
||||
--- @return string
|
||||
function syscall.pread(fd, count, offset) end
|
||||
|
||||
--- Writes data to a file at a specific offset without changing its position.
|
||||
--- @param fd integer
|
||||
--- @param content string Data to write
|
||||
--- @param offset integer File offset
|
||||
function syscall.pwrite(fd, content, offset) end
|
||||
|
||||
--- Changes the current file position.
|
||||
--- @param fd integer
|
||||
--- @param offset integer
|
||||
--- @param whence? string Position reference ("set", "cur", or "end")
|
||||
--- @return integer
|
||||
function syscall.lseek(fd, offset, whence) end
|
||||
|
||||
--- Flushes pending file writes.
|
||||
--- @param fd integer
|
||||
function syscall.fsync(fd) end
|
||||
|
||||
--- Copies data between file descriptors.
|
||||
--- @param outfd integer Destination file descriptor
|
||||
--- @param infd integer Source file descriptor
|
||||
--- @param count? integer Number of bytes to copy
|
||||
function syscall.sendfile(outfd, infd, count) end
|
||||
|
||||
--- Gets file information by path, following symlinks.
|
||||
--- @param path string
|
||||
--- @return table
|
||||
function syscall.stat(path) end
|
||||
|
||||
--- Gets file information by path without following symlinks.
|
||||
--- @param path string
|
||||
--- @return table
|
||||
function syscall.lstat(path) end
|
||||
|
||||
--- Gets file information from an open file descriptor.
|
||||
--- @param fd integer
|
||||
--- @return table
|
||||
function syscall.fstat(fd) end
|
||||
|
||||
--- Creates a directory.
|
||||
--- @param path string
|
||||
function syscall.mkdir(path) end
|
||||
|
||||
--- Removes a file, directory, or symlink.
|
||||
--- @param path string
|
||||
function syscall.remove(path) end
|
||||
|
||||
--- Lists the contents of a directory.
|
||||
--- @param path string
|
||||
--- @return string[]
|
||||
function syscall.listdir(path) end
|
||||
|
||||
--- Changes file permissions.
|
||||
--- @param path string
|
||||
--- @param perms integer Permission bitmask
|
||||
function syscall.chmod(path, perms) end
|
||||
|
||||
--- Changes permissions using a file descriptor.
|
||||
--- @param fd integer
|
||||
--- @param perms integer Permission bitmask
|
||||
function syscall.fchmod(fd, perms) end
|
||||
|
||||
--- Changes file ownership.
|
||||
--- @param path string
|
||||
--- @param uid integer User ID
|
||||
--- @param gid integer Group ID
|
||||
function syscall.chown(path, uid, gid) end
|
||||
|
||||
--- Changes ownership using a file descriptor.
|
||||
--- @param fd integer
|
||||
--- @param uid integer User ID
|
||||
--- @param gid integer Group ID
|
||||
function syscall.fchown(fd, uid, gid) end
|
||||
|
||||
--- Checks whether a path exists.
|
||||
--- @param path string
|
||||
--- @return boolean
|
||||
function syscall.exists(path) end
|
||||
|
||||
--- Returns the type of a path.
|
||||
--- @param path string
|
||||
--- @return string|nil
|
||||
function syscall.type(path) end
|
||||
|
||||
--- Mounts a disk or bind mount.
|
||||
--- @param target string Mount point
|
||||
--- @param diskOrId string|table Disk ID or disk object
|
||||
--- @param bind? boolean Whether this is a bind mount
|
||||
--- @param floating? boolean Whether this is a floating mount
|
||||
--- @return boolean
|
||||
function syscall.mount(target, diskOrId, bind, floating) end
|
||||
|
||||
--- Unmounts a filesystem.
|
||||
--- @param target string Mount point
|
||||
--- @return boolean
|
||||
function syscall.umount(target) end
|
||||
|
||||
--- Returns the current working directory.
|
||||
--- @return string
|
||||
function syscall.getcwd() end
|
||||
|
||||
--- Changes the current working directory.
|
||||
--- @param path string
|
||||
function syscall.chdir(path) end
|
||||
|
||||
--- Changes the process root directory. Requires root.
|
||||
--- @param path string
|
||||
function syscall.chroot(path) end
|
||||
|
||||
--- Duplicates a file descriptor.
|
||||
--- @param oldfd integer
|
||||
--- @return integer
|
||||
function syscall.dup(oldfd) end
|
||||
|
||||
--- Duplicates a file descriptor to a specific descriptor number.
|
||||
--- @param oldfd integer
|
||||
--- @param newfd integer
|
||||
--- @return integer
|
||||
function syscall.dup2(oldfd, newfd) end
|
||||
|
||||
--- Calls a method on an open device.
|
||||
--- @param fd integer Device file descriptor
|
||||
--- @param method string Device method name
|
||||
--- @param ... any Method arguments
|
||||
--- @return any ...
|
||||
function syscall.devctl(fd, method, ...) end
|
||||
|
||||
--- Lists available methods on an open device.
|
||||
--- @param fd integer Device file descriptor
|
||||
--- @return string[]
|
||||
function syscall.devlst(fd) end
|
||||
|
||||
--- Creates a symbolic link.
|
||||
--- @param target string Link target
|
||||
--- @param linkPath string Path of the new symlink
|
||||
function syscall.symlink(target, linkPath) end
|
||||
|
||||
--- Reads the target of a symbolic link.
|
||||
--- @param path string
|
||||
--- @return string
|
||||
function syscall.readlink(path) end
|
||||
|
||||
--- Checks access permissions for a path.
|
||||
--- @param path string
|
||||
--- @param mode string Permission checks ("r", "w", "x", or combinations)
|
||||
--- @return boolean
|
||||
function syscall.access(path, mode) end
|
||||
|
||||
--- Gets the SUID owner associated with an open file descriptor.
|
||||
--- @param fd integer
|
||||
--- @return integer|nil
|
||||
function syscall.fget_suid(fd) end
|
||||
|
||||
--- Returns the paths associated with open file descriptors.
|
||||
--- @return string[]
|
||||
function syscall.getOpenFds() end
|
||||
|
||||
--- Returns filesystem mount and disk information.
|
||||
--- @return table
|
||||
function syscall.fsinfo() end
|
||||
|
||||
--#endregion userspace
|
||||
Reference in new issue
Block a user