DALIB(3)

NAME
da_close - Close a DAT filedescriptor

SYNOPSIS
#include dataudiolib.h

int
da_close( int datfd )

DESCRIPTION
The da_closes() function closes the specified datfd. If the datfd refered to a real tapedevice all relevant variables of the current internal state are saved to a special file to be restored if this device is opened the next time.

PARAMETERS

  Input Parameters

datfd
    A DAT filedescriptor as got from da_init or da_open .

RETURN VALUE
When an error condition arises, this routine returns -1 and sets errno to indicate the reason for the error. Possible values of errno are:

EINVAL
    The filedescriptor is invalid.

other
    The usual errors returned by close(3) .

USAGE EXAMPLE

Close a DAT device.

		da_close(datfd);

SEE ALSO
da_intro(3),da_open(3),da_init(3)

AUTHOR
Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>