Subversion Repositories tendra.SVN

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
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
 
29
# Corrigenda U013 1170/02: define id_t
30
+IMPLEMENT "unix95", "sys/types.h", "id_t" ;
31
 
32
+TYPE ( unsigned ) rlim_t ;
33
 
34
+CONST int PRIO_PROCESS, PRIO_PGRP, PRIO_USER ;
35
 
36
+CONST rlim_t RLIM_INFINITY ;
37
 
38
+FIELD struct rlimit {
39
    rlim_t rlim_cur ;
40
    rlim_t rlim_max ;
41
} ;
42
 
43
+SUBSET "rusage" := {
44
    +IMPLEMENT "unix95", "sys/time.h", "timeval" ;
45
 
46
    +FIELD struct rusage {
47
	struct timeval ru_utime ;
48
	struct timeval ru_stime ;
49
    } ;
50
} ;
51
 
52
+CONST int RLIMIT_CORE, RLIMIT_CPU, RLIMIT_DATA, RLIMIT_FSIZE ;
53
+CONST int RLIMIT_NOFILE, RLIMIT_STACK, RLIMIT_AS ;
54
 
55
+CONST int RUSAGE_SELF, RUSAGE_CHILDREN ;
56
 
57
+FUNC int getpriority ( int, id_t ) ;
58
+FUNC int getrlimit ( int, struct rlimit * ) ;
59
+FUNC int getrusage ( int, struct rusage * ) ;
60
+FUNC int setpriority ( int, id_t, int ) ;
61
+FUNC int setrlimit ( int, const struct rlimit * ) ;