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 #ifndef LIBRARIES_NACL_IO_NODE_H_ | 5 #ifndef LIBRARIES_NACL_IO_NODE_H_ |
6 #define LIBRARIES_NACL_IO_NODE_H_ | 6 #define LIBRARIES_NACL_IO_NODE_H_ |
7 | 7 |
8 #include <stdarg.h> | 8 #include <stdarg.h> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "nacl_io/error.h" | 11 #include "nacl_io/error.h" |
12 #include "nacl_io/event_listener.h" | 12 #include "nacl_io/event_listener.h" |
13 #include "nacl_io/log.h" | 13 #include "nacl_io/log.h" |
14 #include "nacl_io/osdirent.h" | 14 #include "nacl_io/osdirent.h" |
15 #include "nacl_io/osstat.h" | 15 #include "nacl_io/osstat.h" |
16 #include "nacl_io/ostermios.h" | 16 #include "nacl_io/ostermios.h" |
17 | 17 |
18 #include "sdk_util/ref_object.h" | 18 #include "sdk_util/ref_object.h" |
19 #include "sdk_util/scoped_ref.h" | 19 #include "sdk_util/scoped_ref.h" |
20 #include "sdk_util/simple_lock.h" | 20 #include "sdk_util/simple_lock.h" |
21 | 21 |
22 #define S_IRALL (S_IRUSR | S_IRGRP | S_IROTH) | 22 #define S_IRALL (S_IRUSR | S_IRGRP | S_IROTH) |
23 #define S_IWALL (S_IWUSR | S_IWGRP | S_IWOTH) | 23 #define S_IWALL (S_IWUSR | S_IWGRP | S_IWOTH) |
24 #define S_IXALL (S_IXUSR | S_IXGRP | S_IXOTH) | 24 #define S_IXALL (S_IXUSR | S_IXGRP | S_IXOTH) |
| 25 #define S_MODEBITS 07777 |
25 | 26 |
26 namespace nacl_io { | 27 namespace nacl_io { |
27 | 28 |
28 class Filesystem; | 29 class Filesystem; |
29 class Node; | 30 class Node; |
30 struct HandleAttr; | 31 struct HandleAttr; |
31 | 32 |
32 typedef sdk_util::ScopedRef<Node> ScopedNode; | 33 typedef sdk_util::ScopedRef<Node> ScopedNode; |
33 | 34 |
34 // NOTE: The KernelProxy is the only class that should be setting errno. All | 35 // NOTE: The KernelProxy is the only class that should be setting errno. All |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 friend class Filesystem; | 142 friend class Filesystem; |
142 friend class FuseFs; | 143 friend class FuseFs; |
143 friend class Html5Fs; | 144 friend class Html5Fs; |
144 friend class HttpFs; | 145 friend class HttpFs; |
145 friend class MemFs; | 146 friend class MemFs; |
146 }; | 147 }; |
147 | 148 |
148 } // namespace nacl_io | 149 } // namespace nacl_io |
149 | 150 |
150 #endif // LIBRARIES_NACL_IO_NODE_H_ | 151 #endif // LIBRARIES_NACL_IO_NODE_H_ |
OLD | NEW |