diff options
author | Miles Bader <miles@gnu.org> | 1996-06-21 06:01:40 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1996-06-21 06:01:40 +0000 |
commit | 32a86d29969e76d917da44a16d25284acacc29cb (patch) | |
tree | 4bb9ad4b3b799a21e28c90fe2e4b1f536e157ba6 /libtrivfs/file-get-fs-options.c | |
parent | 9a0b3af15f4a5ffdebfd39855879bd97475a6652 (diff) |
(trivfs_S_file_get_fs_options):
Call trivfs_get_options, and package up the results.
Diffstat (limited to 'libtrivfs/file-get-fs-options.c')
-rw-r--r-- | libtrivfs/file-get-fs-options.c | 16 |
1 files changed, 15 insertions, 1 deletions
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 <hurd/fshelp.h> + #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; } |