From 32a86d29969e76d917da44a16d25284acacc29cb Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Fri, 21 Jun 1996 06:01:40 +0000 Subject: (trivfs_S_file_get_fs_options): Call trivfs_get_options, and package up the results. --- libtrivfs/file-get-fs-options.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/libtrivfs/file-get-fs-options.c b/libtrivfs/file-get-fs-options.c index 09717aea..de887ca5 100644 --- a/libtrivfs/file-get-fs-options.c +++ b/libtrivfs/file-get-fs-options.c @@ -18,6 +18,8 @@ along with the GNU Hurd; see the file COPYING. If not, write to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include + #include "priv.h" #include "fsys_S.h" @@ -27,5 +29,17 @@ trivfs_S_file_get_fs_options (struct trivfs_protid *cred, mach_msg_type_name_t reply_type, char **data, mach_msg_type_number_t *len) { - return EOPNOTSUPP; + error_t err; + char *argz; + size_t argz_len; + + if (! cred) + return EOPNOTSUPP; + + err = trivfs_get_options (cred->po->cntl, &argz, &argz_len); + if (! err) + /* Put ARGZ into vm_alloced memory for the return trip. */ + err = fshelp_return_malloced_buffer (argz, argz_len, data, len); + + return err; } -- cgit v1.2.3