inferno.c - vx32 - Local 9vx git repository for patches.
(HTM) git clone git://r-36.net/vx32
(DIR) Log
(DIR) Files
(DIR) Refs
---
inferno.c (512B)
---
1 #include "u.h"
2 #include "lib.h"
3 #include "mem.h"
4 #include "dat.h"
5 #include "fns.h"
6 #include "error.h"
7 #include "ip.h"
8
9 /*
10 * some hacks for commonality twixt inferno and plan9
11 */
12
13 char*
14 commonuser(void)
15 {
16 return up->user;
17 }
18
19 Chan*
20 commonfdtochan(int fd, int mode, int a, int b)
21 {
22 return fdtochan(fd, mode, a, b);
23 }
24
25 char*
26 commonerror(void)
27 {
28 return up->errstr;
29 }
30
31 char*
32 bootp(Ipifc* _)
33 {
34 return "unimplmented";
35 }
36
37 int
38 bootpread(char* _, ulong __, int ___)
39 {
40 return 0;
41 }
42
43 Medium tripmedium =
44 {
45 "trip",
46 };