Skip to contentSkip to conversation

New: man page for dl_iterate_phdr() does not mention current-executable-first iteration pattern

Bug 94141 bugzilla-daemon-590EEB7GvNiWaY/[email protected] 1 participant 3 messages Mar 2, 2015 – Mar 11, 2016 1 message not in the archive Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

https://bugzilla.kernel.org/show_bug.cgi?id=94141

Bug ID: 94141
Summary: man page for dl_iterate_phdr() does not mention
current-executable-first iteration pattern
Product: Documentation
Version: unspecified
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P1
Component: man-pages
Assignee: documentation_man-pages-ztI5WcYan/[email protected]
Reporter: [email protected]
Regression: No

When I was using dl_iterate_phdr(), I noticed that the currently running executable wasn't showing up by name. And the first object visited by the iteration was unnamed.

According to this Stack Overflow page, the first object will always be the current executable:
http://stackoverflow.com/questions/8875876/getting-the-elf-header-of-the-main-executable

But I didn't find any mention of this behavior in the official documentation:
http://linux.die.net/man/3/dl_iterate_phdr

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): bug-94141-11311-3bo0kxnWaOQUvHkbgXJLS5sdmw4N0Rt+2LY78lusg7I@public.gmane.org/

#2 lore raw

[Bug 94141] man page for dl_iterate_phdr() does not mention current-executable-first iteration pattern

https://bugzilla.kernel.org/show_bug.cgi?id=94141

Simon Que <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

                URL|                            |http://linux.die.net/man/3/
                   |                            |dl_iterate_phdr
Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#3 lore raw

[Bug 94141] man page for dl_iterate_phdr() does not mention current-executable-first iteration pattern

In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=94141

Michael Kerrisk <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|---                         |CODE_FIX

--- Comment #1 from Michael Kerrisk <[email protected]> --- I added some text to the man page to note this:

The first object visited by callback is the main program. For
the main program, the dlpi_name field will be an empty string.

Closing this bug.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html