![]() |
![]() |
![]() |
Verify a client's ability to read a symbolic link
#include <sys/iofunc.h> int iofunc_readlink( resmgr_context_t *ctp, io_readlink_t *msg, iofunc_attr_t *attr, struct _client_info *info );
libc
The iofunc_readlink() function supports readlink() requests by verifying that the client can read a symbolic link. It's similar to iofunc_open().
The iofunc_read() function checks to see if the client (described by the optional info structure) has access to open the resource (name passed in the msg structure). The attr structure describes the resource's attributes.
The info argument can be passed as NULL, in which case iofunc_read() obtains the client information itself via a call to iofunc_client_info(). It is, of course, more efficient to get the client info once, rather than calling this function with NULL every time.
The iofunc_readlink() function handles the readlink verification for the POSIX layer.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
![]() |
![]() |
![]() |