int rfio_stat (const char *path, struct stat *statbuf);
int rfio_fstat (int s, struct stat *statbuf);
int rfio_lstat (const char *path, struct stat *statbuf);
int rfio_mstat (const char *path, struct stat *statbuf);
int rfio_mstat_reset ();
int rfio_end ();
Under Linux, for large files:
#define _LARGEFILE64_SOURCE
#include <sys/types.h>
#include "rfio_api.h"
int rfio_stat64 (const char *path, struct stat64 *statbuf);
int rfio_fstat64 (int s, struct stat64 *statbuf);
int rfio_lstat64 (const char *path, struct stat64 *statbuf);
int rfio_mstat64 (const char *path, struct stat64 *statbuf);
For large files, under other systems:
#include <sys/types.h>
#include "rfio_api.h"
int rfio_stat64 (const char *path, struct stat64 *statbuf);
int rfio_fstat64 (int s, struct stat64 *statbuf);
int rfio_lstat64 (const char *path, struct stat64 *statbuf);
int rfio_mstat64 (const char *path, struct stat64 *statbuf);
rfio_lstat is identical to rfio_stat except for symbolic links. In this case, the link itself is statted and not followed.
rfio_fstat is identical to rfio_stat but works on the file descriptor s returned by rfio_open.
rfio_mstat is identical to rfio_stat but keeps the connection open to the server unless there are more than MAXMCON connections already opened. This is useful when issuing a series of stat calls. The last rfio_mstat call should be followed by a call to rfio_end.
rfio_mstat_reset is to be used when your program is forking. In such a case the permanent connections opened with rfio_mstat become shared between the parent and the child. Use rfio_mstat_reset to perform the necessary reset and close of the socket file descriptor in the parent or the child in order to be sure that only of them will receice an answer from the RFIO daemon.
See NOTES section below.