[Swan-dev] new delta time type
Paul Wouters
paul at nohats.ca
Mon Feb 2 05:11:02 EET 2015
On Sun, 1 Feb 2015, D. Hugh Redelmeier wrote:
> | If we use timeval, can we use something like
> | http://www.geonius.com/software/libgpl/tv_util.html ; If the license
> | compatible with libreswan?
I prefer not to, because this library does not seem to be used widely
and is not readily available.
> Have a look at timeradd(3). Several struct timeval functions seem to
> be in glibc and Fedora. They are inherited from BSD, not POSIX. For
> that reason I'm not sure if we should be using them.
If glibc has them, and BSD has them, that covers most platforms I know?
Perhaps double check on some embedded c libraries?
> If they look good but we don't want to use BSD functions, it would not
> be hard to re-implement them with non-clashing names. And more const
> parameters :-).
>
> But really, it isn't a lot of work to implement "operators" for struct
> timeval. As we've seen, it takes care with the details and edge
> conditions to avoid bugs.
That might seem best?
Paul
More information about the Swan-dev
mailing list