aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h
index fccc816cb..044d09047 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -1275,8 +1275,12 @@ enum {
1275 * Return of -1 means EOF or error (errno == 0 on EOF). 1275 * Return of -1 means EOF or error (errno == 0 on EOF).
1276 * buffer[0] is used as a counter of buffered chars and must be 0 1276 * buffer[0] is used as a counter of buffered chars and must be 0
1277 * on first call. 1277 * on first call.
1278 * timeout:
1279 * -2: do not poll for input;
1280 * -1: poll(-1) (i.e. block);
1281 * >=0: poll for TIMEOUT milliseconds, return -1/EAGAIN on timeout
1278 */ 1282 */
1279int64_t read_key(int fd, char *buffer) FAST_FUNC; 1283int64_t read_key(int fd, char *buffer, int timeout) FAST_FUNC;
1280void read_key_ungets(char *buffer, const char *str, unsigned len) FAST_FUNC; 1284void read_key_ungets(char *buffer, const char *str, unsigned len) FAST_FUNC;
1281 1285
1282 1286