From efa42cbc934bb3c7e763ec2203cbf6959e23188b Mon Sep 17 00:00:00 2001 From: Paul Saab Date: Wed, 19 Jan 2005 18:09:50 +0000 Subject: [PATCH] move kern_nanosleep to sys/syscallsubr.h Requested by: jhb --- sys/kern/kern_time.c | 1 + sys/sys/syscallsubr.h | 2 ++ sys/sys/time.h | 4 ---- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/sys/kern/kern_time.c b/sys/kern/kern_time.c index e08a765e4c05..4e6fe7f5ff11 100644 --- a/sys/kern/kern_time.c +++ b/sys/kern/kern_time.c @@ -43,6 +43,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include #include diff --git a/sys/sys/syscallsubr.h b/sys/sys/syscallsubr.h index d3bb9772f95a..87d6b014a6e5 100644 --- a/sys/sys/syscallsubr.h +++ b/sys/sys/syscallsubr.h @@ -70,6 +70,8 @@ int kern_mkfifo(struct thread *td, char *path, enum uio_seg pathseg, int mode); int kern_mknod(struct thread *td, char *path, enum uio_seg pathseg, int mode, int dev); +int kern_nanosleep(struct thread *td, struct timespec *rqt, + struct timespec *rmt); int kern_open(struct thread *td, char *path, enum uio_seg pathseg, int flags, int mode); int kern_ptrace(struct thread *td, int req, pid_t pid, void *addr, diff --git a/sys/sys/time.h b/sys/sys/time.h index 6e83f5f2e29b..5371838dd5a0 100644 --- a/sys/sys/time.h +++ b/sys/sys/time.h @@ -297,10 +297,6 @@ int ratecheck(struct timeval *, const struct timeval *); void timevaladd(struct timeval *t1, const struct timeval *t2); void timevalsub(struct timeval *t1, const struct timeval *t2); int tvtohz(struct timeval *tv); - -struct thread; -int kern_nanosleep(struct thread *td, struct timespec *rqt, - struct timespec *rmt); #else /* !_KERNEL */ #include