Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site ucbvax.BERKELEY.EDU Path: utzoo!decvax!bellcore!petrus!sabre!zeta!epsilon!gamma!ulysses!mhuxr!mhuxt!houxm!ihnp4!ucbvax!apollo From: apollo@ucbvax.UUCP Newsgroups: mod.computers.apollo Subject: Re: Bug in "struct stat" Message-ID: <8512310442.AA24634@uw-beaver.arpa> Date: Mon, 30-Dec-85 12:15:12 EST Article-I.D.: uw-beave.8512310442.AA24634 Posted: Mon Dec 30 12:15:12 1985 Date-Received: Thu, 2-Jan-86 22:18:10 EST Sender: daemon@ucbvax.BERKELEY.EDU Organization: The ARPA Internet Lines: 16 Approved: apollo@yale-comix.arpa A warning, though I suspect its been discovered many times. The header file that we got with Aegis SR9 CC is wrong. stat(3) (BSD4.2 version) returns a few more words of data than the header file leaves room for. Nasty. This does seem to be a point of confusion. The problem here is that the sysV and bsd4.2 versions of stat() return two different structs. In general, you have to use the right set of include files when you compile your program. This will happen automatically unless your /usr/include has been corrupted. In your case, I suspect that you installed domain/ix first, then later installed the C product, which wiped out your include files. The correct order is C first, then domain/ix. This ought to be spelled out in the release notes. -------