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/awrite.x | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
Diffstat (limited to 'sys/fio/awrite.x')
-rw-r--r-- | sys/fio/awrite.x | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/sys/fio/awrite.x b/sys/fio/awrite.x new file mode 100644 index 00000000..a189d0e3 --- /dev/null +++ b/sys/fio/awrite.x @@ -0,0 +1,24 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include <mach.h> + +# AWRITE -- Asychronous block write to a binary file. Writes can only +# start at a character offset which is an integral multiple of the file +# block size. + +procedure awrite (fd, buffer, nchars, char_offset) + +int fd +int nchars +char buffer[ARB] +long char_offset + +int nbytes +long byte_offset + +begin + nbytes = nchars * SZB_CHAR + byte_offset = (char_offset-1) * SZB_CHAR + 1 + + call awriteb (fd, buffer, nbytes, byte_offset) +end |