Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!van-bc!ubc-cs!alberta!herald.usask.ca!ccu.umanitoba.ca!bonnie.concordia.ca!uunet!email!vmars!hp From: hp@vmars.tuwien.ac.at (Peter Holzer) Newsgroups: comp.os.minix Subject: Re: Help: compiling PC Simulator Message-ID: <1991May16.162252.29285@email.tuwien.ac.at> Date: 16 May 91 16:22:52 GMT References: <53644@nigel.ee.udel.edu> Sender: news@email.tuwien.ac.at Distribution: "world" Organization: Technical University of Vienna Lines: 28 Nntp-Posting-Host: gipsy.vmars.tuwien.ac.at EOAHMAD%NTIVAX.BITNET@cunyvm.cuny.edu writes: >I tried compiling PC simulator on an Ultrix OS on DEC MIPS R3000 workstations. >There are missing files in the include/sys directories, >fcntl.h, stream.h,stropts.h >I managed to find fcntl.h in include subdirectory. >I hope someone could explain to me the pursoses of these files so that I could >find a replacement or equivalents in other compilers. >Why can't C compilers use the same include files or at least the source codes >for the include files which are not common be included in portable sourcd >distributions? Because some header files are used for features of a certain OS (streams are specific to System V Unix) that other OS's (e.g. BSD/Ultrix) don't have. Supplying the header files without the functions is meaningless. Ad fcntl.h: Ultrix has many many include files both in /usr/include and /usr/include/sys to be compatible to both BSD and SysV. It looks like the developers forgot about fcntl.h (Or some bozo rm'ed the symlink on the disk the distribution tapes where made from :-) -- | _ | Peter J. Holzer | Think of it | | |_|_) | Technical University Vienna | as evolution | | | | | Dept. for Real-Time Systems | in action! | | __/ | hp@vmars.tuwien.ac.at | Tony Rand |