| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
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.
|
|
|
|
| |
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)
|
|
|
|
| |
reallocarray()... so rename it.
|
| |
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
ok jasper xsa
|
|
|
|
| |
ok ray
|
|
|
|
|
|
| |
cvs/rcs.
OK xsa zinovik
|
|
|
|
| |
OK stsp xsa nicm
|
|
|
|
|
|
|
|
| |
such. Besides, we weren't handling the NULL being returned.
From diff. Minor nit by nicm.
OK xsa stsp nicm
|
|
|
|
| |
OK xsa stsp nicm
|
|
|
|
|
|
|
| |
Return -1 on error as advertised.
Handle case when only one stream failed.
OK xsa, stsp
|
|
|
|
|
|
|
|
|
|
|
| |
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 pyr@, ray@, millert@, moritz@, chl@
|
|
|
|
| |
OK joris@
|
|
|
|
| |
OK joris and xsa.
|
|
|
|
|
|
|
| |
- stone() and newcand() cannot return < 0, so don't check it.
- \r, \v, \f are also whitespace
OK joris
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
| |
|
| |
|
|
|
|
|
|
| |
diff code and diff(1).
OK niallo@
|
|
|
|
|
|
|
|
|
| |
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@
|
| |
|
|
|
|
| |
OK niallo@
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
from src/usr.bin/diff/diffreg.c rev 1.67:
improve -p for C++ code: classes definition often have
public:/protected:/private: at the start of line.
This lets the -p scanner just take note of the section and keep
looking for the actual class definition.
Also increase function name bufsize so it shows most of these pesky C++
decls...
OK niallo@ espie@.
|
| |
|
|
|
|
| |
Based on diff from otto@ in OpenCVS. OK otto@.
|
|
|
|
| |
OK niallo@.
|
|
|
|
|
| |
are pertinent to files (not directories) and that do not
conflict with rcsdiff-specific flags. OK xsa@
|
|
|
|
|
|
|
|
| |
it so.
Add checks for all return values.
``put it in'' xsa@
|
| |
|
|
|
|
|
|
| |
statement, and remove __inline.
OK xsa@
|
|
|
|
|
|
|
| |
We should not cover up lint's shortcomings, especially if they no
longer exist.
``This is definately good.'' niallo@.
|
|
|
|
|
| |
- add DIAGNOSTICS section to rcsdiff.1 wrt exit codes.
ok ray@ and jmc@ for man page bits.
|
|
|
|
| |
OK xsa@ and probably others.
|
| |
|
|
this was starting to become inhuman to maintain without
ugly ugly hacks in the shared code, and it will be easier
to make specific changes for openrcs without touching the
soon-to-be-replaced opencvs code.
|