Skip to content

Update documentation for wasi:filesystem:descriptor#link-at.#848

Open
wingo wants to merge 2 commits intoWebAssembly:mainfrom
wingo:doc-link-at-weirdness
Open

Update documentation for wasi:filesystem:descriptor#link-at.#848
wingo wants to merge 2 commits intoWebAssembly:mainfrom
wingo:doc-link-at-weirdness

Conversation

@wingo
Copy link
Contributor

@wingo wingo commented Dec 9, 2025

It would have been nice for linkat to do just what POSIX does, but Windows includes the case of hard-linking a directory in EACCESS instead of the POSIX-prescribed EPERM.

It would have been nice for `linkat` to do just what POSIX does, but
Windows includes the case of hard-linking a directory in EACCESS instead
of the POSIX-prescribed EPERM.
/// Fails with `error-code::no-entry` if the old path does not exist,
/// with `error-code::exist` if the new path already exists, and
/// `error-code::not-permitted` if the old path is not a file.
/// Behavior is as described by [POSIX
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind keeping the previous description of failure modes, and adding this prose + link at the bottom with something like "for more information, see " ?

Laying out the common failure mode and meanings is reasonable in the docs, rather than (for the same reason we note the failure mode for hard links).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P-filesystem Proposal: wasi-filesystem

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants