Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site stolaf.UUCP Path: utzoo!linus!decvax!harpo!floyd!clyde!ihnp4!stolaf!vtl From: vtl@stolaf.UUCP (Victor Lee) Newsgroups: net.unix-wizards Subject: #include question answered Message-ID: <1255@stolaf.UUCP> Date: Fri, 4-Nov-83 18:37:35 EST Article-I.D.: stolaf.1255 Posted: Fri Nov 4 18:37:35 1983 Date-Received: Mon, 7-Nov-83 23:47:59 EST Organization: St. Olaf College, Northfield MN Lines: 41 It looks like the "" peculiarity only exists in 4.1BSD. The problem with the documentation (the reference to ) seems to have made it into 4.2BSD, though I have only checked one system. Thanks to Guy Harris, Geoff Collyer, Bill Shannon and Doug Gwyn for the "best" answers. Victor Lee -- St. Olaf College, Northfield MN -- ihnp4!stolaf!vtl -- decvax!stolaf!vtl The following is a summary of the responses: ------ Looking at a V7 "/usr", an S3 "/usr" and a 4.2BSD "/usr" we have online, there doesn't seem to be a "stat.h" in "/usr/include", only in "/usr/include/sys". I'd vote for '#include '. I suspect there was a typo in the V7 manual when it said , somebody at Berkeley took it seriously, and when it didn't work instead of correcting their code they put a copy of "stat.h" in "/usr/include". ------ is a hang-over from PWB (System I) where there was no /usr/include/sys; Berkeley has propagated this stupidity. There's no great mystery. ------ was a mistake that crept into the Berkeley system at some point. The correct file is . This has been fixed in 4.2bsd. A similar thing happened to several other files, most notably . ------ There should not be any /usr/include/stat.h. The correct location for the file is /usr/include/sys/stat.h (you must include /usr/include/sys/types.h before to properly define the data types). I have no idea when Berkeley screwed this up, but other UNIXes have in the right place. ------