Eitan Adler
3afe9c0efe
Document the security.bsd.unprivileged_idprio in idprio(1) in addition
...
to rtprio(2).
Approved by: wblock
MFC after: 3 days
2012-09-30 03:21:21 +00:00
Xin LI
65c4dcd311
Fix the case where the utility is being used to run a command directly,
...
this is a regression introduced with r228917.
PR: bin/154042
Submitted by: Bugs Beastie <bugsbeastie gmail.com>
MFC after: 1 week
2012-05-11 21:52:05 +00:00
Xin LI
981dfb0965
- Fail when the utility is not invoked as rtprio nor idprio.
...
- use warnx() to tell the user whether a process is running in normal,
idle or realtime priority. with the old code it would have been possible
for another process to send data to stdout between
printf("%s: ", p);
and
printf("* priority\n");
and thus break the formatting.
- 'rtprio 10 -0' triggeres non-intuitive behavior. It would first set the
priority of itself to 10 *and* would then try to execute '-0'. Of course,
setting the priority of [id|rt]prio itself doesn't make a lot of sense,
but it is intuitive compared to the previous behavior.
- 'rtprio -t --1' will actually pass over the '-1' to rtprio(). Now
invoking rtprio like this will catch the wrong usage before passing
over the invalid argument to rtprio().
- Garrett Cooper suggested to add further diagnostics where the failure
occures, if execvp fails.
PR: bin/154042
Submitted by: arundel
MFC after: 1 month
2011-12-27 20:03:57 +00:00
Konstantin Belousov
a63f870b4c
Use errx() instead of err() in parseint. There is usually no interesting
...
information in errno.
Noted by: Garrett Cooper <yanegomi gmail com>
MFC after: 1 week
2011-01-04 17:27:17 +00:00
Konstantin Belousov
641c6c5c1a
Make the parsing of the integer arguments for rtprio(1)/idprio(1) stricter.
...
Style.
Based on submission by: Eitan Adler <lists eitanadler com>, keramida
Reviewed by: jhb, keramida
MFC after: 1 week
2011-01-04 14:13:09 +00:00
Ulrich Spörlein
0afc94c17a
mdoc: move CAVEATS, BUGS and SECURITY CONSIDERATIONS sections to the
...
bottom of the manpages and order them consistently.
GNU groff doesn't care about the ordering, and doesn't even mention
CAVEATS and SECURITY CONSIDERATIONS as common sections and where to put
them.
Found by: mdocml lint run
Reviewed by: ru
2010-05-13 12:07:55 +00:00
Ed Schouten
71ccf09269
The last big commit: let usr.sbin/ use WARNS=6 by default.
2010-01-02 11:07:44 +00:00
Ruslan Ermilov
59a3c79da6
Sort sections.
2005-01-18 20:02:45 +00:00
Ruslan Ermilov
a866e17077
Added the EXIT STATUS section where appropriate.
2005-01-17 07:44:44 +00:00
Ruslan Ermilov
6a5796e734
Eliminate macro calls inside literal displays.
2005-01-15 12:28:01 +00:00
Ruslan Ermilov
07bfccd71e
Mechanically kill hard sentence breaks.
2004-07-02 23:13:00 +00:00
Philippe Charnier
54ede02d10
add FBSDID
2003-07-06 12:44:11 +00:00
Philippe Charnier
7f94b8deee
Use `The .Nm utility'
2002-04-20 12:27:18 +00:00
Dima Dorfman
f247324df7
Remove whitespace at EOL.
2001-07-15 08:06:20 +00:00
Ruslan Ermilov
345e52e742
- Backout botched attempt to introduce MANSECT feature.
...
- MAN[1-9] -> MAN.
2001-03-26 14:42:20 +00:00
Ruslan Ermilov
c73e22c3d4
Set the default manual section for usr.sbin/ to 8.
2001-03-20 18:17:26 +00:00
Ruslan Ermilov
610a5778c5
mdoc(7) police: split punctuation characters + misc fixes.
2001-02-01 16:44:04 +00:00
Jun Kuriyama
683bdefcd3
Return exit value 0 on success when PID is specified.
2001-01-25 13:25:41 +00:00
Ruslan Ermilov
f4d874a1db
mdoc(7) police: do not split author names in the AUTHORS section.
2000-11-22 09:35:58 +00:00
Ruslan Ermilov
e97407b4f2
mdoc(7) police: use the new features of the Nm macro.
2000-11-20 20:10:44 +00:00
Ruslan Ermilov
b5c508fba3
Use Fx macro wherever possible.
2000-11-14 11:20:58 +00:00
Sheldon Hearn
f2e366a105
Remove single-space hard sentence breaks. These degrade the quality
...
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.
2000-03-01 14:09:25 +00:00
Philippe Charnier
97a729ff22
Use DIAGNOSTICS instead of incorrect section name
1999-11-27 17:10:35 +00:00
Peter Wemm
97d92980a9
$Id$ -> $FreeBSD$
1999-08-28 01:35:59 +00:00
Chris Costello
f437b38cf7
Fix a bunch of broken cross-references
1999-08-18 05:55:22 +00:00
Peter Hawkins
b69602f3bb
PR: 7489
...
Submitted by: Jos.Backus@nl.origin-it.com
Correct execvp fail message in current
1998-08-04 14:33:42 +00:00
Peter Dufault
66ed4bce19
Treat RTP_PRIO_FIFO the same as RTP_PRIO_REALTIME for status display.
1998-05-19 20:52:31 +00:00
Philippe Charnier
f12a14713b
.Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq.
1998-03-23 08:31:20 +00:00
Jordan K. Hubbard
319e22e578
Update man page to note that idleprio can't be used by normal
...
users either.
1998-03-12 01:29:12 +00:00
James Raynard
bf58fc2646
Fix a couple of stray apostrophes.
1997-12-28 20:52:56 +00:00
Philippe Charnier
7f1550ed10
Use err(3). Sync usage string and man page.
1997-10-13 11:24:01 +00:00
Mike Pritchard
c75354732f
Oops, had a couple of extra parens in a couple of lines.
1997-03-07 07:45:17 +00:00
Mike Pritchard
4f09442be6
Clean this man page up. Don't use hardcoded font escape codes.
...
Other mdoc cleanup.
1997-03-07 07:43:19 +00:00
Peter Wemm
476602a9d0
Revert $FreeBSD$ to $Id$
1997-02-22 16:15:28 +00:00
Wolfram Schneider
bfd34a4a60
Sort cross references.
1997-01-20 00:03:00 +00:00
Jordan K. Hubbard
1130b656e5
Make the long-awaited change from $Id$ to $FreeBSD$
...
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.
1997-01-14 07:20:47 +00:00
Mike Pritchard
85cf659a76
Use the .Fx macro where appropriate.
1996-08-23 00:57:08 +00:00
Mike Pritchard
78b0b234eb
Correct a bunch of man page cross references and generally
...
try and silence "manck".
ncurses, rpc, and some of the gnu stuff are still a big mess, however.
1996-02-11 22:38:05 +00:00
Mike Pritchard
4a8d02835c
Fix a bunch of spelling errors in a bunch of man pages.
1996-01-30 13:52:50 +00:00
Peter Wemm
a5b996a7ec
recording cvs-1.6 file death
1995-12-30 19:02:48 +00:00
Bruce Evans
7231767144
Don't attempt to install rtprio.2 from here. It has moved to lib/libc/sys.
1995-08-06 00:58:52 +00:00
David Greenman
7216391e49
"idle priority" support. Based on code from Henrik Vestergaard Draboel,
...
but substantially rewritten by me.
1994-10-02 04:48:21 +00:00
Jordan K. Hubbard
29bc33539c
Clean up typos in this manpage.
1994-09-25 11:22:12 +00:00
David Greenman
21e95ddd51
rtprio(1) utility to modify realtime priority of a process.
...
Submitted by: Henrik Vestergaard Draboel
1994-09-01 12:05:14 +00:00