mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Added stub for time(3).
This commit is contained in:
parent
d3c4df72b1
commit
2b57319c1c
2 changed files with 7 additions and 0 deletions
|
@ -32,6 +32,7 @@ __BEGIN_DECLS
|
|||
@include(clock_t.h)
|
||||
|
||||
clock_t clock(void);
|
||||
time_t time(time_t* t);
|
||||
|
||||
__END_DECLS
|
||||
|
||||
|
|
|
@ -53,5 +53,11 @@ namespace Maxsi
|
|||
tp->tv_usec = 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
extern "C" time_t time(time_t* t)
|
||||
{
|
||||
*t = 0;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue