| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 92a6138 commit 7ab7f97
4 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,7 +10,7 @@ extern "C" { | |||
| 10 | 10 | ||
| 11 | 11 | #define UVWASI_VERSION_MAJOR 0 | |
| 12 | 12 | #define UVWASI_VERSION_MINOR 0 | |
| 13 | - #define UVWASI_VERSION_PATCH 15 | ||
| 13 | + #define UVWASI_VERSION_PATCH 16 | ||
| 14 | 14 | #define UVWASI_VERSION_HEX ((UVWASI_VERSION_MAJOR << 16) | \ | |
| 15 | 15 | (UVWASI_VERSION_MINOR << 8) | \ | |
| 16 | 16 | (UVWASI_VERSION_PATCH)) | |
@@ -251,6 +251,10 @@ uvwasi_errno_t uvwasi_random_get(uvwasi_t* uvwasi, | |||
| 251 | 251 | void* buf, | |
| 252 | 252 | uvwasi_size_t buf_len); | |
| 253 | 253 | uvwasi_errno_t uvwasi_sched_yield(uvwasi_t* uvwasi); | |
| 254 | + uvwasi_errno_t uvwasi_sock_accept(uvwasi_t* uvwasi, | ||
| 255 | + uvwasi_fd_t sock, | ||
| 256 | + uvwasi_fdflags_t flags, | ||
| 257 | + uvwasi_fd_t* fd); | ||
| 254 | 258 | uvwasi_errno_t uvwasi_sock_recv(uvwasi_t* uvwasi, | |
| 255 | 259 | uvwasi_fd_t sock, | |
| 256 | 260 | const uvwasi_iovec_t* ri_data, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -214,6 +214,7 @@ typedef uint64_t uvwasi_rights_t; /* Bitfield */ | |||
| 214 | 214 | #define UVWASI_RIGHT_PATH_UNLINK_FILE (1 << 26) | |
| 215 | 215 | #define UVWASI_RIGHT_POLL_FD_READWRITE (1 << 27) | |
| 216 | 216 | #define UVWASI_RIGHT_SOCK_SHUTDOWN (1 << 28) | |
| 217 | + #define UVWASI_RIGHT_SOCK_ACCEPT (1 << 29) | ||
| 217 | 218 | ||
| 218 | 219 | typedef uint16_t uvwasi_roflags_t; /* Bitfield */ | |
| 219 | 220 | #define UVWASI_SOCK_RECV_DATA_TRUNCATED (1 << 0) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2557,6 +2557,15 @@ uvwasi_errno_t uvwasi_sock_shutdown(uvwasi_t* uvwasi, | |||
| 2557 | 2557 | return UVWASI_ENOTSUP; | |
| 2558 | 2558 | } | |
| 2559 | 2559 | ||
| 2560 | + uvwasi_errno_t uvwasi_sock_accept(uvwasi_t* uvwasi, | ||
| 2561 | + uvwasi_fd_t sock, | ||
| 2562 | + uvwasi_fdflags_t flags, | ||
| 2563 | + uvwasi_fd_t* fd) { | ||
| 2564 | + /* TODO(mhdawson): Needs implementation */ | ||
| 2565 | + UVWASI_DEBUG("uvwasi_sock_accept(uvwasi=%p, unimplemented)\n", uvwasi); | ||
| 2566 | + return UVWASI_ENOTSUP; | ||
| 2567 | + }; | ||
| 2568 | + | ||
| 2560 | 2569 | ||
| 2561 | 2570 | const char* uvwasi_embedder_err_code_to_string(uvwasi_errno_t code) { | |
| 2562 | 2571 | switch (code) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -31,7 +31,8 @@ | |||
| 31 | 31 | UVWASI_RIGHT_PATH_UNLINK_FILE | \ | |
| 32 | 32 | UVWASI_RIGHT_PATH_REMOVE_DIRECTORY | \ | |
| 33 | 33 | UVWASI_RIGHT_POLL_FD_READWRITE | \ | |
| 34 | - UVWASI_RIGHT_SOCK_SHUTDOWN) | ||
| 34 | + UVWASI_RIGHT_SOCK_SHUTDOWN | \ | ||
| 35 | + UVWASI_RIGHT_SOCK_ACCEPT) | ||
| 35 | 36 | ||
| 36 | 37 | #define UVWASI__RIGHTS_BLOCK_DEVICE_BASE UVWASI__RIGHTS_ALL | |
| 37 | 38 | #define UVWASI__RIGHTS_BLOCK_DEVICE_INHERITING UVWASI__RIGHTS_ALL | |
| Back | FazBrowse Home | New Git URL |
0 commit comments