Erwin Data Structures 2.1.88591 (Default branch)


 
Thread Tools Search this Thread
Special Forums News, Links, Events and Announcements Software Releases - RSS News Erwin Data Structures 2.1.88591 (Default branch)
# 1  
Old 08-28-2008
Erwin Data Structures 2.1.88591 (Default branch)

ImageThe Erwin library is a very efficient and robust data structure templatelibrary for C and C++. No templates are used; a Perl script generatesC files. Vectors (dynamic arrays), lists, and hash tables (maps) ofarbitrary key and value types are provided. Several tools are includedfor auto-generating a C interface around C++ libraries, C++ extensionslike slots/properties, symbol (=hashed string) management, sophisticatedassertion macros, and documentation extraction.License: Freely DistributableChanges:
Integer overflows leading to unexpected orderingswere fixed from many comparison functions. CMakesupport was added. Two more bit operations fromHacker's Delight were added.Image

Image

More...
Login or Register to Ask a Question

Previous Thread | Next Thread

3 More Discussions You Might Find Interesting

1. Programming

Signalsafe data structures

Hello, I have a signal handler which manipulates a data structure. The data structure's operations aren't atomic. So if two threads/processes are in a critical section at the same time the data structure will be broken. With threads you can avoid this stuff with semaphores etc. However,... (10 Replies)
Discussion started by: littlegnome
10 Replies

2. Shell Programming and Scripting

Perl Data Structures

Here is what i need to do. @data #has all column wise data so say info for col 1 location for all rows would be in this array $array = \@data But i need to create a file which should contain these information in a format for all columns even if i have got no values from some of the index... (0 Replies)
Discussion started by: dinjo_jo
0 Replies

3. Programming

shared memory - userdefined data structures

Hello, I wonder if I can write my userdefined data structures(ex: a list) to a shared memory segment? I know, the shm functions get (void*) parameter so I should be able to read and write a list into the shared memory. may someone inform and clarify me about that, please? (1 Reply)
Discussion started by: xyzt
1 Replies
Login or Register to Ask a Question
GELF(3) 						   BSD Library Functions Manual 						   GELF(3)

NAME
GElf -- class-independent API for ELF manipulation LIBRARY
ELF Access Library (libelf, -lelf) SYNOPSIS
#include <gelf.h> DESCRIPTION
This manual page describes a class independent API for manipulating ELF objects. This API allows an application to operate on ELF descrip- tors without needing to the know the ELF class of the descriptor. The GElf API may be used alongside the ELF API without restriction. GElf Data Structures The GElf API defines the following class-independent data structures: GElf_Addr A representation of ELF addresses. GElf_Dyn A class-independent representation of ELF .dynamic section entries. GElf_Ehdr A class-independent representation of an ELF Executable Header. GElf_Half An unsigned 16 bit quantity. GElf_Off A class-independent representation of a ELF offset. GElf_Phdr A class-independent representation of an ELF Program Header Table entry. GElf_Rel A class-independent representation of an ELF relocation entry. GElf_Rela A class-independent representation of an ELF relocation entry with addend. GElf_Shdr A class-independent representation of an ELF Section Header Table entry. GElf_Sword A signed 32 bit quantity. GElf_Sxword A signed 64 bit quantity. GElf_Sym A class-independent representation of an ELF symbol table entry. GElf_Word An unsigned 32 bit quantity. GElf_Xword An unsigned 64 bit quantity. These data structures are sized to be compatible with the corresponding 64 bit ELF structures, and have the same internal structure as their 64 bit class-dependent counterparts. Class-dependent ELF structures are described in elf(5). GElf Programming Model GElf functions always return a copy of the underlying (class-dependent) ELF data structure. The programming model with GElf is as follows: 1. An application will retrieve data from an ELF descriptor using a gelf_get_*() function. This will copy out data into a private GElf_* data structure. 2. The application will work with its private copy of the GElf structure. 3. Once done, the application copies the new values back to the underlying ELF data structure using the gelf_update_*() functions. 4. The application will then use the elf_flag*() APIs to indicate to the ELF library that an ELF data structure is dirty. When updating an underlying 32 bit ELF data structure, the GElf routines will signal an error if a GElf value is out of range for the under- lying ELF data type. Namespace use The GElf interface uses the following symbols: GElf_* Class-independent data types. gelf_* For functions defined in the API set. GElf Programming APIs This section provides an overview of the GElf programming APIs. Further information is provided in the manual page of each function listed here. Allocating ELF Data Structures gelf_newehdr() Allocate a new ELF Executable Header. gelf_newphdr() Allocate a new ELF Program Header Table. Data Translation gelf_xlatetof() Translate the native representation of an ELF data structure to its file representation. gelf_xlatetom() Translate from the file representation of an ELF data structure to a native representation. Retrieving ELF Data gelf_getdyn() Retrieve an ELF .dynamic table entry. gelf_getehdr() Retrieve an ELF Executable Header from the underlying ELF descriptor. gelf_getphdr() Retrieve an ELF Program Header Table entry from the underlying ELF descriptor. gelf_getrel() Retrieve an ELF relocation entry. gelf_getrela() Retrieve an ELF relocation entry with addend. gelf_getshdr() Retrieve an ELF Section Header Table entry from the underlying ELF descriptor. gelf_getsym() Retrieve an ELF symbol table entry. Queries gelf_checksum() Retrieves the ELF checksum for an ELF descriptor. gelf_fsize() Retrieves the size of the file representation of an ELF type. gelf_getclass() Retrieves the ELF class of an ELF descriptor. Updating ELF Data gelf_update_dyn() Copy back an ELF .dynamic Table entry. gelf_update_phdr() Copy back an ELF Program Header Table entry. gelf_update_rel() Copy back an ELF relocation entry. gelf_update_rela() Copy back an ELF relocation with addend entry. gelf_update_shdr() Copy back an ELF Section Header Table entry. gelf_update_sym() Copy back an ELF symbol table entry. SEE ALSO
elf(3), elf(5) HISTORY
The GELF(3) API first appeared in System V Release 4. This implementation of the API first appeared in FreeBSD 7.0. AUTHORS
The GElf API was implemented by Joseph Koshy <jkoshy@FreeBSD.org>. BSD
September 1, 2006 BSD