blob: 8a319a35b11d13c2f7df137911a12b2327d9faf7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
# KI_SENDRCV -- Encode and send a packet to a remote server process, then
# read and decode the response packet. The opcode and subcode in the
# response packet must agree with those in the packet sent.
int procedure ki_sendrcv (server, opcode, subcode)
int server # os channel to server process
int opcode # function opcode
int subcode # function subcode (for drivers)
int ki_send(), ki_receive()
begin
if (ki_send (server, opcode, subcode) == ERR)
return (ERR)
else
return (ki_receive (server, opcode, subcode))
end
|