diff options
author | Michael I. Bushnell <mib@gnu.org> | 1994-05-24 21:57:06 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1994-05-24 21:57:06 +0000 |
commit | e88f3373ff141e193f201483c63ef5365cf9b51e (patch) | |
tree | 65851e529036632cb0880c932c2a1738bed191db /libtrivfs | |
parent | 44f1cc59636ac18fd374b691c0f7344034dde6cb (diff) |
Formerly io-modes-get.c.~2~
Diffstat (limited to 'libtrivfs')
-rw-r--r-- | libtrivfs/io-modes-get.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/libtrivfs/io-modes-get.c b/libtrivfs/io-modes-get.c index 31f8d6b5..007a973c 100644 --- a/libtrivfs/io-modes-get.c +++ b/libtrivfs/io-modes-get.c @@ -20,16 +20,19 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ /* Written by Michael I. Bushnell. */ #include "priv.h" +#include "io_S.h" +#include <assert.h> -error_t -trivfs_S_io_get_openmodes (struct protid *cred, +kern_return_t +trivfs_S_io_get_openmodes (struct trivfs_protid *cred, int *bits) { + assert (!trivfs_support_read && !trivfs_support_write); if (!cred) return EOPNOTSUPP; else { - *bits = cred->po->openmode; + *bits = 0; return 0; } } |