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/ktzstt.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'sys/ki/ktzstt.x')
-rw-r--r-- | sys/ki/ktzstt.x | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/sys/ki/ktzstt.x b/sys/ki/ktzstt.x new file mode 100644 index 00000000..c7ca9463 --- /dev/null +++ b/sys/ki/ktzstt.x @@ -0,0 +1,32 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include <mach.h> +include <config.h> +include "ki.h" + +# KT_ZSTT -- Get file status on a text device. We are called only if the +# device does not reside on the local node. + +procedure kt_zstt (device, chan, what, lvalue) + +int device # device driver code +int chan # channel assigned device +int what # file parameter to be returned +long lvalue # receives the parameter value + +int server +int ki_sendrcv() +long ki_decode() +include "kichan.com" +include "kii.com" + +begin + server = k_node[chan] + p_arg[1] = k_oschan[chan] + p_arg[2] = what + + if (ki_sendrcv (server, device, TX_STT) == ERR) + lvalue = ERR + else + lvalue = ki_decode (p_sbuf, NCHARS_LONG) +end |