Subversion Repositories tendra.SVN

Rev

Details | 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
$SOURCENAME = "sys/sys_time.h" ;
29
 
30
 
31
+SUBSET "timeval" := {
32
    # Duplicated in a number of places
33
    $PROTECT = "__TDF_STRUCT_TIMEVAL" ;
34
 
35
    +IMPLEMENT "ansi", "time.h", "time_t" ;
36
 
37
    +FIELD struct timeval {
38
	time_t tv_sec ;
39
	long tv_usec ;
40
    } ;
41
} ;
42
 
43
+FIELD struct itimerval {
44
    struct timeval it_interval ;
45
    struct timeval it_value ;
46
} ;
47
 
48
+NAT ~fds_bits_size ;
49
 
50
+FIELD (struct) fd_set {
51
    long fds_bits [ ~fds_bits_size ] ;
52
} ;
53
 
54
+CONST int ITIMER_REAL, ITIMER_VIRTUAL, ITIMER_PROF ;
55
 
56
+FUNC int getitimer ( int, struct itimerval * ) ;
57
+FUNC int setitimer ( int, const struct itimerval *, struct itimerval * ) ;
58
+FUNC int gettimeofday ( struct timeval *, void * ) ;
59
 
60
 
61
+CONST int FD_SETSIZE ;
62
+MACRO void FD_SET ( int, fd_set * ) ;
63
+MACRO void FD_CLR ( int, fd_set * ) ;
64
+MACRO int FD_ISSET ( int, fd_set * ) ;
65
+MACRO void FD_ZERO ( fd_set * ) ;
66
 
67
 
68
+FUNC int select ( int, fd_set *, fd_set *, fd_set *, struct timeval * ) ;
69
+FUNC int utimes ( const char *, const struct timeval [2] ) ;