summaryrefslogtreecommitdiff
path: root/libtrivfs
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-06-21 06:00:42 +0000
committerMiles Bader <miles@gnu.org>1996-06-21 06:00:42 +0000
commit50bec78ac014f89b4b729c0fa46609b959d4a9fe (patch)
tree92b6910829381b24abc3b1b62108c5b757a60a23 /libtrivfs
parentcfeaca5253c734b12d682a1e1da26fd4ff6ef33f (diff)
Initial revision
Diffstat (limited to 'libtrivfs')
-rw-r--r--libtrivfs/get-options.c29
-rw-r--r--libtrivfs/set-options.c33
2 files changed, 62 insertions, 0 deletions
diff --git a/libtrivfs/get-options.c b/libtrivfs/get-options.c
new file mode 100644
index 00000000..370550da
--- /dev/null
+++ b/libtrivfs/get-options.c
@@ -0,0 +1,29 @@
+/* Get runtime options
+
+ Copyright (C) 1996 Free Software Foundation
+
+ This file is part of the GNU Hurd.
+
+ The GNU Hurd is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2, or (at your option)
+ any later version.
+
+ The GNU Hurd is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ 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 "priv.h"
+
+/* Return runtime options for FSYS in ARGZ & ARGZ_LEN. ARGZ should be
+ allocated with malloc. */
+error_t
+trivfs_get_options (struct trivfs_control *fsys, char **argz, size_t *argz_len)
+{
+ return EOPNOTSUPP;
+}
diff --git a/libtrivfs/set-options.c b/libtrivfs/set-options.c
new file mode 100644
index 00000000..af5355f1
--- /dev/null
+++ b/libtrivfs/set-options.c
@@ -0,0 +1,33 @@
+/* Set runtime options
+
+ Copyright (C) 1996 Free Software Foundation
+
+ This file is part of the GNU Hurd.
+
+ The GNU Hurd is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2, or (at your option)
+ any later version.
+
+ The GNU Hurd is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ 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"
+
+/* Set runtime options for FSYS to ARGZ & ARGZ_LEN. */
+error_t
+trivfs_set_options (struct trivfs_control *fsys, char *argz, size_t argz_len)
+{
+ if (trivfs_runtime_argp)
+ return fshelp_set_options (trivfs_runtime_argp, 0, argz, argz_len, fsys);
+ else
+ return EOPNOTSUPP;
+}