[libc-commits] [PATCH] D135731: [libc] add headers sys/auxv sys/prctl and sys/time
Michael Jones via Phabricator via libc-commits
libc-commits at lists.llvm.org
Wed Oct 12 10:06:40 PDT 2022
michaelrj 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 = \
----------------
sivachandra wrote:
> We don't have the type `struct timeval` defined. So, why do we need these macros?
`struct timeval` is defined in `libc/include/llvm-libc-types/struct_timeval.h`.
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