| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
Based on a diff from and OK deraadt@
|
|
|
|
|
|
|
|
|
| |
- tmppath for when mktemp() operates in /tmp proper
- cpath+wpath for use of $TMPDIR
based on log-message from previous commit
ok deraadt@
|
|
|
|
|
|
| |
uses can tame "stdio wpath rpath cpath tmppath". tmppath for when
mktemp() operates in /tmp proper, but cpath+wpath for use of $TMPDIR.
ok sthen millert
|
|
|
|
|
|
|
| |
This loses a "new size is 0" failure case. Probably not relevant;
and since we develop this in OpenBSD, we'll catch that before someone
else imports this...
ok millert
|
|
|
|
|
|
|
|
|
| |
possible. Annotate <sys/param.h> lines with their current reasons. Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution. These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)
|
|
|
|
| |
OK nicm
|
|
|
|
| |
ok jmc@
|
|
|
|
| |
ok jmc@
|
|
|
|
|
|
|
| |
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms
|
|
|
|
|
|
|
|
|
|
|
| |
1. Mostly variable/function renaming, SIZE_T_MAX->SIZE_MAX, and
spacing.
2. One strchr -> strncspn.
3. diff had a weird thing where it set file[12] = ofile[12] but
never updated file or ofile, then if file and ofile were different
it freed it. I removed it.
OK millert
|
|
|
|
| |
OK millert
|
|
|
|
| |
OK millert
|
|
|
|
|
|
|
|
|
| |
1. Replace all the e*alloc functions with the x*alloc versions.
2. Whitespace syncs according to style.
3. Remove the __inline stuff.
4. Remove the min/max functions, using the MAX/MIN macros instead.
OK millert@
|
|
|
|
| |
from Igor Sobrado
|
|
|
|
| |
like GNU diff does. Adapted from a diff by YAMAMOTO Takashi
|
|
|
|
| |
okay otto@.
|
|
|
|
|
| |
Jared Yanovich, with twists from millert@ and me. Testing by brad@,
sturm@ and pval@. ok millert@
|
|
|
|
|
|
| |
FIFOs shall be skipped. Other types of files may be skipped too
(this is implementation-dependent). In directory mode, just skip
anything that is not a regular file or directory. OK tedu@
|
|
|
|
| |
"works here" millert@ ok miod@ deraadt@
|
|
|
|
| |
was overzealous in this case). Fix tested by Hugo Villeneuve and myself.
|
| |
|
|
|
|
|
|
|
|
|
| |
- remove "mutually exclusive" clause
- -c produces 15 *'s, not a dozen
- add -a to uage()
- sync usage() with SYNOPSIS
ok tedu@
|
| |
|
|
|
|
| |
noticed by itojun@, ok deraadt@
|
|
|
|
| |
ok otto@
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
producing suboptimal diffs for large file containing lots of changes.
Switch heuristic off with -d/--minimal (GNU compatible). Some hints
from millert@.
- Improve performance by reducing the number of realloc(3) calls.
ok millert@ tedu@
|
| |
|
| |
|
| |
|
|
|
|
| |
-l support was added.
|
| |
|
|
|
|
| |
one is a file and the other is a directory in -r mode (cosmetic).
|
|
|
|
|
|
|
|
|
|
|
| |
it so we don't have to worry about cleanup. This means the quit()
signal handler and error/errorx can go away too.
Move splice() out of diffreg() and into diff.c where it belongs
since we don't want to be calling splice() for a directory diff.
Add a check for mismatched paths (one file, one dir) in diffreg.c.
deraadt@ OK
|
|
|
|
| |
mode (like GNU diff).
|
|
|
|
| |
o Fix a double free in the temmp file case
|
| |
|
|
|
|
| |
from dir1).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
o -N is implemented
o -X is implemented
o -x is implemented
o diff.c has been rewritten and GNU long options are now supported
o diffdir.c has been rewritten
+ no longer does fork + exec of /usr/bin/diff
+ can be called recursively (and will be for -r)
o diff.h
+ don't include any .h files here any more, do it in the .c files
+ no Bell Labs code in this, gets a UCB copyright (the 32v sources
only have a diff.c and there is nothing in common).
o diffreg.c
+ most all remaining globals are now private to diffreg.c
+ files are only opened once
+ dynamically allocated objects are either freed or realloced
+ added missing UCB copyright (there were lots of UCB changes)
+ print correct thing when -s is specified
OK deraadt@
|
|
|
|
| |
Pointed out by espie@. Also remove other references to -h mode.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
o get rid of now-unused tempfile variable
o move inifdef into diffreg.c (only used there)
o correct a comment
o use _PATH_DIFF, _PATH_DIFFH and _PATH_PR instead of variables set to them
o get rid of hack to look for pr and diff in /bin
|
|
|
|
| |
ok tedu@
|
|
|
|
| |
need the associated scaffolding. tedu@ OK
|
| |
|
|
|
|
|
|
|
|
|
| |
o honor TMPDIR environment variable as per man page
o need 2 temp files if both file1 and file2 are devices
o add error() and errorx() which cleanup temp file and then
call err() and errx() respectively.
OK tedu@
|
| |
|