13.16.3 backtrace_symbols_fd
¶
LSB specification:
https://refspecs.linuxbase.org/LSB_5.0.0/LSB-Core-generic/LSB-Core-generic/baselib-backtrace-1.html
Documentation:
Gnulib module: execinfo
Portability problems fixed by Gnulib:
- This function is missing on many platforms:
musl libc, FreeBSD 9.3, NetBSD 6.1, OpenBSD 6.9, Minix 3.1.8, AIX 5.1, HP-UX 11, Solaris 10, Cygwin 2.9, mingw, MSVC 14, Android API level 32.
Portability problems not fixed by Gnulib:
- The second argument is of type
size_t
, not int
, on some platforms:
FreeBSD, NetBSD, OpenBSD.
- The strings printed by this function not the same as the strings returned by
backtrace_symbols
on some platforms:
glibc 2.39.
- On platforms where the function is missing,
the Gnulib substitute implementation is just a stub, and does nothing.