Deleted Added
full compact
_timespec.h (139825) _timespec.h (205792)
1/*-
2 * Copyright (c) 1982, 1986, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 14 unchanged lines hidden (view full) ---

23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * @(#)time.h 8.5 (Berkeley) 5/4/95
30 * from: FreeBSD: src/sys/sys/time.h,v 1.43 2000/03/20 14:09:05 phk Exp
1/*-
2 * Copyright (c) 1982, 1986, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 14 unchanged lines hidden (view full) ---

23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * @(#)time.h 8.5 (Berkeley) 5/4/95
30 * from: FreeBSD: src/sys/sys/time.h,v 1.43 2000/03/20 14:09:05 phk Exp
31 * $FreeBSD: head/sys/sys/_timespec.h 139825 2005-01-07 02:29:27Z imp $
31 * $FreeBSD: head/sys/sys/_timespec.h 205792 2010-03-28 13:13:22Z ed $
32 */
33
32 */
33
34/*
35 * Prerequisite: <sys/_types.h>
36 *
37 * This file must be kept synchronized with <sys/timespec.h>.
38 * It defines a structure which must be a type pun for
39 * `struct timespec'; this structure is used in header files where
40 * the ABI uses a `struct timespec' but standards prohibit its
41 * definition. (Currently only <sys/stat.h>.)
42 *
43 * XXX should just declare struct __timespec as necessary. It's simple,
44 * so is easy to keep synchronized, and hopefully not needed in as many
45 * places as struct timespec, so we don't need this extra header.
46 * Perhaps we don't need timespec.h either.
47 */
48
49#ifndef _SYS__TIMESPEC_H_
50#define _SYS__TIMESPEC_H_
51
34#ifndef _SYS__TIMESPEC_H_
35#define _SYS__TIMESPEC_H_
36
52struct __timespec {
53 __time_t tv_sec; /* seconds */
37#include <sys/_types.h>
38
39#ifndef _TIME_T_DECLARED
40typedef __time_t time_t;
41#define _TIME_T_DECLARED
42#endif
43
44struct timespec {
45 time_t tv_sec; /* seconds */
54 long tv_nsec; /* and nanoseconds */
55};
56
57#endif /* !_SYS__TIMESPEC_H_ */
46 long tv_nsec; /* and nanoseconds */
47};
48
49#endif /* !_SYS__TIMESPEC_H_ */