From b61826c0e7ccc26d1c5b29af912b7f988ab70429 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Tue, 13 May 2014 09:02:43 +0200 Subject: [PATCH] sched_setscheduler.2: ERRORS: separate out EINVAL cases Signed-off-by: Michael Kerrisk --- man2/sched_setscheduler.2 | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/man2/sched_setscheduler.2 b/man2/sched_setscheduler.2 index 81b449ae0..8334bfdf5 100644 --- a/man2/sched_setscheduler.2 +++ b/man2/sched_setscheduler.2 @@ -145,11 +145,20 @@ is set appropriately. .SH ERRORS .TP .B EINVAL -The scheduling \fIpolicy\fP is not one of the recognized policies, +Invalid arguments: .I pid -is negative, -\fIparam\fP is NULL, -or \fIparam\fP does not make sense for the \fIpolicy\fP. +is negative or +.I param +is NULL. +.TP +.B EINVAL +.I policy +is not one of the recognized policies. +.TP +.B EINVAL +.I param +does not make sense for the specified +.IR policy . .TP .B EPERM The calling thread does not have appropriate privileges.