Skip to content

Commit f689673

Browse files
authored
Bulk fix of CRT Acrolinx issues, 23 of N (#4623)
1 parent c5c9bfe commit f689673

25 files changed

+69
-69
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ A nonzero return value indicates an error; in that case `errno` is set to one of
6262
| `EMFILE` | No more file descriptors available. |
6363
| `ENOENT` | File or path not found. |
6464

65-
If an invalid argument is passed to the function, the invalid parameter handler is invoked, as described in [Parameter validation](../parameter-validation.md). If execution is allowed to continue, `errno` is set to `EINVAL` and `EINVAL` is returned.
65+
If an invalid argument is passed to the function, the invalid parameter handler is invoked, as described in [Parameter validation](../parameter-validation.md). If execution is allowed to continue, `errno` is set to `EINVAL`, and `EINVAL` is returned.
6666

6767
For more information about these and other return codes, see [`errno`, `_doserrno`, `_sys_errlist`, and `_sys_nerr`](../errno-doserrno-sys-errlist-and-sys-nerr.md).
6868

docs/c-runtime-library/reference/spawnl-wspawnl.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ List of pointers to arguments. The *`arg0`* argument is usually a pointer to *`c
5151

5252
## Return value
5353

54-
The return value from a synchronous **`_spawnl`** or **`_wspawnl`** (`_P_WAIT` specified for *`mode`*) is the exit status of the new process. The return value from an asynchronous **`_spawnl`** or **`_wspawnl`** (`_P_NOWAIT` or `_P_NOWAITO` specified for *`mode`*) is the process handle. The exit status is 0 if the process terminated normally. You can set the exit status to a nonzero value if the spawned process specifically calls the `exit` routine with a nonzero argument. If the new process did not explicitly set a positive exit status, a positive exit status indicates an abnormal exit with an abort or an interrupt. A return value of -1 indicates an error (the new process is not started). In this case, `errno` is set to one of the following values.
54+
The return value from a synchronous **`_spawnl`** or **`_wspawnl`** (`_P_WAIT` specified for *`mode`*) is the exit status of the new process. The return value from an asynchronous **`_spawnl`** or **`_wspawnl`** (`_P_NOWAIT` or `_P_NOWAITO` specified for *`mode`*) is the process handle. The exit status is 0 if the process terminated normally. You can set the exit status to a nonzero value if the spawned process specifically calls the `exit` routine with a nonzero argument. If the new process didn't explicitly set a positive exit status, a positive exit status indicates an abnormal exit with an abort or an interrupt. A return value of -1 indicates an error (the new process isn't started). In this case, `errno` is set to one of the following values.
5555

5656
| Value | Description |
5757
|--|--|
5858
| `E2BIG` | Argument list exceeds 1024 bytes. |
5959
| `EINVAL` | *`mode`* argument is invalid. |
60-
| `ENOENT` | File or path is not found. |
61-
| `ENOEXEC` | Specified file is not executable or has invalid executable-file format. |
60+
| `ENOENT` | File or path isn't found. |
61+
| `ENOEXEC` | Specified file isn't executable or has invalid executable-file format. |
6262
| `ENOMEM` | Not enough memory is available to execute the new process. |
6363

6464
For more information about these and other return codes, see [`errno`, `_doserrno`, `_sys_errlist`, and `_sys_nerr`](../errno-doserrno-sys-errlist-and-sys-nerr.md).

docs/c-runtime-library/reference/spawnle-wspawnle.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@ Array of pointers to environment settings.
5656

5757
## Return value
5858

59-
The return value from a synchronous **`_spawnle`** or **`_wspawnle`** (`_P_WAIT` specified for *`mode`*) is the exit status of the new process. The return value from an asynchronous **`_spawnle`** or **`_wspawnle`** (`_P_NOWAIT` or `_P_NOWAITO` specified for *`mode`*) is the process handle. The exit status is 0 if the process terminated normally. You can set the exit status to a nonzero value if the spawned process specifically calls the `exit` routine with a nonzero argument. If the new process did not explicitly set a positive exit status, a positive exit status indicates an abnormal exit with an abort or an interrupt. A return value of -1 indicates an error (the new process is not started). In this case, `errno` is set to one of the following values.
59+
The return value from a synchronous **`_spawnle`** or **`_wspawnle`** (`_P_WAIT` specified for *`mode`*) is the exit status of the new process. The return value from an asynchronous **`_spawnle`** or **`_wspawnle`** (`_P_NOWAIT` or `_P_NOWAITO` specified for *`mode`*) is the process handle. The exit status is 0 if the process terminated normally. You can set the exit status to a nonzero value if the spawned process specifically calls the `exit` routine with a nonzero argument. If the new process didn't explicitly set a positive exit status, a positive exit status indicates an abnormal exit with an abort or an interrupt. A return value of -1 indicates an error (the new process isn't started). In this case, `errno` is set to one of the following values.
6060

6161
| Value | Description |
6262
|--|--|
6363
| `E2BIG` | Argument list exceeds 1024 bytes. |
6464
| `EINVAL` | *`mode`* argument is invalid. |
65-
| `ENOENT` | File or path is not found. |
66-
| `ENOEXEC` | Specified file is not executable or has invalid executable-file format. |
65+
| `ENOENT` | File or path isn't found. |
66+
| `ENOEXEC` | Specified file isn't executable or has invalid executable-file format. |
6767
| `ENOMEM` | Not enough memory is available to execute the new process. |
6868

6969
For more information about these and other return codes, see [`errno`, `_doserrno`, `_sys_errlist`, and `_sys_nerr`](../errno-doserrno-sys-errlist-and-sys-nerr.md).

docs/c-runtime-library/reference/spawnlp-wspawnlp.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ List of pointers to arguments. The *`arg0`* argument is usually a pointer to *`c
5151

5252
## Return value
5353

54-
The return value from a synchronous **`_spawnlp`** or **`_wspawnlp`** (`_P_WAIT` specified for *`mode`*) is the exit status of the new process. The return value from an asynchronous **`_spawnlp`** or **`_wspawnlp`** (`_P_NOWAIT` or `_P_NOWAITO` specified for *`mode`*) is the process handle. The exit status is 0 if the process terminated normally. You can set the exit status to a nonzero value if the spawned process specifically calls the `exit` routine with a nonzero argument. If the new process did not explicitly set a positive exit status, a positive exit status indicates an abnormal exit with an abort or an interrupt. A return value of -1 indicates an error (the new process is not started). In this case, `errno` is set to one of the following values.
54+
The return value from a synchronous **`_spawnlp`** or **`_wspawnlp`** (`_P_WAIT` specified for *`mode`*) is the exit status of the new process. The return value from an asynchronous **`_spawnlp`** or **`_wspawnlp`** (`_P_NOWAIT` or `_P_NOWAITO` specified for *`mode`*) is the process handle. The exit status is 0 if the process terminated normally. You can set the exit status to a nonzero value if the spawned process specifically calls the `exit` routine with a nonzero argument. If the new process didn't explicitly set a positive exit status, a positive exit status indicates an abnormal exit with an abort or an interrupt. A return value of -1 indicates an error (the new process isn't started). In this case, `errno` is set to one of the following values.
5555

