Constants and Variables
const AT_EMPTY_PATH (deprecated)
public const AT_EMPTY_PATH: Int32 = 0x1000
Description: Specifies the file descriptor returned when no file or directory is specified in the file system. This constant is applicable to the open, open64, openat, and openat64 functions and belongs to the function parameter oflag.
NOTE
This constant will be deprecated in future releases.
Type: Int32
const AT_REMOVEDIR (deprecated)
public const AT_REMOVEDIR: Int32 = 0x200
Description: Performs an operation equivalent to rmdir(2) on pathname if the AT_REMOVEDIR flag is specified. This constant is applicable to the open, open64, openat, and openat64 functions and belongs to the function parameter oflag.
NOTE
This constant will be deprecated in future releases.
Type: Int32
const F_OK (deprecated)
public const F_OK: Int32 = 0x0
Description: Tests whether a file exists. This constant is applicable to the access and faccessat functions and belongs to the function parameter mode.
NOTE
This constant will be deprecated in future releases.
Type: Int32
const O_APPEND (deprecated)
public const O_APPEND: Int32
Description: Moves data from the end of a file in file reading or writing. That is, appends the data to be written to the end of the file. This constant is applicable to the open, open64, openat, and openat64 functions and belongs to the function parameter oflag. Values on different OSs are as follows:
- macOS: 0x00000008
- Windows: 0x8
- Others: 0x400
NOTE
This constant will be deprecated in future releases.
Type: Int32
const O_CLOEXEC (deprecated)
public const O_CLOEXEC: Int32
Description: Mandatory in some multi-thread programs. If one thread opens the file descriptor and another thread executes fork(2) followed by execve(2), using a separate fcntl(2) F_SETFD operation to set the FD_CLOEXEC flag is not enough to prevent contention. This constant is applicable to the open, open64, openat, and openat64 functions and belongs to the function parameter oflag. Values on different OSs are as follows:
- macOS: 0x01000000
- Others: 0x80000
NOTE
This constant will be deprecated in future releases.
Type: Int32
const O_CREAT (deprecated)
public const O_CREAT: Int32
Description: If the file to be opened does not exist, automatically creates the file. This constant is applicable to the open, open64, openat, and openat64 functions and belongs to the function parameter oflag. Values on different OSs are as follows:
- macOS: 0x00000200
- Windows: 0x100
- Others: 0x40
NOTE
This constant will be deprecated in future releases.
Type: Int32
const O_DIRECTORY (deprecated)
public const O_DIRECTORY: Int32
Description: If the file specified by pathname is not a directory, the file fails to be opened. This constant is applicable to the open, open64, openat, and openat64 functions and belongs to the function parameter oflag. Values on different OSs are as follows:
- macOS: 0x00100000
- Others: 0x80000
NOTE
This constant will be deprecated in future releases.
Type: Int32
const O_DSYNC (deprecated)
public const O_DSYNC: Int32
Description: Waits for the physical I/O to complete upon each write operation. However, if the write operation does not affect reading of the data just written, it is unnecessary to wait for the file attribute to update. This constant is applicable to the open, open64, openat, and openat64 functions and belongs to the function parameter oflag. Values on different OSs are as follows:
- macOS: 0x400000
- Others: 0x1000
NOTE
This constant will be deprecated in future releases.
Type: Int32
const O_EXCL (deprecated)
public const O_EXCL: Int32
Description: Checks whether a file exists if O_CREAT is set. If the file does not exist, it will be created. Otherwise, an error occurs when the file is opened. In addition, if O_CREAT and O_EXCL are set at the same time and the file to be opened is a symbolic link, the file fails to be opened. This constant is applicable to the open, open64, openat, and openat64 functions and belongs to the function parameter oflag. Values on different OSs are as follows:
- macOS: 0x00000800
- Windows: 0x400
- Others: 0x80
NOTE
This constant will be deprecated in future releases.
Type: Int32
const O_NOCTTY (deprecated)
public const O_NOCTTY: Int32
Description: If the file to be opened is a terminal device, the file is not the control terminal of the process. This constant is applicable to the open, open64, openat, and openat64 functions and belongs to the function parameter oflag. Values on different OSs are as follows:
- macOS: 0x00020000
- Others: 0x100
NOTE
This constant will be deprecated in future releases.
Type: Int32
const O_NOFOLLOW (deprecated)
public const O_NOFOLLOW: Int32
Description: If the file specified by pathname is a single symbolic link, the file fails to be opened. This constant is applicable to the open, open64, openat, and openat64 functions and belongs to the function parameter oflag. Values on different OSs are as follows:
- macOS: 0x00000100
- Others: 0x20000
NOTE
This constant will be deprecated in future releases.
Type: Int32
const O_NONBLOCK (deprecated)
public const O_NONBLOCK: Int32
Description: Opens a file in non-blocking mode. That is, the I/O operation does not cause the called process to wait. This constant is applicable to the open, open64, openat, and openat64 functions and belongs to the function parameter oflag. Values on different OSs are as follows:
- macOS: 0x00000004
- Others: 0x800
NOTE
This constant will be deprecated in future releases.
Type: Int32
const O_RDONLY (deprecated)
public const O_RDONLY: Int32 = 0x0
Description: Opens a file in read-only mode. This constant is applicable to the open, open64, openat, and openat64 functions and belongs to the function parameter oflag.
NOTE
This constant will be deprecated in future releases.
Type: Int32
const O_RDWR (deprecated)
public const O_RDWR: Int32 = 0x2
Description: Opens a file in read or write mode. This constant is applicable to the open, open64, openat, and openat64 functions and belongs to the function parameter oflag.
NOTE
This constant will be deprecated in future releases.
Type: Int32
const O_RSYNC (deprecated)
public const O_RSYNC: Int32 = 0x101000
Description: This flag affects only read operations and must be used together with O_SYNC or O_DSYNC. If necessary, this flag blocks the read call until the data being read (and possible metadata) is flushed to the disk. This constant is applicable to the open, open64, openat, and openat64 functions and belongs to the function parameter oflag.
NOTE
This constant will be deprecated in future releases.
Type: Int32
const O_SYNC (deprecated)
public const O_SYNC: Int32
Description: Opens a file synchronously. This constant is applicable to the open, open64, openat, and openat64 functions and belongs to the function parameter oflag. Values on different OSs are as follows:
- macOS: 0x0080
- Others: 0x101000
NOTE
This constant will be deprecated in future releases.
Type: Int32
const O_TRUNC (deprecated)
public const O_TRUNC: Int32
Description: If the file exists and is writable, clears the file length to 0, making the data previously stored in the file disappear. This constant is applicable to the open, open64, openat, and openat64 functions and belongs to the function parameter oflag. Values on different OSs are as follows:
- macOS: 0x00000400
- Others: 0x200
NOTE
This constant will be deprecated in future releases.
Type: Int32
const O_WRONLY (deprecated)
public const O_WRONLY: Int32 = 0x1
Description: Opens a file in write-only mode. This constant is applicable to the open, open64, openat, and openat64 functions and belongs to the function parameter oflag.
NOTE
This constant will be deprecated in future releases.
Type: Int32
const R_OK (deprecated)
public const R_OK: Int32 = 0x4
Description: Tests the read permission on a file. This constant is applicable to the access and faccessat functions and belongs to the function parameter mode.
NOTE
This constant will be deprecated in future releases.
Type: Int32
const SEEK_CUR (deprecated)
public const SEEK_CUR: Int32 = 0x1
Description: Adds an offset to the current read or write location. This constant is applicable to the lseek function and belongs to the function parameter whence.
NOTE
This constant will be deprecated in future releases.
Type: Int32
const SEEK_END (deprecated)
public const SEEK_END: Int32 = 0x2
Description: Sets the read or write location to the end of the file and adds an offset. This constant is applicable to the lseek function and belongs to the function parameter whence.
NOTE
This constant will be deprecated in future releases.
Type: Int32
const SEEK_SET (deprecated)
public const SEEK_SET: Int32 = 0x0
Description: Specifies the new read or write location. This constant is applicable to the lseek function and belongs to the function parameter whence.
NOTE
This constant will be deprecated in future releases.
Type: Int32
const SIGABRT (deprecated)
public const SIGABRT: Int32 = 0x6
Description: Specifies an abnormal termination. The default action is terminate. This constant is applicable to the kill and killpg functions and belongs to the function parameter sig.
NOTE
This constant will be deprecated in future releases.
Type: Int32
const SIGALRM (deprecated)
public const SIGALRM: Int32 = 0xE
Description: Specifies that the timer expires. The default operation is terminate. This constant is applicable to the kill and killpg functions and belongs to the function parameter sig.
NOTE
This constant will be deprecated in future releases.
Type: Int32
const SIGBUS (deprecated)
public const SIGBUS: Int32
Description: Specifies a hardware fault. The default action is terminate. This constant is applicable to the kill and killpg functions and belongs to the function parameter sig. Values on different OSs are as follows:
- macOS: 0xA
- Others: 0x7
NOTE
This constant will be deprecated in future releases.
Type: Int32
const SIGCHLD (deprecated)
public const SIGCHLD: Int32
Description: Specifies that the subprocess status is changed. The default action is terminate. This constant is applicable to the kill and killpg functions and belongs to the function parameter sig. Values on different OSs are as follows:
- macOS: 0x14
- Others: 0x11
NOTE
This constant will be deprecated in future releases.
Type: Int32
const SIGCONT (deprecated)
public const SIGCONT: Int32
Description: Continues the pause process. The default action is continue or ignore. This constant is applicable to the kill and killpg functions and belongs to the function parameter sig. Values on different OSs are as follows:
- macOS: 0x13
- Others: 0x12
NOTE
This constant will be deprecated in future releases.
Type: Int32
const SIGFPE (deprecated)
public const SIGFPE: Int32 = 0x8
Description: Specifies an arithmetic error. The default action is terminate. This constant is applicable to the kill and killpg functions and belongs to the function parameter sig.
NOTE
This constant will be deprecated in future releases.
Type: Int32
const SIGHUP (deprecated)
public const SIGHUP: Int32 = 0x1
Description: Disconnects the connection. The default action is terminate. This constant is applicable to the kill and killpg functions and belongs to the function parameter sig.
NOTE
This constant will be deprecated in future releases.
Type: Int32
const SIGILL (deprecated)
public const SIGILL: Int32 = 0x4
Description: Specifies that the hardware instruction is invalid. The default action is terminate. This constant is applicable to the kill and killpg functions and belongs to the function parameter sig.
NOTE
This constant will be deprecated in future releases.
Type: Int32
const SIGINT (deprecated)
public const SIGINT: Int32 = 0x2
Description: Specifies a terminal interrupt character. The default action is terminate. This constant is applicable to the kill and killpg functions and belongs to the function parameter sig.
NOTE
This constant will be deprecated in future releases.
Type: Int32
const SIGIO (deprecated)
public const SIGIO: Int32
Description: Specifies asynchronous I/O. The default action is terminate. This constant is applicable to the kill and killpg functions and belongs to the function parameter sig. Values on different OSs are as follows:
- macOS: 0x17
- Others: 0x1D
NOTE
This constant will be deprecated in future releases.
Type: Int32
const SIGIOT (deprecated)
public const SIGIOT: Int32 = 0x6
Description: Specifies a hardware fault. The default action is terminate. This constant is applicable to the kill and killpg functions and belongs to the function parameter sig.
NOTE
This constant will be deprecated in future releases.
Type: Int32
const SIGKILL (deprecated)
public const SIGKILL: Int32 = 0x9
Description: Specifies termination. The default action is terminate. This constant is applicable to the kill and killpg functions and belongs to the function parameter sig.
NOTE
This constant will be deprecated in future releases.
Type: Int32
const SIGPIPE (deprecated)
public const SIGPIPE: Int32 = 0xD
Description: Writes data to the pipe of an unread process. The default action is terminate. This constant is applicable to the kill and killpg functions and belongs to the function parameter sig.
NOTE
This constant will be deprecated in future releases.
Type: Int32
const SIGPROF (deprecated)
public const SIGPROF: Int32 = 0x1B
Description: Specifies digest timeout. The default action is terminate. This constant is applicable to the kill and killpg functions and belongs to the function parameter sig.
NOTE
This constant will be deprecated in future releases.
Type: Int32
const SIGPWR (deprecated)
public const SIGPWR: Int32 = 0x1E
Description: Specifies power failure or restart. The system call is invalid. The default operation is terminate. This constant is applicable to the kill and killpg functions and belongs to the function parameter sig.
NOTE
This constant will be deprecated in future releases.
Type: Int32
const SIGQUIT (deprecated)
public const SIGQUIT: Int32 = 0x3
Description: Specifies a terminal quit character. The default action is terminate. This constant is applicable to the kill and killpg functions and belongs to the function parameter sig.
NOTE
This constant will be deprecated in future releases.
Type: Int32
const SIGSEGV (deprecated)
public const SIGSEGV: Int32 = 0xB
Description: Specifies invalid memory reference. The default action is terminate. This constant is applicable to the kill and killpg functions and belongs to the function parameter sig.
NOTE
This constant will be deprecated in future releases.
Type: Int32
const SIGSTKFLT (deprecated)
public const SIGSTKFLT: Int32 = 0x10
Description: Specifies a coprocessor stack fault. The default action is terminate. This constant is applicable to the kill and killpg functions and belongs to the function parameter sig.
NOTE
This constant will be deprecated in future releases.
Type: Int32
const SIGSTOP (deprecated)
public const SIGSTOP: Int32
Description: Specifies that the operation is stopped. The default action is terminate. This constant is applicable to the kill and killpg functions and belongs to the function parameter sig. Values on different OSs are as follows:
- macOS: 0x11
- Others: 0x13
NOTE
This constant will be deprecated in future releases.
Type: Int32
const SIGTERM (deprecated)
public const SIGTERM: Int32 = 0xF
Description: Specifies termination. The default action is terminate. This constant is applicable to the kill and killpg functions and belongs to the function parameter sig.
NOTE
This constant will be deprecated in future releases.
Type: Int32
const SIGTRAP (deprecated)
public const SIGTRAP: Int32 = 0x5
Description: Specifies a hardware fault. The default action is terminate. This constant is applicable to the kill and killpg functions and belongs to the function parameter sig.
NOTE
This constant will be deprecated in future releases.
Type: Int32
const SIGTSTP (deprecated)
public const SIGTSTP: Int32
Description: Specifies a terminal stop signal. The default action is terminate. This constant is applicable to the kill and killpg functions and belongs to the function parameter sig. Values on different OSs are as follows:
- macOS: 0x12
- Others: 0x14
NOTE
This constant will be deprecated in future releases.
Type: Int32
const SIGTTIN (deprecated)
public const SIGTTIN: Int32 = 0x15
Description: Reads the control tty in the background. The default action is terminate. This constant is applicable to the kill and killpg functions and belongs to the function parameter sig.
NOTE
This constant will be deprecated in future releases.
Type: Int32
const SIGTTOU (deprecated)
public const SIGTTOU: Int32 = 0x16
Description: Writes the control tty in the background. The default action is terminate. This constant is applicable to the kill and killpg functions and belongs to the function parameter sig.
NOTE
This constant will be deprecated in future releases.
Type: Int32
const SIGURG (deprecated)
public const SIGURG: Int32
Description: Specifies an emergency (socket). The default action is ignore. This constant is applicable to the kill and killpg functions and belongs to the function parameter sig. Values on different OSs are as follows:
- macOS: 0x10
- Others: 0x17
NOTE
This constant will be deprecated in future releases.
Type: Int32
const SIGUSR1 (deprecated)
public const SIGUSR1: Int32
Description: Specifies a user-defined signal. The default action is terminate. This constant is applicable to the kill and killpg functions and belongs to the function parameter sig. Values on different OSs are as follows:
- macOS: 0x1E
- Others: 0xA
NOTE
This constant will be deprecated in future releases.
Type: Int32
const SIGUSR2 (deprecated)
public const SIGUSR2: Int32
Description: Specifies a user-defined signal. The default action is terminate. This constant is applicable to the kill and killpg functions and belongs to the function parameter sig. Values on different OSs are as follows:
- macOS: 0x1F
- Others: 0xC
NOTE
This constant will be deprecated in future releases.
Type: Int32
const SIGVTALRM (deprecated)
public const SIGVTALRM: Int32 = 0x1A
Description: Specifies a virtual time alarm. The default operation is terminate. This constant is applicable to the kill and killpg functions and belongs to the function parameter sig.
NOTE
This constant will be deprecated in future releases.
Type: Int32
const SIGWINCH (deprecated)
public const SIGWINCH: Int32 = 0x1C
Description: Changes the terminal window size. The default action is terminate. This constant is applicable to the kill and killpg functions and belongs to the function parameter sig.
NOTE
This constant will be deprecated in future releases.
Type: Int32
const SIGXCPU (deprecated)
public const SIGXCPU: Int32 = 0x18
Description: Specifies that CPU usage exceeds the upper limit. The default action is terminate. This constant is applicable to the kill and killpg functions and belongs to the function parameter sig.
NOTE
This constant will be deprecated in future releases.
Type: Int32
const SIGXFSZ (deprecated)
public const SIGXFSZ: Int32 = 0x19
Description: Specifies that the file length exceeds the upper limit. The default action is terminate. This constant is applicable to the kill and killpg functions and belongs to the function parameter sig.
NOTE
This constant will be deprecated in future releases.
Type: Int32
const S_IFBLK (deprecated)
public const S_IFBLK: UInt32 = 0x6000
Description: Specifies that the file type is block device. This constant is applicable to the isType function and belongs to the function parameter mode.
NOTE
This constant will be deprecated in future releases.
Type: UInt32
const S_IFCHR (deprecated)
public const S_IFCHR: UInt32 = 0x2000
Description: Specifies that the file type is character device. This constant is applicable to the isType function and belongs to the function parameter mode.
NOTE
This constant will be deprecated in future releases.
Type: UInt32
const S_IFDIR (deprecated)
public const S_IFDIR: UInt32 = 0x4000
Description: Specifies that the file type is directory. This constant is applicable to the isType function and belongs to the function parameter mode.
NOTE
This constant will be deprecated in future releases.
Type: UInt32
const S_IFIFO (deprecated)
public const S_IFIFO: UInt32 = 0x1000
Description: Specifies that the file type is FIFO. This constant is applicable to the isType function and belongs to the function parameter mode.
NOTE
This constant will be deprecated in future releases.
Type: UInt32
const S_IFLNK (deprecated)
public const S_IFLNK: UInt32 = 0xA000
Description: Specifies that the file type is soft link. This constant is applicable to the isType function and belongs to the function parameter mode.
NOTE
This constant will be deprecated in future releases.
Type: UInt32
const S_IFREG (deprecated)
public const S_IFREG: UInt32 = 0x8000
Description: Specifies that the file type is regular. This constant is applicable to the isType function and belongs to the function parameter mode.
NOTE
This constant will be deprecated in future releases.
Type: UInt32
const S_IFSOCK (deprecated)
public const S_IFSOCK: UInt32 = 0xC000
Description: Specifies that the file type is socket. This constant is applicable to the isType function and belongs to the function parameter mode.
NOTE
This constant will be deprecated in future releases.
Type: UInt32
const S_IRGRP (deprecated)
public const S_IRGRP: UInt32 = 0x20
Description: Indicates that the file user group has the read permission on the file. This constant is applicable to the open, open64, openat, openat64, chmod(mode), fchmod(mode), fchmodat(mode), and creat functions and belongs to the function parameter flag.
NOTE
This constant will be deprecated in future releases.
Type: UInt32
const S_IROTH (deprecated)
public const S_IROTH: UInt32 = 0x4
Description: Indicates that other users have the read permission on the file. This constant is applicable to the open, open64, openat, openat64, chmod(mode), fchmod(mode), fchmodat(mode), and creat functions and belongs to the function parameter flag.
NOTE
This constant will be deprecated in future releases.
Type: UInt32
const S_IRUSR (deprecated)
public const S_IRUSR: UInt32 = 0x100
Description: Indicates that the file owner has the read permission on the file. This constant is applicable to the open, open64, openat, openat64, chmod(mode), fchmod(mode), fchmodat(mode), and creat functions and belongs to the function parameter flag.
NOTE
This constant will be deprecated in future releases.
Type: UInt32
const S_IRWXG (deprecated)
public const S_IRWXG: UInt32 = 0x38
Description: Indicates that the file user group has the read, write, and execute permissions on the file. This constant is applicable to the open, open64, openat, openat64, chmod(mode), fchmod(mode), fchmodat(mode), and creat functions and belongs to the function parameter flag.
NOTE
This constant will be deprecated in future releases.
Type: UInt32
const S_IRWXO (deprecated)
public const S_IRWXO: UInt32 = 0x7
Description: Indicates that other users have the read, write, and execute permissions on the file. This constant is applicable to the open, open64, openat, openat64, chmod(mode), fchmod(mode), fchmodat(mode), and creat functions and belongs to the function parameter flag.
NOTE
This constant will be deprecated in future releases.
Type: UInt32
const S_IRWXU (deprecated)
public const S_IRWXU: UInt32 = 0x1C0
Description: Indicates that the file owner has the read, write, and execute permissions on the file. This constant is applicable to the open, open64, openat, openat64, chmod(mode), fchmod(mode), fchmodat(mode), and creat functions and belongs to the function parameter flag.
NOTE
This constant will be deprecated in future releases.
Type: UInt32
const S_IWGRP (deprecated)
public const S_IWGRP: UInt32 = 0x10
Description: Indicates that the file user group has the write permission on the file. This constant is applicable to the open, open64, openat, openat64, chmod(mode), fchmod(mode), fchmodat(mode), and creat functions and belongs to the function parameter flag.
NOTE
This constant will be deprecated in future releases.
Type: UInt32
const S_IWOTH (deprecated)
public const S_IWOTH: UInt32 = 0x2
Description: Indicates that other users have the write permission on the file. This constant is applicable to the open, open64, openat, openat64, chmod(mode), fchmod(mode), fchmodat(mode), and creat functions and belongs to the function parameter flag.
NOTE
This constant will be deprecated in future releases.
Type: UInt32
const S_IWUSR (deprecated)
public const S_IWUSR: UInt32 = 0x80
Description: Indicates that the file owner has the write permission on the file. This constant is applicable to the open, open64, openat, openat64, chmod(mode), fchmod(mode), fchmodat(mode), and creat functions and belongs to the function parameter flag.
NOTE
This constant will be deprecated in future releases.
Type: UInt32
const S_IXGRP (deprecated)
public const S_IXGRP: UInt32 = 0x8
Description: Indicates that the file user group has the execute permission on the file. This constant is applicable to the open, open64, openat, openat64, chmod(mode), fchmod(mode), fchmodat(mode), and creat functions and belongs to the function parameter flag.
NOTE
This constant will be deprecated in future releases.
Type: UInt32
const S_IXOTH (deprecated)
public const S_IXOTH: UInt32 = 0x1
Description: Indicates that other users have the execute permission on the file. This constant is applicable to the open, open64, openat, openat64, chmod(mode), fchmod(mode), fchmodat(mode), and creat functions and belongs to the function parameter flag.
NOTE
This constant will be deprecated in future releases.
Type: UInt32
const S_IXUSR (deprecated)
public const S_IXUSR: UInt32 = 0x40
Description: Indicates that the file owner has the execute permission on the file. This constant is applicable to the open, open64, openat, openat64, chmod(mode), fchmod(mode), fchmodat(mode), and creat functions and belongs to the function parameter flag.
NOTE
This constant will be deprecated in future releases.
const W_OK (deprecated)
public const W_OK: Int32 = 0x2
Description: Tests the write permission on a file. This constant is applicable to the access and faccessat functions and belongs to the function parameter mode.
NOTE
This constant will be deprecated in future releases.
Type: UInt32
const X_OK (deprecated)
public const X_OK: Int32 = 0x1
Description: Tests the execute permission on a file. This constant is applicable to the access and faccessat functions and belongs to the function parameter mode.
NOTE
This constant will be deprecated in future releases.
Type: Int32