diff --git a/imports.md b/imports.md index cede769..ba18125 100644 --- a/imports.md +++ b/imports.md @@ -1170,11 +1170,6 @@ WASI.

[method]descriptor.open-at: func

Open a file or directory.

-

The returned descriptor is not guaranteed to be the lowest-numbered -descriptor not currently open/ it is randomized to prevent applications -from depending on making assumptions about indexes, since this is -error-prone in multi-threaded contexts. The returned descriptor is -guaranteed to be less than 2**31.

If flags contains descriptor-flags::mutate-directory, and the base descriptor doesn't have descriptor-flags::mutate-directory set, open-at fails with error-code::read-only.

diff --git a/wit/types.wit b/wit/types.wit index db3d968..db3f3c6 100644 --- a/wit/types.wit +++ b/wit/types.wit @@ -523,12 +523,6 @@ interface types { /// Open a file or directory. /// - /// The returned descriptor is not guaranteed to be the lowest-numbered - /// descriptor not currently open/ it is randomized to prevent applications - /// from depending on making assumptions about indexes, since this is - /// error-prone in multi-threaded contexts. The returned descriptor is - /// guaranteed to be less than 2**31. - /// /// If `flags` contains `descriptor-flags::mutate-directory`, and the base /// descriptor doesn't have `descriptor-flags::mutate-directory` set, /// `open-at` fails with `error-code::read-only`.