| 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 #if defined(WIN32) | 5 #if defined(WIN32) |
| 6 #define _CRT_RAND_S | 6 #define _CRT_RAND_S |
| 7 #endif | 7 #endif |
| 8 | 8 |
| 9 #include <errno.h> | 9 #include <errno.h> |
| 10 #include <fcntl.h> | 10 #include <fcntl.h> |
| 11 #include <string.h> | 11 #include <string.h> |
| 12 #include <unistd.h> | |
| 13 #include "nacl_io/kernel_wrap_real.h" | 12 #include "nacl_io/kernel_wrap_real.h" |
| 14 #include "nacl_io/mount_dev.h" | 13 #include "nacl_io/mount_dev.h" |
| 15 #include "nacl_io/mount_node.h" | 14 #include "nacl_io/mount_node.h" |
| 16 #include "nacl_io/mount_node_dir.h" | 15 #include "nacl_io/mount_node_dir.h" |
| 16 #include "nacl_io/osunistd.h" |
| 17 #include "nacl_io/pepper_interface.h" | 17 #include "nacl_io/pepper_interface.h" |
| 18 #include "sdk_util/auto_lock.h" | 18 #include "sdk_util/auto_lock.h" |
| 19 | 19 |
| 20 #if defined(__native_client__) | 20 #if defined(__native_client__) |
| 21 #include <irt.h> | 21 #include <irt.h> |
| 22 #elif defined(WIN32) | 22 #elif defined(WIN32) |
| 23 #include <stdlib.h> | 23 #include <stdlib.h> |
| 24 #endif | 24 #endif |
| 25 | 25 |
| 26 namespace { | 26 namespace { |
| (...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 INITIALIZE_DEV_NODE_1("/stderr", RealNode, 2); | 345 INITIALIZE_DEV_NODE_1("/stderr", RealNode, 2); |
| 346 | 346 |
| 347 return 0; | 347 return 0; |
| 348 } | 348 } |
| 349 | 349 |
| 350 void MountDev::Destroy() { | 350 void MountDev::Destroy() { |
| 351 if (root_) | 351 if (root_) |
| 352 root_->Release(); | 352 root_->Release(); |
| 353 root_ = NULL; | 353 root_ = NULL; |
| 354 } | 354 } |
| OLD | NEW |