*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: __builtin_frame_address | Section: 3 | Source: NetBSD | File: __builtin_frame_address.3
__BUILTIN_RETURN_ADDRESS(3) FreeBSD Library Functions Manual 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 current 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 function, a value 1 requests the address of the caller of the current function, 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. FreeBSD 14.1-RELEASE-p8 December 19, 2010 FreeBSD 14.1-RELEASE-p8

Navigation Options