/* readlink.c */ #include #include int readlink(const char *path, char *buf, int bufsiz) { errno = EINVAL; /* "The named file is not a symbolic link" */ return -1; }