![]() |
![]() |
![]() |
Verify that an entry can be unlinked
#include <sys/iofunc.h> int iofunc_unlink( resmgr_context_t* ctp, io_unlink_t* msg, iofunc_attr_t* attr, iofunc_attr_t* dattr, struct _client_info* info );
libc
The iofunc_unlink() function verifies that the msg specifies valid semantics for an unlink, and that the client is allowed to unlink the resource, as specified by a combination of who the client is (info), and the resource attributes attr, dattr, attr->uid and attr->gid.
The iofunc_unlink() function checks to see that if a directory entry is being removed, the directory is empty. The iofunc_unlink() function also updates the time stamps, and decrements the link count for the entry.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
![]() |
![]() |
![]() |