fns.h 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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 addrule(char*, Word*, char*, Word*, int, int, char*);
  10. void addrules(Word*, Word*, char*, int, int, char*);
  11. void addw(Word*, char*);
  12. int assline(Biobuf *, Bufblock *);
  13. uint32_t atimeof(int,char*);
  14. void atouch(char*);
  15. void bufcpy(Bufblock *, char *, int);
  16. Envy *buildenv(Job*, int);
  17. void catchnotes(void);
  18. char *charin(char *, char *);
  19. int chgtime(char*);
  20. void clrmade(Node*);
  21. char *copyq(char*, Rune, Bufblock*);
  22. void delete(char*);
  23. void delword(Word*);
  24. int dorecipe(Node*);
  25. void dumpa(char*, Arc*);
  26. void dumpj(char*, Job*, int);
  27. void dumpn(char*, Node*);
  28. void dumpr(char*, Rule*);
  29. void dumpv(char*);
  30. void dumpw(char*, Word*);
  31. int escapetoken(Biobuf*, Bufblock*, int, int);
  32. void execinit(void);
  33. int execsh(char*, char*, Bufblock*, Envy*);
  34. void Exit(void);
  35. char *expandquote(char*, Rune, Bufblock*);
  36. void expunge(int, char*);
  37. void freebuf(Bufblock*);
  38. void front(char*);
  39. Node *graph(char*);
  40. void growbuf(Bufblock *);
  41. void initenv(void);
  42. void insert(Bufblock *, int);
  43. void ipop(void);
  44. void ipush(void);
  45. void killchildren(char*);
  46. void *Malloc(int);
  47. char *maketmp(void);
  48. int match(char*, char*, char*);
  49. void mk(char*);
  50. uint32_t mkmtime(char*, int);
  51. uint32_t mtime(char*);
  52. Arc *newarc(Node*, Rule*, char*, Resub*);
  53. Bufblock *newbuf(void);
  54. Job *newjob(Rule*, Node*, char*, char**, Word*, Word*, Word*, Word*);
  55. Word *newword(char*);
  56. int nextrune(Biobuf*, int);
  57. int nextslot(void);
  58. void nproc(void);
  59. void nrep(void);
  60. int outofdate(Node*, Arc*, int);
  61. void parse(char*, int, int);
  62. int pipecmd(char*, Envy*, int*);
  63. void prusage(void);
  64. void rcopy(char**, Resub*, int);
  65. void readenv(void);
  66. void *Realloc(void*, int);
  67. void rinsert(Bufblock *, Rune);
  68. char *rulecnt(void);
  69. void run(Job*);
  70. void setvar(char*, void*);
  71. char *shname(char*);
  72. void shprint(char*, Envy*, Bufblock*);
  73. Word *stow(char*);
  74. void subst(char*, char*, char*, int);
  75. void symdel(char*, int);
  76. void syminit(void);
  77. Symtab *symlook(char*, int, void*);
  78. void symstat(void);
  79. void symtraverse(int, void(*)(Symtab*));
  80. void timeinit(char*);
  81. uint32_t timeof(char*, int);
  82. void touch(char*);
  83. void update(int, Node*);
  84. void usage(void);
  85. Word *varsub(char**);
  86. int waitfor(char*);
  87. int waitup(int, int*);
  88. Word *wdup(Word*);
  89. int work(Node*, Node*, Arc*);
  90. char *wtos(Word*, int);