fnmatch is located in:
suplib/src/libglob/fnmatch.c
patternmatching/src/libglob/fnmatch.c