summaryrefslogtreecommitdiffstats
path: root/usr.bin/diff/diffreg.c
AgeCommit message (Expand)AuthorFilesLines
2019-06-28When system calls indicate an error they return -1, not some arbitraryderaadt1-5/+5
2019-06-28mkstemp() returns -1 on failurederaadt1-2/+2
2016-03-01Rectify line numbers for s/.// commands in ed-style diffs.natano1-3/+4
2015-10-26remove TMPDIR support. ok millerttedu1-12/+3
2015-10-13Replace our /^\.\././ expression with /.//. The term is simpler and hastobias1-2/+2
2015-10-05Remove the non-standard -l flag that pipes the output through pr(1).millert1-56/+3
2015-09-25xmalloc/free wrappers don't need to support 20 year old non comformancetedu1-9/+9
2015-04-29Change internal xrealloc() to a idiom-following xreallocarray().deraadt1-9/+9
2015-02-05Include stdint.h, not limits.h to get SIZE_MAX. OK guenther@millert1-1/+2
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt1-12/+15
2014-08-27Ensure diff -uw always produces valid output when one file doesn't endkspillner1-5/+9
2012-07-08Switch diff(1) binary file detection from !(isprint() || isspace()) tostsp1-6/+3
2012-05-22Strip trailing slashes from directory in splice() beforemillert1-2/+6
2011-04-01Move an isqrt() call outside a macro, from Michael W Bombardieri.nicm1-6/+9
2010-07-16Close FILEs when fork fails.ray1-2/+3
2010-07-16diff exits 2 on error, not 1.ray1-2/+2
2010-07-15cvs and rcs use diff_output() to print everything since it is notray1-52/+50
2010-07-15Remove unused arguments from check(). From cvs/rcs.ray1-4/+4
2010-07-14Return -1 on error as advertised.ray1-5/+4
2010-03-22Even though this cannot happen in the diff -r case,schwarze1-2/+4
2009-10-27rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt1-5/+1
2009-06-07More cvs/diff/rcs convergence:ray1-55/+48
2009-06-06Pull changes from rcsdiff, similar to what was pulled into cvsdiff.ray1-73/+81
2007-09-11use strcspn to properly overwrite '\n' in fgets returned buffergilles1-6/+4
2007-06-09- Change sizeof(type) to sizeof(*ptr).ray1-42/+42
2007-05-29Bring in some changes from rcsdiff:ray1-61/+50
2007-03-18improve -p for C++ code: classes definition often haveespie1-6/+23
2007-02-23print the header only once.espie1-8/+10
2007-02-22Defer printing of the per-file diff header until after the regexpmillert1-12/+14
2006-02-22Append two string using strlcpy()/strlcat() instead of snprintf() tootto1-4/+6
2006-02-16Strip newline from lines used with -I, otherwise ^$ will match allotto1-2/+4
2005-01-13Handle all isspace() chars the same for -w and -b. ok millert@ markus@otto1-2/+5
2004-12-09If the -L option is specified twice, use it for the second filenamemillert1-12/+21
2004-11-27Use unsigned char for bytes that are fed to isxxx() functions, to improveotto1-4/+4
2004-10-20Change tabs in string constants to \t. "of course" deraadt@otto1-4/+4
2004-09-14use sizeof(struct cand) instead of defining an unused cand object, andderaadt1-5/+5
2004-06-20Implement -I option: ignore changes matching a set of regexes. Fromotto1-2/+53
2004-06-18If a new hunk immediately follows the previous one, merge themotto1-4/+4
2004-01-07Implement -p option.otto1-6/+61
2003-11-22Fix diff -q exit value which was broken in last commit.millert1-4/+5
2003-11-21Fix broken assumption that a file must contain differences if files_differ()millert1-7/+7
2003-11-10Din't print the "No newline at end of file" to inline (ie: to stdout)millert1-4/+8
2003-10-28prototype declared static, but function was not. add static to function.avsm1-3/+3
2003-09-07correct ascii file test. ok deraadt@ pb@tedu1-5/+4
2003-08-13Based on what otto@ said on icb. The expensive thing in diff ismillert1-6/+6
2003-08-08Guess the number of lines in a file and use that number for initialotto1-8/+12
2003-07-31- Change the hash function to a simple multiplicative one. The oldotto1-25/+29
2003-07-31o correct exit code when comparing stdin and stdin (a noop)millert1-4/+4
2003-07-29cleanderaadt1-3/+3
2003-07-27We need to initialize clen to 0 each time through diffreg() formillert1-2/+3