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

elf32_getchdr, elf64_getchdr, gelf_getchdr
retrieve the compression header of a section

ELF Access Library (libelf, -lelf)

#include <libelf.h>

Elf32_Chdr *
elf32_getchdr(Elf_Scn *s);

Elf64_Chdr *
elf64_getchdr(Elf_Scn *s);

#include <gelf.h>

GElf_Chdr *
gelf_getchdr(Elf_Scn *scn, GElf_Chdr *chdr);

These functions return a pointer to the ELF Compression Header data structure associated with section descriptor scn.

Function elf32_getchdr() retrieves a pointer to an Elf32_Chdr structure. Section descriptor scn must be associated with an ELF descriptor of class ELFCLASS32.

Function elf64_getchdr() retrieves a pointer to an Elf64_Chdr structure. Section descriptor scn must be associated with an ELF descriptor of class ELFCLASS64.

Function gelf_getchdr() copies the values in the compression header associated with argument scn to the structure pointed to be argument dst. The GElf_Chdr data structure is described in gelf(3).

Functions elf32_getchdr() and elf64_getchdr() return a valid pointer to the appropriate compression header on success or NULL if an error was encountered.

Function gelf_getchdr() returns argument dst if successful, or NULL if an error was encountered.

These functions may fail with the following errors:
[]
Arguments scn has invalid flags.
[]
Argument scn has invalid type.
[]
Argument scn is not compressed.

elf(3), elf_getscn(3), gelf(3),
October 23, 2020 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.