Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-2]: src/lib/libpthread Pullup from trunk 1.3->1.4
details: https://anonhg.NetBSD.org/src/rev/966d60eb92e2
branches: netbsd-2
changeset: 564306:966d60eb92e2
user: jmc <jmc%NetBSD.org@localhost>
date: Fri Oct 28 02:01:22 2005 +0000
description:
Pullup from trunk 1.3->1.4
diffstat:
lib/libpthread/sched.c | 32 +++++++++++++++++++++++---------
1 files changed, 23 insertions(+), 9 deletions(-)
diffs (88 lines):
diff -r 8066cc45cf53 -r 966d60eb92e2 lib/libpthread/sched.c
--- a/lib/libpthread/sched.c Fri Oct 28 01:57:02 2005 +0000
+++ b/lib/libpthread/sched.c Fri Oct 28 02:01:22 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sched.c,v 1.3 2003/03/08 08:03:36 lukem Exp $ */
+/* $NetBSD: sched.c,v 1.3.4.1 2005/10/28 02:01:22 jmc Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: sched.c,v 1.3 2003/03/08 08:03:36 lukem Exp $");
+__RCSID("$NetBSD: sched.c,v 1.3.4.1 2005/10/28 02:01:22 jmc Exp $");
#include <errno.h>
#include <sched.h>
@@ -48,14 +48,18 @@
int
sched_setparam(pid_t pid, const struct sched_param *param)
{
- return ENOSYS;
+
+ errno = ENOSYS;
+ return -1;
}
/* ARGSUSED */
int
sched_getparam(pid_t pid, struct sched_param *param)
{
- return ENOSYS;
+
+ errno = ENOSYS;
+ return -1;
}
/* ARGSUSED */
@@ -63,33 +67,43 @@
sched_setscheduler(pid_t pid, int policy,
const struct sched_param *param)
{
- return ENOSYS;
+
+ errno = ENOSYS;
+ return -1;
}
/* ARGSUSED */
int
sched_getscheduler(pid_t pid)
{
- return ENOSYS;
+
+ errno = ENOSYS;
+ return -1;
}
/* ARGSUSED */
int
sched_get_priority_max(int policy)
{
- return ENOSYS;
+
+ errno = ENOSYS;
+ return -1;
}
/* ARGSUSED */
int
sched_get_priority_min(int policy)
{
- return ENOSYS;
+
+ errno = ENOSYS;
+ return -1;
}
/* ARGSUSED */
int
sched_rr_get_interval(pid_t pid, struct timespec *interval)
{
- return ENOSYS;
+
+ errno = ENOSYS;
+ return -1;
}
Home |
Main Index |
Thread Index |
Old Index