summaryrefslogtreecommitdiffstats
path: root/usr.bin/patch/common.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Use getline(3) to handle lines longer than 8192 bytes in patch filesjca2019-12-021-3/+4
| | | | | Spotted by jsg@ when working on mesa. Diff tested by sthen@ in a partial i386 bulk. Input from and ok jsg@ millert@
* Remove support for automatically checking files out of RCS. Themillert2015-07-261-5/+1
| | | | | behavior is confusing to users and even GNU patch no longer does it by default. OK krw@ guenther@
* Introduce strtolinenum to properly check line numbers while parsing:tobias2014-11-251-1/+3
| | | | | | no signs, no spaces, just digits, 0 <= x <= LONG_MAX ok millert, otto
* Remove SCCS support. For this to work, we would need "get", which we don'ttobias2014-11-221-5/+1
| | | | | | even have in ports. XSI functionality of POSIX, therefore optional. ok deraadt, schwarze, tedu
* type police and assorted cleanup. From Lionel Fourquaux; ok ray@otto2006-03-111-2/+4
|
* o fairly major man page reorganizationmillert2003-10-311-1/+2
| | | | | | 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@
* Add license from patch.c to original source files missing a license.otto2003-08-151-1/+27
| | | | ok deraadt@
* Do not add an extra newline at the end if the last line of the inputotto2003-08-101-1/+2
| | | | | | | file contains no newline and the diff does not touch the last line. Contributions from millert@. ok millert@ tedu@
* - use stdbool.h instead of roll-your-own booleansotto2003-08-011-5/+3
| | | | | | | | | - 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@
* Print a maximum of one invalid line number warning per patch in a patch file.otto2003-07-311-1/+2
| | | | | | Thanks to espie@ for spotting the problem. ok millert@ henning@ espie@
* minor knf and cleanups; otto okderaadt2003-07-281-2/+2
|
* More cleanup: sprinkled some const, removed ugly EXTERN/INTERN.h,otto2003-07-281-49/+30
| | | | | | some rewriting of code to make it more readable and more KNF. ok millert@ tedu@ deraadt@
* Missed this in the rejname commit.millert2003-07-221-2/+1
|
* More cleanup.otto2003-07-221-32/+10
| | | | ok millert@ tedu@
* fix headerderaadt2003-07-211-1/+1
|
* remove a bit more junkderaadt2003-07-211-18/+3
|
* knf and other cleanup; ok ottoderaadt2003-07-211-35/+35
|
* remove junk; ok otto teduderaadt2003-07-181-44/+3
|
* oh, and the false protos can goderaadt2003-04-081-3/+1
|
* Strcat and Strcpy are no longer usedderaadt2003-04-081-3/+1
|
* 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 argumentmillert1999-01-031-1/+2
|
* Start of -Wall and cleaning up icky bits.millert1997-09-221-1/+4
|
* I hate static buffer sizes! Prolongue the max length of a line to 8Kniklas1997-09-061-2/+2
| | | | (from 1K which a patch in ports/print/ghostscript5 had a line longer than).
* *** empty log message ***dgregor1997-06-241-1/+2
|
* rindex -> strrchrmillert1997-01-171-2/+2
|
* sprintf -> snprintf except where guaranteed safe.millert1996-09-241-6/+4
|
* Use mkstemp(). Since temp files get re-used we use mkstemp() to makemillert1996-09-241-3/+4
| | | | | us a "place holder" (and discard the fd) to protect from DOS attacks and then just re-use that.
* mktemp w/ open & fdopenderaadt1996-06-251-1/+2
|
* Support the long options that FSF's patch version has. $OpenBSD$ addedniklas1996-06-101-1/+1
|
* initial import of NetBSD treederaadt1995-10-181-0/+184