debuggers.hg

view extras/mini-os/include/sys/time.h @ 0:7d21f7218375

Exact replica of unstable on 051908 + README-this
author Mukesh Rathor
date Mon May 19 15:34:57 2008 -0700 (2008-05-19)
parents
children
line source
1 /* -*- Mode:C; c-basic-offset:4; tab-width:4 -*-
2 ****************************************************************************
3 * (C) 2003 - Rolf Neugebauer - Intel Research Cambridge
4 * (C) 2005 - Grzegorz Milos - Intel Research Cambridge
5 ****************************************************************************
6 *
7 * File: time.h
8 * Author: Rolf Neugebauer (neugebar@dcs.gla.ac.uk)
9 * Changes: Grzegorz Milos (gm281@cam.ac.uk)
10 * Robert Kaiser (kaiser@informatik.fh-wiesbaden.de)
11 *
12 * Date: Jul 2003, changes: Jun 2005, Sep 2006
13 *
14 * Environment: Xen Minimal OS
15 * Description: Time and timer functions
16 *
17 ****************************************************************************
18 */
20 #ifndef _MINIOS_SYS_TIME_H_
21 #define _MINIOS_SYS_TIME_H_
23 #ifdef HAVE_LIBC
24 #include_next <sys/time.h>
25 #else
26 struct timespec {
27 time_t tv_sec;
28 long tv_nsec;
29 };
31 struct timezone {
32 };
34 struct timeval {
35 time_t tv_sec; /* seconds */
36 suseconds_t tv_usec; /* microseconds */
37 };
39 int gettimeofday(struct timeval *tv, void *tz);
40 #endif
42 #endif /* _MINIOS_SYS_TIME_H_ */