diff options
author | RajithaY <rajithax.yerrumsetty@intel.com> | 2017-04-25 03:31:15 -0700 |
---|---|---|
committer | Rajitha Yerrumchetty <rajithax.yerrumsetty@intel.com> | 2017-05-22 06:48:08 +0000 |
commit | bb756eebdac6fd24e8919e2c43f7d2c8c4091f59 (patch) | |
tree | ca11e03542edf2d8f631efeca5e1626d211107e3 /qemu/roms/ipxe/src/include/time.h | |
parent | a14b48d18a9ed03ec191cf16b162206998a895ce (diff) |
Adding qemu as a submodule of KVMFORNFV
This Patch includes the changes to add qemu as a submodule to
kvmfornfv repo and make use of the updated latest qemu for the
execution of all testcase
Change-Id: I1280af507a857675c7f81d30c95255635667bdd7
Signed-off-by:RajithaY<rajithax.yerrumsetty@intel.com>
Diffstat (limited to 'qemu/roms/ipxe/src/include/time.h')
-rw-r--r-- | qemu/roms/ipxe/src/include/time.h | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/qemu/roms/ipxe/src/include/time.h b/qemu/roms/ipxe/src/include/time.h deleted file mode 100644 index 462ac6999..000000000 --- a/qemu/roms/ipxe/src/include/time.h +++ /dev/null @@ -1,53 +0,0 @@ -#ifndef _TIME_H -#define _TIME_H - -/** @file - * - * Date and time - */ - -FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); - -#include <sys/time.h> -#include <ipxe/time.h> - -/** Broken-down time */ -struct tm { - /** Seconds [0,60] */ - int tm_sec; - /** Minutes [0,59] */ - int tm_min; - /** Hour [0,23] */ - int tm_hour; - /** Day of month [1,31] */ - int tm_mday; - /** Month of year [0,11] */ - int tm_mon; - /** Years since 1900 */ - int tm_year; - /** Day of week [0,6] (Sunday=0) */ - int tm_wday; - /** Day of year [0,365] */ - int tm_yday; - /** Daylight savings flag */ - int tm_isdst; -}; - -/** - * Get current time in seconds since the Epoch - * - * @v t Time to fill in, or NULL - * @ret time Current time - */ -static inline time_t time ( time_t *t ) { - time_t now; - - now = time_now(); - if ( t ) - *t = now; - return now; -} - -extern time_t mktime ( struct tm *tm ); - -#endif /* _TIME_H */ |