.\" @(#)$RCSfile: lfc_closedir.man,v $ $Revision: 4014 $ $Date: 2010-12-13 08:41:11 +0100 (Mon, 13 Dec 2010) $ CERN IT-PDP/DM Jean-Philippe Baud .\" Copyright (C) 1999-2010 by CERN/IT/PDP/DM .\" All rights reserved .\" .TH LFC_CLOSEDIR 3 "$Date: 2010-12-13 08:41:11 +0100 (Mon, 13 Dec 2010) $" LFC "LFC Library Functions" .SH NAME lfc_closedir \- close LFC directory opened by .B lfc_opendir in the name server .SH SYNOPSIS .B #include .br \fB#include "lfc_api.h"\fR .sp .BI "int lfc_closedir (lfc_DIR *" dirp ) .SH DESCRIPTION .B lfc_closedir closes the LFC directory opened by .B lfc_opendir in the name server and frees the .B lfc_DIR structure pointed by .IR dirp . .TP .I dirp specifies the pointer value returned by .BR lfc_opendir . .SH RETURN VALUE This routine returns 0 if the operation was successful or -1 if the operation failed. In the latter case, .B serrno is set appropriately. .SH ERRORS .TP 1.3i .B EBADF File descriptor in DIR structure is invalid. .TP .B EFAULT .I dirp is a NULL pointer. .TP .B SENOSSERV Service unknown. .TP .B SECOMERR Communication error. .TP .B ENSNACT Name server is not running or is being shutdown. .SH SEE ALSO .BR lfc_opendirg(3) , .BR lfc_readdir(3),\ lfc_readdirg(3) , .BR lfc_rewinddir(3) .SH AUTHOR \fBLCG Grid Deployment\fP Team