Commit 8f64a14a authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

headers: Move fcntl related data to include/fcntl.h

fcntl data is arch independent, so move it out of include/asm/type.h
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 98efb3c9
...@@ -36,21 +36,6 @@ ...@@ -36,21 +36,6 @@
#define PR_GET_TID_ADDRESS 40 #define PR_GET_TID_ADDRESS 40
/* fcntl */
#ifndef F_LINUX_SPECIFIC_BASE
#define F_LINUX_SPECIFIC_BASE 1024
#endif
#ifndef F_SETPIPE_SZ
# define F_SETPIPE_SZ (F_LINUX_SPECIFIC_BASE + 7)
#endif
#ifndef F_GETPIPE_SZ
# define F_GETPIPE_SZ (F_LINUX_SPECIFIC_BASE + 8)
#endif
#ifndef F_GETOWNER_UIDS
#define F_GETOWNER_UIDS 17
#endif
#define CLONE_CHILD_USEPID 0x02000000 #define CLONE_CHILD_USEPID 0x02000000
#define CLONE_VFORK 0x00004000 #define CLONE_VFORK 0x00004000
...@@ -172,18 +157,6 @@ enum kcmp_type { ...@@ -172,18 +157,6 @@ enum kcmp_type {
# define SCM_MAX_FD 253 # define SCM_MAX_FD 253
#endif #endif
#include <fcntl.h>
#ifndef F_SETOWN_EX
#define F_SETOWN_EX 15
#define F_GETOWN_EX 16
struct f_owner_ex {
int type;
pid_t pid;
};
#endif
/* File handle */ /* File handle */
typedef struct { typedef struct {
u32 bytes; u32 bytes;
......
...@@ -46,21 +46,6 @@ ...@@ -46,21 +46,6 @@
#define PR_GET_TID_ADDRESS 40 #define PR_GET_TID_ADDRESS 40
/* fcntl */
#ifndef F_LINUX_SPECIFIC_BASE
#define F_LINUX_SPECIFIC_BASE 1024
#endif
#ifndef F_SETPIPE_SZ
# define F_SETPIPE_SZ (F_LINUX_SPECIFIC_BASE + 7)
#endif
#ifndef F_GETPIPE_SZ
# define F_GETPIPE_SZ (F_LINUX_SPECIFIC_BASE + 8)
#endif
#ifndef F_GETOWNER_UIDS
#define F_GETOWNER_UIDS 17
#endif
#define CLONE_CHILD_USEPID 0x02000000 #define CLONE_CHILD_USEPID 0x02000000
#define CLONE_VFORK 0x00004000 #define CLONE_VFORK 0x00004000
...@@ -196,18 +181,6 @@ enum kcmp_type { ...@@ -196,18 +181,6 @@ enum kcmp_type {
# define SCM_MAX_FD 253 # define SCM_MAX_FD 253
#endif #endif
#include <fcntl.h>
#ifndef F_SETOWN_EX
#define F_SETOWN_EX 15
#define F_GETOWN_EX 16
struct f_owner_ex {
int type;
pid_t pid;
};
#endif
/* File handle */ /* File handle */
typedef struct { typedef struct {
u32 bytes; u32 bytes;
......
#include <unistd.h> #include <unistd.h>
#include <stdarg.h> #include <stdarg.h>
#include <fcntl.h>
#include "crtools.h" #include "crtools.h"
#include "cr_options.h" #include "cr_options.h"
#include "fdset.h" #include "fdset.h"
......
#ifndef __CR_ASM_GENERIC_FCNTL_H__
#define __CR_ASM_GENERIC_FCNTL_H__
#include <sys/types.h>
#include <fcntl.h>
#ifndef F_SETOWN_EX
#define F_SETOWN_EX 15
#define F_GETOWN_EX 16
struct f_owner_ex {
int type;
pid_t pid;
};
#endif
#ifndef F_GETOWNER_UIDS
#define F_GETOWNER_UIDS 17
#endif
#ifndef F_LINUX_SPECIFIC_BASE
#define F_LINUX_SPECIFIC_BASE 1024
#endif
#ifndef F_SETPIPE_SZ
# define F_SETPIPE_SZ (F_LINUX_SPECIFIC_BASE + 7)
#endif
#ifndef F_GETPIPE_SZ
# define F_GETPIPE_SZ (F_LINUX_SPECIFIC_BASE + 8)
#endif
#endif /* __CR_ASM_GENERIC_FCNTL_H__ */
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
#include "compiler.h" #include "compiler.h"
#include "asm/types.h" #include "asm/types.h"
#include "fcntl.h"
#include "lock.h" #include "lock.h"
#include "list.h" #include "list.h"
#include "image.h" #include "image.h"
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
#include <stdio.h> #include <stdio.h>
#include <sys/mman.h> #include <sys/mman.h>
#include <errno.h> #include <errno.h>
#include <fcntl.h>
#include "cr_options.h" #include "cr_options.h"
#include "servicefd.h" #include "servicefd.h"
......
#include <unistd.h> #include <unistd.h>
#include <fcntl.h>
#undef LOG_PREFIX #undef LOG_PREFIX
#define LOG_PREFIX "page-pipe: " #define LOG_PREFIX "page-pipe: "
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
#include <netinet/in.h> #include <netinet/in.h>
#include <arpa/inet.h> #include <arpa/inet.h>
#include <unistd.h> #include <unistd.h>
#include <fcntl.h>
#include "cr_options.h" #include "cr_options.h"
#include "servicefd.h" #include "servicefd.h"
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
#include "syscall.h" #include "syscall.h"
#include "parasite.h" #include "parasite.h"
#include "fcntl.h"
#include "lock.h" #include "lock.h"
#include "vdso.h" #include "vdso.h"
#include "log.h" #include "log.h"
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
#endif #endif
#include "util-pie.h" #include "util-pie.h"
#include "fcntl.h"
static void scm_fdset_init_chunk(struct scm_fdset *fdset, int nr_fds) static void scm_fdset_init_chunk(struct scm_fdset *fdset, int nr_fds)
{ {
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
#include "asm/string.h" #include "asm/string.h"
#include "asm/types.h" #include "asm/types.h"
#include "syscall.h" #include "syscall.h"
#include "fcntl.h"
#include "log.h" #include "log.h"
#include "util-pie.h" #include "util-pie.h"
......
#include <unistd.h> #include <unistd.h>
#include <sys/mman.h> #include <sys/mman.h>
#include <stdlib.h> #include <stdlib.h>
#include <fcntl.h>
#include "pid.h" #include "pid.h"
#include "shmem.h" #include "shmem.h"
......
#include <unistd.h> #include <unistd.h>
#include <fcntl.h>
#include <sys/time.h> #include <sys/time.h>
#include "asm/atomic.h" #include "asm/atomic.h"
#include "protobuf.h" #include "protobuf.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