Add nonblocking reads and FD taps to #cons/stdin
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 5 Oct 2016 21:02:04 +0000 (17:02 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 6 Oct 2016 19:41:48 +0000 (15:41 -0400)
commit744f79583a98c3e6538b4d04f7361785adad309e
treece54becfcb8fa2b2211d2e62f913e2750afa8ddb
parenta607e731ac21bb626b3ece93f2d4c2045a798ef3
Add nonblocking reads and FD taps to #cons/stdin

This allows select/poll/epoll of stdin, which a few apps want to do.  The
change to consstat is so that select() can detect if the console is
readable.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/drivers/dev/cons.c