The OpenNET Project / Index page

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

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

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

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

  • BSD mandoc
     

    NAME

    dladdr
    
     - find the shared object containing a given address
    
     
    

    LIBRARY

    Lb libc
    
     
    

    SYNOPSIS

       #include <dlfcn.h>
    int dladdr (const void *addr Dl_info *info);
     

    DESCRIPTION

    The dladdr ();
    function queries the dynamic linker for information about the shared object containing the address Fa addr . The information is returned in the structure specified by Fa info . The structure contains at least the following members:

    const char *dli_fname
    The pathname of the shared object containing the address.
    void *dli_fbase
    The base address at which the shared object is mapped into the address space of the calling process.
    const char *dli_sname
    The name of the nearest run-time symbol with a value less than or equal to Fa addr . When possible, the symbol name is returned as it would appear in C source code.

    If no symbol with a suitable value is found, both this field and dli_saddr are set to NULL

    void *dli_saddr
    The value of the symbol returned in dli_sname

    The dladdr ();
    function is available only in dynamically linked programs.  

    ERRORS

    If a mapped shared object containing Fa addr cannot be found, dladdr ();
    returns 0. In that case, a message detailing the failure can be retrieved by calling dlerror (.);

    On success, a non-zero value is returned.  

    SEE ALSO

    rtld(1), dlopen(3)  

    HISTORY

    The dladdr ();
    function first appeared in the Solaris operating system.  

    BUGS

    This implementation is bug-compatible with the Solaris implementation. In particular, the following bugs are present:


     

    Index

    NAME
    LIBRARY
    SYNOPSIS
    DESCRIPTION
    ERRORS
    SEE ALSO
    HISTORY
    BUGS


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




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

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