Deleted Added
full compact
time.h (210225) time.h (210226)
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

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

22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
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
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

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

22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
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 * $FreeBSD: head/sys/sys/time.h 210225 2010-07-18 20:23:10Z trasz $
30 * $FreeBSD: head/sys/sys/time.h 210226 2010-07-18 20:57:53Z trasz $
31 */
32
33#ifndef _SYS_TIME_H_
34#define _SYS_TIME_H_
35
36#include <sys/_timeval.h>
37#include <sys/types.h>
38#include <sys/timespec.h>

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

85
86 u = bt->frac;
87 bt->frac -= bt2->frac;
88 if (u < bt->frac)
89 bt->sec--;
90 bt->sec -= bt2->sec;
91}
92
31 */
32
33#ifndef _SYS_TIME_H_
34#define _SYS_TIME_H_
35
36#include <sys/_timeval.h>
37#include <sys/types.h>
38#include <sys/timespec.h>

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

85
86 u = bt->frac;
87 bt->frac -= bt2->frac;
88 if (u < bt->frac)
89 bt->sec--;
90 bt->sec -= bt2->sec;
91}
92
93/*
93/*-
94 * Background information:
95 *
96 * When converting between timestamps on parallel timescales of differing
97 * resolutions it is historical and scientific practice to round down rather
98 * than doing 4/5 rounding.
99 *
100 * The date changes at midnight, not at noon.
101 *

--- 242 unchanged lines hidden ---
94 * Background information:
95 *
96 * When converting between timestamps on parallel timescales of differing
97 * resolutions it is historical and scientific practice to round down rather
98 * than doing 4/5 rounding.
99 *
100 * The date changes at midnight, not at noon.
101 *

--- 242 unchanged lines hidden ---