From fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 8 Jul 2015 20:46:52 -0400 Subject: Initial commit --- sys/fio/fowner.x | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 sys/fio/fowner.x (limited to 'sys/fio/fowner.x') 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 +include + +# 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 -- cgit