From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 55847 invoked by alias); 26 Jun 2017 08:51:54 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 55795 invoked by uid 89); 26 Jun 2017 08:51:53 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-101.9 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=death, died, H*c:application X-HELO: drew.franken.de Received: from mail-n.franken.de (HELO drew.franken.de) (193.175.24.27) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 26 Jun 2017 08:51:51 +0000 Received: from aqua.hirmke.de (aquarius.franken.de [193.175.24.89]) (Authenticated sender: aquarius) by mail-n.franken.de (Postfix) with ESMTPSA id 619A8721E280D for ; Mon, 26 Jun 2017 10:51:49 +0200 (CEST) Received: from calimero.vinschen.de (calimero.vinschen.de [192.168.129.6]) by aqua.hirmke.de (Postfix) with ESMTP id D0C515E0389 for ; Mon, 26 Jun 2017 10:51:48 +0200 (CEST) Received: by calimero.vinschen.de (Postfix, from userid 500) id CF2F2A805F0; Mon, 26 Jun 2017 10:51:48 +0200 (CEST) Date: Mon, 26 Jun 2017 08:51:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: TIOCSTI or workaround? Message-ID: <20170626085148.GI6201@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <16ace46e-4409-03b5-04b4-32974ae2aed3@starwolf.com> <33454913-b374-5fb7-6a5b-a2178fee89ff@starwolf.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="itqfrb9Qq3wY07cp" Content-Disposition: inline In-Reply-To: <33454913-b374-5fb7-6a5b-a2178fee89ff@starwolf.com> User-Agent: Mutt/1.8.0 (2017-02-23) X-SW-Source: 2017-06/txt/msg00337.txt.bz2 --itqfrb9Qq3wY07cp Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 983 On Jun 25 21:04, Greywolf wrote: > On 2017-06-25 20:58, Greywolf wrote: > > Greetings, > >=20 > > I have a program I've writ which takes input and types on to other > > terminals; however, it seems that under Cygwin, TIOCSTI on a file > > descriptor doesn't work according to plan -- I get "Invalid argument", > > but I don't know why. > >=20 > > Did a read on ioctl, and saw something about POSIX STREAMS. I thought > > that paradigm had died a mean nasty ugly death YEARS back, but I'm > > hoping that's entirely beside the point. > >=20 > > Does there exist a way to successfully call > >=20 > > ioctl(fd, TIOCSTI, (char *)cp) > >=20 > > or is there a workaround? >=20 > Addendum: >=20 > I used the "standard" TIOCSTI definition of: >=20 > #define TIOCSTI 0x5214 That can't work. ioctl codes are platform specific. Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --itqfrb9Qq3wY07cp Content-Type: application/pgp-signature; name="signature.asc" Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJZUMskAAoJEPU2Bp2uRE+giasP/2Nd6pkL61FZrv7n3v8tXCX9 KclGiGVyERdLZ3ywqnM0m0JfIz16k18Lko7p1VCzuzwXcD98QNQn9AyTGJ/xbKgD EOhqzfEAvxofIM/7ii6l8MZlEVPvL5ulDrMB+Fwm56HxNc8Cj9LuQ/rWMM4bFHEX H9/mvaIDOSVNECUanp4VtL4fSyZMyOLU/QZJNa6yWWBYbTV8xPdujRPKZdoq+m45 jzNRb9FVzefxcJ7h1khBt1bIpvg293c+yj5y9B41lFvYJjW9RWGG3d86CQpNHB8J WSsj/WoDFzowSf/4QSNK1wtasZhU8xhnRiPmsHb1nHu4C2oW0vlrR03ZPXuFwDPo 004scLxeKzYPKtpg2RJ81qNrCanIvFHTJ8vK9kPpNr1tPruzzIllljBsrF1Mtm7k kVA+YgxESPFgTFjw5YRi/jPclmUGHcNRM7ffjwB+qiCPI4n3/igE9Yr2KPIHn9pO lMAEkvpbsrxAIa5yMNPJYFisF1kNNY070D9LSH0d2Ri0RQOYHi00htYyjsiRioQ6 B4N5jKeGqTKyCTiCKyLqGDRJ6COrXdlVE7rLTKAVc9lXqOK0ikVlWxIRnuodURuf VrRUj53LuXVKJnGdTZRs9E3saUWOkZXdJxEH6B1kcv1aiar2inGyEATgXMu/nrnS orf5YlpeVrWPJxAX7AJt =dUD+ -----END PGP SIGNATURE----- --itqfrb9Qq3wY07cp--