diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 03:11:56 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 03:11:56 +0000 |
commit | 51072358a714f050fe30227b6449206ae4186b3d (patch) | |
tree | 397b0ca06604448f29adb2e8c35e96a0c35cc614 /libc-bottom-half/headers/public/wasi/libc.h | |
parent | Adding debian version 0.0~git20230113.4362b18-3. (diff) | |
download | wasi-libc-51072358a714f050fe30227b6449206ae4186b3d.tar.xz wasi-libc-51072358a714f050fe30227b6449206ae4186b3d.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/libc.h')
-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). |