---
name: "gfs_acl_from_text_with_default"
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_text_with_default"
---

# gfs\_acl\_from\_text\_with\_default(3)

create a Gfarm ACL from text with default prefix

## NAME

gfs\_acl\_from\_text\_with\_default - create a Gfarm ACL from text with default prefix

## SYNOPSIS

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

**gfarm\_error\_t gfs\_acl\_from\_text\_with\_default(const char \****str***, gfarm\_acl\_t \****acl\_acc\_p***, gfarm\_acl\_t \****acl\_def\_p***);**

## INPUT ARGUMENTS

*str*

An ACL text string (long text form or short text form). The ACL entries can have "default:" prefix.

*acl\_acc\_p*

A pointer of the ACL structure type for access ACL.

*acl\_acc\_p*

A pointer of the ACL structure type for default ACL.

## RETURN VALUES

**GFARM\_ERR\_NO\_ERROR**

The function terminated successfully.

**GFARM\_ERR\_NO\_MEMORY**

Insufficient memory was available.

**GFARM\_ERR\_INVALID\_ARGUMENT**

The argument str cannot be translated into an ACL.

Others

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

## SEE ALSO

[**gfs\_acl\_free**(3)](/gfs_acl_free/3.md), [**gfs\_acl\_to\_any\_text**(3)](/gfs_acl_to_any_text/3.md), [**gfs\_acl\_to\_text**(3)](/gfs_acl_to_text/3.md), [**gfs\_acl\_from\_text**(3)](/gfs_acl_from_text/3.md)
