#
3aaa63eb |
| 28-Jun-2019 |
deraadt <deraadt@openbsd.org> |
When system calls indicate an error they return -1, not some arbitrary value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if
When system calls indicate an error they return -1, not some arbitrary value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
show more ...
|
#
257be878 |
| 16-Oct-2016 |
okan <okan@openbsd.org> |
Quiet compiler warnings; as applied to usr.bin/cvs by millert@
ok millert@
|
#
8ac837e5 |
| 13-Jun-2015 |
nicm <nicm@openbsd.org> |
Convert xfree to free. From Fritjof Bornebusch. ok deraadt
|
#
b9fc9a72 |
| 16-Jan-2015 |
deraadt <deraadt@openbsd.org> |
Replace <sys/param.h> with <limits.h> and other less dirty headers where possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_N
Replace <sys/param.h> with <limits.h> and other less dirty headers where 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)
show more ...
|
#
caa2ffb0 |
| 01-Dec-2014 |
deraadt <deraadt@openbsd.org> |
An internal function called xrealloc() is actually a fail-hard reallocarray()... so rename it.
|
#
93443395 |
| 10-Oct-2014 |
otto <otto@openbsd.org> |
Zap some stored values never read; From Fritjof Bornebusch; ok nicm@
|
#
0a91b02c |
| 16-May-2013 |
stsp <stsp@openbsd.org> |
Switch rcsdiff(1) binary file detection from !(isprint() || isspace()) to checking for embedded NULs, as was done for grep(1) and diff(1) some time ago. Avoids problems with e.g. latin1-encoded files
Switch rcsdiff(1) binary file detection from !(isprint() || isspace()) to checking for embedded NULs, as was done for grep(1) and diff(1) some time ago. Avoids problems with e.g. latin1-encoded files being treated as binary, since isprint() uses only ASCII by default and rcsdiff(1) doesn't call setlocale(). ok sthen
show more ...
|
#
c2a14a85 |
| 20-Apr-2011 |
nicm <nicm@openbsd.org> |
Remove some unneeded includes and dead code, from Michael W Bombardieri.
ok jasper xsa
|
#
df890a16 |
| 01-Apr-2011 |
nicm <nicm@openbsd.org> |
Move an isqrt() call outside a macro, from Michael W Bombardieri.
ok ray
|
#
7bb3ddb0 |
| 23-Jul-2010 |
ray <ray@openbsd.org> |
Reduce variable/function name and whitespace differences between cvs/rcs.
OK xsa zinovik
|
#
d5d01609 |
| 16-Jul-2010 |
ray <ray@openbsd.org> |
Combine two diff_output lines into one, from diff.
OK stsp xsa nicm
|
#
7a6efebc |
| 15-Jul-2010 |
ray <ray@openbsd.org> |
Die immediately if pread fails. It's a fatal error so treat it as such. Besides, we weren't handling the NULL being returned.
From diff. Minor nit by nicm.
OK xsa stsp nicm
|
#
300eb659 |
| 15-Jul-2010 |
ray <ray@openbsd.org> |
Use warnx instead of warn since errno wasn't set. From diff.
OK xsa stsp nicm
|
#
09523d6f |
| 15-Jul-2010 |
ray <ray@openbsd.org> |
Sync with diff/diffreg.c r1.75: Return -1 on error as advertised. Handle case when only one stream failed.
OK xsa, stsp
|
#
57003866 |
| 07-Jun-2009 |
ray <ray@openbsd.org> |
More cvs/diff/rcs convergence: 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 neve
More cvs/diff/rcs convergence: 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
show more ...
|
#
4fd6ed32 |
| 11-Sep-2007 |
gilles <gilles@openbsd.org> |
use strcspn to properly overwrite '\n' in fgets returned buffer
ok pyr@, ray@, millert@, moritz@, chl@
|
#
f049f428 |
| 03-Jul-2007 |
ray <ray@openbsd.org> |
Rename rcs_diffreg() to diffreg().
OK joris@
|
#
eea21b3c |
| 29-Jun-2007 |
ray <ray@openbsd.org> |
Sync cvs/rcs diff code.
OK joris and xsa.
|
#
af90d6d1 |
| 28-Jun-2007 |
ray <ray@openbsd.org> |
diff(1) sync, mostly spacing and moving crap around, except: - stone() and newcand() cannot return < 0, so don't check it. - \r, \v, \f are also whitespace
OK joris
|
#
d2c2f9b1 |
| 28-Jun-2007 |
ray <ray@openbsd.org> |
Some syncs with diff(1): - prepare() only returns 0, so change it to void and remove code that checks its return value. - Rename diff_len[] to len[]. - Remove casts that made the code a no-op: (size_
Some syncs with diff(1): - prepare() only returns 0, so change it to void and remove code that checks its return value. - Rename diff_len[] to len[]. - Remove casts that made the code a no-op: (size_t)filesize <= SIZE_MAX
OK xsa
show more ...
|
#
ccf8fb4c |
| 30-May-2007 |
ray <ray@openbsd.org> |
Remove cand structure (but not its definition).
|
#
11ce8dbd |
| 30-May-2007 |
ray <ray@openbsd.org> |
Remove unused struct diff_arg.
|
#
f74aa433 |
| 29-May-2007 |
ray <ray@openbsd.org> |
Get rid of another useless variable, another difference between our diff code and diff(1).
OK niallo@
|
#
80566be2 |
| 29-May-2007 |
ray <ray@openbsd.org> |
Since xrealloc dies on failure it is safe to directly assign to the original pointer. Theo agrees, and so does the rest of the tree (ssh, etc. all do this already).
Saves a bunch of variables and a
Since xrealloc dies on failure it is safe to directly assign to the original pointer. Theo agrees, and so does the rest of the tree (ssh, etc. all do this already).
Saves a bunch of variables and assignments.
OK niallo@
show more ...
|
#
68d5d3aa |
| 28-May-2007 |
ray <ray@openbsd.org> |
Some spacing syncs with diff(1).
|