portfns.h 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. void accessdir(Iobuf*, Dentry*, int, int);
  2. void addfree(Device*, Off, Superb*);
  3. void arpstart(void);
  4. void arginit(void);
  5. char* authaname(Auth*);
  6. void authinit(void);
  7. void authfree(Auth*);
  8. Auth* authnew(char*, char*);
  9. int authread(File*, uchar*, int);
  10. int authuid(Auth*);
  11. char* authuname(Auth*);
  12. int authwrite(File*, uchar*, int);
  13. void cdiag(char*, int);
  14. int cnumb(void);
  15. Device* config(void);
  16. int rawchar(int);
  17. Off bufalloc(Device*, int, long, int);
  18. void buffree(Device*, Off, int, Truncstate *);
  19. int byuid(void*, void*);
  20. int canlock(Lock*);
  21. int canqlock(QLock*);
  22. void cfsdump(Filsys*);
  23. void chanhangup(Chan *cp, char *msg, int dolock);
  24. Chan* fs_chaninit(int, int, int);
  25. void cmd_check(int, char*[]);
  26. void cmd_users(int, char*[]);
  27. void cmd_newuser(int, char*[]);
  28. void cmd_netdb(int, char*[]);
  29. void cmd_printconf(int, char*[]);
  30. void cmd_wormreset(int, char *[]);
  31. int checkname(char*);
  32. int checktag(Iobuf*, int, Off);
  33. int cksum(void*, int, int);
  34. int cksum0(int, int);
  35. void cyclstart(void);
  36. void dotrace(int);
  37. int conschar(void);
  38. void consinit(void (*)(char*, int));
  39. void consstart(int);
  40. void consserve(void);
  41. int conslock(void);
  42. int con_attach(int, char*, char*);
  43. int con_clone(int, int);
  44. int con_create(int, char*, int, int, long, int);
  45. int con_clri(int);
  46. int con_fstat(int);
  47. int con_open(int, int);
  48. int con_read(int, char*, Off, int);
  49. int con_remove(int);
  50. int con_session(void);
  51. int con_walk(int, char*);
  52. int con_write(int, char*, Off, int);
  53. int cwgrow(Device*, Superb*, int);
  54. int cwfree(Device*, Off);
  55. void cwinit(Device*);
  56. Off cwraddr(Device*);
  57. int cwread(Device*, Off, void*);
  58. void cwream(Device*);
  59. void cwrecover(Device*);
  60. Off cwsaddr(Device*);
  61. Devsize cwsize(Device*);
  62. int cwwrite(Device*, Off, void*);
  63. char* dataof(char *file);
  64. void datestr(char*, Timet);
  65. Off dbufread(Iobuf*, Dentry*, Off, Off, int);
  66. void delay(int);
  67. Filsys* dev2fs(Device *dev);
  68. int devcmpr(Device*, Device*);
  69. void devream(Device*, int);
  70. void devrecover(Device*);
  71. void devinit(Device*);
  72. int devread(Device*, Off, void*);
  73. Devsize devsize(Device*);
  74. int devwrite(Device*, Off, void*);
  75. Iobuf* dnodebuf(Iobuf*, Dentry*, Off, int, int);
  76. Iobuf* dnodebuf1(Iobuf*, Dentry*, Off, int, int);
  77. int doremove(File*, int);
  78. void dtrunc(Iobuf*, Dentry*, int);
  79. int dtrunclen(Iobuf *p, Dentry *, Off newsize, int uid);
  80. int dumpblock(Device*);
  81. void netinit(void);
  82. void netstart(void);
  83. void exit(void);
  84. void fileinit(Chan*);
  85. File* filep(Chan*, ulong, int);
  86. void firmware(void);
  87. int fname(char*);
  88. int fpair(char*, char*);
  89. void formatinit(void);
  90. int fread(void*, int);
  91. void freefp(File*);
  92. void freewp(Wpath*);
  93. Filsys* fsstr(char*);
  94. Devsize fwormsize(Device*);
  95. void fwormream(Device*);
  96. void fworminit(Device*);
  97. int fwormread(Device*, Off, void*);
  98. int fwormwrite(Device*, Off, void*);
  99. char* getauthlist(void);
  100. Iobuf* getbuf(Device*, Off, int);
  101. char* getwrd(char*, char*);
  102. int getc(void);
  103. Dentry* getdir(Iobuf*, int);
  104. Chan* getlcp(uchar*, long);
  105. Off getraddr(Device*);
  106. void hexdump(void*, int);
  107. int iaccess(File*, Dentry*, int);
  108. void* ialloc(ulong, int);
  109. Off ibbpow(int);
  110. Off ibbpowsum(int);
  111. Device* iconfig(char *);
  112. Off indfetch(Device*, Off, Off, Off , int, int, int);
  113. int ingroup(int, int);
  114. int inh(int, uchar*);
  115. Devsize inqsize(char *file);
  116. void iobufinit(void);
  117. void* iobufmap(Iobuf*);
  118. void iobufunmap(Iobuf*);
  119. int iobufql(QLock*);
  120. int jukeread(Device*, Off, void*);
  121. int jukewrite(Device*, Off, void*);
  122. void jukeinit(Device*);
  123. void jukeream(Device*);
  124. void jukerecover(Device*);
  125. Off jukesaddr(Device*);
  126. Devsize jukesize(Device*);
  127. void kbdchar(int);
  128. void lights(int, int);
  129. void launchinit(void);
  130. void localconfinit(void);
  131. int leadgroup(int, int);
  132. void lock(Lock*);
  133. void lockinit(void);
  134. void machinit(void);
  135. Msgbuf* mballoc(int, Chan*, int);
  136. void mbinit(void);
  137. void mbfree(Msgbuf*);
  138. ulong meminit(void);
  139. Iobuf* movebuf(Iobuf*);
  140. void mcatinit(Device*);
  141. int mcatread(Device*, Off, void*);
  142. Devsize mcatsize(Device*);
  143. int mcatwrite(Device*, Off, void*);
  144. void mirrinit(Device*);
  145. int mirrread(Device*, Off, void*);
  146. Devsize mirrsize(Device*);
  147. int mirrwrite(Device*, Off, void*);
  148. void mkqid(Qid*, Dentry*, int);
  149. int mkqidcmp(Qid*, Dentry*);
  150. void mkqid9p1(Qid9p1*, Qid*);
  151. void mkqid9p2(Qid*, Qid9p1*, int);
  152. void mlevinit(Device*);
  153. int mlevread(Device*, Off, void*);
  154. Devsize mlevsize(Device*);
  155. int mlevwrite(Device*, Off, void*);
  156. int nametokey(char*, char*);
  157. File* newfp(void);
  158. void newscsi(Device *d, Scsi *sc);
  159. Queue* newqueue(int, char*);
  160. void newstart(void);
  161. Wpath* newwp(void);
  162. Auth* newauth(void);
  163. int nvrcheck(void);
  164. char* nvrgetconfig(void);
  165. int nvrsetconfig(char*);
  166. int walkto(char*);
  167. vlong number(char*, int, int);
  168. int okay(char *quest);
  169. void online(void);
  170. void panic(char*, ...);
  171. void partinit(Device*);
  172. int partread(Device*, Off, void*);
  173. Devsize partsize(Device*);
  174. int partwrite(Device*, Off, void*);
  175. void prdate(void);
  176. void preread(Device*, Off);
  177. void prflush(void);
  178. int prime(vlong);
  179. void printinit(void);
  180. void procinit(void);
  181. void procsetname(char *fmt, ...);
  182. void putbuf(Iobuf*);
  183. void putstrn(char *str, int n);
  184. Off qidpathgen(Device*);
  185. void qlock(QLock*);
  186. void* querychanger(Device *);
  187. void qunlock(QLock*);
  188. void rahead(void *);
  189. void ream(Filsys*);
  190. void* fs_recv(Queue*, int);
  191. void rootream(Device*, Off);
  192. int roread(Device*, Off, void*);
  193. void rstate(Chan*, int);
  194. Timet rtc2sec(Rtc *);
  195. void sched(void);
  196. void schedinit(void);
  197. int scsiio(Device*, int, uchar*, int, void*, int);
  198. void scsiinit(void);
  199. Off scsiread(int, void*, long);
  200. Devsize scsiseek(int, Devsize);
  201. Off scsiwrite(int, void*, long);
  202. char* sdof(Device*);
  203. void sec2rtc(Timet, Rtc *);
  204. void fs_send(Queue*, void*);
  205. void serve(void *);
  206. int serve9p1(Msgbuf*);
  207. int serve9p2(Msgbuf*);
  208. void settag(Iobuf*, int, long);
  209. void settime(Timet);
  210. void startprint(void);
  211. int strtouid(char*);
  212. Off superaddr(Device*);
  213. void superream(Device*, Off);
  214. void swab(void*, int);
  215. void swab2(void *c);
  216. void swab8(void *c);
  217. void sync(char*);
  218. int syncblock(void);
  219. void sysinit(void);
  220. int testconfig(char *s);
  221. int Tfmt(Fmt*);
  222. Timet nextime(Timet, int, int);
  223. Tlock* tlocked(Iobuf*, Dentry*);
  224. Timet toytime(void);
  225. Timet rtctime(void);
  226. void setrtc(Timet);
  227. void uidtostr(char*, int, int);
  228. Uid* uidpstr(char*);
  229. void unlock(Lock*);
  230. void newproc(void(*)(void *), void*, char*);
  231. void wormcopy(void *);
  232. void wormprobe(void);
  233. void synccopy(void);
  234. long wormsearch(Device*, int, long, long);
  235. int wormread(Device*, Off, void*);
  236. Devsize wormsize(Device*);
  237. Devsize wormsizeside(Device *, int side);
  238. void wormsidestarts(Device *dev, int side, Sidestarts *stp);
  239. int wormwrite(Device*, Off, void*);
  240. void wreninit(Device*);
  241. int wrenread(Device*, Off, void*);
  242. Devsize wrensize(Device*);
  243. int wrenwrite(Device*, Off, void*);
  244. void cmd_exec(char*);
  245. void cmd_install(char*, char*, void (*)(int, char*[]));
  246. ulong flag_install(char*, char*);