blob: fa0024ad88a1f849ae6eff4b53cf4286f2952222 [file] [log] [blame]
yuezonghe824eb0c2024-06-27 02:32:26 -07001/* vi: set sw=4 ts=4: */
2/*
3 * fstatfs() for uClibc
4 *
5 * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
6 *
7 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
8 */
9
10#include <sys/syscall.h>
11#include <sys/vfs.h>
12
13#ifndef __USE_FILE_OFFSET64
14extern int fstatfs (int __fildes, struct statfs *__buf)
15 __THROW __nonnull ((2));
16#else
17# ifdef __REDIRECT_NTH
18extern int __REDIRECT_NTH (fstatfs, (int __fildes, struct statfs *__buf),
19 fstatfs64) __nonnull ((2));
20# else
21# define fstatfs fstatfs64
22# endif
23#endif
24
25extern __typeof(fstatfs) __libc_fstatfs attribute_hidden;
26#define __NR___libc_fstatfs __NR_fstatfs
27_syscall2(int, __libc_fstatfs, int, fd, struct statfs *, buf)
28
29#if defined __UCLIBC_LINUX_SPECIFIC__
30weak_alias(__libc_fstatfs,fstatfs)
31#endif