mq_getsetattr(2)
β¨ NAME β¨
okay so bestie, welcome to mq_getsetattr(2), which lives in the System Calls Manual π. Its whole identity is:
mq_getsetattr β get/set message queue attributes π
That's the name. That's the job. No cap.
π¦ SYNOPSIS π¦
like, here's the summoning circle, exactly as written:
#include <mqueue.h> /* Definition of struct mq_attr */
#include <sys/syscall.h> /* Definition of SYS_* constants */
#include <unistd.h>
int syscall(SYS_mq_getsetattr, mqd_t mqdes,
const struct mq_attr *newattr, struct mq_attr *oldattr);
πΈ DESCRIPTION πΈ
Do not use this system call. π« like, genuinely, that's the description. It's giving "do not perceive me" energy.
This is the low-level system call used to implement mq_getattr(3) and mq_setattr(3). For an explanation of how this system call operates, see the description of mq_setattr(3). πβ¨
π STANDARDS π
None. not a single crumb of standard π« π
π₯ NOTES π₯
Never call it unless you are writing a C library! π¨
That's the note. That's the whole note. If you are not literally writing a C library, hands off the syscall, bestie. ππ
π SEE ALSO π
mwah π this page was brought to you by Linux man-pages 6.20, dated 2026-02-08, for mq_getsetattr(2). periodt. π
π¦ 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 2006, 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