public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Julian Orth <ju.orth@gmail.com>
To: mtk.manpages@gmail.com
Cc: linux-man@vger.kernel.org, linux-kernel@vger.kernel.org,
	Julian Orth <ju.orth@gmail.com>
Subject: [PATCH] sched_setattr.2: Remove a const attribute
Date: Tue,  9 Jun 2015 14:11:41 +0200	[thread overview]
Message-ID: <1433851901-25034-1-git-send-email-ju.orth@gmail.com> (raw)

The attr argument of sched_setattr was documented as const but the
kernel will modify the size field of this struct if it contains an
invalid value. See the documentation of the size field for details.
---
 man2/sched_setattr.2 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/man2/sched_setattr.2 b/man2/sched_setattr.2
index dff8e6d..df14ab4 100644
--- a/man2/sched_setattr.2
+++ b/man2/sched_setattr.2
@@ -31,7 +31,7 @@ set and get scheduling policy and attributes
 .nf
 .B #include <sched.h>
 
-.BI "int sched_setattr(pid_t " pid ", const struct sched_attr *" attr ,
+.BI "int sched_setattr(pid_t " pid ", struct sched_attr *" attr ,
 .BI "                  unsigned int " flags );
 
 .BI "int sched_getattr(pid_t " pid ", struct sched_attr *" attr ,
-- 
2.4.2


             reply	other threads:[~2015-06-09 12:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-09 12:11 Julian Orth [this message]
2015-07-23  7:40 ` [PATCH] sched_setattr.2: Remove a const attribute Michael Kerrisk (man-pages)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1433851901-25034-1-git-send-email-ju.orth@gmail.com \
    --to=ju.orth@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-man@vger.kernel.org \
    --cc=mtk.manpages@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox