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

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


## diffname ip/plan9.c 1998/0630
## diff -e /dev/null /n/emeliedump/1998/0630/sys/src/brazil/ip/plan9.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->env->user;
}

Chan*
commonfdtochan(int fd, int mode, int a, int b)
{
	return fdtochan(up->env->fgrp, fd, mode, a, b);
}

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

int
postnote(Proc*, char*)
{
	return -1;
}
.
## diffname ip/plan9.c 2000/1111 # deleted
## diff -e /n/emeliedump/1998/0630/sys/src/brazil/ip/plan9.c /n/emeliedump/2000/1111/sys/src/9/ip/plan9.c
1,35d

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].