OpenBSD CVS

CVS log for src/usr.bin/patch/common.h


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.30 / (download) - annotate - [select for diffs], Mon Dec 2 22:17:32 2019 UTC (4 years, 5 months ago) by jca
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, 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, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, HEAD
Changes since 1.29: +4 -3 lines
Diff to previous 1.29 (colored)

Use getline(3) to handle lines longer than 8192 bytes in patch files

Spotted by jsg@ when working on mesa.  Diff tested by sthen@ in
a partial i386 bulk.  Input from and ok jsg@ millert@

Revision 1.28.2.1 / (download) - annotate - [select for diffs], Mon Jul 27 16:10:54 2015 UTC (8 years, 9 months ago) by krw
Branch: OPENBSD_5_7
Changes since 1.28: +1 -5 lines
Diff to previous 1.28 (colored) next main 1.29 (colored)

Backport commit of 2015-07-26 14:32 by millert

Remove support for automatically checking files out of RCS.  The
behavior is confusing to users and even GNU patch no longer does
it by default.  OK krw@ guenther@

Revision 1.26.36.1 / (download) - annotate - [select for diffs], Mon Jul 27 16:08:18 2015 UTC (8 years, 9 months ago) by guenther
Branch: OPENBSD_5_6
Changes since 1.26: +1 -9 lines
Diff to previous 1.26 (colored) next main 1.27 (colored)

Backport commit of 2014-11-22 15:49 by tobias:
Remove SCCS support.  For this to work, we would need "get", which we don't     even have in ports.  XSI functionality of POSIX, therefore optional.

ok deraadt, schwarze, tedu