5656
| Value | Description |
5757
|-|-|
5858
| `E2BIG` | Argument list exceeds 1024 bytes. |
5959
| `EINVAL` | *`mode`* argument is invalid. |
60-
| `ENOENT` | File or path is not found. |
61-
| `ENOEXEC` | Specified file is not executable or has invalid executable-file format. |
60+
| `ENOENT` | File or path isn't found. |
61+
| `ENOEXEC` | Specified file isn't executable or has invalid executable-file format. |
6262
| `ENOMEM` | Not enough memory is available to execute the new process. |
6363

6464
For more information about these and other return codes, see [`errno`, `_doserrno`, `_sys_errlist`, and `_sys_nerr`](../errno-doserrno-sys-errlist-and-sys-nerr.md).

docs/c-runtime-library/reference/spawnlpe-wspawnlpe.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@ Array of pointers to environment settings.
5656

5757
## Return value
5858

59-
The return value from a synchronous **`_spawnlpe`** or **`_wspawnlpe`** (`_P_WAIT` specified for *`mode`*) is the exit status of the new process. The return value from an asynchronous **`_spawnlpe`** or **`_wspawnlpe`** (`_P_NOWAIT` or `_P_NOWAITO` specified for *`mode`*) is the process handle. The exit status is 0 if the process terminated normally. You can set the exit status to a nonzero value if the spawned process specifically uses a nonzero argument to call the `exit` routine. If the new process did not explicitly set a positive exit status, a positive exit status indicates an abnormal exit caused by an abort or an interrupt. A return value of -1 indicates an error (the new process is not started). In this case, `errno` is set to one of the following values.
59+
The return value from a synchronous **`_spawnlpe`** or **`_wspawnlpe`** (`_P_WAIT` specified for *`mode`*) is the exit status of the new process. The return value from an asynchronous **`_spawnlpe`** or **`_wspawnlpe`** (`_P_NOWAIT` or `_P_NOWAITO` specified for *`mode`*) is the process handle. The exit status is 0 if the process terminated normally. You can set the exit status to a nonzero value if the spawned process specifically uses a nonzero argument to call the `exit` routine. If the new process didn't explicitly set a positive exit status, a positive exit status indicates an abnormal exit caused by an abort or an interrupt. A return value of -1 indicates an error (the new process isn't started). In this case, `errno` is set to one of the following values.
6060

