X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=NUn78zPqYOkXQUI/PBSR1xynBu707w5liJoqdyLrx9QazvcDrSa1o zYC8TDYTAQ9p8lh6VNEEShj61UrBNGvhEriK1ojBtD5DIuiyOF7ChEUKos+LhhKa wiEbvSk79yOuCweDbVzzsoBYl6c5nWd8f27Z8h2+pEf5cx2WAB+cbU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=nKuS1mwTId5lcY+rGSNFnWEi05w=; b=UA5clGuZqOiQY7u2uvUkzhwNS/Wy 4ZiypzT0VNBpGF9BTNbp84PJyhT+xRjYb+F8UuT1a3oGMvtKiwc4+mRgCDK0kKfz r3nBlwu1a976G8KfO+SvCJEj1KMkj13WLhsHSV38js06HNpScnBYelNfS9z7m3JT LK1cY+D0+451iSs= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 Date: Mon, 26 Jun 2017 10:51:48 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: TIOCSTI or workaround? Message-ID: <20170626085148.GI6201@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <16ace46e-4409-03b5-04b4-32974ae2aed3 AT starwolf DOT com> <33454913-b374-5fb7-6a5b-a2178fee89ff AT starwolf DOT 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) --itqfrb9Qq3wY07cp Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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" -----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--