cap_dup(3C)
cap_dup - make a copy of a capability
As shipped in IRIX 6.5.22. Unchanged since IRIX 6.5.
NAME cap_dup - make a copy of a capability SYNOPSIS #include <sys/capability.h> cap_t cap_dup( cap_t cap); DESCRIPTION Returns a pointer to an allocated capability that is a copy of the capability supplied as an argument. The returned capability should be deallocated using cap_free(3c) when no longer needed. RETURN VALUES Returns a pointer or null. ERRORS EINVAL cap is null. ENOMEM allocation of the cap_t failed. SEE ALSO capabilities(4)