6161
| Value | Description |
6262
|-|-|
6363
| `E2BIG` | Argument list exceeds 1024 bytes. |
6464
| `EINVAL` | *`mode`* argument is invalid. |
65-
| `ENOENT` | File or path is not found. |
66-
| `ENOEXEC` | Specified file is not executable or has invalid executable-file format. |
65+
| `ENOENT` | File or path isn't found. |
66+
| `ENOEXEC` | Specified file isn't executable or has invalid executable-file format. |
6767
| `ENOMEM` | Not enough memory is available to execute the new process. |
6868

6969
For more information about these and other return codes, see [`errno`, `_doserrno`, `_sys_errlist`, and `_sys_nerr`](../errno-doserrno-sys-errlist-and-sys-nerr.md).

docs/c-runtime-library/reference/spawnv-wspawnv.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ Array of pointers to arguments. The argument *`argv[0]`* is usually a pointer to
4545

4646
## Return value
4747

48-
The return value from a synchronous **`_spawnv`** or **`_wspawnv`** (`_P_WAIT` specified for *`mode`*) is the exit status of the new process. The return value from an asynchronous **`_spawnv`** or **`_wspawnv`** (`_P_NOWAIT` or `_P_NOWAITO` specified for *`mode`*) is the process handle. The exit status is 0 if the process terminated normally. You can set the exit status to a nonzero value if the spawned process specifically calls the `exit` routine with a nonzero argument. If the new process did not explicitly set a positive exit status, a positive exit status indicates an abnormal exit with an abort or an interrupt. A return value of -1 indicates an error (the new process is not started). In this case, `errno` is set to one of the following values.
48+
The return value from a synchronous **`_spawnv`** or **`_wspawnv`** (`_P_WAIT` specified for *`mode`*) is the exit status of the new process. The return value from an asynchronous **`_spawnv`** or **`_wspawnv`** (`_P_NOWAIT` or `_P_NOWAITO` specified for *`mode`*) is the process handle. The exit status is 0 if the process terminated normally. You can set the exit status to a nonzero value if the spawned process specifically calls the `exit` routine with a nonzero argument. If the new process didn't explicitly set a positive exit status, a positive exit status indicates an abnormal exit with an abort or an interrupt. A return value of -1 indicates an error (the new process isn't started). In this case, `errno` is set to one of the following values.
4949

5050
| Value | Description |
5151
|-|-|
5252
| `E2BIG` | Argument list exceeds 1024 bytes. |
5353
| `EINVAL` | *`mode`* argument is invalid. |
54-
| `ENOENT` | File or path is not found. |
55-
| `ENOEXEC` | Specified file is not executable or has invalid executable-file format. |
54+
| `ENOENT` | File or path isn't found. |
55+
| `ENOEXEC` | Specified file isn't executable or has invalid executable-file format. |
5656
| `ENOMEM` | Not enough memory is available to execute the new process. |
5757

