@@ -118,6 +118,8 @@ Word grpc_stream(Word service_ptr, Word service_size, Word service_name_ptr, Wor
118
118
Word grpc_cancel (Word token);
119
119
Word grpc_close (Word token);
120
120
Word grpc_send (Word token, Word message_ptr, Word message_size, Word end_stream);
121
+ Word secure_getenv (Word name);
122
+ Word getpid ();
121
123
122
124
Word set_tick_period_milliseconds (Word tick_period_milliseconds);
123
125
Word get_current_time_nanoseconds (Word result_uint64_ptr);
@@ -146,6 +148,12 @@ Word wasi_unstable_args_sizes_get(Word argc_ptr, Word argv_buf_size_ptr);
146
148
void wasi_unstable_proc_exit (Word);
147
149
Word wasi_unstable_clock_time_get (Word, uint64_t , Word);
148
150
Word wasi_unstable_random_get (Word, Word);
151
+ Word wasi_unstable_fd_filestat_get (Word fd, Word statOut);
152
+ Word wasi_unstable_fd_readdir (Word fd, Word buf, Word buf_len, int64_t cookie, Word bufused);
153
+ Word wasi_unstable_path_filestat_get (Word fd, Word flags, Word path, Word path_len, Word statOut);
154
+ Word wasi_unstable_fd_fdstat_set_flags (Word fd, Word flags);
155
+ Word wasi_unstable_sched_yield ();
156
+ Word wasi_unstable_poll_oneoff (Word in, Word out, Word nsubscriptions, Word nevents);
149
157
Word pthread_equal (Word left, Word right);
150
158
void emscripten_notify_memory_growth (Word);
151
159
@@ -163,7 +171,8 @@ void emscripten_notify_memory_growth(Word);
163
171
_f (get_current_time_nanoseconds) _f(define_metric) \
164
172
_f (increment_metric) _f(record_metric) _f(get_metric) \
165
173
_f (set_effective_context) _f(done) \
166
- _f (call_foreign_function)
174
+ _f (call_foreign_function) _f(getpid) \
175
+ _f (secure_getenv)
167
176
168
177
#define FOR_ALL_HOST_FUNCTIONS_ABI_SPECIFIC (_f ) \
169
178
_f (get_configuration) _f(continue_request) _f(continue_response) _f(clear_route_cache) \
@@ -172,7 +181,9 @@ void emscripten_notify_memory_growth(Word);
172
181
#define FOR_ALL_WASI_FUNCTIONS (_f ) \
173
182
_f (fd_write) _f(fd_read) _f(fd_seek) _f(fd_close) _f(fd_fdstat_get) _f(environ_get) \
174
183
_f (environ_sizes_get) _f(args_get) _f(args_sizes_get) _f(clock_time_get) _f(random_get) \
175
- _f (proc_exit) _f(path_open) _f(fd_prestat_get) _f(fd_prestat_dir_name)
184
+ _f (proc_exit) _f(path_open) _f(fd_prestat_get) _f(fd_prestat_dir_name) \
185
+ _f (fd_filestat_get) _f(fd_readdir) _f(path_filestat_get) _f(fd_fdstat_set_flags) \
186
+ _f (sched_yield) _f(poll_oneoff)
176
187
177
188
// Helpers to generate a stub to pass to VM, in place of a restricted proxy-wasm capability.
178
189
#define _CREATE_PROXY_WASM_STUB (_fn ) \
0 commit comments