[libc-commits] [PATCH] D135731: [libc] add headers sys/auxv sys/prctl and sys/time

Siva Chandra via Phabricator via libc-commits libc-commits at lists.llvm.org
Tue Oct 11 22:50:01 PDT 2022


sivachandra added inline comments.


================
Comment at: libc/include/llvm-libc-macros/linux/sys-time-macros.h:15
+// seconds (1,000,000 is subtracted from usec and 1 is added to sec).
+#define timeradd(timeval_ptr_a, timeval_ptr_b, timeval_ptr_result)             \
+  (timeval_ptr_result)->tv_sec =                                               \
----------------
We don't have the type `struct timeval` defined. So, why do we need these macros?


================
Comment at: libc/include/sys/prctl.h.def:19
+// TODO: Define the prctl macros.
+// #include <llvm-libc-macros/sys-prctl-macros.h>
+
----------------
Remove this commented out include.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D135731/new/

https://reviews.llvm.org/D135731



More information about the libc-commits mailing list