aboutsummaryrefslogtreecommitdiff
path: root/sys/fio/fputtx.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/fio/fputtx.x
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'sys/fio/fputtx.x')
-rw-r--r--sys/fio/fputtx.x22
1 files changed, 22 insertions, 0 deletions
diff --git a/sys/fio/fputtx.x b/sys/fio/fputtx.x
new file mode 100644
index 00000000..0cea6f04
--- /dev/null
+++ b/sys/fio/fputtx.x
@@ -0,0 +1,22 @@
+# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
+
+include <config.h>
+include <fio.h>
+
+# FPUTTX -- Put a line to a text file. Flush output if flag is set.
+# Called by FLSBUF, SEEK, FLUSH, etc. to flush an output line.
+
+procedure fputtx (fd, buf, nchars, status)
+
+int fd, nchars, status
+char buf[ARB]
+int and()
+include <fio.com>
+
+begin
+ fp = fiodes[fd]
+ call zcall4 (ZPUTTX(fp), FCHAN(fp), buf, nchars, status)
+
+ if (status != ERR && and (FF_FLUSHNL, fflags[fd]) != 0)
+ call zcall2 (ZFLSTX(fp), FCHAN(fp), status)
+end