// Copyright (c) 2017-2022 Cloudflare, Inc. // Licensed under the Apache 2.0 license found in the LICENSE file or at: // https://opensource.org/licenses/Apache-2.0 // // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to permit // persons to whom the Software is furnished to do so, subject to the // following conditions: // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. export const UV_FS_SYMLINK_DIR = 1; export const UV_FS_SYMLINK_JUNCTION = 2; export const O_RDONLY = 0; export const O_WRONLY = 1; export const O_RDWR = 2; export const UV_DIRENT_UNKNOWN = 0; export const UV_DIRENT_FILE = 1; export const UV_DIRENT_DIR = 2; export const UV_DIRENT_LINK = 3; export const UV_DIRENT_FIFO = 4; export const UV_DIRENT_SOCKET = 5; export const UV_DIRENT_CHAR = 6; export const UV_DIRENT_BLOCK = 7; export const EXTENSIONLESS_FORMAT_JAVASCRIPT = 0; export const EXTENSIONLESS_FORMAT_WASM = 1; export const S_IFMT = 61440; export const S_IFREG = 32768; export const S_IFDIR = 16384; export const S_IFCHR = 8192; export const S_IFBLK = 24576; export const S_IFIFO = 4096; export const S_IFLNK = 40960; export const S_IFSOCK = 49152; export const O_CREAT = 64; export const O_EXCL = 128; export const UV_FS_O_FILEMAP = 0; export const O_NOCTTY = 256; export const O_TRUNC = 512; export const O_APPEND = 1024; export const O_DIRECTORY = 65536; export const O_NOATIME = 262144; export const O_NOFOLLOW = 131072; export const O_SYNC = 1052672; export const O_DSYNC = 4096; export const O_DIRECT = 16384; export const O_NONBLOCK = 2048; export const S_IRWXU = 448; export const S_IRUSR = 256; export const S_IWUSR = 128; export const S_IXUSR = 64; export const S_IRWXG = 56; export const S_IRGRP = 32; export const S_IWGRP = 16; export const S_IXGRP = 8; export const S_IRWXO = 7; export const S_IROTH = 4; export const S_IWOTH = 2; export const S_IXOTH = 1; export const F_OK = 0; export const R_OK = 4; export const W_OK = 2; export const X_OK = 1; export const UV_FS_COPYFILE_EXCL = 1; export const COPYFILE_EXCL = UV_FS_COPYFILE_EXCL; export const UV_FS_COPYFILE_FICLONE = 2; export const COPYFILE_FICLONE = UV_FS_COPYFILE_FICLONE; export const UV_FS_COPYFILE_FICLONE_FORCE = 4; export const COPYFILE_FICLONE_FORCE = UV_FS_COPYFILE_FICLONE_FORCE;