glob.h 720 B

1234567891011121314151617181920212223242526
  1. /*
  2. * This file is part of the UCB release of Plan 9. It is subject to the license
  3. * terms in the LICENSE file found in the top-level directory of this
  4. * distribution and at http://akaros.cs.berkeley.edu/files/Plan9License. No
  5. * part of the UCB release of Plan 9, including this file, may be copied,
  6. * modified, propagated, or distributed except according to the terms contained
  7. * in the LICENSE file.
  8. */
  9. typedef struct Glob Glob;
  10. typedef struct Globlist Globlist;
  11. struct Glob{
  12. String *glob;
  13. Glob *next;
  14. };
  15. struct Globlist{
  16. Glob *first;
  17. Glob **l;
  18. };
  19. extern Globlist* glob(char*);
  20. extern void globadd(Globlist*, char*, char*);
  21. extern void globlistfree(Globlist *gl);
  22. extern char* globiter(Globlist *gl);