[fpc-devel] NowUTC in the RTL

Marco van de Voort marcov at stack.nl
Fri Dec 9 15:42:20 CET 2011


In our previous episode, Michael Van Canneyt said:
> >
> > But maybe IMHO this kind of stuff should remain out of sysutils, certainly now
> > it is not entirely clear, and people are still searching for solutions.
> 
> That's not the question.
> 
> clock_gettime is a linux kernel call. No-one is proposing to add it to sysutils.

If we decide to use it via libc, we might not have to add it as a syscall.
 
> The question is whether clock_gettime is POSIX, and if BSD has it.
> The linux man page seems to say it is POSIX 2001. My question is if BSD has it.

FreeBSD has it.  But OS X hasn't it seems, not even in recent versions.

Solaris seems to have it (libc call (3) though). 
Can't check openbsd or Haiku easily.




More information about the fpc-devel mailing list