Contents of /trunk/mkinitrd-magellan/klibc/usr/klibc/statfs.c
Parent Directory | Revision Log
Revision 532 -
(show annotations)
(download)
Sat Sep 1 22:45:15 2007 UTC (16 years, 9 months ago) by niro
File MIME type: text/plain
File size: 320 byte(s)
Sat Sep 1 22:45:15 2007 UTC (16 years, 9 months ago) by niro
File MIME type: text/plain
File size: 320 byte(s)
-import if magellan mkinitrd; it is a fork of redhats mkinitrd-5.0.8 with all magellan patches and features; deprecates magellan-src/mkinitrd
1 | /* |
2 | * statfs.c |
3 | * |
4 | * On architectures which do statfs64, wrap the system call |
5 | */ |
6 | |
7 | #include <sys/syscall.h> |
8 | #include <sys/vfs.h> |
9 | |
10 | #ifdef __NR_statfs64 |
11 | |
12 | extern int __statfs64(const char *, size_t, struct statfs *); |
13 | |
14 | int statfs(const char *path, struct statfs *buf) |
15 | { |
16 | return __statfs64(path, sizeof *buf, buf); |
17 | } |
18 | |
19 | #endif |