1108477Smike/*- 2108477Smike * Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org> 3108477Smike * All rights reserved. 4108477Smike * 5108477Smike * Redistribution and use in source and binary forms, with or without 6108477Smike * modification, are permitted provided that the following conditions 7108477Smike * are met: 8108477Smike * 1. Redistributions of source code must retain the above copyright 9108477Smike * notice, this list of conditions and the following disclaimer. 10108477Smike * 2. Redistributions in binary form must reproduce the above copyright 11108477Smike * notice, this list of conditions and the following disclaimer in the 12108477Smike * documentation and/or other materials provided with the distribution. 13108477Smike * 14108477Smike * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15108477Smike * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16108477Smike * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17108477Smike * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18108477Smike * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19108477Smike * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20108477Smike * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21108477Smike * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22108477Smike * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23108477Smike * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24108477Smike * SUCH DAMAGE. 25108477Smike * 26108477Smike * $FreeBSD$ 27108477Smike */ 28108477Smike 29108477Smike#ifndef _SYS__TIMEVAL_H_ 30108477Smike#define _SYS__TIMEVAL_H_ 31108477Smike 32108477Smike#include <sys/_types.h> 33108477Smike 34108477Smike#ifndef _SUSECONDS_T_DECLARED 35108477Smiketypedef __suseconds_t suseconds_t; 36108477Smike#define _SUSECONDS_T_DECLARED 37108477Smike#endif 38108477Smike 39108477Smike#ifndef _TIME_T_DECLARED 40108477Smiketypedef __time_t time_t; 41108477Smike#define _TIME_T_DECLARED 42108477Smike#endif 43108477Smike 44108477Smike/* 45108477Smike * Structure returned by gettimeofday(2) system call, and used in other calls. 46108477Smike */ 47108477Smikestruct timeval { 48153706Strhodes time_t tv_sec; /* seconds */ 49108477Smike suseconds_t tv_usec; /* and microseconds */ 50108477Smike}; 51108477Smike 52108477Smike#endif /* !_SYS__TIMEVAL_H_ */ 53