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:

215292

userrating:


May 25th. 2007:
Words

486

Views

261808

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:

154031

userrating:


April, 26th. 2006:

Druckversion
You are here: manpages





GELF_UPDATE_SHDR

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

 

NAME

gelf_update_shdr - copy a class-independent section header into a section descriptor

 

SYNOPSIS

#include <gelf.h>

int gelf_update_shdr(Elf_Scn *scn, GElf_Shdr *src);

 

DESCRIPTION

gelf_update_shdr() copies the class-independent section header referenced by src into the section descriptor scn. The section header is translated as necessary to match the class ( ELFCLASS32 or ELFCLASS64) of the underlying ELF object. If the underlying ELF object has class ELFCLASS32 then the struct members of src must fit into 3-bit field values.

 

PARAMETERS

scn
Pointer to a section descriptor of type Elf_Scn.

src
Pointer to a GElf_Shdr structure containing the caller’s desired section header contents.

 

RETURN VALUE

On success, gelf_update_shdr() returns a no-zero value and marks scn with the ELF_F_DIRTY flag. On failure, this function returns 0 and elf_errno is set. If scn or src are NULL, then 0 is returned without setting elf_errno.

 

SEE ALSO

gelf_getshdr(3), elf_getscn(3), elf_nextscn(3), libelf(3), elf(5)

 

ATTRIBUTES

InterfaceAttributeValue
gelf_update_shdr() 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: 13.3 ms