CAP_SIZE(3C)CAP_SIZE(3C)NAMEcap_size - return the size of an capability
SYNOPSIS
#include <sys/capabilities.h>
ssize_t cap_size(struct cap *capp);
DESCRIPTION
Returns the size of a capability pointed to by capp. In IRIX
capabilities are all a fixed size, but the POSIX specifications allow for
the possibility of variable sized structures.
RETURN VALUEScap_size returns sizeof(cap_t) or -1 if capp is null.
ERRORS
EINVAL capp is null
SEE ALSOcapabilities(4)
Page 1