/getexecname

Get the pathname of a running executable on OpenBSD.

Primary LanguageCISC LicenseISC

getexecname(3)

getexecname(3) is a function for OpenBSD that returns the pathname of the running executable, or NULL if an error occurs.

It can be trivally dropped into your source code or built as a library.