"Andrew C. Henle" <achenle at hotmail.com> wrote: > > <br> > > Well for one 'program_invocation_short_name' I know there are alternatives > > to<br> > > this, but I'm trying to avoid solaris specific #defines in the source.<br> > > <br> > > Try using dlinfo(). The Linux documentation is sparse, but it's present on > my Centos 5 box, and it should work for you on Solaris.
dlinfo() is not POSIX but an extension program_invocation_short_name seems to be undocumented (even on Linux) getexecname() is documented and available since Solaris 7 AFAIK (12 years). J?rg -- EMail:joerg at schily.isdn.cs.tu-berlin.de (home) J?rg Schilling D-13353 Berlin js at cs.tu-berlin.de (uni) joerg.schilling at fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily