Skip to content

Correct inconsistent formatting for the _O_EXCL constant in the docs for the open functions #3821

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/c-runtime-library/reference/open-wopen.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ The **`_open`** function opens the file specified by *`filename`* and prepares i
| **`_O_CREAT`** | Creates a file and opens it for writing. Has no effect if the file specified by *filename* exists. The *pmode* argument is required when **`_O_CREAT`** is specified. |
| **`_O_CREAT`** | **`_O_SHORT_LIVED`** | Creates a file as temporary and if possible does not flush to disk. The *pmode* argument is required when **`_O_CREAT`** is specified. |
| **`_O_CREAT`** | **`_O_TEMPORARY`** | Creates a file as temporary; the file is deleted when the last file descriptor is closed. The *pmode* argument is required when **`_O_CREAT`** is specified. To preserve legacy behavior for app-compatibility, other processes are not prevented from deleting this file. |
| **`_O_CREAT`** | `_O_EXCL` | Returns an error value if a file specified by *filename* exists. Applies only when used with **`_O_CREAT`**. |
| **`_O_CREAT`** | **`_O_EXCL`** | Returns an error value if a file specified by *filename* exists. Applies only when used with **`_O_CREAT`**. |
| **`_O_NOINHERIT`** | Prevents creation of a shared file descriptor. |
| **`_O_RANDOM`** | Specifies that caching is optimized for, but not restricted to, random access from disk. |
| **`_O_RDONLY`** | Opens a file for reading only. Cannot be specified with **`_O_RDWR`** or **`_O_WRONLY`**. |
Expand Down
2 changes: 1 addition & 1 deletion docs/c-runtime-library/reference/sopen-s-wsopen-s.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ The integer expression *oflag* is formed by combining one or more manifest const
| **`_O_CREAT`** | Creates a file and opens it for writing. Has no effect if the file specified by *`filename`* exists. The *`pmode`* argument is required when **`_O_CREAT`** is specified. |
| **`_O_CREAT`** | **`_O_SHORT_LIVED`** | Creates a file as temporary and if possible does not flush to disk. The *`pmode`* argument is required when **`_O_CREAT`** is specified. |
| **`_O_CREAT`** | **`_O_TEMPORARY`** | Creates a file as temporary; the file is deleted when the last file descriptor is closed. The *`pmode`* argument is required when **`_O_CREAT`** is specified. To preserve legacy behavior for app-compatibility, other processes are not prevented from deleting this file. |
| **`_O_CREAT`** | `_O_EXCL` | Returns an error value if a file specified by *`filename`* exists. Applies only when used with **`_O_CREAT`**. |
| **`_O_CREAT`** | **`_O_EXCL`** | Returns an error value if a file specified by *`filename`* exists. Applies only when used with **`_O_CREAT`**. |
| **`_O_NOINHERIT`** | Prevents creation of a shared file descriptor. |
| **`_O_RANDOM`** | Specifies that caching is optimized for, but not restricted to, random access from disk. |
| **`_O_RDONLY`** | Opens a file for reading only. Cannot be specified with **`_O_RDWR`** or **`_O_WRONLY`**. |
Expand Down
2 changes: 1 addition & 1 deletion docs/c-runtime-library/reference/sopen-wsopen.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ The integer expression *oflag* is formed by combining one or more of the followi
| **_O_CREAT** | Creates a file and opens it for writing. Has no effect if the file specified by *filename* exists. The *pmode* argument is required when **_O_CREAT** is specified. |
| **_O_CREAT** | **_O_SHORT_LIVED** | Creates a file as temporary and if possible does not flush to disk. The *pmode* argument is required when **_O_CREAT** is specified. |
| **_O_CREAT** | **_O_TEMPORARY** | Creates a file as temporary; the file is deleted when the last file descriptor is closed. The *pmode* argument is required when **_O_CREAT** is specified. To preserve legacy behavior for app-compatibility, other processes are not prevented from deleting this file. |
| **_O_CREAT** | `_O_EXCL` | Returns an error value if a file specified by *filename* exists. Applies only when used with **_O_CREAT**. |
| **_O_CREAT** | **`_O_EXCL`** | Returns an error value if a file specified by *filename* exists. Applies only when used with **_O_CREAT**. |
| **_O_NOINHERIT** | Prevents creation of a shared file descriptor. |
| **_O_RANDOM** | Specifies that caching is optimized for, but not restricted to, random access from disk. |
| **_O_RDONLY** | Opens a file for reading only. Cannot be specified with **_O_RDWR** or **_O_WRONLY**. |
Expand Down