diff options
author | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
---|---|---|
committer | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
commit | 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch) | |
tree | 4464880c571602d54f6ae114729bf62a89518057 /sys/ki/kisendrcv.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
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 |