Table of Contents
gfs_open_file - open a file
#include <gfs.h>
int gfs_open_file(char *filename);
gfs_open_file attempts to open a file and return a file_id
(a small, non-negative integer) for use in subsequent calls.
gfs_open returns the new file id, or -1 if an error occurred
(in which case, gfs_errno is set appropriately).
GFS_ENAMETOOLONG
filename was too long.
- GFS_ENOENT
-
filename does not exist.
- GFS_EMFILE
-
The limit on the total number of files open by the
client has been reached.
Table of Contents