2024-03-12 19:24:48 +00:00
|
|
|
#ifndef _FT_NM_H
|
|
|
|
# define _FT_NM_H
|
|
|
|
|
|
|
|
# include <unistd.h>
|
|
|
|
# include <sys/mman.h>
|
|
|
|
# include <fcntl.h>
|
|
|
|
# include <elf.h>
|
|
|
|
# include <stdio.h>
|
|
|
|
|
2024-03-13 14:41:03 +00:00
|
|
|
# include "libft.h"
|
|
|
|
|
2024-03-15 14:58:57 +00:00
|
|
|
# define FT_NM_SUCCESS 0
|
|
|
|
# define FT_NM_FAILURE -1
|
|
|
|
|
|
|
|
void ft_nm_error(const char *path);
|
|
|
|
int check_header(Elf64_Ehdr *header);
|
2024-03-19 10:22:37 +00:00
|
|
|
int check_ident(unsigned char ident[EI_NIDENT]);
|
2024-03-15 14:58:57 +00:00
|
|
|
|
2024-03-12 19:24:48 +00:00
|
|
|
#endif
|
2024-03-19 10:22:37 +00:00
|
|
|
|