diff options
author | Simon Glass <sjg@chromium.org> | 2018-10-01 11:55:20 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2018-10-09 04:40:27 -0600 |
commit | 4af3e9ad8aebd4ed73a6dc2db856f0018d9850a5 (patch) | |
tree | 7ee723f2dd9534c15062ae2e1bc23218787fd3f9 /include/os.h | |
parent | 66613f5dd25c4372b3f5ecb2f0c1d08b7f77b3a8 (diff) | |
download | u-boot-4af3e9ad8aebd4ed73a6dc2db856f0018d9850a5.tar.gz |
sandbox: Restore blocking I/O on exit
At present sandbox sets non-blocking I/O as soon as any input is read
from the terminal. However it does not restore the previous state on
exit. Fix this and drop the old os_read_no_block() function.
This means that we always enable blocking I/O in sandbox (if input is a
terminal) whereas previously it would only happen on the first call to
tstc() or getc(). However, the difference is likely not important.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/os.h')
-rw-r--r-- | include/os.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/include/os.h b/include/os.h index efa9e52d12..28eb625284 100644 --- a/include/os.h +++ b/include/os.h @@ -27,16 +27,6 @@ struct sandbox_state; ssize_t os_read(int fd, void *buf, size_t count); /** - * Access to the OS read() system call with non-blocking access - * - * \param fd File descriptor as returned by os_open() - * \param buf Buffer to place data - * \param count Number of bytes to read - * \return number of bytes read, or -1 on error - */ -ssize_t os_read_no_block(int fd, void *buf, size_t count); - -/** * Access to the OS write() system call * * \param fd File descriptor as returned by os_open() |