diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
commit | fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch) | |
tree | bdda434976bc09c864f2e4fa6f16ba1952b1e555 /sys/pmio/pmstati.x | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
Diffstat (limited to 'sys/pmio/pmstati.x')
-rw-r--r-- | sys/pmio/pmstati.x | 32 |
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 |