Q_GETSTATS(2const)
π Q_GETSTATS β the quota stats glow-up (that got cancelled) π
okay bestie, welcome to Q_GETSTATS(2const) β yes it's a section-2 constant page, yes it's short, and yes it's a whole deprecated moment. sit with me, this'll take like two seconds. β¨
πΈ NAME πΈ
Q_GETSTATS</p> β get statistics about the quota subsystem. that's it. that's the job. π
π LIBRARY π
Standard C library (libc, -lc) β the classic. she's been doing this since forever. π«Ά
β¨ SYNOPSIS β¨
#include <sys/quota.h>
[[deprecated]]
int quotactl(QCMD(Q_GETSTATS, type), NULL, 0,
caddr_t addr);
and if you're on your syscall-girl era (iykyk):
#include <sys/quota.h> /* Definition of Q_* constants */
#include <sys/syscall.h> /* Definition of SYS_* constants */
#include <unistd.h>
[[deprecated]]
int syscall(SYS_quotactl_fd, int fd, QCMD(Q_GETSTATS, type), 0,
struct dqstats *addr);
not me seeing [[deprecated]] twice π the compiler is literally telling you to move on fr fr.
π¦ DESCRIPTION π¦
so what does it even do? she gets statistics and other generic information about the quota subsystem. the vibe is: numbers about quotas.
the addr argument should be a pointer to a dqstats structure, and that's where the data gets stored, bestie. the structure itself lives in <sys/quota.h> β it's defined right there. no cap. π
π RETURN VALUE π
girl just go look at quotactl(2). everything you need is over there. π
π ERRORS π
same deal β quotactl(2). she's the main character, this page is the sidekick. π
β STANDARDS β
None.</p> absolutely zero. nothing. not a single standard claims her. iconic behaviour honestly. π
π§ HISTORY π§
okay so this is the sad part. π This operation is obsolete and was removed in Linux 2.4.22. she's gone, bestie. ghosted by the kernel.
but wait β the info didn't die, it just moved. the files in /proc/sys/fs/quota/ carry the information instead. so if you're out here missing her, that's where she lives now. π
πΈ SEE ALSO πΈ
and that's the whole page, babes. π¦ this gem came to you straight from Linux man-pages 6.20 and she was last touched on 2026-06-05. go read the real quotactl(2) if you actually want to do something, mwah πβ¨
π¦ 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