Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

solaris fix #32

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

solaris fix #32

wants to merge 1 commit into from

Conversation

tkoecker
Copy link

This patch fixes the Solaris support (tested on Solaris 10 and 11).

While the existing getExecutablePath() code works fine on Solaris the getModulePath() does not work.
The code assumes that the /proc/self/map file on Solaris has the same syntax as the /proc/self/maps file on Linux.
This is not the case, actually the /proc/self/map is even a binary file, see: https://docs.oracle.com/cd/E19253-01/816-5174/proc-4/index.html
The dladdr() based code that is already used for other platforms in whereami however works fine on Solaris too.
I added another copy of it (there is already is more than one) - this maybe could be merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant