timemaster is a program that uses ptp4l and phc2sys in combination with
chronyd or ntpd to synchronize the system clock to NTP and PTP time
sources. The PTP time is provided by phc2sys and ptp4l via SHM reference
clocks to chronyd/ntpd, which can compare all time sources and use the
best sources to
Add some functions to work with strings and arrays of pointers that will
be useful later.
Signed-off-by: Miroslav Lichvar
---
util.c | 95 ++
util.h | 57
2 files changed, 152 insertions(+)
This is the program I was talking about earlier. It starts ptp4l and
phc2sys in combination with chronyd or ntpd to synchronize the system
clock to NTP and PTP sources. The functionality reminded me a bit of
the postfix master daemon, hence time master :). I'm open to
suggestions for a better name.
Only reentrant functions should be called here.
Signed-off-by: Miroslav Lichvar
---
util.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/util.c b/util.c
index ae66bb1..cb428b1 100644
--- a/util.c
+++ b/util.c
@@ -318,7 +318,6 @@ int get_arg_val_d(int op, const char *optarg, double *val,