GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
ELF_CNTL(3) FreeBSD Library Functions Manual ELF_CNTL(3)

elf_cntl
control an elf file descriptor

ELF Access Library (libelf, -lelf)

#include <libelf.h>
int
elf_cntl(Elf *elf, Elf_Cmd cmd);

Function elf_cntl() controls the ELF library's subsequent use of the file descriptor used to create ELF descriptor elf.
Argument cmd informs the library of the action to be taken:
This value instructs the ELF library not to perform any further I/O on the file descriptor associated with argument elf. For ELF descriptors opened with mode ELF_C_WRITE or ELF_C_RDWR subsequent elf_update() operations on the descriptor will fail.
This value instructs the ELF library to read in all necessary data associated with ELF descriptor elf into memory so that the underlying file descriptor can be safely closed with command ELF_C_FDDONE.
Argument elf must be an ELF descriptor associated with a file system object (e.g., an ar(1) archive, an ELF file, or other data file).

Due to use of mmap(2) internally, this function is a no-op for ELF objects opened in ELF_C_READ mode.

Function elf_cntl() returns 0 on success, or -1 if an error was detected.

[]
Argument elf is a descriptor for an archive member.
[]
Argument elf was NULL.
[]
Argument cmd was not recognized.
[]
An ELF_C_FDREAD operation was requested on an ELF descriptor opened for writing.

elf(3), elf_begin(3), elf_end(3), elf_next(3), elf_update(3), gelf(3)
August 9, 2006 FreeBSD 12.0-RELEASE

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.