int readlink(path, buf, bufsiz) char *path, *buf; int bufsiz;
readlink() places the contents of the symbolic link referred to by path in the buffer buf which has size bufsiz. The contents of the link are not null terminated when returned.
readlink() returns the number of characters placed in the buffer on success. On failure, it returns -1 and sets errno to indicate the error.
readlink() will fail and the buffer will be unchanged if:
A pathname component is longer than {NAME_MAX} (see sysconf.2v while {_POSIX_NO_TRUNC} is in effect (see pathconf.2v
Created by unroff & hp-tools. © somebody (See intro for details). All Rights Reserved. Last modified 11/5/97