summaryrefslogtreecommitdiffstats
path: root/usr.bin/tail/reverse.c
Commit message (Collapse)AuthorAgeFilesLines
* Don't skip the initialisation of tl->len when we hit an EOF immediatelyiedowse2005-03-201-3/+2
| | | | | | 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.
* Cast size_t to off_t before adding them to avoid warnings on the alpha.dwmalone2005-01-101-2/+4
| | | | Use %ld and intmax_t for printing an off_t.
* Convert to ANSI style function definitions.paul2004-11-031-12/+3
|
* Fix up vendor IDs.dwmalone2002-04-131-7/+10
| | | | Put a sequence point between writing to a variable and using it.
* GCC 3.1 cleanup - add a break after default: at the end of a switchmurray2002-04-081-0/+1
| | | | statement.
* remove __Pimp2002-03-221-2/+2
|
* WARNS=2 fixes, use __FBSDID().markm2001-12-121-8/+10
|
* File positions are off_t nowdays, not long, so:ache2001-09-011-3/+3
| | | | | | | | | | | 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.
* Fix tail to work on files bigger than 2GB.dwmalone2001-03-271-29/+49
| | | | | PR: 14786 Reviewed by: iedowse
* Remove register keyword usage with prejudice.asmodai2000-12-031-7/+7
| | | | | Modern compilers are smarter when it comes to allocating register usage.
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Fixed printf format errors.bde1998-07-061-2/+2
|
* Remove trailing \n in warn() string.charnier1997-08-131-1/+5
|
* Sweep through the tree fixing mmap() usage:alex1997-01-161-1/+1
| | | | | | | | | | | | - 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
* complete err() changes, actually use warn() in most instancesadam1996-08-261-5/+4
|
* Dont forget to #include <err.h>peter1996-08-251-0/+1
|
* Argh! caught! *blush*.. This program was supplying it's own 'err' routinepeter1996-08-251-4/+5
| | | | | which was slightly different to the libc one. To save any more cunfusion, use the libc one.
* when file can be opened for read but cannot be read from:adam1996-07-301-0/+5
| | | | | | | 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.
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-271-0/+259
OpenPOWER on IntegriCloud