OpenBSD CVS

CVS log for src/usr.bin/pr/pr.c


[BACK] Up to [local] / src / usr.bin / pr

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.45 / (download) - annotate - [select for diffs], Wed Mar 8 04:43:12 2023 UTC (14 months, 1 week ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, HEAD
Changes since 1.44: +1 -2 lines
Diff to previous 1.44 (colored)

Delete obsolete /* ARGSUSED */ lint comments.

ok miod@ millert@

Revision 1.44 / (download) - annotate - [select for diffs], Sun Dec 13 15:36:36 2020 UTC (3 years, 5 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.43: +2 -2 lines
Diff to previous 1.43 (colored)

pr.1: note that -p is unsupported
pr.c: spelling fix

from andras farkas

Revision 1.43 / (download) - annotate - [select for diffs], Wed Jan 22 07:52:37 2020 UTC (4 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.42: +2 -2 lines
Diff to previous 1.42 (colored)

delete wasteful ;;
ok tedu

Revision 1.42 / (download) - annotate - [select for diffs], Fri Jun 28 13:35:02 2019 UTC (4 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.41: +2 -2 lines
Diff to previous 1.41 (colored)

When system calls indicate an error they return -1, not some arbitrary
value < 0.  errno is only updated in this case.  Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.

Revision 1.41 / (download) - annotate - [select for diffs], Sat Dec 23 20:53:07 2017 UTC (6 years, 4 months ago) by cheloha
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.40: +5 -25 lines
Diff to previous 1.40 (colored)

As we only use the .tv_sec field, simplify gettimeofday(2) -> time(3).

ok tb@ jca@

Revision 1.40 / (download) - annotate - [select for diffs], Thu Nov 2 09:52:04 2017 UTC (6 years, 6 months ago) by jca
Branch: MAIN
Changes since 1.39: +2 -5 lines
Diff to previous 1.39 (colored)

Kill bogus use of LC_TIME

Diff from Jan Stary, ok kettenis@

Revision 1.39 / (download) - annotate - [select for diffs], Wed Nov 11 02:52:46 2015 UTC (8 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.38: +4 -2 lines
Diff to previous 1.38 (colored)

exit() after perror() for pledge failure.  Perhaps this got introduced
as a test idiom, either when pledge was young or during the transition
to strings.... dunno

Revision 1.38 / (download) - annotate - [select for diffs], Fri Oct 9 01:37:08 2015 UTC (8 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.37: +3 -3 lines
Diff to previous 1.37 (colored)

Change all tame callers to namechange to pledge(2).

Revision 1.37 / (download) - annotate - [select for diffs], Wed Oct 7 06:15:51 2015 UTC (8 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.36: +4 -1 lines
Diff to previous 1.36 (colored)

tame "stdio rpath"

Revision 1.36 / (download) - annotate - [select for diffs], Thu Aug 20 22:32:41 2015 UTC (8 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.35: +7 -7 lines
Diff to previous 1.35 (colored)

Do not cast result of malloc/calloc/realloc* if stdlib.h is in scope
ok krw millert

Revision 1.35 / (download) - annotate - [select for diffs], Sun Feb 8 23:40:34 2015 UTC (9 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.34: +14 -14 lines
Diff to previous 1.34 (colored)

in getopt() blocks, stop incrementing flag variable which are supposed
to just be 0/1
ok miod florian

Revision 1.34 / (download) - annotate - [select for diffs], Tue Apr 15 17:27:37 2014 UTC (10 years, 1 month ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.33: +4 -4 lines
Diff to previous 1.33 (colored)

- get the spacing right for -e, -i, -n, and -s
- macro cleanup

ok millert sobrado

Revision 1.33 / (download) - annotate - [select for diffs], Tue Nov 26 13:19:07 2013 UTC (10 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.32: +7 -7 lines
Diff to previous 1.32 (colored)

unsigned char casts for ctype
ok krw

Revision 1.32 / (download) - annotate - [select for diffs], Thu Aug 22 04:43:40 2013 UTC (10 years, 8 months ago) by guenther
Branch: MAIN
Changes since 1.31: +5 -2 lines
Diff to previous 1.31 (colored)

Correct format string mismatches turned up by -Wformat=2

suggestions and ok millert@

Revision 1.31 / (download) - annotate - [select for diffs], Thu Apr 18 02:28:48 2013 UTC (11 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.30: +4 -5 lines
Diff to previous 1.30 (colored)

struct timezone is so 1980

Revision 1.30 / (download) - annotate - [select for diffs], Wed Aug 25 18:20:11 2010 UTC (13 years, 8 months ago) by chl
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored)

fix potential use of uninitialized variable.

reported by gcc.

ok jasper@

Revision 1.29 / (download) - annotate - [select for diffs], Tue Aug 17 21:37:11 2010 UTC (13 years, 9 months ago) by jasper
Branch: MAIN
Changes since 1.28: +135 -102 lines
Diff to previous 1.28 (colored)

several fixes from netbsd:
Coverity CID 1660: Plug memory leaks.
Coverity CID 2989: Use the error path to return.
Coverity CID 3212: Don't return, goto out in all cases so that cleanup happens.

ok otto@

Revision 1.28 / (download) - annotate - [select for diffs], Tue Oct 27 23:59:41 2009 UTC (14 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.27: +1 -12 lines
Diff to previous 1.27 (colored)

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable).  these days, people use source.  these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms

Revision 1.27 / (download) - annotate - [select for diffs], Sat Feb 7 17:51:22 2009 UTC (15 years, 3 months ago) by chl
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.26: +3 -3 lines
Diff to previous 1.26 (colored)

malloc(n * m) -> calloc(n, m);

ok ray@ moritz@

Revision 1.26 / (download) - annotate - [select for diffs], Fri Apr 18 20:18:21 2008 UTC (16 years, 1 month ago) by tobias
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.25: +9 -4 lines
Diff to previous 1.25 (colored)

If memory allocation fails during error message buffering, print all hold
back messages and exit.

ok millert

Revision 1.25 / (download) - annotate - [select for diffs], Mon Sep 3 12:36:09 2007 UTC (16 years, 8 months ago) by moritz
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored)

last commit broke the tree because of missing parentheses.

ok henning@

Revision 1.24 / (download) - annotate - [select for diffs], Mon Sep 3 05:40:00 2007 UTC (16 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.23: +16 -16 lines
Diff to previous 1.23 (colored)

sizeof char is 1; ok djm

Revision 1.23 / (download) - annotate - [select for diffs], Sat Mar 3 23:16:02 2007 UTC (17 years, 2 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.22: +5 -5 lines
Diff to previous 1.22 (colored)

- make synopsis and usage() match the order of the options list
- kill a raft of unneeded .Bk/.Ek

mostly from Igor Sobrado

Revision 1.22 / (download) - annotate - [select for diffs], Tue Feb 20 16:55:37 2007 UTC (17 years, 3 months ago) by moritz
Branch: MAIN
Changes since 1.21: +35 -25 lines
Diff to previous 1.21 (colored)

Some cleanup including:

- use sig_atomic_t signal handler flag
- atoi() -> strtonum() conversion
- remove vararg without matching fmt string
- some more lint/gcc silencing

ok millert@ ray@

Revision 1.21 / (download) - annotate - [select for diffs], Mon Jun 21 15:27:19 2004 UTC (19 years, 11 months ago) by avsm
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored)

dont compare int with NULL, compare to 0 instead, otto@ ok

Revision 1.20 / (download) - annotate - [select for diffs], Sun Nov 9 20:13:57 2003 UTC (20 years, 6 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.19: +11 -11 lines
Diff to previous 1.19 (colored)

Typos in comments from Jared Yanovich <jjy2+ at pitt dot edu>

Revision 1.19 / (download) - annotate - [select for diffs], Mon Aug 4 17:06:45 2003 UTC (20 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)

protos

Revision 1.18 / (download) - annotate - [select for diffs], Thu Jun 12 20:58:10 2003 UTC (20 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.17: +19 -58 lines
Diff to previous 1.17 (colored)

de-register and ansification; millert ok

Revision 1.17 / (download) - annotate - [select for diffs], Tue Jun 10 22:20:49 2003 UTC (20 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.16: +3 -5 lines
Diff to previous 1.16 (colored)

mostly ansi cleanup; pval ok

Revision 1.16 / (download) - annotate - [select for diffs], Tue Jun 3 02:56:14 2003 UTC (20 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.15: +3 -7 lines
Diff to previous 1.15 (colored)

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999.  Proofed by myself and Theo.

Revision 1.15 / (download) - annotate - [select for diffs], Tue Apr 30 01:59:47 2002 UTC (22 years ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored)

arguement -> argument

Revision 1.14 / (download) - annotate - [select for diffs], Thu Nov 29 18:21:23 2001 UTC (22 years, 5 months ago) by mpech
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.13: +3 -2 lines
Diff to previous 1.13 (colored)

make sure that va_start() has matching va_end()

millert@ help&ok

Revision 1.13 / (download) - annotate - [select for diffs], Mon Nov 19 19:02:15 2001 UTC (22 years, 6 months ago) by mpech
Branch: MAIN
Changes since 1.12: +47 -47 lines
Diff to previous 1.12 (colored)

kill more registers

millert@ ok

Revision 1.12 / (download) - annotate - [select for diffs], Mon Nov 19 03:37:33 2001 UTC (22 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.11: +89 -82 lines
Diff to previous 1.11 (colored)

guess what!  more signal race fixes...

Revision 1.11 / (download) - annotate - [select for diffs], Fri Nov 2 16:25:02 2001 UTC (22 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.10: +4 -4 lines
Diff to previous 1.10 (colored)

use _exit() in signal handler

Revision 1.10 / (download) - annotate - [select for diffs], Thu May 24 02:58:50 2001 UTC (23 years ago) by pvalchev
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.9: +17 -2 lines
Diff to previous 1.9 (colored)

Don't convert a single space before a tab stop into a tab when the -i
option is passed, as stated in the manual page.
From NetBSD PR 5797 fix.
millert@ ok

Revision 1.9 / (download) - annotate - [select for diffs], Mon Feb 5 01:57:12 2001 UTC (23 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.8: +37 -37 lines
Diff to previous 1.8 (colored)

please binutils in the absence of perfect weak symbols

Revision 1.8 / (download) - annotate - [select for diffs], Fri Nov 10 15:33:12 2000 UTC (23 years, 6 months ago) by provos
Branch: MAIN
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)

seperate -> separate, okay aaron@

Revision 1.7 / (download) - annotate - [select for diffs], Fri Dec 3 23:43:02 1999 UTC (24 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8, OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.6: +8 -7 lines
Diff to previous 1.6 (colored)

the -s option was broken; spotted by tstromberg@rtci.com on freebsd-audit, but i have not seen them fix any of the bugs

Revision 1.6 / (download) - annotate - [select for diffs], Sun May 23 17:37:41 1999 UTC (25 years ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.5: +4 -4 lines
Diff to previous 1.5 (colored)

make private version of getopt() return -1, not EOF

Revision 1.5 / (download) - annotate - [select for diffs], Wed Apr 23 08:08:28 1997 UTC (27 years, 1 month ago) by grr
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE, OPENBSD_2_5, OPENBSD_2_4_BASE, OPENBSD_2_4, OPENBSD_2_3_BASE, OPENBSD_2_3, OPENBSD_2_2_BASE, OPENBSD_2_2, OPENBSD_2_1_BASE, OPENBSD_2_1
Changes since 1.4: +1649 -1479 lines
Diff to previous 1.4 (colored)

revised to handle form feeds, bugs fixed etc

Revision 1.4 / (download) - annotate - [select for diffs], Wed Jan 15 23:43:00 1997 UTC (27 years, 4 months ago) by millert
Branch: MAIN
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored)

getopt(3) returns -1 when out of args, not EOF, whee!

Revision 1.3 / (download) - annotate - [select for diffs], Sat Aug 10 04:41:00 1996 UTC (27 years, 9 months ago) by imp
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.2: +14 -6 lines
Diff to previous 1.2 (colored)

pr -F would sometimes fail to properly use formfeeds.

Revision 1.2 / (download) - annotate - [select for diffs], Wed Jun 26 05:37:54 1996 UTC (27 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.1: +3 -1 lines
Diff to previous 1.1 (colored)

rcsid

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:45:56 1995 UTC (28 years, 7 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of NetBSD tree

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:45:56 1995 UTC (28 years, 7 months ago) by deraadt
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.