| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/filesystem.h" | 5 #include "nacl_io/filesystem.h" |
| 6 | 6 |
| 7 #include <errno.h> | 7 #include <errno.h> |
| 8 #include <fcntl.h> | 8 #include <fcntl.h> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 void Filesystem::OnNodeCreated(Node* node) { | 41 void Filesystem::OnNodeCreated(Node* node) { |
| 42 node->stat_.st_ino = inode_pool_.Acquire(); | 42 node->stat_.st_ino = inode_pool_.Acquire(); |
| 43 node->stat_.st_dev = dev_; | 43 node->stat_.st_dev = dev_; |
| 44 } | 44 } |
| 45 | 45 |
| 46 void Filesystem::OnNodeDestroyed(Node* node) { | 46 void Filesystem::OnNodeDestroyed(Node* node) { |
| 47 if (node->stat_.st_ino) | 47 if (node->stat_.st_ino) |
| 48 inode_pool_.Release(node->stat_.st_ino); | 48 inode_pool_.Release(node->stat_.st_ino); |
| 49 } | 49 } |
| 50 | 50 |
| 51 Error Filesystem::Filesystem_VIoctl(int request, va_list args) { |
| 52 return EINVAL; |
| 53 } |
| 54 |
| 51 } // namespace nacl_io | 55 } // namespace nacl_io |
| OLD | NEW |