glob64

Name

glob64 -- find pathnames matching a pattern (Large File Support)

Synopsis

#include <glob.h>

int glob64(const char *pattern, int flags, int (*errfunc) (const char *, int), glob64_t *pglob);

Description

glob64 searches for all the pathnames matching pattern according to the rules used by the shell. (See glob(7).) No tilde expansion or parameter substitution is done; if you want these, use wordexp(3).

The results of a glob64 call are stored in the structure pointed to by pglob, which is a glob64_t declared in glob.h and includes the following elements defined by POSIX.2 (more may be present as an extension):

glob64 is a 64-bit version of glob.

Return Value

On success, 0 is returned. Other possible returns are:

GLOB_NOSPACE

out of memory

GLOB_ABORTED

read error

GLOB_NOMATCH

no match found