OLD | NEW |
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_KERNEL_PROXY_H_ | 5 #ifndef LIBRARIES_NACL_IO_KERNEL_PROXY_H_ |
6 #define LIBRARIES_NACL_IO_KERNEL_PROXY_H_ | 6 #define LIBRARIES_NACL_IO_KERNEL_PROXY_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 | 60 |
61 void SetMountCallback(nacl_io_mount_callback_t mount_callback, | 61 void SetMountCallback(nacl_io_mount_callback_t mount_callback, |
62 void* user_data); | 62 void* user_data); |
63 | 63 |
64 virtual int pipe(int pipefds[2]); | 64 virtual int pipe(int pipefds[2]); |
65 | 65 |
66 // NaCl-only function to read resources specified in the NMF file. | 66 // NaCl-only function to read resources specified in the NMF file. |
67 virtual int open_resource(const char* file); | 67 virtual int open_resource(const char* file); |
68 | 68 |
69 // KernelHandle and FD allocation and manipulation functions. | 69 // KernelHandle and FD allocation and manipulation functions. |
70 virtual int open(const char* path, int open_flags); | 70 virtual int open(const char* path, int open_flags, mode_t mode_flags); |
71 virtual int close(int fd); | 71 virtual int close(int fd); |
72 virtual int dup(int fd); | 72 virtual int dup(int fd); |
73 virtual int dup2(int fd, int newfd); | 73 virtual int dup2(int fd, int newfd); |
74 | 74 |
75 virtual void exit(int status); | 75 virtual void exit(int status); |
76 | 76 |
77 // Path related System calls handled by KernelProxy (not filesystem-specific) | 77 // Path related System calls handled by KernelProxy (not filesystem-specific) |
78 virtual int chdir(const char* path); | 78 virtual int chdir(const char* path); |
79 virtual char* getcwd(char* buf, size_t size); | 79 virtual char* getcwd(char* buf, size_t size); |
80 virtual char* getwd(char* buf); | 80 virtual char* getwd(char* buf); |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 virtual int AcquireSocketHandle(int fd, ScopedKernelHandle* handle); | 249 virtual int AcquireSocketHandle(int fd, ScopedKernelHandle* handle); |
250 #endif | 250 #endif |
251 | 251 |
252 ScopedEventEmitter signal_emitter_; | 252 ScopedEventEmitter signal_emitter_; |
253 DISALLOW_COPY_AND_ASSIGN(KernelProxy); | 253 DISALLOW_COPY_AND_ASSIGN(KernelProxy); |
254 }; | 254 }; |
255 | 255 |
256 } // namespace nacl_io | 256 } // namespace nacl_io |
257 | 257 |
258 #endif // LIBRARIES_NACL_IO_KERNEL_PROXY_H_ | 258 #endif // LIBRARIES_NACL_IO_KERNEL_PROXY_H_ |
OLD | NEW |