Signal invalid ipc operation with ENOSYS

Ulrich Drepper (drepper@redhat.com)
Wed, 02 Apr 2003 12:37:51 -0800


This is a MIME-formatted message. If you see this text it means that your
E-mail software does not support MIME-formatted messages.

--=_courier-10970-1049315992-0001-2
Content-Type: multipart/mixed;
boundary="------------040900040503080504070607"

This is a multi-part message in MIME format.
--------------040900040503080504070607
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

The ipc multiplexer syscall on x86 currently returns EINVAL for a
non-existing sub-opcode. This logical but is a problem with the
introduction of new operations (like semtimedop). Now EINVAL can mean
"no such operation" and "invalid parameter". To avoid such problems in
future, could you apply the attached patch?

-- 
--------------.                        ,-.            444 Castro Street
Ulrich Drepper \    ,-----------------'   \ Mountain View, CA 94041 USA
Red Hat         `--' drepper at redhat.com `---------------------------

--------------040900040503080504070607 Content-Type: text/plain; name="d-semtimedop" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="d-semtimedop"

--- arch/i386/kernel/sys_i386.c 2003-04-02 12:30:51.000000000 -0800 +++ arch/i386/kernel/sys_i386.c.ud 2003-04-02 12:31:12.000000000 -0800 @@ -204,7 +204,7 @@ return sys_shmctl (first, second, (struct shmid_ds *) ptr); default: - return -EINVAL; + return -ENOSYS; } }

--------------040900040503080504070607--

--=_courier-10970-1049315992-0001-2 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+i0of2ijCOnn/RHQRAnACAJ0U7YNtOTJTKdP/7I8lGO24FxjRzgCgk4L+ UeGOGfZf5k7gDdCxy9CO/oo= =9/Va -----END PGP SIGNATURE-----

--=_courier-10970-1049315992-0001-2--