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