From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by sourceware.org (Postfix) with ESMTPS id D27CA3858D29 for ; Sun, 13 Dec 2020 09:53:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org D27CA3858D29 Received: by mail-lf1-x131.google.com with SMTP id m25so22623129lfc.11 for ; Sun, 13 Dec 2020 01:53:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=DxIvtsnC68YUSiNRHf5ZCAKxGyaXV3+gtpM0pkSRkSU=; b=pnLKlyTFz0yUAbyYhqdCwPPt/8Fxhm/dglY3C3jiWQruCztBfaOLnFv/9cG2rBiFBs 2cu0lalwmN0pAwCP6SkR0QgIUaEQMRVeou5qVwyetDQi7dAA62prZlJW1oKsO4+Yzgv1 vNFVPhxOn2vmcwX7n8m/5/Je5UV8DSzAIIkYIU3YnG13Sj4vq4+Ds7y/+Gj2KcDjC7DS wOKpU/3/tWQEY7Rh5bApW5HQO9+lcloO0gyPl0RBVGvOeT/oZjcDYI2DAxg5jxWGE2tS FvNtP2hgNJX26yNYBOgucjj9Y0WN5dm4vMaZaBAmfxOwyHOF4x6nE297qtgpVgYLUWzM yc1g== X-Gm-Message-State: AOAM5307G+5kFw9Kk/t+MdPJj5R1VLmRDrmQKOMWgehD7WdxCLIR+afY +0osJpMM5S9zEc1kR/aK3FLXw//N4xizf/BeYYy56eKN7eI= X-Google-Smtp-Source: ABdhPJx88etDqkpwPfQzBcCgGdMmubWs7rgVjyo0pdQoG19k3aFME9TCmKyIdkhlj7N8UTjG+LSgX5GMg2YBYNuD6rA= X-Received: by 2002:a19:4b0a:: with SMTP id y10mr7139905lfa.570.1607853196088; Sun, 13 Dec 2020 01:53:16 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a05:6512:2191:0:0:0:0 with HTTP; Sun, 13 Dec 2020 01:53:15 -0800 (PST) In-Reply-To: <87ft4aqd67.fsf@mid.deneb.enyo.de> References: <87ft4aqd67.fsf@mid.deneb.enyo.de> From: Soumendra Ganguly Date: Sun, 13 Dec 2020 03:53:15 -0600 Message-ID: Subject: Re: tcgetwinsize() and tcsetwinsize() To: Florian Weimer Cc: libc-help Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-help@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-help mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Dec 2020 09:53:21 -0000 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 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: > > > > > > 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. >