aboutsummaryrefslogtreecommitdiff
blob: d45de16c8952dd6c007a715c2f37709036ce651c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
 * Copyright 2005-2006 Gentoo Foundation
 * Distributed under the terms of the GNU General Public License v2
 * $Header: /var/cvsroot/gentoo-projects/pax-utils/paxmacho.h,v 1.2 2006/01/05 03:12:07 vapier Exp $
 *
 * Copyright 2005-2006 Ned Ludd        - <solar@gentoo.org>
 * Copyright 2005-2006 Mike Frysinger  - <vapier@gentoo.org>
 *
 * Make sure all of the common mach-o stuff is setup as we expect
 */

#ifndef _PAX_MACHO_H
#define _PAX_MACHO_H

typedef struct {
	void *mhdr;
	char *data;
	uint32_t macho_class;
	off_t len;
	int fd;
	const char *filename;
	const char *base_filename;
} machoobj;

machoobj *readmacho(const char *filename);
void unreadmacho(machoobj *macho);
const char *get_machomhtype(int mh_type);

#endif /* _PAX_MACHO_H */