#include <err.h>
#include <errno.h>
#include <fcntl.h>
#include <locale.h>
#include <libgen.h>
#include <limits.h>
#include <stdio.h>
char *p, *targetdir;
int ch, exitval;
setlocale(LC_ALL, "");
/*
* Test for the special case where the utility is called as
* "link", for which the functionality provided is greatly