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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [rc203soc/] [sw/] [uClinux/] [include/] [linux/] [time.h] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1633 jcastillo
#ifndef _LINUX_TIME_H
2
#define _LINUX_TIME_H
3
 
4
#ifndef _STRUCT_TIMESPEC
5
#define _STRUCT_TIMESPEC
6
struct timespec {
7
        long    tv_sec;         /* seconds */
8
        long    tv_nsec;        /* nanoseconds */
9
};
10
#endif /* _STRUCT_TIMESPEC */
11
 
12
struct timeval {
13
        int     tv_sec;         /* seconds */
14
        int     tv_usec;        /* microseconds */
15
};
16
 
17
struct timezone {
18
        int     tz_minuteswest; /* minutes west of Greenwich */
19
        int     tz_dsttime;     /* type of dst correction */
20
};
21
 
22
#define NFDBITS                 __NFDBITS
23
 
24
#ifdef __KERNEL__
25
void do_gettimeofday(struct timeval *tv);
26
void do_settimeofday(struct timeval *tv);
27
#endif
28
 
29
#define FD_SETSIZE              __FD_SETSIZE
30
#define FD_SET(fd,fdsetp)       __FD_SET(fd,fdsetp)
31
#define FD_CLR(fd,fdsetp)       __FD_CLR(fd,fdsetp)
32
#define FD_ISSET(fd,fdsetp)     __FD_ISSET(fd,fdsetp)
33
#define FD_ZERO(fdsetp)         __FD_ZERO(fdsetp)
34
 
35
/*
36
 * Names of the interval timers, and structure
37
 * defining a timer setting.
38
 */
39
#define ITIMER_REAL     0
40
#define ITIMER_VIRTUAL  1
41
#define ITIMER_PROF     2
42
 
43
struct  itimerspec {
44
        struct  timespec it_interval;    /* timer period */
45
        struct  timespec it_value;       /* timer expiration */
46
};
47
 
48
struct  itimerval {
49
        struct  timeval it_interval;    /* timer interval */
50
        struct  timeval it_value;       /* current value */
51
};
52
 
53
#endif

powered by: WebSVN 2.1.0

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