aboutsummaryrefslogtreecommitdiffstats
path: root/judge/judgx_com.h
blob: 80efc120a0935db7c9e7a7dfb5bbd556c5c55320 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#define IOCTL_PROC_ADD _IOWR('x',0x0,int)
#define IOCTL_PROC_GET _IOWR('x',0x1,int)
#define IOCTL_PROC_KILL _IOR('x',0x2,int)
#define IOCTL_PROC_DEL _IOR('x',0x3,int)

struct judgx_com_proc_add{
    char run_path[PATH_MAX + 1];
    unsigned long pid;
    unsigned long task;
    unsigned long timelimit;
    unsigned long hardtimelimit;
    unsigned long memlimit;
};
struct judgx_com_proc_get{
    unsigned long task;
    int status;
    unsigned long runtime;
    unsigned long peakmem;
};