summaryrefslogtreecommitdiffstats
path: root/libc-bottom-half/headers/public/wasi
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 03:11:57 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 03:11:57 +0000
commitb53100936633bc1e227c229df05dc969d4dd79e6 (patch)
tree28743f8667d59adf086ecad3d48961780e3184a0 /libc-bottom-half/headers/public/wasi
parentReleasing progress-linux version 0.0~git20230113.4362b18-3~progress7.99u1. (diff)
downloadwasi-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.h6
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).