mirror of
https://github.com/apache/nuttx.git
synced 2026-09-12 05:30:20 +00:00
Update some comments
This commit is contained in:
parent
b926334a19
commit
56582e2263
1 changed files with 6 additions and 0 deletions
|
|
@ -422,6 +422,12 @@ static ssize_t pty_read(FAR struct file *filep, FAR char *buffer, size_t len)
|
|||
* bytes were read from the pipe. If we have already read some
|
||||
* data, we use the FIONREAD ioctl to test if there are more bytes
|
||||
* in the pipe.
|
||||
*
|
||||
* REVISIT: An alternative design might be to (1) configure the
|
||||
* source file as non-blocking, then (2) wait using poll() for the
|
||||
* first byte to be received. (3) Subsequent bytes would
|
||||
* use file_read() without polling and would (4) terminate when no
|
||||
* data is returned.
|
||||
*/
|
||||
|
||||
if (ntotal > 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue