Close the file descriptor returned by name_open()
#include <sys/iofunc.h> #include <sys/dispatch.h> int name_close( int filedes );
- The file descriptor returned by name_open().
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The name_close() function closes the filedes obtained with the name_open() call.
Zero for success, or -1 if an error occurs (errno is set).
- Invalid file descriptor filedes.
- The name_close() call was interrupted by a signal.
- The name_close() function isn't implemented for the filesystem specified by filedes.
See the "Client side of the code" section in name_attach().