Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
target.h
Go to the documentation of this file.
1
27#ifndef RW_TARGET_H
28#define RW_TARGET_H
29
30#include <time.h> /* for clock_t */
31
32#ifndef _WIN32
33# include <unistd.h> /* For _XOPEN_UNIX */
34#endif
35
36#ifdef _XOPEN_UNIX
37# include <sys/resource.h> /* for struct rlimit */
41typedef struct rlimit rw_rlimit;
42#else /* _XOPEN_UNIX */
46typedef unsigned long rw_rlim_t;
50struct rw_rlimit {
53};
57typedef struct rw_rlimit rw_rlimit;
58#endif /* _XOPEN_UNIX */
59
60#ifndef RLIM_INFINITY
61# define RLIM_INFINITY -1
62#endif /* RLIM_INFINITY */
63
64#ifndef RLIM_SAVED_CUR
65# define RLIM_SAVED_CUR RLIM_INFINITY
66#endif /* RLIM_SAVED_CUR */
67
68#ifndef RLIM_SAVED_MAX
69# define RLIM_SAVED_MAX RLIM_INFINITY
70#endif /* RLIM_SAVED_MAX */
71
76 char** argv;
77 unsigned timeout;
78 const char* data_dir;
79 const char* c_warn;
80 const char* l_warn;
81 const char* infname;
82 const char* outfname;
83 int compat;
84 int verbose;
92};
93
98 ST_OK = 0,
113 ST_LAST
115
120 int exit;
124 clock_t usr_time;
125 clock_t sys_time;
126 clock_t wall_time;
127 unsigned c_warn;
128 unsigned l_warn;
129 unsigned t_warn;
130 unsigned assert;
131 unsigned failed;
132};
133
134#endif /* RW_TARGET_H */
rw_rlim_t rlim_cur
Definition target.h:51
rw_rlim_t rlim_max
Definition target.h:52
rw_rlimit * cpu
Definition target.h:86
unsigned timeout
Definition target.h:77
const char * l_warn
Definition target.h:80
char ** argv
Definition target.h:76
rw_rlimit * fsize
Definition target.h:88
int verbose
Definition target.h:84
const char * infname
Definition target.h:81
rw_rlimit * stack
Definition target.h:90
const char * data_dir
Definition target.h:78
rw_rlimit * as
Definition target.h:91
const char * outfname
Definition target.h:82
rw_rlimit * data
Definition target.h:87
const char * c_warn
Definition target.h:79
int compat
Definition target.h:83
rw_rlimit * nofile
Definition target.h:89
rw_rlimit * core
Definition target.h:85
clock_t usr_time
Definition target.h:124
unsigned l_warn
Definition target.h:128
enum ProcessStatus status
Definition target.h:123
clock_t sys_time
Definition target.h:125
unsigned c_warn
Definition target.h:127
unsigned t_warn
Definition target.h:129
clock_t wall_time
Definition target.h:126
unsigned assert
Definition target.h:130
unsigned failed
Definition target.h:131
ProcessStatus
Definition target.h:97
@ ST_KILLED
Definition target.h:111
@ ST_OVERFLOW
Definition target.h:109
@ ST_OK
Definition target.h:98
@ ST_LINK
Definition target.h:100
@ ST_LAST
Definition target.h:113
@ ST_COMPILE
Definition target.h:99
@ ST_EXIST
Definition target.h:101
@ ST_BAD_OUTPUT
Definition target.h:107
@ ST_EXECUTE
Definition target.h:103
@ ST_SYSTEM_ERROR
Definition target.h:110
@ ST_FORMAT
Definition target.h:108
@ ST_NO_OUTPUT
Definition target.h:104
@ ST_EXECUTE_FLAG
Definition target.h:102
@ ST_NOT_KILLED
Definition target.h:112
@ ST_BAD_REF
Definition target.h:106
@ ST_NO_REF
Definition target.h:105
unsigned long rw_rlim_t
Definition target.h:46