1 function psi\glob(string $pattern, int $flags, array &$glob = NULL) : int {
2 let path = strval($pattern);
3 let flags = intval($flags);
5 let buf = &arrval($glob);
7 set $glob = to_array(*buf,
12 to_array(gl_pathv, gl_pathc + gl_offs, to_string(gl_pathv))