aboutsummaryrefslogtreecommitdiff
path: root/sys/fio/frtnfd.x
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
commitfa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch)
treebdda434976bc09c864f2e4fa6f16ba1952b1e555 /sys/fio/frtnfd.x
downloadiraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz
Initial commit
Diffstat (limited to 'sys/fio/frtnfd.x')
-rw-r--r--sys/fio/frtnfd.x19
1 files changed, 19 insertions, 0 deletions
diff --git a/sys/fio/frtnfd.x b/sys/fio/frtnfd.x
new file mode 100644
index 00000000..cf98aa55
--- /dev/null
+++ b/sys/fio/frtnfd.x
@@ -0,0 +1,19 @@
+# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
+
+include <config.h>
+include <fio.h>
+
+# FRTNFD -- Return file descriptor and buffers.
+
+procedure frtnfd (fd)
+
+int fd
+include <fio.com>
+
+begin
+ if (fiodes[fd] != NULL) {
+ call frmbfs (fd)
+ call mfree (fiodes[fd], TY_STRUCT)
+ fiodes[fd] = NULL
+ }
+end