Q_GETFMT(2const)

πŸ“¦
version 6.20 Β· 2 versions
, in arch rolling, nixpkgs unstable

✨ Q_GETFMT β€” get quota format ✨

okay bestie, welcome to Q_GETFMT(2const) πŸ’– this one lives in the 2const section of the manual (that's the "constants and stuff that goes with syscalls" corner of the man-pages world, iykyk). it's short, it's sweet, it's giving "one job, done right" πŸ‘‘


🌸 LIBRARY

Standard C library (libc, -lc) πŸŽ€ yes the regular one, no funny business.


πŸ¦‹ 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);

two flavors, same energy fr fr πŸ’…


πŸ’œ DESCRIPTION

Get quota format used on the specified filesystem. that's it, that's the whole vibe 🌈

the addr argument should be a pointer to a 4-byte buffer where the format number will be stored πŸ“₯ like, you hand it a little 4-byte parking spot and it parks the format number there. no cap.


πŸ“ RETURN VALUE

See quotactl(2). πŸ‘€


πŸ’€ ERRORS

See quotactl(2). (yes again β€” it's a whole saga over there, go read it bestie 😭)


πŸ‘‘ STANDARDS

Linux. 🐧 periodt.


🧚 HISTORY

Linux 2.4.22. ⭐ vintage but iconic, we love a legacy queen.


🌟 SEE ALSO


lowkey reminder: this page is a <pink>slice of a bigger story</pink> β€” the real lore (return values, all the errors, the drama) lives in quotactl(2). go give it a read, it's worth it 🫢

this lil page came to you from Linux man-pages 6.20, dated 2026-06-05 πŸ“… mwah, go slay your quota queries πŸ’–βœ¨

πŸ“¦ where this page comes from
  • arch rolling: man-pages 6.20-1 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
  • nixpkgs unstable: man-pages 6.20
  • πŸ“œ the page's license: Linux-man-pages-copyleft
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms