remove cdefs.h

main
psykose 3 months ago
parent 52f2cc969e
commit 050df939cf
Signed by: psykose
SSH Key Fingerprint: SHA256:HwlGVJNLZqHoOvMtkshyGaXLkcdbEJahYMlepHFL+Uk
  1. 2
      backtrace.c
  2. 10
      execinfo.h
  3. 2
      symtab.c
  4. 10
      symtab.h
  5. 1
      unwind.c

@ -28,8 +28,6 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
#include <sys/param.h>
#include <assert.h>
#include <stdio.h>

@ -34,12 +34,18 @@
#include <stddef.h>
__BEGIN_DECLS
#ifdef __cplusplus
extern "C" {
#endif
size_t backtrace(void **, size_t);
char **backtrace_symbols(void *const *, size_t);
int backtrace_symbols_fd(void *const *, size_t, int);
char **backtrace_symbols_fmt(void *const *, size_t, const char *);
int backtrace_symbols_fd_fmt(void *const *, size_t, int, const char *);
__END_DECLS
#ifdef __cplusplus
}
#endif
#endif /* _EXECINFO_H_ */

@ -28,8 +28,6 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>

@ -31,12 +31,18 @@
#ifndef _SYMTAB_H_
#define _SYMTAB_H_
__BEGIN_DECLS
#ifdef __cplusplus
extern "C" {
#endif
typedef struct symtab symtab_t;
void symtab_destroy(symtab_t *);
symtab_t * symtab_create(int, int, int);
int symtab_find(const symtab_t *, const void *, Dl_info *);
__END_DECLS
#ifdef __cplusplus
}
#endif
#endif /* _SYMTAB_H_ */

@ -28,7 +28,6 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
#include <sys/types.h>
#include <stdio.h>

Loading…
Cancel
Save