[net.unix] help with readlink

john@sol1.UUCP (john) (01/24/85)

Could someone fill me in as to what the readlink routine does?
And possibly pointers to replacing it with something available on SysIII.

Thanks in advance......

[ Take what I say in a different way ]
[        and it's easy to say        ]
[     that this is all confusion     ]

	John Korsmeyer  @  THE SOLUTION

	EMAIL:  akgua!sol1!john

guy@rlgvax.UUCP (Guy Harris) (01/29/85)

> 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