Q_GETFMT(2const)
β¨ 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 inquotactl(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
- Copyright 1996, Andries E. Brouwer <aeb@cwi.nl>
- Copyright 2010, Jan Kara <jack@suse.cz>
- Copyright 2010, Michael Kerrisk <mtk.manpages@gmail.com>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms