~kris/9p

9hist

ref: dd7e4eebb79a4d3f7c27ef6fa3d61db46030ffc9 9hist/ip/inferno.c -rw-r--r-- 516 bytes
dd7e4eeb — David du Colombier Plan 9 from Bell Labs 1999-04-24 27 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#include	"u.h"
#include	"../port/lib.h"
#include	"mem.h"
#include	"dat.h"
#include	"fns.h"
#include	"../port/error.h"
#include	"ip.h"

/*
 *  some hacks for commonality twixt inferno and plan9
 */

char*
commonuser(void)
{
	return up->user;
}

Chan*
commonfdtochan(int fd, int mode, int a, int b)
{
	return fdtochan(fd, mode, a, b);
}

char*
commonerror(void)
{
	return up->error;
}

char*
bootp(Ipifc*)
{
	return "unimplmented";
}

int
bootpread(char*, ulong, int)
{
	return	0;
}

Medium tripmedium =
{
	"trip",
};