Open System Services Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)

glob(3) OSS Library Calls Reference Manual
GLOB_NOMATCH
Indicates that the value specified for the pattern parameter did not match any
existing pathname and the GLOB_NOCHECK flag was not set in the flags
parameter.
GLOB_NOSPACE
Indicates an attempt to allocate memory failed.
A call to the malloc( ) function failed and the function given by the errfunc
parameter was called with an errno value of [ENOMEM].
If, during the search, a directory is encountered that cannot be opened or read and the errfunc
parameter is not null, the glob( ) function calls the function indicated by errfunc with two param-
eters:
epath Specifies the pathname that failed.
eerrno Specifies the value of errno from the failure, as set by the opendir( ), readdir(),
or stat( ) function.
If errfunc is called and returns a nonzero value, or if the GLOB_ERR flag is set in the flags
parameter, the glob( ) function stops the scan and returns GLOB_ABORTED after setting the
pglob parameter to reflect the pathnames already found. If GLOB_ERR is not set and either
errfunc is null or errfunc returns 0 (zero), the error is ignored.
FILES
/usr/include/glob.h
Defines glob( ) macros, data types, and functions.
RELATED INFORMATION
Functions: fnmatch(3), globfree(3), opendir(3), readdir(3), stat(2), wordexp(3).
3164 Hewlett-Packard Company 527187-017