All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kay Sievers <kay.sievers@vrfy.org>
To: linux-hotplug@vger.kernel.org
Subject: [PATCH] udev - exec status fix for klibc
Date: Thu, 08 Jan 2004 18:21:39 +0000	[thread overview]
Message-ID: <20040108182139.GA2788@vrfy.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 74 bytes --]

Here is a patch to remove the ifdef's and fix klibc instead.

thanks,
Kay

[-- Attachment #2: 02-wait-exit-klibc-fix.diff --]
[-- Type: text/plain, Size: 769 bytes --]

diff -Nru a/klibc_fixups.h b/klibc_fixups.h
--- a/klibc_fixups.h	Thu Jan  8 19:03:26 2004
+++ b/klibc_fixups.h	Thu Jan  8 19:03:26 2004
@@ -4,6 +4,11 @@
 #define KLIBC_FIXUPS_H 
 
 
+#define WTERMSIG(status)	((status) & 0x7f)
+#define WEXITSTATUS(status)	(((status) & 0xff00) >> 8)
+#define WIFEXITED(status)	(WTERMSIG(status) == 0)
+
+
 struct group {
 	char	*gr_name;	/* group name */
 	char	*gr_passwd;	/* group password */
diff -Nru a/namedev.c b/namedev.c
--- a/namedev.c	Thu Jan  8 19:03:26 2004
+++ b/namedev.c	Thu Jan  8 19:03:26 2004
@@ -380,12 +380,10 @@
 			retval = -1;
 		}
 
-#ifndef __KLIBC__
 		if (!WIFEXITED(status) || (WEXITSTATUS(status) != 0)) {
 			dbg("callout program status 0x%x", status);
 			retval = -1;
 		}
-#endif
 	}
 	return retval;
 }

             reply	other threads:[~2004-01-08 18:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-08 18:21 Kay Sievers [this message]
2004-01-10  1:10 ` [PATCH] udev - exec status fix for klibc Greg KH

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=20040108182139.GA2788@vrfy.org \
    --to=kay.sievers@vrfy.org \
    --cc=linux-hotplug@vger.kernel.org \
    /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 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.