glob-hooks.c 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /* Copyright (C) 1991, 1992, 1993, 1994, 1995 Free Software Foundation, Inc.
  2. *
  3. * modified for uClibc by Erik Andersen <andersen@codepoet.org>
  4. *
  5. * This program is free software; you can redistribute it and/or modify it
  6. * under the terms of the GNU Library General Public License as published by
  7. * the Free Software Foundation; either version 2 of the License, or (at your
  8. * option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful, but WITHOUT
  11. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License
  13. * for more details.
  14. *
  15. * You should have received a copy of the GNU Library General Public License
  16. * along with this program; if not, write to the Free Software Foundation,
  17. * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  18. */
  19. #include <stdlib.h>
  20. #include <string.h>
  21. #include <errno.h>
  22. #include <sys/types.h>
  23. #include <sys/stat.h>
  24. #include <unistd.h>
  25. #include <dirent.h>
  26. #include <malloc.h>
  27. #include <fnmatch.h>
  28. #include <glob.h>
  29. attribute_hidden __ptr_t (*__glob_opendir_hook) __P ((const char *directory));
  30. attribute_hidden const char *(*__glob_readdir_hook) __P ((__ptr_t stream));
  31. attribute_hidden void (*__glob_closedir_hook) __P ((__ptr_t stream));