Subject: Re: setproctitle() and PS_STRINGS
To: None <netbsd-ports@NetBSD.ORG>
From: Ty Sarna <tsarna@endicor.com>
List: netbsd-ports
Date: 10/25/1995 19:44:02
In article <9510251626.AA15123@defender.vas.viewlogic.com>,
Data In~rte~vgri}ity EnginNO CARRIER <greywolf@captech.com> wrote:
> #define AUTHOR "mike@cs.utah.edu (Mike Hibler)"
> 
> /*
>  * I'm not sure what the best alternative is.  One possibility is to compute
>  * the location at startup time based on the initial SP value and store that
>  * in some magic variable (ala "environ").  Urk!
>  * 
>  * ...or you could use a syscall to get the location.  Blech!
>  * 
>  * ...or you could heuristically determine its value based on the current SP
>  * value or some other known value (e.g., environ).  Gag!
>  * 
>  * Comments?
> 
> Of all these, using a syscall seems the most stable.

How about a sysctl? kern.initsp or sumptin'? Seems awful to add a whole
new syscall just for this.