Commit 6971b8ef authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

headers: types.h -- Move uX types to int.h header

This allows to use it in external projects outside of
types.h header, moreover it's close to what kernel
does too.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 7aae1934
#ifndef __CR_INT_H__
#define __CR_INT_H__
#include <stdint.h>
typedef uint64_t u64;
typedef int64_t s64;
typedef unsigned int u32;
typedef signed int s32;
typedef unsigned short u16;
typedef signed short s16;
typedef unsigned char u8;
typedef signed char s8;
#endif /* __CR_INT_H__ */
......@@ -7,6 +7,7 @@
#include "protobuf/core.pb-c.h"
#include "asm/bitops.h"
#include "asm/int.h"
/* prctl.h */
#define PR_SET_NAME 15
......@@ -61,15 +62,6 @@
#define ERESTARTNOHAND 514
#define ERESTART_RESTARTBLOCK 516
typedef uint64_t u64;
typedef int64_t s64;
typedef unsigned int u32;
typedef signed int s32;
typedef unsigned short u16;
typedef signed short s16;
typedef unsigned char u8;
typedef signed char s8;
#define MAJOR(dev) ((dev)>>8)
#define MINOR(dev) ((dev) & 0xff)
......
#ifndef __CR_INT_H__
#define __CR_INT_H__
#include <stdint.h>
typedef uint64_t u64;
typedef int64_t s64;
typedef unsigned int u32;
typedef signed int s32;
typedef unsigned short u16;
typedef signed short s16;
typedef unsigned char u8;
typedef signed char s8;
#endif /* __CR_INT_H__ */
#ifndef __CR_ASM_TYPES_H__
#define __CR_ASM_TYPES_H__
#include <stdint.h>
#include <stdbool.h>
#include <signal.h>
#include "asm/bitops.h"
#include "asm/int.h"
#include "protobuf/core.pb-c.h"
......@@ -71,15 +71,6 @@
#define ERESTARTNOHAND 514
#define ERESTART_RESTARTBLOCK 516
typedef uint64_t u64;
typedef int64_t s64;
typedef unsigned int u32;
typedef signed int s32;
typedef unsigned short u16;
typedef signed short s16;
typedef unsigned char u8;
typedef signed char s8;
#define MAJOR(dev) ((dev)>>8)
#define MINOR(dev) ((dev) & 0xff)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment