fns.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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 Abort(void);
  10. void Closedir(int);
  11. int Creat(char*);
  12. int Dup(int, int);
  13. int Dup1(int);
  14. int Eintr(void);
  15. int Executable(char*);
  16. void Execute(word*, word*);
  17. void Exit(char*);
  18. int ForkExecute(char*, char**, int, int, int);
  19. int Globsize(char*);
  20. int Isatty(int);
  21. void Memcpy(void*, void*, int32_t);
  22. void Noerror(void);
  23. int Opendir(char*);
  24. int32_t Read(int, void*, int32_t);
  25. int Readdir(int, void*, int);
  26. int32_t Seek(int, int32_t, int32_t);
  27. void Trapinit(void);
  28. void Unlink(char*);
  29. void Updenv(void);
  30. void Vinit(void);
  31. int Waitfor(int, int);
  32. int32_t Write(int, void*, int32_t);
  33. void addwaitpid(int);
  34. int advance(void);
  35. int back(int);
  36. void cleanhere(char*);
  37. void codefree(code*);
  38. int compile(tree*);
  39. char * list2str(word*);
  40. int count(word*);
  41. void deglob(void*);
  42. void delwaitpid(int);
  43. void dotrap(void);
  44. void freenodes(void);
  45. void freewords(word*);
  46. void globlist(void);
  47. int havewaitpid(int);
  48. int idchr(int);
  49. void inttoascii(char*, int32_t);
  50. void kinit(void);
  51. int mapfd(int);
  52. int match(void*, void*, int);
  53. int matchfn(void*, void*);
  54. char** mkargv(word*);
  55. void clearwaitpids(void);
  56. void panic(char*, int);
  57. void pathinit(void);
  58. void poplist(void);
  59. void popword(void);
  60. void pprompt(void);
  61. void pushlist(void);
  62. void pushredir(int, int, int);
  63. void pushword(char*);
  64. void readhere(void);
  65. word* searchpath(char*);
  66. void setstatus(char*);
  67. void setvar(char*, word*);
  68. void skipnl(void);
  69. void start(code*, int, var*);
  70. int truestatus(void);
  71. void usage(char*);
  72. int wordchr(int);
  73. void yyerror(char*);
  74. int yylex(void);
  75. int yyparse(void);