[Bug 230046] [exp-run] Make timespecadd(3) and friends public
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Jul 25 22:36:27 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230046
Bug ID: 230046
Summary: [exp-run] Make timespecadd(3) and friends public
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Ports Framework
Assignee: portmgr at FreeBSD.org
Reporter: asomers at FreeBSD.org
CC: ports-bugs at FreeBSD.org
Created attachment 195458
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=195458&action=edit
bring our timespecadd etc definitions in line with NetBSD's
The timespecadd(3) family of macros were imported from NetBSD back in r35029.
However, they were initially guarded by #ifdef _KERNEL. In the meantime, we
have grown at least 28 syscalls that use timespecs in some way, leading many
programs both inside and outside of the base system to redefine those macros.
It's better just to make the definitions public.
Our kernel's definitions of timespecadd and timespecsub are slightly different
than NetBSD's and OpenBSD's. This revision changes our definition to match
theirs.
This change could cause ports breakage if a port:
1) includes <sys/time.h>,
2) locally defines timespecadd or a related macro, and
3) doesn't guard that definition with #ifndef timespecadd
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the freebsd-ports-bugs
mailing list