Search
lxdream.org :: lxdream/test/include/sys/time.h
lxdream 0.9.1
released Jun 29
Download Now
filename test/include/sys/time.h
changeset 185:6755a04c447f
author nkeynes
date Fri Feb 08 00:06:56 2008 +0000 (16 years ago)
permissions -rw-r--r--
last change Fix LDS/STS to FPUL/FPSCR to check the FPU disabled bit. Fixes
the linux 2.4.0-test8 kernel boot
(this wasn't exactly very well documented in the original manual)
view annotate diff log raw
     1 /* 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. */
     5 #ifndef _SYS_TIME_H_
     6 #define _SYS_TIME_H_
     8 #include <_ansi.h>
     9 #include <sys/types.h>
    11 #ifdef __cplusplus
    12 extern "C" {
    13 #endif
    15 #ifndef _WINSOCK_H
    16 struct timeval {
    17   long tv_sec;
    18   long tv_usec;
    19 };
    21 struct timezone {
    22   int tz_minuteswest;
    23   int tz_dsttime;
    24 };
    26 #ifdef __CYGWIN32__
    27 #include <sys/select.h>
    28 #endif /* __CYGWIN32__ */
    30 #endif /* _WINSOCK_H */
    32 #define ITIMER_REAL     0
    33 #define ITIMER_VIRTUAL  1
    34 #define ITIMER_PROF     2
    36 struct  itimerval {
    37   struct  timeval it_interval;
    38   struct  timeval it_value;
    39 };
    41 int _EXFUN(gettimeofday, (struct timeval *__p, struct timezone *__z));
    42 int _EXFUN(settimeofday, (const struct timeval *, const struct timezone *));
    43 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));
    48 #ifdef __cplusplus
    49 }
    50 #endif
    51 #endif /* _SYS_TIME_H_ */
.