5858
For more information about these and other return codes, see [`errno`, `_doserrno`, `_sys_errlist`, and `_sys_nerr`](../errno-doserrno-sys-errlist-and-sys-nerr.md).

docs/c-runtime-library/reference/spawnve-wspawnve.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@ Array of pointers to environment settings.
5050

5151
## Return value
5252

53-
The return value from a synchronous **`_spawnve`** or **`_wspawnve`** (`_P_WAIT` specified for *`mode`*) is the exit status of the new process. The return value from an asynchronous **`_spawnve`** or **`_wspawnve`** (`_P_NOWAIT` or `_P_NOWAITO` specified for *`mode`*) is the process handle. The exit status is 0 if the process terminated normally. You can set the exit status to a nonzero value if the spawned process specifically calls the `exit` routine with a nonzero argument. If the new process did not explicitly set a positive exit status, a positive exit status indicates an abnormal exit with an abort or an interrupt. A return value of -1 indicates an error (the new process is not started). In this case, `errno` is set to one of the following values.
53+
The return value from a synchronous **`_spawnve`** or **`_wspawnve`** (`_P_WAIT` specified for *`mode`*) is the exit status of the new process. The return value from an asynchronous **`_spawnve`** or **`_wspawnve`** (`_P_NOWAIT` or `_P_NOWAITO` specified for *`mode`*) is the process handle. The exit status is 0 if the process terminated normally. You can set the exit status to a nonzero value if the spawned process specifically calls the `exit` routine with a nonzero argument. If the new process didn't explicitly set a positive exit status, a positive exit status indicates an abnormal exit with an abort or an interrupt. A return value of -1 indicates an error (the new process isn't started). In this case, `errno` is set to one of the following values.
5454

5555
| Value | Description |
5656
|-|-|
5757
| `E2BIG` | Argument list exceeds 1024 bytes. |
5858
| `EINVAL` | *`mode`* argument is invalid. |
59-
| `ENOENT` | File or path is not found. |
60-
| `ENOEXEC` | Specified file is not executable or has invalid executable-file format. |
59+
| `ENOENT` | File or path isn't found. |
60+
| `ENOEXEC` | Specified file isn't executable or has invalid executable-file format. |
6161
| `ENOMEM` | Not enough memory is available to execute the new process. |
6262

6363
For more information about these and other return codes, see [`errno`, `_doserrno`, `_sys_errlist`, and `_sys_nerr`](../errno-doserrno-sys-errlist-and-sys-nerr.md).

docs/c-runtime-library/reference/spawnvp-wspawnvp.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,17 @@ Array of pointers to arguments. The argument *`argv[0]`* is usually a pointer to
4545

4646
## Return value
4747

48-
The return value from a synchronous **`_spawnvp`** or **`_wspawnvp`** (`_P_WAIT` specified for *`mode`*) is the exit status of the new process. The return value from an asynchronous **`_spawnvp`** or **`_wspawnvp`** (`_P_NOWAIT` or `_P_NOWAITO` specified for *`mode`*) is the process handle. The exit status is 0 if the process terminated normally. You can set the exit status to a nonzero value if the spawned process specifically uses a nonzero argument to call the `exit` routine. If the new process did not explicitly set a positive exit status, a positive exit status indicates an abnormal exit with an abort or an interrupt. A return value of -1 indicates an error (the new process is not started). In this case, `errno` is set to one of the following values:
48+
The return value from a synchronous **`_spawnvp`** or **`_wspawnvp`** (`_P_WAIT` specified for *`mode`*) is the exit status of the new process. The return value from an asynchronous **`_spawnvp`** or **`_wspawnvp`** (`_P_NOWAIT` or `_P_NOWAITO` specified for *`mode`*) is the process handle. The exit status is 0 if the process terminated normally. You can set the exit status to a nonzero value if the spawned process specifically uses a nonzero argument to call the `exit` routine. If the new process didn't explicitly set a positive exit status, a positive exit status indicates an abnormal exit with an abort or an interrupt. A return value of -1 indicates an error (the new process isn't started). In this case, `errno` is set to one of the following values:
4949

