linkfile
char *linkfile, *p, *realdir, *start, *usefile;
linkfile = mandoc_strdup(infile);
start = usefile = linkfile;
usefile = linkfile;
p = strchr(linkfile, '\0');
if ((realdir = realpath(linkfile, NULL)) == NULL) {
free(linkfile);
usefile = linkfile;
free(linkfile);
if (linkfile(min_home, home, file, flags) != 0) {
static int linkfile(const char *min_home, const char *home, const char *target,