OSDN Git Service

hidden_def/hidden_proto: convert all users (I hope) termios split, add some missing...
[uclinux-h8/uClibc.git] / libc / sysdeps / linux / common / statfs.c
1 /* vi: set sw=4 ts=4: */
2 /*
3  * statfs() for uClibc
4  *
5  * Copyright (C) 2000-2004 by Erik Andersen <andersen@codepoet.org>
6  *
7  * GNU Library General Public License (LGPL) version 2 or later.
8  */
9
10 #include "syscalls.h"
11 #include <string.h>
12 #include <sys/param.h>
13 #include <sys/vfs.h>
14
15 #define __NR___syscall_statfs __NR_statfs
16 static inline _syscall2(int, __syscall_statfs,
17                 const char *, path, struct statfs *, buf);
18
19 int statfs(const char *path, struct statfs * buf)
20 {
21         return __syscall_statfs(path, buf);
22 }
23 libc_hidden_proto(statfs)
24 libc_hidden_def(statfs)