From owner-cvs-all Wed Jul 14 10:31:32 1999
Delivered-To: cvs-all@freebsd.org
Received: from overcee.netplex.com.au (overcee.netplex.com.au [202.12.86.7])
by hub.freebsd.org (Postfix) with ESMTP
id 41DB414CEE; Wed, 14 Jul 1999 10:31:22 -0700 (PDT)
(envelope-from peter@netplex.com.au)
Received: from netplex.com.au (localhost [127.0.0.1])
by overcee.netplex.com.au (Postfix) with ESMTP
id A5E5281; Thu, 15 Jul 1999 01:30:35 +0800 (WST)
(envelope-from peter@netplex.com.au)
X-Mailer: exmh version 2.0.2 2/24/98
To: Dmitrij Tejblum
Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject: Re: cvs commit: src/lib/libc_r/uthread pthread_private.h uthread_init.c
In-reply-to: Your message of "Mon, 12 Jul 1999 09:09:32 MST."
<199907121609.JAA26044@freefall.freebsd.org>
Date: Thu, 15 Jul 1999 01:30:35 +0800
From: Peter Wemm
Message-Id: <19990714173035.A5E5281@overcee.netplex.com.au>
Sender: owner-cvs-all@FreeBSD.ORG
Precedence: bulk
Dmitrij Tejblum wrote:
> dt 1999/07/12 09:09:31 PDT
>
> Modified files:
> lib/libc_r/uthread pthread_private.h uthread_init.c
> Log:
> Use USRSTACK (defined in ) to get top of the initial sta
ck.
Umm, this is not a good way to do it as it is dependent on kernel size
adjustments. It would be far better to use the sysctl kern.usrstack
instead, and perhaps falling back to the predefined USRSTACK if for some
reason the variable isn't available.
It's even got a numeric OID (KERN_USRSTACK) so it doesn't incur the
expense of doing a name translation.
Cheers,
-Peter
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message