Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!mcvax!ukc!its63b!simon From: simon@its63b.ed.ac.uk (ECSC68 S Brown CS) Newsgroups: net.unix Subject: Re: Porting UNIX Applications to the Mac Message-ID: <52@its63b.ed.ac.uk> Date: Sun, 21-Sep-86 11:49:39 EDT Article-I.D.: its63b.52 Posted: Sun Sep 21 11:49:39 1986 Date-Received: Mon, 22-Sep-86 01:46:06 EDT References: <1572@cbdkc1.UUCP> <1091@hoptoad.uucp> <15372@mordor.ARPA> <981@cit-vax.Caltech.Edu> <305@esl.UUCP> <3617@ism780c.UUCP> Reply-To: simon@its63b.ed.ac.uk (Simon Brown) Organization: I.T. School, Univ. of Edinburgh, U.K. Lines: 20 In article <3617@ism780c.UUCP> tim@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