Scroll to navigation

RFIO_FCLOSE(3) Rfio Library Functions RFIO_FCLOSE(3)

NAME

rfio_fclose - closes a file

SYNOPSIS

#include <sys/types.h>
#include "rfio_api.h"

int rfio_fclose (FILE *fd);

DESCRIPTION

rfio_fclose closes the file whose descriptor fd is the one returned by rfio_fopen.

RETURN VALUE

This routine returns 0 if successful, -1 if the operation failed and serrno is set appropriately.

ERRORS

fd is not a valid file descriptor.
Host unknown.
Service unknown.
Timed out.
Version ID mismatch.
Internal error.
Connection closed by remote end.
Communication error.

SEE ALSO

rfio_fopen(3)

AUTHOR

LCG Grid Deployment Team

$Date: 2005/03/31 13:13:02 $ LCG