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

Side by Side Diff: native_client_sdk/src/libraries/nacl_io/node.cc

Issue 571773002: Default to returning success in utime. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "nacl_io/node.h" 5 #include "nacl_io/node.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 <poll.h> 10 #include <poll.h>
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 170
171 Error Node::Tcgetattr(struct termios* termios_p) { 171 Error Node::Tcgetattr(struct termios* termios_p) {
172 return EINVAL; 172 return EINVAL;
173 } 173 }
174 174
175 Error Node::Tcsetattr(int optional_actions, const struct termios* termios_p) { 175 Error Node::Tcsetattr(int optional_actions, const struct termios* termios_p) {
176 return EINVAL; 176 return EINVAL;
177 } 177 }
178 178
179 Error Node::Futimens(const struct timespec times[2]) { 179 Error Node::Futimens(const struct timespec times[2]) {
180 return EINVAL; 180 return 0;
181 } 181 }
182 182
183 int Node::GetLinks() { 183 int Node::GetLinks() {
184 return stat_.st_nlink; 184 return stat_.st_nlink;
185 } 185 }
186 186
187 int Node::GetMode() { 187 int Node::GetMode() {
188 return stat_.st_mode & ~S_IFMT; 188 return stat_.st_mode & ~S_IFMT;
189 } 189 }
190 190
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 244
245 void Node::Link() { 245 void Node::Link() {
246 stat_.st_nlink++; 246 stat_.st_nlink++;
247 } 247 }
248 248
249 void Node::Unlink() { 249 void Node::Unlink() {
250 stat_.st_nlink--; 250 stat_.st_nlink--;
251 } 251 }
252 252
253 } // namespace nacl_io 253 } // namespace nacl_io
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698