util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] docs: make the man-page licenses of chrt and taskset match their intent
@ 2014-08-12 20:15 Benno Schulenberg
  2014-08-12 20:15 ` [PATCH 2/3] textual: make the license of chrt and taskset slightly more explicit Benno Schulenberg
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Benno Schulenberg @ 2014-08-12 20:15 UTC (permalink / raw)
  To: util-linux

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
---
 schedutils/chrt.1    |    5 ++---
 schedutils/taskset.1 |    5 ++---
 2 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/schedutils/chrt.1 b/schedutils/chrt.1
index 58c8911..6711fc6 100644
--- a/schedutils/chrt.1
+++ b/schedutils/chrt.1
@@ -3,9 +3,8 @@
 .\" Copyright (C) 2004 Robert Love
 .\"
 .\" This is free documentation; you can redistribute it and/or
-.\" modify it under the terms of the GNU General Public License as
-.\" published by the Free Software Foundation; either version 2 of
-.\" the License.
+.\" modify it under the terms of the GNU General Public License,
+.\" version 2, as published by the Free Software Foundation.
 .\"
 .\" The GNU General Public License's references to "object code"
 .\" and "executables" are to be interpreted as the output of any
diff --git a/schedutils/taskset.1 b/schedutils/taskset.1
index fb5738c..e6a5624 100644
--- a/schedutils/taskset.1
+++ b/schedutils/taskset.1
@@ -3,9 +3,8 @@
 .\" Copyright (C) 2004 Robert Love
 .\"
 .\" This is free documentation; you can redistribute it and/or
-.\" modify it under the terms of the GNU General Public License as
-.\" published by the Free Software Foundation; either version 2 of
-.\" the License.
+.\" modify it under the terms of the GNU General Public License,
+.\" version 2, as published by the Free Software Foundation.
 .\"
 .\" The GNU General Public License's references to "object code"
 .\" and "executables" are to be interpreted as the output of any
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/3] textual: make the license of chrt and taskset slightly more explicit
  2014-08-12 20:15 [PATCH 1/3] docs: make the man-page licenses of chrt and taskset match their intent Benno Schulenberg
@ 2014-08-12 20:15 ` Benno Schulenberg
  2014-08-12 20:15 ` [PATCH 3/3] docs: bring the chrt and taskset man pages closer to standard formatting Benno Schulenberg
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Benno Schulenberg @ 2014-08-12 20:15 UTC (permalink / raw)
  To: util-linux

This makes it match the license of the man pages.
While there, also tweak some other comment lines.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
---
 schedutils/chrt.c    |   10 ++++------
 schedutils/taskset.c |    5 ++---
 2 files changed, 6 insertions(+), 9 deletions(-)

diff --git a/schedutils/chrt.c b/schedutils/chrt.c
index e9af427..fec26fd 100644
--- a/schedutils/chrt.c
+++ b/schedutils/chrt.c
@@ -1,13 +1,11 @@
 /*
- * chrt.c - chrt
- * Command-line utility for manipulating a task's real-time attributes 
+ * chrt.c - manipulate a task's real-time attributes
  *
- * Robert Love <rml@tech9.net>
- * 27-Apr-2002: initial version
- * 04-May-2011: make thread aware - Davidlohr Bueso <dave@gnu.org>
+ * 27-Apr-2002: initial version - Robert Love <rml@tech9.net>
+ * 04-May-2011: make it thread-aware - Davidlohr Bueso <dave@gnu.org>
  *
  * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License, v2, as
+ * it under the terms of the GNU General Public License, version 2, as
  * published by the Free Software Foundation
  *
  * This program is distributed in the hope that it will be useful,
diff --git a/schedutils/taskset.c b/schedutils/taskset.c
index c2b9ab6..6ebca06 100644
--- a/schedutils/taskset.c
+++ b/schedutils/taskset.c
@@ -1,9 +1,8 @@
 /*
- * taskset.c - command-line utility for setting and retrieving
- *             a task's CPU affinity
+ * taskset.c - set or retrieve a task's CPU affinity
  *
  * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License, v2, as
+ * it under the terms of the GNU General Public License, version 2, as
  * published by the Free Software Foundation
  *
  * This program is distributed in the hope that it will be useful,
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 3/3] docs: bring the chrt and taskset man pages closer to standard formatting
  2014-08-12 20:15 [PATCH 1/3] docs: make the man-page licenses of chrt and taskset match their intent Benno Schulenberg
  2014-08-12 20:15 ` [PATCH 2/3] textual: make the license of chrt and taskset slightly more explicit Benno Schulenberg
