From 4f4b5135e229cabacd445e4738dbdc7f8cee45a4 Mon Sep 17 00:00:00 2001
From: Christian Franke <christian.fra...@t-online.de>
Date: Tue, 18 Mar 2025 12:15:12 +0100
Subject: [PATCH] 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>
---
 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 748f243f6..d4a4e0d83 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
-- 
2.45.1

Reply via email to