---
name: "gfs_acl_from_xattr_value"
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_from_xattr_value"
---

# gfs\_acl\_from\_xattr\_value(3)

convert an ACL binary data of Gfarm extended attribute to a Gfarm ACL

## NAME

gfs\_acl\_from\_xattr\_value - convert an ACL binary data of Gfarm extended attribute to a Gfarm ACL

## SYNOPSIS

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

**gfarm\_error\_t gfs\_acl\_from\_xattr\_value(const void \****xattr\_value***, size\_t** *size***, gfarm\_acl\_t \****acl\_p***);**

## INPUT ARGUMENTS

*xattr\_value*

An ACL binary data from Gfarm extended attribute.

*size*

The length of *xattr\_value*.

*acl\_p*

A pointer of a converted ACL.

## RETURN VALUES

**GFARM\_ERR\_NO\_ERROR**

The function terminated successfully.

**GFARM\_ERR\_NO\_MEMORY**

Insufficient memory was available.

Others

An error except the above occurred. The reason is shown by **gfarm\_error\_string**(3).

## SEE ALSO

[**gfs\_acl\_sort**(3)](/gfs_acl_sort/3.md), [**gfs\_acl\_get\_file**(3)](/gfs_acl_get_file/3.md), **gfs\_getxattr**(3), [**gfs\_acl\_from\_xattr\_value**(3)](/gfs_acl_from_xattr_value/3.md)
