elf_rawfile man page on FreeBSD

Man page or keyword search:  
man Server   9747 pages
apropos Keyword Search (all sections)
Output format
FreeBSD logo
[printable version]

ELF_RAWFILE(3)		 BSD Library Functions Manual		ELF_RAWFILE(3)

     elf_rawfile — return uninterpreted contents of an ELF file

     library “libelf”

     #include <libelf.h>

     char *
     elf_rawfile(Elf *elf, size_t *sz);

     Function elf_rawfile() returns the uninterpreted contents of the file
     referenced by ELF descriptor elf.

     If argument sz is non-null, the function stores the file's size in bytes
     in the location to which it points.  A value of zero is written to this
     location if an error is encountered.

     Function elf_rawfile() returns a valid pointer if successful or NULL if
     an error occurs.

     Function elf_rawfile() may fail with the following errors:

     [ELF_E_ARGUMENT]  Argument elf was NULL.

     [ELF_E_SEQUENCE]  Argument elf was opened for writing and function
		       elf_rawfile() was invoked before elf_update(3).

     elf(3), elf_getdata(3), elf_getident(3), elf_kind(3), elf_update(3)

BSD				 July 3, 2006				   BSD

List of man pages available for FreeBSD

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
Vote for polarhome
Free Shell Accounts :: the biggest list on the net