From Jason Turner

[fs.enum]

Diff to HTML by rtfpessoa

tmp/tmpg4pl5tww/{from.md → to.md} RENAMED
@@ -21,11 +21,11 @@ the meanings listed in [[fs.enum.file.type]]. The values of the
21
  constants are distinct.
22
 
23
  **Table: Enum class `file_type`** <a id="fs.enum.file.type">[fs.enum.file.type]</a>
24
 
25
  | Constant | Meaning |
26
- | ------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
27
  | `none` | The type of the file has not been determined or an error occurred while trying to determine the type. |
28
  | `not_found` | Pseudo-type indicating the file was not found. *The file not being found is not considered an error while determining the type of a file.* |
29
  | `regular` | Regular file |
30
  | `directory` | Directory file |
31
  | `symlink` | Symbolic link file |
@@ -48,11 +48,11 @@ exposition; implementations shall provide only a single definition.
48
  Every other constant in the table represents a distinct bitmask element.
49
 
50
  **Table: Enum class `copy_options`** <a id="fs.enum.copy.opts">[fs.enum.copy.opts]</a>
51
 
52
  | Constant | Meaning |
53
- | -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
54
  | `none` | (Default) Error; file already exists. |
55
  | `skip_existing` | Do not overwrite existing file, do not report an error. |
56
  | `overwrite_existing` | Overwrite the existing file. |
57
  | `update_existing` | Overwrite the existing file if it is older than the replacement file. \ohdrx{2}{Option group controlling `copy` function effects for subdirectories} |
58
  | `recursive` | Recursively copy subdirectories and their contents. \ohdrx{2}{Option group controlling `copy` function effects for symbolic links} |
@@ -70,11 +70,11 @@ specifies bitmask constants used to identify file permissions, with the
70
  meanings listed in [[fs.enum.perms]].
71
 
72
  **Table: Enum class `perms`** <a id="fs.enum.perms">[fs.enum.perms]</a>
73
 
74
  | Name | Value (octal) | POSIX macro | Definition or notes |
75
- | -------------- | ------------- | ----------- | ---------------------------------------------------------------------------------------------------------------- |
76
  | `none` | `0` | | There are no permissions set for the file. |
77
  | `owner_read` | `0400` | `S_IRUSR` | Read permission, owner |
78
  | `owner_write` | `0200` | `S_IWUSR` | Write permission, owner |
79
  | `owner_exec` | `0100` | `S_IXUSR` | Execute/search permission, owner |
80
  | `owner_all` | `0700` | `S_IRWXU` | Read, write, execute/search by owner;<br> `owner_read | owner_write | owner_exec` |
@@ -104,11 +104,11 @@ permissions operations, with the meanings listed in
104
  `permissions`.
105
 
106
  **Table: Enum class `perm_options`** <a id="fs.enum.perm.opts">[fs.enum.perm.opts]</a>
107
 
108
  | Name | Meaning |
109
- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
110
  | `replace` | `permissions` shall replace the file's permission bits with `perm` |
111
  | `add` | `permissions` shall replace the file's permission bits with the bitwise \logop{or} of `perm` and the file's current permission bits. |
112
  | `remove` | `permissions` shall replace the file's permission bits with the bitwise \logop{and} of the complement of `perm` and the file's current permission bits. |
113
  | `nofollow` | `permissions` shall change the permissions of a symbolic link itself rather than the permissions of the file the link resolves to. |
114
 
@@ -122,11 +122,11 @@ directory traversal options, with the meanings listed in
122
  every other constant in the table represents a distinct bitmask element.
123
 
124
  **Table: Enum class `directory_options`** <a id="fs.enum.dir.opts">[fs.enum.dir.opts]</a>
125
 
126
  | Name | Meaning |
127
- | -------------------------- | ------------------------------------------------------------------ |
128
  | `none` | (Default) Skip directory symlinks, permission denied is an error. |
129
  | `follow_directory_symlink` | Follow rather than skip directory symlinks. |
130
  | `skip_permission_denied` | Skip directories that would otherwise result in permission denied. |
131
 
132
 
 
21
  constants are distinct.
22
 
23
  **Table: Enum class `file_type`** <a id="fs.enum.file.type">[fs.enum.file.type]</a>
24
 
25
  | Constant | Meaning |
26
+ | ---------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
27
  | `none` | The type of the file has not been determined or an error occurred while trying to determine the type. |
28
  | `not_found` | Pseudo-type indicating the file was not found. *The file not being found is not considered an error while determining the type of a file.* |
29
  | `regular` | Regular file |
30
  | `directory` | Directory file |
31
  | `symlink` | Symbolic link file |
 
48
  Every other constant in the table represents a distinct bitmask element.
49
 
50
  **Table: Enum class `copy_options`** <a id="fs.enum.copy.opts">[fs.enum.copy.opts]</a>
51
 
52
  | Constant | Meaning |
53
+ | ---------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
54
  | `none` | (Default) Error; file already exists. |
55
  | `skip_existing` | Do not overwrite existing file, do not report an error. |
56
  | `overwrite_existing` | Overwrite the existing file. |
57
  | `update_existing` | Overwrite the existing file if it is older than the replacement file. \ohdrx{2}{Option group controlling `copy` function effects for subdirectories} |
58
  | `recursive` | Recursively copy subdirectories and their contents. \ohdrx{2}{Option group controlling `copy` function effects for symbolic links} |
 
70
  meanings listed in [[fs.enum.perms]].
71
 
72
  **Table: Enum class `perms`** <a id="fs.enum.perms">[fs.enum.perms]</a>
73
 
74
  | Name | Value (octal) | POSIX macro | Definition or notes |
75
+ | --------------------------------- | ------------- | ----------- | ---------------------------------------------------------------------------------------------------------------- |
76
  | `none` | `0` | | There are no permissions set for the file. |
77
  | `owner_read` | `0400` | `S_IRUSR` | Read permission, owner |
78
  | `owner_write` | `0200` | `S_IWUSR` | Write permission, owner |
79
  | `owner_exec` | `0100` | `S_IXUSR` | Execute/search permission, owner |
80
  | `owner_all` | `0700` | `S_IRWXU` | Read, write, execute/search by owner;<br> `owner_read | owner_write | owner_exec` |
 
104
  `permissions`.
105
 
106
  **Table: Enum class `perm_options`** <a id="fs.enum.perm.opts">[fs.enum.perm.opts]</a>
107
 
108
  | Name | Meaning |
109
+ | ------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
110
  | `replace` | `permissions` shall replace the file's permission bits with `perm` |
111
  | `add` | `permissions` shall replace the file's permission bits with the bitwise \logop{or} of `perm` and the file's current permission bits. |
112
  | `remove` | `permissions` shall replace the file's permission bits with the bitwise \logop{and} of the complement of `perm` and the file's current permission bits. |
113
  | `nofollow` | `permissions` shall change the permissions of a symbolic link itself rather than the permissions of the file the link resolves to. |
114
 
 
122
  every other constant in the table represents a distinct bitmask element.
123
 
124
  **Table: Enum class `directory_options`** <a id="fs.enum.dir.opts">[fs.enum.dir.opts]</a>
125
 
126
  | Name | Meaning |
127
+ | --------------------------------------------------------- | ------------------------------------------------------------------ |
128
  | `none` | (Default) Skip directory symlinks, permission denied is an error. |
129
  | `follow_directory_symlink` | Follow rather than skip directory symlinks. |
130
  | `skip_permission_denied` | Skip directories that would otherwise result in permission denied. |
131
 
132