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 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)
file annotate diff log raw
nkeynes@185
     1
/* timeb.h -- An implementation of the standard Unix <sys/timeb.h> file.
nkeynes@185
     2
   Written by Ian Lance Taylor <ian@cygnus.com>
nkeynes@185
     3
   Public domain; no rights reserved.
nkeynes@185
     4
nkeynes@185
     5
   <sys/timeb.h> declares the structure used by the ftime function, as
nkeynes@185
     6
   well as the ftime function itself.  Newlib does not provide an
nkeynes@185
     7
   implementation of ftime.  */
nkeynes@185
     8
nkeynes@185
     9
#ifndef _SYS_TIMEB_H
nkeynes@185
    10
nkeynes@185
    11
#ifdef __cplusplus
nkeynes@185
    12
extern "C" {
nkeynes@185
    13
#endif
nkeynes@185
    14
nkeynes@185
    15
#define _SYS_TIMEB_H
nkeynes@185
    16
nkeynes@185
    17
#include <_ansi.h>
nkeynes@185
    18
#include <machine/types.h>
nkeynes@185
    19
nkeynes@185
    20
#ifndef __time_t_defined
nkeynes@185
    21
typedef _TIME_T_ time_t;
nkeynes@185
    22
#define __time_t_defined
nkeynes@185
    23
#endif
nkeynes@185
    24
nkeynes@185
    25
struct timeb
nkeynes@185
    26
{
nkeynes@185
    27
  time_t time;
nkeynes@185
    28
  unsigned short millitm;
nkeynes@185
    29
  short timezone;
nkeynes@185
    30
  short dstflag;
nkeynes@185
    31
};
nkeynes@185
    32
nkeynes@185
    33
extern int ftime _PARAMS ((struct timeb *));
nkeynes@185
    34
nkeynes@185
    35
#ifdef __cplusplus
nkeynes@185
    36
}
nkeynes@185
    37
#endif
nkeynes@185
    38
nkeynes@185
    39
#endif /* ! defined (_SYS_TIMEB_H) */
.