[Bug 251868] Add tcgetwinsize() and tcsetwinsize() to termios.h

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Dec 26 14:55:35 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251868

--- Comment #15 from SOUMENDRA GANGULY <0.gangzta at gmail.com> ---
In https://reviews.freebsd.org/D27650, I had written: "OTOH, while it's not a
big deal anymore, I wonder why some of the other platforms such as NetBSD have
chosen to not put the winsize materials under _NETBSD_SOURCE."

Here lies the answer to the question:
https://mail-index.netbsd.org/tech-userlevel/2017/10/21/msg010899.html

Basically, Christos Zoulas cleverly avoided the namespace contamination by
letting sys/ttycom.h only make visible struct winsize when _NETBSD_SOURCE is
not defined: https://github.com/NetBSD/src/blob/trunk/sys/sys/ttycom.h

My OCD is now satisfied.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list