From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: TIOCSTI or workaround?
Date: Mon, 26 Jun 2017 08:51:00 -0000 [thread overview]
Message-ID: <20170626085148.GI6201@calimero.vinschen.de> (raw)
In-Reply-To: <33454913-b374-5fb7-6a5b-a2178fee89ff@starwolf.com>
[-- Attachment #1: Type: text/plain, Size: 999 bytes --]
On Jun 25 21:04, Greywolf wrote:
> On 2017-06-25 20:58, Greywolf wrote:
> > Greetings,
> >
> > 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.
> >
> > 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.
> >
> > Does there exist a way to successfully call
> >
> > ioctl(fd, TIOCSTI, (char *)cp)
> >
> > or is there a workaround?
>
> Addendum:
>
> I used the "standard" TIOCSTI definition of:
>
> #define TIOCSTI 0x5214
That can't work. ioctl codes are platform specific.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2017-06-26 8:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-26 3:58 Greywolf
2017-06-26 4:04 ` Greywolf
2017-06-26 8:51 ` Corinna Vinschen [this message]
2017-06-26 8:51 ` Corinna Vinschen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170626085148.GI6201@calimero.vinschen.de \
--to=corinna-cygwin@cygwin.com \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).