fns.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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 aliassum(Dosdir*);
  10. void bootdump32(int, Dosboot32*);
  11. void bootdump(int, Dosboot*);
  12. void bootsecdump32(int fd, Xfs *xf, Dosboot32 *b32);
  13. int cfalloc(Xfile*);
  14. void chat(char*, ...);
  15. //#pragma varargck argpos chat 1
  16. int cistrcmp(const char*, const char*);
  17. int classifyname(char*);
  18. Xfile *clean(Xfile*);
  19. int32_t clust2sect(Dosbpb*, int32_t);
  20. void dirdump(void*);
  21. int dosfs(Xfs*);
  22. void dosptrreloc(Xfile *f, Dosptr *dp, uint32_t addr, uint32_t offset);
  23. int emptydir(Xfile*);
  24. int eqqid(Qid, Qid);
  25. int falloc(Xfs*);
  26. void ffree(Xfs *xf, int32_t start);
  27. int32_t fileaddr(Xfile*, int32_t, int);
  28. void fixname(char*);
  29. void getdir(Xfs*, Dir*, Dosdir*, int, int);
  30. int32_t getfat(Xfs*, int);
  31. int getfile(Xfile*);
  32. void getname(char*, Dosdir*);
  33. char *getnamesect(char*, char*, unsigned char*, int*, int*, int);
  34. int32_t getstart(Xfs *xf, Dosdir *d);
  35. Xfs *getxfs(char*, char*);
  36. int32_t gtime(Dosdir *d);
  37. void io(int srvfd);
  38. int iscontig(Xfs *xf, Dosdir *d);
  39. int isroot(uint32_t addr);
  40. int makecontig(Xfile*, int);
  41. void mkalias(char*, char*, int);
  42. int nameok(char*);
  43. void panic(char*, ...);
  44. //#pragma varargck argpos panic 1
  45. void putdir(Dosdir*, Dir*);
  46. void putfat(Xfs*, int, uint32_t);
  47. void putfile(Xfile*);
  48. int putint32_tname(Xfs *f, Dosptr *ndp, char *name, char sname[13]);
  49. void putname(char*, Dosdir*);
  50. void putstart(Xfs *xf, Dosdir *d, int32_t start);
  51. void puttime(Dosdir*, int32_t);
  52. void rattach(void);
  53. void rauth(void);
  54. void rclone(void);
  55. void rclunk(void);
  56. void rcreate(void);
  57. int32_t readdir(Xfile*, void*, int32_t, int32_t);
  58. int32_t readfile(Xfile*, void*, int32_t, int32_t);
  59. void refxfs(Xfs*, int);
  60. void rflush(void);
  61. void rootfile(Xfile*);
  62. void ropen(void);
  63. void rread(void);
  64. void rremove(void);
  65. void rstat(void);
  66. void rwalk(void);
  67. void rwrite(void);
  68. void rwstat(void);
  69. void rversion(void);
  70. int searchdir(Xfile*, char*, Dosptr*, int, int);
  71. int32_t sect2clust(Dosbpb*, int32_t);
  72. int truncfile(Xfile*, int32_t length);
  73. int utftorunes(Rune*, char*, int);
  74. int walkup(Xfile*, Dosptr*);
  75. int32_t writefile(Xfile*, void*, int32_t, int32_t);
  76. char *xerrstr(int);
  77. Xfile *xfile(int, int);
  78. int xfspurge(void);
  79. /* dossubs.c */
  80. int putlongname(Xfs *xf, Dosptr *ndp, char *name, char sname[13]);