Simon J. Gerraty
76b28ad6ab
Updated dependencies
2014-05-10 05:16:28 +00:00
Simon J. Gerraty
cc3f4b9965
Merge from head
2014-05-08 23:54:15 +00:00
Warner Losh
c6063d0da8
Use src.opts.mk in preference to bsd.own.mk except where we need stuff
...
from the latter.
2014-05-06 04:22:01 +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
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
Philippe Charnier
d31ff7a8fb
Add __unused. Ansi prototypes.
2010-12-20 09:36:54 +00:00
Dag-Erling Smørgrav
c540146463
Add volatile to sig_atomic_t where it was missing.
...
MFC after: 1 week
2009-06-14 21:39:52 +00:00
Mike Makonnen
48b5fd636e
Modify the DoParseCommand() to work on (const char *) instead of just
...
(char *). This is a slightly simplified version of the patch in the PR. It
fixes compilitation issues with -O3.
PR: misc/124385
2008-06-28 12:31:30 +00:00
Ruslan Ermilov
dbdb679c6f
Remove options MK_LIBKSE and DEFAULT_THREAD_LIB now that we no longer
...
build libkse. This should fix WITHOUT_LIBTHR builds as a side effect.
2008-03-29 17:44:40 +00:00
David E. O'Brien
946367b8e2
Tweak the handling of "WITHOUT_LIBPTHREAD". Also remove the accidental
...
treatment of 'LIBKSE' as an "old style" knob.
Submitted by: ru
Approved by: re(kensmith)
2007-10-09 23:31:11 +00:00
David E. O'Brien
65c045e964
Repo copy libpthreads to libkse.
...
This introduces the WITHOUT_LIBKSE nob,
and changes WITHOUT_LIBPTHREADS to mean with neither threading libs.
Approved by: re(kensmith)
2007-10-09 13:42:34 +00:00
Ruslan Ermilov
152f2a4a96
Always install libpthread.* symlinks if at least one of
...
the threading libraries is built. This simplifies the
logic in makefiles that need to check if the pthreads
support is present. It also fixes a bug where we would
build a threading library that we shouldn't have built:
for example, building with WITHOUT_LIBTHR and the default
value of DEFAULT_THREADING_LIB (libthr) would mistakenly
build the libthr library, but not install it.
Approved by: re (kensmith)
2007-10-01 18:22:32 +00:00
Gleb Smirnoff
611619b338
The last change is not needed for HEAD.
...
Explained by: ru
2007-03-30 08:23:59 +00:00
Gleb Smirnoff
3cb88013ba
Do not build the libedit support if NO_LIBPTHREAD is defined.
...
PR: bin/104478
Submitted by: Mike Durian <durian shadetreesoftware.com>
2007-03-28 14:04:35 +00:00
Kevin Lo
9c20ad30e0
getopt(3) returns -1, not EOF.
2007-02-06 08:48:28 +00:00
Ruslan Ermilov
968ed7eedb
Push the detection of threading libs support down to ngctl/Makefile
...
as the latter can be built without threading (with the loss of line
editing functionality).
Pointed by: glebius
2006-11-27 16:55:14 +00:00
Ruslan Ermilov
1d5dd15d75
Fix "make checkdpadd".
2006-11-26 14:43:03 +00:00
Alexander Kabaev
9a4194814d
Silence GCC4 signed/unsigned pointer mismatch warning.
2006-09-21 01:48:47 +00:00
Gleb Smirnoff
eac2afced2
- Pass pointer to fd_set in ReadSockets.
...
- style(9) nits.
Submitted by: ru
2006-08-08 07:04:40 +00:00
Gleb Smirnoff
b9124a7354
Add line edit and history support to ngctl(8) via editline(3).
...
Details:
- The main thread runs editline(3) functions, that can block.
- A separate thread is launched to monitor netgraph sockets.
- The access to the descriptors is protected by a mutex. At
runtime the monitoring thread owns the mutex. When the main
thread reads a command from el_gets() it asks the monitoring
thread to release a mutex and sleep until the main thread
processes the command.
This makes ngctl(8) depend on libedit, and libpthread. Thus, the
new functionality isn't compiled in if release is being built
with -DRELEASE_CRUNCH.
PR: bin/87352
Reviewed by: ru, Nuno Antunes <nuno.antunes gmail.com>
2006-08-07 14:17:05 +00:00
Stefan Farfeleder
c3759b3a3f
Don't use empty braces ("{}") to initialise arrays. This is a syntax
...
error in ISO C (both 90 and 99).
2006-07-17 08:35:47 +00:00
Gleb Smirnoff
9caee2ece7
Style: space after "return".
2006-06-28 10:38:38 +00:00
Gleb Smirnoff
78cdd8ed1b
Unnest includes before forthcoming editing.
2006-05-24 14:46:55 +00:00
Ruslan Ermilov
62f8299baa
- Reduce the number of netgraph messages when listing
...
nodes from (N + 1) to 1, where N is the number of
nodes in the system.
- Implement "ls -l" which runs the "show" command for
each node.
In collaboration with: glebius
2005-02-09 16:17:33 +00:00
Maxim Konovalov
c44e20ebec
Backout rev. 1.17 per ru@ request: there are net.graph.recvspace and
...
net.graph.maxdgram sysctls.
2005-02-04 20:09:11 +00:00
Ruslan Ermilov
a866e17077
Added the EXIT STATUS section where appropriate.
2005-01-17 07:44:44 +00:00
Maxim Konovalov
b5974bdbab
Increase a socket receive buffer size. This helps 'ngctl list'
...
to deal with a big number of nodes.
Submitted by: archie
Approved by: archie
Reported and tested: Konstantin Timashkov
MFC after: 1 month
2004-11-25 09:27:56 +00:00
Ruslan Ermilov
07bfccd71e
Mechanically kill hard sentence breaks.
2004-07-02 23:13:00 +00:00
Ruslan Ermilov
9fe5fadaf1
Get rid of all (but one in write.c) static size buffers.
2004-01-27 21:52:52 +00:00
Ruslan Ermilov
723c1c2ee8
Make this WARNS=3 clean.
2004-01-26 10:27:18 +00:00
Brian Feldman
bbd6d60a85
Add a GraphViz-exporting ngctl(8) "dot" command. You can now create
...
very useful .dot files of your netgraph(4) to quickly visualize the
nodes, hooks and edges. An example of this can be found here:
http://people.freebsd.org/~green/sample-netgraph-dot.ps
If anyone would like to refine the output further, please do so.
2004-01-09 03:19:40 +00:00
Philippe Charnier
b00304d4a1
Use fprintf() instead of errx() when displaying usage string. The program name
...
will not be written twice.
2004-01-04 16:11:29 +00:00
Hartmut Brandt
9d901d3b5f
Get rid of the old constants which did not include the trailing NUL
...
and use the new constants which do.
2003-11-12 13:04:44 +00:00
Bill Fenner
3dc331b9f4
Add missing "of".
2002-12-14 00:20:43 +00:00
Dag-Erling Smørgrav
d397408818
Usage style sweep: spell "usage" with a small 'u'.
...
Also change one case of blatant __progname abuse (several more remain)
This commit does not touch anything in src/{contrib,crypto,gnu}/.
2002-04-22 13:44:47 +00:00
Archie Cobbs
be44fce4fa
Add ngctl "write" command.
...
MFC after: 1 week
2002-01-22 22:01:25 +00:00
Ruslan Ermilov
d628d776c4
mdoc(7) police: utilize the new .Ex macro.
2001-08-15 09:09:47 +00:00
David E. O'Brien
90e655ea4e
Perform a major cleanup of the usr.sbin Makefiles.
...
These are not perfectly in agreement with each other style-wise, but they
are orders of orders of magnitude more consistent style-wise than before.
2001-07-20 06:20:32 +00:00
David E. O'Brien
ac24b049cc
Remove GCC'isms in CFLAGS.
2001-07-20 04:23:13 +00:00
Dima Dorfman
f247324df7
Remove whitespace at EOL.
2001-07-15 08:06:20 +00:00
Ruslan Ermilov
a4c37c816b
mdoc(7) police: removed HISTORY info from the .Os call.
2001-07-10 15:12:08 +00:00
Ruslan Ermilov
345e52e742
- Backout botched attempt to introduce MANSECT feature.
...
- MAN[1-9] -> MAN.
2001-03-26 14:42:20 +00:00
Ruslan Ermilov
c73e22c3d4
Set the default manual section for usr.sbin/ to 8.
2001-03-20 18:17:26 +00:00
Poul-Henning Kamp
ede53ee311
Unrevert something which shouldn't have been reverted in the previous revert.
...
(Yes, I'm going to bed now to get some much needed sleep...)
2001-03-17 11:43:36 +00:00
Poul-Henning Kamp
0c5c7719e6
Backout my previous commit, it appearantly doesn't work for asynchronous
...
messages.
2001-03-17 08:59:31 +00:00
Poul-Henning Kamp
420e745a90
Add -ledit to ngctl.
...
Somebody submitted this long time ago, and it has been sitting in my
tree for months because I thought archie would pick it up.
Submitted by: (sorry, lost track)
2001-03-16 19:35:07 +00:00
Ruslan Ermilov
ed40311694
mdoc(7) police: removed history info from the .Os FreeBSD call.
2000-12-14 11:52:05 +00:00
Ruslan Ermilov
251c176f41
mdoc(7) police: use certified section headers wherever possible.
2000-11-17 11:44:16 +00:00
Ben Smithurst
76a06f8483
remove trailing periods from SEE ALSO.
2000-11-15 17:27:54 +00:00