[chrony-dev] [PATCH v3 0/5] support leap-seconds.list

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-dev Archives ]


From: Patrick Oppenlander <patrick.oppenlander@xxxxxxxxx>

Hi Miroslav,

thanks for the feedback. Here's an updated series.

Changes from v2:
* Fix copyright notices.
* Rework to avoid storing leap-seconds.list in memory, parse on the fly.
* Minimise function pointer use.
* Comment fixes, include ordering, naming and other minor cleanups.

Changes from v1:
* Add a new leapdb module with unit test.
* Make 12 hour caching logic common.
* Make sanity checking logic common.
* Don't cache leap-seconds.list contents between calls.
* Naming and other minor cleanups.

Thanks,

Patrick Oppenlander (5):
  reference: move leap second source into leapdb
  leapdb: make twice per day check logic common
  leapdb: move source check into separate function
  leapdb: support leap-seconds.list as second source
  test/unit: add leapdb test

 Makefile.in          |   2 +-
 conf.c               |  14 +++
 conf.h               |   1 +
 doc/chrony.conf.adoc |  19 +++-
 leapdb.c             | 261 +++++++++++++++++++++++++++++++++++++++++++
 leapdb.h             |  37 ++++++
 main.c               |   3 +
 reference.c          |  99 +---------------
 test/unit/leapdb.c   | 117 +++++++++++++++++++
 9 files changed, 456 insertions(+), 97 deletions(-)
 create mode 100644 leapdb.c
 create mode 100644 leapdb.h
 create mode 100644 test/unit/leapdb.c

-- 
2.43.0


-- 
To unsubscribe email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "unsubscribe" in the subject.
For help email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "help" in the subject.
Trouble?  Email listmaster@xxxxxxxxxxxxxxxxxxxx.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/