From f0c29d4211c474e242633ee73a16184c2759c063 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Tue, 12 Dec 2023 14:30:26 -0700 Subject: [PATCH] fix out-of-date comment in descriptor_table.c Signed-off-by: Joel Dice --- .../src/libc/sys/wasi_preview2/descriptor_table.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/libc-bottom-half/cloudlibc/src/libc/sys/wasi_preview2/descriptor_table.c b/libc-bottom-half/cloudlibc/src/libc/sys/wasi_preview2/descriptor_table.c index da4a0d004..c347d3bc9 100644 --- a/libc-bottom-half/cloudlibc/src/libc/sys/wasi_preview2/descriptor_table.c +++ b/libc-bottom-half/cloudlibc/src/libc/sys/wasi_preview2/descriptor_table.c @@ -12,13 +12,13 @@ * As of this writing, we still rely on the WASI Preview 1 adapter * (https://github.com/bytecodealliance/wasmtime/tree/main/crates/wasi-preview1-component-adapter) * to manage non-socket descriptors, so currently this table only tracks TCP and - * UDP sockets. We use the adapter's `adapter_open_badfd` and `fd_close` - * functions to reserve and later close descriptors to avoid confusion (e.g. if - * an application tries to use Preview 1 host functions directly for socket - * operations rather than go through `wasi-libc`). Eventually, we'll switch - * `wasi-libc` over to Preview 2 entirely, at which point we'll no longer need - * the adapter. At that point, all file descriptors will be managed exclusively - * in this table. + * UDP sockets. We use the adapter's `adapter_open_badfd` and + * `adapter_close_badfd` functions to reserve and later close descriptors to + * avoid confusion (e.g. if an application tries to use Preview 1 host functions + * directly for socket operations rather than go through `wasi-libc`). + * Eventually, we'll switch `wasi-libc` over to Preview 2 entirely, at which + * point we'll no longer need the adapter. At that point, all file descriptors + * will be managed exclusively in this table. */ #include