mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Geert Uytterhoeven <geert@linux-m68k.org>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: Linux Kernel Development <linux-kernel@vger.kernel.org>,
	Geert Uytterhoeven <geert@linux-m68k.org>
Subject: [PATCH] M68k sys_ipc ENOSYS
Date: Sun, 11 May 2003 12:31:03 +0200	[thread overview]
Message-ID: <200305111031.h4BAV3Wr019712@callisto.of.borg> (raw)

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

                 reply	other threads:[~2003-05-11 10:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200305111031.h4BAV3Wr019712@callisto.of.borg \
    --to=geert@linux-m68k.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®