File tree 3 files changed +21
-0
lines changed
src/unix/bsd/netbsdlike/openbsd
3 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -393,6 +393,7 @@ fn test_openbsd(target: &str) {
393
393
headers ! { cfg:
394
394
"elf.h" ,
395
395
"errno.h" ,
396
+ "execinfo.h" ,
396
397
"fcntl.h" ,
397
398
"limits.h" ,
398
399
"link.h" ,
Original file line number Diff line number Diff line change @@ -913,6 +913,10 @@ arc4random_buf
913
913
arc4random_uniform
914
914
arphdr
915
915
atof
916
+ backtrace
917
+ backtrace_symbols
918
+ backtrace_symbols_fd
919
+ backtrace_symbols_fmt
916
920
bsearch
917
921
caddr_t
918
922
calloc_conceal
Original file line number Diff line number Diff line change @@ -1606,6 +1606,22 @@ extern "C" {
1606
1606
pub fn calloc_conceal ( nmemb : :: size_t , size : :: size_t ) -> * mut :: c_void ;
1607
1607
}
1608
1608
1609
+ #[ link( name = "execinfo" ) ]
1610
+ extern "C" {
1611
+ pub fn backtrace ( addrlist : * mut * mut :: c_void , len : :: size_t ) -> :: size_t ;
1612
+ pub fn backtrace_symbols ( addrlist : * const * mut :: c_void , len : :: size_t ) -> * mut * mut :: c_char ;
1613
+ pub fn backtrace_symbols_fd (
1614
+ addrlist : * const * mut :: c_void ,
1615
+ len : :: size_t ,
1616
+ fd : :: c_int ,
1617
+ ) -> :: c_int ;
1618
+ pub fn backtrace_symbols_fmt (
1619
+ addrlist : * const * mut :: c_void ,
1620
+ len : :: size_t ,
1621
+ fmt : * const :: c_char ,
1622
+ ) -> * mut * mut :: c_char ;
1623
+ }
1624
+
1609
1625
cfg_if ! {
1610
1626
if #[ cfg( libc_union) ] {
1611
1627
extern {
You can’t perform that action at this time.
0 commit comments