Porting UNIX Applications to the Mac
ECSC68 S Brown CS
simon at its63b.ed.ac.uk
Mon Sep 22 01:49:39 AEST 1986
In article <3617 at ism780c.UUCP> tim at ism780c.UUCP (Tim Smith) writes:
>> I use "cat | cc -O " myself.
>On what UNIXs does this work? Most cc's that I have seen will not
>take stdin. To get the desired results, I have always had to do this:
>
> ln /dev/tty /dev/tty.c
> cc -O /dev/tty.c # damn thing wants a ".c" file!
>
Or even better with symbolic links!
Or perhaps, if you've got System V, you could use named pipes? :-)
/etc/mknod fifo.c p
cc -O fifo.c &
cat > fifo.c
--
Simon Brown, Dept. of Computer Science, University of Edinburgh.
...!{decvax,seismo,ihnp4}!mcvax!ukc!cstvax(!its63b?)!simon
More information about the Comp.unix
mailing list