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

Side by Side Diff: native_client_sdk/src/libraries/nacl_io/filesystem.cc

Issue 304013002: [NaCl SDK] Create Filesystem nodes in /dev/fs/... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/filesystem.h ('k') | native_client_sdk/src/libraries/nacl_io/kernel_object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698