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

Side by Side Diff: native_client_sdk/src/libraries/nacl_io/mount_dev.h

Issue 16232016: [NaCl SDK] nacl_io: big refactor to return error value (errno). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge master, fix windows Created 7 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 (c) 2012 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2012 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 #ifndef LIBRARIES_NACL_IO_MOUNT_DEV_H_ 5 #ifndef LIBRARIES_NACL_IO_MOUNT_DEV_H_
6 #define LIBRARIES_NACL_IO_MOUNT_DEV_H_ 6 #define LIBRARIES_NACL_IO_MOUNT_DEV_H_
7 7
8 #include "nacl_io/mount.h" 8 #include "nacl_io/mount.h"
9 9
10 class MountNode; 10 class MountNode;
11 11
12 class MountDev : public Mount { 12 class MountDev : public Mount {
13 public: 13 public:
14 virtual MountNode *Open(const Path& path, int mode); 14 virtual Error Open(const Path& path, int mode, MountNode** out_node);
15 15
16 virtual int Unlink(const Path& path); 16 virtual Error Unlink(const Path& path);
17 virtual int Mkdir(const Path& path, int permissions); 17 virtual Error Mkdir(const Path& path, int permissions);
18 virtual int Rmdir(const Path& path); 18 virtual Error Rmdir(const Path& path);
19 virtual int Remove(const Path& path); 19 virtual Error Remove(const Path& path);
20 20
21 protected: 21 protected:
22 MountDev(); 22 MountDev();
23 23
24 virtual bool Init(int dev, StringMap_t& args, PepperInterface* ppapi); 24 virtual Error Init(int dev, StringMap_t& args, PepperInterface* ppapi);
25 virtual void Destroy(); 25 virtual void Destroy();
26 26
27 private: 27 private:
28 MountNode* root_; 28 MountNode* root_;
29 MountNode* null_node_;
30 MountNode* zero_node_;
31 MountNode* random_node_;
32 MountNode* console0_node_;
33 MountNode* console1_node_;
34 MountNode* console2_node_;
35 MountNode* console3_node_;
36 MountNode* tty_node_;
37 MountNode* stderr_node_;
38 MountNode* stdin_node_;
39 MountNode* stdout_node_;
40 29
41 friend class Mount; 30 friend class Mount;
42 }; 31 };
43 32
44 #endif // LIBRARIES_NACL_IO_MOUNT_DEV_H_ 33 #endif // LIBRARIES_NACL_IO_MOUNT_DEV_H_
OLDNEW
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/mount.cc ('k') | native_client_sdk/src/libraries/nacl_io/mount_dev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698