Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753058AbZK3RoQ (ORCPT ); Mon, 30 Nov 2009 12:44:16 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752791AbZK3RoO (ORCPT ); Mon, 30 Nov 2009 12:44:14 -0500 Received: from zrtps0kp.nortel.com ([47.140.192.56]:56653 "EHLO zrtps0kp.nortel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752318AbZK3RoL (ORCPT ); Mon, 30 Nov 2009 12:44:11 -0500 Message-ID: <4B140386.8030702@nortel.com> Date: Mon, 30 Nov 2009 11:40:22 -0600 From: "Chris Friesen" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.4pre) Gecko/20090922 Fedora/3.0-2.7.b4.fc11 Thunderbird/3.0b4 MIME-Version: 1.0 To: "H. Peter Anvin" CC: Ulrich Drepper , Linux Kernel Mailing List , Linus Torvalds Subject: Re: using kernel headers in libc headers References: <4B13FA4E.1070901@zytor.com> In-Reply-To: <4B13FA4E.1070901@zytor.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 30 Nov 2009 17:42:23.0290 (UTC) FILETIME=[792C29A0:01CA71E4] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 872 Lines: 20 On 11/30/2009 11:01 AM, H. Peter Anvin wrote: > A better way is to factor out subsets; if has too many > things, we can break out the POSIX parts into or > (certainly better if we have more than one of these) > which can also be included by . > > glibc can then choose to include or not include > depending on its configuration. The configuration macros remain a glibc > internal detail. Yes, absolutely. Personally I find it much easier to open a separate header file than to read code that is littered with #ifdefs. Chris -- 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/