RFIO_FOPEN(3) | Rfio Library Functions | RFIO_FOPEN(3) |
rfio_fopen - opens a file
#include <sys/types.h>
#include "rfio_api.h"
FILE *rfio_fopen (char *path, char *mode);
Under Linux, for large files:
#define _LARGEFILE64_SOURCE
#include <sys/types.h>
#include "rfio_api.h"
FILE *rfio_fopen64 (char *path, char *mode);
For large files, under other systems:
#include <sys/types.h>
#include "rfio_api.h"
FILE *rfio_fopen64 (char *path, char *mode);
rfio_fopen opens the file whose name is the string pointed to by path , a character string containing the filename specification, and associates a FILE stream with it.
mode is an access mode indicator. One of the characters "r" or "w".
rfio_fopen64 allows to open large files (see NOTES).
This routine returns NULL if the operation failed or a non-NULL pointer to a FILE structure if the operation was successful. If it fails, serrno variable is set appropriately.
On Irix, Tru64 and IA64 the 64 bit mode is the default one, rfio_fopen and rfio_fopen64 are identical.
LCG Grid Deployment Team
$Date: 2005/03/31 13:13:02 $ | LCG |