File tree Expand file tree Collapse file tree 5 files changed +8
-5
lines changed Expand file tree Collapse file tree 5 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -1370,7 +1370,7 @@ Possible values:
1370
1370
1371
1371
Argument list too long.
1372
1372
1373
- - <a href =" #errno.acces " name =" errno.acces " ></a >** ` UVWASI_EACCES ` **
1373
+ - <a href =" #errno.access " name =" errno.access " ></a >** ` UVWASI_EACCESS ` **
1374
1374
1375
1375
Permission denied.
1376
1376
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ typedef uint64_t uvwasi_dircookie_t;
31
31
typedef uint16_t uvwasi_errno_t ;
32
32
#define UVWASI_ESUCCESS 0
33
33
#define UVWASI_E2BIG 1
34
- #define UVWASI_EACCES 2
34
+ #define UVWASI_EACCESS 2
35
35
#define UVWASI_EADDRINUSE 3
36
36
#define UVWASI_EADDRNOTAVAIL 4
37
37
#define UVWASI_EAFNOSUPPORT 5
Original file line number Diff line number Diff line change 28
28
uvwasi_errno_t uvwasi__translate_uv_error (int err ) {
29
29
switch (err ) {
30
30
case UV_E2BIG : return UVWASI_E2BIG ;
31
- case UV_EACCES : return UVWASI_EACCES ;
31
+ case UV_EACCES : return UVWASI_EACCESS ;
32
32
case UV_EADDRINUSE : return UVWASI_EADDRINUSE ;
33
33
case UV_EADDRNOTAVAIL : return UVWASI_EADDRNOTAVAIL ;
34
34
case UV_EAFNOSUPPORT : return UVWASI_EAFNOSUPPORT ;
Original file line number Diff line number Diff line change @@ -2410,7 +2410,7 @@ const char* uvwasi_embedder_err_code_to_string(uvwasi_errno_t code) {
2410
2410
switch (code ) {
2411
2411
#define V (errcode ) case errcode: return #errcode;
2412
2412
V (UVWASI_E2BIG )
2413
- V (UVWASI_EACCES )
2413
+ V (UVWASI_EACCESS )
2414
2414
V (UVWASI_EADDRINUSE )
2415
2415
V (UVWASI_EADDRNOTAVAIL )
2416
2416
V (UVWASI_EAFNOSUPPORT )
Original file line number Diff line number Diff line change 8
8
int main (void ) {
9
9
/* Verify error code translation. */
10
10
CHECK_ERR (E2BIG );
11
- CHECK_ERR (EACCES );
12
11
CHECK_ERR (EADDRINUSE );
13
12
CHECK_ERR (EADDRNOTAVAIL );
14
13
CHECK_ERR (EAFNOSUPPORT );
@@ -63,6 +62,10 @@ int main(void) {
63
62
CHECK_ERR (ETIMEDOUT );
64
63
CHECK_ERR (ETXTBSY );
65
64
CHECK_ERR (EXDEV );
65
+
66
+ /* EACCES is no longer consistently named. */
67
+ assert (uvwasi__translate_uv_error (UV_EACCES ) == UVWASI_EACCESS );
68
+
66
69
assert (uvwasi__translate_uv_error (0 ) == UVWASI_ESUCCESS );
67
70
assert (uvwasi__translate_uv_error (1 ) == 1 );
68
71
assert (uvwasi__translate_uv_error (-99999 ) == UVWASI_ENOSYS );
You can’t perform that action at this time.
0 commit comments