diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
commit | fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch) | |
tree | bdda434976bc09c864f2e4fa6f16ba1952b1e555 /sys/ki/ktzstt.x | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
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 |