std.posix

Overview

The posix package adapts to POSIX system APIs

This package is available on Linux, macOS, Windows, and HarmonyOS.

NOTE

This package will be deprecated in future releases.

API List

Functions

NameDescriptionSupported OS
open(String, Int32) (deprecated)Opens a file and returns a new file descriptor, or returns -1 when the operation fails.Linux, Windows, macOS, and HarmonyOS
open(String, Int32, UInt32) (deprecated)Opens a file and returns a new file descriptor, or returns -1 when the operation fails.Linux, Windows, macOS, and HarmonyOS
access(String, Int32) (deprecated)Checks whether a certain permission is granted on a file. If so, 0 is returned. Otherwise, -1 is returned.Linux, Windows, macOS, and HarmonyOS
chdir(String) (deprecated)Changes the current working directory of the called process by specifying a path.Linux, Windows, macOS, and HarmonyOS
chmod(String, UInt32) (deprecated)Modifies the file access permission.Linux, Windows, macOS, and HarmonyOS
chown(String, UInt32, UInt32) (deprecated)Modifies the file owner and the group to which the file owner belongs.Linux, macOS, and HarmonyOS
close(Int32) (deprecated)Closes a file. close triggers data writeback to the disk and releases resources occupied by the file.Linux, Windows, macOS, and HarmonyOS
creat(String, UInt32) (deprecated)Creates a file and returns a file descriptor, or returns -1 when the operation fails.Linux, Windows, macOS, and HarmonyOS
dup(Int32) (deprecated)Copies and returns the file descriptor specified by the original fd parameter.Linux, Windows, macOS, and HarmonyOS
dup2(Int32, Int32) (deprecated)Copies the file descriptor specified by oldfd and returns it to the newfd parameter.Linux, Windows, macOS, and HarmonyOS
faccessat(Int32, String, Int32, Int32) (deprecated)Checks whether a certain permission is granted on the file specified by fd. If so, 0 is returned; otherwise, -1 is returned.Linux, macOS, and HarmonyOS
fchdir(Int32) (deprecated)Changes the current working directory of the called process by specifying the descriptor of a file path.Linux, macOS, and HarmonyOS
fchmod(Int32, UInt32) (deprecated)Modifies the file access permission corresponding to the file descriptor.Linux, Windows, macOS, and HarmonyOS
fchmodat(Int32, String, UInt32, Int32) (deprecated)Modifies the file access permission corresponding to the file descriptor.Linux, Windows, macOS, and HarmonyOS
fchown(Int32, UInt32, UInt32) (deprecated)Modifies the file owner corresponding to fd and the group to which the file owner belongs.Linux, macOS, and HarmonyOS
fchownat(Int32, String, UInt32, UInt32, Int32) (deprecated)Modifies the file owner corresponding to the file descriptor and the group to which the file owner belongs.Linux, macOS, and HarmonyOS
getcwd() (deprecated)Obtains the absolute path of the working directory of the current process.Linux, Windows, macOS, and HarmonyOS
getgid() (deprecated)Obtains the user group ID.Linux, macOS, and HarmonyOS
getgroups(Int32, CPointer<UInt32>) (deprecated)Obtains the code of the group to which the current user belongs.Linux, macOS, and HarmonyOS
gethostname() (deprecated)Obtains the host name, which is usually the name of a host on the TCP/IP network.Linux, macOS, and HarmonyOS
getlogin() (deprecated)Obtains the current login name.Linux, macOS, and HarmonyOS
getos() (deprecated)Obtains the Linux system information from the /proc/version file.Linux
getpgid(Int32) (deprecated)Obtains PGID of the process specified by pid. If pid is 0, ID of the called process is returned.Linux, macOS, and HarmonyOS
getpgrp() (deprecated)Obtains the parent process ID of the called process.Linux, macOS, and HarmonyOS
getpid() (deprecated)Obtains ID(PID) of the called process.Linux, Windows, macOS, and HarmonyOS
getppid() (deprecated)Obtains the parent process ID of the called process.Linux, macOS, and HarmonyOS
getuid() (deprecated)Obtains the real user ID of the called process.Linux, macOS, and HarmonyOS
isBlk(String) (deprecated)Checks whether the input object is a block device and returns a Boolean value.Linux, Windows, macOS, and HarmonyOS
isChr(String) (deprecated)Checks whether the input object is a character device and returns a Boolean value.Linux, Windows, macOS, and HarmonyOS
isDir(String) (deprecated)Checks whether the input object is a folder and returns a Boolean value.Linux, Windows, macOS, and HarmonyOS
isFIFO(String) (deprecated)Checks whether the input object is an FIFO file and returns a Boolean value.Linux, macOS, and HarmonyOS
isLnk(String) (deprecated)Checks whether the input object is a soft link and returns a Boolean value.Linux, macOS, and HarmonyOS
isReg(String) (deprecated)Checks whether the input object is a regular file and returns a Boolean value.Linux, Windows, macOS, and HarmonyOS
isSock(String) (deprecated)Checks whether the input object is a socket file and returns a Boolean value.Linux, macOS, and HarmonyOS
isType(String, UInt32) (deprecated)Checks whether a file is of a specified type.Linux, macOS, and HarmonyOS
isatty(Int32) (deprecated)Tests whether the file descriptor references the terminal. If so, true is returned. Otherwise, false is returned.Linux, Windows, macOS, and HarmonyOS
kill(Int32, Int32) (deprecated)Sends any signal to any process group or process.Linux, macOS, and HarmonyOS
killpg(Int32, Int32) (deprecated)Sends sig to the process group pgrp. If pgrp is 0, killpg() sends the signal to the process group to which the called process belongs.Linux, macOS, and HarmonyOS
lchown(String, UInt32, UInt32) (deprecated)Modifies the file link owner and the group to which the owner belongs.Linux and macOS
link(String, String) (deprecated)Creates a link for an existing file. A file can have multiple directory entries pointing to its i-node.Linux, macOS, and HarmonyOS
linkat(Int32, String, Int32, String, Int32) (deprecated)Creates a file link relative to the directory file descriptor.Linux, macOS, and HarmonyOS
lseek(Int32, Int64, Int32) (deprecated)Moves the read or write location in file reading or writing.Linux, Windows, macOS, and HarmonyOS
nice(Int32) (deprecated)Changes the priority of the current thread.Linux, macOS, and HarmonyOS
open64(String, Int32) (deprecated)Opens a file and returns a new file descriptor, or returns -1 when the operation fails.Linux and HarmonyOS
open64(String, Int32, UInt32) (deprecated)Opens a file and returns a new file descriptor, or returns -1 when the operation fails.Linux and HarmonyOS
openat(Int32, String, Int32) (deprecated)Opens a file and returns a new file descriptor, or returns -1 when the operation fails.Linux, macOS, and HarmonyOS
openat(Int32, String, Int32, UInt32) (deprecated)Opens a file and returns a new file descriptor, or returns -1 when the operation fails.Linux, macOS, and HarmonyOS
openat64(Int32, String, Int32) (deprecated)Opens a file and returns a new file descriptor, or returns -1 when the operation fails.Linux, macOS, and HarmonyOS
openat64(Int32, String, Int32, UInt32) (deprecated)Opens a file and returns a new file descriptor, or returns -1 when the operation fails.Linux, macOS, and HarmonyOS
pread(Int32, CPointer<UInt8>, UIntNative, Int32) (deprecated)Transfers nbyte of the file specified by fd to the memory specified by buffer.Linux, macOS, and HarmonyOS
pwrite(Int32, CPointer<UInt8>, UIntNative, Int32) (deprecated)Writes nbyte in the memory specified by buffer to the file specified by fd, starting from the specified offset location.Linux, macOS, and HarmonyOS
read(Int32, CPointer<UInt8>, UIntNative) (deprecated)Transfers nbyte of the file specified by fd to the memory specified by buffer.Linux, Windows, macOS, and HarmonyOS
remove(String) (deprecated)Deletes a file or directory.Linux, Windows, macOS, and HarmonyOS
rename(String, String) (deprecated)Renames a file. If necessary, the directory where the file is located is moved.Linux, Windows, macOS, and HarmonyOS
renameat(Int32, String, Int32, String) (deprecated)Renames a file. If necessary, the directory where the file is located is moved.Linux, macOS, and HarmonyOS
setgid(UInt32) (deprecated)Sets the valid group ID of the called process. Permissions are required to run this function.Linux and macOS
sethostname(String) (deprecated)Sets the host name. Only the superuser can call this function.Linux and macOS
setpgid(Int32, Int32) (deprecated)Sets the group ID specified by pid to the group ID specified by pgrp.Linux, macOS, and HarmonyOS
setpgrp() (deprecated)Sets the group ID to which the current process belongs to the process ID of the current process. This function is equivalent to the called setpgid(0, 0).Linux, macOS, and HarmonyOS
setuid(UInt32) (deprecated)Sets the valid user ID of the called process. Permissions are required to run this function.Linux and macOS
symlink(String, String) (deprecated)Creates a link named symPath to a file specified by path.Linux, macOS, and HarmonyOS
symlinkat(String, Int32, String) (deprecated)Creates a link named symPath to a file specified by path and fd.Linux, macOS, and HarmonyOS
ttyname(Int32) (deprecated)Returns the terminal name.Linux, Windows, macOS, and HarmonyOS
umask(UInt32) (deprecated)Sets a permission mask.Linux, Windows, macOS, and HarmonyOS
unlink(String) (deprecated)Deletes a file from the file system.Linux, macOS, and HarmonyOS
unlinkat(Int32, String, Int32) (deprecated)Deletes a file from the file system.Linux, macOS, and HarmonyOS
write(Int32, CPointer<UInt8>, UIntNative) (deprecated)Writes nbyte in the memory specified by buffer to a file specified by fd.Linux, Windows, macOS, and HarmonyOS

