OLD | NEW |
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/os_compat_android.h" | 5 #include "base/os_compat_android.h" |
6 | 6 |
7 #include <asm/unistd.h> | 7 #include <asm/unistd.h> |
8 #include <errno.h> | 8 #include <errno.h> |
| 9 #include <limits.h> |
9 #include <math.h> | 10 #include <math.h> |
10 #include <sys/stat.h> | 11 #include <sys/stat.h> |
11 #include <sys/syscall.h> | 12 #include <sys/syscall.h> |
12 | 13 |
13 #if !defined(__LP64__) | 14 #if !defined(__LP64__) |
14 #include <time64.h> | 15 #include <time64.h> |
15 #endif | 16 #endif |
16 | 17 |
17 #include "base/rand_util.h" | 18 #include "base/rand_util.h" |
18 #include "base/strings/string_piece.h" | 19 #include "base/strings/string_piece.h" |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 // The directory doesn't exist, but an error occured | 168 // The directory doesn't exist, but an error occured |
168 return NULL; | 169 return NULL; |
169 } | 170 } |
170 } | 171 } |
171 | 172 |
172 // We reached the max number of tries. | 173 // We reached the max number of tries. |
173 return NULL; | 174 return NULL; |
174 } | 175 } |
175 | 176 |
176 } // extern "C" | 177 } // extern "C" |
OLD | NEW |