Skip to content

Commit 57cb4dc

Browse files
chrfrankegithub-cygwin
authored andcommitted
Cygwin: doc: rename sched_setpolicy(2) to sched_setscheduler(2)
The function sched_setpolicy(2) does not exist. Fixes: 757424f ("Cygwin: doc: document sched_setpolicy(2) and priority mapping") Signed-off-by: Christian Franke <[email protected]>
1 parent 8113017 commit 57cb4dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

winsup/doc/posix.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1917,7 +1917,7 @@ atomic either. Over-allocation with FALLOC_FL_KEEP_SIZE is only
19171917
temporary on Windows until the last handle to the file is closed.
19181918
Over-allocation on sparse files is entirely ignored on Windows.</para>
19191919

1920-
<para><function>sched_setpolicy</function> only emulates API behavior
1920+
<para><function>sched_setscheduler</function> only emulates API behavior
19211921
because Windows does not offer alternative scheduling policies.
19221922
If <literal>SCHED_OTHER</literal> or <literal>SCHED_BATCH</literal> is
19231923
selected, the Windows priority is set according to the nice value.
@@ -1931,7 +1931,7 @@ policies and negative nice values are dropped on
19311931
<function>fork</function>.</para>
19321932

19331933
<para><function>nice</function>, <function>setpriority</function>,
1934-
<function>sched_setparam</function> and <function>sched_setpolicy</function>
1934+
<function>sched_setparam</function> and <function>sched_setscheduler</function>
19351935
map the nice value (<literal>SCHED_OTHER</literal>,
19361936
<literal>SCHED_BATCH</literal>) or the <literal>sched_priority</literal>
19371937
(<literal>SCHED_FIFO</literal>, <literal>SCHED_RR</literal>) to Windows

0 commit comments

Comments
 (0)