TIOCSTI or workaround?

Greywolf greywolf@starwolf.com
Mon Jun 26 03:58:00 GMT 2017


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?
-- 
				--*greywolf;

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list