xref: /freebsd/stand/libsa/time.c (revision 3e15b01d6914c927e37d1699645783acf286655c)
1*6ab1ffcbSWarner Losh /*-
2*6ab1ffcbSWarner Losh  * Copyright (c) 2020 M. Warner Losh <imp@FreeBSD.org>
3*6ab1ffcbSWarner Losh  *
4*6ab1ffcbSWarner Losh  * Redistribution and use in source and binary forms, with or without
5*6ab1ffcbSWarner Losh  * modification, are permitted provided that the following conditions
6*6ab1ffcbSWarner Losh  * are met:
7*6ab1ffcbSWarner Losh  * 1. Redistributions of source code must retain the above copyright
8*6ab1ffcbSWarner Losh  *    notice, this list of conditions and the following disclaimer.
9*6ab1ffcbSWarner Losh  * 2. Redistributions in binary form must reproduce the above copyright
10*6ab1ffcbSWarner Losh  *    notice, this list of conditions and the following disclaimer in the
11*6ab1ffcbSWarner Losh  *    documentation and/or other materials provided with the distribution.
12*6ab1ffcbSWarner Losh  *
13*6ab1ffcbSWarner Losh  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14*6ab1ffcbSWarner Losh  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15*6ab1ffcbSWarner Losh  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16*6ab1ffcbSWarner Losh  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17*6ab1ffcbSWarner Losh  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18*6ab1ffcbSWarner Losh  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19*6ab1ffcbSWarner Losh  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20*6ab1ffcbSWarner Losh  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21*6ab1ffcbSWarner Losh  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22*6ab1ffcbSWarner Losh  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23*6ab1ffcbSWarner Losh  * SUCH DAMAGE.
24*6ab1ffcbSWarner Losh  */
25*6ab1ffcbSWarner Losh 
26*6ab1ffcbSWarner Losh /*
27*6ab1ffcbSWarner Losh  * The parts of kern_tc.c and other timekeeping bits of the kernel.
28*6ab1ffcbSWarner Losh  */
29*6ab1ffcbSWarner Losh 
30*6ab1ffcbSWarner Losh #include <sys/time.h>
31*6ab1ffcbSWarner Losh 
32*6ab1ffcbSWarner Losh volatile time_t time_second = 1;
33