Date: Tue, 12 Jan 2016 06:45:19 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-standards@FreeBSD.org Subject: [Bug 206146] fileno(3) should be implemented as a function; need to check other functions as well Message-ID: <bug-206146-15@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206146 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@FreeBSD.org Reporter: delphij@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 namesp= ace collision with C++ programs that uses the same name, and that could potenti= ally a problem when porting applications to FreeBSD. POSIX, on the other hand, defines fileno as a function. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-206146-15>