Skip to content

Commit

Permalink
Add empty function bodies for execinfo.
Browse files Browse the repository at this point in the history
  • Loading branch information
psobot committed May 18, 2024
1 parent b31f8e9 commit 2858046
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions vendors/execinfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,18 @@
#ifndef _EXECINFO_H
#define _EXECINFO_H 1

#include <features.h>

/* Store up to SIZE return address of the current program state in
ARRAY and return the exact number of values stored. */
int backtrace(void **__array, int __size) __nonnull((1)) { return 0; }
int backtrace(void **__array, int __size) { return 0; }

/* Return names of functions from the backtrace list in ARRAY in a newly
malloc()ed memory block. */
char **backtrace_symbols(void *const *__array, int __size) __THROW
__nonnull((1)) {
return NULL;
char **backtrace_symbols(void *const *__array, int __size) {
return (char **)0;
}

/* This function is similar to backtrace_symbols() but it writes the result
immediately to a file. */
void backtrace_symbols_fd(void *const *__array, int __size, int __fd) __THROW
__nonnull((1)) {}
void backtrace_symbols_fd(void *const *__array, int __size, int __fd) {}

#endif /* execinfo.h */

0 comments on commit 2858046

Please sign in to comment.