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

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

Issue 23498015: [NaCl SDK] Support non blocking TCP/UDP (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove event friends, rename EventListenerPoll Created 7 years, 3 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/mount_node_stream.cc
diff --git a/native_client_sdk/src/libraries/nacl_io/mount_node_stream.cc b/native_client_sdk/src/libraries/nacl_io/mount_node_stream.cc
new file mode 100644
index 0000000000000000000000000000000000000000..7ed451ce847abad10fab7a2223ed29646aab3418
--- /dev/null
+++ b/native_client_sdk/src/libraries/nacl_io/mount_node_stream.cc
@@ -0,0 +1,29 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "nacl_io/mount_node_stream.h"
+
+#include <errno.h>
+#include <fcntl.h>
+#include <pthread.h>
+#include <string.h>
+
+#include "nacl_io/ioctl.h"
+
+
+namespace nacl_io {
+
+MountNodeStream::MountNodeStream(Mount* mnt)
+ : MountNode(mnt),
+ read_timeout_(-1),
binji 2013/09/12 01:47:57 why use variables if these are never set?
noelallen1 2013/09/12 23:19:03 These can be set through IOCTLs, -1 is the default
+ write_timeout_(-1) {
+}
+
+Error MountNodeStream::Init(int perm) {
binji 2013/09/12 01:47:57 remove, this is identical to MountNode::Init
noelallen1 2013/09/12 23:19:03 Fixed
+ MountNode::Init(perm);
+ return 0;
+}
+
+} // namespace nacl_io
+

Powered by Google App Engine
This is Rietveld 408576698