[PATCH] M68k sys_ipc ENOSYS

Geert Uytterhoeven (geert@linux-m68k.org)
Sun, 11 May 2003 12:31:03 +0200


M68k: Fix sys_ipc() to return ENOSYS instead of EINVAL as appropriate.

--- linux-2.5.x/arch/m68k/kernel/sys_m68k.c 21 Jun 2002 07:50:53 -0000 1.1.1.2
+++ linux-m68k-2.5.x/arch/m68k/kernel/sys_m68k.c 8 Apr 2003 08:41:59 -0000
@@ -202,7 +202,7 @@
return sys_semctl (first, second, third, fourth);
}
default:
- return -EINVAL;
+ return -ENOSYS;
}
if (call <= MSGCTL)
switch (call) {
@@ -233,7 +233,7 @@
return sys_msgctl (first, second,
(struct msqid_ds *) ptr);
default:
- return -EINVAL;
+ return -ENOSYS;
}
if (call <= SHMCTL)
switch (call) {
@@ -256,7 +256,7 @@
return sys_shmctl (first, second,
(struct shmid_ds *) ptr);
default:
- return -EINVAL;
+ return -ENOSYS;
}

return -EINVAL;

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/