You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `errno` constants are values assigned to [`errno`](./errno-doserrno-sys-errlist-and-sys-nerr.md) for various error conditions.
18
+
The `errno` constants are values assigned to [`errno`](errno-doserrno-sys-errlist-and-sys-nerr.md) for various error conditions.
19
19
20
20
`ERRNO.H` contains the definitions of the `errno` values. However, not all the definitions given in `ERRNO.H` are used in 32-bit Windows operating systems. Some of the values in `ERRNO.H` are present to maintain compatibility with the UNIX family of operating systems. The `errno` values in a 32-bit Windows operating system are a subset of the values for `errno` in UNIX systems.
21
21
22
-
The `errno` value isn't necessarily the same as the actual error code returned by a system call from the Windows operating system. To access the actual operating system error code, use the [`_doserrno`](./errno-doserrno-sys-errlist-and-sys-nerr.md) variable, which contains this value.
22
+
The `errno` value isn't necessarily the same as the actual error code returned by a system call from the Windows operating system. To access the actual operating system error code, use the [`_doserrno`](errno-doserrno-sys-errlist-and-sys-nerr.md) variable, which contains this value.
23
23
24
24
The following `errno` values are supported:
25
25
@@ -34,7 +34,7 @@ The following `errno` values are supported:
34
34
|`EDEADLK`| Resource deadlock would occur. | 36 |
35
35
|`EDEADLOCK`| Same as `EDEADLK` for compatibility with older Microsoft C versions. | 36 |
36
36
|`EDOM`| Math argument. The argument to a math function isn't in the domain of the function. | 33 |
37
-
|`EEXIST`|Files exists. An attempt has been made to create a file that already exists. For example, the `_O_CREAT` and `_O_EXCL` flags are specified in an `_open` call, but the named file already exists. | 17 |
37
+
|`EEXIST`|File exists. An attempt has been made to create a file that already exists. For example, the `_O_CREAT` and `_O_EXCL` flags are specified in an `_open` call, but the named file already exists. | 17 |
38
38
|`EFAULT`| Bad address. | 14 |
39
39
|`EFBIG`| File too large. | 27 |
40
40
|`EILSEQ`| Illegal sequence of bytes (for example, in an `MBCS` string). | 42 |
@@ -50,7 +50,7 @@ The following `errno` values are supported:
50
50
|`ENOENT`| No such file or directory. The specified file or directory doesn't exist or can't be found. This message can occur whenever a specified file doesn't exist or a component of a path doesn't specify an existing directory. | 2 |
51
51
|`ENOEXEC`| Exec format error. An attempt was made to execute a file that isn't executable or that has an invalid executable-file format. | 8 |
52
52
|`ENOLCK`| No locks available. | 39 |
53
-
|`ENOMEM`| Not enough memory is available for the attempted operator. For example, this message can occur when insufficient memory is available to execute a child process, or when the allocation request in a `_getcwd` call can't be satisfied. | 12 |
53
+
|`ENOMEM`| Not enough memory is available for the attempted operation. For example, this message can occur when insufficient memory is available to execute a child process, or when the allocation request in a `_getcwd` call can't be satisfied. | 12 |
54
54
|`ENOSPC`| No space left on device. No more space for writing is available on the device (for example, when the disk is full). | 28 |
55
55
|`ENOSYS`| Function not supported. | 40 |
56
56
|`ENOTDIR`| Not a directory. | 20 |
@@ -60,11 +60,11 @@ The following `errno` values are supported:
60
60
|`EPERM`| Operation not permitted. | 1 |
61
61
|`EPIPE`| Broken pipe. | 32 |
62
62
|`ERANGE`| Result too large. An argument to a math function is too large, resulting in partial or total loss of significance in the result. This error can also occur in other functions when an argument is larger than expected (for example, when the *`buffer`* argument to `_getcwd` is longer than expected). | 34 |
63
-
|`EROFS`| Readonly file system. | 30 |
63
+
|`EROFS`| Read-only file system. | 30 |
64
64
|`ESPIPE`| Invalid seek. | 29 |
65
65
|`ESRCH`| No such process. | 3 |
66
66
|`EXDEV`| Cross-device link. An attempt was made to move a file to a different device (using the `rename` function). | 18 |
67
-
|`STRUNCATE`| A string copy or concatenation resulted in a truncated string. See [`_TRUNCATE`](./truncate.md). | 80 |
67
+
|`STRUNCATE`| A string copy or concatenation resulted in a truncated string. See [`_TRUNCATE`](truncate.md). | 80 |
68
68
69
69
The following values are supported for compatibility with POSIX:
70
70
@@ -84,8 +84,8 @@ The following values are supported for compatibility with POSIX:
84
84
|`EIDRM`| Identifier removed. | 111 |
85
85
|`EINPROGRESS`| Operation in progress. | 112 |
86
86
|`EISCONN`| Already connected. | 113 |
87
-
|`ELOOP`| Too many symbolic link levels. | 114 |
88
-
|`EMSGSIZE`| Message size. | 115 |
87
+
|`ELOOP`| Too many levels of symbolic links. | 114 |
88
+
|`EMSGSIZE`| Message too long. | 115 |
89
89
|`ENETDOWN`| Network down. | 116 |
90
90
|`ENETRESET`| Network reset. | 117 |
91
91
|`ENETUNREACH`| Network unreachable. | 118 |
@@ -114,4 +114,4 @@ The following values are supported for compatibility with POSIX:
0 commit comments