summaryrefslogtreecommitdiffstats
path: root/bin/cat
Commit message (Collapse)AuthorAgeFilesLines
* Explicitly add unmarked bin/ binaries to the runtime package.gjb2016-02-091-0/+1
| | | | | | | | Note: tcsh(1) has a MK_TCSH=no test, so this should be a separate package, which requires pre-install/post-install scripts, to be added later. Sponsored by: The FreeBSD Foundation
* First pass to fix the 'tests' packages.gjb2016-02-021-0/+4
| | | | Sponsored by: The FreeBSD Foundation
* Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) andngie2015-10-121-6/+0
| | | | | | | | | | | | netbsd-tests.test.mk (r289151) - Eliminate explicit OBJTOP/SRCTOP setting - Convert all ad hoc NetBSD test integration over to netbsd-tests.test.mk - Remove unnecessary TESTSDIR setting - Use SRCTOP where possible for clarity MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Divison
* Initialize fd to -1 so that gcc doesn't emit an unitialized warning.sbruno2015-10-041-1/+2
|
* Make GCC happybdrewery2015-10-031-0/+1
|
* Use getaddrinfo() to fill struct sockaddr_un. It now supportshrs2015-10-031-16/+25
| | | | SOCK_DGRAM and SOCK_SEQPACKET in addition to SOCK_STREAM.
* new dependssjg2015-06-161-1/+1
|
* removed extra keywordsjg2015-06-131-1/+0
|
* Add META_MODE support.sjg2015-06-131-0/+19
|\ | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-081-2/+0
| |
| * Merge sync of headsjg2015-05-272-0/+24
| |\ | |/ |/|
| * Updated dependenciessjg2014-05-161-1/+0
| |
| * Updated dependenciessjg2014-05-101-0/+2
| |
| * Merge headsjg2014-04-281-0/+1
| |\
| * \ Merge from headsjg2013-09-051-1/+2
| |\ \
| * | | Updated dependenciessjg2013-03-111-0/+1
| | | |
| * | | Updated dependenciessjg2013-02-161-2/+0
| | | |
| * | | Sync with HEAD.obrien2013-02-082-6/+30
| |\ \ \
| | \ \ \
| | \ \ \
| *-. \ \ \ Sync from headsjg2012-11-042-18/+21
| |\ \ \ \ \
| * | | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+19
| | |/ / / / | |/| | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | | | | Install d_align.{in,out} for the :align testngie2015-01-051-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | X-MFC with: r276669 Pointyhat to: me
* | | | | | Integrate bin/cat/tests from NetBSD into atf/kyuangie2015-01-042-0/+19
| |_|_|_|/ |/| | | | | | | | | | | | | | Sponsored by: EMC / Isilon Storage Division
* | | | | Close the newly-created FD if the pathname is too long.adrian2014-01-111-0/+1
| |_|_|/ |/| | | | | | | | | | | | | | | Coverity: CID 1007204 Sponsored by: Netflix, Inc.
* | | | - Add the __dead2 attribute since it is a function that never returnseadler2013-04-231-1/+2
| |_|/ |/| | | | | | | | | | | | | | | | | | | | - Add an empty line in usage() according to style(9) PR: bin/177076 Submitted by: Fernando <fernando.apesteguia@gmail.com> Approved by: cperciva (mentor)
* | | Fix date.joel2013-01-291-1/+1
| | |
* | | Add -l option to cat(1). This option causes cat(1) to use fcntl(2) tobrooks2013-01-292-6/+30
| |/ |/| | | | | | | | | | | | | set an exclusive advisory lock on stdout. This will be used to guarantee orderly writing to METALOG. Sponsored by: DARPA, AFRL Obtained from: NetBSD (mason)
* | Use "e.g.", not "i.e.", to introduce an example.kevlo2012-09-071-1/+1
| | | | | | | | Obtained from: NetBSD
* | Use proper error message when fstat(2) fails on stdout.jh2012-07-201-1/+1
| | | | | | | | | | PR: bin/159746 Submitted by: Alex K.
* | style(9).jh2012-07-201-16/+19
|/
* Put some static keywords in the source code.ed2011-10-311-3/+3
| | | | | | For these simple utilities, it doesn't harm to make all global variables static. In fact, this allows the compiler to perform better forms of optimisation and analysis.
* Removed redundant WARNS setting.ru2009-10-151-1/+0
| | | | Submitted by: Ulrich Spörlein
* cat(1) compiles fine at WARNS level 6.des2009-03-161-0/+1
|
* Teach cat(1) and cp(1) to use a larger buffer if enough memory is presentivoras2008-10-301-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.ru2006-12-231-1/+1
|
* Fix markup.ru2006-12-231-10/+12
|
* Add the new standard EXIT STATUS section where appropriate.ru2005-01-161-1/+1
| | | | Sort standard sections in the (documented) preferred order.
* Eliminate macro calls inside literal displays.ru2005-01-151-9/+6
|
* /*- or .\"- or #- to begin license clauses.imp2005-01-102-1/+2
|
* Use warn() instead of perror().tjr2004-07-201-2/+2
|
* Remove clause 3 from the UCB licenses.markm2004-04-062-8/+0
| | | | OK'ed by: imp, core
* Reduce redundancy in the description of the -u option.tjr2004-03-211-3/+1
|
* Document incorrect handling of multibyte characters when -t and -v optionstjr2004-03-211-1/+9
| | | | are used.
* We have to hide copyright[] for gcc33. :-(obrien2003-04-301-0/+2
|
* Be consistent about declaring a function "static", and consistentmarkm2002-10-231-3/+3
| | | | about the type of argv.
* Give lint a small bit of help.markm2002-07-311-0/+2
|
* Consistently use __FBSDIDobrien2002-06-301-2/+2
|
* Avoid truncating the pathname to UNIX Domain Sockets with snprintf(),tjr2002-06-291-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.jmallett2002-06-141-3/+9
|
* Print the "$" symbol on blank lines when the -s and -e options are usedtjr2002-06-131-17/+11
| | | | | | together. Obtained from: OpenBSD (millert, Denis Afonin)
* Remove bogus "-" operand from usage message. There is no restriction ontjr2002-06-131-1/+1
| | | | where it may be placed, it is treated the same as the file arguments.
OpenPOWER on IntegriCloud