From owner-freebsd-current Tue Nov 13 19:34:56 2001 Delivered-To: freebsd-current@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id D97B037B416; Tue, 13 Nov 2001 19:34:53 -0800 (PST) Received: by flood.ping.uio.no (Postfix, from userid 2602) id 79FD114C2E; Wed, 14 Nov 2001 04:34:52 +0100 (CET) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: John Baldwin Cc: Julian Elischer , freebsd-current@FreeBSD.ORG, Steve Kargl , Garrett Wollman Subject: Re: namespace pollution with struct thread? References: From: Dag-Erling Smorgrav Date: 14 Nov 2001 04:34:51 +0100 In-Reply-To: Message-ID: Lines: 22 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG John Baldwin writes: > On 12-Nov-01 Julian Elischer wrote: > > On the other hand we might conceivably be able to > > stop the export from the kernel of this struct type. > Not unless we stop exporting struct proc since each proc has an > embedded thread. We don't really need to export struct proc now that we have struct kinfo_proc, do we? The few userland libraries and programs that still need it (basically libkvm and gdb - libkvm consumers such as top only need to have it declared, not defined) could define something like _NEED_STRUCT_PROC before including . One other thing worth pointing out is that there is no reason for to include . It just needs to declare struct proc as an opaque structure. Also, currently pulls in a lot of other headers such as and that are needed only because depends on them. DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message