Chromium Code Reviews| 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 |
| + |