Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site rlgvax.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxb!mhuxn!mhuxm!mhuxj!houxm!whuxlm!akgua!mcnc!decvax!genrad!panda!talcott!harvard!seismo!rlgvax!guy From: guy@rlgvax.UUCP (Guy Harris) Newsgroups: net.unix Subject: Re: help with readlink Message-ID: <399@rlgvax.UUCP> Date: Mon, 28-Jan-85 18:40:42 EST Article-I.D.: rlgvax.399 Posted: Mon Jan 28 18:40:42 1985 Date-Received: Sat, 2-Feb-85 11:07:01 EST References: <237@sol1.UUCP> Organization: CCI Office Systems Group, Reston, VA Lines: 14 > Could someone fill me in as to what the readlink routine does? > And possibly pointers to replacing it with something available on SysIII. It reads symbolic links. Symbolic links aren't available on (vanilla) System III, so it can't be replaced. Either the program you're working on only works on systems with symbolic links, in which case you're out of luck, or it does something like "stat"ing a file and if the file is of type S_IFLNK does a "readlink" on it, in which case you can rip that code out because 1) it won't compile on S3 because S_IFLNK isn't defined and 2) that code won't get executed anyway because there won't *be* any inodes of type S_IFLNK. Guy Harris {seismo,ihnp4,allegra}!rlgvax!guy