This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug nptl/640] New: ftruncate should be visible when including <unistd.h> without XSI features
- From: "sebastien dot decugis at ext dot bull dot net" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 6 Jan 2005 15:20:28 -0000
- Subject: [Bug nptl/640] New: ftruncate should be visible when including <unistd.h> without XSI features
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
According to the SUSv3, ftruncate(...) routine shall be visible when including
unistd.h; but it is not when _POSIX_C_SOURCE only is defined (no XSI features).
Sample code:
----------------
#define _POSIX_C_SOURCE 200112L
#include <unistd.h>
#include <sys/types.h>
typedef int (*ftruncate_test)(int fildes, off_t length);
int dummyfcn (void)
{
ftruncate_test dummyvar;
dummyvar = ftruncate;
return 0;
}
--
Summary: ftruncate should be visible when including <unistd.h>
without XSI features
Product: glibc
Version: unspecified
Status: NEW
Severity: minor
Priority: P3
Component: nptl
AssignedTo: drepper at redhat dot com
ReportedBy: sebastien dot decugis at ext dot bull dot net
CC: glibc-bugs at sources dot redhat dot com
http://sources.redhat.com/bugzilla/show_bug.cgi?id=640
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.