Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1612)

Unified Diff: native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc

Issue 23075013: [NaCl SDK] Enable select/poll on TTY nodes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc
diff --git a/native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc b/native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc
index b45bf268354c592e214625d06e91b629713715c6..1a0542c12d62f23628ee7add15ff3fe39c094aab 100644
--- a/native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc
+++ b/native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc
@@ -791,7 +791,7 @@ int KernelProxy::select(int nfds, fd_set* readfds, fd_set* writefds,
// If the timeout is invalid or too long (larger than signed 32 bit).
if ((timeout->tv_sec < 0) || (timeout->tv_sec >= (INT_MAX / 1000)) ||
- (timeout->tv_usec < 0) || (timeout->tv_usec >= 1000) ||
+ (timeout->tv_usec < 0) || (timeout->tv_usec >= 1000000) ||
(ms < 0) || (ms >= INT_MAX)) {
errno = EINVAL;
return -1;
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/event_listener.cc ('k') | native_client_sdk/src/libraries/nacl_io/mount_node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698