| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "nacl_io/googledrivefs/googledrivefs_node.h" | 5 #include "nacl_io/googledrivefs/googledrivefs_node.h" |
| 6 | 6 |
| 7 #include <sys/stat.h> | 7 #include <sys/stat.h> |
| 8 | 8 |
| 9 #include "nacl_io/googledrivefs/googledrivefs.h" | 9 #include "nacl_io/googledrivefs/googledrivefs.h" |
| 10 #include "nacl_io/kernel_handle.h" | 10 #include "nacl_io/kernel_handle.h" |
| 11 #include "nacl_io/node.h" | 11 #include "nacl_io/node.h" |
| 12 #include "nacl_io/osdirent.h" | 12 #include "nacl_io/osdirent.h" |
| 13 | 13 |
| 14 namespace nacl_io { | 14 namespace nacl_io { |
| 15 | 15 |
| 16 // This is not further implemented. |
| 17 // PNaCl is on a path to deprecation, and WebAssembly is |
| 18 // the focused technology. |
| 19 |
| 16 GoogleDriveFsNode::GoogleDriveFsNode(GoogleDriveFs* googledrivefs) | 20 GoogleDriveFsNode::GoogleDriveFsNode(GoogleDriveFs* googledrivefs) |
| 17 : Node(googledrivefs) {} | 21 : Node(googledrivefs) {} |
| 18 | 22 |
| 19 Error GoogleDriveFsNode::GetDents(size_t offs, | 23 Error GoogleDriveFsNode::GetDents(size_t offs, |
| 20 struct dirent* pdir, | 24 struct dirent* pdir, |
| 21 size_t size, | 25 size_t size, |
| 22 int* out_bytes) { | 26 int* out_bytes) { |
| 23 // TODO: support getdents | 27 // TODO: support getdents |
| 24 LOG_ERROR("getdents not supported."); | 28 LOG_ERROR("getdents not supported."); |
| 25 return EPERM; | 29 return EPERM; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 return EPERM; | 65 return EPERM; |
| 62 } | 66 } |
| 63 | 67 |
| 64 Error GoogleDriveFsNode::Init(int open_flags) { | 68 Error GoogleDriveFsNode::Init(int open_flags) { |
| 65 // TODO: support init | 69 // TODO: support init |
| 66 LOG_ERROR("init not supported."); | 70 LOG_ERROR("init not supported."); |
| 67 return EPERM; | 71 return EPERM; |
| 68 } | 72 } |
| 69 | 73 |
| 70 } // namespace nacl_io | 74 } // namespace nacl_io |
| OLD | NEW |