Bryan Drewery
15c433351f
DIRDEPS_BUILD: Connect MK_TESTS.
...
Sponsored by: EMC / Isilon Storage Division
2016-03-09 22:46:01 +00:00
Enji Cooper
b2d48be1bc
Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and
...
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
2015-10-12 08:16:03 +00:00
Sean Bruno
64c7af10a7
Initialize fd to -1 so that gcc doesn't emit an unitialized warning.
2015-10-04 01:56:11 +00:00
Bryan Drewery
19271eb4c9
Make GCC happy
2015-10-03 20:24:23 +00:00
Hiroki Sato
1c9fbb5a26
Use getaddrinfo() to fill struct sockaddr_un. It now supports
...
SOCK_DGRAM and SOCK_SEQPACKET in addition to SOCK_STREAM.
2015-10-03 12:49:05 +00:00
Simon J. Gerraty
2ef6d5a7b9
new depends
2015-06-16 23:37:19 +00:00
Simon J. Gerraty
4c46adf174
removed extra keyword
2015-06-13 19:53:24 +00:00
Simon J. Gerraty
ccfb965433
Add META_MODE support.
...
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
2015-06-13 19:20:56 +00:00
Simon J. Gerraty
44d314f704
dirdeps.mk now sets DEP_RELDIR
2015-06-08 23:35:17 +00:00
Simon J. Gerraty
98e0ffaefb
Merge sync of head
2015-05-27 01:19:58 +00:00
Enji Cooper
a9c218da80
Install d_align.{in,out} for the :align test
...
X-MFC with: r276669
Pointyhat to: me
2015-01-05 20:38:47 +00:00
Enji Cooper
dd2b763aa5
Integrate bin/cat/tests from NetBSD into atf/kyua
...
Sponsored by: EMC / Isilon Storage Division
2015-01-04 22:37:44 +00:00
Simon J. Gerraty
fae50821ae
Updated dependencies
2014-05-16 14:09:51 +00:00
Simon J. Gerraty
76b28ad6ab
Updated dependencies
2014-05-10 05:16:28 +00:00
Simon J. Gerraty
3b8f084595
Merge head
2014-04-28 07:50:45 +00:00
Adrian Chadd
4c766481d0
Close the newly-created FD if the pathname is too long.
...
Coverity: CID 1007204
Sponsored by: Netflix, Inc.
2014-01-11 15:01:30 +00:00
Simon J. Gerraty
d1d0158641
Merge from head
2013-09-05 20:18:59 +00:00
Eitan Adler
e99f8bc02e
- Add the __dead2 attribute since it is a function that never returns
...
- Add an empty line in usage() according to style(9)
PR: bin/177076
Submitted by: Fernando <fernando.apesteguia@gmail.com>
Approved by: cperciva (mentor)
2013-04-23 13:03:11 +00:00
Simon J. Gerraty
7cf3a1c6b2
Updated dependencies
2013-03-11 17:21:52 +00:00
Simon J. Gerraty
f5f7c05209
Updated dependencies
2013-02-16 01:23:54 +00:00
David E. O'Brien
d9a447559b
Sync with HEAD.
2013-02-08 16:10:16 +00:00
Joel Dahl
e38120d46f
Fix date.
2013-01-29 20:01:47 +00:00
Brooks Davis
aece80a2e8
Add -l option to cat(1). This option causes cat(1) to use fcntl(2) to
...
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)
2013-01-29 18:19:40 +00:00
Simon J. Gerraty
23090366f7
Sync from head
2012-11-04 02:52:03 +00:00
Kevin Lo
d11ed2f6de
Use "e.g.", not "i.e.", to introduce an example.
...
Obtained from: NetBSD
2012-09-07 09:00:25 +00:00
Marcel Moolenaar
7750ad47a9
Sync FreeBSD's bmake branch with Juniper's internal bmake branch.
...
Requested by: Simon Gerraty <sjg@juniper.net>
2012-08-22 19:25:57 +00:00
Jaakko Heinonen
e3481b298a
Use proper error message when fstat(2) fails on stdout.
...
PR: bin/159746
Submitted by: Alex K.
2012-07-20 08:33:23 +00:00
Jaakko Heinonen
67bf019b10
style(9).
2012-07-20 08:31:36 +00:00
Ed Schouten
f9d4afb439
Put some static keywords in the source code.
...
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.
2011-10-31 08:59:17 +00:00
Ruslan Ermilov
92573623b9
Removed redundant WARNS setting.
...
Submitted by: Ulrich Spörlein
2009-10-15 18:17:29 +00:00
Dag-Erling Smørgrav
ed53753dac
cat(1) compiles fine at WARNS level 6.
2009-03-16 12:16:17 +00:00
Ivan Voras
e9cbc9a770
Teach cat(1) and cp(1) to use a larger buffer if enough memory is present
...
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
2008-10-30 14:05:57 +00:00
Ruslan Ermilov
d2b53efbb9
One more nit.
2006-12-23 09:25:23 +00:00
Ruslan Ermilov
17bba29b9b
Fix markup.
2006-12-23 09:22:06 +00:00
Ruslan Ermilov
6fca4c7c3f
Add the new standard EXIT STATUS section where appropriate.
...
Sort standard sections in the (documented) preferred order.
2005-01-16 16:41:59 +00:00
Ruslan Ermilov
6a5796e734
Eliminate macro calls inside literal displays.
2005-01-15 12:28:01 +00:00
Warner Losh
9ddb49cbe4
/*- or .\"- or #- to begin license clauses.
2005-01-10 08:39:26 +00:00
Tim J. Robbins
2c61418d05
Use warn() instead of perror().
2004-07-20 05:52:00 +00:00
Mark Murray
6195fb4102
Remove clause 3 from the UCB licenses.
...
OK'ed by: imp, core
2004-04-06 20:06:54 +00:00
Tim J. Robbins
744e4bba0e
Reduce redundancy in the description of the -u option.
2004-03-21 11:04:59 +00:00
Tim J. Robbins
f74d4353ce
Document incorrect handling of multibyte characters when -t and -v options
...
are used.
2004-03-21 11:02:40 +00:00
David E. O'Brien
0d22cdf040
We have to hide copyright[] for gcc33. :-(
2003-04-30 17:40:28 +00:00
Mark Murray
9d32ecfcdf
Be consistent about declaring a function "static", and consistent
...
about the type of argv.
2002-10-23 10:23:38 +00:00
Mark Murray
9f82c1d3b1
Give lint a small bit of help.
2002-07-31 16:50:21 +00:00
David E. O'Brien
5eb43ac2f7
Consistently use __FBSDID
2002-06-30 05:13:54 +00:00
Tim J. Robbins
88485b4a2f
Avoid truncating the pathname to UNIX Domain Sockets with snprintf(),
...
giving a more sensible warning when the (relatively meagre) sun_path
limit is exceeded.
2002-06-29 04:52:33 +00:00
Juli Mallett
ca2be2ff45
Use an usage() rather than doing the fprintf inside option parsing.
2002-06-14 09:54:48 +00:00
Tim J. Robbins
bf5f0c446e
Print the "$" symbol on blank lines when the -s and -e options are used
...
together.
Obtained from: OpenBSD (millert, Denis Afonin)
2002-06-13 14:05:26 +00:00
Tim J. Robbins
99cc224074
Remove bogus "-" operand from usage message. There is no restriction on
...
where it may be placed, it is treated the same as the file arguments.
2002-06-13 13:45:14 +00:00
Mark Murray
9afa09cd0e
Fix warnings inspired by lint, a commercial lint and WARNS=4.
2002-02-22 20:51:00 +00:00