Skip to content

Conversation

sunfishcode
Copy link
Member

This implements AT_FDCWD, as well as absolute paths in *at functions, following the scheme described here.

This is a relatively elaborate change, and is not at all tested yet, so I'm inclined to take some time here to think this through.

Fixes #42.

@sunfishcode sunfishcode mentioned this pull request May 7, 2019
@Ericson2314
Copy link
Contributor

Looking good!

@sunfishcode sunfishcode marked this pull request as ready for review May 10, 2019 23:44
@sunfishcode
Copy link
Member Author

Ok, I think this is in pretty good shape now.

Include the headers for the types that it uses, and add
warn_unused_result annotations to its functions.
And add __warn_unused_result__ to other functions in libc.h while here.
This skips going through unnecessary wrapper layers.
This doesn't need to conform exactly to openat's signature, so don't use
varargs, which is emulated on wasm.
@sunfishcode
Copy link
Member Author

This will need to be revised in terms of #214.

Base automatically changed from master to main January 19, 2021 23:28
@sunfishcode sunfishcode mentioned this pull request Feb 4, 2021
@sunfishcode
Copy link
Member Author

An updated version of this patch is now at #230.

@sunfishcode sunfishcode closed this Feb 4, 2021
@sunfishcode sunfishcode deleted the at_fdcwd branch June 1, 2023 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AT_FDCWD undefined?
2 participants