---
name: "Q_GETFMT"
section: "2const"
platform: "linux"
package: "man-pages"
version: "6.19-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/Q_GETFMT"
---

# Q\_GETFMT(2const)

get quota format

## NAME

Q\_GETFMT - get quota format

## LIBRARY

Standard C library (*libc*, *-lc*)

## SYNOPSIS

```
#include <sys/quota.h>
```

**int quotactl(QCMD(Q\_GETFMT,** *type***), const char \*\_Nullable** *special***, int** *id***,**              **caddr\_t** *addr***);**

**#include \<sys/quota.h\>**    /\* Definition of **Q\_\*** constants \*/ **#include \<sys/syscall.h\>**  /\* Definition of **SYS\_\*** constants \*/ **#include \<unistd.h\>**

**int syscall(SYS\_quotactl\_fd, int** *fd***, QCMD(Q\_GETFMT,** *type***), int** *id***,**             **int32\_t \****addr***);**

## DESCRIPTION

Get quota format used on the specified filesystem.

The *addr* argument should be a pointer to a 4-byte buffer where the format number will be stored.

## RETURN VALUE

See [**quotactl**(2)](/quotactl/2.md).

## ERRORS

See [**quotactl**(2)](/quotactl/2.md).

## STANDARDS

Linux.

## HISTORY

Linux 2.4.22.

## SEE ALSO

[**quotactl**(2)](/quotactl/2.md), [**quotactl\_fd**(2)](/quotactl_fd/2.md), [**Q\_QUOTAON**(2const)](/Q_QUOTAON/2const.md)
