---
name: "gfs_acl_cmp"
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_cmp"
---

# gfs\_acl\_cmp(3)

compare two Gfarm ACLs

## NAME

gfs\_acl\_cmp - compare two Gfarm ACLs

## SYNOPSIS

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

**int gfs\_acl\_cmp(gfarm\_acl\_t** *acl1***, gfarm\_acl\_t** *acl2***);**

## INPUT ARGUMENTS

*acl1*, *acl2*

An ACL structure type which is sorted.

## RETURN VALUES

If the two ACLs acl1 and acl2 are equal, this function returns 0. And if they differ, this function returns 1.

## SEE ALSO

[**gfs\_acl\_dup**(3)](/gfs_acl_dup/3.md), [**gfs\_acl\_sort**(3)](/gfs_acl_sort/3.md), [**gfs\_acl\_from\_text**(3)](/gfs_acl_from_text/3.md), [**gfs\_acl\_get\_file**(3)](/gfs_acl_get_file/3.md), [**gfs\_acl\_init**(3)](/gfs_acl_init/3.md)
