1199767fToomas Soome/*-
2199767fToomas Soome * Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
3199767fToomas Soome * All rights reserved.
4199767fToomas Soome *
5199767fToomas Soome * Redistribution and use in source and binary forms, with or without
6199767fToomas Soome * modification, are permitted provided that the following conditions
7199767fToomas Soome * are met:
8199767fToomas Soome * 1. Redistributions of source code must retain the above copyright
9199767fToomas Soome *    notice, this list of conditions and the following disclaimer.
10199767fToomas Soome * 2. Redistributions in binary form must reproduce the above copyright
11199767fToomas Soome *    notice, this list of conditions and the following disclaimer in the
12199767fToomas Soome *    documentation and/or other materials provided with the distribution.
13199767fToomas Soome *
14199767fToomas Soome * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15199767fToomas Soome * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16199767fToomas Soome * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17199767fToomas Soome * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18199767fToomas Soome * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19199767fToomas Soome * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20199767fToomas Soome * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21199767fToomas Soome * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22199767fToomas Soome * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23199767fToomas Soome * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24199767fToomas Soome * SUCH DAMAGE.
25199767fToomas Soome *
26199767fToomas Soome * $FreeBSD$
27199767fToomas Soome */
28199767fToomas Soome
29199767fToomas Soome#ifndef _SYS__TIMEVAL_H_
30199767fToomas Soome#define _SYS__TIMEVAL_H_
31199767fToomas Soome
32199767fToomas Soome#include <sys/_types.h>
33199767fToomas Soome
34199767fToomas Soome#ifndef _SUSECONDS_T_DECLARED
35199767fToomas Soometypedef	__suseconds_t	suseconds_t;
36199767fToomas Soome#define	_SUSECONDS_T_DECLARED
37199767fToomas Soome#endif
38199767fToomas Soome
39199767fToomas Soome#ifndef _TIME_T_DECLARED
40199767fToomas Soometypedef	__time_t	time_t;
41199767fToomas Soome#define	_TIME_T_DECLARED
42199767fToomas Soome#endif
43199767fToomas Soome
44199767fToomas Soome/*
45199767fToomas Soome * Structure returned by gettimeofday(2) system call, and used in other calls.
46199767fToomas Soome */
47199767fToomas Soomestruct timeval {
48199767fToomas Soome	time_t		tv_sec;		/* seconds */
49199767fToomas Soome	suseconds_t	tv_usec;	/* and microseconds */
50199767fToomas Soome};
51199767fToomas Soome
52199767fToomas Soome#endif /* !_SYS__TIMEVAL_H_ */
53