Added missing clock_settime()/clock_nanosleep() in time.h API>=8
See patch for API < 8 at 7761beeb56.
Change-Id: I906172a34645e2659a5b9f8acb2652a4b4eb857d
This commit is contained in:
@@ -94,8 +94,10 @@ extern long int timezone;
|
|||||||
extern clock_t clock(void);
|
extern clock_t clock(void);
|
||||||
|
|
||||||
/* BIONIC: extra linux clock goodies */
|
/* BIONIC: extra linux clock goodies */
|
||||||
extern int clock_getres(int, struct timespec *);
|
extern int clock_getres(clockid_t, struct timespec *);
|
||||||
extern int clock_gettime(int, struct timespec *);
|
extern int clock_gettime(clockid_t, struct timespec *);
|
||||||
|
extern int clock_settime(clockid_t, const struct timespec *);
|
||||||
|
extern int clock_nanosleep(clockid_t, int, const struct timespec *, struct timespec *);
|
||||||
|
|
||||||
#define CLOCK_REALTIME 0
|
#define CLOCK_REALTIME 0
|
||||||
#define CLOCK_MONOTONIC 1
|
#define CLOCK_MONOTONIC 1
|
||||||
|
|||||||
Reference in New Issue
Block a user