mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-05 19:35:06 -05:00
sys: add null driver
Add a new clock driver that doesn't actually try to adjust the clock. It allows chronyd to run without the capability to adjust/set the system clock, e.g. in some containers. It can be enabled by the -x option.
This commit is contained in:
34
sys_null.h
Normal file
34
sys_null.h
Normal file
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
chronyd/chronyc - Programs for keeping computer clocks accurate.
|
||||
|
||||
**********************************************************************
|
||||
* Copyright (C) Miroslav Lichvar 2017
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of version 2 of the GNU General Public License as
|
||||
* published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*
|
||||
**********************************************************************
|
||||
|
||||
=======================================================================
|
||||
|
||||
Header file for null clock driver
|
||||
*/
|
||||
|
||||
#ifndef GOT_SYS_NULL_H
|
||||
#define GOT_SYS_NULL_H
|
||||
|
||||
extern void SYS_Null_Initialise(void);
|
||||
|
||||
extern void SYS_Null_Finalise(void);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user