* tcgetwinsize() and tcsetwinsize() @ 2020-12-13 6:42 Soumendra Ganguly 2020-12-13 9:16 ` Florian Weimer 0 siblings, 1 reply; 3+ messages in thread From: Soumendra Ganguly @ 2020-12-13 6:42 UTC (permalink / raw) To: libc-help Hello. According to https://www.austingroupbugs.net/view.php?id=1151#c3856, tcgetwinsize() and tcsetwinsize() for getting/setting tty winsize are going to appear in POSIX.1 issue 8. NetBSD already has them: 1. http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/termios/tcgetwinsize.c?only_with_tag=MAIN 2. http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/termios/tcsetwinsize.c?only_with_tag=MAIN Also, musl-libc has them. Would implementations of these functions using ioctl()+TIOCGWINSZ?TIOCSWINSZ be welcome? Thank you. Soumendra ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: tcgetwinsize() and tcsetwinsize() 2020-12-13 6:42 tcgetwinsize() and tcsetwinsize() Soumendra Ganguly @ 2020-12-13 9:16 ` Florian Weimer 2020-12-13 9:53 ` Soumendra Ganguly 0 siblings, 1 reply; 3+ messages in thread From: Florian Weimer @ 2020-12-13 9:16 UTC (permalink / raw) To: Soumendra Ganguly via Libc-help; +Cc: Soumendra Ganguly * Soumendra Ganguly via Libc-help: > https://www.austingroupbugs.net/view.php?id=1151#c3856, tcgetwinsize() > and tcsetwinsize() for getting/setting tty winsize are going to appear > in POSIX.1 issue 8. NetBSD already has them: > > 1. http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/termios/tcgetwinsize.c?only_with_tag=MAIN > 2. http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/termios/tcsetwinsize.c?only_with_tag=MAIN > > Also, musl-libc has them. Would implementations of these functions > using ioctl()+TIOCGWINSZ?TIOCSWINSZ be welcome? An addition would seem reasonable. The proposed POSIX change appears to be compatible with what we have today. Please note that glibc patches of this size will need copyright assignment: <https://sourceware.org/glibc/wiki/Contribution%20checklist#FSF_copyright_assignment> If your contribution is potentially covered by your university, the FSF will likely ask for a copyright disclaimer or assignment from them as well. Unfortunately, I have no view into the FSF copyright assignment process, but I will be able to help you to get your patch ready for integration into glibc. ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: tcgetwinsize() and tcsetwinsize() 2020-12-13 9:16 ` Florian Weimer @ 2020-12-13 9:53 ` Soumendra Ganguly 0 siblings, 0 replies; 3+ messages in thread From: Soumendra Ganguly @ 2020-12-13 9:53 UTC (permalink / raw) To: Florian Weimer; +Cc: libc-help Sir, Thank you for the prompt reply. I will sign the copyright agreement; the university is not involved in this in any way. On 12/13/20, Florian Weimer <fw@deneb.enyo.de> wrote: > * Soumendra Ganguly via Libc-help: > >> https://urldefense.com/v3/__https://www.austingroupbugs.net/view.php?id=1151*c3856__;Iw!!KwNVnqRv!RnSGEQ2iUrHEx6eRkz_4mpgwbp-w4dc8VQXkzWh3BY9nLh_d9wbDxg-Y7Q5uJXb8$ >> , tcgetwinsize() >> and tcsetwinsize() for getting/setting tty winsize are going to appear >> in POSIX.1 issue 8. NetBSD already has them: >> >> 1. >> https://urldefense.com/v3/__http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/termios/tcgetwinsize.c?only_with_tag=MAIN__;!!KwNVnqRv!RnSGEQ2iUrHEx6eRkz_4mpgwbp-w4dc8VQXkzWh3BY9nLh_d9wbDxg-Y7Wzl4Tds$ >> >> 2. >> https://urldefense.com/v3/__http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/termios/tcsetwinsize.c?only_with_tag=MAIN__;!!KwNVnqRv!RnSGEQ2iUrHEx6eRkz_4mpgwbp-w4dc8VQXkzWh3BY9nLh_d9wbDxg-Y7dEzxq5f$ >> >> >> Also, musl-libc has them. Would implementations of these functions >> using ioctl()+TIOCGWINSZ?TIOCSWINSZ be welcome? > > An addition would seem reasonable. The proposed POSIX change appears > to be compatible with what we have today. > > Please note that glibc patches of this size will need copyright > assignment: > > > <https://urldefense.com/v3/__https://sourceware.org/glibc/wiki/Contribution*20checklist*FSF_copyright_assignment__;JSM!!KwNVnqRv!RnSGEQ2iUrHEx6eRkz_4mpgwbp-w4dc8VQXkzWh3BY9nLh_d9wbDxg-Y7Xft-lqA$ >> > > If your contribution is potentially covered by your university, the > FSF will likely ask for a copyright disclaimer or assignment from them > as well. > > Unfortunately, I have no view into the FSF copyright assignment > process, but I will be able to help you to get your patch ready for > integration into glibc. > ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-12-13 9:53 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2020-12-13 6:42 tcgetwinsize() and tcsetwinsize() Soumendra Ganguly 2020-12-13 9:16 ` Florian Weimer 2020-12-13 9:53 ` Soumendra Ganguly
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).