| 1 |
#ifndef CLOCK_NANOSLEEP_H |
| 2 |
#define CLOCK_NANOSLEEP_H |
| 3 |
|
| 4 |
#ifdef _CLOCKID_T_DEFINED_ |
| 5 |
#define CLOCKID_T |
| 6 |
#endif |
| 7 |
|
| 8 |
#ifndef CLOCKID_T |
| 9 |
#define CLOCKID_T |
| 10 |
typedef enum |
| 11 |
{ |
| 12 |
CLOCK_REALTIME, |
| 13 |
CLOCK_MONOTONIC, |
| 14 |
CLOCK_PROCESS_CPUTIME_ID, |
| 15 |
CLOCK_THREAD_CPUTIME_ID |
| 16 |
} clockid_t; |
| 17 |
#endif |
| 18 |
|
| 19 |
|
| 20 |
#ifndef TIMER_ABSTIME |
| 21 |
#define TIMER_ABSTIME 1 |
| 22 |
#endif |
| 23 |
|
| 24 |
struct timespec; |
| 25 |
|
| 26 |
int clock_nanosleep (clockid_t id, int flags, const struct timespec *ts, |
| 27 |
struct timespec *ots); |
| 28 |
|
| 29 |
#endif |