OpenCores
URL https://opencores.org/ocsvn/c0or1k/c0or1k/trunk

Subversion Repositories c0or1k

[/] [c0or1k/] [trunk/] [conts/] [posix/] [libposix/] [time.c] - Rev 7

Go to most recent revision | Compare with Previous | Blame | View Log

 
#include <sys/time.h>
#include <errno.h>
#include <libposix.h>
 
int gettimeofday(struct timeval *tv, struct timezone *tz)
{
	int ret = l4_time(tv, 0);
 
	/* If error, return positive error code */
	if (ret < 0) {
		errno = -ret;
		return -1;
	}
	/* else return value */
	return ret;
}
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.