Bug 94320

Summary: sys/time.h: include time helpers
Product: libbsd Reporter: Mike Frysinger <vapier>
Component: libbsdAssignee: Guillem Jover <guillem>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Mike Frysinger 2016-02-27 22:38:07 UTC
sys/time.h in openbsd provides a few helpers like timercmp.  can we get this included ?

http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/sys/sys/time.h

i'm looking at the defines in these sections:
/* Operations on timevals. */
/* Operations on timespecs. */
Comment 1 Guillem Jover 2016-09-22 20:38:48 UTC
Hi!

[ Hmm another one that it seems I didn't get notified about. :/ ]

The timeval macros are already provided at least on glibc systems on <sys/times.h>. Are you targeting a system using another libc missing those macros? If so I'm happy to add them.

The timespec ones are missing even on glibc, so those I happy to include in any case.
Comment 2 Mike Frysinger 2016-11-09 17:20:29 UTC
yeah, i was looking at C libs beyond glibc (so looking at the APIs not defined by POSIX)
Comment 3 Guillem Jover 2017-06-19 02:45:00 UTC
This should be fixed now in libbsd 0.8.4.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.