*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> libelf/elf_kind (3)              
Title
Content
Arch
Section
 

Contents


ELF_KIND(3E)							  ELF_KIND(3E)


NAME    [Toc]    [Back]

     elf_kind -	determine file type

SYNOPSIS    [Toc]    [Back]

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

     #include <libelf.h>

     Elf_Kind elf_kind(Elf *elf);

DESCRIPTION    [Toc]    [Back]

     This function returns a value identifying the kind	of file	associated
     with an ELF descriptor (elf).  Currently defined values appear below.

     ELF_K_AR	     The file is an archive [see ar(4)].  An ELF descriptor
		     may also be associated with an archive member, not	the
		     archive itself, and then elf_kind identifies the member's
		     type.

     ELF_K_COFF	     The file is a COFF	object file.  COFF object files	cannot
		     be	processed by this library, and ELF_K_COFF is never
		     actually returned by the IRIX version of elf_kind.	 The
		     code is mentioned here and	is defined in the header file
		     because it	is a part of standard System V Release 4.

     ELF_K_ELF	     The file is an ELF	file.  The program may use
		     elf_getident to determine the class.  Other functions,
		     such as elf_getehdr, are available	to retrieve other file
		     information.

     ELF_K_NONE	     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 elf_begin.  A	null
     pointer is	allowed, to simplify error handling, and causes	elf_kind to
     return ELF_K_NONE.

SEE ALSO    [Toc]    [Back]

      
      
     elf(3E), elf_begin(3E), elf_getehdr(3E), elf_getident(3E),	ar(4).


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
fstyp HP-UX determine file system type
isdialuptty FreeBSD determine tty type from ttys file entry
isfdtype OpenBSD determine whether a file descriptor is of a specific type
isnettty FreeBSD determine tty type from ttys file entry
DtDtsDataTypeIsAction HP-UX determine if the data type is an action
isnan IRIX determine type of floating-point number
rqsread IRIX reads the information out of an ELF file that is needed to determine if the file needs to be requickstarted
isastream Tru64 Determine if a file descriptor refers to a STREAMS file
access HP-UX determine accessibility of a file
access IRIX determine accessibility of a file
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service