Search
lxdream.org :: lxdream/test/include/sys/timeb.h
lxdream 0.9.1
released Jun 29
Download Now
filename test/include/sys/timeb.h
changeset 185:6755a04c447f
author nkeynes
date Tue Jul 11 01:35:27 2006 +0000 (15 years ago)
permissions -rw-r--r--
last change First commit of system test framework. 3 initial test cases (incomplete):
testide, testmath, and testta
view annotate diff log raw
     1 /* timeb.h -- An implementation of the standard Unix <sys/timeb.h> file.
     2    Written by Ian Lance Taylor <ian@cygnus.com>
     3    Public domain; no rights reserved.
     5    <sys/timeb.h> declares the structure used by the ftime function, as
     6    well as the ftime function itself.  Newlib does not provide an
     7    implementation of ftime.  */
     9 #ifndef _SYS_TIMEB_H
    11 #ifdef __cplusplus
    12 extern "C" {
    13 #endif
    15 #define _SYS_TIMEB_H
    17 #include <_ansi.h>
    18 #include <machine/types.h>
    20 #ifndef __time_t_defined
    21 typedef _TIME_T_ time_t;
    22 #define __time_t_defined
    23 #endif
    25 struct timeb
    26 {
    27   time_t time;
    28   unsigned short millitm;
    29   short timezone;
    30   short dstflag;
    31 };
    33 extern int ftime _PARAMS ((struct timeb *));
    35 #ifdef __cplusplus
    36 }
    37 #endif
    39 #endif /* ! defined (_SYS_TIMEB_H) */
.