Commit graph

28 commits

Author SHA1 Message Date
Warner Losh 0b8224d1cc Remove copyright strings ifdef'd out
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
2023-11-26 22:23:58 -07:00
Warner Losh bdcbfde31e usr.bin: Remove ancient SCCS tags.
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
2023-11-26 22:23:30 -07:00
Warner Losh 1d386b48a5 Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
2023-08-16 11:54:42 -06:00
Dag-Erling Smørgrav b03311cadd renice: Avoid segfault if -n flag is given without argument.
Fixes:		65ee0a8495
MFC after:	1 week
Sponsored by:	Klara, Inc.
Reviewed by:	kevans
Differential Revision:	https://reviews.freebsd.org/D39623
2023-04-17 19:50:19 +00:00
Dag-Erling Smørgrav 65ee0a8495 renice: fix argument order.
The target modifiers (-g, -p, -u) may occur in any position except
between -n and its argument; furthermore, we support both the old
absolute form (without -n) and the modern relative form (with -n).

Sponsored by: Klara, Inc.
2022-08-25 19:50:55 +00:00
Dag-Erling Smørgrav e24c5c60d7 renice: support -- as per POSIX.
Sponsored by:	Klara, Inc.
MFC after:	1 week
2022-08-05 01:52:02 +02:00
Pedro F. Giffuni 8a16b7a18f General further adoption of SPDX licensing ID tags.
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.
2017-11-20 19:49:47 +00:00
Warner Losh fbbd9655e5 Renumber copyright clause 4
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
2017-02-28 23:42:47 +00:00
Joel Dahl da52b4caaf Remove the advertising clause from UCB copyrighted files in usr.bin. This
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
2010-12-11 08:32:16 +00:00
Ed Schouten ef636796f6 ANSIfy various tools in usr.bin/.
Most of these tools properly build at WARNS=6, except for their K&R
function declarations. Fix this, so we can bump WARNS as well.
2010-01-02 10:09:20 +00:00
Ruslan Ermilov f682f10c76 Sync program's usage() with manpage's SYNOPSIS. 2005-05-21 09:55:10 +00:00
Philippe Charnier 622e8da61d The usage string: renice [priority | [-n incr]] ... assumed that the part
`priority | [-n incr]' was optionnal which is wrong according to the code.
Add FreeBSD Id.
Reviewed by:	maxim
2003-02-26 20:27:24 +00:00
Tim J. Robbins ba545bbb61 Sync usage message with manual page synopsis. 2002-05-25 11:37:10 +00:00
Tim J. Robbins b8b53eef91 Bad numeric arguments or usernames should cause non-zero exit status. 2002-05-25 10:37:24 +00:00
Tim J. Robbins 9e49944008 Process and user ID arguments must be treated as decimal integers,
not octal or hex. This is the way it was before revision 1.10.

PR:		36950
Submitted by:	Peter Avalos <pavalos@theshell.com>
2002-05-16 23:55:35 +00:00
Tim J. Robbins ae5a682066 Accept decimal user IDs with -u option as well as usernames.
PR:		36950
2002-05-16 23:44:11 +00:00
Tim J. Robbins 03ed70f315 Diagnostic messages belong on stderr, not stdout. SUSv3 specifies that
renice may not use stdout at all.
2002-05-16 23:30:38 +00:00
Maxim Konovalov 8143906680 o Fix an arguments number check in -n case.
o Remove duplicated prio check, donice() makes it for us.

Spotted by:	David Schultz <dschultz@uclink.Berkeley.EDU>
MFC after:	1 week
2002-04-10 13:38:09 +00:00
Maxim Konovalov d006e72a51 Implement POSIX -n option, cleanup an arguments parsing a bit.
PR:		bin/34076, bin/35929
Reviewed by:	bde
Obtained from:	NetBSD
MFC after:	1 week
2002-04-10 11:09:46 +00:00
Maxim Konovalov d9db58c9dc style(9) cleanup.
Reviewed by:	bde
MFC after:	1 week
2002-04-10 10:59:19 +00:00
Warner Losh d3cb5ded92 remove __P 2002-03-22 01:33:25 +00:00
David Malone 45af1a4cbd Warns cleanups. 2001-12-03 21:27:45 +00:00
Dima Dorfman 7a19d1bbb9 Include missing header files which define functions for which gcc has
builtins (e.g., exit, strcmp).
2001-06-24 19:50:42 +00:00
Warner Losh 0e7f0658ee #include <errno.h> where needed. Kill extern int errno;.
Minor warnings in tip corrected.
2000-04-14 06:39:19 +00:00
Peter Wemm c3aac50f28 $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
Philippe Charnier 0bb6b796dd Use err(3). Add usage() and prototypes. 1997-08-05 06:42:48 +00:00
Rodney W. Grimes 7799f52a32 Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
Rodney W. Grimes 9b50d90275 BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00