On Tue, Jan 18, 2011 at 09:21:44AM +0100, Fabian Groffen wrote: > On 18-01-2011 00:27:38 +0100, Karel Zak wrote: > > > on Linux it's possible to use the /proc filesystem to get process > > > name, wouldn't it be possible anything similar on Solaris? > > > > or use __progname or getexecname() or so... > > I think they are all GNU libc extensions. If GNUlib can't provide an > alternative for program_invocation{,_short}_name, then I guess there is > actually no way to do it other than really obtaining argv[0]. according to Mr.Google the getexecname() function is discussed on Solaris/SunOS forums. __progname is BSDism Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html