stub.c 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. #include "u.h"
  2. #include "lib.h"
  3. #include "dat.h"
  4. #include "fns.h"
  5. #include "error.h"
  6. void
  7. mallocsummary(void)
  8. {
  9. }
  10. void
  11. pagersummary(void)
  12. {
  13. }
  14. int
  15. iseve(void)
  16. {
  17. return 1;
  18. }
  19. void
  20. setswapchan(Chan *c)
  21. {
  22. USED(c);
  23. }
  24. void
  25. splx(int x)
  26. {
  27. USED(x);
  28. }
  29. int
  30. splhi(void)
  31. {
  32. return 0;
  33. }
  34. int
  35. spllo(void)
  36. {
  37. return 0;
  38. }
  39. void
  40. procdump(void)
  41. {
  42. }
  43. void
  44. scheddump(void)
  45. {
  46. }
  47. void
  48. killbig(void)
  49. {
  50. }
  51. void
  52. dumpstack(void)
  53. {
  54. }
  55. void
  56. xsummary(void)
  57. {
  58. }
  59. void
  60. rebootcmd(int argc, char **argv)
  61. {
  62. USED(argc);
  63. USED(argv);
  64. }
  65. void
  66. kickpager(void)
  67. {
  68. }
  69. int
  70. userwrite(char *a, int n)
  71. {
  72. error(Eperm);
  73. return 0;
  74. }
  75. vlong
  76. todget(vlong *p)
  77. {
  78. if(p)
  79. *p = 0;
  80. return 0;
  81. }
  82. void
  83. todset(vlong a, vlong b, int c)
  84. {
  85. USED(a);
  86. USED(b);
  87. USED(c);
  88. }
  89. void
  90. todsetfreq(vlong a)
  91. {
  92. USED(a);
  93. }
  94. long
  95. hostdomainwrite(char *a, int n)
  96. {
  97. USED(a);
  98. USED(n);
  99. error(Eperm);
  100. return 0;
  101. }
  102. long
  103. hostownerwrite(char *a, int n)
  104. {
  105. USED(a);
  106. USED(n);
  107. error(Eperm);
  108. return 0;
  109. }
  110. void
  111. todinit(void)
  112. {
  113. }
  114. void
  115. rdb(void)
  116. {
  117. }
  118. void
  119. setmalloctag(void *v, uintptr tag)
  120. {
  121. USED(v);
  122. USED(tag);
  123. }
  124. int
  125. postnote(Proc *p, int x, char *msg, int flag)
  126. {
  127. USED(p);
  128. USED(x);
  129. USED(msg);
  130. USED(flag);
  131. return 0;
  132. }
  133. void
  134. exhausted(char *s)
  135. {
  136. panic("out of %s", s);
  137. }
  138. uvlong
  139. fastticks(uvlong *v)
  140. {
  141. if(v)
  142. *v = 1;
  143. return 0;
  144. }