aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/tail/misc.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove $FreeBSD$: two-line .c patternWarner Losh2023-08-231-3/+0
| | | | | | | Remove /^#include\s+<sys/cdefs.h>.*$\n\s+__FBSDID\("\$FreeBSD\$"\);\n/ Similar commit in main: (cherry picked from commit e5d258c9e599)
* tail: fix the checks if the file was rotatedMariusz Zaborski2019-06-091-0/+3
| | | | | | | | | | | | | | | | | The freopen(3) was replaced with fileargs_open(3) and fclose(3). In the following function, we skip if the stream is standard in, so it is safe to do so. This also requires us to change the logic first to open the file and then check its status. The stat(2) is disallowed in capability mode. This commit unbrakes the -F option. The bug was introduced in the r348708. Reported by: pho Tested by: pho Notes: svn path=/head/; revision=348842
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-201-0/+2
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326025
* Renumber copyright clause 4Warner Losh2017-02-281-1/+1
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* Print file names without stdio buffering to avoid mixing buffered andJaakko Heinonen2013-06-091-0/+14
| | | | | | | | | | unbuffered ouput. PR: bin/176886 Reviewed by: mjg Notes: svn path=/head/; revision=251565
* Remove the advertising clause from UCB copyrighted files in usr.bin. ThisJoel Dahl2010-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 Notes: svn path=/head/; revision=216370
* ANSIfy various tools in usr.bin/.Ed Schouten2010-01-021-1/+1
| | | | | | | | Most of these tools properly build at WARNS=6, except for their K&R function declarations. Fix this, so we can bump WARNS as well. Notes: svn path=/head/; revision=201382
* Change the behaviour of -F slightly; it now persists (forever) inBrian Somers2009-06-051-1/+1
| | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=193488
* Cast size_t to off_t before adding them to avoid warnings on the alpha.David Malone2005-01-101-2/+2
| | | | | | | Use %ld and intmax_t for printing an off_t. Notes: svn path=/head/; revision=139994
* Convert to ANSI style function definitions.Paul Richards2004-11-031-6/+2
| | | | Notes: svn path=/head/; revision=137157
* WARNS=2 fixes, use __FBSDID().Mark Murray2001-12-121-7/+9
| | | | Notes: svn path=/head/; revision=87712
* Fix tail to work on files bigger than 2GB.David Malone2001-03-271-0/+55
| | | | | | | | PR: 14786 Reviewed by: iedowse Notes: svn path=/head/; revision=74876
* Properly constify some static arrays.Jeroen Ruigrok van der Werven2000-12-021-0/+4
| | | | | | | Also #if out some sccsid's and add rcsid's. Notes: svn path=/head/; revision=69528
* complete err() changes, actually use warn() in most instancesAdam David1996-08-261-1/+2
| | | | Notes: svn path=/head/; revision=17833
* Dont forget to #include <err.h>Peter Wemm1996-08-251-0/+1
| | | | Notes: svn path=/head/; revision=17826
* Argh! caught! *blush*.. This program was supplying it's own 'err' routinePeter Wemm1996-08-251-33/+2
| | | | | | | | which was slightly different to the libc one. To save any more cunfusion, use the libc one. Notes: svn path=/head/; revision=17825
* BSD 4.4 Lite Usr.bin SourcesRodney W. Grimes1994-05-271-0/+91
Notes: svn path=/cvs2svn/branches/CHRISTOS/; revision=1590