[libc-commits] [libc] [libc] Implement sysinfo (PR #217471)

Alexey Samsonov via libc-commits libc-commits at lists.llvm.org
Thu Aug 20 20:21:52 PDT 2026


================
@@ -214,6 +214,11 @@ add_header(
 )
 add_header(struct_tm HDR struct_tm.h)
 add_header(struct_passwd HDR struct_passwd.h DEPENDS .uid_t .gid_t)
+if(TARGET libc.include.llvm-libc-types.${LIBC_TARGET_OS}.struct_sysinfo)
----------------
vonosmas wrote:

LGTM, but jus' saying that we might want to add `add_type_header` here that would populate the OS-specific dependencies automatically, like `add_macro_header` does.

(in a separate, PR of course)

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


More information about the libc-commits mailing list