1: /* @(#)mpx.c 2.1 SCCS id keyword */
2: #include <sys/param.h>
3: #include <sys/tty.h>
4: #include <sys/mx.h>
5:
6: static struct mx_args vec;
7: int mpxcall();
8:
9:
10: mpx(name,mode)
11: char *name;
12: {
13: if (*name) {
14: vec.m_name = name;
15: vec.m_arg[0] = mode;
16: return(mpxcall(MPX, &vec));
17: } else
18: return(mpxcall(MPXN, 0));
19: }
20:
21: chan(gr)
22: {
23: vec.m_arg[1] = gr;
24: return(mpxcall(CHAN, &vec));
25: }
26:
27: join(fd,ch)
28: {
29: vec.m_arg[0] = fd;
30: vec.m_arg[1] = ch;
31: return(mpxcall(JOIN, &vec));
32: }
33:
34: connect(fd,ch,side)
35: {
36: vec.m_arg[0] = fd;
37: vec.m_arg[1] = ch;
38: vec.m_arg[2] = side;
39: return(mpxcall(CONNECT, &vec));
40: }
41:
42: attach(sub,gp)
43: {
44: vec.m_arg[0] = sub;
45: vec.m_arg[1] = gp;
46: return(mpxcall(ATTACH, &vec));
47: }
48:
49: detach(sub,gp)
50: {
51: vec.m_arg[0] = sub;
52: vec.m_arg[1] = gp;
53: return(mpxcall(DETACH, &vec));
54: }
55:
56: (sub,ch,side)
57: {
58: vec.m_arg[0] = sub;
59: vec.m_arg[1] = ch;
60: vec.m_arg[2] = side;
61: return(mpxcall(EXTR, &vec));
62: }
63:
64: debug(var,val)
65: {
66: vec.m_arg[0] = var;
67: vec.m_arg[1] = val;
68: return(mpxcall(DEBUG, &vec));
69: }
70:
71: npgrp(ch, gfd, pid)
72: {
73: vec.m_arg[0] = ch;
74: vec.m_arg[1] = gfd;
75: vec.m_arg[2] = pid;
76: return(mpxcall(NPGRP, &vec));
77: }
78: ckill(index,gp,sig)
79: {
80: vec.m_arg[0] = index;
81: vec.m_arg[1] = gp;
82: vec.m_arg[2] = sig;
83: return(mpxcall(CSIG, &vec));
84: }
Defined functions
chan
defined in line
21;
never used
ckill
defined in line
78;
never used
debug
defined in line
64;
never used
defined in line
56;
never used
join
defined in line
27;
never used
mpx
defined in line
10; used 1 times
npgrp
defined in line
71;
never used
Defined variables
vec
defined in line
6; used 33 times