Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site wjvax.UUCP Path: utzoo!linus!decvax!decwrl!sun!qubix!ios!wjvax!ron From: ron@wjvax.UUCP (Ron Christian) Newsgroups: net.news Subject: Re: whoami.h, standardisation of UNIX ve Message-ID: <129@wjvax.UUCP> Date: Mon, 16-Jul-84 16:13:23 EDT Article-I.D.: wjvax.129 Posted: Mon Jul 16 16:13:23 1984 Date-Received: Wed, 18-Jul-84 06:27:46 EDT References: <448@turtlevax.UUCP> Organization: Watkins Johnson, San Jose, Calif. Lines: 25 ************* === REFERENCED ARTICLE =================================== From: donn@hp-dcd.UUCP Newsgroups: net.news ... If you don't have source, then whoami.h doesn't work! ... ========================================================== Ken Turkowski @ CADLINC, Palo Alto, CA: Hah! One of the news (I think) programs opens up the whoami.h file AT EXECUTE TIME to determine what the site name is. So whoami.h can work with binaries. ************** Right you are! In uname.c: * However, we do it by reading the file /usr/include/whoami.h. #define HDRFILE "/usr/include/whoami.h" fd = fopen(HDRFILE, "r"); etc... How 'bout that! -- "Trivia is important." Ron Christian Watkins-Johnson Co. San Jose, Calif. (...ios!wjvax!ron)