glob(3c) needs to support non-POSIX options
The glob(3c) function in illumos (and Solaris) defines only the set of flags defined
by POSIX 1003.2. Other operating systems add a set of non-standard flags,
for example GLOB_LIMIT to instruct the glob function to limit its path search
before resources are exhausted.
This would have to be done in a manner that maintains binary compatibility, so that existing
applications continue to work. In non-POSIX mode, more flags are available, but the flag
defaults change. In addition, the size of the glob_t structure increases in non-POSIX mode.