fns.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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 argopt(int c);
  10. int auth2unix(Auth*, Authunix*);
  11. int authhostowner(Session*);
  12. int canlock(Lock*);
  13. void chat(char*, ...);
  14. void chatsrv(char*);
  15. int checkreply(Session*, char*);
  16. int checkunixmap(Unixmap*);
  17. void clog(char*, ...);
  18. int clunkfid(Session*, Fid*);
  19. int convM2sattr(void*, Sattr*);
  20. int dir2fattr(Unixidmap*, Dir*, void*);
  21. int error(Rpccall*, int);
  22. void fidtimer(Session*, int32_t);
  23. int garbage(Rpccall*, char*);
  24. int getdom(uint32_t, char*, int);
  25. int getticket(Session*, char*);
  26. char* id2name(Unixid**, int);
  27. void idprint(int, Unixid*);
  28. void* listalloc(int32_t, int32_t);
  29. void lock(Lock*);
  30. void mnttimer(int32_t);
  31. int name2id(Unixid**, char*);
  32. Fid* newfid(Session*);
  33. int32_t niwrite(int, void*, int32_t);
  34. Unixidmap* pair2idmap(char*, uint32_t);
  35. void panic(char*, ...);
  36. void putfid(Session*, Fid*);
  37. int readunixidmaps(char*);
  38. Unixid* readunixids(char*, int);
  39. Xfid* rpc2xfid(Rpccall*, Dir*);
  40. int rpcM2S(void*, Rpccall*, int);
  41. int rpcS2M(Rpccall*, int, void*);
  42. void rpcprint(int, Rpccall*);
  43. void server(int argc, char *argv[], int, Progmap*);
  44. void setfid(Session*, Fid*);
  45. Xfid* setuser(Xfile*, char*);
  46. void showauth(Auth*);
  47. void srvinit(int, char*, char*);
  48. char* strfind(char*);
  49. int string2S(void*, String*);
  50. int strparse(char*, int, char**);
  51. void strprint(int);
  52. char* strstore(char*);
  53. Waitmsg *system(char*, char**);
  54. Waitmsg *systeml(char*, ...);
  55. void unlock(Lock*);
  56. int xfattach(Session*, char*, int);
  57. Xfid* xfauth(Xfile*, String*);
  58. void xfauthclose(Xfid*);
  59. int32_t xfauthread(Xfid*, int32_t, unsigned char*, int32_t);
  60. int xfauthremove(Xfid*, char*);
  61. int32_t xfauthwrite(Xfid*, int32_t, unsigned char*, int32_t);
  62. void xfclear(Xfid*);
  63. void xfclose(Xfid*);
  64. Xfid* xfid(char*, Xfile*, int);
  65. Xfile* xfile(Qid*, void*, int);
  66. int xfopen(Xfid*, int);
  67. int xfpurgeuid(Session*, char*);
  68. Xfile* xfroot(char*, int);
  69. int xfstat(Xfid*, Dir*);
  70. Xfid* xfwalkcr(int, Xfid*, String*, int32_t);
  71. int xfwstat(Xfid*, Dir*);
  72. int xmesg(Session*, int);
  73. int xp2fhandle(Xfile*, Fhandle);
  74. void xpclear(Xfile*);