diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 03:11:57 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 03:11:57 +0000 |
commit | b53100936633bc1e227c229df05dc969d4dd79e6 (patch) | |
tree | 28743f8667d59adf086ecad3d48961780e3184a0 /libc-bottom-half/headers/public/wasi | |
parent | Releasing progress-linux version 0.0~git20230113.4362b18-3~progress7.99u1. (diff) | |
download | wasi-libc-b53100936633bc1e227c229df05dc969d4dd79e6.tar.xz wasi-libc-b53100936633bc1e227c229df05dc969d4dd79e6.zip |
Merging upstream version 0.0~git20230621.7018e24.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'libc-bottom-half/headers/public/wasi')
-rw-r--r-- | libc-bottom-half/headers/public/wasi/libc.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libc-bottom-half/headers/public/wasi/libc.h b/libc-bottom-half/headers/public/wasi/libc.h index b50518b..18d8e9e 100644 --- a/libc-bottom-half/headers/public/wasi/libc.h +++ b/libc-bottom-half/headers/public/wasi/libc.h @@ -11,6 +11,12 @@ extern "C" { struct stat; struct timespec; +/// Populate libc's preopen tables. This is normally done automatically +/// just before it's needed, however if you call `__wasi_fd_renumber` or +/// `__wasi_fd_close` directly, and you need the preopens to be accurate +/// afterward, you should call this before doing so. +void __wasilibc_populate_preopens(void); + /// Register the given pre-opened file descriptor under the given path. /// /// This function does not take ownership of `prefix` (it makes its own copy). |