Subversion Repositories Kolibri OS

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
4973 right-hear 1
/* Copyright (C) 1999 DJ Delorie, see COPYING.DJ for details */
2
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
3
#ifndef __dj_include_sys_time_h_
4
#define __dj_include_sys_time_h_
5
 
6
#ifdef __cplusplus
7
extern "C" {
8
#endif
9
 
10
#ifndef __dj_ENFORCE_ANSI_FREESTANDING
11
 
12
#ifndef __STRICT_ANSI__
13
 
14
#ifndef _POSIX_SOURCE
15
 
16
#include 
17
 
18
#define ITIMER_REAL      0
19
#define ITIMER_PROF      1
20
 
21
struct itimerval {
22
  struct  timeval it_interval;    /* timer interval */
23
  struct  timeval it_value;       /* current value */
24
};
25
 
26
/* Applications should set this to the number of microseconds between
27
   timer ticks if they reprogram the system clock.  By default, it is
28
   set to -1, which causes setitimer to use the default 54.925 msec
29
   clock granularity.  */
30
extern long __djgpp_clock_tick_interval;
31
 
32
int getitimer(int _which, struct itimerval *_value);
33
int setitimer(int _which, struct itimerval *_value, struct itimerval *_ovalue);
34
int utimes(const char *_file, struct timeval _tvp[2]);
35
 
36
#endif /* !_POSIX_SOURCE */
37
#endif /* !__STRICT_ANSI__ */
38
#endif /* !__dj_ENFORCE_ANSI_FREESTANDING */
39
 
40
#ifndef __dj_ENFORCE_FUNCTION_CALLS
41
#endif /* !__dj_ENFORCE_FUNCTION_CALLS */
42
 
43
#ifdef __cplusplus
44
}
45
#endif
46
 
47
#endif /* !__dj_include_sys_time_h_ */