deps: update to uvwasi 0.0.10 · nodejs/node@f710dbf · GitHub
Skip to content

Commit f710dbf

Browse files
cjihrigaddaleax
authored andcommitted
deps: update to uvwasi 0.0.10
Notable changes: - The uvwasi_preopen_t now uses const char* for the mapped_path and real_path fields. Previously, these were not `const`. - uvwasi_path_filestat_get() now properly handles the UVWASI_LOOKUP_SYMLINK_FOLLOW flag. - uvwasi_options_init() has been added to reduce the boilerplate code associated with initializing uvwasi_options_t's. - The DEBUG() macro has been renamed to UVWASI_DEBUG() to reduce naming conflicts with other projects. - A compilation error on NetBSD 8.2 has been fixed. - The uvwasi_fd_filestat_set_times() and uvwasi_path_filestat_set_times() functions now have proper implementations. Fixes: #34510 PR-URL: #34623 Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent fc612d5 commit f710dbf

5 files changed

Lines changed: 387 additions & 256 deletions

File tree

deps/uvwasi/include/uvwasi.h

Lines changed: 4 additions & 3 deletions

deps/uvwasi/include/wasi_serdes.h

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,20 @@
55

66
/* Basic uint{8,16,32,64}_t read/write functions. */
77

8-
#define BASIC_TYPE_(name, type) \
8+
#define BASIC_TYPE(name, type) \
99
void uvwasi_serdes_write_##name(void* ptr, size_t offset, type value); \
1010
type uvwasi_serdes_read_##name(const void* ptr, size_t offset); \
1111

12-
#define BASIC_TYPE(type) BASIC_TYPE_(type, type)
13-
#define BASIC_TYPE_UVWASI(type) BASIC_TYPE_(type, uvwasi_##type)
12+
#define BASIC_TYPE_UVWASI(type) BASIC_TYPE(type, uvwasi_##type)
1413

1514
#define UVWASI_SERDES_SIZE_uint8_t sizeof(uint8_t)
16-
BASIC_TYPE(uint8_t)
15+
BASIC_TYPE(uint8_t, uint8_t)
1716
#define UVWASI_SERDES_SIZE_uint16_t sizeof(uint16_t)
18-
BASIC_TYPE(uint16_t)
17+
BASIC_TYPE(uint16_t, uint16_t)
1918
#define UVWASI_SERDES_SIZE_uint32_t sizeof(uint32_t)
20-
BASIC_TYPE(uint32_t)
19+
BASIC_TYPE(uint32_t, uint32_t)
2120
#define UVWASI_SERDES_SIZE_uint64_t sizeof(uint64_t)
22-
BASIC_TYPE(uint64_t)
21+
BASIC_TYPE(uint64_t, uint64_t)
2322

2423
#define UVWASI_SERDES_SIZE_advice_t sizeof(uvwasi_advice_t)
2524
BASIC_TYPE_UVWASI(advice_t)
@@ -80,7 +79,6 @@ BASIC_TYPE_UVWASI(whence_t)
8079

8180
#undef BASIC_TYPE_UVWASI
8281
#undef BASIC_TYPE
83-
#undef BASIC_TYPE_
8482

8583
/* WASI structure read/write functions. */
8684

deps/uvwasi/src/debug.h

Lines changed: 4 additions & 2 deletions

0 commit comments

Comments
 (0)