@ 2014-08-12 20:15 ` Benno Schulenberg
  2014-08-12 20:23 ` [PATCH 1/3] docs: make the man-page licenses of chrt and taskset match their intent Benno Schulenberg
  2014-08-20  9:02 ` Karel Zak
  3 siblings, 0 replies; 5+ messages in thread
From: Benno Schulenberg @ 2014-08-12 20:15 UTC (permalink / raw)
  To: util-linux

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
---
 schedutils/chrt.1    |   83 ++++++++++++++++++++++++-------------------------
 schedutils/taskset.1 |   52 ++++++++++++++++---------------
 2 files changed, 68 insertions(+), 67 deletions(-)

diff --git a/schedutils/chrt.1 b/schedutils/chrt.1
index 6711fc6..e385c9f 100644
--- a/schedutils/chrt.1
+++ b/schedutils/chrt.1
@@ -23,30 +23,30 @@
 .\" 2002-05-11 Robert Love <rml@tech9.net>
 .\" 	Initial version
 .\"
-.TH CHRT 1 "June 2010" "util-linux" "User Commands"
+.TH CHRT 1 "August 2014" "util-linux" "User Commands"
 .SH NAME
 chrt \- manipulate the real-time attributes of a process
 .SH SYNOPSIS
 .B chrt
-.RI [ options ]\  prio
-.IR command\  [ arg ]...
+[options]
+.IR priority\ command\  [ argument ...]
 .br
 .B chrt
-.RI [ options ]
+[options]
 .B \-p
-.RI [ prio ]\  pid
+.RI [ priority ]\  pid
 .SH DESCRIPTION
 .PP
 .B chrt
 sets or retrieves the real-time scheduling attributes of an existing \fIpid\fR,
-or runs \fIcommand\fR with the given attributes.  Both policy (one of
+or runs \fIcommand\fR with the given attributes.  Both the policy (one of
 .BR SCHED_OTHER ,
 .BR SCHED_FIFO ,
 .BR SCHED_RR ,
 .BR SCHED_BATCH ,
 or
 .BR SCHED_IDLE )
-and priority can be set and retrieved.
+and the priority can be set and retrieved.
 .PP
 The
 .BR SCHED_BATCH
@@ -60,63 +60,63 @@ flag for policies SCHED_RR and SCHED_FIFO is supported
 since Linux 2.6.31.
 .SH OPTIONS
 .TP
-.B -a, --all-tasks
+.BR -a ,\  --all-tasks
 Set or retrieve the scheduling attributes of all the tasks (threads) for a
 given PID.
 .TP
-.B -b, --batch
+.BR -b ,\  --batch
 Set scheduling policy to
-.BR SCHED_BATCH
-(Linux specific).
+.B SCHED_BATCH
+(Linux-specific).
 .TP
-.B -f, --fifo
+.BR -f ,\  --fifo
 Set scheduling policy to
 .BR SCHED_FIFO .
 .TP
-.B -i, --idle
+.BR -i ,\  --idle
 Set scheduling policy to
-.BR SCHED_IDLE
-(Linux specific).
+.B SCHED_IDLE
+(Linux-specific).
 .TP
-.B -m, --max
+.BR -m ,\  --max
 Show minimum and maximum valid priorities, then exit.
 .TP
-.B -o, --other
+.BR -o ,\  --other
 Set policy scheduling policy to
 .BR SCHED_OTHER .
 .TP
-.B -p, --pid
+.BR -p ,\  --pid
 Operate on an existing PID and do not launch a new task.
 .TP
-.B -r, --rr
-Set scheduling policy to
-.BR SCHED_RR .
-When policy is not defined the
-.B SCHED_RR
-is used as default.
-.TP
-.B -R, --reset-on-fork
+.BR -R ,\  --reset-on-fork
 Add
 .B SCHED_RESET_ON_FORK
 flag to the
 .B SCHED_FIFO
 or
 .B SCHED_RR
-scheduling policy (Linux specific).
+scheduling policy (Linux-specific).
 .TP
-.B -v, --verbose
-Show status information.
+.BR -r ,\  --rr
+Set scheduling policy to
+.BR SCHED_RR .
+When policy is not defined the
+.B SCHED_RR
+is used as default.
 .TP
-.B -h, --help
-Display help text and exit.
+.BR -v ,\  --verbose
+Show status information.
 .TP
-.B -V, --version
+.BR -V ,\  --version
 Display version information and exit.
+.TP
+.BR -h ,\  --help
+Display help text and exit.
 .SH USAGE
 .TP
 The default behavior is to run a new command:
 .B chrt
-.I prio
+.I priority
 .IR command\  [ arguments ]
 .TP
 You can also retrieve the real-time attributes of an existing task:
@@ -125,7 +125,7 @@ You can also retrieve the real-time attributes of an existing task:
 .TP
 Or set them:
 .B chrt \-r \-p
-.I prio pid
+.I priority pid
 .SH PERMISSIONS
 A user must possess
 .BR CAP_SYS_NICE
@@ -142,14 +142,7 @@ may be ignored on some systems.
 .P
 Linux default scheduling policy is
 .BR SCHED_OTHER .
-.SH AUTHOR
-Written by Robert M. Love.
-.SH COPYRIGHT
-Copyright \(co 2004 Robert M. Love
-.br
-This is free software; see the source for copying conditions.  There is NO
-warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-.SH "SEE ALSO"
+.SH SEE ALSO
 .BR taskset (1),
 .BR nice (1),
 .BR renice (1)
@@ -157,6 +150,12 @@ warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 See
 .BR sched_setscheduler (2)
 for a description of the Linux scheduling scheme.
+.SH AUTHOR
+Written by Robert M. Love.
+.SH COPYRIGHT
+Copyright \(co 2004 Robert M. Love.
+This is free software; see the source for copying conditions.  There is NO
+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 .SH AVAILABILITY
 The chrt command is part of the util-linux package and is available from
 ftp://ftp.kernel.org/pub/linux/utils/util-linux/.
diff --git a/schedutils/taskset.1 b/schedutils/taskset.1
index e6a5624..0d62e8b 100644
--- a/schedutils/taskset.1
+++ b/schedutils/taskset.1
@@ -23,23 +23,24 @@
 .\" 2002-05-11 Robert Love <rml@tech9.net>
 .\" 	Initial version
 .\"
-.TH TASKSET 1 "April 2003" "util-linux" "User Commands"
+.TH TASKSET 1 "August 2014" "util-linux" "User Commands"
 .SH NAME
-taskset \- retrieve or set a process's CPU affinity
+taskset \- set or retrieve a process's CPU affinity
 .SH SYNOPSIS
 .B taskset
-.RI [ options ]\  mask
-.IR command\  [ arg ]...
+[options]
+.IR mask\ command\  [ argument ...]
 .br
 .B taskset
-.RI [ options ]
+[options]
 .B \-p
 .RI [ mask ]\  pid
 .SH DESCRIPTION
 .PP
 .B taskset
-is used to set or retrieve the CPU affinity of a running process given its PID
-or to launch a new COMMAND with a given CPU affinity.  CPU affinity is a
+is used to set or retrieve the CPU affinity of a running process given its
+\fIpid\fR, or to launch a new \fIcommand\fR with a given CPU affinity.
+CPU affinity is a
 scheduler property that "bonds" a process to a given set of CPUs on the system.
 The Linux scheduler will honor the given CPU affinity and the process will not
 run on any other CPUs.  Note that the Linux scheduler also supports natural
@@ -54,15 +55,17 @@ may specify more CPUs than are present.  A retrieved mask will reflect only the
 bits that correspond to CPUs physically on the system.  If an invalid mask is
 given (i.e., one that corresponds to no valid CPUs on the current system) an
 error is returned.  The masks are typically given in hexadecimal.  For example,
-.TP
+.RS 4
+.TP 12
 .BR 0x00000001
-is processor #0
+is processor #0,
 .TP
 .BR 0x00000003
-is processors #0 and #1
+is processors #0 and #1,
 .TP
 .BR 0xFFFFFFFF
 is all processors (#0 through #31).
+.RE
 .PP
 When
 .BR taskset
@@ -73,19 +76,19 @@ CPU.
 .BR \-a ,\  \-\-all-tasks
 Set or retrieve the CPU affinity of all the tasks (threads) for a given PID.
 .TP
+.BR \-c ,\  \-\-cpu-list \ \fInumbers
+Specify a numerical list of processors instead of a bitmask.  The \fInumbers\fR
+are separated by commas and may include ranges.  For example:
+.BR 0,5,8-11 .
+.TP
 .BR \-p ,\  \-\-pid
 Operate on an existing PID and do not launch a new task.
 .TP
-.BR \-c ,\  \-\-cpu-list
-Specify a numerical list of processors instead of a bitmask.  The numbers
-are separated by commas and may include ranges.  For example:
-.BR 0,5,7,9-11 .
+.BR \-V ,\  \-\-version
+Display version information and exit.
 .TP
 .BR \-h ,\  \-\-help
 Display help text and exit.
-.TP
-.BR \-V ,\  \-\-version
-Display version information and exit.
 .SH USAGE
 .TP
 The default behavior is to run a new command with a given affinity mask:
@@ -106,14 +109,7 @@ A user must possess
 .B CAP_SYS_NICE
 to change the CPU affinity of a process belonging to another user.
 A user can retrieve the affinity mask of any process.
-.SH AUTHOR
-Written by Robert M. Love.
-.SH COPYRIGHT
-Copyright \(co 2004 Robert M. Love
-.br
-This is free software; see the source for copying conditions.  There is NO
-warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-.SH "SEE ALSO"
+.SH SEE ALSO
 .BR chrt (1),
 .BR nice (1),
 .BR renice (1),
@@ -123,6 +119,12 @@ warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 See
 .BR sched_setscheduler (2)
 for a description of the Linux scheduling scheme.
+.SH AUTHOR
+Written by Robert M. Love.
+.SH COPYRIGHT
+Copyright \(co 2004 Robert M. Love.
+This is free software; see the source for copying conditions.  There is NO
+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 .SH AVAILABILITY
 The taskset command is part of the util-linux package and is available from
 ftp://ftp.kernel.org/pub/linux/utils/util-linux/.
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/3] docs: make the man-page licenses of chrt and taskset match their intent
  2014-08-12 20:15 [PATCH 1/3] docs: make the man-page licenses of chrt and taskset match their intent Benno Schulenberg
  2014-08-12 20:15 ` [PATCH 2/3] textual: make the license of chrt and taskset slightly more explicit Benno Schulenberg
  2014-08-12 20:15 ` [PATCH 3/3] docs: bring the chrt and taskset man pages closer to standard formatting Benno Schulenberg
@ 2014-08-12 20:23 ` Benno Schulenberg
  2014-08-20  9:02 ` Karel Zak
  3 siblings, 0 replies; 5+ messages in thread
From: Benno Schulenberg @ 2014-08-12 20:23 UTC (permalink / raw)
  To: Util-Linux


On Tue, Aug 12, 2014, at 22:15, Benno Schulenberg wrote:
>  .\" This is free documentation; you can redistribute it and/or
> -.\" modify it under the terms of the GNU General Public License as
> -.\" published by the Free Software Foundation; either version 2 of
> -.\" the License.

The intent seems to have been to reduce the text "either version 2 of
the License, or (at your option) any later version." to just "version 2 of
the License." but forgetting to remove the word "either".  It would make
sense, because the corresponding .c files are licensed under version 2 too.
I've asked the original author about his intent, but he did not respond.

It seems there has been a version 2.1 of the GPL, but I cannot find it
on gnu.org.  If it did exist, then "either version 2 of the License" could
make sense, but would still allow to relicense it under just version 2.
So I think the change is correct in all cases.

Benno

-- 
http://www.fastmail.fm - A no graphics, no pop-ups email service


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/3] docs: make the man-page licenses of chrt and taskset match their intent
  2014-08-12 20:15 [PATCH 1/3] docs: make the man-page licenses of chrt and taskset match their intent Benno Schulenberg
                   ` (2 preceding siblings ...)
  2014-08-12 20:23 ` [PATCH 1/3] docs: make the man-page licenses of chrt and taskset match their intent Benno Schulenberg
@ 2014-08-20  9:02 ` Karel Zak
  3 siblings, 0 replies; 5+ messages in thread
From: Karel Zak @ 2014-08-20  9:02 UTC (permalink / raw)
  To: Benno Schulenberg; +Cc: util-linux

On Tue, Aug 12, 2014 at 10:15:16PM +0200, Benno Schulenberg wrote:
>  schedutils/chrt.1    |    5 ++---
>  schedutils/taskset.1 |    5 ++---
>  2 files changed, 4 insertions(+), 6 deletions(-)

 All three patches applied, thanks.

-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-08-20  9:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-12 20:15 [PATCH 1/3] docs: make the man-page licenses of chrt and taskset match their intent Benno Schulenberg
2014-08-12 20:15 ` [PATCH 2/3] textual: make the license of chrt and taskset slightly more explicit Benno Schulenberg
2014-08-12 20:15 ` [PATCH 3/3] docs: bring the chrt and taskset man pages closer to standard formatting Benno Schulenberg
2014-08-12 20:23 ` [PATCH 1/3] docs: make the man-page licenses of chrt and taskset match their intent Benno Schulenberg
2014-08-20  9:02 ` Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).