39 lines
1.4 KiB
C
39 lines
1.4 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_nm_otool.h :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: jhalford <jack@crans.org> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2017/02/20 14:36:10 by jhalford #+# #+# */
|
|
/* Updated: 2017/10/30 12:00:14 by jhalford ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#ifndef FT_NM_OTOOL_H
|
|
# define FT_NM_OTOOL_H
|
|
|
|
# include "libft.h"
|
|
# include <stdio.h>
|
|
# include <stdlib.h>
|
|
# include <fcntl.h>
|
|
# include <sys/mman.h>
|
|
# include <sys/stat.h>
|
|
|
|
# include <mach/machine.h>
|
|
# include <mach-o/loader.h>
|
|
# include <mach-o/nlist.h>
|
|
# include <mach-o/fat.h>
|
|
|
|
# include "ft_nm.h"
|
|
# include "ft_otool.h"
|
|
|
|
# include "mach_64.h"
|
|
# include "mach.h"
|
|
|
|
|
|
# define IS_MACH_64(x) (x == MH_MAGIC_64 || x == MH_CIGAM_64)
|
|
# define IS_MACH_32(x) (x == MH_MAGIC || x == MH_CIGAM)
|
|
# define IS_FAT(x) (x == FAT_MAGIC || x == FAT_CIGAM)
|
|
|
|
#endif
|