From: cgf AT bbc DOT com (Chris Faylor) Subject: Re: ioctl calls with latest coolview 13 Nov 1997 21:23:06 -0800 Message-ID: References: <07551A47EAD6D01186430060B025C6F40A6D4A AT ntserver DOT kiwiplan2 DOT co DOT nz> Reply-To: cgf AT bbc DOT com To: gnu-win32 AT cygnus DOT com In article <07551A47EAD6D01186430060B025C6F40A6D4A AT ntserver DOT kiwiplan2 DOT co DOT nz>, Ian Collins wrote: >I had a little test program that uses ioctl to set a terminal into raw >mode. It has always worked fine until I installed the latest coolview >from Sergeys page. It now calls the TCGETA fail (see below). After >backing off to a previous version of coolview, it again works ok. > >Has anyone seen this behaviour? Any ideas? > >The C code is thus, (I know you don't need all the includes. It was >taken from a larger program), > >#include >#include >#include >#include >#include >#include >#include >static struct termio tbufsave; >main() >{ > struct termio tbuf; > > if (ioctl(0, TCGETA, &tbuf) == -1){ > perror("kwrawmd: ioctl (TCGETA) fail "); > exit(1); > } > else { > printf("kwrawmd ok\n"); > } > tbufsave = tbuf; >} Two questions: 1) Are you setting CYGWIN_TTY=1? 2) What's the error reported by perror? -- http://www.bbc.com/ cgf AT bbc DOT com "Strange how unreal VMS=>UNIX Solutions Boston Business Computing the real can be." - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".