| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
after allocating a new buffer. This bug caused `tail -r < /dev/null'
to core dump when the `J' malloc option is set, and also affected
any other input that was an exact multiple of 128k.
|
|
|
|
| |
Use %ld and intmax_t for printing an off_t.
|
| |
|
|
|
|
| |
Put a sequence point between writing to a variable and using it.
|
|
|
|
| |
statement.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
long -> off_t
strtol -> strtoll
fseek -> fseeko
NOTE: that fseek not works for >long offsets files per POSIX:
[EOVERFLOW] For fseek( ), the resulting file offset would be a value which
cannot be represented correctly in an object of type long.
|
|
|
|
|
| |
PR: 14786
Reviewed by: iedowse
|
|
|
|
|
| |
Modern compilers are smarter when it comes to allocating register
usage.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Use MAP_FAILED instead of the constant -1 to indicate
failure (required by POSIX).
- Removed flag arguments of '0' (required by POSIX).
- Fixed code which expected an error return of 0.
- Fixed code which thought any address with the high bit set
was an error.
- Check for failure where no checks were present.
Discussed with: bde
|
| |
|
| |
|
|
|
|
|
| |
which was slightly different to the libc one. To save any more cunfusion,
use the libc one.
|
|
|
|
|
|
|
| |
fail once (was twice) in forward case
fail once (was no times) in reverse case
this can happen when file is a directory on an NFS or procfs mount.
|
|
|