From 046341e8bd91a2a2c0d44b40217fa1c5ce1dd949 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Fri, 4 Feb 2011 17:53:59 +0100 Subject: ash: optional support for $TMOUT variable Signed-off-by: Denys Vlasenko --- include/libbb.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/libbb.h b/include/libbb.h index a0e23697c..6358e654a 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -1393,12 +1393,14 @@ enum { }; line_input_t *new_line_input_t(int flags) FAST_FUNC; /* So far static: void free_line_input_t(line_input_t *n) FAST_FUNC; */ -/* maxsize must be >= 2. +/* + * maxsize must be >= 2. * Returns: * -1 on read errors or EOF, or on bare Ctrl-D, * 0 on ctrl-C (the line entered is still returned in 'command'), * >0 length of input string, including terminating '\n' */ +/* NB: ash has timeout code which can be moved into read_line_input, if needed */ int read_line_input(const char* prompt, char* command, int maxsize, line_input_t *state) FAST_FUNC; #else #define MAX_HISTORY 0 -- cgit v1.2.3