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

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

Issue 22587003: [NaCl SDK] Add UDP and TCP Sockets (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Running tests on package 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/mount_socket.cc
diff --git a/native_client_sdk/src/libraries/nacl_io/mount_socket.cc b/native_client_sdk/src/libraries/nacl_io/mount_socket.cc
new file mode 100644
index 0000000000000000000000000000000000000000..141c930d5de4d787075d92f3aaf88534cc12e2fb
--- /dev/null
+++ b/native_client_sdk/src/libraries/nacl_io/mount_socket.cc
@@ -0,0 +1,28 @@
+// 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/ossocket.h"
+#ifdef PROVIDES_SOCKET_API
+
+#include <errno.h>
+
+#include "nacl_io/mount_node_socket.h"
+#include "nacl_io/mount_socket.h"
+
+namespace nacl_io {
+
+MountSocket::MountSocket() {}
+
+Error MountSocket::Access(const Path& path, int a_mode) { return EACCES; }
+Error MountSocket::Open(const Path& path,
+ int o_flags,
+ ScopedMountNode* out_node) { return EACCES; }
+
+Error MountSocket::Unlink(const Path& path) { return EACCES; }
+Error MountSocket::Mkdir(const Path& path, int permissions) { return EACCES; }
+Error MountSocket::Rmdir(const Path& path) { return EACCES; }
+Error MountSocket::Remove(const Path& path) { return EACCES; }
+
+} // namespace nacl_io
+#endif // PROVIDES_SOCKET_API

Powered by Google App Engine
This is Rietveld 408576698