summaryrefslogtreecommitdiff
path: root/usr.bin/patch/inp.c
AgeCommit message (Expand)Author
2019-06-28When system calls indicate an error they return -1, not some arbitraryTheo de Raadt
2018-04-26Use <fcntl.h> instead of <sys/file.h> for open() and friends.Philip Guenther
2017-03-25parameter "lines_allocated" is a local pointer and should not be confusedTheo de Raadt
2016-07-19Cleanup close(open idioms.Theo de Raadt
2015-11-11creat() -> open equiv; from Frederic NowakTheo de Raadt
2015-07-26Remove support for automatically checking files out of RCS. TheTodd C. Miller
2015-02-05Include stdint.h, not limits.h to get SIZE_MAX. OK guenther@Todd C. Miller
2014-12-09Fix division by zero for files with long lines (> 1024) in Plan B modeTobias Stoeckmann
2014-11-25Prevent null pointer dereference on empty input files when diff requiresTobias Stoeckmann
2014-11-22Remove SCCS support. For this to work, we would need "get", which we don'tTobias Stoeckmann
2014-11-15Call munmap with the same size argument as mmap.Tobias Stoeckmann
2014-10-08userland reallocarray audit.Doug Hogan
2013-11-26unsigned char casts for ctypeTheo de Raadt
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