The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

Интерактивная система просмотра системных руководств (man-ов)

 ТемаНаборКатегория 
 
 [Cписок руководств | Печать]

elf_flagelf (3)
  • >> elf_flagelf (3) ( FreeBSD man: Библиотечные вызовы )

  • BSD mandoc
     

    NAME

    elf_flagdata
    
     
    elf_flagehdr
    
     
    elf_flagelf
    
     
    elf_flagphdr
    
     
    elf_flagscn
    
     
    elf_flagshdr
    
     - manipulate flags associated with ELF(3) data structures
    
     
    

    LIBRARY

    Lb libelf
    
     
    

    SYNOPSIS

       #include <libelf.h>
    unsigned int elf_flagdata (Elf_Data *data Elf_Cmd cmd unsigned int flags);
    unsigned int elf_flagehdr (Elf *elf Elf_Cmd cmd unsigned int flags);
    unsigned int elf_flagelf (Elf *elf Elf_Cmd cmd unsigned int flags);
    unsigned int elf_flagphdr (Elf *elf Elf_Cmd cmd unsigned int flags);
    unsigned int elf_flagscn (Elf_Scn *scn Elf_Cmd cmd unsigned int flags);
    unsigned int elf_flagshdr (Elf_Scn *scn Elf_Cmd cmd unsigned int flags);
     

    DESCRIPTION

    These functions are used to query, set or reset flag bits on data structures associated with an ELF file.

    Arguments data elf and scn denote the data structures whose status bits need to be changed. These values are allowed to be NULL to simplify error handling in application code.

    Argument cmd may have the following values:

    ELF_C_CLR
    The argument flags specifies the bits to be cleared.
    ELF_C_SET
    The argument flags specifies the bits to be set.

    The argument flags is allowed to have the following bits set:

    ELF_F_DIRTY
    Mark the associated data structure as needing to be written back to the underlying file. A subsequent call to elf_update3 will resynchronize the library's internal data structures.
    ELF_F_LAYOUT
    This flag is only valid with the elf_flagelf ();
    API. It informs the library that the application will take responsibility for the layout of the file and that the library is not to insert any padding in between sections.

    Marking a given data structure as ``dirty'' affects all of its contained elements. Thus marking an ELF descriptor elf with elf_flagelf (elf ELF_C_SET ELF_F_DIRTY);
    means that the entire contents of the descriptor are ``dirty''

    Using a value of zero for argument flags will return the current set of flags for the data structure being queried.  

    RETURN VALUES

    These functions return the updated bits is successful, and zero if an error is detected.  

    ERRORS

    These functions may fail with the following errors:

    Bq Er ELF_E_ARGUMENT
    An unsupported value was used for the cmd argument.
    Bq Er ELF_E_ARGUMENT
    Argument flags had unsupported flag bits set.
    Bq Er ELF_E_ARGUMENT
    The argument elf was not a descriptor for an ELF object.
    Bq Er ELF_E_SEQUENCE
    Function elf_flagehdr ();
    was called without an executable header being allocated.
    Bq Er ELF_E_SEQUENCE
    Function elf_flagphdr ();
    was called without a program header being allocated.

     

    SEE ALSO

    elf(3), elf32_newehdr3, elf32_newphdr3, elf32_newshdr3, elf64_newehdr3, elf64_newphdr3, elf64_newshdr3, elf_newdata3, elf_update3, gelf(3), gelf_newehdr3, gelf_newphdr3, gelf_newshdr3, gelf_update_dyn3, gelf_update_move3, gelf_update_rel3, gelf_update_rela3, gelf_update_sym3, gelf_update_syminfo3


     

    Index

    NAME
    LIBRARY
    SYNOPSIS
    DESCRIPTION
    RETURN VALUES
    ERRORS
    SEE ALSO


    Поиск по тексту MAN-ов: 




    Партнёры:
    PostgresPro
    Inferno Solutions
    Hosting by Hoster.ru
    Хостинг:

    Закладки на сайте
    Проследить за страницей
    Created 1996-2024 by Maxim Chirkov
    Добавить, Поддержать, Вебмастеру