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

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Dec 25 18:47:41 UTC 2020


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

--- Comment #14 from commit-hook at FreeBSD.org ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=7d7fad7bd969fb464f64d34932234060cee112af

commit 7d7fad7bd969fb464f64d34932234060cee112af
Author:     Konstantin Belousov <kib at FreeBSD.org>
AuthorDate: 2020-12-24 23:05:31 +0000
Commit:     Konstantin Belousov <kib at FreeBSD.org>
CommitDate: 2020-12-25 18:43:09 +0000

    Add tcgetwinsize(3) and tcsetwinsize(3) to termios

    These functions get/set tty winsize respectively, and are trivial wrappers
    around corresponding termio ioctls.

    The functions are expected to be a part of POSIX.1 issue 8:
    https://www.austingroupbugs.net/view.php?id=1151#c3856.
    They are currently available in NetBSD and in musl libc.

    PR:     251868
    Submitted by:   Soumendra Ganguly <soumendraganguly at gmail.com>
    MFC after:      1 week
    Differential Revision:  https://reviews.freebsd.org/D27650

 include/termios.h        |  6 ++++++
 lib/libc/gen/Symbol.map  |  2 ++
 lib/libc/gen/termios.c   | 14 ++++++++++++++
 sys/sys/_winsize.h (new) | 49 ++++++++++++++++++++++++++++++++++++++++++++++++
 sys/sys/ttycom.h         | 12 +-----------
 5 files changed, 72 insertions(+), 11 deletions(-)

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


More information about the freebsd-bugs mailing list