2 |
7u83 |
1 |
# Crown Copyright (c) 1997
|
|
|
2 |
#
|
|
|
3 |
# This TenDRA(r) Computer Program is subject to Copyright
|
|
|
4 |
# owned by the United Kingdom Secretary of State for Defence
|
|
|
5 |
# acting through the Defence Evaluation and Research Agency
|
|
|
6 |
# (DERA). It is made available to Recipients with a
|
|
|
7 |
# royalty-free licence for its use, reproduction, transfer
|
|
|
8 |
# to other parties and amendment for any purpose not excluding
|
|
|
9 |
# product development provided that any such use et cetera
|
|
|
10 |
# shall be deemed to be acceptance of the following conditions:-
|
|
|
11 |
#
|
|
|
12 |
# (1) Its Recipients shall ensure that this Notice is
|
|
|
13 |
# reproduced upon any copies or amended versions of it;
|
|
|
14 |
#
|
|
|
15 |
# (2) Any amended version of it shall be clearly marked to
|
|
|
16 |
# show both the nature of and the organisation responsible
|
|
|
17 |
# for the relevant amendment or amendments;
|
|
|
18 |
#
|
|
|
19 |
# (3) Its onward transfer from a recipient to another
|
|
|
20 |
# party shall be deemed to be that party's acceptance of
|
|
|
21 |
# these conditions;
|
|
|
22 |
#
|
|
|
23 |
# (4) DERA gives no warranty or assurance as to its
|
|
|
24 |
# quality or suitability for any purpose and DERA accepts
|
|
|
25 |
# no liability whatsoever in relation to any use to which
|
|
|
26 |
# it may be put.
|
|
|
27 |
#
|
|
|
28 |
+USE "svid3", "", "config" ;
|
|
|
29 |
|
|
|
30 |
+IF %% __SYSV_REMOTE_ADMINISTRATION %%
|
|
|
31 |
|
|
|
32 |
+CONST int APPEND, UPDATE, READ ;
|
|
|
33 |
|
|
|
34 |
+CONST int ST_QUEUED, ST_INPROGRESS, ST_SUCCEEDED, ST_FAILED ;
|
|
|
35 |
+CONST int ST_CANCELLED, ST_TIMEOUT, ST_REJECTED ;
|
|
|
36 |
|
|
|
37 |
+FIELD struct remop | remop_struct {
|
|
|
38 |
char *machine ;
|
|
|
39 |
int sid ;
|
|
|
40 |
int adminid ;
|
|
|
41 |
int primid ;
|
|
|
42 |
int depend_flg ;
|
|
|
43 |
int dependid ;
|
|
|
44 |
int exit_status ;
|
|
|
45 |
int filler ;
|
|
|
46 |
struct remop *next ;
|
|
|
47 |
} ;
|
|
|
48 |
|
|
|
49 |
+CONST int DST_LEN, SVC_LEN, PRIM_LEN, NS_LEN ;
|
|
|
50 |
+NAT ~DST_LEN, ~SVC_LEN, ~PRIM_LEN, ~NS_LEN ;
|
|
|
51 |
|
|
|
52 |
+FIELD struct job_record {
|
|
|
53 |
long rtime ;
|
|
|
54 |
int sid ;
|
|
|
55 |
int adminid ;
|
|
|
56 |
int primid ;
|
|
|
57 |
int stat ;
|
|
|
58 |
char dst [ ~DST_LEN ] ;
|
|
|
59 |
char svc [ ~SVC_LEN ] ;
|
|
|
60 |
char prim [ ~PRIM_LEN ] ;
|
|
|
61 |
char ns [ ~NS_LEN ] ;
|
|
|
62 |
} ;
|
|
|
63 |
|
|
|
64 |
+FIELD struct stringll {
|
|
|
65 |
char *name ;
|
|
|
66 |
char *value ;
|
|
|
67 |
struct stringll *next ;
|
|
|
68 |
} ;
|
|
|
69 |
|
|
|
70 |
+FUNC int mgroup ( const char *, struct remop ** ) ;
|
|
|
71 |
+FUNC int remop ( const char *, const char *, const char *, struct remop *,
|
|
|
72 |
const char *, const char * ) ;
|
|
|
73 |
+FUNC char *roigetuser ( char * ) ;
|
|
|
74 |
+FUNC int roijobids ( int, int * ) ;
|
|
|
75 |
+FUNC int roistat ( int, const char *, struct job_record * ) ;
|
|
|
76 |
+FUNC int roitosparse ( const char *, struct stringll ** ) ;
|
|
|
77 |
+FUNC int roitosval ( struct stringll *, const char * ) ;
|
|
|
78 |
|
|
|
79 |
+ENDIF
|