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/ki/ksawrite.x | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 sys/ki/ksawrite.x (limited to 'sys/ki/ksawrite.x') diff --git a/sys/ki/ksawrite.x b/sys/ki/ksawrite.x new file mode 100644 index 00000000..20c815f5 --- /dev/null +++ b/sys/ki/ksawrite.x @@ -0,0 +1,21 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include "ki.h" + +# KS_AWRITE -- Write to the kernel server device driver given the node +# descriptor of a kernel server channel. If the error bit is set on the +# node return error w/o doing any i/o, since the channel will have been closed. + +procedure ks_awrite (server, buf, nbytes) + +int server # node descriptor index of server +char buf[ARB] # i/o buffer +int nbytes # nbytes to write + +int and() +include "kinode.com" + +begin + if (and (n_status[server], F_IOERR) == 0) + call zawrks (n_kschan[server], buf, nbytes, long(0)) +end -- cgit