diff options
Diffstat (limited to 'sys/ki/kisendrcv.x')
-rw-r--r-- | sys/ki/kisendrcv.x | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/sys/ki/kisendrcv.x b/sys/ki/kisendrcv.x new file mode 100644 index 00000000..8a319a35 --- /dev/null +++ b/sys/ki/kisendrcv.x @@ -0,0 +1,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 |