summaryrefslogtreecommitdiff
path: root/libelf/elf_getscn.3
diff options
context:
space:
mode:
Diffstat (limited to 'libelf/elf_getscn.3')
-rw-r--r--libelf/elf_getscn.312
1 files changed, 8 insertions, 4 deletions
diff --git a/libelf/elf_getscn.3 b/libelf/elf_getscn.3
index 0afe44340cc07..ad3c88b82b2a0 100644
--- a/libelf/elf_getscn.3
+++ b/libelf/elf_getscn.3
@@ -1,4 +1,4 @@
-.\" Copyright (c) 2006-2008 Joseph Koshy. All rights reserved.
+.\" Copyright (c) 2006-2008,2018 Joseph Koshy. All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
@@ -21,11 +21,11 @@
.\" out of the use of this software, even if advised of the possibility of
.\" such damage.
.\"
-.\" $Id: elf_getscn.3 189 2008-07-20 10:38:08Z jkoshy $
+.\" $Id: elf_getscn.3 3639 2018-10-14 14:07:02Z jkoshy $
.\"
-.Dd October 22, 2007
-.Os
+.Dd September 24, 2018
.Dt ELF_GETSCN 3
+.Os
.Sh NAME
.Nm elf_getscn ,
.Nm elf_ndxscn ,
@@ -86,6 +86,10 @@ takes a section descriptor
.Ar scn
and returns a pointer to the section descriptor at the next higher
index.
+As a consequence,
+.Fn elf_nextscn
+will never return a pointer to the empty section at index zero
+.Dv ( SHN_UNDEF ) .
Argument
.Ar scn
is allowed to be NULL, in which case this function will return a