freebsd-dev/usr.sbin/ngctl
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
..
config.c Don't use empty braces ("{}") to initialise arrays. This is a syntax 2006-07-17 08:35:47 +00:00
connect.c Style: space after "return". 2006-06-28 10:38:38 +00:00
debug.c Don't use empty braces ("{}") to initialise arrays. This is a syntax 2006-07-17 08:35:47 +00:00
dot.c Unnest includes before forthcoming editing. 2006-05-24 14:46:55 +00:00
list.c Style: space after "return". 2006-06-28 10:38:38 +00:00
main.c Add line edit and history support to ngctl(8) via editline(3). 2006-08-07 14:17:05 +00:00
Makefile Add line edit and history support to ngctl(8) via editline(3). 2006-08-07 14:17:05 +00:00
mkpeer.c Don't use empty braces ("{}") to initialise arrays. This is a syntax 2006-07-17 08:35:47 +00:00
msg.c Style: space after "return". 2006-06-28 10:38:38 +00:00
name.c Don't use empty braces ("{}") to initialise arrays. This is a syntax 2006-07-17 08:35:47 +00:00
ngctl.8 Added the EXIT STATUS section where appropriate. 2005-01-17 07:44:44 +00:00
ngctl.h Unnest includes before forthcoming editing. 2006-05-24 14:46:55 +00:00
rmhook.c Style: space after "return". 2006-06-28 10:38:38 +00:00
show.c Style: space after "return". 2006-06-28 10:38:38 +00:00
shutdown.c Style: space after "return". 2006-06-28 10:38:38 +00:00
status.c Don't use empty braces ("{}") to initialise arrays. This is a syntax 2006-07-17 08:35:47 +00:00
types.c Don't use empty braces ("{}") to initialise arrays. This is a syntax 2006-07-17 08:35:47 +00:00
write.c Style: space after "return". 2006-06-28 10:38:38 +00:00