Revision 1.29 / (download) - annotate - [select for diffs], Sun Jul 26 14:32:19 2015 UTC (8 years, 9 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, 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, OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.28: +1 -5 lines
Diff to previous 1.28 (colored)

Remove support for automatically checking files out of RCS.  The
behavior is confusing to users and even GNU patch no longer does
it by default.  OK krw@ guenther@

Revision 1.28 / (download) - annotate - [select for diffs], Tue Nov 25 10:26:07 2014 UTC (9 years, 5 months ago) by tobias
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE
Branch point for: OPENBSD_5_7
Changes since 1.27: +3 -1 lines
Diff to previous 1.27 (colored)

Introduce strtolinenum to properly check line numbers while parsing:
no signs, no spaces, just digits, 0 <= x <= LONG_MAX

ok millert, otto

Revision 1.27 / (download) - annotate - [select for diffs], Sat Nov 22 15:49:28 2014 UTC (9 years, 5 months ago) by tobias
Branch: MAIN
Changes since 1.26: +1 -5 lines
Diff to previous 1.26 (colored)

Remove SCCS support.  For this to work, we would need "get", which we don't
even have in ports.  XSI functionality of POSIX, therefore optional.

ok deraadt, schwarze, tedu

Revision 1.26 / (download) - annotate - [select for diffs], Sat Mar 11 19:41:30 2006 UTC (18 years, 2 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, 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, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0
Branch point for: OPENBSD_5_6
Changes since 1.25: +4 -2 lines
Diff to previous 1.25 (colored)

type police and assorted cleanup. From Lionel Fourquaux; ok ray@

Revision 1.25 / (download) - annotate - [select for diffs], Fri Oct 31 20:20:45 2003 UTC (20 years, 6 months ago) by millert
Branch: MAIN
CVS Tags: 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, OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.24: +2 -1 lines
Diff to previous 1.24 (colored)

o fairly major man page reorganization
o add --posix option for strict POSIX conformance
o change filename determination to match GNU patch
Tested by various people, including a full ports build by naddy@

Revision 1.24 / (download) - annotate - [select for diffs], Fri Aug 15 08:00:51 2003 UTC (20 years, 9 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.23: +27 -1 lines
Diff to previous 1.23 (colored)

Add license from patch.c to original source files missing a license.

ok deraadt@

Revision 1.23 / (download) - annotate - [select for diffs], Sun Aug 10 21:28:48 2003 UTC (20 years, 9 months ago) by otto
Branch: MAIN
Changes since 1.22: +2 -1 lines
Diff to previous 1.22 (colored)

Do not add an extra newline at the end if the last line of the input
file contains no newline and the diff does not touch the last line.
Contributions from millert@.

ok millert@ tedu@

Revision 1.22 / (download) - annotate - [select for diffs], Fri Aug 1 20:30:48 2003 UTC (20 years, 9 months ago) by otto
Branch: MAIN
Changes since 1.21: +3 -5 lines
Diff to previous 1.21 (colored)

- use stdbool.h instead of roll-your-own booleans
- fix some -Wall warnings
- fix asserts: in some cases remove them, in other cases they have
become Internal errors or detection of malformed patch files.
- fix some free() related code

ok millert@ tedu@

Revision 1.21 / (download) - annotate - [select for diffs], Thu Jul 31 14:10:21 2003 UTC (20 years, 9 months ago) by otto
Branch: MAIN
Changes since 1.20: +2 -1 lines
Diff to previous 1.20 (colored)

Print a maximum of one invalid line number warning per patch in a patch file.
Thanks to espie@ for spotting the problem.

ok millert@ henning@ espie@

Revision 1.20 / (download) - annotate - [select for diffs], Mon Jul 28 19:15:34 2003 UTC (20 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

minor knf and cleanups; otto ok

Revision 1.19 / (download) - annotate - [select for diffs], Mon Jul 28 18:35:36 2003 UTC (20 years, 9 months ago) by otto
Branch: MAIN
Changes since 1.18: +32 -51 lines
Diff to previous 1.18 (colored)

More cleanup: sprinkled some const, removed ugly EXTERN/INTERN.h,
some rewriting of code to make it more readable and more KNF.

ok millert@ tedu@ deraadt@

Revision 1.18 / (download) - annotate - [select for diffs], Tue Jul 22 21:50:21 2003 UTC (20 years, 10 months ago) by millert
Branch: MAIN
Changes since 1.17: +1 -2 lines
Diff to previous 1.17 (colored)

Missed this in the rejname commit.

Revision 1.17 / (download) - annotate - [select for diffs], Tue Jul 22 17:18:49 2003 UTC (20 years, 10 months ago) by otto
Branch: MAIN
Changes since 1.16: +10 -32 lines
Diff to previous 1.16 (colored)

More cleanup.
ok millert@ tedu@

Revision 1.16 / (download) - annotate - [select for diffs], Mon Jul 21 14:32:21 2003 UTC (20 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.15: +1 -1 lines
Diff to previous 1.15 (colored)

fix header

Revision 1.15 / (download) - annotate - [select for diffs], Mon Jul 21 14:30:31 2003 UTC (20 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.14: +3 -18 lines
Diff to previous 1.14 (colored)

remove a bit more junk

Revision 1.14 / (download) - annotate - [select for diffs], Mon Jul 21 14:00:41 2003 UTC (20 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.13: +35 -35 lines
Diff to previous 1.13 (colored)

knf and other cleanup; ok otto

Revision 1.13 / (download) - annotate - [select for diffs], Fri Jul 18 02:00:09 2003 UTC (20 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.12: +3 -44 lines
Diff to previous 1.12 (colored)

remove junk; ok otto tedu

Revision 1.12 / (download) - annotate - [select for diffs], Tue Apr 8 01:54:56 2003 UTC (21 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.11: +1 -3 lines
Diff to previous 1.11 (colored)

oh, and the false protos can go

Revision 1.11 / (download) - annotate - [select for diffs], Tue Apr 8 01:54:26 2003 UTC (21 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.10: +1 -3 lines
Diff to previous 1.10 (colored)

Strcat and Strcpy are no longer used

Revision 1.10 / (download) - annotate - [select for diffs], Sun Jan 3 05:33:48 1999 UTC (25 years, 4 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2, OPENBSD_3_1_BASE, OPENBSD_3_1, OPENBSD_3_0_BASE, OPENBSD_3_0, OPENBSD_2_9_BASE, OPENBSD_2_9, OPENBSD_2_8_BASE, OPENBSD_2_8, OPENBSD_2_7_BASE, OPENBSD_2_7, OPENBSD_2_6_BASE, OPENBSD_2_6, OPENBSD_2_5_BASE, OPENBSD_2_5
Changes since 1.9: +2 -1 lines
Diff to previous 1.9 (colored)

Use libc basename(3) and dirname(3) instead of defining our own.  Also clean up some nasty assumptions that basename() returns a pointer that lies within its argument

Revision 1.9 / (download) - annotate - [select for diffs], Mon Sep 22 05:45:26 1997 UTC (26 years, 8 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_4_BASE, OPENBSD_2_4, OPENBSD_2_3_BASE, OPENBSD_2_3, OPENBSD_2_2_BASE, OPENBSD_2_2
Changes since 1.8: +4 -1 lines
Diff to previous 1.8 (colored)

Start of -Wall and cleaning up icky bits.

Revision 1.8 / (download) - annotate - [select for diffs], Sat Sep 6 23:51:31 1997 UTC (26 years, 8 months ago) by niklas
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

I hate static buffer sizes!  Prolongue the max length of a line to 8K
(from 1K which a patch in ports/print/ghostscript5 had a line longer than).

Revision 1.7 / (download) - annotate - [select for diffs], Tue Jun 24 02:33:48 1997 UTC (26 years, 11 months ago) by dgregor
Branch: MAIN
Changes since 1.6: +2 -1 lines
Diff to previous 1.6 (colored)

*** empty log message ***

Revision 1.6 / (download) - annotate - [select for diffs], Fri Jan 17 15:47:51 1997 UTC (27 years, 4 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_1_BASE, OPENBSD_2_1
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

rindex -> strrchr

Revision 1.5 / (download) - annotate - [select for diffs], Tue Sep 24 04:19:25 1996 UTC (27 years, 8 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.4: +4 -6 lines
Diff to previous 1.4 (colored)

sprintf -> snprintf except where guaranteed safe.

Revision 1.4 / (download) - annotate - [select for diffs], Tue Sep 24 02:58:53 1996 UTC (27 years, 8 months ago) by millert
Branch: MAIN
Changes since 1.3: +4 -3 lines
Diff to previous 1.3 (colored)

Use mkstemp().  Since temp files get re-used we use mkstemp() to make
us a "place holder" (and discard the fd) to protect from DOS attacks
and then just re-use that.

Revision 1.3 / (download) - annotate - [select for diffs], Tue Jun 25 23:06:36 1996 UTC (27 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.2: +2 -1 lines
Diff to previous 1.2 (colored)

mktemp w/ open & fdopen

Revision 1.2 / (download) - annotate - [select for diffs], Mon Jun 10 11:21:26 1996 UTC (27 years, 11 months ago) by niklas
Branch: MAIN
Changes since 1.1: +1 -1 lines
Diff to previous 1.1 (colored)

Support the long options that FSF's patch version has.  $OpenBSD$ added

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:45:55 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:55 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.