Name | Meaning | |
native_format | The native pathname format. | |
generic_format | The generic pathname format. | |
auto_format | The interpretation of the format of the character sequence is
implementation-defined. The implementation may inspect the content of the character sequence to
determine the format. Recommended practice: For POSIX-based systems, native and generic formats are equivalent
and the character sequence should always be interpreted in the same way. |
Constant | Meaning | |
The type of the file has not been determined or an error occurred while
trying to determine the type. | ||
Regular file | ||
Directory file | ||
Symbolic link file | ||
Block special file | ||
Character special file | ||
FIFO or pipe file | ||
Socket file | ||
The file exists but the type cannot be determined |
Option group controlling copy_file function effects for existing target files | ||
Constant | Meaning | |
(Default) Error; file already exists. | ||
Do not overwrite existing file, do not report an error. | ||
Overwrite the existing file. | ||
Overwrite the existing file if it is older than the replacement file. | ||
Option group controlling copy function effects for subdirectories | ||
Constant | Meaning | |
(Default) Do not copy subdirectories. | ||
Recursively copy subdirectories and their contents. | ||
Option group controlling copy function effects for symbolic links | ||
Constant | Meaning | |
(Default) Follow symbolic links. | ||
Copy symbolic links as symbolic links rather than copying the files that
they point to. | ||
Ignore symbolic links. | ||
Option group controlling copy function effects for choosing the form of copying | ||
Constant | Meaning | |
(Default) Copy content. | ||
Copy directory structure only, do not copy non-directory files. | ||
Make hard links instead of copies of files. |
Name | Value | POSIX | Definition or notes | |
(octal) | macro | |||
0 | There are no permissions set for the file. | |||
0400 | S_IRUSR | Read permission, owner | ||
0200 | S_IWUSR | Write permission, owner | ||
0100 | S_IXUSR | Execute/search permission, owner | ||
0700 | S_IRWXU | Read, write, execute/search by owner; owner_read | owner_write | owner_exec | ||
040 | S_IRGRP | Read permission, group | ||
020 | S_IWGRP | Write permission, group | ||
010 | S_IXGRP | Execute/search permission, group | ||
070 | S_IRWXG | Read, write, execute/search by group; group_read | group_write | group_exec | ||
04 | S_IROTH | Read permission, others | ||
02 | S_IWOTH | Write permission, others | ||
01 | S_IXOTH | Execute/search permission, others | ||
07 | S_IRWXO | Read, write, execute/search by others; others_read | others_write | others_exec | ||
0777 | owner_all | group_all | others_all | |||
04000 | S_ISUID | Set-user-ID on execution | ||
02000 | S_ISGID | Set-group-ID on execution | ||
01000 | S_ISVTX | Operating system dependent. | ||
07777 | all | set_uid | set_gid | sticky_bit | |||
0xFFFF | The permissions are not known, such as when a file_status object
is created without specifying the permissions |
Name | Meaning | |
permissions shall replace the file's permission bits with perm | ||
permissions shall replace the file's permission bits with
the bitwise or of perm and the file's current permission bits. | ||
permissions shall replace the file's permission bits with
the bitwise and of the complement of perm and the file's current permission bits. | ||
permissions shall change the permissions of a symbolic link itself
rather than the permissions of the file the link resolves to. |
Name | Meaning | |
(Default) Skip directory symlinks, permission denied is an error. | ||
Follow rather than skip directory symlinks. | ||
Skip directories that would otherwise result in permission denied. |