Subject: Re: setproctitle() and PS_STRINGS
To: None <netbsd-ports@NetBSD.ORG>
From: Ty Sarna <firstname.lastname@example.org>
Date: 10/25/1995 19:44:02
In article <9510251626.AA15123@defender.vas.viewlogic.com>,
Data In~rte~vgri}ity EnginNO CARRIER <email@example.com> wrote:
> #define AUTHOR "firstname.lastname@example.org (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.