lsb

mkstemp prototype in wrong header per POSIX

Bug #1327874 reported by Jeff Johnson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lsb
Fix Committed
Medium
Unassigned
Mandriva
Fix Released
Medium

Bug Description

Okay, we've had a few of these recently. Based on this warning message when
building olver-core-test:

fs/tmpfile/tmpfile_agent.c:38: warning: implicit declaration of function
'mkstemp'

we notice that mkstemp is declared in unistd.h, but mkstemp64 is in stdlib.h.
POSIX suggests it ought to be in stdlib.h, which is also the header the source
file above includes, apparently expecting it to be sufficient.

Should this be moved?

Tags: errata
Changed in mandriva:
importance: Unknown → Medium
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.