On 27 November 2017 at 08:58, Alexandros Frantzis
wrote:
> On Mon, Nov 27, 2017 at 10:20:35AM +0200, Pekka Paalanen wrote:
>> On Fri, 24 Nov 2017 18:36:43 +
>> Emil Velikov wrote:
>>
>> > Hi Alexandros,
>> >
>> > On 16 November 2017 at 16:20, Alexandros Frantzis
>> > wrote:
>> >
>> > > +ZUC_
On Mon, Nov 27, 2017 at 10:20:35AM +0200, Pekka Paalanen wrote:
> On Fri, 24 Nov 2017 18:36:43 +
> Emil Velikov wrote:
>
> > Hi Alexandros,
> >
> > On 16 November 2017 at 16:20, Alexandros Frantzis
> > wrote:
> >
> > > +ZUC_TEST(timespec_test, timespec_is_zero)
> > > +{
> > > + struc
On Fri, 24 Nov 2017 18:36:43 +
Emil Velikov wrote:
> Hi Alexandros,
>
> On 16 November 2017 at 16:20, Alexandros Frantzis
> wrote:
>
> > +ZUC_TEST(timespec_test, timespec_is_zero)
> > +{
> > + struct timespec zero = { 0 };
> > + struct timespec non_zero_sec = { 1, 0 };
> > +
Hi Alexandros,
On 16 November 2017 at 16:20, Alexandros Frantzis
wrote:
> +ZUC_TEST(timespec_test, timespec_is_zero)
> +{
> + struct timespec zero = { 0 };
> + struct timespec non_zero_sec = { 1, 0 };
> + struct timespec non_zero_nsec = { 0, 1 };
> +
The standard (be that POSIX
Add a helper function to check if a struct timespec is zero. This helper
will be used in the upcoming commits to transition the Weston codebase
to struct timespec.
Signed-off-by: Alexandros Frantzis
---
shared/timespec-util.h | 12
tests/timespec-test.c | 11 +++
2 files ch