summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2003-09-06 01:10:54 +0000
committerRoland McGrath <roland@gnu.org>2003-09-06 01:10:54 +0000
commit1b1d42cd03fb9a1591fe378df61ff3d92cac9fff (patch)
tree0ac2b3099f94fcdcd72e56846283ed971ca2f421
parent57dee4dc04604ac393d305ebec4c0f449b0fcdaa (diff)
2003-09-05 Greg Buchholz <greg@sleepingsquirrel.org>
* fifo.c, new-fifo.c, null.c (trivfs_S_io_map): Change return value to EOPNOTSUPP (was EINVAL).
-rw-r--r--trans/fifo.c2
-rw-r--r--trans/new-fifo.c2
-rw-r--r--trans/null.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/trans/fifo.c b/trans/fifo.c
index 6c06fad9..39043acd 100644
--- a/trans/fifo.c
+++ b/trans/fifo.c
@@ -324,7 +324,7 @@ trivfs_S_io_map (struct trivfs_protid *cred,
memory_object_t *wrobj,
mach_msg_type_name_t *wrtype)
{
- return EINVAL;
+ return EOPNOTSUPP;
}
/* ---------------------------------------------------------------- */
diff --git a/trans/new-fifo.c b/trans/new-fifo.c
index 85b1c55e..5306deed 100644
--- a/trans/new-fifo.c
+++ b/trans/new-fifo.c
@@ -509,7 +509,7 @@ trivfs_S_io_map (struct trivfs_protid *cred,
memory_object_t *wrobj,
mach_msg_type_name_t *wrtype)
{
- return EINVAL;
+ return EOPNOTSUPP;
}
/* ---------------------------------------------------------------- */
diff --git a/trans/null.c b/trans/null.c
index 03beafd1..9673a758 100644
--- a/trans/null.c
+++ b/trans/null.c
@@ -1,6 +1,6 @@
/* A translator for providing endless empty space and immediate eof.
- Copyright (C) 1995,96,97,98,99,2001,02 Free Software Foundation, Inc.
+ Copyright (C) 1995,96,97,98,99,2001,02,03 Free Software Foundation, Inc.
Written by Miles Bader <miles@gnu.org>
This program is free software; you can redistribute it and/or
@@ -130,7 +130,7 @@ trivfs_S_io_map (struct trivfs_protid *cred,
memory_object_t *wrobj,
mach_msg_type_name_t *wrtype)
{
- return EINVAL; /* XXX should work! */
+ return EOPNOTSUPP; /* XXX should work! */
}
/* Read data from an IO object. If offset if -1, read from the object