On 20-01-2011 22:32:56 +0100, Karel Zak wrote: > 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 I must have checked the wrong machine when I tried this. Seems you're right, now I check on the right machine(s). -- Fabian Groffen Gentoo on a different level -- 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