From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 104422 invoked by alias); 31 Dec 2019 16:45:34 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 104374 invoked by uid 89); 31 Dec 2019 16:45:31 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_SOFTFAIL autolearn=no version=3.3.1 spammy=H*f:sk:87a778m, H*r:4.92.3, HX-Envelope-From:sk:samuel. X-HELO: hera.aquilenet.fr Date: Tue, 31 Dec 2019 16:45:00 -0000 From: Samuel Thibault To: Florian Weimer Cc: libc-alpha@sourceware.org Subject: Re: posix_openpt vs getpt?? Message-ID: <20191231164525.ps7mpnh3p4huxlu3@function> References: <20191230213550.icqt2er7dwnxcrrb@function> <87a778mxta.fsf@mid.deneb.enyo.de> <20191231163803.rbcctlhvyhwdrxqv@function> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191231163803.rbcctlhvyhwdrxqv@function> User-Agent: NeoMutt/20170609 (1.8.3) X-SW-Source: 2019-12/txt/msg00813.txt.bz2 One thing I'm unsure of: the Linux manpage says It is equivalent to open("/dev/ptmx", O_RDWR | O_NOCTTY); But the Linux implementation is int fd = __posix_openpt (O_RDWR); Is getpt supposed to set the controlling tty or not? Since the Linux behavior has been not to set O_NOCTTY since its introduction in 1998, I guess applications assumes !O_NOCTTY and it's the manpage which needs to be fixed? Samuel