aboutsummaryrefslogtreecommitdiff
path: root/sys/pmio/pmstati.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/pmstati.x
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'sys/pmio/pmstati.x')
-rw-r--r--sys/pmio/pmstati.x32
1 files changed, 32 insertions, 0 deletions
diff --git a/sys/pmio/pmstati.x b/sys/pmio/pmstati.x
new file mode 100644
index 00000000..4e8566d2
--- /dev/null
+++ b/sys/pmio/pmstati.x
@@ -0,0 +1,32 @@
+# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
+
+include <syserr.h>
+include <pmset.h>
+include <plio.h>
+include <imio.h>
+
+# PM_STATI -- Stat a PMIO or PLIO parameter.
+
+int procedure pm_stati (pl, param)
+
+pointer pl #I mask descriptor
+int param #I parameter code
+
+int i
+
+begin
+ switch (param) {
+ case P_REFIM:
+ return (PM_REFIM(pl))
+ case P_MAPXY:
+ return (PM_MAPXY(pl))
+ case P_MAXLINE:
+ return (PL_MAXLINE(pl))
+ case P_DEPTH:
+ do i = 0, ARB
+ if (2**i > min (I_PVMAX, PL_MAXVAL(pl)))
+ return (i)
+ default:
+ call syserr (SYS_PLINVPAR)
+ }
+end