/* Copyright (c) 2001-2009 by SoftIntegration, Inc. All Rights Reserved */
#include <glob.h>
int glob(const char *pattern, int flags, int (*errfunc)(const char * epath, int eerrno), glob_t *pglob) {
  void *fptr;
  int retval;

  fptr = dlsym(_ChGlob_handle, "glob_chdl");
  if(fptr == NULL)  {
     printf("Error: %s(): dlsym(): %s\n", __func__, dlerror());
     return -1;
  }
  dlrunfun(fptr, &retval, glob, pattern, flags, errfunc, pglob);
  return retval;
}
