
TPMC500-SW-42 - VxWorks Device Driver
Page 12 of 19
4.2 close()
NAME
close() - closes a device or file.
SYNOPSIS
int close
(
int
fd,
/* descriptor to close
*/
)
DESCRIPTION
This function closes opened devices.
EXAMPLE
int retval;
...
/*------------------
Close the device
------------------*/
retval = close(fd);
...
RETURNS
A device descriptor number or ERROR (if the device does not exist or no device descriptors are
available)
INCLUDES
ioLib.h, semLib.h
SEE ALSO
ioLib, basic I/O routine -
close()