Skip to content

Commit 04f2799

Browse files
cjihrigcodebytere
authored andcommitted
deps: update to uvwasi 0.0.5
This version improves file descriptor renumbering, and as a result fixes uvwasi_fd_renumber(). PR-URL: #31432 Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: David Carlier <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Jiawen Geng <[email protected]>
1 parent aa26662 commit 04f2799

File tree

9 files changed

+340
-294
lines changed

9 files changed

+340
-294
lines changed

deps/uvwasi/include/fd_table.h

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,21 @@ uvwasi_errno_t uvwasi_fd_table_init(struct uvwasi_s* uvwasi,
3131
uint32_t init_size);
3232
void uvwasi_fd_table_free(struct uvwasi_s* uvwasi,
3333
struct uvwasi_fd_table_t* table);
34+
uvwasi_errno_t uvwasi_fd_table_insert(struct uvwasi_s* uvwasi,
35+
struct uvwasi_fd_table_t* table,
36+
uv_file fd,
37+
const char* mapped_path,
38+
const char* real_path,
39+
uvwasi_filetype_t type,
40+
uvwasi_rights_t rights_base,
41+
uvwasi_rights_t rights_inheriting,
42+
int preopen,
43+
struct uvwasi_fd_wrap_t** wrap);
3444
uvwasi_errno_t uvwasi_fd_table_insert_preopen(struct uvwasi_s* uvwasi,
3545
struct uvwasi_fd_table_t* table,
3646
const uv_file fd,
3747
const char* path,
3848
const char* real_path);
39-
uvwasi_errno_t uvwasi_fd_table_insert_fd(struct uvwasi_s* uvwasi,
40-
struct uvwasi_fd_table_t* table,
41-
const uv_file fd,
42-
const int flags,
43-
const char* path,
44-
uvwasi_rights_t rights_base,
45-
uvwasi_rights_t rights_inheriting,
46-
struct uvwasi_fd_wrap_t* wrap);
4749
uvwasi_errno_t uvwasi_fd_table_get(const struct uvwasi_fd_table_t* table,
4850
const uvwasi_fd_t id,
4951
struct uvwasi_fd_wrap_t** wrap,
@@ -52,5 +54,9 @@ uvwasi_errno_t uvwasi_fd_table_get(const struct uvwasi_fd_table_t* table,
5254
uvwasi_errno_t uvwasi_fd_table_remove(struct uvwasi_s* uvwasi,
5355
struct uvwasi_fd_table_t* table,
5456
const uvwasi_fd_t id);
57+
uvwasi_errno_t uvwasi_fd_table_renumber(struct uvwasi_s* uvwasi,
58+
struct uvwasi_fd_table_t* table,
59+
const uvwasi_fd_t dst,
60+
const uvwasi_fd_t src);
5561

5662
#endif /* __UVWASI_FD_TABLE_H__ */

deps/uvwasi/include/uvwasi.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ extern "C" {
1111

1212
#define UVWASI_VERSION_MAJOR 0
1313
#define UVWASI_VERSION_MINOR 0
14-
#define UVWASI_VERSION_PATCH 4
14+
#define UVWASI_VERSION_PATCH 5
1515
#define UVWASI_VERSION_HEX ((UVWASI_VERSION_MAJOR << 16) | \
1616
(UVWASI_VERSION_MINOR << 8) | \
1717
(UVWASI_VERSION_PATCH))

0 commit comments

Comments
 (0)