mkpath
if (mkpath(dirptr) < 0)
int mkpath(char *);
if (mkpath(tmpbuf) != 0)
extern int mkpath(char *);