On Tue, Jun 24, 2003 at 10:01:47PM +1000, Damien Miller 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.

it definately does NOT work on Solaris.

$ gcc -o t test.c
Undefined                       first referenced
 symbol                             in file
__progname                          /var/tmp//ccMPu79K.o




-------------------------------------------------------
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

Reply via email to