summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/include/sched.h
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2012-03-22 03:43:19 +0000
committerguenther <guenther@openbsd.org>2012-03-22 03:43:19 +0000
commitf4978ce37255461446d260ee137f557611a460a7 (patch)
tree21019836906f2e032bd62f356aee0edf6ee9b8aa /lib/libpthread/include/sched.h
parentUpdate alphasort() and scandir()'s argument types to match POSIX: (diff)
downloadwireguard-openbsd-f4978ce37255461446d260ee137f557611a460a7.tar.xz
wireguard-openbsd-f4978ce37255461446d260ee137f557611a460a7.zip
Hide behind #if 0 the sched_*() functions that we don't have yet
Requested and tested against ports by aja@, ok matthew@
Diffstat (limited to 'lib/libpthread/include/sched.h')
-rw-r--r--lib/libpthread/include/sched.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/libpthread/include/sched.h b/lib/libpthread/include/sched.h
index 81b91b2a682..e910040a569 100644
--- a/lib/libpthread/include/sched.h
+++ b/lib/libpthread/include/sched.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: sched.h,v 1.6 2002/02/16 21:27:25 millert Exp $ */
+/* $OpenBSD: sched.h,v 1.7 2012/03/22 03:43:19 guenther Exp $ */
/* sched.h: POSIX 1003.1b Process Scheduling header */
@@ -60,17 +60,22 @@ struct sched_param
#include <sys/cdefs.h>
__BEGIN_DECLS
+#if 0 /* not yet */
int sched_setparam(pid_t, const struct sched_param *);
int sched_getparam(pid_t, struct sched_param *);
int sched_setscheduler(pid_t, int, const struct sched_param *);
int sched_getscheduler(pid_t);
+#endif
int sched_yield(void);
int sched_get_priority_max(int);
int sched_get_priority_min(int);
+
+#if 0 /* not yet */
struct timespec;
int sched_rr_get_interval(pid_t, struct timespec *);
+#endif
__END_DECLS
#endif /* KERNEL */