[libc-commits] [libc] [libc] implement pathconf/fpathconf (PR #87165)
Schrodinger ZHU Yifan via libc-commits
libc-commits at lists.llvm.org
Thu May 16 21:21:00 PDT 2024
================
@@ -160,6 +167,20 @@ add_entrypoint_object(
.${LIBC_TARGET_OS}.lseek
)
+add_entrypoint_object(
+ pathconf
+ ALIAS
+ DEPENDS
+ .${LIBC_TARGET_OS}.pathconf
+)
+
+add_object_library(
----------------
SchrodingerZhu wrote:
You can remove line 177-182 as a whole. `pathconf_utils` is likely to be linux only here as you check special FS magic in those files.
Instead of using `libc.src.unistd.pathconf_utils` in `DEPENDS`, just using `libc.src.unistd.linux.pathconf_utils`
https://github.com/llvm/llvm-project/pull/87165
More information about the libc-commits
mailing list