From 542cae05a5f9ab6076c4d3ed4f48b796eb65e7f9 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Fri, 18 Feb 1994 17:47:54 +0000 Subject: Initial revision --- libtrivfs/io-async-icky.c | 30 ++++++++++++++++++++++++++++++ libtrivfs/io-async.c | 31 +++++++++++++++++++++++++++++++ libtrivfs/io-modes-get.c | 37 +++++++++++++++++++++++++++++++++++++ libtrivfs/io-modes-off.c | 30 ++++++++++++++++++++++++++++++ libtrivfs/io-modes-on.c | 29 +++++++++++++++++++++++++++++ libtrivfs/io-modes-set.c | 2 -- libtrivfs/io-owner-get.c | 30 ++++++++++++++++++++++++++++++ libtrivfs/io-owner-mod.c | 30 ++++++++++++++++++++++++++++++ libtrivfs/io-select.c | 38 ++++++++++++++++++++++++++++++++++++++ 9 files changed, 255 insertions(+), 2 deletions(-) create mode 100644 libtrivfs/io-async-icky.c create mode 100644 libtrivfs/io-async.c create mode 100644 libtrivfs/io-modes-get.c create mode 100644 libtrivfs/io-modes-off.c create mode 100644 libtrivfs/io-modes-on.c create mode 100644 libtrivfs/io-owner-get.c create mode 100644 libtrivfs/io-owner-mod.c create mode 100644 libtrivfs/io-select.c (limited to 'libtrivfs') 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; +} -- cgit v1.2.3