1139825Simp/*- 271412Swollman * Copyright (c) 1982, 1986, 1993 371412Swollman * The Regents of the University of California. All rights reserved. 471412Swollman * 571412Swollman * Redistribution and use in source and binary forms, with or without 671412Swollman * modification, are permitted provided that the following conditions 771412Swollman * are met: 871412Swollman * 1. Redistributions of source code must retain the above copyright 971412Swollman * notice, this list of conditions and the following disclaimer. 1071412Swollman * 2. Redistributions in binary form must reproduce the above copyright 1171412Swollman * notice, this list of conditions and the following disclaimer in the 1271412Swollman * documentation and/or other materials provided with the distribution. 1371412Swollman * 4. Neither the name of the University nor the names of its contributors 1471412Swollman * may be used to endorse or promote products derived from this software 1571412Swollman * without specific prior written permission. 1671412Swollman * 1771412Swollman * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1871412Swollman * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1971412Swollman * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2071412Swollman * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2171412Swollman * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2271412Swollman * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2371412Swollman * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2471412Swollman * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2571412Swollman * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2671412Swollman * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2771412Swollman * SUCH DAMAGE. 2871412Swollman * 2971412Swollman * @(#)time.h 8.5 (Berkeley) 5/4/95 3071412Swollman * from: FreeBSD: src/sys/sys/time.h,v 1.43 2000/03/20 14:09:05 phk Exp 3171412Swollman * $FreeBSD: releng/10.2/sys/sys/_timespec.h 205792 2010-03-28 13:13:22Z ed $ 3271412Swollman */ 3371412Swollman 3471412Swollman#ifndef _SYS__TIMESPEC_H_ 35111557Smike#define _SYS__TIMESPEC_H_ 3671412Swollman 37205792Sed#include <sys/_types.h> 38205792Sed 39205792Sed#ifndef _TIME_T_DECLARED 40205792Sedtypedef __time_t time_t; 41205792Sed#define _TIME_T_DECLARED 42205792Sed#endif 43205792Sed 44205792Sedstruct timespec { 45205792Sed time_t tv_sec; /* seconds */ 46111557Smike long tv_nsec; /* and nanoseconds */ 4771412Swollman}; 4871412Swollman 49111557Smike#endif /* !_SYS__TIMESPEC_H_ */ 50