---
name: "gfs_acl_to_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_to_xattr_value"
---

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

convert a Gfarm ACL to binary data for Gfarm extended attribute

## NAME

gfs\_acl\_to\_xattr\_value - convert a Gfarm ACL to binary data for Gfarm extended attribute

## SYNOPSIS

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

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

## INPUT ARGUMENTS

*acl*

An ACL structure type which is sorted.

*xattr\_value\_p*

A pointer to the converted binary data.

*size\_p*

A value pointed to by *size\_p* is set to the length of the converted binary data.

## 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\_set\_file**(3)](/gfs_acl_set_file/3.md), **gfs\_setxattr**(3), [**gfs\_acl\_from\_xattr\_value**(3)](/gfs_acl_from_xattr_value/3.md)
