On Tue, 24 Jun 2003 22:01:47 +1000 Damien Miller <[EMAIL PROTECTED]> wrote:
> Felix Kühling wrote: > > Hi, > > > > I have some questions about OS specific ways to find out the name of a > > running programme outside function main. > > extern chat *__progname; > > works on OpenBSD, NetBSD and Linux. Thanks. It looks like quite a hack though and I don't suppose this is documented. ;-) I'm going to use documented variables/functions where available and extern char *__progname as a last resort. > > -d > Regards, Felix ------------ __\|/__ ___ ___ ------------------------- Felix ___\_e -_/___/ __\___/ __\_____ You can do anything, Kühling (_____\Ä/____/ /_____/ /________) just not everything [EMAIL PROTECTED] \___/ \___/ U at the same time. ------------------------------------------------------- This SF.Net email is sponsored by: INetU Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php _______________________________________________ Dri-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dri-devel