blob: e644ff4a554b7c3b7f59fc774bf7579ee1f8442e (
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 Gentoo Foundation
* Distributed under the terms of the GNU General Public License v2
* $Header: /var/cvsroot/gentoo-projects/pax-utils/paxmacho.h,v 1.1 2005/11/02 04:23:21 vapier Exp $
*
* Copyright 2005 Ned Ludd - <solar@gentoo.org>
* Copyright 2005 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 */
|