summaryrefslogtreecommitdiff
path: root/usr.bin/patch/common.h
AgeCommit message (Collapse)Author
2003-10-31o fairly major man page reorganizationTodd C. Miller
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@
2003-08-15Add license from patch.c to original source files missing a license.Otto Moerbeek
ok deraadt@
2003-08-10Do not add an extra newline at the end if the last line of the inputOtto Moerbeek
file contains no newline and the diff does not touch the last line. Contributions from millert@. ok millert@ tedu@
2003-08-01- use stdbool.h instead of roll-your-own booleansOtto Moerbeek
- 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@
2003-07-31Print a maximum of one invalid line number warning per patch in a patch file.Otto Moerbeek
Thanks to espie@ for spotting the problem. ok millert@ henning@ espie@
2003-07-28minor knf and cleanups; otto okTheo de Raadt
2003-07-28More cleanup: sprinkled some const, removed ugly EXTERN/INTERN.h,Otto Moerbeek
some rewriting of code to make it more readable and more KNF. ok millert@ tedu@ deraadt@
2003-07-22Missed this in the rejname commit.Todd C. Miller
2003-07-22More cleanup.Otto Moerbeek
ok millert@ tedu@
2003-07-21fix headerTheo de Raadt
2003-07-21remove a bit more junkTheo de Raadt
2003-07-21knf and other cleanup; ok ottoTheo de Raadt
2003-07-18remove junk; ok otto teduTheo de Raadt
2003-04-08oh, and the false protos can goTheo de Raadt
2003-04-08Strcat and Strcpy are no longer usedTheo de Raadt
1999-01-03Use libc basename(3) and dirname(3) instead of defining our own. Also clean ↵Todd C. Miller
up some nasty assumptions that basename() returns a pointer that lies within its argument
1997-09-22Start of -Wall and cleaning up icky bits.Todd C. Miller
1997-09-06I hate static buffer sizes! Prolongue the max length of a line to 8KNiklas Hallqvist
(from 1K which a patch in ports/print/ghostscript5 had a line longer than).
1997-06-24*** empty log message ***dgregor
1997-01-17rindex -> strrchrTodd C. Miller
1996-09-24sprintf -> snprintf except where guaranteed safe.Todd C. Miller
1996-09-24Use mkstemp(). Since temp files get re-used we use mkstemp() to makeTodd C. Miller
us a "place holder" (and discard the fd) to protect from DOS attacks and then just re-use that.
1996-06-25mktemp w/ open & fdopenTheo de Raadt
1996-06-10Support the long options that FSF's patch version has. $OpenBSD$ addedNiklas Hallqvist
1995-10-18initial import of NetBSD treeTheo de Raadt