1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 #include <stdio.h>
23 #include <ws.h>
24 #include <wsmincap.h>
25 #include <ws_mcb.h>
26 #include <ws_error.h>
27
28 conresp (p_status, p_cap_num, p_mcb_ptr)
29
30 int p_status;
31 int p_cap_num;
32 mcb *p_mcb_ptr;
33 {
34 int sysid;
35 int major;
36
37
38
39 sysid = ((p_cap_num & 0xff00) >> 8);
40 major = (p_cap_num & 0xff);
41
42 if (p_mcb_ptr == NULL)
43 return (WSINVMCB);
44
45 if ((sysid != WSIBMPC) && (sysid != WSMULTICS))
46 return(WSINVSYS);
47
48 if ((major < WSMAJCAP) && (major > MAX_CAPABILITY_NUMBER))
49 return(WSINVNUM);
50
51 if ((p_status != WSACCEPT) && (p_status != WSREJECT))
52 return (WSINVCON);
53
54 return (execap (p_cap_num, RESPONSE_CONNECT, &p_status, 1, p_mcb_ptr));
55 }
56 ^Z