portfns.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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. void accessdir(Iobuf*, Dentry*, int);
  10. void authfree(File*);
  11. void addfree(Device, int32_t, Superb*);
  12. int32_t balloc(Device, int, int32_t);
  13. void bfree(Device, int32_t, int);
  14. int byname(void*, void*);
  15. int byuid(void*, void*);
  16. int checkname(char*);
  17. int checktag(Iobuf*, int, int32_t);
  18. void cmd_user(void);
  19. char* cname(char*);
  20. int con_attach(int, char*, char*);
  21. int con_clone(int, int);
  22. int con_create(int, char*, int, int, int32_t, int);
  23. int con_open(int, int);
  24. int con_path(int, char*);
  25. int con_read(int, char*, int32_t, int);
  26. int con_remove(int);
  27. int con_stat(int, char*);
  28. int con_swap(int, int);
  29. int con_clri(int);
  30. int con_session(void);
  31. int con_walk(int, char*);
  32. int con_write(int, char*, int32_t, int);
  33. int con_wstat(int, char*);
  34. void cprint(char*, ...);
  35. void datestr(char*, int32_t);
  36. void dbufread(Iobuf*, Dentry*, int32_t);
  37. Qid dentryqid(Dentry*);
  38. int devcmp(Device, Device);
  39. Iobuf* dnodebuf(Iobuf*, Dentry*, int32_t, int);
  40. Iobuf* dnodebuf1(Iobuf*, Dentry*, int32_t, int);
  41. void dofilter(Filter*);
  42. int doremove(File *, int);
  43. void dtrunc(Iobuf*, Dentry*);
  44. void exit(void);
  45. Float famd(Float, int, int, int);
  46. int fchar(void);
  47. uint32_t fdf(Float, int);
  48. void fileinit(Chan*);
  49. void sublockinit(void);
  50. File* filep(Chan*, int, int);
  51. int fname(char*);
  52. void formatinit(void);
  53. void freefp(File*);
  54. void freewp(Wpath*);
  55. Filsys* fsstr(char*);
  56. Iobuf* getbuf(Device, int32_t, int);
  57. Dentry* getdir(Iobuf*, int);
  58. int32_t getraddr(Device);
  59. Wpath* getwp(Wpath*);
  60. void hexdump(void*, int);
  61. int iaccess(File*, Dentry*, int);
  62. int32_t indfetch(Iobuf*, Dentry*, int32_t, int32_t , int, int);
  63. int ingroup(int, int);
  64. void iobufinit(void);
  65. int leadgroup(int, int);
  66. void mkchallenge(Chan*);
  67. void mkqid(Qid*, Dentry*, int);
  68. int mkqidcmp(Qid*, Dentry*);
  69. void mkqid9p1(Qid9p1*, Qid*);
  70. void mkqid9p2(Qid*, Qid9p1*, int);
  71. int netserve(char*);
  72. File* newfp(Chan*);
  73. Qid newqid(Device);
  74. void newstart(void);
  75. Wpath* newwp(void);
  76. int oconvD2M(Dentry*, void*);
  77. int oconvM2D(void*, Dentry*);
  78. int ofcallfmt(Fmt*);
  79. void panic(char*, ...);
  80. int prime(int32_t);
  81. void putbuf(Iobuf*);
  82. void putwp(Wpath*);
  83. int32_t qidpathgen(Device*);
  84. void rootream(Device, int32_t);
  85. void settag(Iobuf*, int, int32_t);
  86. void serve(Chan*);
  87. void serve9p1(Chan*, uint8_t*, int);
  88. void serve9p2(Chan*, uint8_t*, int);
  89. void strrand(void*, int);
  90. int strtouid(char*);
  91. int strtouid1(char*);
  92. int superok(Device, int32_t, int);
  93. void superream(Device, int32_t);
  94. void sync(char*);
  95. int syncblock(void);
  96. int Tfmt(Fmt*);
  97. Tlock* tlocked(Iobuf*, Dentry*);
  98. void uidtostr(char*,int);
  99. void uidtostr1(char*,int);
  100. #pragma varargck argpos cprint 1
  101. #pragma varargck argpos panic 1
  102. #pragma varargck type "C" Chan*
  103. #pragma varargck type "D" Device
  104. #pragma varargck type "A" Filta
  105. #pragma varargck type "G" int
  106. #pragma varargck type "T" int32_t
  107. #pragma varargck type "F" Fcall*
  108. typedef struct Oldfcall Oldfcall; /* needed for pragma */
  109. #pragma varargck type "O" Oldfcall*