tcgetwinsize() and tcsetwinsize()

Soumendra Ganguly soumendra@tamu.edu
Sun Dec 13 09:53:15 GMT 2020


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.
>


More information about the Libc-help mailing list