| 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 __STDC_LIMIT_MACROS | 5 #ifndef __STDC_LIMIT_MACROS |
| 6 #define __STDC_LIMIT_MACROS | 6 #define __STDC_LIMIT_MACROS |
| 7 #endif | 7 #endif |
| 8 | 8 |
| 9 #include "nacl_io/memfs/mem_fs_node.h" | 9 #include "nacl_io/memfs/mem_fs_node.h" |
| 10 | 10 |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 } | 115 } |
| 116 data_capacity_ = new_capacity; | 116 data_capacity_ = new_capacity; |
| 117 } | 117 } |
| 118 | 118 |
| 119 if (new_length > stat_.st_size) | 119 if (new_length > stat_.st_size) |
| 120 memset(data_ + stat_.st_size, 0, new_length - stat_.st_size); | 120 memset(data_ + stat_.st_size, 0, new_length - stat_.st_size); |
| 121 stat_.st_size = new_length; | 121 stat_.st_size = new_length; |
| 122 return 0; | 122 return 0; |
| 123 } | 123 } |
| 124 | 124 |
| 125 Error MemFsNode::Fchmod(mode_t mode) { |
| 126 AUTO_LOCK(node_lock_); |
| 127 SetMode(mode); |
| 128 return 0; |
| 129 } |
| 130 |
| 125 } // namespace nacl_io | 131 } // namespace nacl_io |
| OLD | NEW |