Skip to contentSkip to conversation

Signal invalid ipc operation with ENOSYS

PATCH Ulrich Drepper 1 participant 1 message Apr 2, 2003

lore
Share & tools
lore
#0 lore raw

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?

Signature · 3 lines
--------------.                        ,-.            444 Castro Street
Ulrich Drepper \    ,-----------------'   \ Mountain View, CA 94041 USA
Red Hat         `--' drepper at redhat.com `---------------------------
i386/kernel/sys_i386.c.ud renamed from i386/kernel/sys_i386.c +1 -1
@@ -204,7 +204,7 @@
 		return sys_shmctl (first, second,
 				   (struct shmid_ds *) ptr);
 	default:
-		return -EINVAL;
+		return -ENOSYS;
 	}
 }