summaryrefslogtreecommitdiffstats
path: root/bin/cat
Commit message (Collapse)AuthorAgeFilesLines
* MFC r305358:ngie2016-12-031-0/+8
| | | | | | | | | | | | | | | | | | | | | Update contrib/netbsd-tests with new content from NetBSD This updates the snapshot from 09/30/2014 to 08/11/2016 This brings in a number of new testcases from upstream, most notably: - bin/cat - lib/libc - lib/msun - lib/libthr - usr.bin/sort lib/libc/tests/stdio/open_memstream_test.c was moved to lib/libc/tests/stdio/open_memstream2_test.c to accomodate the new open_memstream test from NetBSD. Tested on: amd64 (VMware fusion VM; various bare metal platforms); i386 (VMware fusion VM); make tinderbox
* MFC r305841ache2016-09-221-6/+31
| | | | Implement multibyte encoding support for -v with fallback
* Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installedngie2016-05-041-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | after r298107 Summary of changes: - Replace all instances of FILES/TESTS with ${PACKAGE}FILES. This ensures that namespacing is kept with FILES appropriately, and that this shouldn't need to be repeated if the namespace changes -- only the definition of PACKAGE needs to be changed - Allow PACKAGE to be overridden by callers instead of forcing it to always be `tests`. In the event we get to the point where things can be split up enough in the base system, it would make more sense to group the tests with the blocks they're a part of, e.g. byacc with byacc-tests, etc - Remove PACKAGE definitions where possible, i.e. where FILES wasn't used previously. - Remove unnecessary TESTSPACKAGE definitions; this has been elided into bsd.tests.mk - Remove unnecessary BINDIRs used previously with ${PACKAGE}FILES; ${PACKAGE}FILESDIR is now automatically defined in bsd.test.mk. - Fix installation of files under data/ subdirectories in lib/libc/tests/hash and lib/libc/tests/net/getaddrinfo - Remove unnecessary .include <bsd.own.mk>s (some opportunistic cleanup) Document the proposed changes in share/examples/tests/tests/... via examples so it's clear that ${PACKAGES}FILES is the suggested way forward in terms of replacing FILES. share/mk/bsd.README didn't seem like the appropriate method of communicating that info. MFC after: never probably X-MFC with: r298107 PR: 209114 Relnotes: yes Tested with: buildworld, installworld, checkworld; buildworld, packageworld Sponsored by: EMC / Isilon Storage Division
* MFHgjb2016-03-101-0/+11
|\ | | | | | | Sponsored by: The FreeBSD Foundation
| * DIRDEPS_BUILD: Connect MK_TESTS.bdrewery2016-03-091-0/+11
| | | | | | | | Sponsored by: EMC / Isilon Storage Division
* | 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
|
OpenPOWER on IntegriCloud