summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2001-03-09 02:18:00 +0000
committermillert <millert@openbsd.org>2001-03-09 02:18:00 +0000
commit57441323d991601947fffed24e6a0ed7e49feeb1 (patch)
treeb403374b23df070cd89be68b93b49aa15ddf241a
parentPATH_MAX includes NUL (diff)
downloadwireguard-openbsd-57441323d991601947fffed24e6a0ed7e49feeb1.tar.xz
wireguard-openbsd-57441323d991601947fffed24e6a0ed7e49feeb1.zip
Move nanosleep() proto to from sys/time.h to time.h where it belongs.
Problem noted by Jean-Baptiste Marchand
-rw-r--r--include/time.h4
-rw-r--r--sys/sys/time.h3
2 files changed, 4 insertions, 3 deletions
diff --git a/include/time.h b/include/time.h
index d929141e395..800bc442f4b 100644
--- a/include/time.h
+++ b/include/time.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: time.h,v 1.9 2000/08/22 13:59:44 millert Exp $ */
+/* $OpenBSD: time.h,v 1.10 2001/03/09 02:18:00 millert Exp $ */
/* $NetBSD: time.h,v 1.9 1994/10/26 00:56:35 cgd Exp $ */
/*
@@ -89,6 +89,7 @@ struct tm {
#include <sys/cdefs.h>
__BEGIN_DECLS
+struct timespec;
char *asctime __P((const struct tm *));
clock_t clock __P((void));
char *ctime __P((const time_t *));
@@ -103,6 +104,7 @@ char *asctime_r __P((const struct tm *, char *));
char *ctime_r __P((const time_t *, char *));
struct tm *gmtime_r __P((const time_t *, struct tm *));
struct tm *localtime_r __P((const time_t *, struct tm *));
+int nanosleep __P((const struct timespec *, struct timespec *));
#if !defined(_ANSI_SOURCE)
#define CLK_TCK 100
diff --git a/sys/sys/time.h b/sys/sys/time.h
index d5c35b44687..ce95961ad10 100644
--- a/sys/sys/time.h
+++ b/sys/sys/time.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: time.h,v 1.11 2000/10/10 13:36:48 itojun Exp $ */
+/* $OpenBSD: time.h,v 1.12 2001/03/09 02:18:00 millert Exp $ */
/* $NetBSD: time.h,v 1.18 1996/04/23 10:29:33 mycroft Exp $ */
/*
@@ -183,7 +183,6 @@ int clock_settime __P((clockid_t, const struct timespec *));
int futimes __P((int, const struct timeval *));
int getitimer __P((int, struct itimerval *));
int gettimeofday __P((struct timeval *, struct timezone *));
-int nanosleep __P((const struct timespec *, struct timespec *));
int setitimer __P((int, const struct itimerval *, struct itimerval *));
int settimeofday __P((const struct timeval *, const struct timezone *));
int utimes __P((const char *, const struct timeval *));