.\" @(#)$RCSfile: dpns_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 DPNS_CLOSEDIR 3 "$Date: 2010-12-13 08:41:11 +0100 (Mon, 13 Dec 2010) $" DPNS "DPNS Library Functions" .SH NAME dpns_closedir \- close DPNS directory opened by .B dpns_opendir in the name server .SH SYNOPSIS .B #include .br \fB#include "dpns_api.h"\fR .sp .BI "int dpns_closedir (dpns_DIR *" dirp ) .SH DESCRIPTION .B dpns_closedir closes the DPNS directory opened by .B dpns_opendir in the name server and frees the .B dpns_DIR structure pointed by .IR dirp . .TP .I dirp specifies the pointer value returned by .BR dpns_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 dpns_opendir(3) , .BR dpns_readdir(3),\ dpns_readdirx(3) , .BR dpns_rewinddir(3) .SH AUTHOR \fBLCG Grid Deployment\fP Team