| 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.
|
|
|
|
|
|
|
|
| |
form valid UTF-8: treat them as "not a whitespace character" and
hence "not a word boundary" in the same way as non-printable
characters and NUL bytes.
OK millert@
|
|
|
|
|
|
| |
do not embark on an infinite loop
when -m is given and the file contains a NUL character;
OK millert@
|
|
|
|
|
|
|
|
| |
with that of the '-l' case.
From David Hines on bugs@.
ok millert@
|
|
|
|
|
|
|
| |
Delete a bunch of unnecessary #includes and sort to match style(9)
while doing the above cleanup.
ok deraadt@ krw@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Changed 'format_and_print' argument type to int64_t and casting
inside the function
- Declaring 'print_counts', 'format_and_print', and 'cnt' as static
- Remove unnecessary cast for NULL, and (void) casts from printfs,
'mbtowc' and 'format_and_print' calls
- In 'cnt', change bufsz type from ssize_t to size_t to avoid
converting between pointers to integer types with different sign
when calling getline (catched when compiling with Clang)
- Use return instead of exit in main
OK jung@
|
|
|
|
|
|
|
|
|
| |
and use iswspace(3) for word counting.
Requires using getline(3) rather than read(2)
to make sure that characters aren't chopped to pieces.
Using feedback from millert@ on an earlier version.
Feedback and OK tedu@.
|
| |
|
|
|
|
| |
tame "stdio rpath" works, right before calling getopt()
|
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
| |
not used in any cases.
ok deraadt@, guenther@, millert@
|
| |
|
| |
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
from Bernd Ahlers with a twist from me; ok millert@
|
|
|
|
|
|
|
| |
okay otto@, deraadt@, jmc@.
(note that is mostly useless from scripts, hence okay as a non-standard
option).
|
| |
|
|
|
|
| |
rescinded 22 July 1999. Proofed by myself and Theo.
|
| |
|
| |
|
|
|
|
| |
millert@ ok
|
| |
|
| |
|
|
|
|
| |
o Add support for large files by using quads as counters
|
| |
|
|
|