OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib/] [newlib/] [libc/] [include/] [sys/] [time.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 39 lampret
/* time.h -- An implementation of the standard Unix <sys/time.h> file.
2
   Written by Geoffrey Noer <noer@cygnus.com>
3
   Public domain; no rights reserved. */
4
 
5
#ifndef _SYS_TIME_H_
6 56 joel
#define _SYS_TIME_H_
7
 
8
#include <_ansi.h>
9
#include <sys/types.h>
10
 
11 39 lampret
#ifdef __cplusplus
12
extern "C" {
13
#endif
14
 
15 56 joel
#ifndef _WINSOCK_H
16 39 lampret
struct timeval {
17
  long tv_sec;
18
  long tv_usec;
19
};
20
 
21
struct timezone {
22
  int tz_minuteswest;
23
  int tz_dsttime;
24
};
25
 
26
#ifdef __CYGWIN32__
27 56 joel
#include <sys/select.h>
28
#endif /* __CYGWIN32__ */
29
 
30
#endif /* _WINSOCK_H */
31
 
32 39 lampret
#define ITIMER_REAL     0
33
#define ITIMER_VIRTUAL  1
34
#define ITIMER_PROF     2
35
 
36
struct  itimerval {
37
  struct  timeval it_interval;
38
  struct  timeval it_value;
39
};
40
 
41 56 joel
int _EXFUN(gettimeofday, (struct timeval *__p, struct timezone *__z));
42 39 lampret
int _EXFUN(settimeofday, (const struct timeval *, const struct timezone *));
43 56 joel
int _EXFUN(utimes, (const char *__path, struct timeval *__tvp));
44
int _EXFUN(getitimer, (int __which, struct itimerval *__value));
45
int _EXFUN(setitimer, (int __which, const struct itimerval *__value,
46
                                        struct itimerval *__ovalue));
47 39 lampret
 
48
#ifdef __cplusplus
49
}
50
#endif
51
#endif /* _SYS_TIME_H_ */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.