FreeBSD/Linux Kernel Cross Reference
sys/ip/inferno.c
1 #include "u.h"
2 #include "../port/lib.h"
3 #include "mem.h"
4 #include "dat.h"
5 #include "fns.h"
6 #include "../port/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 };
Cache object: 77ba6f94a689f9c3ad85b7f8f0c6c290
|