portfns.h 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  1. void accessdir(Iobuf*, Dentry*, int, int);
  2. void addfree(Device*, Off, Superb*);
  3. Alarm* alarm(int, void(*)(Alarm*, void*), void*);
  4. void alarminit(void);
  5. void arpstart(void);
  6. void arginit(void);
  7. char* authaname(Auth*);
  8. void authinit(void);
  9. void authfree(Auth*);
  10. Auth* authnew(char*, char*);
  11. int authread(File*, uchar*, int);
  12. int authuid(Auth*);
  13. char* authuname(Auth*);
  14. int authwrite(File*, uchar*, int);
  15. void cdiag(char*, int);
  16. int cnumb(void);
  17. Device* config(void);
  18. int rawchar(int);
  19. Off bufalloc(Device*, int, long, int);
  20. void buffree(Device*, Off, int, Truncstate *);
  21. int byuid(void*, void*);
  22. void cancel(Alarm*);
  23. int canlock(Lock*);
  24. int canqlock(QLock*);
  25. void cfsdump(Filsys*);
  26. Chan* chaninit(int, int, int);
  27. void cmd_check(int, char*[]);
  28. void cmd_users(int, char*[]);
  29. void cmd_newuser(int, char*[]);
  30. void cmd_netdb(int, char*[]);
  31. void cmd_passwd(int, char*[]);
  32. void cmd_printconf(int, char*[]);
  33. int checkname(char*);
  34. int checktag(Iobuf*, int, Off);
  35. int cksum(void*, int, int);
  36. int cksum0(int, int);
  37. void clock(Timet, ulong);
  38. void clockinit(void);
  39. void clockreload(Timet);
  40. void cyclstart(void);
  41. void dotrace(int);
  42. int conschar(void);
  43. void consinit(void (*)(char*, int));
  44. void consreset(void);
  45. void consstart(int);
  46. int (*consgetc)(void);
  47. void (*consputc)(int);
  48. void (*consputs)(char*, int);
  49. void consserve(void);
  50. int conslock(void);
  51. int con_attach(int, char*, char*);
  52. int con_clone(int, int);
  53. int con_create(int, char*, int, int, long, int);
  54. int con_clri(int);
  55. int con_fstat(int);
  56. int con_open(int, int);
  57. int con_read(int, char*, Off, int);
  58. int con_remove(int);
  59. void con_rintr(int);
  60. int con_session(void);
  61. int con_walk(int, char*);
  62. int con_write(int, char*, Off, int);
  63. int cwgrow(Device*, Superb*, int);
  64. int cwfree(Device*, Off);
  65. void cwinit(Device*);
  66. Off cwraddr(Device*);
  67. int cwread(Device*, Off, void*);
  68. void cwream(Device*);
  69. void cwrecover(Device*);
  70. Off cwsaddr(Device*);
  71. Devsize cwsize(Device*);
  72. int cwwrite(Device*, Off, void*);
  73. void datestr(char*, Timet);
  74. Off dbufread(Iobuf*, Dentry*, Off, Off, int);
  75. void delay(int);
  76. int devcmpr(Device*, Device*);
  77. void devream(Device*, int);
  78. void devrecover(Device*);
  79. void devinit(Device*);
  80. int devread(Device*, Off, void*);
  81. Devsize devsize(Device*);
  82. int devwrite(Device*, Off, void*);
  83. Iobuf* dnodebuf(Iobuf*, Dentry*, Off, int, int);
  84. Iobuf* dnodebuf1(Iobuf*, Dentry*, Off, int, int);
  85. void dofilter(Filter*, int, int, int);
  86. int doremove(File*, int);
  87. void dtrunc(Iobuf*, Dentry*, int);
  88. int dtrunclen(Iobuf *p, Dentry *, Off newsize, int uid);
  89. int dumpblock(Device*);
  90. void dumpregs(Ureg*);
  91. void dumpstack(User*);
  92. void exit(void);
  93. Float famd(Float, int, int, int);
  94. ulong fdf(Float, int);
  95. void fileinit(Chan*);
  96. File* filep(Chan*, ulong, int);
  97. void firmware(void);
  98. int fname(char*);
  99. int fpair(char*, char*);
  100. void formatinit(void);
  101. int fread(void*, int);
  102. void freealarm(Alarm*);
  103. void freefp(File*);
  104. void freewp(Wpath*);
  105. Filsys* fsstr(char*);
  106. Devsize fwormsize(Device*);
  107. void fwormream(Device*);
  108. void fworminit(Device*);
  109. int fwormread(Device*, Off, void*);
  110. int fwormwrite(Device*, Off, void*);
  111. char* getauthlist(void);
  112. Iobuf* getbuf(Device*, Off, int);
  113. void* getarg(void);
  114. char* getwd(char*, char*);
  115. int getc(void);
  116. ulong getcallerpc(void*);
  117. Dentry* getdir(Iobuf*, int);
  118. Chan* getlcp(uchar*, long);
  119. Off getraddr(Device*);
  120. void getstring(char*, int, int);
  121. void gotolabel(Label*);
  122. void hexdump(void*, int);
  123. int iaccess(File*, Dentry*, int);
  124. Off ibbpow(int);
  125. Off ibbpowsum(int);
  126. void* ialloc(ulong, int);
  127. void ilock(Lock*);
  128. void iunlock(Lock*);
  129. Off indfetch(Device*, Off, Off, Off , int, int, int);
  130. int ingroup(int, int);
  131. int inh(int, uchar*);
  132. void init0(void);
  133. void iobufinit(void);
  134. void* iobufmap(Iobuf*);
  135. void iobufunmap(Iobuf*);
  136. int iobufql(QLock*);
  137. int jukeread(Device*, Off, void*);
  138. int jukewrite(Device*, Off, void*);
  139. void jukeinit(Device*);
  140. void jukeream(Device*);
  141. void jukerecover(Device*);
  142. Off jukesaddr(Device*);
  143. Devsize jukesize(Device*);
  144. void kbdchar(int);
  145. void lights(int, int);
  146. void launchinit(void);
  147. void localconfinit(void);
  148. int leadgroup(int, int);
  149. void lock(Lock*);
  150. void lockinit(void);
  151. void machinit(void);
  152. Msgbuf* mballoc(int, Chan*, int);
  153. void mbinit(void);
  154. void mbfree(Msgbuf*);
  155. ulong meminit(void);
  156. Iobuf* movebuf(Iobuf*);
  157. void mcatinit(Device*);
  158. int mcatread(Device*, Off, void*);
  159. Devsize mcatsize(Device*);
  160. int mcatwrite(Device*, Off, void*);
  161. void mirrinit(Device*);
  162. int mirrread(Device*, Off, void*);
  163. Devsize mirrsize(Device*);
  164. int mirrwrite(Device*, Off, void*);
  165. void mkqid(Qid*, Dentry*, int);
  166. int mkqidcmp(Qid*, Dentry*);
  167. void mkqid9p1(Qid9p1*, Qid*);
  168. void mkqid9p2(Qid*, Qid9p1*, int);
  169. void mlevinit(Device*);
  170. int mlevread(Device*, Off, void*);
  171. Devsize mlevsize(Device*);
  172. int mlevwrite(Device*, Off, void*);
  173. int nametokey(char*, char*);
  174. Alarm* newalarm(void);
  175. File* newfp(void);
  176. User* newproc(void);
  177. Queue* newqueue(int);
  178. void newstart(void);
  179. Wpath* newwp(void);
  180. Auth* newauth(void);
  181. int nvrcheck(void);
  182. int nvread(int, void*, int);
  183. char* nvrgetconfig(void);
  184. int nvrsetconfig(char*);
  185. int nvwrite(int, void*, int);
  186. int walkto(char*);
  187. int no(void*);
  188. vlong number(char*, int, int);
  189. void online(void);
  190. void otherinit(void);
  191. void panic(char*, ...);
  192. void partinit(Device*);
  193. int partread(Device*, Off, void*);
  194. Devsize partsize(Device*);
  195. int partwrite(Device*, Off, void*);
  196. void prdate(void);
  197. void preread(Device*, Off);
  198. void prflush(void);
  199. int prime(vlong);
  200. void printinit(void);
  201. void procinit(void);
  202. void putbuf(Iobuf*);
  203. void putstrn(char *str, int n);
  204. Off qidpathgen(Device*);
  205. void qlock(QLock*);
  206. void qunlock(QLock*);
  207. void rahead(void);
  208. void ready(User*);
  209. void ream(Filsys*);
  210. void* recv(Queue*, int);
  211. void restartprint(Alarm*);
  212. void rlock(RWlock*);
  213. void rootream(Device*, Off);
  214. int roread(Device*, Off, void*);
  215. void rstate(Chan*, int);
  216. Timet rtc2sec(Rtc *);
  217. void runlock(RWlock*);
  218. User* runproc(void);
  219. void sched(void);
  220. void schedinit(void);
  221. int scsiio(Device*, int, uchar*, int, void*, int);
  222. void sec2rtc(Timet, Rtc *);
  223. void send(Queue*, void*);
  224. void serve(void);
  225. int serve9p1(Msgbuf*);
  226. int serve9p2(Msgbuf*);
  227. int setlabel(Label*);
  228. void settag(Iobuf*, int, long);
  229. void settime(Timet);
  230. void sleep(Rendez*, int(*)(void*), void*);
  231. void sntpinit(void);
  232. int splhi(void);
  233. int spllo(void);
  234. void splx(int);
  235. void startprint(void);
  236. int strtouid(char*);
  237. Off superaddr(Device*);
  238. void superream(Device*, Off);
  239. void swab(void*, int);
  240. void sync(char*);
  241. int syncblock(void);
  242. long syscall(Ureg*);
  243. void sysinit(void);
  244. int Tfmt(Fmt*);
  245. Timet time(void);
  246. Timet nextime(Timet, int, int);
  247. Tlock* tlocked(Iobuf*, Dentry*);
  248. void tsleep(Rendez*, int(*)(void*), void*, int);
  249. void touser(void);
  250. Timet toytime(void);
  251. Timet rtctime(void);
  252. void setrtc(Timet);
  253. void uidtostr(char*, int, int);
  254. Uid* uidpstr(char*);
  255. void unlock(Lock*);
  256. void userinit(void(*)(void), void*, char*);
  257. void vecinit(void);
  258. void wakeup(Rendez*);
  259. void wbflush(void);
  260. void wlock(RWlock*);
  261. void wormcopy(void);
  262. void wormprobe(void);
  263. void synccopy(void);
  264. void waitsec(int);
  265. long wormsearch(Device*, int, long, long);
  266. int wormread(Device*, Off, void*);
  267. Devsize wormsize(Device*);
  268. Devsize wormsizeside(Device *, int side);
  269. void wormsidestarts(Device *dev, int side, Sidestarts *stp);
  270. int wormwrite(Device*, Off, void*);
  271. void wreninit(Device*);
  272. int wrenread(Device*, Off, void*);
  273. Devsize wrensize(Device*);
  274. int wrenwrite(Device*, Off, void*);
  275. void wunlock(RWlock*);
  276. void cmd_exec(char*);
  277. void cmd_install(char*, char*, void (*)(int, char*[]));
  278. ulong flag_install(char*, char*);
  279. int chartoip(uchar *, char *);
  280. int isvalidip(uchar*);
  281. int nhgets(uchar*);
  282. long nhgetl(uchar*);
  283. void hnputs(uchar*, int);
  284. void hnputl(uchar*, long);