aboutsummaryrefslogtreecommitdiff
path: root/sys/fio/fowner.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/fowner.x
downloadiraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz
Initial commit
Diffstat (limited to 'sys/fio/fowner.x')
-rw-r--r--sys/fio/fowner.x20
1 files changed, 20 insertions, 0 deletions
diff --git a/sys/fio/fowner.x b/sys/fio/fowner.x
new file mode 100644
index 00000000..40cc7fc1
--- /dev/null
+++ b/sys/fio/fowner.x
@@ -0,0 +1,20 @@
+# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
+
+include <finfo.h>
+include <syserr.h>
+
+# FOWNER -- Get the name of the owner of a file.
+
+procedure fowner (fname, owner, maxch)
+
+char fname[ARB] # file name
+char owner[ARB] # owner name string
+int maxch # max chars in owner name string
+long file_info[LEN_FINFO]
+int finfo()
+
+begin
+ if (finfo (fname, file_info) == ERR)
+ call filerr (fname, SYS_FOWNER)
+ call strcpy (FI_OWNER(file_info), owner, maxch)
+end