diff options
author | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
---|---|---|
committer | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
commit | 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch) | |
tree | 4464880c571602d54f6ae114729bf62a89518057 /sys/fio/fflsbf.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'sys/fio/fflsbf.x')
-rw-r--r-- | sys/fio/fflsbf.x | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/sys/fio/fflsbf.x b/sys/fio/fflsbf.x new file mode 100644 index 00000000..7503609a --- /dev/null +++ b/sys/fio/fflsbf.x @@ -0,0 +1,27 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include <syserr.h> +include <config.h> +include <fio.h> + +# FFLSBF -- Flush the file buffer. Called by FFAULT to initiate a write +# of the file buffer when a fault occurs. + +procedure fflsbf (fd, bp, maxchars, buffer_offset) + +int fd +pointer bp +int maxchars +long buffer_offset +errchk fwatio +include <fio.com> + +begin + fp = fiodes[fd] + + if (FBUFMODE(fp) != INACTIVE) + call fwatio (fd) + call awrite (fd, Memc[bp], maxchars, buffer_offset) + + FBUFMODE(fp) = WRITE_IN_PROGRESS +end |