xref: /aosp_15_r20/external/libchrome/base/os_compat_android.h (revision 635a864187cb8b6c713ff48b7e790a6b21769273)
1*635a8641SAndroid Build Coastguard Worker // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2*635a8641SAndroid Build Coastguard Worker // Use of this source code is governed by a BSD-style license that can be
3*635a8641SAndroid Build Coastguard Worker // found in the LICENSE file.
4*635a8641SAndroid Build Coastguard Worker 
5*635a8641SAndroid Build Coastguard Worker #ifndef BASE_OS_COMPAT_ANDROID_H_
6*635a8641SAndroid Build Coastguard Worker #define BASE_OS_COMPAT_ANDROID_H_
7*635a8641SAndroid Build Coastguard Worker 
8*635a8641SAndroid Build Coastguard Worker #include <fcntl.h>
9*635a8641SAndroid Build Coastguard Worker #include <sys/types.h>
10*635a8641SAndroid Build Coastguard Worker #include <utime.h>
11*635a8641SAndroid Build Coastguard Worker 
12*635a8641SAndroid Build Coastguard Worker // Not implemented in Bionic.
13*635a8641SAndroid Build Coastguard Worker extern "C" int futimes(int fd, const struct timeval tv[2]);
14*635a8641SAndroid Build Coastguard Worker 
15*635a8641SAndroid Build Coastguard Worker // Not exposed or implemented in Bionic.
16*635a8641SAndroid Build Coastguard Worker extern "C" char* mkdtemp(char* path);
17*635a8641SAndroid Build Coastguard Worker 
18*635a8641SAndroid Build Coastguard Worker // Android has no timegm().
19*635a8641SAndroid Build Coastguard Worker extern "C" time_t timegm(struct tm* const t);
20*635a8641SAndroid Build Coastguard Worker 
21*635a8641SAndroid Build Coastguard Worker #endif  // BASE_OS_COMPAT_ANDROID_H_
22