Unix "script" utility continued... cygwin newbie need a porting expert's help..

Perry Dykes pdykes@lakes.com
Tue May 29 19:36:00 GMT 2001


Still working on making a cygwin "script" utility. First, the source,
found the "script.c" utility in the util-linux rpm. Now attempting to
port. Got the compilation down to 2 problems, the warning, I can
address, but the error gcc spits out at line 387 has me stumped. Does
anyone know if the the following TIOCSCTTY attribute is supported or has
an alternative value:
 (void) ioctl(slave, TIOCSCTTY, 0);
Here is the compilation output:
$ gcc -I../lib script.c -o script.exe
script.c: In function `main':
script.c:125: warning: assignment makes pointer from integer without a
cast
script.c: In function `getslave':
script.c:387: `TIOCSCTTY' undeclared (first use in this function)
script.c:387: (Each undeclared identifier is reported only once
script.c:387: for each function it appears in.)
The modified source is attached. In the source file, I have been
avoiding the PTY support, not sure cygwin has that. Advise or where to
look for info on this would be great.
Thanks for any help you can offer.
Regards,
Perry


More information about the Cygwin mailing list

AltStyle によって変換されたページ (->オリジナル) /