From fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 8 Jul 2015 20:46:52 -0400 Subject: Initial commit --- 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