/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_nm_otool.h :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: jhalford +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2017/02/20 14:36:10 by jhalford #+# #+# */ /* Updated: 2017/03/01 17:52:35 by jhalford ### ########.fr */ /* */ /* ************************************************************************** */ #ifndef FT_NM_OTOOL_H # define FT_NM_OTOOL_H # include "libft.h" # include # include # include # include # include # include # include # include # include # define IS_MAGIC_64(x) (x == MH_MAGIC_64 || x == MH_CIGAM_64) # define IS_FAT(x) (x == FAT_MAGIC || x == FAT_CIGAM) void dump_symtab(struct symtab_command *sym, struct dysymtab_command *dysym, void *file); void *hexdump(void *addr, unsigned int offset, unsigned int size); #endif