sched_yield.2 (59954) | sched_yield.2 (68854) |
---|---|
1.\" $FreeBSD: head/lib/libc/sys/sched_yield.2 59954 2000-05-04 13:09:25Z phantom $ | 1.\" $FreeBSD: head/lib/libc/sys/sched_yield.2 68854 2000-11-17 11:44:16Z ru $ |
2.\" Copyright (c) 1998 HD Associates, Inc. 3.\" All rights reserved. 4.\" 5.\" Redistribution and use in source and binary forms, with or without 6.\" modification, are permitted provided that the following conditions 7.\" are met: 8.\" 1. Redistributions of source code must retain the above copyright 9.\" notice, this list of conditions and the following disclaimer. --- 25 unchanged lines hidden (view full) --- 35.Fd #include <sched.h> 36.Ft int 37.Fn sched_yield void 38.Sh DESCRIPTION 39The 40.Fn sched_yield 41function forces the running process to relinquish the processor until it 42again becomes the head of its process list. It takes no arguments. | 2.\" Copyright (c) 1998 HD Associates, Inc. 3.\" All rights reserved. 4.\" 5.\" Redistribution and use in source and binary forms, with or without 6.\" modification, are permitted provided that the following conditions 7.\" are met: 8.\" 1. Redistributions of source code must retain the above copyright 9.\" notice, this list of conditions and the following disclaimer. --- 25 unchanged lines hidden (view full) --- 35.Fd #include <sched.h> 36.Ft int 37.Fn sched_yield void 38.Sh DESCRIPTION 39The 40.Fn sched_yield 41function forces the running process to relinquish the processor until it 42again becomes the head of its process list. It takes no arguments. |
43.Sh RETURN | 43.Sh RETURN VALUES |
44The 45.Fn sched_yield 46function will return zero if it completes successfully, or it 47will return a value of -1 and set 48.Va errno 49to indicate the error. 50.Sh ERRORS 51On failure 52.Va errno 53will be set to the corresponding value: 54.Bl -tag -width Er 55.It Bq Er ENOSYS 56The system is not configured to support this functionality. 57.Sh STANDARDS 58The 59.Fn sched_yield 60function conforms to 61.St -p1003.1b-93 . | 44The 45.Fn sched_yield 46function will return zero if it completes successfully, or it 47will return a value of -1 and set 48.Va errno 49to indicate the error. 50.Sh ERRORS 51On failure 52.Va errno 53will be set to the corresponding value: 54.Bl -tag -width Er 55.It Bq Er ENOSYS 56The system is not configured to support this functionality. 57.Sh STANDARDS 58The 59.Fn sched_yield 60function conforms to 61.St -p1003.1b-93 . |