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/imio/iki/ikiopix.x | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 sys/imio/iki/ikiopix.x (limited to 'sys/imio/iki/ikiopix.x') diff --git a/sys/imio/iki/ikiopix.x b/sys/imio/iki/ikiopix.x new file mode 100644 index 00000000..33b3a9bc --- /dev/null +++ b/sys/imio/iki/ikiopix.x @@ -0,0 +1,23 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include +include +include +include "iki.h" + +# IKI_OPIX -- Open or create the pixel storage file, if any. We are called by +# IMIO when i/o is first done to the image. In the case of a new image, IMIO +# will already have set up the IM_NDIM and IM_LEN fields of the image header. + +procedure iki_opix (im) + +pointer im #I image descriptor +int status +include "iki.com" + +begin + iferr (call zcall2 (IKI_OPIX(IM_KERNEL(im)), im, status)) + status = ERR + if (status == ERR) + call syserrs (SYS_IKIOPIX, IM_NAME(im)) +end -- cgit