Issue |
154429
|
Summary |
[libc] implement realpath
|
Labels |
libc
|
Assignees |
|
Reporter |
michaelrj-google
|
Described in POSIX: https://pubs.opengroup.org/onlinepubs/9799919799/functions/realpath.html#
The realpath function resolves a path so that it doesn't have any `/./` or `/../` in it. It may also allocate a string of none is provided, similar to `strdup`.
Here's a checklist for what you'll need to do for this:
- [ ] Add the implementation of `realpath` in [`/src/stdlib`](https://github.com/llvm/llvm-project/tree/main/libc/src/stdlib)
- [ ] Add tests for `realpath` in [`/test/src/stdlib`](https://github.com/llvm/llvm-project/tree/main/libc/test/src/stdlib)
- [ ] Add `realpath` 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 `realpath` to [`include/stdlib.yaml`](https://github.com/llvm/llvm-project/blob/main/libc/include/stdlib.yaml)
(Reserved for specific assignee)
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs