Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/_clock_id.h
Show First 20 Lines • Show All 65 Lines • ▼ Show 20 Lines | |||||
#define CLOCK_SECOND 13 | #define CLOCK_SECOND 13 | ||||
#endif /* __BSD_VISIBLE */ | #endif /* __BSD_VISIBLE */ | ||||
#if __POSIX_VISIBLE >= 200112 | #if __POSIX_VISIBLE >= 200112 | ||||
#define CLOCK_THREAD_CPUTIME_ID 14 | #define CLOCK_THREAD_CPUTIME_ID 14 | ||||
#define CLOCK_PROCESS_CPUTIME_ID 15 | #define CLOCK_PROCESS_CPUTIME_ID 15 | ||||
#endif /* __POSIX_VISIBLE >= 200112 */ | #endif /* __POSIX_VISIBLE >= 200112 */ | ||||
/* | |||||
* Linux compatible names. | |||||
kib: I suggest to add 'Linux compat' herald comment right before '__BSD_VISIBLE' test for the whole… | |||||
*/ | |||||
#if __BSD_VISIBLE | |||||
#define CLOCK_BOOTTIME CLOCK_UPTIME | |||||
#define CLOCK_REALTIME_COARSE CLOCK_REALTIME_FAST | |||||
#define CLOCK_MONOTONIC_COARSE CLOCK_MONOTONIC_FAST | |||||
#endif | |||||
#if __BSD_VISIBLE | #if __BSD_VISIBLE | ||||
#define TIMER_RELTIME 0x0 /* relative timer */ | #define TIMER_RELTIME 0x0 /* relative timer */ | ||||
#endif | #endif | ||||
#if __POSIX_VISIBLE >= 199506 | #if __POSIX_VISIBLE >= 199506 | ||||
#define TIMER_ABSTIME 0x1 /* absolute timer */ | #define TIMER_ABSTIME 0x1 /* absolute timer */ | ||||
#endif /* __POSIX_VISIBLE >= 199506 */ | #endif /* __POSIX_VISIBLE >= 199506 */ | ||||
#endif /* _SYS_SYS__CLOCK_ID_H */ | #endif /* _SYS_SYS__CLOCK_ID_H */ |
I suggest to add 'Linux compat' herald comment right before '__BSD_VISIBLE' test for the whole block, and not repeat it for each line.
Might be, makes sense to do the same for 'FreeBSD-specific' comments above.