first commit

This commit is contained in:
Stefan Hacker
2026-04-03 09:38:48 +02:00
commit 37ad745546
47450 changed files with 3120798 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
export declare const enum AMODE {
F_OK = 0,
/** Tests for Execute or Search permissions. */
X_OK = 1,
/** Tests for Write permission. */
W_OK = 2,
/** Tests for Read permission. */
R_OK = 4
}
+3
View File
@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=AMODE.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"AMODE.js","sourceRoot":"","sources":["../../src/consts/AMODE.ts"],"names":[],"mappings":""}
+53
View File
@@ -0,0 +1,53 @@
/**
* Constants used in `open` system calls, see [open(2)](http://man7.org/linux/man-pages/man2/open.2.html).
*
* These constants are compatible with Node.js fs constants and can be used with both
* memfs and native Node.js fs.promises.open().
*
* @see http://man7.org/linux/man-pages/man2/open.2.html
* @see https://www.gnu.org/software/libc/manual/html_node/Open_002dtime-Flags.html
*/
export declare enum FLAG {
O_RDONLY = 0,
O_WRONLY = 1,
O_RDWR = 2,
O_ACCMODE = 3,
O_CREAT = 64,
O_EXCL = 128,
O_NOCTTY = 256,
O_TRUNC = 512,
O_APPEND = 1024,
O_NONBLOCK = 2048,
O_DSYNC = 4096,
FASYNC = 8192,
O_DIRECT = 16384,
O_LARGEFILE = 0,
O_DIRECTORY = 65536,
O_NOFOLLOW = 131072,
O_NOATIME = 262144,
O_CLOEXEC = 524288,
O_SYNC = 1052672,
O_NDELAY = 2048
}
export declare const enum FLAG_CON {
O_RDONLY = 0,
O_WRONLY = 1,
O_RDWR = 2,
O_ACCMODE = 3,
O_CREAT = 64,
O_EXCL = 128,
O_NOCTTY = 256,
O_TRUNC = 512,
O_APPEND = 1024,
O_NONBLOCK = 2048,
O_DSYNC = 4096,
FASYNC = 8192,
O_DIRECT = 16384,
O_LARGEFILE = 0,
O_DIRECTORY = 65536,
O_NOFOLLOW = 131072,
O_NOATIME = 262144,
O_CLOEXEC = 524288,
O_SYNC = 1052672,
O_NDELAY = 2048
}
+36
View File
@@ -0,0 +1,36 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FLAG = void 0;
/**
* Constants used in `open` system calls, see [open(2)](http://man7.org/linux/man-pages/man2/open.2.html).
*
* These constants are compatible with Node.js fs constants and can be used with both
* memfs and native Node.js fs.promises.open().
*
* @see http://man7.org/linux/man-pages/man2/open.2.html
* @see https://www.gnu.org/software/libc/manual/html_node/Open_002dtime-Flags.html
*/
var FLAG;
(function (FLAG) {
FLAG[FLAG["O_RDONLY"] = 0] = "O_RDONLY";
FLAG[FLAG["O_WRONLY"] = 1] = "O_WRONLY";
FLAG[FLAG["O_RDWR"] = 2] = "O_RDWR";
FLAG[FLAG["O_ACCMODE"] = 3] = "O_ACCMODE";
FLAG[FLAG["O_CREAT"] = 64] = "O_CREAT";
FLAG[FLAG["O_EXCL"] = 128] = "O_EXCL";
FLAG[FLAG["O_NOCTTY"] = 256] = "O_NOCTTY";
FLAG[FLAG["O_TRUNC"] = 512] = "O_TRUNC";
FLAG[FLAG["O_APPEND"] = 1024] = "O_APPEND";
FLAG[FLAG["O_NONBLOCK"] = 2048] = "O_NONBLOCK";
FLAG[FLAG["O_DSYNC"] = 4096] = "O_DSYNC";
FLAG[FLAG["FASYNC"] = 8192] = "FASYNC";
FLAG[FLAG["O_DIRECT"] = 16384] = "O_DIRECT";
FLAG[FLAG["O_LARGEFILE"] = 0] = "O_LARGEFILE";
FLAG[FLAG["O_DIRECTORY"] = 65536] = "O_DIRECTORY";
FLAG[FLAG["O_NOFOLLOW"] = 131072] = "O_NOFOLLOW";
FLAG[FLAG["O_NOATIME"] = 262144] = "O_NOATIME";
FLAG[FLAG["O_CLOEXEC"] = 524288] = "O_CLOEXEC";
FLAG[FLAG["O_SYNC"] = 1052672] = "O_SYNC";
FLAG[FLAG["O_NDELAY"] = 2048] = "O_NDELAY";
})(FLAG || (exports.FLAG = FLAG = {}));
//# sourceMappingURL=FLAG.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"FLAG.js","sourceRoot":"","sources":["../../src/consts/FLAG.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;GAQG;AACH,IAAY,IAqBX;AArBD,WAAY,IAAI;IACd,uCAAY,CAAA;IACZ,uCAAY,CAAA;IACZ,mCAAU,CAAA;IACV,yCAAa,CAAA;IACb,sCAAY,CAAA;IACZ,qCAAY,CAAA;IACZ,yCAAc,CAAA;IACd,uCAAa,CAAA;IACb,0CAAe,CAAA;IACf,8CAAiB,CAAA;IACjB,wCAAc,CAAA;IACd,sCAAa,CAAA;IACb,2CAAgB,CAAA;IAChB,6CAAe,CAAA;IACf,iDAAmB,CAAA;IACnB,gDAAmB,CAAA;IACnB,8CAAkB,CAAA;IAClB,8CAAkB,CAAA;IAClB,yCAAgB,CAAA;IAChB,0CAAe,CAAA;AACjB,CAAC,EArBW,IAAI,oBAAJ,IAAI,QAqBf"}