Middleware, development tools, realtime operating system
software and services for superior embedded design


Home
QNX Community Resources
Developer Support
QNX Documentation Library
QNX Developer Support

QNX Developer Support

QNX Software Systems
Developer Resources
Blogs
Board support packages
Foundry27 projects
Forums
Hardware support listing
Online video tutorials
Product documentation
Technical Articles

[Previous] [Contents] [Index] [Next]

name_close()

Close the file descriptor returned by name_open()

Synopsis:

#include <sys/iofunc.h>
#include <sys/dispatch.h>

int name_close( int filedes );

Arguments:

filedes
The file descriptor returned by name_open().

Library:

libc

Use the -l c option to qcc to link against this library. This library is usually included automatically.

Description:

The name_close() function closes the filedes obtained with the name_open() call.

Returns:

Zero for success, or -1 if an error occurs (errno is set).

Errors:

EBADF
Invalid file descriptor filedes.
EINTR
The name_close() call was interrupted by a signal.
ENOSYS
The name_close() function isn't implemented for the filesystem specified by filedes.

Examples:

See the "Client side of the code" section in name_attach().

Classification:

QNX Neutrino

Safety:
Cancellation point Yes
Interrupt handler No
Signal handler Yes
Thread Yes

See also:

close(), ConnectDetach(), name_attach(), name_detach(), name_open()


[Previous] [Contents] [Index] [Next]