version 1.3, 2016/02/20 02:43:42 |
version 1.4, 2021/03/08 20:55:06 |
|
|
.\" out of the use of this software, even if advised of the possibility of |
.\" out of the use of this software, even if advised of the possibility of |
.\" such damage. |
.\" such damage. |
.\" |
.\" |
.\" Id: gelf_newehdr.3 189 2008-07-20 10:38:08Z jkoshy |
.\" Id: gelf_newehdr.3 3928 2021-03-07 19:47:55Z jkoshy |
.\" |
.\" |
.Dd October 22, 2007 |
.Dd June 12, 2019 |
.Os |
|
.Dt GELF_NEWEHDR 3 |
.Dt GELF_NEWEHDR 3 |
|
.Os |
.Sh NAME |
.Sh NAME |
.Nm elf32_newehdr , |
.Nm elf32_newehdr , |
.Nm elf64_newehdr , |
.Nm elf64_newehdr , |
|
|
Function |
Function |
.Fn elf64_newehdr |
.Fn elf64_newehdr |
returns a pointer to a 64 bit |
returns a pointer to a 64 bit |
.Vt Elf64_Ehdr structure. |
.Vt Elf64_Ehdr |
|
structure. |
.Pp |
.Pp |
When argument |
When argument |
.Ar elfclass |
.Ar elfclass |
Line 128 flag on ELF descriptor |
|
Line 129 flag on ELF descriptor |
|
.Ar elf . |
.Ar elf . |
.Sh RETURN VALUES |
.Sh RETURN VALUES |
These functions return a pointer to a translated header descriptor |
These functions return a pointer to a translated header descriptor |
if successful, or NULL on failure. |
if successful, or |
|
.Dv NULL |
|
on failure. |
|
.Sh COMPATIBILITY |
|
The |
|
.Fn gelf_newehdr |
|
function uses a type of |
|
.Ft "void *" |
|
for its returned value. |
|
This differs from some other implementations of the |
|
.Xr elf 3 |
|
API, which use an |
|
.Ft "unsigned long" |
|
return type. |
.Sh ERRORS |
.Sh ERRORS |
These functions can fail with the following errors: |
These functions can fail with the following errors: |
.Bl -tag -width "[ELF_E_RESOURCE]" |
.Bl -tag -width "[ELF_E_RESOURCE]" |