summaryrefslogtreecommitdiff
path: root/usr.bin/nice/nice.c
Commit message (Collapse)AuthorAgeFilesLines
* Sync program's usage() with manpage's SYNOPSIS.Ruslan Ermilov2005-05-211-1/+2
| | | | Notes: svn path=/head/; revision=146466
* ANSIify function definitions.David Malone2002-09-041-4/+2
| | | | | | | | | | | | Add some constness to avoid some warnings. Remove use register keyword. Deal with missing/unneeded extern/prototypes. Some minor type changes/casts to avoid warnings. Reviewed by: md5 Notes: svn path=/head/; revision=102944
* If we can't change the scheduling priority, warn but still executeTim J. Robbins2002-05-131-3/+3
| | | | | | | | | | | the requested utility. This is how nice(1) traditionall behaved, and the behaviour required by SUSv3 and POSIX.2 UPE. Submitted by: Peter Avalos <pavalos@theshell.com> (partially) Reviewed by: mike Notes: svn path=/head/; revision=96502
* Support the SUSv3 -n option and the "--" end of options marker.Tim J. Robbins2002-05-121-14/+29
| | | | | | | | | | | | Replace "command" with "utility" in the manual page & source to be more consistent with the terminology used in the standard, and to hint that shell builtin commands won't work. Submitted by: Peter Avalos <pavalos@theshell.com> (partially) Approved by: mike Notes: svn path=/head/; revision=96481
* According to POSIX, exit status must be 127 if the requested utility was notTim J. Robbins2002-05-101-1/+1
| | | | | | | | | | | found, 126 if the execvp() failed for any other reason. Similar to rev. 1.6 to src/usr.bin/env/env.c Reviewed by: mike Notes: svn path=/head/; revision=96335
* remove __PWarner Losh2002-03-221-1/+1
| | | | Notes: svn path=/head/; revision=92921
* Style improvements recommended by Bruce as a follow up to someDavid Malone2001-12-101-5/+6
| | | | | | | | | | | of the recent WARNS commits. The idea is: 1) FreeBSD id tags should follow vendor tags. 2) Vendor tags should not be compiled (though copyrights probably should). 3) There should be no blank line between including cdefs and __FBSDIF. Notes: svn path=/head/; revision=87628
* Warns cleanup. Add FreeBSD ID to Makefile and nice.c.David Malone2001-12-031-2/+6
| | | | Notes: svn path=/head/; revision=87291
* Clean up some ambiguous nested if/elses.Bill Fumerola1999-07-041-1/+2
| | | | Notes: svn path=/head/; revision=48566
* remove duplicated usage string from commit rev 1.2Wolfram Schneider1996-11-021-3/+3
| | | | | | | fix usage() Notes: svn path=/head/; revision=19331
* Check the # of arguments, instead of silently dumping core.Joerg Wunsch1995-12-101-0/+2
| | | | Notes: svn path=/head/; revision=12729
* BSD 4.4 Lite Usr.bin SourcesRodney W. Grimes1994-05-271-0/+93
Notes: svn path=/cvs2svn/branches/CHRISTOS/; revision=1590