2012-04-18 01:55:00 +04:00
|
|
|
/*
|
|
|
|
* Please add here type definitions if
|
|
|
|
* syscall prototypes need them.
|
|
|
|
*
|
|
|
|
* Anything else should go to plain type.h
|
|
|
|
*/
|
|
|
|
|
2012-12-25 22:40:24 +04:00
|
|
|
#ifndef __CR_SYSCALL_TYPES_H__
|
|
|
|
#define __CR_SYSCALL_TYPES_H__
|
2012-04-18 01:55:00 +04:00
|
|
|
|
|
|
|
#include <sys/time.h>
|
|
|
|
#include <arpa/inet.h>
|
2012-10-17 00:23:25 +04:00
|
|
|
#include <sched.h>
|
2012-04-18 01:55:00 +04:00
|
|
|
|
2013-01-09 17:02:47 +04:00
|
|
|
#include "asm/types.h"
|
2012-04-18 01:55:00 +04:00
|
|
|
|
|
|
|
struct cap_header {
|
|
|
|
u32 version;
|
|
|
|
int pid;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct cap_data {
|
|
|
|
u32 eff;
|
|
|
|
u32 prm;
|
|
|
|
u32 inh;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct sockaddr;
|
|
|
|
struct msghdr;
|
|
|
|
struct rusage;
|
2012-05-04 13:38:00 +04:00
|
|
|
struct file_handle;
|
2012-08-10 12:23:03 +04:00
|
|
|
struct robust_list_head;
|
2012-04-18 01:55:00 +04:00
|
|
|
|
2013-06-27 23:32:17 +04:00
|
|
|
struct itimerspec;
|
|
|
|
|
2012-04-18 01:55:00 +04:00
|
|
|
#ifndef F_GETFD
|
|
|
|
#define F_GETFD 1
|
|
|
|
#endif
|
|
|
|
|
2012-05-12 03:30:10 +04:00
|
|
|
#ifndef CLONE_NEWNS
|
|
|
|
#define CLONE_NEWNS 0x00020000
|
|
|
|
#endif
|
|
|
|
|
2012-04-18 01:55:00 +04:00
|
|
|
#ifndef CLONE_NEWPID
|
|
|
|
#define CLONE_NEWPID 0x20000000
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef CLONE_NEWUTS
|
|
|
|
#define CLONE_NEWUTS 0x04000000
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef CLONE_NEWIPC
|
|
|
|
#define CLONE_NEWIPC 0x08000000
|
|
|
|
#endif
|
|
|
|
|
2012-08-02 08:06:29 +04:00
|
|
|
#ifndef CLONE_NEWNET
|
|
|
|
#define CLONE_NEWNET 0x40000000
|
|
|
|
#endif
|
|
|
|
|
2014-10-14 15:38:00 +04:00
|
|
|
#ifndef CLONE_NEWUSER
|
|
|
|
#define CLONE_NEWUSER 0x10000000
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define CLONE_ALLNS (CLONE_NEWPID | CLONE_NEWNET | CLONE_NEWIPC | CLONE_NEWUTS | CLONE_NEWNS | CLONE_NEWUSER)
|
2013-01-19 01:16:19 +04:00
|
|
|
|
2014-04-21 18:23:21 +04:00
|
|
|
/* Nested namespaces are supported only for these types */
|
|
|
|
#define CLONE_SUBNS (CLONE_NEWNS)
|
|
|
|
|
2012-04-18 01:55:00 +04:00
|
|
|
#define setns sys_setns
|
|
|
|
|
2013-01-10 20:08:38 +04:00
|
|
|
struct rlimit;
|
2013-05-23 13:34:51 +04:00
|
|
|
struct rlimit64;
|
2013-01-10 20:08:38 +04:00
|
|
|
|
2013-01-16 19:15:40 +04:00
|
|
|
struct krlimit {
|
|
|
|
unsigned long rlim_cur;
|
|
|
|
unsigned long rlim_max;
|
|
|
|
};
|
|
|
|
|
2012-12-25 22:40:24 +04:00
|
|
|
#endif /* __CR_SYSCALL_TYPES_H__ */
|