[libc-commits] [libc] [libc] Add chown and getgid implementations (PR #166434)

Michael Jones via libc-commits libc-commits at lists.llvm.org
Tue Nov 4 13:14:12 PST 2025


================
@@ -25,6 +25,21 @@ add_entrypoint_object(
     libc.src.errno.errno
 )
 
+add_entrypoint_object(
+  chown
+  SRCS
+    chown.cpp
+  HDRS
+    ../chown.h
+  DEPENDS
+    libc.hdr.types.uid_t
+    libc.hdr.types.gid_t
+    libc.include.unistd
----------------
michaelrj-google wrote:

these functions don't depend on the `unistd` header so they don't need `libc.include.unistd` in their `DEPENDS`.

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


More information about the libc-commits mailing list