op_types.h revision cc2ee177dbb3befca43e36cfc56778b006c3d050
1/**
2 * @file op_types.h
3 * General-utility types
4 *
5 * @remark Copyright 2002 OProfile authors
6 * @remark Read the file COPYING
7 *
8 * @author John Levon
9 * @author Philippe Elie
10 */
11
12#ifndef OP_TYPES_H
13#define OP_TYPES_H
14
15#ifndef __KERNEL__
16
17#include <sys/types.h>
18
19/*@{\name miscellaneous types */
20typedef unsigned char u8;
21typedef unsigned short u16;
22typedef unsigned int u32;
23typedef unsigned long long u64;
24typedef int fd_t;
25/*@}*/
26
27/** generic type for holding addresses */
28typedef unsigned long long vma_t;
29
30#else
31#include <linux/types.h>
32#endif
33
34#endif /* OP_TYPES_H */
35