[Bug 206146] fileno(3) should be implemented as a function; need to check other functions as well

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Jan 12 09:57:10 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=206146

David Chisnall <theraven at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |theraven at FreeBSD.org

--- Comment #2 from David Chisnall <theraven at FreeBSD.org> ---
I think that's pretty clear.  It *must* be a function.  It *may* also be a
macro.  It currently is a function and a macro, but the function is external
and so if you #undef the macro you get worse performance.  There are a number
of cases like this, where we should be defining an inline function instead of a
macro.

This also makes building language bridges harder than it needs to be on
FreeBSD.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-standards mailing list