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
GELF_FSIZE(3) FreeBSD Library Functions Manual GELF_FSIZE(3)

gelf_fsize, elf32_fsize, elf64_fsize
return the size of a file type

ELF Access Library (libelf, -lelf)

#include <libelf.h>

size_t
elf32_fsize(Elf_Type type, size_t count, unsigned int version);

size_t
elf64_fsize(Elf_Type type, size_t count, unsigned int version);

#include <gelf.h>

size_t
gelf_fsize(Elf *elf, Elf_Type type, size_t count, unsigned int version);

These functions return the size in bytes of the file representation of count numbers of objects of ELF type type. For ELF types that are of variable length, these functions return a size of one byte.

Functions elf32_fsize() and elf64_fsize() return sizes for files of class ELFCLASS32 and ELFCLASS64 respectively. Function gelf_fsize() returns the size for the class of ELF descriptor elf.

These functions return a non-zero value in case of success, or zero in case of an error.

These functions may fail with:
[]
Argument elf was NULL in a call to gelf_fsize().
[]
ELF descriptor elf had an unknown ELF class.
[]
Argument type contained an illegal value.
[]
Support for ELF type type has not been implemented.
[]
Argument version is not a supported version.

elf(3), gelf(3)
February 5, 2008 FreeBSD 13.1-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.