aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/ngctl
Commit message (Collapse)AuthorAgeFilesLines
* Modify the DoParseCommand() to work on (const char *) instead of justMike Makonnen2008-06-281-4/+4
| | | | | | | | | | (char *). This is a slightly simplified version of the patch in the PR. It fixes compilitation issues with -O3. PR: misc/124385 Notes: svn path=/head/; revision=180076
* Remove options MK_LIBKSE and DEFAULT_THREAD_LIB now that we no longerRuslan Ermilov2008-03-291-1/+1
| | | | | | | build libkse. This should fix WITHOUT_LIBTHR builds as a side effect. Notes: svn path=/head/; revision=177714
* Tweak the handling of "WITHOUT_LIBPTHREAD". Also remove the accidentalDavid E. O'Brien2007-10-091-1/+1
| | | | | | | | | | treatment of 'LIBKSE' as an "old style" knob. Submitted by: ru Approved by: re(kensmith) Notes: svn path=/head/; revision=172500
* Repo copy libpthreads to libkse.David E. O'Brien2007-10-091-1/+1
| | | | | | | | | This introduces the WITHOUT_LIBKSE nob, and changes WITHOUT_LIBPTHREADS to mean with neither threading libs. Approved by: re(kensmith) Notes: svn path=/head/; revision=172491
* Always install libpthread.* symlinks if at least one ofRuslan Ermilov2007-10-011-2/+1
| | | | | | | | | | | | | | | 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) Notes: svn path=/head/; revision=172403
* The last change is not needed for HEAD.Gleb Smirnoff2007-03-301-1/+1
| | | | | | | Explained by: ru Notes: svn path=/head/; revision=168041
* Do not build the libedit support if NO_LIBPTHREAD is defined.Gleb Smirnoff2007-03-281-1/+1
| | | | | | | | PR: bin/104478 Submitted by: Mike Durian <durian shadetreesoftware.com> Notes: svn path=/head/; revision=167991
* getopt(3) returns -1, not EOF.Kevin Lo2007-02-064-4/+4
| | | | Notes: svn path=/head/; revision=166529
* Push the detection of threading libs support down to ngctl/MakefileRuslan Ermilov2006-11-271-0/+7
| | | | | | | | | | as the latter can be built without threading (with the loss of line editing functionality). Pointed by: glebius Notes: svn path=/head/; revision=164676
* Fix "make checkdpadd".Ruslan Ermilov2006-11-261-1/+1
| | | | Notes: svn path=/head/; revision=164618
* Silence GCC4 signed/unsigned pointer mismatch warning.Alexander Kabaev2006-09-211-1/+1
| | | | Notes: svn path=/head/; revision=162491
* - Pass pointer to fd_set in ReadSockets.Gleb Smirnoff2006-08-081-8/+9
| | | | | | | | | - style(9) nits. Submitted by: ru Notes: svn path=/head/; revision=161071
* Add line edit and history support to ngctl(8) via editline(3).Gleb Smirnoff2006-08-072-22/+168
| | | | | | | | | | | | | | | | | | | | | 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> Notes: svn path=/head/; revision=161044
* Don't use empty braces ("{}") to initialise arrays. This is a syntaxStefan Farfeleder2006-07-176-6/+6
| | | | | | | error in ISO C (both 90 and 99). Notes: svn path=/head/; revision=160423
* Style: space after "return".Gleb Smirnoff2006-06-2814-65/+65
| | | | Notes: svn path=/head/; revision=160002
* Unnest includes before forthcoming editing.Gleb Smirnoff2006-05-2416-20/+95
| | | | Notes: svn path=/head/; revision=158882
* - Reduce the number of netgraph messages when listingRuslan Ermilov2005-02-091-11/+35
| | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=141575
* Backout rev. 1.17 per ru@ request: there are net.graph.recvspace andMaxim Konovalov2005-02-041-4/+2
| | | | | | | net.graph.maxdgram sysctls. Notes: svn path=/head/; revision=141303
* Added the EXIT STATUS section where appropriate.Ruslan Ermilov2005-01-171-1/+1
| | | | Notes: svn path=/head/; revision=140368
* Increase a socket receive buffer size. This helps 'ngctl list'Maxim Konovalov2004-11-251-2/+4
| | | | | | | | | | | | to deal with a big number of nodes. Submitted by: archie Approved by: archie Reported and tested: Konstantin Timashkov MFC after: 1 month Notes: svn path=/head/; revision=138076
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-1/+1
| | | | Notes: svn path=/head/; revision=131500
* Get rid of all (but one in write.c) static size buffers.Ruslan Ermilov2004-01-276-37/+56
| | | | Notes: svn path=/head/; revision=125115
* Make this WARNS=3 clean.Ruslan Ermilov2004-01-2613-19/+28
| | | | Notes: svn path=/head/; revision=125011
* Add a GraphViz-exporting ngctl(8) "dot" command. You can now createBrian Feldman2004-01-095-11/+203
| | | | | | | | | | 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. Notes: svn path=/head/; revision=124271
* Use fprintf() instead of errx() when displaying usage string. The program namePhilippe Charnier2004-01-041-2/+3
| | | | | | | will not be written twice. Notes: svn path=/head/; revision=124130
* Get rid of the old constants which did not include the trailing NULHartmut Brandt2003-11-123-4/+4
| | | | | | | and use the new constants which do. Notes: svn path=/head/; revision=122556
* Add missing "of".Bill Fenner2002-12-141-1/+1
| | | | Notes: svn path=/head/; revision=107844
* Usage style sweep: spell "usage" with a small 'u'.Dag-Erling Smørgrav2002-04-221-1/+1
| | | | | | | | Also change one case of blatant __progname abuse (several more remain) This commit does not touch anything in src/{contrib,crypto,gnu}/. Notes: svn path=/head/; revision=95258
* Add ngctl "write" command.Archie Cobbs2002-01-225-1/+115
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=89674
* mdoc(7) police: utilize the new .Ex macro.Ruslan Ermilov2001-08-151-3/+1
| | | | Notes: svn path=/head/; revision=81687
* Perform a major cleanup of the usr.sbin Makefiles.David E. O'Brien2001-07-201-6/+7
| | | | | | | | 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. Notes: svn path=/head/; revision=80029
* Remove GCC'isms in CFLAGS.David E. O'Brien2001-07-201-1/+0
| | | | Notes: svn path=/head/; revision=80022
* Remove whitespace at EOL.Dima Dorfman2001-07-151-2/+2
| | | | Notes: svn path=/head/; revision=79755
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-101-1/+1
| | | | Notes: svn path=/head/; revision=79537
* - Backout botched attempt to introduce MANSECT feature.Ruslan Ermilov2001-03-261-0/+1
| | | | | | | - MAN[1-9] -> MAN. Notes: svn path=/head/; revision=74816
* Set the default manual section for usr.sbin/ to 8.Ruslan Ermilov2001-03-201-1/+0
| | | | Notes: svn path=/head/; revision=74532
* Unrevert something which shouldn't have been reverted in the previous revert.Poul-Henning Kamp2001-03-171-0/+1
| | | | | | | (Yes, I'm going to bed now to get some much needed sleep...) Notes: svn path=/head/; revision=74390
* Backout my previous commit, it appearantly doesn't work for asynchronousPoul-Henning Kamp2001-03-173-55/+8
| | | | | | | messages. Notes: svn path=/head/; revision=74383
* Add -ledit to ngctl.Poul-Henning Kamp2001-03-162-8/+54
| | | | | | | | | | 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) Notes: svn path=/head/; revision=74360
* mdoc(7) police: removed history info from the .Os FreeBSD call.Ruslan Ermilov2000-12-141-1/+1
| | | | Notes: svn path=/head/; revision=70015
* mdoc(7) police: use certified section headers wherever possible.Ruslan Ermilov2000-11-171-1/+1
| | | | Notes: svn path=/head/; revision=68854
* remove trailing periods from SEE ALSO.Ben Smithurst2000-11-151-1/+1
| | | | Notes: svn path=/head/; revision=68756
* Fix bug in "read" command.Archie Cobbs2000-10-101-2/+4
| | | | | | | Submitted by: Dave Cornelius <dc@packetdesign.com> Notes: svn path=/head/; revision=66904
* Remove unused variable.Archie Cobbs2000-07-201-1/+1
| | | | | | | | PR: bin/20052 Submitted by: Alex Kapranoff <alex@kapran.bitmcnit.bryansk.su> Notes: svn path=/head/; revision=63673
* Yellow hat this way: forgot cvs add.Poul-Henning Kamp2000-07-031-0/+103
| | | | Notes: svn path=/head/; revision=62473
* Experiemntal ascii based device configuration mechanism.Poul-Henning Kamp2000-07-033-1/+3
| | | | | | | This may or may not survive, decision will be made well before 5.0-R Notes: svn path=/head/; revision=62471
* When the 'msg' command is used from the command line, check for aArchie Cobbs2000-06-203-45/+70
| | | | | | | | | synchronous reply, and display it (if any) before exiting. Requested by: phk Notes: svn path=/head/; revision=61880
* Field structure changed name from 'typename' -> 'type_name'.Archie Cobbs2000-05-011-1/+1
| | | | Notes: svn path=/head/; revision=59880
* Remove erroneous built-in help information for the 'msg' command.Archie Cobbs2000-03-131-3/+1
| | | | Notes: svn path=/head/; revision=58018
* Remove single-space hard sentence breaks. These degrade the qualitySheldon Hearn2000-03-011-2/+4
| | | | | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc. Notes: svn path=/head/; revision=57673