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

Side by Side Diff: base/files/file_util_posix.cc

Issue 2884353004: fuchsia: base_unittests (mostly) compiling (Closed)
Patch Set: . Created 3 years, 7 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "base/files/file_util.h" 5 #include "base/files/file_util.h"
6 6
7 #include <dirent.h> 7 #include <dirent.h>
8 #include <errno.h> 8 #include <errno.h>
9 #include <fcntl.h> 9 #include <fcntl.h>
10 #include <libgen.h> 10 #include <libgen.h>
11 #include <limits.h> 11 #include <limits.h>
12 #include <stddef.h> 12 #include <stddef.h>
13 #include <stdio.h> 13 #include <stdio.h>
14 #include <stdlib.h> 14 #include <stdlib.h>
15 #include <string.h> 15 #include <string.h>
16 #include <sys/errno.h>
17 #include <sys/mman.h> 16 #include <sys/mman.h>
18 #include <sys/param.h> 17 #include <sys/param.h>
19 #include <sys/stat.h> 18 #include <sys/stat.h>
20 #include <sys/time.h> 19 #include <sys/time.h>
21 #include <sys/types.h> 20 #include <sys/types.h>
22 #include <time.h> 21 #include <time.h>
23 #include <unistd.h> 22 #include <unistd.h>
24 23
25 #include "base/environment.h" 24 #include "base/environment.h"
26 #include "base/files/file_enumerator.h" 25 #include "base/files/file_enumerator.h"
(...skipping 22 matching lines...) Expand all
49 48
50 #if defined(OS_ANDROID) 49 #if defined(OS_ANDROID)
51 #include "base/android/content_uri_utils.h" 50 #include "base/android/content_uri_utils.h"
52 #include "base/os_compat_android.h" 51 #include "base/os_compat_android.h"
53 #endif 52 #endif
54 53
55 #if !defined(OS_IOS) 54 #if !defined(OS_IOS)
56 #include <grp.h> 55 #include <grp.h>
57 #endif 56 #endif
58 57
58 #if !defined(OS_FUCHSIA)
59 #include <sys/errno.h>
Nico 2017/05/17 15:52:53 Doesn't the warning just let you know that this sh
scottmg 2017/05/17 16:52:51 Ah, I assumed this was a Fuchsia-specific thing, b
60 #endif
61
59 // We need to do this on AIX due to some inconsistencies in how AIX 62 // We need to do this on AIX due to some inconsistencies in how AIX
60 // handles XOPEN_SOURCE and ALL_SOURCE. 63 // handles XOPEN_SOURCE and ALL_SOURCE.
61 #if defined(OS_AIX) 64 #if defined(OS_AIX)
62 extern "C" char* mkdtemp(char* path); 65 extern "C" char* mkdtemp(char* path);
63 #endif 66 #endif
64 67
65 namespace base { 68 namespace base {
66 69
67 namespace { 70 namespace {
68 71
(...skipping 939 matching lines...) Expand 10 before | Expand all | Expand 10 after
1008 return false; 1011 return false;
1009 1012
1010 DeleteFile(from_path, true); 1013 DeleteFile(from_path, true);
1011 return true; 1014 return true;
1012 } 1015 }
1013 1016
1014 } // namespace internal 1017 } // namespace internal
1015 1018
1016 #endif // !defined(OS_NACL_NONSFI) 1019 #endif // !defined(OS_NACL_NONSFI)
1017 } // namespace base 1020 } // namespace base
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698