aboutsummaryrefslogtreecommitdiff
path: root/sys/pmio/mioopeno.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/pmio/mioopeno.x
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'sys/pmio/mioopeno.x')
-rw-r--r--sys/pmio/mioopeno.x30
1 files changed, 30 insertions, 0 deletions
diff --git a/sys/pmio/mioopeno.x b/sys/pmio/mioopeno.x
new file mode 100644
index 00000000..bd3a6a96
--- /dev/null
+++ b/sys/pmio/mioopeno.x
@@ -0,0 +1,30 @@
+# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
+
+include <imhdr.h>
+include <pmset.h>
+include "mio.h"
+
+# MIO_OPENO -- Open an MIO descriptor for the given mask and data image.
+
+pointer procedure mio_openo (pm, im)
+
+pointer pm #I mask descriptor
+pointer im #I image descriptor
+
+pointer mp
+
+begin
+ call calloc (mp, LEN_MIODES, TY_STRUCT)
+ call malloc (M_RLP(mp), RL_MAXLEN(pm), TY_INT)
+ RLI_LEN(M_RLP(mp)) = 0
+
+ call amovkl (1, M_VS(mp,1), IM_MAXDIM)
+ call amovl (IM_LEN(im,1), M_VN(mp,1), IM_MAXDIM)
+
+ M_IM(mp) = im
+ M_PM(mp) = pm
+ call pm_seti (pm, P_REFIM, im)
+ call mio_setrange (mp, M_VS(mp,1), M_VN(mp,1), IM_NDIM(im))
+
+ return (mp)
+end