[fpc-devel] NowUTC in the RTL

Michael Van Canneyt michael at freepascal.org
Fri Dec 9 16:30:16 CET 2011



On Fri, 9 Dec 2011, Marco van de Voort wrote:

> In our previous episode, Michael Van Canneyt said:
>>
>> No problem.
>> I will do it so, I was leaning to this anyway based on the mails of Zeljko some
>> weeks back where the OSX issue was already touched upon.
>>
>> I just wanted to know the POSIX situation first, and now that's cleared up.
>
> Btw, you'll need clock_getres too, to get the granularity of the relevant
> timer. (and anything using these, should really use that function)
>
> Still I think it is better to put this in a package, and link to libc for
> them, instead of pulling this into the core. (iow, like the users package)

No, that's what the Linux unit is for: provide access to linux kernel calls 
not specified in POSIX. Linking to libc is not an option, I leave that to the 
(hereto imaginary) implementors of a glibc() unit.

I plan to add inotify() calls there as well (in separate commits, though).

Michael.



More information about the fpc-devel mailing list