summaryrefslogtreecommitdiff
path: root/usr.bin/patch/inp.c
AgeCommit message (Expand)Author
2012-04-10Don't try to mmap a zero length file, from NetBSD.Antoine Jacoutot
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
2006-03-11type police and assorted cleanup. From Lionel Fourquaux; ok ray@Otto Moerbeek
2005-11-14constuct -> constructMiod Vallat
2004-08-05spacingTheo de Raadt
2003-12-08MAP_FILE is the default and MAP_PRIVATE has to be given or produces evil warn...Michael Shalayeff
2003-11-21madvise(sequential) the mmap()ed file and plug an fd leak on mmap() failure; ...Michael Shalayeff
2003-09-28realloc(3) cleanup.Otto Moerbeek
2003-08-15Add license from patch.c to original source files missing a license.Otto Moerbeek
2003-08-12Fix no newline at end of file case for Plan B.Otto Moerbeek
2003-08-10Do not add an extra newline at the end if the last line of the inputOtto Moerbeek
2003-08-08Avoid scanning the input file twice.Otto Moerbeek
2003-08-05spacingTheo de Raadt
2003-08-05- Use mmap(2) instead of malloc(3) and read(2) to get an image of the inputOtto Moerbeek
2003-08-01- use stdbool.h instead of roll-your-own booleansOtto Moerbeek
2003-07-31Print a maximum of one invalid line number warning per patch in a patch file.Otto Moerbeek
2003-07-28minor knf and cleanups; otto okTheo de Raadt
2003-07-28More cleanup: sprinkled some const, removed ugly EXTERN/INTERN.h,Otto Moerbeek
2003-07-23New version of invalid line number fix. Passes patch(1) regressions.Otto Moerbeek
2003-07-22just about nothingTheo de Raadt
2003-07-22More cleanup.Otto Moerbeek
2003-07-21Back out invalid line number fix. It core dumps in some cases. Problem found byOtto Moerbeek
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-07-16Do not produce garbage if the patch file contains invalid line numbers.Otto Moerbeek
2002-07-044 unchecked mallocs; cloder@acm.orgTheo de Raadt
1999-01-03Use libc basename(3) and dirname(3) instead of defining our own. Also clean ...Todd C. Miller
1998-11-25add -CMarc Espie
1997-09-22Start of -Wall and cleaning up icky bits.Todd C. Miller
1996-09-24sprintf -> snprintf except where guaranteed safe.Todd C. Miller
1996-07-01undo mktemp cleanup until i get it rightTheo de Raadt
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