[chrony-dev] [PATCH v2 0/6] support leap-seconds.list |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-dev Archives
]
- To: chrony-dev@xxxxxxxxxxxxxxxxxxxx
- Subject: [chrony-dev] [PATCH v2 0/6] support leap-seconds.list
- From: patrick.oppenlander@xxxxxxxxx
- Date: Thu, 30 Nov 2023 14:23:23 +1100
- Cc: Patrick Oppenlander <patrick.oppenlander@xxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701314615; x=1701919415; darn=chrony.tuxfamily.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=MZc65sG5e94UCJVfd4gXQ9vCBVzSSVCGTit5bWWPPEM=; b=iLgBGI0OFQRZsIwQrsL7UQmhOP0AxY9NAXM49uha82SsKTpZXwAFT1KDikDPpS8Y2l /WsQOqtQKluj4+Vg3jLIoGfuqc2S3Iky72yujlOVs5ypPdJzCJVklapakKOJSvNA3XLI aueDKpM1aN7nKiGxL4NXWINnw+MHFYO2dqpnUTxdPxGFynegP7xfSniP7pQhFtr70/bm M8y77wdC2gXDooPo4ZPrpbBGHOCxnLFo/3WvEB3HAKu0N9n9mwoJ/tEJC41HBoVdUvZg hqnjZceQRMgQHvEYeT4IymtuJ125o5zInbBwiEOW8zB2/4nMgblA9jsXQPTbjv3irCJa 4ZUw==
From: Patrick Oppenlander <patrick.oppenlander@xxxxxxxxx>
Hi Miroslav,
here's a new patch series addressing your initial feedback.
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 (6):
reference: move leap second source into leapdb
leapdb: make twice per day check logic common
leapdb: move source check into separate function
leapdb: store data source in a function pointer
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 | 295 +++++++++++++++++++++++++++++++++++++++++++
leapdb.h | 37 ++++++
main.c | 3 +
reference.c | 99 +--------------
test/unit/leapdb.c | 118 +++++++++++++++++
9 files changed, 491 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.