aboutsummaryrefslogtreecommitdiff
path: root/sys/ki/ktzfls.x
diff options
context:
space:
mode:
authorJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
committerJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
commit40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch)
tree4464880c571602d54f6ae114729bf62a89518057 /sys/ki/ktzfls.x
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'sys/ki/ktzfls.x')
-rw-r--r--sys/ki/ktzfls.x33
1 files changed, 33 insertions, 0 deletions
diff --git a/sys/ki/ktzfls.x b/sys/ki/ktzfls.x
new file mode 100644
index 00000000..e22c1a98
--- /dev/null
+++ b/sys/ki/ktzfls.x
@@ -0,0 +1,33 @@
+# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
+
+include <mach.h>
+include <config.h>
+include "ki.h"
+
+# KT_ZFLS -- Flush output to a text device. We are called only if the device
+# does not reside on the local node.
+
+procedure kt_zfls (device, chan, status)
+
+int device # device driver code
+int chan # channel assigned device
+int status # receives nchars written or ERR
+
+int server
+int ki_sendrcv()
+include "kichan.com"
+include "kii.com"
+
+begin
+ call ki_flushtx (device, chan, status)
+ if (status == ERR)
+ return
+
+ server = k_node[chan]
+ p_arg[1] = k_oschan[chan]
+
+ if (ki_sendrcv (server, device, TX_FLS) == ERR)
+ status = ERR
+ else
+ status = p_arg[1]
+end