Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/i/iofunc_client_info.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/i/iofunc_client_info.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/i/iofunc_client_info.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/i/iofunc_client_info.html on line 8
Return information about a client connection
#include <sys/iofunc.h>
int iofunc_client_info ( resmgr_context_t * ctp,
int ioflag,
struct _client_info * info );
- ctp
- A pointer to a
resmgr_context_t
structure that the resource-manager library uses to pass context information
between functions.
- ioflag
- Zero, or the constant O_REALIDS.
This argument is passed in the _IO_OPEN message during an open request.
If O_REALIDS is specified, iofunc_client_info()
swaps the real and effective values of the user and group IDs before returning.
This is a QNX Neutrino extension, to swap real and effective user and group IDs in an atomic operation.
- info
- A pointer to a _client_info structure that the function
fills with information about a client connection.
For information about this structure, see
ConnectClientInfo().
libc
Use the -l c option to
qcc
to link against this library.
This library is usually included automatically.
The iofunc_client_info() function fetches the info
structure for the client.
It calls
ConnectClientInfo()
to gather the information,
based on the server connection ID found in ctp->info.scoid.
- EFAULT
- A fault occurred when the kernel tried to access the info buffer provided.
- EINVAL
- The client process is no longer valid.
- EOK
- Successful completion.
QNX Neutrino
Safety: | |
Cancellation point |
No |
Interrupt handler |
No |
Signal handler |
Yes |
Thread |
Yes |
ConnectClientInfo()
Writing a Resource Manager
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/i/iofunc_client_info.html on line 152
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/i/iofunc_client_info.html on line 152