aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/kern_time.c
diff options
context:
space:
mode:
authorRodney W. Grimes <rgrimes@FreeBSD.org>1994-05-25 09:21:21 +0000
committerRodney W. Grimes <rgrimes@FreeBSD.org>1994-05-25 09:21:21 +0000
commit26f9a76710a312a951848542b9ca1f44100450e2 (patch)
tree9179427ac860211c445df663fd2b86267366bfba /sys/kern/kern_time.c
parentdbda0ec78e324aced444959e2c98b89b79f22812 (diff)
downloadsrc-26f9a76710a312a951848542b9ca1f44100450e2.tar.gz
src-26f9a76710a312a951848542b9ca1f44100450e2.zip
The big 4.4BSD Lite to FreeBSD 2.0.0 (Development) patch.
Reviewed by: Rodney W. Grimes Submitted by: John Dyson and David Greenman
Notes
Notes: svn path=/head/; revision=1549
Diffstat (limited to 'sys/kern/kern_time.c')
-rw-r--r--sys/kern/kern_time.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/sys/kern/kern_time.c b/sys/kern/kern_time.c
index 4dadcb8e0b9d..2e86376de468 100644
--- a/sys/kern/kern_time.c
+++ b/sys/kern/kern_time.c
@@ -42,6 +42,10 @@
#include <machine/cpu.h>
+void timevaladd __P((struct timeval *, struct timeval *));
+void timevalsub __P((struct timeval *, struct timeval *));
+void timevalfix __P((struct timeval *));
+
/*
* Time of day and interval timer support.
*
@@ -57,6 +61,7 @@ struct gettimeofday_args {
struct timezone *tzp;
};
/* ARGSUSED */
+int
gettimeofday(p, uap, retval)
struct proc *p;
register struct gettimeofday_args *uap;
@@ -82,6 +87,7 @@ struct settimeofday_args {
struct timezone *tzp;
};
/* ARGSUSED */
+int
settimeofday(p, uap, retval)
struct proc *p;
struct settimeofday_args *uap;
@@ -131,6 +137,7 @@ struct adjtime_args {
struct timeval *olddelta;
};
/* ARGSUSED */
+int
adjtime(p, uap, retval)
struct proc *p;
register struct adjtime_args *uap;
@@ -209,6 +216,7 @@ struct getitimer_args {
struct itimerval *itv;
};
/* ARGSUSED */
+int
getitimer(p, uap, retval)
struct proc *p;
register struct getitimer_args *uap;
@@ -246,6 +254,7 @@ struct setitimer_args {
struct itimerval *itv, *oitv;
};
/* ARGSUSED */
+int
setitimer(p, uap, retval)
struct proc *p;
register struct setitimer_args *uap;
@@ -322,6 +331,7 @@ realitexpire(arg)
* fix it to have at least minimal value (i.e. if it is less
* than the resolution of the clock, round it up.)
*/
+int
itimerfix(tv)
struct timeval *tv;
{
@@ -344,6 +354,7 @@ itimerfix(tv)
* that it is called in a context where the timers
* on which it is operating cannot change in value.
*/
+int
itimerdecr(itp, usec)
register struct itimerval *itp;
int usec;
@@ -383,6 +394,7 @@ expire:
* it just gets very confused in this case.
* Caveat emptor.
*/
+void
timevaladd(t1, t2)
struct timeval *t1, *t2;
{
@@ -392,6 +404,7 @@ timevaladd(t1, t2)
timevalfix(t1);
}
+void
timevalsub(t1, t2)
struct timeval *t1, *t2;
{
@@ -401,6 +414,7 @@ timevalsub(t1, t2)
timevalfix(t1);
}
+void
timevalfix(t1)
struct timeval *t1;
{