aboutsummaryrefslogtreecommitdiff
path: root/sys/imio/iki/ikiopix.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/imio/iki/ikiopix.x
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'sys/imio/iki/ikiopix.x')
-rw-r--r--sys/imio/iki/ikiopix.x23
1 files changed, 23 insertions, 0 deletions
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 <syserr.h>
+include <imhdr.h>
+include <imio.h>
+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