[libc-commits] [PATCH] D134773: [libc] add clock_gettime

Siva Chandra via Phabricator via libc-commits libc-commits at lists.llvm.org
Wed Sep 28 00:12:23 PDT 2022


sivachandra added inline comments.


================
Comment at: libc/include/llvm-libc-types/time_t.h:14
 
+typedef int clockid_t;
+
----------------
A new type should be defined in its own header file - we follow the rule of exactly one type defined in a complete header file. By complete header file, we mean that including it will pull dependent macros and types as well and make the type definition complete (the type itself can be of an incomplete type, for example `FILE`.)


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D134773



More information about the libc-commits mailing list