Lines Matching defs:gl
206 glob_t gl;
211 memset(&gl, 0, sizeof(gl));
212 gl.gl_opendir = vfs_opendir;
213 gl.gl_readdir = vfs_readdir;
214 gl.gl_closedir = vfs_closedir;
215 gl.gl_stat = vfs_stat;
216 gl.gl_lstat = vfs_lstat;
218 switch ((e = glob(p, GLOB_ALTDIRFUNC | flags, NULL, &gl))) {
238 for (i = 0; i < gl.gl_pathc; i++)
239 DPRINTF(("glob result %zu: %s\n", i, gl.gl_pathv[i]));
245 while ((name = va_arg(res, const char *)) != NULL && i < gl.gl_pathc) {
246 ATF_CHECK_STREQ(gl.gl_pathv[i], name);
250 ATF_CHECK_EQ_MSG(i, gl.gl_pathc,
251 "expected %zu results, got %zu", i, gl.gl_pathc);
255 globfree(&gl);