mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-24 07:46:42 +00:00
Noux: return dummy time in 'gettimeofday()'
The 'find' program can abort if the 'gettimeofday()' function returns -1, which it currently does. With this patch the 'gettimeofday()' returns a dummy time instead to prevent such a termination. Fixes #353.
This commit is contained in:
parent
4b81cf3e63
commit
d6402041bc
@ -559,9 +559,14 @@ extern "C" int clock_gettime(clockid_t clk_id, struct timespec *tp)
|
||||
extern "C" int gettimeofday(struct timeval *tv, struct timezone *tz)
|
||||
{
|
||||
if (verbose)
|
||||
PDBG("gettimeofdaye called - not implemented");
|
||||
errno = EINVAL;
|
||||
return -1;
|
||||
PDBG("gettimeofday() called - not implemented");
|
||||
|
||||
if (tv) {
|
||||
tv->tv_sec = 0;
|
||||
tv->tv_usec = 0;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user