#ifndef _FT_NM_H # define _FT_NM_H # include # include # include # include # include # include # include # include # include "libft.h" # define FT_NM_SUCCESS 0 # define FT_NM_FAILURE -1 typedef struct s_mapped_file { void *ptr; off_t size; } t_mapped_file; void ft_printf(const char *format, ...); void ft_nm_error(const char *path); int check_header(Elf64_Ehdr *header); int check_ident(unsigned char ident[EI_NIDENT]); void *fetch(t_mapped_file mapped_file, size_t offset, size_t fetch_size); void nm32(t_mapped_file mapped_file); void nm64(t_mapped_file mapped_file); #endif