Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Removed redundant WARNS setting. | ru | 2009-10-15 | 1 | -1/+0 |
| | | | | Submitted by: Ulrich Spörlein | ||||
* | cat(1) compiles fine at WARNS level 6. | des | 2009-03-16 | 1 | -0/+1 |
| | |||||
* | Teach cat(1) and cp(1) to use a larger buffer if enough memory is present | ivoras | 2008-10-30 | 1 | -2/+21 |
| | | | | | | | | | | | | | | | | | | | | | in the system. A simple heuristics is used to detect what is "enough" memory: if number of physmem pages is greater than 32k (equalling 128 MB on machines with 4 kB pages). Typical immediate result of these changes is reduction in context switches and the goal is to increase efficiency by using large buffers: before: /usr/bin/time -hlp cat file1 > file2 ... 163 voluntary context switches 11194 involuntary context switches after: /usr/bin/time -hlp ./cat file1 > file2 ... 417 voluntary context switches 272 involuntary context switches Reviewed by: hackers@ (no objections to earlier version of cat patch) Approved by: gnn (mentor) MFC after: 4 months | ||||
* | One more nit. | ru | 2006-12-23 | 1 | -1/+1 |
| | |||||
* | Fix markup. | ru | 2006-12-23 | 1 | -10/+12 |
| | |||||
* | Add the new standard EXIT STATUS section where appropriate. | ru | 2005-01-16 | 1 | -1/+1 |
| | | | | Sort standard sections in the (documented) preferred order. | ||||
* | Eliminate macro calls inside literal displays. | ru | 2005-01-15 | 1 | -9/+6 |
| | |||||
* | /*- or .\"- or #- to begin license clauses. | imp | 2005-01-10 | 2 | -1/+2 |
| | |||||
* | Use warn() instead of perror(). | tjr | 2004-07-20 | 1 | -2/+2 |
| | |||||
* | Remove clause 3 from the UCB licenses. | markm | 2004-04-06 | 2 | -8/+0 |
| | | | | OK'ed by: imp, core | ||||
* | Reduce redundancy in the description of the -u option. | tjr | 2004-03-21 | 1 | -3/+1 |
| | |||||
* | Document incorrect handling of multibyte characters when -t and -v options | tjr | 2004-03-21 | 1 | -1/+9 |
| | | | | are used. | ||||
* | We have to hide copyright[] for gcc33. :-( | obrien | 2003-04-30 | 1 | -0/+2 |
| | |||||
* | Be consistent about declaring a function "static", and consistent | markm | 2002-10-23 | 1 | -3/+3 |
| | | | | about the type of argv. | ||||
* | Give lint a small bit of help. | markm | 2002-07-31 | 1 | -0/+2 |
| | |||||
* | Consistently use __FBSDID | obrien | 2002-06-30 | 1 | -2/+2 |
| | |||||
* | Avoid truncating the pathname to UNIX Domain Sockets with snprintf(), | tjr | 2002-06-29 | 1 | -2/+5 |
| | | | | | giving a more sensible warning when the (relatively meagre) sun_path limit is exceeded. | ||||
* | Use an usage() rather than doing the fprintf inside option parsing. | jmallett | 2002-06-14 | 1 | -3/+9 |
| | |||||
* | Print the "$" symbol on blank lines when the -s and -e options are used | tjr | 2002-06-13 | 1 | -17/+11 |
| | | | | | | together. Obtained from: OpenBSD (millert, Denis Afonin) | ||||
* | Remove bogus "-" operand from usage message. There is no restriction on | tjr | 2002-06-13 | 1 | -1/+1 |
| | | | | where it may be placed, it is treated the same as the file arguments. | ||||
* | Fix warnings inspired by lint, a commercial lint and WARNS=4. | markm | 2002-02-22 | 1 | -9/+11 |
| | |||||
* | Drag cat(1) kicking and screaming into the late 1980's: | imp | 2002-02-02 | 1 | -21/+11 |
| | | | | | | | | | | | | o __P has been reoved o Old-style K&R declarations have been converted to new C89 style o register has been removed o prototype for main() has been removed (gcc3 makes it an error) o int main(int argc, char *argv[]) is the preferred main definition. o Attempt to not break style(9) conformance for declarations more than they already are. Approved by: arch@, new style(9) | ||||
* | Default to WARNS=2. Binary builds that cannot handle this must explicitly | obrien | 2001-12-04 | 1 | -1/+0 |
| | | | | | | set WARNS=0. Reviewed by: mike | ||||
* | WARNSify. | ru | 2001-09-26 | 2 | -4/+4 |
| | |||||
* | The "cat - -" feature was broken by the last commit. | ru | 2001-09-26 | 1 | -5/+15 |
| | | | | | | | Restore the code that avoided closing and reopening stdin. This is also required by POSIX. As a bonus, enable multiple stdin reads with the -benstv flags, by resetting the EOF condition on stdin. | ||||
* | mdoc(7) police: fixed markup. | ru | 2001-09-25 | 1 | -5/+12 |
| | |||||
* | Give /bin/cat the ability to connect to and read unix-domain sockets | dillon | 2001-09-15 | 2 | -56/+108 |
| | | | | MFC after: 1 week | ||||
* | mdoc(7) police: utilize the new .Ex macro. | ru | 2001-08-15 | 1 | -3/+1 |
| | |||||
* | Include missing header files which define functions for which gcc has | dd | 2001-06-24 | 1 | -0/+1 |
| | | | | builtins (e.g., exit, strcmp). | ||||
* | Xref zcat(1). | dd | 2001-06-18 | 1 | -0/+1 |
| | |||||
* | Prepare for mdoc(7)NG. | ru | 2000-12-15 | 1 | -1/+1 |
| | |||||
* | mdoc(7) police: use the new features of the Nm macro. | ru | 2000-11-20 | 1 | -1/+1 |
| | |||||
* | Use Dq Li (double-quoted literal) instead of Ic (internal command) to | sheldonh | 2000-06-27 | 1 | -4/+2 |
| | | | | | | | | mark up a sample invocation, since it is not a command internal to the described utility. Do not use Ar (argument) to mark up something which is not an argument to the utility or one of its internal commands. | ||||
* | Sync us up to OpenBSD's cat.1 v1.18 and cat.c v1.9. | asmodai | 2000-04-14 | 2 | -14/+84 |
| | | | | | | | | This gets rid of a bogus cast of NULL in setbuf(). Lets us know the buffer malloc failed. Reworks the manpage a bit to make it more mdoc(7) compliant, adds examples. | ||||
* | Remove unnecessary empty line. | asmodai | 2000-04-13 | 1 | -3/+2 |
| | | | | Remove trailing whitespace. | ||||
* | $Id$ -> $FreeBSD$ | peter | 1999-08-27 | 3 | -3/+3 |
| | |||||
* | Various spelling/formatting changes. | kris | 1999-05-08 | 1 | -2/+2 |
| | | | | Submitted by: Philippe Charnier <charnier@xp11.frmug.org> | ||||
* | Fix minor style bugs noticed by the Bruce Filter.[tm] | imp | 1998-09-13 | 1 | -4/+7 |
| | | | | Bruce-Filter-By: bde | ||||
* | Silence -Wall -W -Wkitchen-sink. Use ssize_t in preference to int, | imp | 1998-09-11 | 1 | -9/+7 |
| | | | | | make a char * const that should have been. Use new style function declaration for main. Mostly a Bruce Filter[tm] test commit. | ||||
* | Restore Lite2 sccsids by removing `const'. Improve documentation a little. | charnier | 1998-05-13 | 2 | -15/+11 |
| | | | | Suggested by: Bruce | ||||
* | Correct use of .Nm, .An and other cosmetics. Add rcsid. Remove unused #inc. | charnier | 1998-05-06 | 2 | -13/+15 |
| | |||||
* | compare return value from getopt against -1 rather than EOF, per the final | imp | 1997-03-28 | 1 | -2/+2 |
| | | | | posix standard on the topic. | ||||
* | Revert $FreeBSD$ to $Id$ | peter | 1997-02-22 | 3 | -3/+3 |
| | |||||
* | Make the long-awaited change from $Id$ to $FreeBSD$ | jkh | 1997-01-14 | 3 | -3/+3 |
| | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. | ||||
* | Merge Lite2 mods and -Wall cleaning. | steve | 1996-12-14 | 2 | -11/+10 |
| | |||||
* | Activate LC_CTYPE locale and additionly use !isprint() for 8bit characters | ache | 1996-09-30 | 1 | -2/+5 |
| | |||||
* | Merge in the NetBSD changes to cat.c. These appear to have come from | imp | 1996-09-28 | 1 | -4/+4 |
| | | | | | | | the 4.4 lite 2 tape as well. There are now only two diffs between NetBSD's cat and FreeBSD's cat: getopt return value is -1 on NetBSD and EOF on FreeBSD. NetBSD has added setlocale calls before anything else. | ||||
* | [HISTORY] | wosch | 1996-08-22 | 1 | -3/+7 |
| | | | | | | | | | cat command appeared in Version 1 AT&T UNIX, not Version 6 Apparently the cat man page was the first written man page Obtained from: A Quarter Century of UNIX, Peter H. Salus [BUGS] fix a typo | ||||
* | Fix exit status. `cat no-such-file >/dev/null' exited with status 0. | bde | 1995-10-03 | 1 | -2/+7 |
| | | | | | This has been broken since cat's own err() function was sloppily replaced by the library functions warn() and err(). | ||||
* | Added $Id$ | dg | 1994-09-24 | 3 | -0/+4 |
| |