Scroll to navigation

GFS_ACL_GET_PERM(3) Gfarm GFS_ACL_GET_PERM(3)

NAME

gfs_acl_get_perm - test for a permission in a Gfarm ACL permission set

SYNOPSIS

#include <gfarm/gfarm.h>

gfarm_error_t gfs_acl_get_perm(gfarm_acl_permset_t permset_d, gfarm_acl_perm_t perm, int *bool_p);

INPUT ARGUMENTS

permset_d
An ACL permission set.

perm

GFARM_ACL_READ or GFARM_ACL_WRITE or GFARM_ACL_EXECUTE.

bool_p

If *bool_p is 1, the ACL permission set has the perm. If *bool_p is 0, the ACL permission set does not have the perm.

RETURN VALUES

GFARM_ERR_NO_ERROR
The function terminated successfully.

Others

An error except the above occurred. The reason is shown by gfarm_error_string(3).

SEE ALSO

gfs_acl_add_perm(3), gfs_acl_clear_perms(3), gfs_acl_delete_perm(3), gfs_acl_get_permset(3), gfs_acl_set_permset(3)
14 Feb 2011 Gfarm