Table of Contents

NAME

gfs_close_file - close a file

SYNOPSIS

#include <gfs.h>

int gfs_close_file(int file_id);

DESCRIPTION

gfs_close_file closes the file associated with file_id . Closing a file allows that file's space in the open file table to be reused. It also allows the file system to delete the file, if such a request has been issued.

RETURN VALUE

gfs_close_file returns zero on success, or -1 if an error occurred.

ERRORS

GFS_EINVAL
file_id isn't a legal file id. GFS_EBADF file_id isn't a valid file id.


Table of Contents