[Barrelfish-users] gettimeofday

Kornilios Kourtis kornilios.kourtis at inf.ethz.ch
Mon Mar 12 14:53:46 CET 2012


Hi Georgios,

On Mon, Mar 12, 2012 at 01:11:32PM +0000, Georgios Varisteas wrote:
> I have a benchmark ported which uses the gettimeofday system call. In
> the new library that translates to _gettimeofday_r() which in turn
> calls _gettimeofday()
> (lib/newlib/newlib/libc/reent/gettimeofdayr.c:71). The first problem is
> that gettimeofdayr.c is excluded from the corresponding library
> (reent). The real problem is that I can't find any implementation to
> that last function call (_gettimeofday). Clues? Is there a doc anywhere
> of this and other common calls that are not yet implemented in the new
> library?

There is a bit of overlap between posixcompat and newlib. We didn't want
to introduce a dependency of newlib to posixcompat, so we excluded things
like gettimeofday() from newlib. You should be able to use the
gettimeofday() that is provided by posixcompat instead.

cheers,
Kornilios.

-- 
Kornilios Kourtis



More information about the Barrelfish-users mailing list