This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: TIOCSTI or workaround?


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: signature.asc
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]