Table of Contents

NAME

gfs_open_file - open a file

SYNOPSIS

#include <gfs.h>

int gfs_open_file(char *filename);

DESCRIPTION

gfs_open_file attempts to open a file and return a file_id (a small, non-negative integer) for use in subsequent calls.

RETURN VALUE

gfs_open returns the new file id, or -1 if an error occurred (in which case, gfs_errno is set appropriately).

ERRORS

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