elf_next(ELF)


elf_next -- sequential archive member access

Synopsis

   cc [flag . . . ] file . . . -lelf [library] . . .
   

#include <libelf.h>

Elf_Cmd elf_next(Elf *elf);

Description

elf_next, elf_rand, and elf_begin manipulate simple object files and archives. elf is an ELF descriptor previously returned from elf_begin.

elf_next provides sequential access to the next archive member. That is, having an ELF descriptor, elf, associated with an archive member, elf_next prepares the containing archive to access the following member when the program calls elf_begin. After successfully positioning an archive for the next member, elf_next returns the value ELF_C_READ. Otherwise, the open file was not an archive, elf was null, or an error occurred, and the return value is ELF_C_NULL. In either case, the return value may be passed as an argument to elf_begin, specifying the appropriate action.

References

ar(F), Intro(ELF), elf_begin(ELF), elf_getarsym(ELF), elf_rand(ELF)
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 02 June 2005