Files
xen/extras/mini-os/include/sys/time.h
T
Matthew Fioravante 5c2852a2a5 minios: add select definition to sys/time.h when HAVE_LIBC is defined
This patch adds the select function to sys/time.h when HAVE_LIBC is
defined, which is according to standard (see the select() manpage).
It also removes a redudant lwip include from posix/sys/select.h.

Signed-off-by: Matthew Fioravante <matthew.fioravante@jhuapl.edu>
Acked-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
2012-10-09 10:39:09 +01:00

48 lines
1.2 KiB
C

/* -*- Mode:C; c-basic-offset:4; tab-width:4 -*-
****************************************************************************
* (C) 2003 - Rolf Neugebauer - Intel Research Cambridge
* (C) 2005 - Grzegorz Milos - Intel Research Cambridge
****************************************************************************
*
* File: time.h
* Author: Rolf Neugebauer (neugebar@dcs.gla.ac.uk)
* Changes: Grzegorz Milos (gm281@cam.ac.uk)
* Robert Kaiser (kaiser@informatik.fh-wiesbaden.de)
*
* Date: Jul 2003, changes: Jun 2005, Sep 2006
*
* Environment: Xen Minimal OS
* Description: Time and timer functions
*
****************************************************************************
*/
#ifndef _MINIOS_SYS_TIME_H_
#define _MINIOS_SYS_TIME_H_
#ifdef HAVE_LIBC
#include_next <sys/time.h>
#else
struct timespec {
time_t tv_sec;
long tv_nsec;
};
struct timezone {
};
struct timeval {
time_t tv_sec; /* seconds */
suseconds_t tv_usec; /* microseconds */
};
int gettimeofday(struct timeval *tv, void *tz);
#endif
#ifdef HAVE_LIBC
#include <sys/select.h>
#endif
#endif /* _MINIOS_SYS_TIME_H_ */