5050
| Value | Description |
5151
|-|-|
5252
| `E2BIG` | Argument list exceeds 1024 bytes. |
5353
| `EINVAL` | *`mode`* argument is invalid. |
54-
| `ENOENT` | File or path is not found. |
55-
| `ENOEXEC` | Specified file is not executable or has invalid executable-file format. |
54+
| `ENOENT` | File or path isn't found. |
55+
| `ENOEXEC` | Specified file isn't executable or has invalid executable-file format. |
5656
| `ENOMEM` | Not enough memory is available to execute the new process. |
5757

58-
For more information about these, and other, return codes, see [`errno`, `_doserrno`, `_sys_errlist`, and `_sys_nerr`](../errno-doserrno-sys-errlist-and-sys-nerr.md).
58+
For more information about return codes, see [`errno`, `_doserrno`, `_sys_errlist`, and `_sys_nerr`](../errno-doserrno-sys-errlist-and-sys-nerr.md).
5959

6060
## Remarks
6161

docs/c-runtime-library/reference/splitpath-s-wsplitpath-s.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ms.assetid: 30fff3e2-cd00-4eb6-b5a2-65db79cb688b
1212
---
1313
# `_splitpath_s`, `_wsplitpath_s`
1414

15-
Breaks a path name into components. These are versions of [`_splitpath`, `_wsplitpath`](splitpath-wsplitpath.md) with security enhancements as described in [Security features in the CRT](../security-features-in-the-crt.md).
15+
Breaks a path name into components. These functions are versions of [`_splitpath`, `_wsplitpath`](splitpath-wsplitpath.md) with security enhancements as described in [Security features in the CRT](../security-features-in-the-crt.md).
1616

1717
## Syntax
1818

@@ -63,25 +63,25 @@ errno_t _wsplitpath_s(
6363
Full path.
6464

6565
*`drive`*\
66-
Drive letter, followed by a colon (**`:`**). You can pass `NULL` for this parameter if you do not need the drive letter.
66+
Drive letter, followed by a colon (**`:`**). You can pass `NULL` for this parameter if you don't need the drive letter.
6767

6868
*`driveNumberOfElements`*\
6969
The size of the *`drive`* buffer in single-byte or wide characters. If *`drive`* is `NULL`, this value must be 0.
7070

7171
*`dir`*\
72-
Directory path, including trailing slash. Forward slashes ( **`/`** ), backslashes ( **`\\`** ), or both may be used. You can pass `NULL` for this parameter if you do not need the directory path.
72+
Directory path, including trailing slash. Forward slashes ( **`/`** ), backslashes ( **`\\`** ), or both may be used. You can pass `NULL` for this parameter if you don't need the directory path.
7373

7474
*`dirNumberOfElements`*\
7575
The size of the *`dir`* buffer in single-byte or wide characters. If *`dir`* is `NULL`, this value must be 0.
7676

7777
*`fname`*\
78-
Base filename (without extension). You can pass `NULL` for this parameter if you do not need the filename.
78+
Base filename (without extension). You can pass `NULL` for this parameter if you don't need the filename.
7979

8080
*`nameNumberOfElements`*\
8181
The size of the *`fname`* buffer in single-byte or wide characters. If *`fname`* is `NULL`, this value must be 0.
8282

8383
*`ext`*\
84-
Filename extension, including leading period (**`.`**). You can pass `NULL` for this parameter if you do not need the filename extension.
84+
Filename extension, including leading period (**`.`**). You can pass `NULL` for this parameter if you don't need the filename extension.
8585

8686
*`extNumberOfElements`*\
8787
The size of *`ext`* buffer in single-byte or wide characters. If *`ext`* is `NULL`, this value must be 0.
@@ -131,7 +131,7 @@ The following table lists the values of the manifest constants.
131131
|`_MAX_FNAME`|256|
132132
|`_MAX_EXT`|256|
133133

134-
If the full path does not contain a component (for example, a filename), **`_splitpath_s`** assigns an empty string to the corresponding buffer.
134+
If the full path doesn't contain a component (for example, a filename), **`_splitpath_s`** assigns an empty string to the corresponding buffer.
135135

136136
In C++, using these functions is simplified by template overloads; the overloads can infer buffer length automatically, eliminating the need to specify a size argument. For more information, see [Secure template overloads](../secure-template-overloads.md).
137137

0 commit comments

Comments
 (0)