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_OFFSCN

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

 

NAME

gelf_offscn - return descriptor for an ELF section at a given file offset

 

SYNOPSIS

#include <gelf.h>

Elf_Scn *gelf_offscn(Elf *elf, GElf_Off offset);

 

DESCRIPTION

gelf_offscn() retrieves the section descriptor for the no-empty section with sh_offset equal to offset. This function will not return descriptors for SHT_NOBITS sections since they are empty by definition.

 

PARAMETERS

elf
Pointer to an ELF descriptor with kind ELF_K_ELF.

offset
The file offset (in bytes) of the section to be retrieved.

 

RETURN VALUE

On success, gelf_offscn() returns a pointer to the Elf_Scn of the no-empty section with a sh_offset matching offset.

On failure, NULL is returned and elf_errno is set to indicate the error. If elf is NULL, then NULL is returned without setting elf_errno.

 

SEE ALSO

elf32_offscn(3), elf64_offscn(3), libelf(3), elf(5)

 

ATTRIBUTES

InterfaceAttributeValue
gelf_offscn() Thread safetyM-Safe

 

REPORTING BUGS

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

HISTORY gelf_offscn first appeared in elfutils 0.112. This elfutils libelf function may not be found in other libelf implementations.


 

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: 8.6 ms