Home | History | Annotate | Download | only in libutil
      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 */
     20 typedef unsigned char u8;
     21 typedef unsigned short u16;
     22 typedef unsigned int u32;
     23 typedef unsigned long long u64;
     24 typedef int fd_t;
     25 /*@}*/
     26 
     27 /** generic type for holding addresses */
     28 typedef unsigned long long vma_t;
     29 
     30 /** generic type to hold a sample count in pp tools */
     31 typedef u64 count_type;
     32 
     33 #else
     34 #include <linux/types.h>
     35 #endif
     36 
     37 #endif /* OP_TYPES_H */
     38