cap_clear(3C)

cap_clear - clear the fields of a capability

As shipped in IRIX 6.5. First release of IRIX 6.5.

NAME
     cap_clear - clear the fields of a capability

SYNOPSIS
     #include <sys/capability.h>

     int cap_clear( cap_t cap)

DESCRIPTION
     Clears the effective, permitted and inherited capabilities of the
     capability structure pointed to by cap.

RETURN VALUES
     cap_clear returns 0 if successful.  If cap is NULL, it returns -1.

ERRORS
     EINVAL          cap is NULL.

SEE ALSO
     capabilities(4)