aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/posix4.h
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1999-12-27 10:22:09 +0000
committerBruce Evans <bde@FreeBSD.org>1999-12-27 10:22:09 +0000
commit9f79feec169dfef2aeeb2ab54aa2bc3909c4a056 (patch)
treed1ca34378898d47d4d76b288db71d7b54aa12394 /sys/sys/posix4.h
parent7f69314760631c8c12101bb53df001ebd28db1bb (diff)
downloadsrc-9f79feec169dfef2aeeb2ab54aa2bc3909c4a056.tar.gz
src-9f79feec169dfef2aeeb2ab54aa2bc3909c4a056.zip
Fixed some type mismatches. p_retval[0] in struct proc has type
register_t, so pointers to it must be passed around as `register_t *', not as `int *'. The type mismatches were non-benign on alphas, but the broken code is normally only configured by LINT.
Notes
Notes: svn path=/head/; revision=55140
Diffstat (limited to 'sys/sys/posix4.h')
-rw-r--r--sys/sys/posix4.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/sys/sys/posix4.h b/sys/sys/posix4.h
index dee09ec2198b..232435a4922a 100644
--- a/sys/sys/posix4.h
+++ b/sys/sys/posix4.h
@@ -31,6 +31,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
+ * $FreeBSD$
*/
#include "opt_posix.h"
@@ -93,21 +94,22 @@ struct ksched;
int ksched_attach(struct ksched **);
int ksched_detach(struct ksched *);
-int ksched_setparam(int *, struct ksched *,
+int ksched_setparam(register_t *, struct ksched *,
struct proc *, const struct sched_param *);
-int ksched_getparam(int *, struct ksched *,
+int ksched_getparam(register_t *, struct ksched *,
struct proc *, struct sched_param *);
-int ksched_setscheduler(int *, struct ksched *,
+int ksched_setscheduler(register_t *, struct ksched *,
struct proc *, int, const struct sched_param *);
-int ksched_getscheduler(int *, struct ksched *, struct proc *);
+int ksched_getscheduler(register_t *, struct ksched *, struct proc *);
-int ksched_yield(int *, struct ksched *);
+int ksched_yield(register_t *, struct ksched *);
-int ksched_get_priority_max(int *, struct ksched *, int);
-int ksched_get_priority_min(int *, struct ksched *, int);
+int ksched_get_priority_max(register_t *, struct ksched *, int);
+int ksched_get_priority_min(register_t *, struct ksched *, int);
-int ksched_rr_get_interval(int *, struct ksched *, struct proc *, struct timespec *);
+int ksched_rr_get_interval(register_t *, struct ksched *,
+ struct proc *, struct timespec *);
#endif /* _KPOSIX_PRIORITY_SCHEDULING */