GLOB_ERR
pglob->gl_flags & GLOB_ERR)
pglob->gl_flags & GLOB_ERR)
(pglob->gl_flags & GLOB_ERR))
if (rv != 0 || pglob->gl_flags & GLOB_ERR) {
rv = glob("test/*", GLOB_ERR, errfunc, &g);
rv = glob_b("test/*", GLOB_ERR, errblk, &g);