this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add some 10.12 APIs to time.h

+51
+51
src/libc/include/time.h
··· 64 64 #ifndef _TIME_H_ 65 65 #define _TIME_H_ 66 66 67 + #include <Availability.h> 68 + 67 69 #include <_types.h> 68 70 69 71 #define __need_struct_timespec ··· 206 208 #endif /* !LIBC_ALIAS_NANOSLEEP */ 207 209 //End-Libc 208 210 #endif 211 + 212 + #if !defined(_DARWIN_FEATURE_CLOCK_GETTIME) || _DARWIN_FEATURE_CLOCK_GETTIME != 0 213 + #if __DARWIN_C_LEVEL >= 199309L 214 + #if __has_feature(enumerator_attributes) 215 + #define __CLOCK_AVAILABILITY __OSX_AVAILABLE(10.12) __IOS_AVAILABLE(10.0) __TVOS_AVAILABLE(10.0) __WATCHOS_AVAILABLE(3.0) 216 + #else 217 + #define __CLOCK_AVAILABILITY 218 + #endif 219 + 220 + typedef enum { 221 + _CLOCK_REALTIME __CLOCK_AVAILABILITY = 0, 222 + #define CLOCK_REALTIME _CLOCK_REALTIME 223 + _CLOCK_MONOTONIC __CLOCK_AVAILABILITY = 6, 224 + #define CLOCK_MONOTONIC _CLOCK_MONOTONIC 225 + #if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE) 226 + _CLOCK_MONOTONIC_RAW __CLOCK_AVAILABILITY = 4, 227 + #define CLOCK_MONOTONIC_RAW _CLOCK_MONOTONIC_RAW 228 + _CLOCK_MONOTONIC_RAW_APPROX __CLOCK_AVAILABILITY = 5, 229 + #define CLOCK_MONOTONIC_RAW_APPROX _CLOCK_MONOTONIC_RAW_APPROX 230 + _CLOCK_UPTIME_RAW __CLOCK_AVAILABILITY = 8, 231 + #define CLOCK_UPTIME_RAW _CLOCK_UPTIME_RAW 232 + _CLOCK_UPTIME_RAW_APPROX __CLOCK_AVAILABILITY = 9, 233 + #define CLOCK_UPTIME_RAW_APPROX _CLOCK_UPTIME_RAW_APPROX 234 + #endif 235 + _CLOCK_PROCESS_CPUTIME_ID __CLOCK_AVAILABILITY = 12, 236 + #define CLOCK_PROCESS_CPUTIME_ID _CLOCK_PROCESS_CPUTIME_ID 237 + _CLOCK_THREAD_CPUTIME_ID __CLOCK_AVAILABILITY = 16 238 + #define CLOCK_THREAD_CPUTIME_ID _CLOCK_THREAD_CPUTIME_ID 239 + } clockid_t; 240 + 241 + __CLOCK_AVAILABILITY 242 + int clock_getres(clockid_t __clock_id, struct timespec *__res); 243 + 244 + __CLOCK_AVAILABILITY 245 + int clock_gettime(clockid_t __clock_id, struct timespec *__tp); 246 + 247 + #if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE) 248 + __CLOCK_AVAILABILITY 249 + __uint64_t clock_gettime_nsec_np(clockid_t __clock_id); 250 + #endif 251 + 252 + __OSX_AVAILABLE(10.12) __IOS_PROHIBITED 253 + __TVOS_PROHIBITED __WATCHOS_PROHIBITED 254 + int clock_settime(clockid_t __clock_id, const struct timespec *__tp); 255 + 256 + #undef __CLOCK_AVAILABILITY 257 + #endif /* __DARWIN_C_LEVEL */ 258 + #endif /* _DARWIN_FEATURE_CLOCK_GETTIME */ 259 + 209 260 __END_DECLS 210 261 211 262 #ifdef _USE_EXTENDED_LOCALES_