Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(167)

Side by Side Diff: native_client_sdk/src/libraries/nacl_io/memfs/mem_fs_node.cc

Issue 660353003: [NaCl SDK] nacl_io: Fix utime() on directories. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698