NAME | SYNOPSIS | API RESTRICTIONS | DESCRIPTION | RETURN VALUES | ATTRIBUTES | SEE ALSO
#include <afexec.h>int acap(int pid, KnCap *cactorcap);
The function or functions documented here may not be used safely in all application contexts with all APIs provided in the ChorusOS 5.0 product.
See API(5FEA) for details.
acap() copies, at the location pointed to by cactorcap, the capability of the process designated by the identifier pid.
Upon successful completion, acap() returns 0. Otherwise it returns -1 and sets errno to indicate one of the following error conditions:
pid is zero.
pid does not exist.
The calling process is not a trusted process.
cactorcap points outside the allocated address space of the process.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Deprecated |
NAME | SYNOPSIS | API RESTRICTIONS | DESCRIPTION | RETURN VALUES | ATTRIBUTES | SEE ALSO