This commit is contained in:
Dante
2026-05-21 23:40:20 -07:00
parent 3e2915dff7
commit 877a69d844
5737 changed files with 29796 additions and 1589684 deletions

View File

@ -60,14 +60,14 @@ typedef DirectoryScan = {
**/
extern class DirSync {
@:inheritDoc(eval.luv.Dir.open)
static public function open(loop:Loop, path:NativeString):Result<Dir>;
static public function open(path:NativeString):Result<Dir>;
@:inheritDoc(eval.luv.Dir.close)
static public function close(dir:Dir, loop:Loop):Result<Result.NoData>;
static public function close(dir:Dir):Result<Result.NoData>;
@:inheritDoc(eval.luv.Dir.read)
static public function read(dir:Dir, loop:Loop, ?numberOfEntries:Int):Result<Array<Dirent>>;
static public function read(dir:Dir, ?numberOfEntries:Int):Result<Array<Dirent>>;
@:inheritDoc(eval.luv.Dir.scan)
static public function scan(loop:Loop, path:NativeString):Result<DirectoryScan>;
static public function scan(path:NativeString):Result<DirectoryScan>;
}

View File

@ -16,6 +16,11 @@ extern class Env {
**/
static function setEnv(name:String, value:NativeString):Result<Result.NoData>;
/**
Deletes an environment variable.
**/
static function unsetEnv(name:String):Result<Result.NoData>;
/**
Retrieves all environment variables.
**/

View File

@ -26,11 +26,11 @@ enum abstract FsEventFlag(Int) {
/**
Starts the handle and watches the given path for changes.
**/
public function start(path:NativeString, ?flags:Array<FsEventFlag>, callback:(result:Result<{file:NativeString,events:Array<FsEventType>}>)->Void):Void;
public function start(path:NativeString, ?flags:Array<FsEventFlag>, callback:(result:Result<{file:Null<NativeString>,events:Array<FsEventType>}>)->Void):Void;
/**
Stops the handle.
**/
public function stop():Result<Result.NoData>;
}
}

View File

@ -41,12 +41,12 @@ extern class Resource {
/**
Evaluates to the amount of free memory, in bytes.
**/
static function freeMemory():UInt64;
static function freeMemory():Null<UInt64>;
/**
Evaluates to the total amount of memory, in bytes.
**/
static function totalMemory():UInt64;
static function totalMemory():Null<UInt64>;
/**
Gets the amount of memory available to the process (in bytes) based on
@ -68,11 +68,11 @@ extern class Resource {
/**
Evaluates to the resident set size for the current process.
**/
static function residentSetMemory(pid:Int):Result<UInt64>;
static function residentSetMemory():Result<UInt64>;
/**
Gets the resource usage measures for the current process.
**/
static function getRUsage():Result<RUsage>;
}
}

View File

@ -162,6 +162,10 @@ enum abstract UVError(Int) {
var UV_EFTYPE = 76;
/** illegal byte sequence */
var UV_EILSEQ = 77;
/** value too large for defined data type **/
var UV_EOVERFLOW = 78;
/** socket type not supported**/
var UV_ESOCKTNOSUPPORT = 79;
/**
Converts a system error code to a libuv error.