---
name: "gfs_acl_check"
section: "3"
platform: "linux"
package: "libgfarm-dev"
version: "2.7.20+dfsg-1.2+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/gfs_acl_check"
---

# gfs\_acl\_check(3)

check a Gfarm ACL for validity

## NAME

gfs\_acl\_check - check a Gfarm ACL for validity

## SYNOPSIS

```
#include <gfarm/gfarm.h>
```

**gfarm\_error\_t gfs\_acl\_check(gfarm\_acl\_t** *acl***, int \****last\_p***, int \****acl\_check\_err\_code\_p***);**

## INPUT ARGUMENTS

*acl*

An ACL structure type which is sorted.

*last\_p*

If this last\_p is not NULL, the [**gfs\_acl\_check**(3)](/gfs_acl_check/3.md) function assigns the number of the ACL entry at which the error was detected to the value pointed to by this last\_p.

*acl\_check\_err\_code*

*GFARM\_ACL\_MULTI\_ERROR* or *GFARM\_ACL\_DUPLICATE\_ERROR* or *GFARM\_ACL\_MISS\_ERROR* or *GFARM\_ACL\_ENTRY\_ERROR*.

## 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\_error**(3)](/gfs_acl_error/3.md), [**gfs\_acl\_sort**(3)](/gfs_acl_sort/3.md), [**gfs\_acl\_valid**(3)](/gfs_acl_valid/3.md)
