[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 06:45:19 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=206146
Bug ID: 206146
Summary: fileno(3) should be implemented as a function; need to
check other functions as well
Product: Base System
Version: 11.0-CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: standards
Assignee: freebsd-standards at FreeBSD.org
Reporter: delphij at FreeBSD.org
Currently, fileno(3) is implemented as a macro in stdio.h:
#define fileno(p) (!__isthreaded ? __sfileno(p) : (fileno)(p))
Per discussion with lichray, because this is a macro, it could cause namespace
collision with C++ programs that uses the same name, and that could potentially
a problem when porting applications to FreeBSD.
POSIX, on the other hand, defines fileno as a function.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-standards
mailing list