mkpathat
int mkpathat(int, const char *);
return mkpathat(AT_FDCWD, dir);
if (mkpathat(fd, file) == -1) {