TCXONC(2const)

πŸ’– TCXONC(2const) β€” bestie edition πŸ’–

okay so literally the whole vibe of this page is: TCXONC = software flow control ✨ That's the name, that's the game, and it lives in section 2const of the Linux man-pages (version 6.20, dated 2026-07-02, more on that later 🫢).


πŸ“š LIBRARY

It's chillin' in the Standard C library β€” link it with -lc. No cap.


✨ SYNOPSIS

#include <asm/termbits.h>  /* Definition of TCXONC */
#include <sys/ioctl.h>

int ioctl(int fd, TCXONC, int arg);

so you pop open those two headers (yes, the first one is literally where TCXONC gets defined, the comment is telling you that, slay) and then you hit ioctl with TCXONC as your request and arg as your lil argument. πŸ’…


πŸ¦‹ DESCRIPTION

okay so short and sweet: this is equivalent to tcflow(fd, arg). that's it. that's the whole thing. it's giving "middle manager energy" β€” it just forwards your request along. πŸ™ˆ

wanna know what arg can actually be? go read tcflow(3), bestie, because that's where the argument values live:

  • TCOOFF
  • TCOON
  • TCIOFF
  • TCION

those four are the only moods arg is allowed to have. πŸ’œ


πŸ‘‘ RETURN VALUE

  • success? you get 0. periodt. πŸŽ€
  • error? you get -1, and errno gets set to tell you exactly which flavour of wrong happened. 😭
no in-between, no "maybe", it's a binary situation and honestly? iconic.

🌈 SEE ALSO

go off, read these too:


🫢 and that's the page! brought to you by Linux man-pages 6.20, dated 2026-07-02 β€” stay flow-controlled, bestie, 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: GPL-1.0-or-later
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms