Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Main Page
Related Pages
Topics
Namespaces
Data Structures
Files
File List
Globals
EXTERNAL_HEADERS
RSL
util
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 */
41
typedef
struct
rlimit
rw_rlimit
;
42
#else
/* _XOPEN_UNIX */
46
typedef
unsigned
long
rw_rlim_t
;
50
struct
rw_rlimit
{
51
rw_rlim_t
rlim_cur
;
52
rw_rlim_t
rlim_max
;
53
};
57
typedef
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
75
struct
target_opts
{
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
;
85
rw_rlimit
*
core
;
86
rw_rlimit
*
cpu
;
87
rw_rlimit
*
data
;
88
rw_rlimit
*
fsize
;
89
rw_rlimit
*
nofile
;
90
rw_rlimit
*
stack
;
91
rw_rlimit
*
as
;
92
};
93
97
enum
ProcessStatus
{
98
ST_OK
= 0,
99
ST_COMPILE
,
100
ST_LINK
,
101
ST_EXIST
,
102
ST_EXECUTE_FLAG
,
103
ST_EXECUTE
,
104
ST_NO_OUTPUT
,
105
ST_NO_REF
,
106
ST_BAD_REF
,
107
ST_BAD_OUTPUT
,
108
ST_FORMAT
,
109
ST_OVERFLOW
,
110
ST_SYSTEM_ERROR
,
111
ST_KILLED
,
112
ST_NOT_KILLED
,
113
ST_LAST
114
};
115
119
struct
target_status
{
120
int
exit
;
121
int
signaled
;
123
enum
ProcessStatus
status
;
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_rlimit
Definition
target.h:50
rw_rlimit::rlim_cur
rw_rlim_t rlim_cur
Definition
target.h:51
rw_rlimit::rlim_max
rw_rlim_t rlim_max
Definition
target.h:52
target_opts
Definition
target.h:75
target_opts::cpu
rw_rlimit * cpu
Definition
target.h:86
target_opts::timeout
unsigned timeout
Definition
target.h:77
target_opts::l_warn
const char * l_warn
Definition
target.h:80
target_opts::argv
char ** argv
Definition
target.h:76
target_opts::fsize
rw_rlimit * fsize
Definition
target.h:88
target_opts::verbose
int verbose
Definition
target.h:84
target_opts::infname
const char * infname
Definition
target.h:81
target_opts::stack
rw_rlimit * stack
Definition
target.h:90
target_opts::data_dir
const char * data_dir
Definition
target.h:78
target_opts::as
rw_rlimit * as
Definition
target.h:91
target_opts::outfname
const char * outfname
Definition
target.h:82
target_opts::data
rw_rlimit * data
Definition
target.h:87
target_opts::c_warn
const char * c_warn
Definition
target.h:79
target_opts::compat
int compat
Definition
target.h:83
target_opts::nofile
rw_rlimit * nofile
Definition
target.h:89
target_opts::core
rw_rlimit * core
Definition
target.h:85
target_status
Definition
target.h:119
target_status::usr_time
clock_t usr_time
Definition
target.h:124
target_status::exit
int exit
Definition
target.h:120
target_status::l_warn
unsigned l_warn
Definition
target.h:128
target_status::status
enum ProcessStatus status
Definition
target.h:123
target_status::sys_time
clock_t sys_time
Definition
target.h:125
target_status::c_warn
unsigned c_warn
Definition
target.h:127
target_status::t_warn
unsigned t_warn
Definition
target.h:129
target_status::signaled
int signaled
Definition
target.h:121
target_status::wall_time
clock_t wall_time
Definition
target.h:126
target_status::assert
unsigned assert
Definition
target.h:130
target_status::failed
unsigned failed
Definition
target.h:131
ProcessStatus
ProcessStatus
Definition
target.h:97
ST_KILLED
@ ST_KILLED
Definition
target.h:111
ST_OVERFLOW
@ ST_OVERFLOW
Definition
target.h:109
ST_OK
@ ST_OK
Definition
target.h:98
ST_LINK
@ ST_LINK
Definition
target.h:100
ST_LAST
@ ST_LAST
Definition
target.h:113
ST_COMPILE
@ ST_COMPILE
Definition
target.h:99
ST_EXIST
@ ST_EXIST
Definition
target.h:101
ST_BAD_OUTPUT
@ ST_BAD_OUTPUT
Definition
target.h:107
ST_EXECUTE
@ ST_EXECUTE
Definition
target.h:103
ST_SYSTEM_ERROR
@ ST_SYSTEM_ERROR
Definition
target.h:110
ST_FORMAT
@ ST_FORMAT
Definition
target.h:108
ST_NO_OUTPUT
@ ST_NO_OUTPUT
Definition
target.h:104
ST_EXECUTE_FLAG
@ ST_EXECUTE_FLAG
Definition
target.h:102
ST_NOT_KILLED
@ ST_NOT_KILLED
Definition
target.h:112
ST_BAD_REF
@ ST_BAD_REF
Definition
target.h:106
ST_NO_REF
@ ST_NO_REF
Definition
target.h:105
rw_rlim_t
unsigned long rw_rlim_t
Definition
target.h:46
time.h
Generated by
1.9.8