dochdir
if (dochdir(name) == -1)
if (dochdir(chdname) == -1)
dochdir(arcn->pat->chdname);
int dochdir(const char *);
thechdir = dochdir;