summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-02-18 17:47:54 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-02-18 17:47:54 +0000
commit542cae05a5f9ab6076c4d3ed4f48b796eb65e7f9 (patch)
tree705121708ad85ffc306cb35328ddcec45cef5ddf
parent62a0cf9ab2ec914d490c55ee97f3b013b73b1109 (diff)
Initial revision
-rw-r--r--libtrivfs/io-async-icky.c30
-rw-r--r--libtrivfs/io-async.c31
-rw-r--r--libtrivfs/io-modes-get.c37
-rw-r--r--libtrivfs/io-modes-off.c30
-rw-r--r--libtrivfs/io-modes-on.c29
-rw-r--r--libtrivfs/io-modes-set.c2
-rw-r--r--libtrivfs/io-owner-get.c30
-rw-r--r--libtrivfs/io-owner-mod.c30
-rw-r--r--libtrivfs/io-select.c38
9 files changed, 255 insertions, 2 deletions
diff --git a/libtrivfs/io-async-icky.c b/libtrivfs/io-async-icky.c
new file mode 100644
index 00000000..9153d2b5
--- /dev/null
+++ b/libtrivfs/io-async-icky.c
@@ -0,0 +1,30 @@
+/*
+ Copyright (C) 1993, 1994 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. */
+
+/* Written by Michael I. Bushnell. */
+
+#include "priv.h"
+
+error_t
+trivfs_S_io_get_icky_async_id (struct protid *cred,
+ mach_port_t *id)
+{
+ assert (!trivfs_support_read && !trivfs_support_write);
+ return EOPNOTSUPP;
+}
diff --git a/libtrivfs/io-async.c b/libtrivfs/io-async.c
new file mode 100644
index 00000000..2f69ac2c
--- /dev/null
+++ b/libtrivfs/io-async.c
@@ -0,0 +1,31 @@
+/*
+ Copyright (C) 1993, 1994 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. */
+
+/* Written by Michael I. Bushnell. */
+
+#include "priv.h"
+
+error_t
+trivfs_S_io_async (struct protid *cred,
+ mach_port_t notify,
+ mach_port_t *id)
+{
+ assert (!trivfs_support_read && !trivfs_support_write);
+ return EOPNOTSUPP;
+}
diff --git a/libtrivfs/io-modes-get.c b/libtrivfs/io-modes-get.c
new file mode 100644
index 00000000..31f8d6b5
--- /dev/null
+++ b/libtrivfs/io-modes-get.c
@@ -0,0 +1,37 @@
+/*
+ Copyright (C) 1993, 1994 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. */
+
+/* Written by Michael I. Bushnell. */
+
+#include "priv.h"
+
+error_t
+trivfs_S_io_get_openmodes (struct protid *cred,
+ int *bits)
+{
+ if (!cred)
+ return EOPNOTSUPP;
+ else
+ {
+ *bits = cred->po->openmode;
+ return 0;
+ }
+}
+
+
diff --git a/libtrivfs/io-modes-off.c b/libtrivfs/io-modes-off.c
new file mode 100644
index 00000000..af81b614
--- /dev/null
+++ b/libtrivfs/io-modes-off.c
@@ -0,0 +1,30 @@
+/*
+ Copyright (C) 1993, 1994 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. */
+
+/* Written by Michael I. Bushnell. */
+
+#include "priv.h"
+
+error_t
+trivfs_S_io_clear_some_openmodes (struct protid *cred,
+ int bits)
+{
+ assert (!trivfs_support_read && !trivfs_support_write);
+ return EOPNOTSUPP;
+}
diff --git a/libtrivfs/io-modes-on.c b/libtrivfs/io-modes-on.c
new file mode 100644
index 00000000..a5514cf0
--- /dev/null
+++ b/libtrivfs/io-modes-on.c
@@ -0,0 +1,29 @@
+/*
+ Copyright (C) 1993, 1994 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. */
+
+/* Written by Michael I. Bushnell. */
+
+#include "priv.h"
+
+trivfs_S_io_set_some_openmodes (struct protid *cred,
+ int bits)
+{
+ assert (!trivfs_support_read && !trivfs_support_write);
+ return EOPNOTSUPP;
+}
diff --git a/libtrivfs/io-modes-set.c b/libtrivfs/io-modes-set.c
index 2030643e..9a74d74e 100644
--- a/libtrivfs/io-modes-set.c
+++ b/libtrivfs/io-modes-set.c
@@ -19,8 +19,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
/* Written by Michael I. Bushnell. */
-#include "priv.h"
-
error_t
trivfs_S_io_set_all_openmodes (struct protid *cred,
int mode)
diff --git a/libtrivfs/io-owner-get.c b/libtrivfs/io-owner-get.c
new file mode 100644
index 00000000..44a78826
--- /dev/null
+++ b/libtrivfs/io-owner-get.c
@@ -0,0 +1,30 @@
+/*
+ Copyright (C) 1993, 1994 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. */
+
+/* Written by Michael I. Bushnell. */
+
+#include "priv.h"
+
+error_t
+trivfs_S_io_get_owner (struct protid *cred,
+ pid_t *owner)
+{
+ assert (!trivfs_support_read && !trivfs_support_write);
+ return EOPNOTSUPP;
+}
diff --git a/libtrivfs/io-owner-mod.c b/libtrivfs/io-owner-mod.c
new file mode 100644
index 00000000..36fb57e1
--- /dev/null
+++ b/libtrivfs/io-owner-mod.c
@@ -0,0 +1,30 @@
+/*
+ Copyright (C) 1993, 1994 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. */
+
+/* Written by Michael I. Bushnell. */
+
+#include "priv.h"
+
+error_t
+trivfs_S_io_mod_owner (struct protid *cred,
+ pid_t owner)
+{
+ assert (!trivfs_support_read && !trivfs_support_write);
+ return EOPNOTSUPP;
+}
diff --git a/libtrivfs/io-select.c b/libtrivfs/io-select.c
new file mode 100644
index 00000000..df7da323
--- /dev/null
+++ b/libtrivfs/io-select.c
@@ -0,0 +1,38 @@
+/*
+ Copyright (C) 1993, 1994 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. */
+
+/* Written by Michael I. Bushnell. */
+
+#include "priv.h"
+
+error_t
+trivfs_S_io_select (struct protid *cred,
+ int seltype,
+ mach_port_t ret,
+ int tag,
+ int *result)
+{
+ if (!cred)
+ return EOPNOTSUPP;
+ if (seltype & (SELECT_READ|SELECT_URG))
+ assert (!trivfs_support_read);
+ if (seltype & (SELECT_WRITE|SELECT_URG))
+ assert (!trivfs_support_write);
+ return EBADF;
+}