aboutsummaryrefslogtreecommitdiff
path: root/sys/fio/fowner.x
diff options
context:
space:
mode:
authorJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
committerJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
commit40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch)
tree4464880c571602d54f6ae114729bf62a89518057 /sys/fio/fowner.x
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
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