NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
lib/51287: posix_fallocate() needs <unistd.h> instead of <fcntl.h>
>Number: 51287
>Category: lib
>Synopsis: posix_fallocate() needs <unistd.h> instead of <fcntl.h>
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: lib-bug-people
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Mon Jun 27 14:35:00 +0000 2016
>Originator: Ralf Nolden
>Release: 7.0.1
>Organization:
KDE
>Environment:
NetBSD 7.0.1 amd64
>Description:
posix_fallocate() as declared in http://pubs.opengroup.org/onlinepubs/009695399/functions/posix_fallocate.html
is supposed to require <fcntl.h> as the include, however, NetBSD uses <unistd.h> which is non-standard behavior.
http://netbsd.gw.com/cgi-bin/man-cgi?posix_fallocate++NetBSD-current
>How-To-Repeat:
The conifgure check for posix_fallocate in Qt 5 (5.6) is used to detect the support of the function for native use in the bundled sqlite code, however the check failed although the fnctl.h file was included. Investigation showed that the function is declared in the wrong include file.
>Fix:
move the declaration to fnctl.h to be standards-compliant
Home |
Main Index |
Thread Index |
Old Index