from small one page howto to huge articles all in one place

search text in:




Other .linuxhowtos.org sites:gentoo.linuxhowtos.org



Last additions:
using iotop to find disk usage hogs

using iotop to find disk usage hogs

words:

887

views:

215020

userrating:


May 25th. 2007:
Words

486

Views

261702

why adblockers are bad


Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

words:

161

views:

153907

userrating:


April, 26th. 2006:

Druckversion
You are here: manpages





GELF_UPDATE_EHDR

Section: Libelf Programmer's Manual (3)
Updated: 202-0-17
Index Return to Main Contents

 

NAME

gelf_update_ehdr - copy a class-independent ELF header into an ELF descriptor

 

SYNOPSIS

#include <gelf.h>

int gelf_update_ehdr(Elf *elf, GElf_Ehdr *src);

 

DESCRIPTION

gelf_update_ehdr() copies the class-independent ELF header from the structure pointed to by src into the ELF descriptor elf . The header is translated as necessary to match the class ( ELFCLASS32 or ELFCLASS64) of the underlying object.

If elf has class ELFCLASS32 then e_entry, e_phoff and e_shoff must be expressible as 3-bit values. This function also marks the Ehdr dirty (see elf_flagehdr()).

 

PARAMETERS

elf
Pointer to an ELF descriptor of kind ELF_K_ELF.

src
Pointer to a GElf_Ehdr structure that holds the caller’s desired header contents. Must not be NULL.

 

RETURN VALUE

On success, gelf_update_ehdr() returns a no-zero value. On failure, it returns 0 and sets elf_errno. If elf is NULL, then 0 is returned without setting elf_errno.

 

SEE ALSO

gelf_getehdr(3), gelf_newehdr(3), elf_flagehdr(3), libelf(3), elf(5)

 

ATTRIBUTES

InterfaceAttributeValue
gelf_update_ehdr() Thread safetyM-Safe

 

REPORTING BUGS

Report bugs to <elfutil-devel@sourceware.org> or https://sourceware.org/bugzilla/.


 

Index

NAME
SYNOPSIS
DESCRIPTION
PARAMETERS
RETURN VALUE
SEE ALSO
ATTRIBUTES
REPORTING BUGS





Support us on Content Nation
rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2025 Sascha Nitsch Unternehmensberatung GmbH
Valid XHTML1.1 : Valid CSS
- Level Triple-A Conformance to Web Content Accessibility Guidelines 1.0 -
- Copyright and legal notices -
Time to create this page: 18.0 ms