__builtin_frame_address man page on NetBSD

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

__BUILTIN_RETURN_ADDR... BSD Library Functions Manual __BUILTIN_RETURN_ADDR...

NAME
     __builtin_return_address — the return address of a function

SYNOPSIS
     void *
     __builtin_return_address(unsigned int level);

     void *
     __builtin_frame_address(unsigned int level);

DESCRIPTION
     The __builtin_return_address() is a GNU extension for obtaining the
     return address of the current function or one of the callers of the cur‐
     rent function.

     The parameter level specifies the number of frames that should be scanned
     up in the call stack.  A value 0 returns the address of the current func‐
     tion, a value 1 requests the address of the caller of the current func‐
     tion, a value 2 asks for the address of the caller's caller, and so
     forth.  If the top of the call stack has been reached, the function will
     return 0.	Note also that on some architectures it is only possible to
     determine the address of the current function.  In such cases a value 0
     is returned.  Thus, it is usually safe to only use the value 0 for level.

     The __builtin_frame_address() behaves similarly, but returns the address
     of the function frame rather than the return address of the function.

SEE ALSO
     gcc(1), __builtin_object_size(3)

CAVEATS
     These are non-standard, compiler-specific extensions.

BSD			       December 19, 2010			   BSD
[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server NetBSD

List of man pages available for NetBSD

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]
Tweet
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