https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=57cb4dcb942f6325c5e03d4c072e384b52a41e17

commit 57cb4dcb942f6325c5e03d4c072e384b52a41e17
Author:     Christian Franke <christian.fra...@t-online.de>
AuthorDate: Tue Mar 18 12:15:12 2025 +0100
Commit:     Corinna Vinschen <cori...@vinschen.de>
CommitDate: Tue Mar 18 16:39:28 2025 +0100

    Cygwin: doc: rename sched_setpolicy(2) to sched_setscheduler(2)
    
    The function sched_setpolicy(2) does not exist.
    
    Fixes: 757424f74400 ("Cygwin: doc: document sched_setpolicy(2) and priority 
mapping")
    Signed-off-by: Christian Franke <christian.fra...@t-online.de>

Diff:
---
 winsup/doc/posix.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/winsup/doc/posix.xml b/winsup/doc/posix.xml
index 748f243f67e9..d4a4e0d839c7 100644
--- a/winsup/doc/posix.xml
+++ b/winsup/doc/posix.xml
@@ -1917,7 +1917,7 @@ atomic either.  Over-allocation with FALLOC_FL_KEEP_SIZE 
is only
 temporary on Windows until the last handle to the file is closed.
 Over-allocation on sparse files is entirely ignored on Windows.</para>
 
-<para><function>sched_setpolicy</function> only emulates API behavior
+<para><function>sched_setscheduler</function> only emulates API behavior
 because Windows does not offer alternative scheduling policies.
 If <literal>SCHED_OTHER</literal> or <literal>SCHED_BATCH</literal> is
 selected, the Windows priority is set according to the nice value.
@@ -1931,7 +1931,7 @@ policies and negative nice values are dropped on
 <function>fork</function>.</para>
 
 <para><function>nice</function>, <function>setpriority</function>,
-<function>sched_setparam</function> and <function>sched_setpolicy</function>
+<function>sched_setparam</function> and <function>sched_setscheduler</function>
 map the nice value (<literal>SCHED_OTHER</literal>,
 <literal>SCHED_BATCH</literal>) or the <literal>sched_priority</literal>
 (<literal>SCHED_FIFO</literal>, <literal>SCHED_RR</literal>) to Windows

Reply via email to