[Linuxptp-devel] [PATCH 3/3] Add timemaster.

2014-07-25 Thread Miroslav Lichvar
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

[Linuxptp-devel] [PATCH 2/3] Add string and pointer array utility functions.

2014-07-25 Thread Miroslav Lichvar
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(+)

[Linuxptp-devel] [PATCH 0/3] timemaster

2014-07-25 Thread Miroslav Lichvar
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.

[Linuxptp-devel] [PATCH 1/3] Don't print messages in signal handler.

2014-07-25 Thread Miroslav Lichvar
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,