Page MenuHomeFreeBSD

Return full pathname in dl_iterate_phdr's dlpi_name, as Linux does
ClosedPublic

Authored by emaste on Oct 9 2014, 8:15 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Mar 19, 2:58 AM
Unknown Object (File)
Thu, Mar 12, 11:18 PM
Unknown Object (File)
Tue, Mar 10, 3:39 PM
Unknown Object (File)
Sun, Mar 8, 9:18 PM
Unknown Object (File)
Sat, Feb 21, 2:38 AM
Unknown Object (File)
Jan 31 2026, 10:21 AM
Unknown Object (File)
Dec 20 2025, 8:11 PM
Unknown Object (File)
Dec 19 2025, 7:52 PM
Subscribers
None

Details

Reviewers
emaste
kan
Summary

Linux man page currently states

The dlpi_name field is a null-terminated string giving the pathname from which the shared object was loaded.

It may be that they returned just the name when this was first implemented for FreeBSD.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

emaste retitled this revision from to Return full pathname in dl_iterate_phdr's dlpi_name, as Linux does.
emaste updated this object.
emaste edited the test plan for this revision. (Show Details)
emaste added a reviewer: kan.
emaste added a reviewer: emaste.

Committed in r272842

This revision is now accepted and ready to land.Oct 9 2014, 9:50 PM