All of lore.kernel.org
 help / color / mirror / Atom feed
* Signal invalid ipc operation with ENOSYS
@ 2003-04-02 20:37 Ulrich Drepper
  0 siblings, 0 replies; only message in thread
From: Ulrich Drepper @ 2003-04-02 20:37 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Linux Kernel


[-- Attachment #1.1: Type: text/plain, Size: 539 bytes --]

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 `---------------------------

[-- Attachment #1.2: d-semtimedop --]
[-- Type: text/plain, Size: 288 bytes --]

--- 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;
 	}
 }
 

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-04-02 20:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-02 20:37 Signal invalid ipc operation with ENOSYS Ulrich Drepper

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.