fns.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. int mbunpack(MetaBlock *mb, uchar *p, int n);
  10. void mbinsert(MetaBlock *mb, int i, MetaEntry*);
  11. void mbdelete(MetaBlock *mb, int i, MetaEntry*);
  12. void mbpack(MetaBlock *mb);
  13. uchar *mballoc(MetaBlock *mb, int n);
  14. void mbinit(MetaBlock *mb, uchar *p, int n, int entries);
  15. int mbsearch(MetaBlock*, char*, int*, MetaEntry*);
  16. int mbresize(MetaBlock*, MetaEntry*, int);
  17. int meunpack(MetaEntry*, MetaBlock *mb, int i);
  18. int mecmp(MetaEntry*, char *s);
  19. int mecmpnew(MetaEntry*, char *s);
  20. enum {
  21. VacDirVersion = 8,
  22. FossilDirVersion = 9,
  23. };
  24. int vdsize(VacDir *dir, int);
  25. int vdunpack(VacDir *dir, MetaEntry*);
  26. void vdpack(VacDir *dir, MetaEntry*, int);
  27. VacFile *_vacfileroot(VacFs *fs, VtFile *file);
  28. int _vacfsnextqid(VacFs *fs, uvlong *qid);
  29. void vacfsjumpqid(VacFs*, uvlong step);
  30. Reprog* glob2regexp(char*);
  31. void loadexcludefile(char*);
  32. int includefile(char*);
  33. void excludepattern(char*);