U_UCLOSE - do a unit close (reel switch) on a UFAS file.

Usage:

#include <ufas.h>
stat = u_uclose( fp[, option ] )

Where:

U_FILE fp;
is a file descriptor as returned by "u_open".
option
is one of the UFAS Unit Close options. The default is U_RWUN (Rewind Unit).
int stat;
is 0 on success, and EOF if the call fails.

Description:

"u_uclose" causes a Unit Close to occur on the given unit. The unit remains open for further I/O.

The following values are allowed for the option value:

U_RWUN - Rewind Unit
U_NRUN - Don't Rewind Unit
U_RLUN - Rewind and Lock Unit
U_RUUN - Rewind and Unload Unit

The status return will only occur if error-handling has been specified in the call to "u_open".

Copyright © 1996, Thinkage Ltd.