aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 128aa9207..bae7efb00 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -965,6 +965,12 @@ enum {
965 /* How long the longest ESC sequence we know? */ 965 /* How long the longest ESC sequence we know? */
966 KEYCODE_BUFFER_SIZE = 4 966 KEYCODE_BUFFER_SIZE = 4
967}; 967};
968/* Note: fd may be in blocking or non-blocking mode, both make sense.
969 * For one, less uses non-blocking mode.
970 * Only the first read syscall inside read_key may block indefinitely
971 * (unless fd is in non-blocking mode),
972 * subsequent reads will time out after a few milliseconds.
973 */
968int read_key(int fd, smalluint *nbuffered, char *buffer) FAST_FUNC; 974int read_key(int fd, smalluint *nbuffered, char *buffer) FAST_FUNC;
969 975
970 976