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 #include "nacl_mounts/kernel_proxy.h" | 5 #include "nacl_io/kernel_proxy.h" |
6 | 6 |
7 #include <assert.h> | 7 #include <assert.h> |
8 #include <errno.h> | 8 #include <errno.h> |
9 #include <fcntl.h> | 9 #include <fcntl.h> |
10 #include <pthread.h> | 10 #include <pthread.h> |
11 #include <string.h> | 11 #include <string.h> |
12 #include <string> | 12 #include <string> |
13 | 13 |
14 #include "nacl_mounts/kernel_handle.h" | 14 #include "nacl_io/kernel_handle.h" |
15 #include "nacl_mounts/mount.h" | 15 #include "nacl_io/mount.h" |
16 #include "nacl_mounts/mount_dev.h" | 16 #include "nacl_io/mount_dev.h" |
17 #include "nacl_mounts/mount_html5fs.h" | 17 #include "nacl_io/mount_html5fs.h" |
18 #include "nacl_mounts/mount_http.h" | 18 #include "nacl_io/mount_http.h" |
19 #include "nacl_mounts/mount_mem.h" | 19 #include "nacl_io/mount_mem.h" |
20 #include "nacl_mounts/mount_node.h" | 20 #include "nacl_io/mount_node.h" |
21 #include "nacl_mounts/osstat.h" | 21 #include "nacl_io/osstat.h" |
22 #include "nacl_mounts/path.h" | 22 #include "nacl_io/path.h" |
23 #include "nacl_mounts/pepper_interface.h" | 23 #include "nacl_io/pepper_interface.h" |
24 #include "utils/auto_lock.h" | 24 #include "utils/auto_lock.h" |
25 #include "utils/ref_object.h" | 25 #include "utils/ref_object.h" |
26 | 26 |
27 #ifndef MAXPATHLEN | 27 #ifndef MAXPATHLEN |
28 #define MAXPATHLEN 256 | 28 #define MAXPATHLEN 256 |
29 #endif | 29 #endif |
30 | 30 |
31 // TODO(noelallen) : Grab/Redefine these in the kernel object once available. | 31 // TODO(noelallen) : Grab/Redefine these in the kernel object once available. |
32 #define USR_ID 1002 | 32 #define USR_ID 1002 |
33 #define GRP_ID 1003 | 33 #define GRP_ID 1003 |
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 | 422 |
423 int KernelProxy::link(const char* oldpath, const char* newpath) { | 423 int KernelProxy::link(const char* oldpath, const char* newpath) { |
424 errno = EINVAL; | 424 errno = EINVAL; |
425 return -1; | 425 return -1; |
426 } | 426 } |
427 | 427 |
428 int KernelProxy::symlink(const char* oldpath, const char* newpath) { | 428 int KernelProxy::symlink(const char* oldpath, const char* newpath) { |
429 errno = EINVAL; | 429 errno = EINVAL; |
430 return -1; | 430 return -1; |
431 } | 431 } |
OLD | NEW |