dafhof |
Table of contents
ProcedureDAFHOF ( DAF, handles of open files ) ENTRY DAFHOF ( FHSET ) AbstractReturn a SPICE set containing the handles of all currently open DAFS. Required_ReadingDAF SETS KeywordsDAF FILES DeclarationsINTEGER LBCELL PARAMETER ( LBCELL = -5 ) INTEGER FHSET ( LBCELL : * ) Brief_I/OVARIABLE I/O DESCRIPTION -------- --- -------------------------------------------------- FHSET O A set containing handles of currently open DAFS. Detailed_InputNone. Detailed_OutputFHSET is a SPICE set containing the file handles of all currently open DAFs. ParametersNone. Exceptions1) If the set FHSET is not initialized, an error is signaled by a routine in the call tree of this routine. 2) If the set FHSET is too small to accommodate the set of handles to be returned, an error is signaled by a routine in the call tree of this routine. FilesNone. ParticularsThis routine allows subroutines to test file handles for validity before performing operations on them, such as finding the name of the file designated by a handle. Many DAF operations on handles cause errors to be signaled if the handles are invalid. Examples1) Find out how may DAFs are open for writing. C C Find out which DAFs are open. C CALL DAFHOF ( FHSET ) C C Count the ones open for writing. These have C negative file handles. C COUNT = 0 DO I = 1, CARDC(FHSET) IF ( FHSET(I) .LT. 0 ) THEN COUNT = COUNT + 1 END IF END DO RestrictionsNone. Literature_ReferencesNone. Author_and_InstitutionN.J. Bachman (JPL) J. Diaz del Rio (ODC Space) W.L. Taber (JPL) F.S. Turner (JPL) E.D. Wright (JPL) VersionSPICELIB Version 8.0.2, 25-NOV-2021 (JDR) Edited the header to comply with NAIF standard. SPICELIB Version 8.0.1, 10-OCT-2012 (EDW) Corrected ordering of header section. SPICELIB Version 8.0.0, 13-NOV-2001 (FST) This routine was updated to utilize the new handle manager software to manage binary file formats and consolidated I/O code. SPICELIB Version 7.0.4, 08-OCT-1999 (WLT) The environment lines were expanded so that the supported environments are now explicitly given. New environments are WIN-NT SPICELIB Version 7.0.3, 16-SEP-1999 (NJB) CSPICE environments were added. Some typos were corrected. SPICELIB Version 7.0.2, 28-JUL-1999 (WLT) The environment lines were expanded so that the supported environments are now explicitly given. New environments are PC-DIGITAL, SGI-O32 and SGI-N32. SPICELIB Version 7.0.1, 17-MAR-1999 (WLT) The environment lines were expanded so that the supported environments are now explicitly given. Previously, environments such as SUN-SUNOS and SUN-SOLARIS were implied by the environment label SUN. SPICELIB Version 1.0.1, 10-MAR-1992 (WLT) Comment section for permuted index source lines was added following the header. SPICELIB Version 1.0.0, 03-SEP-1991 (NJB) (WLT) |
Fri Dec 31 18:36:08 2021