summaryrefslogtreecommitdiffstats
path: root/usr.bin/tail/read.c
Commit message (Collapse)AuthorAgeFilesLines
* Use calloc() to get zeroed memory.delphij2013-01-081-3/+2
| | | | MFC after: 1 month
* Remove the advertising clause from UCB copyrighted files in usr.bin. Thisjoel2010-12-111-4/+0
| | | | | | | | | is in accordance with the information provided at ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change Also add $FreeBSD$ to a few files to keep svn happy. Discussed with: imp, rwatson
* Change the behaviour of -F slightly; it now persists (forever) inbrian2009-06-051-4/+4
| | | | | | | | | | | | | | | | | | trying to open files rather than giving up when it encounters an error. ENOENT errors are not reported. As a result, files that are moved away then recreated are not at risk of being 'lost' to tail. Files that are recreated and temporarily have unreadable permissions will be shown when they are fixed. This behaviour is consistent with the GNU version of tail but without the verbiage that goes with the GNU version. This change also fixes error messages accompanying -f and -F. They no longer report problems with (null)! MFC after: 3 weeks
* Nuking the temporary pointer once it is properly tracked in local storage.avatar2007-11-221-0/+1
| | | | | | | | | | | | | This should fix the double free() bug where there's no tailing newline(\n) character: current# echo -n test | tail testAssertion failed: (run->magic == ARENA_RUN_MAGIC), function arena_dalloc, file /usr/src/lib/libc/stdlib/malloc.c, line 2448. Abort (core dumped) Reviewed by: kib MFC after: 3 days
* initialize variables, WARNS=6 compliantcharnier2007-11-021-1/+1
|
* Fix various memory leaks.kib2007-10-171-3/+13
| | | | | | Submitted by: rdivacky Obtained from: OpenBSD MFC after: 1 week
* Convert to ANSI style function definitions.paul2004-11-031-6/+2
|
* Revert part of the last commit. This fixes tail for pipes.markm2003-06-101-8/+7
| | | | Submitted by: joerg
* WARNS=2 fixes, use __FBSDID().markm2001-12-121-30/+33
|
* Remove register keyword usage with prejudice.asmodai2000-12-031-6/+6
| | | | | Modern compilers are smarter when it comes to allocating register usage.
* Properly constify some static arrays.asmodai2000-12-021-0/+4
| | | | Also #if out some sccsid's and add rcsid's.
* 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/+4
| | | | | which was slightly different to the libc one. To save any more cunfusion, use the libc one.
* one file somehow slipped by me in the previous commitadam1996-07-301-0/+2
| | | | tidy up
* when file can be opened for read but cannot be read from:adam1996-07-301-4/+4
| | | | | | | 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.
* Another program depending on zero'ed malloc.phk1995-10-101-1/+1
| | | | Submitted by: Kai Vorma <vode@snakemail.hut.fi>
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-271-0/+198
OpenPOWER on IntegriCloud