[libc-commits] [libc] [libc] implement pathconf/fpathconf (PR #87165)

Schrodinger ZHU Yifan via libc-commits libc-commits at lists.llvm.org
Tue May 14 08:37:59 PDT 2024


================
@@ -273,6 +287,33 @@ add_entrypoint_object(
     libc.src.errno.errno
 )
 
+add_entrypoint_object(
+  pathconf
+  SRCS
+  pathconf.cpp
+  HDRS
+    ../pathconf.h
+  DEPENDS
+    libc.include.unistd
+    libc.include.sys_syscall
+    libc.src.__support.OSUtil.osutil
+    libc.src.errno.errno
+    libc.src.unistd.pathconf_utils
+)
+
+add_entrypoint_object(
----------------
SchrodingerZhu wrote:

use `add_object_library/add_header_library` instead since `pathconf_utils` is not an entrypoint.

https://github.com/llvm/llvm-project/pull/87165


More information about the libc-commits mailing list