openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/libcap/2.27-r0/libcap-2.27/libcap/cap_proc.c
int cap_get_ambient(cap_value_t cap)
{
    int result;
    result = prctl(PR_CAP_AMBIENT, pr_arg(PR_CAP_AMBIENT_IS_SET), pr_arg(cap),
                   pr_arg(0), pr_arg(0));
    if (result < 0)
    {
        errno = -result;
        return -1;
    }
    return result;
}
/* get a capability from the ambient set */
get a capability from the ambient set
get a capability from the ambient set
int cap_get_ambient(cap_value_t cap)
{
    int result;
    result = prctl(PR_CAP_AMBIENT, pr_arg(PR_CAP_AMBIENT_IS_SET), pr_arg(cap),
                   pr_arg(0), pr_arg(0));
    if (result < 0)
    {
        errno = -result;
        return -1;
    }
    return result;
}
int cap_get_ambient ( cap_value_t cap ) { int result ; result = prctl ( PR_CAP_AMBIENT , pr_arg ( PR_CAP_AMBIENT_IS_SET ) , pr_arg ( cap ) , pr_arg ( 0 ) , pr_arg ( 0 ) ) ; if ( result < 0 ) { errno = - result ; return -1 ; } return result ; }
get a capability from the ambient set
get a capability from the ambient set