From 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 Mon Sep 17 00:00:00 2001 From: Joe Hunkeler Date: Tue, 11 Aug 2015 16:51:37 -0400 Subject: Repatch (from linux) of OSX IRAF --- sys/fmio/fmlfawt.x | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 sys/fmio/fmlfawt.x (limited to 'sys/fmio/fmlfawt.x') diff --git a/sys/fmio/fmlfawt.x b/sys/fmio/fmlfawt.x new file mode 100644 index 00000000..1fa66581 --- /dev/null +++ b/sys/fmio/fmlfawt.x @@ -0,0 +1,18 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include +include "fmio.h" + +# FM_LFAWAIT -- Wait for i/o on an lfile. + +procedure fm_lfawait (lf, status) + +pointer lf #I lfile descriptor +int status #O i/o status (nbytes transferred or ERR) + +begin + call fm_lfbinwait (lf, status) + if (and (LF_FLAGS(lf), LFF_TEXTFILE) != 0) + if (status > 0) + status = status * SZB_CHAR +end -- cgit