int rfio_statfs (const char *path, struct rfstatfs *statfsbuf);
Under Linux, for large files:
#define _LARGEFILE64_SOURCE
#include <sys/types.h>
#include "rfio_api.h"
int rfio_statfs64 (const char *path, struct rfstatfs64 *statfsbuf);
For large files, under other systems:
#include <sys/types.h>
#include "rfio_api.h"
int rfio_statfs64 (const char *path, struct rfstatfs64 *statfsbuf);
struct rfstatfs {
long totblks ; /* Total number of blocks */
long freeblks ; /* Number of free blocks */
long bsize ; /* Block size */
long totnods ; /* Total number of inodes */
long freenods ; /* Number of free inodes */
};
struct rfstatfs64 {
signed64 totblks ; /* Total number of blocks */
signed64 freeblks ; /* Number of free blocks */
long bsize ; /* Block size */
signed64 totnods ; /* Total number of inodes */
signed64 freenods ; /* Number of free inodes */
};
The 64 bits function must be used for large filesystems. It has the same
syntax as the normal statfs function except that it uses a
rfstatfs64
structure.