This is the mail archive of the glibc-bugs@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug nptl/640] New: ftruncate should be visible when including <unistd.h> without XSI features


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]