cytune: kernel still does not have send_count in cyclades_monitor structure

It is unlikely the information about sent data will ever appear to kernel
interface, so stop waiting it.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
cytune: prefer sigaction(), and remove unnecessary abstractions

The signal(3) system call is not exactly deprecated, but it should not be
used in new code.  The gettimeofday() does not require timezone to be
real variable, so get rid of it.  The mvtime #define was in use only
which make literal expression more readable.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
cytune: add cyg_get_mon() to avoid duplicate code

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
cytune: add structure to hold run time configuration

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
cytune: pull signal handling and statistic priting apart

Combination of these two functions made the code to rely to global
variables, and cmon_index was seemingly invalid if signal was sent at a
time when query_tty_stats() was half done with a statistics printout.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
cytune: remove unnecessary type casts

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
cytune: deprecate undescriptive options

The options with 'flush' in the name are not very good.  Use of 'timeout'
instead is much more appropriate.

Reviewed-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
cytune: add filename to struct cyclades_control

This allows point to single structure rather than constantly worry if the
index variable to list is referring to correct location.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
cytune: add noreturn function attributes

The query_tty_stats() will exit only when it is signaled to stop.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
cytune: use matching type in struct cyclades_control with kernel

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
cytune: update copyright

Take the blame of bugs I (hopefully did not) introduce.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>