Eitan Adler
5f0345185b
Revert license change.
...
This isn't identical to the one permitted by UCB since
it is copyright multiple people.
2017-12-01 03:22:40 +00:00
Eitan Adler
86fdf1748d
Remove advertising clause from pr(1)
...
Permitted by https://www.freebsd.org/copyright/license.html
Renumber 4->3 to be consistent with other files
2017-11-30 07:08:45 +00:00
Pedro F. Giffuni
df57947f08
spdx: initial adoption of licensing ID tags.
...
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.
Initially, only tag files that use BSD 4-Clause "Original" license.
RelNotes: yes
Differential Revision: https://reviews.freebsd.org/D13133
2017-11-18 14:26:50 +00:00
Alan Somers
6504428e9c
Remove a duplicate fclose() that snuck into r316501
...
Reported by: Coverity
CID: 1373338
MFC after: 20 days
X-MFC-With: 316501
Sponsored by: Spectra Logic Corp
2017-04-05 16:13:36 +00:00
Alan Somers
6dc025ea3a
Fix file descriptor and memory leaks in pr(1)
...
Also, hook NetBSD's pr test into the build, and add three more test cases.
Reported by: Coverity, Valgrind
CID: 271650 271651 271652 271653 271654 271655 271656 271656
CID: 271657 271658 271659 1006939 1006940 1006941 1006942 1009098
Reviewed by: ngie
MFC after: 3 weeks
Sponsored by: Spectra Logic Corp
Differential Revision: https://reviews.freebsd.org/D9137
2017-04-04 20:03:57 +00:00
Ulrich Spörlein
487ac9ac21
Spelling fixes for usr.bin/
2011-12-30 11:02:40 +00:00
Ed Schouten
4f5e9a1a57
Add missing static keywords to pr(1)
2011-11-06 08:16:24 +00:00
Ed Schouten
81d01f896b
Use time(NULL) instead of gettimeofday(), because we only need tv_sec.
2010-02-26 13:47:51 +00:00
John Baldwin
444ec0d5f5
Fix misspelled 'argument' and try to make the sentence into English.
...
Submitted by: Andre Guibert de Bruet andy at siliconlandmark dot com
2005-10-26 17:37:54 +00:00
Philippe Charnier
bd5de41339
No capital letter after :
2004-07-26 20:24:59 +00:00
Jens Schweikhardt
d64ada501a
Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/
...
Add FreeBSD Id tag where missing.
2002-12-30 21:18:15 +00:00
David Malone
f4ac32def2
ANSIify function definitions.
...
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
2002-09-04 23:29:10 +00:00
Mark Murray
e0761ab1e6
Modernise this code by rounding up the usual suspects: register keyword,
...
consts, ANSIfication of functions, proper use of __FBSDID() and so on.
This commit is non-functional from a code-execution perspective, but
pr(1) now compiles WARNS=6 clean.
2002-06-21 10:14:57 +00:00
Tim J. Robbins
06b959916f
Don't convert a single space before a tab stop into a tab when the
...
-i option is used.
2002-06-19 01:45:03 +00:00
Juli Mallett
032b32ada6
Add P1003.1-2001 -f and -p options.
...
PR: standards/36243
Submitted by: Tim J. Robbins <tim@robbins.dropbear.id.au>
Reviewed by: mike
MFC after: 2 weeks
2002-03-31 18:44:36 +00:00
Chris D. Faulhaber
96c066cc83
Ensure err is a useful value to prevent using fputs() with a NULL stream.
...
MFC after: 1 week
2002-02-17 20:53:56 +00:00
Andrey A. Chernov
77b898c43a
Use nl_langinfo instead of %Ef
2001-03-21 14:32:02 +00:00
Jeroen Ruigrok van der Werven
1a6e52d0e9
Fix typo: seperate -> separate.
...
Seperate does not exist in the english language.
2001-02-06 11:21:58 +00:00
Kris Kennaway
d68e2acd95
The -s option was broken (missing braces around an else clause).
...
Noticed by: Thomas Stromberg <tstromberg@rtci.com>
Obtained from: OpenBSD
1999-12-04 03:19:15 +00:00
Andrey A. Chernov
4bf9895e55
Change meaning of newly introduced -L option - it helps lpr later
1999-11-30 15:09:26 +00:00
Andrey A. Chernov
b5076d918c
Localize it
1999-11-30 09:41:01 +00:00
Bruce Evans
375557fcad
Don't assume that time_t is long.
1998-06-29 17:06:00 +00:00
Warner Losh
1c8af87873
compare return value from getopt against -1 rather than EOF, per the final
...
posix standard on the topic.
1997-03-29 04:34:07 +00:00
Marc G. Fournier
ebcf24fb2b
Fixes:
...
When you ask pr to use form feeds at the end of pages and specify a page
length and tell pr to not put the fancy headers and footers on each
pages, then pr will not separate the pages with a form feed.
Closes PR: bin/1237
Submitted by: Warner Losh <imp@village.org>
1996-10-22 05:02:01 +00:00
Andrey A. Chernov
f34b5369b7
Remove wrong LC_TIME env. usage
1995-10-24 05:56:45 +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