11de7b4b8SPedro F. Giffuni /*- 2*4d846d26SWarner Losh * SPDX-License-Identifier: BSD-2-Clause 31de7b4b8SPedro F. Giffuni * 43e714780SAndrey A. Chernov * Copyright (C) 1993 by Andrew A. Chernov, Moscow, Russia. 53e714780SAndrey A. Chernov * All rights reserved. 63e714780SAndrey A. Chernov * 73e714780SAndrey A. Chernov * Redistribution and use in source and binary forms, with or without 83e714780SAndrey A. Chernov * modification, are permitted provided that the following conditions 93e714780SAndrey A. Chernov * are met: 103e714780SAndrey A. Chernov * 1. Redistributions of source code must retain the above copyright 113e714780SAndrey A. Chernov * notice, this list of conditions and the following disclaimer. 123e714780SAndrey A. Chernov * 2. Redistributions in binary form must reproduce the above copyright 133e714780SAndrey A. Chernov * notice, this list of conditions and the following disclaimer in the 143e714780SAndrey A. Chernov * documentation and/or other materials provided with the distribution. 153e714780SAndrey A. Chernov * 163e714780SAndrey A. Chernov * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND 173e714780SAndrey A. Chernov * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 183e714780SAndrey A. Chernov * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 193e714780SAndrey A. Chernov * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 203e714780SAndrey A. Chernov * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 213e714780SAndrey A. Chernov * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 223e714780SAndrey A. Chernov * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 233e714780SAndrey A. Chernov * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 243e714780SAndrey A. Chernov * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 253e714780SAndrey A. Chernov * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 263e714780SAndrey A. Chernov * SUCH DAMAGE. 273e714780SAndrey A. Chernov */ 283e714780SAndrey A. Chernov 293e714780SAndrey A. Chernov #include <paths.h> 303e714780SAndrey A. Chernov 313e714780SAndrey A. Chernov #define _PATH_CLOCK "/etc/wall_cmos_clock" 32