MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


ELF Library Functions                              elfkind(3ELF)



NAME
     elfkind - determine file type

SYNOPSIS
     cc [ flag ... ] file ... -lelf [ library ... ]
     #include 

     ElfKind elfkind(Elf *elf);


DESCRIPTION
     This function returns a value identifying the kind  of  file
     associated  with an ELF descriptor (elf). Defined values are
     below:

     ELFKAR      The file is an archive [see  ar.h(3HEAD)].  An
                   ELF  descriptor may also be associated with an
                   archive member, not the  archive  itself,  and
                   then elfkind() identifies the member's type.


     ELFKCOF    The   file   is   a    COF    object    file.
                   elfbegin(3ELF)  describes  the library's han-
                   dling for COF files.


     ELFKELF     The file is an ELF file. The program  may  use
                   elfgetident()  to  determine the class. Other
                   functions, such as elf32getehdr(), are avail-
                   able to retrieve other file information.


     ELFKNONE    This indicates a kind of file unknown  to  the
                   library.



     Other values are reserved, to be assigned as needed  to  new
     kinds of files. elf should be a value previously returned by
     elfbegin(). A null pointer is allowed,  to  simplify  error
     handling, and causes elfkind() to return ELFKNONE.

ATRIBUTES
     See attributes(5) for descriptions of the  following  attri-
     butes:










SunOS 5.11          Last change: 11 Jul 2001                    1






ELF Library Functions                              elfkind(3ELF)



     
           ATRIBUTE TYPE               ATRIBUTE VALUE       
    
     Interface Stability          Stable                      
    
     MT-Level                     MT-Safe                     
    


SEE ALSO
     ar.h(3HEAD),         elf(3ELF),         elf32getehdr(3ELF),
     elfbegin(3ELF),  elfgetident(3ELF),  libelf(3LIB),  attri-
     butes(5)










































SunOS 5.11          Last change: 11 Jul 2001                    2



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™