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

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

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)time.h 8.1 (Berkeley) 6/2/93
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

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

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)time.h 8.1 (Berkeley) 6/2/93
34 * $Id$
34 * $Id: time.h,v 1.2 1994/08/02 07:53:47 davidg Exp $
35 */
36
37#ifndef _SYS_TIME_H_
38#define _SYS_TIME_H_
39
40/*
41 * Structure returned by gettimeofday(2) system call,
42 * and used in other calls.

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

101 */
102struct clockinfo {
103 int hz; /* clock frequency */
104 int tick; /* micro-seconds per hz tick */
105 int stathz; /* statistics clock frequency */
106 int profhz; /* profiling clock frequency */
107};
108
35 */
36
37#ifndef _SYS_TIME_H_
38#define _SYS_TIME_H_
39
40/*
41 * Structure returned by gettimeofday(2) system call,
42 * and used in other calls.

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

101 */
102struct clockinfo {
103 int hz; /* clock frequency */
104 int tick; /* micro-seconds per hz tick */
105 int stathz; /* statistics clock frequency */
106 int profhz; /* profiling clock frequency */
107};
108
109#ifndef KERNEL
109#ifdef KERNEL
110
111extern void microtime(struct timeval *);
112
113#else /* not KERNEL */
110#include <time.h>
111
112#ifndef _POSIX_SOURCE
113#include <sys/cdefs.h>
114
115__BEGIN_DECLS
116int adjtime __P((const struct timeval *, struct timeval *));
117int getitimer __P((int, struct itimerval *));
118int gettimeofday __P((struct timeval *, struct timezone *));
119int setitimer __P((int, const struct itimerval *, struct itimerval *));
120int settimeofday __P((const struct timeval *, const struct timezone *));
121int utimes __P((const char *, const struct timeval *));
122__END_DECLS
123#endif /* !POSIX */
124
125#endif /* !KERNEL */
126
127#endif /* !_SYS_TIME_H_ */
114#include <time.h>
115
116#ifndef _POSIX_SOURCE
117#include <sys/cdefs.h>
118
119__BEGIN_DECLS
120int adjtime __P((const struct timeval *, struct timeval *));
121int getitimer __P((int, struct itimerval *));
122int gettimeofday __P((struct timeval *, struct timezone *));
123int setitimer __P((int, const struct itimerval *, struct itimerval *));
124int settimeofday __P((const struct timeval *, const struct timezone *));
125int utimes __P((const char *, const struct timeval *));
126__END_DECLS
127#endif /* !POSIX */
128
129#endif /* !KERNEL */
130
131#endif /* !_SYS_TIME_H_ */