headers: Move ERESTART codes to errno.h

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Cyrill Gorcunov 2013-11-14 19:19:58 +04:00 committed by Pavel Emelyanov
parent f508c0f2dd
commit 8c7a62c4e6
5 changed files with 11 additions and 10 deletions

View file

@ -17,6 +17,7 @@
#include "elf.h"
#include "parasite-syscall.h"
#include "restorer.h"
#include "errno.h"
/*

View file

@ -12,11 +12,6 @@
#define SIGMAX 64
#define SIGMAX_OLD 31
#define ERESTARTSYS 512
#define ERESTARTNOINTR 513
#define ERESTARTNOHAND 514
#define ERESTART_RESTARTBLOCK 516
#define MAJOR(dev) ((dev)>>8)
#define MINOR(dev) ((dev) & 0xff)

View file

@ -15,6 +15,7 @@
#include "log.h"
#include "util.h"
#include "cpu.h"
#include "errno.h"
#include "protobuf.h"
#include "protobuf/core.pb-c.h"

View file

@ -13,11 +13,6 @@
#define SIGMAX 64
#define SIGMAX_OLD 31
#define ERESTARTSYS 512
#define ERESTARTNOINTR 513
#define ERESTARTNOHAND 514
#define ERESTART_RESTARTBLOCK 516
#define MAJOR(dev) ((dev)>>8)
#define MINOR(dev) ((dev) & 0xff)

9
include/errno.h Normal file
View file

@ -0,0 +1,9 @@
#ifndef __CR_ERRNO_H__
#define __CR_ERRNO_H__
#define ERESTARTSYS 512
#define ERESTARTNOINTR 513
#define ERESTARTNOHAND 514
#define ERESTART_RESTARTBLOCK 516
#endif /* __CR_ERRNO_H__ */