Re: [ovs-dev] [PATCH] timeval: Add monotonic time functionality for NetBSD and FreeBSD.

2014-06-03 Thread YAMAMOTO Takashi
> Thanks for the fix! Sorry, I don't know too much about the intricacies of > NetBSD. My first version seemed to work on my NetBSD instance though, so I > wrongly assumed it would work for most versions of NetBSD. it picked the old (pre-64bit-time_t) compat version of the function. yes, it should

Re: [ovs-dev] [PATCH] timeval: Add monotonic time functionality for NetBSD and FreeBSD.

2014-06-02 Thread Ryan Wilson 76511
Thanks for the fix! Sorry, I don't know too much about the intricacies of NetBSD. My first version seemed to work on my NetBSD instance though, so I wrongly assumed it would work for most versions of NetBSD. I tested this on FreeBSD and it works, but I don't know the intricacies of FreeBSD either.

Re: [ovs-dev] [PATCH] timeval: Add monotonic time functionality for NetBSD and FreeBSD.

2014-06-02 Thread YAMAMOTO Takashi
> This patch also checks the system platform as clock_gettime > could exist on different platforms but with different values of > CLOCK_MONOTONIC and different definitions of 'struct timespec'. > In this case, the system call would be expected to catch the > error, which is dangerous. > > This pat

[ovs-dev] [PATCH] timeval: Add monotonic time functionality for NetBSD and FreeBSD.

2014-06-02 Thread Ryan Wilson
This patch also checks the system platform as clock_gettime could exist on different platforms but with different values of CLOCK_MONOTONIC and different definitions of 'struct timespec'. In this case, the system call would be expected to catch the error, which is dangerous. This patch ensures Lin