CFGETOSPEED(3POSIX)

πŸ’– CFGETOSPEED(3POSIX) πŸ’–

okay so bestie, welcome to the POSIX Programmer's Manual ✨ this one's called CFGETOSPEED(3POSIX) and it lives in the POSIX Programmer's Manual, if the header didn't already give that away πŸŽ€


🌸 PROLOG 🌸

so like, real talk first: this manual page is part of the POSIX Programmer's Manual. the Linux implementation of this interface may differ (so pls go consult the corresponding Linux manual page for the deets on Linux behavior), or β€” and this is the part nobody likes β€” the interface may not be implemented on Linux at all πŸ™ˆ. no cap.


✨ NAME ✨

cfgetospeed β€” get output baud rate πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <termios.h>

speed_t cfgetospeed(const struct termios *termios_p);

🌈 DESCRIPTION 🌈

so what does this little icon actually do? the cfgetospeed() function shall extract the output baud rate from the termios structure that the termios_p argument points to. that's it. that's the whole job. main character behavior honestly πŸ‘‘

and here's the vibe: this function shall return exactly the value in the termios data structure, without interpretation. no glow-up, no translation, no "let me fix that for you" β€” it hands you the raw value, periodt 🫢


πŸ’œ RETURN VALUE πŸ’œ

upon successful completion, cfgetospeed() shall return a value of type speed_t representing the output baud rate. slay ✨


πŸŽ€ ERRORS πŸŽ€

No errors are defined. not a single one. it's giving flawless πŸ’…

the following sections are informative β€” i.e. the fun bonus lore section, keep reading bestie πŸ‘‡


πŸ“ EXAMPLES πŸ“

None. 😭 (i know. i wanted examples too.)


🧚 APPLICATION USAGE 🧚

None. πŸ™ˆ


⭐ RATIONALE ⭐

Refer to cfgetispeed(). go read that one, it's basically the sibling page πŸ¦‹


🌸 FUTURE DIRECTIONS 🌸

None. the future is bright and also empty ✨


πŸ”₯ SEE ALSO πŸ”₯

  • cfgetispeed()
  • cfsetispeed()
  • cfsetospeed()
  • tcgetattr()
  • The Base Definitions volume of POSIX.1‐2017, Chapter 11, General Terminal Interface, <termios.h>

Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1-2017, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html .

Any typographical or formatting errors that appear in this page are most likely to have been introduced during the conversion of the source files to man page format. To report such errors, see https://www.kernel.org/doc/man-pages/reporting_bugs.html .


and that's the whole page bestie, no crumbs left πŸ’– this edition was served up by IEEE/The Open Group, dated 2017, filed under CFGETOSPEED(3POSIX) β€” go forth and read your baud rates, ily 🫢✨