1 extern void globfree(glob_t *buf);
3 extern int glob(char *pat, int flags, void *err, glob_t *buf);
4 function psi\glob(string $pattern, int $flags, array &$glob = NULL) : int {
5 let pat = strval($pattern);
6 let flags = intval($flags);
8 let buf = arrval($glob);
10 set $glob = to_array(*buf,
15 to_array(**gl_pathv, gl_pathc, gl_offs, to_string(*gl_pathv))