aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/nice/nice.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove copyright strings ifdef'd outWarner Losh2023-11-271-10/+0
| | | | | | | | | | | We've ifdef'd out the copyright strings for some time now. Go ahead and remove the ifdefs. Plus whatever other detritis was left over from other recent removals. These copyright strings are present in the comments and are largely from CSRG's attempt at adding their copyright to every binary file (which modern interpretations of the license doesn't require). Sponsored by: Netflix
* usr.bin: Remove ancient SCCS tags.Warner Losh2023-11-271-3/+0
| | | | | | | | Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script. Sponsored by: Netflix
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-161-2/+0
| | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-201-1/+3
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326025
* Renumber copyright clause 4Warner Losh2017-02-281-1/+1
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* Remove the advertising clause from UCB copyrighted files in usr.bin. ThisJoel Dahl2010-12-111-4/+0
| | | | | | | | | | | | is in accordance with the information provided at ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change Also add $FreeBSD$ to a few files to keep svn happy. Discussed with: imp, rwatson Notes: svn path=/head/; revision=216370
* 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