foobar
struct foobar *f;
const char foobar[] = "foo/bar";
ents[0].d_namlen = sizeof(foobar);
strncpy(ents[0].d_name, foobar, ents[0].d_namlen);
EXPECT_EQ(sizeof(foobar), de->d_namlen);
EXPECT_EQ(0, strcmp(foobar, de->d_name));