xref: /freebsd/tools/regression/sockets/unix_cmsg/uc_check_time.h (revision b3e7694832e81d7a904a10f525f8797b753bf0d3)
1*79847968SMaxim Sobolev /*-
2*79847968SMaxim Sobolev  * Copyright (c) 2016 Maksym Sobolyev <sobomax@FreeBSD.org>
3*79847968SMaxim Sobolev  * All rights reserved.
4*79847968SMaxim Sobolev  *
5*79847968SMaxim Sobolev  * Redistribution and use in source and binary forms, with or without
6*79847968SMaxim Sobolev  * modification, are permitted provided that the following conditions
7*79847968SMaxim Sobolev  * are met:
8*79847968SMaxim Sobolev  * 1. Redistributions of source code must retain the above copyright
9*79847968SMaxim Sobolev  *    notice, this list of conditions and the following disclaimer.
10*79847968SMaxim Sobolev  * 2. Redistributions in binary form must reproduce the above copyright
11*79847968SMaxim Sobolev  *    notice, this list of conditions and the following disclaimer in the
12*79847968SMaxim Sobolev  *    documentation and/or other materials provided with the distribution.
13*79847968SMaxim Sobolev  *
14*79847968SMaxim Sobolev  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15*79847968SMaxim Sobolev  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16*79847968SMaxim Sobolev  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17*79847968SMaxim Sobolev  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18*79847968SMaxim Sobolev  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19*79847968SMaxim Sobolev  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20*79847968SMaxim Sobolev  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21*79847968SMaxim Sobolev  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22*79847968SMaxim Sobolev  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23*79847968SMaxim Sobolev  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24*79847968SMaxim Sobolev  * SUCH DAMAGE.
25*79847968SMaxim Sobolev  */
26*79847968SMaxim Sobolev 
27*79847968SMaxim Sobolev struct bintime;
28*79847968SMaxim Sobolev struct timeval;
29*79847968SMaxim Sobolev struct timespec;
30*79847968SMaxim Sobolev 
31*79847968SMaxim Sobolev int uc_check_bintime(const struct bintime *bt);
32*79847968SMaxim Sobolev int uc_check_timeval(const struct timeval *bt);
33*79847968SMaxim Sobolev int uc_check_timespec_real(const struct timespec *bt);
34*79847968SMaxim Sobolev int uc_check_timespec_mono(const struct timespec *bt);
35