'\" t
.\" Title: gfs_acl_check
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
.\" Generator: DocBook XSL Stylesheets v1.79.1
.\" Date: 14 Feb 2011
.\" Manual: Gfarm
.\" Source: Gfarm
.\" Language: English
.\"
.TH "GFS_ACL_CHECK" "3" "14 Feb 2011" "Gfarm" "Gfarm"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
gfs_acl_check \- check a Gfarm ACL for validity
.SH "SYNOPSIS"
.sp
.ft B
.nf
#include
.fi
.ft
.HP \w'gfarm_error_t\ gfs_acl_check('u
.BI "gfarm_error_t\ gfs_acl_check(gfarm_acl_t\ " "acl" ", int\ *" "last_p" ", int\ *" "acl_check_err_code_p" ");"
.SH "INPUT ARGUMENTS"
.PP
\fIacl\fR
.RS 4
An ACL structure type which is sorted\&.
.RE
.PP
\fIlast_p\fR
.RS 4
If this last_p is not NULL, the
\fBgfs_acl_check\fR(3)
function assigns the number of the ACL entry at which the error was detected to the value pointed to by this last_p\&.
.RE
.PP
\fIacl_check_err_code\fR
.RS 4
\fIGFARM_ACL_MULTI_ERROR\fR
or
\fIGFARM_ACL_DUPLICATE_ERROR\fR
or
\fIGFARM_ACL_MISS_ERROR\fR
or
\fIGFARM_ACL_ENTRY_ERROR\fR\&.
.RE
.SH "RETURN VALUES"
.PP
\fBGFARM_ERR_NO_ERROR\fR
.RS 4
The function terminated successfully\&.
.RE
.PP
Others
.RS 4
An error except the above occurred\&. The reason is shown by
\fBgfarm_error_string\fR(3)\&.
.RE
.SH "SEE ALSO"
.PP
\fBgfs_acl_error\fR(3),
\fBgfs_acl_sort\fR(3),
\fBgfs_acl_valid\fR(3)