aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2015-07-03 14:06:23 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2015-08-08 17:35:43 +0200
commit70476aa4c8ab20a79523e165b2c6e25a1cb8587d (patch)
tree6bcf716656ac34bbabe0427c27376d0b4cecac0d
parentccc70c8135315a1abffa69156469f2a9def589e6 (diff)
downloadman-pages-70476aa4c8ab20a79523e165b2c6e25a1cb8587d.tar.gz
dl_iterate_phdr.3: Note that 'size' allows callback() to discover structure extensions
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man3/dl_iterate_phdr.37
1 files changed, 7 insertions, 0 deletions
diff --git a/man3/dl_iterate_phdr.3 b/man3/dl_iterate_phdr.3
index 4cbebd824a..d91d0ecd3d 100644
--- a/man3/dl_iterate_phdr.3
+++ b/man3/dl_iterate_phdr.3
@@ -171,6 +171,13 @@ T} Thread safety MT-Safe
The
.BR dl_iterate_phdr ()
function is Linux-specific and should be avoided in portable applications.
+.SH NOTES
+Future versions of the C library may add further fields to the
+.IR dl_phdr_info
+structure; in that event, the
+.I size
+argument provides a mechanism for the callback function to discover
+whether it is running on a system with added fields.
.SH EXAMPLE
The following program displays a list of pathnames of the
shared objects it has loaded.