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

--- 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.5 (Berkeley) 5/4/95
34 * $Id: time.h,v 1.20 1998/03/04 10:26:44 dufault Exp $
34 * $Id: time.h,v 1.21 1998/03/26 20:53:36 phk Exp $
35 */
36
37#ifndef _SYS_TIME_H_
38#define _SYS_TIME_H_
39
40#include <sys/types.h>
41
42/*

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

216
217#define TIMER_RELTIME 0x0 /* relative timer */
218#ifndef TIMER_ABSTIME
219#define TIMER_ABSTIME 0x1 /* absolute timer */
220#endif
221
222#ifdef KERNEL
223extern struct timecounter *timecounter;
35 */
36
37#ifndef _SYS_TIME_H_
38#define _SYS_TIME_H_
39
40#include <sys/types.h>
41
42/*

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

216
217#define TIMER_RELTIME 0x0 /* relative timer */
218#ifndef TIMER_ABSTIME
219#define TIMER_ABSTIME 0x1 /* absolute timer */
220#endif
221
222#ifdef KERNEL
223extern struct timecounter *timecounter;
224extern time_t time_second;
224
225void forward_timecounter __P((void));
226void getmicrotime __P((struct timeval *tv));
227void getnanotime __P((struct timespec *tv));
225
226void forward_timecounter __P((void));
227void getmicrotime __P((struct timeval *tv));
228void getnanotime __P((struct timespec *tv));
228#define gettime(xxx) getmicrotime(xxx) /* XXX be compatible */
229void init_timecounter __P((struct timecounter *tc));
230int itimerfix __P((struct timeval *tv));
231int itimerdecr __P((struct itimerval *itp, int usec));
232void microtime __P((struct timeval *tv));
233void nanotime __P((struct timespec *ts));
234void second_overflow __P((u_int32_t *psec));
235void set_timecounter __P((struct timespec *ts));
236void timevaladd __P((struct timeval *, struct timeval *));
237void timevalsub __P((struct timeval *, struct timeval *));
229void init_timecounter __P((struct timecounter *tc));
230int itimerfix __P((struct timeval *tv));
231int itimerdecr __P((struct itimerval *itp, int usec));
232void microtime __P((struct timeval *tv));
233void nanotime __P((struct timespec *ts));
234void second_overflow __P((u_int32_t *psec));
235void set_timecounter __P((struct timespec *ts));
236void timevaladd __P((struct timeval *, struct timeval *));
237void timevalsub __P((struct timeval *, struct timeval *));
238int tvtohz __P((struct timeval *));
238#else /* !KERNEL */
239#include <time.h>
240
241#include <sys/cdefs.h>
242
243__BEGIN_DECLS
244int adjtime __P((const struct timeval *, struct timeval *));
245int getitimer __P((int, struct itimerval *));
246int gettimeofday __P((struct timeval *, struct timezone *));
247int setitimer __P((int, const struct itimerval *, struct itimerval *));
248int settimeofday __P((const struct timeval *, const struct timezone *));
249int utimes __P((const char *, const struct timeval *));
250__END_DECLS
251
252#endif /* !KERNEL */
253
254#endif /* !_SYS_TIME_H_ */
239#else /* !KERNEL */
240#include <time.h>
241
242#include <sys/cdefs.h>
243
244__BEGIN_DECLS
245int adjtime __P((const struct timeval *, struct timeval *));
246int getitimer __P((int, struct itimerval *));
247int gettimeofday __P((struct timeval *, struct timezone *));
248int setitimer __P((int, const struct itimerval *, struct itimerval *));
249int settimeofday __P((const struct timeval *, const struct timezone *));
250int utimes __P((const char *, const struct timeval *));
251__END_DECLS
252
253#endif /* !KERNEL */
254
255#endif /* !_SYS_TIME_H_ */