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

Side by Side Diff: runtime/bin/file_linux.cc

Issue 13636003: Fix a number of issues with determining the type of stdio (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add fix for Mac OS as well Created 7 years, 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
Mads Ager (google) 2013/04/05 05:34:28 Revert this file? Maybe disable the editor magic t
Søren Gjesse 2013/04/09 11:35:20 Done.
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "platform/globals.h" 5 #include "platform/globals.h"
6 #if defined(TARGET_OS_LINUX) 6 #if defined(TARGET_OS_LINUX)
7 7
8 #include "bin/file.h" 8 #include "bin/file.h"
9 9
10 #include <errno.h> // NOLINT 10 #include <errno.h> // NOLINT
11 #include <fcntl.h> // NOLINT 11 #include <fcntl.h> // NOLINT
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 TEMP_FAILURE_RETRY(lstat(file_2, &file_2_info)) == -1) { 296 TEMP_FAILURE_RETRY(lstat(file_2, &file_2_info)) == -1) {
297 return File::kError; 297 return File::kError;
298 } 298 }
299 return (file_1_info.st_ino == file_2_info.st_ino && 299 return (file_1_info.st_ino == file_2_info.st_ino &&
300 file_1_info.st_dev == file_2_info.st_dev) ? 300 file_1_info.st_dev == file_2_info.st_dev) ?
301 File::kIdentical : 301 File::kIdentical :
302 File::kDifferent; 302 File::kDifferent;
303 } 303 }
304 304
305 #endif // defined(TARGET_OS_LINUX) 305 #endif // defined(TARGET_OS_LINUX)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698