Add mandoc-manpage for nice(1)

and mark it as finished in README.
This commit is contained in:
FRIGN 2015-01-28 22:40:40 +01:00
parent 2733fc7249
commit 20b5d7c0d4
3 changed files with 41 additions and 20 deletions

2
README
View File

@ -46,7 +46,7 @@ The following tools are implemented ('*' == finished, '#' == UTF-8 support,
=* mkfifo yes none =* mkfifo yes none
= mktemp non-posix none = mktemp non-posix none
=* mv yes (-i) =* mv yes (-i)
= nice yes none =* nice yes none
= nl no -d, -f, -h, -l, -n, -p, -v, -w = nl no -d, -f, -h, -l, -n, -p, -v, -w
= nohup yes none = nohup yes none
paste yes none paste yes none

57
nice.1
View File

@ -1,18 +1,39 @@
.TH NICE 1 sbase\-VERSION .Dd January 28, 2015
.SH NAME .Dt NICE 1 sbase\-VERSION
nice \- invoke a utility with an altered nice value .Sh NAME
.SH SYNOPSIS .Nm nice
.B nice .Nd run command with altered niceness
.RB [ \-n inc ] .Sh SYNOPSIS
.I command .Nm nice
.RI [ options ...] .Op Fl n Ar inc
.SH DESCRIPTION .Ar cmd
.B nice .Op Ar arg ...
invokes .Sh DESCRIPTION
.IR command .Nm
with a nice value equal to the current nice value plus runs
.IR inc, .Ar cmd
which defaults to 10 if unspecified. with the current niceness plus
.Ar inc .
.SH SEE ALSO A negative niceness is reserved to the superuser.
.IR renice (1) nice (2) .Sh OPTIONS
.Bl -tag -width Ds
.It Fl n Ar inc
Change niceness by
.Ar inc ,
ranging from
.Sy -20
(highest priority)
to
.Sy +20
(lowest priority).
Default is 10.
.El
.Sh SEE ALSO
.Xr renice 2 ,
.Xr nice 2
.Sh STANDARDS
The
.Nm
utility is compliant with the
.St -p1003.1-2008
specification.

2
nice.c
View File

@ -12,7 +12,7 @@
static void static void
usage(void) usage(void)
{ {
eprintf("usage: nice [-n inc] command [options ...]\n"); eprintf("usage: nice [-n inc] cmd [arg ...]\n");
} }
int int