| 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 AUTO_LOCK(node_lock_); | 128 AUTO_LOCK(node_lock_); |
| 129 stat_.st_atime = times[0].tv_sec; | 129 stat_.st_atime = times[0].tv_sec; |
| 130 stat_.st_atimensec = times[0].tv_nsec; | 130 stat_.st_atimensec = times[0].tv_nsec; |
| 131 stat_.st_mtime = times[1].tv_sec; | 131 stat_.st_mtime = times[1].tv_sec; |
| 132 stat_.st_mtimensec = times[1].tv_nsec; | 132 stat_.st_mtimensec = times[1].tv_nsec; |
| 133 return 0; | 133 return 0; |
| 134 } | 134 } |
| 135 | 135 |
| 136 Error MemFsNode::Fchmod(mode_t mode) { | 136 Error MemFsNode::Fchmod(mode_t mode) { |
| 137 AUTO_LOCK(node_lock_); | 137 AUTO_LOCK(node_lock_); |
| 138 SetMode(mode & ~S_IFMT); | 138 SetMode(mode); |
| 139 return 0; | 139 return 0; |
| 140 } | 140 } |
| 141 | 141 |
| 142 } // namespace nacl_io | 142 } // namespace nacl_io |
| OLD | NEW |