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