time.h (140481) | time.h (140483) |
---|---|
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 140481 2005-01-19 17:44:59Z ps $ | 30 * $FreeBSD: head/sys/sys/time.h 140483 2005-01-19 18:09:50Z ps $ |
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> --- 253 unchanged lines hidden (view full) --- 292/* Other functions */ 293int itimerdecr(struct itimerval *itp, int usec); 294int itimerfix(struct timeval *tv); 295int ppsratecheck(struct timeval *, int *, int); 296int ratecheck(struct timeval *, const struct timeval *); 297void timevaladd(struct timeval *t1, const struct timeval *t2); 298void timevalsub(struct timeval *t1, const struct timeval *t2); 299int tvtohz(struct timeval *tv); | 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> --- 253 unchanged lines hidden (view full) --- 292/* Other functions */ 293int itimerdecr(struct itimerval *itp, int usec); 294int itimerfix(struct timeval *tv); 295int ppsratecheck(struct timeval *, int *, int); 296int ratecheck(struct timeval *, const struct timeval *); 297void timevaladd(struct timeval *t1, const struct timeval *t2); 298void timevalsub(struct timeval *t1, const struct timeval *t2); 299int tvtohz(struct timeval *tv); |
300 301struct thread; 302int kern_nanosleep(struct thread *td, struct timespec *rqt, 303 struct timespec *rmt); | |
304#else /* !_KERNEL */ 305#include <time.h> 306 307#include <sys/cdefs.h> 308 309__BEGIN_DECLS 310int adjtime(const struct timeval *, struct timeval *); 311int futimes(int, const struct timeval *); 312int getitimer(int, struct itimerval *); 313int gettimeofday(struct timeval *, struct timezone *); 314int lutimes(const char *, const struct timeval *); 315int setitimer(int, const struct itimerval *, struct itimerval *); 316int settimeofday(const struct timeval *, const struct timezone *); 317int utimes(const char *, const struct timeval *); 318__END_DECLS 319 320#endif /* !_KERNEL */ 321 322#endif /* !_SYS_TIME_H_ */ | 300#else /* !_KERNEL */ 301#include <time.h> 302 303#include <sys/cdefs.h> 304 305__BEGIN_DECLS 306int adjtime(const struct timeval *, struct timeval *); 307int futimes(int, const struct timeval *); 308int getitimer(int, struct itimerval *); 309int gettimeofday(struct timeval *, struct timezone *); 310int lutimes(const char *, const struct timeval *); 311int setitimer(int, const struct itimerval *, struct itimerval *); 312int settimeofday(const struct timeval *, const struct timezone *); 313int utimes(const char *, const struct timeval *); 314__END_DECLS 315 316#endif /* !_KERNEL */ 317 318#endif /* !_SYS_TIME_H_ */ |