Commit d82b621f authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

headers: Move lock.h into include/common/

Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
parent c0695672
......@@ -36,7 +36,7 @@
#include "restorer.h"
#include "sockets.h"
#include "sk-packet.h"
#include "lock.h"
#include "common/lock.h"
#include "files.h"
#include "files-reg.h"
#include "pipes.h"
......
......@@ -22,7 +22,7 @@
#include "common/list.h"
#include "rst-malloc.h"
#include "util-pie.h"
#include "lock.h"
#include "common/lock.h"
#include "sockets.h"
#include "pstree.h"
#include "tty.h"
......
......@@ -35,7 +35,7 @@
#include "file-ids.h"
#include "criu-log.h"
#include "common/list.h"
#include "lock.h"
#include "common/lock.h"
#include "irmap.h"
#include "cr_options.h"
#include "namespaces.h"
......
......@@ -6,7 +6,7 @@
#include "int.h"
#include "common/compiler.h"
#include "fcntl.h"
#include "lock.h"
#include "common/lock.h"
#include "common/list.h"
#include "pid.h"
#include "rst_info.h"
......
......@@ -16,7 +16,7 @@
#include "image.h"
#include "util-pie.h"
#include "lock.h"
#include "common/lock.h"
#include "images/vma.pb-c.h"
#include "images/tty.pb-c.h"
......
......@@ -10,7 +10,7 @@
#include "types.h"
#include "common/compiler.h"
#include "asm/fpu.h"
#include "lock.h"
#include "common/lock.h"
#include "util.h"
#include "asm/restorer.h"
#include "config.h"
......
#ifndef __CR_RST_INFO_H__
#define __CR_RST_INFO_H__
#include "lock.h"
#include "common/lock.h"
#include "common/list.h"
#include "vma.h"
......
......@@ -2,7 +2,7 @@
#define __CR_SHMEM_H__
#include "int.h"
#include "lock.h"
#include "common/lock.h"
#include "images/vma.pb-c.h"
struct _VmaEntry;
......
......@@ -18,7 +18,7 @@
#include "cr_options.h"
#include "servicefd.h"
#include "rst-malloc.h"
#include "lock.h"
#include "common/lock.h"
#include "string.h"
#define DEFAULT_LOGFD STDERR_FILENO
......
......@@ -14,7 +14,7 @@
#include "config.h"
#include "fcntl.h"
#include "prctl.h"
#include "lock.h"
#include "common/lock.h"
#include "parasite-vdso.h"
#include "criu-log.h"
#include "tty.h"
......
......@@ -31,7 +31,7 @@
#include "sk-inet.h"
#include "vma.h"
#include "lock.h"
#include "common/lock.h"
#include "restorer.h"
#include "aio.h"
#include "seccomp.h"
......
......@@ -7,7 +7,7 @@
#include "cr_options.h"
#include "pstree.h"
#include "rst-malloc.h"
#include "lock.h"
#include "common/lock.h"
#include "namespaces.h"
#include "files.h"
#include "tty.h"
......
#ifndef __CR_LOCK_H__
#define __CR_LOCK_H__
#ifndef __CR_COMMON_LOCK_H__
#define __CR_COMMON_LOCK_H__
#include <stdint.h>
#include <linux/futex.h>
#include <sys/time.h>
#include <limits.h>
#include <errno.h>
#include "atomic.h"
#include "log.h"
#include "common/asm/atomic.h"
#define LOCK_BUG_ON(condition) \
if ((condition)) \
......@@ -156,4 +154,4 @@ static inline void mutex_unlock(mutex_t *m)
LOCK_BUG_ON(sys_futex((uint32_t *)&m->raw.counter, FUTEX_WAKE, 1, NULL, NULL, 0) < 0);
}
#endif /* __CR_LOCK_H__ */
#endif /* __CR_COMMON_LOCK_H__ */
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