sync with HEAD
sync with pkgsrc changes - reorder includes and add some casts
Changed the type of some size variables from int to size_t. Added const
qualifiers to some parameters. These changes allow WARNS to be raised to
Note that -v is broken in this version.
warnx appends a newline, so the string does not have to contain one.
PR/29806: Michael Van Elst: Off by one in code.
While I am there:
- factor out the binary test to an inline function.
- use size_t where appropriate.
- check for <= 0 in gzread; it returns -1 on error.
trying to map a 4G file does not work nicely. Limit mmap to 64M.
Add (unsigned char) cast to ctype functions
Change a couple of local buffers to 'unsigned char'
bump version due to today\'s changes
Implement --line-buffered. From OpenBSD.