1 /*
2  * Copyright (C) 2013 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #include <sys/statvfs.h>
18 
19 // libc++ uses statvfs (for Darwin compatibility), but on Linux statvfs is
20 // just another name for statfs, so it didn't arrive until API level 19. We
21 // make the implementation available as inlines to support std::filesystem
22 // for NDK users (see https://github.com/android-ndk/ndk/issues/609).
23 
24 #define __BIONIC_SYS_STATVFS_INLINE /* Out of line. */
25 #define __BIONIC_NEED_STATVFS_INLINES
26 #undef __BIONIC_NEED_STATVFS64_INLINES
27 #include <bits/sys_statvfs_inlines.h>
28 
29 // Historically we provided actual symbols for statvfs64 and fstatvfs64.
30 // They're not particularly useful, but we can't take them away.
31 __strong_alias(statvfs64, statvfs);
32 __strong_alias(fstatvfs64, fstatvfs);
33