Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758512AbZANA62 (ORCPT ); Tue, 13 Jan 2009 19:58:28 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754412AbZANA6S (ORCPT ); Tue, 13 Jan 2009 19:58:18 -0500 Received: from smtp1.linux-foundation.org ([140.211.169.13]:48501 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753471AbZANA6R (ORCPT ); Tue, 13 Jan 2009 19:58:17 -0500 Date: Tue, 13 Jan 2009 16:57:55 -0800 (PST) From: Linus Torvalds X-X-Sender: torvalds@localhost.localdomain To: mtk.manpages@gmail.com cc: Roland McGrath , Andrew Morton , kernel list , Ulrich Drepper , Vegard Nossum , "linux-man@vger.kernel.org" Subject: Re: [PATCH] sys_waitid: return -EFAULT for NULL In-Reply-To: Message-ID: References: <20090113224759.7DFB7FC3DD@magilla.sf.frob.com> <20090113224941.36F19FC3DD@magilla.sf.frob.com> User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1032 Lines: 29 On Wed, 14 Jan 2009, Michael Kerrisk wrote: > > It has zero downside for *us*. But it is yet another example of Linux > littering the Unix landscape with unnecessary inconsistencies that > application writers must deal with. Bah. Not so. It matters not at all if you try to write portable code. Linux has extensions. Deal with it. We have literally _thousands_ of things that work on Linux but not on other OS's. The fact is, you can't just recompile and assume something works, and waitid() has absolutely nothing to do with it. > Well, POSIX.1-2001 is fairly clear: > > The application shall ensure that the infop argument points to > a siginfo_t structure. Right. So the application should do that, and Linux does the right thing. Problem solved. Linus -- 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/