Constants

NameDescriptionSupported OS
AT_EMPTY_PATH (deprecated)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.Linux, Windows, and HarmonyOS
AT_REMOVEDIR (deprecated)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.Linux, Windows, macOS, and HarmonyOS
O_CLOEXEC (deprecated)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.Linux, macOS, and HarmonyOS
O_DIRECTORY (deprecated)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.Linux, macOS, and HarmonyOS
O_CREAT (deprecated)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.Linux, Windows, macOS, and HarmonyOS
O_DSYNC (deprecated)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.Linux, macOS, and HarmonyOS
O_EXCL (deprecated)If O_CREAT is also set, checks whether the file exists. If the file does not exist, it will be created. Otherwise, an error occurs when the file is opened. 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.Linux, Windows, macOS, and HarmonyOS
O_NOCTTY (deprecated)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.Linux, macOS, and HarmonyOS
O_NOFOLLOW (deprecated)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.Linux, macOS, and HarmonyOS
O_NONBLOCK (deprecated)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.Linux, macOS, and HarmonyOS
O_SYNC (deprecated)Opens a file synchronously. This constant is applicable to the open, open64, openat, and openat64 functions and belongs to the function parameter oflag.Linux, macOS, and HarmonyOS
O_RDONLY (deprecated)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.Linux, Windows, macOS, and HarmonyOS
O_RDWR (deprecated)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.Linux, Windows, macOS, and HarmonyOS
O_WRONLY (deprecated)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.Linux, Windows, macOS, and HarmonyOS
O_APPEND (deprecated)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.Linux, Windows, macOS, and HarmonyOS
O_RSYNC (deprecated)This flag affects only the read operation and must be used together with O_SYNC or O_DSYNC. If necessary, this flag blocks the read call until the data (and possible metadata) being read is flushed to the disk. This constant is applicable to the open, open64, openat, and openat64 functions and belongs to the function parameter oflag.Linux and HarmonyOS
O_TRUNC (deprecated)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.Linux, Windows, macOS, and HarmonyOS
R_OK (deprecated)Tests the read permission on a file. This constant is applicable to the access and faccessat functions and belongs to the function parameter mode.Linux, Windows, macOS, and HarmonyOS
W_OK (deprecated)Tests the write permission on a file. This constant is applicable to the access and faccessat functions and belongs to the function parameter mode.Linux, Windows, macOS, and HarmonyOS
X_OK (deprecated)Tests the execute permission on a file. This constant is applicable to the access and faccessat functions and belongs to the function parameter mode.Linux, Windows, macOS, and HarmonyOS
F_OK (deprecated)Tests whether a file exists. This constant is applicable to the access and faccessat functions and belongs to the function parameter mode.Linux, Windows, macOS, and HarmonyOS
SEEK_SET (deprecated)Specifies the new read or write location. This constant is applicable to the lseek function and belongs to the function parameter whence.Linux, Windows, macOS, and HarmonyOS
SEEK_CUR (deprecated)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.Linux, Windows, macOS, and HarmonyOS
SEEK_END (deprecated)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.Linux, Windows, macOS, and HarmonyOS
SIGABRT (deprecated)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.Linux, Windows, macOS, and HarmonyOS
SIGBUS (deprecated)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.Linux, Windows, macOS, and HarmonyOS
SIGFPE (deprecated)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.Linux, Windows, macOS, and HarmonyOS
SIGKILL (deprecated)Specifies a termination. The default action is terminate. This constant is applicable to the kill and killpg functions and belongs to the function parameter sig.Linux, Windows, macOS, and HarmonyOS
SIGCONT (deprecated)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.Linux, Windows, macOS, and HarmonyOS
SIGHUP (deprecated)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.Linux, Windows, macOS, and HarmonyOS
SIGINT (deprecated)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.Linux, Windows, macOS, and HarmonyOS
SIGQUIT (deprecated)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.Linux, Windows, macOS, and HarmonyOS
SIGILL (deprecated)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.Linux, Windows, macOS, and HarmonyOS
SIGTRAP (deprecated)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.Linux, Windows, macOS, and HarmonyOS
SIGIOT (deprecated)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.Linux, Windows, macOS, and HarmonyOS
SIGIO (deprecated)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.Linux, Windows, macOS, and HarmonyOS
SIGPIPE (deprecated)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.Linux, Windows, macOS, and HarmonyOS
SIGALRM (deprecated)Specifies that the timer expires. The default action is terminate. This constant is applicable to the kill and killpg functions and belongs to the function parameter sig.Linux, Windows, macOS, and HarmonyOS
SIGPWR (deprecated)Specifies power failure or restart. The system call is invalid. The default action is terminate. This constant is applicable to the kill and killpg functions and belongs to the function parameter sig.Linux, Windows, and HarmonyOS
SIGSEGV (deprecated)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.Linux, Windows, macOS, and HarmonyOS
SIGSTOP (deprecated)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.Linux, Windows, macOS, and HarmonyOS
SIGTERM (deprecated)Specifies a termination. The default action is terminate. This constant is applicable to the kill and killpg functions and belongs to the function parameter sig.Linux, Windows, macOS, and HarmonyOS
SIGSTKFLT (deprecated)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.Linux, Windows, and HarmonyOS
SIGCHLD (deprecated)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.Linux, Windows, macOS, and HarmonyOS
SIGTSTP (deprecated)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.Linux, Windows, macOS, and HarmonyOS
SIGTTIN (deprecated)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.Linux, Windows, macOS, and HarmonyOS
SIGTTOU (deprecated)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.Linux, Windows, macOS, and HarmonyOS
SIGURG (deprecated)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.Linux, Windows, macOS, and HarmonyOS
SIGUSR1 (deprecated)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.Linux, Windows, macOS, and HarmonyOS
SIGUSR2 (deprecated)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.Linux, Windows, macOS, and HarmonyOS
SIGVTALRM (deprecated)Specifies a virtual time alarm. The default action is terminate. This constant is applicable to the kill and killpg functions and belongs to the function parameter sig.Linux, Windows, macOS, and HarmonyOS
SIGPROF (deprecated)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.Linux, Windows, macOS, and HarmonyOS
SIGWINCH (deprecated)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.Linux, Windows, macOS, and HarmonyOS
SIGXCPU (deprecated)Specifies that the 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.Linux, Windows, macOS, and HarmonyOS
SIGXFSZ (deprecated)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.Linux, Windows, macOS, and HarmonyOS
S_IRUSR (deprecated)Specifies 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.Linux, Windows, macOS, and HarmonyOS
S_IWUSR (deprecated)Specifies 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.Linux, Windows, macOS, and HarmonyOS
S_IRGRP (deprecated)Specifies 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.Linux, Windows, macOS, and HarmonyOS
S_IWGRP (deprecated)Specifies 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.Linux, Windows, macOS, and HarmonyOS
S_IFREG (deprecated)Specifies that the file type is regular. This constant is applicable to the isType function and belongs to the function parameter mode.Linux, Windows, macOS, and HarmonyOS
S_IFBLK (deprecated)Specifies that the file type is block device. This constant is applicable to the isType function and belongs to the function parameter mode.Linux, Windows, macOS, and HarmonyOS
S_IFDIR (deprecated)Specifies that the file type is directory. This constant is applicable to the isType function and belongs to the function parameter mode.Linux, Windows, macOS, and HarmonyOS
S_IFCHR (deprecated)Specifies that the file type is character device. This constant is applicable to the isType function and belongs to the function parameter mode.Linux, Windows, macOS, and HarmonyOS
S_IFIFO (deprecated)Specifies that the file type is FIFO. This constant is applicable to the isType function and belongs to the function parameter mode.Linux, Windows, macOS, and HarmonyOS
S_IFLNK (deprecated)Specifies that the file type is soft link. This constant is applicable to the isType function and belongs to the function parameter mode.Linux, Windows, macOS, and HarmonyOS
S_IFSOCK (deprecated)Specifies that the file type is socket. This constant is applicable to the isType function and belongs to the function parameter mode.Linux, Windows, macOS, and HarmonyOS
S_IROTH (deprecated)Specifies 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.Linux, Windows, macOS, and HarmonyOS
S_IRWXG (deprecated)Specifies that the file user group has 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.Linux, Windows, macOS, and HarmonyOS
S_IRWXU (deprecated)Specifies that the file owner has 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.Linux, Windows, macOS, and HarmonyOS
S_IWOTH (deprecated)Specifies 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.Linux, Windows, macOS, and HarmonyOS
S_IXOTH (deprecated)Specifies 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.Linux, Windows, macOS, and HarmonyOS
S_IRWXO (deprecated)Specifies that other users have 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.Linux, Windows, macOS, and HarmonyOS
S_IXGRP (deprecated)Specifies 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.Linux, Windows, macOS, and HarmonyOS
S_IXUSR (deprecated)Specifies 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.Linux, Windows, macOS, and HarmonyOS