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:

209580

userrating:


May 25th. 2007:
Words

486

Views

258587

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:

149876

userrating:


April, 26th. 2006:

Druckversion
You are here: manpages





ELF_CNTL

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

 

NAME

elf_cntl - perform control operations on an ELF descriptor

 

SYNOPSIS

#include <libelf.h>

int elf_cntl(Elf *elf, Elf_Cmd cmd);
 

DESCRIPTION

Perform control operations on the ELF descriptor elf according to the operation specified by cmd.

The following commands are supported:

ELF_C_FDDONE
This command tells libelf that the application is done using the file descriptor associated with the elf object. The file descriptor may then be closed immediately without affecting the i-memory ELF data. Unless all data has been read from the file descriptor (see ELF_C_FDREAD below) future operation on the Elf descriptor may fail.

ELF_C_FDREAD
This command causes libelf to read the entire contents of the underlying file into memory immediately. libelf generally reads and parses elements of ELF files only when they are required. This command instead triggers libelf to read all elements immediately. Using this command ensures that ELF_C_FDDONE may be used without causing future operations on the Elf descriptor to fail.

 

RETURN VALUE

On success, returns 0.

On failure, it returns -1 and sets an error that can be retrieved with elf_errmsg(3).

 

SEE ALSO

libelf(3), elf_errmsg(3), elf(5)

 

ATTRIBUTES

Interface Attribute Value
elf_cntl() Thread safety M-Safe

 

REPORTING BUGS

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


 

Index

NAME
SYNOPSIS
DESCRIPTION
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: 12.8 ms