| Issue |
160404
|
| Summary |
[libc] implement faccessat
|
| Labels |
libc
|
| Assignees |
|
| Reporter |
michaelrj-google
|
Described in POSIX: https://pubs.opengroup.org/onlinepubs/9799919799/functions/access.html
The `faccessat` function is a syscall wrapper that checks if a file is available.
This will be very similar to the `access` syscall wrapper, implemented here: https://github.com/llvm/llvm-project/blob/2e83f10121b79dc39559ede2efcf34864088beec/libc/src/unistd/linux/access.cpp#L24
Here's a checklist for what you'll need to do for this:
- [ ] Add the implementation of `faccessat` in [`/src/unistd`](https://github.com/llvm/llvm-project/tree/main/libc/src/unistd)
- [ ] Add tests for `faccessat` in [`/test/src/unistd`](https://github.com/llvm/llvm-project/tree/main/libc/test/src/unistd)
- [ ] Add `faccessat` to [`entrypoints.txt`](https://github.com/llvm/llvm-project/blob/main/libc/config/linux/x86_64/entrypoints.txt) for at least x86_64 and whatever you're building on
- [ ] Add `faccessat` to [`include/unistd.yaml`](https://github.com/llvm/llvm-project/blob/main/libc/include/unistd.yaml)
(Reserved for specific assignee)
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs