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/fio/fstats.x | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
Diffstat (limited to 'sys/fio/fstats.x')
-rw-r--r-- | sys/fio/fstats.x | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/sys/fio/fstats.x b/sys/fio/fstats.x new file mode 100644 index 00000000..469d0cc2 --- /dev/null +++ b/sys/fio/fstats.x @@ -0,0 +1,29 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include <config.h> +include <fset.h> +include <syserr.h> +include <fio.h> + +# FSTATS -- Return a file status value of type string (s). + +procedure fstats (fd, what, outstr, maxch) + +int fd, what, maxch +char outstr[ARB] +pointer ffp +errchk syserr +include <fio.com> + +begin + ffp = fiodes[fd] + if (fd <= 0 || ffp == NULL) + call syserr (SYS_FILENOTOPEN) + + switch (what) { + case F_FILENAME: + call strcpy (FNAME(ffp), outstr, maxch) + default: + call filerr (FNAME(ffp), SYS_FSTATUNKPAR) + } +end |