projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix segfault in lutimes when tv argument is NULL
[musl]
/
include
/
sys
/
timex.h
diff --git
a/include/sys/timex.h
b/include/sys/timex.h
index
1262392
..
8b417e1
100644
(file)
--- a/
include/sys/timex.h
+++ b/
include/sys/timex.h
@@
-5,6
+5,10
@@
extern "C" {
#endif
extern "C" {
#endif
+#define __NEED_clockid_t
+
+#include <bits/alltypes.h>
+
#include <sys/time.h>
struct ntptimeval {
#include <sys/time.h>
struct ntptimeval {
@@
-32,6
+36,7
@@
struct timex {
#define ADJ_STATUS 0x0010
#define ADJ_TIMECONST 0x0020
#define ADJ_TAI 0x0080
#define ADJ_STATUS 0x0010
#define ADJ_TIMECONST 0x0020
#define ADJ_TAI 0x0080
+#define ADJ_SETOFFSET 0x0100
#define ADJ_MICRO 0x1000
#define ADJ_NANO 0x2000
#define ADJ_TICK 0x4000
#define ADJ_MICRO 0x1000
#define ADJ_NANO 0x2000
#define ADJ_TICK 0x4000
@@
-46,6
+51,7
@@
struct timex {
#define MOD_TIMECONST ADJ_TIMECONST
#define MOD_CLKB ADJ_TICK
#define MOD_CLKA ADJ_OFFSET_SINGLESHOT
#define MOD_TIMECONST ADJ_TIMECONST
#define MOD_CLKB ADJ_TICK
#define MOD_CLKA ADJ_OFFSET_SINGLESHOT
+#define MOD_TAI ADJ_TAI
#define MOD_MICRO ADJ_MICRO
#define MOD_NANO ADJ_NANO
#define MOD_MICRO ADJ_MICRO
#define MOD_NANO ADJ_NANO
@@
-70,7
+76,7
@@
struct timex {
#define STA_CLK 0x8000
#define STA_RONLY (STA_PPSSIGNAL | STA_PPSJITTER | STA_PPSWANDER | \
#define STA_CLK 0x8000
#define STA_RONLY (STA_PPSSIGNAL | STA_PPSJITTER | STA_PPSWANDER | \
- STA_PPSERROR | STA_CLOCKERR)
+ STA_PPSERROR | STA_CLOCKERR
| STA_NANO | STA_MODE | STA_CLK
)
#define TIME_OK 0
#define TIME_INS 1
#define TIME_OK 0
#define TIME_INS 1
@@
-83,6
+89,12
@@
struct timex {
#define MAXTC 6
int adjtimex(struct timex *);
#define MAXTC 6
int adjtimex(struct timex *);
+int clock_adjtime(clockid_t, struct timex *);
+
+#if _REDIR_TIME64
+__REDIR(adjtimex, __adjtimex_time64);
+__REDIR(clock_adjtime, __clock_adjtime64);
+#endif
#ifdef __cplusplus
}
#ifdef __cplusplus
}