---
name: "sysdecode_quotactl_cmd"
section: "3"
platform: "freebsd"
package: "base"
version: "16.0-CURRENT-20261027-61c70dc16a79"
release: "FreeBSD 16.0-CURRENT (2026-10-27)"
platforms: ["freebsd"]
url: "https://new.carta.tech/sysdecode_quotactl_cmd"
---

# sysdecode\_quotactl\_cmd(3)

output name of quotactl command

## NAME

**sysdecode\_quotactl\_cmd** – output name of quotactl command

## LIBRARY

library “libsysdecode”

## SYNOPSIS

**#include \<sysdecode.h\>**

*bool*\

**sysdecode\_quotactl\_cmd**(*FILE \*fp*, *int cmd*);

## DESCRIPTION

The **sysdecode\_quotactl\_cmd**() function outputs a text description of the *cmd* argument to [quotactl(2)](/quotactl/2.md) to the stream *fp*. The description is formatted as an invocation of the QCMD macro defined in the ⟨ufs/ufs/quota.h⟩ header.

The function first computes the primary and secondary values used by QCMD to construct *cmd*. If the primary command value does not represent a known constant, **sysdecode\_quotactl\_cmd**() does not generate any output and returns false. Otherwise, **sysdecode\_quotactl\_cmd**() outputs text depicting an invocation of QCMD with the associated constants for the primary and secondary command values and returns true. If the secondary command values does not represent a known constant, its value is output as a hexadecimal integer.

## RETURN VALUES

The **sysdecode\_quotactl\_cmd** function returns true if it outputs a description of *cmd* and false if it does not.

## EXAMPLES

The statement

```
sysdecode_quotatcl_cmd(stdout, QCMD(Q_GETQUOTA, USRQUOTA);
```

outputs the text “QCMD(Q\_GETQUOTA, USRQUOTA)” to standard output.

## SEE ALSO

[sysdecode(3)](/sysdecode/3.md)
