Plan 9 from Bell Labs’s /usr/web/sources/extra/9hist/ip/inferno.c

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


## diffname ip/inferno.c 1998/0313
## diff -e /dev/null /n/emeliedump/1998/0313/sys/src/brazil/ip/inferno.c
0a
#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",
};
.
## diffname ip/inferno.c 2001/0924
## diff -e /n/emeliedump/1998/0313/sys/src/brazil/ip/inferno.c /n/emeliedump/2001/0924/sys/src/9/ip/inferno.c
28c
	return up->errstr;
.

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.