diff --git a/include/sched.h b/include/sched.h index 13a1fb060500..eb84feabc4cb 100644 --- a/include/sched.h +++ b/include/sched.h @@ -1,4 +1,4 @@ -/* $NetBSD: sched.h,v 1.9 2008/04/28 20:22:54 martin Exp $ */ +/* $NetBSD: sched.h,v 1.10 2008/06/15 21:38:08 rmind Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -37,15 +37,9 @@ #include /* Required by POSIX 1003.1, section 13.1, lines 12-13. */ -#include - -/* Functions */ +#include __BEGIN_DECLS -/* - * These are permitted to fail and return -1 and set errno = ENOSYS if - * _POSIX_PRIORITY_SCHEDULING is not defined. - */ 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 *); @@ -54,8 +48,6 @@ int sched_get_priority_max(int); int sched_get_priority_min(int); int sched_rr_get_interval(pid_t, struct timespec *); - -/* Not optional in the presence of _POSIX_THREADS */ int sched_yield(void); int __libc_thr_yield(void); __END_DECLS @@ -70,7 +62,6 @@ __END_DECLS * Stuff that for historical reasons is in , but not defined * by any standard. */ - __BEGIN_DECLS pid_t clone(int (*)(void *), void *, int, void *); pid_t __clone(int (*)(void *), void *, int, void *);