Hacker News new | ask | show | jobs
by asveikau 661 days ago
There's also getprogname(3) on a lot of systems, and the __progname variable. I seem to recall this is an area where various Unix like systems have slight variations.