From owner-man-jp-reviewer@jp.freebsd.org  Sun May 21 00:28:27 2000
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id AAA14859;
	Sun, 21 May 2000 00:28:27 +0900 (JST)
	(envelope-from owner-man-jp-reviewer@jp.FreeBSD.org)
Received: from basil.veltec.co.jp (camomile.veltec.co.jp [211.2.223.5])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id AAA14854
	for <man-jp-reviewer@jp.freebsd.org>; Sun, 21 May 2000 00:28:27 +0900 (JST)
	(envelope-from yuko@veltec.co.jp)
Received: from jade ([192.168.0.210])
	by basil.veltec.co.jp (8.10.0.Beta6/3.7W03/20/00) with ESMTP
	id e4KFY4t10207
	for <man-jp-reviewer@jp.freebsd.org>; Sun, 21 May 2000 00:34:04 +0900 (JST)
To: man-jp-reviewer@jp.freebsd.org
X-SMIME-fingerprint: A7:AE:D4:83:9D:5B:A5:F2:24:8F:F4:DC:87:3C:72:89
From: Yuko Sasaki <yuko@veltec.co.jp>
Message-Id: <200005210013.FGE58187.PLZV@veltec.co.jp>
X-Mailer: Winbiff [Version 2.31 beta1]
Date: Sun, 21 May 2000 00:29:30 +0900
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-2022-jp
Reply-To: man-jp-reviewer@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+000315
X-Sequence: man-jp-reviewer 2534
Subject: [man-jp-reviewer 2534] (man2) sched_yield.2
Errors-To: owner-man-jp-reviewer@jp.freebsd.org
Sender: owner-man-jp-reviewer@jp.freebsd.org
X-Originator: yuko@veltec.co.jp

------- $B$3$3$+$i(B --------------------------------------------------
.\" $FreeBSD: src/lib/libc/sys/sched_yield.2,v 1.1.2.1 1999/08/29 14:49:21 peter Exp $
.\" Copyright (c) 1998 HD Associates, Inc.
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\"    notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\"    notice, this list of conditions and the following disclaimer in the
.\"    documentation and/or other materials provided with the distribution.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.Dd Mar 12, 1998
.Dt SCHED_YIELD 2
.Os BSD 4
.Sh $BL>>N(B
.Nm sched_yield
.Nd $B%W%m%;%C%5$rL@$1EO$9(B
.Sh $B=q<0(B
.Fd #include <sched.h>
.Ft int
.Fn sched_yield void
.Sh $B2r@b(B
.Fn sched_yield
$B4X?t$O!"<B9TCf$N%W%m%;%9$,:F$S%W%m%;%9%j%9%H$N@hF,$K$J$k$^$G!"(B
$B%W%m%;%C%5$rJ|4~$5$;$^$9!#(B
$B0z?t$O;XDj$7$^$;$s!#(B
.Sh $BLa$jCM(B
.Fn sched_yield
$B4X?t$O!"@5>o$K40N;$9$k$H(B
0 $B$rJV$7!"$=$&$G$J$$>l9g$OCM(B
-1 $B$rJV$7!"%(%i!<$r<($9$?$a$K(B
.Va errno
$B$r@_Dj$7$^$9!#(B
.Sh $B%(%i!<(B
$B=hM}$K<:GT$9$k$H!"(B
.Va errno
$B$rBP1~$9$kCM$K@_Dj$7$^$9!#(B
.Bl -tag -width [EFAULT]
.It Bq Er ENOSYS
$B%7%9%F%`$,$3$N5!G=$r%5%]!<%H$9$k$h$&$K9=@.$5$l$F$$$^$;$s!#(B
.Sh $B5,3J(B
.Fn sched_yield
$B4X?t$O(B
.St -p1003.1b-93
$B$KE,9g$7$F$$$^$9!#(B
------- $B$3$3$^$G(B --------------------------------------------------

------- $B86J8!&$3$3$+$i(B --------------------------------------------------
.\" $FreeBSD: src/lib/libc/sys/sched_yield.2,v 1.1.2.1 1999/08/29 14:49:21 peter Exp $
.\" Copyright (c) 1998 HD Associates, Inc.
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\"    notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\"    notice, this list of conditions and the following disclaimer in the
.\"    documentation and/or other materials provided with the distribution.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.Dd Mar 12, 1998
.Dt SCHED_YIELD 2
.Os BSD 4
.Sh NAME
.Nm sched_yield
.Nd yield processor
.Sh SYNOPSIS
.Fd #include <sched.h>
.Ft int
.Fn sched_yield void
.Sh DESCRIPTION
The
.Fn sched_yield
function forces the running process to relinquish the processor until it
again becomes the head of its process list.  It takes no arguments.
.Sh RETURN
The 
.Fn sched_yield
function will return zero if it completes successfully, or it
will return a value of -1 and set
.Va errno
to indicate the error.
.Sh ERRORS
On failure
.Va errno
will be set to the corresponding value:
.Bl -tag -width [EFAULT]
.It Bq Er ENOSYS
The system is not configured to support this functionality.
.Sh STANDARDS
The
.Fn sched_yield 
function conforms to
.St -p1003.1b-93 .
------- $B86J8!&$3$3$^$G(B --------------------------------------------------
