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
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms