blob: ce24a8d363698cdda7e3fe8e787089e862aded02 (
plain)
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
|
#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->errstr;
}
int
postnote(Proc *p, int, char *, int)
{
swiproc(p, 0);
return 0;
}
|