News for hackers. Stuff that matters.
Re:Why bother with argv[0]? by kazinator on Tuesday September 03, 2024 @04:20PM (#41438820)
If hard linking (no symbolic) is used to install the BusyBox commands, then instead of argv[0], BusyBox could use the platform-specific means of obtaining the executable name, and take the basename of that path. On Linux this means /proc/self/exe; _NSGetExecutablePath on Drawin; getexecname on Solaris; GetModuleFilename on Windows; ...

There are no comments on this comment yet.