diff options
author | Roland McGrath <roland@gnu.org> | 1999-11-08 21:41:05 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1999-11-08 21:41:05 +0000 |
commit | 15bc79389392cfb6f481dcb504e1f00ec0b835c2 (patch) | |
tree | ae2e7d3cee57dec5df8ab3dfe0b94df69ddccba4 | |
parent | b30d3166c69e43b4058b68e7cfc84803c679a835 (diff) |
1999-11-08 Roland McGrath <roland@baalperazim.frob.com>
* io-owner-get.c (trivfs_S_io_get_owner): Remove asserts.
It is entirely reasonable to have EOPNOTSUPP be the default
implementation for these calls that files are not obligated to provide.
* io-owner-mod.c (trivfs_S_io_mod_owner): Likewise.
* io-map.c (trivfs_S_io_map): Likewise.
* io-async.c (trivfs_S_io_async): Likewise.
* io-async-icky.c (trivfs_S_io_get_icky_async_id): Likewise.
-rw-r--r-- | libtrivfs/io-async-icky.c | 5 | ||||
-rw-r--r-- | libtrivfs/io-async.c | 5 | ||||
-rw-r--r-- | libtrivfs/io-map.c | 3 | ||||
-rw-r--r-- | libtrivfs/io-owner-get.c | 3 | ||||
-rw-r--r-- | libtrivfs/io-owner-mod.c | 3 |
5 files changed, 7 insertions, 12 deletions
diff --git a/libtrivfs/io-async-icky.c b/libtrivfs/io-async-icky.c index 0f0b99ea..8c394732 100644 --- a/libtrivfs/io-async-icky.c +++ b/libtrivfs/io-async-icky.c @@ -1,5 +1,5 @@ /* - Copyright (C) 1993, 1994 Free Software Foundation + Copyright (C) 1993, 1994, 1999 Free Software Foundation This file is part of the GNU Hurd. @@ -8,7 +8,7 @@ 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, +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. @@ -30,6 +30,5 @@ trivfs_S_io_get_icky_async_id (struct trivfs_protid *cred, mach_port_t *id, mach_msg_type_name_t *idtype) { - assert (!trivfs_support_read && !trivfs_support_write); return EOPNOTSUPP; } diff --git a/libtrivfs/io-async.c b/libtrivfs/io-async.c index 0a2646a3..c664c067 100644 --- a/libtrivfs/io-async.c +++ b/libtrivfs/io-async.c @@ -1,5 +1,5 @@ /* - Copyright (C) 1993, 1994 Free Software Foundation + Copyright (C) 1993, 1994, 1999 Free Software Foundation This file is part of the GNU Hurd. @@ -8,7 +8,7 @@ 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, +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. @@ -31,6 +31,5 @@ trivfs_S_io_async (struct trivfs_protid *cred, mach_port_t *id, mach_msg_type_name_t *idtype) { - assert (!trivfs_support_read && !trivfs_support_write); return EOPNOTSUPP; } diff --git a/libtrivfs/io-map.c b/libtrivfs/io-map.c index f94bf8a5..1dc93c22 100644 --- a/libtrivfs/io-map.c +++ b/libtrivfs/io-map.c @@ -8,7 +8,7 @@ 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, +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. @@ -32,6 +32,5 @@ trivfs_S_io_map (struct trivfs_protid *cred, mach_port_t *wrobj, mach_msg_type_name_t *wrtype) { - assert (!trivfs_support_read && !trivfs_support_write); return EOPNOTSUPP; } diff --git a/libtrivfs/io-owner-get.c b/libtrivfs/io-owner-get.c index d91cd4cc..82fe9211 100644 --- a/libtrivfs/io-owner-get.c +++ b/libtrivfs/io-owner-get.c @@ -8,7 +8,7 @@ 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, +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. @@ -29,6 +29,5 @@ trivfs_S_io_get_owner (struct trivfs_protid *cred, mach_msg_type_name_t replytype, 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 index e499776e..2e70159f 100644 --- a/libtrivfs/io-owner-mod.c +++ b/libtrivfs/io-owner-mod.c @@ -8,7 +8,7 @@ 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, +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. @@ -29,6 +29,5 @@ trivfs_S_io_mod_owner (struct trivfs_protid *cred, mach_msg_type_name_t replytype, pid_t owner) { - assert (!trivfs_support_read && !trivfs_support_write); return EOPNOTSUPP; } |