Avi Drissman | e4622aa | 2022-09-08 20:36:06 | [diff] [blame] | 1 | // Copyright 2012 The Chromium Authors |
[email protected] | f7d6997 | 2011-06-21 22:34:50 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
3 | // found in the LICENSE file. | ||||
4 | |||||
5 | #ifndef BASE_OS_COMPAT_ANDROID_H_ | ||||
6 | #define BASE_OS_COMPAT_ANDROID_H_ | ||||
[email protected] | f7d6997 | 2011-06-21 22:34:50 | [diff] [blame] | 7 | |
8 | #include <fcntl.h> | ||||
9 | #include <sys/types.h> | ||||
10 | #include <utime.h> | ||||
11 | |||||
[email protected] | c539518 | 2011-12-16 03:18:13 | [diff] [blame] | 12 | // Not implemented in Bionic. |
[email protected] | f7d6997 | 2011-06-21 22:34:50 | [diff] [blame] | 13 | extern "C" int futimes(int fd, const struct timeval tv[2]); |
14 | |||||
[email protected] | 4870fe56 | 2012-07-16 16:12:16 | [diff] [blame] | 15 | // Not exposed or implemented in Bionic. |
[email protected] | f7d6997 | 2011-06-21 22:34:50 | [diff] [blame] | 16 | extern "C" char* mkdtemp(char* path); |
17 | |||||
[email protected] | c539518 | 2011-12-16 03:18:13 | [diff] [blame] | 18 | // Android has no timegm(). |
19 | extern "C" time_t timegm(struct tm* const t); | ||||
20 | |||||
[email protected] | f7d6997 | 2011-06-21 22:34:50 | [diff] [blame] | 21 | #endif // BASE_OS_COMPAT_ANDROID_H_ |