bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] timespec: new function current_timespec


From: Paul Eggert
Subject: Re: [PATCH] timespec: new function current_timespec
Date: Tue, 18 Sep 2018 12:24:42 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0

On 9/18/18 11:37 AM, Bruno Haible wrote:
What is this code good for?

Nothing. Thanks, good catch. That code came from this FreeBSD man page:

https://www.freebsd.org/cgi/man.cgi?query=nanotime&manpath=FreeBSD+11.2-RELEASE+and+Ports

an earlier version of which I misread long ago as specifying a way to get nanosecond-resolution timestamps on FreeBSD variants that did not support clock_gettime. The man page documents FreeBSD internals; I misread it as documenting the C library. macOS (or whatever its name was back then) was the example that I was thinking of at the time; it did not support clock_gettime until 10.12 if <https://github.com/zeromq/libzmq/issues/2175> is to be believed.

I installed the attached two patches; the first fixes the problem you raised, and the second attempts to document the version 10.12 business better.

Attachment: 0001-gettime-nanotime-never-existed.txt
Description: Text document

Attachment: 0002-doc-OS-X-10.11-lacked-ns-time-functions.txt
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]