Skip to content

Commit 42e086c

Browse files
authored
Merge pull request #3821 from mstorsjo/inconsistent-formatting
Correct inconsistent formatting for the `_O_EXCL` constant in the docs for the open functions
2 parents dc88d84 + 2be0865 commit 42e086c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/c-runtime-library/reference/open-wopen.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ The **`_open`** function opens the file specified by *`filename`* and prepares i
7373
| **`_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. |
7474
| **`_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. |
7575
| **`_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. |
76-
| **`_O_CREAT`** | `_O_EXCL` | Returns an error value if a file specified by *filename* exists. Applies only when used with **`_O_CREAT`**. |
76+
| **`_O_CREAT`** | **`_O_EXCL`** | Returns an error value if a file specified by *filename* exists. Applies only when used with **`_O_CREAT`**. |
7777
| **`_O_NOINHERIT`** | Prevents creation of a shared file descriptor. |
7878
| **`_O_RANDOM`** | Specifies that caching is optimized for, but not restricted to, random access from disk. |
7979
| **`_O_RDONLY`** | Opens a file for reading only. Cannot be specified with **`_O_RDWR`** or **`_O_WRONLY`**. |

docs/c-runtime-library/reference/sopen-s-wsopen-s.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ The integer expression *oflag* is formed by combining one or more manifest const
8989
| **`_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. |
9090
| **`_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. |
9191
| **`_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. |
92-
| **`_O_CREAT`** | `_O_EXCL` | Returns an error value if a file specified by *`filename`* exists. Applies only when used with **`_O_CREAT`**. |
92+
| **`_O_CREAT`** | **`_O_EXCL`** | Returns an error value if a file specified by *`filename`* exists. Applies only when used with **`_O_CREAT`**. |
9393
| **`_O_NOINHERIT`** | Prevents creation of a shared file descriptor. |
9494
| **`_O_RANDOM`** | Specifies that caching is optimized for, but not restricted to, random access from disk. |
9595
| **`_O_RDONLY`** | Opens a file for reading only. Cannot be specified with **`_O_RDWR`** or **`_O_WRONLY`**. |

docs/c-runtime-library/reference/sopen-wsopen.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ The integer expression *oflag* is formed by combining one or more of the followi
8282
| **_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. |
8383
| **_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. |
8484
| **_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. |
85-
| **_O_CREAT** | `_O_EXCL` | Returns an error value if a file specified by *filename* exists. Applies only when used with **_O_CREAT**. |
85+
| **_O_CREAT** | **`_O_EXCL`** | Returns an error value if a file specified by *filename* exists. Applies only when used with **_O_CREAT**. |
8686
| **_O_NOINHERIT** | Prevents creation of a shared file descriptor. |
8787
| **_O_RANDOM** | Specifies that caching is optimized for, but not restricted to, random access from disk. |
8888
| **_O_RDONLY** | Opens a file for reading only. Cannot be specified with **_O_RDWR** or **_O_WRONLY**. |

0 commit comments

Comments
 (0)